From c0913e06355169380e01bb9780d2120bfe6eddd8 Mon Sep 17 00:00:00 2001 From: Iaroslav Gryshaiev Date: Fri, 3 May 2024 19:29:25 +0200 Subject: [PATCH] feat(ts): implement grpc-js client services (#158) refs akash-network/support#184 ensure non-conflicting dirs for patch preservation improve formatting to make sure it works from the root dir --- .env | 4 +- Makefile | 1 - make/setup-cache.mk | 2 + script/protocgen-legacy.sh | 50 +- script/ts-patches.sh | 2 +- ts/package-lock.json | 111 +- ts/package.json | 83 +- .../deployment/v1beta2/service.grpc-js.ts | 348 ++++ .../deployment/v1beta3/service.grpc-js.ts | 348 ++++ .../akash/inventory/v1/service.grpc-js.ts | 226 +++ .../akash/manifest/v2beta1/service.grpc-js.ts | 463 +++++ .../akash/manifest/v2beta2/service.grpc-js.ts | 625 +++++++ .../akash/market/v1beta2/service.grpc-js.ts | 252 +++ .../akash/market/v1beta3/service.grpc-js.ts | 252 +++ .../akash/market/v1beta4/service.grpc-js.ts | 252 +++ .../provider/lease/v1/service.grpc-js.ts | 1660 +++++++++++++++++ .../akash/provider/v1/service.grpc-js.ts | 123 ++ .../index.akash.deployment.v1beta2.grpc-js.ts | 1 + .../index.akash.deployment.v1beta3.grpc-js.ts | 1 + .../index.akash.inventory.v1.grpc-js.ts | 1 + .../index.akash.manifest.v2beta1.grpc-js.ts | 1 + .../index.akash.manifest.v2beta2.grpc-js.ts | 1 + .../index.akash.market.v1beta2.grpc-js.ts | 1 + .../index.akash.market.v1beta3.grpc-js.ts | 1 + .../index.akash.market.v1beta4.grpc-js.ts | 1 + .../index.akash.provider.lease.v1.grpc-js.ts | 1 + .../index.akash.provider.v1.grpc-js.ts | 1 + 27 files changed, 4717 insertions(+), 95 deletions(-) create mode 100644 ts/src/generated/akash/deployment/v1beta2/service.grpc-js.ts create mode 100644 ts/src/generated/akash/deployment/v1beta3/service.grpc-js.ts create mode 100644 ts/src/generated/akash/inventory/v1/service.grpc-js.ts create mode 100644 ts/src/generated/akash/manifest/v2beta1/service.grpc-js.ts create mode 100644 ts/src/generated/akash/manifest/v2beta2/service.grpc-js.ts create mode 100644 ts/src/generated/akash/market/v1beta2/service.grpc-js.ts create mode 100644 ts/src/generated/akash/market/v1beta3/service.grpc-js.ts create mode 100644 ts/src/generated/akash/market/v1beta4/service.grpc-js.ts create mode 100644 ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts create mode 100644 ts/src/generated/akash/provider/v1/service.grpc-js.ts create mode 100644 ts/src/generated/index.akash.deployment.v1beta2.grpc-js.ts create mode 100644 ts/src/generated/index.akash.deployment.v1beta3.grpc-js.ts create mode 100644 ts/src/generated/index.akash.inventory.v1.grpc-js.ts create mode 100644 ts/src/generated/index.akash.manifest.v2beta1.grpc-js.ts create mode 100644 ts/src/generated/index.akash.manifest.v2beta2.grpc-js.ts create mode 100644 ts/src/generated/index.akash.market.v1beta2.grpc-js.ts create mode 100644 ts/src/generated/index.akash.market.v1beta3.grpc-js.ts create mode 100644 ts/src/generated/index.akash.market.v1beta4.grpc-js.ts create mode 100644 ts/src/generated/index.akash.provider.lease.v1.grpc-js.ts create mode 100644 ts/src/generated/index.akash.provider.v1.grpc-js.ts diff --git a/.env b/.env index bd72b6ee..6c2e8e7b 100644 --- a/.env +++ b/.env @@ -11,4 +11,6 @@ AKASH_DEVCACHE_NODE_BIN=${AKASH_DEVCACHE_NODE_MODULES}/node_modules/.bin AKASH_TS_ROOT=${AKASH_ROOT}/ts AKASH_TS_PACKAGE_FILE=${AKASH_TS_ROOT}/package.json AKASH_TS_NODE_MODULES=${AKASH_TS_ROOT}/node_modules -AKASH_TS_NODE_BIN=${AKASH_TS_NODE_MODULES}/.bin \ No newline at end of file +AKASH_TS_NODE_BIN=${AKASH_TS_NODE_MODULES}/.bin +AKASH_DEVCACHE_TS_TMP=${AKASH_DEVCACHE_BASE}/tmp/ts +AKASH_DEVCACHE_TS_TMP_GRPC_JS=${AKASH_DEVCACHE_TS_TMP}/generated-grpc-js \ No newline at end of file diff --git a/Makefile b/Makefile index b9d135f1..d4b0a541 100644 --- a/Makefile +++ b/Makefile @@ -90,4 +90,3 @@ clean: rm -rf $(AKASH_DEVCACHE) rm -rf $(AKASH_TS_ROOT)/node_modules rm -rf $(AKASH_TS_ROOT)/dist - rm -rf $(AKASH_TS_ROOT)/src/generated diff --git a/make/setup-cache.mk b/make/setup-cache.mk index 46aa0553..c9c5269f 100644 --- a/make/setup-cache.mk +++ b/make/setup-cache.mk @@ -21,6 +21,8 @@ $(AKASH_DEVCACHE): mkdir -p $(AKASH_DEVCACHE_VERSIONS) mkdir -p $(AKASH_DEVCACHE_NODE_MODULES) mkdir -p $(AKASH_DEVCACHE)/run + mkdir -p $(AKASH_DEVCACHE_TS_TMP_GRPC_JS) + cache: $(AKASH_DEVCACHE) $(BUF_VERSION_FILE): $(AKASH_DEVCACHE) diff --git a/script/protocgen-legacy.sh b/script/protocgen-legacy.sh index 97144e5a..9bf89b43 100755 --- a/script/protocgen-legacy.sh +++ b/script/protocgen-legacy.sh @@ -8,6 +8,7 @@ export PATH=$PATH function cleanup { # put absolute path rm -rf "${AKASH_ROOT}/github.com" + rm -rf "$AKASH_DEVCACHE_TS_TMP_GRPC_JS" } trap cleanup EXIT ERR @@ -39,13 +40,23 @@ for dir in $proto_dirs; do $(find "${dir}" -maxdepth 1 -name '*.proto') .cache/bin/protoc \ - -I "proto/node" \ -I ".cache/include/google/protobuf" \ + -I "proto/node" \ -I "vendor/github.com/cosmos/cosmos-sdk/proto" \ -I "vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \ --plugin="${AKASH_TS_NODE_BIN}/protoc-gen-ts_proto" \ --ts_proto_out="${AKASH_TS_ROOT}/src/generated" \ - --ts_proto_opt=esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputIndex=true \ + --ts_proto_opt="esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputIndex=true" \ + $(find "${dir}" -maxdepth 1 -name '*.proto') + + .cache/bin/protoc \ + -I ".cache/include/google/protobuf" \ + -I "proto/node" \ + -I "vendor/github.com/cosmos/cosmos-sdk/proto" \ + -I "vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \ + --plugin="${AKASH_TS_NODE_BIN}/protoc-gen-ts_proto" \ + --ts_proto_out="$AKASH_DEVCACHE_TS_TMP_GRPC_JS" \ + --ts_proto_opt="esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputServices=grpc-js" \ $(find "${dir}" -maxdepth 1 -name '*.proto') done @@ -73,14 +84,43 @@ for dir in $proto_dirs; do .cache/bin/protoc \ -I "proto/provider" \ - -I "proto/node" \ -I ".cache/include" \ + -I "proto/node" \ -I "vendor/github.com/cosmos/cosmos-sdk/proto" \ -I "vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \ --plugin="${AKASH_TS_NODE_BIN}/protoc-gen-ts_proto" \ --ts_proto_out="${AKASH_TS_ROOT}/src/generated" \ - --ts_proto_opt=esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputIndex=true \ + --ts_proto_opt="esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputIndex=true" \ $(find "${dir}" -maxdepth 1 -name '*.proto') + + .cache/bin/protoc \ + -I "proto/provider" \ + -I ".cache/include" \ + -I "proto/node" \ + -I "vendor/github.com/cosmos/cosmos-sdk/proto" \ + -I "vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \ + --plugin="${AKASH_TS_NODE_BIN}/protoc-gen-ts_proto" \ + --ts_proto_out="$AKASH_DEVCACHE_TS_TMP_GRPC_JS" \ + --ts_proto_opt="esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputServices=grpc-js" \ + $(find "${dir}" -maxdepth 1 -name '*.proto') +done + +# merge generated grpc-js services to the main generated directory +ts_grpc_js_services=$(find "$AKASH_DEVCACHE_TS_TMP_GRPC_JS" -name 'service.ts') + +for file in $ts_grpc_js_services; do + dest_path=$(dirname "${file/$AKASH_DEVCACHE_TS_TMP_GRPC_JS/$AKASH_TS_ROOT\/src\/generated}") + dest_file="${dest_path}/service.grpc-js.ts" + + mv "$file" "$dest_file" + + path_from_gen_dir=${dest_file#"${AKASH_TS_ROOT}/src/generated/"} + index_file_name_base=${path_from_gen_dir%/service.grpc-js.ts} + index_file_name="index.${index_file_name_base//\//.}.grpc-js.ts" + index_file_path="${AKASH_TS_ROOT}/src/generated/$index_file_name" + export_statement="export * from \"./${path_from_gen_dir%.ts}\";" + + echo "$export_statement" > "$index_file_path" done # move proto files to the right places @@ -108,4 +148,4 @@ cp -rv github.com/akash-network/akash-api/* ./ script/ts-patches.sh restore -(cd "$AKASH_TS_ROOT" && npm run format) +npm run format --prefix "$AKASH_TS_ROOT" diff --git a/script/ts-patches.sh b/script/ts-patches.sh index 84da7b2a..54c711eb 100755 --- a/script/ts-patches.sh +++ b/script/ts-patches.sh @@ -3,7 +3,7 @@ set -eo pipefail generated_dir="$AKASH_TS_ROOT/src/generated" -tmp_dir="$AKASH_DEVCACHE_BASE/tmp/ts" +tmp_dir="$AKASH_DEVCACHE_TS_TMP/patches" if [ ! -d "$generated_dir" ]; then echo "Directory $generated_dir does not exist. Skipping..." diff --git a/ts/package-lock.json b/ts/package-lock.json index 8db69182..8dc8b2e0 100644 --- a/ts/package-lock.json +++ b/ts/package-lock.json @@ -30,6 +30,9 @@ "ts-jest": "^29.1.2", "ts-proto": "^1.169.1", "typescript": "^5.4.2" + }, + "peerDependencies": { + "@grpc/grpc-js": "^1.10.6" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -737,6 +740,37 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@grpc/grpc-js": { + "version": "1.10.6", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.6.tgz", + "integrity": "sha512-xP58G7wDQ4TCmN/cMUHh00DS7SRDv/+lC+xFLrTkMIN8h55X5NhZMLYbvy7dSELP15qlI6hPhNCRWVMtZMwqLA==", + "peer": true, + "dependencies": { + "@grpc/proto-loader": "^0.7.10", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.12", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.12.tgz", + "integrity": "sha512-DCVwMxqYzpUCiDMl7hQ384FqP4T3DbNpXU8pt681l3UWCip1WUiD5JrkImUwCB9a7f2cq4CUTmi5r/xIMRPY1Q==", + "peer": true, + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.4", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", @@ -1391,6 +1425,16 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -1655,32 +1699,27 @@ "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", - "dev": true + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" }, "node_modules/@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", - "dev": true + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", - "dev": true + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", - "dev": true + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "dev": true, "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -1689,32 +1728,27 @@ "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", - "dev": true + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", - "dev": true + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" }, "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", - "dev": true + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" }, "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", - "dev": true + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", - "dev": true + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, "node_modules/@semantic-release/commit-analyzer": { "version": "12.0.0", @@ -2151,7 +2185,6 @@ "version": "20.11.28", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.28.tgz", "integrity": "sha512-M/GPWVS2wLkSkNHVeLkrF2fD5Lx5UC4PxA0uZcKc6QqbIQUJyW1jVjueJYi1z8n0I5PxYrtpnPnWglE+y9A0KA==", - "dev": true, "dependencies": { "undici-types": "~5.26.4" } @@ -2466,7 +2499,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, "engines": { "node": ">=8" } @@ -2475,7 +2507,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -3116,7 +3147,6 @@ "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -3129,14 +3159,12 @@ "node_modules/cliui/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==", - "dev": true + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, "node_modules/cliui/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==", - "dev": true, "engines": { "node": ">=8" } @@ -3145,7 +3173,6 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -3159,7 +3186,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -3192,7 +3218,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, "dependencies": { "color-name": "~1.1.4" }, @@ -3203,8 +3228,7 @@ "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/colorette": { "version": "2.0.20", @@ -3861,7 +3885,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true, "engines": { "node": ">=6" } @@ -4529,7 +4552,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -6606,6 +6628,12 @@ "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", "dev": true }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "peer": true + }, "node_modules/lodash.capitalize": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", @@ -6740,8 +6768,7 @@ "node_modules/long": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/lru-cache": { "version": "6.0.0", @@ -10670,7 +10697,6 @@ "version": "7.2.6", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", - "dev": true, "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -10896,7 +10922,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -11863,7 +11888,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -12475,8 +12499,7 @@ "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" }, "node_modules/unicode-emoji-modifier-base": { "version": "1.0.0", @@ -12819,7 +12842,6 @@ "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, "engines": { "node": ">=10" } @@ -12843,7 +12865,6 @@ "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -12861,7 +12882,6 @@ "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, "engines": { "node": ">=12" } @@ -12869,14 +12889,12 @@ "node_modules/yargs/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==", - "dev": true + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, "node_modules/yargs/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==", - "dev": true, "engines": { "node": ">=8" } @@ -12885,7 +12903,6 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", diff --git a/ts/package.json b/ts/package.json index b27d8d05..565f94f3 100644 --- a/ts/package.json +++ b/ts/package.json @@ -1,9 +1,48 @@ { + "name": "@akashnetwork/akash-api", + "version": "0.0.0", + "description": "Akash API TypeScript client", + "keywords": [], + "repository": { + "type": "git", + "url": "https://github.com/akash-network/akash-api", + "directory": "ts" + }, + "license": "Apache-2.0", "author": "Akash Network Team", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { + "build": "rimraf dist && tsc -p tsconfig.build.json && npm run format", + "postbuild": "script/generate-exports.js", + "format": "prettier --write \"$AKASH_TS_ROOT/**/*.{js,jsx,ts,tsx,css,json}\" --config ./.prettierrc --log-level silent", + "lint": "eslint src", + "lint:fix": "npm run lint -- --fix", + "test": "jest --selectProjects unit functional", + "test:cov": "jest --selectProjects unit functional --coverage", + "test:functional": "jest --selectProjects functional", + "test:functional:cov": "jest --selectProjects functional --coverage", + "test:functional:watch": "jest --selectProjects functional --watch", + "test:unit": "jest --selectProjects unit", + "test:unit:cov": "jest --selectProjects unit --coverage", + "test:unit:watch": "jest --selectProjects unit --watch", + "test:watch": "jest --selectProjects unit functional --watch" + }, + "lint-staged": { + "*.json": [ + "sort-json" + ], + "*.{js,jsx,ts,tsx}": [ + "npm run lint:fix", + "npm run format" + ], + "package.json": [ + "script/remove-exports.js" + ] + }, "dependencies": { "rxjs": "^7.8.1" }, - "description": "Akash API TypeScript client", "devDependencies": { "@semantic-release/commit-analyzer": "^12.0.0", "@semantic-release/github": "^10.0.3", @@ -24,43 +63,7 @@ "ts-proto": "^1.169.1", "typescript": "^5.4.2" }, - "keywords": [], - "license": "Apache-2.0", - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "npm run lint:fix", - "npm run format" - ], - "package.json": [ - "script/remove-exports.js" - ], - "*.json": [ - "sort-json" - ] - }, - "main": "dist/index.js", - "name": "@akashnetwork/akash-api", - "repository": { - "directory": "ts", - "type": "git", - "url": "https://github.com/akash-network/akash-api" - }, - "scripts": { - "build": "rimraf dist && tsc -p tsconfig.build.json && npm run format", - "format": "prettier --write './**/*.{js,jsx,ts,tsx,css,json}' --config ./.prettierrc --log-level silent", - "lint": "eslint src", - "lint:fix": "npm run lint -- --fix", - "postbuild": "script/generate-exports.js", - "test": "jest --selectProjects unit functional", - "test:cov": "jest --selectProjects unit functional --coverage", - "test:functional": "jest --selectProjects functional", - "test:functional:cov": "jest --selectProjects functional --coverage", - "test:functional:watch": "jest --selectProjects functional --watch", - "test:unit": "jest --selectProjects unit", - "test:unit:cov": "jest --selectProjects unit --coverage", - "test:unit:watch": "jest --selectProjects unit --watch", - "test:watch": "jest --selectProjects unit functional --watch" - }, - "types": "dist/index.d.ts", - "version": "0.0.0" + "peerDependencies": { + "@grpc/grpc-js": "^1.10.6" + } } diff --git a/ts/src/generated/akash/deployment/v1beta2/service.grpc-js.ts b/ts/src/generated/akash/deployment/v1beta2/service.grpc-js.ts new file mode 100644 index 00000000..94836e67 --- /dev/null +++ b/ts/src/generated/akash/deployment/v1beta2/service.grpc-js.ts @@ -0,0 +1,348 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import { + MsgCloseDeployment, + MsgCloseDeploymentResponse, + MsgCreateDeployment, + MsgCreateDeploymentResponse, + MsgDepositDeployment, + MsgDepositDeploymentResponse, + MsgUpdateDeployment, + MsgUpdateDeploymentResponse, +} from './deploymentmsg'; +import { + MsgCloseGroup, + MsgCloseGroupResponse, + MsgPauseGroup, + MsgPauseGroupResponse, + MsgStartGroup, + MsgStartGroupResponse, +} from './groupmsg'; + +export const protobufPackage = 'akash.deployment.v1beta2'; + +/** Msg defines the deployment Msg service. */ +export type MsgService = typeof MsgService; +export const MsgService = { + /** CreateDeployment defines a method to create new deployment given proper inputs. */ + createDeployment: { + path: '/akash.deployment.v1beta2.Msg/CreateDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateDeployment) => + Buffer.from(MsgCreateDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateDeployment.decode(value), + responseSerialize: (value: MsgCreateDeploymentResponse) => + Buffer.from(MsgCreateDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgCreateDeploymentResponse.decode(value), + }, + /** DepositDeployment deposits more funds into the deployment account */ + depositDeployment: { + path: '/akash.deployment.v1beta2.Msg/DepositDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgDepositDeployment) => + Buffer.from(MsgDepositDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgDepositDeployment.decode(value), + responseSerialize: (value: MsgDepositDeploymentResponse) => + Buffer.from(MsgDepositDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgDepositDeploymentResponse.decode(value), + }, + /** UpdateDeployment defines a method to update a deployment given proper inputs. */ + updateDeployment: { + path: '/akash.deployment.v1beta2.Msg/UpdateDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgUpdateDeployment) => + Buffer.from(MsgUpdateDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgUpdateDeployment.decode(value), + responseSerialize: (value: MsgUpdateDeploymentResponse) => + Buffer.from(MsgUpdateDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgUpdateDeploymentResponse.decode(value), + }, + /** CloseDeployment defines a method to close a deployment given proper inputs. */ + closeDeployment: { + path: '/akash.deployment.v1beta2.Msg/CloseDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseDeployment) => + Buffer.from(MsgCloseDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseDeployment.decode(value), + responseSerialize: (value: MsgCloseDeploymentResponse) => + Buffer.from(MsgCloseDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgCloseDeploymentResponse.decode(value), + }, + /** CloseGroup defines a method to close a group of a deployment given proper inputs. */ + closeGroup: { + path: '/akash.deployment.v1beta2.Msg/CloseGroup', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseGroup) => + Buffer.from(MsgCloseGroup.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseGroup.decode(value), + responseSerialize: (value: MsgCloseGroupResponse) => + Buffer.from(MsgCloseGroupResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseGroupResponse.decode(value), + }, + /** PauseGroup defines a method to close a group of a deployment given proper inputs. */ + pauseGroup: { + path: '/akash.deployment.v1beta2.Msg/PauseGroup', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgPauseGroup) => + Buffer.from(MsgPauseGroup.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgPauseGroup.decode(value), + responseSerialize: (value: MsgPauseGroupResponse) => + Buffer.from(MsgPauseGroupResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgPauseGroupResponse.decode(value), + }, + /** StartGroup defines a method to close a group of a deployment given proper inputs. */ + startGroup: { + path: '/akash.deployment.v1beta2.Msg/StartGroup', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgStartGroup) => + Buffer.from(MsgStartGroup.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgStartGroup.decode(value), + responseSerialize: (value: MsgStartGroupResponse) => + Buffer.from(MsgStartGroupResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgStartGroupResponse.decode(value), + }, +} as const; + +export interface MsgServer extends UntypedServiceImplementation { + /** CreateDeployment defines a method to create new deployment given proper inputs. */ + createDeployment: handleUnaryCall< + MsgCreateDeployment, + MsgCreateDeploymentResponse + >; + /** DepositDeployment deposits more funds into the deployment account */ + depositDeployment: handleUnaryCall< + MsgDepositDeployment, + MsgDepositDeploymentResponse + >; + /** UpdateDeployment defines a method to update a deployment given proper inputs. */ + updateDeployment: handleUnaryCall< + MsgUpdateDeployment, + MsgUpdateDeploymentResponse + >; + /** CloseDeployment defines a method to close a deployment given proper inputs. */ + closeDeployment: handleUnaryCall< + MsgCloseDeployment, + MsgCloseDeploymentResponse + >; + /** CloseGroup defines a method to close a group of a deployment given proper inputs. */ + closeGroup: handleUnaryCall; + /** PauseGroup defines a method to close a group of a deployment given proper inputs. */ + pauseGroup: handleUnaryCall; + /** StartGroup defines a method to close a group of a deployment given proper inputs. */ + startGroup: handleUnaryCall; +} + +export interface MsgClient extends Client { + /** CreateDeployment defines a method to create new deployment given proper inputs. */ + createDeployment( + request: MsgCreateDeployment, + callback: ( + error: ServiceError | null, + response: MsgCreateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + createDeployment( + request: MsgCreateDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + createDeployment( + request: MsgCreateDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** DepositDeployment deposits more funds into the deployment account */ + depositDeployment( + request: MsgDepositDeployment, + callback: ( + error: ServiceError | null, + response: MsgDepositDeploymentResponse, + ) => void, + ): ClientUnaryCall; + depositDeployment( + request: MsgDepositDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgDepositDeploymentResponse, + ) => void, + ): ClientUnaryCall; + depositDeployment( + request: MsgDepositDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgDepositDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** UpdateDeployment defines a method to update a deployment given proper inputs. */ + updateDeployment( + request: MsgUpdateDeployment, + callback: ( + error: ServiceError | null, + response: MsgUpdateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + updateDeployment( + request: MsgUpdateDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgUpdateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + updateDeployment( + request: MsgUpdateDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgUpdateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** CloseDeployment defines a method to close a deployment given proper inputs. */ + closeDeployment( + request: MsgCloseDeployment, + callback: ( + error: ServiceError | null, + response: MsgCloseDeploymentResponse, + ) => void, + ): ClientUnaryCall; + closeDeployment( + request: MsgCloseDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseDeploymentResponse, + ) => void, + ): ClientUnaryCall; + closeDeployment( + request: MsgCloseDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** CloseGroup defines a method to close a group of a deployment given proper inputs. */ + closeGroup( + request: MsgCloseGroup, + callback: ( + error: ServiceError | null, + response: MsgCloseGroupResponse, + ) => void, + ): ClientUnaryCall; + closeGroup( + request: MsgCloseGroup, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseGroupResponse, + ) => void, + ): ClientUnaryCall; + closeGroup( + request: MsgCloseGroup, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseGroupResponse, + ) => void, + ): ClientUnaryCall; + /** PauseGroup defines a method to close a group of a deployment given proper inputs. */ + pauseGroup( + request: MsgPauseGroup, + callback: ( + error: ServiceError | null, + response: MsgPauseGroupResponse, + ) => void, + ): ClientUnaryCall; + pauseGroup( + request: MsgPauseGroup, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgPauseGroupResponse, + ) => void, + ): ClientUnaryCall; + pauseGroup( + request: MsgPauseGroup, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgPauseGroupResponse, + ) => void, + ): ClientUnaryCall; + /** StartGroup defines a method to close a group of a deployment given proper inputs. */ + startGroup( + request: MsgStartGroup, + callback: ( + error: ServiceError | null, + response: MsgStartGroupResponse, + ) => void, + ): ClientUnaryCall; + startGroup( + request: MsgStartGroup, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgStartGroupResponse, + ) => void, + ): ClientUnaryCall; + startGroup( + request: MsgStartGroup, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgStartGroupResponse, + ) => void, + ): ClientUnaryCall; +} + +export const MsgClient = makeGenericClientConstructor( + MsgService, + 'akash.deployment.v1beta2.Msg', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): MsgClient; + service: typeof MsgService; + serviceName: string; +}; diff --git a/ts/src/generated/akash/deployment/v1beta3/service.grpc-js.ts b/ts/src/generated/akash/deployment/v1beta3/service.grpc-js.ts new file mode 100644 index 00000000..b802a6b0 --- /dev/null +++ b/ts/src/generated/akash/deployment/v1beta3/service.grpc-js.ts @@ -0,0 +1,348 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import { + MsgCloseDeployment, + MsgCloseDeploymentResponse, + MsgCreateDeployment, + MsgCreateDeploymentResponse, + MsgDepositDeployment, + MsgDepositDeploymentResponse, + MsgUpdateDeployment, + MsgUpdateDeploymentResponse, +} from './deploymentmsg'; +import { + MsgCloseGroup, + MsgCloseGroupResponse, + MsgPauseGroup, + MsgPauseGroupResponse, + MsgStartGroup, + MsgStartGroupResponse, +} from './groupmsg'; + +export const protobufPackage = 'akash.deployment.v1beta3'; + +/** Msg defines the deployment Msg service. */ +export type MsgService = typeof MsgService; +export const MsgService = { + /** CreateDeployment defines a method to create new deployment given proper inputs. */ + createDeployment: { + path: '/akash.deployment.v1beta3.Msg/CreateDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateDeployment) => + Buffer.from(MsgCreateDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateDeployment.decode(value), + responseSerialize: (value: MsgCreateDeploymentResponse) => + Buffer.from(MsgCreateDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgCreateDeploymentResponse.decode(value), + }, + /** DepositDeployment deposits more funds into the deployment account */ + depositDeployment: { + path: '/akash.deployment.v1beta3.Msg/DepositDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgDepositDeployment) => + Buffer.from(MsgDepositDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgDepositDeployment.decode(value), + responseSerialize: (value: MsgDepositDeploymentResponse) => + Buffer.from(MsgDepositDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgDepositDeploymentResponse.decode(value), + }, + /** UpdateDeployment defines a method to update a deployment given proper inputs. */ + updateDeployment: { + path: '/akash.deployment.v1beta3.Msg/UpdateDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgUpdateDeployment) => + Buffer.from(MsgUpdateDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgUpdateDeployment.decode(value), + responseSerialize: (value: MsgUpdateDeploymentResponse) => + Buffer.from(MsgUpdateDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgUpdateDeploymentResponse.decode(value), + }, + /** CloseDeployment defines a method to close a deployment given proper inputs. */ + closeDeployment: { + path: '/akash.deployment.v1beta3.Msg/CloseDeployment', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseDeployment) => + Buffer.from(MsgCloseDeployment.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseDeployment.decode(value), + responseSerialize: (value: MsgCloseDeploymentResponse) => + Buffer.from(MsgCloseDeploymentResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgCloseDeploymentResponse.decode(value), + }, + /** CloseGroup defines a method to close a group of a deployment given proper inputs. */ + closeGroup: { + path: '/akash.deployment.v1beta3.Msg/CloseGroup', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseGroup) => + Buffer.from(MsgCloseGroup.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseGroup.decode(value), + responseSerialize: (value: MsgCloseGroupResponse) => + Buffer.from(MsgCloseGroupResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseGroupResponse.decode(value), + }, + /** PauseGroup defines a method to close a group of a deployment given proper inputs. */ + pauseGroup: { + path: '/akash.deployment.v1beta3.Msg/PauseGroup', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgPauseGroup) => + Buffer.from(MsgPauseGroup.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgPauseGroup.decode(value), + responseSerialize: (value: MsgPauseGroupResponse) => + Buffer.from(MsgPauseGroupResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgPauseGroupResponse.decode(value), + }, + /** StartGroup defines a method to close a group of a deployment given proper inputs. */ + startGroup: { + path: '/akash.deployment.v1beta3.Msg/StartGroup', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgStartGroup) => + Buffer.from(MsgStartGroup.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgStartGroup.decode(value), + responseSerialize: (value: MsgStartGroupResponse) => + Buffer.from(MsgStartGroupResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgStartGroupResponse.decode(value), + }, +} as const; + +export interface MsgServer extends UntypedServiceImplementation { + /** CreateDeployment defines a method to create new deployment given proper inputs. */ + createDeployment: handleUnaryCall< + MsgCreateDeployment, + MsgCreateDeploymentResponse + >; + /** DepositDeployment deposits more funds into the deployment account */ + depositDeployment: handleUnaryCall< + MsgDepositDeployment, + MsgDepositDeploymentResponse + >; + /** UpdateDeployment defines a method to update a deployment given proper inputs. */ + updateDeployment: handleUnaryCall< + MsgUpdateDeployment, + MsgUpdateDeploymentResponse + >; + /** CloseDeployment defines a method to close a deployment given proper inputs. */ + closeDeployment: handleUnaryCall< + MsgCloseDeployment, + MsgCloseDeploymentResponse + >; + /** CloseGroup defines a method to close a group of a deployment given proper inputs. */ + closeGroup: handleUnaryCall; + /** PauseGroup defines a method to close a group of a deployment given proper inputs. */ + pauseGroup: handleUnaryCall; + /** StartGroup defines a method to close a group of a deployment given proper inputs. */ + startGroup: handleUnaryCall; +} + +export interface MsgClient extends Client { + /** CreateDeployment defines a method to create new deployment given proper inputs. */ + createDeployment( + request: MsgCreateDeployment, + callback: ( + error: ServiceError | null, + response: MsgCreateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + createDeployment( + request: MsgCreateDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + createDeployment( + request: MsgCreateDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** DepositDeployment deposits more funds into the deployment account */ + depositDeployment( + request: MsgDepositDeployment, + callback: ( + error: ServiceError | null, + response: MsgDepositDeploymentResponse, + ) => void, + ): ClientUnaryCall; + depositDeployment( + request: MsgDepositDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgDepositDeploymentResponse, + ) => void, + ): ClientUnaryCall; + depositDeployment( + request: MsgDepositDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgDepositDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** UpdateDeployment defines a method to update a deployment given proper inputs. */ + updateDeployment( + request: MsgUpdateDeployment, + callback: ( + error: ServiceError | null, + response: MsgUpdateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + updateDeployment( + request: MsgUpdateDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgUpdateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + updateDeployment( + request: MsgUpdateDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgUpdateDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** CloseDeployment defines a method to close a deployment given proper inputs. */ + closeDeployment( + request: MsgCloseDeployment, + callback: ( + error: ServiceError | null, + response: MsgCloseDeploymentResponse, + ) => void, + ): ClientUnaryCall; + closeDeployment( + request: MsgCloseDeployment, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseDeploymentResponse, + ) => void, + ): ClientUnaryCall; + closeDeployment( + request: MsgCloseDeployment, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseDeploymentResponse, + ) => void, + ): ClientUnaryCall; + /** CloseGroup defines a method to close a group of a deployment given proper inputs. */ + closeGroup( + request: MsgCloseGroup, + callback: ( + error: ServiceError | null, + response: MsgCloseGroupResponse, + ) => void, + ): ClientUnaryCall; + closeGroup( + request: MsgCloseGroup, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseGroupResponse, + ) => void, + ): ClientUnaryCall; + closeGroup( + request: MsgCloseGroup, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseGroupResponse, + ) => void, + ): ClientUnaryCall; + /** PauseGroup defines a method to close a group of a deployment given proper inputs. */ + pauseGroup( + request: MsgPauseGroup, + callback: ( + error: ServiceError | null, + response: MsgPauseGroupResponse, + ) => void, + ): ClientUnaryCall; + pauseGroup( + request: MsgPauseGroup, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgPauseGroupResponse, + ) => void, + ): ClientUnaryCall; + pauseGroup( + request: MsgPauseGroup, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgPauseGroupResponse, + ) => void, + ): ClientUnaryCall; + /** StartGroup defines a method to close a group of a deployment given proper inputs. */ + startGroup( + request: MsgStartGroup, + callback: ( + error: ServiceError | null, + response: MsgStartGroupResponse, + ) => void, + ): ClientUnaryCall; + startGroup( + request: MsgStartGroup, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgStartGroupResponse, + ) => void, + ): ClientUnaryCall; + startGroup( + request: MsgStartGroup, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgStartGroupResponse, + ) => void, + ): ClientUnaryCall; +} + +export const MsgClient = makeGenericClientConstructor( + MsgService, + 'akash.deployment.v1beta3.Msg', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): MsgClient; + service: typeof MsgService; + serviceName: string; +}; diff --git a/ts/src/generated/akash/inventory/v1/service.grpc-js.ts b/ts/src/generated/akash/inventory/v1/service.grpc-js.ts new file mode 100644 index 00000000..a653b731 --- /dev/null +++ b/ts/src/generated/akash/inventory/v1/service.grpc-js.ts @@ -0,0 +1,226 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + ClientReadableStream, + handleServerStreamingCall, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import { Empty } from '../../../google/protobuf/empty'; +import { Cluster } from './cluster'; +import { Node } from './node'; + +export const protobufPackage = 'akash.inventory.v1'; + +/** NodeRPC defines the RPC server of node */ +export type NodeRPCService = typeof NodeRPCService; +export const NodeRPCService = { + /** + * QueryNode defines a method to query hardware state of the node + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + queryNode: { + path: '/akash.inventory.v1.NodeRPC/QueryNode', + requestStream: false, + responseStream: false, + requestSerialize: (value: Empty) => + Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: Node) => + Buffer.from(Node.encode(value).finish()), + responseDeserialize: (value: Buffer) => Node.decode(value), + }, + /** + * StreamNode defines a method to stream hardware state of the node + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamNode: { + path: '/akash.inventory.v1.NodeRPC/StreamNode', + requestStream: false, + responseStream: true, + requestSerialize: (value: Empty) => + Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: Node) => + Buffer.from(Node.encode(value).finish()), + responseDeserialize: (value: Buffer) => Node.decode(value), + }, +} as const; + +export interface NodeRPCServer extends UntypedServiceImplementation { + /** + * QueryNode defines a method to query hardware state of the node + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + queryNode: handleUnaryCall; + /** + * StreamNode defines a method to stream hardware state of the node + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamNode: handleServerStreamingCall; +} + +export interface NodeRPCClient extends Client { + /** + * QueryNode defines a method to query hardware state of the node + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + queryNode( + request: Empty, + callback: (error: ServiceError | null, response: Node) => void, + ): ClientUnaryCall; + queryNode( + request: Empty, + metadata: Metadata, + callback: (error: ServiceError | null, response: Node) => void, + ): ClientUnaryCall; + queryNode( + request: Empty, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Node) => void, + ): ClientUnaryCall; + /** + * StreamNode defines a method to stream hardware state of the node + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamNode( + request: Empty, + options?: Partial, + ): ClientReadableStream; + streamNode( + request: Empty, + metadata?: Metadata, + options?: Partial, + ): ClientReadableStream; +} + +export const NodeRPCClient = makeGenericClientConstructor( + NodeRPCService, + 'akash.inventory.v1.NodeRPC', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): NodeRPCClient; + service: typeof NodeRPCService; + serviceName: string; +}; + +/** ClusterRPC defines the RPC server of cluster */ +export type ClusterRPCService = typeof ClusterRPCService; +export const ClusterRPCService = { + /** + * QueryCluster defines a method to query hardware state of the cluster + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + queryCluster: { + path: '/akash.inventory.v1.ClusterRPC/QueryCluster', + requestStream: false, + responseStream: false, + requestSerialize: (value: Empty) => + Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: Cluster) => + Buffer.from(Cluster.encode(value).finish()), + responseDeserialize: (value: Buffer) => Cluster.decode(value), + }, + /** + * StreamCluster defines a method to stream hardware state of the cluster + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamCluster: { + path: '/akash.inventory.v1.ClusterRPC/StreamCluster', + requestStream: false, + responseStream: true, + requestSerialize: (value: Empty) => + Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: Cluster) => + Buffer.from(Cluster.encode(value).finish()), + responseDeserialize: (value: Buffer) => Cluster.decode(value), + }, +} as const; + +export interface ClusterRPCServer extends UntypedServiceImplementation { + /** + * QueryCluster defines a method to query hardware state of the cluster + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + queryCluster: handleUnaryCall; + /** + * StreamCluster defines a method to stream hardware state of the cluster + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamCluster: handleServerStreamingCall; +} + +export interface ClusterRPCClient extends Client { + /** + * QueryCluster defines a method to query hardware state of the cluster + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + queryCluster( + request: Empty, + callback: (error: ServiceError | null, response: Cluster) => void, + ): ClientUnaryCall; + queryCluster( + request: Empty, + metadata: Metadata, + callback: (error: ServiceError | null, response: Cluster) => void, + ): ClientUnaryCall; + queryCluster( + request: Empty, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Cluster) => void, + ): ClientUnaryCall; + /** + * StreamCluster defines a method to stream hardware state of the cluster + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamCluster( + request: Empty, + options?: Partial, + ): ClientReadableStream; + streamCluster( + request: Empty, + metadata?: Metadata, + options?: Partial, + ): ClientReadableStream; +} + +export const ClusterRPCClient = makeGenericClientConstructor( + ClusterRPCService, + 'akash.inventory.v1.ClusterRPC', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): ClusterRPCClient; + service: typeof ClusterRPCService; + serviceName: string; +}; diff --git a/ts/src/generated/akash/manifest/v2beta1/service.grpc-js.ts b/ts/src/generated/akash/manifest/v2beta1/service.grpc-js.ts new file mode 100644 index 00000000..41bfa008 --- /dev/null +++ b/ts/src/generated/akash/manifest/v2beta1/service.grpc-js.ts @@ -0,0 +1,463 @@ +/* eslint-disable */ +import Long from 'long'; +import _m0 from 'protobufjs/minimal'; +import { messageTypeRegistry } from '../../../typeRegistry'; +import { ResourceUnits } from '../../base/v1beta2/resourceunits'; +import { ServiceExpose } from './serviceexpose'; + +export const protobufPackage = 'akash.manifest.v2beta1'; + +/** StorageParams */ +export interface StorageParams { + $type: 'akash.manifest.v2beta1.StorageParams'; + name: string; + mount: string; + readOnly: boolean; +} + +/** ServiceParams */ +export interface ServiceParams { + $type: 'akash.manifest.v2beta1.ServiceParams'; + storage: StorageParams[]; +} + +/** Service stores name, image, args, env, unit, count and expose list of service */ +export interface Service { + $type: 'akash.manifest.v2beta1.Service'; + name: string; + image: string; + command: string[]; + args: string[]; + env: string[]; + resources: ResourceUnits | undefined; + count: number; + expose: ServiceExpose[]; + params: ServiceParams | undefined; +} + +function createBaseStorageParams(): StorageParams { + return { + $type: 'akash.manifest.v2beta1.StorageParams', + name: '', + mount: '', + readOnly: false, + }; +} + +export const StorageParams = { + $type: 'akash.manifest.v2beta1.StorageParams' as const, + + encode( + message: StorageParams, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.mount !== '') { + writer.uint32(18).string(message.mount); + } + if (message.readOnly !== false) { + writer.uint32(24).bool(message.readOnly); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): StorageParams { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStorageParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.mount = reader.string(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.readOnly = reader.bool(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): StorageParams { + return { + $type: StorageParams.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + mount: isSet(object.mount) ? globalThis.String(object.mount) : '', + readOnly: isSet(object.readOnly) + ? globalThis.Boolean(object.readOnly) + : false, + }; + }, + + toJSON(message: StorageParams): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.mount !== '') { + obj.mount = message.mount; + } + if (message.readOnly !== false) { + obj.readOnly = message.readOnly; + } + return obj; + }, + + create(base?: DeepPartial): StorageParams { + return StorageParams.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StorageParams { + const message = createBaseStorageParams(); + message.name = object.name ?? ''; + message.mount = object.mount ?? ''; + message.readOnly = object.readOnly ?? false; + return message; + }, +}; + +messageTypeRegistry.set(StorageParams.$type, StorageParams); + +function createBaseServiceParams(): ServiceParams { + return { $type: 'akash.manifest.v2beta1.ServiceParams', storage: [] }; +} + +export const ServiceParams = { + $type: 'akash.manifest.v2beta1.ServiceParams' as const, + + encode( + message: ServiceParams, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + for (const v of message.storage) { + StorageParams.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ServiceParams { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.storage.push(StorageParams.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceParams { + return { + $type: ServiceParams.$type, + storage: globalThis.Array.isArray(object?.storage) + ? object.storage.map((e: any) => StorageParams.fromJSON(e)) + : [], + }; + }, + + toJSON(message: ServiceParams): unknown { + const obj: any = {}; + if (message.storage?.length) { + obj.storage = message.storage.map((e) => StorageParams.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): ServiceParams { + return ServiceParams.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceParams { + const message = createBaseServiceParams(); + message.storage = + object.storage?.map((e) => StorageParams.fromPartial(e)) || []; + return message; + }, +}; + +messageTypeRegistry.set(ServiceParams.$type, ServiceParams); + +function createBaseService(): Service { + return { + $type: 'akash.manifest.v2beta1.Service', + name: '', + image: '', + command: [], + args: [], + env: [], + resources: undefined, + count: 0, + expose: [], + params: undefined, + }; +} + +export const Service = { + $type: 'akash.manifest.v2beta1.Service' as const, + + encode( + message: Service, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.image !== '') { + writer.uint32(18).string(message.image); + } + for (const v of message.command) { + writer.uint32(26).string(v!); + } + for (const v of message.args) { + writer.uint32(34).string(v!); + } + for (const v of message.env) { + writer.uint32(42).string(v!); + } + if (message.resources !== undefined) { + ResourceUnits.encode( + message.resources, + writer.uint32(50).fork(), + ).ldelim(); + } + if (message.count !== 0) { + writer.uint32(56).uint32(message.count); + } + for (const v of message.expose) { + ServiceExpose.encode(v!, writer.uint32(66).fork()).ldelim(); + } + if (message.params !== undefined) { + ServiceParams.encode(message.params, writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Service { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseService(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.image = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.command.push(reader.string()); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.args.push(reader.string()); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.env.push(reader.string()); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.resources = ResourceUnits.decode(reader, reader.uint32()); + continue; + case 7: + if (tag !== 56) { + break; + } + + message.count = reader.uint32(); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.expose.push(ServiceExpose.decode(reader, reader.uint32())); + continue; + case 9: + if (tag !== 74) { + break; + } + + message.params = ServiceParams.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Service { + return { + $type: Service.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + image: isSet(object.image) ? globalThis.String(object.image) : '', + command: globalThis.Array.isArray(object?.command) + ? object.command.map((e: any) => globalThis.String(e)) + : [], + args: globalThis.Array.isArray(object?.args) + ? object.args.map((e: any) => globalThis.String(e)) + : [], + env: globalThis.Array.isArray(object?.env) + ? object.env.map((e: any) => globalThis.String(e)) + : [], + resources: isSet(object.resources) + ? ResourceUnits.fromJSON(object.resources) + : undefined, + count: isSet(object.count) ? globalThis.Number(object.count) : 0, + expose: globalThis.Array.isArray(object?.expose) + ? object.expose.map((e: any) => ServiceExpose.fromJSON(e)) + : [], + params: isSet(object.params) + ? ServiceParams.fromJSON(object.params) + : undefined, + }; + }, + + toJSON(message: Service): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.image !== '') { + obj.image = message.image; + } + if (message.command?.length) { + obj.command = message.command; + } + if (message.args?.length) { + obj.args = message.args; + } + if (message.env?.length) { + obj.env = message.env; + } + if (message.resources !== undefined) { + obj.resources = ResourceUnits.toJSON(message.resources); + } + if (message.count !== 0) { + obj.count = Math.round(message.count); + } + if (message.expose?.length) { + obj.expose = message.expose.map((e) => ServiceExpose.toJSON(e)); + } + if (message.params !== undefined) { + obj.params = ServiceParams.toJSON(message.params); + } + return obj; + }, + + create(base?: DeepPartial): Service { + return Service.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Service { + const message = createBaseService(); + message.name = object.name ?? ''; + message.image = object.image ?? ''; + message.command = object.command?.map((e) => e) || []; + message.args = object.args?.map((e) => e) || []; + message.env = object.env?.map((e) => e) || []; + message.resources = + object.resources !== undefined && object.resources !== null + ? ResourceUnits.fromPartial(object.resources) + : undefined; + message.count = object.count ?? 0; + message.expose = + object.expose?.map((e) => ServiceExpose.fromPartial(e)) || []; + message.params = + object.params !== undefined && object.params !== null + ? ServiceParams.fromPartial(object.params) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(Service.$type, Service); + +type Builtin = + | Date + | Function + | Uint8Array + | string + | number + | boolean + | undefined; + +export type DeepPartial = T extends Builtin + ? T + : T extends Long + ? string | number | Long + : T extends globalThis.Array + ? globalThis.Array> + : T extends ReadonlyArray + ? ReadonlyArray> + : T extends {} + ? { [K in Exclude]?: DeepPartial } + : Partial; + +if (_m0.util.Long !== Long) { + _m0.util.Long = Long as any; + _m0.configure(); +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/ts/src/generated/akash/manifest/v2beta2/service.grpc-js.ts b/ts/src/generated/akash/manifest/v2beta2/service.grpc-js.ts new file mode 100644 index 00000000..ed8945af --- /dev/null +++ b/ts/src/generated/akash/manifest/v2beta2/service.grpc-js.ts @@ -0,0 +1,625 @@ +/* eslint-disable */ +import Long from 'long'; +import _m0 from 'protobufjs/minimal'; +import { messageTypeRegistry } from '../../../typeRegistry'; +import { Resources } from '../../base/v1beta3/resources'; +import { ServiceExpose } from './serviceexpose'; + +export const protobufPackage = 'akash.manifest.v2beta2'; + +/** StorageParams */ +export interface StorageParams { + $type: 'akash.manifest.v2beta2.StorageParams'; + name: string; + mount: string; + readOnly: boolean; +} + +/** ServiceParams */ +export interface ServiceParams { + $type: 'akash.manifest.v2beta2.ServiceParams'; + storage: StorageParams[]; +} + +/** Credentials to fetch image from registry */ +export interface ServiceImageCredentials { + $type: 'akash.manifest.v2beta2.ServiceImageCredentials'; + host: string; + email: string; + username: string; + password: string; +} + +/** Service stores name, image, args, env, unit, count and expose list of service */ +export interface Service { + $type: 'akash.manifest.v2beta2.Service'; + name: string; + image: string; + command: string[]; + args: string[]; + env: string[]; + resources: Resources | undefined; + count: number; + expose: ServiceExpose[]; + params: ServiceParams | undefined; + credentials: ServiceImageCredentials | undefined; +} + +function createBaseStorageParams(): StorageParams { + return { + $type: 'akash.manifest.v2beta2.StorageParams', + name: '', + mount: '', + readOnly: false, + }; +} + +export const StorageParams = { + $type: 'akash.manifest.v2beta2.StorageParams' as const, + + encode( + message: StorageParams, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.mount !== '') { + writer.uint32(18).string(message.mount); + } + if (message.readOnly !== false) { + writer.uint32(24).bool(message.readOnly); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): StorageParams { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStorageParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.mount = reader.string(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.readOnly = reader.bool(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): StorageParams { + return { + $type: StorageParams.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + mount: isSet(object.mount) ? globalThis.String(object.mount) : '', + readOnly: isSet(object.readOnly) + ? globalThis.Boolean(object.readOnly) + : false, + }; + }, + + toJSON(message: StorageParams): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.mount !== '') { + obj.mount = message.mount; + } + if (message.readOnly !== false) { + obj.readOnly = message.readOnly; + } + return obj; + }, + + create(base?: DeepPartial): StorageParams { + return StorageParams.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StorageParams { + const message = createBaseStorageParams(); + message.name = object.name ?? ''; + message.mount = object.mount ?? ''; + message.readOnly = object.readOnly ?? false; + return message; + }, +}; + +messageTypeRegistry.set(StorageParams.$type, StorageParams); + +function createBaseServiceParams(): ServiceParams { + return { $type: 'akash.manifest.v2beta2.ServiceParams', storage: [] }; +} + +export const ServiceParams = { + $type: 'akash.manifest.v2beta2.ServiceParams' as const, + + encode( + message: ServiceParams, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + for (const v of message.storage) { + StorageParams.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ServiceParams { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.storage.push(StorageParams.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceParams { + return { + $type: ServiceParams.$type, + storage: globalThis.Array.isArray(object?.storage) + ? object.storage.map((e: any) => StorageParams.fromJSON(e)) + : [], + }; + }, + + toJSON(message: ServiceParams): unknown { + const obj: any = {}; + if (message.storage?.length) { + obj.storage = message.storage.map((e) => StorageParams.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): ServiceParams { + return ServiceParams.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceParams { + const message = createBaseServiceParams(); + message.storage = + object.storage?.map((e) => StorageParams.fromPartial(e)) || []; + return message; + }, +}; + +messageTypeRegistry.set(ServiceParams.$type, ServiceParams); + +function createBaseServiceImageCredentials(): ServiceImageCredentials { + return { + $type: 'akash.manifest.v2beta2.ServiceImageCredentials', + host: '', + email: '', + username: '', + password: '', + }; +} + +export const ServiceImageCredentials = { + $type: 'akash.manifest.v2beta2.ServiceImageCredentials' as const, + + encode( + message: ServiceImageCredentials, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.host !== '') { + writer.uint32(10).string(message.host); + } + if (message.email !== '') { + writer.uint32(18).string(message.email); + } + if (message.username !== '') { + writer.uint32(26).string(message.username); + } + if (message.password !== '') { + writer.uint32(34).string(message.password); + } + return writer; + }, + + decode( + input: _m0.Reader | Uint8Array, + length?: number, + ): ServiceImageCredentials { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceImageCredentials(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.host = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.email = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.username = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.password = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceImageCredentials { + return { + $type: ServiceImageCredentials.$type, + host: isSet(object.host) ? globalThis.String(object.host) : '', + email: isSet(object.email) ? globalThis.String(object.email) : '', + username: isSet(object.username) + ? globalThis.String(object.username) + : '', + password: isSet(object.password) + ? globalThis.String(object.password) + : '', + }; + }, + + toJSON(message: ServiceImageCredentials): unknown { + const obj: any = {}; + if (message.host !== '') { + obj.host = message.host; + } + if (message.email !== '') { + obj.email = message.email; + } + if (message.username !== '') { + obj.username = message.username; + } + if (message.password !== '') { + obj.password = message.password; + } + return obj; + }, + + create(base?: DeepPartial): ServiceImageCredentials { + return ServiceImageCredentials.fromPartial(base ?? {}); + }, + fromPartial( + object: DeepPartial, + ): ServiceImageCredentials { + const message = createBaseServiceImageCredentials(); + message.host = object.host ?? ''; + message.email = object.email ?? ''; + message.username = object.username ?? ''; + message.password = object.password ?? ''; + return message; + }, +}; + +messageTypeRegistry.set(ServiceImageCredentials.$type, ServiceImageCredentials); + +function createBaseService(): Service { + return { + $type: 'akash.manifest.v2beta2.Service', + name: '', + image: '', + command: [], + args: [], + env: [], + resources: undefined, + count: 0, + expose: [], + params: undefined, + credentials: undefined, + }; +} + +export const Service = { + $type: 'akash.manifest.v2beta2.Service' as const, + + encode( + message: Service, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.image !== '') { + writer.uint32(18).string(message.image); + } + for (const v of message.command) { + writer.uint32(26).string(v!); + } + for (const v of message.args) { + writer.uint32(34).string(v!); + } + for (const v of message.env) { + writer.uint32(42).string(v!); + } + if (message.resources !== undefined) { + Resources.encode(message.resources, writer.uint32(50).fork()).ldelim(); + } + if (message.count !== 0) { + writer.uint32(56).uint32(message.count); + } + for (const v of message.expose) { + ServiceExpose.encode(v!, writer.uint32(66).fork()).ldelim(); + } + if (message.params !== undefined) { + ServiceParams.encode(message.params, writer.uint32(74).fork()).ldelim(); + } + if (message.credentials !== undefined) { + ServiceImageCredentials.encode( + message.credentials, + writer.uint32(82).fork(), + ).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Service { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseService(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.image = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.command.push(reader.string()); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.args.push(reader.string()); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.env.push(reader.string()); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.resources = Resources.decode(reader, reader.uint32()); + continue; + case 7: + if (tag !== 56) { + break; + } + + message.count = reader.uint32(); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.expose.push(ServiceExpose.decode(reader, reader.uint32())); + continue; + case 9: + if (tag !== 74) { + break; + } + + message.params = ServiceParams.decode(reader, reader.uint32()); + continue; + case 10: + if (tag !== 82) { + break; + } + + message.credentials = ServiceImageCredentials.decode( + reader, + reader.uint32(), + ); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Service { + return { + $type: Service.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + image: isSet(object.image) ? globalThis.String(object.image) : '', + command: globalThis.Array.isArray(object?.command) + ? object.command.map((e: any) => globalThis.String(e)) + : [], + args: globalThis.Array.isArray(object?.args) + ? object.args.map((e: any) => globalThis.String(e)) + : [], + env: globalThis.Array.isArray(object?.env) + ? object.env.map((e: any) => globalThis.String(e)) + : [], + resources: isSet(object.resources) + ? Resources.fromJSON(object.resources) + : undefined, + count: isSet(object.count) ? globalThis.Number(object.count) : 0, + expose: globalThis.Array.isArray(object?.expose) + ? object.expose.map((e: any) => ServiceExpose.fromJSON(e)) + : [], + params: isSet(object.params) + ? ServiceParams.fromJSON(object.params) + : undefined, + credentials: isSet(object.credentials) + ? ServiceImageCredentials.fromJSON(object.credentials) + : undefined, + }; + }, + + toJSON(message: Service): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.image !== '') { + obj.image = message.image; + } + if (message.command?.length) { + obj.command = message.command; + } + if (message.args?.length) { + obj.args = message.args; + } + if (message.env?.length) { + obj.env = message.env; + } + if (message.resources !== undefined) { + obj.resources = Resources.toJSON(message.resources); + } + if (message.count !== 0) { + obj.count = Math.round(message.count); + } + if (message.expose?.length) { + obj.expose = message.expose.map((e) => ServiceExpose.toJSON(e)); + } + if (message.params !== undefined) { + obj.params = ServiceParams.toJSON(message.params); + } + if (message.credentials !== undefined) { + obj.credentials = ServiceImageCredentials.toJSON(message.credentials); + } + return obj; + }, + + create(base?: DeepPartial): Service { + return Service.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Service { + const message = createBaseService(); + message.name = object.name ?? ''; + message.image = object.image ?? ''; + message.command = object.command?.map((e) => e) || []; + message.args = object.args?.map((e) => e) || []; + message.env = object.env?.map((e) => e) || []; + message.resources = + object.resources !== undefined && object.resources !== null + ? Resources.fromPartial(object.resources) + : undefined; + message.count = object.count ?? 0; + message.expose = + object.expose?.map((e) => ServiceExpose.fromPartial(e)) || []; + message.params = + object.params !== undefined && object.params !== null + ? ServiceParams.fromPartial(object.params) + : undefined; + message.credentials = + object.credentials !== undefined && object.credentials !== null + ? ServiceImageCredentials.fromPartial(object.credentials) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(Service.$type, Service); + +type Builtin = + | Date + | Function + | Uint8Array + | string + | number + | boolean + | undefined; + +export type DeepPartial = T extends Builtin + ? T + : T extends Long + ? string | number | Long + : T extends globalThis.Array + ? globalThis.Array> + : T extends ReadonlyArray + ? ReadonlyArray> + : T extends {} + ? { [K in Exclude]?: DeepPartial } + : Partial; + +if (_m0.util.Long !== Long) { + _m0.util.Long = Long as any; + _m0.configure(); +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/ts/src/generated/akash/market/v1beta2/service.grpc-js.ts b/ts/src/generated/akash/market/v1beta2/service.grpc-js.ts new file mode 100644 index 00000000..a709b4d8 --- /dev/null +++ b/ts/src/generated/akash/market/v1beta2/service.grpc-js.ts @@ -0,0 +1,252 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import { + MsgCloseBid, + MsgCloseBidResponse, + MsgCreateBid, + MsgCreateBidResponse, +} from './bid'; +import { + MsgCloseLease, + MsgCloseLeaseResponse, + MsgCreateLease, + MsgCreateLeaseResponse, + MsgWithdrawLease, + MsgWithdrawLeaseResponse, +} from './lease'; + +export const protobufPackage = 'akash.market.v1beta2'; + +/** Msg defines the market Msg service */ +export type MsgService = typeof MsgService; +export const MsgService = { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid: { + path: '/akash.market.v1beta2.Msg/CreateBid', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateBid) => + Buffer.from(MsgCreateBid.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateBid.decode(value), + responseSerialize: (value: MsgCreateBidResponse) => + Buffer.from(MsgCreateBidResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCreateBidResponse.decode(value), + }, + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid: { + path: '/akash.market.v1beta2.Msg/CloseBid', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseBid) => + Buffer.from(MsgCloseBid.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseBid.decode(value), + responseSerialize: (value: MsgCloseBidResponse) => + Buffer.from(MsgCloseBidResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseBidResponse.decode(value), + }, + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease: { + path: '/akash.market.v1beta2.Msg/WithdrawLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgWithdrawLease) => + Buffer.from(MsgWithdrawLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgWithdrawLease.decode(value), + responseSerialize: (value: MsgWithdrawLeaseResponse) => + Buffer.from(MsgWithdrawLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgWithdrawLeaseResponse.decode(value), + }, + /** CreateLease creates a new lease */ + createLease: { + path: '/akash.market.v1beta2.Msg/CreateLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateLease) => + Buffer.from(MsgCreateLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateLease.decode(value), + responseSerialize: (value: MsgCreateLeaseResponse) => + Buffer.from(MsgCreateLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgCreateLeaseResponse.decode(value), + }, + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease: { + path: '/akash.market.v1beta2.Msg/CloseLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseLease) => + Buffer.from(MsgCloseLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseLease.decode(value), + responseSerialize: (value: MsgCloseLeaseResponse) => + Buffer.from(MsgCloseLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseLeaseResponse.decode(value), + }, +} as const; + +export interface MsgServer extends UntypedServiceImplementation { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid: handleUnaryCall; + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid: handleUnaryCall; + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease: handleUnaryCall; + /** CreateLease creates a new lease */ + createLease: handleUnaryCall; + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease: handleUnaryCall; +} + +export interface MsgClient extends Client { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid( + request: MsgCreateBid, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + createBid( + request: MsgCreateBid, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + createBid( + request: MsgCreateBid, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid( + request: MsgCloseBid, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + closeBid( + request: MsgCloseBid, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + closeBid( + request: MsgCloseBid, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease( + request: MsgWithdrawLease, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + withdrawLease( + request: MsgWithdrawLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + withdrawLease( + request: MsgWithdrawLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + /** CreateLease creates a new lease */ + createLease( + request: MsgCreateLease, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + createLease( + request: MsgCreateLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + createLease( + request: MsgCreateLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease( + request: MsgCloseLease, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; + closeLease( + request: MsgCloseLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; + closeLease( + request: MsgCloseLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; +} + +export const MsgClient = makeGenericClientConstructor( + MsgService, + 'akash.market.v1beta2.Msg', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): MsgClient; + service: typeof MsgService; + serviceName: string; +}; diff --git a/ts/src/generated/akash/market/v1beta3/service.grpc-js.ts b/ts/src/generated/akash/market/v1beta3/service.grpc-js.ts new file mode 100644 index 00000000..1e02c6ca --- /dev/null +++ b/ts/src/generated/akash/market/v1beta3/service.grpc-js.ts @@ -0,0 +1,252 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import { + MsgCloseBid, + MsgCloseBidResponse, + MsgCreateBid, + MsgCreateBidResponse, +} from './bid'; +import { + MsgCloseLease, + MsgCloseLeaseResponse, + MsgCreateLease, + MsgCreateLeaseResponse, + MsgWithdrawLease, + MsgWithdrawLeaseResponse, +} from './lease'; + +export const protobufPackage = 'akash.market.v1beta3'; + +/** Msg defines the market Msg service */ +export type MsgService = typeof MsgService; +export const MsgService = { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid: { + path: '/akash.market.v1beta3.Msg/CreateBid', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateBid) => + Buffer.from(MsgCreateBid.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateBid.decode(value), + responseSerialize: (value: MsgCreateBidResponse) => + Buffer.from(MsgCreateBidResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCreateBidResponse.decode(value), + }, + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid: { + path: '/akash.market.v1beta3.Msg/CloseBid', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseBid) => + Buffer.from(MsgCloseBid.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseBid.decode(value), + responseSerialize: (value: MsgCloseBidResponse) => + Buffer.from(MsgCloseBidResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseBidResponse.decode(value), + }, + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease: { + path: '/akash.market.v1beta3.Msg/WithdrawLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgWithdrawLease) => + Buffer.from(MsgWithdrawLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgWithdrawLease.decode(value), + responseSerialize: (value: MsgWithdrawLeaseResponse) => + Buffer.from(MsgWithdrawLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgWithdrawLeaseResponse.decode(value), + }, + /** CreateLease creates a new lease */ + createLease: { + path: '/akash.market.v1beta3.Msg/CreateLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateLease) => + Buffer.from(MsgCreateLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateLease.decode(value), + responseSerialize: (value: MsgCreateLeaseResponse) => + Buffer.from(MsgCreateLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgCreateLeaseResponse.decode(value), + }, + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease: { + path: '/akash.market.v1beta3.Msg/CloseLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseLease) => + Buffer.from(MsgCloseLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseLease.decode(value), + responseSerialize: (value: MsgCloseLeaseResponse) => + Buffer.from(MsgCloseLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseLeaseResponse.decode(value), + }, +} as const; + +export interface MsgServer extends UntypedServiceImplementation { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid: handleUnaryCall; + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid: handleUnaryCall; + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease: handleUnaryCall; + /** CreateLease creates a new lease */ + createLease: handleUnaryCall; + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease: handleUnaryCall; +} + +export interface MsgClient extends Client { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid( + request: MsgCreateBid, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + createBid( + request: MsgCreateBid, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + createBid( + request: MsgCreateBid, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid( + request: MsgCloseBid, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + closeBid( + request: MsgCloseBid, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + closeBid( + request: MsgCloseBid, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease( + request: MsgWithdrawLease, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + withdrawLease( + request: MsgWithdrawLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + withdrawLease( + request: MsgWithdrawLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + /** CreateLease creates a new lease */ + createLease( + request: MsgCreateLease, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + createLease( + request: MsgCreateLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + createLease( + request: MsgCreateLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease( + request: MsgCloseLease, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; + closeLease( + request: MsgCloseLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; + closeLease( + request: MsgCloseLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; +} + +export const MsgClient = makeGenericClientConstructor( + MsgService, + 'akash.market.v1beta3.Msg', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): MsgClient; + service: typeof MsgService; + serviceName: string; +}; diff --git a/ts/src/generated/akash/market/v1beta4/service.grpc-js.ts b/ts/src/generated/akash/market/v1beta4/service.grpc-js.ts new file mode 100644 index 00000000..8d2de997 --- /dev/null +++ b/ts/src/generated/akash/market/v1beta4/service.grpc-js.ts @@ -0,0 +1,252 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import { + MsgCloseBid, + MsgCloseBidResponse, + MsgCreateBid, + MsgCreateBidResponse, +} from './bid'; +import { + MsgCloseLease, + MsgCloseLeaseResponse, + MsgCreateLease, + MsgCreateLeaseResponse, + MsgWithdrawLease, + MsgWithdrawLeaseResponse, +} from './lease'; + +export const protobufPackage = 'akash.market.v1beta4'; + +/** Msg defines the market Msg service */ +export type MsgService = typeof MsgService; +export const MsgService = { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid: { + path: '/akash.market.v1beta4.Msg/CreateBid', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateBid) => + Buffer.from(MsgCreateBid.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateBid.decode(value), + responseSerialize: (value: MsgCreateBidResponse) => + Buffer.from(MsgCreateBidResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCreateBidResponse.decode(value), + }, + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid: { + path: '/akash.market.v1beta4.Msg/CloseBid', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseBid) => + Buffer.from(MsgCloseBid.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseBid.decode(value), + responseSerialize: (value: MsgCloseBidResponse) => + Buffer.from(MsgCloseBidResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseBidResponse.decode(value), + }, + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease: { + path: '/akash.market.v1beta4.Msg/WithdrawLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgWithdrawLease) => + Buffer.from(MsgWithdrawLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgWithdrawLease.decode(value), + responseSerialize: (value: MsgWithdrawLeaseResponse) => + Buffer.from(MsgWithdrawLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgWithdrawLeaseResponse.decode(value), + }, + /** CreateLease creates a new lease */ + createLease: { + path: '/akash.market.v1beta4.Msg/CreateLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCreateLease) => + Buffer.from(MsgCreateLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCreateLease.decode(value), + responseSerialize: (value: MsgCreateLeaseResponse) => + Buffer.from(MsgCreateLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => + MsgCreateLeaseResponse.decode(value), + }, + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease: { + path: '/akash.market.v1beta4.Msg/CloseLease', + requestStream: false, + responseStream: false, + requestSerialize: (value: MsgCloseLease) => + Buffer.from(MsgCloseLease.encode(value).finish()), + requestDeserialize: (value: Buffer) => MsgCloseLease.decode(value), + responseSerialize: (value: MsgCloseLeaseResponse) => + Buffer.from(MsgCloseLeaseResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => MsgCloseLeaseResponse.decode(value), + }, +} as const; + +export interface MsgServer extends UntypedServiceImplementation { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid: handleUnaryCall; + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid: handleUnaryCall; + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease: handleUnaryCall; + /** CreateLease creates a new lease */ + createLease: handleUnaryCall; + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease: handleUnaryCall; +} + +export interface MsgClient extends Client { + /** CreateBid defines a method to create a bid given proper inputs. */ + createBid( + request: MsgCreateBid, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + createBid( + request: MsgCreateBid, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + createBid( + request: MsgCreateBid, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateBidResponse, + ) => void, + ): ClientUnaryCall; + /** CloseBid defines a method to close a bid given proper inputs. */ + closeBid( + request: MsgCloseBid, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + closeBid( + request: MsgCloseBid, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + closeBid( + request: MsgCloseBid, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseBidResponse, + ) => void, + ): ClientUnaryCall; + /** WithdrawLease withdraws accrued funds from the lease payment */ + withdrawLease( + request: MsgWithdrawLease, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + withdrawLease( + request: MsgWithdrawLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + withdrawLease( + request: MsgWithdrawLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgWithdrawLeaseResponse, + ) => void, + ): ClientUnaryCall; + /** CreateLease creates a new lease */ + createLease( + request: MsgCreateLease, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + createLease( + request: MsgCreateLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + createLease( + request: MsgCreateLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCreateLeaseResponse, + ) => void, + ): ClientUnaryCall; + /** CloseLease defines a method to close an order given proper inputs. */ + closeLease( + request: MsgCloseLease, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; + closeLease( + request: MsgCloseLease, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; + closeLease( + request: MsgCloseLease, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: MsgCloseLeaseResponse, + ) => void, + ): ClientUnaryCall; +} + +export const MsgClient = makeGenericClientConstructor( + MsgService, + 'akash.market.v1beta4.Msg', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): MsgClient; + service: typeof MsgService; + serviceName: string; +}; diff --git a/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts b/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts new file mode 100644 index 00000000..9bee932c --- /dev/null +++ b/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts @@ -0,0 +1,1660 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + ClientReadableStream, + handleServerStreamingCall, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import Long from 'long'; +import _m0 from 'protobufjs/minimal'; +import { messageTypeRegistry } from '../../../../typeRegistry'; +import { Group } from '../../../manifest/v2beta2/group'; +import { LeaseID } from '../../../market/v1beta4/lease'; + +export const protobufPackage = 'akash.provider.lease.v1'; + +/** LeaseServiceStatus */ +export interface LeaseServiceStatus { + $type: 'akash.provider.lease.v1.LeaseServiceStatus'; + available: number; + total: number; + uris: string[]; + observedGeneration: Long; + replicas: number; + updatedReplicas: number; + readyReplicas: number; + availableReplicas: number; +} + +/** LeaseIPStatus */ +export interface LeaseIPStatus { + $type: 'akash.provider.lease.v1.LeaseIPStatus'; + port: number; + externalPort: number; + protocol: string; + ip: string; +} + +/** ForwarderPortStatus */ +export interface ForwarderPortStatus { + $type: 'akash.provider.lease.v1.ForwarderPortStatus'; + host: string; + port: number; + externalPort: number; + proto: string; + name: string; +} + +/** ServiceStatus */ +export interface ServiceStatus { + $type: 'akash.provider.lease.v1.ServiceStatus'; + name: string; + status: LeaseServiceStatus | undefined; + ports: ForwarderPortStatus[]; + ips: LeaseIPStatus[]; +} + +/** SendManifestRequest is request type for the SendManifest Providers RPC method */ +export interface SendManifestRequest { + $type: 'akash.provider.lease.v1.SendManifestRequest'; + leaseId: LeaseID | undefined; + manifest: Group[]; +} + +/** SendManifestResponse is response type for the SendManifest Providers RPC method */ +export interface SendManifestResponse { + $type: 'akash.provider.lease.v1.SendManifestResponse'; +} + +/** ServiceLogsRequest */ +export interface ServiceLogsRequest { + $type: 'akash.provider.lease.v1.ServiceLogsRequest'; + leaseId: LeaseID | undefined; + services: string[]; +} + +/** ServiceLogs */ +export interface ServiceLogs { + $type: 'akash.provider.lease.v1.ServiceLogs'; + name: string; + logs: Uint8Array; +} + +/** ServiceLogsResponse */ +export interface ServiceLogsResponse { + $type: 'akash.provider.lease.v1.ServiceLogsResponse'; + services: ServiceLogs[]; +} + +/** ShellRequest */ +export interface ShellRequest { + $type: 'akash.provider.lease.v1.ShellRequest'; + leaseId: LeaseID | undefined; +} + +/** ServiceStatusRequest */ +export interface ServiceStatusRequest { + $type: 'akash.provider.lease.v1.ServiceStatusRequest'; + leaseId: LeaseID | undefined; + services: string[]; +} + +/** ServiceStatusResponse */ +export interface ServiceStatusResponse { + $type: 'akash.provider.lease.v1.ServiceStatusResponse'; + services: ServiceStatus[]; +} + +function createBaseLeaseServiceStatus(): LeaseServiceStatus { + return { + $type: 'akash.provider.lease.v1.LeaseServiceStatus', + available: 0, + total: 0, + uris: [], + observedGeneration: Long.ZERO, + replicas: 0, + updatedReplicas: 0, + readyReplicas: 0, + availableReplicas: 0, + }; +} + +export const LeaseServiceStatus = { + $type: 'akash.provider.lease.v1.LeaseServiceStatus' as const, + + encode( + message: LeaseServiceStatus, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.available !== 0) { + writer.uint32(8).int32(message.available); + } + if (message.total !== 0) { + writer.uint32(16).int32(message.total); + } + for (const v of message.uris) { + writer.uint32(26).string(v!); + } + if (!message.observedGeneration.equals(Long.ZERO)) { + writer.uint32(32).int64(message.observedGeneration); + } + if (message.replicas !== 0) { + writer.uint32(40).int32(message.replicas); + } + if (message.updatedReplicas !== 0) { + writer.uint32(48).int32(message.updatedReplicas); + } + if (message.readyReplicas !== 0) { + writer.uint32(56).int32(message.readyReplicas); + } + if (message.availableReplicas !== 0) { + writer.uint32(64).int32(message.availableReplicas); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): LeaseServiceStatus { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLeaseServiceStatus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 8) { + break; + } + + message.available = reader.int32(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.total = reader.int32(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.uris.push(reader.string()); + continue; + case 4: + if (tag !== 32) { + break; + } + + message.observedGeneration = reader.int64() as Long; + continue; + case 5: + if (tag !== 40) { + break; + } + + message.replicas = reader.int32(); + continue; + case 6: + if (tag !== 48) { + break; + } + + message.updatedReplicas = reader.int32(); + continue; + case 7: + if (tag !== 56) { + break; + } + + message.readyReplicas = reader.int32(); + continue; + case 8: + if (tag !== 64) { + break; + } + + message.availableReplicas = reader.int32(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): LeaseServiceStatus { + return { + $type: LeaseServiceStatus.$type, + available: isSet(object.available) + ? globalThis.Number(object.available) + : 0, + total: isSet(object.total) ? globalThis.Number(object.total) : 0, + uris: globalThis.Array.isArray(object?.uris) + ? object.uris.map((e: any) => globalThis.String(e)) + : [], + observedGeneration: isSet(object.observedGeneration) + ? Long.fromValue(object.observedGeneration) + : Long.ZERO, + replicas: isSet(object.replicas) ? globalThis.Number(object.replicas) : 0, + updatedReplicas: isSet(object.updatedReplicas) + ? globalThis.Number(object.updatedReplicas) + : 0, + readyReplicas: isSet(object.readyReplicas) + ? globalThis.Number(object.readyReplicas) + : 0, + availableReplicas: isSet(object.availableReplicas) + ? globalThis.Number(object.availableReplicas) + : 0, + }; + }, + + toJSON(message: LeaseServiceStatus): unknown { + const obj: any = {}; + if (message.available !== 0) { + obj.available = Math.round(message.available); + } + if (message.total !== 0) { + obj.total = Math.round(message.total); + } + if (message.uris?.length) { + obj.uris = message.uris; + } + if (!message.observedGeneration.equals(Long.ZERO)) { + obj.observedGeneration = ( + message.observedGeneration || Long.ZERO + ).toString(); + } + if (message.replicas !== 0) { + obj.replicas = Math.round(message.replicas); + } + if (message.updatedReplicas !== 0) { + obj.updatedReplicas = Math.round(message.updatedReplicas); + } + if (message.readyReplicas !== 0) { + obj.readyReplicas = Math.round(message.readyReplicas); + } + if (message.availableReplicas !== 0) { + obj.availableReplicas = Math.round(message.availableReplicas); + } + return obj; + }, + + create(base?: DeepPartial): LeaseServiceStatus { + return LeaseServiceStatus.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): LeaseServiceStatus { + const message = createBaseLeaseServiceStatus(); + message.available = object.available ?? 0; + message.total = object.total ?? 0; + message.uris = object.uris?.map((e) => e) || []; + message.observedGeneration = + object.observedGeneration !== undefined && + object.observedGeneration !== null + ? Long.fromValue(object.observedGeneration) + : Long.ZERO; + message.replicas = object.replicas ?? 0; + message.updatedReplicas = object.updatedReplicas ?? 0; + message.readyReplicas = object.readyReplicas ?? 0; + message.availableReplicas = object.availableReplicas ?? 0; + return message; + }, +}; + +messageTypeRegistry.set(LeaseServiceStatus.$type, LeaseServiceStatus); + +function createBaseLeaseIPStatus(): LeaseIPStatus { + return { + $type: 'akash.provider.lease.v1.LeaseIPStatus', + port: 0, + externalPort: 0, + protocol: '', + ip: '', + }; +} + +export const LeaseIPStatus = { + $type: 'akash.provider.lease.v1.LeaseIPStatus' as const, + + encode( + message: LeaseIPStatus, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.port !== 0) { + writer.uint32(8).uint32(message.port); + } + if (message.externalPort !== 0) { + writer.uint32(16).uint32(message.externalPort); + } + if (message.protocol !== '') { + writer.uint32(26).string(message.protocol); + } + if (message.ip !== '') { + writer.uint32(34).string(message.ip); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): LeaseIPStatus { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLeaseIPStatus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 8) { + break; + } + + message.port = reader.uint32(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.externalPort = reader.uint32(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.protocol = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.ip = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): LeaseIPStatus { + return { + $type: LeaseIPStatus.$type, + port: isSet(object.port) ? globalThis.Number(object.port) : 0, + externalPort: isSet(object.externalPort) + ? globalThis.Number(object.externalPort) + : 0, + protocol: isSet(object.protocol) + ? globalThis.String(object.protocol) + : '', + ip: isSet(object.ip) ? globalThis.String(object.ip) : '', + }; + }, + + toJSON(message: LeaseIPStatus): unknown { + const obj: any = {}; + if (message.port !== 0) { + obj.port = Math.round(message.port); + } + if (message.externalPort !== 0) { + obj.externalPort = Math.round(message.externalPort); + } + if (message.protocol !== '') { + obj.protocol = message.protocol; + } + if (message.ip !== '') { + obj.ip = message.ip; + } + return obj; + }, + + create(base?: DeepPartial): LeaseIPStatus { + return LeaseIPStatus.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): LeaseIPStatus { + const message = createBaseLeaseIPStatus(); + message.port = object.port ?? 0; + message.externalPort = object.externalPort ?? 0; + message.protocol = object.protocol ?? ''; + message.ip = object.ip ?? ''; + return message; + }, +}; + +messageTypeRegistry.set(LeaseIPStatus.$type, LeaseIPStatus); + +function createBaseForwarderPortStatus(): ForwarderPortStatus { + return { + $type: 'akash.provider.lease.v1.ForwarderPortStatus', + host: '', + port: 0, + externalPort: 0, + proto: '', + name: '', + }; +} + +export const ForwarderPortStatus = { + $type: 'akash.provider.lease.v1.ForwarderPortStatus' as const, + + encode( + message: ForwarderPortStatus, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.host !== '') { + writer.uint32(10).string(message.host); + } + if (message.port !== 0) { + writer.uint32(16).uint32(message.port); + } + if (message.externalPort !== 0) { + writer.uint32(24).uint32(message.externalPort); + } + if (message.proto !== '') { + writer.uint32(34).string(message.proto); + } + if (message.name !== '') { + writer.uint32(42).string(message.name); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ForwarderPortStatus { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseForwarderPortStatus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.host = reader.string(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.port = reader.uint32(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.externalPort = reader.uint32(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.proto = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.name = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ForwarderPortStatus { + return { + $type: ForwarderPortStatus.$type, + host: isSet(object.host) ? globalThis.String(object.host) : '', + port: isSet(object.port) ? globalThis.Number(object.port) : 0, + externalPort: isSet(object.externalPort) + ? globalThis.Number(object.externalPort) + : 0, + proto: isSet(object.proto) ? globalThis.String(object.proto) : '', + name: isSet(object.name) ? globalThis.String(object.name) : '', + }; + }, + + toJSON(message: ForwarderPortStatus): unknown { + const obj: any = {}; + if (message.host !== '') { + obj.host = message.host; + } + if (message.port !== 0) { + obj.port = Math.round(message.port); + } + if (message.externalPort !== 0) { + obj.externalPort = Math.round(message.externalPort); + } + if (message.proto !== '') { + obj.proto = message.proto; + } + if (message.name !== '') { + obj.name = message.name; + } + return obj; + }, + + create(base?: DeepPartial): ForwarderPortStatus { + return ForwarderPortStatus.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ForwarderPortStatus { + const message = createBaseForwarderPortStatus(); + message.host = object.host ?? ''; + message.port = object.port ?? 0; + message.externalPort = object.externalPort ?? 0; + message.proto = object.proto ?? ''; + message.name = object.name ?? ''; + return message; + }, +}; + +messageTypeRegistry.set(ForwarderPortStatus.$type, ForwarderPortStatus); + +function createBaseServiceStatus(): ServiceStatus { + return { + $type: 'akash.provider.lease.v1.ServiceStatus', + name: '', + status: undefined, + ports: [], + ips: [], + }; +} + +export const ServiceStatus = { + $type: 'akash.provider.lease.v1.ServiceStatus' as const, + + encode( + message: ServiceStatus, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.status !== undefined) { + LeaseServiceStatus.encode( + message.status, + writer.uint32(18).fork(), + ).ldelim(); + } + for (const v of message.ports) { + ForwarderPortStatus.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.ips) { + LeaseIPStatus.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ServiceStatus { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceStatus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.status = LeaseServiceStatus.decode(reader, reader.uint32()); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.ports.push( + ForwarderPortStatus.decode(reader, reader.uint32()), + ); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.ips.push(LeaseIPStatus.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceStatus { + return { + $type: ServiceStatus.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + status: isSet(object.status) + ? LeaseServiceStatus.fromJSON(object.status) + : undefined, + ports: globalThis.Array.isArray(object?.ports) + ? object.ports.map((e: any) => ForwarderPortStatus.fromJSON(e)) + : [], + ips: globalThis.Array.isArray(object?.ips) + ? object.ips.map((e: any) => LeaseIPStatus.fromJSON(e)) + : [], + }; + }, + + toJSON(message: ServiceStatus): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.status !== undefined) { + obj.status = LeaseServiceStatus.toJSON(message.status); + } + if (message.ports?.length) { + obj.ports = message.ports.map((e) => ForwarderPortStatus.toJSON(e)); + } + if (message.ips?.length) { + obj.ips = message.ips.map((e) => LeaseIPStatus.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): ServiceStatus { + return ServiceStatus.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceStatus { + const message = createBaseServiceStatus(); + message.name = object.name ?? ''; + message.status = + object.status !== undefined && object.status !== null + ? LeaseServiceStatus.fromPartial(object.status) + : undefined; + message.ports = + object.ports?.map((e) => ForwarderPortStatus.fromPartial(e)) || []; + message.ips = object.ips?.map((e) => LeaseIPStatus.fromPartial(e)) || []; + return message; + }, +}; + +messageTypeRegistry.set(ServiceStatus.$type, ServiceStatus); + +function createBaseSendManifestRequest(): SendManifestRequest { + return { + $type: 'akash.provider.lease.v1.SendManifestRequest', + leaseId: undefined, + manifest: [], + }; +} + +export const SendManifestRequest = { + $type: 'akash.provider.lease.v1.SendManifestRequest' as const, + + encode( + message: SendManifestRequest, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.leaseId !== undefined) { + LeaseID.encode(message.leaseId, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.manifest) { + Group.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): SendManifestRequest { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendManifestRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.leaseId = LeaseID.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.manifest.push(Group.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): SendManifestRequest { + return { + $type: SendManifestRequest.$type, + leaseId: isSet(object.leaseId) + ? LeaseID.fromJSON(object.leaseId) + : undefined, + manifest: globalThis.Array.isArray(object?.manifest) + ? object.manifest.map((e: any) => Group.fromJSON(e)) + : [], + }; + }, + + toJSON(message: SendManifestRequest): unknown { + const obj: any = {}; + if (message.leaseId !== undefined) { + obj.leaseId = LeaseID.toJSON(message.leaseId); + } + if (message.manifest?.length) { + obj.manifest = message.manifest.map((e) => Group.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): SendManifestRequest { + return SendManifestRequest.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SendManifestRequest { + const message = createBaseSendManifestRequest(); + message.leaseId = + object.leaseId !== undefined && object.leaseId !== null + ? LeaseID.fromPartial(object.leaseId) + : undefined; + message.manifest = object.manifest?.map((e) => Group.fromPartial(e)) || []; + return message; + }, +}; + +messageTypeRegistry.set(SendManifestRequest.$type, SendManifestRequest); + +function createBaseSendManifestResponse(): SendManifestResponse { + return { $type: 'akash.provider.lease.v1.SendManifestResponse' }; +} + +export const SendManifestResponse = { + $type: 'akash.provider.lease.v1.SendManifestResponse' as const, + + encode( + _: SendManifestResponse, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + return writer; + }, + + decode( + input: _m0.Reader | Uint8Array, + length?: number, + ): SendManifestResponse { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendManifestResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(_: any): SendManifestResponse { + return { $type: SendManifestResponse.$type }; + }, + + toJSON(_: SendManifestResponse): unknown { + const obj: any = {}; + return obj; + }, + + create(base?: DeepPartial): SendManifestResponse { + return SendManifestResponse.fromPartial(base ?? {}); + }, + fromPartial(_: DeepPartial): SendManifestResponse { + const message = createBaseSendManifestResponse(); + return message; + }, +}; + +messageTypeRegistry.set(SendManifestResponse.$type, SendManifestResponse); + +function createBaseServiceLogsRequest(): ServiceLogsRequest { + return { + $type: 'akash.provider.lease.v1.ServiceLogsRequest', + leaseId: undefined, + services: [], + }; +} + +export const ServiceLogsRequest = { + $type: 'akash.provider.lease.v1.ServiceLogsRequest' as const, + + encode( + message: ServiceLogsRequest, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.leaseId !== undefined) { + LeaseID.encode(message.leaseId, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.services) { + writer.uint32(18).string(v!); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ServiceLogsRequest { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceLogsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.leaseId = LeaseID.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.services.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceLogsRequest { + return { + $type: ServiceLogsRequest.$type, + leaseId: isSet(object.leaseId) + ? LeaseID.fromJSON(object.leaseId) + : undefined, + services: globalThis.Array.isArray(object?.services) + ? object.services.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: ServiceLogsRequest): unknown { + const obj: any = {}; + if (message.leaseId !== undefined) { + obj.leaseId = LeaseID.toJSON(message.leaseId); + } + if (message.services?.length) { + obj.services = message.services; + } + return obj; + }, + + create(base?: DeepPartial): ServiceLogsRequest { + return ServiceLogsRequest.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceLogsRequest { + const message = createBaseServiceLogsRequest(); + message.leaseId = + object.leaseId !== undefined && object.leaseId !== null + ? LeaseID.fromPartial(object.leaseId) + : undefined; + message.services = object.services?.map((e) => e) || []; + return message; + }, +}; + +messageTypeRegistry.set(ServiceLogsRequest.$type, ServiceLogsRequest); + +function createBaseServiceLogs(): ServiceLogs { + return { + $type: 'akash.provider.lease.v1.ServiceLogs', + name: '', + logs: new Uint8Array(0), + }; +} + +export const ServiceLogs = { + $type: 'akash.provider.lease.v1.ServiceLogs' as const, + + encode( + message: ServiceLogs, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.name !== '') { + writer.uint32(10).string(message.name); + } + if (message.logs.length !== 0) { + writer.uint32(18).bytes(message.logs); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ServiceLogs { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceLogs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.logs = reader.bytes(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceLogs { + return { + $type: ServiceLogs.$type, + name: isSet(object.name) ? globalThis.String(object.name) : '', + logs: isSet(object.logs) + ? bytesFromBase64(object.logs) + : new Uint8Array(0), + }; + }, + + toJSON(message: ServiceLogs): unknown { + const obj: any = {}; + if (message.name !== '') { + obj.name = message.name; + } + if (message.logs.length !== 0) { + obj.logs = base64FromBytes(message.logs); + } + return obj; + }, + + create(base?: DeepPartial): ServiceLogs { + return ServiceLogs.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceLogs { + const message = createBaseServiceLogs(); + message.name = object.name ?? ''; + message.logs = object.logs ?? new Uint8Array(0); + return message; + }, +}; + +messageTypeRegistry.set(ServiceLogs.$type, ServiceLogs); + +function createBaseServiceLogsResponse(): ServiceLogsResponse { + return { $type: 'akash.provider.lease.v1.ServiceLogsResponse', services: [] }; +} + +export const ServiceLogsResponse = { + $type: 'akash.provider.lease.v1.ServiceLogsResponse' as const, + + encode( + message: ServiceLogsResponse, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + for (const v of message.services) { + ServiceLogs.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ServiceLogsResponse { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceLogsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.services.push(ServiceLogs.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceLogsResponse { + return { + $type: ServiceLogsResponse.$type, + services: globalThis.Array.isArray(object?.services) + ? object.services.map((e: any) => ServiceLogs.fromJSON(e)) + : [], + }; + }, + + toJSON(message: ServiceLogsResponse): unknown { + const obj: any = {}; + if (message.services?.length) { + obj.services = message.services.map((e) => ServiceLogs.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): ServiceLogsResponse { + return ServiceLogsResponse.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceLogsResponse { + const message = createBaseServiceLogsResponse(); + message.services = + object.services?.map((e) => ServiceLogs.fromPartial(e)) || []; + return message; + }, +}; + +messageTypeRegistry.set(ServiceLogsResponse.$type, ServiceLogsResponse); + +function createBaseShellRequest(): ShellRequest { + return { $type: 'akash.provider.lease.v1.ShellRequest', leaseId: undefined }; +} + +export const ShellRequest = { + $type: 'akash.provider.lease.v1.ShellRequest' as const, + + encode( + message: ShellRequest, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.leaseId !== undefined) { + LeaseID.encode(message.leaseId, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ShellRequest { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.leaseId = LeaseID.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellRequest { + return { + $type: ShellRequest.$type, + leaseId: isSet(object.leaseId) + ? LeaseID.fromJSON(object.leaseId) + : undefined, + }; + }, + + toJSON(message: ShellRequest): unknown { + const obj: any = {}; + if (message.leaseId !== undefined) { + obj.leaseId = LeaseID.toJSON(message.leaseId); + } + return obj; + }, + + create(base?: DeepPartial): ShellRequest { + return ShellRequest.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellRequest { + const message = createBaseShellRequest(); + message.leaseId = + object.leaseId !== undefined && object.leaseId !== null + ? LeaseID.fromPartial(object.leaseId) + : undefined; + return message; + }, +}; + +messageTypeRegistry.set(ShellRequest.$type, ShellRequest); + +function createBaseServiceStatusRequest(): ServiceStatusRequest { + return { + $type: 'akash.provider.lease.v1.ServiceStatusRequest', + leaseId: undefined, + services: [], + }; +} + +export const ServiceStatusRequest = { + $type: 'akash.provider.lease.v1.ServiceStatusRequest' as const, + + encode( + message: ServiceStatusRequest, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.leaseId !== undefined) { + LeaseID.encode(message.leaseId, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.services) { + writer.uint32(18).string(v!); + } + return writer; + }, + + decode( + input: _m0.Reader | Uint8Array, + length?: number, + ): ServiceStatusRequest { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceStatusRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.leaseId = LeaseID.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.services.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceStatusRequest { + return { + $type: ServiceStatusRequest.$type, + leaseId: isSet(object.leaseId) + ? LeaseID.fromJSON(object.leaseId) + : undefined, + services: globalThis.Array.isArray(object?.services) + ? object.services.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: ServiceStatusRequest): unknown { + const obj: any = {}; + if (message.leaseId !== undefined) { + obj.leaseId = LeaseID.toJSON(message.leaseId); + } + if (message.services?.length) { + obj.services = message.services; + } + return obj; + }, + + create(base?: DeepPartial): ServiceStatusRequest { + return ServiceStatusRequest.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceStatusRequest { + const message = createBaseServiceStatusRequest(); + message.leaseId = + object.leaseId !== undefined && object.leaseId !== null + ? LeaseID.fromPartial(object.leaseId) + : undefined; + message.services = object.services?.map((e) => e) || []; + return message; + }, +}; + +messageTypeRegistry.set(ServiceStatusRequest.$type, ServiceStatusRequest); + +function createBaseServiceStatusResponse(): ServiceStatusResponse { + return { + $type: 'akash.provider.lease.v1.ServiceStatusResponse', + services: [], + }; +} + +export const ServiceStatusResponse = { + $type: 'akash.provider.lease.v1.ServiceStatusResponse' as const, + + encode( + message: ServiceStatusResponse, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + for (const v of message.services) { + ServiceStatus.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode( + input: _m0.Reader | Uint8Array, + length?: number, + ): ServiceStatusResponse { + const reader = + input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceStatusResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.services.push(ServiceStatus.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceStatusResponse { + return { + $type: ServiceStatusResponse.$type, + services: globalThis.Array.isArray(object?.services) + ? object.services.map((e: any) => ServiceStatus.fromJSON(e)) + : [], + }; + }, + + toJSON(message: ServiceStatusResponse): unknown { + const obj: any = {}; + if (message.services?.length) { + obj.services = message.services.map((e) => ServiceStatus.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): ServiceStatusResponse { + return ServiceStatusResponse.fromPartial(base ?? {}); + }, + fromPartial( + object: DeepPartial, + ): ServiceStatusResponse { + const message = createBaseServiceStatusResponse(); + message.services = + object.services?.map((e) => ServiceStatus.fromPartial(e)) || []; + return message; + }, +}; + +messageTypeRegistry.set(ServiceStatusResponse.$type, ServiceStatusResponse); + +/** LeaseRPC defines the RPC server for lease control */ +export type LeaseRPCService = typeof LeaseRPCService; +export const LeaseRPCService = { + /** SendManifest sends manifest to the provider */ + sendManifest: { + path: '/akash.provider.lease.v1.LeaseRPC/SendManifest', + requestStream: false, + responseStream: false, + requestSerialize: (value: SendManifestRequest) => + Buffer.from(SendManifestRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => SendManifestRequest.decode(value), + responseSerialize: (value: SendManifestResponse) => + Buffer.from(SendManifestResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => SendManifestResponse.decode(value), + }, + /** + * ServiceStatus + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + serviceStatus: { + path: '/akash.provider.lease.v1.LeaseRPC/ServiceStatus', + requestStream: false, + responseStream: false, + requestSerialize: (value: ServiceStatusRequest) => + Buffer.from(ServiceStatusRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ServiceStatusRequest.decode(value), + responseSerialize: (value: ServiceStatusResponse) => + Buffer.from(ServiceStatusResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ServiceStatusResponse.decode(value), + }, + /** + * StreamServiceStatus + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamServiceStatus: { + path: '/akash.provider.lease.v1.LeaseRPC/StreamServiceStatus', + requestStream: false, + responseStream: true, + requestSerialize: (value: ServiceStatusRequest) => + Buffer.from(ServiceStatusRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ServiceStatusRequest.decode(value), + responseSerialize: (value: ServiceStatusResponse) => + Buffer.from(ServiceStatusResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ServiceStatusResponse.decode(value), + }, + /** + * ServiceLogs + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + serviceLogs: { + path: '/akash.provider.lease.v1.LeaseRPC/ServiceLogs', + requestStream: false, + responseStream: false, + requestSerialize: (value: ServiceLogsRequest) => + Buffer.from(ServiceLogsRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ServiceLogsRequest.decode(value), + responseSerialize: (value: ServiceLogsResponse) => + Buffer.from(ServiceLogsResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ServiceLogsResponse.decode(value), + }, + /** + * StreamServiceLogs + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamServiceLogs: { + path: '/akash.provider.lease.v1.LeaseRPC/StreamServiceLogs', + requestStream: false, + responseStream: true, + requestSerialize: (value: ServiceLogsRequest) => + Buffer.from(ServiceLogsRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ServiceLogsRequest.decode(value), + responseSerialize: (value: ServiceLogsResponse) => + Buffer.from(ServiceLogsResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ServiceLogsResponse.decode(value), + }, +} as const; + +export interface LeaseRPCServer extends UntypedServiceImplementation { + /** SendManifest sends manifest to the provider */ + sendManifest: handleUnaryCall; + /** + * ServiceStatus + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + serviceStatus: handleUnaryCall; + /** + * StreamServiceStatus + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamServiceStatus: handleServerStreamingCall< + ServiceStatusRequest, + ServiceStatusResponse + >; + /** + * ServiceLogs + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + serviceLogs: handleUnaryCall; + /** + * StreamServiceLogs + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamServiceLogs: handleServerStreamingCall< + ServiceLogsRequest, + ServiceLogsResponse + >; +} + +export interface LeaseRPCClient extends Client { + /** SendManifest sends manifest to the provider */ + sendManifest( + request: SendManifestRequest, + callback: ( + error: ServiceError | null, + response: SendManifestResponse, + ) => void, + ): ClientUnaryCall; + sendManifest( + request: SendManifestRequest, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: SendManifestResponse, + ) => void, + ): ClientUnaryCall; + sendManifest( + request: SendManifestRequest, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: SendManifestResponse, + ) => void, + ): ClientUnaryCall; + /** + * ServiceStatus + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + serviceStatus( + request: ServiceStatusRequest, + callback: ( + error: ServiceError | null, + response: ServiceStatusResponse, + ) => void, + ): ClientUnaryCall; + serviceStatus( + request: ServiceStatusRequest, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: ServiceStatusResponse, + ) => void, + ): ClientUnaryCall; + serviceStatus( + request: ServiceStatusRequest, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: ServiceStatusResponse, + ) => void, + ): ClientUnaryCall; + /** + * StreamServiceStatus + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamServiceStatus( + request: ServiceStatusRequest, + options?: Partial, + ): ClientReadableStream; + streamServiceStatus( + request: ServiceStatusRequest, + metadata?: Metadata, + options?: Partial, + ): ClientReadableStream; + /** + * ServiceLogs + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + serviceLogs( + request: ServiceLogsRequest, + callback: ( + error: ServiceError | null, + response: ServiceLogsResponse, + ) => void, + ): ClientUnaryCall; + serviceLogs( + request: ServiceLogsRequest, + metadata: Metadata, + callback: ( + error: ServiceError | null, + response: ServiceLogsResponse, + ) => void, + ): ClientUnaryCall; + serviceLogs( + request: ServiceLogsRequest, + metadata: Metadata, + options: Partial, + callback: ( + error: ServiceError | null, + response: ServiceLogsResponse, + ) => void, + ): ClientUnaryCall; + /** + * StreamServiceLogs + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamServiceLogs( + request: ServiceLogsRequest, + options?: Partial, + ): ClientReadableStream; + streamServiceLogs( + request: ServiceLogsRequest, + metadata?: Metadata, + options?: Partial, + ): ClientReadableStream; +} + +export const LeaseRPCClient = makeGenericClientConstructor( + LeaseRPCService, + 'akash.provider.lease.v1.LeaseRPC', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): LeaseRPCClient; + service: typeof LeaseRPCService; + serviceName: string; +}; + +function bytesFromBase64(b64: string): Uint8Array { + if ((globalThis as any).Buffer) { + return Uint8Array.from(globalThis.Buffer.from(b64, 'base64')); + } else { + const bin = globalThis.atob(b64); + const arr = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; ++i) { + arr[i] = bin.charCodeAt(i); + } + return arr; + } +} + +function base64FromBytes(arr: Uint8Array): string { + if ((globalThis as any).Buffer) { + return globalThis.Buffer.from(arr).toString('base64'); + } else { + const bin: string[] = []; + arr.forEach((byte) => { + bin.push(globalThis.String.fromCharCode(byte)); + }); + return globalThis.btoa(bin.join('')); + } +} + +type Builtin = + | Date + | Function + | Uint8Array + | string + | number + | boolean + | undefined; + +export type DeepPartial = T extends Builtin + ? T + : T extends Long + ? string | number | Long + : T extends globalThis.Array + ? globalThis.Array> + : T extends ReadonlyArray + ? ReadonlyArray> + : T extends {} + ? { [K in Exclude]?: DeepPartial } + : Partial; + +if (_m0.util.Long !== Long) { + _m0.util.Long = Long as any; + _m0.configure(); +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/ts/src/generated/akash/provider/v1/service.grpc-js.ts b/ts/src/generated/akash/provider/v1/service.grpc-js.ts new file mode 100644 index 00000000..708b3518 --- /dev/null +++ b/ts/src/generated/akash/provider/v1/service.grpc-js.ts @@ -0,0 +1,123 @@ +/* eslint-disable */ +import { + ChannelCredentials, + Client, + ClientReadableStream, + handleServerStreamingCall, + makeGenericClientConstructor, + Metadata, +} from '@grpc/grpc-js'; +import type { + CallOptions, + ClientOptions, + ClientUnaryCall, + handleUnaryCall, + ServiceError, + UntypedServiceImplementation, +} from '@grpc/grpc-js'; +import { Empty } from '../../../google/protobuf/empty'; +import { Status } from './status'; + +export const protobufPackage = 'akash.provider.v1'; + +/** ProviderRPC defines the RPC server for provider */ +export type ProviderRPCService = typeof ProviderRPCService; +export const ProviderRPCService = { + /** + * GetStatus defines a method to query provider state + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + getStatus: { + path: '/akash.provider.v1.ProviderRPC/GetStatus', + requestStream: false, + responseStream: false, + requestSerialize: (value: Empty) => + Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: Status) => + Buffer.from(Status.encode(value).finish()), + responseDeserialize: (value: Buffer) => Status.decode(value), + }, + /** + * Status defines a method to stream provider state + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamStatus: { + path: '/akash.provider.v1.ProviderRPC/StreamStatus', + requestStream: false, + responseStream: true, + requestSerialize: (value: Empty) => + Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: Status) => + Buffer.from(Status.encode(value).finish()), + responseDeserialize: (value: Buffer) => Status.decode(value), + }, +} as const; + +export interface ProviderRPCServer extends UntypedServiceImplementation { + /** + * GetStatus defines a method to query provider state + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + getStatus: handleUnaryCall; + /** + * Status defines a method to stream provider state + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamStatus: handleServerStreamingCall; +} + +export interface ProviderRPCClient extends Client { + /** + * GetStatus defines a method to query provider state + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + getStatus( + request: Empty, + callback: (error: ServiceError | null, response: Status) => void, + ): ClientUnaryCall; + getStatus( + request: Empty, + metadata: Metadata, + callback: (error: ServiceError | null, response: Status) => void, + ): ClientUnaryCall; + getStatus( + request: Empty, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Status) => void, + ): ClientUnaryCall; + /** + * Status defines a method to stream provider state + * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + */ + streamStatus( + request: Empty, + options?: Partial, + ): ClientReadableStream; + streamStatus( + request: Empty, + metadata?: Metadata, + options?: Partial, + ): ClientReadableStream; +} + +export const ProviderRPCClient = makeGenericClientConstructor( + ProviderRPCService, + 'akash.provider.v1.ProviderRPC', +) as unknown as { + new ( + address: string, + credentials: ChannelCredentials, + options?: Partial, + ): ProviderRPCClient; + service: typeof ProviderRPCService; + serviceName: string; +}; diff --git a/ts/src/generated/index.akash.deployment.v1beta2.grpc-js.ts b/ts/src/generated/index.akash.deployment.v1beta2.grpc-js.ts new file mode 100644 index 00000000..48f730f1 --- /dev/null +++ b/ts/src/generated/index.akash.deployment.v1beta2.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/deployment/v1beta2/service.grpc-js'; diff --git a/ts/src/generated/index.akash.deployment.v1beta3.grpc-js.ts b/ts/src/generated/index.akash.deployment.v1beta3.grpc-js.ts new file mode 100644 index 00000000..ebbbd49b --- /dev/null +++ b/ts/src/generated/index.akash.deployment.v1beta3.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/deployment/v1beta3/service.grpc-js'; diff --git a/ts/src/generated/index.akash.inventory.v1.grpc-js.ts b/ts/src/generated/index.akash.inventory.v1.grpc-js.ts new file mode 100644 index 00000000..8272da03 --- /dev/null +++ b/ts/src/generated/index.akash.inventory.v1.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/inventory/v1/service.grpc-js'; diff --git a/ts/src/generated/index.akash.manifest.v2beta1.grpc-js.ts b/ts/src/generated/index.akash.manifest.v2beta1.grpc-js.ts new file mode 100644 index 00000000..378c3da0 --- /dev/null +++ b/ts/src/generated/index.akash.manifest.v2beta1.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/manifest/v2beta1/service.grpc-js'; diff --git a/ts/src/generated/index.akash.manifest.v2beta2.grpc-js.ts b/ts/src/generated/index.akash.manifest.v2beta2.grpc-js.ts new file mode 100644 index 00000000..de94c45c --- /dev/null +++ b/ts/src/generated/index.akash.manifest.v2beta2.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/manifest/v2beta2/service.grpc-js'; diff --git a/ts/src/generated/index.akash.market.v1beta2.grpc-js.ts b/ts/src/generated/index.akash.market.v1beta2.grpc-js.ts new file mode 100644 index 00000000..39087d19 --- /dev/null +++ b/ts/src/generated/index.akash.market.v1beta2.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/market/v1beta2/service.grpc-js'; diff --git a/ts/src/generated/index.akash.market.v1beta3.grpc-js.ts b/ts/src/generated/index.akash.market.v1beta3.grpc-js.ts new file mode 100644 index 00000000..42f11ff9 --- /dev/null +++ b/ts/src/generated/index.akash.market.v1beta3.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/market/v1beta3/service.grpc-js'; diff --git a/ts/src/generated/index.akash.market.v1beta4.grpc-js.ts b/ts/src/generated/index.akash.market.v1beta4.grpc-js.ts new file mode 100644 index 00000000..07406635 --- /dev/null +++ b/ts/src/generated/index.akash.market.v1beta4.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/market/v1beta4/service.grpc-js'; diff --git a/ts/src/generated/index.akash.provider.lease.v1.grpc-js.ts b/ts/src/generated/index.akash.provider.lease.v1.grpc-js.ts new file mode 100644 index 00000000..0df2d5f9 --- /dev/null +++ b/ts/src/generated/index.akash.provider.lease.v1.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/provider/lease/v1/service.grpc-js'; diff --git a/ts/src/generated/index.akash.provider.v1.grpc-js.ts b/ts/src/generated/index.akash.provider.v1.grpc-js.ts new file mode 100644 index 00000000..c9526ddf --- /dev/null +++ b/ts/src/generated/index.akash.provider.v1.grpc-js.ts @@ -0,0 +1 @@ +export * from './akash/provider/v1/service.grpc-js';