mirror of
https://github.com/MizuchiLabs/mantrae.git
synced 2025-12-16 20:05:17 -06:00
small fixes, cleanup and test out github actions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: ghcr.io cleanup
|
||||
name: Cleanup Registry
|
||||
|
||||
on:
|
||||
push:
|
||||
63
.github/workflows/docs.yaml
vendored
Normal file
63
.github/workflows/docs.yaml
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
name: Deploy Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "docs/**"
|
||||
create:
|
||||
tags:
|
||||
- "*"
|
||||
deployment:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./docs
|
||||
run: pnpm install
|
||||
|
||||
- name: Build
|
||||
working-directory: ./docs
|
||||
run: pnpm run build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ./docs/build
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
71
.github/workflows/release.yaml
vendored
Normal file
71
.github/workflows/release.yaml
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version-file: "go.mod"
|
||||
|
||||
- name: Install UPX
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y upx
|
||||
|
||||
- name: Install Cosign
|
||||
uses: sigstore/cosign-installer@v4.0.0
|
||||
|
||||
- name: Install Syft
|
||||
uses: anchore/sbom-action@v0
|
||||
with:
|
||||
upload-release-assets: false
|
||||
|
||||
- name: Generate & Build
|
||||
run: |
|
||||
task gen
|
||||
task lint
|
||||
task build:web
|
||||
|
||||
- name: Run GolangCI-Lint
|
||||
uses: golangci/golangci-lint-action@v8
|
||||
with:
|
||||
args: --timeout=10m
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
version: latest
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
COSIGN_YES: "true"
|
||||
51
.github/workflows/test.yaml
vendored
Normal file
51
.github/workflows/test.yaml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "**.go"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "**.go"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version-file: "go.mod"
|
||||
|
||||
- name: Install Task
|
||||
uses: go-task/setup-task@v1
|
||||
|
||||
- name: Generate & Build
|
||||
run: |
|
||||
task gen
|
||||
task lint
|
||||
task build:web
|
||||
|
||||
- name: Run GolangCI-Lint
|
||||
uses: golangci/golangci-lint-action@v8
|
||||
with:
|
||||
args: --timeout=10m
|
||||
@@ -6,7 +6,6 @@ pro: false
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- rm -rf ./dist
|
||||
- go fmt ./...
|
||||
- go vet ./...
|
||||
- go mod tidy
|
||||
@@ -24,8 +23,8 @@ builds:
|
||||
- -X github.com/mizuchilabs/mantrae/pkg/build.Date={{.Date}}
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- windows
|
||||
# - darwin
|
||||
# - windows
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
@@ -45,29 +44,47 @@ builds:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
kos:
|
||||
- id: server
|
||||
base_image: alpine
|
||||
repositories: [ghcr.io/mizuchilabs/mantrae]
|
||||
bare: true
|
||||
preserve_import_paths: false
|
||||
tags:
|
||||
- "{{.Version}}"
|
||||
- latest
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
|
||||
- id: agent
|
||||
base_image: alpine
|
||||
repositories: [ghcr.io/mizuchilabs/mantrae-agent]
|
||||
bare: true
|
||||
preserve_import_paths: false
|
||||
tags:
|
||||
- "{{.Version}}"
|
||||
- latest
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
|
||||
upx:
|
||||
- enabled: true
|
||||
lzma: true
|
||||
compress: best
|
||||
|
||||
source:
|
||||
enabled: true
|
||||
|
||||
release:
|
||||
draft: true
|
||||
draft: false
|
||||
replace_existing_draft: true
|
||||
replace_existing_artifacts: true
|
||||
mode: keep-existing
|
||||
|
||||
archives:
|
||||
- id: server
|
||||
ids: [server]
|
||||
files:
|
||||
- LICENSE
|
||||
name_template: >-
|
||||
{{ .Binary }}_{{ .Os }}_{{ .Arch }}
|
||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||
- id: agent
|
||||
ids: [agent]
|
||||
files:
|
||||
- files:
|
||||
- LICENSE
|
||||
name_template: >-
|
||||
{{ .Binary }}_{{ .Os }}_{{ .Arch }}
|
||||
@@ -83,7 +100,7 @@ changelog:
|
||||
- "^feat:"
|
||||
- "^fix:"
|
||||
- "^sec:"
|
||||
- "^doc:"
|
||||
- "^docs:"
|
||||
- "^wip:"
|
||||
groups:
|
||||
- title: "🚀 Features"
|
||||
@@ -96,7 +113,7 @@ changelog:
|
||||
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
|
||||
order: 2
|
||||
- title: "📚 Documentation"
|
||||
regexp: '^.*?doc(\([[:word:]]+\))??!?:.+$'
|
||||
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
|
||||
order: 3
|
||||
- title: "🚧 Work in progress"
|
||||
regexp: '^.*?wip(\([[:word:]]+\))??!?:.+$'
|
||||
|
||||
102
README.md
102
README.md
@@ -8,61 +8,101 @@
|
||||
|
||||
# Mantræ
|
||||
|
||||
**Mantræ** is a user-friendly web interface designed to simplify the management of Traefik's dynamic configurations. Similar to Nginx Proxy Manager (NPM), this application allows you to manage your dynamic Traefik configuration from the comfort of a simple web ui.
|
||||
**Mantræ** is a web-based configuration manager for Traefik's dynamic configuration file. It provides a clean, intuitive interface to manage your routers, middleware, and services without editing YAML or TOML files manually.
|
||||
|
||||
> **Important**: Mantræ is **not** a dashboard for Traefik. It operates independently and does not monitor Traefik's status. Instead, Traefik connects to Mantræ to fetch its dynamic configuration.
|
||||
|
||||
## Features
|
||||
|
||||
- **Simplified UI**: A clean and intuitive interface that keeps the complexity to a minimum.
|
||||
- **Router Configuration**: Create and manage Traefik routers with custom rules, entrypoints, and middleware configurations.
|
||||
- **Middleware Management**: Add middlewares to your routers, including rate limiting, authentication, and more.
|
||||
- **Service Status**: Monitor the status of your services and see their health information.
|
||||
- **DNS Providers**: Support for multiple DNS providers (currently Cloudflare, PowerDNS, Technitium) for automatic DNS record updates.
|
||||
- **Agents**: Instead of defining your routers in the web ui, you can label your containers as usual using traefik labels. Start the agent on the machine and it will automatically set everything up for you.
|
||||
- **🎨 Clean Interface**: Manage your Traefik configuration through a simple web UI
|
||||
- **🔀 Router Management**: Create and configure routers with custom rules, entrypoints, and middleware
|
||||
- **⚙️ Middleware Support**: Add rate limiting, authentication, headers, and other middleware
|
||||
- **🏷️ Agent Mode**: Label your containers with standard Traefik labels and let the agent automatically sync them
|
||||
- **🌐 DNS Integration**: Automatic DNS record management for Cloudflare, PowerDNS, and Technitium
|
||||
|
||||
## 🚧 Disclaimer 🚧
|
||||
## How It Works
|
||||
|
||||
This project is still early in development and is not ready for production use. Expect a lot of breaking changes in meantime until the first stable release.
|
||||
Also you can try out nightly builds with the `nightly` tag. But beware, these builds will break your database!
|
||||
Mantræ generates and serves Traefik's dynamic configuration file. Configure Traefik to fetch its configuration from Mantræ's HTTP provider endpoint, and your changes will be applied automatically.
|
||||
|
||||
### Documentation
|
||||
## 🚧 Development Status
|
||||
|
||||
Check out the [docs](https://mizuchi.dev/mantrae/) for more information.
|
||||
This project is in active development and not yet production-ready. Expect breaking changes before the first stable release.
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Installation
|
||||
|
||||
You can install Mantrae using the [install.sh](install.sh) script. It will download the latest release and install it in your `~/.local/bin` directory.
|
||||
|
||||
**Using the install script:**
|
||||
```bash
|
||||
curl -fsSL https://raw.githubusercontent.com/mizuchilabs/mantrae/main/install.sh | sh
|
||||
```
|
||||
|
||||
Or you can download the latest release from the [releases](https://github.com/mizuchilabs/mantrae/releases) page and extract it to your `~/.local/bin` directory.
|
||||
**Manual installation:**
|
||||
Download the latest release from [releases](https://github.com/mizuchilabs/mantrae/releases) and extract to `~/.local/bin`.
|
||||
|
||||
Using docker/docker-compose is preferred for production environments.
|
||||
**Docker (recommended for production):**
|
||||
See the [documentation](https://mizuchi.dev/mantrae/) for Docker setup instructions.
|
||||
|
||||
### Screenshot
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
# Start the server
|
||||
mantrae
|
||||
|
||||
# Display version
|
||||
mantrae --version
|
||||
|
||||
# Check for updates
|
||||
mantrae update
|
||||
|
||||
# Update to latest version (not available in Docker)
|
||||
mantrae update --install
|
||||
|
||||
# Reset admin password
|
||||
mantrae reset --password newpassword
|
||||
|
||||
# Reset password for a specific user
|
||||
mantrae reset --user username --password newpassword
|
||||
```
|
||||
|
||||
## Command Reference
|
||||
|
||||
| Command | Description |
|
||||
| ------- | ----------- |
|
||||
| `mantrae` | Start the Mantræ server |
|
||||
| `mantrae update` | Check for available updates |
|
||||
| `mantrae update --install` | Download and install the latest version |
|
||||
| `mantrae reset` | Reset user password (admin by default) |
|
||||
| `mantrae --version` | Display version information |
|
||||
|
||||
### Flags
|
||||
|
||||
| Flag | Aliases | Default | Description |
|
||||
| ---- | ------- | ------- | ----------- |
|
||||
| `--version` | `-v` | | Display version and exit |
|
||||
| `--password` | `-p` | | New password (used with reset) |
|
||||
| `--user` | `-u` | `admin` | Username for password reset |
|
||||
| `--install` | | `false` | Install update (used with update command) |
|
||||
|
||||
## Documentation
|
||||
|
||||
Full documentation is available at [mizuchi.dev/mantrae](https://mizuchi.dev/mantrae/)
|
||||
|
||||
## Screenshot
|
||||
|
||||

|
||||
|
||||
## Command-Line Arguments for the Server
|
||||
|
||||
| Flag | Type | Default | Description |
|
||||
| ----------------- | -------- | ------- | ------------------------------------------------------------------------ |
|
||||
| `-version` | `bool` | `false` | Prints the current version of Mantrae and exits. |
|
||||
| `-update` | `bool` | `false` | Updates Mantrae to the latest version. (Doesn't work inside a container) |
|
||||
| `-reset-password` | `string` | | Resets the admin password to the specified value. |
|
||||
| `-reset-user` | `string` | `admin` | Choose the username to reset the password for. |
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are welcome! Please feel free to submit issues, fork the repository, and create pull requests.
|
||||
Contributions are welcome! Feel free to submit issues, fork the repository, and create pull requests.
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||||
MIT License - See [LICENSE](LICENSE)
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
- [**Traefik**](https://traefik.io/): For providing the powerful reverse proxy that powers this application.
|
||||
- [**Nginx Proxy Manager**](https://github.com/NginxProxyManager/nginx-proxy-manager): For inspiration on building a simple and effective web UI for managing reverse proxies.
|
||||
- [**External-DNS**](https://github.com/kubernetes-sigs/external-dns): For inspiration on building a simple DNS management system.
|
||||
- [**Traefik**](https://traefik.io/) - The powerful reverse proxy that this project manages
|
||||
- [**Nginx Proxy Manager**](https://github.com/NginxProxyManager/nginx-proxy-manager) - Inspiration for the UI approach
|
||||
- [**External-DNS**](https://github.com/kubernetes-sigs/external-dns) - Inspiration for DNS management
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
version: v2
|
||||
clean: true
|
||||
managed:
|
||||
enabled: true
|
||||
override:
|
||||
@@ -19,12 +20,14 @@ plugins:
|
||||
opt: target=ts
|
||||
include_imports: true
|
||||
- local: protoc-gen-connect-openapi
|
||||
out: proto/gen/openapi
|
||||
out: server/internal/api/server/openapi
|
||||
strategy: all
|
||||
opt:
|
||||
- features=connectrpc;google.api.http;protovalidate
|
||||
- allow-get
|
||||
- with-streaming
|
||||
- path=openapi.yaml
|
||||
- base=proto/base.yaml
|
||||
- format=json
|
||||
- path=openapi.json
|
||||
- base=openapi.yaml
|
||||
inputs:
|
||||
- directory: proto
|
||||
|
||||
2
buf.yaml
2
buf.yaml
@@ -9,4 +9,4 @@ breaking:
|
||||
use:
|
||||
- FILE
|
||||
deps:
|
||||
- buf.build/bufbuild/protovalidate:v0.14.2
|
||||
- buf.build/bufbuild/protovalidate
|
||||
|
||||
1
go.mod
1
go.mod
@@ -28,6 +28,7 @@ require (
|
||||
github.com/stretchr/testify v1.11.1
|
||||
github.com/traefik/paerser v0.2.2
|
||||
github.com/traefik/traefik/v3 v3.6.0
|
||||
github.com/urfave/cli/v3 v3.6.0
|
||||
github.com/vearutop/statigz v1.5.0
|
||||
golang.org/x/crypto v0.43.0
|
||||
golang.org/x/net v0.46.0
|
||||
|
||||
143
go.sum
143
go.sum
@@ -2,12 +2,8 @@ buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.10-202509121410
|
||||
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.10-20250912141014-52f32327d4b0.1/go.mod h1:fUl8CEN/6ZAMk6bP8ahBJPUJw7rbp+j4x+wCcYi2IG4=
|
||||
buf.build/go/protovalidate v1.0.0 h1:IAG1etULddAy93fiBsFVhpj7es5zL53AfB/79CVGtyY=
|
||||
buf.build/go/protovalidate v1.0.0/go.mod h1:KQmEUrcQuC99hAw+juzOEAmILScQiKBP1Oc36vvCLW8=
|
||||
cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY=
|
||||
cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw=
|
||||
cel.dev/expr v0.25.0 h1:qbCFvDJJthxLvf3TqeF9Ys7pjjWrO7LMzfYhpJUc30g=
|
||||
cel.dev/expr v0.25.0/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4=
|
||||
connectrpc.com/connect v1.19.0 h1:LuqUbq01PqbtL0o7vn0WMRXzR2nNsiINe5zfcJ24pJM=
|
||||
connectrpc.com/connect v1.19.0/go.mod h1:tN20fjdGlewnSFeZxLKb0xwIZ6ozc3OQs2hTXy4du9w=
|
||||
connectrpc.com/connect v1.19.1 h1:R5M57z05+90EfEvCY1b7hBxDVOUl45PrtXtAV2fOC14=
|
||||
connectrpc.com/connect v1.19.1/go.mod h1:tN20fjdGlewnSFeZxLKb0xwIZ6ozc3OQs2hTXy4du9w=
|
||||
connectrpc.com/cors v0.1.0 h1:f3gTXJyDZPrDIZCQ567jxfD9PAIpopHiRDnJRt3QuOQ=
|
||||
@@ -28,110 +24,40 @@ github.com/andybalholm/brotli v1.2.0 h1:ukwgCxwYrmACq68yiUqwIWnGY0cTPox/M94sVwTo
|
||||
github.com/andybalholm/brotli v1.2.0/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
|
||||
github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ=
|
||||
github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw=
|
||||
github.com/aws/aws-sdk-go-v2 v1.39.2 h1:EJLg8IdbzgeD7xgvZ+I8M1e0fL0ptn/M47lianzth0I=
|
||||
github.com/aws/aws-sdk-go-v2 v1.39.2/go.mod h1:sDioUELIUO9Znk23YVmIk86/9DOpkbyyVb1i/gUNFXY=
|
||||
github.com/aws/aws-sdk-go-v2 v1.39.3 h1:h7xSsanJ4EQJXG5iuW4UqgP7qBopLpj84mpkNx3wPjM=
|
||||
github.com/aws/aws-sdk-go-v2 v1.39.3/go.mod h1:yWSxrnioGUZ4WVv9TgMrNUeLV3PFESn/v+6T/Su8gnM=
|
||||
github.com/aws/aws-sdk-go-v2 v1.39.6 h1:2JrPCVgWJm7bm83BDwY5z8ietmeJUbh3O2ACnn+Xsqk=
|
||||
github.com/aws/aws-sdk-go-v2 v1.39.6/go.mod h1:c9pm7VwuW0UPxAEYGyTmyurVcNrbF6Rt/wixFqDhcjE=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.1 h1:i8p8P4diljCr60PpJp6qZXNlgX4m2yQFpYk+9ZT+J4E=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.1/go.mod h1:ddqbooRZYNoJ2dsTwOty16rM+/Aqmk/GOXrK8cg7V00=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.2 h1:t9yYsydLYNBk9cJ73rgPhPWqOh/52fcWDQB5b1JsKSY=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.2/go.mod h1:IusfVNTmiSN3t4rhxWFaBAqn+mcNdwKtPcV16eYdgko=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.3 h1:DHctwEM8P8iTXFxC/QK0MRjwEpWQeM9yzidCRjldUz0=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.3/go.mod h1:xdCzcZEtnSTKVDOmUZs4l/j3pSV6rpo1WXl5ugNsL8Y=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.31.12 h1:pYM1Qgy0dKZLHX2cXslNacbcEFMkDMl+Bcj5ROuS6p8=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.31.12/go.mod h1:/MM0dyD7KSDPR+39p9ZNVKaHDLb9qnfDurvVS2KAhN8=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.31.13 h1:wcqQB3B0PgRPUF5ZE/QL1JVOyB0mbPevHFoAMpemR9k=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.31.13/go.mod h1:ySB5D5ybwqGbT6c3GszZ+u+3KvrlYCUQNo62+hkKOFk=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.31.17 h1:QFl8lL6RgakNK86vusim14P2k8BFSxjvUkcWLDjgz9Y=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.31.17/go.mod h1:V8P7ILjp/Uef/aX8TjGk6OHZN6IKPM5YW6S78QnRD5c=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.18.16 h1:4JHirI4zp958zC026Sm+V4pSDwW4pwLefKrc0bF2lwI=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.18.16/go.mod h1:qQMtGx9OSw7ty1yLclzLxXCRbrkjWAM7JnObZjmCB7I=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.18.17 h1:skpEwzN/+H8cdrrtT8y+rvWJGiWWv0DeNAe+4VTf+Vs=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.18.17/go.mod h1:Ed+nXsaYa5uBINovJhcAWkALvXw2ZLk36opcuiSZfJM=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.18.21 h1:56HGpsgnmD+2/KpG0ikvvR8+3v3COCwaF4r+oWwOeNA=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.18.21/go.mod h1:3YELwedmQbw7cXNaII2Wywd+YY58AmLPwX4LzARgmmA=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.9 h1:Mv4Bc0mWmv6oDuSWTKnk+wgeqPL5DRFu5bQL9BGPQ8Y=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.9/go.mod h1:IKlKfRppK2a1y0gy1yH6zD+yX5uplJ6UuPlgd48dJiQ=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.10 h1:UuGVOX48oP4vgQ36oiKmW9RuSeT8jlgQgBFQD+HUiHY=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.10/go.mod h1:vM/Ini41PzvudT4YkQyE/+WiQJiQ6jzeDyU8pQKwCac=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.13 h1:T1brd5dR3/fzNFAQch/iBKeX07/ffu/cLu+q+RuzEWk=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.13/go.mod h1:Peg/GBAQ6JDt+RoBf4meB1wylmAipb7Kg2ZFakZTlwk=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.9 h1:se2vOWGD3dWQUtfn4wEjRQJb1HK1XsNIt825gskZ970=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.9/go.mod h1:hijCGH2VfbZQxqCDN7bwz/4dzxV+hkyhjawAtdPWKZA=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.10 h1:mj/bdWleWEh81DtpdHKkw41IrS+r3uw1J/VQtbwYYp8=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.10/go.mod h1:7+oEMxAZWP8gZCyjcm9VicI0M61Sx4DJtcGfKYv2yKQ=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.13 h1:a+8/MLcWlIxo1lF9xaGt3J/u3yOZx+CdSveSNwjhD40=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.13/go.mod h1:oGnKwIYZ4XttyU2JWxFrwvhF6YKiK/9/wmE3v3Iu9K8=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.9 h1:6RBnKZLkJM4hQ+kN6E7yWFveOTg8NLPHAkqrs4ZPlTU=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.9/go.mod h1:V9rQKRmK7AWuEsOMnHzKj8WyrIir1yUJbZxDuZLFvXI=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.10 h1:wh+/mn57yhUrFtLIxyFPh2RgxgQz/u+Yrf7hiHGHqKY=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.10/go.mod h1:7zirD+ryp5gitJJ2m1BBux56ai8RIRDykXZrJSp540w=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.13 h1:HBSI2kDkMdWz4ZM7FjwE7e/pWDEZ+nR95x8Ztet1ooY=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.13/go.mod h1:YE94ZoDArI7awZqJzBAZ3PDD2zSfuP7w6P2knOzIn8M=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 h1:bIqFDwgGXXN1Kpp99pDOdKMTTb5d2KyU5X/BZxjOkRo=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3/go.mod h1:H5O/EsxDWyU+LP/V8i5sm8cxoZgc2fdNR9bxlOFrQTo=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 h1:WKuaxf++XKWlHWu9ECbMlha8WOEGm0OUEZqm4K/Gcfk=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4/go.mod h1:ZWy7j6v1vWGmPReu0iSGvRiise4YI5SkR3OHKTZ6Wuc=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.9 h1:w9LnHqTq8MEdlnyhV4Bwfizd65lfNCNgdlNC6mM5paE=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.9/go.mod h1:LGEP6EK4nj+bwWNdrvX/FnDTFowdBNwcSPuZu/ouFys=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.10 h1:FHw90xCTsofzk6vjU808TSuDtDfOOKPNdz5Weyc3tUI=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.10/go.mod h1:n8jdIE/8F3UYkg8O4IGkQpn2qUmapg/1K1yl29/uf/c=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.13 h1:eg/WYAa12vqTphzIdWMzqYRVKKnCboVPRlvaybNCqPA=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.13/go.mod h1:/FDdxWhz1486obGrKKC1HONd7krpk38LBt+dutLcN9k=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.1 h1:oegbebPEMA/1Jny7kvwejowCaHz1FWZAQ94WXFNCyTM=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.1/go.mod h1:kemo5Myr9ac0U9JfSjMo9yHLtw+pECEHsFtJ9tqCEI8=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.2 h1:xtuxji5CS0JknaXoACOunXOYOQzgfTvGAc9s2QdCJA4=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.2/go.mod h1:zxwi0DIR0rcRcgdbl7E2MSOvxDyyXGBlScvBkARFaLQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 h1:x2Ibm/Af8Fi+BH+Hsn9TXGdT+hKbDd5XOTZxTMxDk7o=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3/go.mod h1:IW1jwyrQgMdhisceG8fQLmQIydcT/jWY21rFhzgaKwo=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.8.9 h1:by3nYZLR9l8bUH7kgaMU4dJgYFjyRdFEfORlDpPILB4=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.8.9/go.mod h1:IWjQYlqw4EX9jw2g3qnEPPWvCE6bS8fKzhMed1OK7c8=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.1 h1:ne+eepnDB2Wh5lHKzELgEncIqeVlQ1rSF9fEa4r5I+A=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.1/go.mod h1:u0Jkg0L+dcG1ozUq21uFElmpbmjBnhHR5DELHIme4wg=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.4 h1:NvMjwvv8hpGUILarKw7Z4Q0w1H9anXKsesMxtw++MA4=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.4/go.mod h1:455WPHSwaGj2waRSpQp7TsnpOnBfw8iDfPfbwl7KPJE=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.9 h1:5r34CgVOD4WZudeEKZ9/iKpiT6cM1JyEROpXjOcdWv8=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.9/go.mod h1:dB12CEbNWPbzO2uC6QSWHteqOg4JfBVJOojbAoAUb5I=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.10 h1:DRND0dkCKtJzCj4Xl4OpVbXZgfttY5q712H9Zj7qc/0=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.10/go.mod h1:tGGNmJKOTernmR2+VJ0fCzQRurcPZj9ut60Zu5Fi6us=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.13 h1:kDqdFvMY4AtKoACfzIGD8A0+hbT41KTKF//gq7jITfM=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.13/go.mod h1:lmKuogqSU3HzQCwZ9ZtcqOc5XGMqtDK7OIc2+DxiUEg=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.9 h1:wuZ5uW2uhJR63zwNlqWH2W4aL4ZjeJP3o92/W+odDY4=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.9/go.mod h1:/G58M2fGszCrOzvJUkDdY8O9kycodunH4VdT5oBAqls=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.10 h1:DA+Hl5adieRyFvE7pCvBWm3VOZTRexGVkXw33SUqNoY=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.10/go.mod h1:L+A89dH3/gr8L4ecrdzuXUYd1znoko6myzndVGZx/DA=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.13 h1:zhBJXdhWIFZ1acfDYIhu4+LCzdUS2Vbcum7D01dXlHQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.13/go.mod h1:JaaOeCE368qn2Hzi3sEzY6FgAZVCIYcC2nwbro2QCh8=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.88.3 h1:P18I4ipbk+b/3dZNq5YYh+Hq6XC0vp5RWkLp1tJldDA=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.88.3/go.mod h1:Rm3gw2Jov6e6kDuamDvyIlZJDMYk97VeCZ82wz/mVZ0=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.88.5 h1:FlGScxzCGNzT+2AvHT1ZGMvxTwAMa6gsooFb1pO/AiM=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.88.5/go.mod h1:N/iojY+8bW3MYol9NUMuKimpSbPEur75cuI1SmtonFM=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.90.0 h1:ef6gIJR+xv/JQWwpa5FYirzoQctfSJm7tuDe3SZsUf8=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.90.0/go.mod h1:+wArOOrcHUevqdto9k1tKOF5++YTe9JEcPSc9Tx2ZSw=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.29.6 h1:A1oRkiSQOWstGh61y4Wc/yQ04sqrQZr1Si/oAXj20/s=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.29.6/go.mod h1:5PfYspyCU5Vw1wNPsxi15LZovOnULudOQuVxphSflQA=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.29.7 h1:fspVFg6qMx0svs40YgRmE7LZXh9VRZvTT35PfdQR6FM=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.29.7/go.mod h1:BQTKL3uMECaLaUV3Zc2L4Qybv8C6BIXjuu1dOPyxTQs=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.1 h1:0JPwLz1J+5lEOfy/g0SURC9cxhbQ1lIMHMa+AHZSzz0=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.30.1/go.mod h1:fKvyjJcz63iL/ftA6RaM8sRCtN4r4zl4tjL3qw5ec7k=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.1 h1:5fm5RTONng73/QA73LhCNR7UT9RpFH3hR6HWL6bIgVY=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.1/go.mod h1:xBEjWD13h+6nq+z4AkqSfSvqRKFgDIQeaMguAJndOWo=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.2 h1:scVnW+NLXasGOhy7HhkdT9AGb6kjgW7fJ5xYkUaqHs0=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.2/go.mod h1:FRNCY3zTEWZXBKm2h5UBUPvCVDOecTad9KhynDyGBc0=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.5 h1:OWs0/j2UYR5LOGi88sD5/lhN6TDLG6SfA7CqsQO9zF0=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.5/go.mod h1:klO+ejMvYsB4QATfEOIXk8WAEwN4N0aBfJpvC+5SZBo=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.38.6 h1:p3jIvqYwUZgu/XYeI48bJxOhvm47hZb5HUQ0tn6Q9kA=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.38.6/go.mod h1:WtKK+ppze5yKPkZ0XwqIVWD4beCwv056ZbPQNoeHqM8=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.38.7 h1:VEO5dqFkMsl8QZ2yHsFDJAIZLAkEbaYDB+xdKi0Feic=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.38.7/go.mod h1:L1xxV3zAdB+qVrVW/pBIrIAnHFWHo6FBbFe4xOGsG/o=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.39.1 h1:mLlUgHn02ue8whiR4BmxxGJLR2gwU6s6ZzJ5wDamBUs=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.39.1/go.mod h1:E19xDjpzPZC7LS2knI9E6BaRFDK43Eul7vd6rSq2HWk=
|
||||
github.com/aws/smithy-go v1.23.0 h1:8n6I3gXzWJB2DxBDnfxgBaSX6oe0d/t10qGz7OKqMCE=
|
||||
github.com/aws/smithy-go v1.23.0/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
|
||||
github.com/aws/smithy-go v1.23.1 h1:sLvcH6dfAFwGkHLZ7dGiYF7aK6mg4CgKA/iDKjLDt9M=
|
||||
github.com/aws/smithy-go v1.23.1/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0=
|
||||
github.com/aws/smithy-go v1.23.2 h1:Crv0eatJUQhaManss33hS5r40CG3ZFH+21XSkqMrIUM=
|
||||
github.com/aws/smithy-go v1.23.2/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0=
|
||||
github.com/bool64/dev v0.2.39 h1:kP8DnMGlWXhGYJEZE/J0l/gVBdbuhoPGL+MJG4QbofE=
|
||||
@@ -159,10 +85,6 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
|
||||
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
|
||||
github.com/docker/docker v28.5.0+incompatible h1:ZdSQoRUE9XxhFI/B8YLvhnEFMmYN9Pp8Egd2qcaFk1E=
|
||||
github.com/docker/docker v28.5.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||
github.com/docker/docker v28.5.1+incompatible h1:Bm8DchhSD2J6PsFzxC35TZo4TLGR2PdW/E69rU45NhM=
|
||||
github.com/docker/docker v28.5.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||
github.com/docker/docker v28.5.2+incompatible h1:DBX0Y0zAjZbSrm1uzOkdr1onVghKaftjlSWt4AFexzM=
|
||||
github.com/docker/docker v28.5.2+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||
github.com/docker/go-connections v0.6.0 h1:LlMG9azAe1TqfR7sO+NJttz1gy6KO7VJBh+pMmjSD94=
|
||||
@@ -181,10 +103,6 @@ github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S
|
||||
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
|
||||
github.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM=
|
||||
github.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ=
|
||||
github.com/go-acme/lego/v4 v4.26.0 h1:521aEQxNstXvPQcFDDPrJiFfixcCQuvAvm35R4GbyYA=
|
||||
github.com/go-acme/lego/v4 v4.26.0/go.mod h1:BQVAWgcyzW4IT9eIKHY/RxYlVhoyKyOMXOkq7jK1eEQ=
|
||||
github.com/go-acme/lego/v4 v4.27.0 h1:cIhWd7Uj4BNFLEF3IpwuMkukVVRs5qjlp4KdUGa75yU=
|
||||
github.com/go-acme/lego/v4 v4.27.0/go.mod h1:9FfNZHZmg6hf5CWOp4Lzo4gU8aBEvqZvrwdkBboa+4g=
|
||||
github.com/go-acme/lego/v4 v4.28.1 h1:zt301JYF51UIEkpSXsdeGq9hRePeFzQCq070OdAmP0Q=
|
||||
github.com/go-acme/lego/v4 v4.28.1/go.mod h1:bzjilr03IgbaOwlH396hq5W56Bi0/uoRwW/JM8hP7m4=
|
||||
github.com/go-jose/go-jose/v4 v4.1.3 h1:CVLmWDhDVRa6Mi/IgCgaopNosCaHz7zrMeF9MlZRkrs=
|
||||
@@ -200,8 +118,6 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||
github.com/go-openapi/jsonpointer v0.22.1 h1:sHYI1He3b9NqJ4wXLoJDKmUmHkWy/L7rtEo92JUxBNk=
|
||||
github.com/go-openapi/jsonpointer v0.22.1/go.mod h1:pQT9OsLkfz1yWoMgYFy4x3U5GY5nUlsOn1qSBH5MkCM=
|
||||
github.com/go-openapi/jsonreference v0.21.2 h1:Wxjda4M/BBQllegefXrY/9aq1fxBA8sI5M/lFU6tSWU=
|
||||
github.com/go-openapi/jsonreference v0.21.2/go.mod h1:pp3PEjIsJ9CZDGCNOyXIQxsNuroxm8FAJ/+quA0yKzQ=
|
||||
github.com/go-openapi/jsonreference v0.21.3 h1:96Dn+MRPa0nYAR8DR1E03SblB5FJvh7W6krPI0Z7qMc=
|
||||
github.com/go-openapi/jsonreference v0.21.3/go.mod h1:RqkUP0MrLf37HqxZxrIAtTWW4ZJIK1VzduhXYBEeGc4=
|
||||
github.com/go-openapi/swag v0.25.1 h1:6uwVsx+/OuvFVPqfQmOOPsqTcm5/GkBhNwLqIR916n8=
|
||||
@@ -230,6 +146,8 @@ github.com/go-openapi/swag/typeutils v0.25.1 h1:rD/9HsEQieewNt6/k+JBwkxuAHktFtH3
|
||||
github.com/go-openapi/swag/typeutils v0.25.1/go.mod h1:9McMC/oCdS4BKwk2shEB7x17P6HmMmA6dQRtAkSnNb8=
|
||||
github.com/go-openapi/swag/yamlutils v0.25.1 h1:mry5ez8joJwzvMbaTGLhw8pXUnhDK91oSJLDPF1bmGk=
|
||||
github.com/go-openapi/swag/yamlutils v0.25.1/go.mod h1:cm9ywbzncy3y6uPm/97ysW8+wZ09qsks+9RS8fLWKqg=
|
||||
github.com/go-openapi/testify/v2 v2.0.2 h1:X999g3jeLcoY8qctY/c/Z8iBHTbwLz7R2WXd6Ub6wls=
|
||||
github.com/go-openapi/testify/v2 v2.0.2/go.mod h1:HCPmvFFnheKK2BuwSA0TbbdxJ3I16pjwMkYkP4Ywn54=
|
||||
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
|
||||
github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
|
||||
github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4=
|
||||
@@ -275,8 +193,6 @@ github.com/hypersequent/zen v0.0.0-20250923135653-056103bb12ce h1:/01YQ50baTQGf1
|
||||
github.com/hypersequent/zen v0.0.0-20250923135653-056103bb12ce/go.mod h1:uJ9mqUok1RHIAoVlkWxPHJqXNLwhLzh7jCUbp2V9Rws=
|
||||
github.com/jarcoal/httpmock v1.4.1 h1:0Ju+VCFuARfFlhVXFc2HxlcQkfB+Xq12/EotHko+x2A=
|
||||
github.com/jarcoal/httpmock v1.4.1/go.mod h1:ftW1xULwo+j0R0JJkJIIi7UKigZUXCLLanykgjwBXL0=
|
||||
github.com/joeig/go-powerdns/v3 v3.18.1 h1:3uqt4k7GKBCsyQqdk32Cd13NnqxZN38UbbD5861FIlU=
|
||||
github.com/joeig/go-powerdns/v3 v3.18.1/go.mod h1:627YE9sB9IJjAdt8Ywz+zsTrEp6pAOwGsaNpJBUERjE=
|
||||
github.com/joeig/go-powerdns/v3 v3.19.0 h1:YzatNd4/jq2m+mmn5F2BEBp9cH5ZseMyo520xtxWLao=
|
||||
github.com/joeig/go-powerdns/v3 v3.19.0/go.mod h1:627YE9sB9IJjAdt8Ywz+zsTrEp6pAOwGsaNpJBUERjE=
|
||||
github.com/json-iterator/go v1.1.13-0.20220915233716-71ac16282d12 h1:9Nu54bhS/H/Kgo2/7xNSUuC5G28VR8ljfrLKU2G4IjU=
|
||||
@@ -318,8 +234,6 @@ github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
|
||||
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
|
||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
|
||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
||||
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
|
||||
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w=
|
||||
github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
|
||||
@@ -369,12 +283,12 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu
|
||||
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||
github.com/traefik/paerser v0.2.2 h1:cpzW/ZrQrBh3mdwD/jnp6aXASiUFKOVr6ldP+keJTcQ=
|
||||
github.com/traefik/paerser v0.2.2/go.mod h1:7BBDd4FANoVgaTZG+yh26jI6CA2nds7D/4VTEdIsh24=
|
||||
github.com/traefik/traefik/v3 v3.5.3 h1:LxzoigGBOEx11CRDFYDFj/GfmnJsnxAl8bDkjqmsS2o=
|
||||
github.com/traefik/traefik/v3 v3.5.3/go.mod h1:bK/+7TKiKYJyFfzpo54RpaV1Zsiav9g9QkRODp9re14=
|
||||
github.com/traefik/traefik/v3 v3.6.0 h1:axM42ACSLlB/NWCAx/DTYCrSfmhMukVjXPJDkbZAk1c=
|
||||
github.com/traefik/traefik/v3 v3.6.0/go.mod h1:82/EIeYGZXjHvBfOizWI4VA1SV39fcVHRKNwDWHTD1w=
|
||||
github.com/unrolled/render v1.7.0 h1:1yke01/tZiZpiXfUG+zqB+6fq3G4I+KDmnh0EhPq7So=
|
||||
github.com/unrolled/render v1.7.0/go.mod h1:LwQSeDhjml8NLjIO9GJO1/1qpFJxtfVIpzxXKjfVkoI=
|
||||
github.com/urfave/cli/v3 v3.6.0 h1:oIdArVjkdIXHWg3iqxgmqwQGC8NM0JtdgwQAj2sRwFo=
|
||||
github.com/urfave/cli/v3 v3.6.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
|
||||
github.com/vearutop/statigz v1.5.0 h1:FuWwZiT82yBw4xbWdWIawiP2XFTyEPhIo8upRxiKLqk=
|
||||
github.com/vearutop/statigz v1.5.0/go.mod h1:oHmjFf3izfCO804Di1ZjB666P3fAlVzJEx2k6jNt/Gk=
|
||||
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
|
||||
@@ -385,9 +299,10 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
|
||||
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
|
||||
go.opentelemetry.io/collector/pdata v1.11.0 h1:rzYyV1zfTQQz1DI9hCiaKyyaczqawN75XO9mdXmR/hE=
|
||||
go.opentelemetry.io/collector/pdata v1.11.0/go.mod h1:IHxHsp+Jq/xfjORQMDJjSH6jvedOSTOyu3nbxqhWSYE=
|
||||
go.opentelemetry.io/collector/featuregate v1.41.0 h1:CL4UMsMQj35nMJC3/jUu8VvYB4MHirbAX4B0Z/fCVLY=
|
||||
go.opentelemetry.io/collector/featuregate v1.41.0/go.mod h1:A72x92glpH3zxekaUybml1vMSv94BH6jQRn5+/htcjw=
|
||||
go.opentelemetry.io/collector/pdata v1.41.0 h1:2zurAaY0FkURbLa1x7f7ag6HaNZYZKSmI4wgzDegLgo=
|
||||
go.opentelemetry.io/collector/pdata v1.41.0/go.mod h1:h0OghaTYe4oRvLxK31Ny7gkyjJ1p8oniM5MiCzluQjc=
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 h1:RbKq8BG0FI8OiXhBfcRtqqHcZcka+gU3cskNuf05R18=
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0/go.mod h1:h06DGIukJOevXaj/xrNjhi/2098RZzcLTbc0jDAUbsg=
|
||||
go.opentelemetry.io/otel v1.38.0 h1:RkfdswUDRimDg0m2Az18RKOsnI8UDzppJAtj01/Ymk8=
|
||||
@@ -416,8 +331,6 @@ go.opentelemetry.io/otel/sdk/metric v1.38.0 h1:aSH66iL0aZqo//xXzQLYozmWrXxyFkBJ6
|
||||
go.opentelemetry.io/otel/sdk/metric v1.38.0/go.mod h1:dg9PBnW9XdQ1Hd6ZnRz689CbtrUp0wMMs9iPcgT9EZA=
|
||||
go.opentelemetry.io/otel/trace v1.38.0 h1:Fxk5bKrDZJUH+AMyyIXGcFAPah0oRcT+LuNtJrmcNLE=
|
||||
go.opentelemetry.io/otel/trace v1.38.0/go.mod h1:j1P9ivuFsTceSWe1oY+EeW3sc+Pp42sO++GHkg4wwhs=
|
||||
go.opentelemetry.io/proto/otlp v1.8.0 h1:fRAZQDcAFHySxpJ1TwlA1cJ4tvcrw7nXl9xWWC8N5CE=
|
||||
go.opentelemetry.io/proto/otlp v1.8.0/go.mod h1:tIeYOeNBU4cvmPqpaji1P+KbB4Oloai8wN4rWzRrFF0=
|
||||
go.opentelemetry.io/proto/otlp v1.9.0 h1:l706jCMITVouPOqEnii2fIAuO3IVGBRPV5ICjceRb/A=
|
||||
go.opentelemetry.io/proto/otlp v1.9.0/go.mod h1:xE+Cx5E/eEHw+ISFkwPLwCZefwVjY+pqKg1qcK03+/4=
|
||||
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||
@@ -431,20 +344,12 @@ go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
|
||||
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
|
||||
golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04=
|
||||
golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0=
|
||||
golang.org/x/exp v0.0.0-20251002181428-27f1f14c8bb9 h1:TQwNpfvNkxAVlItJf6Cr5JTsVZoC/Sj7K3OZv2Pc14A=
|
||||
golang.org/x/exp v0.0.0-20251002181428-27f1f14c8bb9/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk=
|
||||
golang.org/x/exp v0.0.0-20251017212417-90e834f514db h1:by6IehL4BH5k3e3SJmcoNbOobMey2SLpAF79iPOEBvw=
|
||||
golang.org/x/exp v0.0.0-20251017212417-90e834f514db/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70=
|
||||
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY=
|
||||
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.28.0 h1:gQBtGhjxykdjY9YhZpSlZIsbnaE2+PgjfLWUQTnoZ1U=
|
||||
golang.org/x/mod v0.28.0/go.mod h1:yfB/L0NOf/kmEbXjzCPOx1iK1fRutOydrCMsqRhEBxI=
|
||||
golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA=
|
||||
golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
@@ -452,23 +357,15 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I=
|
||||
golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY=
|
||||
golang.org/x/net v0.46.0 h1:giFlY12I07fugqwPuWJi68oOnpfqFnJIJzaIIm2JVV4=
|
||||
golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.31.0 h1:8Fq0yVZLh4j4YA47vHKFTa9Ew5XIrCP8LC6UeNZnLxo=
|
||||
golang.org/x/oauth2 v0.31.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
|
||||
golang.org/x/oauth2 v0.32.0 h1:jsCblLleRMDrxMN29H3z/k1KliIvpLgCkE6R8FXXNgY=
|
||||
golang.org/x/oauth2 v0.32.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
|
||||
golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo=
|
||||
golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
|
||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
|
||||
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||
golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
|
||||
golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
@@ -477,32 +374,20 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
|
||||
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
|
||||
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
|
||||
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/term v0.35.0 h1:bZBVKBudEyhRcajGcNc3jIfWPqV4y/Kt2XcoigOWtDQ=
|
||||
golang.org/x/term v0.35.0/go.mod h1:TPGtkTLesOwf2DE8CgVYiZinHAOuy5AYUYT1lENIZnA=
|
||||
golang.org/x/term v0.36.0 h1:zMPR+aF8gfksFprF/Nc/rd1wRS1EI6nDBGyWAvDzx2Q=
|
||||
golang.org/x/term v0.36.0/go.mod h1:Qu394IJq6V6dCBRgwqshf3mPF85AqzYEzofzRdZkWss=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk=
|
||||
golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4=
|
||||
golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k=
|
||||
golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM=
|
||||
golang.org/x/time v0.13.0 h1:eUlYslOIt32DgYD6utsuUeHs4d7AsEYLuIAdg7FlYgI=
|
||||
golang.org/x/time v0.13.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4=
|
||||
golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI=
|
||||
golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.37.0 h1:DVSRzp7FwePZW356yEAChSdNcQo6Nsp+fex1SUW09lE=
|
||||
golang.org/x/tools v0.37.0/go.mod h1:MBN5QPQtLMHVdvsbtarmTNukZDdgwdwlO5qGacAzF0w=
|
||||
golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ=
|
||||
golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
@@ -512,20 +397,10 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T
|
||||
gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk=
|
||||
gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20251002232023-7c0ddcbb5797 h1:D/zZ8knc/wLq9imidPFpHsGuRUYTCWWCwemZ2dxACGs=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20251002232023-7c0ddcbb5797/go.mod h1:NnuHhy+bxcg30o7FnVAZbXsPHUDQ9qKWAQKCD7VxFtk=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20251020155222-88f65dc88635 h1:1wvBeYv+A2zfEbxROscJl69OP0m74S8wGEO+Syat26o=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20251020155222-88f65dc88635/go.mod h1:fDMmzKV90WSg1NbozdqrE64fkuTv6mlq2zxo9ad+3yo=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20251103181224-f26f9409b101 h1:vk5TfqZHNn0obhPIYeS+cxIFKFQgser/M2jnI+9c6MM=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20251103181224-f26f9409b101/go.mod h1:E17fc4PDhkr22dE3RgnH2hEubUaky6ZwW4VhANxyspg=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20251002232023-7c0ddcbb5797 h1:CirRxTOwnRWVLKzDNrs0CXAaVozJoR4G9xvdRecrdpk=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20251002232023-7c0ddcbb5797/go.mod h1:HSkG/KdJWusxU1F6CNrwNDjBMgisKxGnc5dAZfT0mjQ=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20251020155222-88f65dc88635 h1:3uycTxukehWrxH4HtPRtn1PDABTU331ViDjyqrUbaog=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20251020155222-88f65dc88635/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20251103181224-f26f9409b101 h1:tRPGkdGHuewF4UisLzzHHr1spKw92qLM98nIzxbC0wY=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20251103181224-f26f9409b101/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk=
|
||||
google.golang.org/grpc v1.75.1 h1:/ODCNEuf9VghjgO3rqLcfg8fiOP0nSluljWFlDxELLI=
|
||||
google.golang.org/grpc v1.75.1/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ=
|
||||
google.golang.org/grpc v1.76.0 h1:UnVkv1+uMLYXoIz6o7chp59WfQUYA2ex/BXQ9rHZu7A=
|
||||
google.golang.org/grpc v1.76.0/go.mod h1:Ju12QI8M6iQJtbcsV+awF5a4hfJMLi4X0JLo94ULZ6c=
|
||||
google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE=
|
||||
@@ -574,10 +449,6 @@ modernc.org/opt v0.1.4 h1:2kNGMRiUjrp4LcaPuLY2PzUfqM/w9N23quVwhKt5Qm8=
|
||||
modernc.org/opt v0.1.4/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
|
||||
modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w=
|
||||
modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE=
|
||||
modernc.org/sqlite v1.39.0 h1:6bwu9Ooim0yVYA7IZn9demiQk/Ejp0BtTjBWFLymSeY=
|
||||
modernc.org/sqlite v1.39.0/go.mod h1:cPTJYSlgg3Sfg046yBShXENNtPrWrDX8bsbAQBzgQ5E=
|
||||
modernc.org/sqlite v1.39.1 h1:H+/wGFzuSCIEVCvXYVHX5RQglwhMOvtHSv+VtidL2r4=
|
||||
modernc.org/sqlite v1.39.1/go.mod h1:9fjQZ0mB1LLP0GYrp39oOJXx/I2sxEnZtzCmEQIKvGE=
|
||||
modernc.org/sqlite v1.40.0 h1:bNWEDlYhNPAUdUdBzjAvn8icAs/2gaKlj4vM+tQ6KdQ=
|
||||
modernc.org/sqlite v1.40.0/go.mod h1:9fjQZ0mB1LLP0GYrp39oOJXx/I2sxEnZtzCmEQIKvGE=
|
||||
modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0=
|
||||
|
||||
@@ -94,7 +94,7 @@ func runningInDocker() bool {
|
||||
}
|
||||
|
||||
func fetchLatestRelease() (*release, error) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
|
||||
defer cancel()
|
||||
|
||||
url := fmt.Sprintf("%s/releases/latest", RepoURL)
|
||||
@@ -169,7 +169,7 @@ func downloadFile(url string, dest string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := out.Chmod(0755); err != nil {
|
||||
if err := out.Chmod(0o755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
"log/slog"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@@ -218,6 +219,34 @@ func GetClientIP(r *http.Request) string {
|
||||
return ip
|
||||
}
|
||||
|
||||
// ParseHostPort parses a URL string and returns the host and port.
|
||||
func ParseHostPort(rawURL string) (host, port string) {
|
||||
u, err := url.Parse(rawURL)
|
||||
if err != nil {
|
||||
return "", ""
|
||||
}
|
||||
|
||||
h := u.Host
|
||||
if strings.Contains(h, ":") {
|
||||
host, port, err = net.SplitHostPort(h)
|
||||
if err != nil {
|
||||
return h, ""
|
||||
}
|
||||
return host, port
|
||||
}
|
||||
return h, ""
|
||||
}
|
||||
|
||||
// OriginOnly returns the origin of a URL, without the path, query, or fragment.
|
||||
func OriginOnly(urlStr string) string {
|
||||
u, err := url.Parse(urlStr)
|
||||
if err != nil {
|
||||
return urlStr
|
||||
}
|
||||
u.Path, u.RawQuery, u.Fragment = "", "", ""
|
||||
return strings.TrimSuffix(u.String(), "/")
|
||||
}
|
||||
|
||||
func IsValidIPv4(ip string) bool {
|
||||
parsedIP := net.ParseIP(ip)
|
||||
if parsedIP == nil {
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
package proto
|
||||
|
||||
import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed gen/openapi/openapi.yaml
|
||||
var OpenAPIFS embed.FS
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/agent.proto
|
||||
|
||||
@@ -861,11 +861,10 @@ const file_mantrae_v1_agent_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"profile_id\x18\x01 \x01(\x03B\a\xbaH\x04\"\x02 \x00R\tprofileId\">\n" +
|
||||
"\x13CreateAgentResponse\x12'\n" +
|
||||
"\x05agent\x18\x01 \x01(\v2\x11.mantrae.v1.AgentR\x05agent\"\x8e\x01\n" +
|
||||
"\x05agent\x18\x01 \x01(\v2\x11.mantrae.v1.AgentR\x05agent\"\x8b\x01\n" +
|
||||
"\x12UpdateAgentRequest\x12\x17\n" +
|
||||
"\x02id\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x02id\x12\x1f\n" +
|
||||
"\x02ip\x18\x02 \x01(\tB\n" +
|
||||
"\xbaH\a\xd8\x01\x00r\x02p\x01H\x00R\x02ip\x88\x01\x01\x12&\n" +
|
||||
"\x02id\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x02id\x12\x1c\n" +
|
||||
"\x02ip\x18\x02 \x01(\tB\a\xbaH\x04r\x02p\x01H\x00R\x02ip\x88\x01\x01\x12&\n" +
|
||||
"\frotate_token\x18\x03 \x01(\bH\x01R\vrotateToken\x88\x01\x01B\x05\n" +
|
||||
"\x03_ipB\x0f\n" +
|
||||
"\r_rotate_token\">\n" +
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/auditlog.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/backup.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/dns_provider.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/entry_point.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/middleware.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/profile.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/protocol.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/router.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/servers_transport.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/service.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/setting.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/traefik_instance.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/user.proto
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc (unknown)
|
||||
// source: mantrae/v1/util.proto
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2,34 +2,103 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"log/slog"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/mizuchilabs/mantrae/pkg/build"
|
||||
"github.com/mizuchilabs/mantrae/pkg/meta"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/api/server"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/config"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/tasks"
|
||||
"github.com/urfave/cli/v3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cmd := &cli.Command{
|
||||
EnableShellCompletion: true,
|
||||
Suggest: true,
|
||||
Name: "mantrae",
|
||||
Version: fmt.Sprintf("%s (%s)", meta.Version, meta.Commit),
|
||||
Usage: "mantrae [command]",
|
||||
Description: `Mantrae simplifies the management of Traefik reverse proxy configurations through an intuitive web interface. Manage routers, middleware, services, and DNS providers with ease.
|
||||
|
||||
See https://github.com/mizuchilabs/mantrae for more information.`,
|
||||
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||
app, err := config.Setup(ctx)
|
||||
if err != nil {
|
||||
slog.Error("Setup failed", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
// Start background jobs
|
||||
tasks.NewScheduler(ctx, app).Start()
|
||||
return server.NewServer(app).Start(ctx)
|
||||
},
|
||||
Commands: []*cli.Command{
|
||||
{
|
||||
Name: "reset",
|
||||
Usage: "Reset a user's password",
|
||||
Description: `Reset the password for a specific user account.
|
||||
By default, resets the admin user's password. Use the --user flag
|
||||
to specify a different username.`,
|
||||
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||
app, err := config.Setup(ctx)
|
||||
if err != nil {
|
||||
slog.Error("Setup failed", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
app.ResetPassword(ctx, cmd)
|
||||
return nil
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "update",
|
||||
Usage: "Check for updates or update Mantrae to the latest version",
|
||||
Description: `Check if a newer version of Mantrae is available.
|
||||
Use the --install flag to download and install the latest version.
|
||||
|
||||
Note: Automatic installation does not work inside Docker containers.`,
|
||||
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||
build.Update(cmd.Bool("install"))
|
||||
return nil
|
||||
},
|
||||
},
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
&cli.BoolFlag{
|
||||
Name: "version",
|
||||
Aliases: []string{"v"},
|
||||
Usage: "Display version information and exit",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "password",
|
||||
Aliases: []string{"p"},
|
||||
Usage: "New password to set for the user (used with reset command)",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "user",
|
||||
Aliases: []string{"u"},
|
||||
Usage: "Username for password reset operations",
|
||||
Value: "admin",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "install",
|
||||
Usage: "Download and install the latest version (used with update command, does not work in Docker)",
|
||||
Value: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// Graceful shutdown
|
||||
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
||||
defer stop()
|
||||
|
||||
app, err := config.Setup(ctx)
|
||||
if err != nil {
|
||||
slog.Error("Setup failed", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Start background jobs
|
||||
scheduler := tasks.NewScheduler(ctx, app)
|
||||
scheduler.Start()
|
||||
|
||||
srv := server.NewServer(app)
|
||||
if err := srv.Start(ctx); err != nil {
|
||||
slog.Error("Server error", "error", err)
|
||||
os.Exit(1)
|
||||
if err := cmd.Run(ctx, os.Args); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,46 +1,60 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
connectcors "connectrpc.com/cors"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/settings"
|
||||
"github.com/mizuchilabs/mantrae/pkg/util"
|
||||
"github.com/rs/cors"
|
||||
"golang.org/x/net/http2"
|
||||
"golang.org/x/net/http2/h2c"
|
||||
)
|
||||
|
||||
// WithCORS adds CORS support to a Connect HTTP handler.
|
||||
func (s *Server) WithCORS(h http.Handler) http.Handler {
|
||||
// Always include safe localhost dev URLs
|
||||
allowedOrigins := []string{
|
||||
"http://localhost:5173",
|
||||
"http://127.0.0.1:5173",
|
||||
"http://localhost:" + s.Port,
|
||||
"http://127.0.0.1:" + s.Port,
|
||||
util.OriginOnly(s.app.BaseURL),
|
||||
util.OriginOnly(s.app.FrontendURL),
|
||||
}
|
||||
|
||||
serverURL, ok := s.app.SM.Get(context.Background(), settings.KeyServerURL)
|
||||
if ok {
|
||||
allowedOrigins = append(allowedOrigins, serverURL)
|
||||
}
|
||||
|
||||
corsHandler := cors.New(cors.Options{
|
||||
AllowedOrigins: allowedOrigins,
|
||||
AllowedMethods: connectcors.AllowedMethods(),
|
||||
ExposedHeaders: connectcors.ExposedHeaders(),
|
||||
AllowedHeaders: append(
|
||||
connectcors.AllowedHeaders(),
|
||||
"Authorization",
|
||||
"Access-Control-Allow-Origin",
|
||||
"Access-Control-Allow-Credentials",
|
||||
"Access-Control-Allow-Headers",
|
||||
),
|
||||
return cors.New(cors.Options{
|
||||
AllowedOrigins: allowedOrigins,
|
||||
AllowedMethods: connectcors.AllowedMethods(),
|
||||
ExposedHeaders: connectcors.ExposedHeaders(),
|
||||
AllowedHeaders: connectcors.AllowedHeaders(),
|
||||
AllowCredentials: true,
|
||||
MaxAge: int(2 * time.Hour / time.Second),
|
||||
}).Handler(h)
|
||||
|
||||
return h2c.NewHandler(corsHandler, &http2.Server{})
|
||||
}
|
||||
|
||||
// WithCORS adds CORS support to a Connect HTTP handler.
|
||||
// func (s *Server) WithCORS(h http.Handler) http.Handler {
|
||||
// // Always include safe localhost dev URLs
|
||||
// allowedOrigins := []string{
|
||||
// "http://localhost:5173",
|
||||
// "http://127.0.0.1:5173",
|
||||
// "http://localhost:" + s.Port,
|
||||
// "http://127.0.0.1:" + s.Port,
|
||||
// }
|
||||
|
||||
// serverURL, ok := s.app.SM.Get(context.Background(), settings.KeyServerURL)
|
||||
// if ok {
|
||||
// allowedOrigins = append(allowedOrigins, serverURL)
|
||||
// }
|
||||
|
||||
// corsHandler := cors.New(cors.Options{
|
||||
// AllowedOrigins: allowedOrigins,
|
||||
// AllowedMethods: connectcors.AllowedMethods(),
|
||||
// ExposedHeaders: connectcors.ExposedHeaders(),
|
||||
// AllowedHeaders: append(
|
||||
// connectcors.AllowedHeaders(),
|
||||
// "Authorization",
|
||||
// "Access-Control-Allow-Origin",
|
||||
// "Access-Control-Allow-Credentials",
|
||||
// "Access-Control-Allow-Headers",
|
||||
// ),
|
||||
// AllowCredentials: true,
|
||||
// MaxAge: int(2 * time.Hour / time.Second),
|
||||
// }).Handler(h)
|
||||
|
||||
// return h2c.NewHandler(corsHandler, &http2.Server{})
|
||||
// }
|
||||
|
||||
47
server/internal/api/server/openapi.go
Normal file
47
server/internal/api/server/openapi.go
Normal file
@@ -0,0 +1,47 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
|
||||
"github.com/vearutop/statigz"
|
||||
)
|
||||
|
||||
//go:embed openapi/openapi.json
|
||||
var oapi embed.FS
|
||||
|
||||
const specHTML = `<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Scalar API Reference</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
|
||||
<script>
|
||||
Scalar.createApiReference('#app', {
|
||||
url: '/openapi.json',
|
||||
proxyUrl: 'https://proxy.scalar.com',
|
||||
theme: 'elysiajs',
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
func (s *Server) OpenAPIHandler() {
|
||||
// Serve OpenAPI spec
|
||||
s.mux.Handle("/openapi.json", statigz.FileServer(oapi, statigz.FSPrefix("openapi")))
|
||||
|
||||
// Serve Spec UI
|
||||
s.mux.HandleFunc("/openapi", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
if _, err := w.Write([]byte(specHTML)); err != nil {
|
||||
slog.Error("failed to write elements HTML", "error", err)
|
||||
}
|
||||
})
|
||||
}
|
||||
9838
server/internal/api/server/openapi/openapi.json
Normal file
9838
server/internal/api/server/openapi/openapi.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,9 @@ package server
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"net/http/pprof"
|
||||
"runtime/debug"
|
||||
"time"
|
||||
|
||||
@@ -14,7 +14,6 @@ import (
|
||||
"connectrpc.com/grpchealth"
|
||||
"connectrpc.com/grpcreflect"
|
||||
"connectrpc.com/validate"
|
||||
"github.com/caarlos0/env/v11"
|
||||
"github.com/mizuchilabs/mantrae/proto/gen/mantrae/v1/mantraev1connect"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/api/handler"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/api/middlewares"
|
||||
@@ -22,41 +21,15 @@ import (
|
||||
"github.com/mizuchilabs/mantrae/server/internal/config"
|
||||
)
|
||||
|
||||
const elementsHTML = `<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>API Documentation</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>
|
||||
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<elements-api
|
||||
apiDescriptionUrl="/openapi.yaml"
|
||||
router="hash"
|
||||
layout="sidebar"
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
`
|
||||
|
||||
type Server struct {
|
||||
Port string `env:"PORT" envDefault:"3000"`
|
||||
mux *http.ServeMux
|
||||
app *config.App
|
||||
mux *http.ServeMux
|
||||
app *config.App
|
||||
}
|
||||
|
||||
func NewServer(app *config.App) *Server {
|
||||
cfg, err := env.ParseAs[Server]()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
return &Server{
|
||||
Port: cfg.Port,
|
||||
mux: http.NewServeMux(),
|
||||
app: app,
|
||||
mux: http.NewServeMux(),
|
||||
app: app,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,11 +42,12 @@ func (s *Server) Start(ctx context.Context) error {
|
||||
}()
|
||||
|
||||
server := &http.Server{
|
||||
Addr: "0.0.0.0:" + s.Port,
|
||||
Addr: "0.0.0.0:" + s.app.BasePort(),
|
||||
Handler: s.WithCORS(s.mux),
|
||||
ReadHeaderTimeout: 3 * time.Second,
|
||||
ReadTimeout: 5 * time.Minute,
|
||||
WriteTimeout: 5 * time.Minute,
|
||||
ReadTimeout: 15 * time.Second,
|
||||
WriteTimeout: 15 * time.Second,
|
||||
ReadHeaderTimeout: 5 * time.Second,
|
||||
IdleTimeout: 120 * time.Second,
|
||||
MaxHeaderBytes: 8 * 1024, // 8KiB
|
||||
}
|
||||
|
||||
@@ -84,9 +58,9 @@ func (s *Server) Start(ctx context.Context) error {
|
||||
go func() {
|
||||
serverURL, ok := s.app.SM.Get(ctx, "server_url")
|
||||
if ok && serverURL == "" {
|
||||
serverURL = "http://127.0.0.1:" + s.Port
|
||||
serverURL = "http://127.0.0.1:" + s.app.BasePort()
|
||||
}
|
||||
slog.Info("Server listening on", "address", "http://127.0.0.1:"+s.Port)
|
||||
slog.Info("Server listening on", "address", "http://127.0.0.1:"+s.app.BasePort())
|
||||
slog.Info("Agents can connect to", "address", serverURL)
|
||||
if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed {
|
||||
serverErr <- err
|
||||
@@ -121,14 +95,18 @@ func (s *Server) registerServices() {
|
||||
),
|
||||
connect.WithRecover(
|
||||
func(ctx context.Context, spec connect.Spec, header http.Header, panic any) error {
|
||||
// Log the panic with context
|
||||
slog.Error("panic recovered in RPC call",
|
||||
"method", spec.Procedure,
|
||||
"panic", panic,
|
||||
"trace", string(debug.Stack()),
|
||||
)
|
||||
header.Set("X-Error-Type", "panic")
|
||||
header.Set("Content-Type", "application/json")
|
||||
if s.app.Debug {
|
||||
slog.Error("panic recovered in RPC call",
|
||||
"method", spec.Procedure,
|
||||
"panic", panic,
|
||||
"stack", string(debug.Stack()),
|
||||
)
|
||||
} else {
|
||||
slog.Error("panic recovered in RPC call",
|
||||
"method", spec.Procedure,
|
||||
"panic", panic,
|
||||
)
|
||||
}
|
||||
return connect.NewError(connect.CodeInternal, fmt.Errorf("internal server error"))
|
||||
},
|
||||
),
|
||||
@@ -150,41 +128,22 @@ func (s *Server) registerServices() {
|
||||
mantraev1connect.TraefikInstanceServiceName,
|
||||
mantraev1connect.AuditLogServiceName,
|
||||
}
|
||||
s.registerHealthAndReflection(serviceNames)
|
||||
|
||||
checker := grpchealth.NewStaticChecker(serviceNames...)
|
||||
reflector := grpcreflect.NewStaticReflector(serviceNames...)
|
||||
|
||||
s.mux.Handle(grpchealth.NewHandler(checker))
|
||||
s.mux.Handle(grpcreflect.NewHandlerV1(reflector))
|
||||
s.mux.Handle(grpcreflect.NewHandlerV1Alpha(reflector))
|
||||
|
||||
// PProf debug endpoints
|
||||
// s.mux.HandleFunc("/debug/pprof/", pprof.Index)
|
||||
// s.mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
|
||||
// s.mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
||||
// s.mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
||||
// s.mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
|
||||
// Debug
|
||||
if s.app.Debug {
|
||||
s.mux.HandleFunc("/debug/pprof/", pprof.Index)
|
||||
s.mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
|
||||
s.mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
||||
s.mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
||||
s.mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
|
||||
}
|
||||
|
||||
// Static files
|
||||
s.WithStatic()
|
||||
|
||||
// Health check
|
||||
s.mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
})
|
||||
|
||||
// Serve OpenAPI specs file
|
||||
// s.mux.HandleFunc("/openapi.yaml", func(w http.ResponseWriter, r *http.Request) {
|
||||
// http.ServeFile(w, r, "proto/gen/openapi/openapi.yaml")
|
||||
// })
|
||||
|
||||
// Serve Elements UI
|
||||
s.mux.HandleFunc("/docs", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
if _, err := w.Write([]byte(elementsHTML)); err != nil {
|
||||
slog.Error("failed to write elements HTML", "error", err)
|
||||
}
|
||||
})
|
||||
// Serve OpenAPI spec
|
||||
s.OpenAPIHandler()
|
||||
|
||||
// Service implementations
|
||||
s.mux.Handle(mantraev1connect.NewProfileServiceHandler(
|
||||
@@ -260,3 +219,15 @@ func (s *Server) registerServices() {
|
||||
s.mux.Handle("GET /oidc/login", logChain(handler.OIDCLogin(s.app)))
|
||||
s.mux.Handle("GET /oidc/callback", logChain(handler.OIDCCallback(s.app)))
|
||||
}
|
||||
|
||||
func (s *Server) registerHealthAndReflection(serviceNames []string) {
|
||||
checker := grpchealth.NewStaticChecker(serviceNames...)
|
||||
reflector := grpcreflect.NewStaticReflector(serviceNames...)
|
||||
|
||||
s.mux.Handle(grpchealth.NewHandler(checker))
|
||||
s.mux.Handle(grpcreflect.NewHandlerV1(reflector))
|
||||
s.mux.Handle(grpcreflect.NewHandlerV1Alpha(reflector))
|
||||
s.mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package server
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/mizuchilabs/mantrae/proto"
|
||||
"github.com/mizuchilabs/mantrae/web"
|
||||
"github.com/vearutop/statigz"
|
||||
"github.com/vearutop/statigz/brotli"
|
||||
@@ -17,8 +16,4 @@ func (s *Server) WithStatic() {
|
||||
brotli.AddEncoding,
|
||||
statigz.FSPrefix("build"),
|
||||
))
|
||||
s.mux.Handle(
|
||||
"/openapi.yaml",
|
||||
statigz.FileServer(proto.OpenAPIFS, statigz.FSPrefix("gen/openapi")),
|
||||
)
|
||||
}
|
||||
|
||||
44
server/internal/config/commands.go
Normal file
44
server/internal/config/commands.go
Normal file
@@ -0,0 +1,44 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"log/slog"
|
||||
"os"
|
||||
|
||||
"github.com/mizuchilabs/mantrae/pkg/util"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/store/db"
|
||||
"github.com/urfave/cli/v3"
|
||||
)
|
||||
|
||||
func (a *App) ResetPassword(ctx context.Context, cmd *cli.Command) {
|
||||
if cmd.String("password") == "" {
|
||||
return
|
||||
}
|
||||
|
||||
user, err := a.Conn.GetQuery().GetUserByUsername(ctx, cmd.String("user"))
|
||||
if err != nil {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
slog.Error("failed to get user", "user", cmd.String("user"))
|
||||
} else {
|
||||
slog.Error("failed to get user", "error", err)
|
||||
}
|
||||
os.Exit(1)
|
||||
}
|
||||
hash, err := util.HashPassword(cmd.String("password"))
|
||||
if err != nil {
|
||||
slog.Error("failed to hash password", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
if err = a.Conn.GetQuery().UpdateUserPassword(ctx, db.UpdateUserPasswordParams{
|
||||
ID: user.ID,
|
||||
Password: hash,
|
||||
}); err != nil {
|
||||
slog.Error("failed to update password for user", "user", cmd.String("user"), "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
slog.Info("Reset successful!", "user", cmd.String("user"), "password", cmd.String("password"))
|
||||
os.Exit(1)
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
//go:build !dev
|
||||
// +build !dev
|
||||
|
||||
// Package config various app setup and configuration functions.
|
||||
package config
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/mizuchilabs/mantrae/pkg/build"
|
||||
"github.com/mizuchilabs/mantrae/pkg/meta"
|
||||
)
|
||||
|
||||
type Flags struct {
|
||||
Version bool
|
||||
Update bool
|
||||
Squash bool
|
||||
Zod bool
|
||||
ResetPassword string
|
||||
ResetUser string
|
||||
}
|
||||
|
||||
func ParseFlags() *Flags {
|
||||
f := &Flags{}
|
||||
flag.BoolVar(&f.Version, "version", false, "Print version and exit")
|
||||
flag.BoolVar(&f.Update, "update", false, "Update the application")
|
||||
flag.StringVar(&f.ResetPassword, "reset-password", "", "Set a new admin password")
|
||||
flag.StringVar(&f.ResetUser, "reset-user", "admin", "Username to reset password for")
|
||||
|
||||
flag.Parse()
|
||||
flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ExitOnError)
|
||||
|
||||
if f.Version {
|
||||
fmt.Println(meta.Version)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
build.Update(f.Update)
|
||||
return f
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
//go:build dev
|
||||
// +build dev
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/mizuchilabs/mantrae/pkg/build"
|
||||
"github.com/mizuchilabs/mantrae/pkg/meta"
|
||||
"github.com/mizuchilabs/mantrae/server/internal/store"
|
||||
)
|
||||
|
||||
type Flags struct {
|
||||
Version bool
|
||||
Update bool
|
||||
Squash bool
|
||||
Zod bool
|
||||
ResetPassword string
|
||||
ResetUser string
|
||||
}
|
||||
|
||||
func ParseFlags() *Flags {
|
||||
f := &Flags{}
|
||||
flag.BoolVar(&f.Version, "version", false, "Print version and exit")
|
||||
flag.BoolVar(&f.Update, "update", false, "Update the application")
|
||||
flag.BoolVar(&f.Squash, "squash", false, "Squash the database (only for dev)")
|
||||
flag.BoolVar(&f.Zod, "zod", false, "Generate zod schemas (only for dev)")
|
||||
|
||||
flag.Parse()
|
||||
flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ExitOnError)
|
||||
|
||||
if f.Version {
|
||||
fmt.Println(meta.Version)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if f.Squash {
|
||||
store.Squash()
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if f.Zod {
|
||||
StructToZodSchema()
|
||||
os.Exit(1)
|
||||
}
|
||||
build.Update(f.Update)
|
||||
|
||||
return f
|
||||
}
|
||||
@@ -3,12 +3,10 @@ package config
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"net/url"
|
||||
"os"
|
||||
"slices"
|
||||
|
||||
"github.com/caarlos0/env/v11"
|
||||
"github.com/google/uuid"
|
||||
@@ -21,29 +19,38 @@ import (
|
||||
"github.com/mizuchilabs/mantrae/server/internal/store/db"
|
||||
)
|
||||
|
||||
type EnvConfig struct {
|
||||
Secret string `env:"SECRET"`
|
||||
AdminPassword string `env:"ADMIN_PASSWORD"`
|
||||
AdminEmail string `env:"ADMIN_EMAIL"`
|
||||
BaseURL string `env:"BASE_URL" envDefault:"http://localhost:3000"`
|
||||
FrontendURL string `env:"FRONTEND_URL" envDefault:"http://localhost:5173"`
|
||||
Debug bool `env:"DEBUG" envDefault:"false"`
|
||||
}
|
||||
|
||||
type App struct {
|
||||
Secret string `env:"SECRET"`
|
||||
Conn *store.Connection
|
||||
BM *backup.BackupManager
|
||||
SM *settings.SettingsManager
|
||||
Event *event.Broadcaster
|
||||
// Environment variables
|
||||
EnvConfig
|
||||
|
||||
// App state
|
||||
Conn *store.Connection
|
||||
BM *backup.BackupManager
|
||||
SM *settings.SettingsManager
|
||||
Event *event.Broadcaster
|
||||
}
|
||||
|
||||
func Setup(ctx context.Context) (*App, error) {
|
||||
// Setup fancy logger
|
||||
logger.Setup()
|
||||
|
||||
// Read flags
|
||||
flags := ParseFlags()
|
||||
|
||||
// Read environment variables
|
||||
app, err := env.ParseAs[App]()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if len(app.Secret) != 16 && len(app.Secret) != 24 && len(app.Secret) != 32 {
|
||||
return nil, fmt.Errorf("secret must be either 16, 24 or 32 bytes")
|
||||
if !slices.Contains([]int{16, 24, 32}, len(app.Secret)) {
|
||||
return nil, fmt.Errorf("secret must be either 16, 24 or 32 bytes, is %d", len(app.Secret))
|
||||
}
|
||||
|
||||
app.Conn = store.NewConnection("")
|
||||
@@ -55,8 +62,6 @@ func Setup(ctx context.Context) (*App, error) {
|
||||
|
||||
app.Event = event.NewBroadcaster(ctx)
|
||||
|
||||
app.resetPassword(ctx, flags)
|
||||
|
||||
return &app, app.setupDefaultData(ctx)
|
||||
}
|
||||
|
||||
@@ -71,8 +76,8 @@ func (a *App) setupDefaultData(ctx context.Context) error {
|
||||
|
||||
if len(users) == 0 {
|
||||
// Generate password if not provided
|
||||
password, ok := os.LookupEnv("ADMIN_PASSWORD")
|
||||
if !ok {
|
||||
password := a.AdminPassword
|
||||
if password == "" {
|
||||
password = util.GenPassword(32)
|
||||
slog.Info("Generated new admin", "password", password)
|
||||
}
|
||||
@@ -82,8 +87,8 @@ func (a *App) setupDefaultData(ctx context.Context) error {
|
||||
return fmt.Errorf("failed to hash password: %w", err)
|
||||
}
|
||||
|
||||
email, ok := os.LookupEnv("ADMIN_EMAIL")
|
||||
if !ok {
|
||||
email := a.AdminEmail
|
||||
if email == "" {
|
||||
email = "admin@localhost"
|
||||
}
|
||||
|
||||
@@ -145,33 +150,42 @@ func (a *App) setupDefaultData(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *App) resetPassword(ctx context.Context, flags *Flags) {
|
||||
if flags.ResetPassword == "" {
|
||||
return
|
||||
}
|
||||
// --- BaseURL helpers ---
|
||||
|
||||
user, err := a.Conn.GetQuery().GetUserByUsername(ctx, flags.ResetUser)
|
||||
if err != nil {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
slog.Error("failed to get user", "user", flags.ResetUser)
|
||||
} else {
|
||||
slog.Error("failed to get user", "error", err)
|
||||
}
|
||||
os.Exit(1)
|
||||
}
|
||||
hash, err := util.HashPassword(flags.ResetPassword)
|
||||
if err != nil {
|
||||
slog.Error("failed to hash password", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
if err = a.Conn.GetQuery().UpdateUserPassword(ctx, db.UpdateUserPasswordParams{
|
||||
ID: user.ID,
|
||||
Password: hash,
|
||||
}); err != nil {
|
||||
slog.Error("failed to update password for user", "user", flags.ResetUser, "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
slog.Info("Reset successful!", "user", flags.ResetUser, "password", flags.ResetPassword)
|
||||
os.Exit(1)
|
||||
func (c App) BaseHost() string {
|
||||
host, _ := util.ParseHostPort(c.BaseURL)
|
||||
return host
|
||||
}
|
||||
|
||||
func (c App) BasePort() string {
|
||||
_, port := util.ParseHostPort(c.BaseURL)
|
||||
return port
|
||||
}
|
||||
|
||||
func (c App) BaseDomain() string {
|
||||
u, err := url.Parse(c.BaseURL)
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return u.Host // includes port if present
|
||||
}
|
||||
|
||||
// --- FrontendURL helpers ---
|
||||
|
||||
func (c App) FrontendHost() string {
|
||||
host, _ := util.ParseHostPort(c.FrontendURL)
|
||||
return host
|
||||
}
|
||||
|
||||
func (c App) FrontendPort() string {
|
||||
_, port := util.ParseHostPort(c.FrontendURL)
|
||||
return port
|
||||
}
|
||||
|
||||
func (c App) FrontendDomain() string {
|
||||
u, err := url.Parse(c.FrontendURL)
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return u.Host
|
||||
}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: agents.sql
|
||||
|
||||
package db
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
const countAgents = `-- name: CountAgents :one
|
||||
@@ -164,13 +165,13 @@ WHERE
|
||||
`
|
||||
|
||||
type UpdateAgentParams struct {
|
||||
Hostname *string `json:"hostname"`
|
||||
PublicIp *string `json:"publicIp"`
|
||||
PrivateIp *string `json:"privateIp"`
|
||||
ActiveIp *string `json:"activeIp"`
|
||||
Containers interface{} `json:"containers"`
|
||||
Token *string `json:"token"`
|
||||
ID string `json:"id"`
|
||||
Hostname *string `json:"hostname"`
|
||||
PublicIp *string `json:"publicIp"`
|
||||
PrivateIp *string `json:"privateIp"`
|
||||
ActiveIp *string `json:"activeIp"`
|
||||
Containers json.RawMessage `json:"containers"`
|
||||
Token *string `json:"token"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
func (q *Queries) UpdateAgent(ctx context.Context, arg UpdateAgentParams) (Agent, error) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: audit_logs.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -197,13 +197,8 @@ func (u *User) ToProto() *mantraev1.User {
|
||||
func (a *Agent) ToProto() *mantraev1.Agent {
|
||||
containers := make([]*mantraev1.Container, 0)
|
||||
if a.Containers != nil {
|
||||
raw, ok := a.Containers.([]byte)
|
||||
if !ok {
|
||||
slog.Error("containers is not []byte", "type", fmt.Sprintf("%T", a.Containers))
|
||||
} else {
|
||||
if err := json.Unmarshal(raw, &containers); err != nil {
|
||||
slog.Error("failed to unmarshal agent containers", "error", err)
|
||||
}
|
||||
if err := json.Unmarshal(a.Containers, &containers); err != nil {
|
||||
slog.Error("failed to unmarshal agent containers", "error", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
|
||||
package db
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: dns_providers.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: entry_points.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: errors.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: http_middlewares.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: http_router_dns_provider.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: http_routers.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: http_servers_transports.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: http_services.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,26 +1,27 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
|
||||
package db
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/mizuchilabs/mantrae/server/internal/store/schema"
|
||||
)
|
||||
|
||||
type Agent struct {
|
||||
ID string `json:"id"`
|
||||
ProfileID int64 `json:"profileId"`
|
||||
Hostname *string `json:"hostname"`
|
||||
PublicIp *string `json:"publicIp"`
|
||||
Containers interface{} `json:"containers"`
|
||||
ActiveIp *string `json:"activeIp"`
|
||||
Token string `json:"token"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
PrivateIp *string `json:"privateIp"`
|
||||
ID string `json:"id"`
|
||||
ProfileID int64 `json:"profileId"`
|
||||
Hostname *string `json:"hostname"`
|
||||
PublicIp *string `json:"publicIp"`
|
||||
Containers json.RawMessage `json:"containers"`
|
||||
ActiveIp *string `json:"activeIp"`
|
||||
Token string `json:"token"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
PrivateIp *string `json:"privateIp"`
|
||||
}
|
||||
|
||||
type AuditLog struct {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: profiles.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
|
||||
package db
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: settings.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: tcp_middlewares.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: tcp_router_dns_provider.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: tcp_routers.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: tcp_servers_transport.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: tcp_services.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: traefik_instances.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: udp_routers.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: udp_services.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
// sqlc v1.30.0
|
||||
// source: users.sql
|
||||
|
||||
package db
|
||||
|
||||
@@ -23,8 +23,8 @@ vars:
|
||||
|
||||
tasks:
|
||||
dev:
|
||||
desc: Run Go backend and Vite frontend concurrently
|
||||
deps: [backend, frontend]
|
||||
desc: Run Go backend and Vite web concurrently
|
||||
deps: [backend, web]
|
||||
|
||||
backend:
|
||||
desc: Run Go backend
|
||||
@@ -32,8 +32,8 @@ tasks:
|
||||
- go run server/cmd/main.go
|
||||
silent: false
|
||||
|
||||
frontend:
|
||||
desc: Run Vite frontend
|
||||
web:
|
||||
desc: Run frontend
|
||||
cmds:
|
||||
- pnpm run dev
|
||||
dir: web
|
||||
@@ -52,12 +52,13 @@ tasks:
|
||||
dir: docs
|
||||
silent: false
|
||||
|
||||
test:
|
||||
desc: Run Go tests
|
||||
# Lint / static checks
|
||||
lint:
|
||||
desc: Run go vet & lint
|
||||
cmds:
|
||||
- go mod tidy
|
||||
- go fmt ./...
|
||||
- go vet ./...
|
||||
- go test ./...
|
||||
- golangci-lint run
|
||||
|
||||
# Update deps
|
||||
update:
|
||||
@@ -69,16 +70,16 @@ tasks:
|
||||
|
||||
# Generate code
|
||||
gen:
|
||||
desc: Generate sqlc and buf
|
||||
desc: Generate necessary files
|
||||
cmds:
|
||||
- buf generate --clean
|
||||
- buf generate
|
||||
- sqlc generate
|
||||
- go run -tags dev server/cmd/main.go -zod
|
||||
- go run zod.go
|
||||
|
||||
# Build binary
|
||||
build:
|
||||
desc: Build Go binary
|
||||
deps: [build:frontend]
|
||||
deps: [build:web]
|
||||
cmds:
|
||||
- go build -o bin/server -ldflags="{{.LDFLAGS}}" ./server/cmd
|
||||
- go build -o bin/agent -ldflags="{{.LDFLAGS}}" ./agent/cmd
|
||||
@@ -86,8 +87,8 @@ tasks:
|
||||
- upx -9 bin/agent
|
||||
|
||||
# 🏗 Build frontend
|
||||
build:frontend:
|
||||
desc: Build Svelte frontend
|
||||
build:web:
|
||||
desc: Build Frontend
|
||||
dir: web
|
||||
cmds:
|
||||
- pnpm install
|
||||
@@ -105,17 +106,22 @@ tasks:
|
||||
git push --delete origin "$tag"
|
||||
done
|
||||
|
||||
snapshot:
|
||||
desc: Snapshot
|
||||
cmds:
|
||||
- goreleaser --snapshot --clean --skip=validate
|
||||
|
||||
# Release
|
||||
release:
|
||||
desc: Build and release Go binary
|
||||
deps: [build:frontend]
|
||||
desc: Release
|
||||
deps: [build:web]
|
||||
cmds:
|
||||
- goreleaser release --clean --skip=validate
|
||||
|
||||
# Build container
|
||||
docker:build:
|
||||
desc: Build local test container with ko
|
||||
deps: [build:frontend]
|
||||
deps: [build:web]
|
||||
cmds:
|
||||
- KO_DOCKER_REPO=$IMAGE_SERVER_DEV ko build ./server/cmd --bare
|
||||
- KO_DOCKER_REPO=$IMAGE_AGENT_DEV ko build ./agent/cmd --bare
|
||||
|
||||
146
web/.oxlintrc.json
Normal file
146
web/.oxlintrc.json
Normal file
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": [
|
||||
"unicorn",
|
||||
"typescript",
|
||||
"oxc"
|
||||
],
|
||||
"categories": {},
|
||||
"rules": {
|
||||
"for-direction": "warn",
|
||||
"no-async-promise-executor": "warn",
|
||||
"no-caller": "warn",
|
||||
"no-class-assign": "warn",
|
||||
"no-compare-neg-zero": "warn",
|
||||
"no-cond-assign": "warn",
|
||||
"no-const-assign": "warn",
|
||||
"no-constant-binary-expression": "warn",
|
||||
"no-constant-condition": "warn",
|
||||
"no-control-regex": "warn",
|
||||
"no-debugger": "warn",
|
||||
"no-delete-var": "warn",
|
||||
"no-dupe-class-members": "warn",
|
||||
"no-dupe-else-if": "warn",
|
||||
"no-dupe-keys": "warn",
|
||||
"no-duplicate-case": "warn",
|
||||
"no-empty-character-class": "warn",
|
||||
"no-empty-pattern": "warn",
|
||||
"no-empty-static-block": "warn",
|
||||
"no-eval": "warn",
|
||||
"no-ex-assign": "warn",
|
||||
"no-extra-boolean-cast": "warn",
|
||||
"no-func-assign": "warn",
|
||||
"no-global-assign": "warn",
|
||||
"no-import-assign": "warn",
|
||||
"no-invalid-regexp": "warn",
|
||||
"no-irregular-whitespace": "warn",
|
||||
"no-loss-of-precision": "warn",
|
||||
"no-new-native-nonconstructor": "warn",
|
||||
"no-nonoctal-decimal-escape": "warn",
|
||||
"no-obj-calls": "warn",
|
||||
"no-self-assign": "warn",
|
||||
"no-setter-return": "warn",
|
||||
"no-shadow-restricted-names": "warn",
|
||||
"no-sparse-arrays": "warn",
|
||||
"no-this-before-super": "warn",
|
||||
"no-unassigned-vars": "warn",
|
||||
"no-unsafe-finally": "warn",
|
||||
"no-unsafe-negation": "warn",
|
||||
"no-unsafe-optional-chaining": "warn",
|
||||
"no-unused-expressions": "warn",
|
||||
"no-unused-labels": "warn",
|
||||
"no-unused-private-class-members": "warn",
|
||||
"no-unused-vars": "warn",
|
||||
"no-useless-backreference": "warn",
|
||||
"no-useless-catch": "warn",
|
||||
"no-useless-escape": "warn",
|
||||
"no-useless-rename": "warn",
|
||||
"no-with": "warn",
|
||||
"require-yield": "warn",
|
||||
"use-isnan": "warn",
|
||||
"valid-typeof": "warn",
|
||||
"oxc/bad-array-method-on-arguments": "warn",
|
||||
"oxc/bad-char-at-comparison": "warn",
|
||||
"oxc/bad-comparison-sequence": "warn",
|
||||
"oxc/bad-min-max-func": "warn",
|
||||
"oxc/bad-object-literal-comparison": "warn",
|
||||
"oxc/bad-replace-all-arg": "warn",
|
||||
"oxc/const-comparisons": "warn",
|
||||
"oxc/double-comparisons": "warn",
|
||||
"oxc/erasing-op": "warn",
|
||||
"oxc/missing-throw": "warn",
|
||||
"oxc/number-arg-out-of-range": "warn",
|
||||
"oxc/only-used-in-recursion": "warn",
|
||||
"oxc/uninvoked-array-callback": "warn",
|
||||
"typescript/await-thenable": "warn",
|
||||
"typescript/no-array-delete": "warn",
|
||||
"typescript/no-base-to-string": "warn",
|
||||
"typescript/no-duplicate-enum-values": "warn",
|
||||
"typescript/no-duplicate-type-constituents": "warn",
|
||||
"typescript/no-extra-non-null-assertion": "warn",
|
||||
"typescript/no-floating-promises": "warn",
|
||||
"typescript/no-for-in-array": "warn",
|
||||
"typescript/no-implied-eval": "warn",
|
||||
"typescript/no-meaningless-void-operator": "warn",
|
||||
"typescript/no-misused-new": "warn",
|
||||
"typescript/no-misused-spread": "warn",
|
||||
"typescript/no-non-null-asserted-optional-chain": "warn",
|
||||
"typescript/no-redundant-type-constituents": "warn",
|
||||
"typescript/no-this-alias": "warn",
|
||||
"typescript/no-unnecessary-parameter-property-assignment": "warn",
|
||||
"typescript/no-unsafe-declaration-merging": "warn",
|
||||
"typescript/no-unsafe-unary-minus": "warn",
|
||||
"typescript/no-useless-empty-export": "warn",
|
||||
"typescript/no-wrapper-object-types": "warn",
|
||||
"typescript/prefer-as-const": "warn",
|
||||
"typescript/require-array-sort-compare": "warn",
|
||||
"typescript/restrict-template-expressions": "warn",
|
||||
"typescript/triple-slash-reference": "warn",
|
||||
"typescript/unbound-method": "warn",
|
||||
"unicorn/no-await-in-promise-methods": "warn",
|
||||
"unicorn/no-empty-file": "warn",
|
||||
"unicorn/no-invalid-fetch-options": "warn",
|
||||
"unicorn/no-invalid-remove-event-listener": "warn",
|
||||
"unicorn/no-new-array": "warn",
|
||||
"unicorn/no-single-promise-in-promise-methods": "warn",
|
||||
"unicorn/no-thenable": "warn",
|
||||
"unicorn/no-unnecessary-await": "warn",
|
||||
"unicorn/no-useless-fallback-in-spread": "warn",
|
||||
"unicorn/no-useless-length-check": "warn",
|
||||
"unicorn/no-useless-spread": "warn",
|
||||
"unicorn/prefer-set-size": "warn",
|
||||
"unicorn/prefer-string-starts-ends-with": "warn"
|
||||
},
|
||||
"settings": {
|
||||
"jsx-a11y": {
|
||||
"polymorphicPropName": null,
|
||||
"components": {},
|
||||
"attributes": {}
|
||||
},
|
||||
"next": {
|
||||
"rootDir": []
|
||||
},
|
||||
"react": {
|
||||
"formComponents": [],
|
||||
"linkComponents": []
|
||||
},
|
||||
"jsdoc": {
|
||||
"ignorePrivate": false,
|
||||
"ignoreInternal": false,
|
||||
"ignoreReplacesDocs": true,
|
||||
"overrideReplacesDocs": true,
|
||||
"augmentsExtendsReplacesDocs": false,
|
||||
"implementsReplacesDocs": false,
|
||||
"exemptDestructuredRootsFromChecks": false,
|
||||
"tagNamePreference": {}
|
||||
},
|
||||
"vitest": {
|
||||
"typecheck": false
|
||||
}
|
||||
},
|
||||
"env": {
|
||||
"builtin": true
|
||||
},
|
||||
"globals": {},
|
||||
"ignorePatterns": []
|
||||
}
|
||||
@@ -56,7 +56,5 @@ export default defineConfig(
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
ignores: ['src/lib/gen/**/*.ts', '**/*_pb.ts']
|
||||
}
|
||||
{ ignores: ['src/lib/gen/**', '**/*_pb.ts'] }
|
||||
);
|
||||
|
||||
@@ -7,37 +7,33 @@
|
||||
"preview": "vite preview",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"lint": "prettier --check . && eslint .",
|
||||
"lint": "oxlint --fix",
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@bufbuild/protobuf": "^2.10.0",
|
||||
"@connectrpc/connect": "^2.1.0",
|
||||
"@connectrpc/connect-web": "^2.1.0",
|
||||
"@eslint/compat": "^1.4.1",
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@internationalized/date": "^3.10.0",
|
||||
"@lucide/svelte": "^0.553.0",
|
||||
"@sveltejs/adapter-static": "^3.0.10",
|
||||
"@sveltejs/kit": "^2.48.4",
|
||||
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"@types/eslint": "^9.6.1",
|
||||
"@types/node": "^24.10.0",
|
||||
"@types/node": "^24.10.1",
|
||||
"bits-ui": "2.14.2",
|
||||
"clsx": "^2.1.1",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-svelte": "^3.13.0",
|
||||
"formsnap": "^2.0.1",
|
||||
"globals": "^16.5.0",
|
||||
"mode-watcher": "^1.1.0",
|
||||
"oxlint": "^1.28.0",
|
||||
"oxlint-tsgolint": "^0.5.1",
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-svelte": "^3.4.0",
|
||||
"prettier-plugin-tailwindcss": "^0.7.1",
|
||||
"shiki": "^3.15.0",
|
||||
"svelte": "^5.43.5",
|
||||
"svelte-check": "^4.3.3",
|
||||
"svelte": "^5.43.6",
|
||||
"svelte-check": "^4.3.4",
|
||||
"svelte-highlight": "^7.9.0",
|
||||
"svelte-sonner": "^1.0.6",
|
||||
"sveltekit-superforms": "^2.28.1",
|
||||
@@ -46,7 +42,6 @@
|
||||
"tailwindcss": "^4.1.17",
|
||||
"tw-animate-css": "^1.4.0",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.46.3",
|
||||
"vite": "^7.2.2",
|
||||
"vite-plugin-compression2": "^2.3.1",
|
||||
"yaml": "^2.8.1",
|
||||
@@ -56,6 +51,5 @@
|
||||
"dependencies": {
|
||||
"@tanstack/match-sorter-utils": "^8.19.4",
|
||||
"@tanstack/table-core": "^8.21.3"
|
||||
},
|
||||
"packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912"
|
||||
}
|
||||
}
|
||||
|
||||
1691
web/pnpm-lock.yaml
generated
1691
web/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@ import { ServersTransportService } from './gen/mantrae/v1/servers_transport_pb';
|
||||
import { TraefikInstanceService } from './gen/mantrae/v1/traefik_instance_pb';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { profile } from './stores/profile';
|
||||
import { baseURL } from './stores/common';
|
||||
import { BackendURL } from './stores/common';
|
||||
|
||||
export function useClient<T extends DescService>(
|
||||
service: T,
|
||||
@@ -31,10 +31,10 @@ export function useClient<T extends DescService>(
|
||||
});
|
||||
};
|
||||
|
||||
if (!baseURL.value) throw new Error('Base URL not set');
|
||||
if (!BackendURL) throw new Error('Base URL not set');
|
||||
|
||||
const transport = createConnectTransport({
|
||||
baseUrl: baseURL.value,
|
||||
baseUrl: BackendURL,
|
||||
fetch: wrappedFetch
|
||||
});
|
||||
return createClient(service, transport);
|
||||
@@ -43,9 +43,9 @@ export function useClient<T extends DescService>(
|
||||
// Basic health check function
|
||||
export async function checkHealth(customFetch?: typeof fetch): Promise<boolean> {
|
||||
try {
|
||||
if (!baseURL.value) throw new Error('Base URL not set');
|
||||
if (!BackendURL) throw new Error('Backend URL not set');
|
||||
if (!customFetch) customFetch = fetch;
|
||||
const res = await customFetch(`${baseURL.value}/healthz`, {
|
||||
const res = await customFetch(`${BackendURL}/healthz`, {
|
||||
method: 'GET'
|
||||
});
|
||||
return res.ok;
|
||||
@@ -55,7 +55,7 @@ export async function checkHealth(customFetch?: typeof fetch): Promise<boolean>
|
||||
}
|
||||
|
||||
export function handleOIDCLogin() {
|
||||
window.location.href = `${baseURL.value}/oidc/login`;
|
||||
window.location.href = `${BackendURL}/oidc/login`;
|
||||
}
|
||||
|
||||
export async function upload(input: HTMLInputElement | null, endpoint: string) {
|
||||
@@ -64,7 +64,7 @@ export async function upload(input: HTMLInputElement | null, endpoint: string) {
|
||||
const body = new FormData();
|
||||
body.append('file', input.files[0]);
|
||||
|
||||
const response = await fetch(`${baseURL.value}/upload/${endpoint}`, {
|
||||
const response = await fetch(`${BackendURL}/upload/${endpoint}`, {
|
||||
method: 'POST',
|
||||
body,
|
||||
credentials: 'include'
|
||||
@@ -85,7 +85,7 @@ export async function getConfig(format: string) {
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await fetch(`${baseURL.value}/api/${profile.name}?token=${profile.token}`, {
|
||||
const response = await fetch(`${BackendURL}/api/${profile.name}?token=${profile.token}`, {
|
||||
headers
|
||||
});
|
||||
if (!response.ok) return '';
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
EthernetPort,
|
||||
Gauge,
|
||||
Layers2,
|
||||
Truck
|
||||
Truck,
|
||||
Cog
|
||||
} from '@lucide/svelte';
|
||||
import { profile } from '$lib/stores/profile';
|
||||
import { user } from '$lib/stores/user';
|
||||
@@ -34,6 +35,7 @@
|
||||
import { toggleMode, mode } from 'mode-watcher';
|
||||
import { goto } from '$app/navigation';
|
||||
import { profiles } from '$lib/stores/realtime';
|
||||
import { BackendURL } from '$lib/stores/common';
|
||||
|
||||
let { ...restProps }: ComponentProps<typeof Sidebar.Root> = $props();
|
||||
|
||||
@@ -61,6 +63,9 @@
|
||||
{ title: 'DNS', url: '/dns/', icon: Globe },
|
||||
{ title: 'Settings', url: '/settings/', icon: Settings }
|
||||
];
|
||||
const supportRoutes: Route[] = [
|
||||
{ title: 'API Reference', url: `${BackendURL}/openapi`, icon: Cog }
|
||||
];
|
||||
|
||||
let modalProfile = $state({} as Profile);
|
||||
let modalProfileOpen = $state(false);
|
||||
@@ -190,6 +195,27 @@
|
||||
</Sidebar.Group>
|
||||
</Sidebar.Content>
|
||||
|
||||
<!-- Bottom buttons -->
|
||||
<Sidebar.Group class="mt-auto">
|
||||
<Sidebar.GroupContent>
|
||||
<Sidebar.GroupLabel>Support</Sidebar.GroupLabel>
|
||||
<Sidebar.Menu>
|
||||
{#each supportRoutes as r (r.title)}
|
||||
<Sidebar.MenuItem>
|
||||
<Sidebar.MenuButton>
|
||||
{#snippet child({ props })}
|
||||
<a href={r.url} {...props}>
|
||||
<r.icon />
|
||||
<span>{r.title}</span>
|
||||
</a>
|
||||
{/snippet}
|
||||
</Sidebar.MenuButton>
|
||||
</Sidebar.MenuItem>
|
||||
{/each}
|
||||
</Sidebar.Menu>
|
||||
</Sidebar.GroupContent>
|
||||
</Sidebar.Group>
|
||||
|
||||
<!-- User Profile -->
|
||||
<Sidebar.Footer>
|
||||
<Sidebar.Menu>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,434 +1,421 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/agent.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/agent.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_agent: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChZtYW50cmFlL3YxL2FnZW50LnByb3RvEgptYW50cmFlLnYxIo0CCgVBZ2VudBIKCgJpZBgBIAEoCRISCgpwcm9maWxlX2lkGAIgASgDEhAKCGhvc3RuYW1lGAMgASgJEhEKCXB1YmxpY19pcBgEIAEoCRISCgpwcml2YXRl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lLnYxLlVwZGF0ZUFnZW50UmVxdWVzdBofLm1hbnRyYWUudjEuVXBkYXRlQWdlbnRSZXNwb25zZRJOCgtEZWxldGVBZ2VudBIeLm1hbnRyYWUudjEuRGVsZXRlQWdlbnRSZXF1ZXN0Gh8ubWFudHJhZS52MS5EZWxldGVBZ2VudFJlc3BvbnNlElAKCkxpc3RBZ2VudHMSHS5tYW50cmFlLnYxLkxpc3RBZ2VudHNSZXF1ZXN0Gh4ubWFudHJhZS52MS5MaXN0QWdlbnRzUmVzcG9uc2UiA5ACARJOCgtIZWFsdGhDaGVjaxIeLm1hbnRyYWUudjEuSGVhbHRoQ2hlY2tSZXF1ZXN0Gh8ubWFudHJhZS52MS5IZWFsdGhDaGVja1Jlc3BvbnNlQqQBCg5jb20ubWFudHJhZS52MUIKQWdlbnRQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_agent: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChZtYW50cmFlL3YxL2FnZW50LnByb3RvEgptYW50cmFlLnYxIo0CCgVBZ2VudBIKCgJpZBgBIAEoCRISCgpwcm9maWxlX2lkGAIgASgDEhAKCGhvc3RuYW1lGAMgASgJEhEKCXB1YmxpY19pcBgEIAEoCRISCgpwcml2YXRlX2lwGAUgASgJEhEKCWFjdGl2ZV9pcBgGIAEoCRINCgV0b2tlbhgHIAEoCRIpCgpjb250YWluZXJzGAggAygLMhUubWFudHJhZS52MS5Db250YWluZXISLgoKY3JlYXRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYX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xpc3RBZ2VudHMSHS5tYW50cmFlLnYxLkxpc3RBZ2VudHNSZXF1ZXN0Gh4ubWFudHJhZS52MS5MaXN0QWdlbnRzUmVzcG9uc2UiA5ACARJOCgtIZWFsdGhDaGVjaxIeLm1hbnRyYWUudjEuSGVhbHRoQ2hlY2tSZXF1ZXN0Gh8ubWFudHJhZS52MS5IZWFsdGhDaGVja1Jlc3BvbnNlQqQBCg5jb20ubWFudHJhZS52MUIKQWdlbnRQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Agent
|
||||
*/
|
||||
export type Agent = Message<'mantrae.v1.Agent'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type Agent = Message<"mantrae.v1.Agent"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string hostname = 3;
|
||||
*/
|
||||
hostname: string;
|
||||
/**
|
||||
* @generated from field: string hostname = 3;
|
||||
*/
|
||||
hostname: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string public_ip = 4;
|
||||
*/
|
||||
publicIp: string;
|
||||
/**
|
||||
* @generated from field: string public_ip = 4;
|
||||
*/
|
||||
publicIp: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string private_ip = 5;
|
||||
*/
|
||||
privateIp: string;
|
||||
/**
|
||||
* @generated from field: string private_ip = 5;
|
||||
*/
|
||||
privateIp: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string active_ip = 6;
|
||||
*/
|
||||
activeIp: string;
|
||||
/**
|
||||
* @generated from field: string active_ip = 6;
|
||||
*/
|
||||
activeIp: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string token = 7;
|
||||
*/
|
||||
token: string;
|
||||
/**
|
||||
* @generated from field: string token = 7;
|
||||
*/
|
||||
token: string;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Container containers = 8;
|
||||
*/
|
||||
containers: Container[];
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Container containers = 8;
|
||||
*/
|
||||
containers: Container[];
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Agent.
|
||||
* Use `create(AgentSchema)` to create a new message.
|
||||
*/
|
||||
export const AgentSchema: GenMessage<Agent> = /*@__PURE__*/ messageDesc(file_mantrae_v1_agent, 0);
|
||||
export const AgentSchema: GenMessage<Agent> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Container
|
||||
*/
|
||||
export type Container = Message<'mantrae.v1.Container'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type Container = Message<"mantrae.v1.Container"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: map<string, string> labels = 3;
|
||||
*/
|
||||
labels: { [key: string]: string };
|
||||
/**
|
||||
* @generated from field: map<string, string> labels = 3;
|
||||
*/
|
||||
labels: { [key: string]: string };
|
||||
|
||||
/**
|
||||
* @generated from field: string image = 4;
|
||||
*/
|
||||
image: string;
|
||||
/**
|
||||
* @generated from field: string image = 4;
|
||||
*/
|
||||
image: string;
|
||||
|
||||
/**
|
||||
* @generated from field: map<int32, int32> portmap = 5;
|
||||
*/
|
||||
portmap: { [key: number]: number };
|
||||
/**
|
||||
* @generated from field: map<int32, int32> portmap = 5;
|
||||
*/
|
||||
portmap: { [key: number]: number };
|
||||
|
||||
/**
|
||||
* @generated from field: string status = 6;
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* @generated from field: string status = 6;
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created = 7;
|
||||
*/
|
||||
created?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created = 7;
|
||||
*/
|
||||
created?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Container.
|
||||
* Use `create(ContainerSchema)` to create a new message.
|
||||
*/
|
||||
export const ContainerSchema: GenMessage<Container> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 1);
|
||||
export const ContainerSchema: GenMessage<Container> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetAgentRequest
|
||||
*/
|
||||
export type GetAgentRequest = Message<'mantrae.v1.GetAgentRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type GetAgentRequest = Message<"mantrae.v1.GetAgentRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetAgentRequest.
|
||||
* Use `create(GetAgentRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetAgentRequestSchema: GenMessage<GetAgentRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 2);
|
||||
export const GetAgentRequestSchema: GenMessage<GetAgentRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetAgentResponse
|
||||
*/
|
||||
export type GetAgentResponse = Message<'mantrae.v1.GetAgentResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
export type GetAgentResponse = Message<"mantrae.v1.GetAgentResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetAgentResponse.
|
||||
* Use `create(GetAgentResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetAgentResponseSchema: GenMessage<GetAgentResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 3);
|
||||
export const GetAgentResponseSchema: GenMessage<GetAgentResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateAgentRequest
|
||||
*/
|
||||
export type CreateAgentRequest = Message<'mantrae.v1.CreateAgentRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type CreateAgentRequest = Message<"mantrae.v1.CreateAgentRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateAgentRequest.
|
||||
* Use `create(CreateAgentRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateAgentRequestSchema: GenMessage<CreateAgentRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 4);
|
||||
export const CreateAgentRequestSchema: GenMessage<CreateAgentRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateAgentResponse
|
||||
*/
|
||||
export type CreateAgentResponse = Message<'mantrae.v1.CreateAgentResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
export type CreateAgentResponse = Message<"mantrae.v1.CreateAgentResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateAgentResponse.
|
||||
* Use `create(CreateAgentResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateAgentResponseSchema: GenMessage<CreateAgentResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 5);
|
||||
export const CreateAgentResponseSchema: GenMessage<CreateAgentResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateAgentRequest
|
||||
*/
|
||||
export type UpdateAgentRequest = Message<'mantrae.v1.UpdateAgentRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateAgentRequest = Message<"mantrae.v1.UpdateAgentRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string ip = 2;
|
||||
*/
|
||||
ip?: string;
|
||||
/**
|
||||
* @generated from field: optional string ip = 2;
|
||||
*/
|
||||
ip?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional bool rotate_token = 3;
|
||||
*/
|
||||
rotateToken?: boolean;
|
||||
/**
|
||||
* @generated from field: optional bool rotate_token = 3;
|
||||
*/
|
||||
rotateToken?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateAgentRequest.
|
||||
* Use `create(UpdateAgentRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateAgentRequestSchema: GenMessage<UpdateAgentRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 6);
|
||||
export const UpdateAgentRequestSchema: GenMessage<UpdateAgentRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateAgentResponse
|
||||
*/
|
||||
export type UpdateAgentResponse = Message<'mantrae.v1.UpdateAgentResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
export type UpdateAgentResponse = Message<"mantrae.v1.UpdateAgentResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateAgentResponse.
|
||||
* Use `create(UpdateAgentResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateAgentResponseSchema: GenMessage<UpdateAgentResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 7);
|
||||
export const UpdateAgentResponseSchema: GenMessage<UpdateAgentResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteAgentRequest
|
||||
*/
|
||||
export type DeleteAgentRequest = Message<'mantrae.v1.DeleteAgentRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteAgentRequest = Message<"mantrae.v1.DeleteAgentRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteAgentRequest.
|
||||
* Use `create(DeleteAgentRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteAgentRequestSchema: GenMessage<DeleteAgentRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 8);
|
||||
export const DeleteAgentRequestSchema: GenMessage<DeleteAgentRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteAgentResponse
|
||||
*/
|
||||
export type DeleteAgentResponse = Message<'mantrae.v1.DeleteAgentResponse'> & {};
|
||||
export type DeleteAgentResponse = Message<"mantrae.v1.DeleteAgentResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteAgentResponse.
|
||||
* Use `create(DeleteAgentResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteAgentResponseSchema: GenMessage<DeleteAgentResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 9);
|
||||
export const DeleteAgentResponseSchema: GenMessage<DeleteAgentResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListAgentsRequest
|
||||
*/
|
||||
export type ListAgentsRequest = Message<'mantrae.v1.ListAgentsRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type ListAgentsRequest = Message<"mantrae.v1.ListAgentsRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 2;
|
||||
*/
|
||||
limit?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 2;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 3;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 3;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListAgentsRequest.
|
||||
* Use `create(ListAgentsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListAgentsRequestSchema: GenMessage<ListAgentsRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 10);
|
||||
export const ListAgentsRequestSchema: GenMessage<ListAgentsRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 10);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListAgentsResponse
|
||||
*/
|
||||
export type ListAgentsResponse = Message<'mantrae.v1.ListAgentsResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Agent agents = 1;
|
||||
*/
|
||||
agents: Agent[];
|
||||
export type ListAgentsResponse = Message<"mantrae.v1.ListAgentsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Agent agents = 1;
|
||||
*/
|
||||
agents: Agent[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListAgentsResponse.
|
||||
* Use `create(ListAgentsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListAgentsResponseSchema: GenMessage<ListAgentsResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 11);
|
||||
export const ListAgentsResponseSchema: GenMessage<ListAgentsResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 11);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.HealthCheckRequest
|
||||
*/
|
||||
export type HealthCheckRequest = Message<'mantrae.v1.HealthCheckRequest'> & {
|
||||
/**
|
||||
* @generated from field: string hostname = 1;
|
||||
*/
|
||||
hostname: string;
|
||||
export type HealthCheckRequest = Message<"mantrae.v1.HealthCheckRequest"> & {
|
||||
/**
|
||||
* @generated from field: string hostname = 1;
|
||||
*/
|
||||
hostname: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string public_ip = 2;
|
||||
*/
|
||||
publicIp: string;
|
||||
/**
|
||||
* @generated from field: string public_ip = 2;
|
||||
*/
|
||||
publicIp: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string private_ip = 3;
|
||||
*/
|
||||
privateIp: string;
|
||||
/**
|
||||
* @generated from field: string private_ip = 3;
|
||||
*/
|
||||
privateIp: string;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Container containers = 4;
|
||||
*/
|
||||
containers: Container[];
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Container containers = 4;
|
||||
*/
|
||||
containers: Container[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.HealthCheckRequest.
|
||||
* Use `create(HealthCheckRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const HealthCheckRequestSchema: GenMessage<HealthCheckRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 12);
|
||||
export const HealthCheckRequestSchema: GenMessage<HealthCheckRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 12);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.HealthCheckResponse
|
||||
*/
|
||||
export type HealthCheckResponse = Message<'mantrae.v1.HealthCheckResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
export type HealthCheckResponse = Message<"mantrae.v1.HealthCheckResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 1;
|
||||
*/
|
||||
agent?: Agent;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.HealthCheckResponse.
|
||||
* Use `create(HealthCheckResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const HealthCheckResponseSchema: GenMessage<HealthCheckResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 13);
|
||||
export const HealthCheckResponseSchema: GenMessage<HealthCheckResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_agent, 13);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.AgentService
|
||||
*/
|
||||
export const AgentService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.GetAgent
|
||||
*/
|
||||
getAgent: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetAgentRequestSchema;
|
||||
output: typeof GetAgentResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.CreateAgent
|
||||
*/
|
||||
createAgent: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateAgentRequestSchema;
|
||||
output: typeof CreateAgentResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.UpdateAgent
|
||||
*/
|
||||
updateAgent: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateAgentRequestSchema;
|
||||
output: typeof UpdateAgentResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.DeleteAgent
|
||||
*/
|
||||
deleteAgent: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteAgentRequestSchema;
|
||||
output: typeof DeleteAgentResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.ListAgents
|
||||
*/
|
||||
listAgents: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListAgentsRequestSchema;
|
||||
output: typeof ListAgentsResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.HealthCheck
|
||||
*/
|
||||
healthCheck: {
|
||||
methodKind: 'unary';
|
||||
input: typeof HealthCheckRequestSchema;
|
||||
output: typeof HealthCheckResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_agent, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.GetAgent
|
||||
*/
|
||||
getAgent: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetAgentRequestSchema;
|
||||
output: typeof GetAgentResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.CreateAgent
|
||||
*/
|
||||
createAgent: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateAgentRequestSchema;
|
||||
output: typeof CreateAgentResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.UpdateAgent
|
||||
*/
|
||||
updateAgent: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateAgentRequestSchema;
|
||||
output: typeof UpdateAgentResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.DeleteAgent
|
||||
*/
|
||||
deleteAgent: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteAgentRequestSchema;
|
||||
output: typeof DeleteAgentResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.ListAgents
|
||||
*/
|
||||
listAgents: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListAgentsRequestSchema;
|
||||
output: typeof ListAgentsResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AgentService.HealthCheck
|
||||
*/
|
||||
healthCheck: {
|
||||
methodKind: "unary";
|
||||
input: typeof HealthCheckRequestSchema;
|
||||
output: typeof HealthCheckResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_agent, 0);
|
||||
|
||||
|
||||
@@ -1,143 +1,138 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/auditlog.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/auditlog.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_auditlog: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChltYW50cmFlL3YxL2F1ZGl0bG9nLnByb3RvEgptYW50cmFlLnYxItoBCghBdWRpdExvZxIKCgJpZBgBIAEoAxISCgpwcm9maWxlX2lkGAIgASgDEhQKDHByb2ZpbGVfbmFtZRgDIAEoCRIPCgd1c2VyX2lkGAQgASgJEhEKCXVzZXJfbmFtZRgFIAEoCRIQCghhZ2VudF9pZBgGIAEoCRISCgphZ2VudF9uYW1lGAcgASgJEg0KBWV2ZW50GAggASgJEg8KB2RldGFpbHMYCSABKAkSLgoKY3JlYXRlZF9hdBgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAitQEKFExpc3RBdWRpdExvZ3NSZXF1ZXN0EmoKBWxpbWl0GAEgASgDQla6SFO6AVAKC2xpbWl0LnZhbGlkEilsaW1pdCBtdXN0IGJlIGVpdGhlciAtMSBvciBncmVhdGVyIHRoYW4gMBoWdGhpcyA9PSAtMSB8fCB0aGlzID4gMEgAiAEBEhwKBm9mZnNldBgCIAEoA0IHukgEIgIoAEgBiAEBQggKBl9saW1pdEIJCgdfb2Zmc2V0IlYKFUxpc3RBdWRpdExvZ3NSZXNwb25zZRIoCgphdWRpdF9sb2dzGAEgAygLMhQubWFudHJhZS52MS5BdWRpdExvZxITCgt0b3RhbF9jb3VudBgCIAEoAzJsCg9BdWRpdExvZ1NlcnZpY2USWQoNTGlzdEF1ZGl0TG9ncxIgLm1hbnRyYWUudjEuTGlzdEF1ZGl0TG9nc1JlcXVlc3QaIS5tYW50cmFlLnYxLkxpc3RBdWRpdExvZ3NSZXNwb25zZSIDkAIBQqcBCg5jb20ubWFudHJhZS52MUINQXVkaXRsb2dQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_auditlog: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChltYW50cmFlL3YxL2F1ZGl0bG9nLnByb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_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.AuditLog
|
||||
*/
|
||||
export type AuditLog = Message<'mantrae.v1.AuditLog'> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
export type AuditLog = Message<"mantrae.v1.AuditLog"> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string profile_name = 3;
|
||||
*/
|
||||
profileName: string;
|
||||
/**
|
||||
* @generated from field: string profile_name = 3;
|
||||
*/
|
||||
profileName: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string user_id = 4;
|
||||
*/
|
||||
userId: string;
|
||||
/**
|
||||
* @generated from field: string user_id = 4;
|
||||
*/
|
||||
userId: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string user_name = 5;
|
||||
*/
|
||||
userName: string;
|
||||
/**
|
||||
* @generated from field: string user_name = 5;
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string agent_id = 6;
|
||||
*/
|
||||
agentId: string;
|
||||
/**
|
||||
* @generated from field: string agent_id = 6;
|
||||
*/
|
||||
agentId: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string agent_name = 7;
|
||||
*/
|
||||
agentName: string;
|
||||
/**
|
||||
* @generated from field: string agent_name = 7;
|
||||
*/
|
||||
agentName: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string event = 8;
|
||||
*/
|
||||
event: string;
|
||||
/**
|
||||
* @generated from field: string event = 8;
|
||||
*/
|
||||
event: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string details = 9;
|
||||
*/
|
||||
details: string;
|
||||
/**
|
||||
* @generated from field: string details = 9;
|
||||
*/
|
||||
details: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 10;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 10;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.AuditLog.
|
||||
* Use `create(AuditLogSchema)` to create a new message.
|
||||
*/
|
||||
export const AuditLogSchema: GenMessage<AuditLog> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_auditlog, 0);
|
||||
export const AuditLogSchema: GenMessage<AuditLog> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_auditlog, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListAuditLogsRequest
|
||||
*/
|
||||
export type ListAuditLogsRequest = Message<'mantrae.v1.ListAuditLogsRequest'> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
export type ListAuditLogsRequest = Message<"mantrae.v1.ListAuditLogsRequest"> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListAuditLogsRequest.
|
||||
* Use `create(ListAuditLogsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListAuditLogsRequestSchema: GenMessage<ListAuditLogsRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_auditlog, 1);
|
||||
export const ListAuditLogsRequestSchema: GenMessage<ListAuditLogsRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_auditlog, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListAuditLogsResponse
|
||||
*/
|
||||
export type ListAuditLogsResponse = Message<'mantrae.v1.ListAuditLogsResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.AuditLog audit_logs = 1;
|
||||
*/
|
||||
auditLogs: AuditLog[];
|
||||
export type ListAuditLogsResponse = Message<"mantrae.v1.ListAuditLogsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.AuditLog audit_logs = 1;
|
||||
*/
|
||||
auditLogs: AuditLog[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListAuditLogsResponse.
|
||||
* Use `create(ListAuditLogsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListAuditLogsResponseSchema: GenMessage<ListAuditLogsResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_auditlog, 2);
|
||||
export const ListAuditLogsResponseSchema: GenMessage<ListAuditLogsResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_auditlog, 2);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.AuditLogService
|
||||
*/
|
||||
export const AuditLogService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AuditLogService.ListAuditLogs
|
||||
*/
|
||||
listAuditLogs: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListAuditLogsRequestSchema;
|
||||
output: typeof ListAuditLogsResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_auditlog, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.AuditLogService.ListAuditLogs
|
||||
*/
|
||||
listAuditLogs: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListAuditLogsRequestSchema;
|
||||
output: typeof ListAuditLogsResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_auditlog, 0);
|
||||
|
||||
|
||||
@@ -1,252 +1,244 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/backup.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/backup.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_backup: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChdtYW50cmFlL3YxL2JhY2t1cC5wcm90bxIKbWFudHJhZS52MSJUCgZCYWNrdXASDAoEbmFtZRgBIAEoCRIMCgRzaXplGAIgASgDEi4KCmNyZWF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIhUKE0NyZWF0ZUJhY2t1cFJlcXVlc3QiFgoUQ3JlYXRlQmFja3VwUmVzcG9uc2UiLQ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FudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_backup: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChdtYW50cmFlL3YxL2JhY2t1cC5wcm90bxIKbWFudHJhZS52MSJUCgZCYWNrdXASDAoEbmFtZRgBIAEoCRIMCgRzaXplGAIgASgDEi4KCmNyZWF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIhUKE0NyZWF0ZUJhY2t1cFJlcXVlc3QiFgoUQ3JlYXRlQmFja3VwUmVzcG9uc2UiLQoUUmVzdG9yZUJhY2t1cFJlcXVlc3QSFQoEbmFtZRgBIAEoCUIHukgEcgIQASIXChVSZXN0b3JlQmFja3VwUmVzcG9uc2UiFAoSTGlzdEJhY2t1cHNSZXF1ZXN0IjoKE0xpc3RCYWNrdXBzUmVzcG9uc2USIwoHYmFja3VwcxgBIAMoCzISLm1hbnRyYWUudjEuQmFja3VwIiwKE0RlbGV0ZUJhY2t1cFJlcXVlc3QSFQoEbmFtZRgBIAEoCUIHukgEcgIQASIWChREZWxldGVCYWNrdXBSZXNwb25zZSIlChVEb3dubG9hZEJhY2t1cFJlcXVlc3QSDAoEbmFtZRgBIAEoCSImChZEb3dubG9hZEJhY2t1cFJlc3BvbnNlEgwKBGRhdGEYASABKAwyuwMKDUJhY2t1cFNlcnZpY2USUQoMQ3JlYXRlQmFja3VwEh8ubWFudHJhZS52MS5DcmVhdGVCYWNrdXBSZXF1ZXN0GiAubWFudHJhZS52MS5DcmVhdGVCYWNrdXBSZXNwb25zZRJUCg1SZXN0b3JlQmFja3VwEiAubWFudHJhZS52MS5SZXN0b3JlQmFja3VwUmVxdWVzdBohLm1hbnRyYWUudjEuUmVzdG9yZUJhY2t1cFJlc3BvbnNlElMKC0xpc3RCYWNrdXBzEh4ubWFudHJhZS52MS5MaXN0QmFja3Vwc1JlcXVlc3QaHy5tYW50cmFlLnYxLkxpc3RCYWNrdXBzUmVzcG9uc2UiA5ACARJRCgxEZWxldGVCYWNrdXASHy5tYW50cmFlLnYxLkRlbGV0ZUJhY2t1cFJlcXVlc3QaIC5tYW50cmFlLnYxLkRlbGV0ZUJhY2t1cFJlc3BvbnNlElkKDkRvd25sb2FkQmFja3VwEiEubWFudHJhZS52MS5Eb3dubG9hZEJhY2t1cFJlcXVlc3QaIi5tYW50cmFlLnYxLkRvd25sb2FkQmFja3VwUmVzcG9uc2UwAUKlAQoOY29tLm1hbnRyYWUudjFCC0JhY2t1cFByb3RvUAFaPWdpdGh1Yi5jb20vbWl6dWNoaWxhYnMvbWFudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Backup
|
||||
*/
|
||||
export type Backup = Message<'mantrae.v1.Backup'> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
export type Backup = Message<"mantrae.v1.Backup"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 size = 2;
|
||||
*/
|
||||
size: bigint;
|
||||
/**
|
||||
* @generated from field: int64 size = 2;
|
||||
*/
|
||||
size: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Backup.
|
||||
* Use `create(BackupSchema)` to create a new message.
|
||||
*/
|
||||
export const BackupSchema: GenMessage<Backup> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 0);
|
||||
export const BackupSchema: GenMessage<Backup> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateBackupRequest
|
||||
*/
|
||||
export type CreateBackupRequest = Message<'mantrae.v1.CreateBackupRequest'> & {};
|
||||
export type CreateBackupRequest = Message<"mantrae.v1.CreateBackupRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateBackupRequest.
|
||||
* Use `create(CreateBackupRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateBackupRequestSchema: GenMessage<CreateBackupRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 1);
|
||||
export const CreateBackupRequestSchema: GenMessage<CreateBackupRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateBackupResponse
|
||||
*/
|
||||
export type CreateBackupResponse = Message<'mantrae.v1.CreateBackupResponse'> & {};
|
||||
export type CreateBackupResponse = Message<"mantrae.v1.CreateBackupResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateBackupResponse.
|
||||
* Use `create(CreateBackupResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateBackupResponseSchema: GenMessage<CreateBackupResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 2);
|
||||
export const CreateBackupResponseSchema: GenMessage<CreateBackupResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.RestoreBackupRequest
|
||||
*/
|
||||
export type RestoreBackupRequest = Message<'mantrae.v1.RestoreBackupRequest'> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
export type RestoreBackupRequest = Message<"mantrae.v1.RestoreBackupRequest"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.RestoreBackupRequest.
|
||||
* Use `create(RestoreBackupRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const RestoreBackupRequestSchema: GenMessage<RestoreBackupRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 3);
|
||||
export const RestoreBackupRequestSchema: GenMessage<RestoreBackupRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.RestoreBackupResponse
|
||||
*/
|
||||
export type RestoreBackupResponse = Message<'mantrae.v1.RestoreBackupResponse'> & {};
|
||||
export type RestoreBackupResponse = Message<"mantrae.v1.RestoreBackupResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.RestoreBackupResponse.
|
||||
* Use `create(RestoreBackupResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const RestoreBackupResponseSchema: GenMessage<RestoreBackupResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 4);
|
||||
export const RestoreBackupResponseSchema: GenMessage<RestoreBackupResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListBackupsRequest
|
||||
*/
|
||||
export type ListBackupsRequest = Message<'mantrae.v1.ListBackupsRequest'> & {};
|
||||
export type ListBackupsRequest = Message<"mantrae.v1.ListBackupsRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListBackupsRequest.
|
||||
* Use `create(ListBackupsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListBackupsRequestSchema: GenMessage<ListBackupsRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 5);
|
||||
export const ListBackupsRequestSchema: GenMessage<ListBackupsRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListBackupsResponse
|
||||
*/
|
||||
export type ListBackupsResponse = Message<'mantrae.v1.ListBackupsResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Backup backups = 1;
|
||||
*/
|
||||
backups: Backup[];
|
||||
export type ListBackupsResponse = Message<"mantrae.v1.ListBackupsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Backup backups = 1;
|
||||
*/
|
||||
backups: Backup[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListBackupsResponse.
|
||||
* Use `create(ListBackupsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListBackupsResponseSchema: GenMessage<ListBackupsResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 6);
|
||||
export const ListBackupsResponseSchema: GenMessage<ListBackupsResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteBackupRequest
|
||||
*/
|
||||
export type DeleteBackupRequest = Message<'mantrae.v1.DeleteBackupRequest'> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
export type DeleteBackupRequest = Message<"mantrae.v1.DeleteBackupRequest"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteBackupRequest.
|
||||
* Use `create(DeleteBackupRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteBackupRequestSchema: GenMessage<DeleteBackupRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 7);
|
||||
export const DeleteBackupRequestSchema: GenMessage<DeleteBackupRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteBackupResponse
|
||||
*/
|
||||
export type DeleteBackupResponse = Message<'mantrae.v1.DeleteBackupResponse'> & {};
|
||||
export type DeleteBackupResponse = Message<"mantrae.v1.DeleteBackupResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteBackupResponse.
|
||||
* Use `create(DeleteBackupResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteBackupResponseSchema: GenMessage<DeleteBackupResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 8);
|
||||
export const DeleteBackupResponseSchema: GenMessage<DeleteBackupResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DownloadBackupRequest
|
||||
*/
|
||||
export type DownloadBackupRequest = Message<'mantrae.v1.DownloadBackupRequest'> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
export type DownloadBackupRequest = Message<"mantrae.v1.DownloadBackupRequest"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DownloadBackupRequest.
|
||||
* Use `create(DownloadBackupRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DownloadBackupRequestSchema: GenMessage<DownloadBackupRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 9);
|
||||
export const DownloadBackupRequestSchema: GenMessage<DownloadBackupRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DownloadBackupResponse
|
||||
*/
|
||||
export type DownloadBackupResponse = Message<'mantrae.v1.DownloadBackupResponse'> & {
|
||||
/**
|
||||
* @generated from field: bytes data = 1;
|
||||
*/
|
||||
data: Uint8Array;
|
||||
export type DownloadBackupResponse = Message<"mantrae.v1.DownloadBackupResponse"> & {
|
||||
/**
|
||||
* @generated from field: bytes data = 1;
|
||||
*/
|
||||
data: Uint8Array;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DownloadBackupResponse.
|
||||
* Use `create(DownloadBackupResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DownloadBackupResponseSchema: GenMessage<DownloadBackupResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 10);
|
||||
export const DownloadBackupResponseSchema: GenMessage<DownloadBackupResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_backup, 10);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.BackupService
|
||||
*/
|
||||
export const BackupService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.CreateBackup
|
||||
*/
|
||||
createBackup: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateBackupRequestSchema;
|
||||
output: typeof CreateBackupResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.RestoreBackup
|
||||
*/
|
||||
restoreBackup: {
|
||||
methodKind: 'unary';
|
||||
input: typeof RestoreBackupRequestSchema;
|
||||
output: typeof RestoreBackupResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.ListBackups
|
||||
*/
|
||||
listBackups: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListBackupsRequestSchema;
|
||||
output: typeof ListBackupsResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.DeleteBackup
|
||||
*/
|
||||
deleteBackup: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteBackupRequestSchema;
|
||||
output: typeof DeleteBackupResponseSchema;
|
||||
};
|
||||
/**
|
||||
* See: https://github.com/connectrpc/connect-es/issues/669
|
||||
* rpc UploadBackup(stream UploadBackupRequest) returns (UploadBackupResponse); // stream doesn't work with connect-es
|
||||
*
|
||||
* @generated from rpc mantrae.v1.BackupService.DownloadBackup
|
||||
*/
|
||||
downloadBackup: {
|
||||
methodKind: 'server_streaming';
|
||||
input: typeof DownloadBackupRequestSchema;
|
||||
output: typeof DownloadBackupResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_backup, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.CreateBackup
|
||||
*/
|
||||
createBackup: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateBackupRequestSchema;
|
||||
output: typeof CreateBackupResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.RestoreBackup
|
||||
*/
|
||||
restoreBackup: {
|
||||
methodKind: "unary";
|
||||
input: typeof RestoreBackupRequestSchema;
|
||||
output: typeof RestoreBackupResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.ListBackups
|
||||
*/
|
||||
listBackups: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListBackupsRequestSchema;
|
||||
output: typeof ListBackupsResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.BackupService.DeleteBackup
|
||||
*/
|
||||
deleteBackup: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteBackupRequestSchema;
|
||||
output: typeof DeleteBackupResponseSchema;
|
||||
},
|
||||
/**
|
||||
* See: https://github.com/connectrpc/connect-es/issues/669
|
||||
* rpc UploadBackup(stream UploadBackupRequest) returns (UploadBackupResponse); // stream doesn't work with connect-es
|
||||
*
|
||||
* @generated from rpc mantrae.v1.BackupService.DownloadBackup
|
||||
*/
|
||||
downloadBackup: {
|
||||
methodKind: "server_streaming";
|
||||
input: typeof DownloadBackupRequestSchema;
|
||||
output: typeof DownloadBackupResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_backup, 0);
|
||||
|
||||
|
||||
@@ -1,409 +1,395 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/dns_provider.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenEnum, GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { enumDesc, fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/dns_provider.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_dns_provider: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'Ch1tYW50cmFlL3YxL2Ruc19wcm92aWRlci5wcm90bxIKbWFudHJhZS52MSL1AQoLRG5zUHJvdmlkZ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C5tYW50cmFlLnYxLkNyZWF0ZURuc1Byb3ZpZGVyUmVxdWVzdBolLm1hbnRyYWUudjEuQ3JlYXRlRG5zUHJvdmlkZXJSZXNwb25zZRJgChFVcGRhdGVEbnNQcm92aWRlchIkLm1hbnRyYWUudjEuVXBkYXRlRG5zUHJvdmlkZXJSZXF1ZXN0GiUubWFudHJhZS52MS5VcGRhdGVEbnNQcm92aWRlclJlc3BvbnNlEmAKEURlbGV0ZURuc1Byb3ZpZGVyEiQubWFudHJhZS52MS5EZWxldGVEbnNQcm92aWRlclJlcXVlc3QaJS5tYW50cmFlLnYxLkRlbGV0ZURuc1Byb3ZpZGVyUmVzcG9uc2USYgoQTGlzdERuc1Byb3ZpZGVycxIjLm1hbnRyYWUudjEuTGlzdERuc1Byb3ZpZGVyc1JlcXVlc3QaJC5tYW50cmFlLnYxLkxpc3REbnNQcm92aWRlcnNSZXNwb25zZSIDkAIBQqoBCg5jb20ubWFudHJhZS52MUIQRG5zUHJvdmlkZXJQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_dns_provider: GenFile = /*@__PURE__*/
|
||||
fileDesc("Ch1tYW50cmFlL3YxL2Ruc19wcm92aWRlci5wcm90bxIKbWFudHJhZS52MSL1AQoLRG5zUHJvdmlkZXISCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIpCgR0eXBlGAMgASgOMhsubWFudHJhZS52MS5EbnNQcm92aWRlclR5cGUSLQoGY29uZmlnGAQgASgLMh0ubWFudHJhZS52MS5EbnNQcm92aWRlckNvbmZpZxISCgppc19kZWZhdWx0GAUgASgIE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ZXF1ZXN0GiUubWFudHJhZS52MS5VcGRhdGVEbnNQcm92aWRlclJlc3BvbnNlEmAKEURlbGV0ZURuc1Byb3ZpZGVyEiQubWFudHJhZS52MS5EZWxldGVEbnNQcm92aWRlclJlcXVlc3QaJS5tYW50cmFlLnYxLkRlbGV0ZURuc1Byb3ZpZGVyUmVzcG9uc2USYgoQTGlzdERuc1Byb3ZpZGVycxIjLm1hbnRyYWUudjEuTGlzdERuc1Byb3ZpZGVyc1JlcXVlc3QaJC5tYW50cmFlLnYxLkxpc3REbnNQcm92aWRlcnNSZXNwb25zZSIDkAIBQqoBCg5jb20ubWFudHJhZS52MUIQRG5zUHJvdmlkZXJQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DnsProvider
|
||||
*/
|
||||
export type DnsProvider = Message<'mantrae.v1.DnsProvider'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DnsProvider = Message<"mantrae.v1.DnsProvider"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderType type = 3;
|
||||
*/
|
||||
type: DnsProviderType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderType type = 3;
|
||||
*/
|
||||
type: DnsProviderType;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderConfig config = 4;
|
||||
*/
|
||||
config?: DnsProviderConfig;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderConfig config = 4;
|
||||
*/
|
||||
config?: DnsProviderConfig;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DnsProvider.
|
||||
* Use `create(DnsProviderSchema)` to create a new message.
|
||||
*/
|
||||
export const DnsProviderSchema: GenMessage<DnsProvider> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 0);
|
||||
export const DnsProviderSchema: GenMessage<DnsProvider> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DnsProviderConfig
|
||||
*/
|
||||
export type DnsProviderConfig = Message<'mantrae.v1.DnsProviderConfig'> & {
|
||||
/**
|
||||
* @generated from field: string api_key = 8;
|
||||
*/
|
||||
apiKey: string;
|
||||
export type DnsProviderConfig = Message<"mantrae.v1.DnsProviderConfig"> & {
|
||||
/**
|
||||
* @generated from field: string api_key = 8;
|
||||
*/
|
||||
apiKey: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string api_url = 9;
|
||||
*/
|
||||
apiUrl: string;
|
||||
/**
|
||||
* @generated from field: string api_url = 9;
|
||||
*/
|
||||
apiUrl: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string ip = 10;
|
||||
*/
|
||||
ip: string;
|
||||
/**
|
||||
* @generated from field: string ip = 10;
|
||||
*/
|
||||
ip: string;
|
||||
|
||||
/**
|
||||
* @generated from field: bool proxied = 11;
|
||||
*/
|
||||
proxied: boolean;
|
||||
/**
|
||||
* @generated from field: bool proxied = 11;
|
||||
*/
|
||||
proxied: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: bool auto_update = 12;
|
||||
*/
|
||||
autoUpdate: boolean;
|
||||
/**
|
||||
* @generated from field: bool auto_update = 12;
|
||||
*/
|
||||
autoUpdate: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: string zone_type = 13;
|
||||
*/
|
||||
zoneType: string;
|
||||
/**
|
||||
* @generated from field: string zone_type = 13;
|
||||
*/
|
||||
zoneType: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DnsProviderConfig.
|
||||
* Use `create(DnsProviderConfigSchema)` to create a new message.
|
||||
*/
|
||||
export const DnsProviderConfigSchema: GenMessage<DnsProviderConfig> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 1);
|
||||
export const DnsProviderConfigSchema: GenMessage<DnsProviderConfig> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetDnsProviderRequest
|
||||
*/
|
||||
export type GetDnsProviderRequest = Message<'mantrae.v1.GetDnsProviderRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type GetDnsProviderRequest = Message<"mantrae.v1.GetDnsProviderRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetDnsProviderRequest.
|
||||
* Use `create(GetDnsProviderRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetDnsProviderRequestSchema: GenMessage<GetDnsProviderRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 2);
|
||||
export const GetDnsProviderRequestSchema: GenMessage<GetDnsProviderRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetDnsProviderResponse
|
||||
*/
|
||||
export type GetDnsProviderResponse = Message<'mantrae.v1.GetDnsProviderResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 1;
|
||||
*/
|
||||
dnsProvider?: DnsProvider;
|
||||
export type GetDnsProviderResponse = Message<"mantrae.v1.GetDnsProviderResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 1;
|
||||
*/
|
||||
dnsProvider?: DnsProvider;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetDnsProviderResponse.
|
||||
* Use `create(GetDnsProviderResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetDnsProviderResponseSchema: GenMessage<GetDnsProviderResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 3);
|
||||
export const GetDnsProviderResponseSchema: GenMessage<GetDnsProviderResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateDnsProviderRequest
|
||||
*/
|
||||
export type CreateDnsProviderRequest = Message<'mantrae.v1.CreateDnsProviderRequest'> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
export type CreateDnsProviderRequest = Message<"mantrae.v1.CreateDnsProviderRequest"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderType type = 2;
|
||||
*/
|
||||
type: DnsProviderType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderType type = 2;
|
||||
*/
|
||||
type: DnsProviderType;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderConfig config = 3;
|
||||
*/
|
||||
config?: DnsProviderConfig;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderConfig config = 3;
|
||||
*/
|
||||
config?: DnsProviderConfig;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 4;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 4;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateDnsProviderRequest.
|
||||
* Use `create(CreateDnsProviderRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateDnsProviderRequestSchema: GenMessage<CreateDnsProviderRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 4);
|
||||
export const CreateDnsProviderRequestSchema: GenMessage<CreateDnsProviderRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateDnsProviderResponse
|
||||
*/
|
||||
export type CreateDnsProviderResponse = Message<'mantrae.v1.CreateDnsProviderResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 1;
|
||||
*/
|
||||
dnsProvider?: DnsProvider;
|
||||
export type CreateDnsProviderResponse = Message<"mantrae.v1.CreateDnsProviderResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 1;
|
||||
*/
|
||||
dnsProvider?: DnsProvider;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateDnsProviderResponse.
|
||||
* Use `create(CreateDnsProviderResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateDnsProviderResponseSchema: GenMessage<CreateDnsProviderResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 5);
|
||||
export const CreateDnsProviderResponseSchema: GenMessage<CreateDnsProviderResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateDnsProviderRequest
|
||||
*/
|
||||
export type UpdateDnsProviderRequest = Message<'mantrae.v1.UpdateDnsProviderRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateDnsProviderRequest = Message<"mantrae.v1.UpdateDnsProviderRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderType type = 3;
|
||||
*/
|
||||
type: DnsProviderType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderType type = 3;
|
||||
*/
|
||||
type: DnsProviderType;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderConfig config = 4;
|
||||
*/
|
||||
config?: DnsProviderConfig;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProviderConfig config = 4;
|
||||
*/
|
||||
config?: DnsProviderConfig;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateDnsProviderRequest.
|
||||
* Use `create(UpdateDnsProviderRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateDnsProviderRequestSchema: GenMessage<UpdateDnsProviderRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 6);
|
||||
export const UpdateDnsProviderRequestSchema: GenMessage<UpdateDnsProviderRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateDnsProviderResponse
|
||||
*/
|
||||
export type UpdateDnsProviderResponse = Message<'mantrae.v1.UpdateDnsProviderResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 1;
|
||||
*/
|
||||
dnsProvider?: DnsProvider;
|
||||
export type UpdateDnsProviderResponse = Message<"mantrae.v1.UpdateDnsProviderResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 1;
|
||||
*/
|
||||
dnsProvider?: DnsProvider;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateDnsProviderResponse.
|
||||
* Use `create(UpdateDnsProviderResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateDnsProviderResponseSchema: GenMessage<UpdateDnsProviderResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 7);
|
||||
export const UpdateDnsProviderResponseSchema: GenMessage<UpdateDnsProviderResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteDnsProviderRequest
|
||||
*/
|
||||
export type DeleteDnsProviderRequest = Message<'mantrae.v1.DeleteDnsProviderRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteDnsProviderRequest = Message<"mantrae.v1.DeleteDnsProviderRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteDnsProviderRequest.
|
||||
* Use `create(DeleteDnsProviderRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteDnsProviderRequestSchema: GenMessage<DeleteDnsProviderRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 8);
|
||||
export const DeleteDnsProviderRequestSchema: GenMessage<DeleteDnsProviderRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteDnsProviderResponse
|
||||
*/
|
||||
export type DeleteDnsProviderResponse = Message<'mantrae.v1.DeleteDnsProviderResponse'> & {};
|
||||
export type DeleteDnsProviderResponse = Message<"mantrae.v1.DeleteDnsProviderResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteDnsProviderResponse.
|
||||
* Use `create(DeleteDnsProviderResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteDnsProviderResponseSchema: GenMessage<DeleteDnsProviderResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 9);
|
||||
export const DeleteDnsProviderResponseSchema: GenMessage<DeleteDnsProviderResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListDnsProvidersRequest
|
||||
*/
|
||||
export type ListDnsProvidersRequest = Message<'mantrae.v1.ListDnsProvidersRequest'> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
export type ListDnsProvidersRequest = Message<"mantrae.v1.ListDnsProvidersRequest"> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListDnsProvidersRequest.
|
||||
* Use `create(ListDnsProvidersRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListDnsProvidersRequestSchema: GenMessage<ListDnsProvidersRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 10);
|
||||
export const ListDnsProvidersRequestSchema: GenMessage<ListDnsProvidersRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 10);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListDnsProvidersResponse
|
||||
*/
|
||||
export type ListDnsProvidersResponse = Message<'mantrae.v1.ListDnsProvidersResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.DnsProvider dns_providers = 1;
|
||||
*/
|
||||
dnsProviders: DnsProvider[];
|
||||
export type ListDnsProvidersResponse = Message<"mantrae.v1.ListDnsProvidersResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.DnsProvider dns_providers = 1;
|
||||
*/
|
||||
dnsProviders: DnsProvider[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListDnsProvidersResponse.
|
||||
* Use `create(ListDnsProvidersResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListDnsProvidersResponseSchema: GenMessage<ListDnsProvidersResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 11);
|
||||
export const ListDnsProvidersResponseSchema: GenMessage<ListDnsProvidersResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_dns_provider, 11);
|
||||
|
||||
/**
|
||||
* @generated from enum mantrae.v1.DnsProviderType
|
||||
*/
|
||||
export enum DnsProviderType {
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_CLOUDFLARE = 1;
|
||||
*/
|
||||
CLOUDFLARE = 1,
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_CLOUDFLARE = 1;
|
||||
*/
|
||||
CLOUDFLARE = 1,
|
||||
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_POWERDNS = 2;
|
||||
*/
|
||||
POWERDNS = 2,
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_POWERDNS = 2;
|
||||
*/
|
||||
POWERDNS = 2,
|
||||
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_TECHNITIUM = 3;
|
||||
*/
|
||||
TECHNITIUM = 3
|
||||
/**
|
||||
* @generated from enum value: DNS_PROVIDER_TYPE_TECHNITIUM = 3;
|
||||
*/
|
||||
TECHNITIUM = 3,
|
||||
}
|
||||
|
||||
/**
|
||||
* Describes the enum mantrae.v1.DnsProviderType.
|
||||
*/
|
||||
export const DnsProviderTypeSchema: GenEnum<DnsProviderType> =
|
||||
/*@__PURE__*/
|
||||
enumDesc(file_mantrae_v1_dns_provider, 0);
|
||||
export const DnsProviderTypeSchema: GenEnum<DnsProviderType> = /*@__PURE__*/
|
||||
enumDesc(file_mantrae_v1_dns_provider, 0);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.DnsProviderService
|
||||
*/
|
||||
export const DnsProviderService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.GetDnsProvider
|
||||
*/
|
||||
getDnsProvider: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetDnsProviderRequestSchema;
|
||||
output: typeof GetDnsProviderResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.CreateDnsProvider
|
||||
*/
|
||||
createDnsProvider: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateDnsProviderRequestSchema;
|
||||
output: typeof CreateDnsProviderResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.UpdateDnsProvider
|
||||
*/
|
||||
updateDnsProvider: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateDnsProviderRequestSchema;
|
||||
output: typeof UpdateDnsProviderResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.DeleteDnsProvider
|
||||
*/
|
||||
deleteDnsProvider: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteDnsProviderRequestSchema;
|
||||
output: typeof DeleteDnsProviderResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.ListDnsProviders
|
||||
*/
|
||||
listDnsProviders: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListDnsProvidersRequestSchema;
|
||||
output: typeof ListDnsProvidersResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_dns_provider, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.GetDnsProvider
|
||||
*/
|
||||
getDnsProvider: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetDnsProviderRequestSchema;
|
||||
output: typeof GetDnsProviderResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.CreateDnsProvider
|
||||
*/
|
||||
createDnsProvider: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateDnsProviderRequestSchema;
|
||||
output: typeof CreateDnsProviderResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.UpdateDnsProvider
|
||||
*/
|
||||
updateDnsProvider: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateDnsProviderRequestSchema;
|
||||
output: typeof UpdateDnsProviderResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.DeleteDnsProvider
|
||||
*/
|
||||
deleteDnsProvider: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteDnsProviderRequestSchema;
|
||||
output: typeof DeleteDnsProviderResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.DnsProviderService.ListDnsProviders
|
||||
*/
|
||||
listDnsProviders: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListDnsProvidersRequestSchema;
|
||||
output: typeof ListDnsProvidersResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_dns_provider, 0);
|
||||
|
||||
|
||||
@@ -1,339 +1,327 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/entry_point.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/entry_point.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_entry_point: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChxtYW50cmFlL3YxL2VudHJ5X3BvaW50LnByb3RvEgptYW50cmFlLnYxIr8BCgpFbnRyeVBvaW50EgoKAmlkGAEgASgJEhIKCnByb2ZpbGVfaWQYAiABKAMSDAoEbmFtZRgDIAEoCRIPCgdhZGRyZXNzGAQgASgJEhIKCmlzX2RlZmF1bHQYBSABKAgSLgoKY3JlYXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiKwoUR2V0RW50cnlQb2ludFJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAEiRAoVR2V0RW50cnlQb2ludFJlc3BvbnNlEisKC2VudHJ5X3BvaW50GAEgASgLMhYubWFudHJhZS52MS5FbnRyeVBvaW50IoMBChdDcmVhdGVFbnRyeVBvaW50UmVxdWVzdBIbCgpwcm9maWxlX2lkGAEgASgDQge6SAQiAiAAEhUKBG5hbWUYAiABKAlCB7pIBHICEAESEgoKaXNfZGVmYXVsdBgDIAEoCBIUCgdhZGRyZXNzGAQgASgJSACIAQFCCgoIX2FkZHJlc3MiRwoYQ3JlYXRlRW50cnlQb2ludFJlc3BvbnNlEisKC2VudHJ5X3BvaW50GAEgASgLMhYubWFudHJhZS52MS5FbnRyeVBvaW50IpgBChdVcGRhdGVFbnRyeVBvaW50UmVxdWVzdBITCgJpZBgBIAEoCUIHukgEcgIQARIbCgpwcm9maWxlX2lkGAIgASgDQge6SAQiAiAAEhUKBG5hbWUYAyABKAlC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5UG9pbnRSZXNwb25zZRJdChBEZWxldGVFbnRyeVBvaW50EiMubWFudHJhZS52MS5EZWxldGVFbnRyeVBvaW50UmVxdWVzdBokLm1hbnRyYWUudjEuRGVsZXRlRW50cnlQb2ludFJlc3BvbnNlEl8KD0xpc3RFbnRyeVBvaW50cxIiLm1hbnRyYWUudjEuTGlzdEVudHJ5UG9pbnRzUmVxdWVzdBojLm1hbnRyYWUudjEuTGlzdEVudHJ5UG9pbnRzUmVzcG9uc2UiA5ACAUKpAQoOY29tLm1hbnRyYWUudjFCD0VudHJ5UG9pbnRQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_entry_point: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChxtYW50cmFlL3YxL2VudHJ5X3BvaW50LnByb3RvEgptYW50cmFlLnYxIr8BCgpFbnRyeVBvaW50EgoKAmlkGAEgASgJEhIKCnByb2ZpbGVfaWQYAiABKAMSDAoEbmFtZRgDIAEoCRIPCgdhZGRyZXNzGAQgASgJEhIKCmlzX2RlZmF1bHQYBSABKAgSLgoKY3JlYXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiKwoUR2V0RW50cnlQb2ludFJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAEiRAoVR2V0RW50cnlQb2ludFJlc3BvbnNlEisKC2VudHJ5X3BvaW50GAEgASgLMhYubWFudHJhZS52MS5FbnRyeVBvaW50IoMBChdDcm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LsAwoRRW50cnlQb2ludFNlcnZpY2USWQoNR2V0RW50cnlQb2ludBIgLm1hbnRyYWUudjEuR2V0RW50cnlQb2ludFJlcXVlc3QaIS5tYW50cmFlLnYxLkdldEVudHJ5UG9pbnRSZXNwb25zZSIDkAIBEl0KEENyZWF0ZUVudHJ5UG9pbnQSIy5tYW50cmFlLnYxLkNyZWF0ZUVudHJ5UG9pbnRSZXF1ZXN0GiQubWFudHJhZS52MS5DcmVhdGVFbnRyeVBvaW50UmVzcG9uc2USXQoQVXBkYXRlRW50cnlQb2ludBIjLm1hbnRyYWUudjEuVXBkYXRlRW50cnlQb2ludFJlcXVlc3QaJC5tYW50cmFlLnYxLlVwZGF0ZUVudHJ5UG9pbnRSZXNwb25zZRJdChBEZWxldGVFbnRyeVBvaW50EiMubWFudHJhZS52MS5EZWxldGVFbnRyeVBvaW50UmVxdWVzdBokLm1hbnRyYWUudjEuRGVsZXRlRW50cnlQb2ludFJlc3BvbnNlEl8KD0xpc3RFbnRyeVBvaW50cxIiLm1hbnRyYWUudjEuTGlzdEVudHJ5UG9pbnRzUmVxdWVzdBojLm1hbnRyYWUudjEuTGlzdEVudHJ5UG9pbnRzUmVzcG9uc2UiA5ACAUKpAQoOY29tLm1hbnRyYWUudjFCD0VudHJ5UG9pbnRQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.EntryPoint
|
||||
*/
|
||||
export type EntryPoint = Message<'mantrae.v1.EntryPoint'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type EntryPoint = Message<"mantrae.v1.EntryPoint"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string address = 4;
|
||||
*/
|
||||
address: string;
|
||||
/**
|
||||
* @generated from field: string address = 4;
|
||||
*/
|
||||
address: string;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.EntryPoint.
|
||||
* Use `create(EntryPointSchema)` to create a new message.
|
||||
*/
|
||||
export const EntryPointSchema: GenMessage<EntryPoint> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 0);
|
||||
export const EntryPointSchema: GenMessage<EntryPoint> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetEntryPointRequest
|
||||
*/
|
||||
export type GetEntryPointRequest = Message<'mantrae.v1.GetEntryPointRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type GetEntryPointRequest = Message<"mantrae.v1.GetEntryPointRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetEntryPointRequest.
|
||||
* Use `create(GetEntryPointRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetEntryPointRequestSchema: GenMessage<GetEntryPointRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 1);
|
||||
export const GetEntryPointRequestSchema: GenMessage<GetEntryPointRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetEntryPointResponse
|
||||
*/
|
||||
export type GetEntryPointResponse = Message<'mantrae.v1.GetEntryPointResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 1;
|
||||
*/
|
||||
entryPoint?: EntryPoint;
|
||||
export type GetEntryPointResponse = Message<"mantrae.v1.GetEntryPointResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 1;
|
||||
*/
|
||||
entryPoint?: EntryPoint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetEntryPointResponse.
|
||||
* Use `create(GetEntryPointResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetEntryPointResponseSchema: GenMessage<GetEntryPointResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 2);
|
||||
export const GetEntryPointResponseSchema: GenMessage<GetEntryPointResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateEntryPointRequest
|
||||
*/
|
||||
export type CreateEntryPointRequest = Message<'mantrae.v1.CreateEntryPointRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type CreateEntryPointRequest = Message<"mantrae.v1.CreateEntryPointRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 3;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 3;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string address = 4;
|
||||
*/
|
||||
address?: string;
|
||||
/**
|
||||
* @generated from field: optional string address = 4;
|
||||
*/
|
||||
address?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateEntryPointRequest.
|
||||
* Use `create(CreateEntryPointRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateEntryPointRequestSchema: GenMessage<CreateEntryPointRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 3);
|
||||
export const CreateEntryPointRequestSchema: GenMessage<CreateEntryPointRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateEntryPointResponse
|
||||
*/
|
||||
export type CreateEntryPointResponse = Message<'mantrae.v1.CreateEntryPointResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 1;
|
||||
*/
|
||||
entryPoint?: EntryPoint;
|
||||
export type CreateEntryPointResponse = Message<"mantrae.v1.CreateEntryPointResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 1;
|
||||
*/
|
||||
entryPoint?: EntryPoint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateEntryPointResponse.
|
||||
* Use `create(CreateEntryPointResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateEntryPointResponseSchema: GenMessage<CreateEntryPointResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 4);
|
||||
export const CreateEntryPointResponseSchema: GenMessage<CreateEntryPointResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateEntryPointRequest
|
||||
*/
|
||||
export type UpdateEntryPointRequest = Message<'mantrae.v1.UpdateEntryPointRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateEntryPointRequest = Message<"mantrae.v1.UpdateEntryPointRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 4;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 4;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string address = 5;
|
||||
*/
|
||||
address?: string;
|
||||
/**
|
||||
* @generated from field: optional string address = 5;
|
||||
*/
|
||||
address?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateEntryPointRequest.
|
||||
* Use `create(UpdateEntryPointRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateEntryPointRequestSchema: GenMessage<UpdateEntryPointRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 5);
|
||||
export const UpdateEntryPointRequestSchema: GenMessage<UpdateEntryPointRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateEntryPointResponse
|
||||
*/
|
||||
export type UpdateEntryPointResponse = Message<'mantrae.v1.UpdateEntryPointResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 1;
|
||||
*/
|
||||
entryPoint?: EntryPoint;
|
||||
export type UpdateEntryPointResponse = Message<"mantrae.v1.UpdateEntryPointResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 1;
|
||||
*/
|
||||
entryPoint?: EntryPoint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateEntryPointResponse.
|
||||
* Use `create(UpdateEntryPointResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateEntryPointResponseSchema: GenMessage<UpdateEntryPointResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 6);
|
||||
export const UpdateEntryPointResponseSchema: GenMessage<UpdateEntryPointResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteEntryPointRequest
|
||||
*/
|
||||
export type DeleteEntryPointRequest = Message<'mantrae.v1.DeleteEntryPointRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteEntryPointRequest = Message<"mantrae.v1.DeleteEntryPointRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteEntryPointRequest.
|
||||
* Use `create(DeleteEntryPointRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteEntryPointRequestSchema: GenMessage<DeleteEntryPointRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 7);
|
||||
export const DeleteEntryPointRequestSchema: GenMessage<DeleteEntryPointRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteEntryPointResponse
|
||||
*/
|
||||
export type DeleteEntryPointResponse = Message<'mantrae.v1.DeleteEntryPointResponse'> & {};
|
||||
export type DeleteEntryPointResponse = Message<"mantrae.v1.DeleteEntryPointResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteEntryPointResponse.
|
||||
* Use `create(DeleteEntryPointResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteEntryPointResponseSchema: GenMessage<DeleteEntryPointResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 8);
|
||||
export const DeleteEntryPointResponseSchema: GenMessage<DeleteEntryPointResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListEntryPointsRequest
|
||||
*/
|
||||
export type ListEntryPointsRequest = Message<'mantrae.v1.ListEntryPointsRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type ListEntryPointsRequest = Message<"mantrae.v1.ListEntryPointsRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 2;
|
||||
*/
|
||||
limit?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 2;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 3;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 3;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListEntryPointsRequest.
|
||||
* Use `create(ListEntryPointsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListEntryPointsRequestSchema: GenMessage<ListEntryPointsRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 9);
|
||||
export const ListEntryPointsRequestSchema: GenMessage<ListEntryPointsRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListEntryPointsResponse
|
||||
*/
|
||||
export type ListEntryPointsResponse = Message<'mantrae.v1.ListEntryPointsResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.EntryPoint entry_points = 1;
|
||||
*/
|
||||
entryPoints: EntryPoint[];
|
||||
export type ListEntryPointsResponse = Message<"mantrae.v1.ListEntryPointsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.EntryPoint entry_points = 1;
|
||||
*/
|
||||
entryPoints: EntryPoint[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListEntryPointsResponse.
|
||||
* Use `create(ListEntryPointsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListEntryPointsResponseSchema: GenMessage<ListEntryPointsResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 10);
|
||||
export const ListEntryPointsResponseSchema: GenMessage<ListEntryPointsResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_entry_point, 10);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.EntryPointService
|
||||
*/
|
||||
export const EntryPointService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.GetEntryPoint
|
||||
*/
|
||||
getEntryPoint: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetEntryPointRequestSchema;
|
||||
output: typeof GetEntryPointResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.CreateEntryPoint
|
||||
*/
|
||||
createEntryPoint: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateEntryPointRequestSchema;
|
||||
output: typeof CreateEntryPointResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.UpdateEntryPoint
|
||||
*/
|
||||
updateEntryPoint: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateEntryPointRequestSchema;
|
||||
output: typeof UpdateEntryPointResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.DeleteEntryPoint
|
||||
*/
|
||||
deleteEntryPoint: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteEntryPointRequestSchema;
|
||||
output: typeof DeleteEntryPointResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.ListEntryPoints
|
||||
*/
|
||||
listEntryPoints: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListEntryPointsRequestSchema;
|
||||
output: typeof ListEntryPointsResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_entry_point, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.GetEntryPoint
|
||||
*/
|
||||
getEntryPoint: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetEntryPointRequestSchema;
|
||||
output: typeof GetEntryPointResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.CreateEntryPoint
|
||||
*/
|
||||
createEntryPoint: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateEntryPointRequestSchema;
|
||||
output: typeof CreateEntryPointResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.UpdateEntryPoint
|
||||
*/
|
||||
updateEntryPoint: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateEntryPointRequestSchema;
|
||||
output: typeof UpdateEntryPointResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.DeleteEntryPoint
|
||||
*/
|
||||
deleteEntryPoint: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteEntryPointRequestSchema;
|
||||
output: typeof DeleteEntryPointResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.EntryPointService.ListEntryPoints
|
||||
*/
|
||||
listEntryPoints: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListEntryPointsRequestSchema;
|
||||
output: typeof ListEntryPointsResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_entry_point, 0);
|
||||
|
||||
|
||||
@@ -1,559 +1,536 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/middleware.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import {
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp
|
||||
} from '@bufbuild/protobuf/wkt';
|
||||
import type { ProtocolType } from './protocol_pb';
|
||||
import { file_mantrae_v1_protocol } from './protocol_pb';
|
||||
import type { JsonObject, Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { ProtocolType } from "./protocol_pb";
|
||||
import { file_mantrae_v1_protocol } from "./protocol_pb";
|
||||
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/middleware.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_middleware: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChttYW50cmFlL3YxL21pZGRsZXdhcmUucHJvdG8SCm1hbnRyYWUudjEiogIKCk1pZGRsZXdhcmUSCgoCaWQYASABKAkSEgoKcHJvZmlsZV9pZBgCIAEoAxIQCghhZ2VudF9pZBgDIAEoCRIMCgRuYW1lGAQgASgJEicKBmNvbmZpZxgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSDwoHZW5hYmxlZBgGIAEoCBISCgppc19kZWZhdWx0GAcgASgIEiYKBHR5cGUYCCABKA4yGC5tYW50cmFlLnYxLlByb3RvY29sVHlwZRIuCgpjcmVhdGVkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKmAgoGUGx1Z2luEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSFAoMZGlzcGxheV9uYW1lGAMgASgJEg4KBmF1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gIWTWFudHJhZVxWMVxHUEJNZXRhZGF0YeoCC01hbnRyYWU6OlYxYgZwcm90bzM',
|
||||
[
|
||||
file_buf_validate_validate,
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp,
|
||||
file_mantrae_v1_protocol
|
||||
]
|
||||
);
|
||||
export const file_mantrae_v1_middleware: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChttYW50cmFlL3YxL21pZGRsZXdhcmUucHJvdG8SCm1hbnRyYWUudjEiogIKCk1pZGRsZXdhcmUSCgoCaWQYASABKAkSEgoKcHJvZmlsZV9pZBgCIAEoAxIQCghhZ2VudF9pZBgDIAEoCRIMCgRuYW1lGAQgASgJEicKBmNvbmZpZxgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSDwoHZW5hYmxlZBgGIAEoCBISCgppc19kZWZhdWx0GAcgASgIEiYKBHR5cGUYCCABKA4yGC5tYW50cmFlLnYxLlByb3RvY29sVHlwZRIuCgpjcmVhdGVkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKmAgoGUGx1Z2luEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSFAoMZGlzcGxheV9uYW1lGAMgASgJEg4KBmF1dGhvchgEIAEoCRIMCgR0eXBlGAUgASgJEg4KBmltcG9ydBgGIAEoCRIPCgdzdW1tYXJ5GAcgASgJEhAKCGljb25fdXJsGAggASgJEhIKCmJhbm5lcl91cmwYCSABKAkSDgoGcmVhZG1lGAogASgJEhYKDmxhdGVzdF92ZXJzaW9uGAsgASgJEhAKCHZlcnNpb25zGAwgAygJEg0KBXN0YXJzGA0gASgDEioKB3NuaXBwZXQYDiABKAsyGS5tYW50cmFlLnYxLlBsdWdpblNuaXBwZXQSEgoKY3JlYXRlZF9hdBgPIAEoCSI4Cg1QbHVnaW5TbmlwcGV0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DcmVhdGVNaWRkbGV3YXJlUmVzcG9uc2USXQoQVXBkYXRlTWlkZGxld2FyZRIjLm1hbnRyYWUudjEuVXBkYXRlTWlkZGxld2FyZVJlcXVlc3QaJC5tYW50cmFlLnYxLlVwZGF0ZU1pZGRsZXdhcmVSZXNwb25zZRJdChBEZWxldGVNaWRkbGV3YXJlEiMubWFudHJhZS52MS5EZWxldGVNaWRkbGV3YXJlUmVxdWVzdBokLm1hbnRyYWUudjEuRGVsZXRlTWlkZGxld2FyZVJlc3BvbnNlEl8KD0xpc3RNaWRkbGV3YXJlcxIiLm1hbnRyYWUudjEuTGlzdE1pZGRsZXdhcmVzUmVxdWVzdBojLm1hbnRyYWUudjEuTGlzdE1pZGRsZXdhcmVzUmVzcG9uc2UiA5ACARJuChRHZXRNaWRkbGV3YXJlUGx1Z2lucxInLm1hbnRyYWUudjEuR2V0TWlkZGxld2FyZVBsdWdpbnNSZXF1ZXN0GigubWFudHJhZS52MS5HZXRNaWRkbGV3YXJlUGx1Z2luc1Jlc3BvbnNlIgOQAgFCqQEKDmNvbS5tYW50cmFlLnYxQg9NaWRkbGV3YXJlUHJvdG9QAVo9Z2l0aHViLmNvbS9taXp1Y2hpbGFicy9tYW50cmFlL3Byb3RvL2dlbi9tYW50cmFlL3YxO21hbnRyYWV2MaICA01YWKoCCk1hbnRyYWUuVjHKAgpNYW50cmFlXFYx4gIWTWFudHJhZVxWMVxHUEJNZXRhZGF0YeoCC01hbnRyYWU6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_struct, file_google_protobuf_timestamp, file_mantrae_v1_protocol]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Middleware
|
||||
*/
|
||||
export type Middleware = Message<'mantrae.v1.Middleware'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type Middleware = Message<"mantrae.v1.Middleware"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 7;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 7;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 8;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 8;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Middleware.
|
||||
* Use `create(MiddlewareSchema)` to create a new message.
|
||||
*/
|
||||
export const MiddlewareSchema: GenMessage<Middleware> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 0);
|
||||
export const MiddlewareSchema: GenMessage<Middleware> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Plugin
|
||||
*/
|
||||
export type Plugin = Message<'mantrae.v1.Plugin'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type Plugin = Message<"mantrae.v1.Plugin"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string display_name = 3;
|
||||
*/
|
||||
displayName: string;
|
||||
/**
|
||||
* @generated from field: string display_name = 3;
|
||||
*/
|
||||
displayName: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string author = 4;
|
||||
*/
|
||||
author: string;
|
||||
/**
|
||||
* @generated from field: string author = 4;
|
||||
*/
|
||||
author: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string type = 5;
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* @generated from field: string type = 5;
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string import = 6;
|
||||
*/
|
||||
import: string;
|
||||
/**
|
||||
* @generated from field: string import = 6;
|
||||
*/
|
||||
import: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string summary = 7;
|
||||
*/
|
||||
summary: string;
|
||||
/**
|
||||
* @generated from field: string summary = 7;
|
||||
*/
|
||||
summary: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string icon_url = 8;
|
||||
*/
|
||||
iconUrl: string;
|
||||
/**
|
||||
* @generated from field: string icon_url = 8;
|
||||
*/
|
||||
iconUrl: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string banner_url = 9;
|
||||
*/
|
||||
bannerUrl: string;
|
||||
/**
|
||||
* @generated from field: string banner_url = 9;
|
||||
*/
|
||||
bannerUrl: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string readme = 10;
|
||||
*/
|
||||
readme: string;
|
||||
/**
|
||||
* @generated from field: string readme = 10;
|
||||
*/
|
||||
readme: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string latest_version = 11;
|
||||
*/
|
||||
latestVersion: string;
|
||||
/**
|
||||
* @generated from field: string latest_version = 11;
|
||||
*/
|
||||
latestVersion: string;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated string versions = 12;
|
||||
*/
|
||||
versions: string[];
|
||||
/**
|
||||
* @generated from field: repeated string versions = 12;
|
||||
*/
|
||||
versions: string[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 stars = 13;
|
||||
*/
|
||||
stars: bigint;
|
||||
/**
|
||||
* @generated from field: int64 stars = 13;
|
||||
*/
|
||||
stars: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.PluginSnippet snippet = 14;
|
||||
*/
|
||||
snippet?: PluginSnippet;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.PluginSnippet snippet = 14;
|
||||
*/
|
||||
snippet?: PluginSnippet;
|
||||
|
||||
/**
|
||||
* @generated from field: string created_at = 15;
|
||||
*/
|
||||
createdAt: string;
|
||||
/**
|
||||
* @generated from field: string created_at = 15;
|
||||
*/
|
||||
createdAt: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Plugin.
|
||||
* Use `create(PluginSchema)` to create a new message.
|
||||
*/
|
||||
export const PluginSchema: GenMessage<Plugin> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 1);
|
||||
export const PluginSchema: GenMessage<Plugin> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.PluginSnippet
|
||||
*/
|
||||
export type PluginSnippet = Message<'mantrae.v1.PluginSnippet'> & {
|
||||
/**
|
||||
* @generated from field: string k8s = 1;
|
||||
*/
|
||||
k8s: string;
|
||||
export type PluginSnippet = Message<"mantrae.v1.PluginSnippet"> & {
|
||||
/**
|
||||
* @generated from field: string k8s = 1;
|
||||
*/
|
||||
k8s: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string yaml = 2;
|
||||
*/
|
||||
yaml: string;
|
||||
/**
|
||||
* @generated from field: string yaml = 2;
|
||||
*/
|
||||
yaml: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string toml = 3;
|
||||
*/
|
||||
toml: string;
|
||||
/**
|
||||
* @generated from field: string toml = 3;
|
||||
*/
|
||||
toml: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.PluginSnippet.
|
||||
* Use `create(PluginSnippetSchema)` to create a new message.
|
||||
*/
|
||||
export const PluginSnippetSchema: GenMessage<PluginSnippet> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 2);
|
||||
export const PluginSnippetSchema: GenMessage<PluginSnippet> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetMiddlewareRequest
|
||||
*/
|
||||
export type GetMiddlewareRequest = Message<'mantrae.v1.GetMiddlewareRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type GetMiddlewareRequest = Message<"mantrae.v1.GetMiddlewareRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetMiddlewareRequest.
|
||||
* Use `create(GetMiddlewareRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetMiddlewareRequestSchema: GenMessage<GetMiddlewareRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 3);
|
||||
export const GetMiddlewareRequestSchema: GenMessage<GetMiddlewareRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetMiddlewareResponse
|
||||
*/
|
||||
export type GetMiddlewareResponse = Message<'mantrae.v1.GetMiddlewareResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 1;
|
||||
*/
|
||||
middleware?: Middleware;
|
||||
export type GetMiddlewareResponse = Message<"mantrae.v1.GetMiddlewareResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 1;
|
||||
*/
|
||||
middleware?: Middleware;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetMiddlewareResponse.
|
||||
* Use `create(GetMiddlewareResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetMiddlewareResponseSchema: GenMessage<GetMiddlewareResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 4);
|
||||
export const GetMiddlewareResponseSchema: GenMessage<GetMiddlewareResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateMiddlewareRequest
|
||||
*/
|
||||
export type CreateMiddlewareRequest = Message<'mantrae.v1.CreateMiddlewareRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type CreateMiddlewareRequest = Message<"mantrae.v1.CreateMiddlewareRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 4;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 4;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 5;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 6;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 6;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateMiddlewareRequest.
|
||||
* Use `create(CreateMiddlewareRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateMiddlewareRequestSchema: GenMessage<CreateMiddlewareRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 5);
|
||||
export const CreateMiddlewareRequestSchema: GenMessage<CreateMiddlewareRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateMiddlewareResponse
|
||||
*/
|
||||
export type CreateMiddlewareResponse = Message<'mantrae.v1.CreateMiddlewareResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 1;
|
||||
*/
|
||||
middleware?: Middleware;
|
||||
export type CreateMiddlewareResponse = Message<"mantrae.v1.CreateMiddlewareResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 1;
|
||||
*/
|
||||
middleware?: Middleware;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateMiddlewareResponse.
|
||||
* Use `create(CreateMiddlewareResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateMiddlewareResponseSchema: GenMessage<CreateMiddlewareResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 6);
|
||||
export const CreateMiddlewareResponseSchema: GenMessage<CreateMiddlewareResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateMiddlewareRequest
|
||||
*/
|
||||
export type UpdateMiddlewareRequest = Message<'mantrae.v1.UpdateMiddlewareRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateMiddlewareRequest = Message<"mantrae.v1.UpdateMiddlewareRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 4;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 4;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_default = 7;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
/**
|
||||
* @generated from field: bool is_default = 7;
|
||||
*/
|
||||
isDefault: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateMiddlewareRequest.
|
||||
* Use `create(UpdateMiddlewareRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateMiddlewareRequestSchema: GenMessage<UpdateMiddlewareRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 7);
|
||||
export const UpdateMiddlewareRequestSchema: GenMessage<UpdateMiddlewareRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateMiddlewareResponse
|
||||
*/
|
||||
export type UpdateMiddlewareResponse = Message<'mantrae.v1.UpdateMiddlewareResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 1;
|
||||
*/
|
||||
middleware?: Middleware;
|
||||
export type UpdateMiddlewareResponse = Message<"mantrae.v1.UpdateMiddlewareResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 1;
|
||||
*/
|
||||
middleware?: Middleware;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateMiddlewareResponse.
|
||||
* Use `create(UpdateMiddlewareResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateMiddlewareResponseSchema: GenMessage<UpdateMiddlewareResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 8);
|
||||
export const UpdateMiddlewareResponseSchema: GenMessage<UpdateMiddlewareResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteMiddlewareRequest
|
||||
*/
|
||||
export type DeleteMiddlewareRequest = Message<'mantrae.v1.DeleteMiddlewareRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteMiddlewareRequest = Message<"mantrae.v1.DeleteMiddlewareRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteMiddlewareRequest.
|
||||
* Use `create(DeleteMiddlewareRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteMiddlewareRequestSchema: GenMessage<DeleteMiddlewareRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 9);
|
||||
export const DeleteMiddlewareRequestSchema: GenMessage<DeleteMiddlewareRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteMiddlewareResponse
|
||||
*/
|
||||
export type DeleteMiddlewareResponse = Message<'mantrae.v1.DeleteMiddlewareResponse'> & {};
|
||||
export type DeleteMiddlewareResponse = Message<"mantrae.v1.DeleteMiddlewareResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteMiddlewareResponse.
|
||||
* Use `create(DeleteMiddlewareResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteMiddlewareResponseSchema: GenMessage<DeleteMiddlewareResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 10);
|
||||
export const DeleteMiddlewareResponseSchema: GenMessage<DeleteMiddlewareResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 10);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListMiddlewaresRequest
|
||||
*/
|
||||
export type ListMiddlewaresRequest = Message<'mantrae.v1.ListMiddlewaresRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type ListMiddlewaresRequest = Message<"mantrae.v1.ListMiddlewaresRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListMiddlewaresRequest.
|
||||
* Use `create(ListMiddlewaresRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListMiddlewaresRequestSchema: GenMessage<ListMiddlewaresRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 11);
|
||||
export const ListMiddlewaresRequestSchema: GenMessage<ListMiddlewaresRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 11);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListMiddlewaresResponse
|
||||
*/
|
||||
export type ListMiddlewaresResponse = Message<'mantrae.v1.ListMiddlewaresResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Middleware middlewares = 1;
|
||||
*/
|
||||
middlewares: Middleware[];
|
||||
export type ListMiddlewaresResponse = Message<"mantrae.v1.ListMiddlewaresResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Middleware middlewares = 1;
|
||||
*/
|
||||
middlewares: Middleware[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListMiddlewaresResponse.
|
||||
* Use `create(ListMiddlewaresResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListMiddlewaresResponseSchema: GenMessage<ListMiddlewaresResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 12);
|
||||
export const ListMiddlewaresResponseSchema: GenMessage<ListMiddlewaresResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 12);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetMiddlewarePluginsRequest
|
||||
*/
|
||||
export type GetMiddlewarePluginsRequest = Message<'mantrae.v1.GetMiddlewarePluginsRequest'> & {};
|
||||
export type GetMiddlewarePluginsRequest = Message<"mantrae.v1.GetMiddlewarePluginsRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetMiddlewarePluginsRequest.
|
||||
* Use `create(GetMiddlewarePluginsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetMiddlewarePluginsRequestSchema: GenMessage<GetMiddlewarePluginsRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 13);
|
||||
export const GetMiddlewarePluginsRequestSchema: GenMessage<GetMiddlewarePluginsRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 13);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetMiddlewarePluginsResponse
|
||||
*/
|
||||
export type GetMiddlewarePluginsResponse = Message<'mantrae.v1.GetMiddlewarePluginsResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Plugin plugins = 1;
|
||||
*/
|
||||
plugins: Plugin[];
|
||||
export type GetMiddlewarePluginsResponse = Message<"mantrae.v1.GetMiddlewarePluginsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Plugin plugins = 1;
|
||||
*/
|
||||
plugins: Plugin[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetMiddlewarePluginsResponse.
|
||||
* Use `create(GetMiddlewarePluginsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetMiddlewarePluginsResponseSchema: GenMessage<GetMiddlewarePluginsResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 14);
|
||||
export const GetMiddlewarePluginsResponseSchema: GenMessage<GetMiddlewarePluginsResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_middleware, 14);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.MiddlewareService
|
||||
*/
|
||||
export const MiddlewareService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.GetMiddleware
|
||||
*/
|
||||
getMiddleware: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetMiddlewareRequestSchema;
|
||||
output: typeof GetMiddlewareResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.CreateMiddleware
|
||||
*/
|
||||
createMiddleware: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateMiddlewareRequestSchema;
|
||||
output: typeof CreateMiddlewareResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.UpdateMiddleware
|
||||
*/
|
||||
updateMiddleware: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateMiddlewareRequestSchema;
|
||||
output: typeof UpdateMiddlewareResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.DeleteMiddleware
|
||||
*/
|
||||
deleteMiddleware: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteMiddlewareRequestSchema;
|
||||
output: typeof DeleteMiddlewareResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.ListMiddlewares
|
||||
*/
|
||||
listMiddlewares: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListMiddlewaresRequestSchema;
|
||||
output: typeof ListMiddlewaresResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.GetMiddlewarePlugins
|
||||
*/
|
||||
getMiddlewarePlugins: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetMiddlewarePluginsRequestSchema;
|
||||
output: typeof GetMiddlewarePluginsResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_middleware, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.GetMiddleware
|
||||
*/
|
||||
getMiddleware: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetMiddlewareRequestSchema;
|
||||
output: typeof GetMiddlewareResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.CreateMiddleware
|
||||
*/
|
||||
createMiddleware: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateMiddlewareRequestSchema;
|
||||
output: typeof CreateMiddlewareResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.UpdateMiddleware
|
||||
*/
|
||||
updateMiddleware: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateMiddlewareRequestSchema;
|
||||
output: typeof UpdateMiddlewareResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.DeleteMiddleware
|
||||
*/
|
||||
deleteMiddleware: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteMiddlewareRequestSchema;
|
||||
output: typeof DeleteMiddlewareResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.ListMiddlewares
|
||||
*/
|
||||
listMiddlewares: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListMiddlewaresRequestSchema;
|
||||
output: typeof ListMiddlewaresResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.MiddlewareService.GetMiddlewarePlugins
|
||||
*/
|
||||
getMiddlewarePlugins: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetMiddlewarePluginsRequestSchema;
|
||||
output: typeof GetMiddlewarePluginsResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_middleware, 0);
|
||||
|
||||
|
||||
@@ -1,314 +1,302 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/profile.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/profile.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_profile: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChhtYW50cmFlL3YxL3Byb2ZpbGUucHJvdG8SCm1hbnRyYWUudjEipwEKB1Byb2ZpbGUSCgoCaWQYASABKAMSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRINCgV0b2tlbhgEIAEoCRIuCgpjcmVhdGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIoChFHZXRQcm9maWxlUmVxdWVzdBITCgJpZBgBIAEoA0IHukgEIgIgACI6ChJHZXRQcm9maWxlUmVzcG9uc2USJAoHcHJvZmlsZRgBIAEoCzITLm1hbnRyYWUudjEuUHJvZmlsZSJXChRDcmVhdGVQcm9maWxlUmVxdWVzdBIVCgRuYW1lGAEgASgJQge6SARyAhABEhgKC2Rlc2NyaXB0aW9uGAIgASgJSACIAQFCDg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VJlc3BvbnNlElQKDVVwZGF0ZVByb2ZpbGUSIC5tYW50cmFlLnYxLlVwZGF0ZVByb2ZpbGVSZXF1ZXN0GiEubWFudHJhZS52MS5VcGRhdGVQcm9maWxlUmVzcG9uc2USVAoNRGVsZXRlUHJvZmlsZRIgLm1hbnRyYWUudjEuRGVsZXRlUHJvZmlsZVJlcXVlc3QaIS5tYW50cmFlLnYxLkRlbGV0ZVByb2ZpbGVSZXNwb25zZRJWCgxMaXN0UHJvZmlsZXMSHy5tYW50cmFlLnYxLkxpc3RQcm9maWxlc1JlcXVlc3QaIC5tYW50cmFlLnYxLkxpc3RQcm9maWxlc1Jlc3BvbnNlIgOQAgFCpgEKDmNvbS5tYW50cmFlLnYxQgxQcm9maWxlUHJvdG9QAVo9Z2l0aHViLmNvbS9taXp1Y2hpbGFicy9tYW50cmFlL3Byb3RvL2dlbi9tYW50cmFlL3YxO21hbnRyYWV2MaICA01YWKoCCk1hbnRyYWUuVjHKAgpNYW50cmFlXFYx4gIWTWFudHJhZVxWMVxHUEJNZXRhZGF0YeoCC01hbnRyYWU6OlYxYgZwcm90bzM',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_profile: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChhtYW50cmFlL3YxL3Byb2ZpbGUucHJvdG8SCm1hbnRyYWUudjEipwEKB1Byb2ZpbGUSCgoCaWQYASABKAMSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRINCgV0b2tlbhgEIAEoCRIuCgpjcmVhdGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIoChFHZXRQcm9maWxlUmVxdWVzdBITCgJpZBgBIAEoA0IHukgEIgIgACI6ChJHZXRQcm9maWxlUmVzcG9uc2USJAoHcHJvZmlsZRgB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ZXRQcm9maWxlUmVzcG9uc2UiA5ACARJUCg1DcmVhdGVQcm9maWxlEiAubWFudHJhZS52MS5DcmVhdGVQcm9maWxlUmVxdWVzdBohLm1hbnRyYWUudjEuQ3JlYXRlUHJvZmlsZVJlc3BvbnNlElQKDVVwZGF0ZVByb2ZpbGUSIC5tYW50cmFlLnYxLlVwZGF0ZVByb2ZpbGVSZXF1ZXN0GiEubWFudHJhZS52MS5VcGRhdGVQcm9maWxlUmVzcG9uc2USVAoNRGVsZXRlUHJvZmlsZRIgLm1hbnRyYWUudjEuRGVsZXRlUHJvZmlsZVJlcXVlc3QaIS5tYW50cmFlLnYxLkRlbGV0ZVByb2ZpbGVSZXNwb25zZRJWCgxMaXN0UHJvZmlsZXMSHy5tYW50cmFlLnYxLkxpc3RQcm9maWxlc1JlcXVlc3QaIC5tYW50cmFlLnYxLkxpc3RQcm9maWxlc1Jlc3BvbnNlIgOQAgFCpgEKDmNvbS5tYW50cmFlLnYxQgxQcm9maWxlUHJvdG9QAVo9Z2l0aHViLmNvbS9taXp1Y2hpbGFicy9tYW50cmFlL3Byb3RvL2dlbi9tYW50cmFlL3YxO21hbnRyYWV2MaICA01YWKoCCk1hbnRyYWUuVjHKAgpNYW50cmFlXFYx4gIWTWFudHJhZVxWMVxHUEJNZXRhZGF0YeoCC01hbnRyYWU6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Profile
|
||||
*/
|
||||
export type Profile = Message<'mantrae.v1.Profile'> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
export type Profile = Message<"mantrae.v1.Profile"> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string description = 3;
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* @generated from field: string description = 3;
|
||||
*/
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string token = 4;
|
||||
*/
|
||||
token: string;
|
||||
/**
|
||||
* @generated from field: string token = 4;
|
||||
*/
|
||||
token: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 6;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 6;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Profile.
|
||||
* Use `create(ProfileSchema)` to create a new message.
|
||||
*/
|
||||
export const ProfileSchema: GenMessage<Profile> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 0);
|
||||
export const ProfileSchema: GenMessage<Profile> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetProfileRequest
|
||||
*/
|
||||
export type GetProfileRequest = Message<'mantrae.v1.GetProfileRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
export type GetProfileRequest = Message<"mantrae.v1.GetProfileRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetProfileRequest.
|
||||
* Use `create(GetProfileRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetProfileRequestSchema: GenMessage<GetProfileRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 1);
|
||||
export const GetProfileRequestSchema: GenMessage<GetProfileRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetProfileResponse
|
||||
*/
|
||||
export type GetProfileResponse = Message<'mantrae.v1.GetProfileResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 1;
|
||||
*/
|
||||
profile?: Profile;
|
||||
export type GetProfileResponse = Message<"mantrae.v1.GetProfileResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 1;
|
||||
*/
|
||||
profile?: Profile;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetProfileResponse.
|
||||
* Use `create(GetProfileResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetProfileResponseSchema: GenMessage<GetProfileResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 2);
|
||||
export const GetProfileResponseSchema: GenMessage<GetProfileResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateProfileRequest
|
||||
*/
|
||||
export type CreateProfileRequest = Message<'mantrae.v1.CreateProfileRequest'> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
export type CreateProfileRequest = Message<"mantrae.v1.CreateProfileRequest"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string description = 2;
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* @generated from field: optional string description = 2;
|
||||
*/
|
||||
description?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateProfileRequest.
|
||||
* Use `create(CreateProfileRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateProfileRequestSchema: GenMessage<CreateProfileRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 3);
|
||||
export const CreateProfileRequestSchema: GenMessage<CreateProfileRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateProfileResponse
|
||||
*/
|
||||
export type CreateProfileResponse = Message<'mantrae.v1.CreateProfileResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 1;
|
||||
*/
|
||||
profile?: Profile;
|
||||
export type CreateProfileResponse = Message<"mantrae.v1.CreateProfileResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 1;
|
||||
*/
|
||||
profile?: Profile;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateProfileResponse.
|
||||
* Use `create(CreateProfileResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateProfileResponseSchema: GenMessage<CreateProfileResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 4);
|
||||
export const CreateProfileResponseSchema: GenMessage<CreateProfileResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateProfileRequest
|
||||
*/
|
||||
export type UpdateProfileRequest = Message<'mantrae.v1.UpdateProfileRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
export type UpdateProfileRequest = Message<"mantrae.v1.UpdateProfileRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string description = 3;
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* @generated from field: optional string description = 3;
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional bool regenerate_token = 4;
|
||||
*/
|
||||
regenerateToken?: boolean;
|
||||
/**
|
||||
* @generated from field: optional bool regenerate_token = 4;
|
||||
*/
|
||||
regenerateToken?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateProfileRequest.
|
||||
* Use `create(UpdateProfileRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateProfileRequestSchema: GenMessage<UpdateProfileRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 5);
|
||||
export const UpdateProfileRequestSchema: GenMessage<UpdateProfileRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateProfileResponse
|
||||
*/
|
||||
export type UpdateProfileResponse = Message<'mantrae.v1.UpdateProfileResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 1;
|
||||
*/
|
||||
profile?: Profile;
|
||||
export type UpdateProfileResponse = Message<"mantrae.v1.UpdateProfileResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 1;
|
||||
*/
|
||||
profile?: Profile;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateProfileResponse.
|
||||
* Use `create(UpdateProfileResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateProfileResponseSchema: GenMessage<UpdateProfileResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 6);
|
||||
export const UpdateProfileResponseSchema: GenMessage<UpdateProfileResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteProfileRequest
|
||||
*/
|
||||
export type DeleteProfileRequest = Message<'mantrae.v1.DeleteProfileRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
export type DeleteProfileRequest = Message<"mantrae.v1.DeleteProfileRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 id = 1;
|
||||
*/
|
||||
id: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteProfileRequest.
|
||||
* Use `create(DeleteProfileRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteProfileRequestSchema: GenMessage<DeleteProfileRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 7);
|
||||
export const DeleteProfileRequestSchema: GenMessage<DeleteProfileRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteProfileResponse
|
||||
*/
|
||||
export type DeleteProfileResponse = Message<'mantrae.v1.DeleteProfileResponse'> & {};
|
||||
export type DeleteProfileResponse = Message<"mantrae.v1.DeleteProfileResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteProfileResponse.
|
||||
* Use `create(DeleteProfileResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteProfileResponseSchema: GenMessage<DeleteProfileResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 8);
|
||||
export const DeleteProfileResponseSchema: GenMessage<DeleteProfileResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListProfilesRequest
|
||||
*/
|
||||
export type ListProfilesRequest = Message<'mantrae.v1.ListProfilesRequest'> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
export type ListProfilesRequest = Message<"mantrae.v1.ListProfilesRequest"> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListProfilesRequest.
|
||||
* Use `create(ListProfilesRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListProfilesRequestSchema: GenMessage<ListProfilesRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 9);
|
||||
export const ListProfilesRequestSchema: GenMessage<ListProfilesRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListProfilesResponse
|
||||
*/
|
||||
export type ListProfilesResponse = Message<'mantrae.v1.ListProfilesResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Profile profiles = 1;
|
||||
*/
|
||||
profiles: Profile[];
|
||||
export type ListProfilesResponse = Message<"mantrae.v1.ListProfilesResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Profile profiles = 1;
|
||||
*/
|
||||
profiles: Profile[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListProfilesResponse.
|
||||
* Use `create(ListProfilesResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListProfilesResponseSchema: GenMessage<ListProfilesResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 10);
|
||||
export const ListProfilesResponseSchema: GenMessage<ListProfilesResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_profile, 10);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.ProfileService
|
||||
*/
|
||||
export const ProfileService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.GetProfile
|
||||
*/
|
||||
getProfile: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetProfileRequestSchema;
|
||||
output: typeof GetProfileResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.CreateProfile
|
||||
*/
|
||||
createProfile: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateProfileRequestSchema;
|
||||
output: typeof CreateProfileResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.UpdateProfile
|
||||
*/
|
||||
updateProfile: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateProfileRequestSchema;
|
||||
output: typeof UpdateProfileResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.DeleteProfile
|
||||
*/
|
||||
deleteProfile: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteProfileRequestSchema;
|
||||
output: typeof DeleteProfileResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.ListProfiles
|
||||
*/
|
||||
listProfiles: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListProfilesRequestSchema;
|
||||
output: typeof ListProfilesResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_profile, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.GetProfile
|
||||
*/
|
||||
getProfile: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetProfileRequestSchema;
|
||||
output: typeof GetProfileResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.CreateProfile
|
||||
*/
|
||||
createProfile: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateProfileRequestSchema;
|
||||
output: typeof CreateProfileResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.UpdateProfile
|
||||
*/
|
||||
updateProfile: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateProfileRequestSchema;
|
||||
output: typeof UpdateProfileResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.DeleteProfile
|
||||
*/
|
||||
deleteProfile: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteProfileRequestSchema;
|
||||
output: typeof DeleteProfileResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ProfileService.ListProfiles
|
||||
*/
|
||||
listProfiles: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListProfilesRequestSchema;
|
||||
output: typeof ListProfilesResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_profile, 0);
|
||||
|
||||
|
||||
@@ -1,47 +1,44 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/protocol.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenEnum, GenFile } from '@bufbuild/protobuf/codegenv2';
|
||||
import { enumDesc, fileDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2";
|
||||
import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/protocol.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_protocol: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChltYW50cmFlL3YxL3Byb3RvY29sLnByb3RvEgptYW50cmFlLnYxKnMKDFByb3RvY29sVHlwZRIdChlQUk9UT0NPTF9UWVBFX1VOU1BFQ0lGSUVEEAASFgoSUFJPVE9DT0xfVFlQRV9IVFRQEAESFQoRUFJPVE9DT0xfVFlQRV9UQ1AQAhIVChFQUk9UT0NPTF9UWVBFX1VEUBADQqcBCg5jb20ubWFudHJhZS52MUINUHJvdG9jb2xQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw'
|
||||
);
|
||||
export const file_mantrae_v1_protocol: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChltYW50cmFlL3YxL3Byb3RvY29sLnByb3RvEgptYW50cmFlLnYxKnMKDFByb3RvY29sVHlwZRIdChlQUk9UT0NPTF9UWVBFX1VOU1BFQ0lGSUVEEAASFgoSUFJPVE9DT0xfVFlQRV9IVFRQEAESFQoRUFJPVE9DT0xfVFlQRV9UQ1AQAhIVChFQUk9UT0NPTF9UWVBFX1VEUBADQqcBCg5jb20ubWFudHJhZS52MUINUHJvdG9jb2xQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw");
|
||||
|
||||
/**
|
||||
* @generated from enum mantrae.v1.ProtocolType
|
||||
*/
|
||||
export enum ProtocolType {
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_HTTP = 1;
|
||||
*/
|
||||
HTTP = 1,
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_HTTP = 1;
|
||||
*/
|
||||
HTTP = 1,
|
||||
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_TCP = 2;
|
||||
*/
|
||||
TCP = 2,
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_TCP = 2;
|
||||
*/
|
||||
TCP = 2,
|
||||
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_UDP = 3;
|
||||
*/
|
||||
UDP = 3
|
||||
/**
|
||||
* @generated from enum value: PROTOCOL_TYPE_UDP = 3;
|
||||
*/
|
||||
UDP = 3,
|
||||
}
|
||||
|
||||
/**
|
||||
* Describes the enum mantrae.v1.ProtocolType.
|
||||
*/
|
||||
export const ProtocolTypeSchema: GenEnum<ProtocolType> =
|
||||
/*@__PURE__*/
|
||||
enumDesc(file_mantrae_v1_protocol, 0);
|
||||
export const ProtocolTypeSchema: GenEnum<ProtocolType> = /*@__PURE__*/
|
||||
enumDesc(file_mantrae_v1_protocol, 0);
|
||||
|
||||
|
||||
@@ -1,402 +1,381 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/router.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import {
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp
|
||||
} from '@bufbuild/protobuf/wkt';
|
||||
import type { DnsProvider } from './dns_provider_pb';
|
||||
import { file_mantrae_v1_dns_provider } from './dns_provider_pb';
|
||||
import type { ProtocolType } from './protocol_pb';
|
||||
import { file_mantrae_v1_protocol } from './protocol_pb';
|
||||
import type { JsonObject, Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { DnsProvider } from "./dns_provider_pb";
|
||||
import { file_mantrae_v1_dns_provider } from "./dns_provider_pb";
|
||||
import type { ProtocolType } from "./protocol_pb";
|
||||
import { file_mantrae_v1_protocol } from "./protocol_pb";
|
||||
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/router.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_router: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChdtYW50cmFlL3YxL3JvdXRlci5wcm90bxIKbWFudHJhZS52MSK6AgoGUm91dGVyEgoKAmlkGAEgASgJEhIKCnByb2ZpbGVfaWQYAiABKAMSEAoIYWdlbnRfaWQYAyABKAkSDAoEbmFtZRgEIAEoCRInCgZjb25maWcYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Eg8KB2VuYWJsZWQYBiABKAgSJgoEdHlwZRgHIAEoDjIYLm1hbnRyYWUudjEuUHJvdG9jb2xUeXBlEi4KDWRuc19wcm92aWRlcnMYCCADKAsyFy5tYW50cmFlLnYxLkRuc1Byb3ZpZGVyEi4KCmNyZWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYCiABKAsyGi5nb29nbGUucHJ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N0Gh8ubWFudHJhZS52MS5MaXN0Um91dGVyc1Jlc3BvbnNlIgOQAgFCpQEKDmNvbS5tYW50cmFlLnYxQgtSb3V0ZXJQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw',
|
||||
[
|
||||
file_buf_validate_validate,
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp,
|
||||
file_mantrae_v1_dns_provider,
|
||||
file_mantrae_v1_protocol
|
||||
]
|
||||
);
|
||||
export const file_mantrae_v1_router: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChdtYW50cmFlL3YxL3JvdXRlci5wcm90bxIKbWFudHJhZS52MSK6AgoGUm91dGVyEgoKAmlkGAEgASgJEhIKCnByb2ZpbGVfaWQYAiABKAMSEAoIYWdlbnRfaWQYAyABKAkSDAoEbmFtZRgEIAEoCRInCgZjb25maWcYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Eg8KB2VuYWJsZWQYBiABKAgSJgoEdHlwZRgHIAEoDjIYLm1hbnRyYWUudjEuUHJvdG9jb2xUeXBlEi4KDWRuc19wcm92aWRlcnMYCCADKAsyFy5tYW50cmFlLnYxLkRuc1Byb3ZpZGVyEi4KCmNyZWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIlkKEEdldFJvdXRlclJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAESMAoEdHlwZRgCIAEoDjIYLm1hbnRyYWUudjEuUHJvdG9jb2xUeXBlQgi6SAWCAQIQASI3ChFHZXRSb3V0ZXJSZXNwb25zZRIi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FudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_struct, file_google_protobuf_timestamp, file_mantrae_v1_dns_provider, file_mantrae_v1_protocol]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Router
|
||||
*/
|
||||
export type Router = Message<'mantrae.v1.Router'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type Router = Message<"mantrae.v1.Router"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 7;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 7;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.DnsProvider dns_providers = 8;
|
||||
*/
|
||||
dnsProviders: DnsProvider[];
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.DnsProvider dns_providers = 8;
|
||||
*/
|
||||
dnsProviders: DnsProvider[];
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Router.
|
||||
* Use `create(RouterSchema)` to create a new message.
|
||||
*/
|
||||
export const RouterSchema: GenMessage<Router> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 0);
|
||||
export const RouterSchema: GenMessage<Router> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetRouterRequest
|
||||
*/
|
||||
export type GetRouterRequest = Message<'mantrae.v1.GetRouterRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type GetRouterRequest = Message<"mantrae.v1.GetRouterRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetRouterRequest.
|
||||
* Use `create(GetRouterRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetRouterRequestSchema: GenMessage<GetRouterRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 1);
|
||||
export const GetRouterRequestSchema: GenMessage<GetRouterRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetRouterResponse
|
||||
*/
|
||||
export type GetRouterResponse = Message<'mantrae.v1.GetRouterResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 1;
|
||||
*/
|
||||
router?: Router;
|
||||
export type GetRouterResponse = Message<"mantrae.v1.GetRouterResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 1;
|
||||
*/
|
||||
router?: Router;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetRouterResponse.
|
||||
* Use `create(GetRouterResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetRouterResponseSchema: GenMessage<GetRouterResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 2);
|
||||
export const GetRouterResponseSchema: GenMessage<GetRouterResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateRouterRequest
|
||||
*/
|
||||
export type CreateRouterRequest = Message<'mantrae.v1.CreateRouterRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type CreateRouterRequest = Message<"mantrae.v1.CreateRouterRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 6;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 6;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateRouterRequest.
|
||||
* Use `create(CreateRouterRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateRouterRequestSchema: GenMessage<CreateRouterRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 3);
|
||||
export const CreateRouterRequestSchema: GenMessage<CreateRouterRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateRouterResponse
|
||||
*/
|
||||
export type CreateRouterResponse = Message<'mantrae.v1.CreateRouterResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 1;
|
||||
*/
|
||||
router?: Router;
|
||||
export type CreateRouterResponse = Message<"mantrae.v1.CreateRouterResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 1;
|
||||
*/
|
||||
router?: Router;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateRouterResponse.
|
||||
* Use `create(CreateRouterResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateRouterResponseSchema: GenMessage<CreateRouterResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 4);
|
||||
export const CreateRouterResponseSchema: GenMessage<CreateRouterResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateRouterRequest
|
||||
*/
|
||||
export type UpdateRouterRequest = Message<'mantrae.v1.UpdateRouterRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateRouterRequest = Message<"mantrae.v1.UpdateRouterRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.DnsProvider dns_providers = 6;
|
||||
*/
|
||||
dnsProviders: DnsProvider[];
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.DnsProvider dns_providers = 6;
|
||||
*/
|
||||
dnsProviders: DnsProvider[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateRouterRequest.
|
||||
* Use `create(UpdateRouterRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateRouterRequestSchema: GenMessage<UpdateRouterRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 5);
|
||||
export const UpdateRouterRequestSchema: GenMessage<UpdateRouterRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateRouterResponse
|
||||
*/
|
||||
export type UpdateRouterResponse = Message<'mantrae.v1.UpdateRouterResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 1;
|
||||
*/
|
||||
router?: Router;
|
||||
export type UpdateRouterResponse = Message<"mantrae.v1.UpdateRouterResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 1;
|
||||
*/
|
||||
router?: Router;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateRouterResponse.
|
||||
* Use `create(UpdateRouterResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateRouterResponseSchema: GenMessage<UpdateRouterResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 6);
|
||||
export const UpdateRouterResponseSchema: GenMessage<UpdateRouterResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteRouterRequest
|
||||
*/
|
||||
export type DeleteRouterRequest = Message<'mantrae.v1.DeleteRouterRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteRouterRequest = Message<"mantrae.v1.DeleteRouterRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteRouterRequest.
|
||||
* Use `create(DeleteRouterRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteRouterRequestSchema: GenMessage<DeleteRouterRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 7);
|
||||
export const DeleteRouterRequestSchema: GenMessage<DeleteRouterRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteRouterResponse
|
||||
*/
|
||||
export type DeleteRouterResponse = Message<'mantrae.v1.DeleteRouterResponse'> & {};
|
||||
export type DeleteRouterResponse = Message<"mantrae.v1.DeleteRouterResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteRouterResponse.
|
||||
* Use `create(DeleteRouterResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteRouterResponseSchema: GenMessage<DeleteRouterResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 8);
|
||||
export const DeleteRouterResponseSchema: GenMessage<DeleteRouterResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListRoutersRequest
|
||||
*/
|
||||
export type ListRoutersRequest = Message<'mantrae.v1.ListRoutersRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type ListRoutersRequest = Message<"mantrae.v1.ListRoutersRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListRoutersRequest.
|
||||
* Use `create(ListRoutersRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListRoutersRequestSchema: GenMessage<ListRoutersRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 9);
|
||||
export const ListRoutersRequestSchema: GenMessage<ListRoutersRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListRoutersResponse
|
||||
*/
|
||||
export type ListRoutersResponse = Message<'mantrae.v1.ListRoutersResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Router routers = 1;
|
||||
*/
|
||||
routers: Router[];
|
||||
export type ListRoutersResponse = Message<"mantrae.v1.ListRoutersResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Router routers = 1;
|
||||
*/
|
||||
routers: Router[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListRoutersResponse.
|
||||
* Use `create(ListRoutersResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListRoutersResponseSchema: GenMessage<ListRoutersResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 10);
|
||||
export const ListRoutersResponseSchema: GenMessage<ListRoutersResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_router, 10);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.RouterService
|
||||
*/
|
||||
export const RouterService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.GetRouter
|
||||
*/
|
||||
getRouter: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetRouterRequestSchema;
|
||||
output: typeof GetRouterResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.CreateRouter
|
||||
*/
|
||||
createRouter: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateRouterRequestSchema;
|
||||
output: typeof CreateRouterResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.UpdateRouter
|
||||
*/
|
||||
updateRouter: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateRouterRequestSchema;
|
||||
output: typeof UpdateRouterResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.DeleteRouter
|
||||
*/
|
||||
deleteRouter: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteRouterRequestSchema;
|
||||
output: typeof DeleteRouterResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.ListRouters
|
||||
*/
|
||||
listRouters: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListRoutersRequestSchema;
|
||||
output: typeof ListRoutersResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_router, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.GetRouter
|
||||
*/
|
||||
getRouter: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetRouterRequestSchema;
|
||||
output: typeof GetRouterResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.CreateRouter
|
||||
*/
|
||||
createRouter: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateRouterRequestSchema;
|
||||
output: typeof CreateRouterResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.UpdateRouter
|
||||
*/
|
||||
updateRouter: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateRouterRequestSchema;
|
||||
output: typeof UpdateRouterResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.DeleteRouter
|
||||
*/
|
||||
deleteRouter: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteRouterRequestSchema;
|
||||
output: typeof DeleteRouterResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.RouterService.ListRouters
|
||||
*/
|
||||
listRouters: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListRoutersRequestSchema;
|
||||
output: typeof ListRoutersResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_router, 0);
|
||||
|
||||
|
||||
@@ -1,392 +1,369 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/servers_transport.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import {
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp
|
||||
} from '@bufbuild/protobuf/wkt';
|
||||
import type { ProtocolType } from './protocol_pb';
|
||||
import { file_mantrae_v1_protocol } from './protocol_pb';
|
||||
import type { JsonObject, Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { ProtocolType } from "./protocol_pb";
|
||||
import { file_mantrae_v1_protocol } from "./protocol_pb";
|
||||
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/servers_transport.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_servers_transport: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'CiJtYW50cmFlL3YxL3NlcnZlcnNfdHJhbnNwb3J0LnByb3RvEgptYW50cmFlLnYxIpQCChBTZXJ2ZXJzVHJhbnNwb3J0EgoKAmlkGAEgASgJEhIKCnByb2ZpbGVfaWQYAiABKAMSEAoIYWdlbnRfaWQYAyABKAkSDAoEbmFtZRgEIAEoCRInCgZjb25maWcYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Eg8KB2VuYWJsZWQYBiABKAgSJgoEdHlwZRgHIAEoDjIYLm1hbnRyYWUudjEuUHJvdG9jb2xUeXBlEi4KCmNyZWF0ZWRfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYCSABKA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VhdGVTZXJ2ZXJzVHJhbnNwb3J0UmVzcG9uc2USbwoWVXBkYXRlU2VydmVyc1RyYW5zcG9ydBIpLm1hbnRyYWUudjEuVXBkYXRlU2VydmVyc1RyYW5zcG9ydFJlcXVlc3QaKi5tYW50cmFlLnYxLlVwZGF0ZVNlcnZlcnNUcmFuc3BvcnRSZXNwb25zZRJvChZEZWxldGVTZXJ2ZXJzVHJhbnNwb3J0EikubWFudHJhZS52MS5EZWxldGVTZXJ2ZXJzVHJhbnNwb3J0UmVxdWVzdBoqLm1hbnRyYWUudjEuRGVsZXRlU2VydmVyc1RyYW5zcG9ydFJlc3BvbnNlEnEKFUxpc3RTZXJ2ZXJzVHJhbnNwb3J0cxIoLm1hbnRyYWUudjEuTGlzdFNlcnZlcnNUcmFuc3BvcnRzUmVxdWVzdBopLm1hbnRyYWUudjEuTGlzdFNlcnZlcnNUcmFuc3BvcnRzUmVzcG9uc2UiA5ACAUKvAQoOY29tLm1hbnRyYWUudjFCFVNlcnZlcnNUcmFuc3BvcnRQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw',
|
||||
[
|
||||
file_buf_validate_validate,
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp,
|
||||
file_mantrae_v1_protocol
|
||||
]
|
||||
);
|
||||
export const file_mantrae_v1_servers_transport: GenFile = /*@__PURE__*/
|
||||
fileDesc("CiJtYW50cmFlL3YxL3NlcnZlcnNfdHJhbnNwb3J0LnByb3RvEgptYW50cmFlLnYxIpQCChBTZXJ2ZXJzVHJhbnNwb3J0EgoKAmlkGAEgASgJEhIKCnByb2ZpbGVfaWQYAiABKAMSEAoIYWdlbnRfaWQYAyABKAkSDAoEbmFtZ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hbnRyYWUudjEuR2V0U2VydmVyc1RyYW5zcG9ydFJlcXVlc3QaJy5tYW50cmFlLnYxLkdldFNlcnZlcnNUcmFuc3BvcnRSZXNwb25zZSIDkAIBEm8KFkNyZWF0ZVNlcnZlcnNUcmFuc3BvcnQSKS5tYW50cmFlLnYxLkNyZWF0ZVNlcnZlcnNUcmFuc3BvcnRSZXF1ZXN0GioubWFudHJhZS52MS5DcmVhdGVTZXJ2ZXJzVHJhbnNwb3J0UmVzcG9uc2USbwoWVXBkYXRlU2VydmVyc1RyYW5zcG9ydBIpLm1hbnRyYWUudjEuVXBkYXRlU2VydmVyc1RyYW5zcG9ydFJlcXVlc3QaKi5tYW50cmFlLnYxLlVwZGF0ZVNlcnZlcnNUcmFuc3BvcnRSZXNwb25zZRJvChZEZWxldGVTZXJ2ZXJzVHJhbnNwb3J0EikubWFudHJhZS52MS5EZWxldGVTZXJ2ZXJzVHJhbnNwb3J0UmVxdWVzdBoqLm1hbnRyYWUudjEuRGVsZXRlU2VydmVyc1RyYW5zcG9ydFJlc3BvbnNlEnEKFUxpc3RTZXJ2ZXJzVHJhbnNwb3J0cxIoLm1hbnRyYWUudjEuTGlzdFNlcnZlcnNUcmFuc3BvcnRzUmVxdWVzdBopLm1hbnRyYWUudjEuTGlzdFNlcnZlcnNUcmFuc3BvcnRzUmVzcG9uc2UiA5ACAUKvAQoOY29tLm1hbnRyYWUudjFCFVNlcnZlcnNUcmFuc3BvcnRQcm90b1ABWj1naXRodWIuY29tL21penVjaGlsYWJzL21hbnRyYWUvcHJvdG8vZ2VuL21hbnRyYWUvdjE7bWFudHJhZXYxogIDTVhYqgIKTWFudHJhZS5WMcoCCk1hbnRyYWVcVjHiAhZNYW50cmFlXFYxXEdQQk1ldGFkYXRh6gILTWFudHJhZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_struct, file_google_protobuf_timestamp, file_mantrae_v1_protocol]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ServersTransport
|
||||
*/
|
||||
export type ServersTransport = Message<'mantrae.v1.ServersTransport'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type ServersTransport = Message<"mantrae.v1.ServersTransport"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 5;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 6;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 7;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 7;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 8;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 8;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 9;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 9;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ServersTransport.
|
||||
* Use `create(ServersTransportSchema)` to create a new message.
|
||||
*/
|
||||
export const ServersTransportSchema: GenMessage<ServersTransport> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 0);
|
||||
export const ServersTransportSchema: GenMessage<ServersTransport> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetServersTransportRequest
|
||||
*/
|
||||
export type GetServersTransportRequest = Message<'mantrae.v1.GetServersTransportRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type GetServersTransportRequest = Message<"mantrae.v1.GetServersTransportRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetServersTransportRequest.
|
||||
* Use `create(GetServersTransportRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetServersTransportRequestSchema: GenMessage<GetServersTransportRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 1);
|
||||
export const GetServersTransportRequestSchema: GenMessage<GetServersTransportRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetServersTransportResponse
|
||||
*/
|
||||
export type GetServersTransportResponse = Message<'mantrae.v1.GetServersTransportResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 1;
|
||||
*/
|
||||
serversTransport?: ServersTransport;
|
||||
export type GetServersTransportResponse = Message<"mantrae.v1.GetServersTransportResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 1;
|
||||
*/
|
||||
serversTransport?: ServersTransport;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetServersTransportResponse.
|
||||
* Use `create(GetServersTransportResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetServersTransportResponseSchema: GenMessage<GetServersTransportResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 2);
|
||||
export const GetServersTransportResponseSchema: GenMessage<GetServersTransportResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateServersTransportRequest
|
||||
*/
|
||||
export type CreateServersTransportRequest = Message<'mantrae.v1.CreateServersTransportRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type CreateServersTransportRequest = Message<"mantrae.v1.CreateServersTransportRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 6;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 6;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateServersTransportRequest.
|
||||
* Use `create(CreateServersTransportRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateServersTransportRequestSchema: GenMessage<CreateServersTransportRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 3);
|
||||
export const CreateServersTransportRequestSchema: GenMessage<CreateServersTransportRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateServersTransportResponse
|
||||
*/
|
||||
export type CreateServersTransportResponse =
|
||||
Message<'mantrae.v1.CreateServersTransportResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 1;
|
||||
*/
|
||||
serversTransport?: ServersTransport;
|
||||
};
|
||||
export type CreateServersTransportResponse = Message<"mantrae.v1.CreateServersTransportResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 1;
|
||||
*/
|
||||
serversTransport?: ServersTransport;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateServersTransportResponse.
|
||||
* Use `create(CreateServersTransportResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateServersTransportResponseSchema: GenMessage<CreateServersTransportResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 4);
|
||||
export const CreateServersTransportResponseSchema: GenMessage<CreateServersTransportResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateServersTransportRequest
|
||||
*/
|
||||
export type UpdateServersTransportRequest = Message<'mantrae.v1.UpdateServersTransportRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateServersTransportRequest = Message<"mantrae.v1.UpdateServersTransportRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 3;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 3;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 4;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 4;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 5;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 5;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateServersTransportRequest.
|
||||
* Use `create(UpdateServersTransportRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateServersTransportRequestSchema: GenMessage<UpdateServersTransportRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 5);
|
||||
export const UpdateServersTransportRequestSchema: GenMessage<UpdateServersTransportRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateServersTransportResponse
|
||||
*/
|
||||
export type UpdateServersTransportResponse =
|
||||
Message<'mantrae.v1.UpdateServersTransportResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 1;
|
||||
*/
|
||||
serversTransport?: ServersTransport;
|
||||
};
|
||||
export type UpdateServersTransportResponse = Message<"mantrae.v1.UpdateServersTransportResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 1;
|
||||
*/
|
||||
serversTransport?: ServersTransport;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateServersTransportResponse.
|
||||
* Use `create(UpdateServersTransportResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateServersTransportResponseSchema: GenMessage<UpdateServersTransportResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 6);
|
||||
export const UpdateServersTransportResponseSchema: GenMessage<UpdateServersTransportResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteServersTransportRequest
|
||||
*/
|
||||
export type DeleteServersTransportRequest = Message<'mantrae.v1.DeleteServersTransportRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteServersTransportRequest = Message<"mantrae.v1.DeleteServersTransportRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteServersTransportRequest.
|
||||
* Use `create(DeleteServersTransportRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteServersTransportRequestSchema: GenMessage<DeleteServersTransportRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 7);
|
||||
export const DeleteServersTransportRequestSchema: GenMessage<DeleteServersTransportRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteServersTransportResponse
|
||||
*/
|
||||
export type DeleteServersTransportResponse =
|
||||
Message<'mantrae.v1.DeleteServersTransportResponse'> & {};
|
||||
export type DeleteServersTransportResponse = Message<"mantrae.v1.DeleteServersTransportResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteServersTransportResponse.
|
||||
* Use `create(DeleteServersTransportResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteServersTransportResponseSchema: GenMessage<DeleteServersTransportResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 8);
|
||||
export const DeleteServersTransportResponseSchema: GenMessage<DeleteServersTransportResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListServersTransportsRequest
|
||||
*/
|
||||
export type ListServersTransportsRequest = Message<'mantrae.v1.ListServersTransportsRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type ListServersTransportsRequest = Message<"mantrae.v1.ListServersTransportsRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListServersTransportsRequest.
|
||||
* Use `create(ListServersTransportsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListServersTransportsRequestSchema: GenMessage<ListServersTransportsRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 9);
|
||||
export const ListServersTransportsRequestSchema: GenMessage<ListServersTransportsRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListServersTransportsResponse
|
||||
*/
|
||||
export type ListServersTransportsResponse = Message<'mantrae.v1.ListServersTransportsResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.ServersTransport servers_transports = 1;
|
||||
*/
|
||||
serversTransports: ServersTransport[];
|
||||
export type ListServersTransportsResponse = Message<"mantrae.v1.ListServersTransportsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.ServersTransport servers_transports = 1;
|
||||
*/
|
||||
serversTransports: ServersTransport[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListServersTransportsResponse.
|
||||
* Use `create(ListServersTransportsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListServersTransportsResponseSchema: GenMessage<ListServersTransportsResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 10);
|
||||
export const ListServersTransportsResponseSchema: GenMessage<ListServersTransportsResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_servers_transport, 10);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.ServersTransportService
|
||||
*/
|
||||
export const ServersTransportService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.GetServersTransport
|
||||
*/
|
||||
getServersTransport: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetServersTransportRequestSchema;
|
||||
output: typeof GetServersTransportResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.CreateServersTransport
|
||||
*/
|
||||
createServersTransport: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateServersTransportRequestSchema;
|
||||
output: typeof CreateServersTransportResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.UpdateServersTransport
|
||||
*/
|
||||
updateServersTransport: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateServersTransportRequestSchema;
|
||||
output: typeof UpdateServersTransportResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.DeleteServersTransport
|
||||
*/
|
||||
deleteServersTransport: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteServersTransportRequestSchema;
|
||||
output: typeof DeleteServersTransportResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.ListServersTransports
|
||||
*/
|
||||
listServersTransports: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListServersTransportsRequestSchema;
|
||||
output: typeof ListServersTransportsResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_servers_transport, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.GetServersTransport
|
||||
*/
|
||||
getServersTransport: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetServersTransportRequestSchema;
|
||||
output: typeof GetServersTransportResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.CreateServersTransport
|
||||
*/
|
||||
createServersTransport: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateServersTransportRequestSchema;
|
||||
output: typeof CreateServersTransportResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.UpdateServersTransport
|
||||
*/
|
||||
updateServersTransport: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateServersTransportRequestSchema;
|
||||
output: typeof UpdateServersTransportResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.DeleteServersTransport
|
||||
*/
|
||||
deleteServersTransport: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteServersTransportRequestSchema;
|
||||
output: typeof DeleteServersTransportResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServersTransportService.ListServersTransports
|
||||
*/
|
||||
listServersTransports: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListServersTransportsRequestSchema;
|
||||
output: typeof ListServersTransportsResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_servers_transport, 0);
|
||||
|
||||
|
||||
@@ -1,409 +1,386 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/service.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import {
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp
|
||||
} from '@bufbuild/protobuf/wkt';
|
||||
import type { ProtocolType } from './protocol_pb';
|
||||
import { file_mantrae_v1_protocol } from './protocol_pb';
|
||||
import type { JsonObject, Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { ProtocolType } from "./protocol_pb";
|
||||
import { file_mantrae_v1_protocol } from "./protocol_pb";
|
||||
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/service.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_service: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChhtYW50cmFlL3YxL3NlcnZpY2UucHJvdG8SCm1hbnRyYWUudjEiiwIKB1NlcnZpY2USCgoCaWQYASABKAkSEgoKcHJvZmlsZV9pZBgCIAEoAxIQCghhZ2VudF9pZBgDIAEoCRIMCgRuYW1lGAQgASgJEg8KB2VuYWJsZWQYBSABKAgSJwoGY29uZmlnGAYgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBImCgR0eXBlGAcgASgOMhgubWFudHJhZS52MS5Qcm90b2NvbFR5cGUSLgoKY3JlYXRlZF9hdBgIIAEoCzI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2VydmljZRIgLm1hbnRyYWUudjEuRGVsZXRlU2VydmljZVJlcXVlc3QaIS5tYW50cmFlLnYxLkRlbGV0ZVNlcnZpY2VSZXNwb25zZRJWCgxMaXN0U2VydmljZXMSHy5tYW50cmFlLnYxLkxpc3RTZXJ2aWNlc1JlcXVlc3QaIC5tYW50cmFlLnYxLkxpc3RTZXJ2aWNlc1Jlc3BvbnNlIgOQAgFCpgEKDmNvbS5tYW50cmFlLnYxQgxTZXJ2aWNlUHJvdG9QAVo9Z2l0aHViLmNvbS9taXp1Y2hpbGFicy9tYW50cmFlL3Byb3RvL2dlbi9tYW50cmFlL3YxO21hbnRyYWV2MaICA01YWKoCCk1hbnRyYWUuVjHKAgpNYW50cmFlXFYx4gIWTWFudHJhZVxWMVxHUEJNZXRhZGF0YeoCC01hbnRyYWU6OlYxYgZwcm90bzM',
|
||||
[
|
||||
file_buf_validate_validate,
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp,
|
||||
file_mantrae_v1_protocol
|
||||
]
|
||||
);
|
||||
export const file_mantrae_v1_service: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChhtYW50cmFlL3YxL3NlcnZpY2UucHJvdG8SCm1hbnRyYWUudjEiiwIKB1NlcnZpY2USCgoCaWQYASABKAkSEgoKcHJvZmlsZV9pZBgCIAEoAxIQCghhZ2VudF9pZBgDIAEoCRIMCgRuYW1lGAQgASgJEg8KB2VuYWJsZWQYBSABKAgSJwoGY29uZmlnGAYgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBImCgR0eXBlGAcgASgOMhgubWFudHJhZS52MS5Qcm90b2NvbFR5cGUSLgoKY3JlYXRlZF9hdBgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAipwEKEUdldFNlcnZpY2VSZXF1ZXN0EhsKCnByb2ZpbGVfaWQYASAB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JlcXVlc3QaIC5tYW50cmFlLnYxLkxpc3RTZXJ2aWNlc1Jlc3BvbnNlIgOQAgFCpgEKDmNvbS5tYW50cmFlLnYxQgxTZXJ2aWNlUHJvdG9QAVo9Z2l0aHViLmNvbS9taXp1Y2hpbGFicy9tYW50cmFlL3Byb3RvL2dlbi9tYW50cmFlL3YxO21hbnRyYWV2MaICA01YWKoCCk1hbnRyYWUuVjHKAgpNYW50cmFlXFYx4gIWTWFudHJhZVxWMVxHUEJNZXRhZGF0YeoCC01hbnRyYWU6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_struct, file_google_protobuf_timestamp, file_mantrae_v1_protocol]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Service
|
||||
*/
|
||||
export type Service = Message<'mantrae.v1.Service'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type Service = Message<"mantrae.v1.Service"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
/**
|
||||
* @generated from field: string agent_id = 3;
|
||||
*/
|
||||
agentId: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 6;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 6;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 7;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 7;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 8;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 8;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 9;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 9;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Service.
|
||||
* Use `create(ServiceSchema)` to create a new message.
|
||||
*/
|
||||
export const ServiceSchema: GenMessage<Service> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 0);
|
||||
export const ServiceSchema: GenMessage<Service> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetServiceRequest
|
||||
*/
|
||||
export type GetServiceRequest = Message<'mantrae.v1.GetServiceRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type GetServiceRequest = Message<"mantrae.v1.GetServiceRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.GetServiceRequest.identifier
|
||||
*/
|
||||
identifier:
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string id = 3;
|
||||
*/
|
||||
value: string;
|
||||
case: 'id';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
value: string;
|
||||
case: 'name';
|
||||
}
|
||||
| { case: undefined; value?: undefined };
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.GetServiceRequest.identifier
|
||||
*/
|
||||
identifier: {
|
||||
/**
|
||||
* @generated from field: string id = 3;
|
||||
*/
|
||||
value: string;
|
||||
case: "id";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string name = 4;
|
||||
*/
|
||||
value: string;
|
||||
case: "name";
|
||||
} | { case: undefined; value?: undefined };
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetServiceRequest.
|
||||
* Use `create(GetServiceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetServiceRequestSchema: GenMessage<GetServiceRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 1);
|
||||
export const GetServiceRequestSchema: GenMessage<GetServiceRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetServiceResponse
|
||||
*/
|
||||
export type GetServiceResponse = Message<'mantrae.v1.GetServiceResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 1;
|
||||
*/
|
||||
service?: Service;
|
||||
export type GetServiceResponse = Message<"mantrae.v1.GetServiceResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 1;
|
||||
*/
|
||||
service?: Service;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetServiceResponse.
|
||||
* Use `create(GetServiceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetServiceResponseSchema: GenMessage<GetServiceResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 2);
|
||||
export const GetServiceResponseSchema: GenMessage<GetServiceResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateServiceRequest
|
||||
*/
|
||||
export type CreateServiceRequest = Message<'mantrae.v1.CreateServiceRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type CreateServiceRequest = Message<"mantrae.v1.CreateServiceRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 5;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 6;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 6;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateServiceRequest.
|
||||
* Use `create(CreateServiceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateServiceRequestSchema: GenMessage<CreateServiceRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 3);
|
||||
export const CreateServiceRequestSchema: GenMessage<CreateServiceRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateServiceResponse
|
||||
*/
|
||||
export type CreateServiceResponse = Message<'mantrae.v1.CreateServiceResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 1;
|
||||
*/
|
||||
service?: Service;
|
||||
export type CreateServiceResponse = Message<"mantrae.v1.CreateServiceResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 1;
|
||||
*/
|
||||
service?: Service;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateServiceResponse.
|
||||
* Use `create(CreateServiceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateServiceResponseSchema: GenMessage<CreateServiceResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 4);
|
||||
export const CreateServiceResponseSchema: GenMessage<CreateServiceResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateServiceRequest
|
||||
*/
|
||||
export type UpdateServiceRequest = Message<'mantrae.v1.UpdateServiceRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateServiceRequest = Message<"mantrae.v1.UpdateServiceRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: bool enabled = 3;
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool enabled = 3;
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 4;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 5;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 5;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateServiceRequest.
|
||||
* Use `create(UpdateServiceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateServiceRequestSchema: GenMessage<UpdateServiceRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 5);
|
||||
export const UpdateServiceRequestSchema: GenMessage<UpdateServiceRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateServiceResponse
|
||||
*/
|
||||
export type UpdateServiceResponse = Message<'mantrae.v1.UpdateServiceResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 1;
|
||||
*/
|
||||
service?: Service;
|
||||
export type UpdateServiceResponse = Message<"mantrae.v1.UpdateServiceResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 1;
|
||||
*/
|
||||
service?: Service;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateServiceResponse.
|
||||
* Use `create(UpdateServiceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateServiceResponseSchema: GenMessage<UpdateServiceResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 6);
|
||||
export const UpdateServiceResponseSchema: GenMessage<UpdateServiceResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteServiceRequest
|
||||
*/
|
||||
export type DeleteServiceRequest = Message<'mantrae.v1.DeleteServiceRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteServiceRequest = Message<"mantrae.v1.DeleteServiceRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ProtocolType type = 2;
|
||||
*/
|
||||
type: ProtocolType;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteServiceRequest.
|
||||
* Use `create(DeleteServiceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteServiceRequestSchema: GenMessage<DeleteServiceRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 7);
|
||||
export const DeleteServiceRequestSchema: GenMessage<DeleteServiceRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteServiceResponse
|
||||
*/
|
||||
export type DeleteServiceResponse = Message<'mantrae.v1.DeleteServiceResponse'> & {};
|
||||
export type DeleteServiceResponse = Message<"mantrae.v1.DeleteServiceResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteServiceResponse.
|
||||
* Use `create(DeleteServiceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteServiceResponseSchema: GenMessage<DeleteServiceResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 8);
|
||||
export const DeleteServiceResponseSchema: GenMessage<DeleteServiceResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListServicesRequest
|
||||
*/
|
||||
export type ListServicesRequest = Message<'mantrae.v1.ListServicesRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type ListServicesRequest = Message<"mantrae.v1.ListServicesRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
/**
|
||||
* @generated from field: optional string agent_id = 2;
|
||||
*/
|
||||
agentId?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
/**
|
||||
* @generated from field: optional mantrae.v1.ProtocolType type = 3;
|
||||
*/
|
||||
type?: ProtocolType;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 4;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 5;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListServicesRequest.
|
||||
* Use `create(ListServicesRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListServicesRequestSchema: GenMessage<ListServicesRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 9);
|
||||
export const ListServicesRequestSchema: GenMessage<ListServicesRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListServicesResponse
|
||||
*/
|
||||
export type ListServicesResponse = Message<'mantrae.v1.ListServicesResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Service services = 1;
|
||||
*/
|
||||
services: Service[];
|
||||
export type ListServicesResponse = Message<"mantrae.v1.ListServicesResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Service services = 1;
|
||||
*/
|
||||
services: Service[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListServicesResponse.
|
||||
* Use `create(ListServicesResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListServicesResponseSchema: GenMessage<ListServicesResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 10);
|
||||
export const ListServicesResponseSchema: GenMessage<ListServicesResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_service, 10);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.ServiceService
|
||||
*/
|
||||
export const ServiceService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.GetService
|
||||
*/
|
||||
getService: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetServiceRequestSchema;
|
||||
output: typeof GetServiceResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.CreateService
|
||||
*/
|
||||
createService: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateServiceRequestSchema;
|
||||
output: typeof CreateServiceResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.UpdateService
|
||||
*/
|
||||
updateService: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateServiceRequestSchema;
|
||||
output: typeof UpdateServiceResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.DeleteService
|
||||
*/
|
||||
deleteService: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteServiceRequestSchema;
|
||||
output: typeof DeleteServiceResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.ListServices
|
||||
*/
|
||||
listServices: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListServicesRequestSchema;
|
||||
output: typeof ListServicesResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_service, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.GetService
|
||||
*/
|
||||
getService: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetServiceRequestSchema;
|
||||
output: typeof GetServiceResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.CreateService
|
||||
*/
|
||||
createService: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateServiceRequestSchema;
|
||||
output: typeof CreateServiceResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.UpdateService
|
||||
*/
|
||||
updateService: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateServiceRequestSchema;
|
||||
output: typeof UpdateServiceResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.DeleteService
|
||||
*/
|
||||
deleteService: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteServiceRequestSchema;
|
||||
output: typeof DeleteServiceResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.ServiceService.ListServices
|
||||
*/
|
||||
listServices: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListServicesRequestSchema;
|
||||
output: typeof ListServicesResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_service, 0);
|
||||
|
||||
|
||||
@@ -1,186 +1,178 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/setting.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/setting.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_setting: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChhtYW50cmFlL3YxL3NldHRpbmcucHJvdG8SCm1hbnRyYWUudjEiVQoHU2V0dGluZxILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAkSLgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiKQoRR2V0U2V0dGluZ1JlcXVlc3QSFAoDa2V5GAEgASgJQge6SARyAhABIiMKEkdldFNldHRpbmdSZXNwb25zZRINCgV2YWx1ZRgBIAEoCSI7ChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIUCgNrZXkYASABKAlCB7pIBHICEAESDQoFdmFsdWUYAiABKAkiPQoVVXBkYXRlU2V0dGluZ1Jlc3BvbnNlEiQKB3NldHRpbmcYASABKAsyEy5tYW50cmFlLnYxLlNldHRpbmciFQoTTGlzdFNldHRpbmdzUmVxdWVzdCI9ChRMaXN0U2V0dGluZ3NSZXNwb25zZRIlCghzZXR0aW5ncxgBIAMoCzITLm1hbnRyYWUudjEuU2V0dGluZzKQAgoOU2V0dGluZ1NlcnZpY2USUAoKR2V0U2V0dGluZxIdLm1hbnRyYWUudjEuR2V0U2V0dGluZ1JlcXVlc3QaHi5tYW50cmFlLnYxLkdldFNldHRpbmdSZXNwb25zZSIDkAIBElQKDVVwZGF0ZVNldHRpbmcSIC5tYW50cmFlLnYxLlVwZGF0ZVNldHRpbmdSZXF1ZXN0GiEubWFudHJhZS52MS5VcGRhdGVTZXR0aW5nUmVzcG9uc2USVgoMTGlzdFNldHRpbmdzEh8ubWFudHJhZS52MS5MaXN0U2V0dGluZ3NSZXF1ZXN0GiAubWFudHJhZS52MS5MaXN0U2V0dGluZ3NSZXNwb25zZSIDkAIBQqYBCg5jb20ubWFudHJhZS52MUIMU2V0dGluZ1Byb3RvUAFaPWdpdGh1Yi5jb20vbWl6dWNoaWxhYnMvbWFudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_setting: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChhtYW50cmFlL3YxL3NldHRpbmcucHJvdG8SCm1hbnRyYWUudjEiVQoHU2V0dGluZxILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAkSLgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiKQoRR2V0U2V0dGluZ1JlcXVlc3QSFAoDa2V5GAEgASgJQge6SARyAhABIiMKEkdldFNldHRpbmdSZXNwb25zZRINCgV2YWx1ZRgBIAEoCSI7ChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIUCgNrZXkYASABKAlCB7pIBHICEAESDQoFdmFsdWUYAiABKAkiPQoVVXBkYXRlU2V0dGluZ1Jlc3BvbnNlEiQKB3NldHRpbmcYASABKAsyEy5tYW50cmFlLnYxLlNldHRpbmciFQoTTGlzdFNldHRpbmdzUmVxdWVzdCI9ChRMaXN0U2V0dGluZ3NSZXNwb25zZRIlCghzZXR0aW5ncxgBIAMoCzITLm1hbnRyYWUudjEuU2V0dGluZzKQAgoOU2V0dGluZ1NlcnZpY2USUAoKR2V0U2V0dGluZxIdLm1hbnRyYWUudjEuR2V0U2V0dGluZ1JlcXVlc3QaHi5tYW50cmFlLnYxLkdldFNldHRpbmdSZXNwb25zZSIDkAIBElQKDVVwZGF0ZVNldHRpbmcSIC5tYW50cmFlLnYxLlVwZGF0ZVNldHRpbmdSZXF1ZXN0GiEubWFudHJhZS52MS5VcGRhdGVTZXR0aW5nUmVzcG9uc2USVgoMTGlzdFNldHRpbmdzEh8ubWFudHJhZS52MS5MaXN0U2V0dGluZ3NSZXF1ZXN0GiAubWFudHJhZS52MS5MaXN0U2V0dGluZ3NSZXNwb25zZSIDkAIBQqYBCg5jb20ubWFudHJhZS52MUIMU2V0dGluZ1Byb3RvUAFaPWdpdGh1Yi5jb20vbWl6dWNoaWxhYnMvbWFudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.Setting
|
||||
*/
|
||||
export type Setting = Message<'mantrae.v1.Setting'> & {
|
||||
/**
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key: string;
|
||||
export type Setting = Message<"mantrae.v1.Setting"> & {
|
||||
/**
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string value = 2;
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* @generated from field: string value = 2;
|
||||
*/
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 3;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 3;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.Setting.
|
||||
* Use `create(SettingSchema)` to create a new message.
|
||||
*/
|
||||
export const SettingSchema: GenMessage<Setting> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 0);
|
||||
export const SettingSchema: GenMessage<Setting> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetSettingRequest
|
||||
*/
|
||||
export type GetSettingRequest = Message<'mantrae.v1.GetSettingRequest'> & {
|
||||
/**
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key: string;
|
||||
export type GetSettingRequest = Message<"mantrae.v1.GetSettingRequest"> & {
|
||||
/**
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetSettingRequest.
|
||||
* Use `create(GetSettingRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetSettingRequestSchema: GenMessage<GetSettingRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 1);
|
||||
export const GetSettingRequestSchema: GenMessage<GetSettingRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetSettingResponse
|
||||
*/
|
||||
export type GetSettingResponse = Message<'mantrae.v1.GetSettingResponse'> & {
|
||||
/**
|
||||
* @generated from field: string value = 1;
|
||||
*/
|
||||
value: string;
|
||||
export type GetSettingResponse = Message<"mantrae.v1.GetSettingResponse"> & {
|
||||
/**
|
||||
* @generated from field: string value = 1;
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetSettingResponse.
|
||||
* Use `create(GetSettingResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetSettingResponseSchema: GenMessage<GetSettingResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 2);
|
||||
export const GetSettingResponseSchema: GenMessage<GetSettingResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateSettingRequest
|
||||
*/
|
||||
export type UpdateSettingRequest = Message<'mantrae.v1.UpdateSettingRequest'> & {
|
||||
/**
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key: string;
|
||||
export type UpdateSettingRequest = Message<"mantrae.v1.UpdateSettingRequest"> & {
|
||||
/**
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string value = 2;
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* @generated from field: string value = 2;
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateSettingRequest.
|
||||
* Use `create(UpdateSettingRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateSettingRequestSchema: GenMessage<UpdateSettingRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 3);
|
||||
export const UpdateSettingRequestSchema: GenMessage<UpdateSettingRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateSettingResponse
|
||||
*/
|
||||
export type UpdateSettingResponse = Message<'mantrae.v1.UpdateSettingResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Setting setting = 1;
|
||||
*/
|
||||
setting?: Setting;
|
||||
export type UpdateSettingResponse = Message<"mantrae.v1.UpdateSettingResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Setting setting = 1;
|
||||
*/
|
||||
setting?: Setting;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateSettingResponse.
|
||||
* Use `create(UpdateSettingResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateSettingResponseSchema: GenMessage<UpdateSettingResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 4);
|
||||
export const UpdateSettingResponseSchema: GenMessage<UpdateSettingResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListSettingsRequest
|
||||
*/
|
||||
export type ListSettingsRequest = Message<'mantrae.v1.ListSettingsRequest'> & {};
|
||||
export type ListSettingsRequest = Message<"mantrae.v1.ListSettingsRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListSettingsRequest.
|
||||
* Use `create(ListSettingsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListSettingsRequestSchema: GenMessage<ListSettingsRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 5);
|
||||
export const ListSettingsRequestSchema: GenMessage<ListSettingsRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListSettingsResponse
|
||||
*/
|
||||
export type ListSettingsResponse = Message<'mantrae.v1.ListSettingsResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Setting settings = 1;
|
||||
*/
|
||||
settings: Setting[];
|
||||
export type ListSettingsResponse = Message<"mantrae.v1.ListSettingsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.Setting settings = 1;
|
||||
*/
|
||||
settings: Setting[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListSettingsResponse.
|
||||
* Use `create(ListSettingsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListSettingsResponseSchema: GenMessage<ListSettingsResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 6);
|
||||
export const ListSettingsResponseSchema: GenMessage<ListSettingsResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_setting, 6);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.SettingService
|
||||
*/
|
||||
export const SettingService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.SettingService.GetSetting
|
||||
*/
|
||||
getSetting: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetSettingRequestSchema;
|
||||
output: typeof GetSettingResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.SettingService.UpdateSetting
|
||||
*/
|
||||
updateSetting: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateSettingRequestSchema;
|
||||
output: typeof UpdateSettingResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.SettingService.ListSettings
|
||||
*/
|
||||
listSettings: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListSettingsRequestSchema;
|
||||
output: typeof ListSettingsResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_setting, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.SettingService.GetSetting
|
||||
*/
|
||||
getSetting: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetSettingRequestSchema;
|
||||
output: typeof GetSettingResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.SettingService.UpdateSetting
|
||||
*/
|
||||
updateSetting: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateSettingRequestSchema;
|
||||
output: typeof UpdateSettingResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.SettingService.ListSettings
|
||||
*/
|
||||
listSettings: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListSettingsRequestSchema;
|
||||
output: typeof ListSettingsResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_setting, 0);
|
||||
|
||||
|
||||
@@ -1,250 +1,238 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/traefik_instance.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { ListValue, Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import {
|
||||
file_google_protobuf_struct,
|
||||
file_google_protobuf_timestamp
|
||||
} from '@bufbuild/protobuf/wkt';
|
||||
import type { JsonObject, Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { ListValue, Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/traefik_instance.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_traefik_instance: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'CiFtYW50cmFlL3YxL3RyYWVmaWtfaW5zdGFuY2UucHJvdG8SCm1hbnRyYWUudjEijQMKD1RyYWVmaWtJbnN0YW5jZRIKCgJpZBgBIAEoCRISCgpwcm9maWxlX2lkGAIgASgDEgwKBG5hbWUYAyABKAkSCwoDdXJsGAQgASgJEhAKCHVzZXJuYW1lGAUgASgJEhAKCHBhc3N3b3JkGAYgASgJEgsKA3RscxgHIAEoCBIwCgxlbnRyeV9wb2ludHMYCCABKAsyGi5nb29nbGUucHJvdG9idWYuTGlzdFZhbHVlEikKCG92ZXJ2aWV3GAkgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBInCgZjb25maWcYCiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EigKB3ZlcnNpb24YCyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Ei4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYDSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIjAKGUdldFRyYWVmaWtJbnN0YW5jZVJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAEiUwoaR2V0VHJhZWZpa0luc3RhbmNlUmVzcG9uc2USNQoQdHJhZWZpa19pbnN0YW5jZRgBIAEoCzIbLm1hbnRyYWUudjEuVHJhZWZpa0luc3RhbmNlIjMKHERlbGV0ZVRyYWVmaWtJbnN0YW5jZVJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAEiHwodRGVsZXRlVHJhZWZpa0luc3RhbmNlUmVzcG9uc2Ui2QEKG0xpc3RUcmFlZmlrSW5zdGFuY2VzUmVxdWVzdBIbCgpwcm9maWxlX2lkG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BnByb3RvMw',
|
||||
[file_buf_validate_validate, file_google_protobuf_struct, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_traefik_instance: GenFile = /*@__PURE__*/
|
||||
fileDesc("CiFtYW50cmFlL3YxL3RyYWVmaWtfaW5zdGFuY2UucHJvdG8SCm1hbnRyYWUudjEijQMKD1RyYWVmaWtJbnN0YW5jZRIKCgJpZBgBIAEoCRISCgpwcm9maWxlX2lkGAIgASgDEgwKBG5hbWUYAyABKAkSCwoDdXJsGAQgASgJEhAKCHVzZXJuYW1lGAUgASgJEhAKCHBhc3N3b3JkGAYgASgJEgsKA3RscxgHIAEoCBIwCgxlbnRyeV9wb2ludHMYCCABKAsyGi5nb29nbGUucHJvdG9idWYuTGlzdFZhbHVlEikKCG92ZXJ2aWV3GAkgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBInCgZjb25maWcYCiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EigKB3ZlcnNpb24YCyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Ei4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYDSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIjAKGUdldFRyYWVmaWtJbnN0YW5jZVJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAEiUwoaR2V0VHJhZWZpa0luc3RhbmNlUmVzcG9uc2USNQoQdHJhZWZpa19pbnN0YW5jZRgBIAEoCzIbLm1hbnRyYWUudjEuVHJhZWZpa0luc3RhbmNlIjMKHERlbGV0ZVRyYWVmaWtJbnN0YW5jZVJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAEiHwodRGVsZXRlVHJhZWZpa0luc3RhbmNlUmVzcG9uc2Ui2QEKG0xpc3RUcmFlZmlrSW5zdGFuY2VzUmVxdWVzdBIbCgpwcm9maWxlX2lkGAEgASgDQge6SA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file_buf_validate_validate, file_google_protobuf_struct, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.TraefikInstance
|
||||
*/
|
||||
export type TraefikInstance = Message<'mantrae.v1.TraefikInstance'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type TraefikInstance = Message<"mantrae.v1.TraefikInstance"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 2;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string name = 3;
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string url = 4;
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* @generated from field: string url = 4;
|
||||
*/
|
||||
url: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string username = 5;
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* @generated from field: string username = 5;
|
||||
*/
|
||||
username: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string password = 6;
|
||||
*/
|
||||
password: string;
|
||||
/**
|
||||
* @generated from field: string password = 6;
|
||||
*/
|
||||
password: string;
|
||||
|
||||
/**
|
||||
* @generated from field: bool tls = 7;
|
||||
*/
|
||||
tls: boolean;
|
||||
/**
|
||||
* @generated from field: bool tls = 7;
|
||||
*/
|
||||
tls: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.ListValue entry_points = 8;
|
||||
*/
|
||||
entryPoints?: ListValue;
|
||||
/**
|
||||
* @generated from field: google.protobuf.ListValue entry_points = 8;
|
||||
*/
|
||||
entryPoints?: ListValue;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct overview = 9;
|
||||
*/
|
||||
overview?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct overview = 9;
|
||||
*/
|
||||
overview?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 10;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct config = 10;
|
||||
*/
|
||||
config?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct version = 11;
|
||||
*/
|
||||
version?: JsonObject;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Struct version = 11;
|
||||
*/
|
||||
version?: JsonObject;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 12;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 12;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 13;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 13;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.TraefikInstance.
|
||||
* Use `create(TraefikInstanceSchema)` to create a new message.
|
||||
*/
|
||||
export const TraefikInstanceSchema: GenMessage<TraefikInstance> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 0);
|
||||
export const TraefikInstanceSchema: GenMessage<TraefikInstance> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetTraefikInstanceRequest
|
||||
*/
|
||||
export type GetTraefikInstanceRequest = Message<'mantrae.v1.GetTraefikInstanceRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type GetTraefikInstanceRequest = Message<"mantrae.v1.GetTraefikInstanceRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetTraefikInstanceRequest.
|
||||
* Use `create(GetTraefikInstanceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetTraefikInstanceRequestSchema: GenMessage<GetTraefikInstanceRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 1);
|
||||
export const GetTraefikInstanceRequestSchema: GenMessage<GetTraefikInstanceRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetTraefikInstanceResponse
|
||||
*/
|
||||
export type GetTraefikInstanceResponse = Message<'mantrae.v1.GetTraefikInstanceResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.TraefikInstance traefik_instance = 1;
|
||||
*/
|
||||
traefikInstance?: TraefikInstance;
|
||||
export type GetTraefikInstanceResponse = Message<"mantrae.v1.GetTraefikInstanceResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.TraefikInstance traefik_instance = 1;
|
||||
*/
|
||||
traefikInstance?: TraefikInstance;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetTraefikInstanceResponse.
|
||||
* Use `create(GetTraefikInstanceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetTraefikInstanceResponseSchema: GenMessage<GetTraefikInstanceResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 2);
|
||||
export const GetTraefikInstanceResponseSchema: GenMessage<GetTraefikInstanceResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteTraefikInstanceRequest
|
||||
*/
|
||||
export type DeleteTraefikInstanceRequest = Message<'mantrae.v1.DeleteTraefikInstanceRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteTraefikInstanceRequest = Message<"mantrae.v1.DeleteTraefikInstanceRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteTraefikInstanceRequest.
|
||||
* Use `create(DeleteTraefikInstanceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteTraefikInstanceRequestSchema: GenMessage<DeleteTraefikInstanceRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 3);
|
||||
export const DeleteTraefikInstanceRequestSchema: GenMessage<DeleteTraefikInstanceRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteTraefikInstanceResponse
|
||||
*/
|
||||
export type DeleteTraefikInstanceResponse =
|
||||
Message<'mantrae.v1.DeleteTraefikInstanceResponse'> & {};
|
||||
export type DeleteTraefikInstanceResponse = Message<"mantrae.v1.DeleteTraefikInstanceResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteTraefikInstanceResponse.
|
||||
* Use `create(DeleteTraefikInstanceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteTraefikInstanceResponseSchema: GenMessage<DeleteTraefikInstanceResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 4);
|
||||
export const DeleteTraefikInstanceResponseSchema: GenMessage<DeleteTraefikInstanceResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListTraefikInstancesRequest
|
||||
*/
|
||||
export type ListTraefikInstancesRequest = Message<'mantrae.v1.ListTraefikInstancesRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type ListTraefikInstancesRequest = Message<"mantrae.v1.ListTraefikInstancesRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 2;
|
||||
*/
|
||||
limit?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 2;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 3;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 3;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListTraefikInstancesRequest.
|
||||
* Use `create(ListTraefikInstancesRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListTraefikInstancesRequestSchema: GenMessage<ListTraefikInstancesRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 5);
|
||||
export const ListTraefikInstancesRequestSchema: GenMessage<ListTraefikInstancesRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListTraefikInstancesResponse
|
||||
*/
|
||||
export type ListTraefikInstancesResponse = Message<'mantrae.v1.ListTraefikInstancesResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.TraefikInstance traefik_instances = 1;
|
||||
*/
|
||||
traefikInstances: TraefikInstance[];
|
||||
export type ListTraefikInstancesResponse = Message<"mantrae.v1.ListTraefikInstancesResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.TraefikInstance traefik_instances = 1;
|
||||
*/
|
||||
traefikInstances: TraefikInstance[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListTraefikInstancesResponse.
|
||||
* Use `create(ListTraefikInstancesResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListTraefikInstancesResponseSchema: GenMessage<ListTraefikInstancesResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 6);
|
||||
export const ListTraefikInstancesResponseSchema: GenMessage<ListTraefikInstancesResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_traefik_instance, 6);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.TraefikInstanceService
|
||||
*/
|
||||
export const TraefikInstanceService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.TraefikInstanceService.GetTraefikInstance
|
||||
*/
|
||||
getTraefikInstance: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetTraefikInstanceRequestSchema;
|
||||
output: typeof GetTraefikInstanceResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.TraefikInstanceService.DeleteTraefikInstance
|
||||
*/
|
||||
deleteTraefikInstance: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteTraefikInstanceRequestSchema;
|
||||
output: typeof DeleteTraefikInstanceResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.TraefikInstanceService.ListTraefikInstances
|
||||
*/
|
||||
listTraefikInstances: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListTraefikInstancesRequestSchema;
|
||||
output: typeof ListTraefikInstancesResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_traefik_instance, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.TraefikInstanceService.GetTraefikInstance
|
||||
*/
|
||||
getTraefikInstance: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetTraefikInstanceRequestSchema;
|
||||
output: typeof GetTraefikInstanceResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.TraefikInstanceService.DeleteTraefikInstance
|
||||
*/
|
||||
deleteTraefikInstance: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteTraefikInstanceRequestSchema;
|
||||
output: typeof DeleteTraefikInstanceResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.TraefikInstanceService.ListTraefikInstances
|
||||
*/
|
||||
listTraefikInstances: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListTraefikInstancesRequestSchema;
|
||||
output: typeof ListTraefikInstancesResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_traefik_instance, 0);
|
||||
|
||||
|
||||
@@ -1,619 +1,590 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/user.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1/user.proto.
|
||||
*/
|
||||
export const file_mantrae_v1_user: GenFile =
|
||||
/*@__PURE__*/
|
||||
fileDesc(
|
||||
'ChVtYW50cmFlL3YxL3VzZXIucHJvdG8SCm1hbnRyYWUudjEikgIKBFVzZXISCgoCaWQYASABKAkSEAoIdXNlcm5hbWUYAiABKAkSEAoIcGFzc3dvcmQYAyABKAkSDQoFZW1haWwYBCABKAkSCwoDb3RwGAYgASgJEi4KCm90cF9leHBpcnkYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCmxhc3RfbG9naW4YCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCmNyZWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wInwKEExvZ2luVXNlclJlcXVlc3QSGwoIdXNlcm5hbWUYASABKAlCB7pIBHICEANIABIYCgVlbWFpbBgCIAEoCUIHukgEcgJgAUgAEhwKCHBhc3N3b3JkGAMgASgJQgq6SAfIAQFyAhAIQhMKCmlkZW50aWZpZXISBbpIAggBIjMKEUxvZ2luVXNlclJlc3BvbnNlEh4KBHVzZXIYASABKAsyEC5tYW50cmFlLnYxLlVzZXIiEwoRTG9nb3V0VXNlclJlcXVlc3QiFAoSTG9nb3V0VXNlclJlc3BvbnNlInUKEFZlcmlmeU9UUFJlcXVlc3QSGwoIdXNlcm5hbWUYASABKAlCB7pIBHICEANIABIYCgVlbWFpbBgCIAEoCUIHukgEcgJgAUgAEhUKA290cBgDIAEoCUIIukgFcgOYAQZCEwoKaWRlbnRpZmllchIFukgCCAEiMwoRVmVyaWZ5T1RQUmVzcG9uc2USHgoEdXNlchgBIAEoCzIQLm1hbnRyYWUudjEuVXNlciJcCg5TZW5kT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yEh0ubWFudHJhZS52MS5EZWxldGVVc2VyUmVxdWVzdBoeLm1hbnRyYWUudjEuRGVsZXRlVXNlclJlc3BvbnNlEk0KCUxpc3RVc2VycxIcLm1hbnRyYWUudjEuTGlzdFVzZXJzUmVxdWVzdBodLm1hbnRyYWUudjEuTGlzdFVzZXJzUmVzcG9uc2UiA5ACARJUCg1HZXRPSURDU3RhdHVzEiAubWFudHJhZS52MS5HZXRPSURDU3RhdHVzUmVxdWVzdBohLm1hbnRyYWUudjEuR2V0T0lEQ1N0YXR1c1Jlc3BvbnNlQqMBCg5jb20ubWFudHJhZS52MUIJVXNlclByb3RvUAFaPWdpdGh1Yi5jb20vbWl6dWNoaWxhYnMvbWFudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z',
|
||||
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
||||
);
|
||||
export const file_mantrae_v1_user: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChVtYW50cmFlL3YxL3VzZXIucHJvdG8SCm1hbnRyYWUudjEikgIKBFVzZXISCgoCaWQYASABKAkSEAoIdXNlcm5hbWUYAiABKAkSEAoIcGFzc3dvcmQYAyABKAkSDQoFZW1haWwYBCABKAkSCwoDb3RwGAYgASgJEi4KCm90cF9leHBpcnkYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCmxhc3RfbG9naW4YCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCmNyZWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wInwKEExvZ2luVXNlclJlcXVlc3QSGwoIdXNlcm5hbWUYASABKAlCB7pI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mlmeU9UUFJlcXVlc3QaHS5tYW50cmFlLnYxLlZlcmlmeU9UUFJlc3BvbnNlEkIKB1NlbmRPVFASGi5tYW50cmFlLnYxLlNlbmRPVFBSZXF1ZXN0GhsubWFudHJhZS52MS5TZW5kT1RQUmVzcG9uc2USRwoHR2V0VXNlchIaLm1hbnRyYWUudjEuR2V0VXNlclJlcXVlc3QaGy5tYW50cmFlLnYxLkdldFVzZXJSZXNwb25zZSIDkAIBEksKCkNyZWF0ZVVzZXISHS5tYW50cmFlLnYxLkNyZWF0ZVVzZXJSZXF1ZXN0Gh4ubWFudHJhZS52MS5DcmVhdGVVc2VyUmVzcG9uc2USSwoKVXBkYXRlVXNlchIdLm1hbnRyYWUudjEuVXBkYXRlVXNlclJlcXVlc3QaHi5tYW50cmFlLnYxLlVwZGF0ZVVzZXJSZXNwb25zZRJLCgpEZWxldGVVc2VyEh0ubWFudHJhZS52MS5EZWxldGVVc2VyUmVxdWVzdBoeLm1hbnRyYWUudjEuRGVsZXRlVXNlclJlc3BvbnNlEk0KCUxpc3RVc2VycxIcLm1hbnRyYWUudjEuTGlzdFVzZXJzUmVxdWVzdBodLm1hbnRyYWUudjEuTGlzdFVzZXJzUmVzcG9uc2UiA5ACARJUCg1HZXRPSURDU3RhdHVzEiAubWFudHJhZS52MS5HZXRPSURDU3RhdHVzUmVxdWVzdBohLm1hbnRyYWUudjEuR2V0T0lEQ1N0YXR1c1Jlc3BvbnNlQqMBCg5jb20ubWFudHJhZS52MUIJVXNlclByb3RvUAFaPWdpdGh1Yi5jb20vbWl6dWNoaWxhYnMvbWFudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.User
|
||||
*/
|
||||
export type User = Message<'mantrae.v1.User'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type User = Message<"mantrae.v1.User"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string username = 2;
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* @generated from field: string username = 2;
|
||||
*/
|
||||
username: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string password = 3;
|
||||
*/
|
||||
password: string;
|
||||
/**
|
||||
* @generated from field: string password = 3;
|
||||
*/
|
||||
password: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string email = 4;
|
||||
*/
|
||||
email: string;
|
||||
/**
|
||||
* @generated from field: string email = 4;
|
||||
*/
|
||||
email: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string otp = 6;
|
||||
*/
|
||||
otp: string;
|
||||
/**
|
||||
* @generated from field: string otp = 6;
|
||||
*/
|
||||
otp: string;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp otp_expiry = 7;
|
||||
*/
|
||||
otpExpiry?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp otp_expiry = 7;
|
||||
*/
|
||||
otpExpiry?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp last_login = 8;
|
||||
*/
|
||||
lastLogin?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp last_login = 8;
|
||||
*/
|
||||
lastLogin?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.User.
|
||||
* Use `create(UserSchema)` to create a new message.
|
||||
*/
|
||||
export const UserSchema: GenMessage<User> = /*@__PURE__*/ messageDesc(file_mantrae_v1_user, 0);
|
||||
export const UserSchema: GenMessage<User> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.LoginUserRequest
|
||||
*/
|
||||
export type LoginUserRequest = Message<'mantrae.v1.LoginUserRequest'> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.LoginUserRequest.identifier
|
||||
*/
|
||||
identifier:
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: 'username';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string email = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: 'email';
|
||||
}
|
||||
| { case: undefined; value?: undefined };
|
||||
export type LoginUserRequest = Message<"mantrae.v1.LoginUserRequest"> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.LoginUserRequest.identifier
|
||||
*/
|
||||
identifier: {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: "username";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string email = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: "email";
|
||||
} | { case: undefined; value?: undefined };
|
||||
|
||||
/**
|
||||
* @generated from field: string password = 3;
|
||||
*/
|
||||
password: string;
|
||||
/**
|
||||
* @generated from field: string password = 3;
|
||||
*/
|
||||
password: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.LoginUserRequest.
|
||||
* Use `create(LoginUserRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const LoginUserRequestSchema: GenMessage<LoginUserRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 1);
|
||||
export const LoginUserRequestSchema: GenMessage<LoginUserRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.LoginUserResponse
|
||||
*/
|
||||
export type LoginUserResponse = Message<'mantrae.v1.LoginUserResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
export type LoginUserResponse = Message<"mantrae.v1.LoginUserResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.LoginUserResponse.
|
||||
* Use `create(LoginUserResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const LoginUserResponseSchema: GenMessage<LoginUserResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 2);
|
||||
export const LoginUserResponseSchema: GenMessage<LoginUserResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.LogoutUserRequest
|
||||
*/
|
||||
export type LogoutUserRequest = Message<'mantrae.v1.LogoutUserRequest'> & {};
|
||||
export type LogoutUserRequest = Message<"mantrae.v1.LogoutUserRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.LogoutUserRequest.
|
||||
* Use `create(LogoutUserRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const LogoutUserRequestSchema: GenMessage<LogoutUserRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 3);
|
||||
export const LogoutUserRequestSchema: GenMessage<LogoutUserRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.LogoutUserResponse
|
||||
*/
|
||||
export type LogoutUserResponse = Message<'mantrae.v1.LogoutUserResponse'> & {};
|
||||
export type LogoutUserResponse = Message<"mantrae.v1.LogoutUserResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.LogoutUserResponse.
|
||||
* Use `create(LogoutUserResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const LogoutUserResponseSchema: GenMessage<LogoutUserResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 4);
|
||||
export const LogoutUserResponseSchema: GenMessage<LogoutUserResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.VerifyOTPRequest
|
||||
*/
|
||||
export type VerifyOTPRequest = Message<'mantrae.v1.VerifyOTPRequest'> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.VerifyOTPRequest.identifier
|
||||
*/
|
||||
identifier:
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: 'username';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string email = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: 'email';
|
||||
}
|
||||
| { case: undefined; value?: undefined };
|
||||
export type VerifyOTPRequest = Message<"mantrae.v1.VerifyOTPRequest"> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.VerifyOTPRequest.identifier
|
||||
*/
|
||||
identifier: {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: "username";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string email = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: "email";
|
||||
} | { case: undefined; value?: undefined };
|
||||
|
||||
/**
|
||||
* @generated from field: string otp = 3;
|
||||
*/
|
||||
otp: string;
|
||||
/**
|
||||
* @generated from field: string otp = 3;
|
||||
*/
|
||||
otp: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.VerifyOTPRequest.
|
||||
* Use `create(VerifyOTPRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const VerifyOTPRequestSchema: GenMessage<VerifyOTPRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 5);
|
||||
export const VerifyOTPRequestSchema: GenMessage<VerifyOTPRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 5);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.VerifyOTPResponse
|
||||
*/
|
||||
export type VerifyOTPResponse = Message<'mantrae.v1.VerifyOTPResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
export type VerifyOTPResponse = Message<"mantrae.v1.VerifyOTPResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.VerifyOTPResponse.
|
||||
* Use `create(VerifyOTPResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const VerifyOTPResponseSchema: GenMessage<VerifyOTPResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 6);
|
||||
export const VerifyOTPResponseSchema: GenMessage<VerifyOTPResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 6);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.SendOTPRequest
|
||||
*/
|
||||
export type SendOTPRequest = Message<'mantrae.v1.SendOTPRequest'> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.SendOTPRequest.identifier
|
||||
*/
|
||||
identifier:
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: 'username';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string email = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: 'email';
|
||||
}
|
||||
| { case: undefined; value?: undefined };
|
||||
export type SendOTPRequest = Message<"mantrae.v1.SendOTPRequest"> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.SendOTPRequest.identifier
|
||||
*/
|
||||
identifier: {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: "username";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string email = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: "email";
|
||||
} | { case: undefined; value?: undefined };
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.SendOTPRequest.
|
||||
* Use `create(SendOTPRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const SendOTPRequestSchema: GenMessage<SendOTPRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 7);
|
||||
export const SendOTPRequestSchema: GenMessage<SendOTPRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 7);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.SendOTPResponse
|
||||
*/
|
||||
export type SendOTPResponse = Message<'mantrae.v1.SendOTPResponse'> & {};
|
||||
export type SendOTPResponse = Message<"mantrae.v1.SendOTPResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.SendOTPResponse.
|
||||
* Use `create(SendOTPResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const SendOTPResponseSchema: GenMessage<SendOTPResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 8);
|
||||
export const SendOTPResponseSchema: GenMessage<SendOTPResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 8);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetUserRequest
|
||||
*/
|
||||
export type GetUserRequest = Message<'mantrae.v1.GetUserRequest'> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.GetUserRequest.identifier
|
||||
*/
|
||||
identifier:
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: 'id';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string username = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: 'username';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: string email = 3;
|
||||
*/
|
||||
value: string;
|
||||
case: 'email';
|
||||
}
|
||||
| { case: undefined; value?: undefined };
|
||||
export type GetUserRequest = Message<"mantrae.v1.GetUserRequest"> & {
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.GetUserRequest.identifier
|
||||
*/
|
||||
identifier: {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: "id";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string username = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: "username";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string email = 3;
|
||||
*/
|
||||
value: string;
|
||||
case: "email";
|
||||
} | { case: undefined; value?: undefined };
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetUserRequest.
|
||||
* Use `create(GetUserRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetUserRequestSchema: GenMessage<GetUserRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 9);
|
||||
export const GetUserRequestSchema: GenMessage<GetUserRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 9);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetUserResponse
|
||||
*/
|
||||
export type GetUserResponse = Message<'mantrae.v1.GetUserResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
export type GetUserResponse = Message<"mantrae.v1.GetUserResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetUserResponse.
|
||||
* Use `create(GetUserResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetUserResponseSchema: GenMessage<GetUserResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 10);
|
||||
export const GetUserResponseSchema: GenMessage<GetUserResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 10);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateUserRequest
|
||||
*/
|
||||
export type CreateUserRequest = Message<'mantrae.v1.CreateUserRequest'> & {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
username: string;
|
||||
export type CreateUserRequest = Message<"mantrae.v1.CreateUserRequest"> & {
|
||||
/**
|
||||
* @generated from field: string username = 1;
|
||||
*/
|
||||
username: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string password = 2;
|
||||
*/
|
||||
password: string;
|
||||
/**
|
||||
* @generated from field: string password = 2;
|
||||
*/
|
||||
password: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string email = 3;
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* @generated from field: optional string email = 3;
|
||||
*/
|
||||
email?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateUserRequest.
|
||||
* Use `create(CreateUserRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateUserRequestSchema: GenMessage<CreateUserRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 11);
|
||||
export const CreateUserRequestSchema: GenMessage<CreateUserRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 11);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.CreateUserResponse
|
||||
*/
|
||||
export type CreateUserResponse = Message<'mantrae.v1.CreateUserResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
export type CreateUserResponse = Message<"mantrae.v1.CreateUserResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.CreateUserResponse.
|
||||
* Use `create(CreateUserResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CreateUserResponseSchema: GenMessage<CreateUserResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 12);
|
||||
export const CreateUserResponseSchema: GenMessage<CreateUserResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 12);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateUserRequest
|
||||
*/
|
||||
export type UpdateUserRequest = Message<'mantrae.v1.UpdateUserRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type UpdateUserRequest = Message<"mantrae.v1.UpdateUserRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string username = 2;
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* @generated from field: string username = 2;
|
||||
*/
|
||||
username: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string email = 3;
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* @generated from field: optional string email = 3;
|
||||
*/
|
||||
email?: string;
|
||||
|
||||
/**
|
||||
* @generated from field: optional string password = 4;
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
* @generated from field: optional string password = 4;
|
||||
*/
|
||||
password?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateUserRequest.
|
||||
* Use `create(UpdateUserRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateUserRequestSchema: GenMessage<UpdateUserRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 13);
|
||||
export const UpdateUserRequestSchema: GenMessage<UpdateUserRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 13);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.UpdateUserResponse
|
||||
*/
|
||||
export type UpdateUserResponse = Message<'mantrae.v1.UpdateUserResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
export type UpdateUserResponse = Message<"mantrae.v1.UpdateUserResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.UpdateUserResponse.
|
||||
* Use `create(UpdateUserResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const UpdateUserResponseSchema: GenMessage<UpdateUserResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 14);
|
||||
export const UpdateUserResponseSchema: GenMessage<UpdateUserResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 14);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteUserRequest
|
||||
*/
|
||||
export type DeleteUserRequest = Message<'mantrae.v1.DeleteUserRequest'> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
export type DeleteUserRequest = Message<"mantrae.v1.DeleteUserRequest"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteUserRequest.
|
||||
* Use `create(DeleteUserRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteUserRequestSchema: GenMessage<DeleteUserRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 15);
|
||||
export const DeleteUserRequestSchema: GenMessage<DeleteUserRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 15);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.DeleteUserResponse
|
||||
*/
|
||||
export type DeleteUserResponse = Message<'mantrae.v1.DeleteUserResponse'> & {};
|
||||
export type DeleteUserResponse = Message<"mantrae.v1.DeleteUserResponse"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.DeleteUserResponse.
|
||||
* Use `create(DeleteUserResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const DeleteUserResponseSchema: GenMessage<DeleteUserResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 16);
|
||||
export const DeleteUserResponseSchema: GenMessage<DeleteUserResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 16);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListUsersRequest
|
||||
*/
|
||||
export type ListUsersRequest = Message<'mantrae.v1.ListUsersRequest'> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
export type ListUsersRequest = Message<"mantrae.v1.ListUsersRequest"> & {
|
||||
/**
|
||||
* @generated from field: optional int64 limit = 1;
|
||||
*/
|
||||
limit?: bigint;
|
||||
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
/**
|
||||
* @generated from field: optional int64 offset = 2;
|
||||
*/
|
||||
offset?: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListUsersRequest.
|
||||
* Use `create(ListUsersRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListUsersRequestSchema: GenMessage<ListUsersRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 17);
|
||||
export const ListUsersRequestSchema: GenMessage<ListUsersRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 17);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.ListUsersResponse
|
||||
*/
|
||||
export type ListUsersResponse = Message<'mantrae.v1.ListUsersResponse'> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.User users = 1;
|
||||
*/
|
||||
users: User[];
|
||||
export type ListUsersResponse = Message<"mantrae.v1.ListUsersResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated mantrae.v1.User users = 1;
|
||||
*/
|
||||
users: User[];
|
||||
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
/**
|
||||
* @generated from field: int64 total_count = 2;
|
||||
*/
|
||||
totalCount: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.ListUsersResponse.
|
||||
* Use `create(ListUsersResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListUsersResponseSchema: GenMessage<ListUsersResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 18);
|
||||
export const ListUsersResponseSchema: GenMessage<ListUsersResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 18);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetOIDCStatusRequest
|
||||
*/
|
||||
export type GetOIDCStatusRequest = Message<'mantrae.v1.GetOIDCStatusRequest'> & {};
|
||||
export type GetOIDCStatusRequest = Message<"mantrae.v1.GetOIDCStatusRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetOIDCStatusRequest.
|
||||
* Use `create(GetOIDCStatusRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetOIDCStatusRequestSchema: GenMessage<GetOIDCStatusRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 19);
|
||||
export const GetOIDCStatusRequestSchema: GenMessage<GetOIDCStatusRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 19);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetOIDCStatusResponse
|
||||
*/
|
||||
export type GetOIDCStatusResponse = Message<'mantrae.v1.GetOIDCStatusResponse'> & {
|
||||
/**
|
||||
* @generated from field: bool oidc_enabled = 1;
|
||||
*/
|
||||
oidcEnabled: boolean;
|
||||
export type GetOIDCStatusResponse = Message<"mantrae.v1.GetOIDCStatusResponse"> & {
|
||||
/**
|
||||
* @generated from field: bool oidc_enabled = 1;
|
||||
*/
|
||||
oidcEnabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: bool login_enabled = 2;
|
||||
*/
|
||||
loginEnabled: boolean;
|
||||
/**
|
||||
* @generated from field: bool login_enabled = 2;
|
||||
*/
|
||||
loginEnabled: boolean;
|
||||
|
||||
/**
|
||||
* @generated from field: string provider = 3;
|
||||
*/
|
||||
provider: string;
|
||||
/**
|
||||
* @generated from field: string provider = 3;
|
||||
*/
|
||||
provider: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetOIDCStatusResponse.
|
||||
* Use `create(GetOIDCStatusResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetOIDCStatusResponseSchema: GenMessage<GetOIDCStatusResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 20);
|
||||
export const GetOIDCStatusResponseSchema: GenMessage<GetOIDCStatusResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_user, 20);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.UserService
|
||||
*/
|
||||
export const UserService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.LoginUser
|
||||
*/
|
||||
loginUser: {
|
||||
methodKind: 'unary';
|
||||
input: typeof LoginUserRequestSchema;
|
||||
output: typeof LoginUserResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.LogoutUser
|
||||
*/
|
||||
logoutUser: {
|
||||
methodKind: 'unary';
|
||||
input: typeof LogoutUserRequestSchema;
|
||||
output: typeof LogoutUserResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.VerifyOTP
|
||||
*/
|
||||
verifyOTP: {
|
||||
methodKind: 'unary';
|
||||
input: typeof VerifyOTPRequestSchema;
|
||||
output: typeof VerifyOTPResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.SendOTP
|
||||
*/
|
||||
sendOTP: {
|
||||
methodKind: 'unary';
|
||||
input: typeof SendOTPRequestSchema;
|
||||
output: typeof SendOTPResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.GetUser
|
||||
*/
|
||||
getUser: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetUserRequestSchema;
|
||||
output: typeof GetUserResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.CreateUser
|
||||
*/
|
||||
createUser: {
|
||||
methodKind: 'unary';
|
||||
input: typeof CreateUserRequestSchema;
|
||||
output: typeof CreateUserResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.UpdateUser
|
||||
*/
|
||||
updateUser: {
|
||||
methodKind: 'unary';
|
||||
input: typeof UpdateUserRequestSchema;
|
||||
output: typeof UpdateUserResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.DeleteUser
|
||||
*/
|
||||
deleteUser: {
|
||||
methodKind: 'unary';
|
||||
input: typeof DeleteUserRequestSchema;
|
||||
output: typeof DeleteUserResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.ListUsers
|
||||
*/
|
||||
listUsers: {
|
||||
methodKind: 'unary';
|
||||
input: typeof ListUsersRequestSchema;
|
||||
output: typeof ListUsersResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.GetOIDCStatus
|
||||
*/
|
||||
getOIDCStatus: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetOIDCStatusRequestSchema;
|
||||
output: typeof GetOIDCStatusResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_user, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.LoginUser
|
||||
*/
|
||||
loginUser: {
|
||||
methodKind: "unary";
|
||||
input: typeof LoginUserRequestSchema;
|
||||
output: typeof LoginUserResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.LogoutUser
|
||||
*/
|
||||
logoutUser: {
|
||||
methodKind: "unary";
|
||||
input: typeof LogoutUserRequestSchema;
|
||||
output: typeof LogoutUserResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.VerifyOTP
|
||||
*/
|
||||
verifyOTP: {
|
||||
methodKind: "unary";
|
||||
input: typeof VerifyOTPRequestSchema;
|
||||
output: typeof VerifyOTPResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.SendOTP
|
||||
*/
|
||||
sendOTP: {
|
||||
methodKind: "unary";
|
||||
input: typeof SendOTPRequestSchema;
|
||||
output: typeof SendOTPResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.GetUser
|
||||
*/
|
||||
getUser: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetUserRequestSchema;
|
||||
output: typeof GetUserResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.CreateUser
|
||||
*/
|
||||
createUser: {
|
||||
methodKind: "unary";
|
||||
input: typeof CreateUserRequestSchema;
|
||||
output: typeof CreateUserResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.UpdateUser
|
||||
*/
|
||||
updateUser: {
|
||||
methodKind: "unary";
|
||||
input: typeof UpdateUserRequestSchema;
|
||||
output: typeof UpdateUserResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.DeleteUser
|
||||
*/
|
||||
deleteUser: {
|
||||
methodKind: "unary";
|
||||
input: typeof DeleteUserRequestSchema;
|
||||
output: typeof DeleteUserResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.ListUsers
|
||||
*/
|
||||
listUsers: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListUsersRequestSchema;
|
||||
output: typeof ListUsersResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UserService.GetOIDCStatus
|
||||
*/
|
||||
getOIDCStatus: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetOIDCStatusRequestSchema;
|
||||
output: typeof GetOIDCStatusResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_user, 0);
|
||||
|
||||
|
||||
@@ -1,291 +1,261 @@
|
||||
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
|
||||
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts"
|
||||
// @generated from file mantrae/v1/util.proto (package mantrae.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
|
||||
import type { GenEnum, GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
||||
import { enumDesc, fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
||||
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
||||
import type { Agent } from './agent_pb';
|
||||
import { file_mantrae_v1_agent } from './agent_pb';
|
||||
import type { DnsProvider } from './dns_provider_pb';
|
||||
import { file_mantrae_v1_dns_provider } from './dns_provider_pb';
|
||||
import type { EntryPoint } from './entry_point_pb';
|
||||
import { file_mantrae_v1_entry_point } from './entry_point_pb';
|
||||
import type { Middleware } from './middleware_pb';
|
||||
import { file_mantrae_v1_middleware } from './middleware_pb';
|
||||
import type { Profile } from './profile_pb';
|
||||
import { file_mantrae_v1_profile } from './profile_pb';
|
||||
import type { Router } from './router_pb';
|
||||
import { file_mantrae_v1_router } from './router_pb';
|
||||
import type { ServersTransport } from './servers_transport_pb';
|
||||
import { file_mantrae_v1_servers_transport } from './servers_transport_pb';
|
||||
import type { Service } from './service_pb';
|
||||
import { file_mantrae_v1_service } from './service_pb';
|
||||
import type { TraefikInstance } from './traefik_instance_pb';
|
||||
import { file_mantrae_v1_traefik_instance } from './traefik_instance_pb';
|
||||
import type { User } from './user_pb';
|
||||
import { file_mantrae_v1_user } from './user_pb';
|
||||
import type { Message } from '@bufbuild/protobuf';
|
||||
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
||||
import type { Agent } from "./agent_pb";
|
||||
import { file_mantrae_v1_agent } from "./agent_pb";
|
||||
import type { DnsProvider } from "./dns_provider_pb";
|
||||
import { file_mantrae_v1_dns_provider } from "./dns_provider_pb";
|
||||
import type { EntryPoint } from "./entry_point_pb";
|
||||
import { file_mantrae_v1_entry_point } from "./entry_point_pb";
|
||||
import type { Middleware } from "./middleware_pb";
|
||||
import { file_mantrae_v1_middleware } from "./middleware_pb";
|
||||
import type { Profile } from "./profile_pb";
|
||||
import { file_mantrae_v1_profile } from "./profile_pb";
|
||||
import type { Router } from "./router_pb";
|
||||
import { file_mantrae_v1_router } from "./router_pb";
|
||||
import type { ServersTransport } from "./servers_transport_pb";
|
||||
import { file_mantrae_v1_servers_transport } from "./servers_transport_pb";
|
||||
import type { Service } from "./service_pb";
|
||||
import { file_mantrae_v1_service } from "./service_pb";
|
||||
import type { TraefikInstance } from "./traefik_instance_pb";
|
||||
import { file_mantrae_v1_traefik_instance } from "./traefik_instance_pb";
|
||||
import type { User } from "./user_pb";
|
||||
import { file_mantrae_v1_user } from "./user_pb";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Describes the file mantrae/v1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W9uEhwKGEVWRU5UX0FDVElPTl9VTlNQRUNJRklFRBAAEhgKFEVWRU5UX0FDVElPTl9DUkVBVEVEEAESGAoURVZFTlRfQUNUSU9OX1VQREFURUQQAhIYChRFVkVOVF9BQ1RJT05fREVMRVRFRBADMvwBCgtVdGlsU2VydmljZRJLCgpHZXRWZXJzaW9uEh0ubWFudHJhZS52MS5HZXRWZXJzaW9uUmVxdWVzdBoeLm1hbnRyYWUudjEuR2V0VmVyc2lvblJlc3BvbnNlEk4KC0dldFB1YmxpY0lQEh4ubWFudHJhZS52MS5HZXRQdWJsaWNJUFJlcXVlc3QaHy5tYW50cmFlLnYxLkdldFB1YmxpY0lQUmVzcG9uc2USUAoLRXZlbnRTdHJlYW0SHi5tYW50cmFlLnYxLkV2ZW50U3RyZWFtUmVxdWVzdBofLm1hbnRyYWUudjEuRXZlbnRTdHJlYW1SZXNwb25zZTABQqMBCg5jb20ubWFudHJhZS52MUIJVXRpbFByb3RvUAFaPWdpdGh1Yi5jb20vbWl6dWNoaWxhYnMvbWFudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z',
|
||||
[
|
||||
file_buf_validate_validate,
|
||||
file_mantrae_v1_agent,
|
||||
file_mantrae_v1_dns_provider,
|
||||
file_mantrae_v1_entry_point,
|
||||
file_mantrae_v1_middleware,
|
||||
file_mantrae_v1_profile,
|
||||
file_mantrae_v1_router,
|
||||
file_mantrae_v1_servers_transport,
|
||||
file_mantrae_v1_service,
|
||||
file_mantrae_v1_traefik_instance,
|
||||
file_mantrae_v1_user
|
||||
]
|
||||
);
|
||||
export const file_mantrae_v1_util: GenFile = /*@__PURE__*/
|
||||
fileDesc("ChVtYW50cmFlL3YxL3V0aWwucHJvdG8SCm1hbnRyYWUudjEiEwoRR2V0VmVyc2lvblJl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vwBCgtVdGlsU2VydmljZRJLCgpHZXRWZXJzaW9uEh0ubWFudHJhZS52MS5HZXRWZXJzaW9uUmVxdWVzdBoeLm1hbnRyYWUudjEuR2V0VmVyc2lvblJlc3BvbnNlEk4KC0dldFB1YmxpY0lQEh4ubWFudHJhZS52MS5HZXRQdWJsaWNJUFJlcXVlc3QaHy5tYW50cmFlLnYxLkdldFB1YmxpY0lQUmVzcG9uc2USUAoLRXZlbnRTdHJlYW0SHi5tYW50cmFlLnYxLkV2ZW50U3RyZWFtUmVxdWVzdBofLm1hbnRyYWUudjEuRXZlbnRTdHJlYW1SZXNwb25zZTABQqMBCg5jb20ubWFudHJhZS52MUIJVXRpbFByb3RvUAFaPWdpdGh1Yi5jb20vbWl6dWNoaWxhYnMvbWFudHJhZS9wcm90by9nZW4vbWFudHJhZS92MTttYW50cmFldjGiAgNNWFiqAgpNYW50cmFlLlYxygIKTWFudHJhZVxWMeICFk1hbnRyYWVcVjFcR1BCTWV0YWRhdGHqAgtNYW50cmFlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_mantrae_v1_agent, file_mantrae_v1_dns_provider, file_mantrae_v1_entry_point, file_mantrae_v1_middleware, file_mantrae_v1_profile, file_mantrae_v1_router, file_mantrae_v1_servers_transport, file_mantrae_v1_service, file_mantrae_v1_traefik_instance, file_mantrae_v1_user]);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetVersionRequest
|
||||
*/
|
||||
export type GetVersionRequest = Message<'mantrae.v1.GetVersionRequest'> & {};
|
||||
export type GetVersionRequest = Message<"mantrae.v1.GetVersionRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetVersionRequest.
|
||||
* Use `create(GetVersionRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetVersionRequestSchema: GenMessage<GetVersionRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 0);
|
||||
export const GetVersionRequestSchema: GenMessage<GetVersionRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 0);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetVersionResponse
|
||||
*/
|
||||
export type GetVersionResponse = Message<'mantrae.v1.GetVersionResponse'> & {
|
||||
/**
|
||||
* @generated from field: string version = 1;
|
||||
*/
|
||||
version: string;
|
||||
export type GetVersionResponse = Message<"mantrae.v1.GetVersionResponse"> & {
|
||||
/**
|
||||
* @generated from field: string version = 1;
|
||||
*/
|
||||
version: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetVersionResponse.
|
||||
* Use `create(GetVersionResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetVersionResponseSchema: GenMessage<GetVersionResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 1);
|
||||
export const GetVersionResponseSchema: GenMessage<GetVersionResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 1);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetPublicIPRequest
|
||||
*/
|
||||
export type GetPublicIPRequest = Message<'mantrae.v1.GetPublicIPRequest'> & {};
|
||||
export type GetPublicIPRequest = Message<"mantrae.v1.GetPublicIPRequest"> & {
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetPublicIPRequest.
|
||||
* Use `create(GetPublicIPRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetPublicIPRequestSchema: GenMessage<GetPublicIPRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 2);
|
||||
export const GetPublicIPRequestSchema: GenMessage<GetPublicIPRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 2);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.GetPublicIPResponse
|
||||
*/
|
||||
export type GetPublicIPResponse = Message<'mantrae.v1.GetPublicIPResponse'> & {
|
||||
/**
|
||||
* @generated from field: string ipv4 = 1;
|
||||
*/
|
||||
ipv4: string;
|
||||
export type GetPublicIPResponse = Message<"mantrae.v1.GetPublicIPResponse"> & {
|
||||
/**
|
||||
* @generated from field: string ipv4 = 1;
|
||||
*/
|
||||
ipv4: string;
|
||||
|
||||
/**
|
||||
* @generated from field: string ipv6 = 2;
|
||||
*/
|
||||
ipv6: string;
|
||||
/**
|
||||
* @generated from field: string ipv6 = 2;
|
||||
*/
|
||||
ipv6: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.GetPublicIPResponse.
|
||||
* Use `create(GetPublicIPResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetPublicIPResponseSchema: GenMessage<GetPublicIPResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 3);
|
||||
export const GetPublicIPResponseSchema: GenMessage<GetPublicIPResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 3);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.EventStreamRequest
|
||||
*/
|
||||
export type EventStreamRequest = Message<'mantrae.v1.EventStreamRequest'> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
export type EventStreamRequest = Message<"mantrae.v1.EventStreamRequest"> & {
|
||||
/**
|
||||
* @generated from field: int64 profile_id = 1;
|
||||
*/
|
||||
profileId: bigint;
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.EventStreamRequest.
|
||||
* Use `create(EventStreamRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const EventStreamRequestSchema: GenMessage<EventStreamRequest> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 4);
|
||||
export const EventStreamRequestSchema: GenMessage<EventStreamRequest> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 4);
|
||||
|
||||
/**
|
||||
* @generated from message mantrae.v1.EventStreamResponse
|
||||
*/
|
||||
export type EventStreamResponse = Message<'mantrae.v1.EventStreamResponse'> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EventAction action = 1;
|
||||
*/
|
||||
action: EventAction;
|
||||
export type EventStreamResponse = Message<"mantrae.v1.EventStreamResponse"> & {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EventAction action = 1;
|
||||
*/
|
||||
action: EventAction;
|
||||
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.EventStreamResponse.data
|
||||
*/
|
||||
data:
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 2;
|
||||
*/
|
||||
value: Profile;
|
||||
case: 'profile';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 3;
|
||||
*/
|
||||
value: User;
|
||||
case: 'user';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 4;
|
||||
*/
|
||||
value: Agent;
|
||||
case: 'agent';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 5;
|
||||
*/
|
||||
value: DnsProvider;
|
||||
case: 'dnsProvider';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.TraefikInstance traefik_instance = 6;
|
||||
*/
|
||||
value: TraefikInstance;
|
||||
case: 'traefikInstance';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 7;
|
||||
*/
|
||||
value: Router;
|
||||
case: 'router';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 8;
|
||||
*/
|
||||
value: Service;
|
||||
case: 'service';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 9;
|
||||
*/
|
||||
value: Middleware;
|
||||
case: 'middleware';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 10;
|
||||
*/
|
||||
value: ServersTransport;
|
||||
case: 'serversTransport';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 11;
|
||||
*/
|
||||
value: EntryPoint;
|
||||
case: 'entryPoint';
|
||||
}
|
||||
| { case: undefined; value?: undefined };
|
||||
/**
|
||||
* @generated from oneof mantrae.v1.EventStreamResponse.data
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Profile profile = 2;
|
||||
*/
|
||||
value: Profile;
|
||||
case: "profile";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.User user = 3;
|
||||
*/
|
||||
value: User;
|
||||
case: "user";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Agent agent = 4;
|
||||
*/
|
||||
value: Agent;
|
||||
case: "agent";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.DnsProvider dns_provider = 5;
|
||||
*/
|
||||
value: DnsProvider;
|
||||
case: "dnsProvider";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.TraefikInstance traefik_instance = 6;
|
||||
*/
|
||||
value: TraefikInstance;
|
||||
case: "traefikInstance";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Router router = 7;
|
||||
*/
|
||||
value: Router;
|
||||
case: "router";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Service service = 8;
|
||||
*/
|
||||
value: Service;
|
||||
case: "service";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.Middleware middleware = 9;
|
||||
*/
|
||||
value: Middleware;
|
||||
case: "middleware";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.ServersTransport servers_transport = 10;
|
||||
*/
|
||||
value: ServersTransport;
|
||||
case: "serversTransport";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: mantrae.v1.EntryPoint entry_point = 11;
|
||||
*/
|
||||
value: EntryPoint;
|
||||
case: "entryPoint";
|
||||
} | { case: undefined; value?: undefined };
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes the message mantrae.v1.EventStreamResponse.
|
||||
* Use `create(EventStreamResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const EventStreamResponseSchema: GenMessage<EventStreamResponse> =
|
||||
/*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 5);
|
||||
export const EventStreamResponseSchema: GenMessage<EventStreamResponse> = /*@__PURE__*/
|
||||
messageDesc(file_mantrae_v1_util, 5);
|
||||
|
||||
/**
|
||||
* @generated from enum mantrae.v1.EventAction
|
||||
*/
|
||||
export enum EventAction {
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_CREATED = 1;
|
||||
*/
|
||||
CREATED = 1,
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_CREATED = 1;
|
||||
*/
|
||||
CREATED = 1,
|
||||
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_UPDATED = 2;
|
||||
*/
|
||||
UPDATED = 2,
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_UPDATED = 2;
|
||||
*/
|
||||
UPDATED = 2,
|
||||
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_DELETED = 3;
|
||||
*/
|
||||
DELETED = 3
|
||||
/**
|
||||
* @generated from enum value: EVENT_ACTION_DELETED = 3;
|
||||
*/
|
||||
DELETED = 3,
|
||||
}
|
||||
|
||||
/**
|
||||
* Describes the enum mantrae.v1.EventAction.
|
||||
*/
|
||||
export const EventActionSchema: GenEnum<EventAction> =
|
||||
/*@__PURE__*/
|
||||
enumDesc(file_mantrae_v1_util, 0);
|
||||
export const EventActionSchema: GenEnum<EventAction> = /*@__PURE__*/
|
||||
enumDesc(file_mantrae_v1_util, 0);
|
||||
|
||||
/**
|
||||
* @generated from service mantrae.v1.UtilService
|
||||
*/
|
||||
export const UtilService: GenService<{
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UtilService.GetVersion
|
||||
*/
|
||||
getVersion: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetVersionRequestSchema;
|
||||
output: typeof GetVersionResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UtilService.GetPublicIP
|
||||
*/
|
||||
getPublicIP: {
|
||||
methodKind: 'unary';
|
||||
input: typeof GetPublicIPRequestSchema;
|
||||
output: typeof GetPublicIPResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UtilService.EventStream
|
||||
*/
|
||||
eventStream: {
|
||||
methodKind: 'server_streaming';
|
||||
input: typeof EventStreamRequestSchema;
|
||||
output: typeof EventStreamResponseSchema;
|
||||
};
|
||||
}> = /*@__PURE__*/ serviceDesc(file_mantrae_v1_util, 0);
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UtilService.GetVersion
|
||||
*/
|
||||
getVersion: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetVersionRequestSchema;
|
||||
output: typeof GetVersionResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UtilService.GetPublicIP
|
||||
*/
|
||||
getPublicIP: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetPublicIPRequestSchema;
|
||||
output: typeof GetPublicIPResponseSchema;
|
||||
},
|
||||
/**
|
||||
* @generated from rpc mantrae.v1.UtilService.EventStream
|
||||
*/
|
||||
eventStream: {
|
||||
methodKind: "server_streaming";
|
||||
input: typeof EventStreamRequestSchema;
|
||||
output: typeof EventStreamResponseSchema;
|
||||
},
|
||||
}> = /*@__PURE__*/
|
||||
serviceDesc(file_mantrae_v1_util, 0);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,9 @@
|
||||
import { env } from '$env/dynamic/public';
|
||||
import { createLocalStorage } from '$lib/storage.svelte';
|
||||
|
||||
export const DEFAULT_URL = import.meta.env.PROD
|
||||
? window?.location?.origin || '/'
|
||||
: `http://127.0.0.1:3000`;
|
||||
const fallbackURL = import.meta.env.PROD ? window?.location?.origin : 'http://localhost:3000';
|
||||
|
||||
export const baseURL = createLocalStorage('base_url', DEFAULT_URL);
|
||||
export const BackendURL = env.PUBLIC_BACKEND_URL || fallbackURL;
|
||||
export const pageIndex = createLocalStorage('page_index', 0);
|
||||
export const pageSize = createLocalStorage('page_size', 10);
|
||||
export const routerColumns = createLocalStorage('router_columns', []);
|
||||
|
||||
@@ -12,45 +12,28 @@ export const trailingSlash = 'always';
|
||||
|
||||
export const load: LayoutLoad = async ({ url, fetch }) => {
|
||||
const currentPath = url.pathname;
|
||||
const isPublic = currentPath.startsWith('/login') || currentPath.startsWith('/welcome');
|
||||
const isPublic = currentPath.startsWith('/login');
|
||||
|
||||
const healthy = await checkHealth(fetch);
|
||||
if (!healthy) {
|
||||
// No backend, force redirect to welcome screen to enter backend URL
|
||||
if (currentPath !== '/welcome') {
|
||||
await goto('/welcome');
|
||||
user.clear();
|
||||
return {};
|
||||
}
|
||||
} else {
|
||||
// Backend reachable
|
||||
if (currentPath === '/welcome') {
|
||||
// Backend is back, redirect from welcome to login
|
||||
await goto('/login');
|
||||
return {};
|
||||
try {
|
||||
const userClient = useClient(UserService, fetch);
|
||||
const resUser = await userClient.getUser({});
|
||||
if (!resUser.user) throw new Error('Authentication failed');
|
||||
user.value = resUser.user;
|
||||
|
||||
const profileClient = useClient(ProfileService, fetch);
|
||||
if (!profile.id) {
|
||||
const response = await profileClient.listProfiles({});
|
||||
profile.value = response.profiles[0];
|
||||
} else {
|
||||
const response = await profileClient.getProfile({ id: profile.id });
|
||||
if (!response.profile) throw new Error('Profile not found');
|
||||
profile.value = response.profile;
|
||||
}
|
||||
|
||||
try {
|
||||
const userClient = useClient(UserService, fetch);
|
||||
const resUser = await userClient.getUser({});
|
||||
if (!resUser.user) throw new Error('Authentication failed');
|
||||
user.value = resUser.user;
|
||||
|
||||
const profileClient = useClient(ProfileService, fetch);
|
||||
if (!profile.id) {
|
||||
const response = await profileClient.listProfiles({});
|
||||
profile.value = response.profiles[0];
|
||||
} else {
|
||||
const response = await profileClient.getProfile({ id: profile.id });
|
||||
if (!response.profile) throw new Error('Profile not found');
|
||||
profile.value = response.profile;
|
||||
}
|
||||
|
||||
if (isPublic) await goto('/');
|
||||
} catch (_) {
|
||||
user.clear();
|
||||
profile.clear();
|
||||
if (!isPublic) await goto('/login');
|
||||
}
|
||||
if (isPublic) await goto('/');
|
||||
} catch (_) {
|
||||
user.clear();
|
||||
profile.clear();
|
||||
if (!isPublic) await goto('/login');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
</div>
|
||||
</Card.Content>
|
||||
<div
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-gradient-to-bl from-primary/5 to-transparent"
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-linear-to-bl from-primary/5 to-transparent"
|
||||
></div>
|
||||
</Card.Root>
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
</div>
|
||||
</Card.Content>
|
||||
<div
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-gradient-to-bl from-blue-500/5 to-transparent"
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-linear-to-bl from-blue-500/5 to-transparent"
|
||||
></div>
|
||||
</Card.Root>
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
</div>
|
||||
</Card.Content>
|
||||
<div
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-gradient-to-bl from-green-500/5 to-transparent"
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-linear-to-bl from-green-500/5 to-transparent"
|
||||
></div>
|
||||
</Card.Root>
|
||||
|
||||
@@ -206,13 +206,13 @@
|
||||
</div>
|
||||
</Card.Content>
|
||||
<div
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-gradient-to-bl from-purple-500/5 to-transparent"
|
||||
class="absolute top-0 right-0 h-16 w-16 rounded-bl-full bg-linear-to-bl from-purple-500/5 to-transparent"
|
||||
></div>
|
||||
</Card.Root>
|
||||
</div>
|
||||
|
||||
<!-- Configuration Overview -->
|
||||
<div class="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
|
||||
<div class={'grid gap-6 md:grid-cols-2' + ($traefikInstances?.length ? ' lg:grid-cols-3' : '')}>
|
||||
<!-- Routers Overview -->
|
||||
<Card.Root>
|
||||
<Card.Header>
|
||||
@@ -287,30 +287,32 @@
|
||||
</Card.Root>
|
||||
|
||||
<!-- Instances Overview -->
|
||||
<Card.Root>
|
||||
<Card.Header class="flex items-center justify-between">
|
||||
<Card.Title class="flex items-center gap-2">
|
||||
<Server class="h-5 w-5" />
|
||||
Traefik Instances
|
||||
</Card.Title>
|
||||
<Badge variant="secondary">{$traefikInstances?.length}</Badge>
|
||||
</Card.Header>
|
||||
<Card.Content class="space-y-4">
|
||||
<div class="max-h-64 space-y-2 overflow-y-auto pr-2">
|
||||
{#each $traefikInstances || [] as instance (instance.id)}
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="h-3 w-3 rounded-full bg-green-500"></div>
|
||||
<span class="text-sm">{instance.name}</span>
|
||||
{#if $traefikInstances?.length}
|
||||
<Card.Root>
|
||||
<Card.Header class="flex items-center justify-between">
|
||||
<Card.Title class="flex items-center gap-2">
|
||||
<Server class="h-5 w-5" />
|
||||
Traefik Instances
|
||||
</Card.Title>
|
||||
<Badge variant="secondary">{$traefikInstances?.length}</Badge>
|
||||
</Card.Header>
|
||||
<Card.Content class="space-y-4">
|
||||
<div class="max-h-64 space-y-2 overflow-y-auto pr-2">
|
||||
{#each $traefikInstances || [] as instance (instance.id)}
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="h-3 w-3 rounded-full bg-green-500"></div>
|
||||
<span class="text-sm">{instance.name}</span>
|
||||
</div>
|
||||
<Badge variant="secondary">
|
||||
{instance.url}
|
||||
</Badge>
|
||||
</div>
|
||||
<Badge variant="secondary">
|
||||
{instance.url}
|
||||
</Badge>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
</Card.Content>
|
||||
</Card.Root>
|
||||
{/each}
|
||||
</div>
|
||||
</Card.Content>
|
||||
</Card.Root>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- Profile Details and Activity -->
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
<script lang="ts">
|
||||
import * as Card from '$lib/components/ui/card/index.js';
|
||||
import { Button } from '$lib/components/ui/button/index.js';
|
||||
import { Input } from '$lib/components/ui/input/index.js';
|
||||
import { Label } from '$lib/components/ui/label/index.js';
|
||||
import { Badge } from '$lib/components/ui/badge/index.js';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { goto } from '$app/navigation';
|
||||
import { checkHealth } from '$lib/api';
|
||||
import { baseURL } from '$lib/stores/common';
|
||||
import { Loader } from '@lucide/svelte';
|
||||
import { onDestroy, onMount } from 'svelte';
|
||||
|
||||
let url = $state(baseURL.value ?? '');
|
||||
let isChecking = $state(false);
|
||||
let isHealthy = $state(false);
|
||||
let reconnectTimer = $state<ReturnType<typeof setInterval> | null>(null);
|
||||
|
||||
const silentCheckConnection = async () => {
|
||||
if (isChecking) return; // Don't run if already checking
|
||||
|
||||
try {
|
||||
const healthy = await checkHealth();
|
||||
isHealthy = healthy;
|
||||
|
||||
if (healthy && reconnectTimer) {
|
||||
toast.success('Backend reconnected!');
|
||||
clearInterval(reconnectTimer);
|
||||
reconnectTimer = null;
|
||||
goto('/login');
|
||||
}
|
||||
} catch (_) {
|
||||
isHealthy = false;
|
||||
}
|
||||
};
|
||||
|
||||
const checkConnection = async (testUrl?: string) => {
|
||||
isChecking = true;
|
||||
const urlToTest = testUrl || url;
|
||||
|
||||
try {
|
||||
// Temporarily update baseURL for health check
|
||||
const originalUrl = baseURL.value;
|
||||
baseURL.value = urlToTest;
|
||||
|
||||
const healthy = await checkHealth();
|
||||
isHealthy = healthy;
|
||||
|
||||
if (healthy) {
|
||||
toast.success('Backend connected successfully!');
|
||||
goto('/login');
|
||||
} else {
|
||||
baseURL.value = originalUrl; // Restore if failed
|
||||
toast.error('Unable to connect to backend');
|
||||
}
|
||||
} catch (_) {
|
||||
toast.error('Connection failed');
|
||||
isHealthy = false;
|
||||
} finally {
|
||||
isChecking = false;
|
||||
}
|
||||
};
|
||||
|
||||
const handleSave = () => {
|
||||
if (!url.trim()) {
|
||||
toast.error('Please enter a backend URL');
|
||||
return;
|
||||
}
|
||||
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
||||
url = `http://${url}`;
|
||||
}
|
||||
|
||||
baseURL.value = url;
|
||||
checkConnection(url);
|
||||
};
|
||||
|
||||
const handleKeydown = (e: KeyboardEvent) => {
|
||||
if (e.key === 'Enter') {
|
||||
handleSave();
|
||||
}
|
||||
};
|
||||
|
||||
// Check initial connection status
|
||||
$effect(() => {
|
||||
checkConnection(baseURL.value);
|
||||
});
|
||||
|
||||
onMount(() => {
|
||||
reconnectTimer = setInterval(() => {
|
||||
silentCheckConnection();
|
||||
}, 5000);
|
||||
});
|
||||
onDestroy(() => {
|
||||
if (reconnectTimer) {
|
||||
clearInterval(reconnectTimer);
|
||||
reconnectTimer = null;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Welcome - Mantrae</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="Configure your Mantrae server connection to get started with reverse proxy management"
|
||||
/>
|
||||
</svelte:head>
|
||||
|
||||
<Card.Root class="max-w-md sm:min-w-[350px]">
|
||||
<Card.Header class="flex flex-col items-center gap-3 text-center">
|
||||
<div class="flex items-center gap-2">
|
||||
<Card.Title class="text-2xl font-bold">Server Configuration</Card.Title>
|
||||
</div>
|
||||
|
||||
<Badge variant={isHealthy ? 'default' : 'destructive'}>
|
||||
{#if isChecking}
|
||||
Checking connection...
|
||||
{:else if isHealthy}
|
||||
Connected
|
||||
{:else}
|
||||
Disconnected
|
||||
{/if}
|
||||
</Badge>
|
||||
|
||||
<Card.Description class="text-center">
|
||||
Enter the URL where your backend server is running.
|
||||
</Card.Description>
|
||||
</Card.Header>
|
||||
|
||||
<Card.Content class="space-y-4">
|
||||
<div>
|
||||
<div class="space-y-2">
|
||||
<Label for="backend-url">Backend URL</Label>
|
||||
<Input
|
||||
id="backend-url"
|
||||
type="url"
|
||||
placeholder="http://localhost:3000"
|
||||
bind:value={url}
|
||||
onkeydown={handleKeydown}
|
||||
disabled={isChecking}
|
||||
/>
|
||||
</div>
|
||||
{#if !isHealthy && reconnectTimer}
|
||||
<small class="animate-pulse text-muted-foreground">Attempting to reconnect...</small>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<Button class="w-full" onclick={handleSave} disabled={isChecking || !url.trim()}>
|
||||
{#if isChecking}
|
||||
<Loader class="mr-2 h-4 w-4 animate-spin" />
|
||||
Connecting...
|
||||
{:else}
|
||||
Save & Connect
|
||||
{/if}
|
||||
</Button>
|
||||
</Card.Content>
|
||||
</Card.Root>
|
||||
@@ -4,6 +4,5 @@ import { defineConfig } from 'vite';
|
||||
import { compression } from 'vite-plugin-compression2';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit(), compression()],
|
||||
server: { host: '127.0.0.1' }
|
||||
plugins: [tailwindcss(), sveltekit(), compression()]
|
||||
});
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
//go:build dev
|
||||
// +build dev
|
||||
|
||||
package config
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -14,16 +11,16 @@ import (
|
||||
"github.com/traefik/traefik/v3/pkg/config/dynamic"
|
||||
)
|
||||
|
||||
// StructToZodSchema converts a struct to a zod schema (for use in the frontend)
|
||||
func StructToZodSchema() {
|
||||
types := map[string]any{
|
||||
"config": dynamic.Configuration{},
|
||||
}
|
||||
const (
|
||||
output = "./web/src/lib/gen/zen/traefik-schemas.ts"
|
||||
)
|
||||
|
||||
func main() {
|
||||
types := map[string]any{"config": dynamic.Configuration{}}
|
||||
var builder strings.Builder
|
||||
|
||||
// Add a header
|
||||
builder.WriteString("// This file is auto-generated via `zen.StructToZodSchema`.\n")
|
||||
builder.WriteString("// This file is auto-generated via `zen`.\n")
|
||||
builder.WriteString("// Do not edit manually.\n\n")
|
||||
builder.WriteString("import { z } from 'zod';\n\n")
|
||||
|
||||
@@ -38,15 +35,13 @@ func StructToZodSchema() {
|
||||
builder.WriteString(fmt.Sprintf("%s\n", schema))
|
||||
}
|
||||
|
||||
out := "./web/src/lib/gen/zen/traefik-schemas.ts"
|
||||
|
||||
if err := os.MkdirAll(filepath.Dir(out), 0755); err != nil {
|
||||
if err := os.MkdirAll(filepath.Dir(output), 0o755); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := os.WriteFile(out, []byte(builder.String()), 0644); err != nil {
|
||||
if err := os.WriteFile(output, []byte(builder.String()), 0o644); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fmt.Printf("Zod schemas written to %s\n", out)
|
||||
fmt.Printf("Zod schemas written to %s\n", output)
|
||||
os.Exit(0)
|
||||
}
|
||||
Reference in New Issue
Block a user