From 506629b894c40d42c5abb87adb8f70abf5939cdc Mon Sep 17 00:00:00 2001 From: turbo1912 Date: Wed, 22 Feb 2023 13:39:40 -0800 Subject: [PATCH] initial commit --- .gitignore | 1 + example.js | 29 + example.ts | 40 + package-lock.json | 3833 ++++++++++++++++++++ package.json | 26 + proto/common.proto | 46 + proto/controller.proto | 198 ++ proto/generated/common_grpc_pb.js | 1 + proto/generated/common_pb.d.ts | 114 + proto/generated/common_pb.js | 801 +++++ proto/generated/controller_grpc_pb.d.ts | 193 + proto/generated/controller_grpc_pb.js | 344 ++ proto/generated/controller_pb.d.ts | 560 +++ proto/generated/controller_pb.js | 4312 +++++++++++++++++++++++ proto/generated/server_grpc_pb.d.ts | 41 + proto/generated/server_grpc_pb.js | 48 + proto/generated/server_pb.d.ts | 72 + proto/generated/server_pb.js | 539 +++ proto/server.proto | 25 + python.dump | Bin 0 -> 341 bytes simple.py | 30 + 21 files changed, 11253 insertions(+) create mode 100644 .gitignore create mode 100644 example.js create mode 100644 example.ts create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 proto/common.proto create mode 100644 proto/controller.proto create mode 100644 proto/generated/common_grpc_pb.js create mode 100644 proto/generated/common_pb.d.ts create mode 100644 proto/generated/common_pb.js create mode 100644 proto/generated/controller_grpc_pb.d.ts create mode 100644 proto/generated/controller_grpc_pb.js create mode 100644 proto/generated/controller_pb.d.ts create mode 100644 proto/generated/controller_pb.js create mode 100644 proto/generated/server_grpc_pb.d.ts create mode 100644 proto/generated/server_grpc_pb.js create mode 100644 proto/generated/server_pb.d.ts create mode 100644 proto/generated/server_pb.js create mode 100644 proto/server.proto create mode 100644 python.dump create mode 100644 simple.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/example.js b/example.js new file mode 100644 index 0000000..39aa7a4 --- /dev/null +++ b/example.js @@ -0,0 +1,29 @@ +"use strict"; +exports.__esModule = true; +var common_pb_1 = require("./proto/generated/common_pb"); +var controller_pb_1 = require("./proto/generated/controller_pb"); +var server_pb_1 = require("./proto/generated/server_pb"); +var fs = require("fs"); +var controller_grpc_pb_1 = require("./proto/generated/controller_grpc_pb"); +var grpc = require("@grpc/grpc-js"); +var credentials = grpc.credentials.combineChannelCredentials(grpc.credentials.createSsl(), grpc.credentials.createFromMetadataGenerator(function (_, callback) { + var md = new grpc.Metadata(); + md.add("auth-key", "f2588f17f0bfc75c323dc5f9b5da83e0"); + md.add("auth-key-id", "648b02a4-e2cd-430c-8bac-4ca2712dad18"); + callback(null, md); +})); +var client = new controller_grpc_pb_1.IsolateControllerClient("api.shark.fal.ai", credentials); +var req = new controller_pb_1.HostedRun(); +var serObj = new common_pb_1.SerializedObject(); +var definition = fs.readFileSync('/Users/gorkemyurtseven/dev/koldstart-playground/koldstart-javascript/python.dump'); +serObj.setMethod("dill"); +serObj.setDefinition(definition); +serObj.setWasItRaised(false); +serObj.setStringizedTraceback(""); +var environment = new server_pb_1.EnvironmentDefinition(); +environment.setKind("virtualenv"); +req.setFunction(serObj); +req.setEnvironmentsList([environment]); +client.run(req).on("data", function (data) { + console.log(data.toObject()); +}); diff --git a/example.ts b/example.ts new file mode 100644 index 0000000..3be3cd7 --- /dev/null +++ b/example.ts @@ -0,0 +1,40 @@ +import { SerializedObject } from "./proto/generated/common_pb"; +import { HostedRun } from "./proto/generated/controller_pb"; +import { EnvironmentDefinition } from "./proto/generated/server_pb"; +import * as fs from 'fs'; +import { IsolateControllerClient } from "./proto/generated/controller_grpc_pb"; +import * as grpc from "@grpc/grpc-js"; + +const credentials: grpc.ChannelCredentials = grpc.credentials.combineChannelCredentials( + grpc.credentials.createSsl(), + grpc.credentials.createFromMetadataGenerator((_, callback) => { + const md = new grpc.Metadata(); + md.add("auth-key", "f2588f17f0bfc75c323dc5f9b5da83e0") + md.add("auth-key-id", "648b02a4-e2cd-430c-8bac-4ca2712dad18") + callback(null, md); + }) +) +const client = new IsolateControllerClient("api.shark.fal.ai", credentials); +const req = new HostedRun(); + +const serObj = new SerializedObject(); + +let definition = fs.readFileSync('/Users/gorkemyurtseven/dev/koldstart-playground/koldstart-javascript/python.dump') + +serObj.setMethod("dill"); +serObj.setDefinition(definition) +serObj.setWasItRaised(false); +serObj.setStringizedTraceback(""); + +const environment = new EnvironmentDefinition(); +environment.setKind("virtualenv"); + +req.setFunction(serObj); +req.setEnvironmentsList([environment]); + +client.run(req).on("data", (data) => { + console.log(data.toObject()); +}); + + +koldstart("gorkemyurt/stable-diffusion").run("create me a turtle") diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..675ebcb --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3833 @@ +{ + "name": "javascript", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "javascript", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@bufbuild/buf": "^1.14.0-1", + "@grpc/grpc-js": "^1.8.10", + "@improbable-eng/grpc-web": "^0.15.0", + "@types/node": "^18.14.0", + "fs": "^0.0.1-security", + "install": "^0.13.0", + "npm": "^9.5.0", + "ts-protoc-gen": "^0.15.0" + }, + "devDependencies": { + "grpc_tools_node_protoc_ts": "^5.3.3", + "grpc-tools": "^1.12.4" + } + }, + "node_modules/@bufbuild/buf": { + "version": "1.14.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.14.0-1.tgz", + "integrity": "sha512-z9huIoY7j8c9FAy6t9gv9U+OmDMMIiHVk6KPHhf2vay8iZDozOVq9ITNuix6Ye2j1r2cOrvO/Av1+aRWWS64OA==", + "hasInstallScript": true, + "bin": { + "buf": "bin/buf", + "protoc-gen-buf-breaking": "bin/protoc-gen-buf-breaking", + "protoc-gen-buf-lint": "bin/protoc-gen-buf-lint" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@bufbuild/buf-darwin-arm64": "1.14.0-1", + "@bufbuild/buf-darwin-x64": "1.14.0-1", + "@bufbuild/buf-linux-aarch64": "1.14.0-1", + "@bufbuild/buf-linux-x64": "1.14.0-1", + "@bufbuild/buf-win32-arm64": "1.14.0-1", + "@bufbuild/buf-win32-x64": "1.14.0-1" + } + }, + "node_modules/@bufbuild/buf-darwin-arm64": { + "version": "1.14.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.14.0-1.tgz", + "integrity": "sha512-RKc20G45wiHd4kw+w9dOBp0nvV8zIP6yRnpgC6FnmF5HAHO21Ov7sD3/c06qJKyulPzEXJdUmWI66WcvqINtOA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-darwin-x64": { + "version": "1.14.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.14.0-1.tgz", + "integrity": "sha512-AO0rXNyMezmhwljKwgnCHIEw7k/ddTLWGWupYmtO18U39DMpP9xkAY7Wh/8GPuzc/m3hz83Ayxy7utYhTWQiUA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-linux-aarch64": { + "version": "1.14.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.14.0-1.tgz", + "integrity": "sha512-F6tD0RRap3ooIjrLOlXouyp5YB1r2DovNYPpbmeEEl9x5r0ulqU5S5sdgn8livIX3jXz4TjkbMVpm8Q/owyG5w==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-linux-x64": { + "version": "1.14.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.14.0-1.tgz", + "integrity": "sha512-7PhLlQe3BDHI1AAxLwpZwVIxp1DCvZ6vJytY4OXhoANWTS2ko0sseTzFo5XqFa0ul4DJo8aDNdtDtJ9HKdwOPQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-win32-arm64": { + "version": "1.14.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.14.0-1.tgz", + "integrity": "sha512-PK/5CX2r9B9e1YIkbGtc7lX1pFniuK/yqQShydHtu7LxWr1vnyFAvDpYpcI9cy+t8Q/+U2gc6iOUBGHqjyQ43A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-win32-x64": { + "version": "1.14.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.14.0-1.tgz", + "integrity": "sha512-TsBcBVl63LH3mkNje2fiykC8DM7kAWg+ie6ruBykcBmlFzEcdyJ4vFDpBdjUAQjKOUT4R+wsD38QJtYce1lQww==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.8.10", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.10.tgz", + "integrity": "sha512-x7QS+gJq8WaS1OJYFJkmeoX2PHhi3b5TR5TqR9a8NJv6VyedFecp3LgAUmuJSQZlwoAODpCKRtu4HzG1srNjiA==", + "dependencies": { + "@grpc/proto-loader": "^0.7.0", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.5.tgz", + "integrity": "sha512-mfcTuMbFowq1wh/Rn5KQl6qb95M21Prej3bewD9dUQMurYGVckGO/Pbe2Ocwto6sD05b/mxZLspvqwx60xO2Rg==", + "dependencies": { + "@types/long": "^4.0.1", + "lodash.camelcase": "^4.3.0", + "long": "^4.0.0", + "protobufjs": "^7.0.0", + "yargs": "^16.2.0" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@improbable-eng/grpc-web": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", + "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", + "dependencies": { + "browser-headers": "^0.4.1" + }, + "peerDependencies": { + "google-protobuf": "^3.14.0" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz", + "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==", + "dev": true, + "dependencies": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@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==" + }, + "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==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "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==" + }, + "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==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "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==" + }, + "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==" + }, + "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==" + }, + "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==" + }, + "node_modules/@types/long": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + }, + "node_modules/@types/node": { + "version": "18.14.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.0.tgz", + "integrity": "sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==" + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", + "dev": true + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "dev": true, + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browser-headers": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", + "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", + "dev": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", + "dev": true + }, + "node_modules/detect-libc": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", + "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "dev": true, + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/google-protobuf": { + "version": "3.15.8", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.15.8.tgz", + "integrity": "sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw==" + }, + "node_modules/grpc_tools_node_protoc_ts": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-5.3.3.tgz", + "integrity": "sha512-M/YrklvVXMtuuj9kb42PxeouZhs7Ul+R4e/31XwrankUcKL8cQQP50Q9q+KEHGyHQaPt6VtKKsxMgLaKbCxeww==", + "dev": true, + "dependencies": { + "google-protobuf": "3.15.8", + "handlebars": "4.7.7" + }, + "bin": { + "protoc-gen-ts": "bin/protoc-gen-ts" + } + }, + "node_modules/grpc-tools": { + "version": "1.12.4", + "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.12.4.tgz", + "integrity": "sha512-5+mLAJJma3BjnW/KQp6JBjUMgvu7Mu3dBvBPd1dcbNIb+qiR0817zDpgPjS7gRb+l/8EVNIa3cB02xI9JLToKg==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.5" + }, + "bin": { + "grpc_tools_node_protoc": "bin/protoc.js", + "grpc_tools_node_protoc_plugin": "bin/protoc_plugin.js" + } + }, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", + "dev": true + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/install": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/install/-/install-0.13.0.tgz", + "integrity": "sha512-zDml/jzr2PKU9I8J/xyZBQn8rPCAY//UOYNmR01XwNwyfhEWObo2SWfSl1+0tm1u6PhxLwDnfsT/6jB7OUxqFA==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.3.tgz", + "integrity": "sha512-OW2r4sQ0sI+z5ckEt5c1Tri4xTgZwYDxpE54eqWlQloQRoWtXjqt9udJ5Z4dSv7wK+nfFI7FRXyCpBSft+gpFw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-fetch": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dev": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/npm/-/npm-9.5.0.tgz", + "integrity": "sha512-GqVETDu5xX4+drrjdZmWyxl3BVLToDamB0Wz1+k0mLcraYRVb80gOYSnSEZbHvulw4RyU/Hq6AiUfUBxmm/2gw==", + "bundleDependencies": [ + "@isaacs/string-locale-compare", + "@npmcli/arborist", + "@npmcli/config", + "@npmcli/map-workspaces", + "@npmcli/package-json", + "@npmcli/run-script", + "abbrev", + "archy", + "cacache", + "chalk", + "ci-info", + "cli-columns", + "cli-table3", + "columnify", + "fastest-levenshtein", + "fs-minipass", + "glob", + "graceful-fs", + "hosted-git-info", + "ini", + "init-package-json", + "is-cidr", + "json-parse-even-better-errors", + "libnpmaccess", + "libnpmdiff", + "libnpmexec", + "libnpmfund", + "libnpmhook", + "libnpmorg", + "libnpmpack", + "libnpmpublish", + "libnpmsearch", + "libnpmteam", + "libnpmversion", + "make-fetch-happen", + "minimatch", + "minipass", + "minipass-pipeline", + "ms", + "node-gyp", + "nopt", + "npm-audit-report", + "npm-install-checks", + "npm-package-arg", + "npm-pick-manifest", + "npm-profile", + "npm-registry-fetch", + "npm-user-validate", + "npmlog", + "p-map", + "pacote", + "parse-conflict-json", + "proc-log", + "qrcode-terminal", + "read", + "read-package-json", + "read-package-json-fast", + "semver", + "ssri", + "tar", + "text-table", + "tiny-relative-date", + "treeverse", + "validate-npm-package-name", + "which", + "write-file-atomic" + ], + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/arborist": "^6.2.2", + "@npmcli/config": "^6.1.3", + "@npmcli/map-workspaces": "^3.0.2", + "@npmcli/package-json": "^3.0.0", + "@npmcli/run-script": "^6.0.0", + "abbrev": "^2.0.0", + "archy": "~1.0.0", + "cacache": "^17.0.4", + "chalk": "^4.1.2", + "ci-info": "^3.8.0", + "cli-columns": "^4.0.0", + "cli-table3": "^0.6.3", + "columnify": "^1.6.0", + "fastest-levenshtein": "^1.0.16", + "fs-minipass": "^3.0.1", + "glob": "^8.1.0", + "graceful-fs": "^4.2.10", + "hosted-git-info": "^6.1.1", + "ini": "^3.0.1", + "init-package-json": "^5.0.0", + "is-cidr": "^4.0.2", + "json-parse-even-better-errors": "^3.0.0", + "libnpmaccess": "^7.0.2", + "libnpmdiff": "^5.0.10", + "libnpmexec": "^5.0.10", + "libnpmfund": "^4.0.10", + "libnpmhook": "^9.0.3", + "libnpmorg": "^5.0.3", + "libnpmpack": "^5.0.10", + "libnpmpublish": "^7.1.0", + "libnpmsearch": "^6.0.2", + "libnpmteam": "^5.0.3", + "libnpmversion": "^4.0.2", + "make-fetch-happen": "^11.0.3", + "minimatch": "^6.2.0", + "minipass": "^4.0.3", + "minipass-pipeline": "^1.2.4", + "ms": "^2.1.2", + "node-gyp": "^9.3.1", + "nopt": "^7.0.0", + "npm-audit-report": "^4.0.0", + "npm-install-checks": "^6.0.0", + "npm-package-arg": "^10.1.0", + "npm-pick-manifest": "^8.0.1", + "npm-profile": "^7.0.1", + "npm-registry-fetch": "^14.0.3", + "npm-user-validate": "^2.0.0", + "npmlog": "^7.0.1", + "p-map": "^4.0.0", + "pacote": "^15.1.0", + "parse-conflict-json": "^3.0.0", + "proc-log": "^3.0.0", + "qrcode-terminal": "^0.12.0", + "read": "^2.0.0", + "read-package-json": "^6.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.8", + "ssri": "^10.0.1", + "tar": "^6.1.13", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "treeverse": "^3.0.0", + "validate-npm-package-name": "^5.0.0", + "which": "^3.0.0", + "write-file-atomic": "^5.0.0" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@colors/colors": { + "version": "1.5.0", + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/npm/node_modules/@gar/promisify": { + "version": "1.1.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/arborist": { + "version": "6.2.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/installed-package-contents": "^2.0.0", + "@npmcli/map-workspaces": "^3.0.2", + "@npmcli/metavuln-calculator": "^5.0.0", + "@npmcli/name-from-folder": "^2.0.0", + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/package-json": "^3.0.0", + "@npmcli/query": "^3.0.0", + "@npmcli/run-script": "^6.0.0", + "bin-links": "^4.0.1", + "cacache": "^17.0.4", + "common-ancestor-path": "^1.0.1", + "hosted-git-info": "^6.1.1", + "json-parse-even-better-errors": "^3.0.0", + "json-stringify-nice": "^1.1.4", + "minimatch": "^6.1.6", + "nopt": "^7.0.0", + "npm-install-checks": "^6.0.0", + "npm-package-arg": "^10.1.0", + "npm-pick-manifest": "^8.0.1", + "npm-registry-fetch": "^14.0.3", + "npmlog": "^7.0.1", + "pacote": "^15.0.8", + "parse-conflict-json": "^3.0.0", + "proc-log": "^3.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^1.0.1", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "ssri": "^10.0.1", + "treeverse": "^3.0.0", + "walk-up-path": "^1.0.0" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/config": { + "version": "6.1.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/map-workspaces": "^3.0.2", + "ini": "^3.0.0", + "nopt": "^7.0.0", + "proc-log": "^3.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.5", + "walk-up-path": "^1.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/disparity-colors": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ansi-styles": "^4.3.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/fs": { + "version": "3.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/git": { + "version": "4.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^6.0.0", + "lru-cache": "^7.4.4", + "mkdirp": "^1.0.4", + "npm-pick-manifest": "^8.0.0", + "proc-log": "^3.0.0", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/installed-package-contents": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "bin": { + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/map-workspaces": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^2.0.0", + "glob": "^8.0.1", + "minimatch": "^6.1.6", + "read-package-json-fast": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cacache": "^17.0.0", + "json-parse-even-better-errors": "^3.0.0", + "pacote": "^15.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/move-file": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/name-from-folder": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/node-gyp": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/package-json": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/promise-spawn": { + "version": "6.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/query": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/run-script": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^6.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tootallnate/once": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abort-controller": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/npm/node_modules/agent-base": { + "version": "6.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/npm/node_modules/agentkeepalive": { + "version": "4.2.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "depd": "^1.1.2", + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/npm/node_modules/aggregate-error": { + "version": "3.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/are-we-there-yet": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^4.1.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bin-links": { + "version": "4.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cmd-shim": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "read-cmd-shim": "^4.0.0", + "write-file-atomic": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/binary-extensions": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/buffer": { + "version": "6.0.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/npm/node_modules/builtins": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/npm/node_modules/cacache": { + "version": "17.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^8.0.1", + "lru-cache": "^7.7.1", + "minipass": "^4.0.0", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/chalk": { + "version": "4.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ci-info": { + "version": "3.8.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "3.1.1", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^4.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/clean-stack": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/cli-table3": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/npm/node_modules/clone": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "6.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.4", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/color-support": { + "version": "1.1.3", + "inBundle": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/npm/node_modules/columnify": { + "version": "1.6.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "strip-ansi": "^6.0.1", + "wcwidth": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/npm/node_modules/common-ancestor-path": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/console-control-strings": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/cssesc": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "4.3.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/npm/node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/defaults": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/delegates": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/depd": { + "version": "1.1.2", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/diff": { + "version": "5.1.0", + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "8.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.13", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "2.0.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/event-target-shim": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/events": { + "version": "3.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/npm/node_modules/fastest-levenshtein": { + "version": "1.0.16", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/npm/node_modules/fs-minipass": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/fs.realpath": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/function-bind": { + "version": "1.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/gauge": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "8.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/glob/node_modules/minimatch": { + "version": "5.1.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.10", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/has": { + "version": "1.0.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/npm/node_modules/has-flag": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/has-unicode": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "6.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^7.5.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "4.1.1", + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "5.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/humanize-ms": { + "version": "1.2.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "6.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^6.1.6" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/indent-string": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/infer-owner": { + "version": "1.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/inflight": { + "version": "1.0.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/inherits": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ini": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^10.0.0", + "promzard": "^1.0.0", + "read": "^2.0.0", + "read-package-json": "^6.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/ip": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/ip-regex": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "4.0.2", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "cidr-regex": "^3.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/is-core-module": { + "version": "2.11.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-lambda": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/json-stringify-nice": { + "version": "1.1.4", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", + "engines": [ + "node >= 0.2.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff": { + "version": "5.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff-apply": { + "version": "5.5.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/libnpmaccess": { + "version": "7.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^10.1.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmdiff": { + "version": "5.0.10", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.2.2", + "@npmcli/disparity-colors": "^3.0.0", + "@npmcli/installed-package-contents": "^2.0.0", + "binary-extensions": "^2.2.0", + "diff": "^5.1.0", + "minimatch": "^6.1.6", + "npm-package-arg": "^10.1.0", + "pacote": "^15.0.8", + "tar": "^6.1.13" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmexec": { + "version": "5.0.10", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.2.2", + "@npmcli/run-script": "^6.0.0", + "chalk": "^4.1.0", + "ci-info": "^3.7.1", + "npm-package-arg": "^10.1.0", + "npmlog": "^7.0.1", + "pacote": "^15.0.8", + "proc-log": "^3.0.0", + "read": "^2.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "walk-up-path": "^1.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmfund": { + "version": "4.0.10", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.2.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmhook": { + "version": "9.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmorg": { + "version": "5.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpack": { + "version": "5.0.10", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.2.2", + "@npmcli/run-script": "^6.0.0", + "npm-package-arg": "^10.1.0", + "pacote": "^15.0.8" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpublish": { + "version": "7.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ci-info": "^3.6.1", + "normalize-package-data": "^5.0.0", + "npm-package-arg": "^10.1.0", + "npm-registry-fetch": "^14.0.3", + "semver": "^7.3.7", + "sigstore": "^1.0.0", + "ssri": "^10.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmsearch": { + "version": "6.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmteam": { + "version": "5.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmversion": { + "version": "4.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^4.0.1", + "@npmcli/run-script": "^6.0.0", + "json-parse-even-better-errors": "^3.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/lru-cache": { + "version": "7.14.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "11.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^4.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/minimatch": { + "version": "6.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/minipass": { + "version": "4.0.3", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-collect": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-collect/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-fetch": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^4.0.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/minipass-flush": { + "version": "1.0.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-json-stream": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline": { + "version": "1.2.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized": { + "version": "1.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minizlib": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/mkdirp": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ms": { + "version": "2.1.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/mute-stream": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/negotiator": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/node-gyp": { + "version": "9.3.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^10.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^12.13 || ^14.13 || >=16" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/@npmcli/fs": { + "version": "2.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@gar/promisify": "^1.1.3", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/abbrev": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/are-we-there-yet": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache": { + "version": "16.1.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^2.1.0", + "@npmcli/move-file": "^2.0.0", + "chownr": "^2.0.0", + "fs-minipass": "^2.1.0", + "glob": "^8.0.1", + "infer-owner": "^1.0.4", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "mkdirp": "^1.0.4", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^9.0.0", + "tar": "^6.1.11", + "unique-filename": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob": { + "version": "8.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch": { + "version": "5.1.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/fs-minipass": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/gauge": { + "version": "4.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/glob": { + "version": "7.2.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/make-fetch-happen": { + "version": "10.2.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^16.1.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^2.0.3", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^9.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minipass-fetch": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.1.6", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/nopt": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/npmlog": { + "version": "6.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/readable-stream": { + "version": "3.6.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/ssri": { + "version": "9.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/unique-filename": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/unique-slug": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/which": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/nopt": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^2.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/normalize-package-data": { + "version": "5.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^6.0.0", + "is-core-module": "^2.8.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-audit-report": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-bundled": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "6.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "10.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^6.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-packlist": { + "version": "7.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^6.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "8.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "npm-package-arg": "^10.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-profile": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^14.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "14.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "make-fetch-happen": "^11.0.0", + "minipass": "^4.0.0", + "minipass-fetch": "^3.0.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^10.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-user-validate": { + "version": "2.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npmlog": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^4.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^5.0.0", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/once": { + "version": "1.4.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/p-map": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/pacote": { + "version": "15.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^4.0.0", + "@npmcli/installed-package-contents": "^2.0.1", + "@npmcli/promise-spawn": "^6.0.1", + "@npmcli/run-script": "^6.0.0", + "cacache": "^17.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^4.0.0", + "npm-package-arg": "^10.0.0", + "npm-packlist": "^7.0.0", + "npm-pick-manifest": "^8.0.0", + "npm-registry-fetch": "^14.0.0", + "proc-log": "^3.0.0", + "promise-retry": "^2.0.1", + "read-package-json": "^6.0.0", + "read-package-json-fast": "^3.0.0", + "sigstore": "^1.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/parse-conflict-json": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "just-diff": "^5.0.1", + "just-diff-apply": "^5.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/path-is-absolute": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/postcss-selector-parser": { + "version": "6.0.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/proc-log": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/process": { + "version": "0.11.10", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/npm/node_modules/promise-all-reject-late": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-call-limit": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-inflight": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/promise-retry": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/promzard": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "read": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/read": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "mute-stream": "~1.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^8.0.1", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^5.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json-fast": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/readable-stream": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/rimraf": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/safe-buffer": { + "version": "5.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "optional": true + }, + "node_modules/npm/node_modules/semver": { + "version": "7.3.8", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/set-blocking": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/signal-exit": { + "version": "3.0.7", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/sigstore": { + "version": "1.0.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "make-fetch-happen": "^11.0.1", + "tuf-js": "^1.0.0" + }, + "bin": { + "sigstore": "bin/sigstore.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks": { + "version": "2.7.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "7.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.1.1", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.3.0", + "inBundle": true, + "license": "CC-BY-3.0" + }, + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.12", + "inBundle": true, + "license": "CC0-1.0" + }, + "node_modules/npm/node_modules/ssri": { + "version": "10.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/string_decoder": { + "version": "1.1.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/npm/node_modules/string-width": { + "version": "4.2.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi": { + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/supports-color": { + "version": "7.2.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/tar": { + "version": "6.1.13", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^4.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/treeverse": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/tuf-js": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "make-fetch-happen": "^11.0.1", + "minimatch": "^6.1.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-filename": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "builtins": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/walk-up-path": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/wcwidth": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/npm/node_modules/which": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/wide-align": { + "version": "1.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/yallist": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npmlog": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "dev": true, + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protobufjs": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.2.tgz", + "integrity": "sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/protobufjs/node_modules/long": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", + "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" + }, + "node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tar": { + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", + "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", + "dev": true, + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^4.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true + }, + "node_modules/ts-protoc-gen": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", + "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", + "dependencies": { + "google-protobuf": "^3.15.5" + }, + "bin": { + "protoc-gen-ts": "bin/protoc-gen-ts" + } + }, + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true, + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "dev": true, + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..acdc9be --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "javascript", + "version": "1.0.0", + "description": "", + "main": "example.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "@bufbuild/buf": "^1.14.0-1", + "@grpc/grpc-js": "^1.8.10", + "@improbable-eng/grpc-web": "^0.15.0", + "@types/node": "^18.14.0", + "fs": "^0.0.1-security", + "install": "^0.13.0", + "npm": "^9.5.0", + "ts-protoc-gen": "^0.15.0" + }, + "devDependencies": { + "grpc_tools_node_protoc_ts": "^5.3.3", + "grpc-tools": "^1.12.4" + } +} diff --git a/proto/common.proto b/proto/common.proto new file mode 100644 index 0000000..14d1d72 --- /dev/null +++ b/proto/common.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; + +message SerializedObject { + // The serialization method used to serialize the the raw_object. Must be + // present in the environment that is running the agent itself. + string method = 1; + // The Python object serialized with the method above. + bytes definition = 2; + // A flag indicating whether the given object was raised (e.g. an exception + // that was captured) or not. + bool was_it_raised = 3; + // The stringized version of the traceback, if it was raised. + optional string stringized_traceback = 4; +} + +message PartialRunResult { + // A flag indicating whether the run has completed. + bool is_complete = 1; + // A list of logs collected during this partial execution. It does + // not include old logs. + repeated Log logs = 2; + // The result of the run, if it is complete. + optional SerializedObject result = 3; +} + +message Log { + string message = 1; + LogSource source = 2; + LogLevel level = 3; +} + +enum LogSource { + BUILDER = 0; + BRIDGE = 1; + USER = 2; +} + +enum LogLevel { + TRACE = 0; + DEBUG = 1; + INFO = 2; + WARNING = 3; + ERROR = 4; + STDOUT = 5; + STDERR = 6; +} diff --git a/proto/controller.proto b/proto/controller.proto new file mode 100644 index 0000000..87e526f --- /dev/null +++ b/proto/controller.proto @@ -0,0 +1,198 @@ +syntax = "proto3"; + +import "common.proto"; +import "server.proto"; +import "google/protobuf/timestamp.proto"; + +package controller; + +service IsolateController { + // Run the given function on the specified environment. Streams logs + // and the result originating from that function. + rpc Run (HostedRun) returns (stream HostedRunResult) {} + // Run the given function in parallel with the given inputs + rpc Map (HostedMap) returns (stream HostedRunResult) {} + // Schedule the given function to be run with the specified cron. + rpc Schedule (HostedRunCron) returns (ScheduleInfo) {} + // List scheduled runs. + rpc ListScheduledRuns (ListScheduledRunsRequest) returns (ListScheduledRunsResponse) {} + // Cancel a scheduled run. + rpc CancelScheduledRun (CancelScheduledRunRequest) returns (CancelScheduledRunResponse) {} + // List all the activations of one scheduled run. + rpc ListScheduledRunActivations (ListScheduledRunActivationsRequest) returns (ListScheduledRunActivationsResponse) {} + // Get logs from a particular activation of a scheduled run. + rpc GetScheduledActivationLogs (GetScheduledActivationLogsRequest) returns (GetScheduledActivationLogsResponse) {} + // Creates an authentication key for a user + rpc CreateUserKey (CreateUserKeyRequest) returns (CreateUserKeyResponse) {} + // Lists the user's authentication keys + rpc ListUserKeys (ListUserKeysRequest) returns (ListUserKeysResponse) {} + // Revokes an authentication key for a user + rpc RevokeUserKey (RevokeUserKeyRequest) returns (RevokeUserKeyResponse) {} +} + +message HostedMap { + // Environment definitions. + repeated EnvironmentDefinition environments = 1; + // Machine requirements + optional MachineRequirements machine_requirements = 2; + // Function to run. + SerializedObject function = 3; + // Inputs to the function + repeated SerializedObject inputs = 4; +} + +message HostedRun { + // Environment definitions. + repeated EnvironmentDefinition environments = 1; + // Machine requirements + optional MachineRequirements machine_requirements = 2; + // Function to run. + SerializedObject function = 3; + // Optional setup function to pass as the first argument to the function. + optional SerializedObject setup_func = 4; +} + +message HostedRunCron { + // Environment definitions. + repeated EnvironmentDefinition environments = 1; + // Machine requirements + optional MachineRequirements machine_requirements = 2; + // Function to run. + SerializedObject function = 3; + // cron string to represent the run schedule + string cron = 4; +} + +message CancelScheduledRunRequest { + // The id of the scheduled run to cancel. + string run_id = 1; +} + +message CancelScheduledRunResponse { + // Empty. For future use. +} + +message ListScheduledRunsRequest { + // Empty. For future use. +} + +message ListScheduledRunActivationsRequest { + // The id of the scheduled run to list activations for. + string run_id = 1; +} + +message ListScheduledRunActivationsResponse { + // The list of activations (which correspond to timestamps) + repeated string activation_ids = 1; +} + +message ListScheduledRunsResponse { + repeated ScheduleInfo scheduled_runs = 1; +} + +message GetScheduledActivationLogsRequest { + // The id of the scheduled run to get. + string run_id = 1; + + // The id of the activation to get logs for. + string activation_id = 2; +} + +message GetScheduledActivationLogsResponse { + // All the logs from this activation (the format is TBD, currently raw strings). + bytes raw_logs = 1; +} + +message CreateUserKeyRequest { + // Empty. For future use. +} + +message CreateUserKeyResponse { + string key_secret = 1; + string key_id = 2; + optional string description = 3; +} + +message ListUserKeysRequest { + // Empty. For future use. +} + +message ListUserKeysResponse { + repeated UserKeyInfo user_keys = 1; +} + +message RevokeUserKeyRequest { + string key_id = 1; +} + +message RevokeUserKeyResponse { + // Empty. For future use. +} + +message UserKeyInfo { + string key_id = 1; + google.protobuf.Timestamp created_at = 2; +} + +message ScheduleInfo { + // Unique run id / token. + string run_id = 1; + + enum State { + // The run has been scheduled. + SCHEDULED = 0; + // The run has failed because of isolate. + INTERNAL_FAILURE = 1; + // The run has been cancelled. + CANCELLED = 2; + } + + // The state of the run. + State state = 2; + + // Cron string to represent the run schedule. + string cron = 3; +} + +message HostedRunResult { + // Unique run id / token. + string run_id = 1; + + // Optionally the status of the current run (in terms of + // fal cloud). + optional HostedRunStatus status = 2; + + // The most recent logs from the run. + repeated Log logs = 3; + + // The result of the run, if it is complete (indicated by + // status.is_complete). + optional SerializedObject return_value = 4; +} + +message HostedRunStatus { + enum State { + // The run is in progress. + IN_PROGRESS = 0; + // The run has completed successfully. + SUCCESS = 1; + // The run has failed because of isolate. + INTERNAL_FAILURE = 2; + // TODO: probably QUEUED, etc. + } + + // The state of the run. + State state = 1; + + // TODO: probably a free form struct for more detailed + // information (how it crashed, position in queue, etc). +} + +message MachineRequirements { + // Machine type. It is not an enum because we want to be able + // to dynamically add new machine types without regenerating + // both the client and the server. Validation is done at the + // server side. + string machine_type = 1; + optional int32 keep_alive = 2; +} diff --git a/proto/generated/common_grpc_pb.js b/proto/generated/common_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/proto/generated/common_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/proto/generated/common_pb.d.ts b/proto/generated/common_pb.d.ts new file mode 100644 index 0000000..a1edcdc --- /dev/null +++ b/proto/generated/common_pb.d.ts @@ -0,0 +1,114 @@ +// package: +// file: common.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; + +export class SerializedObject extends jspb.Message { + getMethod(): string; + setMethod(value: string): SerializedObject; + getDefinition(): Uint8Array | string; + getDefinition_asU8(): Uint8Array; + getDefinition_asB64(): string; + setDefinition(value: Uint8Array | string): SerializedObject; + getWasItRaised(): boolean; + setWasItRaised(value: boolean): SerializedObject; + + hasStringizedTraceback(): boolean; + clearStringizedTraceback(): void; + getStringizedTraceback(): string | undefined; + setStringizedTraceback(value: string): SerializedObject; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SerializedObject.AsObject; + static toObject(includeInstance: boolean, msg: SerializedObject): SerializedObject.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SerializedObject, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SerializedObject; + static deserializeBinaryFromReader(message: SerializedObject, reader: jspb.BinaryReader): SerializedObject; +} + +export namespace SerializedObject { + export type AsObject = { + method: string, + definition: Uint8Array | string, + wasItRaised: boolean, + stringizedTraceback?: string, + } +} + +export class PartialRunResult extends jspb.Message { + getIsComplete(): boolean; + setIsComplete(value: boolean): PartialRunResult; + clearLogsList(): void; + getLogsList(): Array; + setLogsList(value: Array): PartialRunResult; + addLogs(value?: Log, index?: number): Log; + + hasResult(): boolean; + clearResult(): void; + getResult(): SerializedObject | undefined; + setResult(value?: SerializedObject): PartialRunResult; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PartialRunResult.AsObject; + static toObject(includeInstance: boolean, msg: PartialRunResult): PartialRunResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PartialRunResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PartialRunResult; + static deserializeBinaryFromReader(message: PartialRunResult, reader: jspb.BinaryReader): PartialRunResult; +} + +export namespace PartialRunResult { + export type AsObject = { + isComplete: boolean, + logsList: Array, + result?: SerializedObject.AsObject, + } +} + +export class Log extends jspb.Message { + getMessage(): string; + setMessage(value: string): Log; + getSource(): LogSource; + setSource(value: LogSource): Log; + getLevel(): LogLevel; + setLevel(value: LogLevel): Log; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Log.AsObject; + static toObject(includeInstance: boolean, msg: Log): Log.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Log, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Log; + static deserializeBinaryFromReader(message: Log, reader: jspb.BinaryReader): Log; +} + +export namespace Log { + export type AsObject = { + message: string, + source: LogSource, + level: LogLevel, + } +} + +export enum LogSource { + BUILDER = 0, + BRIDGE = 1, + USER = 2, +} + +export enum LogLevel { + TRACE = 0, + DEBUG = 1, + INFO = 2, + WARNING = 3, + ERROR = 4, + STDOUT = 5, + STDERR = 6, +} diff --git a/proto/generated/common_pb.js b/proto/generated/common_pb.js new file mode 100644 index 0000000..2d47e5b --- /dev/null +++ b/proto/generated/common_pb.js @@ -0,0 +1,801 @@ +// source: common.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.Log', null, global); +goog.exportSymbol('proto.LogLevel', null, global); +goog.exportSymbol('proto.LogSource', null, global); +goog.exportSymbol('proto.PartialRunResult', null, global); +goog.exportSymbol('proto.SerializedObject', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.SerializedObject = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.SerializedObject, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.SerializedObject.displayName = 'proto.SerializedObject'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.PartialRunResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.PartialRunResult.repeatedFields_, null); +}; +goog.inherits(proto.PartialRunResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.PartialRunResult.displayName = 'proto.PartialRunResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Log = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Log, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Log.displayName = 'proto.Log'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.SerializedObject.prototype.toObject = function(opt_includeInstance) { + return proto.SerializedObject.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.SerializedObject} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.SerializedObject.toObject = function(includeInstance, msg) { + var f, obj = { + method: jspb.Message.getFieldWithDefault(msg, 1, ""), + definition: msg.getDefinition_asB64(), + wasItRaised: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + stringizedTraceback: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.SerializedObject} + */ +proto.SerializedObject.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.SerializedObject; + return proto.SerializedObject.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.SerializedObject} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.SerializedObject} + */ +proto.SerializedObject.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMethod(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDefinition(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setWasItRaised(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setStringizedTraceback(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.SerializedObject.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.SerializedObject.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.SerializedObject} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.SerializedObject.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMethod(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDefinition_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getWasItRaised(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string method = 1; + * @return {string} + */ +proto.SerializedObject.prototype.getMethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.SerializedObject} returns this + */ +proto.SerializedObject.prototype.setMethod = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes definition = 2; + * @return {!(string|Uint8Array)} + */ +proto.SerializedObject.prototype.getDefinition = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes definition = 2; + * This is a type-conversion wrapper around `getDefinition()` + * @return {string} + */ +proto.SerializedObject.prototype.getDefinition_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDefinition())); +}; + + +/** + * optional bytes definition = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDefinition()` + * @return {!Uint8Array} + */ +proto.SerializedObject.prototype.getDefinition_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDefinition())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.SerializedObject} returns this + */ +proto.SerializedObject.prototype.setDefinition = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional bool was_it_raised = 3; + * @return {boolean} + */ +proto.SerializedObject.prototype.getWasItRaised = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.SerializedObject} returns this + */ +proto.SerializedObject.prototype.setWasItRaised = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional string stringized_traceback = 4; + * @return {string} + */ +proto.SerializedObject.prototype.getStringizedTraceback = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.SerializedObject} returns this + */ +proto.SerializedObject.prototype.setStringizedTraceback = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.SerializedObject} returns this + */ +proto.SerializedObject.prototype.clearStringizedTraceback = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.SerializedObject.prototype.hasStringizedTraceback = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.PartialRunResult.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.PartialRunResult.prototype.toObject = function(opt_includeInstance) { + return proto.PartialRunResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.PartialRunResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.PartialRunResult.toObject = function(includeInstance, msg) { + var f, obj = { + isComplete: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + logsList: jspb.Message.toObjectList(msg.getLogsList(), + proto.Log.toObject, includeInstance), + result: (f = msg.getResult()) && proto.SerializedObject.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.PartialRunResult} + */ +proto.PartialRunResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.PartialRunResult; + return proto.PartialRunResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.PartialRunResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.PartialRunResult} + */ +proto.PartialRunResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsComplete(value); + break; + case 2: + var value = new proto.Log; + reader.readMessage(value,proto.Log.deserializeBinaryFromReader); + msg.addLogs(value); + break; + case 3: + var value = new proto.SerializedObject; + reader.readMessage(value,proto.SerializedObject.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.PartialRunResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.PartialRunResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.PartialRunResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.PartialRunResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsComplete(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getLogsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.Log.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.SerializedObject.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bool is_complete = 1; + * @return {boolean} + */ +proto.PartialRunResult.prototype.getIsComplete = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.PartialRunResult} returns this + */ +proto.PartialRunResult.prototype.setIsComplete = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * repeated Log logs = 2; + * @return {!Array} + */ +proto.PartialRunResult.prototype.getLogsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.Log, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.PartialRunResult} returns this +*/ +proto.PartialRunResult.prototype.setLogsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.Log=} opt_value + * @param {number=} opt_index + * @return {!proto.Log} + */ +proto.PartialRunResult.prototype.addLogs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Log, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.PartialRunResult} returns this + */ +proto.PartialRunResult.prototype.clearLogsList = function() { + return this.setLogsList([]); +}; + + +/** + * optional SerializedObject result = 3; + * @return {?proto.SerializedObject} + */ +proto.PartialRunResult.prototype.getResult = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, proto.SerializedObject, 3)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.PartialRunResult} returns this +*/ +proto.PartialRunResult.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.PartialRunResult} returns this + */ +proto.PartialRunResult.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.PartialRunResult.prototype.hasResult = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Log.prototype.toObject = function(opt_includeInstance) { + return proto.Log.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Log} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Log.toObject = function(includeInstance, msg) { + var f, obj = { + message: jspb.Message.getFieldWithDefault(msg, 1, ""), + source: jspb.Message.getFieldWithDefault(msg, 2, 0), + level: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Log} + */ +proto.Log.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Log; + return proto.Log.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Log} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Log} + */ +proto.Log.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); + break; + case 2: + var value = /** @type {!proto.LogSource} */ (reader.readEnum()); + msg.setSource(value); + break; + case 3: + var value = /** @type {!proto.LogLevel} */ (reader.readEnum()); + msg.setLevel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Log.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Log.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Log} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Log.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSource(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getLevel(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } +}; + + +/** + * optional string message = 1; + * @return {string} + */ +proto.Log.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Log} returns this + */ +proto.Log.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional LogSource source = 2; + * @return {!proto.LogSource} + */ +proto.Log.prototype.getSource = function() { + return /** @type {!proto.LogSource} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.LogSource} value + * @return {!proto.Log} returns this + */ +proto.Log.prototype.setSource = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional LogLevel level = 3; + * @return {!proto.LogLevel} + */ +proto.Log.prototype.getLevel = function() { + return /** @type {!proto.LogLevel} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.LogLevel} value + * @return {!proto.Log} returns this + */ +proto.Log.prototype.setLevel = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * @enum {number} + */ +proto.LogSource = { + BUILDER: 0, + BRIDGE: 1, + USER: 2 +}; + +/** + * @enum {number} + */ +proto.LogLevel = { + TRACE: 0, + DEBUG: 1, + INFO: 2, + WARNING: 3, + ERROR: 4, + STDOUT: 5, + STDERR: 6 +}; + +goog.object.extend(exports, proto); diff --git a/proto/generated/controller_grpc_pb.d.ts b/proto/generated/controller_grpc_pb.d.ts new file mode 100644 index 0000000..f0fb82f --- /dev/null +++ b/proto/generated/controller_grpc_pb.d.ts @@ -0,0 +1,193 @@ +// package: controller +// file: controller.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as controller_pb from "./controller_pb"; +import * as common_pb from "./common_pb"; +import * as server_pb from "./server_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; + +interface IIsolateControllerService extends grpc.ServiceDefinition { + run: IIsolateControllerService_IRun; + map: IIsolateControllerService_IMap; + schedule: IIsolateControllerService_ISchedule; + listScheduledRuns: IIsolateControllerService_IListScheduledRuns; + cancelScheduledRun: IIsolateControllerService_ICancelScheduledRun; + listScheduledRunActivations: IIsolateControllerService_IListScheduledRunActivations; + getScheduledActivationLogs: IIsolateControllerService_IGetScheduledActivationLogs; + createUserKey: IIsolateControllerService_ICreateUserKey; + listUserKeys: IIsolateControllerService_IListUserKeys; + revokeUserKey: IIsolateControllerService_IRevokeUserKey; +} + +interface IIsolateControllerService_IRun extends grpc.MethodDefinition { + path: "/controller.IsolateController/Run"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_IMap extends grpc.MethodDefinition { + path: "/controller.IsolateController/Map"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_ISchedule extends grpc.MethodDefinition { + path: "/controller.IsolateController/Schedule"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_IListScheduledRuns extends grpc.MethodDefinition { + path: "/controller.IsolateController/ListScheduledRuns"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_ICancelScheduledRun extends grpc.MethodDefinition { + path: "/controller.IsolateController/CancelScheduledRun"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_IListScheduledRunActivations extends grpc.MethodDefinition { + path: "/controller.IsolateController/ListScheduledRunActivations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_IGetScheduledActivationLogs extends grpc.MethodDefinition { + path: "/controller.IsolateController/GetScheduledActivationLogs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_ICreateUserKey extends grpc.MethodDefinition { + path: "/controller.IsolateController/CreateUserKey"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_IListUserKeys extends grpc.MethodDefinition { + path: "/controller.IsolateController/ListUserKeys"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IIsolateControllerService_IRevokeUserKey extends grpc.MethodDefinition { + path: "/controller.IsolateController/RevokeUserKey"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const IsolateControllerService: IIsolateControllerService; + +export interface IIsolateControllerServer extends grpc.UntypedServiceImplementation { + run: grpc.handleServerStreamingCall; + map: grpc.handleServerStreamingCall; + schedule: grpc.handleUnaryCall; + listScheduledRuns: grpc.handleUnaryCall; + cancelScheduledRun: grpc.handleUnaryCall; + listScheduledRunActivations: grpc.handleUnaryCall; + getScheduledActivationLogs: grpc.handleUnaryCall; + createUserKey: grpc.handleUnaryCall; + listUserKeys: grpc.handleUnaryCall; + revokeUserKey: grpc.handleUnaryCall; +} + +export interface IIsolateControllerClient { + run(request: controller_pb.HostedRun, options?: Partial): grpc.ClientReadableStream; + run(request: controller_pb.HostedRun, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + map(request: controller_pb.HostedMap, options?: Partial): grpc.ClientReadableStream; + map(request: controller_pb.HostedMap, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + schedule(request: controller_pb.HostedRunCron, callback: (error: grpc.ServiceError | null, response: controller_pb.ScheduleInfo) => void): grpc.ClientUnaryCall; + schedule(request: controller_pb.HostedRunCron, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ScheduleInfo) => void): grpc.ClientUnaryCall; + schedule(request: controller_pb.HostedRunCron, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ScheduleInfo) => void): grpc.ClientUnaryCall; + listScheduledRuns(request: controller_pb.ListScheduledRunsRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunsResponse) => void): grpc.ClientUnaryCall; + listScheduledRuns(request: controller_pb.ListScheduledRunsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunsResponse) => void): grpc.ClientUnaryCall; + listScheduledRuns(request: controller_pb.ListScheduledRunsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunsResponse) => void): grpc.ClientUnaryCall; + cancelScheduledRun(request: controller_pb.CancelScheduledRunRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.CancelScheduledRunResponse) => void): grpc.ClientUnaryCall; + cancelScheduledRun(request: controller_pb.CancelScheduledRunRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.CancelScheduledRunResponse) => void): grpc.ClientUnaryCall; + cancelScheduledRun(request: controller_pb.CancelScheduledRunRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.CancelScheduledRunResponse) => void): grpc.ClientUnaryCall; + listScheduledRunActivations(request: controller_pb.ListScheduledRunActivationsRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunActivationsResponse) => void): grpc.ClientUnaryCall; + listScheduledRunActivations(request: controller_pb.ListScheduledRunActivationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunActivationsResponse) => void): grpc.ClientUnaryCall; + listScheduledRunActivations(request: controller_pb.ListScheduledRunActivationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunActivationsResponse) => void): grpc.ClientUnaryCall; + getScheduledActivationLogs(request: controller_pb.GetScheduledActivationLogsRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.GetScheduledActivationLogsResponse) => void): grpc.ClientUnaryCall; + getScheduledActivationLogs(request: controller_pb.GetScheduledActivationLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.GetScheduledActivationLogsResponse) => void): grpc.ClientUnaryCall; + getScheduledActivationLogs(request: controller_pb.GetScheduledActivationLogsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.GetScheduledActivationLogsResponse) => void): grpc.ClientUnaryCall; + createUserKey(request: controller_pb.CreateUserKeyRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.CreateUserKeyResponse) => void): grpc.ClientUnaryCall; + createUserKey(request: controller_pb.CreateUserKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.CreateUserKeyResponse) => void): grpc.ClientUnaryCall; + createUserKey(request: controller_pb.CreateUserKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.CreateUserKeyResponse) => void): grpc.ClientUnaryCall; + listUserKeys(request: controller_pb.ListUserKeysRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.ListUserKeysResponse) => void): grpc.ClientUnaryCall; + listUserKeys(request: controller_pb.ListUserKeysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ListUserKeysResponse) => void): grpc.ClientUnaryCall; + listUserKeys(request: controller_pb.ListUserKeysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ListUserKeysResponse) => void): grpc.ClientUnaryCall; + revokeUserKey(request: controller_pb.RevokeUserKeyRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.RevokeUserKeyResponse) => void): grpc.ClientUnaryCall; + revokeUserKey(request: controller_pb.RevokeUserKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.RevokeUserKeyResponse) => void): grpc.ClientUnaryCall; + revokeUserKey(request: controller_pb.RevokeUserKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.RevokeUserKeyResponse) => void): grpc.ClientUnaryCall; +} + +export class IsolateControllerClient extends grpc.Client implements IIsolateControllerClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public run(request: controller_pb.HostedRun, options?: Partial): grpc.ClientReadableStream; + public run(request: controller_pb.HostedRun, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public map(request: controller_pb.HostedMap, options?: Partial): grpc.ClientReadableStream; + public map(request: controller_pb.HostedMap, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public schedule(request: controller_pb.HostedRunCron, callback: (error: grpc.ServiceError | null, response: controller_pb.ScheduleInfo) => void): grpc.ClientUnaryCall; + public schedule(request: controller_pb.HostedRunCron, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ScheduleInfo) => void): grpc.ClientUnaryCall; + public schedule(request: controller_pb.HostedRunCron, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ScheduleInfo) => void): grpc.ClientUnaryCall; + public listScheduledRuns(request: controller_pb.ListScheduledRunsRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunsResponse) => void): grpc.ClientUnaryCall; + public listScheduledRuns(request: controller_pb.ListScheduledRunsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunsResponse) => void): grpc.ClientUnaryCall; + public listScheduledRuns(request: controller_pb.ListScheduledRunsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunsResponse) => void): grpc.ClientUnaryCall; + public cancelScheduledRun(request: controller_pb.CancelScheduledRunRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.CancelScheduledRunResponse) => void): grpc.ClientUnaryCall; + public cancelScheduledRun(request: controller_pb.CancelScheduledRunRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.CancelScheduledRunResponse) => void): grpc.ClientUnaryCall; + public cancelScheduledRun(request: controller_pb.CancelScheduledRunRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.CancelScheduledRunResponse) => void): grpc.ClientUnaryCall; + public listScheduledRunActivations(request: controller_pb.ListScheduledRunActivationsRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunActivationsResponse) => void): grpc.ClientUnaryCall; + public listScheduledRunActivations(request: controller_pb.ListScheduledRunActivationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunActivationsResponse) => void): grpc.ClientUnaryCall; + public listScheduledRunActivations(request: controller_pb.ListScheduledRunActivationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ListScheduledRunActivationsResponse) => void): grpc.ClientUnaryCall; + public getScheduledActivationLogs(request: controller_pb.GetScheduledActivationLogsRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.GetScheduledActivationLogsResponse) => void): grpc.ClientUnaryCall; + public getScheduledActivationLogs(request: controller_pb.GetScheduledActivationLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.GetScheduledActivationLogsResponse) => void): grpc.ClientUnaryCall; + public getScheduledActivationLogs(request: controller_pb.GetScheduledActivationLogsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.GetScheduledActivationLogsResponse) => void): grpc.ClientUnaryCall; + public createUserKey(request: controller_pb.CreateUserKeyRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.CreateUserKeyResponse) => void): grpc.ClientUnaryCall; + public createUserKey(request: controller_pb.CreateUserKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.CreateUserKeyResponse) => void): grpc.ClientUnaryCall; + public createUserKey(request: controller_pb.CreateUserKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.CreateUserKeyResponse) => void): grpc.ClientUnaryCall; + public listUserKeys(request: controller_pb.ListUserKeysRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.ListUserKeysResponse) => void): grpc.ClientUnaryCall; + public listUserKeys(request: controller_pb.ListUserKeysRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.ListUserKeysResponse) => void): grpc.ClientUnaryCall; + public listUserKeys(request: controller_pb.ListUserKeysRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.ListUserKeysResponse) => void): grpc.ClientUnaryCall; + public revokeUserKey(request: controller_pb.RevokeUserKeyRequest, callback: (error: grpc.ServiceError | null, response: controller_pb.RevokeUserKeyResponse) => void): grpc.ClientUnaryCall; + public revokeUserKey(request: controller_pb.RevokeUserKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: controller_pb.RevokeUserKeyResponse) => void): grpc.ClientUnaryCall; + public revokeUserKey(request: controller_pb.RevokeUserKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: controller_pb.RevokeUserKeyResponse) => void): grpc.ClientUnaryCall; +} diff --git a/proto/generated/controller_grpc_pb.js b/proto/generated/controller_grpc_pb.js new file mode 100644 index 0000000..5f227bd --- /dev/null +++ b/proto/generated/controller_grpc_pb.js @@ -0,0 +1,344 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require("@grpc/grpc-js"); +var controller_pb = require('./controller_pb.js'); +var common_pb = require('./common_pb.js'); +var server_pb = require('./server_pb.js'); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); + +function serialize_controller_CancelScheduledRunRequest(arg) { + if (!(arg instanceof controller_pb.CancelScheduledRunRequest)) { + throw new Error('Expected argument of type controller.CancelScheduledRunRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_CancelScheduledRunRequest(buffer_arg) { + return controller_pb.CancelScheduledRunRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_CancelScheduledRunResponse(arg) { + if (!(arg instanceof controller_pb.CancelScheduledRunResponse)) { + throw new Error('Expected argument of type controller.CancelScheduledRunResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_CancelScheduledRunResponse(buffer_arg) { + return controller_pb.CancelScheduledRunResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_CreateUserKeyRequest(arg) { + if (!(arg instanceof controller_pb.CreateUserKeyRequest)) { + throw new Error('Expected argument of type controller.CreateUserKeyRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_CreateUserKeyRequest(buffer_arg) { + return controller_pb.CreateUserKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_CreateUserKeyResponse(arg) { + if (!(arg instanceof controller_pb.CreateUserKeyResponse)) { + throw new Error('Expected argument of type controller.CreateUserKeyResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_CreateUserKeyResponse(buffer_arg) { + return controller_pb.CreateUserKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_GetScheduledActivationLogsRequest(arg) { + if (!(arg instanceof controller_pb.GetScheduledActivationLogsRequest)) { + throw new Error('Expected argument of type controller.GetScheduledActivationLogsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_GetScheduledActivationLogsRequest(buffer_arg) { + return controller_pb.GetScheduledActivationLogsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_GetScheduledActivationLogsResponse(arg) { + if (!(arg instanceof controller_pb.GetScheduledActivationLogsResponse)) { + throw new Error('Expected argument of type controller.GetScheduledActivationLogsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_GetScheduledActivationLogsResponse(buffer_arg) { + return controller_pb.GetScheduledActivationLogsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_HostedMap(arg) { + if (!(arg instanceof controller_pb.HostedMap)) { + throw new Error('Expected argument of type controller.HostedMap'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_HostedMap(buffer_arg) { + return controller_pb.HostedMap.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_HostedRun(arg) { + if (!(arg instanceof controller_pb.HostedRun)) { + throw new Error('Expected argument of type controller.HostedRun'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_HostedRun(buffer_arg) { + return controller_pb.HostedRun.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_HostedRunCron(arg) { + if (!(arg instanceof controller_pb.HostedRunCron)) { + throw new Error('Expected argument of type controller.HostedRunCron'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_HostedRunCron(buffer_arg) { + return controller_pb.HostedRunCron.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_HostedRunResult(arg) { + if (!(arg instanceof controller_pb.HostedRunResult)) { + throw new Error('Expected argument of type controller.HostedRunResult'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_HostedRunResult(buffer_arg) { + return controller_pb.HostedRunResult.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_ListScheduledRunActivationsRequest(arg) { + if (!(arg instanceof controller_pb.ListScheduledRunActivationsRequest)) { + throw new Error('Expected argument of type controller.ListScheduledRunActivationsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_ListScheduledRunActivationsRequest(buffer_arg) { + return controller_pb.ListScheduledRunActivationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_ListScheduledRunActivationsResponse(arg) { + if (!(arg instanceof controller_pb.ListScheduledRunActivationsResponse)) { + throw new Error('Expected argument of type controller.ListScheduledRunActivationsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_ListScheduledRunActivationsResponse(buffer_arg) { + return controller_pb.ListScheduledRunActivationsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_ListScheduledRunsRequest(arg) { + if (!(arg instanceof controller_pb.ListScheduledRunsRequest)) { + throw new Error('Expected argument of type controller.ListScheduledRunsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_ListScheduledRunsRequest(buffer_arg) { + return controller_pb.ListScheduledRunsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_ListScheduledRunsResponse(arg) { + if (!(arg instanceof controller_pb.ListScheduledRunsResponse)) { + throw new Error('Expected argument of type controller.ListScheduledRunsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_ListScheduledRunsResponse(buffer_arg) { + return controller_pb.ListScheduledRunsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_ListUserKeysRequest(arg) { + if (!(arg instanceof controller_pb.ListUserKeysRequest)) { + throw new Error('Expected argument of type controller.ListUserKeysRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_ListUserKeysRequest(buffer_arg) { + return controller_pb.ListUserKeysRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_ListUserKeysResponse(arg) { + if (!(arg instanceof controller_pb.ListUserKeysResponse)) { + throw new Error('Expected argument of type controller.ListUserKeysResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_ListUserKeysResponse(buffer_arg) { + return controller_pb.ListUserKeysResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_RevokeUserKeyRequest(arg) { + if (!(arg instanceof controller_pb.RevokeUserKeyRequest)) { + throw new Error('Expected argument of type controller.RevokeUserKeyRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_RevokeUserKeyRequest(buffer_arg) { + return controller_pb.RevokeUserKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_RevokeUserKeyResponse(arg) { + if (!(arg instanceof controller_pb.RevokeUserKeyResponse)) { + throw new Error('Expected argument of type controller.RevokeUserKeyResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_RevokeUserKeyResponse(buffer_arg) { + return controller_pb.RevokeUserKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_controller_ScheduleInfo(arg) { + if (!(arg instanceof controller_pb.ScheduleInfo)) { + throw new Error('Expected argument of type controller.ScheduleInfo'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_controller_ScheduleInfo(buffer_arg) { + return controller_pb.ScheduleInfo.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var IsolateControllerService = exports.IsolateControllerService = { + // Run the given function on the specified environment. Streams logs +// and the result originating from that function. +run: { + path: '/controller.IsolateController/Run', + requestStream: false, + responseStream: true, + requestType: controller_pb.HostedRun, + responseType: controller_pb.HostedRunResult, + requestSerialize: serialize_controller_HostedRun, + requestDeserialize: deserialize_controller_HostedRun, + responseSerialize: serialize_controller_HostedRunResult, + responseDeserialize: deserialize_controller_HostedRunResult, + }, + // Run the given function in parallel with the given inputs +map: { + path: '/controller.IsolateController/Map', + requestStream: false, + responseStream: true, + requestType: controller_pb.HostedMap, + responseType: controller_pb.HostedRunResult, + requestSerialize: serialize_controller_HostedMap, + requestDeserialize: deserialize_controller_HostedMap, + responseSerialize: serialize_controller_HostedRunResult, + responseDeserialize: deserialize_controller_HostedRunResult, + }, + // Schedule the given function to be run with the specified cron. +schedule: { + path: '/controller.IsolateController/Schedule', + requestStream: false, + responseStream: false, + requestType: controller_pb.HostedRunCron, + responseType: controller_pb.ScheduleInfo, + requestSerialize: serialize_controller_HostedRunCron, + requestDeserialize: deserialize_controller_HostedRunCron, + responseSerialize: serialize_controller_ScheduleInfo, + responseDeserialize: deserialize_controller_ScheduleInfo, + }, + // List scheduled runs. +listScheduledRuns: { + path: '/controller.IsolateController/ListScheduledRuns', + requestStream: false, + responseStream: false, + requestType: controller_pb.ListScheduledRunsRequest, + responseType: controller_pb.ListScheduledRunsResponse, + requestSerialize: serialize_controller_ListScheduledRunsRequest, + requestDeserialize: deserialize_controller_ListScheduledRunsRequest, + responseSerialize: serialize_controller_ListScheduledRunsResponse, + responseDeserialize: deserialize_controller_ListScheduledRunsResponse, + }, + // Cancel a scheduled run. +cancelScheduledRun: { + path: '/controller.IsolateController/CancelScheduledRun', + requestStream: false, + responseStream: false, + requestType: controller_pb.CancelScheduledRunRequest, + responseType: controller_pb.CancelScheduledRunResponse, + requestSerialize: serialize_controller_CancelScheduledRunRequest, + requestDeserialize: deserialize_controller_CancelScheduledRunRequest, + responseSerialize: serialize_controller_CancelScheduledRunResponse, + responseDeserialize: deserialize_controller_CancelScheduledRunResponse, + }, + // List all the activations of one scheduled run. +listScheduledRunActivations: { + path: '/controller.IsolateController/ListScheduledRunActivations', + requestStream: false, + responseStream: false, + requestType: controller_pb.ListScheduledRunActivationsRequest, + responseType: controller_pb.ListScheduledRunActivationsResponse, + requestSerialize: serialize_controller_ListScheduledRunActivationsRequest, + requestDeserialize: deserialize_controller_ListScheduledRunActivationsRequest, + responseSerialize: serialize_controller_ListScheduledRunActivationsResponse, + responseDeserialize: deserialize_controller_ListScheduledRunActivationsResponse, + }, + // Get logs from a particular activation of a scheduled run. +getScheduledActivationLogs: { + path: '/controller.IsolateController/GetScheduledActivationLogs', + requestStream: false, + responseStream: false, + requestType: controller_pb.GetScheduledActivationLogsRequest, + responseType: controller_pb.GetScheduledActivationLogsResponse, + requestSerialize: serialize_controller_GetScheduledActivationLogsRequest, + requestDeserialize: deserialize_controller_GetScheduledActivationLogsRequest, + responseSerialize: serialize_controller_GetScheduledActivationLogsResponse, + responseDeserialize: deserialize_controller_GetScheduledActivationLogsResponse, + }, + // Creates an authentication key for a user +createUserKey: { + path: '/controller.IsolateController/CreateUserKey', + requestStream: false, + responseStream: false, + requestType: controller_pb.CreateUserKeyRequest, + responseType: controller_pb.CreateUserKeyResponse, + requestSerialize: serialize_controller_CreateUserKeyRequest, + requestDeserialize: deserialize_controller_CreateUserKeyRequest, + responseSerialize: serialize_controller_CreateUserKeyResponse, + responseDeserialize: deserialize_controller_CreateUserKeyResponse, + }, + // Lists the user's authentication keys +listUserKeys: { + path: '/controller.IsolateController/ListUserKeys', + requestStream: false, + responseStream: false, + requestType: controller_pb.ListUserKeysRequest, + responseType: controller_pb.ListUserKeysResponse, + requestSerialize: serialize_controller_ListUserKeysRequest, + requestDeserialize: deserialize_controller_ListUserKeysRequest, + responseSerialize: serialize_controller_ListUserKeysResponse, + responseDeserialize: deserialize_controller_ListUserKeysResponse, + }, + // Revokes an authentication key for a user +revokeUserKey: { + path: '/controller.IsolateController/RevokeUserKey', + requestStream: false, + responseStream: false, + requestType: controller_pb.RevokeUserKeyRequest, + responseType: controller_pb.RevokeUserKeyResponse, + requestSerialize: serialize_controller_RevokeUserKeyRequest, + requestDeserialize: deserialize_controller_RevokeUserKeyRequest, + responseSerialize: serialize_controller_RevokeUserKeyResponse, + responseDeserialize: deserialize_controller_RevokeUserKeyResponse, + }, +}; + +exports.IsolateControllerClient = grpc.makeGenericClientConstructor(IsolateControllerService); diff --git a/proto/generated/controller_pb.d.ts b/proto/generated/controller_pb.d.ts new file mode 100644 index 0000000..4595067 --- /dev/null +++ b/proto/generated/controller_pb.d.ts @@ -0,0 +1,560 @@ +// package: controller +// file: controller.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as common_pb from "./common_pb"; +import * as server_pb from "./server_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; + +export class HostedMap extends jspb.Message { + clearEnvironmentsList(): void; + getEnvironmentsList(): Array; + setEnvironmentsList(value: Array): HostedMap; + addEnvironments(value?: server_pb.EnvironmentDefinition, index?: number): server_pb.EnvironmentDefinition; + + hasMachineRequirements(): boolean; + clearMachineRequirements(): void; + getMachineRequirements(): MachineRequirements | undefined; + setMachineRequirements(value?: MachineRequirements): HostedMap; + + hasFunction(): boolean; + clearFunction(): void; + getFunction(): common_pb.SerializedObject | undefined; + setFunction(value?: common_pb.SerializedObject): HostedMap; + clearInputsList(): void; + getInputsList(): Array; + setInputsList(value: Array): HostedMap; + addInputs(value?: common_pb.SerializedObject, index?: number): common_pb.SerializedObject; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HostedMap.AsObject; + static toObject(includeInstance: boolean, msg: HostedMap): HostedMap.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HostedMap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HostedMap; + static deserializeBinaryFromReader(message: HostedMap, reader: jspb.BinaryReader): HostedMap; +} + +export namespace HostedMap { + export type AsObject = { + environmentsList: Array, + machineRequirements?: MachineRequirements.AsObject, + pb_function?: common_pb.SerializedObject.AsObject, + inputsList: Array, + } +} + +export class HostedRun extends jspb.Message { + clearEnvironmentsList(): void; + getEnvironmentsList(): Array; + setEnvironmentsList(value: Array): HostedRun; + addEnvironments(value?: server_pb.EnvironmentDefinition, index?: number): server_pb.EnvironmentDefinition; + + hasMachineRequirements(): boolean; + clearMachineRequirements(): void; + getMachineRequirements(): MachineRequirements | undefined; + setMachineRequirements(value?: MachineRequirements): HostedRun; + + hasFunction(): boolean; + clearFunction(): void; + getFunction(): common_pb.SerializedObject | undefined; + setFunction(value?: common_pb.SerializedObject): HostedRun; + + hasSetupFunc(): boolean; + clearSetupFunc(): void; + getSetupFunc(): common_pb.SerializedObject | undefined; + setSetupFunc(value?: common_pb.SerializedObject): HostedRun; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HostedRun.AsObject; + static toObject(includeInstance: boolean, msg: HostedRun): HostedRun.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HostedRun, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HostedRun; + static deserializeBinaryFromReader(message: HostedRun, reader: jspb.BinaryReader): HostedRun; +} + +export namespace HostedRun { + export type AsObject = { + environmentsList: Array, + machineRequirements?: MachineRequirements.AsObject, + pb_function?: common_pb.SerializedObject.AsObject, + setupFunc?: common_pb.SerializedObject.AsObject, + } +} + +export class HostedRunCron extends jspb.Message { + clearEnvironmentsList(): void; + getEnvironmentsList(): Array; + setEnvironmentsList(value: Array): HostedRunCron; + addEnvironments(value?: server_pb.EnvironmentDefinition, index?: number): server_pb.EnvironmentDefinition; + + hasMachineRequirements(): boolean; + clearMachineRequirements(): void; + getMachineRequirements(): MachineRequirements | undefined; + setMachineRequirements(value?: MachineRequirements): HostedRunCron; + + hasFunction(): boolean; + clearFunction(): void; + getFunction(): common_pb.SerializedObject | undefined; + setFunction(value?: common_pb.SerializedObject): HostedRunCron; + getCron(): string; + setCron(value: string): HostedRunCron; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HostedRunCron.AsObject; + static toObject(includeInstance: boolean, msg: HostedRunCron): HostedRunCron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HostedRunCron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HostedRunCron; + static deserializeBinaryFromReader(message: HostedRunCron, reader: jspb.BinaryReader): HostedRunCron; +} + +export namespace HostedRunCron { + export type AsObject = { + environmentsList: Array, + machineRequirements?: MachineRequirements.AsObject, + pb_function?: common_pb.SerializedObject.AsObject, + cron: string, + } +} + +export class CancelScheduledRunRequest extends jspb.Message { + getRunId(): string; + setRunId(value: string): CancelScheduledRunRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CancelScheduledRunRequest.AsObject; + static toObject(includeInstance: boolean, msg: CancelScheduledRunRequest): CancelScheduledRunRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CancelScheduledRunRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CancelScheduledRunRequest; + static deserializeBinaryFromReader(message: CancelScheduledRunRequest, reader: jspb.BinaryReader): CancelScheduledRunRequest; +} + +export namespace CancelScheduledRunRequest { + export type AsObject = { + runId: string, + } +} + +export class CancelScheduledRunResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CancelScheduledRunResponse.AsObject; + static toObject(includeInstance: boolean, msg: CancelScheduledRunResponse): CancelScheduledRunResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CancelScheduledRunResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CancelScheduledRunResponse; + static deserializeBinaryFromReader(message: CancelScheduledRunResponse, reader: jspb.BinaryReader): CancelScheduledRunResponse; +} + +export namespace CancelScheduledRunResponse { + export type AsObject = { + } +} + +export class ListScheduledRunsRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListScheduledRunsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListScheduledRunsRequest): ListScheduledRunsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListScheduledRunsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListScheduledRunsRequest; + static deserializeBinaryFromReader(message: ListScheduledRunsRequest, reader: jspb.BinaryReader): ListScheduledRunsRequest; +} + +export namespace ListScheduledRunsRequest { + export type AsObject = { + } +} + +export class ListScheduledRunActivationsRequest extends jspb.Message { + getRunId(): string; + setRunId(value: string): ListScheduledRunActivationsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListScheduledRunActivationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListScheduledRunActivationsRequest): ListScheduledRunActivationsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListScheduledRunActivationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListScheduledRunActivationsRequest; + static deserializeBinaryFromReader(message: ListScheduledRunActivationsRequest, reader: jspb.BinaryReader): ListScheduledRunActivationsRequest; +} + +export namespace ListScheduledRunActivationsRequest { + export type AsObject = { + runId: string, + } +} + +export class ListScheduledRunActivationsResponse extends jspb.Message { + clearActivationIdsList(): void; + getActivationIdsList(): Array; + setActivationIdsList(value: Array): ListScheduledRunActivationsResponse; + addActivationIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListScheduledRunActivationsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListScheduledRunActivationsResponse): ListScheduledRunActivationsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListScheduledRunActivationsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListScheduledRunActivationsResponse; + static deserializeBinaryFromReader(message: ListScheduledRunActivationsResponse, reader: jspb.BinaryReader): ListScheduledRunActivationsResponse; +} + +export namespace ListScheduledRunActivationsResponse { + export type AsObject = { + activationIdsList: Array, + } +} + +export class ListScheduledRunsResponse extends jspb.Message { + clearScheduledRunsList(): void; + getScheduledRunsList(): Array; + setScheduledRunsList(value: Array): ListScheduledRunsResponse; + addScheduledRuns(value?: ScheduleInfo, index?: number): ScheduleInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListScheduledRunsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListScheduledRunsResponse): ListScheduledRunsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListScheduledRunsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListScheduledRunsResponse; + static deserializeBinaryFromReader(message: ListScheduledRunsResponse, reader: jspb.BinaryReader): ListScheduledRunsResponse; +} + +export namespace ListScheduledRunsResponse { + export type AsObject = { + scheduledRunsList: Array, + } +} + +export class GetScheduledActivationLogsRequest extends jspb.Message { + getRunId(): string; + setRunId(value: string): GetScheduledActivationLogsRequest; + getActivationId(): string; + setActivationId(value: string): GetScheduledActivationLogsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetScheduledActivationLogsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetScheduledActivationLogsRequest): GetScheduledActivationLogsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetScheduledActivationLogsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetScheduledActivationLogsRequest; + static deserializeBinaryFromReader(message: GetScheduledActivationLogsRequest, reader: jspb.BinaryReader): GetScheduledActivationLogsRequest; +} + +export namespace GetScheduledActivationLogsRequest { + export type AsObject = { + runId: string, + activationId: string, + } +} + +export class GetScheduledActivationLogsResponse extends jspb.Message { + getRawLogs(): Uint8Array | string; + getRawLogs_asU8(): Uint8Array; + getRawLogs_asB64(): string; + setRawLogs(value: Uint8Array | string): GetScheduledActivationLogsResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetScheduledActivationLogsResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetScheduledActivationLogsResponse): GetScheduledActivationLogsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetScheduledActivationLogsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetScheduledActivationLogsResponse; + static deserializeBinaryFromReader(message: GetScheduledActivationLogsResponse, reader: jspb.BinaryReader): GetScheduledActivationLogsResponse; +} + +export namespace GetScheduledActivationLogsResponse { + export type AsObject = { + rawLogs: Uint8Array | string, + } +} + +export class CreateUserKeyRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateUserKeyRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateUserKeyRequest): CreateUserKeyRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateUserKeyRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateUserKeyRequest; + static deserializeBinaryFromReader(message: CreateUserKeyRequest, reader: jspb.BinaryReader): CreateUserKeyRequest; +} + +export namespace CreateUserKeyRequest { + export type AsObject = { + } +} + +export class CreateUserKeyResponse extends jspb.Message { + getKeySecret(): string; + setKeySecret(value: string): CreateUserKeyResponse; + getKeyId(): string; + setKeyId(value: string): CreateUserKeyResponse; + + hasDescription(): boolean; + clearDescription(): void; + getDescription(): string | undefined; + setDescription(value: string): CreateUserKeyResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateUserKeyResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateUserKeyResponse): CreateUserKeyResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateUserKeyResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateUserKeyResponse; + static deserializeBinaryFromReader(message: CreateUserKeyResponse, reader: jspb.BinaryReader): CreateUserKeyResponse; +} + +export namespace CreateUserKeyResponse { + export type AsObject = { + keySecret: string, + keyId: string, + description?: string, + } +} + +export class ListUserKeysRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListUserKeysRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListUserKeysRequest): ListUserKeysRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListUserKeysRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListUserKeysRequest; + static deserializeBinaryFromReader(message: ListUserKeysRequest, reader: jspb.BinaryReader): ListUserKeysRequest; +} + +export namespace ListUserKeysRequest { + export type AsObject = { + } +} + +export class ListUserKeysResponse extends jspb.Message { + clearUserKeysList(): void; + getUserKeysList(): Array; + setUserKeysList(value: Array): ListUserKeysResponse; + addUserKeys(value?: UserKeyInfo, index?: number): UserKeyInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListUserKeysResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListUserKeysResponse): ListUserKeysResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListUserKeysResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListUserKeysResponse; + static deserializeBinaryFromReader(message: ListUserKeysResponse, reader: jspb.BinaryReader): ListUserKeysResponse; +} + +export namespace ListUserKeysResponse { + export type AsObject = { + userKeysList: Array, + } +} + +export class RevokeUserKeyRequest extends jspb.Message { + getKeyId(): string; + setKeyId(value: string): RevokeUserKeyRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RevokeUserKeyRequest.AsObject; + static toObject(includeInstance: boolean, msg: RevokeUserKeyRequest): RevokeUserKeyRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RevokeUserKeyRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RevokeUserKeyRequest; + static deserializeBinaryFromReader(message: RevokeUserKeyRequest, reader: jspb.BinaryReader): RevokeUserKeyRequest; +} + +export namespace RevokeUserKeyRequest { + export type AsObject = { + keyId: string, + } +} + +export class RevokeUserKeyResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RevokeUserKeyResponse.AsObject; + static toObject(includeInstance: boolean, msg: RevokeUserKeyResponse): RevokeUserKeyResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RevokeUserKeyResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RevokeUserKeyResponse; + static deserializeBinaryFromReader(message: RevokeUserKeyResponse, reader: jspb.BinaryReader): RevokeUserKeyResponse; +} + +export namespace RevokeUserKeyResponse { + export type AsObject = { + } +} + +export class UserKeyInfo extends jspb.Message { + getKeyId(): string; + setKeyId(value: string): UserKeyInfo; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserKeyInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UserKeyInfo.AsObject; + static toObject(includeInstance: boolean, msg: UserKeyInfo): UserKeyInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UserKeyInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UserKeyInfo; + static deserializeBinaryFromReader(message: UserKeyInfo, reader: jspb.BinaryReader): UserKeyInfo; +} + +export namespace UserKeyInfo { + export type AsObject = { + keyId: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class ScheduleInfo extends jspb.Message { + getRunId(): string; + setRunId(value: string): ScheduleInfo; + getState(): ScheduleInfo.State; + setState(value: ScheduleInfo.State): ScheduleInfo; + getCron(): string; + setCron(value: string): ScheduleInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScheduleInfo.AsObject; + static toObject(includeInstance: boolean, msg: ScheduleInfo): ScheduleInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScheduleInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScheduleInfo; + static deserializeBinaryFromReader(message: ScheduleInfo, reader: jspb.BinaryReader): ScheduleInfo; +} + +export namespace ScheduleInfo { + export type AsObject = { + runId: string, + state: ScheduleInfo.State, + cron: string, + } + + export enum State { + SCHEDULED = 0, + INTERNAL_FAILURE = 1, + CANCELLED = 2, + } + +} + +export class HostedRunResult extends jspb.Message { + getRunId(): string; + setRunId(value: string): HostedRunResult; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): HostedRunStatus | undefined; + setStatus(value?: HostedRunStatus): HostedRunResult; + clearLogsList(): void; + getLogsList(): Array; + setLogsList(value: Array): HostedRunResult; + addLogs(value?: common_pb.Log, index?: number): common_pb.Log; + + hasReturnValue(): boolean; + clearReturnValue(): void; + getReturnValue(): common_pb.SerializedObject | undefined; + setReturnValue(value?: common_pb.SerializedObject): HostedRunResult; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HostedRunResult.AsObject; + static toObject(includeInstance: boolean, msg: HostedRunResult): HostedRunResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HostedRunResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HostedRunResult; + static deserializeBinaryFromReader(message: HostedRunResult, reader: jspb.BinaryReader): HostedRunResult; +} + +export namespace HostedRunResult { + export type AsObject = { + runId: string, + status?: HostedRunStatus.AsObject, + logsList: Array, + returnValue?: common_pb.SerializedObject.AsObject, + } +} + +export class HostedRunStatus extends jspb.Message { + getState(): HostedRunStatus.State; + setState(value: HostedRunStatus.State): HostedRunStatus; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HostedRunStatus.AsObject; + static toObject(includeInstance: boolean, msg: HostedRunStatus): HostedRunStatus.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HostedRunStatus, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HostedRunStatus; + static deserializeBinaryFromReader(message: HostedRunStatus, reader: jspb.BinaryReader): HostedRunStatus; +} + +export namespace HostedRunStatus { + export type AsObject = { + state: HostedRunStatus.State, + } + + export enum State { + IN_PROGRESS = 0, + SUCCESS = 1, + INTERNAL_FAILURE = 2, + } + +} + +export class MachineRequirements extends jspb.Message { + getMachineType(): string; + setMachineType(value: string): MachineRequirements; + + hasKeepAlive(): boolean; + clearKeepAlive(): void; + getKeepAlive(): number | undefined; + setKeepAlive(value: number): MachineRequirements; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MachineRequirements.AsObject; + static toObject(includeInstance: boolean, msg: MachineRequirements): MachineRequirements.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MachineRequirements, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MachineRequirements; + static deserializeBinaryFromReader(message: MachineRequirements, reader: jspb.BinaryReader): MachineRequirements; +} + +export namespace MachineRequirements { + export type AsObject = { + machineType: string, + keepAlive?: number, + } +} diff --git a/proto/generated/controller_pb.js b/proto/generated/controller_pb.js new file mode 100644 index 0000000..629fd35 --- /dev/null +++ b/proto/generated/controller_pb.js @@ -0,0 +1,4312 @@ +// source: controller.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var common_pb = require('./common_pb.js'); +goog.object.extend(proto, common_pb); +var server_pb = require('./server_pb.js'); +goog.object.extend(proto, server_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +goog.exportSymbol('proto.controller.CancelScheduledRunRequest', null, global); +goog.exportSymbol('proto.controller.CancelScheduledRunResponse', null, global); +goog.exportSymbol('proto.controller.CreateUserKeyRequest', null, global); +goog.exportSymbol('proto.controller.CreateUserKeyResponse', null, global); +goog.exportSymbol('proto.controller.GetScheduledActivationLogsRequest', null, global); +goog.exportSymbol('proto.controller.GetScheduledActivationLogsResponse', null, global); +goog.exportSymbol('proto.controller.HostedMap', null, global); +goog.exportSymbol('proto.controller.HostedRun', null, global); +goog.exportSymbol('proto.controller.HostedRunCron', null, global); +goog.exportSymbol('proto.controller.HostedRunResult', null, global); +goog.exportSymbol('proto.controller.HostedRunStatus', null, global); +goog.exportSymbol('proto.controller.HostedRunStatus.State', null, global); +goog.exportSymbol('proto.controller.ListScheduledRunActivationsRequest', null, global); +goog.exportSymbol('proto.controller.ListScheduledRunActivationsResponse', null, global); +goog.exportSymbol('proto.controller.ListScheduledRunsRequest', null, global); +goog.exportSymbol('proto.controller.ListScheduledRunsResponse', null, global); +goog.exportSymbol('proto.controller.ListUserKeysRequest', null, global); +goog.exportSymbol('proto.controller.ListUserKeysResponse', null, global); +goog.exportSymbol('proto.controller.MachineRequirements', null, global); +goog.exportSymbol('proto.controller.RevokeUserKeyRequest', null, global); +goog.exportSymbol('proto.controller.RevokeUserKeyResponse', null, global); +goog.exportSymbol('proto.controller.ScheduleInfo', null, global); +goog.exportSymbol('proto.controller.ScheduleInfo.State', null, global); +goog.exportSymbol('proto.controller.UserKeyInfo', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.HostedMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.controller.HostedMap.repeatedFields_, null); +}; +goog.inherits(proto.controller.HostedMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.HostedMap.displayName = 'proto.controller.HostedMap'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.HostedRun = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.controller.HostedRun.repeatedFields_, null); +}; +goog.inherits(proto.controller.HostedRun, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.HostedRun.displayName = 'proto.controller.HostedRun'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.HostedRunCron = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.controller.HostedRunCron.repeatedFields_, null); +}; +goog.inherits(proto.controller.HostedRunCron, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.HostedRunCron.displayName = 'proto.controller.HostedRunCron'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.CancelScheduledRunRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.CancelScheduledRunRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.CancelScheduledRunRequest.displayName = 'proto.controller.CancelScheduledRunRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.CancelScheduledRunResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.CancelScheduledRunResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.CancelScheduledRunResponse.displayName = 'proto.controller.CancelScheduledRunResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.ListScheduledRunsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.ListScheduledRunsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.ListScheduledRunsRequest.displayName = 'proto.controller.ListScheduledRunsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.ListScheduledRunActivationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.ListScheduledRunActivationsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.ListScheduledRunActivationsRequest.displayName = 'proto.controller.ListScheduledRunActivationsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.ListScheduledRunActivationsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.controller.ListScheduledRunActivationsResponse.repeatedFields_, null); +}; +goog.inherits(proto.controller.ListScheduledRunActivationsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.ListScheduledRunActivationsResponse.displayName = 'proto.controller.ListScheduledRunActivationsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.ListScheduledRunsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.controller.ListScheduledRunsResponse.repeatedFields_, null); +}; +goog.inherits(proto.controller.ListScheduledRunsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.ListScheduledRunsResponse.displayName = 'proto.controller.ListScheduledRunsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.GetScheduledActivationLogsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.GetScheduledActivationLogsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.GetScheduledActivationLogsRequest.displayName = 'proto.controller.GetScheduledActivationLogsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.GetScheduledActivationLogsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.GetScheduledActivationLogsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.GetScheduledActivationLogsResponse.displayName = 'proto.controller.GetScheduledActivationLogsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.CreateUserKeyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.CreateUserKeyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.CreateUserKeyRequest.displayName = 'proto.controller.CreateUserKeyRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.CreateUserKeyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.CreateUserKeyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.CreateUserKeyResponse.displayName = 'proto.controller.CreateUserKeyResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.ListUserKeysRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.ListUserKeysRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.ListUserKeysRequest.displayName = 'proto.controller.ListUserKeysRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.ListUserKeysResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.controller.ListUserKeysResponse.repeatedFields_, null); +}; +goog.inherits(proto.controller.ListUserKeysResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.ListUserKeysResponse.displayName = 'proto.controller.ListUserKeysResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.RevokeUserKeyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.RevokeUserKeyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.RevokeUserKeyRequest.displayName = 'proto.controller.RevokeUserKeyRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.RevokeUserKeyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.RevokeUserKeyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.RevokeUserKeyResponse.displayName = 'proto.controller.RevokeUserKeyResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.UserKeyInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.UserKeyInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.UserKeyInfo.displayName = 'proto.controller.UserKeyInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.ScheduleInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.ScheduleInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.ScheduleInfo.displayName = 'proto.controller.ScheduleInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.HostedRunResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.controller.HostedRunResult.repeatedFields_, null); +}; +goog.inherits(proto.controller.HostedRunResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.HostedRunResult.displayName = 'proto.controller.HostedRunResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.HostedRunStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.HostedRunStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.HostedRunStatus.displayName = 'proto.controller.HostedRunStatus'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.controller.MachineRequirements = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.controller.MachineRequirements, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.controller.MachineRequirements.displayName = 'proto.controller.MachineRequirements'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.controller.HostedMap.repeatedFields_ = [1,4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.HostedMap.prototype.toObject = function(opt_includeInstance) { + return proto.controller.HostedMap.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.HostedMap} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedMap.toObject = function(includeInstance, msg) { + var f, obj = { + environmentsList: jspb.Message.toObjectList(msg.getEnvironmentsList(), + server_pb.EnvironmentDefinition.toObject, includeInstance), + machineRequirements: (f = msg.getMachineRequirements()) && proto.controller.MachineRequirements.toObject(includeInstance, f), + pb_function: (f = msg.getFunction()) && common_pb.SerializedObject.toObject(includeInstance, f), + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + common_pb.SerializedObject.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.HostedMap} + */ +proto.controller.HostedMap.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.HostedMap; + return proto.controller.HostedMap.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.HostedMap} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.HostedMap} + */ +proto.controller.HostedMap.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new server_pb.EnvironmentDefinition; + reader.readMessage(value,server_pb.EnvironmentDefinition.deserializeBinaryFromReader); + msg.addEnvironments(value); + break; + case 2: + var value = new proto.controller.MachineRequirements; + reader.readMessage(value,proto.controller.MachineRequirements.deserializeBinaryFromReader); + msg.setMachineRequirements(value); + break; + case 3: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.setFunction(value); + break; + case 4: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.addInputs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.HostedMap.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.HostedMap.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.HostedMap} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedMap.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnvironmentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + server_pb.EnvironmentDefinition.serializeBinaryToWriter + ); + } + f = message.getMachineRequirements(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.controller.MachineRequirements.serializeBinaryToWriter + ); + } + f = message.getFunction(); + if (f != null) { + writer.writeMessage( + 3, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated EnvironmentDefinition environments = 1; + * @return {!Array} + */ +proto.controller.HostedMap.prototype.getEnvironmentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, server_pb.EnvironmentDefinition, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.HostedMap} returns this +*/ +proto.controller.HostedMap.prototype.setEnvironmentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.EnvironmentDefinition=} opt_value + * @param {number=} opt_index + * @return {!proto.EnvironmentDefinition} + */ +proto.controller.HostedMap.prototype.addEnvironments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.EnvironmentDefinition, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.HostedMap} returns this + */ +proto.controller.HostedMap.prototype.clearEnvironmentsList = function() { + return this.setEnvironmentsList([]); +}; + + +/** + * optional MachineRequirements machine_requirements = 2; + * @return {?proto.controller.MachineRequirements} + */ +proto.controller.HostedMap.prototype.getMachineRequirements = function() { + return /** @type{?proto.controller.MachineRequirements} */ ( + jspb.Message.getWrapperField(this, proto.controller.MachineRequirements, 2)); +}; + + +/** + * @param {?proto.controller.MachineRequirements|undefined} value + * @return {!proto.controller.HostedMap} returns this +*/ +proto.controller.HostedMap.prototype.setMachineRequirements = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedMap} returns this + */ +proto.controller.HostedMap.prototype.clearMachineRequirements = function() { + return this.setMachineRequirements(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedMap.prototype.hasMachineRequirements = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional SerializedObject function = 3; + * @return {?proto.SerializedObject} + */ +proto.controller.HostedMap.prototype.getFunction = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, common_pb.SerializedObject, 3)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.controller.HostedMap} returns this +*/ +proto.controller.HostedMap.prototype.setFunction = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedMap} returns this + */ +proto.controller.HostedMap.prototype.clearFunction = function() { + return this.setFunction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedMap.prototype.hasFunction = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * repeated SerializedObject inputs = 4; + * @return {!Array} + */ +proto.controller.HostedMap.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.SerializedObject, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.HostedMap} returns this +*/ +proto.controller.HostedMap.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.SerializedObject=} opt_value + * @param {number=} opt_index + * @return {!proto.SerializedObject} + */ +proto.controller.HostedMap.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.SerializedObject, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.HostedMap} returns this + */ +proto.controller.HostedMap.prototype.clearInputsList = function() { + return this.setInputsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.controller.HostedRun.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.HostedRun.prototype.toObject = function(opt_includeInstance) { + return proto.controller.HostedRun.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.HostedRun} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRun.toObject = function(includeInstance, msg) { + var f, obj = { + environmentsList: jspb.Message.toObjectList(msg.getEnvironmentsList(), + server_pb.EnvironmentDefinition.toObject, includeInstance), + machineRequirements: (f = msg.getMachineRequirements()) && proto.controller.MachineRequirements.toObject(includeInstance, f), + pb_function: (f = msg.getFunction()) && common_pb.SerializedObject.toObject(includeInstance, f), + setupFunc: (f = msg.getSetupFunc()) && common_pb.SerializedObject.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.HostedRun} + */ +proto.controller.HostedRun.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.HostedRun; + return proto.controller.HostedRun.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.HostedRun} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.HostedRun} + */ +proto.controller.HostedRun.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new server_pb.EnvironmentDefinition; + reader.readMessage(value,server_pb.EnvironmentDefinition.deserializeBinaryFromReader); + msg.addEnvironments(value); + break; + case 2: + var value = new proto.controller.MachineRequirements; + reader.readMessage(value,proto.controller.MachineRequirements.deserializeBinaryFromReader); + msg.setMachineRequirements(value); + break; + case 3: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.setFunction(value); + break; + case 4: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.setSetupFunc(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.HostedRun.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.HostedRun.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.HostedRun} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRun.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnvironmentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + server_pb.EnvironmentDefinition.serializeBinaryToWriter + ); + } + f = message.getMachineRequirements(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.controller.MachineRequirements.serializeBinaryToWriter + ); + } + f = message.getFunction(); + if (f != null) { + writer.writeMessage( + 3, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } + f = message.getSetupFunc(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated EnvironmentDefinition environments = 1; + * @return {!Array} + */ +proto.controller.HostedRun.prototype.getEnvironmentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, server_pb.EnvironmentDefinition, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.HostedRun} returns this +*/ +proto.controller.HostedRun.prototype.setEnvironmentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.EnvironmentDefinition=} opt_value + * @param {number=} opt_index + * @return {!proto.EnvironmentDefinition} + */ +proto.controller.HostedRun.prototype.addEnvironments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.EnvironmentDefinition, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.HostedRun} returns this + */ +proto.controller.HostedRun.prototype.clearEnvironmentsList = function() { + return this.setEnvironmentsList([]); +}; + + +/** + * optional MachineRequirements machine_requirements = 2; + * @return {?proto.controller.MachineRequirements} + */ +proto.controller.HostedRun.prototype.getMachineRequirements = function() { + return /** @type{?proto.controller.MachineRequirements} */ ( + jspb.Message.getWrapperField(this, proto.controller.MachineRequirements, 2)); +}; + + +/** + * @param {?proto.controller.MachineRequirements|undefined} value + * @return {!proto.controller.HostedRun} returns this +*/ +proto.controller.HostedRun.prototype.setMachineRequirements = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedRun} returns this + */ +proto.controller.HostedRun.prototype.clearMachineRequirements = function() { + return this.setMachineRequirements(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedRun.prototype.hasMachineRequirements = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional SerializedObject function = 3; + * @return {?proto.SerializedObject} + */ +proto.controller.HostedRun.prototype.getFunction = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, common_pb.SerializedObject, 3)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.controller.HostedRun} returns this +*/ +proto.controller.HostedRun.prototype.setFunction = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedRun} returns this + */ +proto.controller.HostedRun.prototype.clearFunction = function() { + return this.setFunction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedRun.prototype.hasFunction = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional SerializedObject setup_func = 4; + * @return {?proto.SerializedObject} + */ +proto.controller.HostedRun.prototype.getSetupFunc = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, common_pb.SerializedObject, 4)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.controller.HostedRun} returns this +*/ +proto.controller.HostedRun.prototype.setSetupFunc = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedRun} returns this + */ +proto.controller.HostedRun.prototype.clearSetupFunc = function() { + return this.setSetupFunc(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedRun.prototype.hasSetupFunc = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.controller.HostedRunCron.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.HostedRunCron.prototype.toObject = function(opt_includeInstance) { + return proto.controller.HostedRunCron.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.HostedRunCron} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRunCron.toObject = function(includeInstance, msg) { + var f, obj = { + environmentsList: jspb.Message.toObjectList(msg.getEnvironmentsList(), + server_pb.EnvironmentDefinition.toObject, includeInstance), + machineRequirements: (f = msg.getMachineRequirements()) && proto.controller.MachineRequirements.toObject(includeInstance, f), + pb_function: (f = msg.getFunction()) && common_pb.SerializedObject.toObject(includeInstance, f), + cron: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.HostedRunCron} + */ +proto.controller.HostedRunCron.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.HostedRunCron; + return proto.controller.HostedRunCron.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.HostedRunCron} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.HostedRunCron} + */ +proto.controller.HostedRunCron.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new server_pb.EnvironmentDefinition; + reader.readMessage(value,server_pb.EnvironmentDefinition.deserializeBinaryFromReader); + msg.addEnvironments(value); + break; + case 2: + var value = new proto.controller.MachineRequirements; + reader.readMessage(value,proto.controller.MachineRequirements.deserializeBinaryFromReader); + msg.setMachineRequirements(value); + break; + case 3: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.setFunction(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setCron(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.HostedRunCron.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.HostedRunCron.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.HostedRunCron} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRunCron.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnvironmentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + server_pb.EnvironmentDefinition.serializeBinaryToWriter + ); + } + f = message.getMachineRequirements(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.controller.MachineRequirements.serializeBinaryToWriter + ); + } + f = message.getFunction(); + if (f != null) { + writer.writeMessage( + 3, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } + f = message.getCron(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * repeated EnvironmentDefinition environments = 1; + * @return {!Array} + */ +proto.controller.HostedRunCron.prototype.getEnvironmentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, server_pb.EnvironmentDefinition, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.HostedRunCron} returns this +*/ +proto.controller.HostedRunCron.prototype.setEnvironmentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.EnvironmentDefinition=} opt_value + * @param {number=} opt_index + * @return {!proto.EnvironmentDefinition} + */ +proto.controller.HostedRunCron.prototype.addEnvironments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.EnvironmentDefinition, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.HostedRunCron} returns this + */ +proto.controller.HostedRunCron.prototype.clearEnvironmentsList = function() { + return this.setEnvironmentsList([]); +}; + + +/** + * optional MachineRequirements machine_requirements = 2; + * @return {?proto.controller.MachineRequirements} + */ +proto.controller.HostedRunCron.prototype.getMachineRequirements = function() { + return /** @type{?proto.controller.MachineRequirements} */ ( + jspb.Message.getWrapperField(this, proto.controller.MachineRequirements, 2)); +}; + + +/** + * @param {?proto.controller.MachineRequirements|undefined} value + * @return {!proto.controller.HostedRunCron} returns this +*/ +proto.controller.HostedRunCron.prototype.setMachineRequirements = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedRunCron} returns this + */ +proto.controller.HostedRunCron.prototype.clearMachineRequirements = function() { + return this.setMachineRequirements(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedRunCron.prototype.hasMachineRequirements = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional SerializedObject function = 3; + * @return {?proto.SerializedObject} + */ +proto.controller.HostedRunCron.prototype.getFunction = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, common_pb.SerializedObject, 3)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.controller.HostedRunCron} returns this +*/ +proto.controller.HostedRunCron.prototype.setFunction = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedRunCron} returns this + */ +proto.controller.HostedRunCron.prototype.clearFunction = function() { + return this.setFunction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedRunCron.prototype.hasFunction = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string cron = 4; + * @return {string} + */ +proto.controller.HostedRunCron.prototype.getCron = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.HostedRunCron} returns this + */ +proto.controller.HostedRunCron.prototype.setCron = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.CancelScheduledRunRequest.prototype.toObject = function(opt_includeInstance) { + return proto.controller.CancelScheduledRunRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.CancelScheduledRunRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CancelScheduledRunRequest.toObject = function(includeInstance, msg) { + var f, obj = { + runId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.CancelScheduledRunRequest} + */ +proto.controller.CancelScheduledRunRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.CancelScheduledRunRequest; + return proto.controller.CancelScheduledRunRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.CancelScheduledRunRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.CancelScheduledRunRequest} + */ +proto.controller.CancelScheduledRunRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setRunId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.CancelScheduledRunRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.CancelScheduledRunRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.CancelScheduledRunRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CancelScheduledRunRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRunId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string run_id = 1; + * @return {string} + */ +proto.controller.CancelScheduledRunRequest.prototype.getRunId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.CancelScheduledRunRequest} returns this + */ +proto.controller.CancelScheduledRunRequest.prototype.setRunId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.CancelScheduledRunResponse.prototype.toObject = function(opt_includeInstance) { + return proto.controller.CancelScheduledRunResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.CancelScheduledRunResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CancelScheduledRunResponse.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.CancelScheduledRunResponse} + */ +proto.controller.CancelScheduledRunResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.CancelScheduledRunResponse; + return proto.controller.CancelScheduledRunResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.CancelScheduledRunResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.CancelScheduledRunResponse} + */ +proto.controller.CancelScheduledRunResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.CancelScheduledRunResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.CancelScheduledRunResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.CancelScheduledRunResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CancelScheduledRunResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.ListScheduledRunsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.controller.ListScheduledRunsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.ListScheduledRunsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.ListScheduledRunsRequest} + */ +proto.controller.ListScheduledRunsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.ListScheduledRunsRequest; + return proto.controller.ListScheduledRunsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.ListScheduledRunsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.ListScheduledRunsRequest} + */ +proto.controller.ListScheduledRunsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.ListScheduledRunsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.ListScheduledRunsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.ListScheduledRunsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.ListScheduledRunActivationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.controller.ListScheduledRunActivationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.ListScheduledRunActivationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunActivationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + runId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.ListScheduledRunActivationsRequest} + */ +proto.controller.ListScheduledRunActivationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.ListScheduledRunActivationsRequest; + return proto.controller.ListScheduledRunActivationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.ListScheduledRunActivationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.ListScheduledRunActivationsRequest} + */ +proto.controller.ListScheduledRunActivationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setRunId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.ListScheduledRunActivationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.ListScheduledRunActivationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.ListScheduledRunActivationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunActivationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRunId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string run_id = 1; + * @return {string} + */ +proto.controller.ListScheduledRunActivationsRequest.prototype.getRunId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.ListScheduledRunActivationsRequest} returns this + */ +proto.controller.ListScheduledRunActivationsRequest.prototype.setRunId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.controller.ListScheduledRunActivationsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.ListScheduledRunActivationsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.controller.ListScheduledRunActivationsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.ListScheduledRunActivationsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunActivationsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + activationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.ListScheduledRunActivationsResponse} + */ +proto.controller.ListScheduledRunActivationsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.ListScheduledRunActivationsResponse; + return proto.controller.ListScheduledRunActivationsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.ListScheduledRunActivationsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.ListScheduledRunActivationsResponse} + */ +proto.controller.ListScheduledRunActivationsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addActivationIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.ListScheduledRunActivationsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.ListScheduledRunActivationsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.ListScheduledRunActivationsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunActivationsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getActivationIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string activation_ids = 1; + * @return {!Array} + */ +proto.controller.ListScheduledRunActivationsResponse.prototype.getActivationIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.ListScheduledRunActivationsResponse} returns this + */ +proto.controller.ListScheduledRunActivationsResponse.prototype.setActivationIdsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.controller.ListScheduledRunActivationsResponse} returns this + */ +proto.controller.ListScheduledRunActivationsResponse.prototype.addActivationIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.ListScheduledRunActivationsResponse} returns this + */ +proto.controller.ListScheduledRunActivationsResponse.prototype.clearActivationIdsList = function() { + return this.setActivationIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.controller.ListScheduledRunsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.ListScheduledRunsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.controller.ListScheduledRunsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.ListScheduledRunsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + scheduledRunsList: jspb.Message.toObjectList(msg.getScheduledRunsList(), + proto.controller.ScheduleInfo.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.ListScheduledRunsResponse} + */ +proto.controller.ListScheduledRunsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.ListScheduledRunsResponse; + return proto.controller.ListScheduledRunsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.ListScheduledRunsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.ListScheduledRunsResponse} + */ +proto.controller.ListScheduledRunsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.controller.ScheduleInfo; + reader.readMessage(value,proto.controller.ScheduleInfo.deserializeBinaryFromReader); + msg.addScheduledRuns(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.ListScheduledRunsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.ListScheduledRunsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.ListScheduledRunsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListScheduledRunsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getScheduledRunsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.controller.ScheduleInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ScheduleInfo scheduled_runs = 1; + * @return {!Array} + */ +proto.controller.ListScheduledRunsResponse.prototype.getScheduledRunsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.controller.ScheduleInfo, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.ListScheduledRunsResponse} returns this +*/ +proto.controller.ListScheduledRunsResponse.prototype.setScheduledRunsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.controller.ScheduleInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.controller.ScheduleInfo} + */ +proto.controller.ListScheduledRunsResponse.prototype.addScheduledRuns = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.controller.ScheduleInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.ListScheduledRunsResponse} returns this + */ +proto.controller.ListScheduledRunsResponse.prototype.clearScheduledRunsList = function() { + return this.setScheduledRunsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.GetScheduledActivationLogsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.controller.GetScheduledActivationLogsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.GetScheduledActivationLogsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.GetScheduledActivationLogsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + runId: jspb.Message.getFieldWithDefault(msg, 1, ""), + activationId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.GetScheduledActivationLogsRequest} + */ +proto.controller.GetScheduledActivationLogsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.GetScheduledActivationLogsRequest; + return proto.controller.GetScheduledActivationLogsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.GetScheduledActivationLogsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.GetScheduledActivationLogsRequest} + */ +proto.controller.GetScheduledActivationLogsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setRunId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setActivationId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.GetScheduledActivationLogsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.GetScheduledActivationLogsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.GetScheduledActivationLogsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.GetScheduledActivationLogsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRunId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getActivationId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string run_id = 1; + * @return {string} + */ +proto.controller.GetScheduledActivationLogsRequest.prototype.getRunId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.GetScheduledActivationLogsRequest} returns this + */ +proto.controller.GetScheduledActivationLogsRequest.prototype.setRunId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string activation_id = 2; + * @return {string} + */ +proto.controller.GetScheduledActivationLogsRequest.prototype.getActivationId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.GetScheduledActivationLogsRequest} returns this + */ +proto.controller.GetScheduledActivationLogsRequest.prototype.setActivationId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.GetScheduledActivationLogsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.controller.GetScheduledActivationLogsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.GetScheduledActivationLogsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.GetScheduledActivationLogsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + rawLogs: msg.getRawLogs_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.GetScheduledActivationLogsResponse} + */ +proto.controller.GetScheduledActivationLogsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.GetScheduledActivationLogsResponse; + return proto.controller.GetScheduledActivationLogsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.GetScheduledActivationLogsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.GetScheduledActivationLogsResponse} + */ +proto.controller.GetScheduledActivationLogsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setRawLogs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.GetScheduledActivationLogsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.GetScheduledActivationLogsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.GetScheduledActivationLogsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.GetScheduledActivationLogsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRawLogs_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes raw_logs = 1; + * @return {!(string|Uint8Array)} + */ +proto.controller.GetScheduledActivationLogsResponse.prototype.getRawLogs = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes raw_logs = 1; + * This is a type-conversion wrapper around `getRawLogs()` + * @return {string} + */ +proto.controller.GetScheduledActivationLogsResponse.prototype.getRawLogs_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getRawLogs())); +}; + + +/** + * optional bytes raw_logs = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getRawLogs()` + * @return {!Uint8Array} + */ +proto.controller.GetScheduledActivationLogsResponse.prototype.getRawLogs_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getRawLogs())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.controller.GetScheduledActivationLogsResponse} returns this + */ +proto.controller.GetScheduledActivationLogsResponse.prototype.setRawLogs = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.CreateUserKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.controller.CreateUserKeyRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.CreateUserKeyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CreateUserKeyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.CreateUserKeyRequest} + */ +proto.controller.CreateUserKeyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.CreateUserKeyRequest; + return proto.controller.CreateUserKeyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.CreateUserKeyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.CreateUserKeyRequest} + */ +proto.controller.CreateUserKeyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.CreateUserKeyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.CreateUserKeyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.CreateUserKeyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CreateUserKeyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.CreateUserKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.controller.CreateUserKeyResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.CreateUserKeyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CreateUserKeyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + keySecret: jspb.Message.getFieldWithDefault(msg, 1, ""), + keyId: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.CreateUserKeyResponse} + */ +proto.controller.CreateUserKeyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.CreateUserKeyResponse; + return proto.controller.CreateUserKeyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.CreateUserKeyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.CreateUserKeyResponse} + */ +proto.controller.CreateUserKeyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setKeySecret(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.CreateUserKeyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.CreateUserKeyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.CreateUserKeyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.CreateUserKeyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKeySecret(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getKeyId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string key_secret = 1; + * @return {string} + */ +proto.controller.CreateUserKeyResponse.prototype.getKeySecret = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.CreateUserKeyResponse} returns this + */ +proto.controller.CreateUserKeyResponse.prototype.setKeySecret = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string key_id = 2; + * @return {string} + */ +proto.controller.CreateUserKeyResponse.prototype.getKeyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.CreateUserKeyResponse} returns this + */ +proto.controller.CreateUserKeyResponse.prototype.setKeyId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.controller.CreateUserKeyResponse.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.CreateUserKeyResponse} returns this + */ +proto.controller.CreateUserKeyResponse.prototype.setDescription = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.controller.CreateUserKeyResponse} returns this + */ +proto.controller.CreateUserKeyResponse.prototype.clearDescription = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.CreateUserKeyResponse.prototype.hasDescription = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.ListUserKeysRequest.prototype.toObject = function(opt_includeInstance) { + return proto.controller.ListUserKeysRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.ListUserKeysRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListUserKeysRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.ListUserKeysRequest} + */ +proto.controller.ListUserKeysRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.ListUserKeysRequest; + return proto.controller.ListUserKeysRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.ListUserKeysRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.ListUserKeysRequest} + */ +proto.controller.ListUserKeysRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.ListUserKeysRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.ListUserKeysRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.ListUserKeysRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListUserKeysRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.controller.ListUserKeysResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.ListUserKeysResponse.prototype.toObject = function(opt_includeInstance) { + return proto.controller.ListUserKeysResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.ListUserKeysResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListUserKeysResponse.toObject = function(includeInstance, msg) { + var f, obj = { + userKeysList: jspb.Message.toObjectList(msg.getUserKeysList(), + proto.controller.UserKeyInfo.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.ListUserKeysResponse} + */ +proto.controller.ListUserKeysResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.ListUserKeysResponse; + return proto.controller.ListUserKeysResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.ListUserKeysResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.ListUserKeysResponse} + */ +proto.controller.ListUserKeysResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.controller.UserKeyInfo; + reader.readMessage(value,proto.controller.UserKeyInfo.deserializeBinaryFromReader); + msg.addUserKeys(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.ListUserKeysResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.ListUserKeysResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.ListUserKeysResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ListUserKeysResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserKeysList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.controller.UserKeyInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated UserKeyInfo user_keys = 1; + * @return {!Array} + */ +proto.controller.ListUserKeysResponse.prototype.getUserKeysList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.controller.UserKeyInfo, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.ListUserKeysResponse} returns this +*/ +proto.controller.ListUserKeysResponse.prototype.setUserKeysList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.controller.UserKeyInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.controller.UserKeyInfo} + */ +proto.controller.ListUserKeysResponse.prototype.addUserKeys = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.controller.UserKeyInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.ListUserKeysResponse} returns this + */ +proto.controller.ListUserKeysResponse.prototype.clearUserKeysList = function() { + return this.setUserKeysList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.RevokeUserKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.controller.RevokeUserKeyRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.RevokeUserKeyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.RevokeUserKeyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + keyId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.RevokeUserKeyRequest} + */ +proto.controller.RevokeUserKeyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.RevokeUserKeyRequest; + return proto.controller.RevokeUserKeyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.RevokeUserKeyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.RevokeUserKeyRequest} + */ +proto.controller.RevokeUserKeyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.RevokeUserKeyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.RevokeUserKeyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.RevokeUserKeyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.RevokeUserKeyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKeyId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string key_id = 1; + * @return {string} + */ +proto.controller.RevokeUserKeyRequest.prototype.getKeyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.RevokeUserKeyRequest} returns this + */ +proto.controller.RevokeUserKeyRequest.prototype.setKeyId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.RevokeUserKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.controller.RevokeUserKeyResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.RevokeUserKeyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.RevokeUserKeyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.RevokeUserKeyResponse} + */ +proto.controller.RevokeUserKeyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.RevokeUserKeyResponse; + return proto.controller.RevokeUserKeyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.RevokeUserKeyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.RevokeUserKeyResponse} + */ +proto.controller.RevokeUserKeyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.RevokeUserKeyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.RevokeUserKeyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.RevokeUserKeyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.RevokeUserKeyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.UserKeyInfo.prototype.toObject = function(opt_includeInstance) { + return proto.controller.UserKeyInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.UserKeyInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.UserKeyInfo.toObject = function(includeInstance, msg) { + var f, obj = { + keyId: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.UserKeyInfo} + */ +proto.controller.UserKeyInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.UserKeyInfo; + return proto.controller.UserKeyInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.UserKeyInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.UserKeyInfo} + */ +proto.controller.UserKeyInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyId(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.UserKeyInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.UserKeyInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.UserKeyInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.UserKeyInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKeyId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string key_id = 1; + * @return {string} + */ +proto.controller.UserKeyInfo.prototype.getKeyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.UserKeyInfo} returns this + */ +proto.controller.UserKeyInfo.prototype.setKeyId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.controller.UserKeyInfo.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.controller.UserKeyInfo} returns this +*/ +proto.controller.UserKeyInfo.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.UserKeyInfo} returns this + */ +proto.controller.UserKeyInfo.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.UserKeyInfo.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.ScheduleInfo.prototype.toObject = function(opt_includeInstance) { + return proto.controller.ScheduleInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.ScheduleInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ScheduleInfo.toObject = function(includeInstance, msg) { + var f, obj = { + runId: jspb.Message.getFieldWithDefault(msg, 1, ""), + state: jspb.Message.getFieldWithDefault(msg, 2, 0), + cron: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.ScheduleInfo} + */ +proto.controller.ScheduleInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.ScheduleInfo; + return proto.controller.ScheduleInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.ScheduleInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.ScheduleInfo} + */ +proto.controller.ScheduleInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setRunId(value); + break; + case 2: + var value = /** @type {!proto.controller.ScheduleInfo.State} */ (reader.readEnum()); + msg.setState(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setCron(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.ScheduleInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.ScheduleInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.ScheduleInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.ScheduleInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRunId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getCron(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.controller.ScheduleInfo.State = { + SCHEDULED: 0, + INTERNAL_FAILURE: 1, + CANCELLED: 2 +}; + +/** + * optional string run_id = 1; + * @return {string} + */ +proto.controller.ScheduleInfo.prototype.getRunId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.ScheduleInfo} returns this + */ +proto.controller.ScheduleInfo.prototype.setRunId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional State state = 2; + * @return {!proto.controller.ScheduleInfo.State} + */ +proto.controller.ScheduleInfo.prototype.getState = function() { + return /** @type {!proto.controller.ScheduleInfo.State} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.controller.ScheduleInfo.State} value + * @return {!proto.controller.ScheduleInfo} returns this + */ +proto.controller.ScheduleInfo.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional string cron = 3; + * @return {string} + */ +proto.controller.ScheduleInfo.prototype.getCron = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.ScheduleInfo} returns this + */ +proto.controller.ScheduleInfo.prototype.setCron = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.controller.HostedRunResult.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.HostedRunResult.prototype.toObject = function(opt_includeInstance) { + return proto.controller.HostedRunResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.HostedRunResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRunResult.toObject = function(includeInstance, msg) { + var f, obj = { + runId: jspb.Message.getFieldWithDefault(msg, 1, ""), + status: (f = msg.getStatus()) && proto.controller.HostedRunStatus.toObject(includeInstance, f), + logsList: jspb.Message.toObjectList(msg.getLogsList(), + common_pb.Log.toObject, includeInstance), + returnValue: (f = msg.getReturnValue()) && common_pb.SerializedObject.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.HostedRunResult} + */ +proto.controller.HostedRunResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.HostedRunResult; + return proto.controller.HostedRunResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.HostedRunResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.HostedRunResult} + */ +proto.controller.HostedRunResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setRunId(value); + break; + case 2: + var value = new proto.controller.HostedRunStatus; + reader.readMessage(value,proto.controller.HostedRunStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 3: + var value = new common_pb.Log; + reader.readMessage(value,common_pb.Log.deserializeBinaryFromReader); + msg.addLogs(value); + break; + case 4: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.setReturnValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.HostedRunResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.HostedRunResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.HostedRunResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRunResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRunId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.controller.HostedRunStatus.serializeBinaryToWriter + ); + } + f = message.getLogsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + common_pb.Log.serializeBinaryToWriter + ); + } + f = message.getReturnValue(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string run_id = 1; + * @return {string} + */ +proto.controller.HostedRunResult.prototype.getRunId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.HostedRunResult} returns this + */ +proto.controller.HostedRunResult.prototype.setRunId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional HostedRunStatus status = 2; + * @return {?proto.controller.HostedRunStatus} + */ +proto.controller.HostedRunResult.prototype.getStatus = function() { + return /** @type{?proto.controller.HostedRunStatus} */ ( + jspb.Message.getWrapperField(this, proto.controller.HostedRunStatus, 2)); +}; + + +/** + * @param {?proto.controller.HostedRunStatus|undefined} value + * @return {!proto.controller.HostedRunResult} returns this +*/ +proto.controller.HostedRunResult.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedRunResult} returns this + */ +proto.controller.HostedRunResult.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedRunResult.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Log logs = 3; + * @return {!Array} + */ +proto.controller.HostedRunResult.prototype.getLogsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Log, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.controller.HostedRunResult} returns this +*/ +proto.controller.HostedRunResult.prototype.setLogsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.Log=} opt_value + * @param {number=} opt_index + * @return {!proto.Log} + */ +proto.controller.HostedRunResult.prototype.addLogs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Log, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.controller.HostedRunResult} returns this + */ +proto.controller.HostedRunResult.prototype.clearLogsList = function() { + return this.setLogsList([]); +}; + + +/** + * optional SerializedObject return_value = 4; + * @return {?proto.SerializedObject} + */ +proto.controller.HostedRunResult.prototype.getReturnValue = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, common_pb.SerializedObject, 4)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.controller.HostedRunResult} returns this +*/ +proto.controller.HostedRunResult.prototype.setReturnValue = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.controller.HostedRunResult} returns this + */ +proto.controller.HostedRunResult.prototype.clearReturnValue = function() { + return this.setReturnValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.HostedRunResult.prototype.hasReturnValue = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.HostedRunStatus.prototype.toObject = function(opt_includeInstance) { + return proto.controller.HostedRunStatus.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.HostedRunStatus} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRunStatus.toObject = function(includeInstance, msg) { + var f, obj = { + state: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.HostedRunStatus} + */ +proto.controller.HostedRunStatus.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.HostedRunStatus; + return proto.controller.HostedRunStatus.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.HostedRunStatus} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.HostedRunStatus} + */ +proto.controller.HostedRunStatus.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.controller.HostedRunStatus.State} */ (reader.readEnum()); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.HostedRunStatus.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.HostedRunStatus.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.HostedRunStatus} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.HostedRunStatus.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.controller.HostedRunStatus.State = { + IN_PROGRESS: 0, + SUCCESS: 1, + INTERNAL_FAILURE: 2 +}; + +/** + * optional State state = 1; + * @return {!proto.controller.HostedRunStatus.State} + */ +proto.controller.HostedRunStatus.prototype.getState = function() { + return /** @type {!proto.controller.HostedRunStatus.State} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.controller.HostedRunStatus.State} value + * @return {!proto.controller.HostedRunStatus} returns this + */ +proto.controller.HostedRunStatus.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.controller.MachineRequirements.prototype.toObject = function(opt_includeInstance) { + return proto.controller.MachineRequirements.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.controller.MachineRequirements} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.MachineRequirements.toObject = function(includeInstance, msg) { + var f, obj = { + machineType: jspb.Message.getFieldWithDefault(msg, 1, ""), + keepAlive: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.controller.MachineRequirements} + */ +proto.controller.MachineRequirements.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.controller.MachineRequirements; + return proto.controller.MachineRequirements.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.controller.MachineRequirements} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.controller.MachineRequirements} + */ +proto.controller.MachineRequirements.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMachineType(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setKeepAlive(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.controller.MachineRequirements.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.controller.MachineRequirements.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.controller.MachineRequirements} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.controller.MachineRequirements.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMachineType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional string machine_type = 1; + * @return {string} + */ +proto.controller.MachineRequirements.prototype.getMachineType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.controller.MachineRequirements} returns this + */ +proto.controller.MachineRequirements.prototype.setMachineType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 keep_alive = 2; + * @return {number} + */ +proto.controller.MachineRequirements.prototype.getKeepAlive = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.controller.MachineRequirements} returns this + */ +proto.controller.MachineRequirements.prototype.setKeepAlive = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.controller.MachineRequirements} returns this + */ +proto.controller.MachineRequirements.prototype.clearKeepAlive = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.controller.MachineRequirements.prototype.hasKeepAlive = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.controller); diff --git a/proto/generated/server_grpc_pb.d.ts b/proto/generated/server_grpc_pb.d.ts new file mode 100644 index 0000000..3669b84 --- /dev/null +++ b/proto/generated/server_grpc_pb.d.ts @@ -0,0 +1,41 @@ +// package: +// file: server.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as server_pb from "./server_pb"; +import * as common_pb from "./common_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +interface IIsolateService extends grpc.ServiceDefinition { + run: IIsolateService_IRun; +} + +interface IIsolateService_IRun extends grpc.MethodDefinition { + path: "/Isolate/Run"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const IsolateService: IIsolateService; + +export interface IIsolateServer extends grpc.UntypedServiceImplementation { + run: grpc.handleServerStreamingCall; +} + +export interface IIsolateClient { + run(request: server_pb.BoundFunction, options?: Partial): grpc.ClientReadableStream; + run(request: server_pb.BoundFunction, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; +} + +export class IsolateClient extends grpc.Client implements IIsolateClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public run(request: server_pb.BoundFunction, options?: Partial): grpc.ClientReadableStream; + public run(request: server_pb.BoundFunction, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; +} diff --git a/proto/generated/server_grpc_pb.js b/proto/generated/server_grpc_pb.js new file mode 100644 index 0000000..3514494 --- /dev/null +++ b/proto/generated/server_grpc_pb.js @@ -0,0 +1,48 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('grpc'); +var server_pb = require('./server_pb.js'); +var common_pb = require('./common_pb.js'); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); + +function serialize_BoundFunction(arg) { + if (!(arg instanceof server_pb.BoundFunction)) { + throw new Error('Expected argument of type BoundFunction'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_BoundFunction(buffer_arg) { + return server_pb.BoundFunction.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_PartialRunResult(arg) { + if (!(arg instanceof common_pb.PartialRunResult)) { + throw new Error('Expected argument of type PartialRunResult'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_PartialRunResult(buffer_arg) { + return common_pb.PartialRunResult.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var IsolateService = exports.IsolateService = { + // Run the given function on the specified environment. Streams logs +// and the result originating from that function. +run: { + path: '/Isolate/Run', + requestStream: false, + responseStream: true, + requestType: server_pb.BoundFunction, + responseType: common_pb.PartialRunResult, + requestSerialize: serialize_BoundFunction, + requestDeserialize: deserialize_BoundFunction, + responseSerialize: serialize_PartialRunResult, + responseDeserialize: deserialize_PartialRunResult, + }, +}; + +exports.IsolateClient = grpc.makeGenericClientConstructor(IsolateService); diff --git a/proto/generated/server_pb.d.ts b/proto/generated/server_pb.d.ts new file mode 100644 index 0000000..db08736 --- /dev/null +++ b/proto/generated/server_pb.d.ts @@ -0,0 +1,72 @@ +// package: +// file: server.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as common_pb from "./common_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +export class BoundFunction extends jspb.Message { + clearEnvironmentsList(): void; + getEnvironmentsList(): Array; + setEnvironmentsList(value: Array): BoundFunction; + addEnvironments(value?: EnvironmentDefinition, index?: number): EnvironmentDefinition; + + hasFunction(): boolean; + clearFunction(): void; + getFunction(): common_pb.SerializedObject | undefined; + setFunction(value?: common_pb.SerializedObject): BoundFunction; + + hasSetupFunc(): boolean; + clearSetupFunc(): void; + getSetupFunc(): common_pb.SerializedObject | undefined; + setSetupFunc(value?: common_pb.SerializedObject): BoundFunction; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BoundFunction.AsObject; + static toObject(includeInstance: boolean, msg: BoundFunction): BoundFunction.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BoundFunction, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BoundFunction; + static deserializeBinaryFromReader(message: BoundFunction, reader: jspb.BinaryReader): BoundFunction; +} + +export namespace BoundFunction { + export type AsObject = { + environmentsList: Array, + pb_function?: common_pb.SerializedObject.AsObject, + setupFunc?: common_pb.SerializedObject.AsObject, + } +} + +export class EnvironmentDefinition extends jspb.Message { + getKind(): string; + setKind(value: string): EnvironmentDefinition; + + hasConfiguration(): boolean; + clearConfiguration(): void; + getConfiguration(): google_protobuf_struct_pb.Struct | undefined; + setConfiguration(value?: google_protobuf_struct_pb.Struct): EnvironmentDefinition; + getForce(): boolean; + setForce(value: boolean): EnvironmentDefinition; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnvironmentDefinition.AsObject; + static toObject(includeInstance: boolean, msg: EnvironmentDefinition): EnvironmentDefinition.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnvironmentDefinition, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnvironmentDefinition; + static deserializeBinaryFromReader(message: EnvironmentDefinition, reader: jspb.BinaryReader): EnvironmentDefinition; +} + +export namespace EnvironmentDefinition { + export type AsObject = { + kind: string, + configuration?: google_protobuf_struct_pb.Struct.AsObject, + force: boolean, + } +} diff --git a/proto/generated/server_pb.js b/proto/generated/server_pb.js new file mode 100644 index 0000000..2961476 --- /dev/null +++ b/proto/generated/server_pb.js @@ -0,0 +1,539 @@ +// source: server.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var common_pb = require('./common_pb.js'); +goog.object.extend(proto, common_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +goog.exportSymbol('proto.BoundFunction', null, global); +goog.exportSymbol('proto.EnvironmentDefinition', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.BoundFunction = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.BoundFunction.repeatedFields_, null); +}; +goog.inherits(proto.BoundFunction, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.BoundFunction.displayName = 'proto.BoundFunction'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.EnvironmentDefinition = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.EnvironmentDefinition, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.EnvironmentDefinition.displayName = 'proto.EnvironmentDefinition'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.BoundFunction.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.BoundFunction.prototype.toObject = function(opt_includeInstance) { + return proto.BoundFunction.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.BoundFunction} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.BoundFunction.toObject = function(includeInstance, msg) { + var f, obj = { + environmentsList: jspb.Message.toObjectList(msg.getEnvironmentsList(), + proto.EnvironmentDefinition.toObject, includeInstance), + pb_function: (f = msg.getFunction()) && common_pb.SerializedObject.toObject(includeInstance, f), + setupFunc: (f = msg.getSetupFunc()) && common_pb.SerializedObject.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.BoundFunction} + */ +proto.BoundFunction.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.BoundFunction; + return proto.BoundFunction.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.BoundFunction} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.BoundFunction} + */ +proto.BoundFunction.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.EnvironmentDefinition; + reader.readMessage(value,proto.EnvironmentDefinition.deserializeBinaryFromReader); + msg.addEnvironments(value); + break; + case 2: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.setFunction(value); + break; + case 3: + var value = new common_pb.SerializedObject; + reader.readMessage(value,common_pb.SerializedObject.deserializeBinaryFromReader); + msg.setSetupFunc(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.BoundFunction.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.BoundFunction.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.BoundFunction} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.BoundFunction.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnvironmentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.EnvironmentDefinition.serializeBinaryToWriter + ); + } + f = message.getFunction(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } + f = message.getSetupFunc(); + if (f != null) { + writer.writeMessage( + 3, + f, + common_pb.SerializedObject.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated EnvironmentDefinition environments = 1; + * @return {!Array} + */ +proto.BoundFunction.prototype.getEnvironmentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.EnvironmentDefinition, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.BoundFunction} returns this +*/ +proto.BoundFunction.prototype.setEnvironmentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.EnvironmentDefinition=} opt_value + * @param {number=} opt_index + * @return {!proto.EnvironmentDefinition} + */ +proto.BoundFunction.prototype.addEnvironments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.EnvironmentDefinition, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.BoundFunction} returns this + */ +proto.BoundFunction.prototype.clearEnvironmentsList = function() { + return this.setEnvironmentsList([]); +}; + + +/** + * optional SerializedObject function = 2; + * @return {?proto.SerializedObject} + */ +proto.BoundFunction.prototype.getFunction = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, common_pb.SerializedObject, 2)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.BoundFunction} returns this +*/ +proto.BoundFunction.prototype.setFunction = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.BoundFunction} returns this + */ +proto.BoundFunction.prototype.clearFunction = function() { + return this.setFunction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.BoundFunction.prototype.hasFunction = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional SerializedObject setup_func = 3; + * @return {?proto.SerializedObject} + */ +proto.BoundFunction.prototype.getSetupFunc = function() { + return /** @type{?proto.SerializedObject} */ ( + jspb.Message.getWrapperField(this, common_pb.SerializedObject, 3)); +}; + + +/** + * @param {?proto.SerializedObject|undefined} value + * @return {!proto.BoundFunction} returns this +*/ +proto.BoundFunction.prototype.setSetupFunc = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.BoundFunction} returns this + */ +proto.BoundFunction.prototype.clearSetupFunc = function() { + return this.setSetupFunc(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.BoundFunction.prototype.hasSetupFunc = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.EnvironmentDefinition.prototype.toObject = function(opt_includeInstance) { + return proto.EnvironmentDefinition.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.EnvironmentDefinition} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.EnvironmentDefinition.toObject = function(includeInstance, msg) { + var f, obj = { + kind: jspb.Message.getFieldWithDefault(msg, 1, ""), + configuration: (f = msg.getConfiguration()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + force: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.EnvironmentDefinition} + */ +proto.EnvironmentDefinition.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.EnvironmentDefinition; + return proto.EnvironmentDefinition.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.EnvironmentDefinition} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.EnvironmentDefinition} + */ +proto.EnvironmentDefinition.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setKind(value); + break; + case 2: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setConfiguration(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setForce(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.EnvironmentDefinition.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.EnvironmentDefinition.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.EnvironmentDefinition} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.EnvironmentDefinition.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKind(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getConfiguration(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getForce(); + if (f) { + writer.writeBool( + 3, + f + ); + } +}; + + +/** + * optional string kind = 1; + * @return {string} + */ +proto.EnvironmentDefinition.prototype.getKind = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.EnvironmentDefinition} returns this + */ +proto.EnvironmentDefinition.prototype.setKind = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Struct configuration = 2; + * @return {?proto.google.protobuf.Struct} + */ +proto.EnvironmentDefinition.prototype.getConfiguration = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.EnvironmentDefinition} returns this +*/ +proto.EnvironmentDefinition.prototype.setConfiguration = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.EnvironmentDefinition} returns this + */ +proto.EnvironmentDefinition.prototype.clearConfiguration = function() { + return this.setConfiguration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.EnvironmentDefinition.prototype.hasConfiguration = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bool force = 3; + * @return {boolean} + */ +proto.EnvironmentDefinition.prototype.getForce = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.EnvironmentDefinition} returns this + */ +proto.EnvironmentDefinition.prototype.setForce = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +goog.object.extend(exports, proto); diff --git a/proto/server.proto b/proto/server.proto new file mode 100644 index 0000000..d3991da --- /dev/null +++ b/proto/server.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +import "common.proto"; +import "google/protobuf/struct.proto"; + +service Isolate { + // Run the given function on the specified environment. Streams logs + // and the result originating from that function. + rpc Run (BoundFunction) returns (stream PartialRunResult) {} +} + +message BoundFunction { + repeated EnvironmentDefinition environments = 1; + SerializedObject function = 2; + optional SerializedObject setup_func = 3; +} + +message EnvironmentDefinition { + // Kind of the isolate environment. + string kind = 1; + // A free-form definition of environment properties. + google.protobuf.Struct configuration = 2; + // Whether to force-create this environment or not. + bool force = 3; +} diff --git a/python.dump b/python.dump new file mode 100644 index 0000000000000000000000000000000000000000..a766fa8f2ce0c64630e53cd0675c52e2bb320cde GIT binary patch literal 341 zcmYjM!Ait15KWgA7F}5VgMt@(u=O8$v(SU$IiyY6#%+_3ObR_L2;!b{+wp(xuDjyQ zFg)Hoc=JA%-_H>_Rk-G|?^Al*7;b581p`4FuWFE5;Q=2y64n>K)?6I9f}DF%?(zkRFi8Mk zaED<