diff --git a/.dockerignore b/.dockerignore
index 079814739b..caafd06a83 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -6,6 +6,7 @@
!sdks/full/rust/src
!packages
!resources/legacy/proto
+!externals/
sdks/runtime
svc/**/*.md
diff --git a/.github/actions/docker-setup/action.yaml b/.github/actions/docker-setup/action.yaml
new file mode 100644
index 0000000000..b9ba3a5d18
--- /dev/null
+++ b/.github/actions/docker-setup/action.yaml
@@ -0,0 +1,32 @@
+name: 'Docker Setup'
+description: 'Set up Docker Buildx and log in to Docker Hub'
+inputs:
+ docker_username:
+ description: 'Docker Hub username'
+ required: true
+ docker_password:
+ description: 'Docker Hub password'
+ required: true
+ github_token:
+ description: 'GitHub token'
+ required: true
+runs:
+ using: 'composite'
+ steps:
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Log in to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ inputs.docker_username }}
+ password: ${{ inputs.docker_password }}
+
+ # This will be used as a secret to authenticate with Git repo pulls
+ - name: Create .netrc file
+ run: |
+ echo "machine github.com" > ${{ runner.temp }}/netrc
+ echo "login x-access-token" >> ${{ runner.temp }}/netrc
+ echo "password ${{ inputs.github_token }}" >> ${{ runner.temp }}/netrc
+ shell: bash
+
diff --git a/.github/workflows/bolt-check.yaml b/.github/workflows/bolt-check.yaml
deleted file mode 100644
index ca0f0e6858..0000000000
--- a/.github/workflows/bolt-check.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-name: bolt-check
-
-on: push
-
-concurrency:
- group: check-${{ github.ref }}
- cancel-in-progress: true
-
-defaults:
- run:
- # Enable fail-fast behavior
- shell: bash -e {0}
-
-env:
- store: /home/runner/nix
-
-jobs:
- check:
- runs-on: [self-hosted, linux, x64]
-
- steps:
- # MARK: Git
- - name: Checkout
- uses: actions/checkout@v4
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- submodules: recursive
-
- - uses: ./.github/actions/pre-init
- with:
- SCCACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_AWS_SECRET_ACCESS_KEY }}
- SCCACHE_AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_AWS_ACCESS_KEY_ID }}
- OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
-
- - name: Bolt Change Project
- run: nix-shell --pure --run "bolt config set-namespace ci"
-
- - name: Bolt Generate Project
- run: nix-shell --pure --run "bolt gen project"
-
- - name: Bolt Check
- run: nix-shell --pure --run "bolt check -g --validate-format"
-
- - name: Force Parallel Failure
- if: failure()
- uses: andymckay/cancel-action@0.3
diff --git a/.github/workflows/bolt-test.yaml b/.github/workflows/bolt-test.yaml
deleted file mode 100644
index 9d062807c2..0000000000
--- a/.github/workflows/bolt-test.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-name: bolt-test
-
-on: workflow_dispatch
-
-concurrency:
- group: check-${{ github.ref }}
- cancel-in-progress: true
-
-defaults:
- run:
- # Enable fail-fast behavior
- shell: bash -e {0}
-
-env:
- store: /home/runner/nix
-
-jobs:
- test:
- runs-on: [self-hosted, linux, x64]
-
- steps:
- # MARK: Git
- - name: Checkout
- uses: actions/checkout@v4
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- submodules: recursive
-
- - name: LFS
- run: git lfs pull
-
- - uses: ./.github/actions/pre-init
- with:
- SCCACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_AWS_SECRET_ACCESS_KEY }}
- SCCACHE_AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_AWS_ACCESS_KEY_ID }}
- OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
-
- - name: Bolt Init
- run: nix-shell --pure --run "bolt init --yes ci"
-
- - name: Bolt Test
- run: nix-shell --pure --run "bolt test"
-
- - name: K3D Cleanup
- if: always()
- run: nix-shell --pure --run "k3d cluster delete rivet-ci"
-
- - name: Force Parallel Failure
- if: failure()
- uses: andymckay/cancel-action@0.3
diff --git a/.github/workflows/detect-secrets.yaml b/.github/workflows/detect-secrets.yaml
deleted file mode 100644
index 074072fc2a..0000000000
--- a/.github/workflows/detect-secrets.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: detect-secrets
-
-on: push
-
-jobs:
- detect-secrets-scan:
- runs-on: ubuntu-20.04
- steps:
- - name: Checkout repo
- uses: actions/checkout@v4
-
- - name: Install detect-secrets
- run: pip install detect-secrets[gibberish]==1.4.0
-
- - name: Check for new secrets
- run: |
- ./scripts/detect_secrets/check.sh
diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml
deleted file mode 100644
index 97100ed9bc..0000000000
--- a/.github/workflows/docker-publish.yaml
+++ /dev/null
@@ -1,89 +0,0 @@
-name: docker-publish
-
-on: push
-
-defaults:
- run:
- # Enable fail-fast behavior
- shell: bash -e {0}
-
-jobs:
- rivet-local-binary-artifact-runner:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: docker/login-action@v2
- with:
- registry: ghcr.io
- username: ${{github.actor}}
- password: ${{secrets.GITHUB_TOKEN}}
- - name: Build rivet-local-binary-artifact-runner
- run: |
- GHCR_TAG="ghcr.io/rivet-gg/rivet-local-binary-artifact-runner:$(git rev-parse --short HEAD)"
- docker build -t "$GHCR_TAG" -f infra/docker/rivet_local_binary_artifact_runner/Dockerfile .
- docker push "$GHCR_TAG"
-
- golang-migrate:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: docker/login-action@v2
- with:
- registry: ghcr.io
- username: ${{github.actor}}
- password: ${{secrets.GITHUB_TOKEN}}
- - name: Build golang-migrate
- run: |
- GHCR_TAG="ghcr.io/rivet-gg/golang-migrate:$(git rev-parse --short HEAD)"
- cd infra/docker/golang_migrate
- docker build -t "$GHCR_TAG" .
- docker push "$GHCR_TAG"
-
- redis:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: docker/login-action@v2
- with:
- registry: ghcr.io
- username: ${{github.actor}}
- password: ${{secrets.GITHUB_TOKEN}}
- - name: Build redis
- run: |
- GHCR_TAG="ghcr.io/rivet-gg/redis:$(git rev-parse --short HEAD)"
- cd infra/docker/redis
- docker build -t "$GHCR_TAG" .
- docker push "$GHCR_TAG"
-
- # HACK: Disabled by default because of how long it takes to rebuild.
- # apache-traffic-server:
- # runs-on: ubuntu-latest
-
- # steps:
- # - name: Install Nix
- # run: |
- # curl -L https://nixos.org/nix/install | sh
- # . /home/runner/.nix-profile/etc/profile.d/nix.sh
-
- # - uses: actions/checkout@v2
-
- # - name: Login to GitHub Container Registry
- # uses: docker/login-action@v2
- # with:
- # registry: ghcr.io
- # username: ${{github.actor}}
- # password: ${{secrets.GITHUB_TOKEN}}
-
- # - name: Build apache-traffic-server
- # run: |
- # # Build
- # . /home/runner/.nix-profile/etc/profile.d/nix.sh
- # cd infra/docker/traffic_server
- # nix-build docker.nix --option system-features kvm
- # docker load < result
-
- # # Push
- # GHCR_TAG="ghcr.io/rivet-gg/apache-traffic-server:$(git rev-parse --short HEAD)"
- # echo "Tagging: $GHCR_TAG"
- # docker tag apache-traffic-server:latest "$GHCR_TAG"
- # docker push "$GHCR_TAG"
diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml
new file mode 100644
index 0000000000..afee27ebd4
--- /dev/null
+++ b/.github/workflows/docker.yaml
@@ -0,0 +1,214 @@
+name: docker
+
+on:
+ push:
+ branches:
+ - main
+ tags:
+ - '*'
+ # For testing:
+ # pull_request:
+
+jobs:
+ build-and-push-server:
+ strategy:
+ matrix:
+ include:
+ - platform: linux/arm64
+ runner: [self-hosted, Linux, ARM64]
+ - platform: linux/x86_64
+ runner: [self-hosted, Linux, X64]
+ runs-on: ${{ matrix.runner }}
+ steps:
+ - name: Setup Docker on macOS
+ if: runner.os == 'macOS'
+ uses: douglascamata/setup-docker-macos-action@v1-alpha
+
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+
+ - uses: ./.github/actions/docker-setup
+ with:
+ docker_username: ${{ secrets.DOCKER_CI_USERNAME }}
+ docker_password: ${{ secrets.DOCKER_CI_ACCESS_TOKEN }}
+ github_token: ${{ secrets.GITHUB_TOKEN}}
+
+ - name: Metadata (rivetgg/server:full)
+ id: meta-full
+ uses: docker/metadata-action@v4
+ with:
+ images: rivetgg/rivet-server
+ tags: |
+ type=sha,prefix=full-
+ type=ref,event=branch,prefix=full-
+ type=ref,event=tag,prefix=full-
+
+ - name: Build & Push (rivetgg/server:full)
+ uses: docker/build-push-action@v4
+ with:
+ context: .
+ push: true
+ tags: ${{ steps.meta-full.outputs.tags }}
+ file: docker/server/Dockerfile
+ target: full
+ platforms: ${{ matrix.platform }}
+ secret-files: |
+ netrc=${{ runner.temp }}/netrc
+
+ - name: Metadata (rivetgg/server:slim)
+ id: meta-slim
+ uses: docker/metadata-action@v4
+ with:
+ images: rivetgg/rivet-server
+ tags: |
+ type=sha,prefix=slim-
+ type=ref,event=branch,prefix=slim-
+ type=ref,event=tag,prefix=slim-
+
+ - name: Build & Push (rivetgg/server:slim)
+ uses: docker/build-push-action@v4
+ with:
+ context: .
+ push: true
+ tags: ${{ steps.meta-slim.outputs.tags }}
+ file: docker/server/Dockerfile
+ target: slim
+ platforms: ${{ matrix.platform }}
+ secret-files: |
+ netrc=${{ runner.temp }}/netrc
+
+ build-and-push-client:
+ strategy:
+ matrix:
+ include:
+ - platform: linux/arm64
+ runner: [self-hosted, Linux, ARM64]
+ - platform: linux/x86_64
+ runner: [self-hosted, Linux, X64]
+ runs-on: ${{ matrix.runner }}
+ steps:
+ - name: Setup Docker on macOS
+ if: runner.os == 'macOS'
+ uses: douglascamata/setup-docker-macos-action@v1-alpha
+
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+
+ - uses: ./.github/actions/docker-setup
+ with:
+ docker_username: ${{ secrets.DOCKER_CI_USERNAME }}
+ docker_password: ${{ secrets.DOCKER_CI_ACCESS_TOKEN }}
+ github_token: ${{ secrets.GITHUB_TOKEN}}
+
+ - name: Metadata (rivetgg/client:full-runner)
+ id: meta-full-runner
+ uses: docker/metadata-action@v4
+ with:
+ images: rivetgg/rivet-client
+ tags: |
+ type=sha,prefix=full-runner-
+ type=ref,event=branch,prefix=full-runner-
+ type=ref,event=tag,prefix=full-runner-
+
+ - name: Build & Push (rivetgg/client:full-runner)
+ uses: docker/build-push-action@v4
+ with:
+ context: .
+ push: true
+ tags: ${{ steps.meta-full-runner.outputs.tags }}
+ file: docker/client/Dockerfile
+ target: full-runner
+ platforms: ${{ matrix.platform }}
+ secret-files: |
+ netrc=${{ runner.temp }}/netrc
+
+ - name: Metadata (rivetgg/client:isolate-v8-runner)
+ id: meta-isolate-v8-runner
+ uses: docker/metadata-action@v4
+ with:
+ images: rivetgg/rivet-client
+ tags: |
+ type=sha,prefix=isolate-v8-runner-
+ type=ref,event=branch,prefix=isolate-v8-runner-
+ type=ref,event=tag,prefix=isolate-v8-runner-
+
+ - name: Build & Push (rivetgg/client:isolate-v8-runner)
+ uses: docker/build-push-action@v4
+ with:
+ context: .
+ push: true
+ tags: ${{ steps.meta-isolate-v8-runner.outputs.tags }}
+ file: docker/client/Dockerfile
+ target: isolate-v8-runner
+ platforms: ${{ matrix.platform }}
+ secret-files: |
+ netrc=${{ runner.temp }}/netrc
+
+ - name: Metadata (rivetgg/client:container-runner)
+ id: meta-container-runner
+ uses: docker/metadata-action@v4
+ with:
+ images: rivetgg/rivet-client
+ tags: |
+ type=sha,prefix=container-runner-
+ type=ref,event=branch,prefix=container-runner-
+ type=ref,event=tag,prefix=container-runner-
+
+ - name: Build & Push (rivetgg/client:container-runner)
+ uses: docker/build-push-action@v4
+ with:
+ context: .
+ push: true
+ tags: ${{ steps.meta-container-runner.outputs.tags }}
+ file: docker/client/Dockerfile
+ target: container-runner
+ platforms: ${{ matrix.platform }}
+ secret-files: |
+ netrc=${{ runner.temp }}/netrc
+
+ build-and-push-monolith:
+ strategy:
+ matrix:
+ include:
+ - platform: linux/arm64
+ runner: [self-hosted, Linux, ARM64]
+ - platform: linux/x86_64
+ runner: [self-hosted, Linux, X64]
+ runs-on: ${{ matrix.runner }}
+ steps:
+ - name: Setup Docker on macOS
+ if: runner.os == 'macOS'
+ uses: douglascamata/setup-docker-macos-action@v1-alpha
+
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+
+ - uses: ./.github/actions/docker-setup
+ with:
+ docker_username: ${{ secrets.DOCKER_CI_USERNAME }}
+ docker_password: ${{ secrets.DOCKER_CI_ACCESS_TOKEN }}
+ github_token: ${{ secrets.GITHUB_TOKEN}}
+
+ - name: Metadata (rivetgg/rivet)
+ id: meta-monolith
+ uses: docker/metadata-action@v4
+ with:
+ images: rivetgg/rivet
+ tags: |
+ type=sha,prefix=monolith-
+ type=ref,event=branch,prefix=monolith-
+ type=ref,event=tag,prefix=monolith-
+
+ - name: Build & Push (rivetgg/rivet)
+ uses: docker/build-push-action@v4
+ with:
+ context: .
+ push: true
+ tags: ${{ steps.meta-monolith.outputs.tags }}
+ file: docker/monolith/Dockerfile
+ platforms: ${{ matrix.platform }}
+ secret-files: |
+ netrc=${{ runner.temp }}/netrc
diff --git a/.github/workflows/fern.yaml b/.github/workflows/fern.yaml
index fa7de7f52d..90c1262448 100644
--- a/.github/workflows/fern.yaml
+++ b/.github/workflows/fern.yaml
@@ -11,22 +11,16 @@ jobs:
fern-check:
runs-on: ubuntu-20.04
steps:
- - name: Checkout repo
- uses: actions/checkout@v4
-
- - name: Install Fern
- run: npm install -g fern-api
-
+ - uses: actions/checkout@v4
+ - run: npm install -g fern-api
- name: Check Fern API is valid
- run: fern check
-
- # TODO: Re-enable once https://github.com/fern-api/fern/pull/2551 is resolved
- # - name: Verify generated code is up to date
- # env:
- # FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
- # run: |
- # ./scripts/fern/gen.sh
- # git --no-pager diff --exit-code
+ run: ./scripts/fern/check.sh
+ - name: Verify generated code is up to date
+ env:
+ FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
+ run: |
+ ./scripts/fern/gen.sh
+ git --no-pager diff --exit-code
fern-publish:
runs-on: ubuntu-20.04
diff --git a/.github/workflows/format-check.yaml b/.github/workflows/format-check.yaml
deleted file mode 100644
index d396096185..0000000000
--- a/.github/workflows/format-check.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: format-check
-
-on: push
-
-jobs:
- prettier:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup node
- uses: actions/setup-node@v3
-
- - name: Install dependencies
- run: yarn install --frozen-lockfile
-
- - name: Validate Prettier config
- run: npx prettier@3.0 --check .
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yaml
similarity index 92%
rename from .github/workflows/release-please.yml
rename to .github/workflows/release-please.yaml
index 2276820f67..b07829a2f6 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yaml
@@ -11,7 +11,7 @@ permissions:
jobs:
release-please:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
steps:
- uses: google-github-actions/release-please-action@v4
with:
diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml
index d4a1af73a1..7679984d1d 100644
--- a/.github/workflows/rust.yaml
+++ b/.github/workflows/rust.yaml
@@ -1,26 +1,80 @@
name: rust
-on: push
+on:
+ pull_request:
+ push:
+ branches:
+ - main
concurrency:
group: rust-${{ github.ref }}
cancel-in-progress: true
+permissions: {}
+
defaults:
run:
# Enable fail-fast behavior
shell: bash -e {0}
+env:
+ # Disable incremental compilation for faster from-scratch builds
+ CARGO_INCREMENTAL: 0
+ RUSTFLAGS: "--cfg tokio_unstable"
+
jobs:
+ cargo-fmt:
+ runs-on: ubuntu-20.04
+ container:
+ image: rust:1.82.0
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+ - run: rustup component add rustfmt
+ - run: cargo fmt --check
+ - run: cd packages/infra/client && cargo fmt --check
+
+ cargo-check-main:
+ runs-on: [self-hosted, Linux]
+ container:
+ image: rust:1.82.0
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+ - name: Install dependencies
+ run: |
+ apt-get update
+ apt-get install -y protobuf-compiler libpq-dev
+ - run: RUSTFLAGS="--cfg tokio_unstable" cargo check --release
+
+ cargo-check-infra:
+ runs-on: [self-hosted, Linux]
+ container:
+ image: rust:1.82.0
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+ - name: Install dependencies
+ run: |
+ apt-get update
+ apt-get install -y protobuf-compiler libpq-dev
+ - run: cd packages/infra/client && RUSTFLAGS="--cfg tokio_unstable" cargo check --release
+
cargo-deny:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
+ container:
+ image: rust:1.82.0
steps:
- uses: actions/checkout@v4
- - name: cargo deny (svc)
- uses: EmbarkStudios/cargo-deny-action@v1
with:
- manifest-path: svc/Cargo.toml
- - name: cargo deny (lib/bolt)
+ submodules: true
+ - name: cargo deny
+ uses: EmbarkStudios/cargo-deny-action@v1
+ - name: cargo deny (packages/infra/client)
uses: EmbarkStudios/cargo-deny-action@v1
with:
- manifest-path: lib/bolt/Cargo.toml
+ manifest-path: packages/infra/client/Cargo.toml
+
diff --git a/.github/workflows/service-containers-publish.yaml b/.github/workflows/service-containers-publish.yaml
deleted file mode 100644
index 92072c0e60..0000000000
--- a/.github/workflows/service-containers-publish.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-name: service-containers-publish
-
-on:
- push:
- branches:
- - main
-
-defaults:
- run:
- # Enable fail-fast behavior
- shell: bash -e {0}
-
-env:
- store: /home/runner/nix
-
-jobs:
- service-containers-publish:
- runs-on: [self-hosted, linux, x64]
-
- steps:
- # MARK: Git
- - name: Checkout
- uses: actions/checkout@v4
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- submodules: recursive
-
- - uses: ./.github/actions/pre-init-distributed
- with:
- SCCACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_AWS_SECRET_ACCESS_KEY }}
- SCCACHE_AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_AWS_ACCESS_KEY_ID }}
- DOCKER_CI_ACCESS_TOKEN: ${{ secrets.DOCKER_CI_ACCESS_TOKEN }}
-
- - name: Bolt up and push containers
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- # Cannot use --pure `https://github.com/NixOS/nixpkgs/issues/66716`
- run: nix-shell --run "bolt up --skip-deploy"
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000000..3661097646
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,24 @@
+[submodule "externals/sqlx"]
+ path = externals/sqlx
+ url = https://github.com/rivet-gg/sqlx
+[submodule "externals/nomad-client"]
+ path = externals/nomad-client
+ url = https://github.com/rivet-gg/nomad-client
+[submodule "externals/deno"]
+ path = externals/deno
+ url = https://github.com/rivet-gg/deno
+[submodule "externals/posthog-rs"]
+ path = externals/posthog-rs
+ url = https://github.com/rivet-gg/posthog-rs
+[submodule "externals/cloudflare-rs"]
+ path = externals/cloudflare-rs
+ url = https://github.com/cloudflare/cloudflare-rs
+[submodule "externals/rivet-term"]
+ path = externals/rivet-term
+ url = https://github.com/rivet-gg/rivet-term
+[submodule "externals/redis-rs"]
+ path = externals/redis-rs
+ url = https://github.com/rivet-gg/redis-rs
+[submodule "externals/serde_array_query"]
+ path = externals/serde_array_query
+ url = https://github.com/rivet-gg/serde_array_query
diff --git a/Cargo.lock b/Cargo.lock
index bcbc17fdc2..3be14faeb7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1105,7 +1105,6 @@ dependencies = [
[[package]]
name = "async-posthog"
version = "0.2.3"
-source = "git+https://github.com/rivet-gg/posthog-rs.git?rev=ef4e80e#ef4e80e57747ea7204794bce9a103bfeccefabf1"
dependencies = [
"posthog-core",
"reqwest 0.11.27",
@@ -1202,9 +1201,9 @@ dependencies = [
[[package]]
name = "aws-sdk-s3"
-version = "1.60.0"
+version = "1.61.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0506cc60e392e33712d47717d5ae5760a3b134bf8ee7aea7e43df3d7e2669ae0"
+checksum = "0e531658a0397d22365dfe26c3e1c0c8448bf6a3a2d8a098ded802f2b1261615"
dependencies = [
"aws-credential-types",
"aws-runtime",
@@ -1705,9 +1704,9 @@ dependencies = [
[[package]]
name = "bstr"
-version = "1.10.0"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c"
+checksum = "1a68f1f47cdf0ec8ee4b941b2eee2a80cb796db73118c0dd09ac63fbe405be22"
dependencies = [
"memchr",
]
@@ -1979,9 +1978,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.1.37"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40545c26d092346d8a8dab71ee48e7685a7a9cba76e634790c215b41a4a7b4cf"
+checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47"
dependencies = [
"jobserver",
"libc",
@@ -2465,9 +2464,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.5.20"
+version = "4.5.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8"
+checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f"
dependencies = [
"clap_builder",
"clap_derive",
@@ -2475,9 +2474,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.5.20"
+version = "4.5.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54"
+checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec"
dependencies = [
"anstream",
"anstyle",
@@ -2499,9 +2498,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.7.2"
+version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
+checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7"
[[package]]
name = "clickhouse"
@@ -2747,7 +2746,6 @@ dependencies = [
[[package]]
name = "cloudflare"
version = "0.12.0"
-source = "git+https://github.com/cloudflare/cloudflare-rs.git?rev=f14720e42184ee176a97676e85ef2d2d85bc3aae#f14720e42184ee176a97676e85ef2d2d85bc3aae"
dependencies = [
"chrono",
"http 0.2.12",
@@ -4096,9 +4094,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
[[package]]
name = "flate2"
-version = "1.0.34"
+version = "1.0.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0"
+checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c"
dependencies = [
"crc32fast",
"miniz_oxide",
@@ -5082,7 +5080,7 @@ dependencies = [
"http 1.1.0",
"hyper 1.5.0",
"hyper-util",
- "rustls 0.23.16",
+ "rustls 0.23.17",
"rustls-pki-types",
"tokio",
"tokio-rustls 0.26.0",
@@ -5571,7 +5569,7 @@ dependencies = [
"rivet-runtime",
"rivet-test",
"rivet-util-job",
- "rustls 0.20.9",
+ "rustls 0.21.12",
"serde",
"serde_json",
"serde_urlencoded",
@@ -5625,9 +5623,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.162"
+version = "0.2.164"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
+checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f"
[[package]]
name = "libgit2-sys"
@@ -6698,7 +6696,6 @@ dependencies = [
[[package]]
name = "nomad_client"
version = "1.1.4"
-source = "git+https://github.com/rivet-gg/nomad-client?rev=abb66bf0c30c7ff5b0c695dae952481c33e538b5#abb66bf0c30c7ff5b0c695dae952481c33e538b5"
dependencies = [
"reqwest 0.11.27",
"serde",
@@ -7282,7 +7279,6 @@ checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
[[package]]
name = "posthog-core"
version = "0.1.0"
-source = "git+https://github.com/rivet-gg/posthog-rs.git?rev=ef4e80e#ef4e80e57747ea7204794bce9a103bfeccefabf1"
dependencies = [
"chrono",
"serde",
@@ -7607,7 +7603,6 @@ dependencies = [
[[package]]
name = "redis"
version = "0.23.3"
-source = "git+https://github.com/rivet-gg/redis-rs.git?rev=ac3e27fa1d133847db54354493f4d25957ad3466#ac3e27fa1d133847db54354493f4d25957ad3466"
dependencies = [
"arc-swap",
"async-trait",
@@ -8571,7 +8566,6 @@ dependencies = [
[[package]]
name = "rivet-term"
version = "0.1.0"
-source = "git+https://github.com/rivet-gg/rivet-term.git?rev=d539a07d2920d47b88410f20e6d106b497cff1f5#d539a07d2920d47b88410f20e6d106b497cff1f5"
dependencies = [
"console",
"derive_builder 0.12.0",
@@ -8762,18 +8756,6 @@ dependencies = [
"webpki 0.21.4",
]
-[[package]]
-name = "rustls"
-version = "0.20.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99"
-dependencies = [
- "log",
- "ring 0.16.20",
- "sct 0.7.1",
- "webpki 0.22.4",
-]
-
[[package]]
name = "rustls"
version = "0.21.12"
@@ -8788,9 +8770,9 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.16"
+version = "0.23.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eee87ff5d9b36712a58574e12e9f0ea80f915a5b0ac518d322b24a465617925e"
+checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e"
dependencies = [
"log",
"once_cell",
@@ -9025,7 +9007,6 @@ dependencies = [
[[package]]
name = "serde_array_query"
version = "0.2.0"
-source = "git+https://github.com/rivet-gg/serde_array_query.git?rev=b9f8bfad77aea6f01dccc6cb77146b8c5daecaa3#b9f8bfad77aea6f01dccc6cb77146b8c5daecaa3"
dependencies = [
"serde",
"serde_urlencoded",
@@ -9055,9 +9036,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.132"
+version = "1.0.133"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03"
+checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377"
dependencies = [
"indexmap 2.6.0",
"itoa 1.0.11",
@@ -9357,7 +9338,6 @@ dependencies = [
[[package]]
name = "sqlx"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"sqlx-core",
"sqlx-macros",
@@ -9369,7 +9349,6 @@ dependencies = [
[[package]]
name = "sqlx-core"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"bit-vec",
"bytes",
@@ -9406,7 +9385,6 @@ dependencies = [
[[package]]
name = "sqlx-macros"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"proc-macro2",
"quote",
@@ -9418,7 +9396,6 @@ dependencies = [
[[package]]
name = "sqlx-macros-core"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"dotenvy",
"either",
@@ -9443,7 +9420,6 @@ dependencies = [
[[package]]
name = "sqlx-mysql"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"atoi",
"base64 0.22.1",
@@ -9485,7 +9461,6 @@ dependencies = [
[[package]]
name = "sqlx-postgres"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"atoi",
"base64 0.22.1",
@@ -9524,7 +9499,6 @@ dependencies = [
[[package]]
name = "sqlx-sqlite"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"atoi",
"flume",
@@ -10357,7 +10331,7 @@ version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4"
dependencies = [
- "rustls 0.23.16",
+ "rustls 0.23.17",
"rustls-pki-types",
"tokio",
]
@@ -10933,7 +10907,7 @@ dependencies = [
"flate2",
"log",
"once_cell",
- "rustls 0.23.16",
+ "rustls 0.23.17",
"rustls-pki-types",
"url",
"webpki-roots 0.26.6",
diff --git a/Cargo.toml b/Cargo.toml
index 2ad6289003..b6cfb4dac3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
-# Find all packages with: find . -name Cargo.toml | grep -v resources | grep -v "sdks/runtime" | grep -v "sdks/full/rust-cli" | grep -v "infra/client/" | grep -v "infra/legacy/job-runner" | sed -E 's|^./(.*)Cargo\.toml$|"\1",|'
+# Find all packages with: find . -name Cargo.toml | grep -v resources | grep -v externals | grep -v "sdks/runtime" | grep -v "sdks/full/rust-cli" | grep -v "infra/client/" | grep -v "infra/legacy/job-runner" | sed -E 's|^./(.*)Cargo\.toml$|"\1",|'
members = [
"sdks/full/rust/",
"packages/infra/server/",
@@ -281,8 +281,20 @@ members = [
"packages/services/custom-user-avatar/ops/list-for-game/",
"packages/services/custom-user-avatar/ops/upload-complete/",
"packages/services/debug/ops/email-res/",
-"packages/services/tier/", "packages/services/cloud/standalone/default-create"
-, "packages/services/user"]
+"packages/services/tier/",
+"packages/services/cloud/standalone/default-create",
+"packages/services/user",
+]
+exclude = [
+"externals/cloudflare-rs",
+"externals/deno",
+"externals/nomad-client",
+"externals/posthog-rs",
+"externals/redis-rs",
+"externals/rivet-term",
+"externals/serde_array_query",
+"externals/sqlx",
+]
# Speed up compilation
[profile.dev]
diff --git a/deny.toml b/deny.toml
index b66354d71e..2acd2eafe0 100644
--- a/deny.toml
+++ b/deny.toml
@@ -5,6 +5,13 @@ ignore = [
# webpki 0.21.4 only used by aws-smithy-client 0.41.0 in our deprecated
# generated clients. This is used only for type ser/de and old tests.
"RUSTSEC-2023-0052",
+ # rustls 0.19.1 is only used by aws-smithy-client in our deprecated
+ # generated clients. This is used only for type ser/de and old tests.
+ "RUSTSEC-2024-0336",
+ # Unmaintained, low-impact crates
+ "RUSTSEC-2020-0163",
+ "RUSTSEC-2024-0370",
+ "RUSTSEC-2024-0384",
]
[licenses]
@@ -20,8 +27,6 @@ allow = [
"Zlib",
"EPL-2.0",
]
-
-# We use the same config to scan multiple projects
unused-allowed-license = "allow"
[[licenses.exceptions]]
diff --git a/docker/README.md b/docker/README.md
index 3f1b66c1f0..1f3d6c34e2 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -1,5 +1,24 @@
# Docker Configurations
-- [dev-monolith](./dev-monolith/) is intended running a Rivet server to develop your application with. It can be used in an external Docker Compose.
-- [dev-full](./dev-full/) is intended for developing Rivet itself
+- [server](./server/) is the production-ready Rivet server.
+- [client](./client/) is the production-ready Rivet client.
+- [monolith](./dev-monolith/) is for running a Rivet server & client to develop your application with in a single container. It can also be used in an external Docker Compose.
+- [dev-full](./dev-full/) (Docker Compose) is for testing & developing Rivet itself.
+
+## netrc & GitHub
+
+Rivet depends on cloning a lot of repos. GitHub rate limits these pulls, so we
+have to authenticate with a GitHub Token in order to successfully build these
+images in GitHub Actions.
+
+To do this, we generate a `.netrc` file with `secrets.GITHUB_TOKEN` (see
+`.github/actions/docker-setup`). This file gets mounted as a Docker secret in
+the build stage.
+
+It's important that we don't use an `ARG` or `COPY` for the secert nor write it
+to the file system, since this might expose the token in the released image. In
+theory, all Docker images use a separate runner build stage from the builder
+stage so we _could_ write the token to the builder filesystem to simplify
+things, but this risk should be avoided in case the wrong image gets pushed or
+the wrong artifact ends up in the final image.
diff --git a/docker/client/Dockerfile b/docker/client/Dockerfile
new file mode 100644
index 0000000000..5ee6547df8
--- /dev/null
+++ b/docker/client/Dockerfile
@@ -0,0 +1,36 @@
+# MARK: Builder
+FROM rust:1.82.0-bullseye AS builder
+
+RUN apt-get update && apt-get install --yes protobuf-compiler pkg-config libssl-dev g++ git libpq-dev wget && \
+ ln -s /bin/g++ /bin/musl-g++ && \
+ ln -s /bin/gcc-ar /bin/musl-ar
+
+WORKDIR /app
+COPY . .
+RUN \
+ --mount=type=secret,id=netrc,target=/root/.netrc,mode=0600 \
+ --mount=type=cache,target=/usr/local/cargo/git,id=client-cargo-git \
+ --mount=type=cache,target=/usr/local/cargo/registry,id=client-cargo-registry \
+ --mount=type=cache,target=/app/packages/infra/client/target,id=client-target \
+ cd packages/infra/client && \
+ RUSTFLAGS="--cfg tokio_unstable" cargo build -vv --release --bin rivet-client --bin rivet-isolate-v8-runner --bin rivet-container-runner && \
+ mkdir -p /app/dist && \
+ mv target/release/rivet-client target/release/rivet-isolate-v8-runner target/release/rivet-container-runner /app/dist/
+
+# MARK: Runner (Full)
+FROM debian:12-slim AS full-runner
+RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y --no-install-recommends ca-certificates
+COPY --from=builder /app/dist/rivet-client /app/dist/rivet-isolate-v8-runner /app/dist/rivet-container-runner /usr/local/bin/
+ENTRYPOINT ["rivet-client"]
+
+# MARK: Runner (Isolate V8)
+FROM debian:12-slim AS isolate-v8-runner
+RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y --no-install-recommends ca-certificates
+COPY --from=builder /app/dist/rivet-isolate-v8-runner /usr/local/bin/
+ENTRYPOINT ["rivet-client"]
+
+# MARK: Runner (Container)
+FROM debian:12-slim AS container-runner
+RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y --no-install-recommends ca-certificates
+COPY --from=builder /app/dist/rivet-container-runner /usr/local/bin/
+ENTRYPOINT ["rivet-client"]
diff --git a/docker/client/Dockerfile.dockerignore b/docker/client/Dockerfile.dockerignore
new file mode 100644
index 0000000000..892c380b4e
--- /dev/null
+++ b/docker/client/Dockerfile.dockerignore
@@ -0,0 +1,11 @@
+*
+
+!Cargo.lock
+!Cargo.toml
+!packages
+!resources/legacy/proto
+!sdks/full/rust/Cargo.toml
+!sdks/full/rust/src
+!externals/
+
+sdks/runtime
diff --git a/docker/dev-full/README.md b/docker/dev-full/README.md
index 9c5ccbd99c..1e48b6ff43 100644
--- a/docker/dev-full/README.md
+++ b/docker/dev-full/README.md
@@ -2,3 +2,107 @@
This Docker Compose is intended for running a full development environment for Rivet.
+## Required ports
+
+The following ports need to be open before running Rivet:
+
+- 8080-8082 (Rivet server)
+- 9000 (S3)
+- 20000-20100 (Rivet client host networking)
+
+## Operation
+
+### Start
+
+Start the cluster with:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml up -d
+```
+
+This will start the cluster in detached mode. Once complete, visit the dashboard at [http://localhost:8080](http://localhost:8080).
+
+To test creating an actor end-to-end, run:
+
+```bash
+./scripts/manual_tests/actors_e2e_js.ts
+```
+
+You should see an actor in the actor list in the dashboard.
+
+### Stop
+
+To shut down the Rivet cluster, run:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml down
+```
+
+When you start the cluster again, your data will still be there.
+
+### Nuke from orbit
+
+To destroy all containers & volumes immediately, run:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml down -v -t 0
+```
+
+## Development
+
+### Rebuilding
+
+To rebuild all services, run:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml up -d --build
+```
+
+To rebuild just the server, run:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml up -d --build rivet-server
+```
+
+### Logs
+
+To fetch logs for a service, run:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml logs {name}
+```
+
+#### Following
+
+To follow logs, run:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml logs -f {name}
+```
+
+#### Grep
+
+It's common to use grep (or the more modern
+[ripgrep](https://www.google.com/search?q=ripgrep&oq=ripgrep&sourceid=chrome&ie=UTF-8))
+to filter logs.
+
+For example, to find all errors in `rivet-server` with the 10 preceding lines, run:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml logs rivet-server | grep -B 10 level=error
+```
+
+Logs for `rivet-server` and `rivet-client` can also be configured via the environment. See [here](TODO) for more information.
+
+## Troubleshooting
+
+### Have you tried turning it off and on again?
+
+If something gets _really_ screwed up, you can destroy the entire cluster with:
+
+```bash
+docker-compose -f docker/dev-full/docker-compose.yml down -v -t 0
+```
+
+This will destroy all containers & volumes immediately.
+
diff --git a/docker/dev-full/client.Dockerfile b/docker/dev-full/client.Dockerfile
index 5d9147f42f..160e25ffac 100644
--- a/docker/dev-full/client.Dockerfile
+++ b/docker/dev-full/client.Dockerfile
@@ -8,9 +8,10 @@ RUN apt-get update && apt-get install --yes protobuf-compiler pkg-config libssl-
WORKDIR /app
COPY . .
RUN \
- --mount=type=cache,target=/usr/local/cargo/git \
- --mount=type=cache,target=/usr/local/cargo/registry \
- --mount=type=cache,target=/app/packages/infra/client/target \
+ --mount=type=secret,id=netrc,target=/root/.netrc,mode=0600 \
+ --mount=type=cache,target=/usr/local/cargo/git,id=dev-full-client-cargo-git \
+ --mount=type=cache,target=/usr/local/cargo/registry,id=dev-full-client-cargo-registry \
+ --mount=type=cache,target=/app/packages/infra/client/target,id=dev-full-client-target \
cd packages/infra/client && \
RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-client --bin rivet-isolate-v8-runner --bin rivet-container-runner && \
mkdir -p /app/dist && \
diff --git a/docker/dev-full/client.Dockerfile.dockerignore b/docker/dev-full/client.Dockerfile.dockerignore
index 35d1dabaa4..48005c319b 100644
--- a/docker/dev-full/client.Dockerfile.dockerignore
+++ b/docker/dev-full/client.Dockerfile.dockerignore
@@ -7,6 +7,5 @@
!resources/legacy/proto
!sdks/full/rust/Cargo.toml
!sdks/full/rust/src
-!svc
sdks/runtime
diff --git a/docker/dev-full/docker-compose.yml b/docker/dev-full/docker-compose.yml
index 66d262ef74..37d43a4ede 100644
--- a/docker/dev-full/docker-compose.yml
+++ b/docker/dev-full/docker-compose.yml
@@ -22,8 +22,8 @@ services:
condition: service_healthy
redis:
condition: service_healthy
- clickhouse:
- condition: service_healthy
+ # clickhouse:
+ # condition: service_healthy
nats:
condition: service_healthy
# seaweedfs:
@@ -35,7 +35,7 @@ services:
networks:
- rivet-network
healthcheck:
- test: ["CMD", "curl", "-f", "http://127.0.0.1:8090/health"]
+ test: ["CMD", "curl", "-f", "http://127.0.0.1:8090/health/liveness"]
interval: 2s
timeout: 10s
retries: 10
@@ -140,7 +140,7 @@ services:
command: |
server \
-dir /var/lib/seaweedfs \
- -master.raftHashicorp \
+ -master.raftBootstrap -master.raftHashicorp \
-s3 -s3.config /etc/seaweedfs/s3.json -s3.port=9000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false
volumes:
- ./seaweedfs:/etc/seaweedfs:ro
diff --git a/docker/dev-full/rivet-server/config.yaml b/docker/dev-full/rivet-server/config.yaml
index 4f9fc457a2..bd2053f019 100644
--- a/docker/dev-full/rivet-server/config.yaml
+++ b/docker/dev-full/rivet-server/config.yaml
@@ -15,16 +15,16 @@ server:
persistent:
url: redis://redis:6379
password: password
- clickhouse:
- http_url: http://clickhouse:8123
- native_url: clickhouse://clickhouse:9000
- username: default
- password: default
- provision_users:
- vector:
- username: vector
- password: vector
- role: write
+ # clickhouse:
+ # http_url: http://clickhouse:8123
+ # native_url: clickhouse://clickhouse:9000
+ # username: default
+ # password: default
+ # provision_users:
+ # vector:
+ # username: vector
+ # password: vector
+ # role: write
s3:
region: us-east-1
endpoint_internal: http://seaweedfs:9000
diff --git a/docker/dev-full/server.Dockerfile b/docker/dev-full/server.Dockerfile
index 5463865b36..d2768e290a 100644
--- a/docker/dev-full/server.Dockerfile
+++ b/docker/dev-full/server.Dockerfile
@@ -34,9 +34,9 @@ COPY . .
# Build and copy all binaries from target directory into an empty image (it is not
# included in the output because of cache mount)
RUN \
- --mount=type=cache,target=/usr/local/cargo/git \
- --mount=type=cache,target=/usr/local/cargo/registry \
- --mount=type=cache,target=/app/target \
+ --mount=type=cache,target=/usr/local/cargo/git,id=dev-full-server-cargo-git \
+ --mount=type=cache,target=/usr/local/cargo/registry,id=dev-full-server-cargo-registry \
+ --mount=type=cache,target=/app/target,id=dev-full-server-target \
RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-server && \
mv target/debug/rivet-server /usr/bin/rivet-server && \
mkdir /etc/rivet-server
diff --git a/docker/dev-monolith/Dockerfile.dockerignore b/docker/dev-monolith/Dockerfile.dockerignore
deleted file mode 100644
index 62523a4da4..0000000000
--- a/docker/dev-monolith/Dockerfile.dockerignore
+++ /dev/null
@@ -1,17 +0,0 @@
-*
-
-!Cargo.lock
-!Cargo.toml
-!sdks/full/rust/Cargo.toml
-!sdks/full/rust/src
-!packages
-!resources/legacy/proto
-
-!docker/dev-monolith
-docker/dev-monolith/Dockerfile
-docker/dev-monolith/Dockerfile.dockerignore
-docker/dev-monolith/*.md
-
-sdks/runtime
-svc/**/*.md
-
diff --git a/docker/dev-monolith/Dockerfile b/docker/monolith/Dockerfile
similarity index 75%
rename from docker/dev-monolith/Dockerfile
rename to docker/monolith/Dockerfile
index fb461aedde..2cf64232d2 100644
--- a/docker/dev-monolith/Dockerfile
+++ b/docker/monolith/Dockerfile
@@ -20,11 +20,12 @@ WORKDIR /app
COPY . .
RUN \
- --mount=type=cache,target=/usr/local/cargo/git \
- --mount=type=cache,target=/usr/local/cargo/registry \
- --mount=type=cache,target=/app/target \
- RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-server && \
- mv target/debug/rivet-server /usr/bin/rivet-server
+ --mount=type=secret,id=netrc,target=/root/.netrc,mode=0600 \
+ --mount=type=cache,target=/usr/local/cargo/git,id=monolith-server-cargo-git \
+ --mount=type=cache,target=/usr/local/cargo/registry,id=monolith-server-cargo-registry \
+ --mount=type=cache,target=/app/target,id=monolith-server-target \
+ RUSTFLAGS="--cfg tokio_unstable" cargo build -vv --release --bin rivet-server && \
+ mv target/release/rivet-server /usr/bin/rivet-server
# MARK: Rivet Client Builder
FROM rust:1.82.0-bullseye AS client-builder
@@ -36,13 +37,14 @@ RUN apt-get update && apt-get install --yes protobuf-compiler pkg-config libssl-
WORKDIR /app
COPY . .
RUN \
- --mount=type=cache,target=/usr/local/cargo/git \
- --mount=type=cache,target=/usr/local/cargo/registry \
- --mount=type=cache,target=/app/packages/infra/client/target \
+ --mount=type=secret,id=netrc,target=/root/.netrc,mode=0600 \
+ --mount=type=cache,target=/usr/local/cargo/git,id=monolith-client-cargo-git \
+ --mount=type=cache,target=/usr/local/cargo/registry,id=monolith-client-cargo-registry \
+ --mount=type=cache,target=/app/packages/infra/client/target,id=monolith-client-target \
cd packages/infra/client && \
- RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-client --bin rivet-isolate-v8-runner --bin rivet-container-runner && \
+ RUSTFLAGS="--cfg tokio_unstable" cargo build -vv --release --bin rivet-client --bin rivet-isolate-v8-runner --bin rivet-container-runner && \
mkdir -p /app/dist && \
- mv target/debug/rivet-client target/debug/rivet-isolate-v8-runner target/debug/rivet-container-runner /app/dist/
+ mv target/release/rivet-client target/release/rivet-isolate-v8-runner target/release/rivet-container-runner /app/dist/
# MARK: Runner
#
@@ -92,8 +94,8 @@ RUN useradd -m -s /bin/bash clickhouse && \
echo "deb [signed-by=/usr/share/keyrings/clickhouse-keyring.gpg] https://packages.clickhouse.com/deb stable main" | tee /etc/apt/sources.list.d/clickhouse.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y clickhouse-client clickhouse-server
-COPY ./docker/dev-monolith/clickhouse/config.xml /etc/clickhouse-server/config.d/config.xml
-COPY ./docker/dev-monolith/clickhouse/users.xml /etc/clickhouse-server/users.d/users.xml
+COPY ./docker/monolith/clickhouse/config.xml /etc/clickhouse-server/config.d/config.xml
+COPY ./docker/monolith/clickhouse/users.xml /etc/clickhouse-server/users.d/users.xml
# === NATS ===
RUN useradd -m -s /bin/bash nats && \
@@ -103,7 +105,7 @@ RUN useradd -m -s /bin/bash nats && \
# === SeaweedFS ===
RUN useradd -m -s /bin/bash seaweedfs && \
curl -sSLf https://github.com/seaweedfs/seaweedfs/releases/download/${SEAWEEDFS_VERSION}/linux_$(cat /tmp/arch).tar.gz | tar xz -C /usr/local/bin/
-COPY ./docker/dev-monolith/seaweedfs /etc/seaweedfs
+COPY ./docker/monolith/seaweedfs /etc/seaweedfs
# === Vector ===
RUN useradd -m -s /bin/bash vector-client && \
@@ -111,8 +113,8 @@ RUN useradd -m -s /bin/bash vector-client && \
curl -sSLf https://packages.timber.io/vector/${VECTOR_VERSION}/vector_${VECTOR_VERSION}-1_$(cat /tmp/arch).deb -o /tmp/vector.deb && \
dpkg -i /tmp/vector.deb && \
rm /tmp/vector.deb
-COPY ./docker/dev-monolith/vector-client /etc/vector-client
-COPY ./docker/dev-monolith/vector-server /etc/vector-server
+COPY ./docker/monolith/vector-client /etc/vector-client
+COPY ./docker/monolith/vector-server /etc/vector-server
# === S6 Overlay ===
RUN curl -sSLf https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz -o /tmp/s6-overlay-noarch.tar.xz && \
@@ -121,17 +123,17 @@ RUN curl -sSLf https://github.com/just-containers/s6-overlay/releases/download/v
tar -C / -Jxpf /tmp/s6-overlay-$(uname -m).tar.xz
# Setup S6
-COPY ./docker/dev-monolith/scripts /tmp/scripts
+COPY ./docker/monolith/scripts /tmp/scripts
RUN deno run --allow-read --allow-write /tmp/scripts/setup_s6.ts
# === Rivet Server ===
RUN useradd -m -s /bin/bash rivet-server
-COPY ./docker/dev-monolith/rivet-server /etc/rivet-server
+COPY ./docker/monolith/rivet-server /etc/rivet-server
# === Rivet Client ===
#
# Rivet Client runs as root.
-COPY ./docker/dev-monolith/rivet-client /etc/rivet-client
+COPY ./docker/monolith/rivet-client /etc/rivet-client
# === Copy Build Artifacts ===
COPY --from=server-builder /usr/bin/rivet-server /usr/local/bin/
@@ -139,12 +141,6 @@ COPY --from=client-builder /app/dist/rivet-client /usr/local/bin/
COPY --from=client-builder /app/dist/rivet-isolate-v8-runner /usr/local/bin/
COPY --from=client-builder /app/dist/rivet-container-runner /usr/local/bin/
-# Default environment variables
-ENV RUST_BACKTRACE=1 \
- RUST_LOG=debug,hyper=info \
- RUST_LOG_TARGET=1 \
- RUST_LOG_SPAN_PATH=1
-
# Expose ports
VOLUME ["/data"]
EXPOSE 8080 8081 8082 8080 20000-20100
diff --git a/docker/monolith/Dockerfile.dockerignore b/docker/monolith/Dockerfile.dockerignore
new file mode 100644
index 0000000000..6efd3238e3
--- /dev/null
+++ b/docker/monolith/Dockerfile.dockerignore
@@ -0,0 +1,17 @@
+*
+
+!Cargo.lock
+!Cargo.toml
+!sdks/full/rust/Cargo.toml
+!sdks/full/rust/src
+!packages
+!resources/legacy/proto
+!externals/
+
+!docker/monolith
+docker/monolith/Dockerfile
+docker/monolith/Dockerfile.dockerignore
+docker/monolith/*.md
+
+sdks/runtime
+
diff --git a/docker/dev-monolith/README.md b/docker/monolith/README.md
similarity index 86%
rename from docker/dev-monolith/README.md
rename to docker/monolith/README.md
index 60700137e2..3e60b581e3 100644
--- a/docker/dev-monolith/README.md
+++ b/docker/monolith/README.md
@@ -9,7 +9,7 @@ This container is intended for quickly running Rivet with a single `docker run`
Before running the image, it needs to be built:
```bash
-docker build -f docker/dev-monolith/Dockerfile -t rivet .
+docker build -f docker/monolith/Dockerfile -t rivet .
```
### Run via `docker run`
@@ -62,7 +62,7 @@ vector top --url http://0.0.0.0:9510/graphql
## Testing
```bash
-docker build -f docker/dev-monolith/Dockerfile -t rivet . && docker run --name rivet --rm -v "/tmp/rivet-data:/data" -p 8080:8080 -p 9000:9000 -p 20000-20100:20000-20100 rivet
+docker build -f docker/monolith/Dockerfile -t rivet . && docker run --name rivet --rm -v "/tmp/rivet-data:/data" -p 8080:8080 -p 9000:9000 -p 20000-20100:20000-20100 rivet
```
## Port collisions
diff --git a/docker/dev-monolith/clickhouse/config.xml b/docker/monolith/clickhouse/config.xml
similarity index 100%
rename from docker/dev-monolith/clickhouse/config.xml
rename to docker/monolith/clickhouse/config.xml
diff --git a/docker/dev-monolith/clickhouse/users.xml b/docker/monolith/clickhouse/users.xml
similarity index 100%
rename from docker/dev-monolith/clickhouse/users.xml
rename to docker/monolith/clickhouse/users.xml
diff --git a/docker/dev-monolith/rivet-client/config.yaml b/docker/monolith/rivet-client/config.yaml
similarity index 100%
rename from docker/dev-monolith/rivet-client/config.yaml
rename to docker/monolith/rivet-client/config.yaml
diff --git a/docker/dev-monolith/rivet-server/config.yaml b/docker/monolith/rivet-server/config.yaml
similarity index 100%
rename from docker/dev-monolith/rivet-server/config.yaml
rename to docker/monolith/rivet-server/config.yaml
diff --git a/docker/dev-monolith/scripts/deno.jsonc b/docker/monolith/scripts/deno.jsonc
similarity index 100%
rename from docker/dev-monolith/scripts/deno.jsonc
rename to docker/monolith/scripts/deno.jsonc
diff --git a/docker/dev-monolith/scripts/setup_s6.ts b/docker/monolith/scripts/setup_s6.ts
similarity index 100%
rename from docker/dev-monolith/scripts/setup_s6.ts
rename to docker/monolith/scripts/setup_s6.ts
diff --git a/docker/dev-monolith/seaweedfs/s3.json b/docker/monolith/seaweedfs/s3.json
similarity index 100%
rename from docker/dev-monolith/seaweedfs/s3.json
rename to docker/monolith/seaweedfs/s3.json
diff --git a/docker/dev-monolith/vector-client/vector.yaml b/docker/monolith/vector-client/vector.yaml
similarity index 100%
rename from docker/dev-monolith/vector-client/vector.yaml
rename to docker/monolith/vector-client/vector.yaml
diff --git a/docker/dev-monolith/vector-server/vector.yaml b/docker/monolith/vector-server/vector.yaml
similarity index 100%
rename from docker/dev-monolith/vector-server/vector.yaml
rename to docker/monolith/vector-server/vector.yaml
diff --git a/docker/server/Dockerfile b/docker/server/Dockerfile
new file mode 100644
index 0000000000..9836f6966a
--- /dev/null
+++ b/docker/server/Dockerfile
@@ -0,0 +1,72 @@
+# syntax=docker/dockerfile:1.2
+
+# MARK: Builder
+FROM rust:1.82.0-slim AS build
+
+RUN apt-get update && \
+ DEBIAN_FRONTEND=noninteractive apt-get install -y \
+ protobuf-compiler \
+ pkg-config \
+ libssl-dev \
+ g++ \
+ git \
+ libpq-dev \
+ wget \
+ ca-certificates \
+ openssl \
+ curl \
+ gpg
+
+WORKDIR /app
+
+COPY . .
+
+# Build and copy all binaries from target directory into an empty image (it is not
+# included in the output because of cache mount)
+RUN \
+ --mount=type=secret,id=netrc,target=/root/.netrc,mode=0600 \
+ --mount=type=cache,target=/usr/local/cargo/git,id=server-cargo-git \
+ --mount=type=cache,target=/usr/local/cargo/registry,id=server-cargo-registry \
+ --mount=type=cache,target=/app/target,id=server-target \
+ RUSTFLAGS="--cfg tokio_unstable" cargo build -vv --bin rivet-server --release && \
+ mv target/release/rivet-server /usr/bin/rivet-server && \
+ mkdir /etc/rivet-server
+
+# MARK: Full
+FROM debian:12.1-slim AS full
+
+# - Install curl for health checks
+# - Install go-migrate for running migrations
+# - Install database clients to be able to run `rivet db shell ...` (Redis, Postgres, ClickHouse)
+RUN apt-get update && \
+ DEBIAN_FRONTEND=noninteractive apt-get install -y \
+ ca-certificates \
+ openssl \
+ curl \
+ redis-tools \
+ postgresql-client \
+ gpg && \
+ curl -fsSL 'https://packages.clickhouse.com/rpm/lts/repodata/repomd.xml.key' | gpg --dearmor -o /usr/share/keyrings/clickhouse-keyring.gpg && \
+ echo "deb [signed-by=/usr/share/keyrings/clickhouse-keyring.gpg] https://packages.clickhouse.com/deb stable main" | tee /etc/apt/sources.list.d/clickhouse.list && \
+ apt-get update && \
+ DEBIAN_FRONTEND=noninteractive apt-get install -y clickhouse-client && \
+ (curl -L https://github.com/golang-migrate/migrate/releases/download/v4.18.1/migrate.linux-amd64.tar.gz | tar xvz) && \
+ mv migrate /usr/local/bin/migrate && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
+
+COPY --from=build /usr/bin/rivet-server /usr/bin/rivet-server
+
+CMD ["/usr/bin/rivet-server"]
+
+# MARK: Slim
+FROM debian:12.1-slim AS slim
+
+RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \
+ apt-get install -y --no-install-recommends ca-certificates openssl && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
+
+COPY --from=build /usr/bin/rivet-server /usr/bin/rivet-server
+
+CMD ["/usr/bin/rivet-server"]
diff --git a/docs-internal/infrastructure/rust/GIT_DEPENDENCIES.md b/docs-internal/infrastructure/rust/GIT_DEPENDENCIES.md
new file mode 100644
index 0000000000..d1c57cf46d
--- /dev/null
+++ b/docs-internal/infrastructure/rust/GIT_DEPENDENCIES.md
@@ -0,0 +1,13 @@
+# Git Dependencies
+
+We opt to use submodules instead of Git dependencies because of complications with building:
+
+- Primariy, there are bugs with the Cargo git fetcher that cause it to not be
+ able to pull from GitHub Actions
+- Development on externals is easier when developing in-place with a Git
+ submodule instead of having to push & update the ref every iteration
+- Authenticating Git inside of a Docker build step is dangerous process that
+ can lead to accidentally leaking credentials
+ - Currently, we support mounting a netrc secret which is safe, but this
+ doesn't seem to solve the bugs with the Cargo git fetcher
+
diff --git a/docs-internal/processes/GITHUB_ACTIONS.md b/docs-internal/processes/GITHUB_ACTIONS.md
new file mode 100644
index 0000000000..42b8c85a6d
--- /dev/null
+++ b/docs-internal/processes/GITHUB_ACTIONS.md
@@ -0,0 +1,22 @@
+# GitHub Actions
+
+## When to use self hosted vs managed runners
+
+**Managed runners**
+
+Managed runners are good for running bursts of jobs in parallel, quickly.
+
+Use these for low-CPU intensive jobs, like formatting, linting, etc. Using
+these for resource-hungry jobs will make those jobs take a long time and cost a
+lot of money.
+
+**Self-hosted Runners**
+
+Self-hosted runners are good for running hardware intensive jobs quickly.
+However, they have a fixed number of nodes that can run one job at a time each,
+so we want to (a) always target 100% resource usage and (b) maintain as few of
+these as possible in order to keep them cheap.
+
+Use these for CPU- & memory-intensive jobs. Using these for low-CPU intensive
+jobs will cause jobs to queue up and take a long time to complete.
+
diff --git a/docs/scripts/buildcf.sh b/docs/scripts/buildcf.sh
index df0712f5a3..1c6e866706 100755
--- a/docs/scripts/buildcf.sh
+++ b/docs/scripts/buildcf.sh
@@ -1,7 +1,10 @@
#!/bin/sh
+set -euf
+
# Clone modules repository to parent directory
-cd ..
-git clone https://github.com/rivet-gg/modules.git --depth=1 --branch main
-cd repo
+(
+ cd .. &&
+ git clone https://github.com/rivet-gg/modules.git --depth=1 --branch main
+)
yarn
-next build && cp _redirects out/_redirects
\ No newline at end of file
+npx next build && cp _redirects out/_redirects
diff --git a/docs/src/app/(v2)/docs/[...slug]/layout.tsx b/docs/src/app/(v2)/docs/[...slug]/layout.tsx
index f591f4c67b..9a989fc618 100644
--- a/docs/src/app/(v2)/docs/[...slug]/layout.tsx
+++ b/docs/src/app/(v2)/docs/[...slug]/layout.tsx
@@ -8,8 +8,8 @@ function Subnav({ slug }) {
const fullPath = `/docs/${slug.join('/')}`;
return (
- {sitemap.map(({ title, href, sidebar }) => (
- {title}
+ {sitemap.map(({ title, href, sidebar }, i) => (
+ {title}
))}
);
diff --git a/docs/src/authors/forest-anderson/avatar.jpeg b/docs/src/authors/forest-anderson/avatar.jpeg
index add0082dfa..8bc4e62f79 100644
Binary files a/docs/src/authors/forest-anderson/avatar.jpeg and b/docs/src/authors/forest-anderson/avatar.jpeg differ
diff --git a/docs/src/authors/nathan-flurry/avatar.jpeg b/docs/src/authors/nathan-flurry/avatar.jpeg
index 294284d5e9..521e661c18 100644
Binary files a/docs/src/authors/nathan-flurry/avatar.jpeg and b/docs/src/authors/nathan-flurry/avatar.jpeg differ
diff --git a/docs/src/authors/nicholas-kissel/avatar.jpeg b/docs/src/authors/nicholas-kissel/avatar.jpeg
index 748d1c839c..ce765264c0 100644
Binary files a/docs/src/authors/nicholas-kissel/avatar.jpeg and b/docs/src/authors/nicholas-kissel/avatar.jpeg differ
diff --git a/docs/src/sitemap/mod.ts b/docs/src/sitemap/mod.ts
index 5acdcf1cc5..567cdaa61f 100644
--- a/docs/src/sitemap/mod.ts
+++ b/docs/src/sitemap/mod.ts
@@ -10,7 +10,7 @@ import { Sitemap, SiteTab } from '@/lib/sitemap';
// - Does it work for my use cases -> Use Cases
// - Curious about the technology -> Build with Rivet
// - Just want to jump in
-// - Poeple who want to run Open Source
+// - People who want to run Open Source
export const sitemap = [
{
diff --git a/externals/cloudflare-rs b/externals/cloudflare-rs
new file mode 160000
index 0000000000..f14720e421
--- /dev/null
+++ b/externals/cloudflare-rs
@@ -0,0 +1 @@
+Subproject commit f14720e42184ee176a97676e85ef2d2d85bc3aae
diff --git a/externals/deno b/externals/deno
new file mode 160000
index 0000000000..bd98563214
--- /dev/null
+++ b/externals/deno
@@ -0,0 +1 @@
+Subproject commit bd98563214c532c8dae97d918edb501fe1c72dbc
diff --git a/externals/nomad-client b/externals/nomad-client
new file mode 160000
index 0000000000..abb66bf0c3
--- /dev/null
+++ b/externals/nomad-client
@@ -0,0 +1 @@
+Subproject commit abb66bf0c30c7ff5b0c695dae952481c33e538b5
diff --git a/externals/posthog-rs b/externals/posthog-rs
new file mode 160000
index 0000000000..ef4e80e577
--- /dev/null
+++ b/externals/posthog-rs
@@ -0,0 +1 @@
+Subproject commit ef4e80e57747ea7204794bce9a103bfeccefabf1
diff --git a/externals/redis-rs b/externals/redis-rs
new file mode 160000
index 0000000000..ac3e27fa1d
--- /dev/null
+++ b/externals/redis-rs
@@ -0,0 +1 @@
+Subproject commit ac3e27fa1d133847db54354493f4d25957ad3466
diff --git a/externals/rivet-term b/externals/rivet-term
new file mode 160000
index 0000000000..d539a07d29
--- /dev/null
+++ b/externals/rivet-term
@@ -0,0 +1 @@
+Subproject commit d539a07d2920d47b88410f20e6d106b497cff1f5
diff --git a/externals/serde_array_query b/externals/serde_array_query
new file mode 160000
index 0000000000..b9f8bfad77
--- /dev/null
+++ b/externals/serde_array_query
@@ -0,0 +1 @@
+Subproject commit b9f8bfad77aea6f01dccc6cb77146b8c5daecaa3
diff --git a/externals/sqlx b/externals/sqlx
new file mode 160000
index 0000000000..e7120f59b7
--- /dev/null
+++ b/externals/sqlx
@@ -0,0 +1 @@
+Subproject commit e7120f59b74fb6d83ac9b1d899b166bab31ba1d6
diff --git a/packages/api/traefik-provider/Cargo.toml b/packages/api/traefik-provider/Cargo.toml
index d6b6544a6c..304de1374d 100644
--- a/packages/api/traefik-provider/Cargo.toml
+++ b/packages/api/traefik-provider/Cargo.toml
@@ -43,8 +43,7 @@ rivet-config = { version = "0.1.0", path = "../../common/config" }
rivet-env = { version = "0.1.0", path = "../../common/env" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
features = ["json"]
diff --git a/packages/common/api-helper/build/Cargo.toml b/packages/common/api-helper/build/Cargo.toml
index 628d0964b8..a798393685 100644
--- a/packages/common/api-helper/build/Cargo.toml
+++ b/packages/common/api-helper/build/Cargo.toml
@@ -51,8 +51,7 @@ url = "2.2.2"
uuid = { version = "1", features = ["v4"] }
[dependencies.serde_array_query]
-git = "https://github.com/rivet-gg/serde_array_query.git"
-rev = "b9f8bfad77aea6f01dccc6cb77146b8c5daecaa3" # pragma: allowlist secret
+path = "../../../../externals/serde_array_query"
[dev-dependencies]
chirp-worker = { path = "../../chirp/worker" }
diff --git a/packages/common/cache/build/Cargo.toml b/packages/common/cache/build/Cargo.toml
index 5b7eb61b82..651105becd 100644
--- a/packages/common/cache/build/Cargo.toml
+++ b/packages/common/cache/build/Cargo.toml
@@ -26,8 +26,7 @@ uuid = { version = "1", features = ["v4"] }
[dependencies.redis]
# TODO: https://github.com/rivet-gg/rivet/issues/508
-git = "https://github.com/rivet-gg/redis-rs.git"
-rev = "ac3e27fa1d133847db54354493f4d25957ad3466"
+path = "../../../../externals/redis-rs/redis"
default-features = false
features = [
"keep-alive",
diff --git a/packages/common/chirp-workflow/core/Cargo.toml b/packages/common/chirp-workflow/core/Cargo.toml
index 6dbd85f456..4a6e4a266b 100644
--- a/packages/common/chirp-workflow/core/Cargo.toml
+++ b/packages/common/chirp-workflow/core/Cargo.toml
@@ -38,8 +38,7 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
uuid = { version = "1.8.0", features = ["v4", "serde"] }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../externals/sqlx"
default-features = false
features = [
"runtime-tokio",
diff --git a/packages/common/chirp/perf/Cargo.toml b/packages/common/chirp/perf/Cargo.toml
index db64d9266d..3b58865850 100644
--- a/packages/common/chirp/perf/Cargo.toml
+++ b/packages/common/chirp/perf/Cargo.toml
@@ -22,8 +22,7 @@ features = ["v4", "serde"]
[dependencies.redis]
# TODO: https://github.com/rivet-gg/rivet/issues/508
-git = "https://github.com/rivet-gg/redis-rs.git"
-rev = "ac3e27fa1d133847db54354493f4d25957ad3466"
+path = "../../../../externals/redis-rs/redis"
default-features = false
features = [
"keep-alive",
diff --git a/packages/common/chirp/worker/Cargo.toml b/packages/common/chirp/worker/Cargo.toml
index 73a96a5c52..4071f504bf 100644
--- a/packages/common/chirp/worker/Cargo.toml
+++ b/packages/common/chirp/worker/Cargo.toml
@@ -50,8 +50,7 @@ features = ["v4", "serde"]
[dependencies.redis]
# TODO: https://github.com/rivet-gg/rivet/issues/508
-git = "https://github.com/rivet-gg/redis-rs.git"
-rev = "ac3e27fa1d133847db54354493f4d25957ad3466"
+path = "../../../../externals/redis-rs/redis"
default-features = false
features = [
"keep-alive",
diff --git a/packages/common/nomad-util/Cargo.toml b/packages/common/nomad-util/Cargo.toml
index 4c821ca7e0..c969c89143 100644
--- a/packages/common/nomad-util/Cargo.toml
+++ b/packages/common/nomad-util/Cargo.toml
@@ -22,5 +22,4 @@ tracing = "0.1"
[dependencies.nomad_client_new]
package = "nomad_client"
-git = "https://github.com/rivet-gg/nomad-client"
-rev = "abb66bf0c30c7ff5b0c695dae952481c33e538b5" # pragma: allowlist secret
+path = "../../../externals/nomad-client"
diff --git a/packages/common/pools/Cargo.toml b/packages/common/pools/Cargo.toml
index 9de05e669f..710fbf386c 100644
--- a/packages/common/pools/Cargo.toml
+++ b/packages/common/pools/Cargo.toml
@@ -24,8 +24,7 @@ url = "2.4"
rivet-config = { version = "0.1.0", path = "../config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
features = [
"runtime-tokio",
@@ -40,8 +39,7 @@ features = [
[dependencies.redis]
# TODO: https://github.com/rivet-gg/rivet/issues/508
-git = "https://github.com/rivet-gg/redis-rs.git"
-rev = "ac3e27fa1d133847db54354493f4d25957ad3466"
+path = "../../../externals/redis-rs/redis"
default-features = false
features = [
"keep-alive",
diff --git a/packages/common/redis-util/Cargo.toml b/packages/common/redis-util/Cargo.toml
index 0b377b2f94..ae41becf99 100644
--- a/packages/common/redis-util/Cargo.toml
+++ b/packages/common/redis-util/Cargo.toml
@@ -11,7 +11,6 @@ regex = "1.5"
[dependencies.redis]
# TODO: https://github.com/rivet-gg/rivet/issues/508
-git = "https://github.com/rivet-gg/redis-rs.git"
-rev = "ac3e27fa1d133847db54354493f4d25957ad3466"
+path = "../../../externals/redis-rs/redis"
default-features = false
diff --git a/packages/common/util/core/Cargo.toml b/packages/common/util/core/Cargo.toml
index 7f2e49e05e..1f45e9025c 100644
--- a/packages/common/util/core/Cargo.toml
+++ b/packages/common/util/core/Cargo.toml
@@ -39,8 +39,7 @@ types-proto = { path = "../../types-proto/core" }
uuid = { version = "1", features = ["v4", "serde"] }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../externals/sqlx"
default-features = false
features = [
"runtime-tokio",
diff --git a/packages/infra/client/Cargo.lock b/packages/infra/client/Cargo.lock
index fd143561fc..665490925d 100644
--- a/packages/infra/client/Cargo.lock
+++ b/packages/infra/client/Cargo.lock
@@ -141,9 +141,9 @@ dependencies = [
[[package]]
name = "allocator-api2"
-version = "0.2.18"
+version = "0.2.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
+checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9"
[[package]]
name = "android-tzdata"
@@ -162,9 +162,9 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.91"
+version = "1.0.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8"
+checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775"
[[package]]
name = "arraydeque"
@@ -244,7 +244,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -280,7 +280,7 @@ checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -291,7 +291,7 @@ checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -428,13 +428,13 @@ dependencies = [
"lazy_static",
"lazycell",
"log",
- "prettyplease 0.2.24",
+ "prettyplease 0.2.25",
"proc-macro2",
"quote",
"regex",
"rustc-hash",
"shlex",
- "syn 2.0.82",
+ "syn 2.0.87",
"which 4.4.2",
]
@@ -599,9 +599,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.1.31"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2e7962b54006dcfcc61cb72735f4d89bb97061dd6a7ed882ec6b8ee53714c6f"
+checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47"
dependencies = [
"shlex",
]
@@ -712,17 +712,16 @@ dependencies = [
[[package]]
name = "config"
-version = "0.14.0"
+version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7328b20597b53c2454f0b1919720c25c7339051c02b72b7e05409e00b14132be"
+checksum = "68578f196d2a33ff61b27fae256c3164f65e36382648e30666dde05b8cc9dfdf"
dependencies = [
"async-trait",
- "lazy_static",
"nom 7.1.3",
"pathdiff",
"serde",
"serde_json",
- "yaml-rust",
+ "yaml-rust2",
]
[[package]]
@@ -766,9 +765,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.14"
+version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0"
+checksum = "0ca741a962e1b0bff6d724a1a0958b686406e853bb14061f218562e1896f95e6"
dependencies = [
"libc",
]
@@ -896,7 +895,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -958,7 +957,7 @@ dependencies = [
"once_cell",
"percent-encoding",
"serde",
- "sourcemap 9.0.0",
+ "sourcemap 9.1.0",
"swc_atoms",
"swc_common",
"swc_config",
@@ -989,7 +988,6 @@ dependencies = [
[[package]]
name = "deno_broadcast_channel"
version = "0.165.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"async-trait",
"deno_core",
@@ -1001,7 +999,6 @@ dependencies = [
[[package]]
name = "deno_cache"
version = "0.103.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"async-trait",
"deno_core",
@@ -1015,7 +1012,6 @@ dependencies = [
[[package]]
name = "deno_canvas"
version = "0.40.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"deno_webgpu",
@@ -1027,7 +1023,6 @@ dependencies = [
[[package]]
name = "deno_console"
version = "0.171.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
]
@@ -1073,7 +1068,6 @@ checksum = "a13951ea98c0a4c372f162d669193b4c9d991512de9f2381dd161027f34b26b1"
[[package]]
name = "deno_cron"
version = "0.51.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"anyhow",
"async-trait",
@@ -1087,7 +1081,6 @@ dependencies = [
[[package]]
name = "deno_crypto"
version = "0.185.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"aes",
"aes-gcm",
@@ -1123,7 +1116,6 @@ dependencies = [
[[package]]
name = "deno_fetch"
version = "0.195.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"base64 0.21.7",
"bytes",
@@ -1155,7 +1147,6 @@ dependencies = [
[[package]]
name = "deno_ffi"
version = "0.158.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"deno_permissions",
@@ -1173,7 +1164,6 @@ dependencies = [
[[package]]
name = "deno_fs"
version = "0.81.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"async-trait",
"base32",
@@ -1195,7 +1185,6 @@ dependencies = [
[[package]]
name = "deno_http"
version = "0.169.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"async-compression",
"async-trait",
@@ -1232,7 +1221,6 @@ dependencies = [
[[package]]
name = "deno_io"
version = "0.81.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"async-trait",
"deno_core",
@@ -1254,7 +1242,6 @@ dependencies = [
[[package]]
name = "deno_kv"
version = "0.79.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"anyhow",
"async-trait",
@@ -1296,7 +1283,6 @@ dependencies = [
[[package]]
name = "deno_napi"
version = "0.102.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"deno_permissions",
@@ -1319,7 +1305,6 @@ dependencies = [
[[package]]
name = "deno_net"
version = "0.163.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"deno_permissions",
@@ -1336,7 +1321,6 @@ dependencies = [
[[package]]
name = "deno_node"
version = "0.108.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"aead-gcm-stream",
"aes",
@@ -1435,7 +1419,7 @@ dependencies = [
"quote",
"strum 0.25.0",
"strum_macros 0.25.3",
- "syn 2.0.82",
+ "syn 2.0.87",
"thiserror",
]
@@ -1467,7 +1451,6 @@ dependencies = [
[[package]]
name = "deno_permissions"
version = "0.31.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"deno_path_util",
@@ -1485,7 +1468,6 @@ dependencies = [
[[package]]
name = "deno_runtime"
version = "0.180.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_ast",
"deno_broadcast_channel",
@@ -1583,11 +1565,10 @@ dependencies = [
[[package]]
name = "deno_tls"
version = "0.158.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"deno_native_certs",
- "rustls 0.23.15",
+ "rustls 0.23.17",
"rustls-pemfile 2.2.0",
"rustls-tokio-stream",
"rustls-webpki 0.102.8",
@@ -1610,7 +1591,6 @@ dependencies = [
[[package]]
name = "deno_url"
version = "0.171.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"urlpattern",
@@ -1619,7 +1599,6 @@ dependencies = [
[[package]]
name = "deno_web"
version = "0.202.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"async-trait",
"base64-simd 0.8.0",
@@ -1637,7 +1616,6 @@ dependencies = [
[[package]]
name = "deno_webgpu"
version = "0.138.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"raw-window-handle",
@@ -1650,7 +1628,6 @@ dependencies = [
[[package]]
name = "deno_webidl"
version = "0.171.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
]
@@ -1658,7 +1635,6 @@ dependencies = [
[[package]]
name = "deno_websocket"
version = "0.176.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"bytes",
"deno_core",
@@ -1680,7 +1656,6 @@ dependencies = [
[[package]]
name = "deno_webstorage"
version = "0.166.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"deno_core",
"deno_web",
@@ -1699,25 +1674,25 @@ dependencies = [
[[package]]
name = "denokv_proto"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25e4ca7a6388ad11c5b8d8ad2300dbd57cdd1ba20fe7feb25aa5da8ae0ea83fd"
+checksum = "f7ba1f99ed11a9c11e868a8521b1f71a7e1aba785d7f42ea9ecbdc01146c89ec"
dependencies = [
"anyhow",
"async-trait",
"chrono",
"futures",
"num-bigint",
- "prost 0.11.9",
+ "prost 0.13.3",
"serde",
"uuid",
]
[[package]]
name = "denokv_remote"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63bf273105c8ea5497fff56ec2729f72898347359b385ec9420158230a07ce67"
+checksum = "08ed833073189e8f6d03155fe3b05a024e75e29d8a28a4c2e9ec3b5c925e727b"
dependencies = [
"anyhow",
"async-stream",
@@ -1728,7 +1703,7 @@ dependencies = [
"futures",
"http 1.1.0",
"log",
- "prost 0.11.9",
+ "prost 0.13.3",
"rand",
"serde",
"serde_json",
@@ -1740,9 +1715,9 @@ dependencies = [
[[package]]
name = "denokv_sqlite"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e32dcfde2d7b2ed3200e2cdc2f90a6aeee31c83a2dd89425356f509f1238759"
+checksum = "9b790f01d1302d53a0c3cbd27de88a06b3abd64ec8ab8673924e490541c7c713"
dependencies = [
"anyhow",
"async-stream",
@@ -1797,7 +1772,7 @@ checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -1850,7 +1825,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -1885,7 +1860,7 @@ checksum = "f2b99bf03862d7f545ebc28ddd33a665b50865f4dfd84031a393823879bd4c54"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -2084,7 +2059,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -2181,9 +2156,9 @@ dependencies = [
[[package]]
name = "fastrand"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
+checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4"
[[package]]
name = "fastwebsockets"
@@ -2218,9 +2193,9 @@ dependencies = [
[[package]]
name = "fdeflate"
-version = "0.3.5"
+version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8090f921a24b04994d9929e204f50b498a33ea6ba559ffaa05e04f7ee7fb5ab"
+checksum = "07c6f4c64c1d33a3111c4466f7365ebdcc37c5bd1ea0d62aae2e3d722aacbedb"
dependencies = [
"simd-adler32",
]
@@ -2267,9 +2242,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
[[package]]
name = "flate2"
-version = "1.0.34"
+version = "1.0.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0"
+checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c"
dependencies = [
"crc32fast",
"miniz_oxide 0.8.0",
@@ -2319,7 +2294,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -2363,7 +2338,7 @@ checksum = "32016f1242eb82af5474752d00fd8ebcd9004bd69b462b1c91de833972d08ed4"
dependencies = [
"proc-macro2",
"swc_macros_common",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -2469,7 +2444,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -2733,9 +2708,9 @@ dependencies = [
[[package]]
name = "hashbrown"
-version = "0.15.0"
+version = "0.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"
+checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3"
[[package]]
name = "hashlink"
@@ -2983,7 +2958,7 @@ dependencies = [
"http 1.1.0",
"hyper 1.5.0",
"hyper-util",
- "rustls 0.23.15",
+ "rustls 0.23.17",
"rustls-pki-types",
"tokio",
"tokio-rustls 0.26.0",
@@ -3079,7 +3054,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"
dependencies = [
"equivalent",
- "hashbrown 0.15.0",
+ "hashbrown 0.15.1",
"serde",
]
@@ -3157,14 +3132,14 @@ dependencies = [
[[package]]
name = "is-macro"
-version = "0.3.6"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2069faacbe981460232f880d26bf3c7634e322d49053aa48c27e3ae642f728f1"
+checksum = "1d57a3e447e24c22647738e4607f1df1e0ec6f72e16182c4cd199f647cdfb0e4"
dependencies = [
- "Inflector",
+ "heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -3185,6 +3160,15 @@ dependencies = [
"either",
]
+[[package]]
+name = "itertools"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
+dependencies = [
+ "either",
+]
+
[[package]]
name = "itoa"
version = "1.0.11"
@@ -3296,7 +3280,7 @@ dependencies = [
"proc-macro2",
"quote",
"regex",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -3316,9 +3300,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "libc"
-version = "0.2.161"
+version = "0.2.164"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1"
+checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f"
[[package]]
name = "libffi"
@@ -3361,9 +3345,9 @@ dependencies = [
[[package]]
name = "libm"
-version = "0.2.8"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
+checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa"
[[package]]
name = "libredox"
@@ -3674,7 +3658,6 @@ dependencies = [
[[package]]
name = "node_resolver"
version = "0.10.0"
-source = "git+https://github.com/rivet-gg/deno?rev=bd98563214c532c8dae97d918edb501fe1c72dbc#bd98563214c532c8dae97d918edb501fe1c72dbc"
dependencies = [
"anyhow",
"async-trait",
@@ -4187,7 +4170,7 @@ dependencies = [
"phf_shared",
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -4201,29 +4184,29 @@ dependencies = [
[[package]]
name = "pin-project"
-version = "1.1.6"
+version = "1.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "baf123a161dde1e524adf36f90bc5d8d3462824a9c43553ad07a8183161189ec"
+checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95"
dependencies = [
"pin-project-internal",
]
[[package]]
name = "pin-project-internal"
-version = "1.1.6"
+version = "1.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4502d8515ca9f32f1fb543d987f63d95a14934883db45bdb48060b6b69257f8"
+checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
name = "pin-project-lite"
-version = "0.2.14"
+version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"
+checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff"
[[package]]
name = "pin-utils"
@@ -4336,12 +4319,12 @@ dependencies = [
[[package]]
name = "prettyplease"
-version = "0.2.24"
+version = "0.2.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "910d41a655dac3b764f1ade94821093d3610248694320cd072303a8eedcf221d"
+checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033"
dependencies = [
"proc-macro2",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -4385,7 +4368,7 @@ checksum = "07c277e4e643ef00c1233393c673f655e3672cf7eb3ba08a00bdd0ea59139b5f"
dependencies = [
"proc-macro-rules-macros",
"proc-macro2",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -4397,7 +4380,7 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -4450,6 +4433,16 @@ dependencies = [
"prost-derive 0.11.9",
]
+[[package]]
+name = "prost"
+version = "0.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b0487d90e047de87f984913713b85c601c05609aad5b0df4b4573fbf69aa13f"
+dependencies = [
+ "bytes",
+ "prost-derive 0.13.3",
+]
+
[[package]]
name = "prost-build"
version = "0.11.9"
@@ -4498,6 +4491,19 @@ dependencies = [
"syn 1.0.109",
]
+[[package]]
+name = "prost-derive"
+version = "0.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e9552f850d5f0964a4e4d0bf306459ac29323ddfbae05e35a7c0d35cb0803cc5"
+dependencies = [
+ "anyhow",
+ "itertools 0.13.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.87",
+]
+
[[package]]
name = "prost-types"
version = "0.10.1"
@@ -4525,9 +4531,9 @@ checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94"
[[package]]
name = "psm"
-version = "0.1.23"
+version = "0.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa37f80ca58604976033fae9515a8a2989fc13797d953f7c04fb8fa36a11f205"
+checksum = "200b9ff220857e53e184257720a14553b2f4aa02577d2ed9842d45d4b9654810"
dependencies = [
"cc",
]
@@ -4682,14 +4688,14 @@ checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
name = "regex"
-version = "1.11.0"
+version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8"
+checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
dependencies = [
"aho-corasick",
"memchr",
@@ -4699,9 +4705,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.8"
+version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3"
+checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
dependencies = [
"aho-corasick",
"memchr",
@@ -4939,9 +4945,9 @@ dependencies = [
[[package]]
name = "rustix"
-version = "0.38.37"
+version = "0.38.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
+checksum = "99e4ea3e1cdc4b559b8e5650f9c8e5998e3e5c1343b4eaf034565f32318d63c0"
dependencies = [
"bitflags 2.6.0",
"errno 0.3.9",
@@ -4964,9 +4970,9 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.15"
+version = "0.23.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5fbb44d7acc4e873d613422379f69f237a1b141928c02f6bc6ccfddddc2d7993"
+checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e"
dependencies = [
"log",
"once_cell",
@@ -5021,7 +5027,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22557157d7395bc30727745b365d923f1ecc230c4c80b176545f3f4f08c46e33"
dependencies = [
"futures",
- "rustls 0.23.15",
+ "rustls 0.23.17",
"socket2",
"tokio",
]
@@ -5198,9 +5204,9 @@ dependencies = [
[[package]]
name = "security-framework-sys"
-version = "2.12.0"
+version = "2.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6"
+checksum = "fa39c7303dc58b5543c94d22c1766b0d31f2ee58306363ea622b10bbc075eaa2"
dependencies = [
"core-foundation-sys",
"libc",
@@ -5229,9 +5235,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]]
name = "serde"
-version = "1.0.213"
+version = "1.0.215"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ea7893ff5e2466df8d720bb615088341b295f849602c6956047f8f80f0e9bc1"
+checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f"
dependencies = [
"serde_derive",
]
@@ -5257,20 +5263,20 @@ dependencies = [
[[package]]
name = "serde_derive"
-version = "1.0.213"
+version = "1.0.215"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e85ad2009c50b58e87caa8cd6dac16bdf511bbfb7af6c33df902396aa480fa5"
+checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
name = "serde_json"
-version = "1.0.132"
+version = "1.0.133"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03"
+checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377"
dependencies = [
"indexmap",
"itoa",
@@ -5429,9 +5435,9 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
[[package]]
name = "simd-json"
-version = "0.14.2"
+version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1df0290e9bfe79ddd5ff8798ca887cd107b75353d2957efe9777296e17f26b5"
+checksum = "aa2bcf6c6e164e81bc7a5d49fc6988b3d515d9e8c07457d7b74ffb9324b9cd40"
dependencies = [
"getrandom",
"halfbrown",
@@ -5532,9 +5538,9 @@ dependencies = [
[[package]]
name = "sourcemap"
-version = "9.0.0"
+version = "9.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dab08a862c70980b8e23698b507e272317ae52a608a164a844111f5372374f1f"
+checksum = "4d146f02f4bbbabbbe3da0f9cd3ea2ab779defc4ed1f070b5bd83ea48ed78811"
dependencies = [
"base64-simd 0.7.0",
"bitvec",
@@ -5580,7 +5586,6 @@ dependencies = [
[[package]]
name = "sqlx"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"sqlx-core",
"sqlx-macros",
@@ -5592,7 +5597,6 @@ dependencies = [
[[package]]
name = "sqlx-core"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"bytes",
"crc",
@@ -5627,19 +5631,17 @@ dependencies = [
[[package]]
name = "sqlx-macros"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"proc-macro2",
"quote",
"sqlx-core",
"sqlx-macros-core",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
name = "sqlx-macros-core"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"dotenvy",
"either",
@@ -5655,7 +5657,7 @@ dependencies = [
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
- "syn 2.0.82",
+ "syn 2.0.87",
"tempfile",
"tokio",
"url",
@@ -5664,7 +5666,6 @@ dependencies = [
[[package]]
name = "sqlx-mysql"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"atoi",
"base64 0.22.1",
@@ -5706,7 +5707,6 @@ dependencies = [
[[package]]
name = "sqlx-postgres"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"atoi",
"base64 0.22.1",
@@ -5744,7 +5744,6 @@ dependencies = [
[[package]]
name = "sqlx-sqlite"
version = "0.8.2"
-source = "git+https://github.com/rivet-gg/sqlx?rev=e7120f59b74fb6d83ac9b1d899b166bab31ba1d6#e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
dependencies = [
"atoi",
"flume",
@@ -5798,7 +5797,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -5853,7 +5852,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustversion",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -5918,7 +5917,7 @@ dependencies = [
"rustc-hash",
"serde",
"siphasher",
- "sourcemap 9.0.0",
+ "sourcemap 9.1.0",
"swc_allocator",
"swc_atoms",
"swc_eq_ignore_macros",
@@ -5951,7 +5950,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -5982,7 +5981,7 @@ dependencies = [
"num-bigint",
"once_cell",
"serde",
- "sourcemap 9.0.0",
+ "sourcemap 9.1.0",
"swc_allocator",
"swc_atoms",
"swc_common",
@@ -6000,7 +5999,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6085,7 +6084,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6192,7 +6191,7 @@ checksum = "63db0adcff29d220c3d151c5b25c0eabe7e32dd936212b84cdaa1392e3130497"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6203,7 +6202,7 @@ checksum = "f486687bfb7b5c560868f69ed2d458b880cebc9babebcb67e49f31b55c5bf847"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6226,7 +6225,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6242,9 +6241,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.82"
+version = "2.0.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83540f837a8afc019423a8edb95b52a8effe46957ee402287f4292fae35be021"
+checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
dependencies = [
"proc-macro2",
"quote",
@@ -6277,7 +6276,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6323,9 +6322,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
[[package]]
name = "tempfile"
-version = "3.13.0"
+version = "3.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0f2c9fc62d0beef6951ccffd757e241266a2c833136efbe35af6cd2567dca5b"
+checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c"
dependencies = [
"cfg-if",
"fastrand",
@@ -6354,22 +6353,22 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "1.0.65"
+version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d11abd9594d9b38965ef50805c5e469ca9cc6f197f883f717e0269a3057b3d5"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "1.0.65"
+version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae71770322cbd277e69d762a16c444af02aa0575ac0d174f0b9562d3b37f8602"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6467,7 +6466,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -6498,7 +6497,7 @@ version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4"
dependencies = [
- "rustls 0.23.15",
+ "rustls 0.23.17",
"rustls-pki-types",
"tokio",
]
@@ -6665,7 +6664,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -7135,7 +7134,7 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
"wasm-bindgen-shared",
]
@@ -7169,7 +7168,7 @@ checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
@@ -7182,9 +7181,9 @@ checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d"
[[package]]
name = "wasm-streams"
-version = "0.4.1"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e072d4e72f700fb3443d8fe94a39315df013eef1104903cdb0a2abd322bbecd"
+checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
dependencies = [
"futures-util",
"js-sys",
@@ -7421,7 +7420,7 @@ checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -7432,7 +7431,7 @@ checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -7663,18 +7662,9 @@ dependencies = [
[[package]]
name = "xml-rs"
-version = "0.8.22"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af4e2e2f7cba5a093896c1e150fbfe177d1883e7448200efb81d40b9d339ef26"
-
-[[package]]
-name = "yaml-rust"
-version = "0.4.5"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
-dependencies = [
- "linked-hash-map",
-]
+checksum = "af310deaae937e48a26602b730250b4949e125f468f11e6990be3e5304ddd96f"
[[package]]
name = "yaml-rust2"
@@ -7707,7 +7697,7 @@ checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
"synstructure 0.13.1",
]
@@ -7729,7 +7719,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
[[package]]
@@ -7749,7 +7739,7 @@ checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
"synstructure 0.13.1",
]
@@ -7770,5 +7760,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.82",
+ "syn 2.0.87",
]
diff --git a/packages/infra/client/deny.toml b/packages/infra/client/deny.toml
new file mode 100644
index 0000000000..073140d372
--- /dev/null
+++ b/packages/infra/client/deny.toml
@@ -0,0 +1,41 @@
+[advisories]
+ignore = [
+ # TODO(RVT-4096):
+ "RUSTSEC-2023-0071",
+ # Unmaintained, low-impact crates
+ "RUSTSEC-2024-0370",
+]
+
+[licenses]
+allow = [
+ "Apache-2.0",
+ "BSD-2-Clause",
+ "BSD-3-Clause",
+ "ISC",
+ "MIT",
+ "MPL-2.0",
+ "CC0-1.0",
+ "Unicode-DFS-2016",
+ "Unicode-3.0",
+ "Zlib",
+ "EPL-2.0",
+]
+unused-allowed-license = "allow"
+
+[[licenses.exceptions]]
+name = "ring"
+allow = ["OpenSSL"]
+
+[[licenses.exceptions]]
+name = "clipboard-win"
+allow = ["BSL-1.0"] # Boost Software License, not Business Source License
+
+[[licenses.exceptions]]
+name = "error-code"
+allow = ["BSL-1.0"] # Boost Software License, not Business Source License
+
+# See https://github.com/EmbarkStudios/buildkite-jobify/blob/a1b953b03f3330e499b1af47cc2dc38bd777da7c/deny.toml#LL27C1-L38C1
+[[licenses.clarify]]
+name = "ring"
+expression = "ISC AND MIT AND OpenSSL"
+license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
diff --git a/packages/infra/client/isolate-v8-runner/Cargo.toml b/packages/infra/client/isolate-v8-runner/Cargo.toml
index 61a27961c3..75b96c8d2e 100644
--- a/packages/infra/client/isolate-v8-runner/Cargo.toml
+++ b/packages/infra/client/isolate-v8-runner/Cargo.toml
@@ -27,10 +27,7 @@ uuid = { version = "1.6.1", features = ["v4"] }
runner-protocol = { path = "../runner-protocol", package = "pegboard-runner-protocol" }
[dependencies.deno_runtime]
-# path = "../../../../../deno/runtime"
-git = "https://github.com/rivet-gg/deno"
-rev = "bd98563214c532c8dae97d918edb501fe1c72dbc"
-package = "deno_runtime"
+path = "../../../../externals/deno/runtime"
[dev-dependencies]
portpicker = "0.1.1"
diff --git a/packages/infra/client/manager/Cargo.toml b/packages/infra/client/manager/Cargo.toml
index 92fee39f1a..16a99f2dc4 100644
--- a/packages/infra/client/manager/Cargo.toml
+++ b/packages/infra/client/manager/Cargo.toml
@@ -47,8 +47,7 @@ pegboard = { path = "../../../services/pegboard", default-features = false }
serde_yaml = "0.9.34"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../externals/sqlx"
default-features = false
features = [
"runtime-tokio",
diff --git a/packages/infra/server/Cargo.toml b/packages/infra/server/Cargo.toml
index 91826afa0d..4c768cd511 100644
--- a/packages/infra/server/Cargo.toml
+++ b/packages/infra/server/Cargo.toml
@@ -22,7 +22,7 @@ rivet-migrate = { path = "../../common/migrate" }
rivet-pools = { version = "0.1.0", path = "../../common/pools" }
rivet-runtime = { version = "0.1.0", path = "../../common/runtime" }
rivet-service-manager = { path = "../../common/service-manager" }
-rivet-term = { git = "https://github.com/rivet-gg/rivet-term.git", rev = "d539a07d2920d47b88410f20e6d106b497cff1f5" }
+rivet-term = { path = "../../../externals/rivet-term" }
s3-util = { version = "0.1.0", path = "../../common/s3-util" }
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
@@ -78,8 +78,7 @@ cloud-default-create = { version = "0.1.0", path = "../../services/cloud/standal
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
features = ["runtime-tokio", "postgres"]
diff --git a/packages/services/build/Cargo.toml b/packages/services/build/Cargo.toml
index ff57ea24e7..ef34aa2b64 100644
--- a/packages/services/build/Cargo.toml
+++ b/packages/services/build/Cargo.toml
@@ -9,7 +9,7 @@ license = "Apache-2.0"
acme-lib = "0.9"
anyhow = "1.0"
chirp-workflow = { path = "../../common/chirp-workflow/core" }
-cloudflare = { git = "https://github.com/cloudflare/cloudflare-rs.git", rev = "f14720e42184ee176a97676e85ef2d2d85bc3aae" }
+cloudflare = { path = "../../../externals/cloudflare-rs/cloudflare" }
heck = "0.3"
http = "0.2"
include_dir = "0.7.3"
@@ -38,8 +38,7 @@ upload-get = { path = "../upload/ops/get" }
rivet-config = { version = "0.1.0", path = "../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
features = [ "json" ]
diff --git a/packages/services/build/ops/create/Cargo.toml b/packages/services/build/ops/create/Cargo.toml
index 8ca4348f4f..c65a0ded02 100644
--- a/packages/services/build/ops/create/Cargo.toml
+++ b/packages/services/build/ops/create/Cargo.toml
@@ -16,8 +16,7 @@ game-namespace-get = { path = "../../../game/ops/namespace-get" }
upload-prepare = { path = "../../../upload/ops/prepare" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/build/ops/get/Cargo.toml b/packages/services/build/ops/get/Cargo.toml
index 8bc51f9947..5129d63a94 100644
--- a/packages/services/build/ops/get/Cargo.toml
+++ b/packages/services/build/ops/get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/build/ops/list-for-env/Cargo.toml b/packages/services/build/ops/list-for-env/Cargo.toml
index 83309328e0..de92cef1cd 100644
--- a/packages/services/build/ops/list-for-env/Cargo.toml
+++ b/packages/services/build/ops/list-for-env/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/build/ops/list-for-game/Cargo.toml b/packages/services/build/ops/list-for-game/Cargo.toml
index b800f3454b..90c6d96567 100644
--- a/packages/services/build/ops/list-for-game/Cargo.toml
+++ b/packages/services/build/ops/list-for-game/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/build/standalone/default-create/Cargo.toml b/packages/services/build/standalone/default-create/Cargo.toml
index e344ab4775..4e0ea9123c 100644
--- a/packages/services/build/standalone/default-create/Cargo.toml
+++ b/packages/services/build/standalone/default-create/Cargo.toml
@@ -30,8 +30,7 @@ upload-prepare = { path = "../../../upload/ops/prepare" }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/captcha/ops/request/Cargo.toml b/packages/services/captcha/ops/request/Cargo.toml
index 20d1d4ba2b..f4dbc6ae33 100644
--- a/packages/services/captcha/ops/request/Cargo.toml
+++ b/packages/services/captcha/ops/request/Cargo.toml
@@ -13,8 +13,7 @@ chrono = "0.4"
util-captcha = { package = "rivet-util-captcha", path = "../../util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/namespace-auth-user-remove/Cargo.toml b/packages/services/cdn/ops/namespace-auth-user-remove/Cargo.toml
index 9a78799b37..e7cce9ae89 100644
--- a/packages/services/cdn/ops/namespace-auth-user-remove/Cargo.toml
+++ b/packages/services/cdn/ops/namespace-auth-user-remove/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/namespace-auth-user-update/Cargo.toml b/packages/services/cdn/ops/namespace-auth-user-update/Cargo.toml
index f3447dfe79..b6533e0e41 100644
--- a/packages/services/cdn/ops/namespace-auth-user-update/Cargo.toml
+++ b/packages/services/cdn/ops/namespace-auth-user-update/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/namespace-create/Cargo.toml b/packages/services/cdn/ops/namespace-create/Cargo.toml
index efc51d005d..1ea1fa134c 100644
--- a/packages/services/cdn/ops/namespace-create/Cargo.toml
+++ b/packages/services/cdn/ops/namespace-create/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/namespace-domain-create/Cargo.toml b/packages/services/cdn/ops/namespace-domain-create/Cargo.toml
index 681b441ad2..3afffa73f6 100644
--- a/packages/services/cdn/ops/namespace-domain-create/Cargo.toml
+++ b/packages/services/cdn/ops/namespace-domain-create/Cargo.toml
@@ -14,8 +14,7 @@ game-get = { path = "../../../game/ops/get" }
game-resolve-namespace-id = { path = "../../../game/ops/resolve-namespace-id" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/namespace-domain-remove/Cargo.toml b/packages/services/cdn/ops/namespace-domain-remove/Cargo.toml
index b7b93e11e3..358f38e863 100644
--- a/packages/services/cdn/ops/namespace-domain-remove/Cargo.toml
+++ b/packages/services/cdn/ops/namespace-domain-remove/Cargo.toml
@@ -14,8 +14,7 @@ game-get = { path = "../../../game/ops/get" }
game-resolve-namespace-id = { path = "../../../game/ops/resolve-namespace-id" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/namespace-get/Cargo.toml b/packages/services/cdn/ops/namespace-get/Cargo.toml
index 9476e8cf72..ab38154f0f 100644
--- a/packages/services/cdn/ops/namespace-get/Cargo.toml
+++ b/packages/services/cdn/ops/namespace-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/namespace-resolve-domain/Cargo.toml b/packages/services/cdn/ops/namespace-resolve-domain/Cargo.toml
index 4c97a40e5d..713242b115 100644
--- a/packages/services/cdn/ops/namespace-resolve-domain/Cargo.toml
+++ b/packages/services/cdn/ops/namespace-resolve-domain/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/ns-auth-type-set/Cargo.toml b/packages/services/cdn/ops/ns-auth-type-set/Cargo.toml
index 4880e62c4d..017d3322f8 100644
--- a/packages/services/cdn/ops/ns-auth-type-set/Cargo.toml
+++ b/packages/services/cdn/ops/ns-auth-type-set/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/ns-enable-domain-public-auth-set/Cargo.toml b/packages/services/cdn/ops/ns-enable-domain-public-auth-set/Cargo.toml
index 11b4b2ea84..49311b1ae2 100644
--- a/packages/services/cdn/ops/ns-enable-domain-public-auth-set/Cargo.toml
+++ b/packages/services/cdn/ops/ns-enable-domain-public-auth-set/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/site-create/Cargo.toml b/packages/services/cdn/ops/site-create/Cargo.toml
index 5f13227f24..e08bf21809 100644
--- a/packages/services/cdn/ops/site-create/Cargo.toml
+++ b/packages/services/cdn/ops/site-create/Cargo.toml
@@ -14,8 +14,7 @@ game-get = { path = "../../../game/ops/get" }
upload-prepare = { path = "../../../upload/ops/prepare" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/site-get/Cargo.toml b/packages/services/cdn/ops/site-get/Cargo.toml
index 6d722892bd..56bedd9583 100644
--- a/packages/services/cdn/ops/site-get/Cargo.toml
+++ b/packages/services/cdn/ops/site-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/site-list-for-game/Cargo.toml b/packages/services/cdn/ops/site-list-for-game/Cargo.toml
index c300d17eb7..530c626145 100644
--- a/packages/services/cdn/ops/site-list-for-game/Cargo.toml
+++ b/packages/services/cdn/ops/site-list-for-game/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/version-get/Cargo.toml b/packages/services/cdn/ops/version-get/Cargo.toml
index b45026134e..37513419d6 100644
--- a/packages/services/cdn/ops/version-get/Cargo.toml
+++ b/packages/services/cdn/ops/version-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cdn/ops/version-publish/Cargo.toml b/packages/services/cdn/ops/version-publish/Cargo.toml
index 1e705fc063..d4de016bf0 100644
--- a/packages/services/cdn/ops/version-publish/Cargo.toml
+++ b/packages/services/cdn/ops/version-publish/Cargo.toml
@@ -13,8 +13,7 @@ unzip-n = "0.1.2"
itertools = "0.10.5"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cf-custom-hostname/ops/get/Cargo.toml b/packages/services/cf-custom-hostname/ops/get/Cargo.toml
index 4c6af4b728..840ceef0a2 100644
--- a/packages/services/cf-custom-hostname/ops/get/Cargo.toml
+++ b/packages/services/cf-custom-hostname/ops/get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cf-custom-hostname/ops/list-for-namespace-id/Cargo.toml b/packages/services/cf-custom-hostname/ops/list-for-namespace-id/Cargo.toml
index fbcaad22f5..0da9e3aefe 100644
--- a/packages/services/cf-custom-hostname/ops/list-for-namespace-id/Cargo.toml
+++ b/packages/services/cf-custom-hostname/ops/list-for-namespace-id/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cf-custom-hostname/ops/resolve-hostname/Cargo.toml b/packages/services/cf-custom-hostname/ops/resolve-hostname/Cargo.toml
index 68b98ffef5..2b8d343724 100644
--- a/packages/services/cf-custom-hostname/ops/resolve-hostname/Cargo.toml
+++ b/packages/services/cf-custom-hostname/ops/resolve-hostname/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/game-config-create/Cargo.toml b/packages/services/cloud/ops/game-config-create/Cargo.toml
index 51d8163788..ea6dffd0b4 100644
--- a/packages/services/cloud/ops/game-config-create/Cargo.toml
+++ b/packages/services/cloud/ops/game-config-create/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/game-config-get/Cargo.toml b/packages/services/cloud/ops/game-config-get/Cargo.toml
index 70549637d2..0b79db9a22 100644
--- a/packages/services/cloud/ops/game-config-get/Cargo.toml
+++ b/packages/services/cloud/ops/game-config-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/game-token-create/Cargo.toml b/packages/services/cloud/ops/game-token-create/Cargo.toml
index 5ed6a8f7e0..ec5e369f3d 100644
--- a/packages/services/cloud/ops/game-token-create/Cargo.toml
+++ b/packages/services/cloud/ops/game-token-create/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
token-create = { path = "../../../token/ops/create" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/namespace-create/Cargo.toml b/packages/services/cloud/ops/namespace-create/Cargo.toml
index 7939ffa6a5..89604ed8fd 100644
--- a/packages/services/cloud/ops/namespace-create/Cargo.toml
+++ b/packages/services/cloud/ops/namespace-create/Cargo.toml
@@ -16,8 +16,7 @@ cdn-namespace-create = { path = "../../../cdn/ops/namespace-create" }
mm-config-namespace-create = { path = "../../../mm-config/ops/namespace-create" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/namespace-get/Cargo.toml b/packages/services/cloud/ops/namespace-get/Cargo.toml
index 706542889f..a65af9246b 100644
--- a/packages/services/cloud/ops/namespace-get/Cargo.toml
+++ b/packages/services/cloud/ops/namespace-get/Cargo.toml
@@ -14,8 +14,7 @@ cdn-namespace-get = { path = "../../../cdn/ops/namespace-get" }
mm-config-namespace-get = { path = "../../../mm-config/ops/namespace-get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/namespace-token-development-create/Cargo.toml b/packages/services/cloud/ops/namespace-token-development-create/Cargo.toml
index 0de0ac2475..2521b3af6f 100644
--- a/packages/services/cloud/ops/namespace-token-development-create/Cargo.toml
+++ b/packages/services/cloud/ops/namespace-token-development-create/Cargo.toml
@@ -15,8 +15,7 @@ game-token-development-validate = { path = "../../../game/ops/token-development-
token-create = { path = "../../../token/ops/create" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/namespace-token-public-create/Cargo.toml b/packages/services/cloud/ops/namespace-token-public-create/Cargo.toml
index f239ce64e3..2a7bfcb3c6 100644
--- a/packages/services/cloud/ops/namespace-token-public-create/Cargo.toml
+++ b/packages/services/cloud/ops/namespace-token-public-create/Cargo.toml
@@ -15,8 +15,7 @@ game-namespace-get = { path = "../../../game/ops/namespace-get" }
token-create = { path = "../../../token/ops/create" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/version-get/Cargo.toml b/packages/services/cloud/ops/version-get/Cargo.toml
index a2403ffc25..9cb8677512 100644
--- a/packages/services/cloud/ops/version-get/Cargo.toml
+++ b/packages/services/cloud/ops/version-get/Cargo.toml
@@ -15,8 +15,7 @@ cdn-version-get = { path = "../../../cdn/ops/version-get" }
mm-config-version-get = { path = "../../../mm-config/ops/version-get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cloud/ops/version-publish/Cargo.toml b/packages/services/cloud/ops/version-publish/Cargo.toml
index 93a56b8021..caecb5cfd2 100644
--- a/packages/services/cloud/ops/version-publish/Cargo.toml
+++ b/packages/services/cloud/ops/version-publish/Cargo.toml
@@ -19,8 +19,7 @@ mm-config-version-prepare = { path = "../../../mm-config/ops/version-prepare" }
mm-config-version-publish = { path = "../../../mm-config/ops/version-publish" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cluster/Cargo.toml b/packages/services/cluster/Cargo.toml
index ca72b3afa8..f4a6dbc37c 100644
--- a/packages/services/cluster/Cargo.toml
+++ b/packages/services/cluster/Cargo.toml
@@ -10,7 +10,7 @@ acme-lib = "0.9"
anyhow = "1.0"
chirp-workflow = { path = "../../common/chirp-workflow/core" }
chrono = "0.4"
-cloudflare = { git = "https://github.com/cloudflare/cloudflare-rs.git", rev = "f14720e42184ee176a97676e85ef2d2d85bc3aae" }
+cloudflare = { path = "../../../externals/cloudflare-rs/cloudflare" }
http = "0.2"
include_dir = "0.7.3"
indoc = "1.0"
@@ -37,12 +37,10 @@ rivet-config = { version = "0.1.0", path = "../../common/config" }
ipnet = "2.10.1"
[dependencies.nomad_client]
-git = "https://github.com/rivet-gg/nomad-client"
-rev = "abb66bf0c30c7ff5b0c695dae952481c33e538b5" # pragma: allowlist secret
+path = "../../../externals/nomad-client"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
features = [ "json", "ipnetwork" ]
diff --git a/packages/services/cluster/standalone/datacenter-tls-renew/Cargo.toml b/packages/services/cluster/standalone/datacenter-tls-renew/Cargo.toml
index 7dd4c2db36..ac801dc126 100644
--- a/packages/services/cluster/standalone/datacenter-tls-renew/Cargo.toml
+++ b/packages/services/cluster/standalone/datacenter-tls-renew/Cargo.toml
@@ -21,8 +21,7 @@ cluster = { path = "../.." }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cluster/standalone/gc/Cargo.toml b/packages/services/cluster/standalone/gc/Cargo.toml
index b1f0fb49e2..5a4a4171f9 100644
--- a/packages/services/cluster/standalone/gc/Cargo.toml
+++ b/packages/services/cluster/standalone/gc/Cargo.toml
@@ -21,8 +21,7 @@ cluster = { path = "../.." }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/cluster/standalone/metrics-publish/Cargo.toml b/packages/services/cluster/standalone/metrics-publish/Cargo.toml
index 7285bad50d..61ad12817c 100644
--- a/packages/services/cluster/standalone/metrics-publish/Cargo.toml
+++ b/packages/services/cluster/standalone/metrics-publish/Cargo.toml
@@ -21,8 +21,7 @@ cluster = { path = "../.." }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/custom-user-avatar/ops/list-for-game/Cargo.toml b/packages/services/custom-user-avatar/ops/list-for-game/Cargo.toml
index 9f47227594..5a82f32346 100644
--- a/packages/services/custom-user-avatar/ops/list-for-game/Cargo.toml
+++ b/packages/services/custom-user-avatar/ops/list-for-game/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/custom-user-avatar/ops/upload-complete/Cargo.toml b/packages/services/custom-user-avatar/ops/upload-complete/Cargo.toml
index 8a82f6a2fa..044615039c 100644
--- a/packages/services/custom-user-avatar/ops/upload-complete/Cargo.toml
+++ b/packages/services/custom-user-avatar/ops/upload-complete/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
upload-complete = { path = "../../../upload/ops/complete" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/debug/ops/email-res/Cargo.toml b/packages/services/debug/ops/email-res/Cargo.toml
index 01aa604f7c..ce0560e49e 100644
--- a/packages/services/debug/ops/email-res/Cargo.toml
+++ b/packages/services/debug/ops/email-res/Cargo.toml
@@ -13,8 +13,7 @@ rand = "0.8"
serde_json = "1.0"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/ds-log/ops/export/Cargo.toml b/packages/services/ds-log/ops/export/Cargo.toml
index fc3d7bfcd0..fc1dc58a30 100644
--- a/packages/services/ds-log/ops/export/Cargo.toml
+++ b/packages/services/ds-log/ops/export/Cargo.toml
@@ -15,8 +15,7 @@ upload-complete = { path = "../../../upload/ops/complete" }
upload-prepare = { path = "../../../upload/ops/prepare" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/ds/Cargo.toml b/packages/services/ds/Cargo.toml
index 9b2418460e..e453abdfde 100644
--- a/packages/services/ds/Cargo.toml
+++ b/packages/services/ds/Cargo.toml
@@ -59,14 +59,12 @@ user-identity-get = { path = "../user-identity/ops/get" }
rivet-config = { version = "0.1.0", path = "../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
[dependencies.nomad_client]
package = "nomad_client"
-git = "https://github.com/rivet-gg/nomad-client"
-rev = "abb66bf0c30c7ff5b0c695dae952481c33e538b5" # pragma: allowlist secret
+path = "../../../externals/nomad-client"
[dev-dependencies]
cluster = { path = "../cluster" }
diff --git a/packages/services/email-verification/ops/complete/Cargo.toml b/packages/services/email-verification/ops/complete/Cargo.toml
index 4248000eaf..1eda680ef9 100644
--- a/packages/services/email-verification/ops/complete/Cargo.toml
+++ b/packages/services/email-verification/ops/complete/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/email-verification/ops/create/Cargo.toml b/packages/services/email-verification/ops/create/Cargo.toml
index a0b861f305..9cba8dbece 100644
--- a/packages/services/email-verification/ops/create/Cargo.toml
+++ b/packages/services/email-verification/ops/create/Cargo.toml
@@ -18,8 +18,7 @@ email-send = { path = "../../../email/ops/send" }
game-get = { path = "../../../game/ops/get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/external/ops/request-validate/Cargo.toml b/packages/services/external/ops/request-validate/Cargo.toml
index 970a5b7ad0..9c73bb6e74 100644
--- a/packages/services/external/ops/request-validate/Cargo.toml
+++ b/packages/services/external/ops/request-validate/Cargo.toml
@@ -16,8 +16,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/faker/ops/region/Cargo.toml b/packages/services/faker/ops/region/Cargo.toml
index 515dc2e429..204936e1e0 100644
--- a/packages/services/faker/ops/region/Cargo.toml
+++ b/packages/services/faker/ops/region/Cargo.toml
@@ -14,8 +14,7 @@ region-get = { path = "../../../region/ops/get" }
region-list = { path = "../../../region/ops/list" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/banner-upload-complete/Cargo.toml b/packages/services/game/ops/banner-upload-complete/Cargo.toml
index 02dc2a99b5..b9bddd90b3 100644
--- a/packages/services/game/ops/banner-upload-complete/Cargo.toml
+++ b/packages/services/game/ops/banner-upload-complete/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
upload-complete = { path = "../../../upload/ops/complete" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/create/Cargo.toml b/packages/services/game/ops/create/Cargo.toml
index 8ea84d4dda..71f02bd103 100644
--- a/packages/services/game/ops/create/Cargo.toml
+++ b/packages/services/game/ops/create/Cargo.toml
@@ -17,8 +17,7 @@ game-validate = { path = "../validate" }
team-get = { path = "../../../team/ops/get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/get/Cargo.toml b/packages/services/game/ops/get/Cargo.toml
index e88e264742..d6c04e62b7 100644
--- a/packages/services/game/ops/get/Cargo.toml
+++ b/packages/services/game/ops/get/Cargo.toml
@@ -14,8 +14,7 @@ upload-file-list = { path = "../../../upload/ops/file-list" }
upload-get = { path = "../../../upload/ops/get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/list-all/Cargo.toml b/packages/services/game/ops/list-all/Cargo.toml
index 8fae8d5b55..2ef8acb1da 100644
--- a/packages/services/game/ops/list-all/Cargo.toml
+++ b/packages/services/game/ops/list-all/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/list-for-team/Cargo.toml b/packages/services/game/ops/list-for-team/Cargo.toml
index cda203a92a..c13e50dccd 100644
--- a/packages/services/game/ops/list-for-team/Cargo.toml
+++ b/packages/services/game/ops/list-for-team/Cargo.toml
@@ -10,8 +10,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
rivet-operation = { path = "../../../../common/operation/core" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/logo-upload-complete/Cargo.toml b/packages/services/game/ops/logo-upload-complete/Cargo.toml
index f525eedfdb..2f5f6e6f91 100644
--- a/packages/services/game/ops/logo-upload-complete/Cargo.toml
+++ b/packages/services/game/ops/logo-upload-complete/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
upload-complete = { path = "../../../upload/ops/complete" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/namespace-create/Cargo.toml b/packages/services/game/ops/namespace-create/Cargo.toml
index 802540f66a..f7beb33f67 100644
--- a/packages/services/game/ops/namespace-create/Cargo.toml
+++ b/packages/services/game/ops/namespace-create/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
game-namespace-validate = { path = "../namespace-validate" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/namespace-get/Cargo.toml b/packages/services/game/ops/namespace-get/Cargo.toml
index 9e3baf6b4b..e139089b8b 100644
--- a/packages/services/game/ops/namespace-get/Cargo.toml
+++ b/packages/services/game/ops/namespace-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/namespace-list/Cargo.toml b/packages/services/game/ops/namespace-list/Cargo.toml
index 65984604d7..02c6560a37 100644
--- a/packages/services/game/ops/namespace-list/Cargo.toml
+++ b/packages/services/game/ops/namespace-list/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/namespace-resolve-name-id/Cargo.toml b/packages/services/game/ops/namespace-resolve-name-id/Cargo.toml
index 12a57bd9e5..db593f3709 100644
--- a/packages/services/game/ops/namespace-resolve-name-id/Cargo.toml
+++ b/packages/services/game/ops/namespace-resolve-name-id/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/namespace-version-history-list/Cargo.toml b/packages/services/game/ops/namespace-version-history-list/Cargo.toml
index ffc6bcd3aa..a307bcda62 100644
--- a/packages/services/game/ops/namespace-version-history-list/Cargo.toml
+++ b/packages/services/game/ops/namespace-version-history-list/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/namespace-version-set/Cargo.toml b/packages/services/game/ops/namespace-version-set/Cargo.toml
index 085a1ae664..9738b8bdf7 100644
--- a/packages/services/game/ops/namespace-version-set/Cargo.toml
+++ b/packages/services/game/ops/namespace-version-set/Cargo.toml
@@ -16,8 +16,7 @@ region-list-for-game = { path = "../../../region/ops/list-for-game" }
mm-lobby-idle-update = { path = "../../../mm/ops/lobby-idle-update" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/recommend/Cargo.toml b/packages/services/game/ops/recommend/Cargo.toml
index b957ac8a68..409935e7e7 100644
--- a/packages/services/game/ops/recommend/Cargo.toml
+++ b/packages/services/game/ops/recommend/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/resolve-name-id/Cargo.toml b/packages/services/game/ops/resolve-name-id/Cargo.toml
index c5e4ed8be6..ada3077101 100644
--- a/packages/services/game/ops/resolve-name-id/Cargo.toml
+++ b/packages/services/game/ops/resolve-name-id/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/resolve-namespace-id/Cargo.toml b/packages/services/game/ops/resolve-namespace-id/Cargo.toml
index 120bf6eb8e..5548abcc95 100644
--- a/packages/services/game/ops/resolve-namespace-id/Cargo.toml
+++ b/packages/services/game/ops/resolve-namespace-id/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/version-create/Cargo.toml b/packages/services/game/ops/version-create/Cargo.toml
index b7a0863004..fa71bacb16 100644
--- a/packages/services/game/ops/version-create/Cargo.toml
+++ b/packages/services/game/ops/version-create/Cargo.toml
@@ -14,8 +14,7 @@ game-version-get = { path = "../version-get" }
game-version-list = { path = "../version-list" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/version-get/Cargo.toml b/packages/services/game/ops/version-get/Cargo.toml
index 64df96b888..003b7bdc78 100644
--- a/packages/services/game/ops/version-get/Cargo.toml
+++ b/packages/services/game/ops/version-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/game/ops/version-list/Cargo.toml b/packages/services/game/ops/version-list/Cargo.toml
index 2e64e46fa3..1bf597a7af 100644
--- a/packages/services/game/ops/version-list/Cargo.toml
+++ b/packages/services/game/ops/version-list/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/ip/ops/info/Cargo.toml b/packages/services/ip/ops/info/Cargo.toml
index 04f53e8ded..ab48036e52 100644
--- a/packages/services/ip/ops/info/Cargo.toml
+++ b/packages/services/ip/ops/info/Cargo.toml
@@ -15,8 +15,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/job-run/Cargo.toml b/packages/services/job-run/Cargo.toml
index cc54c6170a..5d828a30ad 100644
--- a/packages/services/job-run/Cargo.toml
+++ b/packages/services/job-run/Cargo.toml
@@ -34,18 +34,16 @@ rivet-config = { version = "0.1.0", path = "../../common/config" }
[dependencies.nomad_client_new]
package = "nomad_client"
-git = "https://github.com/rivet-gg/nomad-client"
-rev = "abb66bf0c30c7ff5b0c695dae952481c33e538b5" # pragma: allowlist secret
+path = "../../../externals/nomad-client"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
features = [ "json" ]
[dev-dependencies]
rivet-test = { version = "0.1.0", path = "../../common/test" }
-rustls = "0.20"
+rustls = "0.21"
webpki = "0.22"
webpki-roots = "0.22"
diff --git a/packages/services/job/standalone/gc/Cargo.toml b/packages/services/job/standalone/gc/Cargo.toml
index 27957c3eb8..64e01ca85b 100644
--- a/packages/services/job/standalone/gc/Cargo.toml
+++ b/packages/services/job/standalone/gc/Cargo.toml
@@ -36,8 +36,7 @@ mm-lobby-get = { path = "../../../mm/ops/lobby-get" }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/linode/Cargo.toml b/packages/services/linode/Cargo.toml
index 489417bd90..956bd6219e 100644
--- a/packages/services/linode/Cargo.toml
+++ b/packages/services/linode/Cargo.toml
@@ -17,8 +17,7 @@ serde_json = "1.0"
ssh-key = "0.6.3"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/linode/standalone/gc/Cargo.toml b/packages/services/linode/standalone/gc/Cargo.toml
index 884e75dcc6..a0a9bb27d8 100644
--- a/packages/services/linode/standalone/gc/Cargo.toml
+++ b/packages/services/linode/standalone/gc/Cargo.toml
@@ -26,8 +26,7 @@ linode = { path = "../.." }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/load-test/standalone/sqlx/Cargo.toml b/packages/services/load-test/standalone/sqlx/Cargo.toml
index 365553fb73..36a1701883 100644
--- a/packages/services/load-test/standalone/sqlx/Cargo.toml
+++ b/packages/services/load-test/standalone/sqlx/Cargo.toml
@@ -30,6 +30,5 @@ rivet-config = { version = "0.1.0", path = "../../../../common/config" }
chirp-worker = { path = "../../../../common/chirp/worker" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
diff --git a/packages/services/mm-config/ops/game-get/Cargo.toml b/packages/services/mm-config/ops/game-get/Cargo.toml
index b8842aa6f4..5fd59251d1 100644
--- a/packages/services/mm-config/ops/game-get/Cargo.toml
+++ b/packages/services/mm-config/ops/game-get/Cargo.toml
@@ -10,8 +10,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
rivet-operation = { path = "../../../../common/operation/core" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/game-upsert/Cargo.toml b/packages/services/mm-config/ops/game-upsert/Cargo.toml
index ab277ee0cf..598d2e1d37 100644
--- a/packages/services/mm-config/ops/game-upsert/Cargo.toml
+++ b/packages/services/mm-config/ops/game-upsert/Cargo.toml
@@ -10,8 +10,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
rivet-operation = { path = "../../../../common/operation/core" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/lobby-group-get/Cargo.toml b/packages/services/mm-config/ops/lobby-group-get/Cargo.toml
index 8887bdcabd..5796592f1d 100644
--- a/packages/services/mm-config/ops/lobby-group-get/Cargo.toml
+++ b/packages/services/mm-config/ops/lobby-group-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/lobby-group-resolve-name-id/Cargo.toml b/packages/services/mm-config/ops/lobby-group-resolve-name-id/Cargo.toml
index c855713a19..fdf0134804 100644
--- a/packages/services/mm-config/ops/lobby-group-resolve-name-id/Cargo.toml
+++ b/packages/services/mm-config/ops/lobby-group-resolve-name-id/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
util-mm = { package = "rivet-util-mm", path = "../../../mm/util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/lobby-group-resolve-version/Cargo.toml b/packages/services/mm-config/ops/lobby-group-resolve-version/Cargo.toml
index 8217386c0d..ca833b7041 100644
--- a/packages/services/mm-config/ops/lobby-group-resolve-version/Cargo.toml
+++ b/packages/services/mm-config/ops/lobby-group-resolve-version/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/namespace-config-set/Cargo.toml b/packages/services/mm-config/ops/namespace-config-set/Cargo.toml
index 8a3699de5b..f45b35d4d6 100644
--- a/packages/services/mm-config/ops/namespace-config-set/Cargo.toml
+++ b/packages/services/mm-config/ops/namespace-config-set/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
mm-config-namespace-config-validate = { path = "../namespace-config-validate" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/namespace-create/Cargo.toml b/packages/services/mm-config/ops/namespace-create/Cargo.toml
index a783cf81eb..8298c06524 100644
--- a/packages/services/mm-config/ops/namespace-create/Cargo.toml
+++ b/packages/services/mm-config/ops/namespace-create/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/namespace-get/Cargo.toml b/packages/services/mm-config/ops/namespace-get/Cargo.toml
index 98d7f4cef7..8ca926e1ac 100644
--- a/packages/services/mm-config/ops/namespace-get/Cargo.toml
+++ b/packages/services/mm-config/ops/namespace-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/version-get/Cargo.toml b/packages/services/mm-config/ops/version-get/Cargo.toml
index a6ef6fe520..ff52ffb3c8 100644
--- a/packages/services/mm-config/ops/version-get/Cargo.toml
+++ b/packages/services/mm-config/ops/version-get/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
util-mm = { package = "rivet-util-mm", path = "../../../mm/util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/version-prepare/Cargo.toml b/packages/services/mm-config/ops/version-prepare/Cargo.toml
index 195a607a17..ae3b69d6ad 100644
--- a/packages/services/mm-config/ops/version-prepare/Cargo.toml
+++ b/packages/services/mm-config/ops/version-prepare/Cargo.toml
@@ -24,8 +24,7 @@ region-get = { path = "../../../region/ops/get" }
tier = { path = "../../../tier" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm-config/ops/version-publish/Cargo.toml b/packages/services/mm-config/ops/version-publish/Cargo.toml
index 149a365acc..ba5e863acf 100644
--- a/packages/services/mm-config/ops/version-publish/Cargo.toml
+++ b/packages/services/mm-config/ops/version-publish/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
util-mm = { package = "rivet-util-mm", path = "../../../mm/util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-for-run-id/Cargo.toml b/packages/services/mm/ops/lobby-for-run-id/Cargo.toml
index 8bbe4799f7..a69f4b3032 100644
--- a/packages/services/mm/ops/lobby-for-run-id/Cargo.toml
+++ b/packages/services/mm/ops/lobby-for-run-id/Cargo.toml
@@ -10,8 +10,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
rivet-operation = { path = "../../../../common/operation/core" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-get/Cargo.toml b/packages/services/mm/ops/lobby-get/Cargo.toml
index 81c844d151..09945c2014 100644
--- a/packages/services/mm/ops/lobby-get/Cargo.toml
+++ b/packages/services/mm/ops/lobby-get/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-history/Cargo.toml b/packages/services/mm/ops/lobby-history/Cargo.toml
index 64bc8fdcfe..616c957705 100644
--- a/packages/services/mm/ops/lobby-history/Cargo.toml
+++ b/packages/services/mm/ops/lobby-history/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-idle-update/Cargo.toml b/packages/services/mm/ops/lobby-idle-update/Cargo.toml
index de120bec91..019710eb4b 100644
--- a/packages/services/mm/ops/lobby-idle-update/Cargo.toml
+++ b/packages/services/mm/ops/lobby-idle-update/Cargo.toml
@@ -17,8 +17,7 @@ game-namespace-get = { path = "../../../game/ops/namespace-get" }
mm-config-version-get = { path = "../../../mm-config/ops/version-get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-list-for-namespace/Cargo.toml b/packages/services/mm/ops/lobby-list-for-namespace/Cargo.toml
index 4a1769f6dc..b2df118f48 100644
--- a/packages/services/mm/ops/lobby-list-for-namespace/Cargo.toml
+++ b/packages/services/mm/ops/lobby-list-for-namespace/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
util-mm = { package = "rivet-util-mm", path = "../../util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-list-for-user-id/Cargo.toml b/packages/services/mm/ops/lobby-list-for-user-id/Cargo.toml
index c0e5835b7f..498d85d2bf 100644
--- a/packages/services/mm/ops/lobby-list-for-user-id/Cargo.toml
+++ b/packages/services/mm/ops/lobby-list-for-user-id/Cargo.toml
@@ -11,8 +11,7 @@ rivet-operation = { path = "../../../../common/operation/core" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-player-count/Cargo.toml b/packages/services/mm/ops/lobby-player-count/Cargo.toml
index 4dacbcac94..06e1563444 100644
--- a/packages/services/mm/ops/lobby-player-count/Cargo.toml
+++ b/packages/services/mm/ops/lobby-player-count/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
util-mm = { package = "rivet-util-mm", path = "../../util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-runtime-aggregate/Cargo.toml b/packages/services/mm/ops/lobby-runtime-aggregate/Cargo.toml
index 86d44d7d58..4adec6aa2c 100644
--- a/packages/services/mm/ops/lobby-runtime-aggregate/Cargo.toml
+++ b/packages/services/mm/ops/lobby-runtime-aggregate/Cargo.toml
@@ -16,8 +16,7 @@ mm-config-lobby-group-resolve-version = { path = "../../../mm-config/ops/lobby-g
mm-config-version-get = { path = "../../../mm-config/ops/version-get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/lobby-state-get/Cargo.toml b/packages/services/mm/ops/lobby-state-get/Cargo.toml
index 2021bf5356..284e2f817e 100644
--- a/packages/services/mm/ops/lobby-state-get/Cargo.toml
+++ b/packages/services/mm/ops/lobby-state-get/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
util-mm = { package = "rivet-util-mm", path = "../../util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/player-count-for-namespace/Cargo.toml b/packages/services/mm/ops/player-count-for-namespace/Cargo.toml
index 678888f881..ba539f448b 100644
--- a/packages/services/mm/ops/player-count-for-namespace/Cargo.toml
+++ b/packages/services/mm/ops/player-count-for-namespace/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
util-mm = { package = "rivet-util-mm", path = "../../util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/ops/player-get/Cargo.toml b/packages/services/mm/ops/player-get/Cargo.toml
index ab2c06db19..688db6513e 100644
--- a/packages/services/mm/ops/player-get/Cargo.toml
+++ b/packages/services/mm/ops/player-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/standalone/gc/Cargo.toml b/packages/services/mm/standalone/gc/Cargo.toml
index c27f53ebbd..fa812d2454 100644
--- a/packages/services/mm/standalone/gc/Cargo.toml
+++ b/packages/services/mm/standalone/gc/Cargo.toml
@@ -31,8 +31,7 @@ region-list = { path = "../../../region/ops/list" }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/mm/worker/Cargo.toml b/packages/services/mm/worker/Cargo.toml
index 789204c379..83b0ba90f8 100644
--- a/packages/services/mm/worker/Cargo.toml
+++ b/packages/services/mm/worker/Cargo.toml
@@ -55,8 +55,7 @@ upload-prepare = { path = "../../upload/ops/prepare" }
rivet-config = { version = "0.1.0", path = "../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/nomad/standalone/monitor/Cargo.toml b/packages/services/nomad/standalone/monitor/Cargo.toml
index 53411755be..6f91f43207 100644
--- a/packages/services/nomad/standalone/monitor/Cargo.toml
+++ b/packages/services/nomad/standalone/monitor/Cargo.toml
@@ -37,8 +37,7 @@ ds = { path = "../../../ds" }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.nomad_client]
-git = "https://github.com/rivet-gg/nomad-client"
-rev = "abb66bf0c30c7ff5b0c695dae952481c33e538b5" # pragma: allowlist secret
+path = "../../../../../externals/nomad-client"
[dev-dependencies]
chirp-worker = { path = "../../../../common/chirp/worker" }
diff --git a/packages/services/pegboard/Cargo.toml b/packages/services/pegboard/Cargo.toml
index a354d9196c..013179756c 100644
--- a/packages/services/pegboard/Cargo.toml
+++ b/packages/services/pegboard/Cargo.toml
@@ -26,7 +26,6 @@ rivet-config = { version = "0.1.0", path = "../../common/config" }
[dependencies.sqlx]
optional = true
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../externals/sqlx"
default-features = false
features = [ "json", "ipnetwork" ]
diff --git a/packages/services/pegboard/standalone/gc/Cargo.toml b/packages/services/pegboard/standalone/gc/Cargo.toml
index 40b6e2d501..045ddbc277 100644
--- a/packages/services/pegboard/standalone/gc/Cargo.toml
+++ b/packages/services/pegboard/standalone/gc/Cargo.toml
@@ -22,8 +22,7 @@ pegboard = { path = "../.." }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/region/ops/get/Cargo.toml b/packages/services/region/ops/get/Cargo.toml
index 970b87d9de..10f50992eb 100644
--- a/packages/services/region/ops/get/Cargo.toml
+++ b/packages/services/region/ops/get/Cargo.toml
@@ -14,8 +14,7 @@ rivet-operation = { path = "../../../../common/operation/core" }
cluster = { path = "../../../cluster" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/region/ops/list-for-game/Cargo.toml b/packages/services/region/ops/list-for-game/Cargo.toml
index f907923daa..40f5d884a1 100644
--- a/packages/services/region/ops/list-for-game/Cargo.toml
+++ b/packages/services/region/ops/list-for-game/Cargo.toml
@@ -14,8 +14,7 @@ rivet-operation = { path = "../../../../common/operation/core" }
cluster = { path = "../../../cluster" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/region/ops/list/Cargo.toml b/packages/services/region/ops/list/Cargo.toml
index 4b8052339e..92cdaa4b11 100644
--- a/packages/services/region/ops/list/Cargo.toml
+++ b/packages/services/region/ops/list/Cargo.toml
@@ -14,8 +14,7 @@ rivet-operation = { path = "../../../../common/operation/core" }
cluster = { path = "../../../cluster" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/region/ops/recommend/Cargo.toml b/packages/services/region/ops/recommend/Cargo.toml
index f4b86c40af..3bcf6b14ab 100644
--- a/packages/services/region/ops/recommend/Cargo.toml
+++ b/packages/services/region/ops/recommend/Cargo.toml
@@ -15,8 +15,7 @@ ip-info = { path = "../../../ip/ops/info" }
region-get = { path = "../get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/region/ops/resolve-for-game/Cargo.toml b/packages/services/region/ops/resolve-for-game/Cargo.toml
index 0478f1fed2..d02e211664 100644
--- a/packages/services/region/ops/resolve-for-game/Cargo.toml
+++ b/packages/services/region/ops/resolve-for-game/Cargo.toml
@@ -15,8 +15,7 @@ cluster = { path = "../../../cluster" }
region-list-for-game = { path = "../list-for-game" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/region/ops/resolve/Cargo.toml b/packages/services/region/ops/resolve/Cargo.toml
index a4fd166ff8..3aab7f7d75 100644
--- a/packages/services/region/ops/resolve/Cargo.toml
+++ b/packages/services/region/ops/resolve/Cargo.toml
@@ -15,8 +15,7 @@ cluster = { path = "../../../cluster" }
region-list = { path = "../list" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team-invite/ops/get/Cargo.toml b/packages/services/team-invite/ops/get/Cargo.toml
index dcb9258383..1c5487b5c7 100644
--- a/packages/services/team-invite/ops/get/Cargo.toml
+++ b/packages/services/team-invite/ops/get/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team-invite/worker/Cargo.toml b/packages/services/team-invite/worker/Cargo.toml
index a33238eaec..f5970d9025 100644
--- a/packages/services/team-invite/worker/Cargo.toml
+++ b/packages/services/team-invite/worker/Cargo.toml
@@ -18,8 +18,7 @@ team-user-ban-get = { path = "../../team/ops/user-ban-get" }
rivet-config = { version = "0.1.0", path = "../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/avatar-upload-complete/Cargo.toml b/packages/services/team/ops/avatar-upload-complete/Cargo.toml
index 0cbd2d3dcc..a3b860b1c9 100644
--- a/packages/services/team/ops/avatar-upload-complete/Cargo.toml
+++ b/packages/services/team/ops/avatar-upload-complete/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
upload-complete = { path = "../../../upload/ops/complete" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/get/Cargo.toml b/packages/services/team/ops/get/Cargo.toml
index d064370395..69721baa15 100644
--- a/packages/services/team/ops/get/Cargo.toml
+++ b/packages/services/team/ops/get/Cargo.toml
@@ -14,8 +14,7 @@ upload-file-list = { path = "../../../upload/ops/file-list" }
upload-get = { path = "../../../upload/ops/get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/join-request-list/Cargo.toml b/packages/services/team/ops/join-request-list/Cargo.toml
index dc34ce638b..b8d91bfd2b 100644
--- a/packages/services/team/ops/join-request-list/Cargo.toml
+++ b/packages/services/team/ops/join-request-list/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/member-count/Cargo.toml b/packages/services/team/ops/member-count/Cargo.toml
index 66246e6760..862604aeb4 100644
--- a/packages/services/team/ops/member-count/Cargo.toml
+++ b/packages/services/team/ops/member-count/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/member-get/Cargo.toml b/packages/services/team/ops/member-get/Cargo.toml
index 1b6f52bf8d..33af566088 100644
--- a/packages/services/team/ops/member-get/Cargo.toml
+++ b/packages/services/team/ops/member-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/member-list/Cargo.toml b/packages/services/team/ops/member-list/Cargo.toml
index cabc26bd26..30236f3af2 100644
--- a/packages/services/team/ops/member-list/Cargo.toml
+++ b/packages/services/team/ops/member-list/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/member-relationship-get/Cargo.toml b/packages/services/team/ops/member-relationship-get/Cargo.toml
index 62119d47bd..2932506833 100644
--- a/packages/services/team/ops/member-relationship-get/Cargo.toml
+++ b/packages/services/team/ops/member-relationship-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/profile-validate/Cargo.toml b/packages/services/team/ops/profile-validate/Cargo.toml
index 7cb171d504..80a412aae3 100644
--- a/packages/services/team/ops/profile-validate/Cargo.toml
+++ b/packages/services/team/ops/profile-validate/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/recommend/Cargo.toml b/packages/services/team/ops/recommend/Cargo.toml
index 52e23adba3..0feea1dcd7 100644
--- a/packages/services/team/ops/recommend/Cargo.toml
+++ b/packages/services/team/ops/recommend/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/resolve-display-name/Cargo.toml b/packages/services/team/ops/resolve-display-name/Cargo.toml
index c308248bf3..b2191327c3 100644
--- a/packages/services/team/ops/resolve-display-name/Cargo.toml
+++ b/packages/services/team/ops/resolve-display-name/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/user-ban-get/Cargo.toml b/packages/services/team/ops/user-ban-get/Cargo.toml
index 0364e32eb8..bf45da8f31 100644
--- a/packages/services/team/ops/user-ban-get/Cargo.toml
+++ b/packages/services/team/ops/user-ban-get/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/team/ops/user-ban-list/Cargo.toml b/packages/services/team/ops/user-ban-list/Cargo.toml
index 6320490116..175f87c436 100644
--- a/packages/services/team/ops/user-ban-list/Cargo.toml
+++ b/packages/services/team/ops/user-ban-list/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/telemetry/standalone/beacon/Cargo.toml b/packages/services/telemetry/standalone/beacon/Cargo.toml
index 0f5028284c..276a18f513 100644
--- a/packages/services/telemetry/standalone/beacon/Cargo.toml
+++ b/packages/services/telemetry/standalone/beacon/Cargo.toml
@@ -6,7 +6,7 @@ authors = ["Rivet Gaming, LLC "]
license = "Apache-2.0"
[dependencies]
-async-posthog = { git = "https://github.com/rivet-gg/posthog-rs.git", rev = "ef4e80e" }
+async-posthog = { path = "../../../../../externals/posthog-rs/async" }
chirp-client = { path = "../../../../common/chirp/client" }
futures-util = "0.3"
indoc = "1.0"
@@ -41,8 +41,7 @@ pegboard = { version = "0.0.1", path = "../../../pegboard" }
serde = { version = "1.0.214", features = ["derive"] }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/token/ops/create/Cargo.toml b/packages/services/token/ops/create/Cargo.toml
index 3749a0b73d..fc22cd1cd9 100644
--- a/packages/services/token/ops/create/Cargo.toml
+++ b/packages/services/token/ops/create/Cargo.toml
@@ -16,8 +16,7 @@ jsonwebtoken = "8.2.0"
lazy_static = "1.4"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/token/ops/exchange/Cargo.toml b/packages/services/token/ops/exchange/Cargo.toml
index a90144070d..91a81f6330 100644
--- a/packages/services/token/ops/exchange/Cargo.toml
+++ b/packages/services/token/ops/exchange/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
diff --git a/packages/services/token/ops/get/Cargo.toml b/packages/services/token/ops/get/Cargo.toml
index 0d6341cbb6..b21869e948 100644
--- a/packages/services/token/ops/get/Cargo.toml
+++ b/packages/services/token/ops/get/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/token/ops/revoke/Cargo.toml b/packages/services/token/ops/revoke/Cargo.toml
index 5429f9b60d..8b6f6d92f5 100644
--- a/packages/services/token/ops/revoke/Cargo.toml
+++ b/packages/services/token/ops/revoke/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/upload/ops/complete/Cargo.toml b/packages/services/upload/ops/complete/Cargo.toml
index 50403beb56..eb417cab8f 100644
--- a/packages/services/upload/ops/complete/Cargo.toml
+++ b/packages/services/upload/ops/complete/Cargo.toml
@@ -14,8 +14,7 @@ s3-util = { path = "../../../../common/s3-util" }
url = "2.2"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/upload/ops/file-list/Cargo.toml b/packages/services/upload/ops/file-list/Cargo.toml
index 6c47a30386..b17b2bd017 100644
--- a/packages/services/upload/ops/file-list/Cargo.toml
+++ b/packages/services/upload/ops/file-list/Cargo.toml
@@ -12,8 +12,7 @@ prost = "0.10"
rivet-operation = { path = "../../../../common/operation/core" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/upload/ops/get/Cargo.toml b/packages/services/upload/ops/get/Cargo.toml
index 22d9ef2193..5b707d506e 100644
--- a/packages/services/upload/ops/get/Cargo.toml
+++ b/packages/services/upload/ops/get/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/upload/ops/list-for-user/Cargo.toml b/packages/services/upload/ops/list-for-user/Cargo.toml
index 080e1992a1..ed686f679f 100644
--- a/packages/services/upload/ops/list-for-user/Cargo.toml
+++ b/packages/services/upload/ops/list-for-user/Cargo.toml
@@ -12,8 +12,7 @@ chrono = "0.4"
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/upload/ops/prepare/Cargo.toml b/packages/services/upload/ops/prepare/Cargo.toml
index ae61f4eb18..175815bfc6 100644
--- a/packages/services/upload/ops/prepare/Cargo.toml
+++ b/packages/services/upload/ops/prepare/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
s3-util = { path = "../../../../common/s3-util" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/upload/worker/Cargo.toml b/packages/services/upload/worker/Cargo.toml
index 31544cbc25..45f64df35e 100644
--- a/packages/services/upload/worker/Cargo.toml
+++ b/packages/services/upload/worker/Cargo.toml
@@ -15,8 +15,7 @@ s3-util = { path = "../../../common/s3-util" }
rivet-config = { version = "0.1.0", path = "../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user-identity/ops/delete/Cargo.toml b/packages/services/user-identity/ops/delete/Cargo.toml
index f5102bc536..3076a918be 100644
--- a/packages/services/user-identity/ops/delete/Cargo.toml
+++ b/packages/services/user-identity/ops/delete/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user-identity/ops/get/Cargo.toml b/packages/services/user-identity/ops/get/Cargo.toml
index d2e236b9c6..4925e242de 100644
--- a/packages/services/user-identity/ops/get/Cargo.toml
+++ b/packages/services/user-identity/ops/get/Cargo.toml
@@ -13,8 +13,7 @@ user-get = { version = "0.0.1", path = "../../../user/ops/get" }
rivet-config = { version = "0.1.0", path = "../../../../common/config" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user/ops/avatar-upload-complete/Cargo.toml b/packages/services/user/ops/avatar-upload-complete/Cargo.toml
index 6bf0d0cc8a..0f0a6ae267 100644
--- a/packages/services/user/ops/avatar-upload-complete/Cargo.toml
+++ b/packages/services/user/ops/avatar-upload-complete/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
upload-complete = { path = "../../../upload/ops/complete" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user/ops/get/Cargo.toml b/packages/services/user/ops/get/Cargo.toml
index 0d58d6685d..36845dc37b 100644
--- a/packages/services/user/ops/get/Cargo.toml
+++ b/packages/services/user/ops/get/Cargo.toml
@@ -14,8 +14,7 @@ upload-file-list = { path = "../../../upload/ops/file-list" }
upload-get = { path = "../../../upload/ops/get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user/ops/pending-delete-toggle/Cargo.toml b/packages/services/user/ops/pending-delete-toggle/Cargo.toml
index c3d3532221..373fb91125 100644
--- a/packages/services/user/ops/pending-delete-toggle/Cargo.toml
+++ b/packages/services/user/ops/pending-delete-toggle/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
user-identity-get = { path = "../../../user-identity/ops/get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user/ops/profile-validate/Cargo.toml b/packages/services/user/ops/profile-validate/Cargo.toml
index d5bfe86cfd..658e4533bf 100644
--- a/packages/services/user/ops/profile-validate/Cargo.toml
+++ b/packages/services/user/ops/profile-validate/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
user-get = { path = "../get" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user/ops/resolve-email/Cargo.toml b/packages/services/user/ops/resolve-email/Cargo.toml
index 0d683653c8..4ee36f8dd2 100644
--- a/packages/services/user/ops/resolve-email/Cargo.toml
+++ b/packages/services/user/ops/resolve-email/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user/ops/team-list/Cargo.toml b/packages/services/user/ops/team-list/Cargo.toml
index 09d0a29df6..01cf51da4e 100644
--- a/packages/services/user/ops/team-list/Cargo.toml
+++ b/packages/services/user/ops/team-list/Cargo.toml
@@ -11,8 +11,7 @@ chirp-client = { path = "../../../../common/chirp/client" }
prost = "0.10"
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/user/ops/token-create/Cargo.toml b/packages/services/user/ops/token-create/Cargo.toml
index fbe1ee06a2..a35934e40f 100644
--- a/packages/services/user/ops/token-create/Cargo.toml
+++ b/packages/services/user/ops/token-create/Cargo.toml
@@ -13,8 +13,7 @@ prost = "0.10"
token-create = { path = "../../../token/ops/create" }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/packages/services/workflow/standalone/metrics-publish/Cargo.toml b/packages/services/workflow/standalone/metrics-publish/Cargo.toml
index 6219121392..ff4b1d78dd 100644
--- a/packages/services/workflow/standalone/metrics-publish/Cargo.toml
+++ b/packages/services/workflow/standalone/metrics-publish/Cargo.toml
@@ -18,8 +18,7 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "json", "ansi"] }
[dependencies.sqlx]
-git = "https://github.com/rivet-gg/sqlx"
-rev = "e7120f59b74fb6d83ac9b1d899b166bab31ba1d6"
+path = "../../../../../externals/sqlx"
default-features = false
[dev-dependencies]
diff --git a/scripts/fern/check.sh b/scripts/fern/check.sh
index 4554ac4ce6..9b5cae4fae 100755
--- a/scripts/fern/check.sh
+++ b/scripts/fern/check.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euf -o pipefail
-(cd sdks && npx -p fern-api fern check --warnings)
+(cd sdks && npx -p fern-api@0.44.11 fern check --warnings)
diff --git a/scripts/fern/gen_inner.sh b/scripts/fern/gen_inner.sh
index 0590df937f..072b329d76 100755
--- a/scripts/fern/gen_inner.sh
+++ b/scripts/fern/gen_inner.sh
@@ -2,7 +2,7 @@
set -euf -o pipefail
# Generate Fern libraries
-(cd sdks && FERN_NO_VERSION_REDIRECTION=true FERN_DISABLE_TELEMETRY=true npx -p fern-api fern generate --local --group $FERN_GROUP --log-level debug)
+(cd sdks && FERN_NO_VERSION_REDIRECTION=true FERN_DISABLE_TELEMETRY=true npx -p fern-api@0.44.11 fern generate --local --group $FERN_GROUP --log-level debug)
# Add missing deps
(cd sdks/$FERN_GROUP/typescript && nix-shell -p jq --run 'jq ".devDependencies[\"@types/node-fetch\"] = \"2.6.11\"" package.json > package.json.tmp && mv package.json.tmp package.json')
diff --git a/scripts/openapi/gen_rust.sh b/scripts/openapi/gen_rust.sh
index b73ad5ceba..a2d28dddb6 100755
--- a/scripts/openapi/gen_rust.sh
+++ b/scripts/openapi/gen_rust.sh
@@ -30,3 +30,7 @@ if [ "$FERN_GROUP" == "full" ]; then
# HACK: Modify libraries to disallow unknown fields in config
find $GEN_PATH_RUST_CLI -name "cloud_version_*.rs" -exec sed -i 's/\(#\[derive.*Deserialize.*\]\)/\1\n#[serde(deny_unknown_fields)]/g' {} \;
fi
+
+# Format SDKs
+cargo fmt
+
diff --git a/sdks/full/rust/src/apis/actor_api.rs b/sdks/full/rust/src/apis/actor_api.rs
index 765271de25..426517985e 100644
--- a/sdks/full/rust/src/apis/actor_api.rs
+++ b/sdks/full/rust/src/apis/actor_api.rs
@@ -4,222 +4,284 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`actor_create`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorCreateError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`actor_destroy`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorDestroyError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`actor_get`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorGetError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`actor_list`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorListError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Create a new dynamic actor.
-pub async fn actor_create(configuration: &configuration::Configuration, actor_create_actor_request: crate::models::ActorCreateActorRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/actors", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&actor_create_actor_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_create(
+ configuration: &configuration::Configuration,
+ actor_create_actor_request: crate::models::ActorCreateActorRequest,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/actors", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&actor_create_actor_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Destroy a dynamic actor.
-pub async fn actor_destroy(configuration: &configuration::Configuration, actor: &str, project: Option<&str>, environment: Option<&str>, override_kill_timeout: Option) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/actors/{actor}", local_var_configuration.base_path, actor=crate::apis::urlencode(actor));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = override_kill_timeout {
- local_var_req_builder = local_var_req_builder.query(&[("override_kill_timeout", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_destroy(
+ configuration: &configuration::Configuration,
+ actor: &str,
+ project: Option<&str>,
+ environment: Option<&str>,
+ override_kill_timeout: Option,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/actors/{actor}",
+ local_var_configuration.base_path,
+ actor = crate::apis::urlencode(actor)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = override_kill_timeout {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("override_kill_timeout", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Gets a dynamic actor.
-pub async fn actor_get(configuration: &configuration::Configuration, actor: &str, project: Option<&str>, environment: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/actors/{actor}", local_var_configuration.base_path, actor=crate::apis::urlencode(actor));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_get(
+ configuration: &configuration::Configuration,
+ actor: &str,
+ project: Option<&str>,
+ environment: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/actors/{actor}",
+ local_var_configuration.base_path,
+ actor = crate::apis::urlencode(actor)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Lists all actors associated with the token used. Can be filtered by tags in the query string.
-pub async fn actor_list(configuration: &configuration::Configuration, project: Option<&str>, environment: Option<&str>, tags_json: Option<&str>, include_destroyed: Option, cursor: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/actors", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = tags_json {
- local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = include_destroyed {
- local_var_req_builder = local_var_req_builder.query(&[("include_destroyed", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = cursor {
- local_var_req_builder = local_var_req_builder.query(&[("cursor", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_list(
+ configuration: &configuration::Configuration,
+ project: Option<&str>,
+ environment: Option<&str>,
+ tags_json: Option<&str>,
+ include_destroyed: Option,
+ cursor: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/actors", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = tags_json {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = include_destroyed {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("include_destroyed", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = cursor {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("cursor", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/actor_builds_api.rs b/sdks/full/rust/src/apis/actor_builds_api.rs
index b5e053e283..704abe4e48 100644
--- a/sdks/full/rust/src/apis/actor_builds_api.rs
+++ b/sdks/full/rust/src/apis/actor_builds_api.rs
@@ -4,272 +4,354 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`actor_builds_complete`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorBuildsCompleteError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`actor_builds_get`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorBuildsGetError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`actor_builds_list`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorBuildsListError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`actor_builds_patch_tags`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorBuildsPatchTagsError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`actor_builds_prepare`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorBuildsPrepareError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Marks an upload as complete.
-pub async fn actor_builds_complete(configuration: &configuration::Configuration, build: &str, project: Option<&str>, environment: Option<&str>) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/builds/{build}/complete", local_var_configuration.base_path, build=crate::apis::urlencode(build));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_builds_complete(
+ configuration: &configuration::Configuration,
+ build: &str,
+ project: Option<&str>,
+ environment: Option<&str>,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/builds/{build}/complete",
+ local_var_configuration.base_path,
+ build = crate::apis::urlencode(build)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Lists all builds of the project associated with the token used. Can be filtered by tags in the query string.
-pub async fn actor_builds_get(configuration: &configuration::Configuration, build: &str, project: Option<&str>, environment: Option<&str>, tags_json: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/builds/{build}", local_var_configuration.base_path, build=crate::apis::urlencode(build));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = tags_json {
- local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_builds_get(
+ configuration: &configuration::Configuration,
+ build: &str,
+ project: Option<&str>,
+ environment: Option<&str>,
+ tags_json: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/builds/{build}",
+ local_var_configuration.base_path,
+ build = crate::apis::urlencode(build)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = tags_json {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Lists all builds of the project associated with the token used. Can be filtered by tags in the query string.
-pub async fn actor_builds_list(configuration: &configuration::Configuration, project: Option<&str>, environment: Option<&str>, tags_json: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/builds", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = tags_json {
- local_var_req_builder = local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_builds_list(
+ configuration: &configuration::Configuration,
+ project: Option<&str>,
+ environment: Option<&str>,
+ tags_json: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/builds", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = tags_json {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("tags_json", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-pub async fn actor_builds_patch_tags(configuration: &configuration::Configuration, build: &str, actor_patch_build_tags_request: crate::models::ActorPatchBuildTagsRequest, project: Option<&str>, environment: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/builds/{build}/tags", local_var_configuration.base_path, build=crate::apis::urlencode(build));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&actor_patch_build_tags_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_builds_patch_tags(
+ configuration: &configuration::Configuration,
+ build: &str,
+ actor_patch_build_tags_request: crate::models::ActorPatchBuildTagsRequest,
+ project: Option<&str>,
+ environment: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/builds/{build}/tags",
+ local_var_configuration.base_path,
+ build = crate::apis::urlencode(build)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&actor_patch_build_tags_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Creates a new project build for the given project.
-pub async fn actor_builds_prepare(configuration: &configuration::Configuration, actor_prepare_build_request: crate::models::ActorPrepareBuildRequest, project: Option<&str>, environment: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/builds/prepare", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&actor_prepare_build_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn actor_builds_prepare(
+ configuration: &configuration::Configuration,
+ actor_prepare_build_request: crate::models::ActorPrepareBuildRequest,
+ project: Option<&str>,
+ environment: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/builds/prepare", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&actor_prepare_build_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/actor_logs_api.rs b/sdks/full/rust/src/apis/actor_logs_api.rs
index 461db7db1d..e5136cbffe 100644
--- a/sdks/full/rust/src/apis/actor_logs_api.rs
+++ b/sdks/full/rust/src/apis/actor_logs_api.rs
@@ -4,69 +4,86 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`actor_logs_get`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorLogsGetError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Returns the logs for a given actor.
-pub async fn actor_logs_get(configuration: &configuration::Configuration, actor: &str, stream: crate::models::ActorLogStream, project: Option<&str>, environment: Option<&str>, watch_index: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
+pub async fn actor_logs_get(
+ configuration: &configuration::Configuration,
+ actor: &str,
+ stream: crate::models::ActorLogStream,
+ project: Option<&str>,
+ environment: Option<&str>,
+ watch_index: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
- let local_var_client = &local_var_configuration.client;
+ let local_var_client = &local_var_configuration.client;
- let local_var_uri_str = format!("{}/actors/{actor}/logs", local_var_configuration.base_path, actor=crate::apis::urlencode(actor));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+ let local_var_uri_str = format!(
+ "{}/actors/{actor}/logs",
+ local_var_configuration.base_path,
+ actor = crate::apis::urlencode(actor)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- local_var_req_builder = local_var_req_builder.query(&[("stream", &stream.to_string())]);
- if let Some(ref local_var_str) = watch_index {
- local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ local_var_req_builder = local_var_req_builder.query(&[("stream", &stream.to_string())]);
+ if let Some(ref local_var_str) = watch_index {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/actor_regions_api.rs b/sdks/full/rust/src/apis/actor_regions_api.rs
index 4dacb2916b..965ea3902a 100644
--- a/sdks/full/rust/src/apis/actor_regions_api.rs
+++ b/sdks/full/rust/src/apis/actor_regions_api.rs
@@ -4,64 +4,73 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`actor_regions_list`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ActorRegionsListError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
+pub async fn actor_regions_list(
+ configuration: &configuration::Configuration,
+ project: Option<&str>,
+ environment: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
-pub async fn actor_regions_list(configuration: &configuration::Configuration, project: Option<&str>, environment: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
+ let local_var_client = &local_var_configuration.client;
- let local_var_client = &local_var_configuration.client;
+ let local_var_uri_str = format!("{}/regions", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
- let local_var_uri_str = format!("{}/regions", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+ if let Some(ref local_var_str) = project {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = environment {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
- if let Some(ref local_var_str) = project {
- local_var_req_builder = local_var_req_builder.query(&[("project", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = environment {
- local_var_req_builder = local_var_req_builder.query(&[("environment", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/auth_identity_email_api.rs b/sdks/full/rust/src/apis/auth_identity_email_api.rs
index 751bdad564..01663ebd12 100644
--- a/sdks/full/rust/src/apis/auth_identity_email_api.rs
+++ b/sdks/full/rust/src/apis/auth_identity_email_api.rs
@@ -4,105 +4,135 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`auth_identity_email_complete_email_verification`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum AuthIdentityEmailCompleteEmailVerificationError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`auth_identity_email_start_email_verification`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum AuthIdentityEmailStartEmailVerificationError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Completes the email verification process.
-pub async fn auth_identity_email_complete_email_verification(configuration: &configuration::Configuration, auth_identity_complete_email_verification_request: crate::models::AuthIdentityCompleteEmailVerificationRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/auth/identity/email/complete-verification", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&auth_identity_complete_email_verification_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn auth_identity_email_complete_email_verification(
+ configuration: &configuration::Configuration,
+ auth_identity_complete_email_verification_request: crate::models::AuthIdentityCompleteEmailVerificationRequest,
+) -> Result<
+ crate::models::AuthIdentityCompleteEmailVerificationResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/auth/identity/email/complete-verification",
+ local_var_configuration.base_path
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&auth_identity_complete_email_verification_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Starts the verification process for linking an email to your identity.
-pub async fn auth_identity_email_start_email_verification(configuration: &configuration::Configuration, auth_identity_start_email_verification_request: crate::models::AuthIdentityStartEmailVerificationRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/auth/identity/email/start-verification", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&auth_identity_start_email_verification_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn auth_identity_email_start_email_verification(
+ configuration: &configuration::Configuration,
+ auth_identity_start_email_verification_request: crate::models::AuthIdentityStartEmailVerificationRequest,
+) -> Result<
+ crate::models::AuthIdentityStartEmailVerificationResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/auth/identity/email/start-verification",
+ local_var_configuration.base_path
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&auth_identity_start_email_verification_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/auth_tokens_api.rs b/sdks/full/rust/src/apis/auth_tokens_api.rs
index 1890915227..e528d6d633 100644
--- a/sdks/full/rust/src/apis/auth_tokens_api.rs
+++ b/sdks/full/rust/src/apis/auth_tokens_api.rs
@@ -4,60 +4,69 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`auth_tokens_refresh_identity_token`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum AuthTokensRefreshIdentityTokenError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Refreshes the current identity's token and sets authentication headers.
-pub async fn auth_tokens_refresh_identity_token(configuration: &configuration::Configuration, auth_refresh_identity_token_request: crate::models::AuthRefreshIdentityTokenRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/auth/tokens/identity", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&auth_refresh_identity_token_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
-}
+pub async fn auth_tokens_refresh_identity_token(
+ configuration: &configuration::Configuration,
+ auth_refresh_identity_token_request: crate::models::AuthRefreshIdentityTokenRequest,
+) -> Result<
+ crate::models::AuthRefreshIdentityTokenResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+ let local_var_uri_str = format!("{}/auth/tokens/identity", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&auth_refresh_identity_token_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
+}
diff --git a/sdks/full/rust/src/apis/cloud_api.rs b/sdks/full/rust/src/apis/cloud_api.rs
index a440747fbd..60482ad366 100644
--- a/sdks/full/rust/src/apis/cloud_api.rs
+++ b/sdks/full/rust/src/apis/cloud_api.rs
@@ -4,59 +4,64 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_bootstrap`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudBootstrapError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Returns the basic information required to use the cloud APIs.
-pub async fn cloud_bootstrap(configuration: &configuration::Configuration, ) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/bootstrap", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
-}
+pub async fn cloud_bootstrap(
+ configuration: &configuration::Configuration,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+ let local_var_uri_str = format!("{}/cloud/bootstrap", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
+}
diff --git a/sdks/full/rust/src/apis/cloud_auth_api.rs b/sdks/full/rust/src/apis/cloud_auth_api.rs
index dd9b6ace1c..e400bc46b1 100644
--- a/sdks/full/rust/src/apis/cloud_auth_api.rs
+++ b/sdks/full/rust/src/apis/cloud_auth_api.rs
@@ -4,59 +4,64 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_auth_inspect`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudAuthInspectError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Returns information about the current authenticated agent.
-pub async fn cloud_auth_inspect(configuration: &configuration::Configuration, ) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/auth/inspect", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
-}
+pub async fn cloud_auth_inspect(
+ configuration: &configuration::Configuration,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+ let local_var_uri_str = format!("{}/cloud/auth/inspect", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
+}
diff --git a/sdks/full/rust/src/apis/cloud_devices_links_api.rs b/sdks/full/rust/src/apis/cloud_devices_links_api.rs
index ded16ed7e6..2d5c04d917 100644
--- a/sdks/full/rust/src/apis/cloud_devices_links_api.rs
+++ b/sdks/full/rust/src/apis/cloud_devices_links_api.rs
@@ -4,140 +4,174 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_devices_links_complete`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudDevicesLinksCompleteError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_devices_links_get`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudDevicesLinksGetError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_devices_links_prepare`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudDevicesLinksPrepareError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
-pub async fn cloud_devices_links_complete(configuration: &configuration::Configuration, cloud_devices_complete_device_link_request: crate::models::CloudDevicesCompleteDeviceLinkRequest) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/devices/links/complete", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- local_var_req_builder = local_var_req_builder.json(&cloud_devices_complete_device_link_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_devices_links_complete(
+ configuration: &configuration::Configuration,
+ cloud_devices_complete_device_link_request: crate::models::CloudDevicesCompleteDeviceLinkRequest,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/devices/links/complete",
+ local_var_configuration.base_path
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ local_var_req_builder = local_var_req_builder.json(&cloud_devices_complete_device_link_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-pub async fn cloud_devices_links_get(configuration: &configuration::Configuration, device_link_token: &str, watch_index: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/devices/links", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- local_var_req_builder = local_var_req_builder.query(&[("device_link_token", &device_link_token.to_string())]);
- if let Some(ref local_var_str) = watch_index {
- local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_devices_links_get(
+ configuration: &configuration::Configuration,
+ device_link_token: &str,
+ watch_index: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/cloud/devices/links", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ local_var_req_builder =
+ local_var_req_builder.query(&[("device_link_token", &device_link_token.to_string())]);
+ if let Some(ref local_var_str) = watch_index {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-pub async fn cloud_devices_links_prepare(configuration: &configuration::Configuration, ) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/devices/links", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_devices_links_prepare(
+ configuration: &configuration::Configuration,
+) -> Result<
+ crate::models::CloudDevicesPrepareDeviceLinkResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/cloud/devices/links", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_api.rs b/sdks/full/rust/src/apis/cloud_games_api.rs
index b9a0a98e2b..455760ed69 100644
--- a/sdks/full/rust/src/apis/cloud_games_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_api.rs
@@ -4,377 +4,490 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_create_game`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesCreateGameError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_game_banner_upload_complete`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesGameBannerUploadCompleteError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_game_banner_upload_prepare`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesGameBannerUploadPrepareError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_game_logo_upload_complete`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesGameLogoUploadCompleteError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_game_logo_upload_prepare`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesGameLogoUploadPrepareError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_get_game_by_id`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesGetGameByIdError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_get_games`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesGetGamesError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_validate_game`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesValidateGameError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Creates a new game.
-pub async fn cloud_games_create_game(configuration: &configuration::Configuration, cloud_games_create_game_request: crate::models::CloudGamesCreateGameRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_create_game(
+ configuration: &configuration::Configuration,
+ cloud_games_create_game_request: crate::models::CloudGamesCreateGameRequest,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/cloud/games", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Completes an game banner image upload. Must be called after the file upload process completes.
-pub async fn cloud_games_game_banner_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/banner-upload/{upload_id}/complete", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), upload_id=crate::apis::urlencode(upload_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_game_banner_upload_complete(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ upload_id: &str,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/banner-upload/{upload_id}/complete",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ upload_id = crate::apis::urlencode(upload_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Prepares a game banner image upload.
-pub async fn cloud_games_game_banner_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_banner_upload_prepare_request: crate::models::CloudGamesGameBannerUploadPrepareRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/banner-upload/prepare", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_game_banner_upload_prepare_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_game_banner_upload_prepare(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_game_banner_upload_prepare_request: crate::models::CloudGamesGameBannerUploadPrepareRequest,
+) -> Result<
+ crate::models::CloudGamesGameBannerUploadPrepareResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/banner-upload/prepare",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_game_banner_upload_prepare_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Completes a game logo image upload. Must be called after the file upload process completes.
-pub async fn cloud_games_game_logo_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/logo-upload/{upload_id}/complete", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), upload_id=crate::apis::urlencode(upload_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_game_logo_upload_complete(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ upload_id: &str,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/logo-upload/{upload_id}/complete",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ upload_id = crate::apis::urlencode(upload_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Prepares a game logo image upload.
-pub async fn cloud_games_game_logo_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_logo_upload_prepare_request: crate::models::CloudGamesGameLogoUploadPrepareRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/logo-upload/prepare", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_game_logo_upload_prepare_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_game_logo_upload_prepare(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_game_logo_upload_prepare_request: crate::models::CloudGamesGameLogoUploadPrepareRequest,
+) -> Result<
+ crate::models::CloudGamesGameLogoUploadPrepareResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/logo-upload/prepare",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_game_logo_upload_prepare_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Returns a game by its game id.
-pub async fn cloud_games_get_game_by_id(configuration: &configuration::Configuration, game_id: &str, watch_index: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = watch_index {
- local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_get_game_by_id(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ watch_index: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = watch_index {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Returns a list of games in which the current identity is a group member of its development team.
-pub async fn cloud_games_get_games(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = watch_index {
- local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_get_games(
+ configuration: &configuration::Configuration,
+ watch_index: Option<&str>,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/cloud/games", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = watch_index {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Validates information used to create a new game.
-pub async fn cloud_games_validate_game(configuration: &configuration::Configuration, cloud_games_validate_game_request: crate::models::CloudGamesValidateGameRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/validate", local_var_configuration.base_path);
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_validate_game_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_validate_game(
+ configuration: &configuration::Configuration,
+ cloud_games_validate_game_request: crate::models::CloudGamesValidateGameRequest,
+) -> Result> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!("{}/cloud/games/validate", local_var_configuration.base_path);
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&cloud_games_validate_game_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_avatars_api.rs b/sdks/full/rust/src/apis/cloud_games_avatars_api.rs
index f8f658cb3b..f04e020c20 100644
--- a/sdks/full/rust/src/apis/cloud_games_avatars_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_avatars_api.rs
@@ -4,148 +4,196 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_avatars_complete_custom_avatar_upload`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesAvatarsCompleteCustomAvatarUploadError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_avatars_list_game_custom_avatars`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesAvatarsListGameCustomAvatarsError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_avatars_prepare_custom_avatar_upload`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesAvatarsPrepareCustomAvatarUploadError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Completes a custom avatar image upload. Must be called after the file upload process completes.
-pub async fn cloud_games_avatars_complete_custom_avatar_upload(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/avatar-upload/{upload_id}/complete", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), upload_id=crate::apis::urlencode(upload_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_avatars_complete_custom_avatar_upload(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ upload_id: &str,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/avatar-upload/{upload_id}/complete",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ upload_id = crate::apis::urlencode(upload_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Lists custom avatars for the given game.
-pub async fn cloud_games_avatars_list_game_custom_avatars(configuration: &configuration::Configuration, game_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/avatars", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_avatars_list_game_custom_avatars(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+) -> Result<
+ crate::models::CloudGamesListGameCustomAvatarsResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/avatars",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Prepares a custom avatar image upload. Complete upload with `rivet.api.cloud#CompleteCustomAvatarUpload`.
-pub async fn cloud_games_avatars_prepare_custom_avatar_upload(configuration: &configuration::Configuration, game_id: &str, cloud_games_prepare_custom_avatar_upload_request: crate::models::CloudGamesPrepareCustomAvatarUploadRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/prepare", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_prepare_custom_avatar_upload_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_avatars_prepare_custom_avatar_upload(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_prepare_custom_avatar_upload_request: crate::models::CloudGamesPrepareCustomAvatarUploadRequest,
+) -> Result<
+ crate::models::CloudGamesPrepareCustomAvatarUploadResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/prepare",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_prepare_custom_avatar_upload_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_builds_api.rs b/sdks/full/rust/src/apis/cloud_games_builds_api.rs
index d1bc1e91f6..8dcd39fabd 100644
--- a/sdks/full/rust/src/apis/cloud_games_builds_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_builds_api.rs
@@ -4,104 +4,135 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_builds_create_game_build`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesBuildsCreateGameBuildError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_builds_list_game_builds`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesBuildsListGameBuildsError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Creates a new game build for the given game.
-pub async fn cloud_games_builds_create_game_build(configuration: &configuration::Configuration, game_id: &str, cloud_games_create_game_build_request: crate::models::CloudGamesCreateGameBuildRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/builds", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_build_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_builds_create_game_build(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_create_game_build_request: crate::models::CloudGamesCreateGameBuildRequest,
+) -> Result<
+ crate::models::CloudGamesCreateGameBuildResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/builds",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_build_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Lists game builds for the given game.
-pub async fn cloud_games_builds_list_game_builds(configuration: &configuration::Configuration, game_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/builds", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_builds_list_game_builds(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+) -> Result<
+ crate::models::CloudGamesListGameBuildsResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/builds",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_cdn_api.rs b/sdks/full/rust/src/apis/cloud_games_cdn_api.rs
index 7e017e7854..3c11c484c9 100644
--- a/sdks/full/rust/src/apis/cloud_games_cdn_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_cdn_api.rs
@@ -4,104 +4,135 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_cdn_create_game_cdn_site`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesCdnCreateGameCdnSiteError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_cdn_list_game_cdn_sites`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesCdnListGameCdnSitesError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Creates a new CDN site for the given game.
-pub async fn cloud_games_cdn_create_game_cdn_site(configuration: &configuration::Configuration, game_id: &str, cloud_games_create_game_cdn_site_request: crate::models::CloudGamesCreateGameCdnSiteRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/cdn/sites", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_cdn_site_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_cdn_create_game_cdn_site(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_create_game_cdn_site_request: crate::models::CloudGamesCreateGameCdnSiteRequest,
+) -> Result<
+ crate::models::CloudGamesCreateGameCdnSiteResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/cdn/sites",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_cdn_site_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Lists CDN sites for a game.
-pub async fn cloud_games_cdn_list_game_cdn_sites(configuration: &configuration::Configuration, game_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/cdn/sites", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_cdn_list_game_cdn_sites(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+) -> Result<
+ crate::models::CloudGamesListGameCdnSitesResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/cdn/sites",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_matchmaker_api.rs b/sdks/full/rust/src/apis/cloud_games_matchmaker_api.rs
index 81ac9a1086..dd9e9dd021 100644
--- a/sdks/full/rust/src/apis/cloud_games_matchmaker_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_matchmaker_api.rs
@@ -4,197 +4,273 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_matchmaker_delete_matchmaker_lobby`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesMatchmakerDeleteMatchmakerLobbyError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_matchmaker_export_lobby_logs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesMatchmakerExportLobbyLogsError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_matchmaker_export_matchmaker_lobby_history`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesMatchmakerExportMatchmakerLobbyHistoryError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_matchmaker_get_lobby_logs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesMatchmakerGetLobbyLogsError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Deletes a matchmaker lobby, stopping it immediately.
-pub async fn cloud_games_matchmaker_delete_matchmaker_lobby(configuration: &configuration::Configuration, game_id: &str, lobby_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), lobby_id=crate::apis::urlencode(lobby_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_matchmaker_delete_matchmaker_lobby(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ lobby_id: &str,
+) -> Result<
+ crate::models::CloudGamesDeleteMatchmakerLobbyResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ lobby_id = crate::apis::urlencode(lobby_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Generates a download URL for logs.
-pub async fn cloud_games_matchmaker_export_lobby_logs(configuration: &configuration::Configuration, game_id: &str, lobby_id: &str, cloud_games_export_lobby_logs_request: crate::models::CloudGamesExportLobbyLogsRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), lobby_id=crate::apis::urlencode(lobby_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_export_lobby_logs_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_matchmaker_export_lobby_logs(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ lobby_id: &str,
+ cloud_games_export_lobby_logs_request: crate::models::CloudGamesExportLobbyLogsRequest,
+) -> Result<
+ crate::models::CloudGamesExportLobbyLogsResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ lobby_id = crate::apis::urlencode(lobby_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&cloud_games_export_lobby_logs_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Exports lobby history over a given query time span.
-pub async fn cloud_games_matchmaker_export_matchmaker_lobby_history(configuration: &configuration::Configuration, game_id: &str, cloud_games_export_matchmaker_lobby_history_request: crate::models::CloudGamesExportMatchmakerLobbyHistoryRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/export-history", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_export_matchmaker_lobby_history_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_matchmaker_export_matchmaker_lobby_history(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_export_matchmaker_lobby_history_request: crate::models::CloudGamesExportMatchmakerLobbyHistoryRequest,
+) -> Result<
+ crate::models::CloudGamesExportMatchmakerLobbyHistoryResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/matchmaker/lobbies/export-history",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_export_matchmaker_lobby_history_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Returns the logs for a given lobby.
-pub async fn cloud_games_matchmaker_get_lobby_logs(configuration: &configuration::Configuration, game_id: &str, lobby_id: &str, stream: crate::models::CloudGamesLogStream, watch_index: Option<&str>) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), lobby_id=crate::apis::urlencode(lobby_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- local_var_req_builder = local_var_req_builder.query(&[("stream", &stream.to_string())]);
- if let Some(ref local_var_str) = watch_index {
- local_var_req_builder = local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_matchmaker_get_lobby_logs(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ lobby_id: &str,
+ stream: crate::models::CloudGamesLogStream,
+ watch_index: Option<&str>,
+) -> Result<
+ crate::models::CloudGamesGetLobbyLogsResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ lobby_id = crate::apis::urlencode(lobby_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ local_var_req_builder = local_var_req_builder.query(&[("stream", &stream.to_string())]);
+ if let Some(ref local_var_str) = watch_index {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("watch_index", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_namespaces_analytics_api.rs b/sdks/full/rust/src/apis/cloud_games_namespaces_analytics_api.rs
index 07ac2d5954..3ea7312a59 100644
--- a/sdks/full/rust/src/apis/cloud_games_namespaces_analytics_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_namespaces_analytics_api.rs
@@ -4,59 +4,74 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_namespaces_analytics_get_analytics_matchmaker_live`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesAnalyticsGetAnalyticsMatchmakerLiveError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Returns live information about all active lobbies for a given namespace.
-pub async fn cloud_games_namespaces_analytics_get_analytics_matchmaker_live(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/analytics/matchmaker/live", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
-}
+pub async fn cloud_games_namespaces_analytics_get_analytics_matchmaker_live(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+) -> Result<
+ crate::models::CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/analytics/matchmaker/live",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
+}
diff --git a/sdks/full/rust/src/apis/cloud_games_namespaces_api.rs b/sdks/full/rust/src/apis/cloud_games_namespaces_api.rs
index db4128e3af..89824582e0 100644
--- a/sdks/full/rust/src/apis/cloud_games_namespaces_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_namespaces_api.rs
@@ -4,736 +4,1040 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_namespaces_add_namespace_domain`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesAddNamespaceDomainError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_create_game_namespace`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesCreateGameNamespaceError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_create_game_namespace_token_development`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_create_game_namespace_token_public`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesCreateGameNamespaceTokenPublicError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_get_game_namespace_by_id`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesGetGameNamespaceByIdError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_get_game_namespace_version_history_list`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesGetGameNamespaceVersionHistoryListError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_remove_namespace_cdn_auth_user`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesRemoveNamespaceCdnAuthUserError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_remove_namespace_domain`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesRemoveNamespaceDomainError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_set_namespace_cdn_auth_type`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesSetNamespaceCdnAuthTypeError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_toggle_namespace_domain_public_auth`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesToggleNamespaceDomainPublicAuthError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_update_game_namespace_matchmaker_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_update_game_namespace_version`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesUpdateGameNamespaceVersionError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_update_namespace_cdn_auth_user`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesUpdateNamespaceCdnAuthUserError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_validate_game_namespace`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesValidateGameNamespaceError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_validate_game_namespace_matchmaker_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_validate_game_namespace_token_development`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Adds a domain to the given game namespace.
-pub async fn cloud_games_namespaces_add_namespace_domain(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_add_namespace_domain_request: crate::models::CloudGamesNamespacesAddNamespaceDomainRequest) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/domains", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_add_namespace_domain_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_add_namespace_domain(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_add_namespace_domain_request: crate::models::CloudGamesNamespacesAddNamespaceDomainRequest,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/domains",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_namespaces_add_namespace_domain_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Creates a new namespace for the given game.
-pub async fn cloud_games_namespaces_create_game_namespace(configuration: &configuration::Configuration, game_id: &str, cloud_games_namespaces_create_game_namespace_request: crate::models::CloudGamesNamespacesCreateGameNamespaceRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_create_game_namespace_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_create_game_namespace(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_namespaces_create_game_namespace_request: crate::models::CloudGamesNamespacesCreateGameNamespaceRequest,
+) -> Result<
+ crate::models::CloudGamesNamespacesCreateGameNamespaceResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_namespaces_create_game_namespace_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Creates a development token for the given namespace.
-pub async fn cloud_games_namespaces_create_game_namespace_token_development(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_create_game_namespace_token_development_request: crate::models::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_create_game_namespace_token_development_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_create_game_namespace_token_development(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_create_game_namespace_token_development_request: crate::models::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest,
+) -> Result<
+ crate::models::CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder
+ .json(&cloud_games_namespaces_create_game_namespace_token_development_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Creates a public token for the given namespace.
-pub async fn cloud_games_namespaces_create_game_namespace_token_public(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/public", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_create_game_namespace_token_public(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+) -> Result<
+ crate::models::CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/public",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Gets a game namespace by namespace ID.
-pub async fn cloud_games_namespaces_get_game_namespace_by_id(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_get_game_namespace_by_id(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+) -> Result<
+ crate::models::CloudGamesNamespacesGetGameNamespaceByIdResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Gets the version history for a given namespace.
-pub async fn cloud_games_namespaces_get_game_namespace_version_history_list(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, anchor: Option<&str>, limit: Option) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/version-history", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = anchor {
- local_var_req_builder = local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_str) = limit {
- local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_get_game_namespace_version_history_list(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ anchor: Option<&str>,
+ limit: Option,
+) -> Result<
+ crate::models::CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/version-history",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = anchor {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("anchor", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_str) = limit {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("limit", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Removes an authenticated user from the given game namespace.
-pub async fn cloud_games_namespaces_remove_namespace_cdn_auth_user(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, user: &str) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/auth-user/{user}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id), user=crate::apis::urlencode(user));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_remove_namespace_cdn_auth_user(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ user: &str,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/auth-user/{user}",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id),
+ user = crate::apis::urlencode(user)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Removes a domain from the given game namespace.
-pub async fn cloud_games_namespaces_remove_namespace_domain(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, domain: &str) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/domains/{domain}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id), domain=crate::apis::urlencode(domain));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_remove_namespace_domain(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ domain: &str,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/domains/{domain}",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id),
+ domain = crate::apis::urlencode(domain)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Updates the CDN authentication type of the given game namespace.
-pub async fn cloud_games_namespaces_set_namespace_cdn_auth_type(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_set_namespace_cdn_auth_type_request: crate::models::CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/cdn-auth", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_set_namespace_cdn_auth_type_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_set_namespace_cdn_auth_type(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_set_namespace_cdn_auth_type_request: crate::models::CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/cdn-auth",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_namespaces_set_namespace_cdn_auth_type_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Toggles whether or not to allow authentication based on domain for the given game namespace.
-pub async fn cloud_games_namespaces_toggle_namespace_domain_public_auth(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_toggle_namespace_domain_public_auth_request: crate::models::CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/domain-public-auth", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_toggle_namespace_domain_public_auth_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_toggle_namespace_domain_public_auth(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_toggle_namespace_domain_public_auth_request: crate::models::CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/domain-public-auth",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder
+ .json(&cloud_games_namespaces_toggle_namespace_domain_public_auth_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Updates matchmaker config for the given game namespace.
-pub async fn cloud_games_namespaces_update_game_namespace_matchmaker_config(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_update_game_namespace_matchmaker_config_request: crate::models::CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/mm-config", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_update_game_namespace_matchmaker_config_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_update_game_namespace_matchmaker_config(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_update_game_namespace_matchmaker_config_request: crate::models::CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/mm-config",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder
+ .json(&cloud_games_namespaces_update_game_namespace_matchmaker_config_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Updates the version of a game namespace.
-pub async fn cloud_games_namespaces_update_game_namespace_version(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_update_game_namespace_version_request: crate::models::CloudGamesNamespacesUpdateGameNamespaceVersionRequest) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/version", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_update_game_namespace_version_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_update_game_namespace_version(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_update_game_namespace_version_request: crate::models::CloudGamesNamespacesUpdateGameNamespaceVersionRequest,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/version",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_namespaces_update_game_namespace_version_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Adds an authenticated user to the given game namespace.
-pub async fn cloud_games_namespaces_update_namespace_cdn_auth_user(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_update_namespace_cdn_auth_user_request: crate::models::CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest) -> Result<(), Error> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/auth-user", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_update_namespace_cdn_auth_user_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- Ok(())
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_update_namespace_cdn_auth_user(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_update_namespace_cdn_auth_user_request: crate::models::CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest,
+) -> Result<(), Error> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/auth-user",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_namespaces_update_namespace_cdn_auth_user_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ Ok(())
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Validates information used to create a new game namespace.
-pub async fn cloud_games_namespaces_validate_game_namespace(configuration: &configuration::Configuration, game_id: &str, cloud_games_namespaces_validate_game_namespace_request: crate::models::CloudGamesNamespacesValidateGameNamespaceRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_validate_game_namespace_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_validate_game_namespace(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_namespaces_validate_game_namespace_request: crate::models::CloudGamesNamespacesValidateGameNamespaceRequest,
+) -> Result<
+ crate::models::CloudGamesNamespacesValidateGameNamespaceResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/validate",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder =
+ local_var_req_builder.json(&cloud_games_namespaces_validate_game_namespace_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Validates information used to update a game namespace's matchmaker config.
-pub async fn cloud_games_namespaces_validate_game_namespace_matchmaker_config(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_validate_game_namespace_matchmaker_config_request: crate::models::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/mm-config/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_validate_game_namespace_matchmaker_config_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_validate_game_namespace_matchmaker_config(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_validate_game_namespace_matchmaker_config_request: crate::models::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest,
+) -> Result<
+ crate::models::CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/mm-config/validate",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder
+ .json(&cloud_games_namespaces_validate_game_namespace_matchmaker_config_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option<
+ CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigError,
+ > = serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Validates information used to create a new game namespace development token.
-pub async fn cloud_games_namespaces_validate_game_namespace_token_development(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, cloud_games_namespaces_validate_game_namespace_token_development_request: crate::models::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_namespaces_validate_game_namespace_token_development_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_validate_game_namespace_token_development(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ cloud_games_namespaces_validate_game_namespace_token_development_request: crate::models::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest,
+) -> Result<
+ crate::models::CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder
+ .json(&cloud_games_namespaces_validate_game_namespace_token_development_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option<
+ CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentError,
+ > = serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs b/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs
index 43e8b17d20..2a2849f0bd 100644
--- a/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs
@@ -4,106 +4,144 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_namespaces_logs_get_namespace_lobby`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesLogsGetNamespaceLobbyError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_namespaces_logs_list_namespace_lobbies`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesNamespacesLogsListNamespaceLobbiesError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Returns a lobby from the given game namespace.
-pub async fn cloud_games_namespaces_logs_get_namespace_lobby(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, lobby_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies/{lobby_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id), lobby_id=crate::apis::urlencode(lobby_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_logs_get_namespace_lobby(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ lobby_id: &str,
+) -> Result<
+ crate::models::CloudGamesNamespacesGetNamespaceLobbyResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies/{lobby_id}",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id),
+ lobby_id = crate::apis::urlencode(lobby_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Returns a list of lobbies for the given game namespace.
-pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), namespace_id=crate::apis::urlencode(namespace_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_str) = before_create_ts {
- local_var_req_builder = local_var_req_builder.query(&[("before_create_ts", &local_var_str.to_string())]);
- }
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ namespace_id: &str,
+ before_create_ts: Option,
+) -> Result<
+ crate::models::CloudGamesNamespacesListNamespaceLobbiesResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ namespace_id = crate::apis::urlencode(namespace_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_str) = before_create_ts {
+ local_var_req_builder =
+ local_var_req_builder.query(&[("before_create_ts", &local_var_str.to_string())]);
+ }
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
-
diff --git a/sdks/full/rust/src/apis/cloud_games_tokens_api.rs b/sdks/full/rust/src/apis/cloud_games_tokens_api.rs
index 42318b5460..b37531cc9a 100644
--- a/sdks/full/rust/src/apis/cloud_games_tokens_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_tokens_api.rs
@@ -4,59 +4,72 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_tokens_create_cloud_token`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesTokensCreateCloudTokenError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Creates a new game cloud token.
-pub async fn cloud_games_tokens_create_cloud_token(configuration: &configuration::Configuration, game_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/tokens/cloud", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
-}
+pub async fn cloud_games_tokens_create_cloud_token(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+) -> Result<
+ crate::models::CloudGamesCreateCloudTokenResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/tokens/cloud",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
+}
diff --git a/sdks/full/rust/src/apis/cloud_games_versions_api.rs b/sdks/full/rust/src/apis/cloud_games_versions_api.rs
index 3b57b01cc3..a8b523d19a 100644
--- a/sdks/full/rust/src/apis/cloud_games_versions_api.rs
+++ b/sdks/full/rust/src/apis/cloud_games_versions_api.rs
@@ -4,193 +4,261 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
- *
+ *
* Generated by: https://openapi-generator.tech
*/
-
use reqwest;
+use super::{configuration, Error};
use crate::apis::ResponseContent;
-use super::{Error, configuration};
-
/// struct for typed errors of method [`cloud_games_versions_create_game_version`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesVersionsCreateGameVersionError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_versions_get_game_version_by_id`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesVersionsGetGameVersionByIdError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_versions_reserve_version_name`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesVersionsReserveVersionNameError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
/// struct for typed errors of method [`cloud_games_versions_validate_game_version`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CloudGamesVersionsValidateGameVersionError {
- Status400(crate::models::ErrorBody),
- Status403(crate::models::ErrorBody),
- Status404(crate::models::ErrorBody),
- Status408(crate::models::ErrorBody),
- Status429(crate::models::ErrorBody),
- Status500(crate::models::ErrorBody),
- UnknownValue(serde_json::Value),
+ Status400(crate::models::ErrorBody),
+ Status403(crate::models::ErrorBody),
+ Status404(crate::models::ErrorBody),
+ Status408(crate::models::ErrorBody),
+ Status429(crate::models::ErrorBody),
+ Status500(crate::models::ErrorBody),
+ UnknownValue(serde_json::Value),
}
-
/// Creates a new game version.
-pub async fn cloud_games_versions_create_game_version(configuration: &configuration::Configuration, game_id: &str, cloud_games_create_game_version_request: crate::models::CloudGamesCreateGameVersionRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_version_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_versions_create_game_version(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_create_game_version_request: crate::models::CloudGamesCreateGameVersionRequest,
+) -> Result<
+ crate::models::CloudGamesCreateGameVersionResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/versions",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+ local_var_req_builder = local_var_req_builder.json(&cloud_games_create_game_version_request);
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Returns a game version by its version ID.
-pub async fn cloud_games_versions_get_game_version_by_id(configuration: &configuration::Configuration, game_id: &str, version_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions/{version_id}", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id), version_id=crate::apis::urlencode(version_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_versions_get_game_version_by_id(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ version_id: &str,
+) -> Result<
+ crate::models::CloudGamesGetGameVersionByIdResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/versions/{version_id}",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id),
+ version_id = crate::apis::urlencode(version_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Reserves a display name for the next version. Used to generate a monotomically increasing build number without causing a race condition with multiple versions getting created at the same time.
-pub async fn cloud_games_versions_reserve_version_name(configuration: &configuration::Configuration, game_id: &str) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions/reserve-name", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_versions_reserve_version_name(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+) -> Result<
+ crate::models::CloudGamesReserveVersionNameResponse,
+ Error,
+> {
+ let local_var_configuration = configuration;
+
+ let local_var_client = &local_var_configuration.client;
+
+ let local_var_uri_str = format!(
+ "{}/cloud/games/{game_id}/versions/reserve-name",
+ local_var_configuration.base_path,
+ game_id = crate::apis::urlencode(game_id)
+ );
+ let mut local_var_req_builder =
+ local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
+
+ if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
+ local_var_req_builder =
+ local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
+ }
+ if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
+ local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
+ };
+
+ let local_var_req = local_var_req_builder.build()?;
+ let local_var_resp = local_var_client.execute(local_var_req).await?;
+
+ let local_var_status = local_var_resp.status();
+ let local_var_content = local_var_resp.text().await?;
+
+ if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
+ serde_json::from_str(&local_var_content).map_err(Error::from)
+ } else {
+ let local_var_entity: Option =
+ serde_json::from_str(&local_var_content).ok();
+ let local_var_error = ResponseContent {
+ status: local_var_status,
+ content: local_var_content,
+ entity: local_var_entity,
+ };
+ Err(Error::ResponseError(local_var_error))
+ }
}
/// Validates information used to create a new game version.
-pub async fn cloud_games_versions_validate_game_version(configuration: &configuration::Configuration, game_id: &str, cloud_games_validate_game_version_request: crate::models::CloudGamesValidateGameVersionRequest) -> Result> {
- let local_var_configuration = configuration;
-
- let local_var_client = &local_var_configuration.client;
-
- let local_var_uri_str = format!("{}/cloud/games/{game_id}/versions/validate", local_var_configuration.base_path, game_id=crate::apis::urlencode(game_id));
- let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
-
- if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
- local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
- }
- if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
- local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
- };
- local_var_req_builder = local_var_req_builder.json(&cloud_games_validate_game_version_request);
-
- let local_var_req = local_var_req_builder.build()?;
- let local_var_resp = local_var_client.execute(local_var_req).await?;
-
- let local_var_status = local_var_resp.status();
- let local_var_content = local_var_resp.text().await?;
-
- if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
- serde_json::from_str(&local_var_content).map_err(Error::from)
- } else {
- let local_var_entity: Option = serde_json::from_str(&local_var_content).ok();
- let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
- Err(Error::ResponseError(local_var_error))
- }
+pub async fn cloud_games_versions_validate_game_version(
+ configuration: &configuration::Configuration,
+ game_id: &str,
+ cloud_games_validate_game_version_request: crate::models::CloudGamesValidateGameVersionRequest,
+) -> Result<
+ crate::models::CloudGamesValidateGameVersionResponse,
+ Error