diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..a866da9 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @pomerium/dev-backend diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..2067637 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,28 @@ +version: 2 +updates: + - package-ecosystem: "gitsubmodule" + directory: "/" + schedule: + interval: "monthly" + groups: + gitsubmodule: + patterns: + - "*" + exclude-patterns: + - "deps/github.com/pomerium/**" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + github-actions: + patterns: + - "*" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "monthly" + groups: + npm: + patterns: + - "*" diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..65d2c5d --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,15 @@ +name: Build + +on: + pull_request: + push: + branches: + - "main" + +jobs: + build: + if: ${{ github.actor != 'dependabot[bot]' }} + name: Build + uses: ./.github/workflows/reusable-build.yaml + with: + ref: ${{ github.head_ref }} diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml new file mode 100644 index 0000000..22912d0 --- /dev/null +++ b/.github/workflows/dependabot.yaml @@ -0,0 +1,34 @@ +name: Dependabot + +on: + pull_request: + +jobs: + generate: + if: ${{ github.actor == 'dependabot[bot]' }} + name: Generate + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + with: + ref: ${{ github.head_ref }} + submodules: "true" + token: ${{ secrets.APPARITOR_GITHUB_TOKEN }} + + - name: Generate + run: make generate + + - name: Commit + uses: devops-infra/action-commit-push@e6a24fad602d1f92e46432c89a7e0c7fdd45d62d + with: + github_token: ${{ secrets.APPARITOR_GITHUB_TOKEN }} + commit_message: "dependabot: generate" + + build: + if: ${{ github.actor == 'dependabot[bot]' }} + name: Build + needs: generate + uses: ./.github/workflows/reusable-build.yaml + with: + ref: ${{ github.head_ref }} diff --git a/.github/workflows/reusable-build.yaml b/.github/workflows/reusable-build.yaml new file mode 100644 index 0000000..0e21278 --- /dev/null +++ b/.github/workflows/reusable-build.yaml @@ -0,0 +1,24 @@ +name: Build + +on: + workflow_call: + inputs: + ref: + required: true + type: string + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + with: + ref: ${{ inputs.ref }} + + - name: Setup Node + uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 + + - name: Build + run: make build diff --git a/.github/workflows/update-pomerium.yaml b/.github/workflows/update-pomerium.yaml new file mode 100644 index 0000000..78af7af --- /dev/null +++ b/.github/workflows/update-pomerium.yaml @@ -0,0 +1,42 @@ +name: Update Pomerium + +on: + schedule: + - cron: "40 1 * * *" + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + with: + submodules: "true" + token: ${{ secrets.APPARITOR_GITHUB_TOKEN }} + + - name: Update Pomerium + run: make update-pomerium + + - name: Generate + run: make generate + + - name: Check for changes + id: git-diff + run: | + git config --global user.email "apparitor@users.noreply.github.com" + git config --global user.name "GitHub Actions" + git add deps/github.com/pomerium/enterprise-client + git diff --cached --exit-code || echo "changed=true" >> $GITHUB_OUTPUT + + - name: Create Pull Request + if: ${{ steps.git-diff.outputs.changed }} == 'true' + uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e + with: + author: GitHub Actions + body: "This PR updates Pomerium Dependencies" + commit-message: "ci: update pomerium dependencies" + delete-branch: true + labels: ci + title: "ci: update pomerium dependencies" + token: ${{ secrets.APPARITOR_GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index d2782f3..88edb62 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -deps/* -lib/* node_modules/ +lib/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4a0cfa5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "deps/github.com/pomerium/enterprise-client"] + path = deps/github.com/pomerium/enterprise-client + url = git@github.com:pomerium/enterprise-client +[submodule "deps/github.com/envoyproxy/protoc-gen-validate"] + path = deps/github.com/envoyproxy/protoc-gen-validate + url = git@github.com:envoyproxy/protoc-gen-validate +[submodule "deps/github.com/googleapis/googleapis"] + path = deps/github.com/googleapis/googleapis + url = git@github.com:googleapis/googleapis diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c70175a --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +.PHONY: all +all: generate build + +.PHONY: build +build: install + @echo "==> $@" + npm run build + +.PHONY: build-cjs +build-cjs: install + @echo "==> $@" + npm run build:cjs + +.PHONY: build-esm +build-esm: install + @echo "==> $@" + npm run build:esm + +.PHONY: clean +clean: + @echo "==> $@" + npm run clean + +.PHONY: generate +generate: install + @echo "==> $@" + ./scripts/generate + +.PHONY: install +install: + @echo "==> $0" + npm install + +.PHONY: update-pomerium +update-pomerium: + @echo "==> $0" + git submodule update --remote deps/github.com/pomerium diff --git a/deps/github.com/envoyproxy/protoc-gen-validate b/deps/github.com/envoyproxy/protoc-gen-validate new file mode 160000 index 0000000..3c1639c --- /dev/null +++ b/deps/github.com/envoyproxy/protoc-gen-validate @@ -0,0 +1 @@ +Subproject commit 3c1639cd470fb6a46899585afe87baee422d40bf diff --git a/deps/github.com/googleapis/googleapis b/deps/github.com/googleapis/googleapis new file mode 160000 index 0000000..ac02e45 --- /dev/null +++ b/deps/github.com/googleapis/googleapis @@ -0,0 +1 @@ +Subproject commit ac02e45c23e8f55b81fd1425190dd7d4e11390f7 diff --git a/deps/github.com/pomerium/enterprise-client b/deps/github.com/pomerium/enterprise-client new file mode 160000 index 0000000..f2946d2 --- /dev/null +++ b/deps/github.com/pomerium/enterprise-client @@ -0,0 +1 @@ +Subproject commit f2946d236726957f42706eaee6d79e3a847be6d9 diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..38721a7 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,732 @@ +{ + "name": "@pomerium/enterprise-client-node", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@pomerium/enterprise-client-node", + "version": "0.1.0", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.12.0", + "@protobuf-ts/grpc-transport": "^2.9.4", + "@protobuf-ts/runtime": "^2.9.4", + "@protobuf-ts/runtime-rpc": "^2.9.4" + }, + "devDependencies": { + "@protobuf-ts/plugin": "^2.9.4", + "@types/node": "^22.5.5", + "prettier": "^3.3.3", + "protoc": "^32.1.0", + "ts-node": "^10.9.2", + "typescript": "^5.6.2" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.9.0.tgz", + "integrity": "sha512-rnJenoStJ8nvmt9Gzye8nkYd6V22xUAnu4086ER7h1zJ508vStko4pMvDeQ446ilDTFpV5wnoc5YS7XvMwwMqA==", + "dev": true, + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/@bufbuild/protoplugin": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-2.9.0.tgz", + "integrity": "sha512-uoiwNVYoTq+AyqaV1L6pBazGx5fXOO89L0NSR9/7hEfo0Y8n9T1jsKGu4mkitLmP3z+8gJREaule1mMuKBPyYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@bufbuild/protobuf": "2.9.0", + "@typescript/vfs": "^1.5.2", + "typescript": "5.4.5" + } + }, + "node_modules/@bufbuild/protoplugin/node_modules/typescript": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.0.tgz", + "integrity": "sha512-N8Jx6PaYzcTRNzirReJCtADVoq4z7+1KQ4E70jTg/koQiMoUSN1kbNjPOqpPbhMFhfU1/l7ixspPl8dNY+FoUg==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.8.0", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.0.tgz", + "integrity": "sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.5.3", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@protobuf-ts/grpc-transport": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@protobuf-ts/grpc-transport/-/grpc-transport-2.11.1.tgz", + "integrity": "sha512-l6wrcFffY+tuNnuyrNCkRM8hDIsAZVLA8Mn7PKdVyYxITosYh60qW663p9kL6TWXYuDCL3oxH8ih3vLKTDyhtg==", + "license": "Apache-2.0", + "dependencies": { + "@protobuf-ts/runtime": "^2.11.1", + "@protobuf-ts/runtime-rpc": "^2.11.1" + }, + "peerDependencies": { + "@grpc/grpc-js": "^1.6.0" + } + }, + "node_modules/@protobuf-ts/plugin": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.11.1.tgz", + "integrity": "sha512-HyuprDcw0bEEJqkOWe1rnXUP0gwYLij8YhPuZyZk6cJbIgc/Q0IFgoHQxOXNIXAcXM4Sbehh6kjVnCzasElw1A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@bufbuild/protobuf": "^2.4.0", + "@bufbuild/protoplugin": "^2.4.0", + "@protobuf-ts/protoc": "^2.11.1", + "@protobuf-ts/runtime": "^2.11.1", + "@protobuf-ts/runtime-rpc": "^2.11.1", + "typescript": "^3.9" + }, + "bin": { + "protoc-gen-dump": "bin/protoc-gen-dump", + "protoc-gen-ts": "bin/protoc-gen-ts" + } + }, + "node_modules/@protobuf-ts/plugin/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/@protobuf-ts/protoc": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.11.1.tgz", + "integrity": "sha512-mUZJaV0daGO6HUX90o/atzQ6A7bbN2RSuHtdwo8SSF2Qoe3zHwa4IHyCN1evftTeHfLmdz+45qo47sL+5P8nyg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "protoc": "protoc.js" + } + }, + "node_modules/@protobuf-ts/runtime": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.11.1.tgz", + "integrity": "sha512-KuDaT1IfHkugM2pyz+FwiY80ejWrkH1pAtOBOZFuR6SXEFTsnb/jiQWQ1rCIrcKx2BtyxnxW6BWwsVSA/Ie+WQ==", + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/@protobuf-ts/runtime-rpc": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.11.1.tgz", + "integrity": "sha512-4CqqUmNA+/uMz00+d3CYKgElXO9VrEbucjnBFEjqI4GuDrEQ32MaI3q+9qPBvIGOlL4PmHXrzM32vBPWRhQKWQ==", + "license": "Apache-2.0", + "dependencies": { + "@protobuf-ts/runtime": "^2.11.1" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.18.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.9.tgz", + "integrity": "sha512-5yBtK0k/q8PjkMXbTfeIEP/XVYnz1R9qZJ3yUicdEW7ppdDJfe+MqXEhpqDL3mtn4Wvs1u0KLEG0RXzCgNpsSg==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@typescript/vfs": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.6.1.tgz", + "integrity": "sha512-JwoxboBh7Oz1v38tPbkrZ62ZXNHAk9bJ7c9x0eI5zBfBnBYGhURdbnh7Z4smN/MV48Y5OCcZb58n972UtbazsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1" + }, + "peerDependencies": { + "typescript": "*" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/prettier": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/protobufjs": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", + "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/protoc": { + "version": "32.1.0", + "resolved": "https://registry.npmjs.org/protoc/-/protoc-32.1.0.tgz", + "integrity": "sha512-yICJJCGHJLM9ao5W2V4CGp1d7xuBsdHzgVDw6L8mdDtoIcqzN3arNPOm9Jx4Ufp5vfhQfJGkNUDo6mm/SLPdXw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "protoc": "protoc.cjs" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + } + } +} diff --git a/package.json b/package.json index ccf5826..f94a076 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ "build": "npm run clean && npm run build:esm && npm run build:cjs", "build:esm": "tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs", "build:cjs": "tsc -p ./configs/tsconfig.cjs.json", - "prepack": "npm run build", - "pretty": "prettier --write \"src/**/*.ts\"" + "prepack": "npm run build" }, "exports": { ".": { @@ -30,6 +29,7 @@ "main" ] }, + "packageManager": "npm@11.6.0", "publishConfig": { "access": "public" }, @@ -47,6 +47,7 @@ "@protobuf-ts/plugin": "^2.9.4", "@types/node": "^22.5.5", "prettier": "^3.3.3", + "protoc": "^32.1.0", "ts-node": "^10.9.2", "typescript": "^5.6.2" }, diff --git a/scripts/generate b/scripts/generate new file mode 100755 index 0000000..feaa561 --- /dev/null +++ b/scripts/generate @@ -0,0 +1,21 @@ +#!/bin/bash +set -euo pipefail + +_scripts_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +_root_dir="$(dirname "$_scripts_dir")" +_deps_dir="$_root_dir/deps" + +for _f in "$_deps_dir/github.com/pomerium/enterprise-client/protos/pomerium-console/"*.proto; do + ( + cd "$(dirname "$_f")" + mkdir -p "$_root_dir/src/pomerium-console" + npx protoc \ + --ts_out="$_root_dir/src/pomerium-console" \ + --ts_opt="generate_dependencies" \ + --proto_path="$_deps_dir" \ + --proto_path="$_deps_dir/github.com/envoyproxy/protoc-gen-validate" \ + --proto_path="$_deps_dir/github.com/googleapis/googleapis" \ + --proto_path="$_deps_dir/github.com/pomerium/enterprise-client/protos/pomerium-console" \ + "$(basename "$_f")" + ) +done diff --git a/scripts/update b/scripts/update deleted file mode 100755 index c24834b..0000000 --- a/scripts/update +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -set -euo pipefail - -_scripts_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" -_root_dir="$(dirname "$_scripts_dir")" -_deps_dir="$_root_dir/deps" - -readonly _git_deps=( - "pomerium/enterprise-client|4acce8472bc4b6ff031203adf0a4f2f76cb6542d" - 'envoyproxy/protoc-gen-validate|v1.2.1' - 'googleapis/googleapis|114a745b2841a044e98cdbb19358ed29fcf4a5f1' -) - -function clone() { - local _name="$1" - local _tag="$2" - local _dst="$3" - - echo "cloning $_name:$_tag to $_dst" - if [ ! -d "$_dst" ]; then - mkdir -p "$_dst" - (cd "$_dst" && git init && git remote add origin "git@github.com:$_name") - fi - ( - cd "$_dst" - git fetch --depth=1 origin - git switch --force-create dev "$_tag" - ) -} - -function clone-all() { - local _name _tag _dst - for _dep in "${_git_deps[@]}"; do - IFS=$'|' read -r _name _tag <<<"$_dep" - _dst="$_deps_dir/github.com/$_name" - clone "$_name" "$_tag" "$_dst" - done -} - -clone-all - -for _f in "$_deps_dir/github.com/pomerium/enterprise-client/protos/pomerium-console/"*.proto; do - ( - cd "$(dirname "$_f")" - mkdir -p "$_root_dir/src/pomerium-console" - npx protoc \ - --ts_out="$_root_dir/src/pomerium-console" \ - --ts_opt="generate_dependencies" \ - --proto_path="$_deps_dir" \ - --proto_path="$_deps_dir/github.com/envoyproxy/protoc-gen-validate" \ - --proto_path="$_deps_dir/github.com/googleapis/googleapis" \ - --proto_path="$_deps_dir/github.com/pomerium/enterprise-client/protos/pomerium-console" \ - "$(basename "$_f")" - ) -done diff --git a/src/pomerium-console/activity_log.client.ts b/src/pomerium-console/activity_log.client.ts index 6171cd8..dd3247a 100644 --- a/src/pomerium-console/activity_log.client.ts +++ b/src/pomerium-console/activity_log.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "activity_log.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -21,14 +21,14 @@ export interface IActivityLogServiceClient { /** * GetActivityLogEntry retrieves a specific activity log entry * - * @generated from protobuf rpc: GetActivityLogEntry(pomerium.dashboard.GetActivityLogEntryRequest) returns (pomerium.dashboard.GetActivityLogEntryResponse); + * @generated from protobuf rpc: GetActivityLogEntry */ getActivityLogEntry(input: GetActivityLogEntryRequest, options?: RpcOptions): UnaryCall; /** * ListActivityLogEntries lists activity log entries based on paramters in the * ListActivityLogEntriesRequest * - * @generated from protobuf rpc: ListActivityLogEntries(pomerium.dashboard.ListActivityLogEntriesRequest) returns (pomerium.dashboard.ListActivityLogEntriesResponse); + * @generated from protobuf rpc: ListActivityLogEntries */ listActivityLogEntries(input: ListActivityLogEntriesRequest, options?: RpcOptions): UnaryCall; } @@ -47,7 +47,7 @@ export class ActivityLogServiceClient implements IActivityLogServiceClient, Serv /** * GetActivityLogEntry retrieves a specific activity log entry * - * @generated from protobuf rpc: GetActivityLogEntry(pomerium.dashboard.GetActivityLogEntryRequest) returns (pomerium.dashboard.GetActivityLogEntryResponse); + * @generated from protobuf rpc: GetActivityLogEntry */ getActivityLogEntry(input: GetActivityLogEntryRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -57,7 +57,7 @@ export class ActivityLogServiceClient implements IActivityLogServiceClient, Serv * ListActivityLogEntries lists activity log entries based on paramters in the * ListActivityLogEntriesRequest * - * @generated from protobuf rpc: ListActivityLogEntries(pomerium.dashboard.ListActivityLogEntriesRequest) returns (pomerium.dashboard.ListActivityLogEntriesResponse); + * @generated from protobuf rpc: ListActivityLogEntries */ listActivityLogEntries(input: ListActivityLogEntriesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/activity_log.ts b/src/pomerium-console/activity_log.ts index 2fc2904..b333efd 100644 --- a/src/pomerium-console/activity_log.ts +++ b/src/pomerium-console/activity_log.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "activity_log.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -20,93 +20,93 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface ActivityLogEntry { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string name = 20; + * @generated from protobuf field: string name = 20 */ name: string; /** * `DELETE` or `SET` * - * @generated from protobuf field: string activity_type = 2; + * @generated from protobuf field: string activity_type = 2 */ activityType: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 3 */ createdAt?: Timestamp; /** - * @generated from protobuf field: optional string cluster_id = 21; + * @generated from protobuf field: optional string cluster_id = 21 */ clusterId?: string; /** - * @generated from protobuf field: string namespace_id = 4; + * @generated from protobuf field: string namespace_id = 4 */ namespaceId: string; /** - * @generated from protobuf field: string namespace_name = 5; + * @generated from protobuf field: string namespace_name = 5 */ namespaceName: string; /** - * @generated from protobuf field: string user_id = 6; + * @generated from protobuf field: string user_id = 6 */ userId: string; /** - * @generated from protobuf field: string user_name = 7; + * @generated from protobuf field: string user_name = 7 */ userName: string; /** - * @generated from protobuf field: string user_email = 8; + * @generated from protobuf field: string user_email = 8 */ userEmail: string; /** * `route` | `policy` | `settings` * - * @generated from protobuf field: string entity_type = 9; + * @generated from protobuf field: string entity_type = 9 */ entityType: string; /** - * @generated from protobuf field: string entity_id = 10; + * @generated from protobuf field: string entity_id = 10 */ entityId: string; /** - * @generated from protobuf field: string entity_data = 11; + * @generated from protobuf field: string entity_data = 11 */ entityData: string; /** - * @generated from protobuf field: pomerium.dashboard.ActivityLogEntry.DiffSummary diff_summary = 12; + * @generated from protobuf field: pomerium.dashboard.ActivityLogEntry.DiffSummary diff_summary = 12 */ diffSummary?: ActivityLogEntry_DiffSummary; /** * databroker version this change synced to * - * @generated from protobuf field: uint64 db_version = 13; + * @generated from protobuf field: uint64 db_version = 13 */ dbVersion: bigint; /** - * @generated from protobuf field: string session_id = 14; + * @generated from protobuf field: string session_id = 14 */ sessionId: string; /** - * @generated from protobuf field: string service_account_id = 15; + * @generated from protobuf field: string service_account_id = 15 */ serviceAccountId: string; /** - * @generated from protobuf field: string impersonate_user_id = 16; + * @generated from protobuf field: string impersonate_user_id = 16 */ impersonateUserId: string; /** - * @generated from protobuf field: string impersonate_user_name = 17; + * @generated from protobuf field: string impersonate_user_name = 17 */ impersonateUserName: string; /** - * @generated from protobuf field: string impersonate_user_email = 18; + * @generated from protobuf field: string impersonate_user_email = 18 */ impersonateUserEmail: string; /** - * @generated from protobuf field: repeated string impersonate_user_groups = 19; + * @generated from protobuf field: repeated string impersonate_user_groups = 19 */ impersonateUserGroups: string[]; } @@ -117,13 +117,13 @@ export interface ActivityLogEntry_DiffSummary { /** * number of lines added * - * @generated from protobuf field: int64 added = 1; + * @generated from protobuf field: int64 added = 1 */ added: bigint; /** * number of lines removed * - * @generated from protobuf field: int64 removed = 2; + * @generated from protobuf field: int64 removed = 2 */ removed: bigint; } @@ -132,7 +132,7 @@ export interface ActivityLogEntry_DiffSummary { */ export interface GetActivityLogEntryRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -141,15 +141,15 @@ export interface GetActivityLogEntryRequest { */ export interface GetActivityLogEntryResponse { /** - * @generated from protobuf field: pomerium.dashboard.ActivityLogEntry entry = 1; + * @generated from protobuf field: pomerium.dashboard.ActivityLogEntry entry = 1 */ entry?: ActivityLogEntry; /** - * @generated from protobuf field: optional string previous_entry_id = 2; + * @generated from protobuf field: optional string previous_entry_id = 2 */ previousEntryId?: string; /** - * @generated from protobuf field: optional string next_entry_id = 3; + * @generated from protobuf field: optional string next_entry_id = 3 */ nextEntryId?: string; } @@ -163,73 +163,73 @@ export interface ListActivityLogEntriesRequest { /** * `DELETE` | `SET` * - * @generated from protobuf field: optional string activity_type = 1; + * @generated from protobuf field: optional string activity_type = 1 */ activityType?: string; /** - * @generated from protobuf field: optional string namespace_id = 2; + * @generated from protobuf field: optional string namespace_id = 2 */ namespaceId?: string; /** - * @generated from protobuf field: optional string user_id = 3; + * @generated from protobuf field: optional string user_id = 3 */ userId?: string; /** * `route` | `policy` | `settings` * - * @generated from protobuf field: optional string entity_type = 4; + * @generated from protobuf field: optional string entity_type = 4 */ entityType?: string; /** - * @generated from protobuf field: optional string entity_id = 5; + * @generated from protobuf field: optional string entity_id = 5 */ entityId?: string; /** * `newest` | `oldest` | `from` | `name` * - * @generated from protobuf field: optional string query = 6; + * @generated from protobuf field: optional string query = 6 */ query?: string; /** * list entries starting from an offset in the total list * - * @generated from protobuf field: optional int64 offset = 7; + * @generated from protobuf field: optional int64 offset = 7 */ offset?: bigint; /** * limit the number of entries returned * - * @generated from protobuf field: optional int64 limit = 8; + * @generated from protobuf field: optional int64 limit = 8 */ limit?: bigint; /** * databroker versions of the change * - * @generated from protobuf field: repeated uint64 db_versions = 9; + * @generated from protobuf field: repeated uint64 db_versions = 9 */ dbVersions: bigint[]; /** * if true, show activity for the namespace and any child namespaces * - * @generated from protobuf field: optional bool recurse_namespace = 11; + * @generated from protobuf field: optional bool recurse_namespace = 11 */ recurseNamespace?: boolean; /** * the entities are a list of entities to retrieve the activity log for * - * @generated from protobuf field: repeated pomerium.dashboard.ListActivityLogEntriesRequest.Entity entities = 10; + * @generated from protobuf field: repeated pomerium.dashboard.ListActivityLogEntriesRequest.Entity entities = 10 */ entities: ListActivityLogEntriesRequest_Entity[]; /** - * @generated from protobuf field: optional pomerium.dashboard.ListActivityLogEntriesRequest.Sort sort = 12; + * @generated from protobuf field: optional pomerium.dashboard.ListActivityLogEntriesRequest.Sort sort = 12 */ sort?: ListActivityLogEntriesRequest_Sort; /** - * @generated from protobuf field: pomerium.dashboard.ListActivityLogEntriesRequest.DateFilter date_filter = 13; + * @generated from protobuf field: pomerium.dashboard.ListActivityLogEntriesRequest.DateFilter date_filter = 13 */ dateFilter?: ListActivityLogEntriesRequest_DateFilter; /** - * @generated from protobuf field: pomerium.dashboard.ListActivityLogEntriesRequest.StringFilter string_filter = 14; + * @generated from protobuf field: pomerium.dashboard.ListActivityLogEntriesRequest.StringFilter string_filter = 14 */ stringFilter?: ListActivityLogEntriesRequest_StringFilter; } @@ -240,11 +240,11 @@ export interface ListActivityLogEntriesRequest { */ export interface ListActivityLogEntriesRequest_Entity { /** - * @generated from protobuf field: string type = 1; + * @generated from protobuf field: string type = 1 */ type: string; /** - * @generated from protobuf field: string id = 2; + * @generated from protobuf field: string id = 2 */ id: string; } @@ -258,13 +258,13 @@ export interface ListActivityLogEntriesRequest_Sort { * `activity_type` | `created_at` | `namespace_name` | `user_name` | * `user_email` | `entity_type` * - * @generated from protobuf field: string column = 1; + * @generated from protobuf field: string column = 1 */ column: string; /** * `ASC` | `DESC` * - * @generated from protobuf field: string direction = 2; + * @generated from protobuf field: string direction = 2 */ direction: string; } @@ -277,11 +277,11 @@ export interface ListActivityLogEntriesRequest_DateFilter { /** * `=` | `!=` | `<` | `<=` | `>` | `>=` * - * @generated from protobuf field: string operator = 1; + * @generated from protobuf field: string operator = 1 */ operator: string; /** - * @generated from protobuf field: google.protobuf.Timestamp date = 2; + * @generated from protobuf field: google.protobuf.Timestamp date = 2 */ date?: Timestamp; } @@ -292,17 +292,17 @@ export interface ListActivityLogEntriesRequest_DateFilter { */ export interface ListActivityLogEntriesRequest_StringFilter { /** - * @generated from protobuf field: string fieldName = 1; + * @generated from protobuf field: string fieldName = 1 */ fieldName: string; /** * `contains` | `equals` | `startsWith` | `endsWith` * - * @generated from protobuf field: string operator = 2; + * @generated from protobuf field: string operator = 2 */ operator: string; /** - * @generated from protobuf field: string value = 3; + * @generated from protobuf field: string value = 3 */ value: string; } @@ -316,11 +316,11 @@ export interface ListActivityLogEntriesResponse { /** * Activity Log entries * - * @generated from protobuf field: repeated pomerium.dashboard.ActivityLogEntry entries = 1; + * @generated from protobuf field: repeated pomerium.dashboard.ActivityLogEntry entries = 1 */ entries: ActivityLogEntry[]; /** - * @generated from protobuf field: int64 total_count = 2; + * @generated from protobuf field: int64 total_count = 2 */ totalCount: bigint; } @@ -458,18 +458,12 @@ class ActivityLogEntry$Type extends MessageType { /* string id = 1; */ if (message.id !== "") writer.tag(1, WireType.LengthDelimited).string(message.id); - /* string name = 20; */ - if (message.name !== "") - writer.tag(20, WireType.LengthDelimited).string(message.name); /* string activity_type = 2; */ if (message.activityType !== "") writer.tag(2, WireType.LengthDelimited).string(message.activityType); /* google.protobuf.Timestamp created_at = 3; */ if (message.createdAt) Timestamp.internalBinaryWrite(message.createdAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* optional string cluster_id = 21; */ - if (message.clusterId !== undefined) - writer.tag(21, WireType.LengthDelimited).string(message.clusterId); /* string namespace_id = 4; */ if (message.namespaceId !== "") writer.tag(4, WireType.LengthDelimited).string(message.namespaceId); @@ -518,6 +512,12 @@ class ActivityLogEntry$Type extends MessageType { /* repeated string impersonate_user_groups = 19; */ for (let i = 0; i < message.impersonateUserGroups.length; i++) writer.tag(19, WireType.LengthDelimited).string(message.impersonateUserGroups[i]); + /* string name = 20; */ + if (message.name !== "") + writer.tag(20, WireType.LengthDelimited).string(message.name); + /* optional string cluster_id = 21; */ + if (message.clusterId !== undefined) + writer.tag(21, WireType.LengthDelimited).string(message.clusterId); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -704,7 +704,7 @@ class ListActivityLogEntriesRequest$Type extends MessageType ListActivityLogEntriesRequest_Entity }, + { no: 10, name: "entities", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListActivityLogEntriesRequest_Entity }, { no: 12, name: "sort", kind: "message", T: () => ListActivityLogEntriesRequest_Sort }, { no: 13, name: "date_filter", kind: "message", T: () => ListActivityLogEntriesRequest_DateFilter }, { no: 14, name: "string_filter", kind: "message", T: () => ListActivityLogEntriesRequest_StringFilter } @@ -812,12 +812,12 @@ class ListActivityLogEntriesRequest$Type extends MessageType { constructor() { super("pomerium.dashboard.ListActivityLogEntriesResponse", [ - { no: 1, name: "entries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ActivityLogEntry }, + { no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActivityLogEntry }, { no: 2, name: "total_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ]); } diff --git a/src/pomerium-console/clusters.client.ts b/src/pomerium-console/clusters.client.ts index 30a5cca..3389ee7 100644 --- a/src/pomerium-console/clusters.client.ts +++ b/src/pomerium-console/clusters.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "clusters.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -22,23 +22,23 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IClustersServiceClient { /** - * @generated from protobuf rpc: AddCluster(pomerium.dashboard.AddClusterRequest) returns (pomerium.dashboard.AddClusterResponse); + * @generated from protobuf rpc: AddCluster */ addCluster(input: AddClusterRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteCluster(pomerium.dashboard.DeleteClusterRequest) returns (pomerium.dashboard.DeleteClusterResponse); + * @generated from protobuf rpc: DeleteCluster */ deleteCluster(input: DeleteClusterRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: GetCluster(pomerium.dashboard.GetClusterRequest) returns (pomerium.dashboard.GetClusterResponse); + * @generated from protobuf rpc: GetCluster */ getCluster(input: GetClusterRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: ListClusters(pomerium.dashboard.ListClustersRequest) returns (pomerium.dashboard.ListClustersResponse); + * @generated from protobuf rpc: ListClusters */ listClusters(input: ListClustersRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: UpdateCluster(pomerium.dashboard.UpdateClusterRequest) returns (pomerium.dashboard.UpdateClusterResponse); + * @generated from protobuf rpc: UpdateCluster */ updateCluster(input: UpdateClusterRequest, options?: RpcOptions): UnaryCall; } @@ -52,35 +52,35 @@ export class ClustersServiceClient implements IClustersServiceClient, ServiceInf constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: AddCluster(pomerium.dashboard.AddClusterRequest) returns (pomerium.dashboard.AddClusterResponse); + * @generated from protobuf rpc: AddCluster */ addCluster(input: AddClusterRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteCluster(pomerium.dashboard.DeleteClusterRequest) returns (pomerium.dashboard.DeleteClusterResponse); + * @generated from protobuf rpc: DeleteCluster */ deleteCluster(input: DeleteClusterRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: GetCluster(pomerium.dashboard.GetClusterRequest) returns (pomerium.dashboard.GetClusterResponse); + * @generated from protobuf rpc: GetCluster */ getCluster(input: GetClusterRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: ListClusters(pomerium.dashboard.ListClustersRequest) returns (pomerium.dashboard.ListClustersResponse); + * @generated from protobuf rpc: ListClusters */ listClusters(input: ListClustersRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: UpdateCluster(pomerium.dashboard.UpdateClusterRequest) returns (pomerium.dashboard.UpdateClusterResponse); + * @generated from protobuf rpc: UpdateCluster */ updateCluster(input: UpdateClusterRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/clusters.ts b/src/pomerium-console/clusters.ts index a7849e7..b1588f8 100644 --- a/src/pomerium-console/clusters.ts +++ b/src/pomerium-console/clusters.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "clusters.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -19,51 +19,51 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface Cluster { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4 */ deletedAt?: Timestamp; /** - * @generated from protobuf field: string name = 5; + * @generated from protobuf field: string name = 5 */ name: string; /** - * @generated from protobuf field: string databroker_service_url = 6; + * @generated from protobuf field: string databroker_service_url = 6 */ databrokerServiceUrl: string; /** - * @generated from protobuf field: bytes shared_secret = 7; + * @generated from protobuf field: bytes shared_secret = 7 */ sharedSecret: Uint8Array; /** - * @generated from protobuf field: optional bool insecure_skip_verify = 8; + * @generated from protobuf field: optional bool insecure_skip_verify = 8 */ insecureSkipVerify?: boolean; /** - * @generated from protobuf field: optional string override_certificate_name = 9; + * @generated from protobuf field: optional string override_certificate_name = 9 */ overrideCertificateName?: string; /** - * @generated from protobuf field: optional bytes certificate_authority = 10; + * @generated from protobuf field: optional bytes certificate_authority = 10 */ certificateAuthority?: Uint8Array; /** - * @generated from protobuf field: optional string certificate_authority_file = 11; + * @generated from protobuf field: optional string certificate_authority_file = 11 */ certificateAuthorityFile?: string; /** - * @generated from protobuf field: string originator_id = 12; + * @generated from protobuf field: string originator_id = 12 */ originatorId: string; } @@ -72,11 +72,11 @@ export interface Cluster { */ export interface AddClusterRequest { /** - * @generated from protobuf field: string parent_namespace_id = 1; + * @generated from protobuf field: string parent_namespace_id = 1 */ parentNamespaceId: string; /** - * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 2; + * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 2 */ cluster?: Cluster; } @@ -85,15 +85,15 @@ export interface AddClusterRequest { */ export interface AddClusterResponse { /** - * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1; + * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1 */ cluster?: Cluster; /** - * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 2; + * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 2 */ namespace?: Namespace; /** - * @generated from protobuf field: pomerium.dashboard.Settings settings = 3; + * @generated from protobuf field: pomerium.dashboard.Settings settings = 3 */ settings?: Settings; } @@ -102,7 +102,7 @@ export interface AddClusterResponse { */ export interface DeleteClusterRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -116,7 +116,7 @@ export interface DeleteClusterResponse { */ export interface GetClusterRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -125,15 +125,15 @@ export interface GetClusterRequest { */ export interface GetClusterResponse { /** - * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1; + * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1 */ cluster?: Cluster; /** - * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 2; + * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 2 */ namespace?: Namespace; /** - * @generated from protobuf field: pomerium.dashboard.Settings settings = 3; + * @generated from protobuf field: pomerium.dashboard.Settings settings = 3 */ settings?: Settings; } @@ -147,7 +147,7 @@ export interface ListClustersRequest { */ export interface ListClustersResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.Cluster clusters = 1; + * @generated from protobuf field: repeated pomerium.dashboard.Cluster clusters = 1 */ clusters: Cluster[]; } @@ -156,7 +156,7 @@ export interface ListClustersResponse { */ export interface UpdateClusterRequest { /** - * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1; + * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1 */ cluster?: Cluster; } @@ -165,15 +165,15 @@ export interface UpdateClusterRequest { */ export interface UpdateClusterResponse { /** - * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1; + * @generated from protobuf field: pomerium.dashboard.Cluster cluster = 1 */ cluster?: Cluster; /** - * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 2; + * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 2 */ namespace?: Namespace; /** - * @generated from protobuf field: pomerium.dashboard.Settings settings = 3; + * @generated from protobuf field: pomerium.dashboard.Settings settings = 3 */ settings?: Settings; } @@ -478,7 +478,20 @@ class DeleteClusterResponse$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteClusterResponse): DeleteClusterResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: DeleteClusterResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -610,7 +623,20 @@ class ListClustersRequest$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListClustersRequest): ListClustersRequest { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: ListClustersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -627,7 +653,7 @@ export const ListClustersRequest = new ListClustersRequest$Type(); class ListClustersResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListClustersResponse", [ - { no: 1, name: "clusters", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Cluster } + { no: 1, name: "clusters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Cluster } ]); } create(value?: PartialMessage): ListClustersResponse { diff --git a/src/pomerium-console/devices.client.ts b/src/pomerium-console/devices.client.ts index 9550a52..46e4b31 100644 --- a/src/pomerium-console/devices.client.ts +++ b/src/pomerium-console/devices.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "devices.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -26,31 +26,31 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IDeviceServiceClient { /** - * @generated from protobuf rpc: ApproveDevice(pomerium.dashboard.ApproveDeviceRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: ApproveDevice */ approveDevice(input: ApproveDeviceRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: CreateDeviceEnrollment(pomerium.dashboard.CreateDeviceEnrollmentRequest) returns (pomerium.dashboard.CreateDeviceEnrollmentResponse); + * @generated from protobuf rpc: CreateDeviceEnrollment */ createDeviceEnrollment(input: CreateDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: SetDeviceType(pomerium.dashboard.SetDeviceTypeRequest) returns (pomerium.dashboard.SetDeviceTypeResponse); + * @generated from protobuf rpc: SetDeviceType */ setDeviceType(input: SetDeviceTypeRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteDevice(pomerium.dashboard.DeleteDeviceRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: DeleteDevice */ deleteDevice(input: DeleteDeviceRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteDeviceType(pomerium.dashboard.DeleteDeviceTypeRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: DeleteDeviceType */ deleteDeviceType(input: DeleteDeviceTypeRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: ListDevices(pomerium.dashboard.ListDevicesRequest) returns (pomerium.dashboard.ListDevicesResponse); + * @generated from protobuf rpc: ListDevices */ listDevices(input: ListDevicesRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: ListDeviceTypes(pomerium.dashboard.ListDeviceTypesRequest) returns (pomerium.dashboard.ListDeviceTypesResponse); + * @generated from protobuf rpc: ListDeviceTypes */ listDeviceTypes(input: ListDeviceTypesRequest, options?: RpcOptions): UnaryCall; } @@ -66,49 +66,49 @@ export class DeviceServiceClient implements IDeviceServiceClient, ServiceInfo { constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: ApproveDevice(pomerium.dashboard.ApproveDeviceRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: ApproveDevice */ approveDevice(input: ApproveDeviceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: CreateDeviceEnrollment(pomerium.dashboard.CreateDeviceEnrollmentRequest) returns (pomerium.dashboard.CreateDeviceEnrollmentResponse); + * @generated from protobuf rpc: CreateDeviceEnrollment */ createDeviceEnrollment(input: CreateDeviceEnrollmentRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: SetDeviceType(pomerium.dashboard.SetDeviceTypeRequest) returns (pomerium.dashboard.SetDeviceTypeResponse); + * @generated from protobuf rpc: SetDeviceType */ setDeviceType(input: SetDeviceTypeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteDevice(pomerium.dashboard.DeleteDeviceRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: DeleteDevice */ deleteDevice(input: DeleteDeviceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteDeviceType(pomerium.dashboard.DeleteDeviceTypeRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: DeleteDeviceType */ deleteDeviceType(input: DeleteDeviceTypeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: ListDevices(pomerium.dashboard.ListDevicesRequest) returns (pomerium.dashboard.ListDevicesResponse); + * @generated from protobuf rpc: ListDevices */ listDevices(input: ListDevicesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: ListDeviceTypes(pomerium.dashboard.ListDeviceTypesRequest) returns (pomerium.dashboard.ListDeviceTypesResponse); + * @generated from protobuf rpc: ListDeviceTypes */ listDeviceTypes(input: ListDeviceTypesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/devices.ts b/src/pomerium-console/devices.ts index 2296ccb..25ca472 100644 --- a/src/pomerium-console/devices.ts +++ b/src/pomerium-console/devices.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "devices.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { Empty } from "./google/protobuf/empty"; @@ -18,15 +18,15 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface WebAuthnOptions { /** - * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.AttestationConveyancePreference attestation = 1; + * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.AttestationConveyancePreference attestation = 1 */ attestation?: WebAuthnOptions_AttestationConveyancePreference; /** - * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.AuthenticatorSelectionCriteria authenticator_selection = 2; + * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.AuthenticatorSelectionCriteria authenticator_selection = 2 */ authenticatorSelection?: WebAuthnOptions_AuthenticatorSelectionCriteria; /** - * @generated from protobuf field: repeated pomerium.dashboard.WebAuthnOptions.PublicKeyCredentialParameters pub_key_cred_params = 3; + * @generated from protobuf field: repeated pomerium.dashboard.WebAuthnOptions.PublicKeyCredentialParameters pub_key_cred_params = 3 */ pubKeyCredParams: WebAuthnOptions_PublicKeyCredentialParameters[]; } @@ -35,19 +35,19 @@ export interface WebAuthnOptions { */ export interface WebAuthnOptions_AuthenticatorSelectionCriteria { /** - * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.AuthenticatorAttachment authenticator_attachment = 1; + * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.AuthenticatorAttachment authenticator_attachment = 1 */ authenticatorAttachment?: WebAuthnOptions_AuthenticatorAttachment; /** - * @generated from protobuf field: optional bool require_resident_key = 2; + * @generated from protobuf field: optional bool require_resident_key = 2 */ requireResidentKey?: boolean; /** - * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.ResidentKeyRequirement resident_key_requirement = 3; + * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.ResidentKeyRequirement resident_key_requirement = 3 */ residentKeyRequirement?: WebAuthnOptions_ResidentKeyRequirement; /** - * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.UserVerificationRequirement user_verification = 4; + * @generated from protobuf field: optional pomerium.dashboard.WebAuthnOptions.UserVerificationRequirement user_verification = 4 */ userVerification?: WebAuthnOptions_UserVerificationRequirement; } @@ -56,11 +56,11 @@ export interface WebAuthnOptions_AuthenticatorSelectionCriteria { */ export interface WebAuthnOptions_PublicKeyCredentialParameters { /** - * @generated from protobuf field: int64 alg = 1; + * @generated from protobuf field: int64 alg = 1 */ alg: bigint; /** - * @generated from protobuf field: pomerium.dashboard.WebAuthnOptions.PublicKeyCredentialType type = 2; + * @generated from protobuf field: pomerium.dashboard.WebAuthnOptions.PublicKeyCredentialType type = 2 */ type: WebAuthnOptions_PublicKeyCredentialType; } @@ -148,23 +148,23 @@ export enum WebAuthnOptions_UserVerificationRequirement { */ export interface DeviceType { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4 */ deletedAt?: Timestamp; /** - * @generated from protobuf field: string name = 5; + * @generated from protobuf field: string name = 5 */ name: string; /** @@ -173,7 +173,7 @@ export interface DeviceType { specifier: { oneofKind: "webauthn"; /** - * @generated from protobuf field: pomerium.dashboard.DeviceType.WebAuthn webauthn = 6; + * @generated from protobuf field: pomerium.dashboard.DeviceType.WebAuthn webauthn = 6 */ webauthn: DeviceType_WebAuthn; } | { @@ -185,7 +185,7 @@ export interface DeviceType { */ export interface DeviceType_WebAuthn { /** - * @generated from protobuf field: pomerium.dashboard.WebAuthnOptions options = 1; + * @generated from protobuf field: pomerium.dashboard.WebAuthnOptions options = 1 */ options?: WebAuthnOptions; } @@ -196,55 +196,55 @@ export interface DeviceType_WebAuthn { */ export interface DeviceEnrollment { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4 */ deletedAt?: Timestamp; /** - * @generated from protobuf field: string device_type_id = 5; + * @generated from protobuf field: string device_type_id = 5 */ deviceTypeId: string; /** - * @generated from protobuf field: string device_credential_id = 6; + * @generated from protobuf field: string device_credential_id = 6 */ deviceCredentialId: string; /** - * @generated from protobuf field: string user_id = 7; + * @generated from protobuf field: string user_id = 7 */ userId: string; /** - * @generated from protobuf field: google.protobuf.Timestamp approved_at = 8; + * @generated from protobuf field: google.protobuf.Timestamp approved_at = 8 */ approvedAt?: Timestamp; /** - * @generated from protobuf field: string approved_by_user_id = 9; + * @generated from protobuf field: string approved_by_user_id = 9 */ approvedByUserId: string; /** - * @generated from protobuf field: google.protobuf.Timestamp enrolled_at = 10; + * @generated from protobuf field: google.protobuf.Timestamp enrolled_at = 10 */ enrolledAt?: Timestamp; /** - * @generated from protobuf field: string user_agent = 11; + * @generated from protobuf field: string user_agent = 11 */ userAgent: string; /** - * @generated from protobuf field: string ip_address = 12; + * @generated from protobuf field: string ip_address = 12 */ ipAddress: string; /** - * @generated from protobuf field: optional string cluster_id = 13; + * @generated from protobuf field: optional string cluster_id = 13 */ clusterId?: string; } @@ -255,31 +255,31 @@ export interface DeviceEnrollment { */ export interface DeviceCredential { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4 */ deletedAt?: Timestamp; /** - * @generated from protobuf field: string device_type_id = 5; + * @generated from protobuf field: string device_type_id = 5 */ deviceTypeId: string; /** - * @generated from protobuf field: string device_enrollment_id = 6; + * @generated from protobuf field: string device_enrollment_id = 6 */ deviceEnrollmentId: string; /** - * @generated from protobuf field: string user_id = 7; + * @generated from protobuf field: string user_id = 7 */ userId: string; /** @@ -288,14 +288,14 @@ export interface DeviceCredential { specifier: { oneofKind: "webauthn"; /** - * @generated from protobuf field: pomerium.dashboard.DeviceCredential.WebAuthn webauthn = 8; + * @generated from protobuf field: pomerium.dashboard.DeviceCredential.WebAuthn webauthn = 8 */ webauthn: DeviceCredential_WebAuthn; } | { oneofKind: undefined; }; /** - * @generated from protobuf field: optional string cluster_id = 9; + * @generated from protobuf field: optional string cluster_id = 9 */ clusterId?: string; } @@ -304,29 +304,29 @@ export interface DeviceCredential { */ export interface DeviceCredential_WebAuthn { /** - * @generated from protobuf field: bytes id = 1; + * @generated from protobuf field: bytes id = 1 */ id: Uint8Array; /** - * @generated from protobuf field: bytes public_key = 2; + * @generated from protobuf field: bytes public_key = 2 */ publicKey: Uint8Array; /** * the options that were used to do initial registration * - * @generated from protobuf field: bytes register_options = 3; + * @generated from protobuf field: bytes register_options = 3 */ registerOptions: Uint8Array; /** * the response returned from initial registration * - * @generated from protobuf field: bytes register_response = 4; + * @generated from protobuf field: bytes register_response = 4 */ registerResponse: Uint8Array; /** * subsequent authenticate responses * - * @generated from protobuf field: repeated bytes authenticate_response = 5; + * @generated from protobuf field: repeated bytes authenticate_response = 5 */ authenticateResponse: Uint8Array[]; } @@ -338,15 +338,15 @@ export interface DeviceCredential_WebAuthn { */ export interface DeviceOwnerCredentialRecord { /** - * @generated from protobuf field: bytes id = 1; + * @generated from protobuf field: bytes id = 1 */ id: Uint8Array; /** - * @generated from protobuf field: bytes owner_id = 2; + * @generated from protobuf field: bytes owner_id = 2 */ ownerId: Uint8Array; /** - * @generated from protobuf field: bytes public_key = 3; + * @generated from protobuf field: bytes public_key = 3 */ publicKey: Uint8Array; } @@ -360,13 +360,13 @@ export interface ApproveDeviceRequest { id: { oneofKind: "credentialId"; /** - * @generated from protobuf field: string credential_id = 1; + * @generated from protobuf field: string credential_id = 1 */ credentialId: string; } | { oneofKind: "enrollmentId"; /** - * @generated from protobuf field: string enrollment_id = 2; + * @generated from protobuf field: string enrollment_id = 2 */ enrollmentId: string; } | { @@ -378,15 +378,15 @@ export interface ApproveDeviceRequest { */ export interface CreateDeviceEnrollmentRequest { /** - * @generated from protobuf field: pomerium.dashboard.DeviceEnrollment enrollment = 1; + * @generated from protobuf field: pomerium.dashboard.DeviceEnrollment enrollment = 1 */ enrollment?: DeviceEnrollment; /** - * @generated from protobuf field: string route_url = 3; + * @generated from protobuf field: string route_url = 3 */ routeUrl: string; /** - * @generated from protobuf field: string redirect_url = 2; + * @generated from protobuf field: string redirect_url = 2 */ redirectUrl: string; } @@ -395,11 +395,11 @@ export interface CreateDeviceEnrollmentRequest { */ export interface CreateDeviceEnrollmentResponse { /** - * @generated from protobuf field: pomerium.dashboard.DeviceEnrollment enrollment = 1; + * @generated from protobuf field: pomerium.dashboard.DeviceEnrollment enrollment = 1 */ enrollment?: DeviceEnrollment; /** - * @generated from protobuf field: string enrollment_url = 2; + * @generated from protobuf field: string enrollment_url = 2 */ enrollmentUrl: string; } @@ -413,13 +413,13 @@ export interface DeleteDeviceRequest { id: { oneofKind: "credentialId"; /** - * @generated from protobuf field: string credential_id = 1; + * @generated from protobuf field: string credential_id = 1 */ credentialId: string; } | { oneofKind: "enrollmentId"; /** - * @generated from protobuf field: string enrollment_id = 2; + * @generated from protobuf field: string enrollment_id = 2 */ enrollmentId: string; } | { @@ -431,7 +431,7 @@ export interface DeleteDeviceRequest { */ export interface DeleteDeviceTypeRequest { /** - * @generated from protobuf field: string type_id = 1; + * @generated from protobuf field: string type_id = 1 */ typeId: string; } @@ -440,19 +440,19 @@ export interface DeleteDeviceTypeRequest { */ export interface ListDevicesRequest { /** - * @generated from protobuf field: optional string type_id = 1; + * @generated from protobuf field: optional string type_id = 1 */ typeId?: string; /** - * @generated from protobuf field: optional string user_id = 2; + * @generated from protobuf field: optional string user_id = 2 */ userId?: string; /** - * @generated from protobuf field: optional string approved_by = 3; + * @generated from protobuf field: optional string approved_by = 3 */ approvedBy?: string; /** - * @generated from protobuf field: optional string cluster_id = 4; + * @generated from protobuf field: optional string cluster_id = 4 */ clusterId?: string; } @@ -461,7 +461,7 @@ export interface ListDevicesRequest { */ export interface ListDevicesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.ListDevicesResponse.Device devices = 4; + * @generated from protobuf field: repeated pomerium.dashboard.ListDevicesResponse.Device devices = 4 */ devices: ListDevicesResponse_Device[]; } @@ -470,27 +470,27 @@ export interface ListDevicesResponse { */ export interface ListDevicesResponse_Device { /** - * @generated from protobuf field: pomerium.dashboard.DeviceType type = 1; + * @generated from protobuf field: pomerium.dashboard.DeviceType type = 1 */ type?: DeviceType; /** - * @generated from protobuf field: pomerium.dashboard.DeviceCredential credential = 2; + * @generated from protobuf field: pomerium.dashboard.DeviceCredential credential = 2 */ credential?: DeviceCredential; /** - * @generated from protobuf field: pomerium.dashboard.DeviceEnrollment enrollment = 3; + * @generated from protobuf field: pomerium.dashboard.DeviceEnrollment enrollment = 3 */ enrollment?: DeviceEnrollment; /** - * @generated from protobuf field: pomerium.dashboard.DeviceKind kind = 4; + * @generated from protobuf field: pomerium.dashboard.DeviceKind kind = 4 */ kind: DeviceKind; /** - * @generated from protobuf field: string user_name = 5; + * @generated from protobuf field: string user_name = 5 */ userName: string; /** - * @generated from protobuf field: string approved_by_user_name = 6; + * @generated from protobuf field: string approved_by_user_name = 6 */ approvedByUserName: string; } @@ -504,7 +504,7 @@ export interface ListDeviceTypesRequest { */ export interface ListDeviceTypesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.DeviceType types = 1; + * @generated from protobuf field: repeated pomerium.dashboard.DeviceType types = 1 */ types: DeviceType[]; } @@ -513,7 +513,7 @@ export interface ListDeviceTypesResponse { */ export interface SetDeviceTypeRequest { /** - * @generated from protobuf field: pomerium.dashboard.DeviceType type = 1; + * @generated from protobuf field: pomerium.dashboard.DeviceType type = 1 */ type?: DeviceType; } @@ -522,7 +522,7 @@ export interface SetDeviceTypeRequest { */ export interface SetDeviceTypeResponse { /** - * @generated from protobuf field: pomerium.dashboard.DeviceType type = 1; + * @generated from protobuf field: pomerium.dashboard.DeviceType type = 1 */ type?: DeviceType; } @@ -561,7 +561,7 @@ class WebAuthnOptions$Type extends MessageType { super("pomerium.dashboard.WebAuthnOptions", [ { no: 1, name: "attestation", kind: "enum", opt: true, T: () => ["pomerium.dashboard.WebAuthnOptions.AttestationConveyancePreference", WebAuthnOptions_AttestationConveyancePreference] }, { no: 2, name: "authenticator_selection", kind: "message", T: () => WebAuthnOptions_AuthenticatorSelectionCriteria }, - { no: 3, name: "pub_key_cred_params", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WebAuthnOptions_PublicKeyCredentialParameters } + { no: 3, name: "pub_key_cred_params", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WebAuthnOptions_PublicKeyCredentialParameters } ]); } create(value?: PartialMessage): WebAuthnOptions { @@ -1366,12 +1366,12 @@ class CreateDeviceEnrollmentRequest$Type extends MessageType { constructor() { super("pomerium.dashboard.ListDevicesResponse", [ - { no: 4, name: "devices", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ListDevicesResponse_Device } + { no: 4, name: "devices", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListDevicesResponse_Device } ]); } create(value?: PartialMessage): ListDevicesResponse { @@ -1753,7 +1753,20 @@ class ListDeviceTypesRequest$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDeviceTypesRequest): ListDeviceTypesRequest { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: ListDeviceTypesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -1770,7 +1783,7 @@ export const ListDeviceTypesRequest = new ListDeviceTypesRequest$Type(); class ListDeviceTypesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListDeviceTypesResponse", [ - { no: 1, name: "types", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DeviceType } + { no: 1, name: "types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DeviceType } ]); } create(value?: PartialMessage): ListDeviceTypesResponse { diff --git a/src/pomerium-console/external_data_sources.client.ts b/src/pomerium-console/external_data_sources.client.ts index 2b40000..4b64807 100644 --- a/src/pomerium-console/external_data_sources.client.ts +++ b/src/pomerium-console/external_data_sources.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "external_data_sources.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -24,27 +24,27 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IExternalDataSourceServiceClient { /** - * @generated from protobuf rpc: DeleteExternalDataSource(pomerium.dashboard.DeleteExternalDataSourceRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: DeleteExternalDataSource */ deleteExternalDataSource(input: DeleteExternalDataSourceRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: GetExternalDataSource(pomerium.dashboard.GetExternalDataSourceRequest) returns (pomerium.dashboard.GetExternalDataSourceResponse); + * @generated from protobuf rpc: GetExternalDataSource */ getExternalDataSource(input: GetExternalDataSourceRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: ListExternalDataSources(pomerium.dashboard.ListExternalDataSourcesRequest) returns (pomerium.dashboard.ListExternalDataSourcesResponse); + * @generated from protobuf rpc: ListExternalDataSources */ listExternalDataSources(input: ListExternalDataSourcesRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: ListExternalDataSourceRecordTypes(pomerium.dashboard.ListExternalDataSourceRecordTypesRequest) returns (pomerium.dashboard.ListExternalDataSourceRecordTypesResponse); + * @generated from protobuf rpc: ListExternalDataSourceRecordTypes */ listExternalDataSourceRecordTypes(input: ListExternalDataSourceRecordTypesRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: ListExternalDataSourceRecordFields(pomerium.dashboard.ListExternalDataSourceRecordFieldsRequest) returns (pomerium.dashboard.ListExternalDataSourceRecordFieldsResponse); + * @generated from protobuf rpc: ListExternalDataSourceRecordFields */ listExternalDataSourceRecordFields(input: ListExternalDataSourceRecordFieldsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: SetExternalDataSource(pomerium.dashboard.SetExternalDataSourceRequest) returns (pomerium.dashboard.SetExternalDataSourceResponse); + * @generated from protobuf rpc: SetExternalDataSource */ setExternalDataSource(input: SetExternalDataSourceRequest, options?: RpcOptions): UnaryCall; } @@ -58,42 +58,42 @@ export class ExternalDataSourceServiceClient implements IExternalDataSourceServi constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: DeleteExternalDataSource(pomerium.dashboard.DeleteExternalDataSourceRequest) returns (google.protobuf.Empty); + * @generated from protobuf rpc: DeleteExternalDataSource */ deleteExternalDataSource(input: DeleteExternalDataSourceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: GetExternalDataSource(pomerium.dashboard.GetExternalDataSourceRequest) returns (pomerium.dashboard.GetExternalDataSourceResponse); + * @generated from protobuf rpc: GetExternalDataSource */ getExternalDataSource(input: GetExternalDataSourceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: ListExternalDataSources(pomerium.dashboard.ListExternalDataSourcesRequest) returns (pomerium.dashboard.ListExternalDataSourcesResponse); + * @generated from protobuf rpc: ListExternalDataSources */ listExternalDataSources(input: ListExternalDataSourcesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: ListExternalDataSourceRecordTypes(pomerium.dashboard.ListExternalDataSourceRecordTypesRequest) returns (pomerium.dashboard.ListExternalDataSourceRecordTypesResponse); + * @generated from protobuf rpc: ListExternalDataSourceRecordTypes */ listExternalDataSourceRecordTypes(input: ListExternalDataSourceRecordTypesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: ListExternalDataSourceRecordFields(pomerium.dashboard.ListExternalDataSourceRecordFieldsRequest) returns (pomerium.dashboard.ListExternalDataSourceRecordFieldsResponse); + * @generated from protobuf rpc: ListExternalDataSourceRecordFields */ listExternalDataSourceRecordFields(input: ListExternalDataSourceRecordFieldsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: SetExternalDataSource(pomerium.dashboard.SetExternalDataSourceRequest) returns (pomerium.dashboard.SetExternalDataSourceResponse); + * @generated from protobuf rpc: SetExternalDataSource */ setExternalDataSource(input: SetExternalDataSourceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/external_data_sources.ts b/src/pomerium-console/external_data_sources.ts index 75fd7c0..ebaa28e 100644 --- a/src/pomerium-console/external_data_sources.ts +++ b/src/pomerium-console/external_data_sources.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "external_data_sources.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { Empty } from "./google/protobuf/empty"; @@ -19,51 +19,51 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface ExternalDataSource { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string originator_id = 13; + * @generated from protobuf field: string originator_id = 13 */ originatorId: string; /** - * @generated from protobuf field: optional string cluster_id = 14; + * @generated from protobuf field: optional string cluster_id = 14 */ clusterId?: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4 */ deletedAt?: Timestamp; /** * Url is the URL to query for data. * - * @generated from protobuf field: string url = 5; + * @generated from protobuf field: string url = 5 */ url: string; /** * RecordType is how the queried records will be stored in the databroker. * - * @generated from protobuf field: string record_type = 6; + * @generated from protobuf field: string record_type = 6 */ recordType: string; /** * ForeignKey is the key referenced for policy evaluation. E.g. user.id. * - * @generated from protobuf field: string foreign_key = 7; + * @generated from protobuf field: string foreign_key = 7 */ foreignKey: string; /** * Headers are request headers sent to the external data source. * - * @generated from protobuf field: map headers = 8; + * @generated from protobuf field: map headers = 8 */ headers: { [key: string]: string; @@ -71,25 +71,25 @@ export interface ExternalDataSource { /** * AllowInsecureTls ignores TLS errors from the external data source. * - * @generated from protobuf field: optional bool allow_insecure_tls = 9; + * @generated from protobuf field: optional bool allow_insecure_tls = 9 */ allowInsecureTls?: boolean; /** * ClientTlsKeyId is the key pair used for TLS to the external data source. * - * @generated from protobuf field: optional string client_tls_key_id = 10; + * @generated from protobuf field: optional string client_tls_key_id = 10 */ clientTlsKeyId?: string; /** * PollingMinDelay is the minimum amount of time to wait before polling again. * - * @generated from protobuf field: optional google.protobuf.Duration polling_min_delay = 11; + * @generated from protobuf field: optional google.protobuf.Duration polling_min_delay = 11 */ pollingMinDelay?: Duration; /** * PollingMaxDelay is the maximum amount of time to wait before polling again. * - * @generated from protobuf field: optional google.protobuf.Duration polling_max_delay = 12; + * @generated from protobuf field: optional google.protobuf.Duration polling_max_delay = 12 */ pollingMaxDelay?: Duration; } @@ -98,7 +98,7 @@ export interface ExternalDataSource { */ export interface DeleteExternalDataSourceRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -107,7 +107,7 @@ export interface DeleteExternalDataSourceRequest { */ export interface GetExternalDataSourceRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -116,7 +116,7 @@ export interface GetExternalDataSourceRequest { */ export interface GetExternalDataSourceResponse { /** - * @generated from protobuf field: pomerium.dashboard.ExternalDataSource external_data_source = 1; + * @generated from protobuf field: pomerium.dashboard.ExternalDataSource external_data_source = 1 */ externalDataSource?: ExternalDataSource; } @@ -125,7 +125,7 @@ export interface GetExternalDataSourceResponse { */ export interface ListExternalDataSourcesRequest { /** - * @generated from protobuf field: optional string cluster_id = 1; + * @generated from protobuf field: optional string cluster_id = 1 */ clusterId?: string; } @@ -134,7 +134,7 @@ export interface ListExternalDataSourcesRequest { */ export interface ListExternalDataSourcesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.ExternalDataSource external_data_sources = 1; + * @generated from protobuf field: repeated pomerium.dashboard.ExternalDataSource external_data_sources = 1 */ externalDataSources: ExternalDataSource[]; } @@ -143,7 +143,7 @@ export interface ListExternalDataSourcesResponse { */ export interface ListExternalDataSourceRecordTypesRequest { /** - * @generated from protobuf field: optional string cluster_id = 1; + * @generated from protobuf field: optional string cluster_id = 1 */ clusterId?: string; } @@ -152,7 +152,7 @@ export interface ListExternalDataSourceRecordTypesRequest { */ export interface ListExternalDataSourceRecordTypesResponse { /** - * @generated from protobuf field: repeated string record_types = 1; + * @generated from protobuf field: repeated string record_types = 1 */ recordTypes: string[]; } @@ -161,11 +161,11 @@ export interface ListExternalDataSourceRecordTypesResponse { */ export interface ListExternalDataSourceRecordFieldsRequest { /** - * @generated from protobuf field: string record_type = 1; + * @generated from protobuf field: string record_type = 1 */ recordType: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -174,7 +174,7 @@ export interface ListExternalDataSourceRecordFieldsRequest { */ export interface ListExternalDataSourceRecordFieldsResponse { /** - * @generated from protobuf field: repeated string record_fields = 1; + * @generated from protobuf field: repeated string record_fields = 1 */ recordFields: string[]; } @@ -183,7 +183,7 @@ export interface ListExternalDataSourceRecordFieldsResponse { */ export interface SetExternalDataSourceRequest { /** - * @generated from protobuf field: pomerium.dashboard.ExternalDataSource external_data_source = 1; + * @generated from protobuf field: pomerium.dashboard.ExternalDataSource external_data_source = 1 */ externalDataSource?: ExternalDataSource; } @@ -192,7 +192,7 @@ export interface SetExternalDataSourceRequest { */ export interface SetExternalDataSourceResponse { /** - * @generated from protobuf field: pomerium.dashboard.ExternalDataSource external_data_source = 1; + * @generated from protobuf field: pomerium.dashboard.ExternalDataSource external_data_source = 1 */ externalDataSource?: ExternalDataSource; } @@ -297,7 +297,7 @@ class ExternalDataSource$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.ExternalDataSource.headers"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.ExternalDataSource.headers"); } } map[key ?? ""] = val ?? ""; @@ -306,12 +306,6 @@ class ExternalDataSource$Type extends MessageType { /* string id = 1; */ if (message.id !== "") writer.tag(1, WireType.LengthDelimited).string(message.id); - /* string originator_id = 13; */ - if (message.originatorId !== "") - writer.tag(13, WireType.LengthDelimited).string(message.originatorId); - /* optional string cluster_id = 14; */ - if (message.clusterId !== undefined) - writer.tag(14, WireType.LengthDelimited).string(message.clusterId); /* google.protobuf.Timestamp created_at = 2; */ if (message.createdAt) Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); @@ -345,6 +339,12 @@ class ExternalDataSource$Type extends MessageType { /* optional google.protobuf.Duration polling_max_delay = 12; */ if (message.pollingMaxDelay) Duration.internalBinaryWrite(message.pollingMaxDelay, writer.tag(12, WireType.LengthDelimited).fork(), options).join(); + /* string originator_id = 13; */ + if (message.originatorId !== "") + writer.tag(13, WireType.LengthDelimited).string(message.originatorId); + /* optional string cluster_id = 14; */ + if (message.clusterId !== undefined) + writer.tag(14, WireType.LengthDelimited).string(message.clusterId); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -545,7 +545,7 @@ export const ListExternalDataSourcesRequest = new ListExternalDataSourcesRequest class ListExternalDataSourcesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListExternalDataSourcesResponse", [ - { no: 1, name: "external_data_sources", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ExternalDataSource } + { no: 1, name: "external_data_sources", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalDataSource } ]); } create(value?: PartialMessage): ListExternalDataSourcesResponse { diff --git a/src/pomerium-console/google/protobuf/descriptor.ts b/src/pomerium-console/google/protobuf/descriptor.ts index 3a03c01..1088f23 100644 --- a/src/pomerium-console/google/protobuf/descriptor.ts +++ b/src/pomerium-console/google/protobuf/descriptor.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2) // tslint:disable // @@ -58,7 +58,7 @@ import { MessageType } from "@protobuf-ts/runtime"; */ export interface FileDescriptorSet { /** - * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto file = 1; + * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto file = 1 */ file: FileDescriptorProto[]; } @@ -69,52 +69,59 @@ export interface FileDescriptorSet { */ export interface FileDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; // file name, relative to root of source tree /** - * @generated from protobuf field: optional string package = 2; + * @generated from protobuf field: optional string package = 2 */ package?: string; // e.g. "foo", "foo.bar", etc. /** * Names of files imported by this file. * - * @generated from protobuf field: repeated string dependency = 3; + * @generated from protobuf field: repeated string dependency = 3 */ dependency: string[]; /** * Indexes of the public imported files in the dependency list above. * - * @generated from protobuf field: repeated int32 public_dependency = 10; + * @generated from protobuf field: repeated int32 public_dependency = 10 */ publicDependency: number[]; /** * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * - * @generated from protobuf field: repeated int32 weak_dependency = 11; + * @generated from protobuf field: repeated int32 weak_dependency = 11 */ weakDependency: number[]; + /** + * Names of files imported by this file purely for the purpose of providing + * option extensions. These are excluded from the dependency list above. + * + * @generated from protobuf field: repeated string option_dependency = 15 + */ + optionDependency: string[]; /** * All top-level definitions in this file. * - * @generated from protobuf field: repeated google.protobuf.DescriptorProto message_type = 4; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto message_type = 4 */ messageType: DescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 5 */ enumType: EnumDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.ServiceDescriptorProto service = 6; + * @generated from protobuf field: repeated google.protobuf.ServiceDescriptorProto service = 6 */ service: ServiceDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 7; + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 7 */ extension: FieldDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.FileOptions options = 8; + * @generated from protobuf field: optional google.protobuf.FileOptions options = 8 */ options?: FileOptions; /** @@ -123,16 +130,30 @@ export interface FileDescriptorProto { * functionality of the descriptors -- the information is needed only by * development tools. * - * @generated from protobuf field: optional google.protobuf.SourceCodeInfo source_code_info = 9; + * @generated from protobuf field: optional google.protobuf.SourceCodeInfo source_code_info = 9 */ sourceCodeInfo?: SourceCodeInfo; /** * The syntax of the proto file. - * The supported values are "proto2" and "proto3". + * The supported values are "proto2", "proto3", and "editions". + * + * If `edition` is present, this value must be "editions". + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * - * @generated from protobuf field: optional string syntax = 12; + * @generated from protobuf field: optional string syntax = 12 */ syntax?: string; + /** + * The edition of the proto file. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.Edition edition = 14 + */ + edition?: Edition; } /** * Describes a message type. @@ -141,63 +162,69 @@ export interface FileDescriptorProto { */ export interface DescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto field = 2; + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto field = 2 */ field: FieldDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 6; + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 6 */ extension: FieldDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto nested_type = 3; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto nested_type = 3 */ nestedType: DescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 4 */ enumType: EnumDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 */ extensionRange: DescriptorProto_ExtensionRange[]; /** - * @generated from protobuf field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; + * @generated from protobuf field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8 */ oneofDecl: OneofDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.MessageOptions options = 7; + * @generated from protobuf field: optional google.protobuf.MessageOptions options = 7 */ options?: MessageOptions; /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 */ reservedRange: DescriptorProto_ReservedRange[]; /** * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * - * @generated from protobuf field: repeated string reserved_name = 10; + * @generated from protobuf field: repeated string reserved_name = 10 */ reservedName: string[]; + /** + * Support for `export` and `local` keywords on enums. + * + * @generated from protobuf field: optional google.protobuf.SymbolVisibility visibility = 11 + */ + visibility?: SymbolVisibility; } /** * @generated from protobuf message google.protobuf.DescriptorProto.ExtensionRange */ export interface DescriptorProto_ExtensionRange { /** - * @generated from protobuf field: optional int32 start = 1; + * @generated from protobuf field: optional int32 start = 1 */ start?: number; // Inclusive. /** - * @generated from protobuf field: optional int32 end = 2; + * @generated from protobuf field: optional int32 end = 2 */ end?: number; // Exclusive. /** - * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions options = 3; + * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions options = 3 */ options?: ExtensionRangeOptions; } @@ -210,11 +237,11 @@ export interface DescriptorProto_ExtensionRange { */ export interface DescriptorProto_ReservedRange { /** - * @generated from protobuf field: optional int32 start = 1; + * @generated from protobuf field: optional int32 start = 1 */ start?: number; // Inclusive. /** - * @generated from protobuf field: optional int32 end = 2; + * @generated from protobuf field: optional int32 end = 2 */ end?: number; // Exclusive. } @@ -225,9 +252,89 @@ export interface ExtensionRangeOptions { /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; + /** + * For external users: DO NOT USE. We are in the process of open sourcing + * extension declaration and executing internal cleanups before it can be + * used externally. + * + * @generated from protobuf field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 + */ + declaration: ExtensionRangeOptions_Declaration[]; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50 + */ + features?: FeatureSet; + /** + * The verification state of the range. + * TODO: flip the default to DECLARATION once all empty ranges + * are marked as UNVERIFIED. + * + * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED] + */ + verification?: ExtensionRangeOptions_VerificationState; +} +/** + * @generated from protobuf message google.protobuf.ExtensionRangeOptions.Declaration + */ +export interface ExtensionRangeOptions_Declaration { + /** + * The extension number declared within the extension range. + * + * @generated from protobuf field: optional int32 number = 1 + */ + number?: number; + /** + * The fully-qualified name of the extension field. There must be a leading + * dot in front of the full name. + * + * @generated from protobuf field: optional string full_name = 2 + */ + fullName?: string; + /** + * The fully-qualified type name of the extension field. Unlike + * Metadata.type, Declaration.type must have a leading dot for messages + * and enums. + * + * @generated from protobuf field: optional string type = 3 + */ + type?: string; + /** + * If true, indicates that the number is reserved in the extension range, + * and any extension field with the number will fail to compile. Set this + * when a declared extension field is deleted. + * + * @generated from protobuf field: optional bool reserved = 5 + */ + reserved?: boolean; + /** + * If true, indicates that the extension must be defined as repeated. + * Otherwise the extension must be defined as optional. + * + * @generated from protobuf field: optional bool repeated = 6 + */ + repeated?: boolean; +} +/** + * The verification state of the extension range. + * + * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState + */ +export enum ExtensionRangeOptions_VerificationState { + /** + * All the extensions of the range must be declared. + * + * @generated from protobuf enum value: DECLARATION = 0; + */ + DECLARATION = 0, + /** + * @generated from protobuf enum value: UNVERIFIED = 1; + */ + UNVERIFIED = 1 } /** * Describes a field within a message. @@ -236,22 +343,22 @@ export interface ExtensionRangeOptions { */ export interface FieldDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: optional int32 number = 3; + * @generated from protobuf field: optional int32 number = 3 */ number?: number; /** - * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Label label = 4; + * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Label label = 4 */ label?: FieldDescriptorProto_Label; /** * If type_name is set, this need not be set. If both this and type_name * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. * - * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Type type = 5; + * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Type type = 5 */ type?: FieldDescriptorProto_Type; /** @@ -261,14 +368,14 @@ export interface FieldDescriptorProto { * message are searched, then within the parent, on up to the root * namespace). * - * @generated from protobuf field: optional string type_name = 6; + * @generated from protobuf field: optional string type_name = 6 */ typeName?: string; /** * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * - * @generated from protobuf field: optional string extendee = 2; + * @generated from protobuf field: optional string extendee = 2 */ extendee?: string; /** @@ -277,14 +384,14 @@ export interface FieldDescriptorProto { * For strings, contains the default text contents (not escaped in any way). * For bytes, contains the C escaped value. All bytes >= 128 are escaped. * - * @generated from protobuf field: optional string default_value = 7; + * @generated from protobuf field: optional string default_value = 7 */ defaultValue?: string; /** * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * - * @generated from protobuf field: optional int32 oneof_index = 9; + * @generated from protobuf field: optional int32 oneof_index = 9 */ oneofIndex?: number; /** @@ -293,23 +400,23 @@ export interface FieldDescriptorProto { * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * - * @generated from protobuf field: optional string json_name = 10; + * @generated from protobuf field: optional string json_name = 10 */ jsonName?: string; /** - * @generated from protobuf field: optional google.protobuf.FieldOptions options = 8; + * @generated from protobuf field: optional google.protobuf.FieldOptions options = 8 */ options?: FieldOptions; /** * If true, this is a proto3 "optional". When a proto3 field is optional, it * tracks presence regardless of field type. * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. + * When proto3_optional is true, this field must belong to a oneof to signal + * to old proto3 clients that presence is tracked for this field. This oneof + * is known as a "synthetic" oneof, and this field must be its sole member + * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs + * exist in the descriptor only, and do not generate any API. Synthetic oneofs + * must be ordered after all "real" oneofs. * * For message fields, proto3_optional doesn't create any semantic change, * since non-repeated message fields always track presence. However it still @@ -323,7 +430,7 @@ export interface FieldDescriptorProto { * Proto2 optional fields do not set this flag, because they already indicate * optional with `LABEL_OPTIONAL`. * - * @generated from protobuf field: optional bool proto3_optional = 17; + * @generated from protobuf field: optional bool proto3_optional = 17 */ proto3Optional?: boolean; } @@ -382,9 +489,10 @@ export enum FieldDescriptorProto_Type { STRING = 9, /** * Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 + * Group type is deprecated and not supported after google.protobuf. However, Proto3 * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. + * treat group fields as unknown fields. In Editions, the group wire format + * can be enabled via the `message_encoding` feature. * * @generated from protobuf enum value: TYPE_GROUP = 10; */ @@ -445,13 +553,17 @@ export enum FieldDescriptorProto_Label { */ OPTIONAL = 1, /** - * @generated from protobuf enum value: LABEL_REQUIRED = 2; + * @generated from protobuf enum value: LABEL_REPEATED = 3; */ - REQUIRED = 2, + REPEATED = 3, /** - * @generated from protobuf enum value: LABEL_REPEATED = 3; + * The required label is only allowed in google.protobuf. In proto3 and Editions + * it's explicitly prohibited. In Editions, the `field_presence` feature + * can be used to get this behavior. + * + * @generated from protobuf enum value: LABEL_REQUIRED = 2; */ - REPEATED = 3 + REQUIRED = 2 } /** * Describes a oneof. @@ -460,11 +572,11 @@ export enum FieldDescriptorProto_Label { */ export interface OneofDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: optional google.protobuf.OneofOptions options = 2; + * @generated from protobuf field: optional google.protobuf.OneofOptions options = 2 */ options?: OneofOptions; } @@ -475,15 +587,15 @@ export interface OneofDescriptorProto { */ export interface EnumDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: repeated google.protobuf.EnumValueDescriptorProto value = 2; + * @generated from protobuf field: repeated google.protobuf.EnumValueDescriptorProto value = 2 */ value: EnumValueDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.EnumOptions options = 3; + * @generated from protobuf field: optional google.protobuf.EnumOptions options = 3 */ options?: EnumOptions; /** @@ -491,16 +603,22 @@ export interface EnumDescriptorProto { * by enum values in the same enum declaration. Reserved ranges may not * overlap. * - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 */ reservedRange: EnumDescriptorProto_EnumReservedRange[]; /** * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * - * @generated from protobuf field: repeated string reserved_name = 5; + * @generated from protobuf field: repeated string reserved_name = 5 */ reservedName: string[]; + /** + * Support for `export` and `local` keywords on enums. + * + * @generated from protobuf field: optional google.protobuf.SymbolVisibility visibility = 6 + */ + visibility?: SymbolVisibility; } /** * Range of reserved numeric values. Reserved values may not be used by @@ -514,11 +632,11 @@ export interface EnumDescriptorProto { */ export interface EnumDescriptorProto_EnumReservedRange { /** - * @generated from protobuf field: optional int32 start = 1; + * @generated from protobuf field: optional int32 start = 1 */ start?: number; // Inclusive. /** - * @generated from protobuf field: optional int32 end = 2; + * @generated from protobuf field: optional int32 end = 2 */ end?: number; // Inclusive. } @@ -529,15 +647,15 @@ export interface EnumDescriptorProto_EnumReservedRange { */ export interface EnumValueDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: optional int32 number = 2; + * @generated from protobuf field: optional int32 number = 2 */ number?: number; /** - * @generated from protobuf field: optional google.protobuf.EnumValueOptions options = 3; + * @generated from protobuf field: optional google.protobuf.EnumValueOptions options = 3 */ options?: EnumValueOptions; } @@ -548,15 +666,15 @@ export interface EnumValueDescriptorProto { */ export interface ServiceDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: repeated google.protobuf.MethodDescriptorProto method = 2; + * @generated from protobuf field: repeated google.protobuf.MethodDescriptorProto method = 2 */ method: MethodDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.ServiceOptions options = 3; + * @generated from protobuf field: optional google.protobuf.ServiceOptions options = 3 */ options?: ServiceOptions; } @@ -567,34 +685,34 @@ export interface ServiceDescriptorProto { */ export interface MethodDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * - * @generated from protobuf field: optional string input_type = 2; + * @generated from protobuf field: optional string input_type = 2 */ inputType?: string; /** - * @generated from protobuf field: optional string output_type = 3; + * @generated from protobuf field: optional string output_type = 3 */ outputType?: string; /** - * @generated from protobuf field: optional google.protobuf.MethodOptions options = 4; + * @generated from protobuf field: optional google.protobuf.MethodOptions options = 4 */ options?: MethodOptions; /** * Identifies if client streams multiple client messages * - * @generated from protobuf field: optional bool client_streaming = 5; + * @generated from protobuf field: optional bool client_streaming = 5 [default = false] */ clientStreaming?: boolean; /** * Identifies if server streams multiple server messages * - * @generated from protobuf field: optional bool server_streaming = 6; + * @generated from protobuf field: optional bool server_streaming = 6 [default = false] */ serverStreaming?: boolean; } @@ -640,7 +758,7 @@ export interface FileOptions { * inappropriate because proto packages do not normally start with backwards * domain names. * - * @generated from protobuf field: optional string java_package = 1; + * @generated from protobuf field: optional string java_package = 1 */ javaPackage?: string; /** @@ -650,7 +768,7 @@ export interface FileOptions { * If java_multiple_files is disabled, then all the other classes from the * .proto file will be nested inside the single wrapper outer class. * - * @generated from protobuf field: optional string java_outer_classname = 8; + * @generated from protobuf field: optional string java_outer_classname = 8 */ javaOuterClassname?: string; /** @@ -661,29 +779,33 @@ export interface FileOptions { * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * - * @generated from protobuf field: optional bool java_multiple_files = 10; + * @generated from protobuf field: optional bool java_multiple_files = 10 [default = false] */ javaMultipleFiles?: boolean; /** * This option does nothing. * * @deprecated - * @generated from protobuf field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + * @generated from protobuf field: optional bool java_generate_equals_and_hash = 20 [deprecated = true] */ javaGenerateEqualsAndHash?: boolean; /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. + * A proto2 file can set this to true to opt in to UTF-8 checking for Java, + * which will throw an exception if invalid UTF-8 is parsed from the wire or + * assigned to a string field. + * + * TODO: clarify exactly what kinds of field types this option + * applies to, and update these docs accordingly. * - * @generated from protobuf field: optional bool java_string_check_utf8 = 27; + * Proto3 files already perform these checks. Setting the option explicitly to + * false has no effect: it cannot be used to opt proto3 files out of UTF-8 + * checks. + * + * @generated from protobuf field: optional bool java_string_check_utf8 = 27 [default = false] */ javaStringCheckUtf8?: boolean; /** - * @generated from protobuf field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; + * @generated from protobuf field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED] */ optimizeFor?: FileOptions_OptimizeMode; /** @@ -693,7 +815,7 @@ export interface FileOptions { * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * - * @generated from protobuf field: optional string go_package = 11; + * @generated from protobuf field: optional string go_package = 11 */ goPackage?: string; /** @@ -708,48 +830,44 @@ export interface FileOptions { * these default to false. Old code which depends on generic services should * explicitly set them to true. * - * @generated from protobuf field: optional bool cc_generic_services = 16; + * @generated from protobuf field: optional bool cc_generic_services = 16 [default = false] */ ccGenericServices?: boolean; /** - * @generated from protobuf field: optional bool java_generic_services = 17; + * @generated from protobuf field: optional bool java_generic_services = 17 [default = false] */ javaGenericServices?: boolean; /** - * @generated from protobuf field: optional bool py_generic_services = 18; + * @generated from protobuf field: optional bool py_generic_services = 18 [default = false] */ pyGenericServices?: boolean; - /** - * @generated from protobuf field: optional bool php_generic_services = 42; - */ - phpGenericServices?: boolean; /** * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * - * @generated from protobuf field: optional bool deprecated = 23; + * @generated from protobuf field: optional bool deprecated = 23 [default = false] */ deprecated?: boolean; /** * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * - * @generated from protobuf field: optional bool cc_enable_arenas = 31; + * @generated from protobuf field: optional bool cc_enable_arenas = 31 [default = true] */ ccEnableArenas?: boolean; /** * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * - * @generated from protobuf field: optional string objc_class_prefix = 36; + * @generated from protobuf field: optional string objc_class_prefix = 36 */ objcClassPrefix?: string; /** * Namespace for generated classes; defaults to the package. * - * @generated from protobuf field: optional string csharp_namespace = 37; + * @generated from protobuf field: optional string csharp_namespace = 37 */ csharpNamespace?: string; /** @@ -758,14 +876,14 @@ export interface FileOptions { * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * - * @generated from protobuf field: optional string swift_prefix = 39; + * @generated from protobuf field: optional string swift_prefix = 39 */ swiftPrefix?: string; /** * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * - * @generated from protobuf field: optional string php_class_prefix = 40; + * @generated from protobuf field: optional string php_class_prefix = 40 */ phpClassPrefix?: string; /** @@ -773,7 +891,7 @@ export interface FileOptions { * is empty. When this option is empty, the package name will be used for * determining the namespace. * - * @generated from protobuf field: optional string php_namespace = 41; + * @generated from protobuf field: optional string php_namespace = 41 */ phpNamespace?: string; /** @@ -781,7 +899,7 @@ export interface FileOptions { * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * - * @generated from protobuf field: optional string php_metadata_namespace = 44; + * @generated from protobuf field: optional string php_metadata_namespace = 44 */ phpMetadataNamespace?: string; /** @@ -789,14 +907,23 @@ export interface FileOptions { * is empty. When this option is not set, the package name will be used for * determining the ruby package. * - * @generated from protobuf field: optional string ruby_package = 45; + * @generated from protobuf field: optional string ruby_package = 45 */ rubyPackage?: string; + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50 + */ + features?: FeatureSet; /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } @@ -855,7 +982,7 @@ export interface MessageOptions { * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * - * @generated from protobuf field: optional bool message_set_wire_format = 1; + * @generated from protobuf field: optional bool message_set_wire_format = 1 [default = false] */ messageSetWireFormat?: boolean; /** @@ -863,7 +990,7 @@ export interface MessageOptions { * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * - * @generated from protobuf field: optional bool no_standard_descriptor_accessor = 2; + * @generated from protobuf field: optional bool no_standard_descriptor_accessor = 2 [default = false] */ noStandardDescriptorAccessor?: boolean; /** @@ -872,7 +999,7 @@ export interface MessageOptions { * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * - * @generated from protobuf field: optional bool deprecated = 3; + * @generated from protobuf field: optional bool deprecated = 3 [default = false] */ deprecated?: boolean; /** @@ -898,13 +1025,38 @@ export interface MessageOptions { * instead. The option should only be implicitly set by the proto compiler * parser. * - * @generated from protobuf field: optional bool map_entry = 7; + * @generated from protobuf field: optional bool map_entry = 7 */ mapEntry?: boolean; + /** + * Enable the legacy handling of JSON field name conflicts. This lowercases + * and strips underscored from the fields before comparison in proto3 only. + * The new behavior takes `json_name` into account and applies to proto2 as + * well. + * + * This should only be used as a temporary measure against broken builds due + * to the change in behavior for JSON field name conflicts. + * + * TODO This is legacy behavior we plan to remove once downstream + * teams have had time to migrate. + * + * @deprecated + * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true] + */ + deprecatedLegacyJsonFieldConflicts?: boolean; + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 12 + */ + features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } @@ -913,12 +1065,15 @@ export interface MessageOptions { */ export interface FieldOptions { /** + * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! + * options below. This option is only implemented to support use of + * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of + * type "bytes" in the open source release. + * TODO: make ctype actually deprecated. * - * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1; + * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] */ ctype?: FieldOptions_CType; /** @@ -926,9 +1081,11 @@ export interface FieldOptions { * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. + * false will avoid using packed encoding. This option is prohibited in + * Editions, but the `repeated_field_encoding` feature can be used to control + * the behavior. * - * @generated from protobuf field: optional bool packed = 2; + * @generated from protobuf field: optional bool packed = 2 */ packed?: boolean; /** @@ -944,7 +1101,7 @@ export interface FieldOptions { * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * - * @generated from protobuf field: optional google.protobuf.FieldOptions.JSType jstype = 6; + * @generated from protobuf field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL] */ jstype?: FieldOptions_JSType; /** @@ -965,25 +1122,13 @@ export interface FieldOptions { * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * + * Note that lazy message fields are still eagerly verified to check + * ill-formed wireformat or missing required fields. Calling IsInitialized() + * on the outer message would fail if the inner message has missing required + * fields. Failed verification would result in parsing failure (except when + * uninitialized messages are acceptable). * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - * - * As of 2021, lazy does no correctness checks on the byte stream during - * parsing. This may lead to crashes if and when an invalid byte stream is - * finally parsed upon access. - * - * TODO(b/211906113): Enable validation on lazy fields. - * - * @generated from protobuf field: optional bool lazy = 5; + * @generated from protobuf field: optional bool lazy = 5 [default = false] */ lazy?: boolean; /** @@ -991,7 +1136,7 @@ export interface FieldOptions { * only be used where lazy with verification is prohibitive for performance * reasons. * - * @generated from protobuf field: optional bool unverified_lazy = 15; + * @generated from protobuf field: optional bool unverified_lazy = 15 [default = false] */ unverifiedLazy?: boolean; /** @@ -1000,22 +1145,106 @@ export interface FieldOptions { * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * - * @generated from protobuf field: optional bool deprecated = 3; + * @generated from protobuf field: optional bool deprecated = 3 [default = false] */ deprecated?: boolean; /** + * DEPRECATED. DO NOT USE! * For Google-internal migration only. Do not use. * - * @generated from protobuf field: optional bool weak = 10; + * @deprecated + * @generated from protobuf field: optional bool weak = 10 [default = false, deprecated = true] */ weak?: boolean; + /** + * Indicate that the field value should not be printed out when using debug + * formats, e.g. when the field contains sensitive credentials. + * + * @generated from protobuf field: optional bool debug_redact = 16 [default = false] + */ + debugRedact?: boolean; + /** + * @generated from protobuf field: optional google.protobuf.FieldOptions.OptionRetention retention = 17 + */ + retention?: FieldOptions_OptionRetention; + /** + * @generated from protobuf field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19 + */ + targets: FieldOptions_OptionTargetType[]; + /** + * @generated from protobuf field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 + */ + editionDefaults: FieldOptions_EditionDefault[]; + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 21 + */ + features?: FeatureSet; + /** + * @generated from protobuf field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22 + */ + featureSupport?: FieldOptions_FeatureSupport; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } +/** + * @generated from protobuf message google.protobuf.FieldOptions.EditionDefault + */ +export interface FieldOptions_EditionDefault { + /** + * @generated from protobuf field: optional google.protobuf.Edition edition = 3 + */ + edition?: Edition; + /** + * @generated from protobuf field: optional string value = 2 + */ + value?: string; // Textproto value. +} +/** + * Information about the support window of a feature. + * + * @generated from protobuf message google.protobuf.FieldOptions.FeatureSupport + */ +export interface FieldOptions_FeatureSupport { + /** + * The edition that this feature was first available in. In editions + * earlier than this one, the default assigned to EDITION_LEGACY will be + * used, and proto files will not be able to override it. + * + * @generated from protobuf field: optional google.protobuf.Edition edition_introduced = 1 + */ + editionIntroduced?: Edition; + /** + * The edition this feature becomes deprecated in. Using this after this + * edition may trigger warnings. + * + * @generated from protobuf field: optional google.protobuf.Edition edition_deprecated = 2 + */ + editionDeprecated?: Edition; + /** + * The deprecation warning text if this feature is used after the edition it + * was marked deprecated in. + * + * @generated from protobuf field: optional string deprecation_warning = 3 + */ + deprecationWarning?: string; + /** + * The edition this feature is no longer available in. In editions after + * this one, the last default assigned will be used, and proto files will + * not be able to override it. + * + * @generated from protobuf field: optional google.protobuf.Edition edition_removed = 4 + */ + editionRemoved?: Edition; +} /** * @generated from protobuf enum google.protobuf.FieldOptions.CType */ @@ -1027,6 +1256,13 @@ export enum FieldOptions_CType { */ STRING = 0, /** + * The option [ctype=CORD] may be applied to a non-repeated field of type + * "bytes". It indicates that in C++, the data should be stored in a Cord + * instead of a string. For very large strings, this may reduce memory + * fragmentation. It may also allow better performance when parsing from a + * Cord, or when parsing with aliasing enabled, as the parsed Cord may then + * alias the original buffer. + * * @generated from protobuf enum value: CORD = 1; */ CORD = 1, @@ -1058,14 +1294,91 @@ export enum FieldOptions_JSType { */ JS_NUMBER = 2 } +/** + * If set to RETENTION_SOURCE, the option will be omitted from the binary. + * + * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention + */ +export enum FieldOptions_OptionRetention { + /** + * @generated from protobuf enum value: RETENTION_UNKNOWN = 0; + */ + RETENTION_UNKNOWN = 0, + /** + * @generated from protobuf enum value: RETENTION_RUNTIME = 1; + */ + RETENTION_RUNTIME = 1, + /** + * @generated from protobuf enum value: RETENTION_SOURCE = 2; + */ + RETENTION_SOURCE = 2 +} +/** + * This indicates the types of entities that the field may apply to when used + * as an option. If it is unset, then the field may be freely used as an + * option on any kind of entity. + * + * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType + */ +export enum FieldOptions_OptionTargetType { + /** + * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0; + */ + TARGET_TYPE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: TARGET_TYPE_FILE = 1; + */ + TARGET_TYPE_FILE = 1, + /** + * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2; + */ + TARGET_TYPE_EXTENSION_RANGE = 2, + /** + * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3; + */ + TARGET_TYPE_MESSAGE = 3, + /** + * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4; + */ + TARGET_TYPE_FIELD = 4, + /** + * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5; + */ + TARGET_TYPE_ONEOF = 5, + /** + * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6; + */ + TARGET_TYPE_ENUM = 6, + /** + * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7; + */ + TARGET_TYPE_ENUM_ENTRY = 7, + /** + * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8; + */ + TARGET_TYPE_SERVICE = 8, + /** + * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9; + */ + TARGET_TYPE_METHOD = 9 +} /** * @generated from protobuf message google.protobuf.OneofOptions */ export interface OneofOptions { + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 1 + */ + features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } @@ -1077,7 +1390,7 @@ export interface EnumOptions { * Set this option to true to allow mapping different tag names to the same * value. * - * @generated from protobuf field: optional bool allow_alias = 2; + * @generated from protobuf field: optional bool allow_alias = 2 */ allowAlias?: boolean; /** @@ -1086,13 +1399,34 @@ export interface EnumOptions { * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * - * @generated from protobuf field: optional bool deprecated = 3; + * @generated from protobuf field: optional bool deprecated = 3 [default = false] */ deprecated?: boolean; + /** + * Enable the legacy handling of JSON field name conflicts. This lowercases + * and strips underscored from the fields before comparison in proto3 only. + * The new behavior takes `json_name` into account and applies to proto2 as + * well. + * TODO Remove this legacy behavior once downstream teams have + * had time to migrate. + * + * @deprecated + * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true] + */ + deprecatedLegacyJsonFieldConflicts?: boolean; + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 7 + */ + features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } @@ -1106,13 +1440,36 @@ export interface EnumValueOptions { * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * - * @generated from protobuf field: optional bool deprecated = 1; + * @generated from protobuf field: optional bool deprecated = 1 [default = false] */ deprecated?: boolean; + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2 + */ + features?: FeatureSet; + /** + * Indicate that fields annotated with this enum value should not be printed + * out when using debug formats, e.g. when the field contains sensitive + * credentials. + * + * @generated from protobuf field: optional bool debug_redact = 3 [default = false] + */ + debugRedact?: boolean; + /** + * Information about the support window of a feature value. + * + * @generated from protobuf field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4 + */ + featureSupport?: FieldOptions_FeatureSupport; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } @@ -1120,6 +1477,15 @@ export interface EnumValueOptions { * @generated from protobuf message google.protobuf.ServiceOptions */ export interface ServiceOptions { + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 34 + */ + features?: FeatureSet; // Note: Field numbers 1 through 32 are reserved for Google's internal RPC // framework. We apologize for hoarding these numbers to ourselves, but // we were already using them long before we decided to release Protocol @@ -1131,13 +1497,13 @@ export interface ServiceOptions { * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * - * @generated from protobuf field: optional bool deprecated = 33; + * @generated from protobuf field: optional bool deprecated = 33 [default = false] */ deprecated?: boolean; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } @@ -1156,17 +1522,26 @@ export interface MethodOptions { * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * - * @generated from protobuf field: optional bool deprecated = 33; + * @generated from protobuf field: optional bool deprecated = 33 [default = false] */ deprecated?: boolean; /** - * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; + * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN] */ idempotencyLevel?: MethodOptions_IdempotencyLevel; + /** + * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 35 + */ + features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpretedOption: UninterpretedOption[]; } @@ -1207,34 +1582,34 @@ export enum MethodOptions_IdempotencyLevel { */ export interface UninterpretedOption { /** - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption.NamePart name = 2 */ name: UninterpretedOption_NamePart[]; /** * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * - * @generated from protobuf field: optional string identifier_value = 3; + * @generated from protobuf field: optional string identifier_value = 3 */ identifierValue?: string; /** - * @generated from protobuf field: optional uint64 positive_int_value = 4; + * @generated from protobuf field: optional uint64 positive_int_value = 4 */ positiveIntValue?: bigint; /** - * @generated from protobuf field: optional int64 negative_int_value = 5; + * @generated from protobuf field: optional int64 negative_int_value = 5 */ negativeIntValue?: bigint; /** - * @generated from protobuf field: optional double double_value = 6; + * @generated from protobuf field: optional double double_value = 6 */ doubleValue?: number; /** - * @generated from protobuf field: optional bytes string_value = 7; + * @generated from protobuf field: optional bytes string_value = 7 */ stringValue?: Uint8Array; /** - * @generated from protobuf field: optional string aggregate_value = 8; + * @generated from protobuf field: optional string aggregate_value = 8 */ aggregateValue?: string; } @@ -1249,15 +1624,279 @@ export interface UninterpretedOption { */ export interface UninterpretedOption_NamePart { /** - * @generated from protobuf field: string name_part = 1; + * @generated from protobuf field: required string name_part = 1 */ namePart: string; /** - * @generated from protobuf field: bool is_extension = 2; + * @generated from protobuf field: required bool is_extension = 2 */ isExtension: boolean; } // =================================================================== +// Features + +/** + * TODO Enums in C++ gencode (and potentially other languages) are + * not well scoped. This means that each of the feature enums below can clash + * with each other. The short names we've chosen maximize call-site + * readability, but leave us very open to this scenario. A future feature will + * be designed and implemented to handle this, hopefully before we ever hit a + * conflict here. + * + * @generated from protobuf message google.protobuf.FeatureSet + */ +export interface FeatureSet { + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1 + */ + fieldPresence?: FeatureSet_FieldPresence; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.EnumType enum_type = 2 + */ + enumType?: FeatureSet_EnumType; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 + */ + repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 + */ + utf8Validation?: FeatureSet_Utf8Validation; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 + */ + messageEncoding?: FeatureSet_MessageEncoding; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6 + */ + jsonFormat?: FeatureSet_JsonFormat; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 + */ + enforceNamingStyle?: FeatureSet_EnforceNamingStyle; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 + */ + defaultSymbolVisibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibility; +} +/** + * @generated from protobuf message google.protobuf.FeatureSet.VisibilityFeature + */ +export interface FeatureSet_VisibilityFeature { +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility + */ +export enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility { + /** + * @generated from protobuf enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; + */ + DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, + /** + * Default pre-EDITION_2024, all UNSET visibility are export. + * + * @generated from protobuf enum value: EXPORT_ALL = 1; + */ + EXPORT_ALL = 1, + /** + * All top-level symbols default to export, nested default to local. + * + * @generated from protobuf enum value: EXPORT_TOP_LEVEL = 2; + */ + EXPORT_TOP_LEVEL = 2, + /** + * All symbols default to local. + * + * @generated from protobuf enum value: LOCAL_ALL = 3; + */ + LOCAL_ALL = 3, + /** + * All symbols local by default. Nested types cannot be exported. + * With special case caveat for message { enum {} reserved 1 to max; } + * This is the recommended setting for new protos. + * + * @generated from protobuf enum value: STRICT = 4; + */ + STRICT = 4 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence + */ +export enum FeatureSet_FieldPresence { + /** + * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0; + */ + FIELD_PRESENCE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: EXPLICIT = 1; + */ + EXPLICIT = 1, + /** + * @generated from protobuf enum value: IMPLICIT = 2; + */ + IMPLICIT = 2, + /** + * @generated from protobuf enum value: LEGACY_REQUIRED = 3; + */ + LEGACY_REQUIRED = 3 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.EnumType + */ +export enum FeatureSet_EnumType { + /** + * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0; + */ + ENUM_TYPE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: OPEN = 1; + */ + OPEN = 1, + /** + * @generated from protobuf enum value: CLOSED = 2; + */ + CLOSED = 2 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding + */ +export enum FeatureSet_RepeatedFieldEncoding { + /** + * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; + */ + REPEATED_FIELD_ENCODING_UNKNOWN = 0, + /** + * @generated from protobuf enum value: PACKED = 1; + */ + PACKED = 1, + /** + * @generated from protobuf enum value: EXPANDED = 2; + */ + EXPANDED = 2 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation + */ +export enum FeatureSet_Utf8Validation { + /** + * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0; + */ + UTF8_VALIDATION_UNKNOWN = 0, + /** + * @generated from protobuf enum value: VERIFY = 2; + */ + VERIFY = 2, + /** + * @generated from protobuf enum value: NONE = 3; + */ + NONE = 3 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding + */ +export enum FeatureSet_MessageEncoding { + /** + * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0; + */ + MESSAGE_ENCODING_UNKNOWN = 0, + /** + * @generated from protobuf enum value: LENGTH_PREFIXED = 1; + */ + LENGTH_PREFIXED = 1, + /** + * @generated from protobuf enum value: DELIMITED = 2; + */ + DELIMITED = 2 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat + */ +export enum FeatureSet_JsonFormat { + /** + * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0; + */ + JSON_FORMAT_UNKNOWN = 0, + /** + * @generated from protobuf enum value: ALLOW = 1; + */ + ALLOW = 1, + /** + * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2; + */ + LEGACY_BEST_EFFORT = 2 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.EnforceNamingStyle + */ +export enum FeatureSet_EnforceNamingStyle { + /** + * @generated from protobuf enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; + */ + ENFORCE_NAMING_STYLE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: STYLE2024 = 1; + */ + STYLE2024 = 1, + /** + * @generated from protobuf enum value: STYLE_LEGACY = 2; + */ + STYLE_LEGACY = 2 +} +/** + * A compiled specification for the defaults of a set of features. These + * messages are generated from FeatureSet extensions and can be used to seed + * feature resolution. The resolution with this object becomes a simple search + * for the closest matching edition, followed by proto merges. + * + * @generated from protobuf message google.protobuf.FeatureSetDefaults + */ +export interface FeatureSetDefaults { + /** + * @generated from protobuf field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1 + */ + defaults: FeatureSetDefaults_FeatureSetEditionDefault[]; + /** + * The minimum supported edition (inclusive) when this was constructed. + * Editions before this will not have defaults. + * + * @generated from protobuf field: optional google.protobuf.Edition minimum_edition = 4 + */ + minimumEdition?: Edition; + /** + * The maximum known edition (inclusive) when this was constructed. Editions + * after this will not have reliable defaults. + * + * @generated from protobuf field: optional google.protobuf.Edition maximum_edition = 5 + */ + maximumEdition?: Edition; +} +/** + * A map from every known edition with a unique set of defaults to its + * defaults. Not all editions may be contained here. For a given edition, + * the defaults at the closest matching edition ordered at or before it should + * be used. This field must be in strict ascending order by edition. + * + * @generated from protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + */ +export interface FeatureSetDefaults_FeatureSetEditionDefault { + /** + * @generated from protobuf field: optional google.protobuf.Edition edition = 3 + */ + edition?: Edition; + /** + * Defaults of features that can be overridden in this edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet overridable_features = 4 + */ + overridableFeatures?: FeatureSet; + /** + * Defaults of features that can't be overridden in this edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet fixed_features = 5 + */ + fixedFeatures?: FeatureSet; +} +// =================================================================== // Optional source code info /** @@ -1312,7 +1951,7 @@ export interface SourceCodeInfo { * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * - * @generated from protobuf field: repeated google.protobuf.SourceCodeInfo.Location location = 1; + * @generated from protobuf field: repeated google.protobuf.SourceCodeInfo.Location location = 1 */ location: SourceCodeInfo_Location[]; } @@ -1325,7 +1964,7 @@ export interface SourceCodeInfo_Location { * location. * * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition occurs. + * the root FileDescriptorProto to the place where the definition appears. * For example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: @@ -1345,7 +1984,7 @@ export interface SourceCodeInfo_Location { * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * - * @generated from protobuf field: repeated int32 path = 1 [packed = true]; + * @generated from protobuf field: repeated int32 path = 1 [packed = true] */ path: number[]; /** @@ -1355,7 +1994,7 @@ export interface SourceCodeInfo_Location { * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * - * @generated from protobuf field: repeated int32 span = 2 [packed = true]; + * @generated from protobuf field: repeated int32 span = 2 [packed = true] */ span: number[]; /** @@ -1407,15 +2046,15 @@ export interface SourceCodeInfo_Location { * * // ignored detached comments. * - * @generated from protobuf field: optional string leading_comments = 3; + * @generated from protobuf field: optional string leading_comments = 3 */ leadingComments?: string; /** - * @generated from protobuf field: optional string trailing_comments = 4; + * @generated from protobuf field: optional string trailing_comments = 4 */ trailingComments?: string; /** - * @generated from protobuf field: repeated string leading_detached_comments = 6; + * @generated from protobuf field: repeated string leading_detached_comments = 6 */ leadingDetachedComments: string[]; } @@ -1431,7 +2070,7 @@ export interface GeneratedCodeInfo { * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * - * @generated from protobuf field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + * @generated from protobuf field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1 */ annotation: GeneratedCodeInfo_Annotation[]; } @@ -1443,30 +2082,159 @@ export interface GeneratedCodeInfo_Annotation { * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * - * @generated from protobuf field: repeated int32 path = 1 [packed = true]; + * @generated from protobuf field: repeated int32 path = 1 [packed = true] */ path: number[]; /** * Identifies the filesystem path to the original source .proto. * - * @generated from protobuf field: optional string source_file = 2; + * @generated from protobuf field: optional string source_file = 2 */ sourceFile?: string; /** * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * - * @generated from protobuf field: optional int32 begin = 3; + * @generated from protobuf field: optional int32 begin = 3 */ begin?: number; /** * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past + * relates to the identified object. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * - * @generated from protobuf field: optional int32 end = 4; + * @generated from protobuf field: optional int32 end = 4 */ end?: number; + /** + * @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 + */ + semantic?: GeneratedCodeInfo_Annotation_Semantic; +} +/** + * Represents the identified object's effect on the element in the original + * .proto file. + * + * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic + */ +export enum GeneratedCodeInfo_Annotation_Semantic { + /** + * There is no effect or the effect is indescribable. + * + * @generated from protobuf enum value: NONE = 0; + */ + NONE = 0, + /** + * The element is set or otherwise mutated. + * + * @generated from protobuf enum value: SET = 1; + */ + SET = 1, + /** + * An alias to the element is returned. + * + * @generated from protobuf enum value: ALIAS = 2; + */ + ALIAS = 2 +} +/** + * The full set of known editions. + * + * @generated from protobuf enum google.protobuf.Edition + */ +export enum Edition { + /** + * A placeholder for an unknown edition value. + * + * @generated from protobuf enum value: EDITION_UNKNOWN = 0; + */ + EDITION_UNKNOWN = 0, + /** + * A placeholder edition for specifying default behaviors *before* a feature + * was first introduced. This is effectively an "infinite past". + * + * @generated from protobuf enum value: EDITION_LEGACY = 900; + */ + EDITION_LEGACY = 900, + /** + * Legacy syntax "editions". These pre-date editions, but behave much like + * distinct editions. These can't be used to specify the edition of proto + * files, but feature definitions must supply proto2/proto3 defaults for + * backwards compatibility. + * + * @generated from protobuf enum value: EDITION_PROTO2 = 998; + */ + EDITION_PROTO2 = 998, + /** + * @generated from protobuf enum value: EDITION_PROTO3 = 999; + */ + EDITION_PROTO3 = 999, + /** + * Editions that have been released. The specific values are arbitrary and + * should not be depended on, but they will always be time-ordered for easy + * comparison. + * + * @generated from protobuf enum value: EDITION_2023 = 1000; + */ + EDITION_2023 = 1000, + /** + * @generated from protobuf enum value: EDITION_2024 = 1001; + */ + EDITION_2024 = 1001, + /** + * Placeholder editions for testing feature resolution. These should not be + * used or relied on outside of tests. + * + * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1; + */ + EDITION_1_TEST_ONLY = 1, + /** + * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2; + */ + EDITION_2_TEST_ONLY = 2, + /** + * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997; + */ + EDITION_99997_TEST_ONLY = 99997, + /** + * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998; + */ + EDITION_99998_TEST_ONLY = 99998, + /** + * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999; + */ + EDITION_99999_TEST_ONLY = 99999, + /** + * Placeholder for specifying unbounded edition support. This should only + * ever be used by plugins that can expect to never require any changes to + * support a new edition. + * + * @generated from protobuf enum value: EDITION_MAX = 2147483647; + */ + EDITION_MAX = 2147483647 +} +/** + * Describes the 'visibility' of a symbol with respect to the proto import + * system. Symbols can only be imported when the visibility rules do not prevent + * it (ex: local symbols cannot be imported). Visibility modifiers can only set + * on `message` and `enum` as they are the only types available to be referenced + * from other files. + * + * @generated from protobuf enum google.protobuf.SymbolVisibility + */ +export enum SymbolVisibility { + /** + * @generated from protobuf enum value: VISIBILITY_UNSET = 0; + */ + VISIBILITY_UNSET = 0, + /** + * @generated from protobuf enum value: VISIBILITY_LOCAL = 1; + */ + VISIBILITY_LOCAL = 1, + /** + * @generated from protobuf enum value: VISIBILITY_EXPORT = 2; + */ + VISIBILITY_EXPORT = 2 } // @generated message type with reflection information, may provide speed optimized methods class FileDescriptorSet$Type extends MessageType { @@ -1524,13 +2292,15 @@ class FileDescriptorProto$Type extends MessageType { { no: 3, name: "dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "public_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, { no: 11, name: "weak_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, + { no: 15, name: "option_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "message_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto }, { no: 5, name: "enum_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumDescriptorProto }, { no: 6, name: "service", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ServiceDescriptorProto }, { no: 7, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldDescriptorProto }, { no: 8, name: "options", kind: "message", T: () => FileOptions }, { no: 9, name: "source_code_info", kind: "message", T: () => SourceCodeInfo }, - { no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ } + { no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 14, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } ]); } create(value?: PartialMessage): FileDescriptorProto { @@ -1538,6 +2308,7 @@ class FileDescriptorProto$Type extends MessageType { message.dependency = []; message.publicDependency = []; message.weakDependency = []; + message.optionDependency = []; message.messageType = []; message.enumType = []; message.service = []; @@ -1574,6 +2345,9 @@ class FileDescriptorProto$Type extends MessageType { else message.weakDependency.push(reader.int32()); break; + case /* repeated string option_dependency */ 15: + message.optionDependency.push(reader.string()); + break; case /* repeated google.protobuf.DescriptorProto message_type */ 4: message.messageType.push(DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -1595,6 +2369,9 @@ class FileDescriptorProto$Type extends MessageType { case /* optional string syntax */ 12: message.syntax = reader.string(); break; + case /* optional google.protobuf.Edition edition */ 14: + message.edition = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1616,12 +2393,6 @@ class FileDescriptorProto$Type extends MessageType { /* repeated string dependency = 3; */ for (let i = 0; i < message.dependency.length; i++) writer.tag(3, WireType.LengthDelimited).string(message.dependency[i]); - /* repeated int32 public_dependency = 10; */ - for (let i = 0; i < message.publicDependency.length; i++) - writer.tag(10, WireType.Varint).int32(message.publicDependency[i]); - /* repeated int32 weak_dependency = 11; */ - for (let i = 0; i < message.weakDependency.length; i++) - writer.tag(11, WireType.Varint).int32(message.weakDependency[i]); /* repeated google.protobuf.DescriptorProto message_type = 4; */ for (let i = 0; i < message.messageType.length; i++) DescriptorProto.internalBinaryWrite(message.messageType[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); @@ -1640,9 +2411,21 @@ class FileDescriptorProto$Type extends MessageType { /* optional google.protobuf.SourceCodeInfo source_code_info = 9; */ if (message.sourceCodeInfo) SourceCodeInfo.internalBinaryWrite(message.sourceCodeInfo, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); + /* repeated int32 public_dependency = 10; */ + for (let i = 0; i < message.publicDependency.length; i++) + writer.tag(10, WireType.Varint).int32(message.publicDependency[i]); + /* repeated int32 weak_dependency = 11; */ + for (let i = 0; i < message.weakDependency.length; i++) + writer.tag(11, WireType.Varint).int32(message.weakDependency[i]); /* optional string syntax = 12; */ if (message.syntax !== undefined) writer.tag(12, WireType.LengthDelimited).string(message.syntax); + /* optional google.protobuf.Edition edition = 14; */ + if (message.edition !== undefined) + writer.tag(14, WireType.Varint).int32(message.edition); + /* repeated string option_dependency = 15; */ + for (let i = 0; i < message.optionDependency.length; i++) + writer.tag(15, WireType.LengthDelimited).string(message.optionDependency[i]); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1666,7 +2449,8 @@ class DescriptorProto$Type extends MessageType { { no: 8, name: "oneof_decl", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OneofDescriptorProto }, { no: 7, name: "options", kind: "message", T: () => MessageOptions }, { no: 9, name: "reserved_range", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto_ReservedRange }, - { no: 10, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + { no: 10, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 11, name: "visibility", kind: "enum", opt: true, T: () => ["google.protobuf.SymbolVisibility", SymbolVisibility] } ]); } create(value?: PartialMessage): DescriptorProto { @@ -1718,6 +2502,9 @@ class DescriptorProto$Type extends MessageType { case /* repeated string reserved_name */ 10: message.reservedName.push(reader.string()); break; + case /* optional google.protobuf.SymbolVisibility visibility */ 11: + message.visibility = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1736,9 +2523,6 @@ class DescriptorProto$Type extends MessageType { /* repeated google.protobuf.FieldDescriptorProto field = 2; */ for (let i = 0; i < message.field.length; i++) FieldDescriptorProto.internalBinaryWrite(message.field[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.FieldDescriptorProto extension = 6; */ - for (let i = 0; i < message.extension.length; i++) - FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.DescriptorProto nested_type = 3; */ for (let i = 0; i < message.nestedType.length; i++) DescriptorProto.internalBinaryWrite(message.nestedType[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); @@ -1748,18 +2532,24 @@ class DescriptorProto$Type extends MessageType { /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ for (let i = 0; i < message.extensionRange.length; i++) DescriptorProto_ExtensionRange.internalBinaryWrite(message.extensionRange[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */ - for (let i = 0; i < message.oneofDecl.length; i++) - OneofDescriptorProto.internalBinaryWrite(message.oneofDecl[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.FieldDescriptorProto extension = 6; */ + for (let i = 0; i < message.extension.length; i++) + FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* optional google.protobuf.MessageOptions options = 7; */ if (message.options) MessageOptions.internalBinaryWrite(message.options, writer.tag(7, WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */ + for (let i = 0; i < message.oneofDecl.length; i++) + OneofDescriptorProto.internalBinaryWrite(message.oneofDecl[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */ for (let i = 0; i < message.reservedRange.length; i++) DescriptorProto_ReservedRange.internalBinaryWrite(message.reservedRange[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join(); /* repeated string reserved_name = 10; */ for (let i = 0; i < message.reservedName.length; i++) writer.tag(10, WireType.LengthDelimited).string(message.reservedName[i]); + /* optional google.protobuf.SymbolVisibility visibility = 11; */ + if (message.visibility !== undefined) + writer.tag(11, WireType.Varint).int32(message.visibility); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1887,12 +2677,16 @@ export const DescriptorProto_ReservedRange = new DescriptorProto_ReservedRange$T class ExtensionRangeOptions$Type extends MessageType { constructor() { super("google.protobuf.ExtensionRangeOptions", [ - { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } + { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }, + { no: 2, name: "declaration", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExtensionRangeOptions_Declaration }, + { no: 50, name: "features", kind: "message", T: () => FeatureSet }, + { no: 3, name: "verification", kind: "enum", opt: true, T: () => ["google.protobuf.ExtensionRangeOptions.VerificationState", ExtensionRangeOptions_VerificationState] } ]); } create(value?: PartialMessage): ExtensionRangeOptions { const message = globalThis.Object.create((this.messagePrototype!)); message.uninterpretedOption = []; + message.declaration = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -1905,6 +2699,15 @@ class ExtensionRangeOptions$Type extends MessageType { case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; + case /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration */ 2: + message.declaration.push(ExtensionRangeOptions_Declaration.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.FeatureSet features */ 50: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED] */ 3: + message.verification = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1917,6 +2720,15 @@ class ExtensionRangeOptions$Type extends MessageType { return message; } internalBinaryWrite(message: ExtensionRangeOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */ + for (let i = 0; i < message.declaration.length; i++) + ExtensionRangeOptions_Declaration.internalBinaryWrite(message.declaration[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; */ + if (message.verification !== undefined) + writer.tag(3, WireType.Varint).int32(message.verification); + /* optional google.protobuf.FeatureSet features = 50; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -1931,6 +2743,80 @@ class ExtensionRangeOptions$Type extends MessageType { */ export const ExtensionRangeOptions = new ExtensionRangeOptions$Type(); // @generated message type with reflection information, may provide speed optimized methods +class ExtensionRangeOptions_Declaration$Type extends MessageType { + constructor() { + super("google.protobuf.ExtensionRangeOptions.Declaration", [ + { no: 1, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "full_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "reserved", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 6, name: "repeated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value?: PartialMessage): ExtensionRangeOptions_Declaration { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions_Declaration): ExtensionRangeOptions_Declaration { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int32 number */ 1: + message.number = reader.int32(); + break; + case /* optional string full_name */ 2: + message.fullName = reader.string(); + break; + case /* optional string type */ 3: + message.type = reader.string(); + break; + case /* optional bool reserved */ 5: + message.reserved = reader.bool(); + break; + case /* optional bool repeated */ 6: + message.repeated = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ExtensionRangeOptions_Declaration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* optional int32 number = 1; */ + if (message.number !== undefined) + writer.tag(1, WireType.Varint).int32(message.number); + /* optional string full_name = 2; */ + if (message.fullName !== undefined) + writer.tag(2, WireType.LengthDelimited).string(message.fullName); + /* optional string type = 3; */ + if (message.type !== undefined) + writer.tag(3, WireType.LengthDelimited).string(message.type); + /* optional bool reserved = 5; */ + if (message.reserved !== undefined) + writer.tag(5, WireType.Varint).bool(message.reserved); + /* optional bool repeated = 6; */ + if (message.repeated !== undefined) + writer.tag(6, WireType.Varint).bool(message.repeated); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration + */ +export const ExtensionRangeOptions_Declaration = new ExtensionRangeOptions_Declaration$Type(); +// @generated message type with reflection information, may provide speed optimized methods class FieldDescriptorProto$Type extends MessageType { constructor() { super("google.protobuf.FieldDescriptorProto", [ @@ -2006,6 +2892,9 @@ class FieldDescriptorProto$Type extends MessageType { /* optional string name = 1; */ if (message.name !== undefined) writer.tag(1, WireType.LengthDelimited).string(message.name); + /* optional string extendee = 2; */ + if (message.extendee !== undefined) + writer.tag(2, WireType.LengthDelimited).string(message.extendee); /* optional int32 number = 3; */ if (message.number !== undefined) writer.tag(3, WireType.Varint).int32(message.number); @@ -2018,21 +2907,18 @@ class FieldDescriptorProto$Type extends MessageType { /* optional string type_name = 6; */ if (message.typeName !== undefined) writer.tag(6, WireType.LengthDelimited).string(message.typeName); - /* optional string extendee = 2; */ - if (message.extendee !== undefined) - writer.tag(2, WireType.LengthDelimited).string(message.extendee); /* optional string default_value = 7; */ if (message.defaultValue !== undefined) writer.tag(7, WireType.LengthDelimited).string(message.defaultValue); + /* optional google.protobuf.FieldOptions options = 8; */ + if (message.options) + FieldOptions.internalBinaryWrite(message.options, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); /* optional int32 oneof_index = 9; */ if (message.oneofIndex !== undefined) writer.tag(9, WireType.Varint).int32(message.oneofIndex); /* optional string json_name = 10; */ - if (message.jsonName !== undefined) - writer.tag(10, WireType.LengthDelimited).string(message.jsonName); - /* optional google.protobuf.FieldOptions options = 8; */ - if (message.options) - FieldOptions.internalBinaryWrite(message.options, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); + if (message.jsonName !== undefined) + writer.tag(10, WireType.LengthDelimited).string(message.jsonName); /* optional bool proto3_optional = 17; */ if (message.proto3Optional !== undefined) writer.tag(17, WireType.Varint).bool(message.proto3Optional); @@ -2107,7 +2993,8 @@ class EnumDescriptorProto$Type extends MessageType { { no: 2, name: "value", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumValueDescriptorProto }, { no: 3, name: "options", kind: "message", T: () => EnumOptions }, { no: 4, name: "reserved_range", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumDescriptorProto_EnumReservedRange }, - { no: 5, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + { no: 5, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "visibility", kind: "enum", opt: true, T: () => ["google.protobuf.SymbolVisibility", SymbolVisibility] } ]); } create(value?: PartialMessage): EnumDescriptorProto { @@ -2139,6 +3026,9 @@ class EnumDescriptorProto$Type extends MessageType { case /* repeated string reserved_name */ 5: message.reservedName.push(reader.string()); break; + case /* optional google.protobuf.SymbolVisibility visibility */ 6: + message.visibility = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2166,6 +3056,9 @@ class EnumDescriptorProto$Type extends MessageType { /* repeated string reserved_name = 5; */ for (let i = 0; i < message.reservedName.length; i++) writer.tag(5, WireType.LengthDelimited).string(message.reservedName[i]); + /* optional google.protobuf.SymbolVisibility visibility = 6; */ + if (message.visibility !== undefined) + writer.tag(6, WireType.Varint).int32(message.visibility); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2385,10 +3278,10 @@ class MethodDescriptorProto$Type extends MessageType { case /* optional google.protobuf.MethodOptions options */ 4: message.options = MethodOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); break; - case /* optional bool client_streaming */ 5: + case /* optional bool client_streaming = 5 [default = false] */ 5: message.clientStreaming = reader.bool(); break; - case /* optional bool server_streaming */ 6: + case /* optional bool server_streaming = 6 [default = false] */ 6: message.serverStreaming = reader.bool(); break; default: @@ -2415,10 +3308,10 @@ class MethodDescriptorProto$Type extends MessageType { /* optional google.protobuf.MethodOptions options = 4; */ if (message.options) MethodOptions.internalBinaryWrite(message.options, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* optional bool client_streaming = 5; */ + /* optional bool client_streaming = 5 [default = false]; */ if (message.clientStreaming !== undefined) writer.tag(5, WireType.Varint).bool(message.clientStreaming); - /* optional bool server_streaming = 6; */ + /* optional bool server_streaming = 6 [default = false]; */ if (message.serverStreaming !== undefined) writer.tag(6, WireType.Varint).bool(message.serverStreaming); let u = options.writeUnknownFields; @@ -2445,7 +3338,6 @@ class FileOptions$Type extends MessageType { { no: 16, name: "cc_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 17, name: "java_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 18, name: "py_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 42, name: "php_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 23, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 31, name: "cc_enable_arenas", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 36, name: "objc_class_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, @@ -2455,6 +3347,7 @@ class FileOptions$Type extends MessageType { { no: 41, name: "php_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 44, name: "php_metadata_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 45, name: "ruby_package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 50, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2476,37 +3369,34 @@ class FileOptions$Type extends MessageType { case /* optional string java_outer_classname */ 8: message.javaOuterClassname = reader.string(); break; - case /* optional bool java_multiple_files */ 10: + case /* optional bool java_multiple_files = 10 [default = false] */ 10: message.javaMultipleFiles = reader.bool(); break; - case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true];*/ 20: + case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true] */ 20: message.javaGenerateEqualsAndHash = reader.bool(); break; - case /* optional bool java_string_check_utf8 */ 27: + case /* optional bool java_string_check_utf8 = 27 [default = false] */ 27: message.javaStringCheckUtf8 = reader.bool(); break; - case /* optional google.protobuf.FileOptions.OptimizeMode optimize_for */ 9: + case /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED] */ 9: message.optimizeFor = reader.int32(); break; case /* optional string go_package */ 11: message.goPackage = reader.string(); break; - case /* optional bool cc_generic_services */ 16: + case /* optional bool cc_generic_services = 16 [default = false] */ 16: message.ccGenericServices = reader.bool(); break; - case /* optional bool java_generic_services */ 17: + case /* optional bool java_generic_services = 17 [default = false] */ 17: message.javaGenericServices = reader.bool(); break; - case /* optional bool py_generic_services */ 18: + case /* optional bool py_generic_services = 18 [default = false] */ 18: message.pyGenericServices = reader.bool(); break; - case /* optional bool php_generic_services */ 42: - message.phpGenericServices = reader.bool(); - break; - case /* optional bool deprecated */ 23: + case /* optional bool deprecated = 23 [default = false] */ 23: message.deprecated = reader.bool(); break; - case /* optional bool cc_enable_arenas */ 31: + case /* optional bool cc_enable_arenas = 31 [default = true] */ 31: message.ccEnableArenas = reader.bool(); break; case /* optional string objc_class_prefix */ 36: @@ -2530,6 +3420,9 @@ class FileOptions$Type extends MessageType { case /* optional string ruby_package */ 45: message.rubyPackage = reader.string(); break; + case /* optional google.protobuf.FeatureSet features */ 50: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2551,37 +3444,34 @@ class FileOptions$Type extends MessageType { /* optional string java_outer_classname = 8; */ if (message.javaOuterClassname !== undefined) writer.tag(8, WireType.LengthDelimited).string(message.javaOuterClassname); - /* optional bool java_multiple_files = 10; */ - if (message.javaMultipleFiles !== undefined) - writer.tag(10, WireType.Varint).bool(message.javaMultipleFiles); - /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */ - if (message.javaGenerateEqualsAndHash !== undefined) - writer.tag(20, WireType.Varint).bool(message.javaGenerateEqualsAndHash); - /* optional bool java_string_check_utf8 = 27; */ - if (message.javaStringCheckUtf8 !== undefined) - writer.tag(27, WireType.Varint).bool(message.javaStringCheckUtf8); - /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; */ + /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; */ if (message.optimizeFor !== undefined) writer.tag(9, WireType.Varint).int32(message.optimizeFor); + /* optional bool java_multiple_files = 10 [default = false]; */ + if (message.javaMultipleFiles !== undefined) + writer.tag(10, WireType.Varint).bool(message.javaMultipleFiles); /* optional string go_package = 11; */ if (message.goPackage !== undefined) writer.tag(11, WireType.LengthDelimited).string(message.goPackage); - /* optional bool cc_generic_services = 16; */ + /* optional bool cc_generic_services = 16 [default = false]; */ if (message.ccGenericServices !== undefined) writer.tag(16, WireType.Varint).bool(message.ccGenericServices); - /* optional bool java_generic_services = 17; */ + /* optional bool java_generic_services = 17 [default = false]; */ if (message.javaGenericServices !== undefined) writer.tag(17, WireType.Varint).bool(message.javaGenericServices); - /* optional bool py_generic_services = 18; */ + /* optional bool py_generic_services = 18 [default = false]; */ if (message.pyGenericServices !== undefined) writer.tag(18, WireType.Varint).bool(message.pyGenericServices); - /* optional bool php_generic_services = 42; */ - if (message.phpGenericServices !== undefined) - writer.tag(42, WireType.Varint).bool(message.phpGenericServices); - /* optional bool deprecated = 23; */ + /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */ + if (message.javaGenerateEqualsAndHash !== undefined) + writer.tag(20, WireType.Varint).bool(message.javaGenerateEqualsAndHash); + /* optional bool deprecated = 23 [default = false]; */ if (message.deprecated !== undefined) writer.tag(23, WireType.Varint).bool(message.deprecated); - /* optional bool cc_enable_arenas = 31; */ + /* optional bool java_string_check_utf8 = 27 [default = false]; */ + if (message.javaStringCheckUtf8 !== undefined) + writer.tag(27, WireType.Varint).bool(message.javaStringCheckUtf8); + /* optional bool cc_enable_arenas = 31 [default = true]; */ if (message.ccEnableArenas !== undefined) writer.tag(31, WireType.Varint).bool(message.ccEnableArenas); /* optional string objc_class_prefix = 36; */ @@ -2605,6 +3495,9 @@ class FileOptions$Type extends MessageType { /* optional string ruby_package = 45; */ if (message.rubyPackage !== undefined) writer.tag(45, WireType.LengthDelimited).string(message.rubyPackage); + /* optional google.protobuf.FeatureSet features = 50; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2626,6 +3519,8 @@ class MessageOptions$Type extends MessageType { { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 7, name: "map_entry", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 12, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2641,18 +3536,24 @@ class MessageOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool message_set_wire_format */ 1: + case /* optional bool message_set_wire_format = 1 [default = false] */ 1: message.messageSetWireFormat = reader.bool(); break; - case /* optional bool no_standard_descriptor_accessor */ 2: + case /* optional bool no_standard_descriptor_accessor = 2 [default = false] */ 2: message.noStandardDescriptorAccessor = reader.bool(); break; - case /* optional bool deprecated */ 3: + case /* optional bool deprecated = 3 [default = false] */ 3: message.deprecated = reader.bool(); break; case /* optional bool map_entry */ 7: message.mapEntry = reader.bool(); break; + case /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true] */ 11: + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + case /* optional google.protobuf.FeatureSet features */ 12: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2668,18 +3569,24 @@ class MessageOptions$Type extends MessageType { return message; } internalBinaryWrite(message: MessageOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool message_set_wire_format = 1; */ + /* optional bool message_set_wire_format = 1 [default = false]; */ if (message.messageSetWireFormat !== undefined) writer.tag(1, WireType.Varint).bool(message.messageSetWireFormat); - /* optional bool no_standard_descriptor_accessor = 2; */ + /* optional bool no_standard_descriptor_accessor = 2 [default = false]; */ if (message.noStandardDescriptorAccessor !== undefined) writer.tag(2, WireType.Varint).bool(message.noStandardDescriptorAccessor); - /* optional bool deprecated = 3; */ + /* optional bool deprecated = 3 [default = false]; */ if (message.deprecated !== undefined) writer.tag(3, WireType.Varint).bool(message.deprecated); /* optional bool map_entry = 7; */ if (message.mapEntry !== undefined) writer.tag(7, WireType.Varint).bool(message.mapEntry); + /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; */ + if (message.deprecatedLegacyJsonFieldConflicts !== undefined) + writer.tag(11, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts); + /* optional google.protobuf.FeatureSet features = 12; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(12, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2704,11 +3611,19 @@ class FieldOptions$Type extends MessageType { { no: 15, name: "unverified_lazy", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 10, name: "weak", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 16, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 17, name: "retention", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.OptionRetention", FieldOptions_OptionRetention] }, + { no: 19, name: "targets", kind: "enum", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ["google.protobuf.FieldOptions.OptionTargetType", FieldOptions_OptionTargetType] }, + { no: 20, name: "edition_defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldOptions_EditionDefault }, + { no: 21, name: "features", kind: "message", T: () => FeatureSet }, + { no: 22, name: "feature_support", kind: "message", T: () => FieldOptions_FeatureSupport }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } create(value?: PartialMessage): FieldOptions { const message = globalThis.Object.create((this.messagePrototype!)); + message.targets = []; + message.editionDefaults = []; message.uninterpretedOption = []; if (value !== undefined) reflectionMergePartial(this, message, value); @@ -2719,27 +3634,49 @@ class FieldOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional google.protobuf.FieldOptions.CType ctype */ 1: + case /* optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] */ 1: message.ctype = reader.int32(); break; case /* optional bool packed */ 2: message.packed = reader.bool(); break; - case /* optional google.protobuf.FieldOptions.JSType jstype */ 6: + case /* optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL] */ 6: message.jstype = reader.int32(); break; - case /* optional bool lazy */ 5: + case /* optional bool lazy = 5 [default = false] */ 5: message.lazy = reader.bool(); break; - case /* optional bool unverified_lazy */ 15: + case /* optional bool unverified_lazy = 15 [default = false] */ 15: message.unverifiedLazy = reader.bool(); break; - case /* optional bool deprecated */ 3: + case /* optional bool deprecated = 3 [default = false] */ 3: message.deprecated = reader.bool(); break; - case /* optional bool weak */ 10: + case /* optional bool weak = 10 [default = false, deprecated = true] */ 10: message.weak = reader.bool(); break; + case /* optional bool debug_redact = 16 [default = false] */ 16: + message.debugRedact = reader.bool(); + break; + case /* optional google.protobuf.FieldOptions.OptionRetention retention */ 17: + message.retention = reader.int32(); + break; + case /* repeated google.protobuf.FieldOptions.OptionTargetType targets */ 19: + if (wireType === WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.targets.push(reader.int32()); + else + message.targets.push(reader.int32()); + break; + case /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults */ 20: + message.editionDefaults.push(FieldOptions_EditionDefault.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.FeatureSet features */ 21: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional google.protobuf.FieldOptions.FeatureSupport feature_support */ 22: + message.featureSupport = FieldOptions_FeatureSupport.internalBinaryRead(reader, reader.uint32(), options, message.featureSupport); + break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2755,27 +3692,45 @@ class FieldOptions$Type extends MessageType { return message; } internalBinaryWrite(message: FieldOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional google.protobuf.FieldOptions.CType ctype = 1; */ + /* optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; */ if (message.ctype !== undefined) writer.tag(1, WireType.Varint).int32(message.ctype); /* optional bool packed = 2; */ if (message.packed !== undefined) writer.tag(2, WireType.Varint).bool(message.packed); - /* optional google.protobuf.FieldOptions.JSType jstype = 6; */ - if (message.jstype !== undefined) - writer.tag(6, WireType.Varint).int32(message.jstype); - /* optional bool lazy = 5; */ - if (message.lazy !== undefined) - writer.tag(5, WireType.Varint).bool(message.lazy); - /* optional bool unverified_lazy = 15; */ - if (message.unverifiedLazy !== undefined) - writer.tag(15, WireType.Varint).bool(message.unverifiedLazy); - /* optional bool deprecated = 3; */ + /* optional bool deprecated = 3 [default = false]; */ if (message.deprecated !== undefined) writer.tag(3, WireType.Varint).bool(message.deprecated); - /* optional bool weak = 10; */ + /* optional bool lazy = 5 [default = false]; */ + if (message.lazy !== undefined) + writer.tag(5, WireType.Varint).bool(message.lazy); + /* optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; */ + if (message.jstype !== undefined) + writer.tag(6, WireType.Varint).int32(message.jstype); + /* optional bool weak = 10 [default = false, deprecated = true]; */ if (message.weak !== undefined) writer.tag(10, WireType.Varint).bool(message.weak); + /* optional bool unverified_lazy = 15 [default = false]; */ + if (message.unverifiedLazy !== undefined) + writer.tag(15, WireType.Varint).bool(message.unverifiedLazy); + /* optional bool debug_redact = 16 [default = false]; */ + if (message.debugRedact !== undefined) + writer.tag(16, WireType.Varint).bool(message.debugRedact); + /* optional google.protobuf.FieldOptions.OptionRetention retention = 17; */ + if (message.retention !== undefined) + writer.tag(17, WireType.Varint).int32(message.retention); + /* repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */ + for (let i = 0; i < message.targets.length; i++) + writer.tag(19, WireType.Varint).int32(message.targets[i]); + /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */ + for (let i = 0; i < message.editionDefaults.length; i++) + FieldOptions_EditionDefault.internalBinaryWrite(message.editionDefaults[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FeatureSet features = 21; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(21, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; */ + if (message.featureSupport) + FieldOptions_FeatureSupport.internalBinaryWrite(message.featureSupport, writer.tag(22, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2790,9 +3745,130 @@ class FieldOptions$Type extends MessageType { */ export const FieldOptions = new FieldOptions$Type(); // @generated message type with reflection information, may provide speed optimized methods +class FieldOptions_EditionDefault$Type extends MessageType { + constructor() { + super("google.protobuf.FieldOptions.EditionDefault", [ + { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 2, name: "value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): FieldOptions_EditionDefault { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_EditionDefault): FieldOptions_EditionDefault { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Edition edition */ 3: + message.edition = reader.int32(); + break; + case /* optional string value */ 2: + message.value = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FieldOptions_EditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* optional string value = 2; */ + if (message.value !== undefined) + writer.tag(2, WireType.LengthDelimited).string(message.value); + /* optional google.protobuf.Edition edition = 3; */ + if (message.edition !== undefined) + writer.tag(3, WireType.Varint).int32(message.edition); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault + */ +export const FieldOptions_EditionDefault = new FieldOptions_EditionDefault$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldOptions_FeatureSupport$Type extends MessageType { + constructor() { + super("google.protobuf.FieldOptions.FeatureSupport", [ + { no: 1, name: "edition_introduced", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 2, name: "edition_deprecated", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 3, name: "deprecation_warning", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "edition_removed", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } + ]); + } + create(value?: PartialMessage): FieldOptions_FeatureSupport { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_FeatureSupport): FieldOptions_FeatureSupport { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Edition edition_introduced */ 1: + message.editionIntroduced = reader.int32(); + break; + case /* optional google.protobuf.Edition edition_deprecated */ 2: + message.editionDeprecated = reader.int32(); + break; + case /* optional string deprecation_warning */ 3: + message.deprecationWarning = reader.string(); + break; + case /* optional google.protobuf.Edition edition_removed */ 4: + message.editionRemoved = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FieldOptions_FeatureSupport, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* optional google.protobuf.Edition edition_introduced = 1; */ + if (message.editionIntroduced !== undefined) + writer.tag(1, WireType.Varint).int32(message.editionIntroduced); + /* optional google.protobuf.Edition edition_deprecated = 2; */ + if (message.editionDeprecated !== undefined) + writer.tag(2, WireType.Varint).int32(message.editionDeprecated); + /* optional string deprecation_warning = 3; */ + if (message.deprecationWarning !== undefined) + writer.tag(3, WireType.LengthDelimited).string(message.deprecationWarning); + /* optional google.protobuf.Edition edition_removed = 4; */ + if (message.editionRemoved !== undefined) + writer.tag(4, WireType.Varint).int32(message.editionRemoved); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions.FeatureSupport + */ +export const FieldOptions_FeatureSupport = new FieldOptions_FeatureSupport$Type(); +// @generated message type with reflection information, may provide speed optimized methods class OneofOptions$Type extends MessageType { constructor() { super("google.protobuf.OneofOptions", [ + { no: 1, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2808,6 +3884,9 @@ class OneofOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { + case /* optional google.protobuf.FeatureSet features */ 1: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2823,6 +3902,9 @@ class OneofOptions$Type extends MessageType { return message; } internalBinaryWrite(message: OneofOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* optional google.protobuf.FeatureSet features = 1; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2842,6 +3924,8 @@ class EnumOptions$Type extends MessageType { super("google.protobuf.EnumOptions", [ { no: 2, name: "allow_alias", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 7, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2860,9 +3944,15 @@ class EnumOptions$Type extends MessageType { case /* optional bool allow_alias */ 2: message.allowAlias = reader.bool(); break; - case /* optional bool deprecated */ 3: + case /* optional bool deprecated = 3 [default = false] */ 3: message.deprecated = reader.bool(); break; + case /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true] */ 6: + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + case /* optional google.protobuf.FeatureSet features */ 7: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2881,9 +3971,15 @@ class EnumOptions$Type extends MessageType { /* optional bool allow_alias = 2; */ if (message.allowAlias !== undefined) writer.tag(2, WireType.Varint).bool(message.allowAlias); - /* optional bool deprecated = 3; */ + /* optional bool deprecated = 3 [default = false]; */ if (message.deprecated !== undefined) writer.tag(3, WireType.Varint).bool(message.deprecated); + /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; */ + if (message.deprecatedLegacyJsonFieldConflicts !== undefined) + writer.tag(6, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts); + /* optional google.protobuf.FeatureSet features = 7; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(7, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2902,6 +3998,9 @@ class EnumValueOptions$Type extends MessageType { constructor() { super("google.protobuf.EnumValueOptions", [ { no: 1, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "features", kind: "message", T: () => FeatureSet }, + { no: 3, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 4, name: "feature_support", kind: "message", T: () => FieldOptions_FeatureSupport }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2917,9 +4016,18 @@ class EnumValueOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool deprecated */ 1: + case /* optional bool deprecated = 1 [default = false] */ 1: message.deprecated = reader.bool(); break; + case /* optional google.protobuf.FeatureSet features */ 2: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional bool debug_redact = 3 [default = false] */ 3: + message.debugRedact = reader.bool(); + break; + case /* optional google.protobuf.FieldOptions.FeatureSupport feature_support */ 4: + message.featureSupport = FieldOptions_FeatureSupport.internalBinaryRead(reader, reader.uint32(), options, message.featureSupport); + break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2935,9 +4043,18 @@ class EnumValueOptions$Type extends MessageType { return message; } internalBinaryWrite(message: EnumValueOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool deprecated = 1; */ + /* optional bool deprecated = 1 [default = false]; */ if (message.deprecated !== undefined) writer.tag(1, WireType.Varint).bool(message.deprecated); + /* optional google.protobuf.FeatureSet features = 2; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* optional bool debug_redact = 3 [default = false]; */ + if (message.debugRedact !== undefined) + writer.tag(3, WireType.Varint).bool(message.debugRedact); + /* optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; */ + if (message.featureSupport) + FieldOptions_FeatureSupport.internalBinaryWrite(message.featureSupport, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2955,6 +4072,7 @@ export const EnumValueOptions = new EnumValueOptions$Type(); class ServiceOptions$Type extends MessageType { constructor() { super("google.protobuf.ServiceOptions", [ + { no: 34, name: "features", kind: "message", T: () => FeatureSet }, { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); @@ -2971,7 +4089,10 @@ class ServiceOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool deprecated */ 33: + case /* optional google.protobuf.FeatureSet features */ 34: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional bool deprecated = 33 [default = false] */ 33: message.deprecated = reader.bool(); break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: @@ -2989,9 +4110,12 @@ class ServiceOptions$Type extends MessageType { return message; } internalBinaryWrite(message: ServiceOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool deprecated = 33; */ + /* optional bool deprecated = 33 [default = false]; */ if (message.deprecated !== undefined) writer.tag(33, WireType.Varint).bool(message.deprecated); + /* optional google.protobuf.FeatureSet features = 34; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(34, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -3011,6 +4135,7 @@ class MethodOptions$Type extends MessageType { super("google.protobuf.MethodOptions", [ { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 34, name: "idempotency_level", kind: "enum", opt: true, T: () => ["google.protobuf.MethodOptions.IdempotencyLevel", MethodOptions_IdempotencyLevel] }, + { no: 35, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -3026,12 +4151,15 @@ class MethodOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool deprecated */ 33: + case /* optional bool deprecated = 33 [default = false] */ 33: message.deprecated = reader.bool(); break; - case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level */ 34: + case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN] */ 34: message.idempotencyLevel = reader.int32(); break; + case /* optional google.protobuf.FeatureSet features */ 35: + message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -3047,12 +4175,15 @@ class MethodOptions$Type extends MessageType { return message; } internalBinaryWrite(message: MethodOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool deprecated = 33; */ + /* optional bool deprecated = 33 [default = false]; */ if (message.deprecated !== undefined) writer.tag(33, WireType.Varint).bool(message.deprecated); - /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */ + /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; */ if (message.idempotencyLevel !== undefined) writer.tag(34, WireType.Varint).int32(message.idempotencyLevel); + /* optional google.protobuf.FeatureSet features = 35; */ + if (message.features) + FeatureSet.internalBinaryWrite(message.features, writer.tag(35, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -3176,10 +4307,10 @@ class UninterpretedOption_NamePart$Type extends MessageType { + constructor() { + super("google.protobuf.FeatureSet", [ + { no: 1, name: "field_presence", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.FieldPresence", FeatureSet_FieldPresence] }, + { no: 2, name: "enum_type", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.EnumType", FeatureSet_EnumType] }, + { no: 3, name: "repeated_field_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.RepeatedFieldEncoding", FeatureSet_RepeatedFieldEncoding] }, + { no: 4, name: "utf8_validation", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.Utf8Validation", FeatureSet_Utf8Validation] }, + { no: 5, name: "message_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.MessageEncoding", FeatureSet_MessageEncoding] }, + { no: 6, name: "json_format", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] }, + { no: 7, name: "enforce_naming_style", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.EnforceNamingStyle", FeatureSet_EnforceNamingStyle] }, + { no: 8, name: "default_symbol_visibility", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility", FeatureSet_VisibilityFeature_DefaultSymbolVisibility] } + ]); + } + create(value?: PartialMessage): FeatureSet { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet): FeatureSet { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.FeatureSet.FieldPresence field_presence */ 1: + message.fieldPresence = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.EnumType enum_type */ 2: + message.enumType = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding */ 3: + message.repeatedFieldEncoding = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation */ 4: + message.utf8Validation = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding */ 5: + message.messageEncoding = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.JsonFormat json_format */ 6: + message.jsonFormat = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style */ 7: + message.enforceNamingStyle = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility */ 8: + message.defaultSymbolVisibility = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FeatureSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */ + if (message.fieldPresence !== undefined) + writer.tag(1, WireType.Varint).int32(message.fieldPresence); + /* optional google.protobuf.FeatureSet.EnumType enum_type = 2; */ + if (message.enumType !== undefined) + writer.tag(2, WireType.Varint).int32(message.enumType); + /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */ + if (message.repeatedFieldEncoding !== undefined) + writer.tag(3, WireType.Varint).int32(message.repeatedFieldEncoding); + /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */ + if (message.utf8Validation !== undefined) + writer.tag(4, WireType.Varint).int32(message.utf8Validation); + /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */ + if (message.messageEncoding !== undefined) + writer.tag(5, WireType.Varint).int32(message.messageEncoding); + /* optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ + if (message.jsonFormat !== undefined) + writer.tag(6, WireType.Varint).int32(message.jsonFormat); + /* optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; */ + if (message.enforceNamingStyle !== undefined) + writer.tag(7, WireType.Varint).int32(message.enforceNamingStyle); + /* optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; */ + if (message.defaultSymbolVisibility !== undefined) + writer.tag(8, WireType.Varint).int32(message.defaultSymbolVisibility); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSet + */ +export const FeatureSet = new FeatureSet$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FeatureSet_VisibilityFeature$Type extends MessageType { + constructor() { + super("google.protobuf.FeatureSet.VisibilityFeature", []); + } + create(value?: PartialMessage): FeatureSet_VisibilityFeature { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet_VisibilityFeature): FeatureSet_VisibilityFeature { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FeatureSet_VisibilityFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSet.VisibilityFeature + */ +export const FeatureSet_VisibilityFeature = new FeatureSet_VisibilityFeature$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FeatureSetDefaults$Type extends MessageType { + constructor() { + super("google.protobuf.FeatureSetDefaults", [ + { no: 1, name: "defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FeatureSetDefaults_FeatureSetEditionDefault }, + { no: 4, name: "minimum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 5, name: "maximum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } + ]); + } + create(value?: PartialMessage): FeatureSetDefaults { + const message = globalThis.Object.create((this.messagePrototype!)); + message.defaults = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults): FeatureSetDefaults { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults */ 1: + message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.Edition minimum_edition */ 4: + message.minimumEdition = reader.int32(); + break; + case /* optional google.protobuf.Edition maximum_edition */ 5: + message.maximumEdition = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FeatureSetDefaults, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */ + for (let i = 0; i < message.defaults.length; i++) + FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryWrite(message.defaults[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.Edition minimum_edition = 4; */ + if (message.minimumEdition !== undefined) + writer.tag(4, WireType.Varint).int32(message.minimumEdition); + /* optional google.protobuf.Edition maximum_edition = 5; */ + if (message.maximumEdition !== undefined) + writer.tag(5, WireType.Varint).int32(message.maximumEdition); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults + */ +export const FeatureSetDefaults = new FeatureSetDefaults$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FeatureSetDefaults_FeatureSetEditionDefault$Type extends MessageType { + constructor() { + super("google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault", [ + { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 4, name: "overridable_features", kind: "message", T: () => FeatureSet }, + { no: 5, name: "fixed_features", kind: "message", T: () => FeatureSet } + ]); + } + create(value?: PartialMessage): FeatureSetDefaults_FeatureSetEditionDefault { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults_FeatureSetEditionDefault): FeatureSetDefaults_FeatureSetEditionDefault { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Edition edition */ 3: + message.edition = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet overridable_features */ 4: + message.overridableFeatures = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.overridableFeatures); + break; + case /* optional google.protobuf.FeatureSet fixed_features */ 5: + message.fixedFeatures = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.fixedFeatures); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* optional google.protobuf.Edition edition = 3; */ + if (message.edition !== undefined) + writer.tag(3, WireType.Varint).int32(message.edition); + /* optional google.protobuf.FeatureSet overridable_features = 4; */ + if (message.overridableFeatures) + FeatureSet.internalBinaryWrite(message.overridableFeatures, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FeatureSet fixed_features = 5; */ + if (message.fixedFeatures) + FeatureSet.internalBinaryWrite(message.fixedFeatures, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + */ +export const FeatureSetDefaults_FeatureSetEditionDefault = new FeatureSetDefaults_FeatureSetEditionDefault$Type(); +// @generated message type with reflection information, may provide speed optimized methods class SourceCodeInfo$Type extends MessageType { constructor() { super("google.protobuf.SourceCodeInfo", [ @@ -3282,14 +4667,14 @@ class SourceCodeInfo_Location$Type extends MessageType while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* repeated int32 path = 1 [packed = true];*/ 1: + case /* repeated int32 path = 1 [packed = true] */ 1: if (wireType === WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.path.push(reader.int32()); else message.path.push(reader.int32()); break; - case /* repeated int32 span = 2 [packed = true];*/ 2: + case /* repeated int32 span = 2 [packed = true] */ 2: if (wireType === WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.span.push(reader.int32()); @@ -3404,7 +4789,8 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType ["google.protobuf.GeneratedCodeInfo.Annotation.Semantic", GeneratedCodeInfo_Annotation_Semantic] } ]); } create(value?: PartialMessage): GeneratedCodeInfo_Annotation { @@ -3419,7 +4805,7 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; diff --git a/src/pomerium-console/google/protobuf/struct.ts b/src/pomerium-console/google/protobuf/struct.ts index eca0fa5..1574397 100644 --- a/src/pomerium-console/google/protobuf/struct.ts +++ b/src/pomerium-console/google/protobuf/struct.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "google/protobuf/struct.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -63,7 +63,7 @@ export interface Struct { /** * Unordered map of dynamically typed values. * - * @generated from protobuf field: map fields = 1; + * @generated from protobuf field: map fields = 1 */ fields: { [key: string]: Value; @@ -81,6 +81,8 @@ export interface Struct { */ export interface Value { /** + * The kind of value. + * * @generated from protobuf oneof: kind */ kind: { @@ -88,7 +90,7 @@ export interface Value { /** * Represents a null value. * - * @generated from protobuf field: google.protobuf.NullValue null_value = 1; + * @generated from protobuf field: google.protobuf.NullValue null_value = 1 */ nullValue: NullValue; } | { @@ -96,7 +98,7 @@ export interface Value { /** * Represents a double value. * - * @generated from protobuf field: double number_value = 2; + * @generated from protobuf field: double number_value = 2 */ numberValue: number; } | { @@ -104,7 +106,7 @@ export interface Value { /** * Represents a string value. * - * @generated from protobuf field: string string_value = 3; + * @generated from protobuf field: string string_value = 3 */ stringValue: string; } | { @@ -112,7 +114,7 @@ export interface Value { /** * Represents a boolean value. * - * @generated from protobuf field: bool bool_value = 4; + * @generated from protobuf field: bool bool_value = 4 */ boolValue: boolean; } | { @@ -120,7 +122,7 @@ export interface Value { /** * Represents a structured value. * - * @generated from protobuf field: google.protobuf.Struct struct_value = 5; + * @generated from protobuf field: google.protobuf.Struct struct_value = 5 */ structValue: Struct; } | { @@ -128,7 +130,7 @@ export interface Value { /** * Represents a repeated `Value`. * - * @generated from protobuf field: google.protobuf.ListValue list_value = 6; + * @generated from protobuf field: google.protobuf.ListValue list_value = 6 */ listValue: ListValue; } | { @@ -146,7 +148,7 @@ export interface ListValue { /** * Repeated field of dynamically typed values. * - * @generated from protobuf field: repeated google.protobuf.Value values = 1; + * @generated from protobuf field: repeated google.protobuf.Value values = 1 */ values: Value[]; } @@ -154,7 +156,7 @@ export interface ListValue { * `NullValue` is a singleton enumeration to represent the null value for the * `Value` type union. * - * The JSON representation for `NullValue` is JSON `null`. + * The JSON representation for `NullValue` is JSON `null`. * * @generated from protobuf enum google.protobuf.NullValue */ @@ -233,7 +235,7 @@ class Struct$Type extends MessageType { case 2: val = Value.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field google.protobuf.Struct.fields"); + default: throw new globalThis.Error("unknown map entry field for google.protobuf.Struct.fields"); } } map[key ?? ""] = val ?? Value.create(); @@ -419,7 +421,7 @@ export const Value = new Value$Type(); class ListValue$Type extends MessageType { constructor() { super("google.protobuf.ListValue", [ - { no: 1, name: "values", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Value } + { no: 1, name: "values", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Value } ]); } /** diff --git a/src/pomerium-console/google/protobuf/timestamp.ts b/src/pomerium-console/google/protobuf/timestamp.ts index ca9fdfe..03764e3 100644 --- a/src/pomerium-console/google/protobuf/timestamp.ts +++ b/src/pomerium-console/google/protobuf/timestamp.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -97,7 +97,6 @@ import { MessageType } from "@protobuf-ts/runtime"; * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) * .setNanos((int) ((millis % 1000) * 1000000)).build(); * - * * Example 5: Compute Timestamp from Java `Instant.now()`. * * Instant now = Instant.now(); @@ -106,7 +105,6 @@ import { MessageType } from "@protobuf-ts/runtime"; * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) * .setNanos(now.getNano()).build(); * - * * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() @@ -136,29 +134,29 @@ import { MessageType } from "@protobuf-ts/runtime"; * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() * ) to obtain a formatter capable of generating timestamps in this format. * * - * * @generated from protobuf message google.protobuf.Timestamp */ export interface Timestamp { /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. + * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must + * be between -315576000000 and 315576000000 inclusive (which corresponds to + * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). * - * @generated from protobuf field: int64 seconds = 1; + * @generated from protobuf field: int64 seconds = 1 */ seconds: bigint; /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 + * Non-negative fractions of a second at nanosecond resolution. This field is + * the nanosecond portion of the duration, not an alternative to seconds. + * Negative second values with fractions must still have non-negative nanos + * values that count forward in time. Must be between 0 and 999,999,999 * inclusive. * - * @generated from protobuf field: int32 nanos = 2; + * @generated from protobuf field: int32 nanos = 2 */ nanos: number; } @@ -193,7 +191,7 @@ class Timestamp$Type extends MessageType { const msg = this.create(); const ms = date.getTime(); msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt(); - msg.nanos = (ms % 1000) * 1000000; + msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000; return msg; } /** diff --git a/src/pomerium-console/key_chain.client.ts b/src/pomerium-console/key_chain.client.ts index 004bb6a..edf5326 100644 --- a/src/pomerium-console/key_chain.client.ts +++ b/src/pomerium-console/key_chain.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "key_chain.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -27,32 +27,32 @@ export interface IKeyChainServiceClient { /** * DeleteKeyPair remove an x509 key pair based on a DeleteKeyPairRequest * - * @generated from protobuf rpc: DeleteKeyPair(pomerium.dashboard.DeleteKeyPairRequest) returns (pomerium.dashboard.DeleteKeyPairResponse); + * @generated from protobuf rpc: DeleteKeyPair */ deleteKeyPair(input: DeleteKeyPairRequest, options?: RpcOptions): UnaryCall; /** * GetKeyPair retrieves an existing key pair * - * @generated from protobuf rpc: GetKeyPair(pomerium.dashboard.GetKeyPairRequest) returns (pomerium.dashboard.GetKeyPairResponse); + * @generated from protobuf rpc: GetKeyPair */ getKeyPair(input: GetKeyPairRequest, options?: RpcOptions): UnaryCall; /** * ListKeyPairs lists existing key pairs based on parameters in * ListKeyPairsRequest * - * @generated from protobuf rpc: ListKeyPairs(pomerium.dashboard.ListKeyPairsRequest) returns (pomerium.dashboard.ListKeyPairsResponse); + * @generated from protobuf rpc: ListKeyPairs */ listKeyPairs(input: ListKeyPairsRequest, options?: RpcOptions): UnaryCall; /** * CreateKeyPair creates a new key pair * - * @generated from protobuf rpc: CreateKeyPair(pomerium.dashboard.CreateKeyPairRequest) returns (pomerium.dashboard.CreateKeyPairResponse); + * @generated from protobuf rpc: CreateKeyPair */ createKeyPair(input: CreateKeyPairRequest, options?: RpcOptions): UnaryCall; /** * CreateKeyPair creates a new key pair * - * @generated from protobuf rpc: UpdateKeyPair(pomerium.dashboard.UpdateKeyPairRequest) returns (pomerium.dashboard.UpdateKeyPairResponse); + * @generated from protobuf rpc: UpdateKeyPair */ updateKeyPair(input: UpdateKeyPairRequest, options?: RpcOptions): UnaryCall; } @@ -71,7 +71,7 @@ export class KeyChainServiceClient implements IKeyChainServiceClient, ServiceInf /** * DeleteKeyPair remove an x509 key pair based on a DeleteKeyPairRequest * - * @generated from protobuf rpc: DeleteKeyPair(pomerium.dashboard.DeleteKeyPairRequest) returns (pomerium.dashboard.DeleteKeyPairResponse); + * @generated from protobuf rpc: DeleteKeyPair */ deleteKeyPair(input: DeleteKeyPairRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -80,7 +80,7 @@ export class KeyChainServiceClient implements IKeyChainServiceClient, ServiceInf /** * GetKeyPair retrieves an existing key pair * - * @generated from protobuf rpc: GetKeyPair(pomerium.dashboard.GetKeyPairRequest) returns (pomerium.dashboard.GetKeyPairResponse); + * @generated from protobuf rpc: GetKeyPair */ getKeyPair(input: GetKeyPairRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -90,7 +90,7 @@ export class KeyChainServiceClient implements IKeyChainServiceClient, ServiceInf * ListKeyPairs lists existing key pairs based on parameters in * ListKeyPairsRequest * - * @generated from protobuf rpc: ListKeyPairs(pomerium.dashboard.ListKeyPairsRequest) returns (pomerium.dashboard.ListKeyPairsResponse); + * @generated from protobuf rpc: ListKeyPairs */ listKeyPairs(input: ListKeyPairsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -99,7 +99,7 @@ export class KeyChainServiceClient implements IKeyChainServiceClient, ServiceInf /** * CreateKeyPair creates a new key pair * - * @generated from protobuf rpc: CreateKeyPair(pomerium.dashboard.CreateKeyPairRequest) returns (pomerium.dashboard.CreateKeyPairResponse); + * @generated from protobuf rpc: CreateKeyPair */ createKeyPair(input: CreateKeyPairRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); @@ -108,7 +108,7 @@ export class KeyChainServiceClient implements IKeyChainServiceClient, ServiceInf /** * CreateKeyPair creates a new key pair * - * @generated from protobuf rpc: UpdateKeyPair(pomerium.dashboard.UpdateKeyPairRequest) returns (pomerium.dashboard.UpdateKeyPairResponse); + * @generated from protobuf rpc: UpdateKeyPair */ updateKeyPair(input: UpdateKeyPairRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/key_chain.ts b/src/pomerium-console/key_chain.ts index 4225a6c..7e6199b 100644 --- a/src/pomerium-console/key_chain.ts +++ b/src/pomerium-console/key_chain.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "key_chain.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -19,39 +19,39 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface KeyPair { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string name = 2; + * @generated from protobuf field: string name = 2 */ name: string; /** - * @generated from protobuf field: string namespace_id = 3; + * @generated from protobuf field: string namespace_id = 3 */ namespaceId: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 4 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 5; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 5 */ modifiedAt?: Timestamp; /** * public certificate data * - * @generated from protobuf field: bytes certificate = 7; + * @generated from protobuf field: bytes certificate = 7 */ certificate: Uint8Array; /** * private key data * - * @generated from protobuf field: bytes key = 8; + * @generated from protobuf field: bytes key = 8 */ key: Uint8Array; /** - * @generated from protobuf field: string originator_id = 9; + * @generated from protobuf field: string originator_id = 9 */ originatorId: string; } @@ -64,54 +64,54 @@ export interface KeyUsage { /** * standard key usages * - * @generated from protobuf field: bool digital_signature = 1; + * @generated from protobuf field: bool digital_signature = 1 */ digitalSignature: boolean; /** - * @generated from protobuf field: bool content_commitment = 2; + * @generated from protobuf field: bool content_commitment = 2 */ contentCommitment: boolean; /** - * @generated from protobuf field: bool key_encipherment = 3; + * @generated from protobuf field: bool key_encipherment = 3 */ keyEncipherment: boolean; /** - * @generated from protobuf field: bool data_encipherment = 4; + * @generated from protobuf field: bool data_encipherment = 4 */ dataEncipherment: boolean; /** - * @generated from protobuf field: bool key_agreement = 5; + * @generated from protobuf field: bool key_agreement = 5 */ keyAgreement: boolean; /** * certificate authority * - * @generated from protobuf field: bool cert_sign = 6; + * @generated from protobuf field: bool cert_sign = 6 */ certSign: boolean; /** - * @generated from protobuf field: bool crl_sign = 7; + * @generated from protobuf field: bool crl_sign = 7 */ crlSign: boolean; /** - * @generated from protobuf field: bool encipher_only = 8; + * @generated from protobuf field: bool encipher_only = 8 */ encipherOnly: boolean; /** - * @generated from protobuf field: bool decipher_only = 9; + * @generated from protobuf field: bool decipher_only = 9 */ decipherOnly: boolean; /** * extensions derived from x509.ExtKeyUsage * server certificate * - * @generated from protobuf field: bool server_auth = 10; + * @generated from protobuf field: bool server_auth = 10 */ serverAuth: boolean; /** * client certificate * - * @generated from protobuf field: bool client_auth = 11; + * @generated from protobuf field: bool client_auth = 11 */ clientAuth: boolean; } @@ -122,39 +122,39 @@ export interface KeyUsage { */ export interface Name { /** - * @generated from protobuf field: repeated string country = 1; + * @generated from protobuf field: repeated string country = 1 */ country: string[]; /** - * @generated from protobuf field: repeated string organization = 2; + * @generated from protobuf field: repeated string organization = 2 */ organization: string[]; /** - * @generated from protobuf field: repeated string organizational_unit = 3; + * @generated from protobuf field: repeated string organizational_unit = 3 */ organizationalUnit: string[]; /** - * @generated from protobuf field: repeated string locality = 4; + * @generated from protobuf field: repeated string locality = 4 */ locality: string[]; /** - * @generated from protobuf field: repeated string province = 5; + * @generated from protobuf field: repeated string province = 5 */ province: string[]; /** - * @generated from protobuf field: repeated string street_address = 6; + * @generated from protobuf field: repeated string street_address = 6 */ streetAddress: string[]; /** - * @generated from protobuf field: repeated string postal_code = 7; + * @generated from protobuf field: repeated string postal_code = 7 */ postalCode: string[]; /** - * @generated from protobuf field: string serial_number = 8; + * @generated from protobuf field: string serial_number = 8 */ serialNumber: string; /** - * @generated from protobuf field: string common_name = 9; + * @generated from protobuf field: string common_name = 9 */ commonName: string; } @@ -166,83 +166,83 @@ export interface Name { */ export interface CertificateInfo { /** - * @generated from protobuf field: int64 version = 1; + * @generated from protobuf field: int64 version = 1 */ version: bigint; /** - * @generated from protobuf field: string serial = 2; + * @generated from protobuf field: string serial = 2 */ serial: string; /** - * @generated from protobuf field: pomerium.dashboard.Name issuer = 3; + * @generated from protobuf field: pomerium.dashboard.Name issuer = 3 */ issuer?: Name; /** - * @generated from protobuf field: pomerium.dashboard.Name subject = 4; + * @generated from protobuf field: pomerium.dashboard.Name subject = 4 */ subject?: Name; /** - * @generated from protobuf field: google.protobuf.Timestamp not_before = 5; + * @generated from protobuf field: google.protobuf.Timestamp not_before = 5 */ notBefore?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp not_after = 6; + * @generated from protobuf field: google.protobuf.Timestamp not_after = 6 */ notAfter?: Timestamp; /** - * @generated from protobuf field: pomerium.dashboard.KeyUsage key_usage = 7; + * @generated from protobuf field: pomerium.dashboard.KeyUsage key_usage = 7 */ keyUsage?: KeyUsage; /** - * @generated from protobuf field: repeated string dns_names = 10; + * @generated from protobuf field: repeated string dns_names = 10 */ dnsNames: string[]; /** - * @generated from protobuf field: repeated string email_addresses = 11; + * @generated from protobuf field: repeated string email_addresses = 11 */ emailAddresses: string[]; /** - * @generated from protobuf field: repeated string ip_addresses = 12; + * @generated from protobuf field: repeated string ip_addresses = 12 */ ipAddresses: string[]; /** - * @generated from protobuf field: repeated string uris = 13; + * @generated from protobuf field: repeated string uris = 13 */ uris: string[]; /** - * @generated from protobuf field: bool permitted_dns_domains_critical = 14; + * @generated from protobuf field: bool permitted_dns_domains_critical = 14 */ permittedDnsDomainsCritical: boolean; /** - * @generated from protobuf field: repeated string permitted_dns_domains = 15; + * @generated from protobuf field: repeated string permitted_dns_domains = 15 */ permittedDnsDomains: string[]; /** - * @generated from protobuf field: repeated string excluded_dns_domains = 16; + * @generated from protobuf field: repeated string excluded_dns_domains = 16 */ excludedDnsDomains: string[]; /** - * @generated from protobuf field: repeated string permitted_ip_ranges = 17; + * @generated from protobuf field: repeated string permitted_ip_ranges = 17 */ permittedIpRanges: string[]; /** - * @generated from protobuf field: repeated string excluded_ip_ranges = 18; + * @generated from protobuf field: repeated string excluded_ip_ranges = 18 */ excludedIpRanges: string[]; /** - * @generated from protobuf field: repeated string permitted_email_addresses = 19; + * @generated from protobuf field: repeated string permitted_email_addresses = 19 */ permittedEmailAddresses: string[]; /** - * @generated from protobuf field: repeated string excluded_email_addresses = 20; + * @generated from protobuf field: repeated string excluded_email_addresses = 20 */ excludedEmailAddresses: string[]; /** - * @generated from protobuf field: repeated string permitted_uri_domains = 21; + * @generated from protobuf field: repeated string permitted_uri_domains = 21 */ permittedUriDomains: string[]; /** - * @generated from protobuf field: repeated string excluded_uri_domains = 22; + * @generated from protobuf field: repeated string excluded_uri_domains = 22 */ excludedUriDomains: string[]; } @@ -253,49 +253,49 @@ export interface CertificateInfo { */ export interface KeyPairRecord { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string name = 2; + * @generated from protobuf field: string name = 2 */ name: string; /** - * @generated from protobuf field: string namespace_id = 3; + * @generated from protobuf field: string namespace_id = 3 */ namespaceId: string; /** * database record creation time * - * @generated from protobuf field: google.protobuf.Timestamp created_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 4 */ createdAt?: Timestamp; /** * database record modification time * - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 5; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 5 */ modifiedAt?: Timestamp; /** * information about the public certificate * - * @generated from protobuf field: pomerium.dashboard.CertificateInfo cert_info = 7; + * @generated from protobuf field: pomerium.dashboard.CertificateInfo cert_info = 7 */ certInfo?: CertificateInfo; /** * Key Pair has a private key attached * - * @generated from protobuf field: bool has_private_key = 8; + * @generated from protobuf field: bool has_private_key = 8 */ hasPrivateKey: boolean; /** * public certificate data * - * @generated from protobuf field: bytes certificate = 9; + * @generated from protobuf field: bytes certificate = 9 */ certificate: Uint8Array; /** - * @generated from protobuf field: string originator_id = 10; + * @generated from protobuf field: string originator_id = 10 */ originatorId: string; } @@ -304,7 +304,7 @@ export interface KeyPairRecord { */ export interface DeleteKeyPairRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -318,7 +318,7 @@ export interface DeleteKeyPairResponse { */ export interface GetKeyPairRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -327,7 +327,7 @@ export interface GetKeyPairRequest { */ export interface GetKeyPairResponse { /** - * @generated from protobuf field: pomerium.dashboard.KeyPairRecord key_pair = 1; + * @generated from protobuf field: pomerium.dashboard.KeyPairRecord key_pair = 1 */ keyPair?: KeyPairRecord; } @@ -338,41 +338,41 @@ export interface GetKeyPairResponse { */ export interface ListKeyPairsRequest { /** - * @generated from protobuf field: string namespace_id = 1; + * @generated from protobuf field: string namespace_id = 1 */ namespaceId: string; /** * list Key Pairs whose name contains the query string * - * @generated from protobuf field: optional string query = 2; + * @generated from protobuf field: optional string query = 2 */ query?: string; /** * list Key Pairs starting from an offset in the total list * - * @generated from protobuf field: optional int64 offset = 3; + * @generated from protobuf field: optional int64 offset = 3 */ offset?: bigint; /** * limit the number of entries returned * - * @generated from protobuf field: optional int64 limit = 4; + * @generated from protobuf field: optional int64 limit = 4 */ limit?: bigint; /** * `newest`, `oldest`, `name`, `from` * - * @generated from protobuf field: optional string order_by = 5; + * @generated from protobuf field: optional string order_by = 5 */ orderBy?: string; /** * return key pairs that match the given domain * - * @generated from protobuf field: optional string domain = 6; + * @generated from protobuf field: optional string domain = 6 */ domain?: string; /** - * @generated from protobuf field: optional string cluster_id = 7; + * @generated from protobuf field: optional string cluster_id = 7 */ clusterId?: string; } @@ -386,11 +386,11 @@ export interface ListKeyPairsResponse { /** * Key Pairs found * - * @generated from protobuf field: repeated pomerium.dashboard.KeyPairRecord key_pairs = 1; + * @generated from protobuf field: repeated pomerium.dashboard.KeyPairRecord key_pairs = 1 */ keyPairs: KeyPairRecord[]; /** - * @generated from protobuf field: int64 total_count = 2; + * @generated from protobuf field: int64 total_count = 2 */ totalCount: bigint; } @@ -401,33 +401,33 @@ export interface ListKeyPairsResponse { */ export interface CreateKeyPairRequest { /** - * @generated from protobuf field: string originator_id = 6; + * @generated from protobuf field: string originator_id = 6 */ originatorId: string; /** - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** - * @generated from protobuf field: string namespace_id = 2; + * @generated from protobuf field: string namespace_id = 2 */ namespaceId: string; /** * encoding format of data * - * @generated from protobuf field: pomerium.dashboard.Format format = 3; + * @generated from protobuf field: pomerium.dashboard.Format format = 3 */ format: Format; /** * public certificate data * - * @generated from protobuf field: bytes certificate = 4; + * @generated from protobuf field: bytes certificate = 4 */ certificate: Uint8Array; /** * private key data * - * @generated from protobuf field: bytes key = 5; + * @generated from protobuf field: bytes key = 5 */ key: Uint8Array; } @@ -436,7 +436,7 @@ export interface CreateKeyPairRequest { */ export interface CreateKeyPairResponse { /** - * @generated from protobuf field: pomerium.dashboard.KeyPairRecord key_pair = 1; + * @generated from protobuf field: pomerium.dashboard.KeyPairRecord key_pair = 1 */ keyPair?: KeyPairRecord; } @@ -445,33 +445,33 @@ export interface CreateKeyPairResponse { */ export interface UpdateKeyPairRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string originator_id = 6; + * @generated from protobuf field: string originator_id = 6 */ originatorId: string; /** - * @generated from protobuf field: optional string name = 2; + * @generated from protobuf field: optional string name = 2 */ name?: string; /** * encoding format of data * - * @generated from protobuf field: optional pomerium.dashboard.Format format = 3; + * @generated from protobuf field: optional pomerium.dashboard.Format format = 3 */ format?: Format; /** * public certificate data * - * @generated from protobuf field: optional bytes certificate = 4; + * @generated from protobuf field: optional bytes certificate = 4 */ certificate?: Uint8Array; /** * private key data * - * @generated from protobuf field: optional bytes key = 5; + * @generated from protobuf field: optional bytes key = 5 */ key?: Uint8Array; } @@ -480,7 +480,7 @@ export interface UpdateKeyPairRequest { */ export interface UpdateKeyPairResponse { /** - * @generated from protobuf field: pomerium.dashboard.KeyPairRecord key_pair = 1; + * @generated from protobuf field: pomerium.dashboard.KeyPairRecord key_pair = 1 */ keyPair?: KeyPairRecord; } @@ -1226,7 +1226,20 @@ class DeleteKeyPairResponse$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteKeyPairResponse): DeleteKeyPairResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: DeleteKeyPairResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -1425,7 +1438,7 @@ export const ListKeyPairsRequest = new ListKeyPairsRequest$Type(); class ListKeyPairsResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListKeyPairsResponse", [ - { no: 1, name: "key_pairs", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => KeyPairRecord }, + { no: 1, name: "key_pairs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => KeyPairRecord }, { no: 2, name: "total_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ]); } @@ -1535,9 +1548,6 @@ class CreateKeyPairRequest$Type extends MessageType { return message; } internalBinaryWrite(message: CreateKeyPairRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string originator_id = 6; */ - if (message.originatorId !== "") - writer.tag(6, WireType.LengthDelimited).string(message.originatorId); /* string name = 1; */ if (message.name !== "") writer.tag(1, WireType.LengthDelimited).string(message.name); @@ -1553,6 +1563,9 @@ class CreateKeyPairRequest$Type extends MessageType { /* bytes key = 5; */ if (message.key.length) writer.tag(5, WireType.LengthDelimited).bytes(message.key); + /* string originator_id = 6; */ + if (message.originatorId !== "") + writer.tag(6, WireType.LengthDelimited).string(message.originatorId); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1667,9 +1680,6 @@ class UpdateKeyPairRequest$Type extends MessageType { /* string id = 1; */ if (message.id !== "") writer.tag(1, WireType.LengthDelimited).string(message.id); - /* string originator_id = 6; */ - if (message.originatorId !== "") - writer.tag(6, WireType.LengthDelimited).string(message.originatorId); /* optional string name = 2; */ if (message.name !== undefined) writer.tag(2, WireType.LengthDelimited).string(message.name); @@ -1682,6 +1692,9 @@ class UpdateKeyPairRequest$Type extends MessageType { /* optional bytes key = 5; */ if (message.key !== undefined) writer.tag(5, WireType.LengthDelimited).bytes(message.key); + /* string originator_id = 6; */ + if (message.originatorId !== "") + writer.tag(6, WireType.LengthDelimited).string(message.originatorId); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/src/pomerium-console/namespaces.client.ts b/src/pomerium-console/namespaces.client.ts index 9fef0e2..4e31e2a 100644 --- a/src/pomerium-console/namespaces.client.ts +++ b/src/pomerium-console/namespaces.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "namespaces.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { NamespacePermissionService } from "./namespaces"; @@ -39,32 +39,32 @@ export interface INamespaceServiceClient { /** * DeleteNamespace deletes a namespace * - * @generated from protobuf rpc: DeleteNamespace(pomerium.dashboard.DeleteNamespaceRequest) returns (pomerium.dashboard.DeleteNamespaceResponse); + * @generated from protobuf rpc: DeleteNamespace */ deleteNamespace(input: DeleteNamespaceRequest, options?: RpcOptions): UnaryCall; /** * GetNamespace retrieves a namespace * - * @generated from protobuf rpc: GetNamespace(pomerium.dashboard.GetNamespaceRequest) returns (pomerium.dashboard.GetNamespaceResponse); + * @generated from protobuf rpc: GetNamespace */ getNamespace(input: GetNamespaceRequest, options?: RpcOptions): UnaryCall; /** * ListNamespaces lists all namespaces * - * @generated from protobuf rpc: ListNamespaces(pomerium.dashboard.ListNamespacesRequest) returns (pomerium.dashboard.ListNamespacesResponse); + * @generated from protobuf rpc: ListNamespaces */ listNamespaces(input: ListNamespacesRequest, options?: RpcOptions): UnaryCall; /** * ListNamespaceResources lists all the resources for a namespace. * - * @generated from protobuf rpc: ListNamespaceResources(pomerium.dashboard.ListNamespaceResourcesRequest) returns (pomerium.dashboard.ListNamespaceResourcesResponse); + * @generated from protobuf rpc: ListNamespaceResources */ listNamespaceResources(input: ListNamespaceResourcesRequest, options?: RpcOptions): UnaryCall; /** * SetNamespace creates a namespace or, if the id is specified, updates an * existing namespace * - * @generated from protobuf rpc: SetNamespace(pomerium.dashboard.SetNamespaceRequest) returns (pomerium.dashboard.SetNamespaceResponse); + * @generated from protobuf rpc: SetNamespace */ setNamespace(input: SetNamespaceRequest, options?: RpcOptions): UnaryCall; } @@ -82,7 +82,7 @@ export class NamespaceServiceClient implements INamespaceServiceClient, ServiceI /** * DeleteNamespace deletes a namespace * - * @generated from protobuf rpc: DeleteNamespace(pomerium.dashboard.DeleteNamespaceRequest) returns (pomerium.dashboard.DeleteNamespaceResponse); + * @generated from protobuf rpc: DeleteNamespace */ deleteNamespace(input: DeleteNamespaceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -91,7 +91,7 @@ export class NamespaceServiceClient implements INamespaceServiceClient, ServiceI /** * GetNamespace retrieves a namespace * - * @generated from protobuf rpc: GetNamespace(pomerium.dashboard.GetNamespaceRequest) returns (pomerium.dashboard.GetNamespaceResponse); + * @generated from protobuf rpc: GetNamespace */ getNamespace(input: GetNamespaceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -100,7 +100,7 @@ export class NamespaceServiceClient implements INamespaceServiceClient, ServiceI /** * ListNamespaces lists all namespaces * - * @generated from protobuf rpc: ListNamespaces(pomerium.dashboard.ListNamespacesRequest) returns (pomerium.dashboard.ListNamespacesResponse); + * @generated from protobuf rpc: ListNamespaces */ listNamespaces(input: ListNamespacesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -109,7 +109,7 @@ export class NamespaceServiceClient implements INamespaceServiceClient, ServiceI /** * ListNamespaceResources lists all the resources for a namespace. * - * @generated from protobuf rpc: ListNamespaceResources(pomerium.dashboard.ListNamespaceResourcesRequest) returns (pomerium.dashboard.ListNamespaceResourcesResponse); + * @generated from protobuf rpc: ListNamespaceResources */ listNamespaceResources(input: ListNamespaceResourcesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); @@ -119,7 +119,7 @@ export class NamespaceServiceClient implements INamespaceServiceClient, ServiceI * SetNamespace creates a namespace or, if the id is specified, updates an * existing namespace * - * @generated from protobuf rpc: SetNamespace(pomerium.dashboard.SetNamespaceRequest) returns (pomerium.dashboard.SetNamespaceResponse); + * @generated from protobuf rpc: SetNamespace */ setNamespace(input: SetNamespaceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); @@ -135,39 +135,39 @@ export interface INamespacePermissionServiceClient { /** * DeleteNamespacePermission removes an existing permission definition * - * @generated from protobuf rpc: DeleteNamespacePermission(pomerium.dashboard.DeleteNamespacePermissionRequest) returns (pomerium.dashboard.DeleteNamespacePermissionResponse); + * @generated from protobuf rpc: DeleteNamespacePermission */ deleteNamespacePermission(input: DeleteNamespacePermissionRequest, options?: RpcOptions): UnaryCall; /** * GetNamespacePermission retrieves an existing permission definition * - * @generated from protobuf rpc: GetNamespacePermission(pomerium.dashboard.GetNamespacePermissionRequest) returns (pomerium.dashboard.GetNamespacePermissionResponse); + * @generated from protobuf rpc: GetNamespacePermission */ getNamespacePermission(input: GetNamespacePermissionRequest, options?: RpcOptions): UnaryCall; /** * ListNamespacePermissions retrieves existing permissions for all namespaces * - * @generated from protobuf rpc: ListNamespacePermissions(pomerium.dashboard.ListNamespacePermissionsRequest) returns (pomerium.dashboard.ListNamespacePermissionsResponse); + * @generated from protobuf rpc: ListNamespacePermissions */ listNamespacePermissions(input: ListNamespacePermissionsRequest, options?: RpcOptions): UnaryCall; /** * ListNamespacePermissionGroups retrieves existing group based permissions on * a namespace * - * @generated from protobuf rpc: ListNamespacePermissionGroups(pomerium.dashboard.ListNamespacePermissionGroupsRequest) returns (pomerium.dashboard.ListNamespacePermissionGroupsResponse); + * @generated from protobuf rpc: ListNamespacePermissionGroups */ listNamespacePermissionGroups(input: ListNamespacePermissionGroupsRequest, options?: RpcOptions): UnaryCall; /** * ListNamespacePermissionUsers retrieves existing user based permissions on a * namespace * - * @generated from protobuf rpc: ListNamespacePermissionUsers(pomerium.dashboard.ListNamespacePermissionUsersRequest) returns (pomerium.dashboard.ListNamespacePermissionUsersResponse); + * @generated from protobuf rpc: ListNamespacePermissionUsers */ listNamespacePermissionUsers(input: ListNamespacePermissionUsersRequest, options?: RpcOptions): UnaryCall; /** * SetNamespacePermission set a new permission definition on a namespace * - * @generated from protobuf rpc: SetNamespacePermission(pomerium.dashboard.SetNamespacePermissionRequest) returns (pomerium.dashboard.SetNamespacePermissionResponse); + * @generated from protobuf rpc: SetNamespacePermission */ setNamespacePermission(input: SetNamespacePermissionRequest, options?: RpcOptions): UnaryCall; } @@ -185,7 +185,7 @@ export class NamespacePermissionServiceClient implements INamespacePermissionSer /** * DeleteNamespacePermission removes an existing permission definition * - * @generated from protobuf rpc: DeleteNamespacePermission(pomerium.dashboard.DeleteNamespacePermissionRequest) returns (pomerium.dashboard.DeleteNamespacePermissionResponse); + * @generated from protobuf rpc: DeleteNamespacePermission */ deleteNamespacePermission(input: DeleteNamespacePermissionRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -194,7 +194,7 @@ export class NamespacePermissionServiceClient implements INamespacePermissionSer /** * GetNamespacePermission retrieves an existing permission definition * - * @generated from protobuf rpc: GetNamespacePermission(pomerium.dashboard.GetNamespacePermissionRequest) returns (pomerium.dashboard.GetNamespacePermissionResponse); + * @generated from protobuf rpc: GetNamespacePermission */ getNamespacePermission(input: GetNamespacePermissionRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -203,7 +203,7 @@ export class NamespacePermissionServiceClient implements INamespacePermissionSer /** * ListNamespacePermissions retrieves existing permissions for all namespaces * - * @generated from protobuf rpc: ListNamespacePermissions(pomerium.dashboard.ListNamespacePermissionsRequest) returns (pomerium.dashboard.ListNamespacePermissionsResponse); + * @generated from protobuf rpc: ListNamespacePermissions */ listNamespacePermissions(input: ListNamespacePermissionsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -213,7 +213,7 @@ export class NamespacePermissionServiceClient implements INamespacePermissionSer * ListNamespacePermissionGroups retrieves existing group based permissions on * a namespace * - * @generated from protobuf rpc: ListNamespacePermissionGroups(pomerium.dashboard.ListNamespacePermissionGroupsRequest) returns (pomerium.dashboard.ListNamespacePermissionGroupsResponse); + * @generated from protobuf rpc: ListNamespacePermissionGroups */ listNamespacePermissionGroups(input: ListNamespacePermissionGroupsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); @@ -223,7 +223,7 @@ export class NamespacePermissionServiceClient implements INamespacePermissionSer * ListNamespacePermissionUsers retrieves existing user based permissions on a * namespace * - * @generated from protobuf rpc: ListNamespacePermissionUsers(pomerium.dashboard.ListNamespacePermissionUsersRequest) returns (pomerium.dashboard.ListNamespacePermissionUsersResponse); + * @generated from protobuf rpc: ListNamespacePermissionUsers */ listNamespacePermissionUsers(input: ListNamespacePermissionUsersRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); @@ -232,7 +232,7 @@ export class NamespacePermissionServiceClient implements INamespacePermissionSer /** * SetNamespacePermission set a new permission definition on a namespace * - * @generated from protobuf rpc: SetNamespacePermission(pomerium.dashboard.SetNamespacePermissionRequest) returns (pomerium.dashboard.SetNamespacePermissionResponse); + * @generated from protobuf rpc: SetNamespacePermission */ setNamespacePermission(input: SetNamespacePermissionRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/namespaces.ts b/src/pomerium-console/namespaces.ts index cafaab8..c7670b5 100644 --- a/src/pomerium-console/namespaces.ts +++ b/src/pomerium-console/namespaces.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "namespaces.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -19,47 +19,47 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface Namespace { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string parent_id = 2; + * @generated from protobuf field: string parent_id = 2 */ parentId: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 3 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 4 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 5; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 5 */ deletedAt?: Timestamp; /** - * @generated from protobuf field: string name = 6; + * @generated from protobuf field: string name = 6 */ name: string; /** - * @generated from protobuf field: string originator_id = 9; + * @generated from protobuf field: string originator_id = 9 */ originatorId: string; /** - * @generated from protobuf field: optional string cluster_id = 10; + * @generated from protobuf field: optional string cluster_id = 10 */ clusterId?: string; /** * computed * - * @generated from protobuf field: int64 route_count = 7; + * @generated from protobuf field: int64 route_count = 7 */ routeCount: bigint; /** * computed * - * @generated from protobuf field: int64 policy_count = 8; + * @generated from protobuf field: int64 policy_count = 8 */ policyCount: bigint; } @@ -68,7 +68,7 @@ export interface Namespace { */ export interface DeleteNamespaceRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -82,7 +82,7 @@ export interface DeleteNamespaceResponse { */ export interface GetNamespaceRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -91,7 +91,7 @@ export interface GetNamespaceRequest { */ export interface GetNamespaceResponse { /** - * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 1; + * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 1 */ namespace?: Namespace; } @@ -105,7 +105,7 @@ export interface ListNamespacesRequest { */ export interface ListNamespacesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.Namespace namespaces = 1; + * @generated from protobuf field: repeated pomerium.dashboard.Namespace namespaces = 1 */ namespaces: Namespace[]; } @@ -114,7 +114,7 @@ export interface ListNamespacesResponse { */ export interface ListNamespaceResourcesRequest { /** - * @generated from protobuf field: repeated string ids = 1; + * @generated from protobuf field: repeated string ids = 1 */ ids: string[]; } @@ -123,7 +123,7 @@ export interface ListNamespaceResourcesRequest { */ export interface ListNamespaceResourcesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.ListNamespaceResourcesResponse.Resource resources = 1; + * @generated from protobuf field: repeated pomerium.dashboard.ListNamespaceResourcesResponse.Resource resources = 1 */ resources: ListNamespaceResourcesResponse_Resource[]; } @@ -132,15 +132,15 @@ export interface ListNamespaceResourcesResponse { */ export interface ListNamespaceResourcesResponse_Resource { /** - * @generated from protobuf field: string type = 1; + * @generated from protobuf field: string type = 1 */ type: string; /** - * @generated from protobuf field: string id = 2; + * @generated from protobuf field: string id = 2 */ id: string; /** - * @generated from protobuf field: string name = 3; + * @generated from protobuf field: string name = 3 */ name: string; } @@ -149,7 +149,7 @@ export interface ListNamespaceResourcesResponse_Resource { */ export interface SetNamespaceRequest { /** - * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 1; + * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 1 */ namespace?: Namespace; } @@ -158,7 +158,7 @@ export interface SetNamespaceRequest { */ export interface SetNamespaceResponse { /** - * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 1; + * @generated from protobuf field: pomerium.dashboard.Namespace namespace = 1 */ namespace?: Namespace; } @@ -169,39 +169,39 @@ export interface SetNamespaceResponse { */ export interface NamespacePermission { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: string namespace_id = 4; + * @generated from protobuf field: string namespace_id = 4 */ namespaceId: string; /** - * @generated from protobuf field: string namespace_name = 8; + * @generated from protobuf field: string namespace_name = 8 */ namespaceName: string; /** - * @generated from protobuf field: string subject_type = 5; + * @generated from protobuf field: string subject_type = 5 */ subjectType: string; /** - * @generated from protobuf field: string subject_id = 6; + * @generated from protobuf field: string subject_id = 6 */ subjectId: string; /** - * @generated from protobuf field: string role = 7; + * @generated from protobuf field: string role = 7 */ role: string; /** - * @generated from protobuf field: string originator_id = 9; + * @generated from protobuf field: string originator_id = 9 */ originatorId: string; } @@ -212,43 +212,43 @@ export interface NamespacePermission { */ export interface NamespacePermissionGroup { /** - * @generated from protobuf field: string id = 8; + * @generated from protobuf field: string id = 8 */ id: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 9; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 9 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 10; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 10 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: string namespace_id = 4; + * @generated from protobuf field: string namespace_id = 4 */ namespaceId: string; /** - * @generated from protobuf field: string namespace_name = 5; + * @generated from protobuf field: string namespace_name = 5 */ namespaceName: string; /** - * @generated from protobuf field: string group_id = 1; + * @generated from protobuf field: string group_id = 1 */ groupId: string; /** - * @generated from protobuf field: string group_name = 2; + * @generated from protobuf field: string group_name = 2 */ groupName: string; /** - * @generated from protobuf field: string group_email = 3; + * @generated from protobuf field: string group_email = 3 */ groupEmail: string; /** - * @generated from protobuf field: string role = 6; + * @generated from protobuf field: string role = 6 */ role: string; /** - * @generated from protobuf field: string originator_id = 7; + * @generated from protobuf field: string originator_id = 7 */ originatorId: string; } @@ -259,47 +259,47 @@ export interface NamespacePermissionGroup { */ export interface NamespacePermissionUser { /** - * @generated from protobuf field: string id = 9; + * @generated from protobuf field: string id = 9 */ id: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 10; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 10 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 11; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 11 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: string namespace_id = 5; + * @generated from protobuf field: string namespace_id = 5 */ namespaceId: string; /** - * @generated from protobuf field: string namespace_name = 7; + * @generated from protobuf field: string namespace_name = 7 */ namespaceName: string; /** - * @generated from protobuf field: string user_id = 1; + * @generated from protobuf field: string user_id = 1 */ userId: string; /** - * @generated from protobuf field: string user_name = 2; + * @generated from protobuf field: string user_name = 2 */ userName: string; /** - * @generated from protobuf field: string user_email = 3; + * @generated from protobuf field: string user_email = 3 */ userEmail: string; /** - * @generated from protobuf field: repeated string group_ids = 4; + * @generated from protobuf field: repeated string group_ids = 4 */ groupIds: string[]; /** - * @generated from protobuf field: string role = 6; + * @generated from protobuf field: string role = 6 */ role: string; /** - * @generated from protobuf field: string originator_id = 8; + * @generated from protobuf field: string originator_id = 8 */ originatorId: string; } @@ -308,7 +308,7 @@ export interface NamespacePermissionUser { */ export interface DeleteNamespacePermissionRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -322,7 +322,7 @@ export interface DeleteNamespacePermissionResponse { */ export interface GetNamespacePermissionRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -331,7 +331,7 @@ export interface GetNamespacePermissionRequest { */ export interface GetNamespacePermissionResponse { /** - * @generated from protobuf field: pomerium.dashboard.NamespacePermission namespace_permission = 1; + * @generated from protobuf field: pomerium.dashboard.NamespacePermission namespace_permission = 1 */ namespacePermission?: NamespacePermission; } @@ -345,7 +345,7 @@ export interface ListNamespacePermissionsRequest { */ export interface ListNamespacePermissionsResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.NamespacePermission namespace_permissions = 1; + * @generated from protobuf field: repeated pomerium.dashboard.NamespacePermission namespace_permissions = 1 */ namespacePermissions: NamespacePermission[]; } @@ -354,7 +354,7 @@ export interface ListNamespacePermissionsResponse { */ export interface ListNamespacePermissionGroupsRequest { /** - * @generated from protobuf field: string namespace_id = 1; + * @generated from protobuf field: string namespace_id = 1 */ namespaceId: string; } @@ -363,7 +363,7 @@ export interface ListNamespacePermissionGroupsRequest { */ export interface ListNamespacePermissionGroupsResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.NamespacePermissionGroup groups = 1; + * @generated from protobuf field: repeated pomerium.dashboard.NamespacePermissionGroup groups = 1 */ groups: NamespacePermissionGroup[]; } @@ -372,7 +372,7 @@ export interface ListNamespacePermissionGroupsResponse { */ export interface ListNamespacePermissionUsersRequest { /** - * @generated from protobuf field: string namespace_id = 1; + * @generated from protobuf field: string namespace_id = 1 */ namespaceId: string; } @@ -381,7 +381,7 @@ export interface ListNamespacePermissionUsersRequest { */ export interface ListNamespacePermissionUsersResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.NamespacePermissionUser users = 1; + * @generated from protobuf field: repeated pomerium.dashboard.NamespacePermissionUser users = 1 */ users: NamespacePermissionUser[]; } @@ -390,7 +390,7 @@ export interface ListNamespacePermissionUsersResponse { */ export interface SetNamespacePermissionRequest { /** - * @generated from protobuf field: pomerium.dashboard.NamespacePermission namespace_permission = 1; + * @generated from protobuf field: pomerium.dashboard.NamespacePermission namespace_permission = 1 */ namespacePermission?: NamespacePermission; } @@ -399,7 +399,7 @@ export interface SetNamespacePermissionRequest { */ export interface SetNamespacePermissionResponse { /** - * @generated from protobuf field: pomerium.dashboard.NamespacePermission namespace_permission = 1; + * @generated from protobuf field: pomerium.dashboard.NamespacePermission namespace_permission = 1 */ namespacePermission?: NamespacePermission; } @@ -496,18 +496,18 @@ class Namespace$Type extends MessageType { /* string name = 6; */ if (message.name !== "") writer.tag(6, WireType.LengthDelimited).string(message.name); - /* string originator_id = 9; */ - if (message.originatorId !== "") - writer.tag(9, WireType.LengthDelimited).string(message.originatorId); - /* optional string cluster_id = 10; */ - if (message.clusterId !== undefined) - writer.tag(10, WireType.LengthDelimited).string(message.clusterId); /* int64 route_count = 7; */ if (message.routeCount !== 0n) writer.tag(7, WireType.Varint).int64(message.routeCount); /* int64 policy_count = 8; */ if (message.policyCount !== 0n) writer.tag(8, WireType.Varint).int64(message.policyCount); + /* string originator_id = 9; */ + if (message.originatorId !== "") + writer.tag(9, WireType.LengthDelimited).string(message.originatorId); + /* optional string cluster_id = 10; */ + if (message.clusterId !== undefined) + writer.tag(10, WireType.LengthDelimited).string(message.clusterId); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -577,7 +577,20 @@ class DeleteNamespaceResponse$Type extends MessageType return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteNamespaceResponse): DeleteNamespaceResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: DeleteNamespaceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -695,7 +708,20 @@ class ListNamespacesRequest$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListNamespacesRequest): ListNamespacesRequest { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: ListNamespacesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -712,7 +738,7 @@ export const ListNamespacesRequest = new ListNamespacesRequest$Type(); class ListNamespacesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListNamespacesResponse", [ - { no: 1, name: "namespaces", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Namespace } + { no: 1, name: "namespaces", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Namespace } ]); } create(value?: PartialMessage): ListNamespacesResponse { @@ -806,7 +832,7 @@ export const ListNamespaceResourcesRequest = new ListNamespaceResourcesRequest$T class ListNamespaceResourcesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListNamespaceResourcesResponse", [ - { no: 1, name: "resources", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ListNamespaceResourcesResponse_Resource } + { no: 1, name: "resources", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListNamespaceResourcesResponse_Resource } ]); } create(value?: PartialMessage): ListNamespaceResourcesResponse { @@ -1088,9 +1114,6 @@ class NamespacePermission$Type extends MessageType { /* string namespace_id = 4; */ if (message.namespaceId !== "") writer.tag(4, WireType.LengthDelimited).string(message.namespaceId); - /* string namespace_name = 8; */ - if (message.namespaceName !== "") - writer.tag(8, WireType.LengthDelimited).string(message.namespaceName); /* string subject_type = 5; */ if (message.subjectType !== "") writer.tag(5, WireType.LengthDelimited).string(message.subjectType); @@ -1100,6 +1123,9 @@ class NamespacePermission$Type extends MessageType { /* string role = 7; */ if (message.role !== "") writer.tag(7, WireType.LengthDelimited).string(message.role); + /* string namespace_name = 8; */ + if (message.namespaceName !== "") + writer.tag(8, WireType.LengthDelimited).string(message.namespaceName); /* string originator_id = 9; */ if (message.originatorId !== "") writer.tag(9, WireType.LengthDelimited).string(message.originatorId); @@ -1190,21 +1216,6 @@ class NamespacePermissionGroup$Type extends MessageType return message; } internalBinaryWrite(message: NamespacePermissionUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string id = 9; */ - if (message.id !== "") - writer.tag(9, WireType.LengthDelimited).string(message.id); - /* google.protobuf.Timestamp created_at = 10; */ - if (message.createdAt) - Timestamp.internalBinaryWrite(message.createdAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Timestamp modified_at = 11; */ - if (message.modifiedAt) - Timestamp.internalBinaryWrite(message.modifiedAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join(); - /* string namespace_id = 5; */ - if (message.namespaceId !== "") - writer.tag(5, WireType.LengthDelimited).string(message.namespaceId); - /* string namespace_name = 7; */ - if (message.namespaceName !== "") - writer.tag(7, WireType.LengthDelimited).string(message.namespaceName); /* string user_id = 1; */ if (message.userId !== "") writer.tag(1, WireType.LengthDelimited).string(message.userId); @@ -1339,12 +1350,27 @@ class NamespacePermissionUser$Type extends MessageType /* repeated string group_ids = 4; */ for (let i = 0; i < message.groupIds.length; i++) writer.tag(4, WireType.LengthDelimited).string(message.groupIds[i]); + /* string namespace_id = 5; */ + if (message.namespaceId !== "") + writer.tag(5, WireType.LengthDelimited).string(message.namespaceId); /* string role = 6; */ if (message.role !== "") writer.tag(6, WireType.LengthDelimited).string(message.role); + /* string namespace_name = 7; */ + if (message.namespaceName !== "") + writer.tag(7, WireType.LengthDelimited).string(message.namespaceName); /* string originator_id = 8; */ if (message.originatorId !== "") writer.tag(8, WireType.LengthDelimited).string(message.originatorId); + /* string id = 9; */ + if (message.id !== "") + writer.tag(9, WireType.LengthDelimited).string(message.id); + /* google.protobuf.Timestamp created_at = 10; */ + if (message.createdAt) + Timestamp.internalBinaryWrite(message.createdAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Timestamp modified_at = 11; */ + if (message.modifiedAt) + Timestamp.internalBinaryWrite(message.modifiedAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1414,7 +1440,20 @@ class DeleteNamespacePermissionResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListNamespacePermissionsResponse", [ - { no: 1, name: "namespace_permissions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => NamespacePermission } + { no: 1, name: "namespace_permissions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NamespacePermission } ]); } create(value?: PartialMessage): ListNamespacePermissionsResponse { @@ -1643,7 +1695,7 @@ export const ListNamespacePermissionGroupsRequest = new ListNamespacePermissionG class ListNamespacePermissionGroupsResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListNamespacePermissionGroupsResponse", [ - { no: 1, name: "groups", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => NamespacePermissionGroup } + { no: 1, name: "groups", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NamespacePermissionGroup } ]); } create(value?: PartialMessage): ListNamespacePermissionGroupsResponse { @@ -1737,7 +1789,7 @@ export const ListNamespacePermissionUsersRequest = new ListNamespacePermissionUs class ListNamespacePermissionUsersResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListNamespacePermissionUsersResponse", [ - { no: 1, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => NamespacePermissionUser } + { no: 1, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NamespacePermissionUser } ]); } create(value?: PartialMessage): ListNamespacePermissionUsersResponse { diff --git a/src/pomerium-console/policy.client.ts b/src/pomerium-console/policy.client.ts index c25605b..01b28e3 100644 --- a/src/pomerium-console/policy.client.ts +++ b/src/pomerium-console/policy.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "policy.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -24,27 +24,27 @@ export interface IPolicyServiceClient { /** * DeletePolicy deletes an existing policy * - * @generated from protobuf rpc: DeletePolicy(pomerium.dashboard.DeletePolicyRequest) returns (pomerium.dashboard.DeletePolicyResponse); + * @generated from protobuf rpc: DeletePolicy */ deletePolicy(input: DeletePolicyRequest, options?: RpcOptions): UnaryCall; /** * GetPolicy retrieves an existing policy * - * @generated from protobuf rpc: GetPolicy(pomerium.dashboard.GetPolicyRequest) returns (pomerium.dashboard.GetPolicyResponse); + * @generated from protobuf rpc: GetPolicy */ getPolicy(input: GetPolicyRequest, options?: RpcOptions): UnaryCall; /** * ListPolicies lists existing policies based on the ListPoliciesRequest * parameters * - * @generated from protobuf rpc: ListPolicies(pomerium.dashboard.ListPoliciesRequest) returns (pomerium.dashboard.ListPoliciesResponse); + * @generated from protobuf rpc: ListPolicies */ listPolicies(input: ListPoliciesRequest, options?: RpcOptions): UnaryCall; /** * SetPolicy creates a new policy or, if the id is specified, updates an * existing policy * - * @generated from protobuf rpc: SetPolicy(pomerium.dashboard.SetPolicyRequest) returns (pomerium.dashboard.SetPolicyResponse); + * @generated from protobuf rpc: SetPolicy */ setPolicy(input: SetPolicyRequest, options?: RpcOptions): UnaryCall; } @@ -62,7 +62,7 @@ export class PolicyServiceClient implements IPolicyServiceClient, ServiceInfo { /** * DeletePolicy deletes an existing policy * - * @generated from protobuf rpc: DeletePolicy(pomerium.dashboard.DeletePolicyRequest) returns (pomerium.dashboard.DeletePolicyResponse); + * @generated from protobuf rpc: DeletePolicy */ deletePolicy(input: DeletePolicyRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -71,7 +71,7 @@ export class PolicyServiceClient implements IPolicyServiceClient, ServiceInfo { /** * GetPolicy retrieves an existing policy * - * @generated from protobuf rpc: GetPolicy(pomerium.dashboard.GetPolicyRequest) returns (pomerium.dashboard.GetPolicyResponse); + * @generated from protobuf rpc: GetPolicy */ getPolicy(input: GetPolicyRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -81,7 +81,7 @@ export class PolicyServiceClient implements IPolicyServiceClient, ServiceInfo { * ListPolicies lists existing policies based on the ListPoliciesRequest * parameters * - * @generated from protobuf rpc: ListPolicies(pomerium.dashboard.ListPoliciesRequest) returns (pomerium.dashboard.ListPoliciesResponse); + * @generated from protobuf rpc: ListPolicies */ listPolicies(input: ListPoliciesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -91,7 +91,7 @@ export class PolicyServiceClient implements IPolicyServiceClient, ServiceInfo { * SetPolicy creates a new policy or, if the id is specified, updates an * existing policy * - * @generated from protobuf rpc: SetPolicy(pomerium.dashboard.SetPolicyRequest) returns (pomerium.dashboard.SetPolicyResponse); + * @generated from protobuf rpc: SetPolicy */ setPolicy(input: SetPolicyRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/policy.ts b/src/pomerium-console/policy.ts index b229cb3..a8d1893 100644 --- a/src/pomerium-console/policy.ts +++ b/src/pomerium-console/policy.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "policy.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -21,43 +21,43 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface Policy { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string namespace_id = 10; + * @generated from protobuf field: string namespace_id = 10 */ namespaceId: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4 */ deletedAt?: Timestamp; /** - * @generated from protobuf field: string name = 5; + * @generated from protobuf field: string name = 5 */ name: string; /** - * @generated from protobuf field: string description = 16; + * @generated from protobuf field: string description = 16 */ description: string; /** - * @generated from protobuf field: repeated string allowed_users = 6; + * @generated from protobuf field: repeated string allowed_users = 6 */ allowedUsers: string[]; /** - * @generated from protobuf field: repeated string allowed_domains = 8; + * @generated from protobuf field: repeated string allowed_domains = 8 */ allowedDomains: string[]; /** - * @generated from protobuf field: map allowed_idp_claims = 14; + * @generated from protobuf field: map allowed_idp_claims = 14 */ allowedIdpClaims: { [key: string]: ListValue; @@ -65,38 +65,38 @@ export interface Policy { /** * custom rego definition in string format * - * @generated from protobuf field: repeated string rego = 9; + * @generated from protobuf field: repeated string rego = 9 */ rego: string[]; /** * PPL definition in JSON format * - * @generated from protobuf field: string ppl = 15; + * @generated from protobuf field: string ppl = 15 */ ppl: string; /** * policy is automatically applied to all routes in namespace_id and child * namespaces * - * @generated from protobuf field: bool enforced = 13; + * @generated from protobuf field: bool enforced = 13 */ enforced: boolean; /** - * @generated from protobuf field: string explanation = 17; + * @generated from protobuf field: string explanation = 17 */ explanation: string; /** - * @generated from protobuf field: string remediation = 18; + * @generated from protobuf field: string remediation = 18 */ remediation: string; /** - * @generated from protobuf field: string originator_id = 19; + * @generated from protobuf field: string originator_id = 19 */ originatorId: string; /** * computed * - * @generated from protobuf field: map routes = 11; + * @generated from protobuf field: map routes = 11 */ routes: { [key: string]: string; @@ -104,7 +104,7 @@ export interface Policy { /** * computed * - * @generated from protobuf field: string namespace_name = 12; + * @generated from protobuf field: string namespace_name = 12 */ namespaceName: string; } @@ -113,7 +113,7 @@ export interface Policy { */ export interface DeletePolicyRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -127,7 +127,7 @@ export interface DeletePolicyResponse { */ export interface GetPolicyRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -136,7 +136,7 @@ export interface GetPolicyRequest { */ export interface GetPolicyResponse { /** - * @generated from protobuf field: pomerium.dashboard.Policy policy = 1; + * @generated from protobuf field: pomerium.dashboard.Policy policy = 1 */ policy?: Policy; } @@ -147,37 +147,37 @@ export interface GetPolicyResponse { */ export interface ListPoliciesRequest { /** - * @generated from protobuf field: string namespace = 1; + * @generated from protobuf field: string namespace = 1 */ namespace: string; /** * list Policies whose name contains the query string * - * @generated from protobuf field: optional string query = 2; + * @generated from protobuf field: optional string query = 2 */ query?: string; /** * list Policies starting from an offset in the total list * - * @generated from protobuf field: optional int64 offset = 3; + * @generated from protobuf field: optional int64 offset = 3 */ offset?: bigint; /** * limit the number of entries returned * - * @generated from protobuf field: optional int64 limit = 4; + * @generated from protobuf field: optional int64 limit = 4 */ limit?: bigint; /** * sort the Policies by newest, oldest or name * - * @generated from protobuf field: optional string order_by = 5; + * @generated from protobuf field: optional string order_by = 5 */ orderBy?: string; /** * list Policies belonging to the cluster, or the default cluster if not set * - * @generated from protobuf field: optional string cluster_id = 6; + * @generated from protobuf field: optional string cluster_id = 6 */ clusterId?: string; } @@ -188,11 +188,11 @@ export interface ListPoliciesRequest { */ export interface ListPoliciesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.Policy policies = 1; + * @generated from protobuf field: repeated pomerium.dashboard.Policy policies = 1 */ policies: Policy[]; /** - * @generated from protobuf field: int64 total_count = 2; + * @generated from protobuf field: int64 total_count = 2 */ totalCount: bigint; } @@ -201,7 +201,7 @@ export interface ListPoliciesResponse { */ export interface SetPolicyRequest { /** - * @generated from protobuf field: pomerium.dashboard.Policy policy = 1; + * @generated from protobuf field: pomerium.dashboard.Policy policy = 1 */ policy?: Policy; } @@ -210,7 +210,7 @@ export interface SetPolicyRequest { */ export interface SetPolicyResponse { /** - * @generated from protobuf field: pomerium.dashboard.Policy policy = 1; + * @generated from protobuf field: pomerium.dashboard.Policy policy = 1 */ policy?: Policy; } @@ -340,7 +340,7 @@ class Policy$Type extends MessageType { case 2: val = ListValue.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.Policy.allowed_idp_claims"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.Policy.allowed_idp_claims"); } } map[key ?? ""] = val ?? ListValue.create(); @@ -356,7 +356,7 @@ class Policy$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.Policy.routes"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.Policy.routes"); } } map[key ?? ""] = val ?? ""; @@ -365,9 +365,6 @@ class Policy$Type extends MessageType { /* string id = 1; */ if (message.id !== "") writer.tag(1, WireType.LengthDelimited).string(message.id); - /* string namespace_id = 10; */ - if (message.namespaceId !== "") - writer.tag(10, WireType.LengthDelimited).string(message.namespaceId); /* google.protobuf.Timestamp created_at = 2; */ if (message.createdAt) Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); @@ -380,15 +377,27 @@ class Policy$Type extends MessageType { /* string name = 5; */ if (message.name !== "") writer.tag(5, WireType.LengthDelimited).string(message.name); - /* string description = 16; */ - if (message.description !== "") - writer.tag(16, WireType.LengthDelimited).string(message.description); /* repeated string allowed_users = 6; */ for (let i = 0; i < message.allowedUsers.length; i++) writer.tag(6, WireType.LengthDelimited).string(message.allowedUsers[i]); /* repeated string allowed_domains = 8; */ for (let i = 0; i < message.allowedDomains.length; i++) writer.tag(8, WireType.LengthDelimited).string(message.allowedDomains[i]); + /* repeated string rego = 9; */ + for (let i = 0; i < message.rego.length; i++) + writer.tag(9, WireType.LengthDelimited).string(message.rego[i]); + /* string namespace_id = 10; */ + if (message.namespaceId !== "") + writer.tag(10, WireType.LengthDelimited).string(message.namespaceId); + /* map routes = 11; */ + for (let k of globalThis.Object.keys(message.routes)) + writer.tag(11, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.routes[k]).join(); + /* string namespace_name = 12; */ + if (message.namespaceName !== "") + writer.tag(12, WireType.LengthDelimited).string(message.namespaceName); + /* bool enforced = 13; */ + if (message.enforced !== false) + writer.tag(13, WireType.Varint).bool(message.enforced); /* map allowed_idp_claims = 14; */ for (let k of globalThis.Object.keys(message.allowedIdpClaims)) { writer.tag(14, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k); @@ -396,15 +405,12 @@ class Policy$Type extends MessageType { ListValue.internalBinaryWrite(message.allowedIdpClaims[k], writer, options); writer.join().join(); } - /* repeated string rego = 9; */ - for (let i = 0; i < message.rego.length; i++) - writer.tag(9, WireType.LengthDelimited).string(message.rego[i]); /* string ppl = 15; */ if (message.ppl !== "") writer.tag(15, WireType.LengthDelimited).string(message.ppl); - /* bool enforced = 13; */ - if (message.enforced !== false) - writer.tag(13, WireType.Varint).bool(message.enforced); + /* string description = 16; */ + if (message.description !== "") + writer.tag(16, WireType.LengthDelimited).string(message.description); /* string explanation = 17; */ if (message.explanation !== "") writer.tag(17, WireType.LengthDelimited).string(message.explanation); @@ -414,12 +420,6 @@ class Policy$Type extends MessageType { /* string originator_id = 19; */ if (message.originatorId !== "") writer.tag(19, WireType.LengthDelimited).string(message.originatorId); - /* map routes = 11; */ - for (let k of globalThis.Object.keys(message.routes)) - writer.tag(11, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.routes[k]).join(); - /* string namespace_name = 12; */ - if (message.namespaceName !== "") - writer.tag(12, WireType.LengthDelimited).string(message.namespaceName); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -489,7 +489,20 @@ class DeletePolicyResponse$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePolicyResponse): DeletePolicyResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: DeletePolicyResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -681,7 +694,7 @@ export const ListPoliciesRequest = new ListPoliciesRequest$Type(); class ListPoliciesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListPoliciesResponse", [ - { no: 1, name: "policies", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Policy }, + { no: 1, name: "policies", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Policy }, { no: 2, name: "total_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ]); } diff --git a/src/pomerium-console/report.client.ts b/src/pomerium-console/report.client.ts index 9089cb3..34a8e6c 100644 --- a/src/pomerium-console/report.client.ts +++ b/src/pomerium-console/report.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "report.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -16,7 +16,7 @@ export interface IReportClient { /** * PolicyReport generates a policy report * - * @generated from protobuf rpc: PolicyReport(pomerium.dashboard.PolicyReportRequest) returns (pomerium.dashboard.PolicyReportResponse); + * @generated from protobuf rpc: PolicyReport */ policyReport(input: PolicyReportRequest, options?: RpcOptions): UnaryCall; } @@ -32,7 +32,7 @@ export class ReportClient implements IReportClient, ServiceInfo { /** * PolicyReport generates a policy report * - * @generated from protobuf rpc: PolicyReport(pomerium.dashboard.PolicyReportRequest) returns (pomerium.dashboard.PolicyReportResponse); + * @generated from protobuf rpc: PolicyReport */ policyReport(input: PolicyReportRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/report.ts b/src/pomerium-console/report.ts index fc4bb42..0970f5f 100644 --- a/src/pomerium-console/report.ts +++ b/src/pomerium-console/report.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "report.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -21,11 +21,11 @@ import { Route } from "./routes"; */ export interface PolicyReportRequest { /** - * @generated from protobuf field: repeated string route_ids = 1; + * @generated from protobuf field: repeated string route_ids = 1 */ routeIds: string[]; /** - * @generated from protobuf field: string namespace_id = 2; + * @generated from protobuf field: string namespace_id = 2 */ namespaceId: string; } @@ -34,11 +34,11 @@ export interface PolicyReportRequest { */ export interface PolicyReportResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1; + * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1 */ routes: Route[]; /** - * @generated from protobuf field: repeated pomerium.dashboard.Policy policies = 2; + * @generated from protobuf field: repeated pomerium.dashboard.Policy policies = 2 */ policies: Policy[]; } @@ -101,8 +101,8 @@ export const PolicyReportRequest = new PolicyReportRequest$Type(); class PolicyReportResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.PolicyReportResponse", [ - { no: 1, name: "routes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Route }, - { no: 2, name: "policies", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Policy } + { no: 1, name: "routes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Route }, + { no: 2, name: "policies", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Policy } ]); } create(value?: PartialMessage): PolicyReportResponse { diff --git a/src/pomerium-console/route_health_check.ts b/src/pomerium-console/route_health_check.ts index ad4da47..6b686fb 100644 --- a/src/pomerium-console/route_health_check.ts +++ b/src/pomerium-console/route_health_check.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "route_health_check.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable // @@ -232,13 +232,13 @@ export interface HealthCheck { * The time to wait for a health check response. If the timeout is reached the * health check attempt will be considered a failure. * - * @generated from protobuf field: google.protobuf.Duration timeout = 1; + * @generated from protobuf field: google.protobuf.Duration timeout = 1 */ timeout?: Duration; /** * The interval between health checks. * - * @generated from protobuf field: google.protobuf.Duration interval = 2; + * @generated from protobuf field: google.protobuf.Duration interval = 2 */ interval?: Duration; /** @@ -246,14 +246,14 @@ export interface HealthCheck { * health checking after for a random time in ms between 0 and initial_jitter. * This only applies to the first health check. * - * @generated from protobuf field: google.protobuf.Duration initial_jitter = 20; + * @generated from protobuf field: google.protobuf.Duration initial_jitter = 20 */ initialJitter?: Duration; /** * An optional jitter amount in milliseconds. If specified, during every * interval Envoy will add interval_jitter to the wait time. * - * @generated from protobuf field: google.protobuf.Duration interval_jitter = 3; + * @generated from protobuf field: google.protobuf.Duration interval_jitter = 3 */ intervalJitter?: Duration; /** @@ -264,7 +264,7 @@ export interface HealthCheck { * If interval_jitter_ms and interval_jitter_percent are both set, both of * them will be used to increase the wait time. * - * @generated from protobuf field: uint32 interval_jitter_percent = 18; + * @generated from protobuf field: uint32 interval_jitter_percent = 18 */ intervalJitterPercent: number; /** @@ -276,7 +276,7 @@ export interface HealthCheck { * `, * this threshold is ignored and the host is considered immediately unhealthy. * - * @generated from protobuf field: uint32 unhealthy_threshold = 4; + * @generated from protobuf field: uint32 unhealthy_threshold = 4 */ unhealthyThreshold: number; /** @@ -284,7 +284,7 @@ export interface HealthCheck { * healthy. Note that during startup, only a single successful health check is * required to mark a host healthy. * - * @generated from protobuf field: uint32 healthy_threshold = 5; + * @generated from protobuf field: uint32 healthy_threshold = 5 */ healthyThreshold: number; /** @@ -295,7 +295,7 @@ export interface HealthCheck { /** * HTTP health check. * - * @generated from protobuf field: pomerium.dashboard.HealthCheck.HttpHealthCheck http_health_check = 8; + * @generated from protobuf field: pomerium.dashboard.HealthCheck.HttpHealthCheck http_health_check = 8 */ httpHealthCheck: HealthCheck_HttpHealthCheck; } | { @@ -303,7 +303,7 @@ export interface HealthCheck { /** * TCP health check. * - * @generated from protobuf field: pomerium.dashboard.HealthCheck.TcpHealthCheck tcp_health_check = 9; + * @generated from protobuf field: pomerium.dashboard.HealthCheck.TcpHealthCheck tcp_health_check = 9 */ tcpHealthCheck: HealthCheck_TcpHealthCheck; } | { @@ -311,7 +311,7 @@ export interface HealthCheck { /** * gRPC health check. * - * @generated from protobuf field: pomerium.dashboard.HealthCheck.GrpcHealthCheck grpc_health_check = 11; + * @generated from protobuf field: pomerium.dashboard.HealthCheck.GrpcHealthCheck grpc_health_check = 11 */ grpcHealthCheck: HealthCheck_GrpcHealthCheck; } | { @@ -332,7 +332,7 @@ export interface HealthCheck_Payload { /** * Hex encoded payload. E.g., "000000FF". * - * @generated from protobuf field: string text = 1; + * @generated from protobuf field: string text = 1 */ text: string; } | { @@ -340,7 +340,7 @@ export interface HealthCheck_Payload { /** * Binary payload. * - * @generated from protobuf field: bytes binary = 2; + * @generated from protobuf field: bytes binary = 2 */ binary: Uint8Array; } | { @@ -361,7 +361,7 @@ export interface HealthCheck_HttpHealthCheck { * ` * field. * - * @generated from protobuf field: string host = 1; + * @generated from protobuf field: string host = 1 */ host: string; /** @@ -369,7 +369,7 @@ export interface HealthCheck_HttpHealthCheck { * For example * ``/healthcheck``. * - * @generated from protobuf field: string path = 2; + * @generated from protobuf field: string path = 2 */ path: string; /** @@ -380,7 +380,7 @@ export interface HealthCheck_HttpHealthCheck { * end of each range are required. Only statuses in the range [100, 600) are * allowed. * - * @generated from protobuf field: repeated pomerium.dashboard.Int64Range expected_statuses = 9; + * @generated from protobuf field: repeated pomerium.dashboard.Int64Range expected_statuses = 9 */ expectedStatuses: Int64Range[]; /** @@ -404,13 +404,13 @@ export interface HealthCheck_HttpHealthCheck { * statuses, any non-200 response will result in the host being marked * unhealthy. * - * @generated from protobuf field: repeated pomerium.dashboard.Int64Range retriable_statuses = 12; + * @generated from protobuf field: repeated pomerium.dashboard.Int64Range retriable_statuses = 12 */ retriableStatuses: Int64Range[]; /** * Use specified application protocol for health checks. * - * @generated from protobuf field: pomerium.dashboard.CodecClientType codec_client_type = 10; + * @generated from protobuf field: pomerium.dashboard.CodecClientType codec_client_type = 10 */ codecClientType: CodecClientType; } @@ -421,7 +421,7 @@ export interface HealthCheck_TcpHealthCheck { /** * Empty payloads imply a connect-only health check. * - * @generated from protobuf field: pomerium.dashboard.HealthCheck.Payload send = 1; + * @generated from protobuf field: pomerium.dashboard.HealthCheck.Payload send = 1 */ send?: HealthCheck_Payload; /** @@ -429,7 +429,7 @@ export interface HealthCheck_TcpHealthCheck { * payload block must be found, and in the order specified, but not * necessarily contiguous. * - * @generated from protobuf field: repeated pomerium.dashboard.HealthCheck.Payload receive = 2; + * @generated from protobuf field: repeated pomerium.dashboard.HealthCheck.Payload receive = 2 */ receive: HealthCheck_Payload[]; } @@ -451,7 +451,7 @@ export interface HealthCheck_GrpcHealthCheck { * `_ for * more information. * - * @generated from protobuf field: string service_name = 1; + * @generated from protobuf field: string service_name = 1 */ serviceName: string; /** @@ -462,7 +462,7 @@ export interface HealthCheck_GrpcHealthCheck { * ` * field. * - * @generated from protobuf field: string authority = 2; + * @generated from protobuf field: string authority = 2 */ authority: string; } @@ -554,15 +554,9 @@ class HealthCheck$Type extends MessageType { /* google.protobuf.Duration interval = 2; */ if (message.interval) Duration.internalBinaryWrite(message.interval, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Duration initial_jitter = 20; */ - if (message.initialJitter) - Duration.internalBinaryWrite(message.initialJitter, writer.tag(20, WireType.LengthDelimited).fork(), options).join(); /* google.protobuf.Duration interval_jitter = 3; */ if (message.intervalJitter) Duration.internalBinaryWrite(message.intervalJitter, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* uint32 interval_jitter_percent = 18; */ - if (message.intervalJitterPercent !== 0) - writer.tag(18, WireType.Varint).uint32(message.intervalJitterPercent); /* uint32 unhealthy_threshold = 4; */ if (message.unhealthyThreshold !== 0) writer.tag(4, WireType.Varint).uint32(message.unhealthyThreshold); @@ -578,6 +572,12 @@ class HealthCheck$Type extends MessageType { /* pomerium.dashboard.HealthCheck.GrpcHealthCheck grpc_health_check = 11; */ if (message.healthChecker.oneofKind === "grpcHealthCheck") HealthCheck_GrpcHealthCheck.internalBinaryWrite(message.healthChecker.grpcHealthCheck, writer.tag(11, WireType.LengthDelimited).fork(), options).join(); + /* uint32 interval_jitter_percent = 18; */ + if (message.intervalJitterPercent !== 0) + writer.tag(18, WireType.Varint).uint32(message.intervalJitterPercent); + /* google.protobuf.Duration initial_jitter = 20; */ + if (message.initialJitter) + Duration.internalBinaryWrite(message.initialJitter, writer.tag(20, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -654,8 +654,8 @@ class HealthCheck_HttpHealthCheck$Type extends MessageType Int64Range }, - { no: 12, name: "retriable_statuses", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Int64Range }, + { no: 9, name: "expected_statuses", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Int64Range }, + { no: 12, name: "retriable_statuses", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Int64Range }, { no: 10, name: "codec_client_type", kind: "enum", T: () => ["pomerium.dashboard.CodecClientType", CodecClientType], options: { "validate.rules": { enum: { definedOnly: true } } } } ]); } @@ -711,12 +711,12 @@ class HealthCheck_HttpHealthCheck$Type extends MessageType HealthCheck_Payload }, - { no: 2, name: "receive", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => HealthCheck_Payload } + { no: 2, name: "receive", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HealthCheck_Payload } ]); } create(value?: PartialMessage): HealthCheck_TcpHealthCheck { diff --git a/src/pomerium-console/route_redirect_action.ts b/src/pomerium-console/route_redirect_action.ts index a79f785..91b07fa 100644 --- a/src/pomerium-console/route_redirect_action.ts +++ b/src/pomerium-console/route_redirect_action.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "route_redirect_action.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable // @@ -227,6 +227,12 @@ import { MessageType } from "@protobuf-ts/runtime"; */ export interface RedirectAction { /** + * When the scheme redirection take place, the following rules apply: + * 1. If the source URI scheme is ``http`` and the port is explicitly + * set to ``:80``, the port will be removed after the redirection + * 2. If the source URI scheme is ``https`` and the port is explicitly + * set to ``:443``, the port will be removed after the redirection + * * @generated from protobuf oneof: scheme_rewrite_specifier */ schemeRewriteSpecifier: { @@ -234,7 +240,7 @@ export interface RedirectAction { /** * The scheme portion of the URL will be swapped with "https". * - * @generated from protobuf field: bool https_redirect = 4; + * @generated from protobuf field: bool https_redirect = 4 */ httpsRedirect: boolean; } | { @@ -242,7 +248,7 @@ export interface RedirectAction { /** * The scheme portion of the URL will be swapped with this value. * - * @generated from protobuf field: string scheme_redirect = 7; + * @generated from protobuf field: string scheme_redirect = 7 */ schemeRedirect: string; } | { @@ -251,13 +257,13 @@ export interface RedirectAction { /** * The host portion of the URL will be swapped with this value. * - * @generated from protobuf field: string host_redirect = 1; + * @generated from protobuf field: string host_redirect = 1 */ hostRedirect: string; /** * The port value of the URL will be swapped with this value. * - * @generated from protobuf field: uint32 port_redirect = 8; + * @generated from protobuf field: uint32 port_redirect = 8 */ portRedirect: number; /** @@ -286,7 +292,7 @@ export interface RedirectAction { * 3. if request uri is "/old-path-3?bar=1", users will be redirected to * "/new-path-3?foo=1" * - * @generated from protobuf field: string path_redirect = 2; + * @generated from protobuf field: string path_redirect = 2 */ pathRedirect: string; } | { @@ -302,7 +308,7 @@ export interface RedirectAction { * :ref:`RouteAction's prefix_rewrite * `. * - * @generated from protobuf field: string prefix_rewrite = 5; + * @generated from protobuf field: string prefix_rewrite = 5 */ prefixRewrite: string; } | { @@ -335,7 +341,7 @@ export interface RedirectAction { * to * ``/aaa/yyy/bbb``. * - * @generated from protobuf field: pomerium.dashboard.RedirectAction.RegexMatchAndSubstitute regex_rewrite = 9; + * @generated from protobuf field: pomerium.dashboard.RedirectAction.RegexMatchAndSubstitute regex_rewrite = 9 */ regexRewrite: RedirectAction_RegexMatchAndSubstitute; } | { @@ -345,14 +351,14 @@ export interface RedirectAction { * The HTTP status code to use in the redirect response. The default response * code is MOVED_PERMANENTLY (301). * - * @generated from protobuf field: pomerium.dashboard.RedirectAction.RedirectResponseCode response_code = 3; + * @generated from protobuf field: pomerium.dashboard.RedirectAction.RedirectResponseCode response_code = 3 */ responseCode: RedirectAction_RedirectResponseCode; /** * Indicates that during redirection, the query portion of the URL will * be removed. Default value is false. * - * @generated from protobuf field: bool strip_query = 6; + * @generated from protobuf field: bool strip_query = 6 */ stripQuery: boolean; } @@ -374,7 +380,7 @@ export interface RedirectAction_RegexMatchAndSubstitute { * groups can be used in the pattern to extract portions of the subject * string, and then referenced in the substitution string. * - * @generated from protobuf field: string pattern = 1; + * @generated from protobuf field: string pattern = 1 */ pattern: string; /** @@ -388,7 +394,7 @@ export interface RedirectAction_RegexMatchAndSubstitute { * capture group. E.g., ``\1`` refers to capture group 1, and ``\2`` refers * to capture group 2. * - * @generated from protobuf field: string substitution = 2; + * @generated from protobuf field: string substitution = 2 */ substitution: string; } @@ -513,33 +519,33 @@ class RedirectAction$Type extends MessageType { return message; } internalBinaryWrite(message: RedirectAction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* bool https_redirect = 4; */ - if (message.schemeRewriteSpecifier.oneofKind === "httpsRedirect") - writer.tag(4, WireType.Varint).bool(message.schemeRewriteSpecifier.httpsRedirect); - /* string scheme_redirect = 7; */ - if (message.schemeRewriteSpecifier.oneofKind === "schemeRedirect") - writer.tag(7, WireType.LengthDelimited).string(message.schemeRewriteSpecifier.schemeRedirect); /* string host_redirect = 1; */ if (message.hostRedirect !== "") writer.tag(1, WireType.LengthDelimited).string(message.hostRedirect); - /* uint32 port_redirect = 8; */ - if (message.portRedirect !== 0) - writer.tag(8, WireType.Varint).uint32(message.portRedirect); /* string path_redirect = 2; */ if (message.pathRewriteSpecifier.oneofKind === "pathRedirect") writer.tag(2, WireType.LengthDelimited).string(message.pathRewriteSpecifier.pathRedirect); - /* string prefix_rewrite = 5; */ - if (message.pathRewriteSpecifier.oneofKind === "prefixRewrite") - writer.tag(5, WireType.LengthDelimited).string(message.pathRewriteSpecifier.prefixRewrite); - /* pomerium.dashboard.RedirectAction.RegexMatchAndSubstitute regex_rewrite = 9; */ - if (message.pathRewriteSpecifier.oneofKind === "regexRewrite") - RedirectAction_RegexMatchAndSubstitute.internalBinaryWrite(message.pathRewriteSpecifier.regexRewrite, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); /* pomerium.dashboard.RedirectAction.RedirectResponseCode response_code = 3; */ if (message.responseCode !== 0) writer.tag(3, WireType.Varint).int32(message.responseCode); + /* bool https_redirect = 4; */ + if (message.schemeRewriteSpecifier.oneofKind === "httpsRedirect") + writer.tag(4, WireType.Varint).bool(message.schemeRewriteSpecifier.httpsRedirect); + /* string prefix_rewrite = 5; */ + if (message.pathRewriteSpecifier.oneofKind === "prefixRewrite") + writer.tag(5, WireType.LengthDelimited).string(message.pathRewriteSpecifier.prefixRewrite); /* bool strip_query = 6; */ if (message.stripQuery !== false) writer.tag(6, WireType.Varint).bool(message.stripQuery); + /* string scheme_redirect = 7; */ + if (message.schemeRewriteSpecifier.oneofKind === "schemeRedirect") + writer.tag(7, WireType.LengthDelimited).string(message.schemeRewriteSpecifier.schemeRedirect); + /* uint32 port_redirect = 8; */ + if (message.portRedirect !== 0) + writer.tag(8, WireType.Varint).uint32(message.portRedirect); + /* pomerium.dashboard.RedirectAction.RegexMatchAndSubstitute regex_rewrite = 9; */ + if (message.pathRewriteSpecifier.oneofKind === "regexRewrite") + RedirectAction_RegexMatchAndSubstitute.internalBinaryWrite(message.pathRewriteSpecifier.regexRewrite, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/src/pomerium-console/routes.client.ts b/src/pomerium-console/routes.client.ts index 2664247..7566c2c 100644 --- a/src/pomerium-console/routes.client.ts +++ b/src/pomerium-console/routes.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "routes.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -32,49 +32,49 @@ export interface IRouteServiceClient { /** * DeleteRoute removes an existing route * - * @generated from protobuf rpc: DeleteRoute(pomerium.dashboard.DeleteRouteRequest) returns (pomerium.dashboard.DeleteRouteResponse); + * @generated from protobuf rpc: DeleteRoute */ deleteRoute(input: DeleteRouteRequest, options?: RpcOptions): UnaryCall; /** * DeleteRoutes removes existing routes. * - * @generated from protobuf rpc: DeleteRoutes(pomerium.dashboard.DeleteRoutesRequest) returns (pomerium.dashboard.DeleteRoutesResponse); + * @generated from protobuf rpc: DeleteRoutes */ deleteRoutes(input: DeleteRoutesRequest, options?: RpcOptions): UnaryCall; /** * GetRoute retrieves an existing route * - * @generated from protobuf rpc: GetRoute(pomerium.dashboard.GetRouteRequest) returns (pomerium.dashboard.GetRouteResponse); + * @generated from protobuf rpc: GetRoute */ getRoute(input: GetRouteRequest, options?: RpcOptions): UnaryCall; /** * ListRoutes lists routes based on ListRoutesRequest * - * @generated from protobuf rpc: ListRoutes(pomerium.dashboard.ListRoutesRequest) returns (pomerium.dashboard.ListRoutesResponse); + * @generated from protobuf rpc: ListRoutes */ listRoutes(input: ListRoutesRequest, options?: RpcOptions): UnaryCall; /** * LoadRoutes imports routes from an existing OSS configuration * - * @generated from protobuf rpc: LoadRoutes(pomerium.dashboard.LoadRoutesRequest) returns (pomerium.dashboard.LoadRoutesResponse); + * @generated from protobuf rpc: LoadRoutes */ loadRoutes(input: LoadRoutesRequest, options?: RpcOptions): UnaryCall; /** * SetRoute creates or, if id is defined, updates an existing route * - * @generated from protobuf rpc: SetRoute(pomerium.dashboard.SetRouteRequest) returns (pomerium.dashboard.SetRouteResponse); + * @generated from protobuf rpc: SetRoute */ setRoute(input: SetRouteRequest, options?: RpcOptions): UnaryCall; /** * SetRoutes creates or, if id is defined, updates existing routes * - * @generated from protobuf rpc: SetRoutes(pomerium.dashboard.SetRoutesRequest) returns (pomerium.dashboard.SetRoutesResponse); + * @generated from protobuf rpc: SetRoutes */ setRoutes(input: SetRoutesRequest, options?: RpcOptions): UnaryCall; /** * MoveRoutes takes an array of routeIds and moves them to a new namespace * - * @generated from protobuf rpc: MoveRoutes(pomerium.dashboard.MoveRoutesRequest) returns (pomerium.dashboard.MoveRoutesResponse); + * @generated from protobuf rpc: MoveRoutes */ moveRoutes(input: MoveRoutesRequest, options?: RpcOptions): UnaryCall; } @@ -92,7 +92,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * DeleteRoute removes an existing route * - * @generated from protobuf rpc: DeleteRoute(pomerium.dashboard.DeleteRouteRequest) returns (pomerium.dashboard.DeleteRouteResponse); + * @generated from protobuf rpc: DeleteRoute */ deleteRoute(input: DeleteRouteRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -101,7 +101,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * DeleteRoutes removes existing routes. * - * @generated from protobuf rpc: DeleteRoutes(pomerium.dashboard.DeleteRoutesRequest) returns (pomerium.dashboard.DeleteRoutesResponse); + * @generated from protobuf rpc: DeleteRoutes */ deleteRoutes(input: DeleteRoutesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -110,7 +110,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * GetRoute retrieves an existing route * - * @generated from protobuf rpc: GetRoute(pomerium.dashboard.GetRouteRequest) returns (pomerium.dashboard.GetRouteResponse); + * @generated from protobuf rpc: GetRoute */ getRoute(input: GetRouteRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -119,7 +119,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * ListRoutes lists routes based on ListRoutesRequest * - * @generated from protobuf rpc: ListRoutes(pomerium.dashboard.ListRoutesRequest) returns (pomerium.dashboard.ListRoutesResponse); + * @generated from protobuf rpc: ListRoutes */ listRoutes(input: ListRoutesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); @@ -128,7 +128,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * LoadRoutes imports routes from an existing OSS configuration * - * @generated from protobuf rpc: LoadRoutes(pomerium.dashboard.LoadRoutesRequest) returns (pomerium.dashboard.LoadRoutesResponse); + * @generated from protobuf rpc: LoadRoutes */ loadRoutes(input: LoadRoutesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); @@ -137,7 +137,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * SetRoute creates or, if id is defined, updates an existing route * - * @generated from protobuf rpc: SetRoute(pomerium.dashboard.SetRouteRequest) returns (pomerium.dashboard.SetRouteResponse); + * @generated from protobuf rpc: SetRoute */ setRoute(input: SetRouteRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); @@ -146,7 +146,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * SetRoutes creates or, if id is defined, updates existing routes * - * @generated from protobuf rpc: SetRoutes(pomerium.dashboard.SetRoutesRequest) returns (pomerium.dashboard.SetRoutesResponse); + * @generated from protobuf rpc: SetRoutes */ setRoutes(input: SetRoutesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); @@ -155,7 +155,7 @@ export class RouteServiceClient implements IRouteServiceClient, ServiceInfo { /** * MoveRoutes takes an array of routeIds and moves them to a new namespace * - * @generated from protobuf rpc: MoveRoutes(pomerium.dashboard.MoveRoutesRequest) returns (pomerium.dashboard.MoveRoutesResponse); + * @generated from protobuf rpc: MoveRoutes */ moveRoutes(input: MoveRoutesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/routes.ts b/src/pomerium-console/routes.ts index 069baf8..f98b5e7 100644 --- a/src/pomerium-console/routes.ts +++ b/src/pomerium-console/routes.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "routes.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -21,7 +21,7 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface RouteRewriteHeader { /** - * @generated from protobuf field: string header = 1; + * @generated from protobuf field: string header = 1 */ header: string; /** @@ -30,14 +30,14 @@ export interface RouteRewriteHeader { matcher: { oneofKind: "prefix"; /** - * @generated from protobuf field: string prefix = 3; + * @generated from protobuf field: string prefix = 3 */ prefix: string; } | { oneofKind: undefined; }; /** - * @generated from protobuf field: string value = 2; + * @generated from protobuf field: string value = 2 */ value: string; } @@ -46,11 +46,11 @@ export interface RouteRewriteHeader { */ export interface RouteDirectResponse { /** - * @generated from protobuf field: uint32 status = 1; + * @generated from protobuf field: uint32 status = 1 */ status: number; /** - * @generated from protobuf field: string body = 2; + * @generated from protobuf field: string body = 2 */ body: string; } @@ -61,13 +61,13 @@ export interface JwtGroupsFilter { /** * Explicit list of group IDs/names to include. * - * @generated from protobuf field: repeated string groups = 1; + * @generated from protobuf field: repeated string groups = 1 */ groups: string[]; /** * Infer group IDs/names based on PPL groups criteria. * - * @generated from protobuf field: optional bool infer_from_ppl = 2; + * @generated from protobuf field: optional bool infer_from_ppl = 2 */ inferFromPpl?: boolean; } @@ -81,7 +81,7 @@ export interface CircuitBreakerThresholds { * The maximum number of connections that Envoy will make to the upstream * cluster. If not specified, the default is 1024. * - * @generated from protobuf field: optional uint32 max_connections = 1; + * @generated from protobuf field: optional uint32 max_connections = 1 */ maxConnections?: number; /** @@ -89,7 +89,7 @@ export interface CircuitBreakerThresholds { * upstream cluster. If not specified, the default is 1024. This limit is * applied as a connection limit for non-HTTP traffic. * - * @generated from protobuf field: optional uint32 max_pending_requests = 2; + * @generated from protobuf field: optional uint32 max_pending_requests = 2 */ maxPendingRequests?: number; /** @@ -97,14 +97,14 @@ export interface CircuitBreakerThresholds { * upstream cluster. If not specified, the default is 1024. This limit does * not apply to non-HTTP traffic. * - * @generated from protobuf field: optional uint32 max_requests = 3; + * @generated from protobuf field: optional uint32 max_requests = 3 */ maxRequests?: number; /** * The maximum number of parallel retries that Envoy will allow to the * upstream cluster. If not specified, the default is 3. * - * @generated from protobuf field: optional uint32 max_retries = 4; + * @generated from protobuf field: optional uint32 max_retries = 4 */ maxRetries?: number; /** @@ -112,7 +112,7 @@ export interface CircuitBreakerThresholds { * concurrently support at once. If not specified, the default is unlimited. * Set this for clusters which create a large number of connection pools. * - * @generated from protobuf field: optional uint32 max_connection_pools = 5; + * @generated from protobuf field: optional uint32 max_connection_pools = 5 */ maxConnectionPools?: number; } @@ -128,13 +128,13 @@ export interface MCP { mode: { oneofKind: "server"; /** - * @generated from protobuf field: pomerium.dashboard.MCPServer server = 1; + * @generated from protobuf field: pomerium.dashboard.MCPServer server = 1 */ server: MCPServer; } | { oneofKind: "client"; /** - * @generated from protobuf field: pomerium.dashboard.MCPClient client = 2; + * @generated from protobuf field: pomerium.dashboard.MCPClient client = 2 */ client: MCPClient; } | { @@ -148,15 +148,15 @@ export interface MCP { */ export interface MCPServer { /** - * @generated from protobuf field: optional pomerium.dashboard.UpstreamOAuth2 upstream_oauth2 = 1; + * @generated from protobuf field: optional pomerium.dashboard.UpstreamOAuth2 upstream_oauth2 = 1 */ upstreamOauth2?: UpstreamOAuth2; /** - * @generated from protobuf field: optional uint32 max_request_bytes = 2; + * @generated from protobuf field: optional uint32 max_request_bytes = 2 */ maxRequestBytes?: number; /** - * @generated from protobuf field: optional string path = 3; + * @generated from protobuf field: optional string path = 3 */ path?: string; } @@ -174,19 +174,19 @@ export interface MCPClient { */ export interface UpstreamOAuth2 { /** - * @generated from protobuf field: string client_id = 1; + * @generated from protobuf field: string client_id = 1 */ clientId: string; /** - * @generated from protobuf field: string client_secret = 2; + * @generated from protobuf field: string client_secret = 2 */ clientSecret: string; /** - * @generated from protobuf field: pomerium.dashboard.OAuth2Endpoint oauth2_endpoint = 3; + * @generated from protobuf field: pomerium.dashboard.OAuth2Endpoint oauth2_endpoint = 3 */ oauth2Endpoint?: OAuth2Endpoint; /** - * @generated from protobuf field: repeated string scopes = 4; + * @generated from protobuf field: repeated string scopes = 4 */ scopes: string[]; } @@ -197,15 +197,15 @@ export interface UpstreamOAuth2 { */ export interface OAuth2Endpoint { /** - * @generated from protobuf field: string auth_url = 1; + * @generated from protobuf field: string auth_url = 1 */ authUrl: string; /** - * @generated from protobuf field: string token_url = 2; + * @generated from protobuf field: string token_url = 2 */ tokenUrl: string; /** - * @generated from protobuf field: optional pomerium.dashboard.OAuth2AuthStyle auth_style = 3; + * @generated from protobuf field: optional pomerium.dashboard.OAuth2AuthStyle auth_style = 3 */ authStyle?: OAuth2AuthStyle; } @@ -217,275 +217,275 @@ export interface OAuth2Endpoint { */ export interface Route { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string namespace_id = 29; + * @generated from protobuf field: string namespace_id = 29 */ namespaceId: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 2; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 2 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 3 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp deleted_at = 4 */ deletedAt?: Timestamp; /** - * @generated from protobuf field: string name = 5; + * @generated from protobuf field: string name = 5 */ name: string; /** - * @generated from protobuf field: optional string description = 65; + * @generated from protobuf field: optional string description = 65 */ description?: string; /** - * @generated from protobuf field: optional string logo_url = 66; + * @generated from protobuf field: optional string logo_url = 66 */ logoUrl?: string; /** * name for prometheus stats, computed on first save * - * @generated from protobuf field: string stat_name = 47; + * @generated from protobuf field: string stat_name = 47 */ statName: string; /** - * @generated from protobuf field: string from = 6; + * @generated from protobuf field: string from = 6 */ from: string; /** - * @generated from protobuf field: repeated string to = 7; + * @generated from protobuf field: repeated string to = 7 */ to: string[]; /** - * @generated from protobuf field: pomerium.dashboard.RedirectAction redirect = 67; + * @generated from protobuf field: pomerium.dashboard.RedirectAction redirect = 67 */ redirect?: RedirectAction; /** - * @generated from protobuf field: pomerium.dashboard.RouteDirectResponse response = 59; + * @generated from protobuf field: pomerium.dashboard.RouteDirectResponse response = 59 */ response?: RouteDirectResponse; /** - * @generated from protobuf field: optional string prefix = 8; + * @generated from protobuf field: optional string prefix = 8 */ prefix?: string; /** - * @generated from protobuf field: optional string path = 9; + * @generated from protobuf field: optional string path = 9 */ path?: string; /** - * @generated from protobuf field: optional string regex = 10; + * @generated from protobuf field: optional string regex = 10 */ regex?: string; /** - * @generated from protobuf field: optional string prefix_rewrite = 36; + * @generated from protobuf field: optional string prefix_rewrite = 36 */ prefixRewrite?: string; /** - * @generated from protobuf field: optional string regex_rewrite_pattern = 37; + * @generated from protobuf field: optional string regex_rewrite_pattern = 37 */ regexRewritePattern?: string; /** - * @generated from protobuf field: optional string regex_rewrite_substitution = 38; + * @generated from protobuf field: optional string regex_rewrite_substitution = 38 */ regexRewriteSubstitution?: string; /** - * @generated from protobuf field: optional string host_rewrite = 30; + * @generated from protobuf field: optional string host_rewrite = 30 */ hostRewrite?: string; /** - * @generated from protobuf field: optional string host_rewrite_header = 31; + * @generated from protobuf field: optional string host_rewrite_header = 31 */ hostRewriteHeader?: string; /** - * @generated from protobuf field: optional string host_path_regex_rewrite_pattern = 32; + * @generated from protobuf field: optional string host_path_regex_rewrite_pattern = 32 */ hostPathRegexRewritePattern?: string; /** - * @generated from protobuf field: optional string host_path_regex_rewrite_substitution = 33; + * @generated from protobuf field: optional string host_path_regex_rewrite_substitution = 33 */ hostPathRegexRewriteSubstitution?: string; /** - * @generated from protobuf field: optional int64 regex_priority_order = 45; + * @generated from protobuf field: optional int64 regex_priority_order = 45 */ regexPriorityOrder?: bigint; /** - * @generated from protobuf field: optional google.protobuf.Duration timeout = 13; + * @generated from protobuf field: optional google.protobuf.Duration timeout = 13 */ timeout?: Duration; /** - * @generated from protobuf field: optional google.protobuf.Duration idle_timeout = 48; + * @generated from protobuf field: optional google.protobuf.Duration idle_timeout = 48 */ idleTimeout?: Duration; /** - * @generated from protobuf field: optional bool allow_websockets = 14; + * @generated from protobuf field: optional bool allow_websockets = 14 */ allowWebsockets?: boolean; /** - * @generated from protobuf field: optional bool allow_spdy = 49; + * @generated from protobuf field: optional bool allow_spdy = 49 */ allowSpdy?: boolean; /** - * @generated from protobuf field: optional bool tls_skip_verify = 15; + * @generated from protobuf field: optional bool tls_skip_verify = 15 */ tlsSkipVerify?: boolean; /** - * @generated from protobuf field: optional string tls_upstream_server_name = 51; + * @generated from protobuf field: optional string tls_upstream_server_name = 51 */ tlsUpstreamServerName?: string; /** - * @generated from protobuf field: optional string tls_downstream_server_name = 52; + * @generated from protobuf field: optional string tls_downstream_server_name = 52 */ tlsDownstreamServerName?: string; /** - * @generated from protobuf field: optional string tls_custom_ca_key_pair_id = 41; + * @generated from protobuf field: optional string tls_custom_ca_key_pair_id = 41 */ tlsCustomCaKeyPairId?: string; /** - * @generated from protobuf field: optional string tls_client_key_pair_id = 42; + * @generated from protobuf field: optional string tls_client_key_pair_id = 42 */ tlsClientKeyPairId?: string; /** - * @generated from protobuf field: optional string tls_downstream_client_ca_key_pair_id = 43; + * @generated from protobuf field: optional string tls_downstream_client_ca_key_pair_id = 43 */ tlsDownstreamClientCaKeyPairId?: string; /** - * @generated from protobuf field: optional bool tls_upstream_allow_renegotiation = 55; + * @generated from protobuf field: optional bool tls_upstream_allow_renegotiation = 55 */ tlsUpstreamAllowRenegotiation?: boolean; /** - * @generated from protobuf field: map set_request_headers = 23; + * @generated from protobuf field: map set_request_headers = 23 */ setRequestHeaders: { [key: string]: string; }; /** - * @generated from protobuf field: repeated string remove_request_headers = 24; + * @generated from protobuf field: repeated string remove_request_headers = 24 */ removeRequestHeaders: string[]; /** - * @generated from protobuf field: map set_response_headers = 56; + * @generated from protobuf field: map set_response_headers = 56 */ setResponseHeaders: { [key: string]: string; }; /** - * @generated from protobuf field: repeated pomerium.dashboard.RouteRewriteHeader rewrite_response_headers = 44; + * @generated from protobuf field: repeated pomerium.dashboard.RouteRewriteHeader rewrite_response_headers = 44 */ rewriteResponseHeaders: RouteRewriteHeader[]; /** - * @generated from protobuf field: optional bool preserve_host_header = 25; + * @generated from protobuf field: optional bool preserve_host_header = 25 */ preserveHostHeader?: boolean; /** - * @generated from protobuf field: optional bool pass_identity_headers = 26; + * @generated from protobuf field: optional bool pass_identity_headers = 26 */ passIdentityHeaders?: boolean; /** - * @generated from protobuf field: optional string kubernetes_service_account_token = 27; + * @generated from protobuf field: optional string kubernetes_service_account_token = 27 */ kubernetesServiceAccountToken?: string; /** - * @generated from protobuf field: optional string kubernetes_service_account_token_file = 60; + * @generated from protobuf field: optional string kubernetes_service_account_token_file = 60 */ kubernetesServiceAccountTokenFile?: string; /** - * @generated from protobuf field: bool enable_google_cloud_serverless_authentication = 46; + * @generated from protobuf field: bool enable_google_cloud_serverless_authentication = 46 */ enableGoogleCloudServerlessAuthentication: boolean; /** - * @generated from protobuf field: optional pomerium.dashboard.IssuerFormat jwt_issuer_format = 61; + * @generated from protobuf field: optional pomerium.dashboard.IssuerFormat jwt_issuer_format = 61 */ jwtIssuerFormat?: IssuerFormat; /** - * @generated from protobuf field: optional pomerium.dashboard.BearerTokenFormat bearer_token_format = 68; + * @generated from protobuf field: optional pomerium.dashboard.BearerTokenFormat bearer_token_format = 68 */ bearerTokenFormat?: BearerTokenFormat; /** - * @generated from protobuf field: pomerium.dashboard.JwtGroupsFilter jwt_groups_filter = 62; + * @generated from protobuf field: pomerium.dashboard.JwtGroupsFilter jwt_groups_filter = 62 */ jwtGroupsFilter?: JwtGroupsFilter; /** - * @generated from protobuf field: optional string idp_client_id = 57; + * @generated from protobuf field: optional string idp_client_id = 57 */ idpClientId?: string; /** - * @generated from protobuf field: optional string idp_client_secret = 58; + * @generated from protobuf field: optional string idp_client_secret = 58 */ idpClientSecret?: string; /** - * @generated from protobuf field: bool show_error_details = 53; + * @generated from protobuf field: bool show_error_details = 53 */ showErrorDetails: boolean; /** - * @generated from protobuf field: string originator_id = 54; + * @generated from protobuf field: string originator_id = 54 */ originatorId: string; /** * policies applied to this route * - * @generated from protobuf field: repeated string policy_ids = 28; + * @generated from protobuf field: repeated string policy_ids = 28 */ policyIds: string[]; /** * multi-route login additional hosts * - * @generated from protobuf field: repeated string depends_on = 72; + * @generated from protobuf field: repeated string depends_on = 72 */ dependsOn: string[]; /** * computed properties (may be nil) * - * @generated from protobuf field: repeated string policy_names = 34; + * @generated from protobuf field: repeated string policy_names = 34 */ policyNames: string[]; /** * computed * - * @generated from protobuf field: string namespace_name = 35; + * @generated from protobuf field: string namespace_name = 35 */ namespaceName: string; /** * computed * - * @generated from protobuf field: repeated string enforced_policy_ids = 63; + * @generated from protobuf field: repeated string enforced_policy_ids = 63 */ enforcedPolicyIds: string[]; /** - * @generated from protobuf field: repeated string enforced_policy_names = 64; + * @generated from protobuf field: repeated string enforced_policy_names = 64 */ enforcedPolicyNames: string[]; /** - * @generated from protobuf field: optional pomerium.dashboard.Route.StringList idp_access_token_allowed_audiences = 69; + * @generated from protobuf field: optional pomerium.dashboard.Route.StringList idp_access_token_allowed_audiences = 69 */ idpAccessTokenAllowedAudiences?: Route_StringList; /** - * @generated from protobuf field: optional pomerium.dashboard.LoadBalancingPolicy load_balancing_policy = 70; + * @generated from protobuf field: optional pomerium.dashboard.LoadBalancingPolicy load_balancing_policy = 70 */ loadBalancingPolicy?: LoadBalancingPolicy; /** - * @generated from protobuf field: repeated pomerium.dashboard.HealthCheck health_checks = 71; + * @generated from protobuf field: repeated pomerium.dashboard.HealthCheck health_checks = 71 */ healthChecks: HealthCheck[]; /** - * @generated from protobuf field: optional pomerium.dashboard.CircuitBreakerThresholds circuit_breaker_thresholds = 73; + * @generated from protobuf field: optional pomerium.dashboard.CircuitBreakerThresholds circuit_breaker_thresholds = 73 */ circuitBreakerThresholds?: CircuitBreakerThresholds; /** - * @generated from protobuf field: optional pomerium.dashboard.MCP mcp = 74; + * @generated from protobuf field: optional pomerium.dashboard.MCP mcp = 74 */ mcp?: MCP; /** - * @generated from protobuf field: optional int32 healthy_panic_threshold = 75; + * @generated from protobuf field: optional int32 healthy_panic_threshold = 75 */ healthyPanicThreshold?: number; /** - * @generated from protobuf field: optional pomerium.dashboard.UpstreamTunnel upstream_tunnel = 76; + * @generated from protobuf field: optional pomerium.dashboard.UpstreamTunnel upstream_tunnel = 76 */ upstreamTunnel?: UpstreamTunnel; } @@ -494,7 +494,7 @@ export interface Route { */ export interface Route_StringList { /** - * @generated from protobuf field: repeated string values = 1; + * @generated from protobuf field: repeated string values = 1 */ values: string[]; } @@ -511,11 +511,11 @@ export interface UpstreamTunnel { */ export interface RouteWithPolicies { /** - * @generated from protobuf field: pomerium.dashboard.Route route = 1; + * @generated from protobuf field: pomerium.dashboard.Route route = 1 */ route?: Route; /** - * @generated from protobuf field: repeated pomerium.dashboard.Policy policies = 2; + * @generated from protobuf field: repeated pomerium.dashboard.Policy policies = 2 */ policies: Policy[]; } @@ -524,7 +524,7 @@ export interface RouteWithPolicies { */ export interface DeleteRouteRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -538,7 +538,7 @@ export interface DeleteRouteResponse { */ export interface DeleteRoutesRequest { /** - * @generated from protobuf field: repeated string ids = 1; + * @generated from protobuf field: repeated string ids = 1 */ ids: string[]; } @@ -552,7 +552,7 @@ export interface DeleteRoutesResponse { */ export interface GetRouteRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; } @@ -561,7 +561,7 @@ export interface GetRouteRequest { */ export interface GetRouteResponse { /** - * @generated from protobuf field: pomerium.dashboard.Route route = 1; + * @generated from protobuf field: pomerium.dashboard.Route route = 1 */ route?: Route; } @@ -572,37 +572,37 @@ export interface GetRouteResponse { */ export interface ListRoutesRequest { /** - * @generated from protobuf field: string namespace = 1; + * @generated from protobuf field: string namespace = 1 */ namespace: string; /** * list Routes who's name, from or to contains the query string * - * @generated from protobuf field: optional string query = 2; + * @generated from protobuf field: optional string query = 2 */ query?: string; /** * list Routes starting from an offset in the total list * - * @generated from protobuf field: optional int64 offset = 3; + * @generated from protobuf field: optional int64 offset = 3 */ offset?: bigint; /** * limit the number of Route entries returned * - * @generated from protobuf field: optional int64 limit = 4; + * @generated from protobuf field: optional int64 limit = 4 */ limit?: bigint; /** * sort the Routes by newest, oldest, name or from * - * @generated from protobuf field: optional string order_by = 5; + * @generated from protobuf field: optional string order_by = 5 */ orderBy?: string; /** * list Routes belonging to the cluster, or the default cluster if not set * - * @generated from protobuf field: optional string cluster_id = 6; + * @generated from protobuf field: optional string cluster_id = 6 */ clusterId?: string; } @@ -613,11 +613,11 @@ export interface ListRoutesRequest { */ export interface ListRoutesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1; + * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1 */ routes: Route[]; /** - * @generated from protobuf field: int64 total_count = 2; + * @generated from protobuf field: int64 total_count = 2 */ totalCount: bigint; } @@ -628,13 +628,13 @@ export interface ListRoutesResponse { */ export interface LoadRoutesRequest { /** - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * OSS pomerium policy block * - * @generated from protobuf field: bytes contents = 2; + * @generated from protobuf field: bytes contents = 2 */ contents: Uint8Array; } @@ -646,7 +646,7 @@ export interface LoadRoutesRequest { */ export interface LoadRoutesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.RouteWithPolicies routes = 1; + * @generated from protobuf field: repeated pomerium.dashboard.RouteWithPolicies routes = 1 */ routes: RouteWithPolicies[]; } @@ -655,7 +655,7 @@ export interface LoadRoutesResponse { */ export interface SetRouteRequest { /** - * @generated from protobuf field: pomerium.dashboard.Route route = 1; + * @generated from protobuf field: pomerium.dashboard.Route route = 1 */ route?: Route; } @@ -664,7 +664,7 @@ export interface SetRouteRequest { */ export interface SetRouteResponse { /** - * @generated from protobuf field: pomerium.dashboard.Route route = 1; + * @generated from protobuf field: pomerium.dashboard.Route route = 1 */ route?: Route; } @@ -673,7 +673,7 @@ export interface SetRouteResponse { */ export interface SetRoutesRequest { /** - * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1; + * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1 */ routes: Route[]; } @@ -682,7 +682,7 @@ export interface SetRoutesRequest { */ export interface SetRoutesResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1; + * @generated from protobuf field: repeated pomerium.dashboard.Route routes = 1 */ routes: Route[]; } @@ -691,11 +691,11 @@ export interface SetRoutesResponse { */ export interface MoveRoutesRequest { /** - * @generated from protobuf field: repeated string route_ids = 1; + * @generated from protobuf field: repeated string route_ids = 1 */ routeIds: string[]; /** - * @generated from protobuf field: string new_namespace_id = 2; + * @generated from protobuf field: string new_namespace_id = 2 */ newNamespaceId: string; } @@ -857,12 +857,12 @@ class RouteRewriteHeader$Type extends MessageType { /* string header = 1; */ if (message.header !== "") writer.tag(1, WireType.LengthDelimited).string(message.header); - /* string prefix = 3; */ - if (message.matcher.oneofKind === "prefix") - writer.tag(3, WireType.LengthDelimited).string(message.matcher.prefix); /* string value = 2; */ if (message.value !== "") writer.tag(2, WireType.LengthDelimited).string(message.value); + /* string prefix = 3; */ + if (message.matcher.oneofKind === "prefix") + writer.tag(3, WireType.LengthDelimited).string(message.matcher.prefix); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1188,7 +1188,20 @@ class MCPClient$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MCPClient): MCPClient { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: MCPClient, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -1375,7 +1388,7 @@ class Route$Type extends MessageType { { no: 23, name: "set_request_headers", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }, { no: 24, name: "remove_request_headers", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 56, name: "set_response_headers", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }, - { no: 44, name: "rewrite_response_headers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => RouteRewriteHeader }, + { no: 44, name: "rewrite_response_headers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RouteRewriteHeader }, { no: 25, name: "preserve_host_header", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 26, name: "pass_identity_headers", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 27, name: "kubernetes_service_account_token", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, @@ -1396,7 +1409,7 @@ class Route$Type extends MessageType { { no: 64, name: "enforced_policy_names", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 69, name: "idp_access_token_allowed_audiences", kind: "message", T: () => Route_StringList }, { no: 70, name: "load_balancing_policy", kind: "enum", opt: true, T: () => ["pomerium.dashboard.LoadBalancingPolicy", LoadBalancingPolicy, "LOAD_BALANCING_POLICY_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 71, name: "health_checks", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => HealthCheck }, + { no: 71, name: "health_checks", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HealthCheck }, { no: 73, name: "circuit_breaker_thresholds", kind: "message", T: () => CircuitBreakerThresholds }, { no: 74, name: "mcp", kind: "message", T: () => MCP }, { no: 75, name: "healthy_panic_threshold", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, @@ -1648,7 +1661,7 @@ class Route$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.Route.set_request_headers"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.Route.set_request_headers"); } } map[key ?? ""] = val ?? ""; @@ -1664,7 +1677,7 @@ class Route$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.Route.set_response_headers"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.Route.set_response_headers"); } } map[key ?? ""] = val ?? ""; @@ -1673,9 +1686,6 @@ class Route$Type extends MessageType { /* string id = 1; */ if (message.id !== "") writer.tag(1, WireType.LengthDelimited).string(message.id); - /* string namespace_id = 29; */ - if (message.namespaceId !== "") - writer.tag(29, WireType.LengthDelimited).string(message.namespaceId); /* google.protobuf.Timestamp created_at = 2; */ if (message.createdAt) Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); @@ -1688,27 +1698,12 @@ class Route$Type extends MessageType { /* string name = 5; */ if (message.name !== "") writer.tag(5, WireType.LengthDelimited).string(message.name); - /* optional string description = 65; */ - if (message.description !== undefined) - writer.tag(65, WireType.LengthDelimited).string(message.description); - /* optional string logo_url = 66; */ - if (message.logoUrl !== undefined) - writer.tag(66, WireType.LengthDelimited).string(message.logoUrl); - /* string stat_name = 47; */ - if (message.statName !== "") - writer.tag(47, WireType.LengthDelimited).string(message.statName); /* string from = 6; */ if (message.from !== "") writer.tag(6, WireType.LengthDelimited).string(message.from); /* repeated string to = 7; */ for (let i = 0; i < message.to.length; i++) writer.tag(7, WireType.LengthDelimited).string(message.to[i]); - /* pomerium.dashboard.RedirectAction redirect = 67; */ - if (message.redirect) - RedirectAction.internalBinaryWrite(message.redirect, writer.tag(67, WireType.LengthDelimited).fork(), options).join(); - /* pomerium.dashboard.RouteDirectResponse response = 59; */ - if (message.response) - RouteDirectResponse.internalBinaryWrite(message.response, writer.tag(59, WireType.LengthDelimited).fork(), options).join(); /* optional string prefix = 8; */ if (message.prefix !== undefined) writer.tag(8, WireType.LengthDelimited).string(message.prefix); @@ -1718,15 +1713,36 @@ class Route$Type extends MessageType { /* optional string regex = 10; */ if (message.regex !== undefined) writer.tag(10, WireType.LengthDelimited).string(message.regex); - /* optional string prefix_rewrite = 36; */ - if (message.prefixRewrite !== undefined) - writer.tag(36, WireType.LengthDelimited).string(message.prefixRewrite); - /* optional string regex_rewrite_pattern = 37; */ - if (message.regexRewritePattern !== undefined) - writer.tag(37, WireType.LengthDelimited).string(message.regexRewritePattern); - /* optional string regex_rewrite_substitution = 38; */ - if (message.regexRewriteSubstitution !== undefined) - writer.tag(38, WireType.LengthDelimited).string(message.regexRewriteSubstitution); + /* optional google.protobuf.Duration timeout = 13; */ + if (message.timeout) + Duration.internalBinaryWrite(message.timeout, writer.tag(13, WireType.LengthDelimited).fork(), options).join(); + /* optional bool allow_websockets = 14; */ + if (message.allowWebsockets !== undefined) + writer.tag(14, WireType.Varint).bool(message.allowWebsockets); + /* optional bool tls_skip_verify = 15; */ + if (message.tlsSkipVerify !== undefined) + writer.tag(15, WireType.Varint).bool(message.tlsSkipVerify); + /* map set_request_headers = 23; */ + for (let k of globalThis.Object.keys(message.setRequestHeaders)) + writer.tag(23, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.setRequestHeaders[k]).join(); + /* repeated string remove_request_headers = 24; */ + for (let i = 0; i < message.removeRequestHeaders.length; i++) + writer.tag(24, WireType.LengthDelimited).string(message.removeRequestHeaders[i]); + /* optional bool preserve_host_header = 25; */ + if (message.preserveHostHeader !== undefined) + writer.tag(25, WireType.Varint).bool(message.preserveHostHeader); + /* optional bool pass_identity_headers = 26; */ + if (message.passIdentityHeaders !== undefined) + writer.tag(26, WireType.Varint).bool(message.passIdentityHeaders); + /* optional string kubernetes_service_account_token = 27; */ + if (message.kubernetesServiceAccountToken !== undefined) + writer.tag(27, WireType.LengthDelimited).string(message.kubernetesServiceAccountToken); + /* repeated string policy_ids = 28; */ + for (let i = 0; i < message.policyIds.length; i++) + writer.tag(28, WireType.LengthDelimited).string(message.policyIds[i]); + /* string namespace_id = 29; */ + if (message.namespaceId !== "") + writer.tag(29, WireType.LengthDelimited).string(message.namespaceId); /* optional string host_rewrite = 30; */ if (message.hostRewrite !== undefined) writer.tag(30, WireType.LengthDelimited).string(message.hostRewrite); @@ -1739,108 +1755,102 @@ class Route$Type extends MessageType { /* optional string host_path_regex_rewrite_substitution = 33; */ if (message.hostPathRegexRewriteSubstitution !== undefined) writer.tag(33, WireType.LengthDelimited).string(message.hostPathRegexRewriteSubstitution); + /* repeated string policy_names = 34; */ + for (let i = 0; i < message.policyNames.length; i++) + writer.tag(34, WireType.LengthDelimited).string(message.policyNames[i]); + /* string namespace_name = 35; */ + if (message.namespaceName !== "") + writer.tag(35, WireType.LengthDelimited).string(message.namespaceName); + /* optional string prefix_rewrite = 36; */ + if (message.prefixRewrite !== undefined) + writer.tag(36, WireType.LengthDelimited).string(message.prefixRewrite); + /* optional string regex_rewrite_pattern = 37; */ + if (message.regexRewritePattern !== undefined) + writer.tag(37, WireType.LengthDelimited).string(message.regexRewritePattern); + /* optional string regex_rewrite_substitution = 38; */ + if (message.regexRewriteSubstitution !== undefined) + writer.tag(38, WireType.LengthDelimited).string(message.regexRewriteSubstitution); + /* optional string tls_custom_ca_key_pair_id = 41; */ + if (message.tlsCustomCaKeyPairId !== undefined) + writer.tag(41, WireType.LengthDelimited).string(message.tlsCustomCaKeyPairId); + /* optional string tls_client_key_pair_id = 42; */ + if (message.tlsClientKeyPairId !== undefined) + writer.tag(42, WireType.LengthDelimited).string(message.tlsClientKeyPairId); + /* optional string tls_downstream_client_ca_key_pair_id = 43; */ + if (message.tlsDownstreamClientCaKeyPairId !== undefined) + writer.tag(43, WireType.LengthDelimited).string(message.tlsDownstreamClientCaKeyPairId); + /* repeated pomerium.dashboard.RouteRewriteHeader rewrite_response_headers = 44; */ + for (let i = 0; i < message.rewriteResponseHeaders.length; i++) + RouteRewriteHeader.internalBinaryWrite(message.rewriteResponseHeaders[i], writer.tag(44, WireType.LengthDelimited).fork(), options).join(); /* optional int64 regex_priority_order = 45; */ if (message.regexPriorityOrder !== undefined) writer.tag(45, WireType.Varint).int64(message.regexPriorityOrder); - /* optional google.protobuf.Duration timeout = 13; */ - if (message.timeout) - Duration.internalBinaryWrite(message.timeout, writer.tag(13, WireType.LengthDelimited).fork(), options).join(); + /* bool enable_google_cloud_serverless_authentication = 46; */ + if (message.enableGoogleCloudServerlessAuthentication !== false) + writer.tag(46, WireType.Varint).bool(message.enableGoogleCloudServerlessAuthentication); + /* string stat_name = 47; */ + if (message.statName !== "") + writer.tag(47, WireType.LengthDelimited).string(message.statName); /* optional google.protobuf.Duration idle_timeout = 48; */ if (message.idleTimeout) Duration.internalBinaryWrite(message.idleTimeout, writer.tag(48, WireType.LengthDelimited).fork(), options).join(); - /* optional bool allow_websockets = 14; */ - if (message.allowWebsockets !== undefined) - writer.tag(14, WireType.Varint).bool(message.allowWebsockets); /* optional bool allow_spdy = 49; */ if (message.allowSpdy !== undefined) writer.tag(49, WireType.Varint).bool(message.allowSpdy); - /* optional bool tls_skip_verify = 15; */ - if (message.tlsSkipVerify !== undefined) - writer.tag(15, WireType.Varint).bool(message.tlsSkipVerify); /* optional string tls_upstream_server_name = 51; */ if (message.tlsUpstreamServerName !== undefined) writer.tag(51, WireType.LengthDelimited).string(message.tlsUpstreamServerName); /* optional string tls_downstream_server_name = 52; */ if (message.tlsDownstreamServerName !== undefined) writer.tag(52, WireType.LengthDelimited).string(message.tlsDownstreamServerName); - /* optional string tls_custom_ca_key_pair_id = 41; */ - if (message.tlsCustomCaKeyPairId !== undefined) - writer.tag(41, WireType.LengthDelimited).string(message.tlsCustomCaKeyPairId); - /* optional string tls_client_key_pair_id = 42; */ - if (message.tlsClientKeyPairId !== undefined) - writer.tag(42, WireType.LengthDelimited).string(message.tlsClientKeyPairId); - /* optional string tls_downstream_client_ca_key_pair_id = 43; */ - if (message.tlsDownstreamClientCaKeyPairId !== undefined) - writer.tag(43, WireType.LengthDelimited).string(message.tlsDownstreamClientCaKeyPairId); + /* bool show_error_details = 53; */ + if (message.showErrorDetails !== false) + writer.tag(53, WireType.Varint).bool(message.showErrorDetails); + /* string originator_id = 54; */ + if (message.originatorId !== "") + writer.tag(54, WireType.LengthDelimited).string(message.originatorId); /* optional bool tls_upstream_allow_renegotiation = 55; */ if (message.tlsUpstreamAllowRenegotiation !== undefined) writer.tag(55, WireType.Varint).bool(message.tlsUpstreamAllowRenegotiation); - /* map set_request_headers = 23; */ - for (let k of globalThis.Object.keys(message.setRequestHeaders)) - writer.tag(23, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.setRequestHeaders[k]).join(); - /* repeated string remove_request_headers = 24; */ - for (let i = 0; i < message.removeRequestHeaders.length; i++) - writer.tag(24, WireType.LengthDelimited).string(message.removeRequestHeaders[i]); /* map set_response_headers = 56; */ for (let k of globalThis.Object.keys(message.setResponseHeaders)) writer.tag(56, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.setResponseHeaders[k]).join(); - /* repeated pomerium.dashboard.RouteRewriteHeader rewrite_response_headers = 44; */ - for (let i = 0; i < message.rewriteResponseHeaders.length; i++) - RouteRewriteHeader.internalBinaryWrite(message.rewriteResponseHeaders[i], writer.tag(44, WireType.LengthDelimited).fork(), options).join(); - /* optional bool preserve_host_header = 25; */ - if (message.preserveHostHeader !== undefined) - writer.tag(25, WireType.Varint).bool(message.preserveHostHeader); - /* optional bool pass_identity_headers = 26; */ - if (message.passIdentityHeaders !== undefined) - writer.tag(26, WireType.Varint).bool(message.passIdentityHeaders); - /* optional string kubernetes_service_account_token = 27; */ - if (message.kubernetesServiceAccountToken !== undefined) - writer.tag(27, WireType.LengthDelimited).string(message.kubernetesServiceAccountToken); + /* optional string idp_client_id = 57; */ + if (message.idpClientId !== undefined) + writer.tag(57, WireType.LengthDelimited).string(message.idpClientId); + /* optional string idp_client_secret = 58; */ + if (message.idpClientSecret !== undefined) + writer.tag(58, WireType.LengthDelimited).string(message.idpClientSecret); + /* pomerium.dashboard.RouteDirectResponse response = 59; */ + if (message.response) + RouteDirectResponse.internalBinaryWrite(message.response, writer.tag(59, WireType.LengthDelimited).fork(), options).join(); /* optional string kubernetes_service_account_token_file = 60; */ if (message.kubernetesServiceAccountTokenFile !== undefined) writer.tag(60, WireType.LengthDelimited).string(message.kubernetesServiceAccountTokenFile); - /* bool enable_google_cloud_serverless_authentication = 46; */ - if (message.enableGoogleCloudServerlessAuthentication !== false) - writer.tag(46, WireType.Varint).bool(message.enableGoogleCloudServerlessAuthentication); /* optional pomerium.dashboard.IssuerFormat jwt_issuer_format = 61; */ if (message.jwtIssuerFormat !== undefined) writer.tag(61, WireType.Varint).int32(message.jwtIssuerFormat); - /* optional pomerium.dashboard.BearerTokenFormat bearer_token_format = 68; */ - if (message.bearerTokenFormat !== undefined) - writer.tag(68, WireType.Varint).int32(message.bearerTokenFormat); /* pomerium.dashboard.JwtGroupsFilter jwt_groups_filter = 62; */ if (message.jwtGroupsFilter) JwtGroupsFilter.internalBinaryWrite(message.jwtGroupsFilter, writer.tag(62, WireType.LengthDelimited).fork(), options).join(); - /* optional string idp_client_id = 57; */ - if (message.idpClientId !== undefined) - writer.tag(57, WireType.LengthDelimited).string(message.idpClientId); - /* optional string idp_client_secret = 58; */ - if (message.idpClientSecret !== undefined) - writer.tag(58, WireType.LengthDelimited).string(message.idpClientSecret); - /* bool show_error_details = 53; */ - if (message.showErrorDetails !== false) - writer.tag(53, WireType.Varint).bool(message.showErrorDetails); - /* string originator_id = 54; */ - if (message.originatorId !== "") - writer.tag(54, WireType.LengthDelimited).string(message.originatorId); - /* repeated string policy_ids = 28; */ - for (let i = 0; i < message.policyIds.length; i++) - writer.tag(28, WireType.LengthDelimited).string(message.policyIds[i]); - /* repeated string depends_on = 72; */ - for (let i = 0; i < message.dependsOn.length; i++) - writer.tag(72, WireType.LengthDelimited).string(message.dependsOn[i]); - /* repeated string policy_names = 34; */ - for (let i = 0; i < message.policyNames.length; i++) - writer.tag(34, WireType.LengthDelimited).string(message.policyNames[i]); - /* string namespace_name = 35; */ - if (message.namespaceName !== "") - writer.tag(35, WireType.LengthDelimited).string(message.namespaceName); /* repeated string enforced_policy_ids = 63; */ for (let i = 0; i < message.enforcedPolicyIds.length; i++) writer.tag(63, WireType.LengthDelimited).string(message.enforcedPolicyIds[i]); /* repeated string enforced_policy_names = 64; */ for (let i = 0; i < message.enforcedPolicyNames.length; i++) writer.tag(64, WireType.LengthDelimited).string(message.enforcedPolicyNames[i]); + /* optional string description = 65; */ + if (message.description !== undefined) + writer.tag(65, WireType.LengthDelimited).string(message.description); + /* optional string logo_url = 66; */ + if (message.logoUrl !== undefined) + writer.tag(66, WireType.LengthDelimited).string(message.logoUrl); + /* pomerium.dashboard.RedirectAction redirect = 67; */ + if (message.redirect) + RedirectAction.internalBinaryWrite(message.redirect, writer.tag(67, WireType.LengthDelimited).fork(), options).join(); + /* optional pomerium.dashboard.BearerTokenFormat bearer_token_format = 68; */ + if (message.bearerTokenFormat !== undefined) + writer.tag(68, WireType.Varint).int32(message.bearerTokenFormat); /* optional pomerium.dashboard.Route.StringList idp_access_token_allowed_audiences = 69; */ if (message.idpAccessTokenAllowedAudiences) Route_StringList.internalBinaryWrite(message.idpAccessTokenAllowedAudiences, writer.tag(69, WireType.LengthDelimited).fork(), options).join(); @@ -1850,6 +1860,9 @@ class Route$Type extends MessageType { /* repeated pomerium.dashboard.HealthCheck health_checks = 71; */ for (let i = 0; i < message.healthChecks.length; i++) HealthCheck.internalBinaryWrite(message.healthChecks[i], writer.tag(71, WireType.LengthDelimited).fork(), options).join(); + /* repeated string depends_on = 72; */ + for (let i = 0; i < message.dependsOn.length; i++) + writer.tag(72, WireType.LengthDelimited).string(message.dependsOn[i]); /* optional pomerium.dashboard.CircuitBreakerThresholds circuit_breaker_thresholds = 73; */ if (message.circuitBreakerThresholds) CircuitBreakerThresholds.internalBinaryWrite(message.circuitBreakerThresholds, writer.tag(73, WireType.LengthDelimited).fork(), options).join(); @@ -1931,7 +1944,20 @@ class UpstreamTunnel$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpstreamTunnel): UpstreamTunnel { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: UpstreamTunnel, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -1949,7 +1975,7 @@ class RouteWithPolicies$Type extends MessageType { constructor() { super("pomerium.dashboard.RouteWithPolicies", [ { no: 1, name: "route", kind: "message", T: () => Route }, - { no: 2, name: "policies", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Policy } + { no: 2, name: "policies", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Policy } ]); } create(value?: PartialMessage): RouteWithPolicies { @@ -2057,7 +2083,20 @@ class DeleteRouteResponse$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRouteResponse): DeleteRouteResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: DeleteRouteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -2129,7 +2168,20 @@ class DeleteRoutesResponse$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRoutesResponse): DeleteRoutesResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: DeleteRoutesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; @@ -2321,7 +2373,7 @@ export const ListRoutesRequest = new ListRoutesRequest$Type(); class ListRoutesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListRoutesResponse", [ - { no: 1, name: "routes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Route }, + { no: 1, name: "routes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Route }, { no: 2, name: "total_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ]); } @@ -2431,7 +2483,7 @@ export const LoadRoutesRequest = new LoadRoutesRequest$Type(); class LoadRoutesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.LoadRoutesResponse", [ - { no: 1, name: "routes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => RouteWithPolicies } + { no: 1, name: "routes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RouteWithPolicies } ]); } create(value?: PartialMessage): LoadRoutesResponse { @@ -2570,7 +2622,7 @@ export const SetRouteResponse = new SetRouteResponse$Type(); class SetRoutesRequest$Type extends MessageType { constructor() { super("pomerium.dashboard.SetRoutesRequest", [ - { no: 1, name: "routes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Route } + { no: 1, name: "routes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Route } ]); } create(value?: PartialMessage): SetRoutesRequest { @@ -2617,7 +2669,7 @@ export const SetRoutesRequest = new SetRoutesRequest$Type(); class SetRoutesResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.SetRoutesResponse", [ - { no: 1, name: "routes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Route } + { no: 1, name: "routes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Route } ]); } create(value?: PartialMessage): SetRoutesResponse { @@ -2727,7 +2779,20 @@ class MoveRoutesResponse$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MoveRoutesResponse): MoveRoutesResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: MoveRoutesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; diff --git a/src/pomerium-console/settings.client.ts b/src/pomerium-console/settings.client.ts index 459695e..0a08eb6 100644 --- a/src/pomerium-console/settings.client.ts +++ b/src/pomerium-console/settings.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "settings.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -22,25 +22,25 @@ export interface ISettingsServiceClient { /** * GetSettings retrieves the currently applied settings * - * @generated from protobuf rpc: GetSettings(pomerium.dashboard.GetSettingsRequest) returns (pomerium.dashboard.GetSettingsResponse); + * @generated from protobuf rpc: GetSettings */ getSettings(input: GetSettingsRequest, options?: RpcOptions): UnaryCall; /** * SetSettings applies new global settings * - * @generated from protobuf rpc: SetSettings(pomerium.dashboard.SetSettingsRequest) returns (pomerium.dashboard.SetSettingsResponse); + * @generated from protobuf rpc: SetSettings */ setSettings(input: SetSettingsRequest, options?: RpcOptions): UnaryCall; /** * GetBrandingSettings retrieves just the branding part of the settings * - * @generated from protobuf rpc: GetBrandingSettings(pomerium.dashboard.GetSettingsRequest) returns (pomerium.dashboard.GetSettingsResponse); + * @generated from protobuf rpc: GetBrandingSettings */ getBrandingSettings(input: GetSettingsRequest, options?: RpcOptions): UnaryCall; /** * GetConsoleSettings retrieves the console settings. * - * @generated from protobuf rpc: GetConsoleSettings(pomerium.dashboard.GetConsoleSettingsRequest) returns (pomerium.dashboard.GetConsoleSettingsResponse); + * @generated from protobuf rpc: GetConsoleSettings */ getConsoleSettings(input: GetConsoleSettingsRequest, options?: RpcOptions): UnaryCall; } @@ -58,7 +58,7 @@ export class SettingsServiceClient implements ISettingsServiceClient, ServiceInf /** * GetSettings retrieves the currently applied settings * - * @generated from protobuf rpc: GetSettings(pomerium.dashboard.GetSettingsRequest) returns (pomerium.dashboard.GetSettingsResponse); + * @generated from protobuf rpc: GetSettings */ getSettings(input: GetSettingsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -67,7 +67,7 @@ export class SettingsServiceClient implements ISettingsServiceClient, ServiceInf /** * SetSettings applies new global settings * - * @generated from protobuf rpc: SetSettings(pomerium.dashboard.SetSettingsRequest) returns (pomerium.dashboard.SetSettingsResponse); + * @generated from protobuf rpc: SetSettings */ setSettings(input: SetSettingsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -76,7 +76,7 @@ export class SettingsServiceClient implements ISettingsServiceClient, ServiceInf /** * GetBrandingSettings retrieves just the branding part of the settings * - * @generated from protobuf rpc: GetBrandingSettings(pomerium.dashboard.GetSettingsRequest) returns (pomerium.dashboard.GetSettingsResponse); + * @generated from protobuf rpc: GetBrandingSettings */ getBrandingSettings(input: GetSettingsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -85,7 +85,7 @@ export class SettingsServiceClient implements ISettingsServiceClient, ServiceInf /** * GetConsoleSettings retrieves the console settings. * - * @generated from protobuf rpc: GetConsoleSettings(pomerium.dashboard.GetConsoleSettingsRequest) returns (pomerium.dashboard.GetConsoleSettingsResponse); + * @generated from protobuf rpc: GetConsoleSettings */ getConsoleSettings(input: GetConsoleSettingsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/settings.ts b/src/pomerium-console/settings.ts index 0902de8..3dc2131 100644 --- a/src/pomerium-console/settings.ts +++ b/src/pomerium-console/settings.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "settings.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -23,11 +23,11 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface ConsoleSettings { /** - * @generated from protobuf field: bool enable_feedback_widget = 1; + * @generated from protobuf field: bool enable_feedback_widget = 1 */ enableFeedbackWidget: boolean; /** - * @generated from protobuf field: bool use_changesets = 2; + * @generated from protobuf field: bool use_changesets = 2 */ useChangesets: boolean; } @@ -39,419 +39,419 @@ export interface ConsoleSettings { */ export interface Settings { /** - * @generated from protobuf field: string id = 107; + * @generated from protobuf field: string id = 107 */ id: string; /** - * @generated from protobuf field: optional string cluster_id = 108; + * @generated from protobuf field: optional string cluster_id = 108 */ clusterId?: string; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 1; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 1 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: optional string installation_id = 68; + * @generated from protobuf field: optional string installation_id = 68 */ installationId?: string; /** - * @generated from protobuf field: optional string log_level = 3; + * @generated from protobuf field: optional string log_level = 3 */ logLevel?: string; /** - * @generated from protobuf field: optional string proxy_log_level = 4; + * @generated from protobuf field: optional string proxy_log_level = 4 */ proxyLogLevel?: string; /** - * @generated from protobuf field: optional string shared_secret = 5; + * @generated from protobuf field: optional string shared_secret = 5 */ sharedSecret?: string; /** - * @generated from protobuf field: optional string services = 6; + * @generated from protobuf field: optional string services = 6 */ services?: string; /** - * @generated from protobuf field: optional string address = 7; + * @generated from protobuf field: optional string address = 7 */ address?: string; /** - * @generated from protobuf field: optional bool insecure_server = 8; + * @generated from protobuf field: optional bool insecure_server = 8 */ insecureServer?: boolean; /** * dns options * - * @generated from protobuf field: optional google.protobuf.Duration dns_failure_refresh_rate = 120; + * @generated from protobuf field: optional google.protobuf.Duration dns_failure_refresh_rate = 120 */ dnsFailureRefreshRate?: Duration; /** - * @generated from protobuf field: optional string dns_lookup_family = 60; + * @generated from protobuf field: optional string dns_lookup_family = 60 */ dnsLookupFamily?: string; /** - * @generated from protobuf field: optional google.protobuf.Duration dns_query_timeout = 119; + * @generated from protobuf field: optional google.protobuf.Duration dns_query_timeout = 119 */ dnsQueryTimeout?: Duration; /** - * @generated from protobuf field: optional uint32 dns_query_tries = 118; + * @generated from protobuf field: optional uint32 dns_query_tries = 118 */ dnsQueryTries?: number; /** - * @generated from protobuf field: optional google.protobuf.Duration dns_refresh_rate = 121; + * @generated from protobuf field: optional google.protobuf.Duration dns_refresh_rate = 121 */ dnsRefreshRate?: Duration; /** - * @generated from protobuf field: optional uint32 dns_udp_max_queries = 116; + * @generated from protobuf field: optional uint32 dns_udp_max_queries = 116 */ dnsUdpMaxQueries?: number; /** - * @generated from protobuf field: optional bool dns_use_tcp = 117; + * @generated from protobuf field: optional bool dns_use_tcp = 117 */ dnsUseTcp?: boolean; /** - * @generated from protobuf field: repeated pomerium.dashboard.Settings.Certificate certificates = 9; + * @generated from protobuf field: repeated pomerium.dashboard.Settings.Certificate certificates = 9 */ certificates: Settings_Certificate[]; /** - * @generated from protobuf field: optional string http_redirect_addr = 10; + * @generated from protobuf field: optional string http_redirect_addr = 10 */ httpRedirectAddr?: string; /** - * @generated from protobuf field: optional google.protobuf.Duration timeout_read = 11; + * @generated from protobuf field: optional google.protobuf.Duration timeout_read = 11 */ timeoutRead?: Duration; /** - * @generated from protobuf field: optional google.protobuf.Duration timeout_write = 12; + * @generated from protobuf field: optional google.protobuf.Duration timeout_write = 12 */ timeoutWrite?: Duration; /** - * @generated from protobuf field: optional google.protobuf.Duration timeout_idle = 13; + * @generated from protobuf field: optional google.protobuf.Duration timeout_idle = 13 */ timeoutIdle?: Duration; /** - * @generated from protobuf field: optional string authenticate_service_url = 14; + * @generated from protobuf field: optional string authenticate_service_url = 14 */ authenticateServiceUrl?: string; /** - * @generated from protobuf field: optional string authenticate_callback_path = 15; + * @generated from protobuf field: optional string authenticate_callback_path = 15 */ authenticateCallbackPath?: string; /** - * @generated from protobuf field: optional string cookie_name = 16; + * @generated from protobuf field: optional string cookie_name = 16 */ cookieName?: string; /** - * @generated from protobuf field: optional string cookie_secret = 17; + * @generated from protobuf field: optional string cookie_secret = 17 */ cookieSecret?: string; /** - * @generated from protobuf field: optional string cookie_domain = 18; + * @generated from protobuf field: optional string cookie_domain = 18 */ cookieDomain?: string; /** - * @generated from protobuf field: optional bool cookie_secure = 19; + * @generated from protobuf field: optional bool cookie_secure = 19 */ cookieSecure?: boolean; /** - * @generated from protobuf field: optional bool cookie_http_only = 20; + * @generated from protobuf field: optional bool cookie_http_only = 20 */ cookieHttpOnly?: boolean; /** - * @generated from protobuf field: optional string cookie_same_site = 80; + * @generated from protobuf field: optional string cookie_same_site = 80 */ cookieSameSite?: string; /** - * @generated from protobuf field: optional google.protobuf.Duration cookie_expire = 21; + * @generated from protobuf field: optional google.protobuf.Duration cookie_expire = 21 */ cookieExpire?: Duration; /** - * @generated from protobuf field: optional string idp_client_id = 22; + * @generated from protobuf field: optional string idp_client_id = 22 */ idpClientId?: string; /** - * @generated from protobuf field: optional string idp_client_secret = 23; + * @generated from protobuf field: optional string idp_client_secret = 23 */ idpClientSecret?: string; /** - * @generated from protobuf field: optional string idp_provider = 24; + * @generated from protobuf field: optional string idp_provider = 24 */ idpProvider?: string; /** - * @generated from protobuf field: optional string idp_provider_url = 25; + * @generated from protobuf field: optional string idp_provider_url = 25 */ idpProviderUrl?: string; /** - * @generated from protobuf field: repeated string scopes = 26; + * @generated from protobuf field: repeated string scopes = 26 */ scopes: string[]; /** - * @generated from protobuf field: optional string idp_service_account = 27; + * @generated from protobuf field: optional string idp_service_account = 27 */ idpServiceAccount?: string; /** - * @generated from protobuf field: optional google.protobuf.Duration idp_refresh_directory_timeout = 28; + * @generated from protobuf field: optional google.protobuf.Duration idp_refresh_directory_timeout = 28 */ idpRefreshDirectoryTimeout?: Duration; /** - * @generated from protobuf field: optional google.protobuf.Duration idp_refresh_directory_interval = 29; + * @generated from protobuf field: optional google.protobuf.Duration idp_refresh_directory_interval = 29 */ idpRefreshDirectoryInterval?: Duration; /** - * @generated from protobuf field: map request_params = 30; + * @generated from protobuf field: map request_params = 30 */ requestParams: { [key: string]: string; }; /** - * @generated from protobuf field: optional string authorize_service_url = 32; + * @generated from protobuf field: optional string authorize_service_url = 32 */ authorizeServiceUrl?: string; /** - * @generated from protobuf field: optional string certificate_authority = 34; + * @generated from protobuf field: optional string certificate_authority = 34 */ certificateAuthority?: string; /** - * @generated from protobuf field: optional string certificate_authority_file = 35; + * @generated from protobuf field: optional string certificate_authority_file = 35 */ certificateAuthorityFile?: string; /** - * @generated from protobuf field: optional string certificate_authority_key_pair_id = 64; + * @generated from protobuf field: optional string certificate_authority_key_pair_id = 64 */ certificateAuthorityKeyPairId?: string; /** - * @generated from protobuf field: map set_response_headers = 67; + * @generated from protobuf field: map set_response_headers = 67 */ setResponseHeaders: { [key: string]: string; }; /** - * @generated from protobuf field: map jwt_claims_headers = 66; + * @generated from protobuf field: map jwt_claims_headers = 66 */ jwtClaimsHeaders: { [key: string]: string; }; /** - * @generated from protobuf field: pomerium.dashboard.JwtGroupsFilter jwt_groups_filter = 87; + * @generated from protobuf field: pomerium.dashboard.JwtGroupsFilter jwt_groups_filter = 87 */ jwtGroupsFilter?: JwtGroupsFilter; /** - * @generated from protobuf field: optional pomerium.dashboard.IssuerFormat jwt_issuer_format = 106; + * @generated from protobuf field: optional pomerium.dashboard.IssuerFormat jwt_issuer_format = 106 */ jwtIssuerFormat?: IssuerFormat; /** - * @generated from protobuf field: optional google.protobuf.Duration default_upstream_timeout = 39; + * @generated from protobuf field: optional google.protobuf.Duration default_upstream_timeout = 39 */ defaultUpstreamTimeout?: Duration; /** - * @generated from protobuf field: optional string metrics_address = 40; + * @generated from protobuf field: optional string metrics_address = 40 */ metricsAddress?: string; /** - * @generated from protobuf field: optional string otel_traces_exporter = 88; + * @generated from protobuf field: optional string otel_traces_exporter = 88 */ otelTracesExporter?: string; /** - * @generated from protobuf field: optional double otel_traces_sampler_arg = 89; + * @generated from protobuf field: optional double otel_traces_sampler_arg = 89 */ otelTracesSamplerArg?: number; /** - * @generated from protobuf field: repeated string otel_resource_attributes = 90; + * @generated from protobuf field: repeated string otel_resource_attributes = 90 */ otelResourceAttributes: string[]; /** - * @generated from protobuf field: optional string otel_log_level = 91; + * @generated from protobuf field: optional string otel_log_level = 91 */ otelLogLevel?: string; /** - * @generated from protobuf field: optional int32 otel_attribute_value_length_limit = 92; + * @generated from protobuf field: optional int32 otel_attribute_value_length_limit = 92 */ otelAttributeValueLengthLimit?: number; /** - * @generated from protobuf field: optional string otel_exporter_otlp_endpoint = 93; + * @generated from protobuf field: optional string otel_exporter_otlp_endpoint = 93 */ otelExporterOtlpEndpoint?: string; /** - * @generated from protobuf field: optional string otel_exporter_otlp_traces_endpoint = 94; + * @generated from protobuf field: optional string otel_exporter_otlp_traces_endpoint = 94 */ otelExporterOtlpTracesEndpoint?: string; /** - * @generated from protobuf field: optional string otel_exporter_otlp_protocol = 95; + * @generated from protobuf field: optional string otel_exporter_otlp_protocol = 95 */ otelExporterOtlpProtocol?: string; /** - * @generated from protobuf field: optional string otel_exporter_otlp_traces_protocol = 96; + * @generated from protobuf field: optional string otel_exporter_otlp_traces_protocol = 96 */ otelExporterOtlpTracesProtocol?: string; /** - * @generated from protobuf field: repeated string otel_exporter_otlp_headers = 97; + * @generated from protobuf field: repeated string otel_exporter_otlp_headers = 97 */ otelExporterOtlpHeaders: string[]; /** - * @generated from protobuf field: repeated string otel_exporter_otlp_traces_headers = 98; + * @generated from protobuf field: repeated string otel_exporter_otlp_traces_headers = 98 */ otelExporterOtlpTracesHeaders: string[]; /** - * @generated from protobuf field: optional google.protobuf.Duration otel_exporter_otlp_timeout = 99; + * @generated from protobuf field: optional google.protobuf.Duration otel_exporter_otlp_timeout = 99 */ otelExporterOtlpTimeout?: Duration; /** - * @generated from protobuf field: optional google.protobuf.Duration otel_exporter_otlp_traces_timeout = 100; + * @generated from protobuf field: optional google.protobuf.Duration otel_exporter_otlp_traces_timeout = 100 */ otelExporterOtlpTracesTimeout?: Duration; /** - * @generated from protobuf field: optional google.protobuf.Duration otel_bsp_schedule_delay = 101; + * @generated from protobuf field: optional google.protobuf.Duration otel_bsp_schedule_delay = 101 */ otelBspScheduleDelay?: Duration; /** - * @generated from protobuf field: optional int32 otel_bsp_max_export_batch_size = 102; + * @generated from protobuf field: optional int32 otel_bsp_max_export_batch_size = 102 */ otelBspMaxExportBatchSize?: number; /** - * @generated from protobuf field: optional string grpc_address = 46; + * @generated from protobuf field: optional string grpc_address = 46 */ grpcAddress?: string; /** - * @generated from protobuf field: optional bool grpc_insecure = 47; + * @generated from protobuf field: optional bool grpc_insecure = 47 */ grpcInsecure?: boolean; /** - * @generated from protobuf field: optional string cache_service_url = 51; + * @generated from protobuf field: optional string cache_service_url = 51 */ cacheServiceUrl?: string; /** - * @generated from protobuf field: optional string databroker_service_url = 52; + * @generated from protobuf field: optional string databroker_service_url = 52 */ databrokerServiceUrl?: string; /** - * @generated from protobuf field: optional string client_ca = 53; + * @generated from protobuf field: optional string client_ca = 53 */ clientCa?: string; /** - * @generated from protobuf field: optional string client_ca_file = 54; + * @generated from protobuf field: optional string client_ca_file = 54 */ clientCaFile?: string; /** - * @generated from protobuf field: optional string client_ca_key_pair_id = 65; + * @generated from protobuf field: optional string client_ca_key_pair_id = 65 */ clientCaKeyPairId?: string; /** - * @generated from protobuf field: optional string google_cloud_serverless_authentication_service_account = 55; + * @generated from protobuf field: optional string google_cloud_serverless_authentication_service_account = 55 */ googleCloudServerlessAuthenticationServiceAccount?: string; /** - * @generated from protobuf field: optional bool autocert = 56; + * @generated from protobuf field: optional bool autocert = 56 */ autocert?: boolean; /** - * @generated from protobuf field: optional bool autocert_use_staging = 57; + * @generated from protobuf field: optional bool autocert_use_staging = 57 */ autocertUseStaging?: boolean; /** - * @generated from protobuf field: optional bool autocert_must_staple = 58; + * @generated from protobuf field: optional bool autocert_must_staple = 58 */ autocertMustStaple?: boolean; /** - * @generated from protobuf field: optional string autocert_dir = 59; + * @generated from protobuf field: optional string autocert_dir = 59 */ autocertDir?: string; /** - * @generated from protobuf field: optional bool skip_xff_append = 63; + * @generated from protobuf field: optional bool skip_xff_append = 63 */ skipXffAppend?: boolean; /** - * @generated from protobuf field: optional string primary_color = 69; + * @generated from protobuf field: optional string primary_color = 69 */ primaryColor?: string; /** - * @generated from protobuf field: optional string secondary_color = 70; + * @generated from protobuf field: optional string secondary_color = 70 */ secondaryColor?: string; /** - * @generated from protobuf field: optional string darkmode_primary_color = 71; + * @generated from protobuf field: optional string darkmode_primary_color = 71 */ darkmodePrimaryColor?: string; /** - * @generated from protobuf field: optional string darkmode_secondary_color = 72; + * @generated from protobuf field: optional string darkmode_secondary_color = 72 */ darkmodeSecondaryColor?: string; /** - * @generated from protobuf field: optional string logo_url = 73; + * @generated from protobuf field: optional string logo_url = 73 */ logoUrl?: string; /** - * @generated from protobuf field: optional string favicon_url = 74; + * @generated from protobuf field: optional string favicon_url = 74 */ faviconUrl?: string; /** - * @generated from protobuf field: optional string error_message_first_paragraph = 75; + * @generated from protobuf field: optional string error_message_first_paragraph = 75 */ errorMessageFirstParagraph?: string; /** - * @generated from protobuf field: optional string identity_provider = 76; + * @generated from protobuf field: optional string identity_provider = 76 */ identityProvider?: string; /** - * @generated from protobuf field: optional google.protobuf.Struct identity_provider_options = 77; + * @generated from protobuf field: optional google.protobuf.Struct identity_provider_options = 77 */ identityProviderOptions?: Struct; /** - * @generated from protobuf field: optional google.protobuf.Duration identity_provider_refresh_interval = 78; + * @generated from protobuf field: optional google.protobuf.Duration identity_provider_refresh_interval = 78 */ identityProviderRefreshInterval?: Duration; /** - * @generated from protobuf field: optional google.protobuf.Duration identity_provider_refresh_timeout = 79; + * @generated from protobuf field: optional google.protobuf.Duration identity_provider_refresh_timeout = 79 */ identityProviderRefreshTimeout?: Duration; /** - * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList access_log_fields = 82; + * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList access_log_fields = 82 */ accessLogFields?: Settings_StringList; /** - * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList authorize_log_fields = 83; + * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList authorize_log_fields = 83 */ authorizeLogFields?: Settings_StringList; /** - * @generated from protobuf field: optional bool pass_identity_headers = 84; + * @generated from protobuf field: optional bool pass_identity_headers = 84 */ passIdentityHeaders?: boolean; /** - * @generated from protobuf field: string originator_id = 103; + * @generated from protobuf field: string originator_id = 103 */ originatorId: string; /** - * @generated from protobuf field: optional pomerium.dashboard.BearerTokenFormat bearer_token_format = 104; + * @generated from protobuf field: optional pomerium.dashboard.BearerTokenFormat bearer_token_format = 104 */ bearerTokenFormat?: BearerTokenFormat; /** - * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList idp_access_token_allowed_audiences = 105; + * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList idp_access_token_allowed_audiences = 105 */ idpAccessTokenAllowedAudiences?: Settings_StringList; /** - * @generated from protobuf field: optional pomerium.dashboard.CodecType codec_type = 109; + * @generated from protobuf field: optional pomerium.dashboard.CodecType codec_type = 109 */ codecType?: CodecType; /** - * @generated from protobuf field: optional pomerium.dashboard.CircuitBreakerThresholds circuit_breaker_thresholds = 110; + * @generated from protobuf field: optional pomerium.dashboard.CircuitBreakerThresholds circuit_breaker_thresholds = 110 */ circuitBreakerThresholds?: CircuitBreakerThresholds; /** - * @generated from protobuf field: optional string ssh_address = 111; + * @generated from protobuf field: optional string ssh_address = 111 */ sshAddress?: string; /** - * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList ssh_host_key_files = 112; + * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList ssh_host_key_files = 112 */ sshHostKeyFiles?: Settings_StringList; /** - * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList ssh_host_keys = 113; + * @generated from protobuf field: optional pomerium.dashboard.Settings.StringList ssh_host_keys = 113 */ sshHostKeys?: Settings_StringList; /** - * @generated from protobuf field: optional string ssh_user_ca_key_file = 114; + * @generated from protobuf field: optional string ssh_user_ca_key_file = 114 */ sshUserCaKeyFile?: string; /** - * @generated from protobuf field: optional string ssh_user_ca_key = 115; + * @generated from protobuf field: optional string ssh_user_ca_key = 115 */ sshUserCaKey?: string; } @@ -460,15 +460,15 @@ export interface Settings { */ export interface Settings_Certificate { /** - * @generated from protobuf field: bytes cert_bytes = 3; + * @generated from protobuf field: bytes cert_bytes = 3 */ certBytes: Uint8Array; /** - * @generated from protobuf field: bytes key_bytes = 4; + * @generated from protobuf field: bytes key_bytes = 4 */ keyBytes: Uint8Array; /** - * @generated from protobuf field: string key_pair_id = 5; + * @generated from protobuf field: string key_pair_id = 5 */ keyPairId: string; } @@ -477,7 +477,7 @@ export interface Settings_Certificate { */ export interface Settings_StringList { /** - * @generated from protobuf field: repeated string values = 1; + * @generated from protobuf field: repeated string values = 1 */ values: string[]; } @@ -491,7 +491,7 @@ export interface GetConsoleSettingsRequest { */ export interface GetConsoleSettingsResponse { /** - * @generated from protobuf field: pomerium.dashboard.ConsoleSettings console_settings = 1; + * @generated from protobuf field: pomerium.dashboard.ConsoleSettings console_settings = 1 */ consoleSettings?: ConsoleSettings; } @@ -500,7 +500,7 @@ export interface GetConsoleSettingsResponse { */ export interface GetSettingsRequest { /** - * @generated from protobuf field: optional string cluster_id = 1; + * @generated from protobuf field: optional string cluster_id = 1 */ clusterId?: string; } @@ -509,7 +509,7 @@ export interface GetSettingsRequest { */ export interface GetSettingsResponse { /** - * @generated from protobuf field: pomerium.dashboard.Settings settings = 1; + * @generated from protobuf field: pomerium.dashboard.Settings settings = 1 */ settings?: Settings; } @@ -518,7 +518,7 @@ export interface GetSettingsResponse { */ export interface SetSettingsRequest { /** - * @generated from protobuf field: pomerium.dashboard.Settings settings = 1; + * @generated from protobuf field: pomerium.dashboard.Settings settings = 1 */ settings?: Settings; } @@ -527,7 +527,7 @@ export interface SetSettingsRequest { */ export interface SetSettingsResponse { /** - * @generated from protobuf field: pomerium.dashboard.Settings settings = 1; + * @generated from protobuf field: pomerium.dashboard.Settings settings = 1 */ settings?: Settings; } @@ -632,7 +632,7 @@ class Settings$Type extends MessageType { { no: 121, name: "dns_refresh_rate", kind: "message", T: () => Duration }, { no: 116, name: "dns_udp_max_queries", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }, { no: 117, name: "dns_use_tcp", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 9, name: "certificates", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Settings_Certificate }, + { no: 9, name: "certificates", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Settings_Certificate }, { no: 10, name: "http_redirect_addr", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 11, name: "timeout_read", kind: "message", T: () => Duration }, { no: 12, name: "timeout_write", kind: "message", T: () => Duration }, @@ -1068,7 +1068,7 @@ class Settings$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.Settings.request_params"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.Settings.request_params"); } } map[key ?? ""] = val ?? ""; @@ -1084,7 +1084,7 @@ class Settings$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.Settings.set_response_headers"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.Settings.set_response_headers"); } } map[key ?? ""] = val ?? ""; @@ -1100,24 +1100,15 @@ class Settings$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.Settings.jwt_claims_headers"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.Settings.jwt_claims_headers"); } } map[key ?? ""] = val ?? ""; } internalBinaryWrite(message: Settings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string id = 107; */ - if (message.id !== "") - writer.tag(107, WireType.LengthDelimited).string(message.id); - /* optional string cluster_id = 108; */ - if (message.clusterId !== undefined) - writer.tag(108, WireType.LengthDelimited).string(message.clusterId); /* google.protobuf.Timestamp modified_at = 1; */ if (message.modifiedAt) Timestamp.internalBinaryWrite(message.modifiedAt, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* optional string installation_id = 68; */ - if (message.installationId !== undefined) - writer.tag(68, WireType.LengthDelimited).string(message.installationId); /* optional string log_level = 3; */ if (message.logLevel !== undefined) writer.tag(3, WireType.LengthDelimited).string(message.logLevel); @@ -1136,27 +1127,6 @@ class Settings$Type extends MessageType { /* optional bool insecure_server = 8; */ if (message.insecureServer !== undefined) writer.tag(8, WireType.Varint).bool(message.insecureServer); - /* optional google.protobuf.Duration dns_failure_refresh_rate = 120; */ - if (message.dnsFailureRefreshRate) - Duration.internalBinaryWrite(message.dnsFailureRefreshRate, writer.tag(120, WireType.LengthDelimited).fork(), options).join(); - /* optional string dns_lookup_family = 60; */ - if (message.dnsLookupFamily !== undefined) - writer.tag(60, WireType.LengthDelimited).string(message.dnsLookupFamily); - /* optional google.protobuf.Duration dns_query_timeout = 119; */ - if (message.dnsQueryTimeout) - Duration.internalBinaryWrite(message.dnsQueryTimeout, writer.tag(119, WireType.LengthDelimited).fork(), options).join(); - /* optional uint32 dns_query_tries = 118; */ - if (message.dnsQueryTries !== undefined) - writer.tag(118, WireType.Varint).uint32(message.dnsQueryTries); - /* optional google.protobuf.Duration dns_refresh_rate = 121; */ - if (message.dnsRefreshRate) - Duration.internalBinaryWrite(message.dnsRefreshRate, writer.tag(121, WireType.LengthDelimited).fork(), options).join(); - /* optional uint32 dns_udp_max_queries = 116; */ - if (message.dnsUdpMaxQueries !== undefined) - writer.tag(116, WireType.Varint).uint32(message.dnsUdpMaxQueries); - /* optional bool dns_use_tcp = 117; */ - if (message.dnsUseTcp !== undefined) - writer.tag(117, WireType.Varint).bool(message.dnsUseTcp); /* repeated pomerium.dashboard.Settings.Certificate certificates = 9; */ for (let i = 0; i < message.certificates.length; i++) Settings_Certificate.internalBinaryWrite(message.certificates[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join(); @@ -1193,9 +1163,6 @@ class Settings$Type extends MessageType { /* optional bool cookie_http_only = 20; */ if (message.cookieHttpOnly !== undefined) writer.tag(20, WireType.Varint).bool(message.cookieHttpOnly); - /* optional string cookie_same_site = 80; */ - if (message.cookieSameSite !== undefined) - writer.tag(80, WireType.LengthDelimited).string(message.cookieSameSite); /* optional google.protobuf.Duration cookie_expire = 21; */ if (message.cookieExpire) Duration.internalBinaryWrite(message.cookieExpire, writer.tag(21, WireType.LengthDelimited).fork(), options).join(); @@ -1235,72 +1202,12 @@ class Settings$Type extends MessageType { /* optional string certificate_authority_file = 35; */ if (message.certificateAuthorityFile !== undefined) writer.tag(35, WireType.LengthDelimited).string(message.certificateAuthorityFile); - /* optional string certificate_authority_key_pair_id = 64; */ - if (message.certificateAuthorityKeyPairId !== undefined) - writer.tag(64, WireType.LengthDelimited).string(message.certificateAuthorityKeyPairId); - /* map set_response_headers = 67; */ - for (let k of globalThis.Object.keys(message.setResponseHeaders)) - writer.tag(67, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.setResponseHeaders[k]).join(); - /* map jwt_claims_headers = 66; */ - for (let k of globalThis.Object.keys(message.jwtClaimsHeaders)) - writer.tag(66, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.jwtClaimsHeaders[k]).join(); - /* pomerium.dashboard.JwtGroupsFilter jwt_groups_filter = 87; */ - if (message.jwtGroupsFilter) - JwtGroupsFilter.internalBinaryWrite(message.jwtGroupsFilter, writer.tag(87, WireType.LengthDelimited).fork(), options).join(); - /* optional pomerium.dashboard.IssuerFormat jwt_issuer_format = 106; */ - if (message.jwtIssuerFormat !== undefined) - writer.tag(106, WireType.Varint).int32(message.jwtIssuerFormat); /* optional google.protobuf.Duration default_upstream_timeout = 39; */ if (message.defaultUpstreamTimeout) Duration.internalBinaryWrite(message.defaultUpstreamTimeout, writer.tag(39, WireType.LengthDelimited).fork(), options).join(); /* optional string metrics_address = 40; */ if (message.metricsAddress !== undefined) writer.tag(40, WireType.LengthDelimited).string(message.metricsAddress); - /* optional string otel_traces_exporter = 88; */ - if (message.otelTracesExporter !== undefined) - writer.tag(88, WireType.LengthDelimited).string(message.otelTracesExporter); - /* optional double otel_traces_sampler_arg = 89; */ - if (message.otelTracesSamplerArg !== undefined) - writer.tag(89, WireType.Bit64).double(message.otelTracesSamplerArg); - /* repeated string otel_resource_attributes = 90; */ - for (let i = 0; i < message.otelResourceAttributes.length; i++) - writer.tag(90, WireType.LengthDelimited).string(message.otelResourceAttributes[i]); - /* optional string otel_log_level = 91; */ - if (message.otelLogLevel !== undefined) - writer.tag(91, WireType.LengthDelimited).string(message.otelLogLevel); - /* optional int32 otel_attribute_value_length_limit = 92; */ - if (message.otelAttributeValueLengthLimit !== undefined) - writer.tag(92, WireType.Varint).int32(message.otelAttributeValueLengthLimit); - /* optional string otel_exporter_otlp_endpoint = 93; */ - if (message.otelExporterOtlpEndpoint !== undefined) - writer.tag(93, WireType.LengthDelimited).string(message.otelExporterOtlpEndpoint); - /* optional string otel_exporter_otlp_traces_endpoint = 94; */ - if (message.otelExporterOtlpTracesEndpoint !== undefined) - writer.tag(94, WireType.LengthDelimited).string(message.otelExporterOtlpTracesEndpoint); - /* optional string otel_exporter_otlp_protocol = 95; */ - if (message.otelExporterOtlpProtocol !== undefined) - writer.tag(95, WireType.LengthDelimited).string(message.otelExporterOtlpProtocol); - /* optional string otel_exporter_otlp_traces_protocol = 96; */ - if (message.otelExporterOtlpTracesProtocol !== undefined) - writer.tag(96, WireType.LengthDelimited).string(message.otelExporterOtlpTracesProtocol); - /* repeated string otel_exporter_otlp_headers = 97; */ - for (let i = 0; i < message.otelExporterOtlpHeaders.length; i++) - writer.tag(97, WireType.LengthDelimited).string(message.otelExporterOtlpHeaders[i]); - /* repeated string otel_exporter_otlp_traces_headers = 98; */ - for (let i = 0; i < message.otelExporterOtlpTracesHeaders.length; i++) - writer.tag(98, WireType.LengthDelimited).string(message.otelExporterOtlpTracesHeaders[i]); - /* optional google.protobuf.Duration otel_exporter_otlp_timeout = 99; */ - if (message.otelExporterOtlpTimeout) - Duration.internalBinaryWrite(message.otelExporterOtlpTimeout, writer.tag(99, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.Duration otel_exporter_otlp_traces_timeout = 100; */ - if (message.otelExporterOtlpTracesTimeout) - Duration.internalBinaryWrite(message.otelExporterOtlpTracesTimeout, writer.tag(100, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.Duration otel_bsp_schedule_delay = 101; */ - if (message.otelBspScheduleDelay) - Duration.internalBinaryWrite(message.otelBspScheduleDelay, writer.tag(101, WireType.LengthDelimited).fork(), options).join(); - /* optional int32 otel_bsp_max_export_batch_size = 102; */ - if (message.otelBspMaxExportBatchSize !== undefined) - writer.tag(102, WireType.Varint).int32(message.otelBspMaxExportBatchSize); /* optional string grpc_address = 46; */ if (message.grpcAddress !== undefined) writer.tag(46, WireType.LengthDelimited).string(message.grpcAddress); @@ -1319,9 +1226,6 @@ class Settings$Type extends MessageType { /* optional string client_ca_file = 54; */ if (message.clientCaFile !== undefined) writer.tag(54, WireType.LengthDelimited).string(message.clientCaFile); - /* optional string client_ca_key_pair_id = 65; */ - if (message.clientCaKeyPairId !== undefined) - writer.tag(65, WireType.LengthDelimited).string(message.clientCaKeyPairId); /* optional string google_cloud_serverless_authentication_service_account = 55; */ if (message.googleCloudServerlessAuthenticationServiceAccount !== undefined) writer.tag(55, WireType.LengthDelimited).string(message.googleCloudServerlessAuthenticationServiceAccount); @@ -1337,9 +1241,27 @@ class Settings$Type extends MessageType { /* optional string autocert_dir = 59; */ if (message.autocertDir !== undefined) writer.tag(59, WireType.LengthDelimited).string(message.autocertDir); + /* optional string dns_lookup_family = 60; */ + if (message.dnsLookupFamily !== undefined) + writer.tag(60, WireType.LengthDelimited).string(message.dnsLookupFamily); /* optional bool skip_xff_append = 63; */ if (message.skipXffAppend !== undefined) writer.tag(63, WireType.Varint).bool(message.skipXffAppend); + /* optional string certificate_authority_key_pair_id = 64; */ + if (message.certificateAuthorityKeyPairId !== undefined) + writer.tag(64, WireType.LengthDelimited).string(message.certificateAuthorityKeyPairId); + /* optional string client_ca_key_pair_id = 65; */ + if (message.clientCaKeyPairId !== undefined) + writer.tag(65, WireType.LengthDelimited).string(message.clientCaKeyPairId); + /* map jwt_claims_headers = 66; */ + for (let k of globalThis.Object.keys(message.jwtClaimsHeaders)) + writer.tag(66, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.jwtClaimsHeaders[k]).join(); + /* map set_response_headers = 67; */ + for (let k of globalThis.Object.keys(message.setResponseHeaders)) + writer.tag(67, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.setResponseHeaders[k]).join(); + /* optional string installation_id = 68; */ + if (message.installationId !== undefined) + writer.tag(68, WireType.LengthDelimited).string(message.installationId); /* optional string primary_color = 69; */ if (message.primaryColor !== undefined) writer.tag(69, WireType.LengthDelimited).string(message.primaryColor); @@ -1373,6 +1295,9 @@ class Settings$Type extends MessageType { /* optional google.protobuf.Duration identity_provider_refresh_timeout = 79; */ if (message.identityProviderRefreshTimeout) Duration.internalBinaryWrite(message.identityProviderRefreshTimeout, writer.tag(79, WireType.LengthDelimited).fork(), options).join(); + /* optional string cookie_same_site = 80; */ + if (message.cookieSameSite !== undefined) + writer.tag(80, WireType.LengthDelimited).string(message.cookieSameSite); /* optional pomerium.dashboard.Settings.StringList access_log_fields = 82; */ if (message.accessLogFields) Settings_StringList.internalBinaryWrite(message.accessLogFields, writer.tag(82, WireType.LengthDelimited).fork(), options).join(); @@ -1382,6 +1307,54 @@ class Settings$Type extends MessageType { /* optional bool pass_identity_headers = 84; */ if (message.passIdentityHeaders !== undefined) writer.tag(84, WireType.Varint).bool(message.passIdentityHeaders); + /* pomerium.dashboard.JwtGroupsFilter jwt_groups_filter = 87; */ + if (message.jwtGroupsFilter) + JwtGroupsFilter.internalBinaryWrite(message.jwtGroupsFilter, writer.tag(87, WireType.LengthDelimited).fork(), options).join(); + /* optional string otel_traces_exporter = 88; */ + if (message.otelTracesExporter !== undefined) + writer.tag(88, WireType.LengthDelimited).string(message.otelTracesExporter); + /* optional double otel_traces_sampler_arg = 89; */ + if (message.otelTracesSamplerArg !== undefined) + writer.tag(89, WireType.Bit64).double(message.otelTracesSamplerArg); + /* repeated string otel_resource_attributes = 90; */ + for (let i = 0; i < message.otelResourceAttributes.length; i++) + writer.tag(90, WireType.LengthDelimited).string(message.otelResourceAttributes[i]); + /* optional string otel_log_level = 91; */ + if (message.otelLogLevel !== undefined) + writer.tag(91, WireType.LengthDelimited).string(message.otelLogLevel); + /* optional int32 otel_attribute_value_length_limit = 92; */ + if (message.otelAttributeValueLengthLimit !== undefined) + writer.tag(92, WireType.Varint).int32(message.otelAttributeValueLengthLimit); + /* optional string otel_exporter_otlp_endpoint = 93; */ + if (message.otelExporterOtlpEndpoint !== undefined) + writer.tag(93, WireType.LengthDelimited).string(message.otelExporterOtlpEndpoint); + /* optional string otel_exporter_otlp_traces_endpoint = 94; */ + if (message.otelExporterOtlpTracesEndpoint !== undefined) + writer.tag(94, WireType.LengthDelimited).string(message.otelExporterOtlpTracesEndpoint); + /* optional string otel_exporter_otlp_protocol = 95; */ + if (message.otelExporterOtlpProtocol !== undefined) + writer.tag(95, WireType.LengthDelimited).string(message.otelExporterOtlpProtocol); + /* optional string otel_exporter_otlp_traces_protocol = 96; */ + if (message.otelExporterOtlpTracesProtocol !== undefined) + writer.tag(96, WireType.LengthDelimited).string(message.otelExporterOtlpTracesProtocol); + /* repeated string otel_exporter_otlp_headers = 97; */ + for (let i = 0; i < message.otelExporterOtlpHeaders.length; i++) + writer.tag(97, WireType.LengthDelimited).string(message.otelExporterOtlpHeaders[i]); + /* repeated string otel_exporter_otlp_traces_headers = 98; */ + for (let i = 0; i < message.otelExporterOtlpTracesHeaders.length; i++) + writer.tag(98, WireType.LengthDelimited).string(message.otelExporterOtlpTracesHeaders[i]); + /* optional google.protobuf.Duration otel_exporter_otlp_timeout = 99; */ + if (message.otelExporterOtlpTimeout) + Duration.internalBinaryWrite(message.otelExporterOtlpTimeout, writer.tag(99, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.Duration otel_exporter_otlp_traces_timeout = 100; */ + if (message.otelExporterOtlpTracesTimeout) + Duration.internalBinaryWrite(message.otelExporterOtlpTracesTimeout, writer.tag(100, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.Duration otel_bsp_schedule_delay = 101; */ + if (message.otelBspScheduleDelay) + Duration.internalBinaryWrite(message.otelBspScheduleDelay, writer.tag(101, WireType.LengthDelimited).fork(), options).join(); + /* optional int32 otel_bsp_max_export_batch_size = 102; */ + if (message.otelBspMaxExportBatchSize !== undefined) + writer.tag(102, WireType.Varint).int32(message.otelBspMaxExportBatchSize); /* string originator_id = 103; */ if (message.originatorId !== "") writer.tag(103, WireType.LengthDelimited).string(message.originatorId); @@ -1391,6 +1364,15 @@ class Settings$Type extends MessageType { /* optional pomerium.dashboard.Settings.StringList idp_access_token_allowed_audiences = 105; */ if (message.idpAccessTokenAllowedAudiences) Settings_StringList.internalBinaryWrite(message.idpAccessTokenAllowedAudiences, writer.tag(105, WireType.LengthDelimited).fork(), options).join(); + /* optional pomerium.dashboard.IssuerFormat jwt_issuer_format = 106; */ + if (message.jwtIssuerFormat !== undefined) + writer.tag(106, WireType.Varint).int32(message.jwtIssuerFormat); + /* string id = 107; */ + if (message.id !== "") + writer.tag(107, WireType.LengthDelimited).string(message.id); + /* optional string cluster_id = 108; */ + if (message.clusterId !== undefined) + writer.tag(108, WireType.LengthDelimited).string(message.clusterId); /* optional pomerium.dashboard.CodecType codec_type = 109; */ if (message.codecType !== undefined) writer.tag(109, WireType.Varint).int32(message.codecType); @@ -1412,6 +1394,24 @@ class Settings$Type extends MessageType { /* optional string ssh_user_ca_key = 115; */ if (message.sshUserCaKey !== undefined) writer.tag(115, WireType.LengthDelimited).string(message.sshUserCaKey); + /* optional uint32 dns_udp_max_queries = 116; */ + if (message.dnsUdpMaxQueries !== undefined) + writer.tag(116, WireType.Varint).uint32(message.dnsUdpMaxQueries); + /* optional bool dns_use_tcp = 117; */ + if (message.dnsUseTcp !== undefined) + writer.tag(117, WireType.Varint).bool(message.dnsUseTcp); + /* optional uint32 dns_query_tries = 118; */ + if (message.dnsQueryTries !== undefined) + writer.tag(118, WireType.Varint).uint32(message.dnsQueryTries); + /* optional google.protobuf.Duration dns_query_timeout = 119; */ + if (message.dnsQueryTimeout) + Duration.internalBinaryWrite(message.dnsQueryTimeout, writer.tag(119, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.Duration dns_failure_refresh_rate = 120; */ + if (message.dnsFailureRefreshRate) + Duration.internalBinaryWrite(message.dnsFailureRefreshRate, writer.tag(120, WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.Duration dns_refresh_rate = 121; */ + if (message.dnsRefreshRate) + Duration.internalBinaryWrite(message.dnsRefreshRate, writer.tag(121, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1544,7 +1544,20 @@ class GetConsoleSettingsRequest$Type extends MessageType; /** * GetUserInfo retrieves identity information and permission mappings for a * user * - * @generated from protobuf rpc: GetUserInfo(pomerium.dashboard.GetUserInfoRequest) returns (pomerium.dashboard.GetUserInfoResponse); + * @generated from protobuf rpc: GetUserInfo */ getUserInfo(input: GetUserInfoRequest, options?: RpcOptions): UnaryCall; /** * QueryGroups retrieves groups from the databroker based on * QueryGroupsRequest parameters * - * @generated from protobuf rpc: QueryGroups(pomerium.dashboard.QueryGroupsRequest) returns (pomerium.dashboard.QueryGroupsResponse); + * @generated from protobuf rpc: QueryGroups */ queryGroups(input: QueryGroupsRequest, options?: RpcOptions): UnaryCall; /** * QueryUsers retrieves users from the databroker based on QueryUsersRequest * parameters * - * @generated from protobuf rpc: QueryUsers(pomerium.dashboard.QueryUsersRequest) returns (pomerium.dashboard.QueryUsersResponse); + * @generated from protobuf rpc: QueryUsers */ queryUsers(input: QueryUsersRequest, options?: RpcOptions): UnaryCall; } @@ -85,7 +85,7 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo { /** * GetGroupInfo retrieves information about a group. * - * @generated from protobuf rpc: GetGroupInfo(pomerium.dashboard.GetGroupInfoRequest) returns (pomerium.dashboard.GetGroupInfoResponse); + * @generated from protobuf rpc: GetGroupInfo */ getGroupInfo(input: GetGroupInfoRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -95,7 +95,7 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo { * GetUserInfo retrieves identity information and permission mappings for a * user * - * @generated from protobuf rpc: GetUserInfo(pomerium.dashboard.GetUserInfoRequest) returns (pomerium.dashboard.GetUserInfoResponse); + * @generated from protobuf rpc: GetUserInfo */ getUserInfo(input: GetUserInfoRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -105,7 +105,7 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo { * QueryGroups retrieves groups from the databroker based on * QueryGroupsRequest parameters * - * @generated from protobuf rpc: QueryGroups(pomerium.dashboard.QueryGroupsRequest) returns (pomerium.dashboard.QueryGroupsResponse); + * @generated from protobuf rpc: QueryGroups */ queryGroups(input: QueryGroupsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -115,7 +115,7 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo { * QueryUsers retrieves users from the databroker based on QueryUsersRequest * parameters * - * @generated from protobuf rpc: QueryUsers(pomerium.dashboard.QueryUsersRequest) returns (pomerium.dashboard.QueryUsersResponse); + * @generated from protobuf rpc: QueryUsers */ queryUsers(input: QueryUsersRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); @@ -132,30 +132,30 @@ export interface IPomeriumServiceAccountServiceClient { /** * AddPomeriumServiceAccount creates a new service account * - * @generated from protobuf rpc: AddPomeriumServiceAccount(pomerium.dashboard.AddPomeriumServiceAccountRequest) returns (pomerium.dashboard.AddPomeriumServiceAccountResponse); + * @generated from protobuf rpc: AddPomeriumServiceAccount */ addPomeriumServiceAccount(input: AddPomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall; /** * DeletePomeriumServiceAccount removes an existing service account * - * @generated from protobuf rpc: DeletePomeriumServiceAccount(pomerium.dashboard.DeletePomeriumServiceAccountRequest) returns (pomerium.dashboard.DeletePomeriumServiceAccountResponse); + * @generated from protobuf rpc: DeletePomeriumServiceAccount */ deletePomeriumServiceAccount(input: DeletePomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall; /** * GetPomeriumServiceAccount retrieves an existing service account * - * @generated from protobuf rpc: GetPomeriumServiceAccount(pomerium.dashboard.GetPomeriumServiceAccountRequest) returns (pomerium.dashboard.GetPomeriumServiceAccountResponse); + * @generated from protobuf rpc: GetPomeriumServiceAccount */ getPomeriumServiceAccount(input: GetPomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall; /** * ListPomeriumServiceAccounts lists service accounts based on the parameters * in ListPomeriumServiceAccountsRequest * - * @generated from protobuf rpc: ListPomeriumServiceAccounts(pomerium.dashboard.ListPomeriumServiceAccountsRequest) returns (pomerium.dashboard.ListPomeriumServiceAccountsResponse); + * @generated from protobuf rpc: ListPomeriumServiceAccounts */ listPomeriumServiceAccounts(input: ListPomeriumServiceAccountsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: SetPomeriumServiceAccount(pomerium.dashboard.SetPomeriumServiceAccountRequest) returns (pomerium.dashboard.SetPomeriumServiceAccountResponse); + * @generated from protobuf rpc: SetPomeriumServiceAccount */ setPomeriumServiceAccount(input: SetPomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall; } @@ -174,7 +174,7 @@ export class PomeriumServiceAccountServiceClient implements IPomeriumServiceAcco /** * AddPomeriumServiceAccount creates a new service account * - * @generated from protobuf rpc: AddPomeriumServiceAccount(pomerium.dashboard.AddPomeriumServiceAccountRequest) returns (pomerium.dashboard.AddPomeriumServiceAccountResponse); + * @generated from protobuf rpc: AddPomeriumServiceAccount */ addPomeriumServiceAccount(input: AddPomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -183,7 +183,7 @@ export class PomeriumServiceAccountServiceClient implements IPomeriumServiceAcco /** * DeletePomeriumServiceAccount removes an existing service account * - * @generated from protobuf rpc: DeletePomeriumServiceAccount(pomerium.dashboard.DeletePomeriumServiceAccountRequest) returns (pomerium.dashboard.DeletePomeriumServiceAccountResponse); + * @generated from protobuf rpc: DeletePomeriumServiceAccount */ deletePomeriumServiceAccount(input: DeletePomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -192,7 +192,7 @@ export class PomeriumServiceAccountServiceClient implements IPomeriumServiceAcco /** * GetPomeriumServiceAccount retrieves an existing service account * - * @generated from protobuf rpc: GetPomeriumServiceAccount(pomerium.dashboard.GetPomeriumServiceAccountRequest) returns (pomerium.dashboard.GetPomeriumServiceAccountResponse); + * @generated from protobuf rpc: GetPomeriumServiceAccount */ getPomeriumServiceAccount(input: GetPomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -202,14 +202,14 @@ export class PomeriumServiceAccountServiceClient implements IPomeriumServiceAcco * ListPomeriumServiceAccounts lists service accounts based on the parameters * in ListPomeriumServiceAccountsRequest * - * @generated from protobuf rpc: ListPomeriumServiceAccounts(pomerium.dashboard.ListPomeriumServiceAccountsRequest) returns (pomerium.dashboard.ListPomeriumServiceAccountsResponse); + * @generated from protobuf rpc: ListPomeriumServiceAccounts */ listPomeriumServiceAccounts(input: ListPomeriumServiceAccountsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: SetPomeriumServiceAccount(pomerium.dashboard.SetPomeriumServiceAccountRequest) returns (pomerium.dashboard.SetPomeriumServiceAccountResponse); + * @generated from protobuf rpc: SetPomeriumServiceAccount */ setPomeriumServiceAccount(input: SetPomeriumServiceAccountRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); @@ -225,33 +225,33 @@ export interface IPomeriumSessionServiceClient { /** * DeletePomeriumSession clears an existing user session * - * @generated from protobuf rpc: DeletePomeriumSession(pomerium.dashboard.DeletePomeriumSessionRequest) returns (pomerium.dashboard.DeletePomeriumSessionResponse); + * @generated from protobuf rpc: DeletePomeriumSession */ deletePomeriumSession(input: DeletePomeriumSessionRequest, options?: RpcOptions): UnaryCall; /** * GetPomeriumSession retrieves information about an existing user session * - * @generated from protobuf rpc: GetPomeriumSession(pomerium.dashboard.GetPomeriumSessionRequest) returns (pomerium.dashboard.GetPomeriumSessionResponse); + * @generated from protobuf rpc: GetPomeriumSession */ getPomeriumSession(input: GetPomeriumSessionRequest, options?: RpcOptions): UnaryCall; /** * Impersonate updates an existing session to impersonate another identity * - * @generated from protobuf rpc: Impersonate(pomerium.dashboard.ImpersonateRequest) returns (pomerium.dashboard.ImpersonateResponse); + * @generated from protobuf rpc: Impersonate */ impersonate(input: ImpersonateRequest, options?: RpcOptions): UnaryCall; /** * ListPomeriumSessions lists existing sessions based on the parameters of * ListPomeriumSessionsRequest * - * @generated from protobuf rpc: ListPomeriumSessions(pomerium.dashboard.ListPomeriumSessionsRequest) returns (pomerium.dashboard.ListPomeriumSessionsResponse); + * @generated from protobuf rpc: ListPomeriumSessions */ listPomeriumSessions(input: ListPomeriumSessionsRequest, options?: RpcOptions): UnaryCall; /** * ListPomeriumSessionsForImpersonation lists existing sessions for * impersonation. * - * @generated from protobuf rpc: ListPomeriumSessionsForImpersonation(pomerium.dashboard.ListPomeriumSessionsForImpersonationRequest) returns (pomerium.dashboard.ListPomeriumSessionsForImpersonationResponse); + * @generated from protobuf rpc: ListPomeriumSessionsForImpersonation */ listPomeriumSessionsForImpersonation(input: ListPomeriumSessionsForImpersonationRequest, options?: RpcOptions): UnaryCall; } @@ -269,7 +269,7 @@ export class PomeriumSessionServiceClient implements IPomeriumSessionServiceClie /** * DeletePomeriumSession clears an existing user session * - * @generated from protobuf rpc: DeletePomeriumSession(pomerium.dashboard.DeletePomeriumSessionRequest) returns (pomerium.dashboard.DeletePomeriumSessionResponse); + * @generated from protobuf rpc: DeletePomeriumSession */ deletePomeriumSession(input: DeletePomeriumSessionRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -278,7 +278,7 @@ export class PomeriumSessionServiceClient implements IPomeriumSessionServiceClie /** * GetPomeriumSession retrieves information about an existing user session * - * @generated from protobuf rpc: GetPomeriumSession(pomerium.dashboard.GetPomeriumSessionRequest) returns (pomerium.dashboard.GetPomeriumSessionResponse); + * @generated from protobuf rpc: GetPomeriumSession */ getPomeriumSession(input: GetPomeriumSessionRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); @@ -287,7 +287,7 @@ export class PomeriumSessionServiceClient implements IPomeriumSessionServiceClie /** * Impersonate updates an existing session to impersonate another identity * - * @generated from protobuf rpc: Impersonate(pomerium.dashboard.ImpersonateRequest) returns (pomerium.dashboard.ImpersonateResponse); + * @generated from protobuf rpc: Impersonate */ impersonate(input: ImpersonateRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); @@ -297,7 +297,7 @@ export class PomeriumSessionServiceClient implements IPomeriumSessionServiceClie * ListPomeriumSessions lists existing sessions based on the parameters of * ListPomeriumSessionsRequest * - * @generated from protobuf rpc: ListPomeriumSessions(pomerium.dashboard.ListPomeriumSessionsRequest) returns (pomerium.dashboard.ListPomeriumSessionsResponse); + * @generated from protobuf rpc: ListPomeriumSessions */ listPomeriumSessions(input: ListPomeriumSessionsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); @@ -307,7 +307,7 @@ export class PomeriumSessionServiceClient implements IPomeriumSessionServiceClie * ListPomeriumSessionsForImpersonation lists existing sessions for * impersonation. * - * @generated from protobuf rpc: ListPomeriumSessionsForImpersonation(pomerium.dashboard.ListPomeriumSessionsForImpersonationRequest) returns (pomerium.dashboard.ListPomeriumSessionsForImpersonationResponse); + * @generated from protobuf rpc: ListPomeriumSessionsForImpersonation */ listPomeriumSessionsForImpersonation(input: ListPomeriumSessionsForImpersonationRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); diff --git a/src/pomerium-console/users.ts b/src/pomerium-console/users.ts index 3162b8a..4c9f06a 100644 --- a/src/pomerium-console/users.ts +++ b/src/pomerium-console/users.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "users.proto" (package "pomerium.dashboard", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -21,27 +21,27 @@ import { Timestamp } from "./google/protobuf/timestamp"; */ export interface RecoveryToken { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string namespace = 2; + * @generated from protobuf field: string namespace = 2 */ namespace: string; /** - * @generated from protobuf field: google.protobuf.Timestamp created_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp created_at = 3 */ createdAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp modified_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp modified_at = 4 */ modifiedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp expires_at = 5; + * @generated from protobuf field: google.protobuf.Timestamp expires_at = 5 */ expiresAt?: Timestamp; /** - * @generated from protobuf field: string public_key = 6; + * @generated from protobuf field: string public_key = 6 */ publicKey: string; } @@ -52,11 +52,11 @@ export interface RecoveryToken { */ export interface GroupInfo { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string name = 2; + * @generated from protobuf field: string name = 2 */ name: string; } @@ -67,33 +67,33 @@ export interface GroupInfo { */ export interface UserInfo { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string name = 2; + * @generated from protobuf field: string name = 2 */ name: string; /** - * @generated from protobuf field: string email = 3; + * @generated from protobuf field: string email = 3 */ email: string; /** - * @generated from protobuf field: repeated string groups = 4; + * @generated from protobuf field: repeated string groups = 4 */ groups: string[]; /** - * @generated from protobuf field: map namespace_roles = 5; + * @generated from protobuf field: map namespace_roles = 5 */ namespaceRoles: { [key: string]: string; }; /** - * @generated from protobuf field: string picture_url = 6; + * @generated from protobuf field: string picture_url = 6 */ pictureUrl: string; /** - * @generated from protobuf field: bool is_impersonated = 7; + * @generated from protobuf field: bool is_impersonated = 7 */ isImpersonated: boolean; } @@ -102,11 +102,11 @@ export interface UserInfo { */ export interface GetGroupInfoRequest { /** - * @generated from protobuf field: string group_id = 1; + * @generated from protobuf field: string group_id = 1 */ groupId: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -115,7 +115,7 @@ export interface GetGroupInfoRequest { */ export interface GetGroupInfoResponse { /** - * @generated from protobuf field: pomerium.dashboard.GroupInfo group_info = 1; + * @generated from protobuf field: pomerium.dashboard.GroupInfo group_info = 1 */ groupInfo?: GroupInfo; } @@ -124,11 +124,11 @@ export interface GetGroupInfoResponse { */ export interface GetUserInfoRequest { /** - * @generated from protobuf field: optional string user_id = 1; + * @generated from protobuf field: optional string user_id = 1 */ userId?: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -137,7 +137,7 @@ export interface GetUserInfoRequest { */ export interface GetUserInfoResponse { /** - * @generated from protobuf field: pomerium.dashboard.UserInfo user_info = 1; + * @generated from protobuf field: pomerium.dashboard.UserInfo user_info = 1 */ userInfo?: UserInfo; } @@ -148,19 +148,19 @@ export interface GetUserInfoResponse { */ export interface QueryGroupsRequest { /** - * @generated from protobuf field: string query = 1; + * @generated from protobuf field: string query = 1 */ query: string; /** - * @generated from protobuf field: int64 offset = 2; + * @generated from protobuf field: int64 offset = 2 */ offset: bigint; /** - * @generated from protobuf field: int64 limit = 3; + * @generated from protobuf field: int64 limit = 3 */ limit: bigint; /** - * @generated from protobuf field: optional string cluster_id = 4; + * @generated from protobuf field: optional string cluster_id = 4 */ clusterId?: string; } @@ -171,11 +171,11 @@ export interface QueryGroupsRequest { */ export interface QueryGroupsResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.GroupInfo groups = 1; + * @generated from protobuf field: repeated pomerium.dashboard.GroupInfo groups = 1 */ groups: GroupInfo[]; /** - * @generated from protobuf field: int64 total_count = 2; + * @generated from protobuf field: int64 total_count = 2 */ totalCount: bigint; } @@ -188,23 +188,23 @@ export interface QueryUsersRequest { /** * list Users with any fields that match the query * - * @generated from protobuf field: string query = 1; + * @generated from protobuf field: string query = 1 */ query: string; /** * list Users starting from an offset in the total list * - * @generated from protobuf field: int64 offset = 2; + * @generated from protobuf field: int64 offset = 2 */ offset: bigint; /** * limit the number of User entries returned * - * @generated from protobuf field: int64 limit = 3; + * @generated from protobuf field: int64 limit = 3 */ limit: bigint; /** - * @generated from protobuf field: optional string cluster_id = 4; + * @generated from protobuf field: optional string cluster_id = 4 */ clusterId?: string; } @@ -215,11 +215,11 @@ export interface QueryUsersRequest { */ export interface QueryUsersResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.UserInfo users = 1; + * @generated from protobuf field: repeated pomerium.dashboard.UserInfo users = 1 */ users: UserInfo[]; /** - * @generated from protobuf field: int64 total_count = 2; + * @generated from protobuf field: int64 total_count = 2 */ totalCount: bigint; } @@ -230,35 +230,35 @@ export interface QueryUsersResponse { */ export interface PomeriumServiceAccount { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: optional string namespace_id = 8; + * @generated from protobuf field: optional string namespace_id = 8 */ namespaceId?: string; /** - * @generated from protobuf field: optional string description = 9; + * @generated from protobuf field: optional string description = 9 */ description?: string; /** - * @generated from protobuf field: string user_id = 2; + * @generated from protobuf field: string user_id = 2 */ userId: string; /** - * @generated from protobuf field: google.protobuf.Timestamp accessed_at = 10; + * @generated from protobuf field: google.protobuf.Timestamp accessed_at = 10 */ accessedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp expires_at = 3; + * @generated from protobuf field: google.protobuf.Timestamp expires_at = 3 */ expiresAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp issued_at = 4; + * @generated from protobuf field: google.protobuf.Timestamp issued_at = 4 */ issuedAt?: Timestamp; /** - * @generated from protobuf field: optional string originator_id = 11; + * @generated from protobuf field: optional string originator_id = 11 */ originatorId?: string; } @@ -267,11 +267,11 @@ export interface PomeriumServiceAccount { */ export interface AddPomeriumServiceAccountRequest { /** - * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1; + * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1 */ serviceAccount?: PomeriumServiceAccount; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -280,11 +280,11 @@ export interface AddPomeriumServiceAccountRequest { */ export interface AddPomeriumServiceAccountResponse { /** - * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1; + * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1 */ serviceAccount?: PomeriumServiceAccount; /** - * @generated from protobuf field: string JWT = 2 [json_name = "JWT"]; + * @generated from protobuf field: string JWT = 2 */ jWT: string; } @@ -293,11 +293,11 @@ export interface AddPomeriumServiceAccountResponse { */ export interface DeletePomeriumServiceAccountRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -311,11 +311,11 @@ export interface DeletePomeriumServiceAccountResponse { */ export interface GetPomeriumServiceAccountRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -324,7 +324,7 @@ export interface GetPomeriumServiceAccountRequest { */ export interface GetPomeriumServiceAccountResponse { /** - * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1; + * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1 */ serviceAccount?: PomeriumServiceAccount; } @@ -335,11 +335,11 @@ export interface GetPomeriumServiceAccountResponse { */ export interface ListPomeriumServiceAccountsRequest { /** - * @generated from protobuf field: string namespace = 1; + * @generated from protobuf field: string namespace = 1 */ namespace: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -351,7 +351,7 @@ export interface ListPomeriumServiceAccountsRequest { */ export interface ListPomeriumServiceAccountsResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.PomeriumServiceAccount service_accounts = 1; + * @generated from protobuf field: repeated pomerium.dashboard.PomeriumServiceAccount service_accounts = 1 */ serviceAccounts: PomeriumServiceAccount[]; } @@ -360,11 +360,11 @@ export interface ListPomeriumServiceAccountsResponse { */ export interface SetPomeriumServiceAccountRequest { /** - * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1; + * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1 */ serviceAccount?: PomeriumServiceAccount; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -373,7 +373,7 @@ export interface SetPomeriumServiceAccountRequest { */ export interface SetPomeriumServiceAccountResponse { /** - * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1; + * @generated from protobuf field: pomerium.dashboard.PomeriumServiceAccount service_account = 1 */ serviceAccount?: PomeriumServiceAccount; } @@ -384,39 +384,39 @@ export interface SetPomeriumServiceAccountResponse { */ export interface PomeriumSession { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: pomerium.dashboard.PomeriumSession.User user = 2; + * @generated from protobuf field: pomerium.dashboard.PomeriumSession.User user = 2 */ user?: PomeriumSession_User; /** - * @generated from protobuf field: repeated pomerium.dashboard.PomeriumSession.Group groups = 3; + * @generated from protobuf field: repeated pomerium.dashboard.PomeriumSession.Group groups = 3 */ groups: PomeriumSession_Group[]; /** - * @generated from protobuf field: string issuer = 4; + * @generated from protobuf field: string issuer = 4 */ issuer: string; /** - * @generated from protobuf field: google.protobuf.Timestamp accessed_at = 9; + * @generated from protobuf field: google.protobuf.Timestamp accessed_at = 9 */ accessedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp issued_at = 5; + * @generated from protobuf field: google.protobuf.Timestamp issued_at = 5 */ issuedAt?: Timestamp; /** - * @generated from protobuf field: google.protobuf.Timestamp expires_at = 6; + * @generated from protobuf field: google.protobuf.Timestamp expires_at = 6 */ expiresAt?: Timestamp; /** - * @generated from protobuf field: repeated string audience = 7; + * @generated from protobuf field: repeated string audience = 7 */ audience: string[]; /** - * @generated from protobuf field: map claims = 8; + * @generated from protobuf field: map claims = 8 */ claims: { [key: string]: ListValue; @@ -427,15 +427,15 @@ export interface PomeriumSession { */ export interface PomeriumSession_Group { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string name = 2; + * @generated from protobuf field: string name = 2 */ name: string; /** - * @generated from protobuf field: string email = 3; + * @generated from protobuf field: string email = 3 */ email: string; } @@ -444,15 +444,15 @@ export interface PomeriumSession_Group { */ export interface PomeriumSession_User { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string name = 2; + * @generated from protobuf field: string name = 2 */ name: string; /** - * @generated from protobuf field: string email = 3; + * @generated from protobuf field: string email = 3 */ email: string; } @@ -461,11 +461,11 @@ export interface PomeriumSession_User { */ export interface DeletePomeriumSessionRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -479,11 +479,11 @@ export interface DeletePomeriumSessionResponse { */ export interface GetPomeriumSessionRequest { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -492,11 +492,11 @@ export interface GetPomeriumSessionRequest { */ export interface GetPomeriumSessionResponse { /** - * @generated from protobuf field: pomerium.dashboard.PomeriumSession session = 1; + * @generated from protobuf field: pomerium.dashboard.PomeriumSession session = 1 */ session?: PomeriumSession; /** - * @generated from protobuf field: repeated pomerium.dashboard.PomeriumSession associated_sessions = 2; + * @generated from protobuf field: repeated pomerium.dashboard.PomeriumSession associated_sessions = 2 */ associatedSessions: PomeriumSession[]; } @@ -509,33 +509,33 @@ export interface ListPomeriumSessionsRequest { /** * list Sessions with any fields that contain the query string * - * @generated from protobuf field: optional string query = 1; + * @generated from protobuf field: optional string query = 1 */ query?: string; /** * list Sessions starting from an offset in the total list * - * @generated from protobuf field: optional int64 offset = 2; + * @generated from protobuf field: optional int64 offset = 2 */ offset?: bigint; /** * limit the number of Session entries returned * - * @generated from protobuf field: optional int64 limit = 3; + * @generated from protobuf field: optional int64 limit = 3 */ limit?: bigint; /** * sort the Sessions by newest, oldest or name * - * @generated from protobuf field: optional string order_by = 4; + * @generated from protobuf field: optional string order_by = 4 */ orderBy?: string; /** - * @generated from protobuf field: optional string user_id = 5; + * @generated from protobuf field: optional string user_id = 5 */ userId?: string; /** - * @generated from protobuf field: optional string cluster_id = 6; + * @generated from protobuf field: optional string cluster_id = 6 */ clusterId?: string; } @@ -547,11 +547,11 @@ export interface ListPomeriumSessionsRequest { */ export interface ListPomeriumSessionsResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.PomeriumSession sessions = 1; + * @generated from protobuf field: repeated pomerium.dashboard.PomeriumSession sessions = 1 */ sessions: PomeriumSession[]; /** - * @generated from protobuf field: int64 total_count = 2; + * @generated from protobuf field: int64 total_count = 2 */ totalCount: bigint; } @@ -560,11 +560,11 @@ export interface ListPomeriumSessionsResponse { */ export interface ListPomeriumSessionsForImpersonationRequest { /** - * @generated from protobuf field: optional string cluster_id = 1; + * @generated from protobuf field: optional string cluster_id = 1 */ clusterId?: string; /** - * @generated from protobuf field: optional string query = 2; + * @generated from protobuf field: optional string query = 2 */ query?: string; } @@ -573,7 +573,7 @@ export interface ListPomeriumSessionsForImpersonationRequest { */ export interface ListPomeriumSessionsForImpersonationResponse { /** - * @generated from protobuf field: repeated pomerium.dashboard.ListPomeriumSessionsForImpersonationResponse.Session sessions = 1; + * @generated from protobuf field: repeated pomerium.dashboard.ListPomeriumSessionsForImpersonationResponse.Session sessions = 1 */ sessions: ListPomeriumSessionsForImpersonationResponse_Session[]; } @@ -582,15 +582,15 @@ export interface ListPomeriumSessionsForImpersonationResponse { */ export interface ListPomeriumSessionsForImpersonationResponse_Session { /** - * @generated from protobuf field: string id = 1; + * @generated from protobuf field: string id = 1 */ id: string; /** - * @generated from protobuf field: string user_display_name = 2; + * @generated from protobuf field: string user_display_name = 2 */ userDisplayName: string; /** - * @generated from protobuf field: string user_email = 3; + * @generated from protobuf field: string user_email = 3 */ userEmail: string; } @@ -601,11 +601,11 @@ export interface ListPomeriumSessionsForImpersonationResponse_Session { */ export interface ImpersonateRequest { /** - * @generated from protobuf field: string session_id = 1; + * @generated from protobuf field: string session_id = 1 */ sessionId: string; /** - * @generated from protobuf field: optional string cluster_id = 2; + * @generated from protobuf field: optional string cluster_id = 2 */ clusterId?: string; } @@ -827,7 +827,7 @@ class UserInfo$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.UserInfo.namespace_roles"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.UserInfo.namespace_roles"); } } map[key ?? ""] = val ?? ""; @@ -1137,7 +1137,7 @@ export const QueryGroupsRequest = new QueryGroupsRequest$Type(); class QueryGroupsResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.QueryGroupsResponse", [ - { no: 1, name: "groups", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => GroupInfo }, + { no: 1, name: "groups", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupInfo }, { no: 2, name: "total_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ]); } @@ -1262,7 +1262,7 @@ export const QueryUsersRequest = new QueryUsersRequest$Type(); class QueryUsersResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.QueryUsersResponse", [ - { no: 1, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => UserInfo }, + { no: 1, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserInfo }, { no: 2, name: "total_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ]); } @@ -1379,24 +1379,24 @@ class PomeriumServiceAccount$Type extends MessageType { /* string id = 1; */ if (message.id !== "") writer.tag(1, WireType.LengthDelimited).string(message.id); - /* optional string namespace_id = 8; */ - if (message.namespaceId !== undefined) - writer.tag(8, WireType.LengthDelimited).string(message.namespaceId); - /* optional string description = 9; */ - if (message.description !== undefined) - writer.tag(9, WireType.LengthDelimited).string(message.description); /* string user_id = 2; */ if (message.userId !== "") writer.tag(2, WireType.LengthDelimited).string(message.userId); - /* google.protobuf.Timestamp accessed_at = 10; */ - if (message.accessedAt) - Timestamp.internalBinaryWrite(message.accessedAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); /* google.protobuf.Timestamp expires_at = 3; */ if (message.expiresAt) Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* google.protobuf.Timestamp issued_at = 4; */ if (message.issuedAt) Timestamp.internalBinaryWrite(message.issuedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* optional string namespace_id = 8; */ + if (message.namespaceId !== undefined) + writer.tag(8, WireType.LengthDelimited).string(message.namespaceId); + /* optional string description = 9; */ + if (message.description !== undefined) + writer.tag(9, WireType.LengthDelimited).string(message.description); + /* google.protobuf.Timestamp accessed_at = 10; */ + if (message.accessedAt) + Timestamp.internalBinaryWrite(message.accessedAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); /* optional string originator_id = 11; */ if (message.originatorId !== undefined) writer.tag(11, WireType.LengthDelimited).string(message.originatorId); @@ -1486,7 +1486,7 @@ class AddPomeriumServiceAccountResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListPomeriumServiceAccountsResponse", [ - { no: 1, name: "service_accounts", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PomeriumServiceAccount } + { no: 1, name: "service_accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PomeriumServiceAccount } ]); } create(value?: PartialMessage): ListPomeriumServiceAccountsResponse { @@ -1902,7 +1915,7 @@ class PomeriumSession$Type extends MessageType { super("pomerium.dashboard.PomeriumSession", [ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "user", kind: "message", T: () => PomeriumSession_User }, - { no: 3, name: "groups", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PomeriumSession_Group }, + { no: 3, name: "groups", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PomeriumSession_Group }, { no: 4, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 9, name: "accessed_at", kind: "message", T: () => Timestamp }, { no: 5, name: "issued_at", kind: "message", T: () => Timestamp }, @@ -1976,7 +1989,7 @@ class PomeriumSession$Type extends MessageType { case 2: val = ListValue.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field pomerium.dashboard.PomeriumSession.claims"); + default: throw new globalThis.Error("unknown map entry field for pomerium.dashboard.PomeriumSession.claims"); } } map[key ?? ""] = val ?? ListValue.create(); @@ -1994,9 +2007,6 @@ class PomeriumSession$Type extends MessageType { /* string issuer = 4; */ if (message.issuer !== "") writer.tag(4, WireType.LengthDelimited).string(message.issuer); - /* google.protobuf.Timestamp accessed_at = 9; */ - if (message.accessedAt) - Timestamp.internalBinaryWrite(message.accessedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); /* google.protobuf.Timestamp issued_at = 5; */ if (message.issuedAt) Timestamp.internalBinaryWrite(message.issuedAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); @@ -2013,6 +2023,9 @@ class PomeriumSession$Type extends MessageType { ListValue.internalBinaryWrite(message.claims[k], writer, options); writer.join().join(); } + /* google.protobuf.Timestamp accessed_at = 9; */ + if (message.accessedAt) + Timestamp.internalBinaryWrite(message.accessedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2215,7 +2228,20 @@ class DeletePomeriumSessionResponse$Type extends MessageType PomeriumSession }, - { no: 2, name: "associated_sessions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PomeriumSession } + { no: 2, name: "associated_sessions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PomeriumSession } ]); } create(value?: PartialMessage): GetPomeriumSessionResponse { @@ -2421,7 +2447,7 @@ export const ListPomeriumSessionsRequest = new ListPomeriumSessionsRequest$Type( class ListPomeriumSessionsResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListPomeriumSessionsResponse", [ - { no: 1, name: "sessions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PomeriumSession }, + { no: 1, name: "sessions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PomeriumSession }, { no: 2, name: "total_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ]); } @@ -2529,7 +2555,7 @@ export const ListPomeriumSessionsForImpersonationRequest = new ListPomeriumSessi class ListPomeriumSessionsForImpersonationResponse$Type extends MessageType { constructor() { super("pomerium.dashboard.ListPomeriumSessionsForImpersonationResponse", [ - { no: 1, name: "sessions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ListPomeriumSessionsForImpersonationResponse_Session } + { no: 1, name: "sessions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListPomeriumSessionsForImpersonationResponse_Session } ]); } create(value?: PartialMessage): ListPomeriumSessionsForImpersonationResponse { @@ -2701,7 +2727,20 @@ class ImpersonateResponse$Type extends MessageType { return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImpersonateResponse): ImpersonateResponse { - return target ?? this.create(); + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; } internalBinaryWrite(message: ImpersonateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; diff --git a/src/pomerium-console/validate/validate.ts b/src/pomerium-console/validate/validate.ts index 3876eb5..0b5fbe7 100644 --- a/src/pomerium-console/validate/validate.ts +++ b/src/pomerium-console/validate/validate.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies +// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "validate/validate.proto" (package "validate", syntax proto2) // tslint:disable import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; @@ -20,7 +20,7 @@ import { Duration } from "../google/protobuf/duration"; */ export interface FieldRules { /** - * @generated from protobuf field: optional validate.MessageRules message = 17; + * @generated from protobuf field: optional validate.MessageRules message = 17 */ message?: MessageRules; /** @@ -31,91 +31,91 @@ export interface FieldRules { /** * Scalar Field Types * - * @generated from protobuf field: validate.FloatRules float = 1; + * @generated from protobuf field: validate.FloatRules float = 1 */ float: FloatRules; } | { oneofKind: "double"; /** - * @generated from protobuf field: validate.DoubleRules double = 2; + * @generated from protobuf field: validate.DoubleRules double = 2 */ double: DoubleRules; } | { oneofKind: "int32"; /** - * @generated from protobuf field: validate.Int32Rules int32 = 3; + * @generated from protobuf field: validate.Int32Rules int32 = 3 */ int32: Int32Rules; } | { oneofKind: "int64"; /** - * @generated from protobuf field: validate.Int64Rules int64 = 4; + * @generated from protobuf field: validate.Int64Rules int64 = 4 */ int64: Int64Rules; } | { oneofKind: "uint32"; /** - * @generated from protobuf field: validate.UInt32Rules uint32 = 5; + * @generated from protobuf field: validate.UInt32Rules uint32 = 5 */ uint32: UInt32Rules; } | { oneofKind: "uint64"; /** - * @generated from protobuf field: validate.UInt64Rules uint64 = 6; + * @generated from protobuf field: validate.UInt64Rules uint64 = 6 */ uint64: UInt64Rules; } | { oneofKind: "sint32"; /** - * @generated from protobuf field: validate.SInt32Rules sint32 = 7; + * @generated from protobuf field: validate.SInt32Rules sint32 = 7 */ sint32: SInt32Rules; } | { oneofKind: "sint64"; /** - * @generated from protobuf field: validate.SInt64Rules sint64 = 8; + * @generated from protobuf field: validate.SInt64Rules sint64 = 8 */ sint64: SInt64Rules; } | { oneofKind: "fixed32"; /** - * @generated from protobuf field: validate.Fixed32Rules fixed32 = 9; + * @generated from protobuf field: validate.Fixed32Rules fixed32 = 9 */ fixed32: Fixed32Rules; } | { oneofKind: "fixed64"; /** - * @generated from protobuf field: validate.Fixed64Rules fixed64 = 10; + * @generated from protobuf field: validate.Fixed64Rules fixed64 = 10 */ fixed64: Fixed64Rules; } | { oneofKind: "sfixed32"; /** - * @generated from protobuf field: validate.SFixed32Rules sfixed32 = 11; + * @generated from protobuf field: validate.SFixed32Rules sfixed32 = 11 */ sfixed32: SFixed32Rules; } | { oneofKind: "sfixed64"; /** - * @generated from protobuf field: validate.SFixed64Rules sfixed64 = 12; + * @generated from protobuf field: validate.SFixed64Rules sfixed64 = 12 */ sfixed64: SFixed64Rules; } | { oneofKind: "bool"; /** - * @generated from protobuf field: validate.BoolRules bool = 13; + * @generated from protobuf field: validate.BoolRules bool = 13 */ bool: BoolRules; } | { oneofKind: "string"; /** - * @generated from protobuf field: validate.StringRules string = 14; + * @generated from protobuf field: validate.StringRules string = 14 */ string: StringRules; } | { oneofKind: "bytes"; /** - * @generated from protobuf field: validate.BytesRules bytes = 15; + * @generated from protobuf field: validate.BytesRules bytes = 15 */ bytes: BytesRules; } | { @@ -123,19 +123,19 @@ export interface FieldRules { /** * Complex Field Types * - * @generated from protobuf field: validate.EnumRules enum = 16; + * @generated from protobuf field: validate.EnumRules enum = 16 */ enum: EnumRules; } | { oneofKind: "repeated"; /** - * @generated from protobuf field: validate.RepeatedRules repeated = 18; + * @generated from protobuf field: validate.RepeatedRules repeated = 18 */ repeated: RepeatedRules; } | { oneofKind: "map"; /** - * @generated from protobuf field: validate.MapRules map = 19; + * @generated from protobuf field: validate.MapRules map = 19 */ map: MapRules; } | { @@ -143,19 +143,19 @@ export interface FieldRules { /** * Well-Known Field Types * - * @generated from protobuf field: validate.AnyRules any = 20; + * @generated from protobuf field: validate.AnyRules any = 20 */ any: AnyRules; } | { oneofKind: "duration"; /** - * @generated from protobuf field: validate.DurationRules duration = 21; + * @generated from protobuf field: validate.DurationRules duration = 21 */ duration: DurationRules; } | { oneofKind: "timestamp"; /** - * @generated from protobuf field: validate.TimestampRules timestamp = 22; + * @generated from protobuf field: validate.TimestampRules timestamp = 22 */ timestamp: TimestampRules; } | { @@ -171,21 +171,21 @@ export interface FloatRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional float const = 1; + * @generated from protobuf field: optional float const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional float lt = 2; + * @generated from protobuf field: optional float lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional float lte = 3; + * @generated from protobuf field: optional float lte = 3 */ lte?: number; /** @@ -193,7 +193,7 @@ export interface FloatRules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional float gt = 4; + * @generated from protobuf field: optional float gt = 4 */ gt?: number; /** @@ -201,28 +201,28 @@ export interface FloatRules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional float gte = 5; + * @generated from protobuf field: optional float gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated float in = 6; + * @generated from protobuf field: repeated float in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated float not_in = 7; + * @generated from protobuf field: repeated float not_in = 7 */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -235,21 +235,21 @@ export interface DoubleRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional double const = 1; + * @generated from protobuf field: optional double const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional double lt = 2; + * @generated from protobuf field: optional double lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional double lte = 3; + * @generated from protobuf field: optional double lte = 3 */ lte?: number; /** @@ -257,7 +257,7 @@ export interface DoubleRules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional double gt = 4; + * @generated from protobuf field: optional double gt = 4 */ gt?: number; /** @@ -265,28 +265,28 @@ export interface DoubleRules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional double gte = 5; + * @generated from protobuf field: optional double gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated double in = 6; + * @generated from protobuf field: repeated double in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated double not_in = 7; + * @generated from protobuf field: repeated double not_in = 7 */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -299,21 +299,21 @@ export interface Int32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional int32 const = 1; + * @generated from protobuf field: optional int32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional int32 lt = 2; + * @generated from protobuf field: optional int32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional int32 lte = 3; + * @generated from protobuf field: optional int32 lte = 3 */ lte?: number; /** @@ -321,7 +321,7 @@ export interface Int32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional int32 gt = 4; + * @generated from protobuf field: optional int32 gt = 4 */ gt?: number; /** @@ -329,28 +329,28 @@ export interface Int32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional int32 gte = 5; + * @generated from protobuf field: optional int32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 in = 6; + * @generated from protobuf field: repeated int32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 not_in = 7; + * @generated from protobuf field: repeated int32 not_in = 7 */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -363,21 +363,21 @@ export interface Int64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional int64 const = 1; + * @generated from protobuf field: optional int64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional int64 lt = 2; + * @generated from protobuf field: optional int64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional int64 lte = 3; + * @generated from protobuf field: optional int64 lte = 3 */ lte?: bigint; /** @@ -385,7 +385,7 @@ export interface Int64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional int64 gt = 4; + * @generated from protobuf field: optional int64 gt = 4 */ gt?: bigint; /** @@ -393,28 +393,28 @@ export interface Int64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional int64 gte = 5; + * @generated from protobuf field: optional int64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated int64 in = 6; + * @generated from protobuf field: repeated int64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated int64 not_in = 7; + * @generated from protobuf field: repeated int64 not_in = 7 */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -427,21 +427,21 @@ export interface UInt32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional uint32 const = 1; + * @generated from protobuf field: optional uint32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional uint32 lt = 2; + * @generated from protobuf field: optional uint32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional uint32 lte = 3; + * @generated from protobuf field: optional uint32 lte = 3 */ lte?: number; /** @@ -449,7 +449,7 @@ export interface UInt32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional uint32 gt = 4; + * @generated from protobuf field: optional uint32 gt = 4 */ gt?: number; /** @@ -457,28 +457,28 @@ export interface UInt32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional uint32 gte = 5; + * @generated from protobuf field: optional uint32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated uint32 in = 6; + * @generated from protobuf field: repeated uint32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated uint32 not_in = 7; + * @generated from protobuf field: repeated uint32 not_in = 7 */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -491,21 +491,21 @@ export interface UInt64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional uint64 const = 1; + * @generated from protobuf field: optional uint64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional uint64 lt = 2; + * @generated from protobuf field: optional uint64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional uint64 lte = 3; + * @generated from protobuf field: optional uint64 lte = 3 */ lte?: bigint; /** @@ -513,7 +513,7 @@ export interface UInt64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional uint64 gt = 4; + * @generated from protobuf field: optional uint64 gt = 4 */ gt?: bigint; /** @@ -521,28 +521,28 @@ export interface UInt64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional uint64 gte = 5; + * @generated from protobuf field: optional uint64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated uint64 in = 6; + * @generated from protobuf field: repeated uint64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated uint64 not_in = 7; + * @generated from protobuf field: repeated uint64 not_in = 7 */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -555,21 +555,21 @@ export interface SInt32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sint32 const = 1; + * @generated from protobuf field: optional sint32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sint32 lt = 2; + * @generated from protobuf field: optional sint32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sint32 lte = 3; + * @generated from protobuf field: optional sint32 lte = 3 */ lte?: number; /** @@ -577,7 +577,7 @@ export interface SInt32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sint32 gt = 4; + * @generated from protobuf field: optional sint32 gt = 4 */ gt?: number; /** @@ -585,28 +585,28 @@ export interface SInt32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sint32 gte = 5; + * @generated from protobuf field: optional sint32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sint32 in = 6; + * @generated from protobuf field: repeated sint32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sint32 not_in = 7; + * @generated from protobuf field: repeated sint32 not_in = 7 */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -619,21 +619,21 @@ export interface SInt64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sint64 const = 1; + * @generated from protobuf field: optional sint64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sint64 lt = 2; + * @generated from protobuf field: optional sint64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sint64 lte = 3; + * @generated from protobuf field: optional sint64 lte = 3 */ lte?: bigint; /** @@ -641,7 +641,7 @@ export interface SInt64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sint64 gt = 4; + * @generated from protobuf field: optional sint64 gt = 4 */ gt?: bigint; /** @@ -649,28 +649,28 @@ export interface SInt64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sint64 gte = 5; + * @generated from protobuf field: optional sint64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sint64 in = 6; + * @generated from protobuf field: repeated sint64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sint64 not_in = 7; + * @generated from protobuf field: repeated sint64 not_in = 7 */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -683,21 +683,21 @@ export interface Fixed32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional fixed32 const = 1; + * @generated from protobuf field: optional fixed32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional fixed32 lt = 2; + * @generated from protobuf field: optional fixed32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional fixed32 lte = 3; + * @generated from protobuf field: optional fixed32 lte = 3 */ lte?: number; /** @@ -705,7 +705,7 @@ export interface Fixed32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional fixed32 gt = 4; + * @generated from protobuf field: optional fixed32 gt = 4 */ gt?: number; /** @@ -713,28 +713,28 @@ export interface Fixed32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional fixed32 gte = 5; + * @generated from protobuf field: optional fixed32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed32 in = 6; + * @generated from protobuf field: repeated fixed32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed32 not_in = 7; + * @generated from protobuf field: repeated fixed32 not_in = 7 */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -747,21 +747,21 @@ export interface Fixed64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional fixed64 const = 1; + * @generated from protobuf field: optional fixed64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional fixed64 lt = 2; + * @generated from protobuf field: optional fixed64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional fixed64 lte = 3; + * @generated from protobuf field: optional fixed64 lte = 3 */ lte?: bigint; /** @@ -769,7 +769,7 @@ export interface Fixed64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional fixed64 gt = 4; + * @generated from protobuf field: optional fixed64 gt = 4 */ gt?: bigint; /** @@ -777,28 +777,28 @@ export interface Fixed64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional fixed64 gte = 5; + * @generated from protobuf field: optional fixed64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed64 in = 6; + * @generated from protobuf field: repeated fixed64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed64 not_in = 7; + * @generated from protobuf field: repeated fixed64 not_in = 7 */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -811,21 +811,21 @@ export interface SFixed32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sfixed32 const = 1; + * @generated from protobuf field: optional sfixed32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sfixed32 lt = 2; + * @generated from protobuf field: optional sfixed32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sfixed32 lte = 3; + * @generated from protobuf field: optional sfixed32 lte = 3 */ lte?: number; /** @@ -833,7 +833,7 @@ export interface SFixed32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sfixed32 gt = 4; + * @generated from protobuf field: optional sfixed32 gt = 4 */ gt?: number; /** @@ -841,28 +841,28 @@ export interface SFixed32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sfixed32 gte = 5; + * @generated from protobuf field: optional sfixed32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed32 in = 6; + * @generated from protobuf field: repeated sfixed32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed32 not_in = 7; + * @generated from protobuf field: repeated sfixed32 not_in = 7 */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -875,21 +875,21 @@ export interface SFixed64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sfixed64 const = 1; + * @generated from protobuf field: optional sfixed64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sfixed64 lt = 2; + * @generated from protobuf field: optional sfixed64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sfixed64 lte = 3; + * @generated from protobuf field: optional sfixed64 lte = 3 */ lte?: bigint; /** @@ -897,7 +897,7 @@ export interface SFixed64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sfixed64 gt = 4; + * @generated from protobuf field: optional sfixed64 gt = 4 */ gt?: bigint; /** @@ -905,28 +905,28 @@ export interface SFixed64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sfixed64 gte = 5; + * @generated from protobuf field: optional sfixed64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed64 in = 6; + * @generated from protobuf field: repeated sfixed64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed64 not_in = 7; + * @generated from protobuf field: repeated sfixed64 not_in = 7 */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 8; + * @generated from protobuf field: optional bool ignore_empty = 8 */ ignoreEmpty?: boolean; } @@ -939,7 +939,7 @@ export interface BoolRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional bool const = 1; + * @generated from protobuf field: optional bool const = 1 */ const?: boolean; } @@ -952,7 +952,7 @@ export interface StringRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional string const = 1; + * @generated from protobuf field: optional string const = 1 */ const?: string; /** @@ -960,7 +960,7 @@ export interface StringRules { * characters (Unicode code points). Note that the number of * characters may differ from the number of bytes in the string. * - * @generated from protobuf field: optional uint64 len = 19; + * @generated from protobuf field: optional uint64 len = 19 */ len?: bigint; /** @@ -968,7 +968,7 @@ export interface StringRules { * characters (Unicode code points) at a minimum. Note that the number of * characters may differ from the number of bytes in the string. * - * @generated from protobuf field: optional uint64 min_len = 2; + * @generated from protobuf field: optional uint64 min_len = 2 */ minLen?: bigint; /** @@ -976,27 +976,27 @@ export interface StringRules { * characters (Unicode code points) at a maximum. Note that the number of * characters may differ from the number of bytes in the string. * - * @generated from protobuf field: optional uint64 max_len = 3; + * @generated from protobuf field: optional uint64 max_len = 3 */ maxLen?: bigint; /** * LenBytes specifies that this field must be the specified number of bytes * - * @generated from protobuf field: optional uint64 len_bytes = 20; + * @generated from protobuf field: optional uint64 len_bytes = 20 */ lenBytes?: bigint; /** * MinBytes specifies that this field must be the specified number of bytes * at a minimum * - * @generated from protobuf field: optional uint64 min_bytes = 4; + * @generated from protobuf field: optional uint64 min_bytes = 4 */ minBytes?: bigint; /** * MaxBytes specifies that this field must be the specified number of bytes * at a maximum * - * @generated from protobuf field: optional uint64 max_bytes = 5; + * @generated from protobuf field: optional uint64 max_bytes = 5 */ maxBytes?: bigint; /** @@ -1004,52 +1004,55 @@ export interface StringRules { * regular expression (RE2 syntax). The included expression should elide * any delimiters. * - * @generated from protobuf field: optional string pattern = 6; + * @generated from protobuf field: optional string pattern = 6 */ pattern?: string; /** * Prefix specifies that this field must have the specified substring at * the beginning of the string. * - * @generated from protobuf field: optional string prefix = 7; + * @generated from protobuf field: optional string prefix = 7 */ prefix?: string; /** * Suffix specifies that this field must have the specified substring at * the end of the string. * - * @generated from protobuf field: optional string suffix = 8; + * @generated from protobuf field: optional string suffix = 8 */ suffix?: string; /** * Contains specifies that this field must have the specified substring * anywhere in the string. * - * @generated from protobuf field: optional string contains = 9; + * @generated from protobuf field: optional string contains = 9 */ contains?: string; /** * NotContains specifies that this field cannot have the specified substring * anywhere in the string. * - * @generated from protobuf field: optional string not_contains = 23; + * @generated from protobuf field: optional string not_contains = 23 */ notContains?: string; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated string in = 10; + * @generated from protobuf field: repeated string in = 10 */ in: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated string not_in = 11; + * @generated from protobuf field: repeated string not_in = 11 */ notIn: string[]; /** + * WellKnown rules provide advanced constraints against common string + * patterns + * * @generated from protobuf oneof: well_known */ wellKnown: { @@ -1058,7 +1061,7 @@ export interface StringRules { * Email specifies that the field must be a valid email address as * defined by RFC 5322 * - * @generated from protobuf field: bool email = 12; + * @generated from protobuf field: bool email = 12 */ email: boolean; } | { @@ -1068,7 +1071,7 @@ export interface StringRules { * defined by RFC 1034. This constraint does not support * internationalized domain names (IDNs). * - * @generated from protobuf field: bool hostname = 13; + * @generated from protobuf field: bool hostname = 13 */ hostname: boolean; } | { @@ -1077,7 +1080,7 @@ export interface StringRules { * Ip specifies that the field must be a valid IP (v4 or v6) address. * Valid IPv6 addresses should not include surrounding square brackets. * - * @generated from protobuf field: bool ip = 14; + * @generated from protobuf field: bool ip = 14 */ ip: boolean; } | { @@ -1085,7 +1088,7 @@ export interface StringRules { /** * Ipv4 specifies that the field must be a valid IPv4 address. * - * @generated from protobuf field: bool ipv4 = 15; + * @generated from protobuf field: bool ipv4 = 15 */ ipv4: boolean; } | { @@ -1094,7 +1097,7 @@ export interface StringRules { * Ipv6 specifies that the field must be a valid IPv6 address. Valid * IPv6 addresses should not include surrounding square brackets. * - * @generated from protobuf field: bool ipv6 = 16; + * @generated from protobuf field: bool ipv6 = 16 */ ipv6: boolean; } | { @@ -1103,7 +1106,7 @@ export interface StringRules { * Uri specifies that the field must be a valid, absolute URI as defined * by RFC 3986 * - * @generated from protobuf field: bool uri = 17; + * @generated from protobuf field: bool uri = 17 */ uri: boolean; } | { @@ -1112,7 +1115,7 @@ export interface StringRules { * UriRef specifies that the field must be a valid URI as defined by RFC * 3986 and may be relative or absolute. * - * @generated from protobuf field: bool uri_ref = 18; + * @generated from protobuf field: bool uri_ref = 18 */ uriRef: boolean; } | { @@ -1122,7 +1125,7 @@ export interface StringRules { * defined by RFC 1034 (which does not support internationalized domain * names or IDNs), or it can be a valid IP (v4 or v6). * - * @generated from protobuf field: bool address = 21; + * @generated from protobuf field: bool address = 21 */ address: boolean; } | { @@ -1131,7 +1134,7 @@ export interface StringRules { * Uuid specifies that the field must be a valid UUID as defined by * RFC 4122 * - * @generated from protobuf field: bool uuid = 22; + * @generated from protobuf field: bool uuid = 22 */ uuid: boolean; } | { @@ -1139,7 +1142,7 @@ export interface StringRules { /** * WellKnownRegex specifies a common well known pattern defined as a regex. * - * @generated from protobuf field: validate.KnownRegex well_known_regex = 24; + * @generated from protobuf field: validate.KnownRegex well_known_regex = 24 */ wellKnownRegex: KnownRegex; } | { @@ -1152,14 +1155,14 @@ export interface StringRules { * Setting to false will enable a looser validations that only disallows * \r\n\0 characters, which can be used to bypass header matching rules. * - * @generated from protobuf field: optional bool strict = 25; + * @generated from protobuf field: optional bool strict = 25 [default = true] */ strict?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 26; + * @generated from protobuf field: optional bool ignore_empty = 26 */ ignoreEmpty?: boolean; } @@ -1172,27 +1175,27 @@ export interface BytesRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional bytes const = 1; + * @generated from protobuf field: optional bytes const = 1 */ const?: Uint8Array; /** * Len specifies that this field must be the specified number of bytes * - * @generated from protobuf field: optional uint64 len = 13; + * @generated from protobuf field: optional uint64 len = 13 */ len?: bigint; /** * MinLen specifies that this field must be the specified number of bytes * at a minimum * - * @generated from protobuf field: optional uint64 min_len = 2; + * @generated from protobuf field: optional uint64 min_len = 2 */ minLen?: bigint; /** * MaxLen specifies that this field must be the specified number of bytes * at a maximum * - * @generated from protobuf field: optional uint64 max_len = 3; + * @generated from protobuf field: optional uint64 max_len = 3 */ maxLen?: bigint; /** @@ -1200,45 +1203,48 @@ export interface BytesRules { * regular expression (RE2 syntax). The included expression should elide * any delimiters. * - * @generated from protobuf field: optional string pattern = 4; + * @generated from protobuf field: optional string pattern = 4 */ pattern?: string; /** * Prefix specifies that this field must have the specified bytes at the * beginning of the string. * - * @generated from protobuf field: optional bytes prefix = 5; + * @generated from protobuf field: optional bytes prefix = 5 */ prefix?: Uint8Array; /** * Suffix specifies that this field must have the specified bytes at the * end of the string. * - * @generated from protobuf field: optional bytes suffix = 6; + * @generated from protobuf field: optional bytes suffix = 6 */ suffix?: Uint8Array; /** * Contains specifies that this field must have the specified bytes * anywhere in the string. * - * @generated from protobuf field: optional bytes contains = 7; + * @generated from protobuf field: optional bytes contains = 7 */ contains?: Uint8Array; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated bytes in = 8; + * @generated from protobuf field: repeated bytes in = 8 */ in: Uint8Array[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated bytes not_in = 9; + * @generated from protobuf field: repeated bytes not_in = 9 */ notIn: Uint8Array[]; /** + * WellKnown rules provide advanced constraints against common byte + * patterns + * * @generated from protobuf oneof: well_known */ wellKnown: { @@ -1247,7 +1253,7 @@ export interface BytesRules { * Ip specifies that the field must be a valid IP (v4 or v6) address in * byte format * - * @generated from protobuf field: bool ip = 10; + * @generated from protobuf field: bool ip = 10 */ ip: boolean; } | { @@ -1256,7 +1262,7 @@ export interface BytesRules { * Ipv4 specifies that the field must be a valid IPv4 address in byte * format * - * @generated from protobuf field: bool ipv4 = 11; + * @generated from protobuf field: bool ipv4 = 11 */ ipv4: boolean; } | { @@ -1265,7 +1271,7 @@ export interface BytesRules { * Ipv6 specifies that the field must be a valid IPv6 address in byte * format * - * @generated from protobuf field: bool ipv6 = 12; + * @generated from protobuf field: bool ipv6 = 12 */ ipv6: boolean; } | { @@ -1275,7 +1281,7 @@ export interface BytesRules { * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 14; + * @generated from protobuf field: optional bool ignore_empty = 14 */ ignoreEmpty?: boolean; } @@ -1288,28 +1294,28 @@ export interface EnumRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional int32 const = 1; + * @generated from protobuf field: optional int32 const = 1 */ const?: number; /** * DefinedOnly specifies that this field must be only one of the defined * values for this enum, failing on any undefined value. * - * @generated from protobuf field: optional bool defined_only = 2; + * @generated from protobuf field: optional bool defined_only = 2 */ definedOnly?: boolean; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 in = 3; + * @generated from protobuf field: repeated int32 in = 3 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 not_in = 4; + * @generated from protobuf field: repeated int32 not_in = 4 */ notIn: number[]; } @@ -1324,13 +1330,13 @@ export interface MessageRules { * Skip specifies that the validation rules of this field should not be * evaluated * - * @generated from protobuf field: optional bool skip = 1; + * @generated from protobuf field: optional bool skip = 1 */ skip?: boolean; /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 2; + * @generated from protobuf field: optional bool required = 2 */ required?: boolean; } @@ -1344,14 +1350,14 @@ export interface RepeatedRules { * MinItems specifies that this field must have the specified number of * items at a minimum * - * @generated from protobuf field: optional uint64 min_items = 1; + * @generated from protobuf field: optional uint64 min_items = 1 */ minItems?: bigint; /** * MaxItems specifies that this field must have the specified number of * items at a maximum * - * @generated from protobuf field: optional uint64 max_items = 2; + * @generated from protobuf field: optional uint64 max_items = 2 */ maxItems?: bigint; /** @@ -1359,7 +1365,7 @@ export interface RepeatedRules { * constraint is only applicable to scalar and enum types (messages are not * supported). * - * @generated from protobuf field: optional bool unique = 3; + * @generated from protobuf field: optional bool unique = 3 */ unique?: boolean; /** @@ -1367,14 +1373,14 @@ export interface RepeatedRules { * Repeated message fields will still execute validation against each item * unless skip is specified here. * - * @generated from protobuf field: optional validate.FieldRules items = 4; + * @generated from protobuf field: optional validate.FieldRules items = 4 */ items?: FieldRules; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 5; + * @generated from protobuf field: optional bool ignore_empty = 5 */ ignoreEmpty?: boolean; } @@ -1388,27 +1394,27 @@ export interface MapRules { * MinPairs specifies that this field must have the specified number of * KVs at a minimum * - * @generated from protobuf field: optional uint64 min_pairs = 1; + * @generated from protobuf field: optional uint64 min_pairs = 1 */ minPairs?: bigint; /** * MaxPairs specifies that this field must have the specified number of * KVs at a maximum * - * @generated from protobuf field: optional uint64 max_pairs = 2; + * @generated from protobuf field: optional uint64 max_pairs = 2 */ maxPairs?: bigint; /** * NoSparse specifies values in this field cannot be unset. This only * applies to map's with message value types. * - * @generated from protobuf field: optional bool no_sparse = 3; + * @generated from protobuf field: optional bool no_sparse = 3 */ noSparse?: boolean; /** * Keys specifies the constraints to be applied to each key in the field. * - * @generated from protobuf field: optional validate.FieldRules keys = 4; + * @generated from protobuf field: optional validate.FieldRules keys = 4 */ keys?: FieldRules; /** @@ -1416,14 +1422,14 @@ export interface MapRules { * in the field. Message values will still have their validations evaluated * unless skip is specified here. * - * @generated from protobuf field: optional validate.FieldRules values = 5; + * @generated from protobuf field: optional validate.FieldRules values = 5 */ values?: FieldRules; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 6; + * @generated from protobuf field: optional bool ignore_empty = 6 */ ignoreEmpty?: boolean; } @@ -1437,21 +1443,21 @@ export interface AnyRules { /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 1; + * @generated from protobuf field: optional bool required = 1 */ required?: boolean; /** * In specifies that this field's `type_url` must be equal to one of the * specified values. * - * @generated from protobuf field: repeated string in = 2; + * @generated from protobuf field: repeated string in = 2 */ in: string[]; /** * NotIn specifies that this field's `type_url` must not be equal to any of * the specified values. * - * @generated from protobuf field: repeated string not_in = 3; + * @generated from protobuf field: repeated string not_in = 3 */ notIn: string[]; } @@ -1465,55 +1471,55 @@ export interface DurationRules { /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 1; + * @generated from protobuf field: optional bool required = 1 */ required?: boolean; /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional google.protobuf.Duration const = 2; + * @generated from protobuf field: optional google.protobuf.Duration const = 2 */ const?: Duration; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Duration lt = 3; + * @generated from protobuf field: optional google.protobuf.Duration lt = 3 */ lt?: Duration; /** * Lt specifies that this field must be less than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Duration lte = 4; + * @generated from protobuf field: optional google.protobuf.Duration lte = 4 */ lte?: Duration; /** * Gt specifies that this field must be greater than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Duration gt = 5; + * @generated from protobuf field: optional google.protobuf.Duration gt = 5 */ gt?: Duration; /** * Gte specifies that this field must be greater than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Duration gte = 6; + * @generated from protobuf field: optional google.protobuf.Duration gte = 6 */ gte?: Duration; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated google.protobuf.Duration in = 7; + * @generated from protobuf field: repeated google.protobuf.Duration in = 7 */ in: Duration[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated google.protobuf.Duration not_in = 8; + * @generated from protobuf field: repeated google.protobuf.Duration not_in = 8 */ notIn: Duration[]; } @@ -1527,55 +1533,55 @@ export interface TimestampRules { /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 1; + * @generated from protobuf field: optional bool required = 1 */ required?: boolean; /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional google.protobuf.Timestamp const = 2; + * @generated from protobuf field: optional google.protobuf.Timestamp const = 2 */ const?: Timestamp; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp lt = 3; + * @generated from protobuf field: optional google.protobuf.Timestamp lt = 3 */ lt?: Timestamp; /** * Lte specifies that this field must be less than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp lte = 4; + * @generated from protobuf field: optional google.protobuf.Timestamp lte = 4 */ lte?: Timestamp; /** * Gt specifies that this field must be greater than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp gt = 5; + * @generated from protobuf field: optional google.protobuf.Timestamp gt = 5 */ gt?: Timestamp; /** * Gte specifies that this field must be greater than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp gte = 6; + * @generated from protobuf field: optional google.protobuf.Timestamp gte = 6 */ gte?: Timestamp; /** * LtNow specifies that this must be less than the current time. LtNow * can only be used with the Within rule. * - * @generated from protobuf field: optional bool lt_now = 7; + * @generated from protobuf field: optional bool lt_now = 7 */ ltNow?: boolean; /** * GtNow specifies that this must be greater than the current time. GtNow * can only be used with the Within rule. * - * @generated from protobuf field: optional bool gt_now = 8; + * @generated from protobuf field: optional bool gt_now = 8 */ gtNow?: boolean; /** @@ -1583,7 +1589,7 @@ export interface TimestampRules { * current time. This constraint can be used alone or with the LtNow and * GtNow rules. * - * @generated from protobuf field: optional google.protobuf.Duration within = 9; + * @generated from protobuf field: optional google.protobuf.Duration within = 9 */ within?: Duration; } @@ -1791,9 +1797,6 @@ class FieldRules$Type extends MessageType { return message; } internalBinaryWrite(message: FieldRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional validate.MessageRules message = 17; */ - if (message.message) - MessageRules.internalBinaryWrite(message.message, writer.tag(17, WireType.LengthDelimited).fork(), options).join(); /* validate.FloatRules float = 1; */ if (message.type.oneofKind === "float") FloatRules.internalBinaryWrite(message.type.float, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); @@ -1842,6 +1845,9 @@ class FieldRules$Type extends MessageType { /* validate.EnumRules enum = 16; */ if (message.type.oneofKind === "enum") EnumRules.internalBinaryWrite(message.type.enum, writer.tag(16, WireType.LengthDelimited).fork(), options).join(); + /* optional validate.MessageRules message = 17; */ + if (message.message) + MessageRules.internalBinaryWrite(message.message, writer.tag(17, WireType.LengthDelimited).fork(), options).join(); /* validate.RepeatedRules repeated = 18; */ if (message.type.oneofKind === "repeated") RepeatedRules.internalBinaryWrite(message.type.repeated, writer.tag(18, WireType.LengthDelimited).fork(), options).join(); @@ -3321,7 +3327,7 @@ class StringRules$Type extends MessageType { wellKnownRegex: reader.int32() }; break; - case /* optional bool strict */ 25: + case /* optional bool strict = 25 [default = true] */ 25: message.strict = reader.bool(); break; case /* optional bool ignore_empty */ 26: @@ -3342,18 +3348,12 @@ class StringRules$Type extends MessageType { /* optional string const = 1; */ if (message.const !== undefined) writer.tag(1, WireType.LengthDelimited).string(message.const); - /* optional uint64 len = 19; */ - if (message.len !== undefined) - writer.tag(19, WireType.Varint).uint64(message.len); /* optional uint64 min_len = 2; */ if (message.minLen !== undefined) writer.tag(2, WireType.Varint).uint64(message.minLen); /* optional uint64 max_len = 3; */ if (message.maxLen !== undefined) writer.tag(3, WireType.Varint).uint64(message.maxLen); - /* optional uint64 len_bytes = 20; */ - if (message.lenBytes !== undefined) - writer.tag(20, WireType.Varint).uint64(message.lenBytes); /* optional uint64 min_bytes = 4; */ if (message.minBytes !== undefined) writer.tag(4, WireType.Varint).uint64(message.minBytes); @@ -3372,9 +3372,6 @@ class StringRules$Type extends MessageType { /* optional string contains = 9; */ if (message.contains !== undefined) writer.tag(9, WireType.LengthDelimited).string(message.contains); - /* optional string not_contains = 23; */ - if (message.notContains !== undefined) - writer.tag(23, WireType.LengthDelimited).string(message.notContains); /* repeated string in = 10; */ for (let i = 0; i < message.in.length; i++) writer.tag(10, WireType.LengthDelimited).string(message.in[i]); @@ -3402,16 +3399,25 @@ class StringRules$Type extends MessageType { /* bool uri_ref = 18; */ if (message.wellKnown.oneofKind === "uriRef") writer.tag(18, WireType.Varint).bool(message.wellKnown.uriRef); + /* optional uint64 len = 19; */ + if (message.len !== undefined) + writer.tag(19, WireType.Varint).uint64(message.len); + /* optional uint64 len_bytes = 20; */ + if (message.lenBytes !== undefined) + writer.tag(20, WireType.Varint).uint64(message.lenBytes); /* bool address = 21; */ if (message.wellKnown.oneofKind === "address") writer.tag(21, WireType.Varint).bool(message.wellKnown.address); /* bool uuid = 22; */ if (message.wellKnown.oneofKind === "uuid") writer.tag(22, WireType.Varint).bool(message.wellKnown.uuid); + /* optional string not_contains = 23; */ + if (message.notContains !== undefined) + writer.tag(23, WireType.LengthDelimited).string(message.notContains); /* validate.KnownRegex well_known_regex = 24; */ if (message.wellKnown.oneofKind === "wellKnownRegex") writer.tag(24, WireType.Varint).int32(message.wellKnown.wellKnownRegex); - /* optional bool strict = 25; */ + /* optional bool strict = 25 [default = true]; */ if (message.strict !== undefined) writer.tag(25, WireType.Varint).bool(message.strict); /* optional bool ignore_empty = 26; */ @@ -3527,9 +3533,6 @@ class BytesRules$Type extends MessageType { /* optional bytes const = 1; */ if (message.const !== undefined) writer.tag(1, WireType.LengthDelimited).bytes(message.const); - /* optional uint64 len = 13; */ - if (message.len !== undefined) - writer.tag(13, WireType.Varint).uint64(message.len); /* optional uint64 min_len = 2; */ if (message.minLen !== undefined) writer.tag(2, WireType.Varint).uint64(message.minLen); @@ -3563,6 +3566,9 @@ class BytesRules$Type extends MessageType { /* bool ipv6 = 12; */ if (message.wellKnown.oneofKind === "ipv6") writer.tag(12, WireType.Varint).bool(message.wellKnown.ipv6); + /* optional uint64 len = 13; */ + if (message.len !== undefined) + writer.tag(13, WireType.Varint).uint64(message.len); /* optional bool ignore_empty = 14; */ if (message.ignoreEmpty !== undefined) writer.tag(14, WireType.Varint).bool(message.ignoreEmpty); diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 66c6493..0000000 --- a/yarn.lock +++ /dev/null @@ -1,397 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@cspotcode/source-map-support@^0.8.0": - version "0.8.1" - resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" - integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== - dependencies: - "@jridgewell/trace-mapping" "0.3.9" - -"@grpc/grpc-js@^1.12.0": - version "1.12.0" - resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.12.0.tgz#3f2294c7b685d2df4dc5b0b9b74b595ff3affed0" - integrity sha512-eWdP97A6xKtZXVP/ze9y8zYRB2t6ugQAuLXFuZXAsyqmyltaAjl4yPkmIfc0wuTFJMOUF1AdvIFQCL7fMtaX6g== - dependencies: - "@grpc/proto-loader" "^0.7.13" - "@js-sdsl/ordered-map" "^4.4.2" - -"@grpc/proto-loader@^0.7.13": - version "0.7.13" - resolved "https://registry.yarnpkg.com/@grpc/proto-loader/-/proto-loader-0.7.13.tgz#f6a44b2b7c9f7b609f5748c6eac2d420e37670cf" - integrity sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw== - dependencies: - lodash.camelcase "^4.3.0" - long "^5.0.0" - protobufjs "^7.2.5" - yargs "^17.7.2" - -"@jridgewell/resolve-uri@^3.0.3": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" - integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== - -"@jridgewell/sourcemap-codec@^1.4.10": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" - integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== - -"@jridgewell/trace-mapping@0.3.9": - version "0.3.9" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@js-sdsl/ordered-map@^4.4.2": - version "4.4.2" - resolved "https://registry.yarnpkg.com/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz#9299f82874bab9e4c7f9c48d865becbfe8d6907c" - integrity sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw== - -"@protobuf-ts/grpc-transport@^2.9.4": - version "2.9.4" - resolved "https://registry.yarnpkg.com/@protobuf-ts/grpc-transport/-/grpc-transport-2.9.4.tgz#44286bbee3d52c0e0c37262f5af501a9c9160fd3" - integrity sha512-CgjTR3utmkMkkThpfgtOz9tNR9ZARbNoQYL7TCKqFU2sgAX0LgzAkwOx+sfgtUsZn9J08+yvn307nNJdYocLRA== - dependencies: - "@protobuf-ts/runtime" "^2.9.4" - "@protobuf-ts/runtime-rpc" "^2.9.4" - -"@protobuf-ts/plugin-framework@^2.9.4": - version "2.9.4" - resolved "https://registry.yarnpkg.com/@protobuf-ts/plugin-framework/-/plugin-framework-2.9.4.tgz#d7a617dedda4a12c568fdc1db5aa67d5e4da2406" - integrity sha512-9nuX1kjdMliv+Pes8dQCKyVhjKgNNfwxVHg+tx3fLXSfZZRcUHMc1PMwB9/vTvc6gBKt9QGz5ERqSqZc0++E9A== - dependencies: - "@protobuf-ts/runtime" "^2.9.4" - typescript "^3.9" - -"@protobuf-ts/plugin@^2.9.4": - version "2.9.4" - resolved "https://registry.yarnpkg.com/@protobuf-ts/plugin/-/plugin-2.9.4.tgz#4e593e59013aaad313e7abbabe6e61964ef0ca28" - integrity sha512-Db5Laq5T3mc6ERZvhIhkj1rn57/p8gbWiCKxQWbZBBl20wMuqKoHbRw4tuD7FyXi+IkwTToaNVXymv5CY3E8Rw== - dependencies: - "@protobuf-ts/plugin-framework" "^2.9.4" - "@protobuf-ts/protoc" "^2.9.4" - "@protobuf-ts/runtime" "^2.9.4" - "@protobuf-ts/runtime-rpc" "^2.9.4" - typescript "^3.9" - -"@protobuf-ts/protoc@^2.9.4": - version "2.9.4" - resolved "https://registry.yarnpkg.com/@protobuf-ts/protoc/-/protoc-2.9.4.tgz#a92262ee64d252998540238701d2140f4ffec081" - integrity sha512-hQX+nOhFtrA+YdAXsXEDrLoGJqXHpgv4+BueYF0S9hy/Jq0VRTVlJS1Etmf4qlMt/WdigEes5LOd/LDzui4GIQ== - -"@protobuf-ts/runtime-rpc@^2.9.4": - version "2.9.4" - resolved "https://registry.yarnpkg.com/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz#d6ab2316c0ba67ce5a08863bb23203a837ff2a3b" - integrity sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA== - dependencies: - "@protobuf-ts/runtime" "^2.9.4" - -"@protobuf-ts/runtime@^2.9.4": - version "2.9.4" - resolved "https://registry.yarnpkg.com/@protobuf-ts/runtime/-/runtime-2.9.4.tgz#db8a78b1c409e26d258ca39464f4757d804add8f" - integrity sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg== - -"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" - integrity sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ== - -"@protobufjs/base64@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" - integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== - -"@protobufjs/codegen@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" - integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== - -"@protobufjs/eventemitter@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" - integrity sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q== - -"@protobufjs/fetch@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" - integrity sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ== - dependencies: - "@protobufjs/aspromise" "^1.1.1" - "@protobufjs/inquire" "^1.1.0" - -"@protobufjs/float@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" - integrity sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ== - -"@protobufjs/inquire@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" - integrity sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q== - -"@protobufjs/path@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" - integrity sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA== - -"@protobufjs/pool@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" - integrity sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw== - -"@protobufjs/utf8@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" - integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== - -"@tsconfig/node10@^1.0.7": - version "1.0.11" - resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" - integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== - -"@tsconfig/node12@^1.0.7": - version "1.0.11" - resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" - integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== - -"@tsconfig/node14@^1.0.0": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" - integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== - -"@tsconfig/node16@^1.0.2": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" - integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== - -"@types/node@>=13.7.0": - version "22.7.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.4.tgz#e35d6f48dca3255ce44256ddc05dee1c23353fcc" - integrity sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg== - dependencies: - undici-types "~6.19.2" - -"@types/node@^22.5.5": - version "22.5.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.5.tgz#52f939dd0f65fc552a4ad0b392f3c466cc5d7a44" - integrity sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA== - dependencies: - undici-types "~6.19.2" - -acorn-walk@^8.1.1: - version "8.3.4" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" - integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== - dependencies: - acorn "^8.11.0" - -acorn@^8.11.0, acorn@^8.4.1: - version "8.12.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" - integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== - -cliui@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" - integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.1" - wrap-ansi "^7.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -escalade@^3.1.1: - version "3.2.0" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" - integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -lodash.camelcase@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" - integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== - -long@^5.0.0: - version "5.2.3" - resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" - integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== - -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== - -prettier@^3.3.3: - version "3.3.3" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" - integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== - -protobufjs@^7.2.5: - version "7.4.0" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.4.0.tgz#7efe324ce9b3b61c82aae5de810d287bc08a248a" - integrity sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/node" ">=13.7.0" - long "^5.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -ts-node@^10.9.2: - version "10.9.2" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" - integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== - dependencies: - "@cspotcode/source-map-support" "^0.8.0" - "@tsconfig/node10" "^1.0.7" - "@tsconfig/node12" "^1.0.7" - "@tsconfig/node14" "^1.0.0" - "@tsconfig/node16" "^1.0.2" - acorn "^8.4.1" - acorn-walk "^8.1.1" - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - v8-compile-cache-lib "^3.0.1" - yn "3.1.1" - -typescript@^3.9: - version "3.9.10" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" - integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== - -typescript@^5.6.2: - version "5.6.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0" - integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw== - -undici-types@~6.19.2: - version "6.19.8" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" - integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== - -v8-compile-cache-lib@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" - integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yargs-parser@^21.1.1: - version "21.1.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" - integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== - -yargs@^17.7.2: - version "17.7.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" - integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== - dependencies: - cliui "^8.0.1" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.3" - y18n "^5.0.5" - yargs-parser "^21.1.1" - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==