diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000..f95ac7f
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,26 @@
+FROM mcr.microsoft.com/devcontainers/typescript-node:0-16-bullseye
+ARG GOLANG_VERSION=1.18.6
+ARG GOLANG_PACKAGE=https://go.dev/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz
+ARG GRPC_VERSION=v1.48.2
+ARG PROTOC_GEN_GO_VERSION=v1.28.1
+ARG PROTOC_GEN_GO_GRPC_VERSION=v1.1.0
+
+# Install python and build tools from apt
+RUN apt-get update && apt-get install -y cmake git build-essential python3-venv python3-pip python-is-python3 wget && rm -rf /var/lib/apt/lists/*
+
+# Install golang from binary package
+RUN rm -rf /go && wget ${GOLANG_PACKAGE} -qO- | tar -C / -xz
+ENV GOPATH=/go
+ENV PATH $GOPATH/bin:$PATH
+RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
+RUN mkdir -p /build
+
+# Build GRPC; note this issue before updating: https://github.com/protocolbuffers/protobuf-javascript/issues/127
+WORKDIR /build
+RUN git clone --recurse-submodules -b ${GRPC_VERSION} --depth 1 --shallow-submodules https://github.com/grpc/grpc
+WORKDIR /build/grpc
+RUN mkdir -p cmake/build; cd cmake/build; cmake -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local ../.. && make -j 8 && make install
+
+# Build api-interfaces
+RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOC_GEN_GO_VERSION}
+RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION}
\ No newline at end of file
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..5da0215
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,24 @@
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the
+// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
+{
+ "name": "Node.js & TypeScript",
+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
+ "build": {
+ "dockerfile": "Dockerfile",
+ }
+
+ // Features to add to the dev container. More info: https://containers.dev/features.
+ // "features": {},
+
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
+ // "forwardPorts": [],
+
+ // Use 'postCreateCommand' to run commands after the container is created.
+ // "postCreateCommand": "yarn install",
+
+ // Configure tool-specific properties.
+ // "customizations": {},
+
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
+ // "remoteUser": "root"
+}
diff --git a/.gitignore b/.gitignore
index e39191d..91a0896 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,4 +18,5 @@ node_modules
.idea
pybuild/
-.history/
\ No newline at end of file
+.history/
+dist/
\ No newline at end of file
diff --git a/.gitmodules b/.gitmodules
index 5bd82e9..e69de29 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +0,0 @@
-[submodule "src/tensorizer"]
- path = src/tensorizer
- url = https://github.com/coreweave/tensorizer.git
diff --git a/README.md b/README.md
index 9c6b56b..3490a3c 100644
--- a/README.md
+++ b/README.md
@@ -1,108 +1,10 @@
-## 📝 Table of Contents
+# TESTING - DO NOT USE
+This branch is a work in progress; it is not expected to work with our production APIs at this time.
-- [About](#about)
-- [Getting Started](#getting_started)
-- [Usage](#usage)
+## Generating protobuf stubs
-## About
-
-Api-Interfaces is the gRPC protocol for communication between the
-[api-bridge](https://github.com/Stability-AI/api-bridge), the [api-web](https://github.com/Stability-AI/api-web),
-and the [generator_server](https://github.com/Stability-AI/generator_server). Additionally, any
-other client application communicating directly with `api-web` also use the interfaces generated
-from this repository.
-
-See [here](https://www.notion.so/stabilityai/Protocol-Buffer-Development-Guidelines-94c6a5b9082d4aa6a2d6bf50b86fe0ac) for some development guides.
-
-## Getting Started
-
-These instructions will get you an environment setup to build the interface files from the proto source files.
-
-### Prerequisites
-
-The following items are needed to develop api-interfaces:
-- [golang](https://go.dev/) >= 1.18
-- [nodejs](https://nodejs.org/en/) >= 16.16.0
-- [cmake](https://cmake.org/) >= 3.14
-- [protoc](https://github.com/protocolbuffers/protobuf#protocol-compiler-installation)
-- [grpc](https://grpc.io/)
-
-It is recommended to use ssh cloning with this project for `git` and for `go get`, although `https`
-does appear to work. To force ssh (for github) put the following in your `.gitconfig`:
-
-```ini
-[url "ssh://git@github.com/"]
- insteadOf = https://github.com/
```
-
-### Setup and building
-
-After all the prerequisites are installed and available, this project can be setup by the following:
-
-```shell
-git clone --recurse-submodules git@github.com:Stability-AI/api-interfaces.git
-cd api-interfaces
-cmake .
-cmake --build .
-```
-
-This will produce files for the various languages in [gooseai](./gooseai) to support the proto
-files in [src](./src). *When rebuilding the files it is recommended to do a clean before as there
-have been instances of not all files being regenerated without it.*
-
-## 🎈 Usage
-
-The generated files are all output in [gooseai](./gooseai). How to use these files depends on the
-programming language being used. The following sections provide details for each of the supported
-languages.
-
-The files have different usages and not all are required depending on the situation:
-| Suffix | Client | Server |
-|-------------|--------|--------|
-| _grpc_pb | ✔️1 | ✔️ |
-| _pb_service | ✔️2 | |
-| _pb | ✔️ | ✔️ |
-
-
-1. Not needed for typescript/javascript clients.
-2. Only needed for typscript/javascripts clients.
-
-
-### Golang
-
-For Golang the interfaces can be added to the project as a normal module require. To add them run:
-
-```shell
-go get github.com/Stability-AI/api-interfaces@latest
+npm i --dev
+npm run generate
```
-Similarly to update them just run the same command with the short sha of the version to update to.
-Use them as you would a normal module.
-
-### Python
-
-With the current output, the best way to consume these is to add them as a git submodule to your
-project. It is recommended to use ssh clone when adding the submodule. To update them just
-checkout the newer version from within the submodule (and remember to commit the submodule change
-to your project).
-
-To use them make sure the files are on the python path.
-
-
-### Typescript / Javascript
-
-With the current output, the best way to consume these is to add them as a git submodule to your
-project. It is recommended to use ssh clone when adding the submodule. To update them just
-checkout the newer version from within the submodule (and remember to commit the submodule change
-to your project).
-
-To use them make sure they are in a location that can be found by your typescript/javascript files.
-
-*NOTE: Typescript requires both the typescript and javascript files to be available.*
-
-### Other Languages / Custom Build
-
-If not using the CMake defined builds to generate make sure when building from the source proto
-files that the following proto include paths are set:
-- `src/proto`
-- `src/tensorizer/proto`
diff --git a/buf.gen.go.yaml b/buf.gen.go.yaml
new file mode 100644
index 0000000..4a15528
--- /dev/null
+++ b/buf.gen.go.yaml
@@ -0,0 +1,23 @@
+version: v1
+managed:
+ enabled: true
+ go_package_prefix:
+ # : name in go.mod
+ # : where generated code should be output
+ default: github.com/stability-ai/api-interfaces/src
+ # Remove `except` field if googleapis is not used
+ except:
+ - buf.build/googleapis/googleapis
+plugins:
+ - plugin: buf.build/connectrpc/go:v1.11.0
+ out: '.'
+ opt:
+ - paths=source_relative
+ - plugin: buf.build/grpc/go:v1.3.0
+ out: '.'
+ opt:
+ - paths=source_relative
+ - plugin: buf.build/protocolbuffers/go
+ out: '.'
+ opt:
+ - paths=source_relative
\ No newline at end of file
diff --git a/buf.gen.js.yaml b/buf.gen.js.yaml
new file mode 100644
index 0000000..c4705a1
--- /dev/null
+++ b/buf.gen.js.yaml
@@ -0,0 +1,8 @@
+version: v1
+managed:
+ enabled: true
+plugins:
+ - plugin: buf.build/bufbuild/connect-es:v0.12.0
+ out: '.'
+ - plugin: buf.build/bufbuild/es
+ out: '.'
\ No newline at end of file
diff --git a/buf.gen.kt.yaml b/buf.gen.kt.yaml
new file mode 100644
index 0000000..ae01163
--- /dev/null
+++ b/buf.gen.kt.yaml
@@ -0,0 +1,8 @@
+version: v1
+managed:
+ enabled: true
+plugins:
+ - plugin: buf.build/bufbuild/connect-kotlin:v0.1.7
+ out: '.'
+ - plugin: buf.build/protocolbuffers/kotlin
+ out: '.'
diff --git a/buf.gen.py.yaml b/buf.gen.py.yaml
new file mode 100644
index 0000000..72a06e7
--- /dev/null
+++ b/buf.gen.py.yaml
@@ -0,0 +1,10 @@
+version: v1
+managed:
+ enabled: true
+plugins:
+ - plugin: buf.build/grpc/python:v1.56.2
+ out: '.'
+ - plugin: buf.build/protocolbuffers/python
+ out: '.'
+ - plugin: buf.build/protocolbuffers/pyi:v23.4
+ out: '.'
diff --git a/buf.gen.swift.yaml b/buf.gen.swift.yaml
new file mode 100644
index 0000000..eff9fd2
--- /dev/null
+++ b/buf.gen.swift.yaml
@@ -0,0 +1,8 @@
+version: v1
+managed:
+ enabled: true
+plugins:
+ - plugin: buf.build/bufbuild/connect-swift:v0.5.0
+ out: '.'
+ - plugin: buf.build/apple/swift
+ out: '.'
\ No newline at end of file
diff --git a/buf.work.yaml b/buf.work.yaml
index 924d331..f62e33c 100644
--- a/buf.work.yaml
+++ b/buf.work.yaml
@@ -1,4 +1,3 @@
version: v1
directories:
- src/proto
- - src/tensorizer/proto
diff --git a/buf.yaml b/buf.yaml
index 31d0c5d..5f5221e 100644
--- a/buf.yaml
+++ b/buf.yaml
@@ -1,4 +1,5 @@
version: v1
+name: buf.build/stability-ai/api-interfaces
breaking:
use:
- FILE
@@ -6,3 +7,6 @@ build:
excludes:
- node_modules
- build
+lint:
+ use:
+ - DEFAULT
diff --git a/gooseai/README.md b/gooseai/README.md
new file mode 100644
index 0000000..9254e49
--- /dev/null
+++ b/gooseai/README.md
@@ -0,0 +1,3 @@
+# Legacy "gooseai" inferfaces
+
+These are the original interfaces used by the Stability API. While the underlying contracts remain compatible, the `gen/proto` path contains new, improved codegen built with `buf`.
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 5c0aaed..09ba0dd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,1011 +1,192 @@
{
- "name": "api-interfaces",
+ "name": "stability_api",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
- "name": "api-interfaces",
+ "name": "stability_api",
"version": "0.1.0",
- "dependencies": {
- "grpc-tools": "^1.11.2",
- "ts-protoc-gen": "^0.15.0"
+ "devDependencies": {
+ "@bufbuild/buf": "^1.18.0-1"
}
},
- "node_modules/@mapbox/node-pre-gyp": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz",
- "integrity": "sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==",
- "dependencies": {
- "detect-libc": "^2.0.0",
- "https-proxy-agent": "^5.0.0",
- "make-dir": "^3.1.0",
- "node-fetch": "^2.6.7",
- "nopt": "^5.0.0",
- "npmlog": "^5.0.1",
- "rimraf": "^3.0.2",
- "semver": "^7.3.5",
- "tar": "^6.1.11"
- },
- "bin": {
- "node-pre-gyp": "bin/node-pre-gyp"
- }
- },
- "node_modules/abbrev": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
- },
- "node_modules/agent-base": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
- "dependencies": {
- "debug": "4"
- },
- "engines": {
- "node": ">= 6.0.0"
- }
- },
- "node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/aproba": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
- "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="
- },
- "node_modules/are-we-there-yet": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
- "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
- "dependencies": {
- "delegates": "^1.0.0",
- "readable-stream": "^3.6.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/balanced-match": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
- },
- "node_modules/brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "node_modules/chownr": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
- "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/color-support": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
- "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
- "bin": {
- "color-support": "bin.js"
- }
- },
- "node_modules/concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
- },
- "node_modules/console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
- },
- "node_modules/debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
- "dependencies": {
- "ms": "2.1.2"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
- },
- "node_modules/detect-libc": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",
- "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
- },
- "node_modules/fs-minipass": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
- "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
- "dependencies": {
- "minipass": "^3.0.0"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
- },
- "node_modules/gauge": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
- "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
- "dependencies": {
- "aproba": "^1.0.3 || ^2.0.0",
- "color-support": "^1.1.2",
- "console-control-strings": "^1.0.0",
- "has-unicode": "^2.0.1",
- "object-assign": "^4.1.1",
- "signal-exit": "^3.0.0",
- "string-width": "^4.2.3",
- "strip-ansi": "^6.0.1",
- "wide-align": "^1.1.2"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/glob": {
- "version": "7.2.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.1.1",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/google-protobuf": {
- "version": "3.21.0",
- "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.0.tgz",
- "integrity": "sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g=="
- },
- "node_modules/grpc-tools": {
- "version": "1.11.2",
- "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.11.2.tgz",
- "integrity": "sha512-4+EgpnnkJraamY++oyBCw5Hp9huRYfgakjNVKbiE3PgO9Tv5ydVlRo7ZyGJ0C0SEiA7HhbVc1sNNtIyK7FiEtg==",
+ "node_modules/@bufbuild/buf": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz",
+ "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==",
+ "dev": true,
"hasInstallScript": true,
- "dependencies": {
- "@mapbox/node-pre-gyp": "^1.0.5"
- },
- "bin": {
- "grpc_tools_node_protoc": "bin/protoc.js",
- "grpc_tools_node_protoc_plugin": "bin/protoc_plugin.js"
- }
- },
- "node_modules/has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
- },
- "node_modules/https-proxy-agent": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
- "dependencies": {
- "agent-base": "6",
- "debug": "4"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
- "dependencies": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "node_modules/inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
- },
- "node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/lru-cache": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/make-dir": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
- "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
- "dependencies": {
- "semver": "^6.0.0"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/make-dir/node_modules/semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "bin": {
- "semver": "bin/semver.js"
- }
- },
- "node_modules/minimatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
- "dependencies": {
- "brace-expansion": "^1.1.7"
- },
- "engines": {
- "node": "*"
- }
- },
- "node_modules/minipass": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.4.tgz",
- "integrity": "sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw==",
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/minizlib": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
- "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
- "dependencies": {
- "minipass": "^3.0.0",
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/mkdirp": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
- "bin": {
- "mkdirp": "bin/cmd.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
- "node_modules/node-fetch": {
- "version": "2.6.7",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
- "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
- "dependencies": {
- "whatwg-url": "^5.0.0"
- },
- "engines": {
- "node": "4.x || >=6.0.0"
- },
- "peerDependencies": {
- "encoding": "^0.1.0"
- },
- "peerDependenciesMeta": {
- "encoding": {
- "optional": true
- }
- }
- },
- "node_modules/nopt": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
- "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
- "dependencies": {
- "abbrev": "1"
- },
- "bin": {
- "nopt": "bin/nopt.js"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/npmlog": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
- "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
- "dependencies": {
- "are-we-there-yet": "^2.0.0",
- "console-control-strings": "^1.1.0",
- "gauge": "^3.0.0",
- "set-blocking": "^2.0.0"
- }
- },
- "node_modules/object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/readable-stream": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
- "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "dependencies": {
- "glob": "^7.1.3"
- },
- "bin": {
- "rimraf": "bin.js"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/semver": {
- "version": "7.3.7",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",
- "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
- "dependencies": {
- "lru-cache": "^6.0.0"
- },
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
- },
- "node_modules/signal-exit": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
- },
- "node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
- "node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/tar": {
- "version": "6.1.11",
- "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz",
- "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==",
- "dependencies": {
- "chownr": "^2.0.0",
- "fs-minipass": "^2.0.0",
- "minipass": "^3.0.0",
- "minizlib": "^2.1.1",
- "mkdirp": "^1.0.3",
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">= 10"
- }
- },
- "node_modules/tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
- },
- "node_modules/ts-protoc-gen": {
- "version": "0.15.0",
- "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz",
- "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==",
- "dependencies": {
- "google-protobuf": "^3.15.5"
- },
"bin": {
- "protoc-gen-ts": "bin/protoc-gen-ts"
- }
- },
- "node_modules/util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
- },
- "node_modules/webidl-conversions": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
- },
- "node_modules/whatwg-url": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
- "dependencies": {
- "tr46": "~0.0.3",
- "webidl-conversions": "^3.0.0"
+ "buf": "bin/buf",
+ "protoc-gen-buf-breaking": "bin/protoc-gen-buf-breaking",
+ "protoc-gen-buf-lint": "bin/protoc-gen-buf-lint"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "@bufbuild/buf-darwin-arm64": "1.18.0-1",
+ "@bufbuild/buf-darwin-x64": "1.18.0-1",
+ "@bufbuild/buf-linux-aarch64": "1.18.0-1",
+ "@bufbuild/buf-linux-x64": "1.18.0-1",
+ "@bufbuild/buf-win32-arm64": "1.18.0-1",
+ "@bufbuild/buf-win32-x64": "1.18.0-1"
+ }
+ },
+ "node_modules/@bufbuild/buf-darwin-arm64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.18.0-1.tgz",
+ "integrity": "sha512-4iFChDoXAiuMZQoXpJoCSvCkcT7p1fmsY2N/+wTdODQbXAwqR8vQz19FPR2Jv5ukhd44LUi43nFsyQ2dWmeZeA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@bufbuild/buf-darwin-x64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.18.0-1.tgz",
+ "integrity": "sha512-tuOnoCqFaUOj9dBuubEve5XGNkjL+zeCW7ETNgmArUlQobEkL2Fza5mi5Fqt90Ommfj1xpc4vaeNz1oSuU3dTw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@bufbuild/buf-linux-aarch64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.18.0-1.tgz",
+ "integrity": "sha512-QdYp89hlLVPPZYlaeVhE0swk5Ygncij1avVmvLQw99+lvaFlDu9zRQ0Jo7n1VjpZWdDhUd/thYWxSqSMJYLajA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@bufbuild/buf-linux-x64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.18.0-1.tgz",
+ "integrity": "sha512-9a6xv+OsYjhg5f1WHDtoXJVxG2j6awFi5cx9dkCPMODvFsll7skkwfkDngxKkibNU0aY6TxLoQXdf77eQwIWtQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@bufbuild/buf-win32-arm64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.18.0-1.tgz",
+ "integrity": "sha512-UP6KevD0cdxa4IJcDy31KC9sIIgxCWBP/K9uW+gBDLg2cNQBtVqlN8o65PJhsl9HB+p0/Y4pDi4i/jU8dXGH8g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@bufbuild/buf-win32-x64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.18.0-1.tgz",
+ "integrity": "sha512-4OVbTwbQ1ZHGtITJw7hXYP2HinCWn3PN1ewCU+SCvynJTQ8vXQuVNlKZ2EmGl6aTUWdF3mSL/WPsRiG3fXhxfg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
}
- },
- "node_modules/wide-align": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
- "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
- "dependencies": {
- "string-width": "^1.0.2 || 2 || 3 || 4"
- }
- },
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
- },
- "node_modules/yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
}
},
"dependencies": {
- "@mapbox/node-pre-gyp": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz",
- "integrity": "sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==",
- "requires": {
- "detect-libc": "^2.0.0",
- "https-proxy-agent": "^5.0.0",
- "make-dir": "^3.1.0",
- "node-fetch": "^2.6.7",
- "nopt": "^5.0.0",
- "npmlog": "^5.0.1",
- "rimraf": "^3.0.2",
- "semver": "^7.3.5",
- "tar": "^6.1.11"
- }
- },
- "abbrev": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
- },
- "agent-base": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
- "requires": {
- "debug": "4"
- }
- },
- "ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="
- },
- "aproba": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
- "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="
- },
- "are-we-there-yet": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
- "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
- "requires": {
- "delegates": "^1.0.0",
- "readable-stream": "^3.6.0"
- }
- },
- "balanced-match": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
- },
- "brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "requires": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "chownr": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
- "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="
- },
- "color-support": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
- "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg=="
- },
- "concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
- },
- "console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
- },
- "debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
- "requires": {
- "ms": "2.1.2"
- }
- },
- "delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
- },
- "detect-libc": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",
- "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w=="
- },
- "emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
- },
- "fs-minipass": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
- "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
- "requires": {
- "minipass": "^3.0.0"
- }
- },
- "fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
- },
- "gauge": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
- "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
- "requires": {
- "aproba": "^1.0.3 || ^2.0.0",
- "color-support": "^1.1.2",
- "console-control-strings": "^1.0.0",
- "has-unicode": "^2.0.1",
- "object-assign": "^4.1.1",
- "signal-exit": "^3.0.0",
- "string-width": "^4.2.3",
- "strip-ansi": "^6.0.1",
- "wide-align": "^1.1.2"
- }
- },
- "glob": {
- "version": "7.2.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
- "requires": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.1.1",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- }
- },
- "google-protobuf": {
- "version": "3.21.0",
- "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.0.tgz",
- "integrity": "sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g=="
- },
- "grpc-tools": {
- "version": "1.11.2",
- "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.11.2.tgz",
- "integrity": "sha512-4+EgpnnkJraamY++oyBCw5Hp9huRYfgakjNVKbiE3PgO9Tv5ydVlRo7ZyGJ0C0SEiA7HhbVc1sNNtIyK7FiEtg==",
- "requires": {
- "@mapbox/node-pre-gyp": "^1.0.5"
- }
- },
- "has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
- },
- "https-proxy-agent": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
- "requires": {
- "agent-base": "6",
- "debug": "4"
- }
- },
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
- "requires": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
- },
- "is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="
- },
- "lru-cache": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
- "requires": {
- "yallist": "^4.0.0"
- }
- },
- "make-dir": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
- "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
- "requires": {
- "semver": "^6.0.0"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
- }
- }
- },
- "minimatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
- "requires": {
- "brace-expansion": "^1.1.7"
- }
- },
- "minipass": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.4.tgz",
- "integrity": "sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw==",
- "requires": {
- "yallist": "^4.0.0"
- }
- },
- "minizlib": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
- "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
- "requires": {
- "minipass": "^3.0.0",
- "yallist": "^4.0.0"
- }
- },
- "mkdirp": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="
- },
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
- "node-fetch": {
- "version": "2.6.7",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
- "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
- "requires": {
- "whatwg-url": "^5.0.0"
- }
- },
- "nopt": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
- "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
- "requires": {
- "abbrev": "1"
- }
- },
- "npmlog": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
- "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
- "requires": {
- "are-we-there-yet": "^2.0.0",
- "console-control-strings": "^1.1.0",
- "gauge": "^3.0.0",
- "set-blocking": "^2.0.0"
- }
- },
- "object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "requires": {
- "wrappy": "1"
- }
- },
- "path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="
- },
- "readable-stream": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
- "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
- "requires": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- }
- },
- "rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "requires": {
- "glob": "^7.1.3"
- }
- },
- "safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
- },
- "semver": {
- "version": "7.3.7",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",
- "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
- "requires": {
- "lru-cache": "^6.0.0"
- }
- },
- "set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
- },
- "signal-exit": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
- },
- "string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "requires": {
- "safe-buffer": "~5.2.0"
- }
- },
- "string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "requires": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- }
- },
- "strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "requires": {
- "ansi-regex": "^5.0.1"
- }
- },
- "tar": {
- "version": "6.1.11",
- "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz",
- "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==",
- "requires": {
- "chownr": "^2.0.0",
- "fs-minipass": "^2.0.0",
- "minipass": "^3.0.0",
- "minizlib": "^2.1.1",
- "mkdirp": "^1.0.3",
- "yallist": "^4.0.0"
- }
- },
- "tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
- },
- "ts-protoc-gen": {
- "version": "0.15.0",
- "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz",
- "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==",
- "requires": {
- "google-protobuf": "^3.15.5"
- }
- },
- "util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
- },
- "webidl-conversions": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
- },
- "whatwg-url": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
- "requires": {
- "tr46": "~0.0.3",
- "webidl-conversions": "^3.0.0"
- }
- },
- "wide-align": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
- "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
- "requires": {
- "string-width": "^1.0.2 || 2 || 3 || 4"
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
- },
- "yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
+ "@bufbuild/buf": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz",
+ "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==",
+ "dev": true,
+ "requires": {
+ "@bufbuild/buf-darwin-arm64": "1.18.0-1",
+ "@bufbuild/buf-darwin-x64": "1.18.0-1",
+ "@bufbuild/buf-linux-aarch64": "1.18.0-1",
+ "@bufbuild/buf-linux-x64": "1.18.0-1",
+ "@bufbuild/buf-win32-arm64": "1.18.0-1",
+ "@bufbuild/buf-win32-x64": "1.18.0-1"
+ }
+ },
+ "@bufbuild/buf-darwin-arm64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.18.0-1.tgz",
+ "integrity": "sha512-4iFChDoXAiuMZQoXpJoCSvCkcT7p1fmsY2N/+wTdODQbXAwqR8vQz19FPR2Jv5ukhd44LUi43nFsyQ2dWmeZeA==",
+ "dev": true,
+ "optional": true
+ },
+ "@bufbuild/buf-darwin-x64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.18.0-1.tgz",
+ "integrity": "sha512-tuOnoCqFaUOj9dBuubEve5XGNkjL+zeCW7ETNgmArUlQobEkL2Fza5mi5Fqt90Ommfj1xpc4vaeNz1oSuU3dTw==",
+ "dev": true,
+ "optional": true
+ },
+ "@bufbuild/buf-linux-aarch64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.18.0-1.tgz",
+ "integrity": "sha512-QdYp89hlLVPPZYlaeVhE0swk5Ygncij1avVmvLQw99+lvaFlDu9zRQ0Jo7n1VjpZWdDhUd/thYWxSqSMJYLajA==",
+ "dev": true,
+ "optional": true
+ },
+ "@bufbuild/buf-linux-x64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.18.0-1.tgz",
+ "integrity": "sha512-9a6xv+OsYjhg5f1WHDtoXJVxG2j6awFi5cx9dkCPMODvFsll7skkwfkDngxKkibNU0aY6TxLoQXdf77eQwIWtQ==",
+ "dev": true,
+ "optional": true
+ },
+ "@bufbuild/buf-win32-arm64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.18.0-1.tgz",
+ "integrity": "sha512-UP6KevD0cdxa4IJcDy31KC9sIIgxCWBP/K9uW+gBDLg2cNQBtVqlN8o65PJhsl9HB+p0/Y4pDi4i/jU8dXGH8g==",
+ "dev": true,
+ "optional": true
+ },
+ "@bufbuild/buf-win32-x64": {
+ "version": "1.18.0-1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.18.0-1.tgz",
+ "integrity": "sha512-4OVbTwbQ1ZHGtITJw7hXYP2HinCWn3PN1ewCU+SCvynJTQ8vXQuVNlKZ2EmGl6aTUWdF3mSL/WPsRiG3fXhxfg==",
+ "dev": true,
+ "optional": true
}
}
}
diff --git a/package.json b/package.json
index ddfa9e2..7d88081 100644
--- a/package.json
+++ b/package.json
@@ -1,14 +1,24 @@
{
- "name": "api-interfaces",
+ "name": "stability_api",
"version": "0.1.0",
- "description": "",
- "main": "index.js",
- "scripts": {},
+ "description": "",
+ "type": "module",
+ "exports": {
+ "./*.js": "./src/*.js",
+ "./*.ts": "./src/*.ts"
+ },
+ "scripts": {
+ "generate-go": "buf generate --template buf.gen.go.yaml --output=./src",
+ "generate-js": "buf generate --template buf.gen.js.yaml --output=./src",
+ "generate-kt": "buf generate --template buf.gen.kt.yaml --output=./src",
+ "generate-py": "buf generate --template buf.gen.py.yaml --output=./src",
+ "generate-swift": "buf generate --template buf.gen.swift.yaml --output=./src",
+ "generate": "npm run generate-go && npm run generate-js && npm run generate-py"
+ },
"keywords": [],
"author": "",
"license": "",
- "dependencies": {
- "grpc-tools": "^1.11.2",
- "ts-protoc-gen": "^0.15.0"
+ "devDependencies": {
+ "@bufbuild/buf": "^1.18.0-1"
}
-}
\ No newline at end of file
+}
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..5c1f747
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,166 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[project]
+name = "stability-api"
+dynamic = ["version"]
+description = 'Interfaces for interacting with low level Stability AI APIs'
+readme = "README.md"
+requires-python = ">=3.7"
+license = "MIT"
+keywords = []
+authors = [
+ { name = "Stephan Auerhahn", email = "stephan@stability.ai" },
+]
+classifiers = [
+ "Development Status :: 4 - Beta",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: Implementation :: CPython",
+ "Programming Language :: Python :: Implementation :: PyPy",
+]
+dependencies = [
+ "protobuf>=3.17.3",
+]
+
+[project.urls]
+Documentation = "https://github.com/Stability-AI/api-interfaces#readme"
+Issues = "https://github.com/Stability-AI/api-interfaces/issues"
+Source = "https://github.com/Stability-AI/api-interfaces"
+
+[tool.hatch.version]
+path = "src/stability_api/__about__.py"
+
+[tool.hatch.build.targets.wheel]
+include = ["src/stability_api"]
+
+[tool.hatch.build.targets.wheel.force-include]
+"src/stability_api" = "stability_api"
+
+[tool.hatch.envs.default]
+dependencies = [
+ "coverage[toml]>=6.5",
+ "pytest",
+]
+[tool.hatch.envs.default.scripts]
+generate = "npm run generate-py"
+test = "pytest {args:tests}"
+test-cov = "coverage run -m pytest {args:tests}"
+cov-report = [
+ "- coverage combine",
+ "coverage report",
+]
+cov = [
+ "test-cov",
+ "cov-report",
+]
+
+[[tool.hatch.envs.all.matrix]]
+python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
+
+[tool.hatch.envs.lint]
+detached = true
+dependencies = [
+ "black>=23.1.0",
+ "mypy>=1.0.0",
+ "ruff>=0.0.243",
+]
+[tool.hatch.envs.lint.scripts]
+typing = "mypy --install-types --non-interactive {args:src/stability_api tests}"
+style = [
+ "ruff {args:.}",
+ "black --check --diff {args:.}",
+]
+fmt = [
+ "black {args:.}",
+ "ruff --fix {args:.}",
+ "style",
+]
+all = [
+ "style",
+ "typing",
+]
+
+[tool.black]
+target-version = ["py37"]
+line-length = 120
+skip-string-normalization = true
+
+[tool.ruff]
+target-version = "py37"
+line-length = 120
+select = [
+ "A",
+ "ARG",
+ "B",
+ "C",
+ "DTZ",
+ "E",
+ "EM",
+ "F",
+ "FBT",
+ "I",
+ "ICN",
+ "ISC",
+ "N",
+ "PLC",
+ "PLE",
+ "PLR",
+ "PLW",
+ "Q",
+ "RUF",
+ "S",
+ "T",
+ "TID",
+ "UP",
+ "W",
+ "YTT",
+]
+ignore = [
+ # Allow non-abstract empty methods in abstract base classes
+ "B027",
+ # Allow boolean positional values in function calls, like `dict.get(... True)`
+ "FBT003",
+ # Ignore checks for possible passwords
+ "S105", "S106", "S107",
+ # Ignore complexity
+ "C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
+]
+unfixable = [
+ # Don't touch unused imports
+ "F401",
+]
+
+[tool.ruff.isort]
+known-first-party = ["stability_api"]
+
+[tool.ruff.flake8-tidy-imports]
+ban-relative-imports = "all"
+
+[tool.ruff.per-file-ignores]
+# Tests can use magic values, assertions, and relative imports
+"tests/**/*" = ["PLR2004", "S101", "TID252"]
+
+[tool.coverage.run]
+source_pkgs = ["stability_api", "tests"]
+branch = true
+parallel = true
+omit = [
+ "src/stability_api/__about__.py",
+]
+
+[tool.coverage.paths]
+stability_api = ["src/stability_api", "*/stability-api/src/stability_api"]
+tests = ["tests", "*/stability-api/tests"]
+
+[tool.coverage.report]
+exclude_lines = [
+ "no cov",
+ "if __name__ == .__main__.:",
+ "if TYPE_CHECKING:",
+]
diff --git a/src/js/main.js b/src/js/main.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/proto/dashboard.proto b/src/proto/stability_api/platform/dashboard/v1/dashboard.proto
similarity index 96%
rename from src/proto/dashboard.proto
rename to src/proto/stability_api/platform/dashboard/v1/dashboard.proto
index a22af5e..4825b08 100644
--- a/src/proto/dashboard.proto
+++ b/src/proto/stability_api/platform/dashboard/v1/dashboard.proto
@@ -1,6 +1,6 @@
syntax = 'proto3';
-package gooseai;
-option go_package = "github.com/stability-ai/api-interfaces/gooseai/dashboard";
+package stabilityai.api.dashboard.v1;
+option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1;dashboardv1";
enum OrganizationRole {
MEMBER = 0;
diff --git a/src/proto/engines.proto b/src/proto/stability_api/platform/engines/v1/engines.proto
similarity index 81%
rename from src/proto/engines.proto
rename to src/proto/stability_api/platform/engines/v1/engines.proto
index e02e1d1..76039e3 100644
--- a/src/proto/engines.proto
+++ b/src/proto/stability_api/platform/engines/v1/engines.proto
@@ -1,6 +1,6 @@
syntax = 'proto3';
-package gooseai;
-option go_package = "github.com/stability-ai/api-interfaces/gooseai/engines";
+package stabilityai.platformapis.engines.v1;
+option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1";
// Possible engine type
enum EngineType {
diff --git a/src/proto/finetuning.proto b/src/proto/stability_api/platform/finetuning/finetuning.proto
similarity index 100%
rename from src/proto/finetuning.proto
rename to src/proto/stability_api/platform/finetuning/finetuning.proto
diff --git a/src/proto/generation.proto b/src/proto/stability_api/platform/generation/v1/generation.proto
similarity index 98%
rename from src/proto/generation.proto
rename to src/proto/stability_api/platform/generation/v1/generation.proto
index cb0af9a..9ec1eaf 100644
--- a/src/proto/generation.proto
+++ b/src/proto/stability_api/platform/generation/v1/generation.proto
@@ -1,8 +1,8 @@
syntax = 'proto3';
-package gooseai;
-option go_package = "github.com/stability-ai/api-interfaces/gooseai/generation";
+package stabilityai.platformapis.generation.v1;
+option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1";
import "google/protobuf/struct.proto";
-import "tensors.proto";
+import "stability_api/tensors/tensors.proto";
enum FinishReason {
NULL = 0;
diff --git a/src/proto/project.proto b/src/proto/stability_api/platform/project/v1/project.proto
similarity index 96%
rename from src/proto/project.proto
rename to src/proto/stability_api/platform/project/v1/project.proto
index e6f773a..6001267 100644
--- a/src/proto/project.proto
+++ b/src/proto/stability_api/platform/project/v1/project.proto
@@ -1,7 +1,7 @@
syntax = 'proto3';
-package gooseai;
-option go_package = "github.com/stability-ai/api-interfaces/gooseai/project";
-import "generation.proto";
+package stabilityai.platformapis.project.v1;
+option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1;projectv1";
+import "stability_api/platform/generation/v1/generation.proto";
enum ProjectAccess {
PROJECT_ACCESS_PRIVATE = 0; // Private access, only owner organization can access
@@ -42,7 +42,7 @@ message ProjectAsset {
uint64 size = 5; // The asset size in bytes
uint64 created_at = 6; // Time of asset creation (UTC seconds epoch)
uint64 updated_at = 7; // Time of last asset update (UTC seconds epoch)
- Request request = 8; // The request object that is associated with the artifact
+ stabilityai.platformapis.generation.v1.Request request = 8; // The request object that is associated with the artifact
map tags = 9; // The tags associated with the asset
}
diff --git a/src/proto/stability_api/tensors/tensors.proto b/src/proto/stability_api/tensors/tensors.proto
new file mode 100644
index 0000000..26c5e05
--- /dev/null
+++ b/src/proto/stability_api/tensors/tensors.proto
@@ -0,0 +1,54 @@
+syntax = 'proto3';
+package tensors;
+option go_package = "github.com/coreweave/tensorizer/tensors";
+
+enum Dtype {
+ DT_INVALID = 0;
+ DT_FLOAT32 = 1;
+ DT_FLOAT64 = 2;
+ DT_FLOAT16 = 3;
+ DT_BFLOAT16 = 4;
+ DT_COMPLEX32 = 5;
+ DT_COMPLEX64 = 6;
+ DT_COMPLEX128 = 7;
+ DT_UINT8 = 8;
+ DT_INT8 = 9;
+ DT_INT16 = 10;
+ DT_INT32 = 11;
+ DT_INT64 = 12;
+ DT_BOOL = 13;
+ DT_QUINT8 = 14;
+ DT_QINT8 = 15;
+ DT_QINT32 = 16;
+ DT_QUINT4_2 = 17;
+}
+
+enum AttributeType {
+ AT_PARAMETER = 0;
+ AT_BUFFER = 1;
+}
+
+message Tensor {
+ Dtype dtype = 1;
+ repeated int64 shape = 2;
+ bytes data = 3;
+ optional AttributeType attr_type = 4;
+}
+
+message Attribute {
+ string name = 1;
+ oneof value {
+ Module module = 3;
+ Tensor tensor = 4;
+ string string = 5;
+ int64 int64 = 6;
+ float float = 7;
+ bool bool = 8;
+ }
+}
+
+message Module {
+ string name = 1;
+ repeated string names = 2;
+ repeated Attribute attributes = 3;
+}
diff --git a/src/stability_api/__about__.py b/src/stability_api/__about__.py
new file mode 100644
index 0000000..b66be8d
--- /dev/null
+++ b/src/stability_api/__about__.py
@@ -0,0 +1 @@
+__version__ = "0.1.1.dev0"
\ No newline at end of file
diff --git a/src/stability_api/go.mod b/src/stability_api/go.mod
new file mode 100644
index 0000000..136f93b
--- /dev/null
+++ b/src/stability_api/go.mod
@@ -0,0 +1,17 @@
+module github.com/stability-ai/api-interfaces/src/stability_api
+
+go 1.18
+
+require (
+ connectrpc.com/connect v1.11.0
+ google.golang.org/grpc v1.54.0
+ google.golang.org/protobuf v1.30.0
+)
+
+require (
+ github.com/golang/protobuf v1.5.2 // indirect
+ golang.org/x/net v0.8.0 // indirect
+ golang.org/x/sys v0.6.0 // indirect
+ golang.org/x/text v0.8.0 // indirect
+ google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
+)
diff --git a/src/stability_api/go.sum b/src/stability_api/go.sum
new file mode 100644
index 0000000..5289a28
--- /dev/null
+++ b/src/stability_api/go.sum
@@ -0,0 +1,22 @@
+github.com/bufbuild/connect-go v1.7.0 h1:MGp82v7SCza+3RhsVhV7aMikwxvI3ZfD72YiGt8FYJo=
+github.com/bufbuild/connect-go v1.7.0/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk=
+github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
+github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
+github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
+golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
+golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
+golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w=
+google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
+google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag=
+google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g=
+google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
+google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
+google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
diff --git a/src/stability_api/index.js b/src/stability_api/index.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/stability_api/platform/dashboard/v1/dashboard.pb.go b/src/stability_api/platform/dashboard/v1/dashboard.pb.go
new file mode 100644
index 0000000..0422600
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard.pb.go
@@ -0,0 +1,2664 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.31.0
+// protoc (unknown)
+// source: stability_api/platform/dashboard/v1/dashboard.proto
+
+package dashboardv1
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type OrganizationRole int32
+
+const (
+ OrganizationRole_MEMBER OrganizationRole = 0
+ OrganizationRole_ACCOUNTANT OrganizationRole = 1
+ OrganizationRole_OWNER OrganizationRole = 2
+)
+
+// Enum value maps for OrganizationRole.
+var (
+ OrganizationRole_name = map[int32]string{
+ 0: "MEMBER",
+ 1: "ACCOUNTANT",
+ 2: "OWNER",
+ }
+ OrganizationRole_value = map[string]int32{
+ "MEMBER": 0,
+ "ACCOUNTANT": 1,
+ "OWNER": 2,
+ }
+)
+
+func (x OrganizationRole) Enum() *OrganizationRole {
+ p := new(OrganizationRole)
+ *p = x
+ return p
+}
+
+func (x OrganizationRole) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (OrganizationRole) Descriptor() protoreflect.EnumDescriptor {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes[0].Descriptor()
+}
+
+func (OrganizationRole) Type() protoreflect.EnumType {
+ return &file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes[0]
+}
+
+func (x OrganizationRole) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use OrganizationRole.Descriptor instead.
+func (OrganizationRole) EnumDescriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0}
+}
+
+type OrganizationMember struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
+ User *User `protobuf:"bytes,2,opt,name=user,proto3,oneof" json:"user,omitempty"`
+ Role OrganizationRole `protobuf:"varint,3,opt,name=role,proto3,enum=stabilityai.api.dashboard.v1.OrganizationRole" json:"role,omitempty"`
+ IsDefault bool `protobuf:"varint,4,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
+}
+
+func (x *OrganizationMember) Reset() {
+ *x = OrganizationMember{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *OrganizationMember) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*OrganizationMember) ProtoMessage() {}
+
+func (x *OrganizationMember) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use OrganizationMember.ProtoReflect.Descriptor instead.
+func (*OrganizationMember) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *OrganizationMember) GetOrganization() *Organization {
+ if x != nil {
+ return x.Organization
+ }
+ return nil
+}
+
+func (x *OrganizationMember) GetUser() *User {
+ if x != nil {
+ return x.User
+ }
+ return nil
+}
+
+func (x *OrganizationMember) GetRole() OrganizationRole {
+ if x != nil {
+ return x.Role
+ }
+ return OrganizationRole_MEMBER
+}
+
+func (x *OrganizationMember) GetIsDefault() bool {
+ if x != nil {
+ return x.IsDefault
+ }
+ return false
+}
+
+type OrganizationGrant struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AmountGranted float64 `protobuf:"fixed64,1,opt,name=amount_granted,json=amountGranted,proto3" json:"amount_granted,omitempty"`
+ AmountUsed float64 `protobuf:"fixed64,2,opt,name=amount_used,json=amountUsed,proto3" json:"amount_used,omitempty"`
+ ExpiresAt uint64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
+ GrantedAt uint64 `protobuf:"varint,4,opt,name=granted_at,json=grantedAt,proto3" json:"granted_at,omitempty"`
+}
+
+func (x *OrganizationGrant) Reset() {
+ *x = OrganizationGrant{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *OrganizationGrant) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*OrganizationGrant) ProtoMessage() {}
+
+func (x *OrganizationGrant) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use OrganizationGrant.ProtoReflect.Descriptor instead.
+func (*OrganizationGrant) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *OrganizationGrant) GetAmountGranted() float64 {
+ if x != nil {
+ return x.AmountGranted
+ }
+ return 0
+}
+
+func (x *OrganizationGrant) GetAmountUsed() float64 {
+ if x != nil {
+ return x.AmountUsed
+ }
+ return 0
+}
+
+func (x *OrganizationGrant) GetExpiresAt() uint64 {
+ if x != nil {
+ return x.ExpiresAt
+ }
+ return 0
+}
+
+func (x *OrganizationGrant) GetGrantedAt() uint64 {
+ if x != nil {
+ return x.GrantedAt
+ }
+ return 0
+}
+
+type OrganizationPaymentInfo struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Balance float64 `protobuf:"fixed64,1,opt,name=balance,proto3" json:"balance,omitempty"`
+ Grants []*OrganizationGrant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants,omitempty"`
+}
+
+func (x *OrganizationPaymentInfo) Reset() {
+ *x = OrganizationPaymentInfo{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *OrganizationPaymentInfo) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*OrganizationPaymentInfo) ProtoMessage() {}
+
+func (x *OrganizationPaymentInfo) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use OrganizationPaymentInfo.ProtoReflect.Descriptor instead.
+func (*OrganizationPaymentInfo) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *OrganizationPaymentInfo) GetBalance() float64 {
+ if x != nil {
+ return x.Balance
+ }
+ return 0
+}
+
+func (x *OrganizationPaymentInfo) GetGrants() []*OrganizationGrant {
+ if x != nil {
+ return x.Grants
+ }
+ return nil
+}
+
+type OrganizationAutoCharge struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
+ Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
+ CreatedAt uint64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
+}
+
+func (x *OrganizationAutoCharge) Reset() {
+ *x = OrganizationAutoCharge{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *OrganizationAutoCharge) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*OrganizationAutoCharge) ProtoMessage() {}
+
+func (x *OrganizationAutoCharge) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use OrganizationAutoCharge.ProtoReflect.Descriptor instead.
+func (*OrganizationAutoCharge) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *OrganizationAutoCharge) GetEnabled() bool {
+ if x != nil {
+ return x.Enabled
+ }
+ return false
+}
+
+func (x *OrganizationAutoCharge) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *OrganizationAutoCharge) GetCreatedAt() uint64 {
+ if x != nil {
+ return x.CreatedAt
+ }
+ return 0
+}
+
+type Organization struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
+ Members []*OrganizationMember `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
+ PaymentInfo *OrganizationPaymentInfo `protobuf:"bytes,5,opt,name=payment_info,json=paymentInfo,proto3,oneof" json:"payment_info,omitempty"`
+ StripeCustomerId *string `protobuf:"bytes,6,opt,name=stripe_customer_id,json=stripeCustomerId,proto3,oneof" json:"stripe_customer_id,omitempty"`
+ AutoCharge *OrganizationAutoCharge `protobuf:"bytes,7,opt,name=auto_charge,json=autoCharge,proto3,oneof" json:"auto_charge,omitempty"`
+}
+
+func (x *Organization) Reset() {
+ *x = Organization{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Organization) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Organization) ProtoMessage() {}
+
+func (x *Organization) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Organization.ProtoReflect.Descriptor instead.
+func (*Organization) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *Organization) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *Organization) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *Organization) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+func (x *Organization) GetMembers() []*OrganizationMember {
+ if x != nil {
+ return x.Members
+ }
+ return nil
+}
+
+func (x *Organization) GetPaymentInfo() *OrganizationPaymentInfo {
+ if x != nil {
+ return x.PaymentInfo
+ }
+ return nil
+}
+
+func (x *Organization) GetStripeCustomerId() string {
+ if x != nil && x.StripeCustomerId != nil {
+ return *x.StripeCustomerId
+ }
+ return ""
+}
+
+func (x *Organization) GetAutoCharge() *OrganizationAutoCharge {
+ if x != nil {
+ return x.AutoCharge
+ }
+ return nil
+}
+
+type APIKey struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
+ IsSecret bool `protobuf:"varint,2,opt,name=is_secret,json=isSecret,proto3" json:"is_secret,omitempty"`
+ CreatedAt uint64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
+}
+
+func (x *APIKey) Reset() {
+ *x = APIKey{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *APIKey) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*APIKey) ProtoMessage() {}
+
+func (x *APIKey) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use APIKey.ProtoReflect.Descriptor instead.
+func (*APIKey) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *APIKey) GetKey() string {
+ if x != nil {
+ return x.Key
+ }
+ return ""
+}
+
+func (x *APIKey) GetIsSecret() bool {
+ if x != nil {
+ return x.IsSecret
+ }
+ return false
+}
+
+func (x *APIKey) GetCreatedAt() uint64 {
+ if x != nil {
+ return x.CreatedAt
+ }
+ return 0
+}
+
+type User struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ AuthId *string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3,oneof" json:"auth_id,omitempty"`
+ ProfilePicture string `protobuf:"bytes,3,opt,name=profile_picture,json=profilePicture,proto3" json:"profile_picture,omitempty"`
+ Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
+ Organizations []*OrganizationMember `protobuf:"bytes,5,rep,name=organizations,proto3" json:"organizations,omitempty"`
+ ApiKeys []*APIKey `protobuf:"bytes,7,rep,name=api_keys,json=apiKeys,proto3" json:"api_keys,omitempty"`
+ CreatedAt uint64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
+ EmailVerified *bool `protobuf:"varint,9,opt,name=email_verified,json=emailVerified,proto3,oneof" json:"email_verified,omitempty"`
+}
+
+func (x *User) Reset() {
+ *x = User{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *User) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*User) ProtoMessage() {}
+
+func (x *User) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use User.ProtoReflect.Descriptor instead.
+func (*User) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *User) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *User) GetAuthId() string {
+ if x != nil && x.AuthId != nil {
+ return *x.AuthId
+ }
+ return ""
+}
+
+func (x *User) GetProfilePicture() string {
+ if x != nil {
+ return x.ProfilePicture
+ }
+ return ""
+}
+
+func (x *User) GetEmail() string {
+ if x != nil {
+ return x.Email
+ }
+ return ""
+}
+
+func (x *User) GetOrganizations() []*OrganizationMember {
+ if x != nil {
+ return x.Organizations
+ }
+ return nil
+}
+
+func (x *User) GetApiKeys() []*APIKey {
+ if x != nil {
+ return x.ApiKeys
+ }
+ return nil
+}
+
+func (x *User) GetCreatedAt() uint64 {
+ if x != nil {
+ return x.CreatedAt
+ }
+ return 0
+}
+
+func (x *User) GetEmailVerified() bool {
+ if x != nil && x.EmailVerified != nil {
+ return *x.EmailVerified
+ }
+ return false
+}
+
+type CostData struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AmountTokens uint32 `protobuf:"varint,1,opt,name=amount_tokens,json=amountTokens,proto3" json:"amount_tokens,omitempty"`
+ AmountCredits float64 `protobuf:"fixed64,2,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"`
+}
+
+func (x *CostData) Reset() {
+ *x = CostData{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CostData) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CostData) ProtoMessage() {}
+
+func (x *CostData) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CostData.ProtoReflect.Descriptor instead.
+func (*CostData) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *CostData) GetAmountTokens() uint32 {
+ if x != nil {
+ return x.AmountTokens
+ }
+ return 0
+}
+
+func (x *CostData) GetAmountCredits() float64 {
+ if x != nil {
+ return x.AmountCredits
+ }
+ return 0
+}
+
+type UsageMetric struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
+ Engine string `protobuf:"bytes,2,opt,name=engine,proto3" json:"engine,omitempty"`
+ InputCost *CostData `protobuf:"bytes,3,opt,name=input_cost,json=inputCost,proto3" json:"input_cost,omitempty"`
+ OutputCost *CostData `protobuf:"bytes,4,opt,name=output_cost,json=outputCost,proto3" json:"output_cost,omitempty"`
+ User *string `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"`
+ AggregationTimestamp uint64 `protobuf:"varint,6,opt,name=aggregation_timestamp,json=aggregationTimestamp,proto3" json:"aggregation_timestamp,omitempty"`
+}
+
+func (x *UsageMetric) Reset() {
+ *x = UsageMetric{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UsageMetric) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UsageMetric) ProtoMessage() {}
+
+func (x *UsageMetric) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UsageMetric.ProtoReflect.Descriptor instead.
+func (*UsageMetric) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *UsageMetric) GetOperation() string {
+ if x != nil {
+ return x.Operation
+ }
+ return ""
+}
+
+func (x *UsageMetric) GetEngine() string {
+ if x != nil {
+ return x.Engine
+ }
+ return ""
+}
+
+func (x *UsageMetric) GetInputCost() *CostData {
+ if x != nil {
+ return x.InputCost
+ }
+ return nil
+}
+
+func (x *UsageMetric) GetOutputCost() *CostData {
+ if x != nil {
+ return x.OutputCost
+ }
+ return nil
+}
+
+func (x *UsageMetric) GetUser() string {
+ if x != nil && x.User != nil {
+ return *x.User
+ }
+ return ""
+}
+
+func (x *UsageMetric) GetAggregationTimestamp() uint64 {
+ if x != nil {
+ return x.AggregationTimestamp
+ }
+ return 0
+}
+
+type CostTotal struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AmountTokens uint32 `protobuf:"varint,1,opt,name=amount_tokens,json=amountTokens,proto3" json:"amount_tokens,omitempty"`
+ AmountCredits float64 `protobuf:"fixed64,2,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"`
+}
+
+func (x *CostTotal) Reset() {
+ *x = CostTotal{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CostTotal) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CostTotal) ProtoMessage() {}
+
+func (x *CostTotal) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CostTotal.ProtoReflect.Descriptor instead.
+func (*CostTotal) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *CostTotal) GetAmountTokens() uint32 {
+ if x != nil {
+ return x.AmountTokens
+ }
+ return 0
+}
+
+func (x *CostTotal) GetAmountCredits() float64 {
+ if x != nil {
+ return x.AmountCredits
+ }
+ return 0
+}
+
+type TotalMetricsData struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ InputTotal *CostTotal `protobuf:"bytes,1,opt,name=input_total,json=inputTotal,proto3" json:"input_total,omitempty"`
+ OutputTotal *CostTotal `protobuf:"bytes,2,opt,name=output_total,json=outputTotal,proto3" json:"output_total,omitempty"`
+}
+
+func (x *TotalMetricsData) Reset() {
+ *x = TotalMetricsData{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TotalMetricsData) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TotalMetricsData) ProtoMessage() {}
+
+func (x *TotalMetricsData) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use TotalMetricsData.ProtoReflect.Descriptor instead.
+func (*TotalMetricsData) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *TotalMetricsData) GetInputTotal() *CostTotal {
+ if x != nil {
+ return x.InputTotal
+ }
+ return nil
+}
+
+func (x *TotalMetricsData) GetOutputTotal() *CostTotal {
+ if x != nil {
+ return x.OutputTotal
+ }
+ return nil
+}
+
+type Metrics struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Metrics []*UsageMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
+ Total *TotalMetricsData `protobuf:"bytes,2,opt,name=total,proto3" json:"total,omitempty"`
+}
+
+func (x *Metrics) Reset() {
+ *x = Metrics{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Metrics) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Metrics) ProtoMessage() {}
+
+func (x *Metrics) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Metrics.ProtoReflect.Descriptor instead.
+func (*Metrics) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *Metrics) GetMetrics() []*UsageMetric {
+ if x != nil {
+ return x.Metrics
+ }
+ return nil
+}
+
+func (x *Metrics) GetTotal() *TotalMetricsData {
+ if x != nil {
+ return x.Total
+ }
+ return nil
+}
+
+type EmptyRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *EmptyRequest) Reset() {
+ *x = EmptyRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[12]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EmptyRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EmptyRequest) ProtoMessage() {}
+
+func (x *EmptyRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[12]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
+func (*EmptyRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{12}
+}
+
+type GetOrganizationRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *GetOrganizationRequest) Reset() {
+ *x = GetOrganizationRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[13]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetOrganizationRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetOrganizationRequest) ProtoMessage() {}
+
+func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[13]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead.
+func (*GetOrganizationRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{13}
+}
+
+func (x *GetOrganizationRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+type GetMetricsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
+ UserId *string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
+ RangeFrom uint64 `protobuf:"varint,3,opt,name=range_from,json=rangeFrom,proto3" json:"range_from,omitempty"`
+ RangeTo uint64 `protobuf:"varint,4,opt,name=range_to,json=rangeTo,proto3" json:"range_to,omitempty"`
+ IncludePerRequestMetrics bool `protobuf:"varint,5,opt,name=include_per_request_metrics,json=includePerRequestMetrics,proto3" json:"include_per_request_metrics,omitempty"`
+}
+
+func (x *GetMetricsRequest) Reset() {
+ *x = GetMetricsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetMetricsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetMetricsRequest) ProtoMessage() {}
+
+func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead.
+func (*GetMetricsRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{14}
+}
+
+func (x *GetMetricsRequest) GetOrganizationId() string {
+ if x != nil {
+ return x.OrganizationId
+ }
+ return ""
+}
+
+func (x *GetMetricsRequest) GetUserId() string {
+ if x != nil && x.UserId != nil {
+ return *x.UserId
+ }
+ return ""
+}
+
+func (x *GetMetricsRequest) GetRangeFrom() uint64 {
+ if x != nil {
+ return x.RangeFrom
+ }
+ return 0
+}
+
+func (x *GetMetricsRequest) GetRangeTo() uint64 {
+ if x != nil {
+ return x.RangeTo
+ }
+ return 0
+}
+
+func (x *GetMetricsRequest) GetIncludePerRequestMetrics() bool {
+ if x != nil {
+ return x.IncludePerRequestMetrics
+ }
+ return false
+}
+
+type APIKeyRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ IsSecret bool `protobuf:"varint,1,opt,name=is_secret,json=isSecret,proto3" json:"is_secret,omitempty"`
+}
+
+func (x *APIKeyRequest) Reset() {
+ *x = APIKeyRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *APIKeyRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*APIKeyRequest) ProtoMessage() {}
+
+func (x *APIKeyRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[15]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use APIKeyRequest.ProtoReflect.Descriptor instead.
+func (*APIKeyRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{15}
+}
+
+func (x *APIKeyRequest) GetIsSecret() bool {
+ if x != nil {
+ return x.IsSecret
+ }
+ return false
+}
+
+type APIKeyFindRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *APIKeyFindRequest) Reset() {
+ *x = APIKeyFindRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[16]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *APIKeyFindRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*APIKeyFindRequest) ProtoMessage() {}
+
+func (x *APIKeyFindRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[16]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use APIKeyFindRequest.ProtoReflect.Descriptor instead.
+func (*APIKeyFindRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{16}
+}
+
+func (x *APIKeyFindRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+type UpdateDefaultOrganizationRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
+}
+
+func (x *UpdateDefaultOrganizationRequest) Reset() {
+ *x = UpdateDefaultOrganizationRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[17]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateDefaultOrganizationRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateDefaultOrganizationRequest) ProtoMessage() {}
+
+func (x *UpdateDefaultOrganizationRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[17]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateDefaultOrganizationRequest.ProtoReflect.Descriptor instead.
+func (*UpdateDefaultOrganizationRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{17}
+}
+
+func (x *UpdateDefaultOrganizationRequest) GetOrganizationId() string {
+ if x != nil {
+ return x.OrganizationId
+ }
+ return ""
+}
+
+type ClientSettings struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Settings []byte `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
+}
+
+func (x *ClientSettings) Reset() {
+ *x = ClientSettings{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[18]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ClientSettings) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ClientSettings) ProtoMessage() {}
+
+func (x *ClientSettings) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[18]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ClientSettings.ProtoReflect.Descriptor instead.
+func (*ClientSettings) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{18}
+}
+
+func (x *ClientSettings) GetSettings() []byte {
+ if x != nil {
+ return x.Settings
+ }
+ return nil
+}
+
+type CreateAutoChargeIntentRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
+ MonthlyMaximum uint64 `protobuf:"varint,2,opt,name=monthly_maximum,json=monthlyMaximum,proto3" json:"monthly_maximum,omitempty"`
+ MinimumValue uint64 `protobuf:"varint,3,opt,name=minimum_value,json=minimumValue,proto3" json:"minimum_value,omitempty"`
+ AmountCredits uint64 `protobuf:"varint,4,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"`
+}
+
+func (x *CreateAutoChargeIntentRequest) Reset() {
+ *x = CreateAutoChargeIntentRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[19]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateAutoChargeIntentRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateAutoChargeIntentRequest) ProtoMessage() {}
+
+func (x *CreateAutoChargeIntentRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[19]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateAutoChargeIntentRequest.ProtoReflect.Descriptor instead.
+func (*CreateAutoChargeIntentRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{19}
+}
+
+func (x *CreateAutoChargeIntentRequest) GetOrganizationId() string {
+ if x != nil {
+ return x.OrganizationId
+ }
+ return ""
+}
+
+func (x *CreateAutoChargeIntentRequest) GetMonthlyMaximum() uint64 {
+ if x != nil {
+ return x.MonthlyMaximum
+ }
+ return 0
+}
+
+func (x *CreateAutoChargeIntentRequest) GetMinimumValue() uint64 {
+ if x != nil {
+ return x.MinimumValue
+ }
+ return 0
+}
+
+func (x *CreateAutoChargeIntentRequest) GetAmountCredits() uint64 {
+ if x != nil {
+ return x.AmountCredits
+ }
+ return 0
+}
+
+type CreateChargeRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
+ OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
+}
+
+func (x *CreateChargeRequest) Reset() {
+ *x = CreateChargeRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[20]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateChargeRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateChargeRequest) ProtoMessage() {}
+
+func (x *CreateChargeRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[20]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateChargeRequest.ProtoReflect.Descriptor instead.
+func (*CreateChargeRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{20}
+}
+
+func (x *CreateChargeRequest) GetAmount() uint64 {
+ if x != nil {
+ return x.Amount
+ }
+ return 0
+}
+
+func (x *CreateChargeRequest) GetOrganizationId() string {
+ if x != nil {
+ return x.OrganizationId
+ }
+ return ""
+}
+
+type GetChargesRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
+ RangeFrom uint64 `protobuf:"varint,2,opt,name=range_from,json=rangeFrom,proto3" json:"range_from,omitempty"`
+ RangeTo uint64 `protobuf:"varint,3,opt,name=range_to,json=rangeTo,proto3" json:"range_to,omitempty"`
+}
+
+func (x *GetChargesRequest) Reset() {
+ *x = GetChargesRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[21]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetChargesRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetChargesRequest) ProtoMessage() {}
+
+func (x *GetChargesRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[21]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetChargesRequest.ProtoReflect.Descriptor instead.
+func (*GetChargesRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{21}
+}
+
+func (x *GetChargesRequest) GetOrganizationId() string {
+ if x != nil {
+ return x.OrganizationId
+ }
+ return ""
+}
+
+func (x *GetChargesRequest) GetRangeFrom() uint64 {
+ if x != nil {
+ return x.RangeFrom
+ }
+ return 0
+}
+
+func (x *GetChargesRequest) GetRangeTo() uint64 {
+ if x != nil {
+ return x.RangeTo
+ }
+ return 0
+}
+
+type Charge struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ Paid bool `protobuf:"varint,2,opt,name=paid,proto3" json:"paid,omitempty"`
+ ReceiptLink string `protobuf:"bytes,3,opt,name=receipt_link,json=receiptLink,proto3" json:"receipt_link,omitempty"`
+ PaymentLink string `protobuf:"bytes,4,opt,name=payment_link,json=paymentLink,proto3" json:"payment_link,omitempty"`
+ CreatedAt uint64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
+ AmountCredits uint64 `protobuf:"varint,6,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"`
+}
+
+func (x *Charge) Reset() {
+ *x = Charge{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[22]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Charge) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Charge) ProtoMessage() {}
+
+func (x *Charge) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[22]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Charge.ProtoReflect.Descriptor instead.
+func (*Charge) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{22}
+}
+
+func (x *Charge) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *Charge) GetPaid() bool {
+ if x != nil {
+ return x.Paid
+ }
+ return false
+}
+
+func (x *Charge) GetReceiptLink() string {
+ if x != nil {
+ return x.ReceiptLink
+ }
+ return ""
+}
+
+func (x *Charge) GetPaymentLink() string {
+ if x != nil {
+ return x.PaymentLink
+ }
+ return ""
+}
+
+func (x *Charge) GetCreatedAt() uint64 {
+ if x != nil {
+ return x.CreatedAt
+ }
+ return 0
+}
+
+func (x *Charge) GetAmountCredits() uint64 {
+ if x != nil {
+ return x.AmountCredits
+ }
+ return 0
+}
+
+type Charges struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Charges []*Charge `protobuf:"bytes,1,rep,name=charges,proto3" json:"charges,omitempty"`
+}
+
+func (x *Charges) Reset() {
+ *x = Charges{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[23]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Charges) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Charges) ProtoMessage() {}
+
+func (x *Charges) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[23]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Charges.ProtoReflect.Descriptor instead.
+func (*Charges) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{23}
+}
+
+func (x *Charges) GetCharges() []*Charge {
+ if x != nil {
+ return x.Charges
+ }
+ return nil
+}
+
+type GetAutoChargeRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
+}
+
+func (x *GetAutoChargeRequest) Reset() {
+ *x = GetAutoChargeRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[24]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetAutoChargeRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetAutoChargeRequest) ProtoMessage() {}
+
+func (x *GetAutoChargeRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[24]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetAutoChargeRequest.ProtoReflect.Descriptor instead.
+func (*GetAutoChargeRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{24}
+}
+
+func (x *GetAutoChargeRequest) GetOrganizationId() string {
+ if x != nil {
+ return x.OrganizationId
+ }
+ return ""
+}
+
+type AutoChargeIntent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ PaymentLink string `protobuf:"bytes,2,opt,name=payment_link,json=paymentLink,proto3" json:"payment_link,omitempty"`
+ CreatedAt uint64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
+ MonthlyMaximum uint64 `protobuf:"varint,4,opt,name=monthly_maximum,json=monthlyMaximum,proto3" json:"monthly_maximum,omitempty"`
+ MinimumValue uint64 `protobuf:"varint,5,opt,name=minimum_value,json=minimumValue,proto3" json:"minimum_value,omitempty"`
+ AmountCredits uint64 `protobuf:"varint,6,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"`
+}
+
+func (x *AutoChargeIntent) Reset() {
+ *x = AutoChargeIntent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[25]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *AutoChargeIntent) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AutoChargeIntent) ProtoMessage() {}
+
+func (x *AutoChargeIntent) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[25]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use AutoChargeIntent.ProtoReflect.Descriptor instead.
+func (*AutoChargeIntent) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{25}
+}
+
+func (x *AutoChargeIntent) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *AutoChargeIntent) GetPaymentLink() string {
+ if x != nil {
+ return x.PaymentLink
+ }
+ return ""
+}
+
+func (x *AutoChargeIntent) GetCreatedAt() uint64 {
+ if x != nil {
+ return x.CreatedAt
+ }
+ return 0
+}
+
+func (x *AutoChargeIntent) GetMonthlyMaximum() uint64 {
+ if x != nil {
+ return x.MonthlyMaximum
+ }
+ return 0
+}
+
+func (x *AutoChargeIntent) GetMinimumValue() uint64 {
+ if x != nil {
+ return x.MinimumValue
+ }
+ return 0
+}
+
+func (x *AutoChargeIntent) GetAmountCredits() uint64 {
+ if x != nil {
+ return x.AmountCredits
+ }
+ return 0
+}
+
+type UpdateUserInfoRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Email *string `protobuf:"bytes,1,opt,name=email,proto3,oneof" json:"email,omitempty"`
+}
+
+func (x *UpdateUserInfoRequest) Reset() {
+ *x = UpdateUserInfoRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateUserInfoRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateUserInfoRequest) ProtoMessage() {}
+
+func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead.
+func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{26}
+}
+
+func (x *UpdateUserInfoRequest) GetEmail() string {
+ if x != nil && x.Email != nil {
+ return *x.Email
+ }
+ return ""
+}
+
+type UserPasswordChangeTicket struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
+}
+
+func (x *UserPasswordChangeTicket) Reset() {
+ *x = UserPasswordChangeTicket{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[27]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UserPasswordChangeTicket) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UserPasswordChangeTicket) ProtoMessage() {}
+
+func (x *UserPasswordChangeTicket) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[27]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UserPasswordChangeTicket.ProtoReflect.Descriptor instead.
+func (*UserPasswordChangeTicket) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{27}
+}
+
+func (x *UserPasswordChangeTicket) GetTicket() string {
+ if x != nil {
+ return x.Ticket
+ }
+ return ""
+}
+
+var File_stability_api_platform_dashboard_v1_dashboard_proto protoreflect.FileDescriptor
+
+var file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc = []byte{
+ 0x0a, 0x33, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f,
+ 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61,
+ 0x72, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
+ 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64,
+ 0x2e, 0x76, 0x31, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0c, 0x6f, 0x72,
+ 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61,
+ 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x6f, 0x72,
+ 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x04, 0x75, 0x73,
+ 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69,
+ 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62,
+ 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x48, 0x00, 0x52, 0x04,
+ 0x75, 0x73, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x42, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
+ 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72,
+ 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69,
+ 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
+ 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x75,
+ 0x73, 0x65, 0x72, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f,
+ 0x75, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64,
+ 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, 0x65,
+ 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74,
+ 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22,
+ 0x7c, 0x0a, 0x17, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50,
+ 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61,
+ 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x62, 0x61, 0x6c,
+ 0x61, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
+ 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64,
+ 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x61, 0x0a,
+ 0x16, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74,
+ 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
+ 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
+ 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
+ 0x22, 0xc6, 0x03, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
+ 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
+ 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65,
+ 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69,
+ 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62,
+ 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62,
+ 0x65, 0x72, 0x73, 0x12, 0x5d, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69,
+ 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62,
+ 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68,
+ 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f,
+ 0x48, 0x00, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x88,
+ 0x01, 0x01, 0x12, 0x31, 0x0a, 0x12, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x63, 0x75, 0x73,
+ 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01,
+ 0x52, 0x10, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72,
+ 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x63, 0x68,
+ 0x61, 0x72, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61,
+ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73,
+ 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
+ 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65,
+ 0x48, 0x02, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x88, 0x01,
+ 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e,
+ 0x66, 0x6f, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x63, 0x75,
+ 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x61, 0x75,
+ 0x74, 0x6f, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x22, 0x56, 0x0a, 0x06, 0x41, 0x50, 0x49,
+ 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x63, 0x72,
+ 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x53, 0x65, 0x63, 0x72,
+ 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
+ 0x74, 0x22, 0xf6, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x75,
+ 0x74, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x61,
+ 0x75, 0x74, 0x68, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x66,
+ 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72,
+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x56, 0x0a, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e,
+ 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30,
+ 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69,
+ 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72,
+ 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
+ 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12,
+ 0x3f, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e,
+ 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31,
+ 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x61, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x73,
+ 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08,
+ 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12,
+ 0x2a, 0x0a, 0x0e, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65,
+ 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x0d, 0x65, 0x6d, 0x61, 0x69, 0x6c,
+ 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f,
+ 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x65, 0x6d, 0x61, 0x69,
+ 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x56, 0x0a, 0x08, 0x43, 0x6f,
+ 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x61,
+ 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61,
+ 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69,
+ 0x74, 0x73, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x72,
+ 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75,
+ 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73,
+ 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64,
+ 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74,
+ 0x44, 0x61, 0x74, 0x61, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x12,
+ 0x47, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
+ 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64,
+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x75,
+ 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x88, 0x01,
+ 0x01, 0x12, 0x33, 0x0a, 0x15, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04,
+ 0x52, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d,
+ 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x22,
+ 0x57, 0x0a, 0x09, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0d,
+ 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64,
+ 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e,
+ 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x10, 0x54, 0x6f, 0x74,
+ 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a,
+ 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69,
+ 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76,
+ 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0a, 0x69, 0x6e, 0x70,
+ 0x75, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x4a, 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75,
+ 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,
+ 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+ 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73,
+ 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x6f,
+ 0x74, 0x61, 0x6c, 0x22, 0x94, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12,
+ 0x43, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x29, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61,
+ 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e,
+ 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 0x6d, 0x65, 0x74,
+ 0x72, 0x69, 0x63, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61,
+ 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e,
+ 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x44,
+ 0x61, 0x74, 0x61, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x0e, 0x0a, 0x0c, 0x45, 0x6d,
+ 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x28, 0x0a, 0x16, 0x47, 0x65,
+ 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x02, 0x69, 0x64, 0x22, 0xdf, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72,
+ 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72,
+ 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01,
+ 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, 0x6f, 0x6d,
+ 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x04, 0x52, 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x12, 0x3d, 0x0a, 0x1b, 0x69,
+ 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75,
+ 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0d, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x73, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x22, 0x23, 0x0a, 0x11, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x46, 0x69,
+ 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x20, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
+ 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a,
+ 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
+ 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69,
+ 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
+ 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x69, 0x6d,
+ 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c,
+ 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x69,
+ 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52,
+ 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a,
+ 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65,
+ 0x64, 0x69, 0x74, 0x73, 0x22, 0x56, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68,
+ 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61,
+ 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f,
+ 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72,
+ 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x11,
+ 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61,
+ 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61,
+ 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09,
+ 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x6e,
+ 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x61, 0x6e,
+ 0x67, 0x65, 0x54, 0x6f, 0x22, 0xb8, 0x01, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12,
+ 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
+ 0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x70,
+ 0x61, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x5f, 0x6c,
+ 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69,
+ 0x70, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
+ 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61,
+ 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75,
+ 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04,
+ 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22,
+ 0x49, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x68,
+ 0x61, 0x72, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x74,
+ 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61,
+ 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67,
+ 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x14, 0x47, 0x65,
+ 0x74, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67,
+ 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xd9, 0x01, 0x0a, 0x10,
+ 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74,
+ 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
+ 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c,
+ 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
+ 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
+ 0x41, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x6d, 0x61,
+ 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x6f, 0x6e,
+ 0x74, 0x68, 0x6c, 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x6d,
+ 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01,
+ 0x28, 0x04, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65,
+ 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69,
+ 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
+ 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x12, 0x19, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48,
+ 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f,
+ 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x32, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73,
+ 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65,
+ 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2a, 0x39, 0x0a, 0x10, 0x4f, 0x72, 0x67,
+ 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a,
+ 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x43, 0x43,
+ 0x4f, 0x55, 0x4e, 0x54, 0x41, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e,
+ 0x45, 0x52, 0x10, 0x02, 0x32, 0x9a, 0x0e, 0x0a, 0x10, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61,
+ 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x05, 0x47, 0x65, 0x74,
+ 0x4d, 0x65, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69,
+ 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76,
+ 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
+ 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69,
+ 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73,
+ 0x65, 0x72, 0x12, 0x73, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
+ 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72,
+ 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x74,
+ 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61,
+ 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e,
+ 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x65,
+ 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
+ 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72,
+ 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
+ 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61,
+ 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x61, 0x0a,
+ 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x2e,
+ 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+ 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49,
+ 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61,
+ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73,
+ 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79,
+ 0x12, 0x65, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79,
+ 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61,
+ 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e,
+ 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e,
+ 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31,
+ 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x7f, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
+ 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64,
+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c,
+ 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
+ 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64,
+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x6d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43,
+ 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2a, 0x2e,
+ 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+ 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70,
+ 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62,
+ 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68,
+ 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x6f, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x6c,
+ 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, 0x2e, 0x73,
+ 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64,
+ 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65,
+ 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61,
+ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73,
+ 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x69, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x2e, 0x73, 0x74, 0x61,
+ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73,
+ 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70,
+ 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55,
+ 0x73, 0x65, 0x72, 0x12, 0x80, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61,
+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x63, 0x6b,
+ 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69,
+ 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76,
+ 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36,
+ 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69,
+ 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73,
+ 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c,
+ 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f,
+ 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61,
+ 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e,
+ 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74,
+ 0x65, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c,
+ 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f,
+ 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61,
+ 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61,
+ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73,
+ 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65,
+ 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x2f,
+ 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69,
+ 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
+ 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70,
+ 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43,
+ 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74,
+ 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e,
+ 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e,
+ 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31,
+ 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67,
+ 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e,
+ 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69,
+ 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75,
+ 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x85,
+ 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61,
+ 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62,
+ 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68,
+ 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
+ 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
+ 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61,
+ 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65,
+ 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74,
+ 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x2e,
+ 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+ 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
+ 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e,
+ 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31,
+ 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e,
+ 0x74, 0x42, 0xa1, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c,
+ 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f,
+ 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72,
+ 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61,
+ 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73,
+ 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x61, 0x73, 0x68,
+ 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61,
+ 0x72, 0x64, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x44, 0xaa, 0x02, 0x1c, 0x53, 0x74, 0x61,
+ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x73,
+ 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62,
+ 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68,
+ 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x28, 0x53, 0x74, 0x61, 0x62, 0x69,
+ 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62,
+ 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61,
+ 0x69, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72,
+ 0x64, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescOnce sync.Once
+ file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData = file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc
+)
+
+func file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP() []byte {
+ file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescOnce.Do(func() {
+ file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData)
+ })
+ return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData
+}
+
+var file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
+var file_stability_api_platform_dashboard_v1_dashboard_proto_goTypes = []interface{}{
+ (OrganizationRole)(0), // 0: stabilityai.api.dashboard.v1.OrganizationRole
+ (*OrganizationMember)(nil), // 1: stabilityai.api.dashboard.v1.OrganizationMember
+ (*OrganizationGrant)(nil), // 2: stabilityai.api.dashboard.v1.OrganizationGrant
+ (*OrganizationPaymentInfo)(nil), // 3: stabilityai.api.dashboard.v1.OrganizationPaymentInfo
+ (*OrganizationAutoCharge)(nil), // 4: stabilityai.api.dashboard.v1.OrganizationAutoCharge
+ (*Organization)(nil), // 5: stabilityai.api.dashboard.v1.Organization
+ (*APIKey)(nil), // 6: stabilityai.api.dashboard.v1.APIKey
+ (*User)(nil), // 7: stabilityai.api.dashboard.v1.User
+ (*CostData)(nil), // 8: stabilityai.api.dashboard.v1.CostData
+ (*UsageMetric)(nil), // 9: stabilityai.api.dashboard.v1.UsageMetric
+ (*CostTotal)(nil), // 10: stabilityai.api.dashboard.v1.CostTotal
+ (*TotalMetricsData)(nil), // 11: stabilityai.api.dashboard.v1.TotalMetricsData
+ (*Metrics)(nil), // 12: stabilityai.api.dashboard.v1.Metrics
+ (*EmptyRequest)(nil), // 13: stabilityai.api.dashboard.v1.EmptyRequest
+ (*GetOrganizationRequest)(nil), // 14: stabilityai.api.dashboard.v1.GetOrganizationRequest
+ (*GetMetricsRequest)(nil), // 15: stabilityai.api.dashboard.v1.GetMetricsRequest
+ (*APIKeyRequest)(nil), // 16: stabilityai.api.dashboard.v1.APIKeyRequest
+ (*APIKeyFindRequest)(nil), // 17: stabilityai.api.dashboard.v1.APIKeyFindRequest
+ (*UpdateDefaultOrganizationRequest)(nil), // 18: stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest
+ (*ClientSettings)(nil), // 19: stabilityai.api.dashboard.v1.ClientSettings
+ (*CreateAutoChargeIntentRequest)(nil), // 20: stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest
+ (*CreateChargeRequest)(nil), // 21: stabilityai.api.dashboard.v1.CreateChargeRequest
+ (*GetChargesRequest)(nil), // 22: stabilityai.api.dashboard.v1.GetChargesRequest
+ (*Charge)(nil), // 23: stabilityai.api.dashboard.v1.Charge
+ (*Charges)(nil), // 24: stabilityai.api.dashboard.v1.Charges
+ (*GetAutoChargeRequest)(nil), // 25: stabilityai.api.dashboard.v1.GetAutoChargeRequest
+ (*AutoChargeIntent)(nil), // 26: stabilityai.api.dashboard.v1.AutoChargeIntent
+ (*UpdateUserInfoRequest)(nil), // 27: stabilityai.api.dashboard.v1.UpdateUserInfoRequest
+ (*UserPasswordChangeTicket)(nil), // 28: stabilityai.api.dashboard.v1.UserPasswordChangeTicket
+}
+var file_stability_api_platform_dashboard_v1_dashboard_proto_depIdxs = []int32{
+ 5, // 0: stabilityai.api.dashboard.v1.OrganizationMember.organization:type_name -> stabilityai.api.dashboard.v1.Organization
+ 7, // 1: stabilityai.api.dashboard.v1.OrganizationMember.user:type_name -> stabilityai.api.dashboard.v1.User
+ 0, // 2: stabilityai.api.dashboard.v1.OrganizationMember.role:type_name -> stabilityai.api.dashboard.v1.OrganizationRole
+ 2, // 3: stabilityai.api.dashboard.v1.OrganizationPaymentInfo.grants:type_name -> stabilityai.api.dashboard.v1.OrganizationGrant
+ 1, // 4: stabilityai.api.dashboard.v1.Organization.members:type_name -> stabilityai.api.dashboard.v1.OrganizationMember
+ 3, // 5: stabilityai.api.dashboard.v1.Organization.payment_info:type_name -> stabilityai.api.dashboard.v1.OrganizationPaymentInfo
+ 4, // 6: stabilityai.api.dashboard.v1.Organization.auto_charge:type_name -> stabilityai.api.dashboard.v1.OrganizationAutoCharge
+ 1, // 7: stabilityai.api.dashboard.v1.User.organizations:type_name -> stabilityai.api.dashboard.v1.OrganizationMember
+ 6, // 8: stabilityai.api.dashboard.v1.User.api_keys:type_name -> stabilityai.api.dashboard.v1.APIKey
+ 8, // 9: stabilityai.api.dashboard.v1.UsageMetric.input_cost:type_name -> stabilityai.api.dashboard.v1.CostData
+ 8, // 10: stabilityai.api.dashboard.v1.UsageMetric.output_cost:type_name -> stabilityai.api.dashboard.v1.CostData
+ 10, // 11: stabilityai.api.dashboard.v1.TotalMetricsData.input_total:type_name -> stabilityai.api.dashboard.v1.CostTotal
+ 10, // 12: stabilityai.api.dashboard.v1.TotalMetricsData.output_total:type_name -> stabilityai.api.dashboard.v1.CostTotal
+ 9, // 13: stabilityai.api.dashboard.v1.Metrics.metrics:type_name -> stabilityai.api.dashboard.v1.UsageMetric
+ 11, // 14: stabilityai.api.dashboard.v1.Metrics.total:type_name -> stabilityai.api.dashboard.v1.TotalMetricsData
+ 23, // 15: stabilityai.api.dashboard.v1.Charges.charges:type_name -> stabilityai.api.dashboard.v1.Charge
+ 13, // 16: stabilityai.api.dashboard.v1.DashboardService.GetMe:input_type -> stabilityai.api.dashboard.v1.EmptyRequest
+ 14, // 17: stabilityai.api.dashboard.v1.DashboardService.GetOrganization:input_type -> stabilityai.api.dashboard.v1.GetOrganizationRequest
+ 15, // 18: stabilityai.api.dashboard.v1.DashboardService.GetMetrics:input_type -> stabilityai.api.dashboard.v1.GetMetricsRequest
+ 16, // 19: stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey:input_type -> stabilityai.api.dashboard.v1.APIKeyRequest
+ 17, // 20: stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey:input_type -> stabilityai.api.dashboard.v1.APIKeyFindRequest
+ 18, // 21: stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization:input_type -> stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest
+ 13, // 22: stabilityai.api.dashboard.v1.DashboardService.GetClientSettings:input_type -> stabilityai.api.dashboard.v1.EmptyRequest
+ 19, // 23: stabilityai.api.dashboard.v1.DashboardService.SetClientSettings:input_type -> stabilityai.api.dashboard.v1.ClientSettings
+ 27, // 24: stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo:input_type -> stabilityai.api.dashboard.v1.UpdateUserInfoRequest
+ 13, // 25: stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket:input_type -> stabilityai.api.dashboard.v1.EmptyRequest
+ 13, // 26: stabilityai.api.dashboard.v1.DashboardService.DeleteAccount:input_type -> stabilityai.api.dashboard.v1.EmptyRequest
+ 21, // 27: stabilityai.api.dashboard.v1.DashboardService.CreateCharge:input_type -> stabilityai.api.dashboard.v1.CreateChargeRequest
+ 22, // 28: stabilityai.api.dashboard.v1.DashboardService.GetCharges:input_type -> stabilityai.api.dashboard.v1.GetChargesRequest
+ 20, // 29: stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent:input_type -> stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest
+ 20, // 30: stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent:input_type -> stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest
+ 25, // 31: stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent:input_type -> stabilityai.api.dashboard.v1.GetAutoChargeRequest
+ 7, // 32: stabilityai.api.dashboard.v1.DashboardService.GetMe:output_type -> stabilityai.api.dashboard.v1.User
+ 5, // 33: stabilityai.api.dashboard.v1.DashboardService.GetOrganization:output_type -> stabilityai.api.dashboard.v1.Organization
+ 12, // 34: stabilityai.api.dashboard.v1.DashboardService.GetMetrics:output_type -> stabilityai.api.dashboard.v1.Metrics
+ 6, // 35: stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey:output_type -> stabilityai.api.dashboard.v1.APIKey
+ 6, // 36: stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey:output_type -> stabilityai.api.dashboard.v1.APIKey
+ 7, // 37: stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization:output_type -> stabilityai.api.dashboard.v1.User
+ 19, // 38: stabilityai.api.dashboard.v1.DashboardService.GetClientSettings:output_type -> stabilityai.api.dashboard.v1.ClientSettings
+ 19, // 39: stabilityai.api.dashboard.v1.DashboardService.SetClientSettings:output_type -> stabilityai.api.dashboard.v1.ClientSettings
+ 7, // 40: stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo:output_type -> stabilityai.api.dashboard.v1.User
+ 28, // 41: stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket:output_type -> stabilityai.api.dashboard.v1.UserPasswordChangeTicket
+ 7, // 42: stabilityai.api.dashboard.v1.DashboardService.DeleteAccount:output_type -> stabilityai.api.dashboard.v1.User
+ 23, // 43: stabilityai.api.dashboard.v1.DashboardService.CreateCharge:output_type -> stabilityai.api.dashboard.v1.Charge
+ 24, // 44: stabilityai.api.dashboard.v1.DashboardService.GetCharges:output_type -> stabilityai.api.dashboard.v1.Charges
+ 26, // 45: stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent:output_type -> stabilityai.api.dashboard.v1.AutoChargeIntent
+ 26, // 46: stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent:output_type -> stabilityai.api.dashboard.v1.AutoChargeIntent
+ 26, // 47: stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent:output_type -> stabilityai.api.dashboard.v1.AutoChargeIntent
+ 32, // [32:48] is the sub-list for method output_type
+ 16, // [16:32] is the sub-list for method input_type
+ 16, // [16:16] is the sub-list for extension type_name
+ 16, // [16:16] is the sub-list for extension extendee
+ 0, // [0:16] is the sub-list for field type_name
+}
+
+func init() { file_stability_api_platform_dashboard_v1_dashboard_proto_init() }
+func file_stability_api_platform_dashboard_v1_dashboard_proto_init() {
+ if File_stability_api_platform_dashboard_v1_dashboard_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*OrganizationMember); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*OrganizationGrant); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*OrganizationPaymentInfo); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*OrganizationAutoCharge); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Organization); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*APIKey); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*User); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CostData); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UsageMetric); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CostTotal); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*TotalMetricsData); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Metrics); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EmptyRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetOrganizationRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetMetricsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*APIKeyRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*APIKeyFindRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateDefaultOrganizationRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ClientSettings); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateAutoChargeIntentRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateChargeRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetChargesRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Charge); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Charges); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetAutoChargeRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*AutoChargeIntent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateUserInfoRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UserPasswordChangeTicket); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0].OneofWrappers = []interface{}{}
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4].OneofWrappers = []interface{}{}
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6].OneofWrappers = []interface{}{}
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8].OneofWrappers = []interface{}{}
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14].OneofWrappers = []interface{}{}
+ file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26].OneofWrappers = []interface{}{}
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 28,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_stability_api_platform_dashboard_v1_dashboard_proto_goTypes,
+ DependencyIndexes: file_stability_api_platform_dashboard_v1_dashboard_proto_depIdxs,
+ EnumInfos: file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes,
+ MessageInfos: file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes,
+ }.Build()
+ File_stability_api_platform_dashboard_v1_dashboard_proto = out.File
+ file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc = nil
+ file_stability_api_platform_dashboard_v1_dashboard_proto_goTypes = nil
+ file_stability_api_platform_dashboard_v1_dashboard_proto_depIdxs = nil
+}
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts b/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts
new file mode 100644
index 0000000..b4cde11
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts
@@ -0,0 +1,169 @@
+// @generated by protoc-gen-connect-es v0.12.0
+// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { APIKey, APIKeyFindRequest, APIKeyRequest, AutoChargeIntent, Charge, Charges, ClientSettings, CreateAutoChargeIntentRequest, CreateChargeRequest, EmptyRequest, GetAutoChargeRequest, GetChargesRequest, GetMetricsRequest, GetOrganizationRequest, Metrics, Organization, UpdateDefaultOrganizationRequest, UpdateUserInfoRequest, User, UserPasswordChangeTicket } from "./dashboard_pb.js";
+import { MethodKind } from "@bufbuild/protobuf";
+
+/**
+ * @generated from service stabilityai.api.dashboard.v1.DashboardService
+ */
+export declare const DashboardService: {
+ readonly typeName: "stabilityai.api.dashboard.v1.DashboardService",
+ readonly methods: {
+ /**
+ * Get info
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMe
+ */
+ readonly getMe: {
+ readonly name: "GetMe",
+ readonly I: typeof EmptyRequest,
+ readonly O: typeof User,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetOrganization
+ */
+ readonly getOrganization: {
+ readonly name: "GetOrganization",
+ readonly I: typeof GetOrganizationRequest,
+ readonly O: typeof Organization,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMetrics
+ */
+ readonly getMetrics: {
+ readonly name: "GetMetrics",
+ readonly I: typeof GetMetricsRequest,
+ readonly O: typeof Metrics,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * API key management
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey
+ */
+ readonly createAPIKey: {
+ readonly name: "CreateAPIKey",
+ readonly I: typeof APIKeyRequest,
+ readonly O: typeof APIKey,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey
+ */
+ readonly deleteAPIKey: {
+ readonly name: "DeleteAPIKey",
+ readonly I: typeof APIKeyFindRequest,
+ readonly O: typeof APIKey,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * User settings
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization
+ */
+ readonly updateDefaultOrganization: {
+ readonly name: "UpdateDefaultOrganization",
+ readonly I: typeof UpdateDefaultOrganizationRequest,
+ readonly O: typeof User,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetClientSettings
+ */
+ readonly getClientSettings: {
+ readonly name: "GetClientSettings",
+ readonly I: typeof EmptyRequest,
+ readonly O: typeof ClientSettings,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.SetClientSettings
+ */
+ readonly setClientSettings: {
+ readonly name: "SetClientSettings",
+ readonly I: typeof ClientSettings,
+ readonly O: typeof ClientSettings,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo
+ */
+ readonly updateUserInfo: {
+ readonly name: "UpdateUserInfo",
+ readonly I: typeof UpdateUserInfoRequest,
+ readonly O: typeof User,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket
+ */
+ readonly createPasswordChangeTicket: {
+ readonly name: "CreatePasswordChangeTicket",
+ readonly I: typeof EmptyRequest,
+ readonly O: typeof UserPasswordChangeTicket,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAccount
+ */
+ readonly deleteAccount: {
+ readonly name: "DeleteAccount",
+ readonly I: typeof EmptyRequest,
+ readonly O: typeof User,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * Payment functions
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateCharge
+ */
+ readonly createCharge: {
+ readonly name: "CreateCharge",
+ readonly I: typeof CreateChargeRequest,
+ readonly O: typeof Charge,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetCharges
+ */
+ readonly getCharges: {
+ readonly name: "GetCharges",
+ readonly I: typeof GetChargesRequest,
+ readonly O: typeof Charges,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent
+ */
+ readonly createAutoChargeIntent: {
+ readonly name: "CreateAutoChargeIntent",
+ readonly I: typeof CreateAutoChargeIntentRequest,
+ readonly O: typeof AutoChargeIntent,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent
+ */
+ readonly updateAutoChargeIntent: {
+ readonly name: "UpdateAutoChargeIntent",
+ readonly I: typeof CreateAutoChargeIntentRequest,
+ readonly O: typeof AutoChargeIntent,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent
+ */
+ readonly getAutoChargeIntent: {
+ readonly name: "GetAutoChargeIntent",
+ readonly I: typeof GetAutoChargeRequest,
+ readonly O: typeof AutoChargeIntent,
+ readonly kind: MethodKind.Unary,
+ },
+ }
+};
+
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_connect.js b/src/stability_api/platform/dashboard/v1/dashboard_connect.js
new file mode 100644
index 0000000..38b4260
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_connect.js
@@ -0,0 +1,169 @@
+// @generated by protoc-gen-connect-es v0.12.0
+// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { APIKey, APIKeyFindRequest, APIKeyRequest, AutoChargeIntent, Charge, Charges, ClientSettings, CreateAutoChargeIntentRequest, CreateChargeRequest, EmptyRequest, GetAutoChargeRequest, GetChargesRequest, GetMetricsRequest, GetOrganizationRequest, Metrics, Organization, UpdateDefaultOrganizationRequest, UpdateUserInfoRequest, User, UserPasswordChangeTicket } from "./dashboard_pb.js";
+import { MethodKind } from "@bufbuild/protobuf";
+
+/**
+ * @generated from service stabilityai.api.dashboard.v1.DashboardService
+ */
+export const DashboardService = {
+ typeName: "stabilityai.api.dashboard.v1.DashboardService",
+ methods: {
+ /**
+ * Get info
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMe
+ */
+ getMe: {
+ name: "GetMe",
+ I: EmptyRequest,
+ O: User,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetOrganization
+ */
+ getOrganization: {
+ name: "GetOrganization",
+ I: GetOrganizationRequest,
+ O: Organization,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMetrics
+ */
+ getMetrics: {
+ name: "GetMetrics",
+ I: GetMetricsRequest,
+ O: Metrics,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * API key management
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey
+ */
+ createAPIKey: {
+ name: "CreateAPIKey",
+ I: APIKeyRequest,
+ O: APIKey,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey
+ */
+ deleteAPIKey: {
+ name: "DeleteAPIKey",
+ I: APIKeyFindRequest,
+ O: APIKey,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * User settings
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization
+ */
+ updateDefaultOrganization: {
+ name: "UpdateDefaultOrganization",
+ I: UpdateDefaultOrganizationRequest,
+ O: User,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetClientSettings
+ */
+ getClientSettings: {
+ name: "GetClientSettings",
+ I: EmptyRequest,
+ O: ClientSettings,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.SetClientSettings
+ */
+ setClientSettings: {
+ name: "SetClientSettings",
+ I: ClientSettings,
+ O: ClientSettings,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo
+ */
+ updateUserInfo: {
+ name: "UpdateUserInfo",
+ I: UpdateUserInfoRequest,
+ O: User,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket
+ */
+ createPasswordChangeTicket: {
+ name: "CreatePasswordChangeTicket",
+ I: EmptyRequest,
+ O: UserPasswordChangeTicket,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAccount
+ */
+ deleteAccount: {
+ name: "DeleteAccount",
+ I: EmptyRequest,
+ O: User,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * Payment functions
+ *
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateCharge
+ */
+ createCharge: {
+ name: "CreateCharge",
+ I: CreateChargeRequest,
+ O: Charge,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetCharges
+ */
+ getCharges: {
+ name: "GetCharges",
+ I: GetChargesRequest,
+ O: Charges,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent
+ */
+ createAutoChargeIntent: {
+ name: "CreateAutoChargeIntent",
+ I: CreateAutoChargeIntentRequest,
+ O: AutoChargeIntent,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent
+ */
+ updateAutoChargeIntent: {
+ name: "UpdateAutoChargeIntent",
+ I: CreateAutoChargeIntentRequest,
+ O: AutoChargeIntent,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent
+ */
+ getAutoChargeIntent: {
+ name: "GetAutoChargeIntent",
+ I: GetAutoChargeRequest,
+ O: AutoChargeIntent,
+ kind: MethodKind.Unary,
+ },
+ }
+};
+
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go b/src/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go
new file mode 100644
index 0000000..c9485ea
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go
@@ -0,0 +1,672 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: stability_api/platform/dashboard/v1/dashboard.proto
+
+package dashboardv1
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ DashboardService_GetMe_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetMe"
+ DashboardService_GetOrganization_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetOrganization"
+ DashboardService_GetMetrics_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetMetrics"
+ DashboardService_CreateAPIKey_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey"
+ DashboardService_DeleteAPIKey_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey"
+ DashboardService_UpdateDefaultOrganization_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization"
+ DashboardService_GetClientSettings_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings"
+ DashboardService_SetClientSettings_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings"
+ DashboardService_UpdateUserInfo_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo"
+ DashboardService_CreatePasswordChangeTicket_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket"
+ DashboardService_DeleteAccount_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount"
+ DashboardService_CreateCharge_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreateCharge"
+ DashboardService_GetCharges_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetCharges"
+ DashboardService_CreateAutoChargeIntent_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent"
+ DashboardService_UpdateAutoChargeIntent_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent"
+ DashboardService_GetAutoChargeIntent_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent"
+)
+
+// DashboardServiceClient is the client API for DashboardService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type DashboardServiceClient interface {
+ // Get info
+ GetMe(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error)
+ GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*Organization, error)
+ GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*Metrics, error)
+ // API key management
+ CreateAPIKey(ctx context.Context, in *APIKeyRequest, opts ...grpc.CallOption) (*APIKey, error)
+ DeleteAPIKey(ctx context.Context, in *APIKeyFindRequest, opts ...grpc.CallOption) (*APIKey, error)
+ // User settings
+ UpdateDefaultOrganization(ctx context.Context, in *UpdateDefaultOrganizationRequest, opts ...grpc.CallOption) (*User, error)
+ GetClientSettings(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ClientSettings, error)
+ SetClientSettings(ctx context.Context, in *ClientSettings, opts ...grpc.CallOption) (*ClientSettings, error)
+ UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*User, error)
+ CreatePasswordChangeTicket(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*UserPasswordChangeTicket, error)
+ DeleteAccount(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error)
+ // Payment functions
+ CreateCharge(ctx context.Context, in *CreateChargeRequest, opts ...grpc.CallOption) (*Charge, error)
+ GetCharges(ctx context.Context, in *GetChargesRequest, opts ...grpc.CallOption) (*Charges, error)
+ CreateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error)
+ UpdateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error)
+ GetAutoChargeIntent(ctx context.Context, in *GetAutoChargeRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error)
+}
+
+type dashboardServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewDashboardServiceClient(cc grpc.ClientConnInterface) DashboardServiceClient {
+ return &dashboardServiceClient{cc}
+}
+
+func (c *dashboardServiceClient) GetMe(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error) {
+ out := new(User)
+ err := c.cc.Invoke(ctx, DashboardService_GetMe_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*Organization, error) {
+ out := new(Organization)
+ err := c.cc.Invoke(ctx, DashboardService_GetOrganization_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*Metrics, error) {
+ out := new(Metrics)
+ err := c.cc.Invoke(ctx, DashboardService_GetMetrics_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) CreateAPIKey(ctx context.Context, in *APIKeyRequest, opts ...grpc.CallOption) (*APIKey, error) {
+ out := new(APIKey)
+ err := c.cc.Invoke(ctx, DashboardService_CreateAPIKey_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) DeleteAPIKey(ctx context.Context, in *APIKeyFindRequest, opts ...grpc.CallOption) (*APIKey, error) {
+ out := new(APIKey)
+ err := c.cc.Invoke(ctx, DashboardService_DeleteAPIKey_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) UpdateDefaultOrganization(ctx context.Context, in *UpdateDefaultOrganizationRequest, opts ...grpc.CallOption) (*User, error) {
+ out := new(User)
+ err := c.cc.Invoke(ctx, DashboardService_UpdateDefaultOrganization_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) GetClientSettings(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ClientSettings, error) {
+ out := new(ClientSettings)
+ err := c.cc.Invoke(ctx, DashboardService_GetClientSettings_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) SetClientSettings(ctx context.Context, in *ClientSettings, opts ...grpc.CallOption) (*ClientSettings, error) {
+ out := new(ClientSettings)
+ err := c.cc.Invoke(ctx, DashboardService_SetClientSettings_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*User, error) {
+ out := new(User)
+ err := c.cc.Invoke(ctx, DashboardService_UpdateUserInfo_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) CreatePasswordChangeTicket(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*UserPasswordChangeTicket, error) {
+ out := new(UserPasswordChangeTicket)
+ err := c.cc.Invoke(ctx, DashboardService_CreatePasswordChangeTicket_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) DeleteAccount(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error) {
+ out := new(User)
+ err := c.cc.Invoke(ctx, DashboardService_DeleteAccount_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) CreateCharge(ctx context.Context, in *CreateChargeRequest, opts ...grpc.CallOption) (*Charge, error) {
+ out := new(Charge)
+ err := c.cc.Invoke(ctx, DashboardService_CreateCharge_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) GetCharges(ctx context.Context, in *GetChargesRequest, opts ...grpc.CallOption) (*Charges, error) {
+ out := new(Charges)
+ err := c.cc.Invoke(ctx, DashboardService_GetCharges_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) CreateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) {
+ out := new(AutoChargeIntent)
+ err := c.cc.Invoke(ctx, DashboardService_CreateAutoChargeIntent_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) UpdateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) {
+ out := new(AutoChargeIntent)
+ err := c.cc.Invoke(ctx, DashboardService_UpdateAutoChargeIntent_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *dashboardServiceClient) GetAutoChargeIntent(ctx context.Context, in *GetAutoChargeRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) {
+ out := new(AutoChargeIntent)
+ err := c.cc.Invoke(ctx, DashboardService_GetAutoChargeIntent_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// DashboardServiceServer is the server API for DashboardService service.
+// All implementations must embed UnimplementedDashboardServiceServer
+// for forward compatibility
+type DashboardServiceServer interface {
+ // Get info
+ GetMe(context.Context, *EmptyRequest) (*User, error)
+ GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error)
+ GetMetrics(context.Context, *GetMetricsRequest) (*Metrics, error)
+ // API key management
+ CreateAPIKey(context.Context, *APIKeyRequest) (*APIKey, error)
+ DeleteAPIKey(context.Context, *APIKeyFindRequest) (*APIKey, error)
+ // User settings
+ UpdateDefaultOrganization(context.Context, *UpdateDefaultOrganizationRequest) (*User, error)
+ GetClientSettings(context.Context, *EmptyRequest) (*ClientSettings, error)
+ SetClientSettings(context.Context, *ClientSettings) (*ClientSettings, error)
+ UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*User, error)
+ CreatePasswordChangeTicket(context.Context, *EmptyRequest) (*UserPasswordChangeTicket, error)
+ DeleteAccount(context.Context, *EmptyRequest) (*User, error)
+ // Payment functions
+ CreateCharge(context.Context, *CreateChargeRequest) (*Charge, error)
+ GetCharges(context.Context, *GetChargesRequest) (*Charges, error)
+ CreateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error)
+ UpdateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error)
+ GetAutoChargeIntent(context.Context, *GetAutoChargeRequest) (*AutoChargeIntent, error)
+ mustEmbedUnimplementedDashboardServiceServer()
+}
+
+// UnimplementedDashboardServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedDashboardServiceServer struct {
+}
+
+func (UnimplementedDashboardServiceServer) GetMe(context.Context, *EmptyRequest) (*User, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetMe not implemented")
+}
+func (UnimplementedDashboardServiceServer) GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetOrganization not implemented")
+}
+func (UnimplementedDashboardServiceServer) GetMetrics(context.Context, *GetMetricsRequest) (*Metrics, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented")
+}
+func (UnimplementedDashboardServiceServer) CreateAPIKey(context.Context, *APIKeyRequest) (*APIKey, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateAPIKey not implemented")
+}
+func (UnimplementedDashboardServiceServer) DeleteAPIKey(context.Context, *APIKeyFindRequest) (*APIKey, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteAPIKey not implemented")
+}
+func (UnimplementedDashboardServiceServer) UpdateDefaultOrganization(context.Context, *UpdateDefaultOrganizationRequest) (*User, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultOrganization not implemented")
+}
+func (UnimplementedDashboardServiceServer) GetClientSettings(context.Context, *EmptyRequest) (*ClientSettings, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetClientSettings not implemented")
+}
+func (UnimplementedDashboardServiceServer) SetClientSettings(context.Context, *ClientSettings) (*ClientSettings, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SetClientSettings not implemented")
+}
+func (UnimplementedDashboardServiceServer) UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*User, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented")
+}
+func (UnimplementedDashboardServiceServer) CreatePasswordChangeTicket(context.Context, *EmptyRequest) (*UserPasswordChangeTicket, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordChangeTicket not implemented")
+}
+func (UnimplementedDashboardServiceServer) DeleteAccount(context.Context, *EmptyRequest) (*User, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteAccount not implemented")
+}
+func (UnimplementedDashboardServiceServer) CreateCharge(context.Context, *CreateChargeRequest) (*Charge, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateCharge not implemented")
+}
+func (UnimplementedDashboardServiceServer) GetCharges(context.Context, *GetChargesRequest) (*Charges, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetCharges not implemented")
+}
+func (UnimplementedDashboardServiceServer) CreateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateAutoChargeIntent not implemented")
+}
+func (UnimplementedDashboardServiceServer) UpdateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateAutoChargeIntent not implemented")
+}
+func (UnimplementedDashboardServiceServer) GetAutoChargeIntent(context.Context, *GetAutoChargeRequest) (*AutoChargeIntent, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetAutoChargeIntent not implemented")
+}
+func (UnimplementedDashboardServiceServer) mustEmbedUnimplementedDashboardServiceServer() {}
+
+// UnsafeDashboardServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to DashboardServiceServer will
+// result in compilation errors.
+type UnsafeDashboardServiceServer interface {
+ mustEmbedUnimplementedDashboardServiceServer()
+}
+
+func RegisterDashboardServiceServer(s grpc.ServiceRegistrar, srv DashboardServiceServer) {
+ s.RegisterService(&DashboardService_ServiceDesc, srv)
+}
+
+func _DashboardService_GetMe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EmptyRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).GetMe(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_GetMe_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).GetMe(ctx, req.(*EmptyRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_GetOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetOrganizationRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).GetOrganization(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_GetOrganization_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).GetOrganization(ctx, req.(*GetOrganizationRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetMetricsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).GetMetrics(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_GetMetrics_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).GetMetrics(ctx, req.(*GetMetricsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_CreateAPIKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(APIKeyRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).CreateAPIKey(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_CreateAPIKey_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).CreateAPIKey(ctx, req.(*APIKeyRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_DeleteAPIKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(APIKeyFindRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).DeleteAPIKey(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_DeleteAPIKey_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).DeleteAPIKey(ctx, req.(*APIKeyFindRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_UpdateDefaultOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(UpdateDefaultOrganizationRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).UpdateDefaultOrganization(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_UpdateDefaultOrganization_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).UpdateDefaultOrganization(ctx, req.(*UpdateDefaultOrganizationRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_GetClientSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EmptyRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).GetClientSettings(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_GetClientSettings_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).GetClientSettings(ctx, req.(*EmptyRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_SetClientSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ClientSettings)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).SetClientSettings(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_SetClientSettings_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).SetClientSettings(ctx, req.(*ClientSettings))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(UpdateUserInfoRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).UpdateUserInfo(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_UpdateUserInfo_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_CreatePasswordChangeTicket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EmptyRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).CreatePasswordChangeTicket(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_CreatePasswordChangeTicket_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).CreatePasswordChangeTicket(ctx, req.(*EmptyRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_DeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EmptyRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).DeleteAccount(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_DeleteAccount_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).DeleteAccount(ctx, req.(*EmptyRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_CreateCharge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateChargeRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).CreateCharge(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_CreateCharge_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).CreateCharge(ctx, req.(*CreateChargeRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_GetCharges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetChargesRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).GetCharges(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_GetCharges_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).GetCharges(ctx, req.(*GetChargesRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_CreateAutoChargeIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateAutoChargeIntentRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).CreateAutoChargeIntent(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_CreateAutoChargeIntent_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).CreateAutoChargeIntent(ctx, req.(*CreateAutoChargeIntentRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_UpdateAutoChargeIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateAutoChargeIntentRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).UpdateAutoChargeIntent(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_UpdateAutoChargeIntent_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).UpdateAutoChargeIntent(ctx, req.(*CreateAutoChargeIntentRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DashboardService_GetAutoChargeIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetAutoChargeRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DashboardServiceServer).GetAutoChargeIntent(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DashboardService_GetAutoChargeIntent_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DashboardServiceServer).GetAutoChargeIntent(ctx, req.(*GetAutoChargeRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// DashboardService_ServiceDesc is the grpc.ServiceDesc for DashboardService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var DashboardService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "stabilityai.api.dashboard.v1.DashboardService",
+ HandlerType: (*DashboardServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "GetMe",
+ Handler: _DashboardService_GetMe_Handler,
+ },
+ {
+ MethodName: "GetOrganization",
+ Handler: _DashboardService_GetOrganization_Handler,
+ },
+ {
+ MethodName: "GetMetrics",
+ Handler: _DashboardService_GetMetrics_Handler,
+ },
+ {
+ MethodName: "CreateAPIKey",
+ Handler: _DashboardService_CreateAPIKey_Handler,
+ },
+ {
+ MethodName: "DeleteAPIKey",
+ Handler: _DashboardService_DeleteAPIKey_Handler,
+ },
+ {
+ MethodName: "UpdateDefaultOrganization",
+ Handler: _DashboardService_UpdateDefaultOrganization_Handler,
+ },
+ {
+ MethodName: "GetClientSettings",
+ Handler: _DashboardService_GetClientSettings_Handler,
+ },
+ {
+ MethodName: "SetClientSettings",
+ Handler: _DashboardService_SetClientSettings_Handler,
+ },
+ {
+ MethodName: "UpdateUserInfo",
+ Handler: _DashboardService_UpdateUserInfo_Handler,
+ },
+ {
+ MethodName: "CreatePasswordChangeTicket",
+ Handler: _DashboardService_CreatePasswordChangeTicket_Handler,
+ },
+ {
+ MethodName: "DeleteAccount",
+ Handler: _DashboardService_DeleteAccount_Handler,
+ },
+ {
+ MethodName: "CreateCharge",
+ Handler: _DashboardService_CreateCharge_Handler,
+ },
+ {
+ MethodName: "GetCharges",
+ Handler: _DashboardService_GetCharges_Handler,
+ },
+ {
+ MethodName: "CreateAutoChargeIntent",
+ Handler: _DashboardService_CreateAutoChargeIntent_Handler,
+ },
+ {
+ MethodName: "UpdateAutoChargeIntent",
+ Handler: _DashboardService_UpdateAutoChargeIntent_Handler,
+ },
+ {
+ MethodName: "GetAutoChargeIntent",
+ Handler: _DashboardService_GetAutoChargeIntent_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "stability_api/platform/dashboard/v1/dashboard.proto",
+}
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts b/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts
new file mode 100644
index 0000000..6ffe2a2
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts
@@ -0,0 +1,960 @@
+// @generated by protoc-gen-es v1.3.0
+// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
+import { Message, proto3 } from "@bufbuild/protobuf";
+
+/**
+ * @generated from enum stabilityai.api.dashboard.v1.OrganizationRole
+ */
+export declare enum OrganizationRole {
+ /**
+ * @generated from enum value: MEMBER = 0;
+ */
+ MEMBER = 0,
+
+ /**
+ * @generated from enum value: ACCOUNTANT = 1;
+ */
+ ACCOUNTANT = 1,
+
+ /**
+ * @generated from enum value: OWNER = 2;
+ */
+ OWNER = 2,
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationMember
+ */
+export declare class OrganizationMember extends Message {
+ /**
+ * @generated from field: stabilityai.api.dashboard.v1.Organization organization = 1;
+ */
+ organization?: Organization;
+
+ /**
+ * @generated from field: optional stabilityai.api.dashboard.v1.User user = 2;
+ */
+ user?: User;
+
+ /**
+ * @generated from field: stabilityai.api.dashboard.v1.OrganizationRole role = 3;
+ */
+ role: OrganizationRole;
+
+ /**
+ * @generated from field: bool is_default = 4;
+ */
+ isDefault: boolean;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationMember";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationMember;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationMember;
+
+ static fromJsonString(jsonString: string, options?: Partial): OrganizationMember;
+
+ static equals(a: OrganizationMember | PlainMessage | undefined, b: OrganizationMember | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationGrant
+ */
+export declare class OrganizationGrant extends Message {
+ /**
+ * @generated from field: double amount_granted = 1;
+ */
+ amountGranted: number;
+
+ /**
+ * @generated from field: double amount_used = 2;
+ */
+ amountUsed: number;
+
+ /**
+ * @generated from field: uint64 expires_at = 3;
+ */
+ expiresAt: bigint;
+
+ /**
+ * @generated from field: uint64 granted_at = 4;
+ */
+ grantedAt: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationGrant";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationGrant;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationGrant;
+
+ static fromJsonString(jsonString: string, options?: Partial): OrganizationGrant;
+
+ static equals(a: OrganizationGrant | PlainMessage | undefined, b: OrganizationGrant | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationPaymentInfo
+ */
+export declare class OrganizationPaymentInfo extends Message {
+ /**
+ * @generated from field: double balance = 1;
+ */
+ balance: number;
+
+ /**
+ * @generated from field: repeated stabilityai.api.dashboard.v1.OrganizationGrant grants = 2;
+ */
+ grants: OrganizationGrant[];
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationPaymentInfo";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationPaymentInfo;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationPaymentInfo;
+
+ static fromJsonString(jsonString: string, options?: Partial): OrganizationPaymentInfo;
+
+ static equals(a: OrganizationPaymentInfo | PlainMessage | undefined, b: OrganizationPaymentInfo | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationAutoCharge
+ */
+export declare class OrganizationAutoCharge extends Message {
+ /**
+ * @generated from field: bool enabled = 1;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: string id = 2;
+ */
+ id: string;
+
+ /**
+ * @generated from field: uint64 created_at = 3;
+ */
+ createdAt: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationAutoCharge";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationAutoCharge;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationAutoCharge;
+
+ static fromJsonString(jsonString: string, options?: Partial): OrganizationAutoCharge;
+
+ static equals(a: OrganizationAutoCharge | PlainMessage | undefined, b: OrganizationAutoCharge | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Organization
+ */
+export declare class Organization extends Message {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: string name = 2;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string description = 3;
+ */
+ description: string;
+
+ /**
+ * @generated from field: repeated stabilityai.api.dashboard.v1.OrganizationMember members = 4;
+ */
+ members: OrganizationMember[];
+
+ /**
+ * @generated from field: optional stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5;
+ */
+ paymentInfo?: OrganizationPaymentInfo;
+
+ /**
+ * @generated from field: optional string stripe_customer_id = 6;
+ */
+ stripeCustomerId?: string;
+
+ /**
+ * @generated from field: optional stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7;
+ */
+ autoCharge?: OrganizationAutoCharge;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.Organization";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): Organization;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): Organization;
+
+ static fromJsonString(jsonString: string, options?: Partial): Organization;
+
+ static equals(a: Organization | PlainMessage | undefined, b: Organization | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.APIKey
+ */
+export declare class APIKey extends Message {
+ /**
+ * @generated from field: string key = 1;
+ */
+ key: string;
+
+ /**
+ * @generated from field: bool is_secret = 2;
+ */
+ isSecret: boolean;
+
+ /**
+ * @generated from field: uint64 created_at = 3;
+ */
+ createdAt: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.APIKey";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): APIKey;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): APIKey;
+
+ static fromJsonString(jsonString: string, options?: Partial): APIKey;
+
+ static equals(a: APIKey | PlainMessage | undefined, b: APIKey | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.User
+ */
+export declare class User extends Message {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: optional string auth_id = 2;
+ */
+ authId?: string;
+
+ /**
+ * @generated from field: string profile_picture = 3;
+ */
+ profilePicture: string;
+
+ /**
+ * @generated from field: string email = 4;
+ */
+ email: string;
+
+ /**
+ * @generated from field: repeated stabilityai.api.dashboard.v1.OrganizationMember organizations = 5;
+ */
+ organizations: OrganizationMember[];
+
+ /**
+ * @generated from field: repeated stabilityai.api.dashboard.v1.APIKey api_keys = 7;
+ */
+ apiKeys: APIKey[];
+
+ /**
+ * @generated from field: uint64 created_at = 8;
+ */
+ createdAt: bigint;
+
+ /**
+ * @generated from field: optional bool email_verified = 9;
+ */
+ emailVerified?: boolean;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.User";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): User;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): User;
+
+ static fromJsonString(jsonString: string, options?: Partial): User;
+
+ static equals(a: User | PlainMessage | undefined, b: User | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CostData
+ */
+export declare class CostData extends Message {
+ /**
+ * @generated from field: uint32 amount_tokens = 1;
+ */
+ amountTokens: number;
+
+ /**
+ * @generated from field: double amount_credits = 2;
+ */
+ amountCredits: number;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.CostData";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): CostData;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): CostData;
+
+ static fromJsonString(jsonString: string, options?: Partial): CostData;
+
+ static equals(a: CostData | PlainMessage | undefined, b: CostData | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UsageMetric
+ */
+export declare class UsageMetric extends Message {
+ /**
+ * @generated from field: string operation = 1;
+ */
+ operation: string;
+
+ /**
+ * @generated from field: string engine = 2;
+ */
+ engine: string;
+
+ /**
+ * @generated from field: stabilityai.api.dashboard.v1.CostData input_cost = 3;
+ */
+ inputCost?: CostData;
+
+ /**
+ * @generated from field: stabilityai.api.dashboard.v1.CostData output_cost = 4;
+ */
+ outputCost?: CostData;
+
+ /**
+ * @generated from field: optional string user = 5;
+ */
+ user?: string;
+
+ /**
+ * @generated from field: uint64 aggregation_timestamp = 6;
+ */
+ aggregationTimestamp: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.UsageMetric";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): UsageMetric;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): UsageMetric;
+
+ static fromJsonString(jsonString: string, options?: Partial): UsageMetric;
+
+ static equals(a: UsageMetric | PlainMessage | undefined, b: UsageMetric | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CostTotal
+ */
+export declare class CostTotal extends Message {
+ /**
+ * @generated from field: uint32 amount_tokens = 1;
+ */
+ amountTokens: number;
+
+ /**
+ * @generated from field: double amount_credits = 2;
+ */
+ amountCredits: number;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.CostTotal";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): CostTotal;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): CostTotal;
+
+ static fromJsonString(jsonString: string, options?: Partial): CostTotal;
+
+ static equals(a: CostTotal | PlainMessage | undefined, b: CostTotal | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.TotalMetricsData
+ */
+export declare class TotalMetricsData extends Message {
+ /**
+ * @generated from field: stabilityai.api.dashboard.v1.CostTotal input_total = 1;
+ */
+ inputTotal?: CostTotal;
+
+ /**
+ * @generated from field: stabilityai.api.dashboard.v1.CostTotal output_total = 2;
+ */
+ outputTotal?: CostTotal;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.TotalMetricsData";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): TotalMetricsData;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): TotalMetricsData;
+
+ static fromJsonString(jsonString: string, options?: Partial): TotalMetricsData;
+
+ static equals(a: TotalMetricsData | PlainMessage | undefined, b: TotalMetricsData | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Metrics
+ */
+export declare class Metrics extends Message {
+ /**
+ * @generated from field: repeated stabilityai.api.dashboard.v1.UsageMetric metrics = 1;
+ */
+ metrics: UsageMetric[];
+
+ /**
+ * @generated from field: stabilityai.api.dashboard.v1.TotalMetricsData total = 2;
+ */
+ total?: TotalMetricsData;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.Metrics";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): Metrics;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): Metrics;
+
+ static fromJsonString(jsonString: string, options?: Partial): Metrics;
+
+ static equals(a: Metrics | PlainMessage | undefined, b: Metrics | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.EmptyRequest
+ */
+export declare class EmptyRequest extends Message {
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.EmptyRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): EmptyRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): EmptyRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): EmptyRequest;
+
+ static equals(a: EmptyRequest | PlainMessage | undefined, b: EmptyRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetOrganizationRequest
+ */
+export declare class GetOrganizationRequest extends Message {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.GetOrganizationRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): GetOrganizationRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): GetOrganizationRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): GetOrganizationRequest;
+
+ static equals(a: GetOrganizationRequest | PlainMessage | undefined, b: GetOrganizationRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetMetricsRequest
+ */
+export declare class GetMetricsRequest extends Message {
+ /**
+ * @generated from field: string organization_id = 1;
+ */
+ organizationId: string;
+
+ /**
+ * @generated from field: optional string user_id = 2;
+ */
+ userId?: string;
+
+ /**
+ * @generated from field: uint64 range_from = 3;
+ */
+ rangeFrom: bigint;
+
+ /**
+ * @generated from field: uint64 range_to = 4;
+ */
+ rangeTo: bigint;
+
+ /**
+ * @generated from field: bool include_per_request_metrics = 5;
+ */
+ includePerRequestMetrics: boolean;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.GetMetricsRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): GetMetricsRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): GetMetricsRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): GetMetricsRequest;
+
+ static equals(a: GetMetricsRequest | PlainMessage | undefined, b: GetMetricsRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.APIKeyRequest
+ */
+export declare class APIKeyRequest extends Message {
+ /**
+ * @generated from field: bool is_secret = 1;
+ */
+ isSecret: boolean;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.APIKeyRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): APIKeyRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): APIKeyRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): APIKeyRequest;
+
+ static equals(a: APIKeyRequest | PlainMessage | undefined, b: APIKeyRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.APIKeyFindRequest
+ */
+export declare class APIKeyFindRequest extends Message {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.APIKeyFindRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): APIKeyFindRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): APIKeyFindRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): APIKeyFindRequest;
+
+ static equals(a: APIKeyFindRequest | PlainMessage | undefined, b: APIKeyFindRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest
+ */
+export declare class UpdateDefaultOrganizationRequest extends Message {
+ /**
+ * @generated from field: string organization_id = 1;
+ */
+ organizationId: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): UpdateDefaultOrganizationRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): UpdateDefaultOrganizationRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): UpdateDefaultOrganizationRequest;
+
+ static equals(a: UpdateDefaultOrganizationRequest | PlainMessage | undefined, b: UpdateDefaultOrganizationRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.ClientSettings
+ */
+export declare class ClientSettings extends Message {
+ /**
+ * @generated from field: bytes settings = 1;
+ */
+ settings: Uint8Array;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.ClientSettings";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): ClientSettings;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): ClientSettings;
+
+ static fromJsonString(jsonString: string, options?: Partial): ClientSettings;
+
+ static equals(a: ClientSettings | PlainMessage | undefined, b: ClientSettings | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest
+ */
+export declare class CreateAutoChargeIntentRequest extends Message {
+ /**
+ * @generated from field: string organization_id = 1;
+ */
+ organizationId: string;
+
+ /**
+ * @generated from field: uint64 monthly_maximum = 2;
+ */
+ monthlyMaximum: bigint;
+
+ /**
+ * @generated from field: uint64 minimum_value = 3;
+ */
+ minimumValue: bigint;
+
+ /**
+ * @generated from field: uint64 amount_credits = 4;
+ */
+ amountCredits: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): CreateAutoChargeIntentRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): CreateAutoChargeIntentRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): CreateAutoChargeIntentRequest;
+
+ static equals(a: CreateAutoChargeIntentRequest | PlainMessage | undefined, b: CreateAutoChargeIntentRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CreateChargeRequest
+ */
+export declare class CreateChargeRequest extends Message {
+ /**
+ * @generated from field: uint64 amount = 1;
+ */
+ amount: bigint;
+
+ /**
+ * @generated from field: string organization_id = 2;
+ */
+ organizationId: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.CreateChargeRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): CreateChargeRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): CreateChargeRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): CreateChargeRequest;
+
+ static equals(a: CreateChargeRequest | PlainMessage | undefined, b: CreateChargeRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetChargesRequest
+ */
+export declare class GetChargesRequest extends Message {
+ /**
+ * @generated from field: string organization_id = 1;
+ */
+ organizationId: string;
+
+ /**
+ * @generated from field: uint64 range_from = 2;
+ */
+ rangeFrom: bigint;
+
+ /**
+ * @generated from field: uint64 range_to = 3;
+ */
+ rangeTo: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.GetChargesRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): GetChargesRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): GetChargesRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): GetChargesRequest;
+
+ static equals(a: GetChargesRequest | PlainMessage | undefined, b: GetChargesRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Charge
+ */
+export declare class Charge extends Message {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: bool paid = 2;
+ */
+ paid: boolean;
+
+ /**
+ * @generated from field: string receipt_link = 3;
+ */
+ receiptLink: string;
+
+ /**
+ * @generated from field: string payment_link = 4;
+ */
+ paymentLink: string;
+
+ /**
+ * @generated from field: uint64 created_at = 5;
+ */
+ createdAt: bigint;
+
+ /**
+ * @generated from field: uint64 amount_credits = 6;
+ */
+ amountCredits: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.Charge";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): Charge;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): Charge;
+
+ static fromJsonString(jsonString: string, options?: Partial): Charge;
+
+ static equals(a: Charge | PlainMessage | undefined, b: Charge | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Charges
+ */
+export declare class Charges extends Message {
+ /**
+ * @generated from field: repeated stabilityai.api.dashboard.v1.Charge charges = 1;
+ */
+ charges: Charge[];
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.Charges";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): Charges;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): Charges;
+
+ static fromJsonString(jsonString: string, options?: Partial): Charges;
+
+ static equals(a: Charges | PlainMessage | undefined, b: Charges | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetAutoChargeRequest
+ */
+export declare class GetAutoChargeRequest extends Message {
+ /**
+ * @generated from field: string organization_id = 1;
+ */
+ organizationId: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.GetAutoChargeRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): GetAutoChargeRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): GetAutoChargeRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): GetAutoChargeRequest;
+
+ static equals(a: GetAutoChargeRequest | PlainMessage | undefined, b: GetAutoChargeRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.AutoChargeIntent
+ */
+export declare class AutoChargeIntent extends Message {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: string payment_link = 2;
+ */
+ paymentLink: string;
+
+ /**
+ * @generated from field: uint64 created_at = 3;
+ */
+ createdAt: bigint;
+
+ /**
+ * @generated from field: uint64 monthly_maximum = 4;
+ */
+ monthlyMaximum: bigint;
+
+ /**
+ * @generated from field: uint64 minimum_value = 5;
+ */
+ minimumValue: bigint;
+
+ /**
+ * @generated from field: uint64 amount_credits = 6;
+ */
+ amountCredits: bigint;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.AutoChargeIntent";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): AutoChargeIntent;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): AutoChargeIntent;
+
+ static fromJsonString(jsonString: string, options?: Partial): AutoChargeIntent;
+
+ static equals(a: AutoChargeIntent | PlainMessage | undefined, b: AutoChargeIntent | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UpdateUserInfoRequest
+ */
+export declare class UpdateUserInfoRequest extends Message {
+ /**
+ * @generated from field: optional string email = 1;
+ */
+ email?: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.UpdateUserInfoRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): UpdateUserInfoRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): UpdateUserInfoRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): UpdateUserInfoRequest;
+
+ static equals(a: UpdateUserInfoRequest | PlainMessage | undefined, b: UpdateUserInfoRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UserPasswordChangeTicket
+ */
+export declare class UserPasswordChangeTicket extends Message {
+ /**
+ * @generated from field: string ticket = 1;
+ */
+ ticket: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.api.dashboard.v1.UserPasswordChangeTicket";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): UserPasswordChangeTicket;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): UserPasswordChangeTicket;
+
+ static fromJsonString(jsonString: string, options?: Partial): UserPasswordChangeTicket;
+
+ static equals(a: UserPasswordChangeTicket | PlainMessage | undefined, b: UserPasswordChangeTicket | PlainMessage | undefined): boolean;
+}
+
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_pb.js b/src/stability_api/platform/dashboard/v1/dashboard_pb.js
new file mode 100644
index 0000000..6799971
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_pb.js
@@ -0,0 +1,350 @@
+// @generated by protoc-gen-es v1.3.0
+// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { proto3 } from "@bufbuild/protobuf";
+
+/**
+ * @generated from enum stabilityai.api.dashboard.v1.OrganizationRole
+ */
+export const OrganizationRole = proto3.makeEnum(
+ "stabilityai.api.dashboard.v1.OrganizationRole",
+ [
+ {no: 0, name: "MEMBER"},
+ {no: 1, name: "ACCOUNTANT"},
+ {no: 2, name: "OWNER"},
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationMember
+ */
+export const OrganizationMember = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.OrganizationMember",
+ () => [
+ { no: 1, name: "organization", kind: "message", T: Organization },
+ { no: 2, name: "user", kind: "message", T: User, opt: true },
+ { no: 3, name: "role", kind: "enum", T: proto3.getEnumType(OrganizationRole) },
+ { no: 4, name: "is_default", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationGrant
+ */
+export const OrganizationGrant = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.OrganizationGrant",
+ () => [
+ { no: 1, name: "amount_granted", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
+ { no: 2, name: "amount_used", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
+ { no: 3, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 4, name: "granted_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationPaymentInfo
+ */
+export const OrganizationPaymentInfo = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.OrganizationPaymentInfo",
+ () => [
+ { no: 1, name: "balance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
+ { no: 2, name: "grants", kind: "message", T: OrganizationGrant, repeated: true },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.OrganizationAutoCharge
+ */
+export const OrganizationAutoCharge = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.OrganizationAutoCharge",
+ () => [
+ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 3, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Organization
+ */
+export const Organization = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.Organization",
+ () => [
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 4, name: "members", kind: "message", T: OrganizationMember, repeated: true },
+ { no: 5, name: "payment_info", kind: "message", T: OrganizationPaymentInfo, opt: true },
+ { no: 6, name: "stripe_customer_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
+ { no: 7, name: "auto_charge", kind: "message", T: OrganizationAutoCharge, opt: true },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.APIKey
+ */
+export const APIKey = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.APIKey",
+ () => [
+ { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ { no: 3, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.User
+ */
+export const User = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.User",
+ () => [
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "auth_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
+ { no: 3, name: "profile_picture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 4, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 5, name: "organizations", kind: "message", T: OrganizationMember, repeated: true },
+ { no: 7, name: "api_keys", kind: "message", T: APIKey, repeated: true },
+ { no: 8, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 9, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CostData
+ */
+export const CostData = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.CostData",
+ () => [
+ { no: 1, name: "amount_tokens", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
+ { no: 2, name: "amount_credits", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UsageMetric
+ */
+export const UsageMetric = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.UsageMetric",
+ () => [
+ { no: 1, name: "operation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "engine", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 3, name: "input_cost", kind: "message", T: CostData },
+ { no: 4, name: "output_cost", kind: "message", T: CostData },
+ { no: 5, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
+ { no: 6, name: "aggregation_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CostTotal
+ */
+export const CostTotal = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.CostTotal",
+ () => [
+ { no: 1, name: "amount_tokens", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
+ { no: 2, name: "amount_credits", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.TotalMetricsData
+ */
+export const TotalMetricsData = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.TotalMetricsData",
+ () => [
+ { no: 1, name: "input_total", kind: "message", T: CostTotal },
+ { no: 2, name: "output_total", kind: "message", T: CostTotal },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Metrics
+ */
+export const Metrics = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.Metrics",
+ () => [
+ { no: 1, name: "metrics", kind: "message", T: UsageMetric, repeated: true },
+ { no: 2, name: "total", kind: "message", T: TotalMetricsData },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.EmptyRequest
+ */
+export const EmptyRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.EmptyRequest",
+ [],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetOrganizationRequest
+ */
+export const GetOrganizationRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.GetOrganizationRequest",
+ () => [
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetMetricsRequest
+ */
+export const GetMetricsRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.GetMetricsRequest",
+ () => [
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
+ { no: 3, name: "range_from", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 4, name: "range_to", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 5, name: "include_per_request_metrics", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.APIKeyRequest
+ */
+export const APIKeyRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.APIKeyRequest",
+ () => [
+ { no: 1, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.APIKeyFindRequest
+ */
+export const APIKeyFindRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.APIKeyFindRequest",
+ () => [
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest
+ */
+export const UpdateDefaultOrganizationRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest",
+ () => [
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.ClientSettings
+ */
+export const ClientSettings = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.ClientSettings",
+ () => [
+ { no: 1, name: "settings", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest
+ */
+export const CreateAutoChargeIntentRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest",
+ () => [
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "monthly_maximum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 3, name: "minimum_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 4, name: "amount_credits", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.CreateChargeRequest
+ */
+export const CreateChargeRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.CreateChargeRequest",
+ () => [
+ { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetChargesRequest
+ */
+export const GetChargesRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.GetChargesRequest",
+ () => [
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "range_from", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 3, name: "range_to", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Charge
+ */
+export const Charge = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.Charge",
+ () => [
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "paid", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ { no: 3, name: "receipt_link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 4, name: "payment_link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 5, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 6, name: "amount_credits", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.Charges
+ */
+export const Charges = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.Charges",
+ () => [
+ { no: 1, name: "charges", kind: "message", T: Charge, repeated: true },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.GetAutoChargeRequest
+ */
+export const GetAutoChargeRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.GetAutoChargeRequest",
+ () => [
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.AutoChargeIntent
+ */
+export const AutoChargeIntent = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.AutoChargeIntent",
+ () => [
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "payment_link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 3, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 4, name: "monthly_maximum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 5, name: "minimum_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ { no: 6, name: "amount_credits", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UpdateUserInfoRequest
+ */
+export const UpdateUserInfoRequest = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.UpdateUserInfoRequest",
+ () => [
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
+ ],
+);
+
+/**
+ * @generated from message stabilityai.api.dashboard.v1.UserPasswordChangeTicket
+ */
+export const UserPasswordChangeTicket = proto3.makeMessageType(
+ "stabilityai.api.dashboard.v1.UserPasswordChangeTicket",
+ () => [
+ { no: 1, name: "ticket", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ ],
+);
+
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_pb2.py b/src/stability_api/platform/dashboard/v1/dashboard_pb2.py
new file mode 100644
index 0000000..c0fffad
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_pb2.py
@@ -0,0 +1,85 @@
+# -*- coding: utf-8 -*-
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: stability_api/platform/dashboard/v1/dashboard.proto
+"""Generated protocol buffer code."""
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import descriptor_pool as _descriptor_pool
+from google.protobuf import symbol_database as _symbol_database
+from google.protobuf.internal import builder as _builder
+# @@protoc_insertion_point(imports)
+
+_sym_db = _symbol_database.Default()
+
+
+
+
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3stability_api/platform/dashboard/v1/dashboard.proto\x12\x1cstabilityai.api.dashboard.v1\"\x8d\x02\n\x12OrganizationMember\x12N\n\x0corganization\x18\x01 \x01(\x0b\x32*.stabilityai.api.dashboard.v1.OrganizationR\x0corganization\x12;\n\x04user\x18\x02 \x01(\x0b\x32\".stabilityai.api.dashboard.v1.UserH\x00R\x04user\x88\x01\x01\x12\x42\n\x04role\x18\x03 \x01(\x0e\x32..stabilityai.api.dashboard.v1.OrganizationRoleR\x04role\x12\x1d\n\nis_default\x18\x04 \x01(\x08R\tisDefaultB\x07\n\x05_user\"\x99\x01\n\x11OrganizationGrant\x12%\n\x0e\x61mount_granted\x18\x01 \x01(\x01R\ramountGranted\x12\x1f\n\x0b\x61mount_used\x18\x02 \x01(\x01R\namountUsed\x12\x1d\n\nexpires_at\x18\x03 \x01(\x04R\texpiresAt\x12\x1d\n\ngranted_at\x18\x04 \x01(\x04R\tgrantedAt\"|\n\x17OrganizationPaymentInfo\x12\x18\n\x07\x62\x61lance\x18\x01 \x01(\x01R\x07\x62\x61lance\x12G\n\x06grants\x18\x02 \x03(\x0b\x32/.stabilityai.api.dashboard.v1.OrganizationGrantR\x06grants\"a\n\x16OrganizationAutoCharge\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xc6\x03\n\x0cOrganization\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12J\n\x07members\x18\x04 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\x07members\x12]\n\x0cpayment_info\x18\x05 \x01(\x0b\x32\x35.stabilityai.api.dashboard.v1.OrganizationPaymentInfoH\x00R\x0bpaymentInfo\x88\x01\x01\x12\x31\n\x12stripe_customer_id\x18\x06 \x01(\tH\x01R\x10stripeCustomerId\x88\x01\x01\x12Z\n\x0b\x61uto_charge\x18\x07 \x01(\x0b\x32\x34.stabilityai.api.dashboard.v1.OrganizationAutoChargeH\x02R\nautoCharge\x88\x01\x01\x42\x0f\n\r_payment_infoB\x15\n\x13_stripe_customer_idB\x0e\n\x0c_auto_charge\"V\n\x06\x41PIKey\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x1b\n\tis_secret\x18\x02 \x01(\x08R\x08isSecret\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xf6\x02\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\x07\x61uth_id\x18\x02 \x01(\tH\x00R\x06\x61uthId\x88\x01\x01\x12\'\n\x0fprofile_picture\x18\x03 \x01(\tR\x0eprofilePicture\x12\x14\n\x05\x65mail\x18\x04 \x01(\tR\x05\x65mail\x12V\n\rorganizations\x18\x05 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\rorganizations\x12?\n\x08\x61pi_keys\x18\x07 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.APIKeyR\x07\x61piKeys\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12*\n\x0e\x65mail_verified\x18\t \x01(\x08H\x01R\remailVerified\x88\x01\x01\x42\n\n\x08_auth_idB\x11\n\x0f_email_verified\"V\n\x08\x43ostData\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xaa\x02\n\x0bUsageMetric\x12\x1c\n\toperation\x18\x01 \x01(\tR\toperation\x12\x16\n\x06\x65ngine\x18\x02 \x01(\tR\x06\x65ngine\x12\x45\n\ninput_cost\x18\x03 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\tinputCost\x12G\n\x0boutput_cost\x18\x04 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\noutputCost\x12\x17\n\x04user\x18\x05 \x01(\tH\x00R\x04user\x88\x01\x01\x12\x33\n\x15\x61ggregation_timestamp\x18\x06 \x01(\x04R\x14\x61ggregationTimestampB\x07\n\x05_user\"W\n\tCostTotal\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xa8\x01\n\x10TotalMetricsData\x12H\n\x0binput_total\x18\x01 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\ninputTotal\x12J\n\x0coutput_total\x18\x02 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\x0boutputTotal\"\x94\x01\n\x07Metrics\x12\x43\n\x07metrics\x18\x01 \x03(\x0b\x32).stabilityai.api.dashboard.v1.UsageMetricR\x07metrics\x12\x44\n\x05total\x18\x02 \x01(\x0b\x32..stabilityai.api.dashboard.v1.TotalMetricsDataR\x05total\"\x0e\n\x0c\x45mptyRequest\"(\n\x16GetOrganizationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xdf\x01\n\x11GetMetricsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1c\n\x07user_id\x18\x02 \x01(\tH\x00R\x06userId\x88\x01\x01\x12\x1d\n\nrange_from\x18\x03 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x04 \x01(\x04R\x07rangeTo\x12=\n\x1binclude_per_request_metrics\x18\x05 \x01(\x08R\x18includePerRequestMetricsB\n\n\x08_user_id\",\n\rAPIKeyRequest\x12\x1b\n\tis_secret\x18\x01 \x01(\x08R\x08isSecret\"#\n\x11\x41PIKeyFindRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"K\n UpdateDefaultOrganizationRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\",\n\x0e\x43lientSettings\x12\x1a\n\x08settings\x18\x01 \x01(\x0cR\x08settings\"\xbd\x01\n\x1d\x43reateAutoChargeIntentRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\'\n\x0fmonthly_maximum\x18\x02 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x03 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x04 \x01(\x04R\ramountCredits\"V\n\x13\x43reateChargeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\"v\n\x11GetChargesRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1d\n\nrange_from\x18\x02 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x03 \x01(\x04R\x07rangeTo\"\xb8\x01\n\x06\x43harge\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04paid\x18\x02 \x01(\x08R\x04paid\x12!\n\x0creceipt_link\x18\x03 \x01(\tR\x0breceiptLink\x12!\n\x0cpayment_link\x18\x04 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x05 \x01(\x04R\tcreatedAt\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"I\n\x07\x43harges\x12>\n\x07\x63harges\x18\x01 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.ChargeR\x07\x63harges\"?\n\x14GetAutoChargeRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"\xd9\x01\n\x10\x41utoChargeIntent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0cpayment_link\x18\x02 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\x12\'\n\x0fmonthly_maximum\x18\x04 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x05 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"<\n\x15UpdateUserInfoRequest\x12\x19\n\x05\x65mail\x18\x01 \x01(\tH\x00R\x05\x65mail\x88\x01\x01\x42\x08\n\x06_email\"2\n\x18UserPasswordChangeTicket\x12\x16\n\x06ticket\x18\x01 \x01(\tR\x06ticket*9\n\x10OrganizationRole\x12\n\n\x06MEMBER\x10\x00\x12\x0e\n\nACCOUNTANT\x10\x01\x12\t\n\x05OWNER\x10\x02\x32\x9a\x0e\n\x10\x44\x61shboardService\x12W\n\x05GetMe\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12s\n\x0fGetOrganization\x12\x34.stabilityai.api.dashboard.v1.GetOrganizationRequest\x1a*.stabilityai.api.dashboard.v1.Organization\x12\x64\n\nGetMetrics\x12/.stabilityai.api.dashboard.v1.GetMetricsRequest\x1a%.stabilityai.api.dashboard.v1.Metrics\x12\x61\n\x0c\x43reateAPIKey\x12+.stabilityai.api.dashboard.v1.APIKeyRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x65\n\x0c\x44\x65leteAPIKey\x12/.stabilityai.api.dashboard.v1.APIKeyFindRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x7f\n\x19UpdateDefaultOrganization\x12>.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest\x1a\".stabilityai.api.dashboard.v1.User\x12m\n\x11GetClientSettings\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12o\n\x11SetClientSettings\x12,.stabilityai.api.dashboard.v1.ClientSettings\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12i\n\x0eUpdateUserInfo\x12\x33.stabilityai.api.dashboard.v1.UpdateUserInfoRequest\x1a\".stabilityai.api.dashboard.v1.User\x12\x80\x01\n\x1a\x43reatePasswordChangeTicket\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\x36.stabilityai.api.dashboard.v1.UserPasswordChangeTicket\x12_\n\rDeleteAccount\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12g\n\x0c\x43reateCharge\x12\x31.stabilityai.api.dashboard.v1.CreateChargeRequest\x1a$.stabilityai.api.dashboard.v1.Charge\x12\x64\n\nGetCharges\x12/.stabilityai.api.dashboard.v1.GetChargesRequest\x1a%.stabilityai.api.dashboard.v1.Charges\x12\x85\x01\n\x16\x43reateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12\x85\x01\n\x16UpdateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12y\n\x13GetAutoChargeIntent\x12\x32.stabilityai.api.dashboard.v1.GetAutoChargeRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntentB\xaa\x02\n com.stabilityai.api.dashboard.v1B\x0e\x44\x61shboardProtoP\x01Zcgithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1;dashboardv1\xa2\x02\x03SAD\xaa\x02\x1cStabilityai.Api.Dashboard.V1\xca\x02\x1cStabilityai\\Api\\Dashboard\\V1\xe2\x02(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\xea\x02\x1fStabilityai::Api::Dashboard::V1b\x06proto3')
+
+_globals = globals()
+_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
+_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.platform.dashboard.v1.dashboard_pb2', _globals)
+if _descriptor._USE_C_DESCRIPTORS == False:
+
+ DESCRIPTOR._options = None
+ DESCRIPTOR._serialized_options = b'\n com.stabilityai.api.dashboard.v1B\016DashboardProtoP\001Zcgithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1;dashboardv1\242\002\003SAD\252\002\034Stabilityai.Api.Dashboard.V1\312\002\034Stabilityai\\Api\\Dashboard\\V1\342\002(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\352\002\037Stabilityai::Api::Dashboard::V1'
+ _globals['_ORGANIZATIONROLE']._serialized_start=4011
+ _globals['_ORGANIZATIONROLE']._serialized_end=4068
+ _globals['_ORGANIZATIONMEMBER']._serialized_start=86
+ _globals['_ORGANIZATIONMEMBER']._serialized_end=355
+ _globals['_ORGANIZATIONGRANT']._serialized_start=358
+ _globals['_ORGANIZATIONGRANT']._serialized_end=511
+ _globals['_ORGANIZATIONPAYMENTINFO']._serialized_start=513
+ _globals['_ORGANIZATIONPAYMENTINFO']._serialized_end=637
+ _globals['_ORGANIZATIONAUTOCHARGE']._serialized_start=639
+ _globals['_ORGANIZATIONAUTOCHARGE']._serialized_end=736
+ _globals['_ORGANIZATION']._serialized_start=739
+ _globals['_ORGANIZATION']._serialized_end=1193
+ _globals['_APIKEY']._serialized_start=1195
+ _globals['_APIKEY']._serialized_end=1281
+ _globals['_USER']._serialized_start=1284
+ _globals['_USER']._serialized_end=1658
+ _globals['_COSTDATA']._serialized_start=1660
+ _globals['_COSTDATA']._serialized_end=1746
+ _globals['_USAGEMETRIC']._serialized_start=1749
+ _globals['_USAGEMETRIC']._serialized_end=2047
+ _globals['_COSTTOTAL']._serialized_start=2049
+ _globals['_COSTTOTAL']._serialized_end=2136
+ _globals['_TOTALMETRICSDATA']._serialized_start=2139
+ _globals['_TOTALMETRICSDATA']._serialized_end=2307
+ _globals['_METRICS']._serialized_start=2310
+ _globals['_METRICS']._serialized_end=2458
+ _globals['_EMPTYREQUEST']._serialized_start=2460
+ _globals['_EMPTYREQUEST']._serialized_end=2474
+ _globals['_GETORGANIZATIONREQUEST']._serialized_start=2476
+ _globals['_GETORGANIZATIONREQUEST']._serialized_end=2516
+ _globals['_GETMETRICSREQUEST']._serialized_start=2519
+ _globals['_GETMETRICSREQUEST']._serialized_end=2742
+ _globals['_APIKEYREQUEST']._serialized_start=2744
+ _globals['_APIKEYREQUEST']._serialized_end=2788
+ _globals['_APIKEYFINDREQUEST']._serialized_start=2790
+ _globals['_APIKEYFINDREQUEST']._serialized_end=2825
+ _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_start=2827
+ _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_end=2902
+ _globals['_CLIENTSETTINGS']._serialized_start=2904
+ _globals['_CLIENTSETTINGS']._serialized_end=2948
+ _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_start=2951
+ _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_end=3140
+ _globals['_CREATECHARGEREQUEST']._serialized_start=3142
+ _globals['_CREATECHARGEREQUEST']._serialized_end=3228
+ _globals['_GETCHARGESREQUEST']._serialized_start=3230
+ _globals['_GETCHARGESREQUEST']._serialized_end=3348
+ _globals['_CHARGE']._serialized_start=3351
+ _globals['_CHARGE']._serialized_end=3535
+ _globals['_CHARGES']._serialized_start=3537
+ _globals['_CHARGES']._serialized_end=3610
+ _globals['_GETAUTOCHARGEREQUEST']._serialized_start=3612
+ _globals['_GETAUTOCHARGEREQUEST']._serialized_end=3675
+ _globals['_AUTOCHARGEINTENT']._serialized_start=3678
+ _globals['_AUTOCHARGEINTENT']._serialized_end=3895
+ _globals['_UPDATEUSERINFOREQUEST']._serialized_start=3897
+ _globals['_UPDATEUSERINFOREQUEST']._serialized_end=3957
+ _globals['_USERPASSWORDCHANGETICKET']._serialized_start=3959
+ _globals['_USERPASSWORDCHANGETICKET']._serialized_end=4009
+ _globals['_DASHBOARDSERVICE']._serialized_start=4071
+ _globals['_DASHBOARDSERVICE']._serialized_end=5889
+# @@protoc_insertion_point(module_scope)
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_pb2.pyi b/src/stability_api/platform/dashboard/v1/dashboard_pb2.pyi
new file mode 100644
index 0000000..2b786ca
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_pb2.pyi
@@ -0,0 +1,288 @@
+from google.protobuf.internal import containers as _containers
+from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import message as _message
+from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
+
+DESCRIPTOR: _descriptor.FileDescriptor
+
+class OrganizationRole(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
+ __slots__ = []
+ MEMBER: _ClassVar[OrganizationRole]
+ ACCOUNTANT: _ClassVar[OrganizationRole]
+ OWNER: _ClassVar[OrganizationRole]
+MEMBER: OrganizationRole
+ACCOUNTANT: OrganizationRole
+OWNER: OrganizationRole
+
+class OrganizationMember(_message.Message):
+ __slots__ = ["organization", "user", "role", "is_default"]
+ ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
+ USER_FIELD_NUMBER: _ClassVar[int]
+ ROLE_FIELD_NUMBER: _ClassVar[int]
+ IS_DEFAULT_FIELD_NUMBER: _ClassVar[int]
+ organization: Organization
+ user: User
+ role: OrganizationRole
+ is_default: bool
+ def __init__(self, organization: _Optional[_Union[Organization, _Mapping]] = ..., user: _Optional[_Union[User, _Mapping]] = ..., role: _Optional[_Union[OrganizationRole, str]] = ..., is_default: bool = ...) -> None: ...
+
+class OrganizationGrant(_message.Message):
+ __slots__ = ["amount_granted", "amount_used", "expires_at", "granted_at"]
+ AMOUNT_GRANTED_FIELD_NUMBER: _ClassVar[int]
+ AMOUNT_USED_FIELD_NUMBER: _ClassVar[int]
+ EXPIRES_AT_FIELD_NUMBER: _ClassVar[int]
+ GRANTED_AT_FIELD_NUMBER: _ClassVar[int]
+ amount_granted: float
+ amount_used: float
+ expires_at: int
+ granted_at: int
+ def __init__(self, amount_granted: _Optional[float] = ..., amount_used: _Optional[float] = ..., expires_at: _Optional[int] = ..., granted_at: _Optional[int] = ...) -> None: ...
+
+class OrganizationPaymentInfo(_message.Message):
+ __slots__ = ["balance", "grants"]
+ BALANCE_FIELD_NUMBER: _ClassVar[int]
+ GRANTS_FIELD_NUMBER: _ClassVar[int]
+ balance: float
+ grants: _containers.RepeatedCompositeFieldContainer[OrganizationGrant]
+ def __init__(self, balance: _Optional[float] = ..., grants: _Optional[_Iterable[_Union[OrganizationGrant, _Mapping]]] = ...) -> None: ...
+
+class OrganizationAutoCharge(_message.Message):
+ __slots__ = ["enabled", "id", "created_at"]
+ ENABLED_FIELD_NUMBER: _ClassVar[int]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ CREATED_AT_FIELD_NUMBER: _ClassVar[int]
+ enabled: bool
+ id: str
+ created_at: int
+ def __init__(self, enabled: bool = ..., id: _Optional[str] = ..., created_at: _Optional[int] = ...) -> None: ...
+
+class Organization(_message.Message):
+ __slots__ = ["id", "name", "description", "members", "payment_info", "stripe_customer_id", "auto_charge"]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ NAME_FIELD_NUMBER: _ClassVar[int]
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
+ MEMBERS_FIELD_NUMBER: _ClassVar[int]
+ PAYMENT_INFO_FIELD_NUMBER: _ClassVar[int]
+ STRIPE_CUSTOMER_ID_FIELD_NUMBER: _ClassVar[int]
+ AUTO_CHARGE_FIELD_NUMBER: _ClassVar[int]
+ id: str
+ name: str
+ description: str
+ members: _containers.RepeatedCompositeFieldContainer[OrganizationMember]
+ payment_info: OrganizationPaymentInfo
+ stripe_customer_id: str
+ auto_charge: OrganizationAutoCharge
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., members: _Optional[_Iterable[_Union[OrganizationMember, _Mapping]]] = ..., payment_info: _Optional[_Union[OrganizationPaymentInfo, _Mapping]] = ..., stripe_customer_id: _Optional[str] = ..., auto_charge: _Optional[_Union[OrganizationAutoCharge, _Mapping]] = ...) -> None: ...
+
+class APIKey(_message.Message):
+ __slots__ = ["key", "is_secret", "created_at"]
+ KEY_FIELD_NUMBER: _ClassVar[int]
+ IS_SECRET_FIELD_NUMBER: _ClassVar[int]
+ CREATED_AT_FIELD_NUMBER: _ClassVar[int]
+ key: str
+ is_secret: bool
+ created_at: int
+ def __init__(self, key: _Optional[str] = ..., is_secret: bool = ..., created_at: _Optional[int] = ...) -> None: ...
+
+class User(_message.Message):
+ __slots__ = ["id", "auth_id", "profile_picture", "email", "organizations", "api_keys", "created_at", "email_verified"]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ AUTH_ID_FIELD_NUMBER: _ClassVar[int]
+ PROFILE_PICTURE_FIELD_NUMBER: _ClassVar[int]
+ EMAIL_FIELD_NUMBER: _ClassVar[int]
+ ORGANIZATIONS_FIELD_NUMBER: _ClassVar[int]
+ API_KEYS_FIELD_NUMBER: _ClassVar[int]
+ CREATED_AT_FIELD_NUMBER: _ClassVar[int]
+ EMAIL_VERIFIED_FIELD_NUMBER: _ClassVar[int]
+ id: str
+ auth_id: str
+ profile_picture: str
+ email: str
+ organizations: _containers.RepeatedCompositeFieldContainer[OrganizationMember]
+ api_keys: _containers.RepeatedCompositeFieldContainer[APIKey]
+ created_at: int
+ email_verified: bool
+ def __init__(self, id: _Optional[str] = ..., auth_id: _Optional[str] = ..., profile_picture: _Optional[str] = ..., email: _Optional[str] = ..., organizations: _Optional[_Iterable[_Union[OrganizationMember, _Mapping]]] = ..., api_keys: _Optional[_Iterable[_Union[APIKey, _Mapping]]] = ..., created_at: _Optional[int] = ..., email_verified: bool = ...) -> None: ...
+
+class CostData(_message.Message):
+ __slots__ = ["amount_tokens", "amount_credits"]
+ AMOUNT_TOKENS_FIELD_NUMBER: _ClassVar[int]
+ AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int]
+ amount_tokens: int
+ amount_credits: float
+ def __init__(self, amount_tokens: _Optional[int] = ..., amount_credits: _Optional[float] = ...) -> None: ...
+
+class UsageMetric(_message.Message):
+ __slots__ = ["operation", "engine", "input_cost", "output_cost", "user", "aggregation_timestamp"]
+ OPERATION_FIELD_NUMBER: _ClassVar[int]
+ ENGINE_FIELD_NUMBER: _ClassVar[int]
+ INPUT_COST_FIELD_NUMBER: _ClassVar[int]
+ OUTPUT_COST_FIELD_NUMBER: _ClassVar[int]
+ USER_FIELD_NUMBER: _ClassVar[int]
+ AGGREGATION_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
+ operation: str
+ engine: str
+ input_cost: CostData
+ output_cost: CostData
+ user: str
+ aggregation_timestamp: int
+ def __init__(self, operation: _Optional[str] = ..., engine: _Optional[str] = ..., input_cost: _Optional[_Union[CostData, _Mapping]] = ..., output_cost: _Optional[_Union[CostData, _Mapping]] = ..., user: _Optional[str] = ..., aggregation_timestamp: _Optional[int] = ...) -> None: ...
+
+class CostTotal(_message.Message):
+ __slots__ = ["amount_tokens", "amount_credits"]
+ AMOUNT_TOKENS_FIELD_NUMBER: _ClassVar[int]
+ AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int]
+ amount_tokens: int
+ amount_credits: float
+ def __init__(self, amount_tokens: _Optional[int] = ..., amount_credits: _Optional[float] = ...) -> None: ...
+
+class TotalMetricsData(_message.Message):
+ __slots__ = ["input_total", "output_total"]
+ INPUT_TOTAL_FIELD_NUMBER: _ClassVar[int]
+ OUTPUT_TOTAL_FIELD_NUMBER: _ClassVar[int]
+ input_total: CostTotal
+ output_total: CostTotal
+ def __init__(self, input_total: _Optional[_Union[CostTotal, _Mapping]] = ..., output_total: _Optional[_Union[CostTotal, _Mapping]] = ...) -> None: ...
+
+class Metrics(_message.Message):
+ __slots__ = ["metrics", "total"]
+ METRICS_FIELD_NUMBER: _ClassVar[int]
+ TOTAL_FIELD_NUMBER: _ClassVar[int]
+ metrics: _containers.RepeatedCompositeFieldContainer[UsageMetric]
+ total: TotalMetricsData
+ def __init__(self, metrics: _Optional[_Iterable[_Union[UsageMetric, _Mapping]]] = ..., total: _Optional[_Union[TotalMetricsData, _Mapping]] = ...) -> None: ...
+
+class EmptyRequest(_message.Message):
+ __slots__ = []
+ def __init__(self) -> None: ...
+
+class GetOrganizationRequest(_message.Message):
+ __slots__ = ["id"]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ id: str
+ def __init__(self, id: _Optional[str] = ...) -> None: ...
+
+class GetMetricsRequest(_message.Message):
+ __slots__ = ["organization_id", "user_id", "range_from", "range_to", "include_per_request_metrics"]
+ ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
+ USER_ID_FIELD_NUMBER: _ClassVar[int]
+ RANGE_FROM_FIELD_NUMBER: _ClassVar[int]
+ RANGE_TO_FIELD_NUMBER: _ClassVar[int]
+ INCLUDE_PER_REQUEST_METRICS_FIELD_NUMBER: _ClassVar[int]
+ organization_id: str
+ user_id: str
+ range_from: int
+ range_to: int
+ include_per_request_metrics: bool
+ def __init__(self, organization_id: _Optional[str] = ..., user_id: _Optional[str] = ..., range_from: _Optional[int] = ..., range_to: _Optional[int] = ..., include_per_request_metrics: bool = ...) -> None: ...
+
+class APIKeyRequest(_message.Message):
+ __slots__ = ["is_secret"]
+ IS_SECRET_FIELD_NUMBER: _ClassVar[int]
+ is_secret: bool
+ def __init__(self, is_secret: bool = ...) -> None: ...
+
+class APIKeyFindRequest(_message.Message):
+ __slots__ = ["id"]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ id: str
+ def __init__(self, id: _Optional[str] = ...) -> None: ...
+
+class UpdateDefaultOrganizationRequest(_message.Message):
+ __slots__ = ["organization_id"]
+ ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
+ organization_id: str
+ def __init__(self, organization_id: _Optional[str] = ...) -> None: ...
+
+class ClientSettings(_message.Message):
+ __slots__ = ["settings"]
+ SETTINGS_FIELD_NUMBER: _ClassVar[int]
+ settings: bytes
+ def __init__(self, settings: _Optional[bytes] = ...) -> None: ...
+
+class CreateAutoChargeIntentRequest(_message.Message):
+ __slots__ = ["organization_id", "monthly_maximum", "minimum_value", "amount_credits"]
+ ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
+ MONTHLY_MAXIMUM_FIELD_NUMBER: _ClassVar[int]
+ MINIMUM_VALUE_FIELD_NUMBER: _ClassVar[int]
+ AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int]
+ organization_id: str
+ monthly_maximum: int
+ minimum_value: int
+ amount_credits: int
+ def __init__(self, organization_id: _Optional[str] = ..., monthly_maximum: _Optional[int] = ..., minimum_value: _Optional[int] = ..., amount_credits: _Optional[int] = ...) -> None: ...
+
+class CreateChargeRequest(_message.Message):
+ __slots__ = ["amount", "organization_id"]
+ AMOUNT_FIELD_NUMBER: _ClassVar[int]
+ ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
+ amount: int
+ organization_id: str
+ def __init__(self, amount: _Optional[int] = ..., organization_id: _Optional[str] = ...) -> None: ...
+
+class GetChargesRequest(_message.Message):
+ __slots__ = ["organization_id", "range_from", "range_to"]
+ ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
+ RANGE_FROM_FIELD_NUMBER: _ClassVar[int]
+ RANGE_TO_FIELD_NUMBER: _ClassVar[int]
+ organization_id: str
+ range_from: int
+ range_to: int
+ def __init__(self, organization_id: _Optional[str] = ..., range_from: _Optional[int] = ..., range_to: _Optional[int] = ...) -> None: ...
+
+class Charge(_message.Message):
+ __slots__ = ["id", "paid", "receipt_link", "payment_link", "created_at", "amount_credits"]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ PAID_FIELD_NUMBER: _ClassVar[int]
+ RECEIPT_LINK_FIELD_NUMBER: _ClassVar[int]
+ PAYMENT_LINK_FIELD_NUMBER: _ClassVar[int]
+ CREATED_AT_FIELD_NUMBER: _ClassVar[int]
+ AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int]
+ id: str
+ paid: bool
+ receipt_link: str
+ payment_link: str
+ created_at: int
+ amount_credits: int
+ def __init__(self, id: _Optional[str] = ..., paid: bool = ..., receipt_link: _Optional[str] = ..., payment_link: _Optional[str] = ..., created_at: _Optional[int] = ..., amount_credits: _Optional[int] = ...) -> None: ...
+
+class Charges(_message.Message):
+ __slots__ = ["charges"]
+ CHARGES_FIELD_NUMBER: _ClassVar[int]
+ charges: _containers.RepeatedCompositeFieldContainer[Charge]
+ def __init__(self, charges: _Optional[_Iterable[_Union[Charge, _Mapping]]] = ...) -> None: ...
+
+class GetAutoChargeRequest(_message.Message):
+ __slots__ = ["organization_id"]
+ ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
+ organization_id: str
+ def __init__(self, organization_id: _Optional[str] = ...) -> None: ...
+
+class AutoChargeIntent(_message.Message):
+ __slots__ = ["id", "payment_link", "created_at", "monthly_maximum", "minimum_value", "amount_credits"]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ PAYMENT_LINK_FIELD_NUMBER: _ClassVar[int]
+ CREATED_AT_FIELD_NUMBER: _ClassVar[int]
+ MONTHLY_MAXIMUM_FIELD_NUMBER: _ClassVar[int]
+ MINIMUM_VALUE_FIELD_NUMBER: _ClassVar[int]
+ AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int]
+ id: str
+ payment_link: str
+ created_at: int
+ monthly_maximum: int
+ minimum_value: int
+ amount_credits: int
+ def __init__(self, id: _Optional[str] = ..., payment_link: _Optional[str] = ..., created_at: _Optional[int] = ..., monthly_maximum: _Optional[int] = ..., minimum_value: _Optional[int] = ..., amount_credits: _Optional[int] = ...) -> None: ...
+
+class UpdateUserInfoRequest(_message.Message):
+ __slots__ = ["email"]
+ EMAIL_FIELD_NUMBER: _ClassVar[int]
+ email: str
+ def __init__(self, email: _Optional[str] = ...) -> None: ...
+
+class UserPasswordChangeTicket(_message.Message):
+ __slots__ = ["ticket"]
+ TICKET_FIELD_NUMBER: _ClassVar[int]
+ ticket: str
+ def __init__(self, ticket: _Optional[str] = ...) -> None: ...
diff --git a/src/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py b/src/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py
new file mode 100644
index 0000000..a9bf65b
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py
@@ -0,0 +1,565 @@
+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
+"""Client and server classes corresponding to protobuf-defined services."""
+import grpc
+
+from stability_api.platform.dashboard.v1 import dashboard_pb2 as stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2
+
+
+class DashboardServiceStub(object):
+ """Missing associated documentation comment in .proto file."""
+
+ def __init__(self, channel):
+ """Constructor.
+
+ Args:
+ channel: A grpc.Channel.
+ """
+ self.GetMe = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/GetMe',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ )
+ self.GetOrganization = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/GetOrganization',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString,
+ )
+ self.GetMetrics = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/GetMetrics',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString,
+ )
+ self.CreateAPIKey = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString,
+ )
+ self.DeleteAPIKey = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString,
+ )
+ self.UpdateDefaultOrganization = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ )
+ self.GetClientSettings = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString,
+ )
+ self.SetClientSettings = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString,
+ )
+ self.UpdateUserInfo = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ )
+ self.CreatePasswordChangeTicket = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString,
+ )
+ self.DeleteAccount = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ )
+ self.CreateCharge = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/CreateCharge',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString,
+ )
+ self.GetCharges = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/GetCharges',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString,
+ )
+ self.CreateAutoChargeIntent = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString,
+ )
+ self.UpdateAutoChargeIntent = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString,
+ )
+ self.GetAutoChargeIntent = channel.unary_unary(
+ '/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent',
+ request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString,
+ )
+
+
+class DashboardServiceServicer(object):
+ """Missing associated documentation comment in .proto file."""
+
+ def GetMe(self, request, context):
+ """Get info
+ """
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def GetOrganization(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def GetMetrics(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def CreateAPIKey(self, request, context):
+ """API key management
+ """
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def DeleteAPIKey(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def UpdateDefaultOrganization(self, request, context):
+ """User settings
+ """
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def GetClientSettings(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def SetClientSettings(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def UpdateUserInfo(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def CreatePasswordChangeTicket(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def DeleteAccount(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def CreateCharge(self, request, context):
+ """Payment functions
+ """
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def GetCharges(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def CreateAutoChargeIntent(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def UpdateAutoChargeIntent(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def GetAutoChargeIntent(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+
+def add_DashboardServiceServicer_to_server(servicer, server):
+ rpc_method_handlers = {
+ 'GetMe': grpc.unary_unary_rpc_method_handler(
+ servicer.GetMe,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString,
+ ),
+ 'GetOrganization': grpc.unary_unary_rpc_method_handler(
+ servicer.GetOrganization,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.SerializeToString,
+ ),
+ 'GetMetrics': grpc.unary_unary_rpc_method_handler(
+ servicer.GetMetrics,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.SerializeToString,
+ ),
+ 'CreateAPIKey': grpc.unary_unary_rpc_method_handler(
+ servicer.CreateAPIKey,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString,
+ ),
+ 'DeleteAPIKey': grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteAPIKey,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString,
+ ),
+ 'UpdateDefaultOrganization': grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateDefaultOrganization,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString,
+ ),
+ 'GetClientSettings': grpc.unary_unary_rpc_method_handler(
+ servicer.GetClientSettings,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString,
+ ),
+ 'SetClientSettings': grpc.unary_unary_rpc_method_handler(
+ servicer.SetClientSettings,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString,
+ ),
+ 'UpdateUserInfo': grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateUserInfo,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString,
+ ),
+ 'CreatePasswordChangeTicket': grpc.unary_unary_rpc_method_handler(
+ servicer.CreatePasswordChangeTicket,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.SerializeToString,
+ ),
+ 'DeleteAccount': grpc.unary_unary_rpc_method_handler(
+ servicer.DeleteAccount,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString,
+ ),
+ 'CreateCharge': grpc.unary_unary_rpc_method_handler(
+ servicer.CreateCharge,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.SerializeToString,
+ ),
+ 'GetCharges': grpc.unary_unary_rpc_method_handler(
+ servicer.GetCharges,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.SerializeToString,
+ ),
+ 'CreateAutoChargeIntent': grpc.unary_unary_rpc_method_handler(
+ servicer.CreateAutoChargeIntent,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString,
+ ),
+ 'UpdateAutoChargeIntent': grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateAutoChargeIntent,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString,
+ ),
+ 'GetAutoChargeIntent': grpc.unary_unary_rpc_method_handler(
+ servicer.GetAutoChargeIntent,
+ request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString,
+ ),
+ }
+ generic_handler = grpc.method_handlers_generic_handler(
+ 'stabilityai.api.dashboard.v1.DashboardService', rpc_method_handlers)
+ server.add_generic_rpc_handlers((generic_handler,))
+
+
+ # This class is part of an EXPERIMENTAL API.
+class DashboardService(object):
+ """Missing associated documentation comment in .proto file."""
+
+ @staticmethod
+ def GetMe(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetMe',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def GetOrganization(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetOrganization',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def GetMetrics(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetMetrics',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def CreateAPIKey(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def DeleteAPIKey(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def UpdateDefaultOrganization(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def GetClientSettings(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def SetClientSettings(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def UpdateUserInfo(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def CreatePasswordChangeTicket(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def DeleteAccount(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def CreateCharge(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateCharge',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def GetCharges(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetCharges',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def CreateAutoChargeIntent(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def UpdateAutoChargeIntent(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def GetAutoChargeIntent(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent',
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString,
+ stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
diff --git a/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go
new file mode 100644
index 0000000..f983bd7
--- /dev/null
+++ b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go
@@ -0,0 +1,523 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: stability_api/platform/dashboard/v1/dashboard.proto
+
+package dashboardv1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/dashboard/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion0_1_0
+
+const (
+ // DashboardServiceName is the fully-qualified name of the DashboardService service.
+ DashboardServiceName = "stabilityai.api.dashboard.v1.DashboardService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // DashboardServiceGetMeProcedure is the fully-qualified name of the DashboardService's GetMe RPC.
+ DashboardServiceGetMeProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetMe"
+ // DashboardServiceGetOrganizationProcedure is the fully-qualified name of the DashboardService's
+ // GetOrganization RPC.
+ DashboardServiceGetOrganizationProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetOrganization"
+ // DashboardServiceGetMetricsProcedure is the fully-qualified name of the DashboardService's
+ // GetMetrics RPC.
+ DashboardServiceGetMetricsProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetMetrics"
+ // DashboardServiceCreateAPIKeyProcedure is the fully-qualified name of the DashboardService's
+ // CreateAPIKey RPC.
+ DashboardServiceCreateAPIKeyProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey"
+ // DashboardServiceDeleteAPIKeyProcedure is the fully-qualified name of the DashboardService's
+ // DeleteAPIKey RPC.
+ DashboardServiceDeleteAPIKeyProcedure = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey"
+ // DashboardServiceUpdateDefaultOrganizationProcedure is the fully-qualified name of the
+ // DashboardService's UpdateDefaultOrganization RPC.
+ DashboardServiceUpdateDefaultOrganizationProcedure = "/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization"
+ // DashboardServiceGetClientSettingsProcedure is the fully-qualified name of the DashboardService's
+ // GetClientSettings RPC.
+ DashboardServiceGetClientSettingsProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings"
+ // DashboardServiceSetClientSettingsProcedure is the fully-qualified name of the DashboardService's
+ // SetClientSettings RPC.
+ DashboardServiceSetClientSettingsProcedure = "/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings"
+ // DashboardServiceUpdateUserInfoProcedure is the fully-qualified name of the DashboardService's
+ // UpdateUserInfo RPC.
+ DashboardServiceUpdateUserInfoProcedure = "/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo"
+ // DashboardServiceCreatePasswordChangeTicketProcedure is the fully-qualified name of the
+ // DashboardService's CreatePasswordChangeTicket RPC.
+ DashboardServiceCreatePasswordChangeTicketProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket"
+ // DashboardServiceDeleteAccountProcedure is the fully-qualified name of the DashboardService's
+ // DeleteAccount RPC.
+ DashboardServiceDeleteAccountProcedure = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount"
+ // DashboardServiceCreateChargeProcedure is the fully-qualified name of the DashboardService's
+ // CreateCharge RPC.
+ DashboardServiceCreateChargeProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreateCharge"
+ // DashboardServiceGetChargesProcedure is the fully-qualified name of the DashboardService's
+ // GetCharges RPC.
+ DashboardServiceGetChargesProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetCharges"
+ // DashboardServiceCreateAutoChargeIntentProcedure is the fully-qualified name of the
+ // DashboardService's CreateAutoChargeIntent RPC.
+ DashboardServiceCreateAutoChargeIntentProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent"
+ // DashboardServiceUpdateAutoChargeIntentProcedure is the fully-qualified name of the
+ // DashboardService's UpdateAutoChargeIntent RPC.
+ DashboardServiceUpdateAutoChargeIntentProcedure = "/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent"
+ // DashboardServiceGetAutoChargeIntentProcedure is the fully-qualified name of the
+ // DashboardService's GetAutoChargeIntent RPC.
+ DashboardServiceGetAutoChargeIntentProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent"
+)
+
+// DashboardServiceClient is a client for the stabilityai.api.dashboard.v1.DashboardService service.
+type DashboardServiceClient interface {
+ // Get info
+ GetMe(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error)
+ GetOrganization(context.Context, *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error)
+ GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error)
+ // API key management
+ CreateAPIKey(context.Context, *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error)
+ DeleteAPIKey(context.Context, *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error)
+ // User settings
+ UpdateDefaultOrganization(context.Context, *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error)
+ GetClientSettings(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error)
+ SetClientSettings(context.Context, *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error)
+ UpdateUserInfo(context.Context, *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error)
+ CreatePasswordChangeTicket(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error)
+ DeleteAccount(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error)
+ // Payment functions
+ CreateCharge(context.Context, *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error)
+ GetCharges(context.Context, *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error)
+ CreateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error)
+ UpdateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error)
+ GetAutoChargeIntent(context.Context, *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error)
+}
+
+// NewDashboardServiceClient constructs a client for the
+// stabilityai.api.dashboard.v1.DashboardService service. By default, it uses the Connect protocol
+// with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To
+// use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb()
+// options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewDashboardServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DashboardServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ return &dashboardServiceClient{
+ getMe: connect.NewClient[v1.EmptyRequest, v1.User](
+ httpClient,
+ baseURL+DashboardServiceGetMeProcedure,
+ opts...,
+ ),
+ getOrganization: connect.NewClient[v1.GetOrganizationRequest, v1.Organization](
+ httpClient,
+ baseURL+DashboardServiceGetOrganizationProcedure,
+ opts...,
+ ),
+ getMetrics: connect.NewClient[v1.GetMetricsRequest, v1.Metrics](
+ httpClient,
+ baseURL+DashboardServiceGetMetricsProcedure,
+ opts...,
+ ),
+ createAPIKey: connect.NewClient[v1.APIKeyRequest, v1.APIKey](
+ httpClient,
+ baseURL+DashboardServiceCreateAPIKeyProcedure,
+ opts...,
+ ),
+ deleteAPIKey: connect.NewClient[v1.APIKeyFindRequest, v1.APIKey](
+ httpClient,
+ baseURL+DashboardServiceDeleteAPIKeyProcedure,
+ opts...,
+ ),
+ updateDefaultOrganization: connect.NewClient[v1.UpdateDefaultOrganizationRequest, v1.User](
+ httpClient,
+ baseURL+DashboardServiceUpdateDefaultOrganizationProcedure,
+ opts...,
+ ),
+ getClientSettings: connect.NewClient[v1.EmptyRequest, v1.ClientSettings](
+ httpClient,
+ baseURL+DashboardServiceGetClientSettingsProcedure,
+ opts...,
+ ),
+ setClientSettings: connect.NewClient[v1.ClientSettings, v1.ClientSettings](
+ httpClient,
+ baseURL+DashboardServiceSetClientSettingsProcedure,
+ opts...,
+ ),
+ updateUserInfo: connect.NewClient[v1.UpdateUserInfoRequest, v1.User](
+ httpClient,
+ baseURL+DashboardServiceUpdateUserInfoProcedure,
+ opts...,
+ ),
+ createPasswordChangeTicket: connect.NewClient[v1.EmptyRequest, v1.UserPasswordChangeTicket](
+ httpClient,
+ baseURL+DashboardServiceCreatePasswordChangeTicketProcedure,
+ opts...,
+ ),
+ deleteAccount: connect.NewClient[v1.EmptyRequest, v1.User](
+ httpClient,
+ baseURL+DashboardServiceDeleteAccountProcedure,
+ opts...,
+ ),
+ createCharge: connect.NewClient[v1.CreateChargeRequest, v1.Charge](
+ httpClient,
+ baseURL+DashboardServiceCreateChargeProcedure,
+ opts...,
+ ),
+ getCharges: connect.NewClient[v1.GetChargesRequest, v1.Charges](
+ httpClient,
+ baseURL+DashboardServiceGetChargesProcedure,
+ opts...,
+ ),
+ createAutoChargeIntent: connect.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent](
+ httpClient,
+ baseURL+DashboardServiceCreateAutoChargeIntentProcedure,
+ opts...,
+ ),
+ updateAutoChargeIntent: connect.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent](
+ httpClient,
+ baseURL+DashboardServiceUpdateAutoChargeIntentProcedure,
+ opts...,
+ ),
+ getAutoChargeIntent: connect.NewClient[v1.GetAutoChargeRequest, v1.AutoChargeIntent](
+ httpClient,
+ baseURL+DashboardServiceGetAutoChargeIntentProcedure,
+ opts...,
+ ),
+ }
+}
+
+// dashboardServiceClient implements DashboardServiceClient.
+type dashboardServiceClient struct {
+ getMe *connect.Client[v1.EmptyRequest, v1.User]
+ getOrganization *connect.Client[v1.GetOrganizationRequest, v1.Organization]
+ getMetrics *connect.Client[v1.GetMetricsRequest, v1.Metrics]
+ createAPIKey *connect.Client[v1.APIKeyRequest, v1.APIKey]
+ deleteAPIKey *connect.Client[v1.APIKeyFindRequest, v1.APIKey]
+ updateDefaultOrganization *connect.Client[v1.UpdateDefaultOrganizationRequest, v1.User]
+ getClientSettings *connect.Client[v1.EmptyRequest, v1.ClientSettings]
+ setClientSettings *connect.Client[v1.ClientSettings, v1.ClientSettings]
+ updateUserInfo *connect.Client[v1.UpdateUserInfoRequest, v1.User]
+ createPasswordChangeTicket *connect.Client[v1.EmptyRequest, v1.UserPasswordChangeTicket]
+ deleteAccount *connect.Client[v1.EmptyRequest, v1.User]
+ createCharge *connect.Client[v1.CreateChargeRequest, v1.Charge]
+ getCharges *connect.Client[v1.GetChargesRequest, v1.Charges]
+ createAutoChargeIntent *connect.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]
+ updateAutoChargeIntent *connect.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]
+ getAutoChargeIntent *connect.Client[v1.GetAutoChargeRequest, v1.AutoChargeIntent]
+}
+
+// GetMe calls stabilityai.api.dashboard.v1.DashboardService.GetMe.
+func (c *dashboardServiceClient) GetMe(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) {
+ return c.getMe.CallUnary(ctx, req)
+}
+
+// GetOrganization calls stabilityai.api.dashboard.v1.DashboardService.GetOrganization.
+func (c *dashboardServiceClient) GetOrganization(ctx context.Context, req *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error) {
+ return c.getOrganization.CallUnary(ctx, req)
+}
+
+// GetMetrics calls stabilityai.api.dashboard.v1.DashboardService.GetMetrics.
+func (c *dashboardServiceClient) GetMetrics(ctx context.Context, req *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error) {
+ return c.getMetrics.CallUnary(ctx, req)
+}
+
+// CreateAPIKey calls stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey.
+func (c *dashboardServiceClient) CreateAPIKey(ctx context.Context, req *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error) {
+ return c.createAPIKey.CallUnary(ctx, req)
+}
+
+// DeleteAPIKey calls stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey.
+func (c *dashboardServiceClient) DeleteAPIKey(ctx context.Context, req *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error) {
+ return c.deleteAPIKey.CallUnary(ctx, req)
+}
+
+// UpdateDefaultOrganization calls
+// stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization.
+func (c *dashboardServiceClient) UpdateDefaultOrganization(ctx context.Context, req *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error) {
+ return c.updateDefaultOrganization.CallUnary(ctx, req)
+}
+
+// GetClientSettings calls stabilityai.api.dashboard.v1.DashboardService.GetClientSettings.
+func (c *dashboardServiceClient) GetClientSettings(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error) {
+ return c.getClientSettings.CallUnary(ctx, req)
+}
+
+// SetClientSettings calls stabilityai.api.dashboard.v1.DashboardService.SetClientSettings.
+func (c *dashboardServiceClient) SetClientSettings(ctx context.Context, req *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error) {
+ return c.setClientSettings.CallUnary(ctx, req)
+}
+
+// UpdateUserInfo calls stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo.
+func (c *dashboardServiceClient) UpdateUserInfo(ctx context.Context, req *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error) {
+ return c.updateUserInfo.CallUnary(ctx, req)
+}
+
+// CreatePasswordChangeTicket calls
+// stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket.
+func (c *dashboardServiceClient) CreatePasswordChangeTicket(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error) {
+ return c.createPasswordChangeTicket.CallUnary(ctx, req)
+}
+
+// DeleteAccount calls stabilityai.api.dashboard.v1.DashboardService.DeleteAccount.
+func (c *dashboardServiceClient) DeleteAccount(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) {
+ return c.deleteAccount.CallUnary(ctx, req)
+}
+
+// CreateCharge calls stabilityai.api.dashboard.v1.DashboardService.CreateCharge.
+func (c *dashboardServiceClient) CreateCharge(ctx context.Context, req *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error) {
+ return c.createCharge.CallUnary(ctx, req)
+}
+
+// GetCharges calls stabilityai.api.dashboard.v1.DashboardService.GetCharges.
+func (c *dashboardServiceClient) GetCharges(ctx context.Context, req *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error) {
+ return c.getCharges.CallUnary(ctx, req)
+}
+
+// CreateAutoChargeIntent calls
+// stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent.
+func (c *dashboardServiceClient) CreateAutoChargeIntent(ctx context.Context, req *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) {
+ return c.createAutoChargeIntent.CallUnary(ctx, req)
+}
+
+// UpdateAutoChargeIntent calls
+// stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent.
+func (c *dashboardServiceClient) UpdateAutoChargeIntent(ctx context.Context, req *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) {
+ return c.updateAutoChargeIntent.CallUnary(ctx, req)
+}
+
+// GetAutoChargeIntent calls stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent.
+func (c *dashboardServiceClient) GetAutoChargeIntent(ctx context.Context, req *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error) {
+ return c.getAutoChargeIntent.CallUnary(ctx, req)
+}
+
+// DashboardServiceHandler is an implementation of the stabilityai.api.dashboard.v1.DashboardService
+// service.
+type DashboardServiceHandler interface {
+ // Get info
+ GetMe(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error)
+ GetOrganization(context.Context, *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error)
+ GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error)
+ // API key management
+ CreateAPIKey(context.Context, *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error)
+ DeleteAPIKey(context.Context, *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error)
+ // User settings
+ UpdateDefaultOrganization(context.Context, *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error)
+ GetClientSettings(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error)
+ SetClientSettings(context.Context, *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error)
+ UpdateUserInfo(context.Context, *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error)
+ CreatePasswordChangeTicket(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error)
+ DeleteAccount(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error)
+ // Payment functions
+ CreateCharge(context.Context, *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error)
+ GetCharges(context.Context, *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error)
+ CreateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error)
+ UpdateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error)
+ GetAutoChargeIntent(context.Context, *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error)
+}
+
+// NewDashboardServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewDashboardServiceHandler(svc DashboardServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ dashboardServiceGetMeHandler := connect.NewUnaryHandler(
+ DashboardServiceGetMeProcedure,
+ svc.GetMe,
+ opts...,
+ )
+ dashboardServiceGetOrganizationHandler := connect.NewUnaryHandler(
+ DashboardServiceGetOrganizationProcedure,
+ svc.GetOrganization,
+ opts...,
+ )
+ dashboardServiceGetMetricsHandler := connect.NewUnaryHandler(
+ DashboardServiceGetMetricsProcedure,
+ svc.GetMetrics,
+ opts...,
+ )
+ dashboardServiceCreateAPIKeyHandler := connect.NewUnaryHandler(
+ DashboardServiceCreateAPIKeyProcedure,
+ svc.CreateAPIKey,
+ opts...,
+ )
+ dashboardServiceDeleteAPIKeyHandler := connect.NewUnaryHandler(
+ DashboardServiceDeleteAPIKeyProcedure,
+ svc.DeleteAPIKey,
+ opts...,
+ )
+ dashboardServiceUpdateDefaultOrganizationHandler := connect.NewUnaryHandler(
+ DashboardServiceUpdateDefaultOrganizationProcedure,
+ svc.UpdateDefaultOrganization,
+ opts...,
+ )
+ dashboardServiceGetClientSettingsHandler := connect.NewUnaryHandler(
+ DashboardServiceGetClientSettingsProcedure,
+ svc.GetClientSettings,
+ opts...,
+ )
+ dashboardServiceSetClientSettingsHandler := connect.NewUnaryHandler(
+ DashboardServiceSetClientSettingsProcedure,
+ svc.SetClientSettings,
+ opts...,
+ )
+ dashboardServiceUpdateUserInfoHandler := connect.NewUnaryHandler(
+ DashboardServiceUpdateUserInfoProcedure,
+ svc.UpdateUserInfo,
+ opts...,
+ )
+ dashboardServiceCreatePasswordChangeTicketHandler := connect.NewUnaryHandler(
+ DashboardServiceCreatePasswordChangeTicketProcedure,
+ svc.CreatePasswordChangeTicket,
+ opts...,
+ )
+ dashboardServiceDeleteAccountHandler := connect.NewUnaryHandler(
+ DashboardServiceDeleteAccountProcedure,
+ svc.DeleteAccount,
+ opts...,
+ )
+ dashboardServiceCreateChargeHandler := connect.NewUnaryHandler(
+ DashboardServiceCreateChargeProcedure,
+ svc.CreateCharge,
+ opts...,
+ )
+ dashboardServiceGetChargesHandler := connect.NewUnaryHandler(
+ DashboardServiceGetChargesProcedure,
+ svc.GetCharges,
+ opts...,
+ )
+ dashboardServiceCreateAutoChargeIntentHandler := connect.NewUnaryHandler(
+ DashboardServiceCreateAutoChargeIntentProcedure,
+ svc.CreateAutoChargeIntent,
+ opts...,
+ )
+ dashboardServiceUpdateAutoChargeIntentHandler := connect.NewUnaryHandler(
+ DashboardServiceUpdateAutoChargeIntentProcedure,
+ svc.UpdateAutoChargeIntent,
+ opts...,
+ )
+ dashboardServiceGetAutoChargeIntentHandler := connect.NewUnaryHandler(
+ DashboardServiceGetAutoChargeIntentProcedure,
+ svc.GetAutoChargeIntent,
+ opts...,
+ )
+ return "/stabilityai.api.dashboard.v1.DashboardService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case DashboardServiceGetMeProcedure:
+ dashboardServiceGetMeHandler.ServeHTTP(w, r)
+ case DashboardServiceGetOrganizationProcedure:
+ dashboardServiceGetOrganizationHandler.ServeHTTP(w, r)
+ case DashboardServiceGetMetricsProcedure:
+ dashboardServiceGetMetricsHandler.ServeHTTP(w, r)
+ case DashboardServiceCreateAPIKeyProcedure:
+ dashboardServiceCreateAPIKeyHandler.ServeHTTP(w, r)
+ case DashboardServiceDeleteAPIKeyProcedure:
+ dashboardServiceDeleteAPIKeyHandler.ServeHTTP(w, r)
+ case DashboardServiceUpdateDefaultOrganizationProcedure:
+ dashboardServiceUpdateDefaultOrganizationHandler.ServeHTTP(w, r)
+ case DashboardServiceGetClientSettingsProcedure:
+ dashboardServiceGetClientSettingsHandler.ServeHTTP(w, r)
+ case DashboardServiceSetClientSettingsProcedure:
+ dashboardServiceSetClientSettingsHandler.ServeHTTP(w, r)
+ case DashboardServiceUpdateUserInfoProcedure:
+ dashboardServiceUpdateUserInfoHandler.ServeHTTP(w, r)
+ case DashboardServiceCreatePasswordChangeTicketProcedure:
+ dashboardServiceCreatePasswordChangeTicketHandler.ServeHTTP(w, r)
+ case DashboardServiceDeleteAccountProcedure:
+ dashboardServiceDeleteAccountHandler.ServeHTTP(w, r)
+ case DashboardServiceCreateChargeProcedure:
+ dashboardServiceCreateChargeHandler.ServeHTTP(w, r)
+ case DashboardServiceGetChargesProcedure:
+ dashboardServiceGetChargesHandler.ServeHTTP(w, r)
+ case DashboardServiceCreateAutoChargeIntentProcedure:
+ dashboardServiceCreateAutoChargeIntentHandler.ServeHTTP(w, r)
+ case DashboardServiceUpdateAutoChargeIntentProcedure:
+ dashboardServiceUpdateAutoChargeIntentHandler.ServeHTTP(w, r)
+ case DashboardServiceGetAutoChargeIntentProcedure:
+ dashboardServiceGetAutoChargeIntentHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedDashboardServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedDashboardServiceHandler struct{}
+
+func (UnimplementedDashboardServiceHandler) GetMe(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMe is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) GetOrganization(context.Context, *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetOrganization is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMetrics is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) CreateAPIKey(context.Context, *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) DeleteAPIKey(context.Context, *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) UpdateDefaultOrganization(context.Context, *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) GetClientSettings(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetClientSettings is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) SetClientSettings(context.Context, *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.SetClientSettings is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) UpdateUserInfo(context.Context, *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) CreatePasswordChangeTicket(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) DeleteAccount(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAccount is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) CreateCharge(context.Context, *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateCharge is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) GetCharges(context.Context, *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetCharges is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) CreateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) UpdateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent is not implemented"))
+}
+
+func (UnimplementedDashboardServiceHandler) GetAutoChargeIntent(context.Context, *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent is not implemented"))
+}
diff --git a/src/stability_api/platform/engines/v1/engines.pb.go b/src/stability_api/platform/engines/v1/engines.pb.go
new file mode 100644
index 0000000..1b91a91
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines.pb.go
@@ -0,0 +1,499 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.31.0
+// protoc (unknown)
+// source: stability_api/platform/engines/v1/engines.proto
+
+package enginesv1
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Possible engine type
+type EngineType int32
+
+const (
+ EngineType_TEXT EngineType = 0
+ EngineType_PICTURE EngineType = 1
+ EngineType_AUDIO EngineType = 2
+ EngineType_VIDEO EngineType = 3
+ EngineType_CLASSIFICATION EngineType = 4
+ EngineType_STORAGE EngineType = 5
+)
+
+// Enum value maps for EngineType.
+var (
+ EngineType_name = map[int32]string{
+ 0: "TEXT",
+ 1: "PICTURE",
+ 2: "AUDIO",
+ 3: "VIDEO",
+ 4: "CLASSIFICATION",
+ 5: "STORAGE",
+ }
+ EngineType_value = map[string]int32{
+ "TEXT": 0,
+ "PICTURE": 1,
+ "AUDIO": 2,
+ "VIDEO": 3,
+ "CLASSIFICATION": 4,
+ "STORAGE": 5,
+ }
+)
+
+func (x EngineType) Enum() *EngineType {
+ p := new(EngineType)
+ *p = x
+ return p
+}
+
+func (x EngineType) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (EngineType) Descriptor() protoreflect.EnumDescriptor {
+ return file_stability_api_platform_engines_v1_engines_proto_enumTypes[0].Descriptor()
+}
+
+func (EngineType) Type() protoreflect.EnumType {
+ return &file_stability_api_platform_engines_v1_engines_proto_enumTypes[0]
+}
+
+func (x EngineType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use EngineType.Descriptor instead.
+func (EngineType) EnumDescriptor() ([]byte, []int) {
+ return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{0}
+}
+
+type EngineTokenizer int32
+
+const (
+ EngineTokenizer_GPT2 EngineTokenizer = 0
+ EngineTokenizer_PILE EngineTokenizer = 1
+)
+
+// Enum value maps for EngineTokenizer.
+var (
+ EngineTokenizer_name = map[int32]string{
+ 0: "GPT2",
+ 1: "PILE",
+ }
+ EngineTokenizer_value = map[string]int32{
+ "GPT2": 0,
+ "PILE": 1,
+ }
+)
+
+func (x EngineTokenizer) Enum() *EngineTokenizer {
+ p := new(EngineTokenizer)
+ *p = x
+ return p
+}
+
+func (x EngineTokenizer) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (EngineTokenizer) Descriptor() protoreflect.EnumDescriptor {
+ return file_stability_api_platform_engines_v1_engines_proto_enumTypes[1].Descriptor()
+}
+
+func (EngineTokenizer) Type() protoreflect.EnumType {
+ return &file_stability_api_platform_engines_v1_engines_proto_enumTypes[1]
+}
+
+func (x EngineTokenizer) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use EngineTokenizer.Descriptor instead.
+func (EngineTokenizer) EnumDescriptor() ([]byte, []int) {
+ return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{1}
+}
+
+// Engine info struct
+type EngineInfo struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
+ Ready bool `protobuf:"varint,3,opt,name=ready,proto3" json:"ready,omitempty"`
+ Type EngineType `protobuf:"varint,4,opt,name=type,proto3,enum=stabilityai.platformapis.engines.v1.EngineType" json:"type,omitempty"`
+ Tokenizer EngineTokenizer `protobuf:"varint,5,opt,name=tokenizer,proto3,enum=stabilityai.platformapis.engines.v1.EngineTokenizer" json:"tokenizer,omitempty"`
+ Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
+ Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
+ CanFineTune bool `protobuf:"varint,8,opt,name=can_fine_tune,json=canFineTune,proto3" json:"can_fine_tune,omitempty"`
+ IsAdaptive bool `protobuf:"varint,9,opt,name=is_adaptive,json=isAdaptive,proto3" json:"is_adaptive,omitempty"` // Whether this Engine supports T2I Adapters
+}
+
+func (x *EngineInfo) Reset() {
+ *x = EngineInfo{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EngineInfo) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EngineInfo) ProtoMessage() {}
+
+func (x *EngineInfo) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EngineInfo.ProtoReflect.Descriptor instead.
+func (*EngineInfo) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *EngineInfo) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *EngineInfo) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+func (x *EngineInfo) GetReady() bool {
+ if x != nil {
+ return x.Ready
+ }
+ return false
+}
+
+func (x *EngineInfo) GetType() EngineType {
+ if x != nil {
+ return x.Type
+ }
+ return EngineType_TEXT
+}
+
+func (x *EngineInfo) GetTokenizer() EngineTokenizer {
+ if x != nil {
+ return x.Tokenizer
+ }
+ return EngineTokenizer_GPT2
+}
+
+func (x *EngineInfo) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *EngineInfo) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+func (x *EngineInfo) GetCanFineTune() bool {
+ if x != nil {
+ return x.CanFineTune
+ }
+ return false
+}
+
+func (x *EngineInfo) GetIsAdaptive() bool {
+ if x != nil {
+ return x.IsAdaptive
+ }
+ return false
+}
+
+type ListEnginesRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *ListEnginesRequest) Reset() {
+ *x = ListEnginesRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ListEnginesRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListEnginesRequest) ProtoMessage() {}
+
+func (x *ListEnginesRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ListEnginesRequest.ProtoReflect.Descriptor instead.
+func (*ListEnginesRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{1}
+}
+
+// Engine info list
+type Engines struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Engine []*EngineInfo `protobuf:"bytes,1,rep,name=engine,proto3" json:"engine,omitempty"`
+}
+
+func (x *Engines) Reset() {
+ *x = Engines{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Engines) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Engines) ProtoMessage() {}
+
+func (x *Engines) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Engines.ProtoReflect.Descriptor instead.
+func (*Engines) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *Engines) GetEngine() []*EngineInfo {
+ if x != nil {
+ return x.Engine
+ }
+ return nil
+}
+
+var File_stability_api_platform_engines_v1_engines_proto protoreflect.FileDescriptor
+
+var file_stability_api_platform_engines_v1_engines_proto_rawDesc = []byte{
+ 0x0a, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f,
+ 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73,
+ 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70,
+ 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69,
+ 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0xdc, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72,
+ 0x65, 0x61, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64,
+ 0x79, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c,
+ 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65,
+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69,
+ 0x7a, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62,
+ 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
+ 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e,
+ 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52,
+ 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20,
+ 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
+ 0x12, 0x22, 0x0a, 0x0d, 0x63, 0x61, 0x6e, 0x5f, 0x66, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x75, 0x6e,
+ 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, 0x61, 0x6e, 0x46, 0x69, 0x6e, 0x65,
+ 0x54, 0x75, 0x6e, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x61, 0x70, 0x74,
+ 0x69, 0x76, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x41, 0x64, 0x61,
+ 0x70, 0x74, 0x69, 0x76, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45,
+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
+ 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69,
+ 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a,
+ 0x5a, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a,
+ 0x04, 0x54, 0x45, 0x58, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55,
+ 0x52, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12,
+ 0x09, 0x0a, 0x05, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c,
+ 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b,
+ 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45,
+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08,
+ 0x0a, 0x04, 0x47, 0x50, 0x54, 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45,
+ 0x10, 0x01, 0x32, 0x88, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
+ 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e,
+ 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45,
+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e,
+ 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74,
+ 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73,
+ 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xbe, 0x02,
+ 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61,
+ 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65,
+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75,
+ 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d,
+ 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
+ 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f,
+ 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76,
+ 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c,
+ 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70,
+ 0x69, 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23,
+ 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74,
+ 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73,
+ 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61,
+ 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45,
+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
+ 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69,
+ 0x73, 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_stability_api_platform_engines_v1_engines_proto_rawDescOnce sync.Once
+ file_stability_api_platform_engines_v1_engines_proto_rawDescData = file_stability_api_platform_engines_v1_engines_proto_rawDesc
+)
+
+func file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP() []byte {
+ file_stability_api_platform_engines_v1_engines_proto_rawDescOnce.Do(func() {
+ file_stability_api_platform_engines_v1_engines_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_engines_v1_engines_proto_rawDescData)
+ })
+ return file_stability_api_platform_engines_v1_engines_proto_rawDescData
+}
+
+var file_stability_api_platform_engines_v1_engines_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
+var file_stability_api_platform_engines_v1_engines_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_stability_api_platform_engines_v1_engines_proto_goTypes = []interface{}{
+ (EngineType)(0), // 0: stabilityai.platformapis.engines.v1.EngineType
+ (EngineTokenizer)(0), // 1: stabilityai.platformapis.engines.v1.EngineTokenizer
+ (*EngineInfo)(nil), // 2: stabilityai.platformapis.engines.v1.EngineInfo
+ (*ListEnginesRequest)(nil), // 3: stabilityai.platformapis.engines.v1.ListEnginesRequest
+ (*Engines)(nil), // 4: stabilityai.platformapis.engines.v1.Engines
+}
+var file_stability_api_platform_engines_v1_engines_proto_depIdxs = []int32{
+ 0, // 0: stabilityai.platformapis.engines.v1.EngineInfo.type:type_name -> stabilityai.platformapis.engines.v1.EngineType
+ 1, // 1: stabilityai.platformapis.engines.v1.EngineInfo.tokenizer:type_name -> stabilityai.platformapis.engines.v1.EngineTokenizer
+ 2, // 2: stabilityai.platformapis.engines.v1.Engines.engine:type_name -> stabilityai.platformapis.engines.v1.EngineInfo
+ 3, // 3: stabilityai.platformapis.engines.v1.EnginesService.ListEngines:input_type -> stabilityai.platformapis.engines.v1.ListEnginesRequest
+ 4, // 4: stabilityai.platformapis.engines.v1.EnginesService.ListEngines:output_type -> stabilityai.platformapis.engines.v1.Engines
+ 4, // [4:5] is the sub-list for method output_type
+ 3, // [3:4] is the sub-list for method input_type
+ 3, // [3:3] is the sub-list for extension type_name
+ 3, // [3:3] is the sub-list for extension extendee
+ 0, // [0:3] is the sub-list for field type_name
+}
+
+func init() { file_stability_api_platform_engines_v1_engines_proto_init() }
+func file_stability_api_platform_engines_v1_engines_proto_init() {
+ if File_stability_api_platform_engines_v1_engines_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_stability_api_platform_engines_v1_engines_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EngineInfo); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_engines_v1_engines_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListEnginesRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_engines_v1_engines_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Engines); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_stability_api_platform_engines_v1_engines_proto_rawDesc,
+ NumEnums: 2,
+ NumMessages: 3,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_stability_api_platform_engines_v1_engines_proto_goTypes,
+ DependencyIndexes: file_stability_api_platform_engines_v1_engines_proto_depIdxs,
+ EnumInfos: file_stability_api_platform_engines_v1_engines_proto_enumTypes,
+ MessageInfos: file_stability_api_platform_engines_v1_engines_proto_msgTypes,
+ }.Build()
+ File_stability_api_platform_engines_v1_engines_proto = out.File
+ file_stability_api_platform_engines_v1_engines_proto_rawDesc = nil
+ file_stability_api_platform_engines_v1_engines_proto_goTypes = nil
+ file_stability_api_platform_engines_v1_engines_proto_depIdxs = nil
+}
diff --git a/src/stability_api/platform/engines/v1/engines_connect.d.ts b/src/stability_api/platform/engines/v1/engines_connect.d.ts
new file mode 100644
index 0000000..7905661
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_connect.d.ts
@@ -0,0 +1,26 @@
+// @generated by protoc-gen-connect-es v0.12.0
+// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { Engines, ListEnginesRequest } from "./engines_pb.js";
+import { MethodKind } from "@bufbuild/protobuf";
+
+/**
+ * @generated from service stabilityai.platformapis.engines.v1.EnginesService
+ */
+export declare const EnginesService: {
+ readonly typeName: "stabilityai.platformapis.engines.v1.EnginesService",
+ readonly methods: {
+ /**
+ * @generated from rpc stabilityai.platformapis.engines.v1.EnginesService.ListEngines
+ */
+ readonly listEngines: {
+ readonly name: "ListEngines",
+ readonly I: typeof ListEnginesRequest,
+ readonly O: typeof Engines,
+ readonly kind: MethodKind.Unary,
+ },
+ }
+};
+
diff --git a/src/stability_api/platform/engines/v1/engines_connect.js b/src/stability_api/platform/engines/v1/engines_connect.js
new file mode 100644
index 0000000..b8f4259
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_connect.js
@@ -0,0 +1,26 @@
+// @generated by protoc-gen-connect-es v0.12.0
+// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { Engines, ListEnginesRequest } from "./engines_pb.js";
+import { MethodKind } from "@bufbuild/protobuf";
+
+/**
+ * @generated from service stabilityai.platformapis.engines.v1.EnginesService
+ */
+export const EnginesService = {
+ typeName: "stabilityai.platformapis.engines.v1.EnginesService",
+ methods: {
+ /**
+ * @generated from rpc stabilityai.platformapis.engines.v1.EnginesService.ListEngines
+ */
+ listEngines: {
+ name: "ListEngines",
+ I: ListEnginesRequest,
+ O: Engines,
+ kind: MethodKind.Unary,
+ },
+ }
+};
+
diff --git a/src/stability_api/platform/engines/v1/engines_grpc.pb.go b/src/stability_api/platform/engines/v1/engines_grpc.pb.go
new file mode 100644
index 0000000..ff6f615
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_grpc.pb.go
@@ -0,0 +1,109 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: stability_api/platform/engines/v1/engines.proto
+
+package enginesv1
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ EnginesService_ListEngines_FullMethodName = "/stabilityai.platformapis.engines.v1.EnginesService/ListEngines"
+)
+
+// EnginesServiceClient is the client API for EnginesService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type EnginesServiceClient interface {
+ ListEngines(ctx context.Context, in *ListEnginesRequest, opts ...grpc.CallOption) (*Engines, error)
+}
+
+type enginesServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewEnginesServiceClient(cc grpc.ClientConnInterface) EnginesServiceClient {
+ return &enginesServiceClient{cc}
+}
+
+func (c *enginesServiceClient) ListEngines(ctx context.Context, in *ListEnginesRequest, opts ...grpc.CallOption) (*Engines, error) {
+ out := new(Engines)
+ err := c.cc.Invoke(ctx, EnginesService_ListEngines_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// EnginesServiceServer is the server API for EnginesService service.
+// All implementations must embed UnimplementedEnginesServiceServer
+// for forward compatibility
+type EnginesServiceServer interface {
+ ListEngines(context.Context, *ListEnginesRequest) (*Engines, error)
+ mustEmbedUnimplementedEnginesServiceServer()
+}
+
+// UnimplementedEnginesServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedEnginesServiceServer struct {
+}
+
+func (UnimplementedEnginesServiceServer) ListEngines(context.Context, *ListEnginesRequest) (*Engines, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ListEngines not implemented")
+}
+func (UnimplementedEnginesServiceServer) mustEmbedUnimplementedEnginesServiceServer() {}
+
+// UnsafeEnginesServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to EnginesServiceServer will
+// result in compilation errors.
+type UnsafeEnginesServiceServer interface {
+ mustEmbedUnimplementedEnginesServiceServer()
+}
+
+func RegisterEnginesServiceServer(s grpc.ServiceRegistrar, srv EnginesServiceServer) {
+ s.RegisterService(&EnginesService_ServiceDesc, srv)
+}
+
+func _EnginesService_ListEngines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ListEnginesRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(EnginesServiceServer).ListEngines(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: EnginesService_ListEngines_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(EnginesServiceServer).ListEngines(ctx, req.(*ListEnginesRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// EnginesService_ServiceDesc is the grpc.ServiceDesc for EnginesService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var EnginesService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "stabilityai.platformapis.engines.v1.EnginesService",
+ HandlerType: (*EnginesServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "ListEngines",
+ Handler: _EnginesService_ListEngines_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "stability_api/platform/engines/v1/engines.proto",
+}
diff --git a/src/stability_api/platform/engines/v1/engines_pb.d.ts b/src/stability_api/platform/engines/v1/engines_pb.d.ts
new file mode 100644
index 0000000..13c0d17
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_pb.d.ts
@@ -0,0 +1,175 @@
+// @generated by protoc-gen-es v1.3.0
+// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
+import { Message, proto3 } from "@bufbuild/protobuf";
+
+/**
+ * Possible engine type
+ *
+ * @generated from enum stabilityai.platformapis.engines.v1.EngineType
+ */
+export declare enum EngineType {
+ /**
+ * @generated from enum value: TEXT = 0;
+ */
+ TEXT = 0,
+
+ /**
+ * @generated from enum value: PICTURE = 1;
+ */
+ PICTURE = 1,
+
+ /**
+ * @generated from enum value: AUDIO = 2;
+ */
+ AUDIO = 2,
+
+ /**
+ * @generated from enum value: VIDEO = 3;
+ */
+ VIDEO = 3,
+
+ /**
+ * @generated from enum value: CLASSIFICATION = 4;
+ */
+ CLASSIFICATION = 4,
+
+ /**
+ * @generated from enum value: STORAGE = 5;
+ */
+ STORAGE = 5,
+}
+
+/**
+ * @generated from enum stabilityai.platformapis.engines.v1.EngineTokenizer
+ */
+export declare enum EngineTokenizer {
+ /**
+ * @generated from enum value: GPT2 = 0;
+ */
+ GPT2 = 0,
+
+ /**
+ * @generated from enum value: PILE = 1;
+ */
+ PILE = 1,
+}
+
+/**
+ * Engine info struct
+ *
+ * @generated from message stabilityai.platformapis.engines.v1.EngineInfo
+ */
+export declare class EngineInfo extends Message {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: string owner = 2;
+ */
+ owner: string;
+
+ /**
+ * @generated from field: bool ready = 3;
+ */
+ ready: boolean;
+
+ /**
+ * @generated from field: stabilityai.platformapis.engines.v1.EngineType type = 4;
+ */
+ type: EngineType;
+
+ /**
+ * @generated from field: stabilityai.platformapis.engines.v1.EngineTokenizer tokenizer = 5;
+ */
+ tokenizer: EngineTokenizer;
+
+ /**
+ * @generated from field: string name = 6;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string description = 7;
+ */
+ description: string;
+
+ /**
+ * @generated from field: bool can_fine_tune = 8;
+ */
+ canFineTune: boolean;
+
+ /**
+ * Whether this Engine supports T2I Adapters
+ *
+ * @generated from field: bool is_adaptive = 9;
+ */
+ isAdaptive: boolean;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.platformapis.engines.v1.EngineInfo";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): EngineInfo;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): EngineInfo;
+
+ static fromJsonString(jsonString: string, options?: Partial): EngineInfo;
+
+ static equals(a: EngineInfo | PlainMessage | undefined, b: EngineInfo | PlainMessage | undefined): boolean;
+}
+
+/**
+ * Empty
+ *
+ * @generated from message stabilityai.platformapis.engines.v1.ListEnginesRequest
+ */
+export declare class ListEnginesRequest extends Message {
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.platformapis.engines.v1.ListEnginesRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): ListEnginesRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): ListEnginesRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): ListEnginesRequest;
+
+ static equals(a: ListEnginesRequest | PlainMessage | undefined, b: ListEnginesRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * Engine info list
+ *
+ * @generated from message stabilityai.platformapis.engines.v1.Engines
+ */
+export declare class Engines extends Message {
+ /**
+ * @generated from field: repeated stabilityai.platformapis.engines.v1.EngineInfo engine = 1;
+ */
+ engine: EngineInfo[];
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "stabilityai.platformapis.engines.v1.Engines";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): Engines;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): Engines;
+
+ static fromJsonString(jsonString: string, options?: Partial): Engines;
+
+ static equals(a: Engines | PlainMessage | undefined, b: Engines | PlainMessage | undefined): boolean;
+}
+
diff --git a/src/stability_api/platform/engines/v1/engines_pb.js b/src/stability_api/platform/engines/v1/engines_pb.js
new file mode 100644
index 0000000..2c9f820
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_pb.js
@@ -0,0 +1,77 @@
+// @generated by protoc-gen-es v1.3.0
+// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { proto3 } from "@bufbuild/protobuf";
+
+/**
+ * Possible engine type
+ *
+ * @generated from enum stabilityai.platformapis.engines.v1.EngineType
+ */
+export const EngineType = proto3.makeEnum(
+ "stabilityai.platformapis.engines.v1.EngineType",
+ [
+ {no: 0, name: "TEXT"},
+ {no: 1, name: "PICTURE"},
+ {no: 2, name: "AUDIO"},
+ {no: 3, name: "VIDEO"},
+ {no: 4, name: "CLASSIFICATION"},
+ {no: 5, name: "STORAGE"},
+ ],
+);
+
+/**
+ * @generated from enum stabilityai.platformapis.engines.v1.EngineTokenizer
+ */
+export const EngineTokenizer = proto3.makeEnum(
+ "stabilityai.platformapis.engines.v1.EngineTokenizer",
+ [
+ {no: 0, name: "GPT2"},
+ {no: 1, name: "PILE"},
+ ],
+);
+
+/**
+ * Engine info struct
+ *
+ * @generated from message stabilityai.platformapis.engines.v1.EngineInfo
+ */
+export const EngineInfo = proto3.makeMessageType(
+ "stabilityai.platformapis.engines.v1.EngineInfo",
+ () => [
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ { no: 4, name: "type", kind: "enum", T: proto3.getEnumType(EngineType) },
+ { no: 5, name: "tokenizer", kind: "enum", T: proto3.getEnumType(EngineTokenizer) },
+ { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 7, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
+ { no: 8, name: "can_fine_tune", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ { no: 9, name: "is_adaptive", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
+ ],
+);
+
+/**
+ * Empty
+ *
+ * @generated from message stabilityai.platformapis.engines.v1.ListEnginesRequest
+ */
+export const ListEnginesRequest = proto3.makeMessageType(
+ "stabilityai.platformapis.engines.v1.ListEnginesRequest",
+ [],
+);
+
+/**
+ * Engine info list
+ *
+ * @generated from message stabilityai.platformapis.engines.v1.Engines
+ */
+export const Engines = proto3.makeMessageType(
+ "stabilityai.platformapis.engines.v1.Engines",
+ () => [
+ { no: 1, name: "engine", kind: "message", T: EngineInfo, repeated: true },
+ ],
+);
+
diff --git a/src/stability_api/platform/engines/v1/engines_pb2.py b/src/stability_api/platform/engines/v1/engines_pb2.py
new file mode 100644
index 0000000..b0de325
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_pb2.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: stability_api/platform/engines/v1/engines.proto
+"""Generated protocol buffer code."""
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import descriptor_pool as _descriptor_pool
+from google.protobuf import symbol_database as _symbol_database
+from google.protobuf.internal import builder as _builder
+# @@protoc_insertion_point(imports)
+
+_sym_db = _symbol_database.Default()
+
+
+
+
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\xdc\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\x12\"\n\rcan_fine_tune\x18\x08 \x01(\x08R\x0b\x63\x61nFineTune\x12\x1f\n\x0bis_adaptive\x18\t \x01(\x08R\nisAdaptive\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3')
+
+_globals = globals()
+_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
+_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.platform.engines.v1.engines_pb2', _globals)
+if _descriptor._USE_C_DESCRIPTORS == False:
+
+ DESCRIPTOR._options = None
+ DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.engines.v1B\014EnginesProtoP\001Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\242\002\003SPE\252\002#Stabilityai.Platformapis.Engines.V1\312\002#Stabilityai\\Platformapis\\Engines\\V1\342\002/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Engines::V1'
+ _globals['_ENGINETYPE']._serialized_start=545
+ _globals['_ENGINETYPE']._serialized_end=635
+ _globals['_ENGINETOKENIZER']._serialized_start=637
+ _globals['_ENGINETOKENIZER']._serialized_end=674
+ _globals['_ENGINEINFO']._serialized_start=89
+ _globals['_ENGINEINFO']._serialized_end=437
+ _globals['_LISTENGINESREQUEST']._serialized_start=439
+ _globals['_LISTENGINESREQUEST']._serialized_end=459
+ _globals['_ENGINES']._serialized_start=461
+ _globals['_ENGINES']._serialized_end=543
+ _globals['_ENGINESSERVICE']._serialized_start=677
+ _globals['_ENGINESSERVICE']._serialized_end=813
+# @@protoc_insertion_point(module_scope)
diff --git a/src/stability_api/platform/engines/v1/engines_pb2.pyi b/src/stability_api/platform/engines/v1/engines_pb2.pyi
new file mode 100644
index 0000000..e8a3cbd
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_pb2.pyi
@@ -0,0 +1,61 @@
+from google.protobuf.internal import containers as _containers
+from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import message as _message
+from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
+
+DESCRIPTOR: _descriptor.FileDescriptor
+
+class EngineType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
+ __slots__ = []
+ TEXT: _ClassVar[EngineType]
+ PICTURE: _ClassVar[EngineType]
+ AUDIO: _ClassVar[EngineType]
+ VIDEO: _ClassVar[EngineType]
+ CLASSIFICATION: _ClassVar[EngineType]
+ STORAGE: _ClassVar[EngineType]
+
+class EngineTokenizer(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
+ __slots__ = []
+ GPT2: _ClassVar[EngineTokenizer]
+ PILE: _ClassVar[EngineTokenizer]
+TEXT: EngineType
+PICTURE: EngineType
+AUDIO: EngineType
+VIDEO: EngineType
+CLASSIFICATION: EngineType
+STORAGE: EngineType
+GPT2: EngineTokenizer
+PILE: EngineTokenizer
+
+class EngineInfo(_message.Message):
+ __slots__ = ["id", "owner", "ready", "type", "tokenizer", "name", "description", "can_fine_tune", "is_adaptive"]
+ ID_FIELD_NUMBER: _ClassVar[int]
+ OWNER_FIELD_NUMBER: _ClassVar[int]
+ READY_FIELD_NUMBER: _ClassVar[int]
+ TYPE_FIELD_NUMBER: _ClassVar[int]
+ TOKENIZER_FIELD_NUMBER: _ClassVar[int]
+ NAME_FIELD_NUMBER: _ClassVar[int]
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
+ CAN_FINE_TUNE_FIELD_NUMBER: _ClassVar[int]
+ IS_ADAPTIVE_FIELD_NUMBER: _ClassVar[int]
+ id: str
+ owner: str
+ ready: bool
+ type: EngineType
+ tokenizer: EngineTokenizer
+ name: str
+ description: str
+ can_fine_tune: bool
+ is_adaptive: bool
+ def __init__(self, id: _Optional[str] = ..., owner: _Optional[str] = ..., ready: bool = ..., type: _Optional[_Union[EngineType, str]] = ..., tokenizer: _Optional[_Union[EngineTokenizer, str]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., can_fine_tune: bool = ..., is_adaptive: bool = ...) -> None: ...
+
+class ListEnginesRequest(_message.Message):
+ __slots__ = []
+ def __init__(self) -> None: ...
+
+class Engines(_message.Message):
+ __slots__ = ["engine"]
+ ENGINE_FIELD_NUMBER: _ClassVar[int]
+ engine: _containers.RepeatedCompositeFieldContainer[EngineInfo]
+ def __init__(self, engine: _Optional[_Iterable[_Union[EngineInfo, _Mapping]]] = ...) -> None: ...
diff --git a/src/stability_api/platform/engines/v1/engines_pb2_grpc.py b/src/stability_api/platform/engines/v1/engines_pb2_grpc.py
new file mode 100644
index 0000000..76c560e
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/engines_pb2_grpc.py
@@ -0,0 +1,66 @@
+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
+"""Client and server classes corresponding to protobuf-defined services."""
+import grpc
+
+from stability_api.platform.engines.v1 import engines_pb2 as stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2
+
+
+class EnginesServiceStub(object):
+ """Missing associated documentation comment in .proto file."""
+
+ def __init__(self, channel):
+ """Constructor.
+
+ Args:
+ channel: A grpc.Channel.
+ """
+ self.ListEngines = channel.unary_unary(
+ '/stabilityai.platformapis.engines.v1.EnginesService/ListEngines',
+ request_serializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString,
+ response_deserializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString,
+ )
+
+
+class EnginesServiceServicer(object):
+ """Missing associated documentation comment in .proto file."""
+
+ def ListEngines(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+
+def add_EnginesServiceServicer_to_server(servicer, server):
+ rpc_method_handlers = {
+ 'ListEngines': grpc.unary_unary_rpc_method_handler(
+ servicer.ListEngines,
+ request_deserializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.FromString,
+ response_serializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.Engines.SerializeToString,
+ ),
+ }
+ generic_handler = grpc.method_handlers_generic_handler(
+ 'stabilityai.platformapis.engines.v1.EnginesService', rpc_method_handlers)
+ server.add_generic_rpc_handlers((generic_handler,))
+
+
+ # This class is part of an EXPERIMENTAL API.
+class EnginesService(object):
+ """Missing associated documentation comment in .proto file."""
+
+ @staticmethod
+ def ListEngines(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.engines.v1.EnginesService/ListEngines',
+ stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString,
+ stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
diff --git a/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go
new file mode 100644
index 0000000..9883075
--- /dev/null
+++ b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go
@@ -0,0 +1,108 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: stability_api/platform/engines/v1/engines.proto
+
+package enginesv1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/engines/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion0_1_0
+
+const (
+ // EnginesServiceName is the fully-qualified name of the EnginesService service.
+ EnginesServiceName = "stabilityai.platformapis.engines.v1.EnginesService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // EnginesServiceListEnginesProcedure is the fully-qualified name of the EnginesService's
+ // ListEngines RPC.
+ EnginesServiceListEnginesProcedure = "/stabilityai.platformapis.engines.v1.EnginesService/ListEngines"
+)
+
+// EnginesServiceClient is a client for the stabilityai.platformapis.engines.v1.EnginesService
+// service.
+type EnginesServiceClient interface {
+ ListEngines(context.Context, *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error)
+}
+
+// NewEnginesServiceClient constructs a client for the
+// stabilityai.platformapis.engines.v1.EnginesService service. By default, it uses the Connect
+// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed
+// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewEnginesServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EnginesServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ return &enginesServiceClient{
+ listEngines: connect.NewClient[v1.ListEnginesRequest, v1.Engines](
+ httpClient,
+ baseURL+EnginesServiceListEnginesProcedure,
+ opts...,
+ ),
+ }
+}
+
+// enginesServiceClient implements EnginesServiceClient.
+type enginesServiceClient struct {
+ listEngines *connect.Client[v1.ListEnginesRequest, v1.Engines]
+}
+
+// ListEngines calls stabilityai.platformapis.engines.v1.EnginesService.ListEngines.
+func (c *enginesServiceClient) ListEngines(ctx context.Context, req *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error) {
+ return c.listEngines.CallUnary(ctx, req)
+}
+
+// EnginesServiceHandler is an implementation of the
+// stabilityai.platformapis.engines.v1.EnginesService service.
+type EnginesServiceHandler interface {
+ ListEngines(context.Context, *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error)
+}
+
+// NewEnginesServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewEnginesServiceHandler(svc EnginesServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ enginesServiceListEnginesHandler := connect.NewUnaryHandler(
+ EnginesServiceListEnginesProcedure,
+ svc.ListEngines,
+ opts...,
+ )
+ return "/stabilityai.platformapis.engines.v1.EnginesService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case EnginesServiceListEnginesProcedure:
+ enginesServiceListEnginesHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedEnginesServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedEnginesServiceHandler struct{}
+
+func (UnimplementedEnginesServiceHandler) ListEngines(context.Context, *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.engines.v1.EnginesService.ListEngines is not implemented"))
+}
diff --git a/src/stability_api/platform/finetuning/finetuning.pb.go b/src/stability_api/platform/finetuning/finetuning.pb.go
new file mode 100644
index 0000000..ea7a28f
--- /dev/null
+++ b/src/stability_api/platform/finetuning/finetuning.pb.go
@@ -0,0 +1,1340 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.31.0
+// protoc (unknown)
+// source: stability_api/platform/finetuning/finetuning.proto
+
+package finetuning
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ structpb "google.golang.org/protobuf/types/known/structpb"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type FineTuningMode int32
+
+const (
+ FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED FineTuningMode = 0 // No mode specified
+ FineTuningMode_FINE_TUNING_MODE_FACE FineTuningMode = 1 // Fine tuning a face model
+ FineTuningMode_FINE_TUNING_MODE_STYLE FineTuningMode = 2 // Fine tuning a style model
+ FineTuningMode_FINE_TUNING_MODE_OBJECT FineTuningMode = 3 // Fine tuning an object model
+)
+
+// Enum value maps for FineTuningMode.
+var (
+ FineTuningMode_name = map[int32]string{
+ 0: "FINE_TUNING_MODE_UNSPECIFIED",
+ 1: "FINE_TUNING_MODE_FACE",
+ 2: "FINE_TUNING_MODE_STYLE",
+ 3: "FINE_TUNING_MODE_OBJECT",
+ }
+ FineTuningMode_value = map[string]int32{
+ "FINE_TUNING_MODE_UNSPECIFIED": 0,
+ "FINE_TUNING_MODE_FACE": 1,
+ "FINE_TUNING_MODE_STYLE": 2,
+ "FINE_TUNING_MODE_OBJECT": 3,
+ }
+)
+
+func (x FineTuningMode) Enum() *FineTuningMode {
+ p := new(FineTuningMode)
+ *p = x
+ return p
+}
+
+func (x FineTuningMode) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (FineTuningMode) Descriptor() protoreflect.EnumDescriptor {
+ return file_stability_api_platform_finetuning_finetuning_proto_enumTypes[0].Descriptor()
+}
+
+func (FineTuningMode) Type() protoreflect.EnumType {
+ return &file_stability_api_platform_finetuning_finetuning_proto_enumTypes[0]
+}
+
+func (x FineTuningMode) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use FineTuningMode.Descriptor instead.
+func (FineTuningMode) EnumDescriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{0}
+}
+
+type FineTuningStatus int32
+
+const (
+ FineTuningStatus_FINE_TUNING_STATUS_NOT_STARTED FineTuningStatus = 0 // Model not yet started
+ FineTuningStatus_FINE_TUNING_STATUS_RUNNING FineTuningStatus = 1 // Model is currently running
+ FineTuningStatus_FINE_TUNING_STATUS_COMPLETED FineTuningStatus = 2 // Model has completed successfully
+ FineTuningStatus_FINE_TUNING_STATUS_FAILED FineTuningStatus = 3 // Model has failed
+ FineTuningStatus_FINE_TUNING_STATUS_SUBMITTED FineTuningStatus = 4 // Model has been submitted
+)
+
+// Enum value maps for FineTuningStatus.
+var (
+ FineTuningStatus_name = map[int32]string{
+ 0: "FINE_TUNING_STATUS_NOT_STARTED",
+ 1: "FINE_TUNING_STATUS_RUNNING",
+ 2: "FINE_TUNING_STATUS_COMPLETED",
+ 3: "FINE_TUNING_STATUS_FAILED",
+ 4: "FINE_TUNING_STATUS_SUBMITTED",
+ }
+ FineTuningStatus_value = map[string]int32{
+ "FINE_TUNING_STATUS_NOT_STARTED": 0,
+ "FINE_TUNING_STATUS_RUNNING": 1,
+ "FINE_TUNING_STATUS_COMPLETED": 2,
+ "FINE_TUNING_STATUS_FAILED": 3,
+ "FINE_TUNING_STATUS_SUBMITTED": 4,
+ }
+)
+
+func (x FineTuningStatus) Enum() *FineTuningStatus {
+ p := new(FineTuningStatus)
+ *p = x
+ return p
+}
+
+func (x FineTuningStatus) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (FineTuningStatus) Descriptor() protoreflect.EnumDescriptor {
+ return file_stability_api_platform_finetuning_finetuning_proto_enumTypes[1].Descriptor()
+}
+
+func (FineTuningStatus) Type() protoreflect.EnumType {
+ return &file_stability_api_platform_finetuning_finetuning_proto_enumTypes[1]
+}
+
+func (x FineTuningStatus) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use FineTuningStatus.Descriptor instead.
+func (FineTuningStatus) EnumDescriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{1}
+}
+
+type FineTuningModel struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model, UUIDv4
+ UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // ID of user who created the model
+ Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // a readable model name
+ Mode *FineTuningMode `protobuf:"varint,4,opt,name=mode,proto3,enum=gooseai.FineTuningMode,oneof" json:"mode,omitempty"` // the mode of the model
+ ObjectPrompt *string `protobuf:"bytes,5,opt,name=object_prompt,json=objectPrompt,proto3,oneof" json:"object_prompt,omitempty"` // freeform text description of object, should only be set when mode is OBJECT
+ ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // project ID with assets to be used for fine tuning
+ Duration float64 `protobuf:"fixed64,7,opt,name=duration,proto3" json:"duration,omitempty"` // duration in seconds for how long the model took to train
+ Status FineTuningStatus `protobuf:"varint,8,opt,name=status,proto3,enum=gooseai.FineTuningStatus" json:"status,omitempty"` // the current status of the model
+ EngineId string `protobuf:"bytes,9,opt,name=engine_id,json=engineId,proto3" json:"engine_id,omitempty"` // the engineId of a fine-tuneable Stability model
+ FailureReason *string `protobuf:"bytes,10,opt,name=failure_reason,json=failureReason,proto3,oneof" json:"failure_reason,omitempty"` // If a model's training failed, this will contain the reason
+}
+
+func (x *FineTuningModel) Reset() {
+ *x = FineTuningModel{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *FineTuningModel) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FineTuningModel) ProtoMessage() {}
+
+func (x *FineTuningModel) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use FineTuningModel.ProtoReflect.Descriptor instead.
+func (*FineTuningModel) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *FineTuningModel) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *FineTuningModel) GetUserId() string {
+ if x != nil {
+ return x.UserId
+ }
+ return ""
+}
+
+func (x *FineTuningModel) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *FineTuningModel) GetMode() FineTuningMode {
+ if x != nil && x.Mode != nil {
+ return *x.Mode
+ }
+ return FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED
+}
+
+func (x *FineTuningModel) GetObjectPrompt() string {
+ if x != nil && x.ObjectPrompt != nil {
+ return *x.ObjectPrompt
+ }
+ return ""
+}
+
+func (x *FineTuningModel) GetProjectId() string {
+ if x != nil {
+ return x.ProjectId
+ }
+ return ""
+}
+
+func (x *FineTuningModel) GetDuration() float64 {
+ if x != nil {
+ return x.Duration
+ }
+ return 0
+}
+
+func (x *FineTuningModel) GetStatus() FineTuningStatus {
+ if x != nil {
+ return x.Status
+ }
+ return FineTuningStatus_FINE_TUNING_STATUS_NOT_STARTED
+}
+
+func (x *FineTuningModel) GetEngineId() string {
+ if x != nil {
+ return x.EngineId
+ }
+ return ""
+}
+
+func (x *FineTuningModel) GetFailureReason() string {
+ if x != nil && x.FailureReason != nil {
+ return *x.FailureReason
+ }
+ return ""
+}
+
+type CreateModelRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // a readable model name
+ Mode *FineTuningMode `protobuf:"varint,2,opt,name=mode,proto3,enum=gooseai.FineTuningMode,oneof" json:"mode,omitempty"` // the mode of the model
+ ObjectPrompt *string `protobuf:"bytes,3,opt,name=object_prompt,json=objectPrompt,proto3,oneof" json:"object_prompt,omitempty"` // freeform text description of object, should only be set when mode is OBJECT
+ ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // the project_id with assets to be used for fine tuning
+ EngineId string `protobuf:"bytes,5,opt,name=engine_id,json=engineId,proto3" json:"engine_id,omitempty"` // the engineId of an fine-tuneable Stability model
+ Extras *structpb.Struct `protobuf:"bytes,2047,opt,name=extras,proto3,oneof" json:"extras,omitempty"` // for development use
+}
+
+func (x *CreateModelRequest) Reset() {
+ *x = CreateModelRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateModelRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateModelRequest) ProtoMessage() {}
+
+func (x *CreateModelRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateModelRequest.ProtoReflect.Descriptor instead.
+func (*CreateModelRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *CreateModelRequest) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *CreateModelRequest) GetMode() FineTuningMode {
+ if x != nil && x.Mode != nil {
+ return *x.Mode
+ }
+ return FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED
+}
+
+func (x *CreateModelRequest) GetObjectPrompt() string {
+ if x != nil && x.ObjectPrompt != nil {
+ return *x.ObjectPrompt
+ }
+ return ""
+}
+
+func (x *CreateModelRequest) GetProjectId() string {
+ if x != nil {
+ return x.ProjectId
+ }
+ return ""
+}
+
+func (x *CreateModelRequest) GetEngineId() string {
+ if x != nil {
+ return x.EngineId
+ }
+ return ""
+}
+
+func (x *CreateModelRequest) GetExtras() *structpb.Struct {
+ if x != nil {
+ return x.Extras
+ }
+ return nil
+}
+
+type CreateModelResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
+}
+
+func (x *CreateModelResponse) Reset() {
+ *x = CreateModelResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateModelResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateModelResponse) ProtoMessage() {}
+
+func (x *CreateModelResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateModelResponse.ProtoReflect.Descriptor instead.
+func (*CreateModelResponse) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *CreateModelResponse) GetModel() *FineTuningModel {
+ if x != nil {
+ return x.Model
+ }
+ return nil
+}
+
+type GetModelRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model
+}
+
+func (x *GetModelRequest) Reset() {
+ *x = GetModelRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetModelRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetModelRequest) ProtoMessage() {}
+
+func (x *GetModelRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.
+func (*GetModelRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *GetModelRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+type GetModelResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
+}
+
+func (x *GetModelResponse) Reset() {
+ *x = GetModelResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetModelResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetModelResponse) ProtoMessage() {}
+
+func (x *GetModelResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetModelResponse.ProtoReflect.Descriptor instead.
+func (*GetModelResponse) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *GetModelResponse) GetModel() *FineTuningModel {
+ if x != nil {
+ return x.Model
+ }
+ return nil
+}
+
+type UpdateModelRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the id of the model
+ Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` // a readable model name
+ Mode *FineTuningMode `protobuf:"varint,3,opt,name=mode,proto3,enum=gooseai.FineTuningMode,oneof" json:"mode,omitempty"` // the mode of the model
+ ObjectPrompt *string `protobuf:"bytes,4,opt,name=object_prompt,json=objectPrompt,proto3,oneof" json:"object_prompt,omitempty"` // freeform text description of object, should only be set when mode is OBJECT
+ EngineId *string `protobuf:"bytes,5,opt,name=engine_id,json=engineId,proto3,oneof" json:"engine_id,omitempty"` // the engineId of an fine-tuneable Stability model
+}
+
+func (x *UpdateModelRequest) Reset() {
+ *x = UpdateModelRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateModelRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateModelRequest) ProtoMessage() {}
+
+func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateModelRequest.ProtoReflect.Descriptor instead.
+func (*UpdateModelRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *UpdateModelRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *UpdateModelRequest) GetName() string {
+ if x != nil && x.Name != nil {
+ return *x.Name
+ }
+ return ""
+}
+
+func (x *UpdateModelRequest) GetMode() FineTuningMode {
+ if x != nil && x.Mode != nil {
+ return *x.Mode
+ }
+ return FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED
+}
+
+func (x *UpdateModelRequest) GetObjectPrompt() string {
+ if x != nil && x.ObjectPrompt != nil {
+ return *x.ObjectPrompt
+ }
+ return ""
+}
+
+func (x *UpdateModelRequest) GetEngineId() string {
+ if x != nil && x.EngineId != nil {
+ return *x.EngineId
+ }
+ return ""
+}
+
+type UpdateModelResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
+}
+
+func (x *UpdateModelResponse) Reset() {
+ *x = UpdateModelResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateModelResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateModelResponse) ProtoMessage() {}
+
+func (x *UpdateModelResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateModelResponse.ProtoReflect.Descriptor instead.
+func (*UpdateModelResponse) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *UpdateModelResponse) GetModel() *FineTuningModel {
+ if x != nil {
+ return x.Model
+ }
+ return nil
+}
+
+type DeleteModelRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model to delete
+}
+
+func (x *DeleteModelRequest) Reset() {
+ *x = DeleteModelRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeleteModelRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeleteModelRequest) ProtoMessage() {}
+
+func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.
+func (*DeleteModelRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *DeleteModelRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+type DeleteModelResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
+}
+
+func (x *DeleteModelResponse) Reset() {
+ *x = DeleteModelResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeleteModelResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeleteModelResponse) ProtoMessage() {}
+
+func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteModelResponse.ProtoReflect.Descriptor instead.
+func (*DeleteModelResponse) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *DeleteModelResponse) GetModel() *FineTuningModel {
+ if x != nil {
+ return x.Model
+ }
+ return nil
+}
+
+type ResubmitModelRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model to resubmit
+}
+
+func (x *ResubmitModelRequest) Reset() {
+ *x = ResubmitModelRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ResubmitModelRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ResubmitModelRequest) ProtoMessage() {}
+
+func (x *ResubmitModelRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ResubmitModelRequest.ProtoReflect.Descriptor instead.
+func (*ResubmitModelRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *ResubmitModelRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+type ResubmitModelResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
+}
+
+func (x *ResubmitModelResponse) Reset() {
+ *x = ResubmitModelResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ResubmitModelResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ResubmitModelResponse) ProtoMessage() {}
+
+func (x *ResubmitModelResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ResubmitModelResponse.ProtoReflect.Descriptor instead.
+func (*ResubmitModelResponse) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *ResubmitModelResponse) GetModel() *FineTuningModel {
+ if x != nil {
+ return x.Model
+ }
+ return nil
+}
+
+type ListModelsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Types that are assignable to Id:
+ //
+ // *ListModelsRequest_OrgId
+ // *ListModelsRequest_UserId
+ Id isListModelsRequest_Id `protobuf_oneof:"id"`
+}
+
+func (x *ListModelsRequest) Reset() {
+ *x = ListModelsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ListModelsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListModelsRequest) ProtoMessage() {}
+
+func (x *ListModelsRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.
+func (*ListModelsRequest) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{11}
+}
+
+func (m *ListModelsRequest) GetId() isListModelsRequest_Id {
+ if m != nil {
+ return m.Id
+ }
+ return nil
+}
+
+func (x *ListModelsRequest) GetOrgId() string {
+ if x, ok := x.GetId().(*ListModelsRequest_OrgId); ok {
+ return x.OrgId
+ }
+ return ""
+}
+
+func (x *ListModelsRequest) GetUserId() string {
+ if x, ok := x.GetId().(*ListModelsRequest_UserId); ok {
+ return x.UserId
+ }
+ return ""
+}
+
+type isListModelsRequest_Id interface {
+ isListModelsRequest_Id()
+}
+
+type ListModelsRequest_OrgId struct {
+ OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3,oneof"` // the organization's ID
+}
+
+type ListModelsRequest_UserId struct {
+ UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof"` // or the user's ID
+}
+
+func (*ListModelsRequest_OrgId) isListModelsRequest_Id() {}
+
+func (*ListModelsRequest_UserId) isListModelsRequest_Id() {}
+
+type ListModelsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Models []*FineTuningModel `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // the list of models
+}
+
+func (x *ListModelsResponse) Reset() {
+ *x = ListModelsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[12]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ListModelsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListModelsResponse) ProtoMessage() {}
+
+func (x *ListModelsResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[12]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.
+func (*ListModelsResponse) Descriptor() ([]byte, []int) {
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{12}
+}
+
+func (x *ListModelsResponse) GetModels() []*FineTuningModel {
+ if x != nil {
+ return x.Models
+ }
+ return nil
+}
+
+var File_stability_api_platform_finetuning_finetuning_proto protoreflect.FileDescriptor
+
+var file_stability_api_platform_finetuning_finetuning_proto_rawDesc = []byte{
+ 0x0a, 0x32, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f,
+ 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x66, 0x69, 0x6e, 0x65, 0x74, 0x75, 0x6e,
+ 0x69, 0x6e, 0x67, 0x2f, 0x66, 0x69, 0x6e, 0x65, 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x1a, 0x1c, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73,
+ 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x03, 0x0a, 0x0f,
+ 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12,
+ 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
+ 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04,
+ 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f,
+ 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d,
+ 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x28,
+ 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50,
+ 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a,
+ 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72,
+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69,
+ 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,
+ 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
+ 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x72,
+ 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0d, 0x66,
+ 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42,
+ 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x66,
+ 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x9d, 0x02,
+ 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69,
+ 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x48,
+ 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, 0x0d, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x48, 0x01, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x70,
+ 0x74, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f,
+ 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
+ 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64,
+ 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, 0x65, 0x78,
+ 0x74, 0x72, 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65,
+ 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d,
+ 0x70, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x22, 0x45, 0x0a,
+ 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69,
+ 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d,
+ 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x21, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4d, 0x6f,
+ 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6d,
+ 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f,
+ 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d,
+ 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xed, 0x01, 0x0a, 0x12,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
+ 0x69, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x04, 0x6d,
+ 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x73,
+ 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f,
+ 0x64, 0x65, 0x48, 0x01, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a,
+ 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72,
+ 0x6f, 0x6d, 0x70, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e,
+ 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61,
+ 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x0c, 0x0a,
+ 0x0a, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x13, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65,
+ 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64,
+ 0x65, 0x6c, 0x22, 0x24, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65,
+ 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
+ 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e,
+ 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22,
+ 0x26, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x47, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x75, 0x62,
+ 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75,
+ 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
+ 0x22, 0x4d, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x19,
+ 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
+ 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x42, 0x04, 0x0a, 0x02, 0x69, 0x64, 0x22,
+ 0x46, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x18,
+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e,
+ 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52,
+ 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2a, 0x86, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x65,
+ 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x46, 0x49,
+ 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55,
+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15,
+ 0x46, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45,
+ 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x4e, 0x45, 0x5f,
+ 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x59, 0x4c,
+ 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49,
+ 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03,
+ 0x2a, 0xb9, 0x01, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x53,
+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x1e, 0x46, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55,
+ 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f,
+ 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x46, 0x49, 0x4e,
+ 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,
+ 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x46, 0x49, 0x4e,
+ 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,
+ 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x46,
+ 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55,
+ 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x46, 0x49,
+ 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
+ 0x5f, 0x53, 0x55, 0x42, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, 0x04, 0x32, 0xc9, 0x03, 0x0a,
+ 0x11, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65,
+ 0x6c, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61,
+ 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d,
+ 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08,
+ 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65,
+ 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74,
+ 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a,
+ 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x67,
+ 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64,
+ 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x73,
+ 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74,
+ 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69,
+ 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x44, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x4e, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64,
+ 0x65, 0x6c, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x52, 0x65, 0x73,
+ 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x75,
+ 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12,
+ 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f,
+ 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xa8, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x42, 0x0f, 0x46, 0x69, 0x6e, 0x65, 0x74, 0x75,
+ 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x69, 0x74,
+ 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
+ 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
+ 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
+ 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x66,
+ 0x69, 0x6e, 0x65, 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0xa2, 0x02, 0x03, 0x47, 0x58, 0x58, 0xaa,
+ 0x02, 0x07, 0x47, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0xca, 0x02, 0x07, 0x47, 0x6f, 0x6f, 0x73,
+ 0x65, 0x61, 0x69, 0xe2, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x5c, 0x47, 0x50,
+ 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x47, 0x6f, 0x6f, 0x73,
+ 0x65, 0x61, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_stability_api_platform_finetuning_finetuning_proto_rawDescOnce sync.Once
+ file_stability_api_platform_finetuning_finetuning_proto_rawDescData = file_stability_api_platform_finetuning_finetuning_proto_rawDesc
+)
+
+func file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP() []byte {
+ file_stability_api_platform_finetuning_finetuning_proto_rawDescOnce.Do(func() {
+ file_stability_api_platform_finetuning_finetuning_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_finetuning_finetuning_proto_rawDescData)
+ })
+ return file_stability_api_platform_finetuning_finetuning_proto_rawDescData
+}
+
+var file_stability_api_platform_finetuning_finetuning_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
+var file_stability_api_platform_finetuning_finetuning_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
+var file_stability_api_platform_finetuning_finetuning_proto_goTypes = []interface{}{
+ (FineTuningMode)(0), // 0: gooseai.FineTuningMode
+ (FineTuningStatus)(0), // 1: gooseai.FineTuningStatus
+ (*FineTuningModel)(nil), // 2: gooseai.FineTuningModel
+ (*CreateModelRequest)(nil), // 3: gooseai.CreateModelRequest
+ (*CreateModelResponse)(nil), // 4: gooseai.CreateModelResponse
+ (*GetModelRequest)(nil), // 5: gooseai.GetModelRequest
+ (*GetModelResponse)(nil), // 6: gooseai.GetModelResponse
+ (*UpdateModelRequest)(nil), // 7: gooseai.UpdateModelRequest
+ (*UpdateModelResponse)(nil), // 8: gooseai.UpdateModelResponse
+ (*DeleteModelRequest)(nil), // 9: gooseai.DeleteModelRequest
+ (*DeleteModelResponse)(nil), // 10: gooseai.DeleteModelResponse
+ (*ResubmitModelRequest)(nil), // 11: gooseai.ResubmitModelRequest
+ (*ResubmitModelResponse)(nil), // 12: gooseai.ResubmitModelResponse
+ (*ListModelsRequest)(nil), // 13: gooseai.ListModelsRequest
+ (*ListModelsResponse)(nil), // 14: gooseai.ListModelsResponse
+ (*structpb.Struct)(nil), // 15: google.protobuf.Struct
+}
+var file_stability_api_platform_finetuning_finetuning_proto_depIdxs = []int32{
+ 0, // 0: gooseai.FineTuningModel.mode:type_name -> gooseai.FineTuningMode
+ 1, // 1: gooseai.FineTuningModel.status:type_name -> gooseai.FineTuningStatus
+ 0, // 2: gooseai.CreateModelRequest.mode:type_name -> gooseai.FineTuningMode
+ 15, // 3: gooseai.CreateModelRequest.extras:type_name -> google.protobuf.Struct
+ 2, // 4: gooseai.CreateModelResponse.model:type_name -> gooseai.FineTuningModel
+ 2, // 5: gooseai.GetModelResponse.model:type_name -> gooseai.FineTuningModel
+ 0, // 6: gooseai.UpdateModelRequest.mode:type_name -> gooseai.FineTuningMode
+ 2, // 7: gooseai.UpdateModelResponse.model:type_name -> gooseai.FineTuningModel
+ 2, // 8: gooseai.DeleteModelResponse.model:type_name -> gooseai.FineTuningModel
+ 2, // 9: gooseai.ResubmitModelResponse.model:type_name -> gooseai.FineTuningModel
+ 2, // 10: gooseai.ListModelsResponse.models:type_name -> gooseai.FineTuningModel
+ 3, // 11: gooseai.FineTuningService.CreateModel:input_type -> gooseai.CreateModelRequest
+ 5, // 12: gooseai.FineTuningService.GetModel:input_type -> gooseai.GetModelRequest
+ 7, // 13: gooseai.FineTuningService.UpdateModel:input_type -> gooseai.UpdateModelRequest
+ 9, // 14: gooseai.FineTuningService.DeleteModel:input_type -> gooseai.DeleteModelRequest
+ 11, // 15: gooseai.FineTuningService.ResubmitModel:input_type -> gooseai.ResubmitModelRequest
+ 13, // 16: gooseai.FineTuningService.ListModels:input_type -> gooseai.ListModelsRequest
+ 4, // 17: gooseai.FineTuningService.CreateModel:output_type -> gooseai.CreateModelResponse
+ 6, // 18: gooseai.FineTuningService.GetModel:output_type -> gooseai.GetModelResponse
+ 8, // 19: gooseai.FineTuningService.UpdateModel:output_type -> gooseai.UpdateModelResponse
+ 10, // 20: gooseai.FineTuningService.DeleteModel:output_type -> gooseai.DeleteModelResponse
+ 12, // 21: gooseai.FineTuningService.ResubmitModel:output_type -> gooseai.ResubmitModelResponse
+ 14, // 22: gooseai.FineTuningService.ListModels:output_type -> gooseai.ListModelsResponse
+ 17, // [17:23] is the sub-list for method output_type
+ 11, // [11:17] is the sub-list for method input_type
+ 11, // [11:11] is the sub-list for extension type_name
+ 11, // [11:11] is the sub-list for extension extendee
+ 0, // [0:11] is the sub-list for field type_name
+}
+
+func init() { file_stability_api_platform_finetuning_finetuning_proto_init() }
+func file_stability_api_platform_finetuning_finetuning_proto_init() {
+ if File_stability_api_platform_finetuning_finetuning_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*FineTuningModel); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateModelRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateModelResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetModelRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetModelResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateModelRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateModelResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteModelRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteModelResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ResubmitModelRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ResubmitModelResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListModelsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListModelsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0].OneofWrappers = []interface{}{}
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1].OneofWrappers = []interface{}{}
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5].OneofWrappers = []interface{}{}
+ file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11].OneofWrappers = []interface{}{
+ (*ListModelsRequest_OrgId)(nil),
+ (*ListModelsRequest_UserId)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_stability_api_platform_finetuning_finetuning_proto_rawDesc,
+ NumEnums: 2,
+ NumMessages: 13,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_stability_api_platform_finetuning_finetuning_proto_goTypes,
+ DependencyIndexes: file_stability_api_platform_finetuning_finetuning_proto_depIdxs,
+ EnumInfos: file_stability_api_platform_finetuning_finetuning_proto_enumTypes,
+ MessageInfos: file_stability_api_platform_finetuning_finetuning_proto_msgTypes,
+ }.Build()
+ File_stability_api_platform_finetuning_finetuning_proto = out.File
+ file_stability_api_platform_finetuning_finetuning_proto_rawDesc = nil
+ file_stability_api_platform_finetuning_finetuning_proto_goTypes = nil
+ file_stability_api_platform_finetuning_finetuning_proto_depIdxs = nil
+}
diff --git a/src/stability_api/platform/finetuning/finetuning_connect.d.ts b/src/stability_api/platform/finetuning/finetuning_connect.d.ts
new file mode 100644
index 0000000..f238172
--- /dev/null
+++ b/src/stability_api/platform/finetuning/finetuning_connect.d.ts
@@ -0,0 +1,83 @@
+// @generated by protoc-gen-connect-es v0.12.0
+// @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { CreateModelRequest, CreateModelResponse, DeleteModelRequest, DeleteModelResponse, GetModelRequest, GetModelResponse, ListModelsRequest, ListModelsResponse, ResubmitModelRequest, ResubmitModelResponse, UpdateModelRequest, UpdateModelResponse } from "./finetuning_pb.js";
+import { MethodKind } from "@bufbuild/protobuf";
+
+/**
+ * @generated from service gooseai.FineTuningService
+ */
+export declare const FineTuningService: {
+ readonly typeName: "gooseai.FineTuningService",
+ readonly methods: {
+ /**
+ * Create a new model and begin the fine tuning process
+ *
+ * @generated from rpc gooseai.FineTuningService.CreateModel
+ */
+ readonly createModel: {
+ readonly name: "CreateModel",
+ readonly I: typeof CreateModelRequest,
+ readonly O: typeof CreateModelResponse,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * Get a FineTuningModel
+ *
+ * @generated from rpc gooseai.FineTuningService.GetModel
+ */
+ readonly getModel: {
+ readonly name: "GetModel",
+ readonly I: typeof GetModelRequest,
+ readonly O: typeof GetModelResponse,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * Update a FineTuningModel by id
+ *
+ * @generated from rpc gooseai.FineTuningService.UpdateModel
+ */
+ readonly updateModel: {
+ readonly name: "UpdateModel",
+ readonly I: typeof UpdateModelRequest,
+ readonly O: typeof UpdateModelResponse,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * Delete a fine tuned model
+ *
+ * @generated from rpc gooseai.FineTuningService.DeleteModel
+ */
+ readonly deleteModel: {
+ readonly name: "DeleteModel",
+ readonly I: typeof DeleteModelRequest,
+ readonly O: typeof DeleteModelResponse,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * Re-run training, does not create a new model
+ *
+ * @generated from rpc gooseai.FineTuningService.ResubmitModel
+ */
+ readonly resubmitModel: {
+ readonly name: "ResubmitModel",
+ readonly I: typeof ResubmitModelRequest,
+ readonly O: typeof ResubmitModelResponse,
+ readonly kind: MethodKind.Unary,
+ },
+ /**
+ * List all the fine tuned models for an organization or user
+ *
+ * @generated from rpc gooseai.FineTuningService.ListModels
+ */
+ readonly listModels: {
+ readonly name: "ListModels",
+ readonly I: typeof ListModelsRequest,
+ readonly O: typeof ListModelsResponse,
+ readonly kind: MethodKind.Unary,
+ },
+ }
+};
+
diff --git a/src/stability_api/platform/finetuning/finetuning_connect.js b/src/stability_api/platform/finetuning/finetuning_connect.js
new file mode 100644
index 0000000..b2215db
--- /dev/null
+++ b/src/stability_api/platform/finetuning/finetuning_connect.js
@@ -0,0 +1,83 @@
+// @generated by protoc-gen-connect-es v0.12.0
+// @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import { CreateModelRequest, CreateModelResponse, DeleteModelRequest, DeleteModelResponse, GetModelRequest, GetModelResponse, ListModelsRequest, ListModelsResponse, ResubmitModelRequest, ResubmitModelResponse, UpdateModelRequest, UpdateModelResponse } from "./finetuning_pb.js";
+import { MethodKind } from "@bufbuild/protobuf";
+
+/**
+ * @generated from service gooseai.FineTuningService
+ */
+export const FineTuningService = {
+ typeName: "gooseai.FineTuningService",
+ methods: {
+ /**
+ * Create a new model and begin the fine tuning process
+ *
+ * @generated from rpc gooseai.FineTuningService.CreateModel
+ */
+ createModel: {
+ name: "CreateModel",
+ I: CreateModelRequest,
+ O: CreateModelResponse,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * Get a FineTuningModel
+ *
+ * @generated from rpc gooseai.FineTuningService.GetModel
+ */
+ getModel: {
+ name: "GetModel",
+ I: GetModelRequest,
+ O: GetModelResponse,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * Update a FineTuningModel by id
+ *
+ * @generated from rpc gooseai.FineTuningService.UpdateModel
+ */
+ updateModel: {
+ name: "UpdateModel",
+ I: UpdateModelRequest,
+ O: UpdateModelResponse,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * Delete a fine tuned model
+ *
+ * @generated from rpc gooseai.FineTuningService.DeleteModel
+ */
+ deleteModel: {
+ name: "DeleteModel",
+ I: DeleteModelRequest,
+ O: DeleteModelResponse,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * Re-run training, does not create a new model
+ *
+ * @generated from rpc gooseai.FineTuningService.ResubmitModel
+ */
+ resubmitModel: {
+ name: "ResubmitModel",
+ I: ResubmitModelRequest,
+ O: ResubmitModelResponse,
+ kind: MethodKind.Unary,
+ },
+ /**
+ * List all the fine tuned models for an organization or user
+ *
+ * @generated from rpc gooseai.FineTuningService.ListModels
+ */
+ listModels: {
+ name: "ListModels",
+ I: ListModelsRequest,
+ O: ListModelsResponse,
+ kind: MethodKind.Unary,
+ },
+ }
+};
+
diff --git a/src/stability_api/platform/finetuning/finetuning_grpc.pb.go b/src/stability_api/platform/finetuning/finetuning_grpc.pb.go
new file mode 100644
index 0000000..78255b6
--- /dev/null
+++ b/src/stability_api/platform/finetuning/finetuning_grpc.pb.go
@@ -0,0 +1,306 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: stability_api/platform/finetuning/finetuning.proto
+
+package finetuning
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ FineTuningService_CreateModel_FullMethodName = "/gooseai.FineTuningService/CreateModel"
+ FineTuningService_GetModel_FullMethodName = "/gooseai.FineTuningService/GetModel"
+ FineTuningService_UpdateModel_FullMethodName = "/gooseai.FineTuningService/UpdateModel"
+ FineTuningService_DeleteModel_FullMethodName = "/gooseai.FineTuningService/DeleteModel"
+ FineTuningService_ResubmitModel_FullMethodName = "/gooseai.FineTuningService/ResubmitModel"
+ FineTuningService_ListModels_FullMethodName = "/gooseai.FineTuningService/ListModels"
+)
+
+// FineTuningServiceClient is the client API for FineTuningService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type FineTuningServiceClient interface {
+ // Create a new model and begin the fine tuning process
+ CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*CreateModelResponse, error)
+ // Get a FineTuningModel
+ GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*GetModelResponse, error)
+ // Update a FineTuningModel by id
+ UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*UpdateModelResponse, error)
+ // Delete a fine tuned model
+ DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error)
+ // Re-run training, does not create a new model
+ ResubmitModel(ctx context.Context, in *ResubmitModelRequest, opts ...grpc.CallOption) (*ResubmitModelResponse, error)
+ // List all the fine tuned models for an organization or user
+ ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
+}
+
+type fineTuningServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewFineTuningServiceClient(cc grpc.ClientConnInterface) FineTuningServiceClient {
+ return &fineTuningServiceClient{cc}
+}
+
+func (c *fineTuningServiceClient) CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*CreateModelResponse, error) {
+ out := new(CreateModelResponse)
+ err := c.cc.Invoke(ctx, FineTuningService_CreateModel_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *fineTuningServiceClient) GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*GetModelResponse, error) {
+ out := new(GetModelResponse)
+ err := c.cc.Invoke(ctx, FineTuningService_GetModel_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *fineTuningServiceClient) UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*UpdateModelResponse, error) {
+ out := new(UpdateModelResponse)
+ err := c.cc.Invoke(ctx, FineTuningService_UpdateModel_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *fineTuningServiceClient) DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error) {
+ out := new(DeleteModelResponse)
+ err := c.cc.Invoke(ctx, FineTuningService_DeleteModel_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *fineTuningServiceClient) ResubmitModel(ctx context.Context, in *ResubmitModelRequest, opts ...grpc.CallOption) (*ResubmitModelResponse, error) {
+ out := new(ResubmitModelResponse)
+ err := c.cc.Invoke(ctx, FineTuningService_ResubmitModel_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *fineTuningServiceClient) ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) {
+ out := new(ListModelsResponse)
+ err := c.cc.Invoke(ctx, FineTuningService_ListModels_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// FineTuningServiceServer is the server API for FineTuningService service.
+// All implementations must embed UnimplementedFineTuningServiceServer
+// for forward compatibility
+type FineTuningServiceServer interface {
+ // Create a new model and begin the fine tuning process
+ CreateModel(context.Context, *CreateModelRequest) (*CreateModelResponse, error)
+ // Get a FineTuningModel
+ GetModel(context.Context, *GetModelRequest) (*GetModelResponse, error)
+ // Update a FineTuningModel by id
+ UpdateModel(context.Context, *UpdateModelRequest) (*UpdateModelResponse, error)
+ // Delete a fine tuned model
+ DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
+ // Re-run training, does not create a new model
+ ResubmitModel(context.Context, *ResubmitModelRequest) (*ResubmitModelResponse, error)
+ // List all the fine tuned models for an organization or user
+ ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
+ mustEmbedUnimplementedFineTuningServiceServer()
+}
+
+// UnimplementedFineTuningServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedFineTuningServiceServer struct {
+}
+
+func (UnimplementedFineTuningServiceServer) CreateModel(context.Context, *CreateModelRequest) (*CreateModelResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateModel not implemented")
+}
+func (UnimplementedFineTuningServiceServer) GetModel(context.Context, *GetModelRequest) (*GetModelResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetModel not implemented")
+}
+func (UnimplementedFineTuningServiceServer) UpdateModel(context.Context, *UpdateModelRequest) (*UpdateModelResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateModel not implemented")
+}
+func (UnimplementedFineTuningServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteModel not implemented")
+}
+func (UnimplementedFineTuningServiceServer) ResubmitModel(context.Context, *ResubmitModelRequest) (*ResubmitModelResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ResubmitModel not implemented")
+}
+func (UnimplementedFineTuningServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ListModels not implemented")
+}
+func (UnimplementedFineTuningServiceServer) mustEmbedUnimplementedFineTuningServiceServer() {}
+
+// UnsafeFineTuningServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to FineTuningServiceServer will
+// result in compilation errors.
+type UnsafeFineTuningServiceServer interface {
+ mustEmbedUnimplementedFineTuningServiceServer()
+}
+
+func RegisterFineTuningServiceServer(s grpc.ServiceRegistrar, srv FineTuningServiceServer) {
+ s.RegisterService(&FineTuningService_ServiceDesc, srv)
+}
+
+func _FineTuningService_CreateModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateModelRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(FineTuningServiceServer).CreateModel(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: FineTuningService_CreateModel_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(FineTuningServiceServer).CreateModel(ctx, req.(*CreateModelRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _FineTuningService_GetModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetModelRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(FineTuningServiceServer).GetModel(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: FineTuningService_GetModel_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(FineTuningServiceServer).GetModel(ctx, req.(*GetModelRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _FineTuningService_UpdateModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(UpdateModelRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(FineTuningServiceServer).UpdateModel(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: FineTuningService_UpdateModel_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(FineTuningServiceServer).UpdateModel(ctx, req.(*UpdateModelRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _FineTuningService_DeleteModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(DeleteModelRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(FineTuningServiceServer).DeleteModel(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: FineTuningService_DeleteModel_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(FineTuningServiceServer).DeleteModel(ctx, req.(*DeleteModelRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _FineTuningService_ResubmitModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ResubmitModelRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(FineTuningServiceServer).ResubmitModel(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: FineTuningService_ResubmitModel_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(FineTuningServiceServer).ResubmitModel(ctx, req.(*ResubmitModelRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _FineTuningService_ListModels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ListModelsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(FineTuningServiceServer).ListModels(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: FineTuningService_ListModels_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(FineTuningServiceServer).ListModels(ctx, req.(*ListModelsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// FineTuningService_ServiceDesc is the grpc.ServiceDesc for FineTuningService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var FineTuningService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "gooseai.FineTuningService",
+ HandlerType: (*FineTuningServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "CreateModel",
+ Handler: _FineTuningService_CreateModel_Handler,
+ },
+ {
+ MethodName: "GetModel",
+ Handler: _FineTuningService_GetModel_Handler,
+ },
+ {
+ MethodName: "UpdateModel",
+ Handler: _FineTuningService_UpdateModel_Handler,
+ },
+ {
+ MethodName: "DeleteModel",
+ Handler: _FineTuningService_DeleteModel_Handler,
+ },
+ {
+ MethodName: "ResubmitModel",
+ Handler: _FineTuningService_ResubmitModel_Handler,
+ },
+ {
+ MethodName: "ListModels",
+ Handler: _FineTuningService_ListModels_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "stability_api/platform/finetuning/finetuning.proto",
+}
diff --git a/src/stability_api/platform/finetuning/finetuning_pb.d.ts b/src/stability_api/platform/finetuning/finetuning_pb.d.ts
new file mode 100644
index 0000000..edee9b4
--- /dev/null
+++ b/src/stability_api/platform/finetuning/finetuning_pb.d.ts
@@ -0,0 +1,549 @@
+// @generated by protoc-gen-es v1.3.0
+// @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3)
+/* eslint-disable */
+// @ts-nocheck
+
+import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
+import { Message, proto3 } from "@bufbuild/protobuf";
+
+/**
+ * @generated from enum gooseai.FineTuningMode
+ */
+export declare enum FineTuningMode {
+ /**
+ * No mode specified
+ *
+ * @generated from enum value: FINE_TUNING_MODE_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * Fine tuning a face model
+ *
+ * @generated from enum value: FINE_TUNING_MODE_FACE = 1;
+ */
+ FACE = 1,
+
+ /**
+ * Fine tuning a style model
+ *
+ * @generated from enum value: FINE_TUNING_MODE_STYLE = 2;
+ */
+ STYLE = 2,
+
+ /**
+ * Fine tuning an object model
+ *
+ * @generated from enum value: FINE_TUNING_MODE_OBJECT = 3;
+ */
+ OBJECT = 3,
+}
+
+/**
+ * @generated from enum gooseai.FineTuningStatus
+ */
+export declare enum FineTuningStatus {
+ /**
+ * Model not yet started
+ *
+ * @generated from enum value: FINE_TUNING_STATUS_NOT_STARTED = 0;
+ */
+ NOT_STARTED = 0,
+
+ /**
+ * Model is currently running
+ *
+ * @generated from enum value: FINE_TUNING_STATUS_RUNNING = 1;
+ */
+ RUNNING = 1,
+
+ /**
+ * Model has completed successfully
+ *
+ * @generated from enum value: FINE_TUNING_STATUS_COMPLETED = 2;
+ */
+ COMPLETED = 2,
+
+ /**
+ * Model has failed
+ *
+ * @generated from enum value: FINE_TUNING_STATUS_FAILED = 3;
+ */
+ FAILED = 3,
+
+ /**
+ * Model has been submitted
+ *
+ * @generated from enum value: FINE_TUNING_STATUS_SUBMITTED = 4;
+ */
+ SUBMITTED = 4,
+}
+
+/**
+ * @generated from message gooseai.FineTuningModel
+ */
+export declare class FineTuningModel extends Message {
+ /**
+ * ID of the model, UUIDv4
+ *
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * ID of user who created the model
+ *
+ * @generated from field: string user_id = 2;
+ */
+ userId: string;
+
+ /**
+ * a readable model name
+ *
+ * @generated from field: string name = 3;
+ */
+ name: string;
+
+ /**
+ * the mode of the model
+ *
+ * @generated from field: optional gooseai.FineTuningMode mode = 4;
+ */
+ mode?: FineTuningMode;
+
+ /**
+ * freeform text description of object, should only be set when mode is OBJECT
+ *
+ * @generated from field: optional string object_prompt = 5;
+ */
+ objectPrompt?: string;
+
+ /**
+ * project ID with assets to be used for fine tuning
+ *
+ * @generated from field: string project_id = 6;
+ */
+ projectId: string;
+
+ /**
+ * duration in seconds for how long the model took to train
+ *
+ * @generated from field: double duration = 7;
+ */
+ duration: number;
+
+ /**
+ * the current status of the model
+ *
+ * @generated from field: gooseai.FineTuningStatus status = 8;
+ */
+ status: FineTuningStatus;
+
+ /**
+ * the engineId of a fine-tuneable Stability model
+ *
+ * @generated from field: string engine_id = 9;
+ */
+ engineId: string;
+
+ /**
+ * If a model's training failed, this will contain the reason
+ *
+ * @generated from field: optional string failure_reason = 10;
+ */
+ failureReason?: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "gooseai.FineTuningModel";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): FineTuningModel;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): FineTuningModel;
+
+ static fromJsonString(jsonString: string, options?: Partial): FineTuningModel;
+
+ static equals(a: FineTuningModel | PlainMessage | undefined, b: FineTuningModel | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message gooseai.CreateModelRequest
+ */
+export declare class CreateModelRequest extends Message {
+ /**
+ * a readable model name
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * the mode of the model
+ *
+ * @generated from field: optional gooseai.FineTuningMode mode = 2;
+ */
+ mode?: FineTuningMode;
+
+ /**
+ * freeform text description of object, should only be set when mode is OBJECT
+ *
+ * @generated from field: optional string object_prompt = 3;
+ */
+ objectPrompt?: string;
+
+ /**
+ * the project_id with assets to be used for fine tuning
+ *
+ * @generated from field: string project_id = 4;
+ */
+ projectId: string;
+
+ /**
+ * the engineId of an fine-tuneable Stability model
+ *
+ * @generated from field: string engine_id = 5;
+ */
+ engineId: string;
+
+ /**
+ * for development use
+ *
+ * @generated from field: optional google.protobuf.Struct extras = 2047;
+ */
+ extras?: Struct;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "gooseai.CreateModelRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): CreateModelRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): CreateModelRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): CreateModelRequest;
+
+ static equals(a: CreateModelRequest | PlainMessage | undefined, b: CreateModelRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message gooseai.CreateModelResponse
+ */
+export declare class CreateModelResponse extends Message {
+ /**
+ * @generated from field: gooseai.FineTuningModel model = 1;
+ */
+ model?: FineTuningModel;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "gooseai.CreateModelResponse";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): CreateModelResponse;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): CreateModelResponse;
+
+ static fromJsonString(jsonString: string, options?: Partial): CreateModelResponse;
+
+ static equals(a: CreateModelResponse | PlainMessage | undefined, b: CreateModelResponse | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message gooseai.GetModelRequest
+ */
+export declare class GetModelRequest extends Message {
+ /**
+ * ID of the model
+ *
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "gooseai.GetModelRequest";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): GetModelRequest;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): GetModelRequest;
+
+ static fromJsonString(jsonString: string, options?: Partial): GetModelRequest;
+
+ static equals(a: GetModelRequest | PlainMessage | undefined, b: GetModelRequest | PlainMessage | undefined): boolean;
+}
+
+/**
+ * @generated from message gooseai.GetModelResponse
+ */
+export declare class GetModelResponse extends Message {
+ /**
+ * @generated from field: gooseai.FineTuningModel model = 1;
+ */
+ model?: FineTuningModel;
+
+ constructor(data?: PartialMessage);
+
+ static readonly runtime: typeof proto3;
+ static readonly typeName = "gooseai.GetModelResponse";
+ static readonly fields: FieldList;
+
+ static fromBinary(bytes: Uint8Array, options?: Partial): GetModelResponse;
+
+ static fromJson(jsonValue: JsonValue, options?: Partial): GetModelResponse;
+
+ static fromJsonString(jsonString: string, options?: Partial): GetModelResponse;
+
+ static equals(a: GetModelResponse | PlainMessage | undefined, b: GetModelResponse | PlainMessage