diff --git a/CHANGELOG.md b/CHANGELOG.md index 006a6c0b..8db26be3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.6.3 (Mon Oct 25 2020) + +- Integrate gostarlark go to definition for bazel labels +- Improve "last run" semantics for build +- Regenerate protos with 0.6.0-pre17 +- Added "copy to clipboard" command for output file paths + + ## 0.6.2 (Mon Oct 19 2020) - Codesearch improvements diff --git a/README.md b/README.md index 7c4fe3eb..fc4d87ce 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # bazel-stack-vscode -Bazel Support for Visual Studio Code. +[Bazel](https://bazel.build) Support for Visual Studio Code. @@ -25,7 +25,8 @@ Bazel Support for Visual Studio Code. - hover to get [bazel rule & starlark function reference](#Hover-Symbols-to-Get-Inline-Documentation) (via Starlark Language Server) - + - [go to definition](https://stackb.github.io/bazel-stack-vscode/jumping) for bazel labels + - `bazelrc` files (`*.bazelrc`): - syntax highlighting - hover to get [flag reference](#Hover-Flags-to-Get-Inline-Documentation) & links to bazel docs / bazel codesearch @@ -44,6 +45,10 @@ Bazel Support for Visual Studio Code. ![1-lint](https://user-images.githubusercontent.com/50580/89370514-227cc300-d69e-11ea-8784-266e9756e8ec.gif) +### Go To Definition for Bazel Labels + +![jtd](https://user-images.githubusercontent.com/50580/97131325-78935c80-1709-11eb-86d5-a6c96d47bab8.gif) + ### Hover Symbols to Get Inline Documentation ![1-rulehover](https://user-images.githubusercontent.com/50580/89370355-c31eb300-d69d-11ea-8fc6-eeff04641dd0.gif) diff --git a/docs/exploring.md b/docs/exploring.md index bf63bbdf..68978548 100644 --- a/docs/exploring.md +++ b/docs/exploring.md @@ -2,7 +2,7 @@ layout: default title: Exploring permalink: /exploring -nav_order: 9 +nav_order: 11 --- ## Exploring diff --git a/docs/formatting.md b/docs/formatting.md index 66246d59..1729e90f 100644 --- a/docs/formatting.md +++ b/docs/formatting.md @@ -2,7 +2,7 @@ layout: default title: Formatting permalink: /formatting -nav_order: 3 +nav_order: 4 --- ## Formatting diff --git a/docs/jumping.md b/docs/jumping.md new file mode 100644 index 00000000..97a061f6 --- /dev/null +++ b/docs/jumping.md @@ -0,0 +1,29 @@ +--- +layout: default +title: Jumping +permalink: /jumping +nav_order: 6 +--- + +## Jump to Definition + +

+ +**Jump to Definition** (Go to definition) is provided for `BUILD` file labels +(typically, this is mapped to the keyboard shortcut `F12`). + +The starlark string literal at the current cursor position is used to +locate the target file. + +Jump to definition has the following "best-effort" semantics: + +- If the label represents a *source file* (e.g. `//:main.go`), open at the + beginning of the file. +- If the label represents a *rule* (e.g. `//:myrule`), open the `BUILD` file at + the corresponding rule definition. +- If the rule cannot be found within the `BUILD` file, no action is taken. +- If the label is in an external workspace (e.g. `@foo//:bar`), open the + file/rule in the external workspace `foo`. This behavior requires that the + bazel server for the repository be running. + +![jtd](https://user-images.githubusercontent.com/50580/97131325-78935c80-1709-11eb-86d5-a6c96d47bab8.gif) diff --git a/docs/launching.md b/docs/launching.md index e0eeb4f0..c4d75052 100644 --- a/docs/launching.md +++ b/docs/launching.md @@ -2,7 +2,7 @@ layout: default title: Launching permalink: /launching -nav_order: 5 +nav_order: 7 --- ## Launching diff --git a/docs/linting.md b/docs/linting.md index e0917f57..09943ca9 100644 --- a/docs/linting.md +++ b/docs/linting.md @@ -2,7 +2,7 @@ layout: default title: Linting permalink: /linting -nav_order: 4 +nav_order: 5 --- ## Linting diff --git a/docs/navigating/navigating.md b/docs/navigating/navigating.md index c30e65ff..03c92adb 100644 --- a/docs/navigating/navigating.md +++ b/docs/navigating/navigating.md @@ -2,7 +2,7 @@ layout: default title: Navigating permalink: /navigating -nav_order: 6 +nav_order: 8 has_children: true --- diff --git a/docs/remoting.md b/docs/remoting.md index baa833f9..fc6cde55 100644 --- a/docs/remoting.md +++ b/docs/remoting.md @@ -2,7 +2,7 @@ layout: default title: Remoting permalink: /remoting -nav_order: 8 +nav_order: 10 --- ## Remoting diff --git a/docs/searching.md b/docs/searching.md index ea3475e0..35306810 100644 --- a/docs/searching.md +++ b/docs/searching.md @@ -2,7 +2,7 @@ layout: default title: Searching permalink: /searching -nav_order: 5 +nav_order: 9 --- ## Codesearch diff --git a/docs/subscribing.md b/docs/subscribing.md index d5cc8ac3..f144780d 100644 --- a/docs/subscribing.md +++ b/docs/subscribing.md @@ -2,7 +2,7 @@ layout: default title: Subscribing permalink: /subscribing -nav_order: 1 +nav_order: 2 --- ## Subscribing diff --git a/docs/syntax.md b/docs/syntax.md index 05df4d31..fddfae85 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -2,7 +2,7 @@ layout: default title: Syntax Highlighting permalink: /syntax -nav_order: 2 +nav_order: 3 --- ## Syntax Highlighting diff --git a/package-lock.json b/package-lock.json index dac3abcd..b411ee81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bazel-stack-vscode", - "version": "0.6.0", + "version": "0.6.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -46,9 +46,9 @@ } }, "@grpc/proto-loader": { - "version": "0.6.0-pre14", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.0-pre14.tgz", - "integrity": "sha512-pWsGfs4zNI4WKN9id8sAxbsheNYOu/N8UAKiDZ4B32UIZcj/7dXjwr2ahg4kUDz8a85ofNH8fmH5NGws+pnJsw==", + "version": "0.6.0-pre17", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.0-pre17.tgz", + "integrity": "sha512-2l7C9b74VFxwvmez1DUct5LaRX2+i1T+7drEFo9ffTISjdOfOAdu3P7tjDl/deAkQFCAoF3XASKvL4hlsKQ9Ag==", "requires": { "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", @@ -58,11 +58,10 @@ }, "dependencies": { "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "requires": { - "@types/color-name": "^1.1.1", "color-convert": "^2.0.1" } }, @@ -89,14 +88,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "requires": { - "ansi-regex": "^5.0.0" - } - }, "wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -372,7 +363,8 @@ "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" + "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", + "dev": true }, "@types/eslint-visitor-keys": { "version": "1.0.0", diff --git a/package.json b/package.json index 7b37ba60..8f1509f3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bazel-stack-vscode", "displayName": "bazel-stack-vscode", "description": "Bazel Support for Visual Studio Code", - "version": "0.6.2", + "version": "0.6.3", "publisher": "StackBuild", "license": "Apache-2.0", "icon": "stackb-full.png", @@ -26,6 +26,7 @@ "onCommand:bsv.bzl.account.refresh", "onCommand:bsv.bzl.bep.action.stdout", "onCommand:bsv.bzl.bep.event.output", + "onCommand:bsv.bzl.bep.file.clippy", "onCommand:bsv.bzl.bep.file.download", "onCommand:bsv.bzl.bep.file.save", "onCommand:bsv.bzl.bep.started.explore", @@ -100,11 +101,6 @@ "type": "string", "description": "Path to a pre-installed LSP executable\n\n> if set, this prevents downloading a LSP binary from github" }, - "bsv.starlark.lsp.github-release": { - "type": "string", - "default": "0.3.5", - "description": "The github release tag of the starlark-lsp release to download" - }, "bsv.starlark.lsp.github-owner": { "type": "string", "default": "stackb", @@ -112,9 +108,14 @@ }, "bsv.starlark.lsp.github-repo": { "type": "string", - "default": "bazel-stack-vscode", + "default": "bzl", "description": "The github repo name for the starlark-lsp repository" }, + "bsv.starlark.lsp.github-release": { + "type": "string", + "default": "0.9.4", + "description": "The github release tag of the starlark-lsp release to download" + }, "bsv.starlark.lsp.server.command": { "type": "array", "description": "The command (and optional arguments) to start the lsp server.", @@ -187,7 +188,7 @@ }, "bsv.bzl.server.github-release": { "type": "string", - "default": "0.9.3", + "default": "0.9.4", "description": "The github release tag of the bzl release to download" }, "bsv.bzl.server.github-owner": { @@ -544,6 +545,12 @@ "command": "bsv.bzl.bep.event.output", "title": "Show test.log", "icon": "$(output)" + }, + { + "category": "Bzl", + "command": "bsv.bzl.bep.file.clippy", + "title": "Copy file path to clipboard", + "icon": "$(clippy)" } ], "keybindings": [ @@ -704,7 +711,7 @@ { "command": "bsv.bzl.bep.event.output", "when": "false" - } + } ], "view/title": [ { @@ -883,6 +890,11 @@ "command": "bsv.bzl.bep.event.output", "when": "view == bsv.bzl.bep && viewItem == testResult", "group": "inline@0" + }, + { + "command": "bsv.bzl.bep.file.clippy", + "when": "view == bsv.bzl.bep && viewItem == file", + "group": "inline@0" } ] }, @@ -1122,7 +1134,7 @@ }, "dependencies": { "@grpc/grpc-js": "1.1.1", - "@grpc/proto-loader": "0.6.0-pre14", + "@grpc/proto-loader": "0.6.0-pre17", "@octokit/rest": "18.0.3", "bazel-stack-vscode-api": "^1.2.2", "card-validator": "8.1.0", diff --git a/src/bzl/bzlclient.ts b/src/bzl/bzlclient.ts index e183b9d3..0b7d19f0 100644 --- a/src/bzl/bzlclient.ts +++ b/src/bzl/bzlclient.ts @@ -146,7 +146,7 @@ export class BzlClient extends GRPCClient implements BzlCodesearch { } async waitForReady(seconds: number = 3): Promise { - return this.getMetadata(false, seconds); + return this.getMetadata(true, seconds); } protected handleErrorUnavailable(err: grpc.ServiceError): grpc.ServiceError { diff --git a/src/bzl/constants.ts b/src/bzl/constants.ts index 0576763b..1adcac06 100644 --- a/src/bzl/constants.ts +++ b/src/bzl/constants.ts @@ -60,6 +60,7 @@ export enum CommandName { BEPStartedExplore = 'bsv.bzl.bep.started.explore', BEPFileDownload = 'bsv.bzl.bep.file.download', BEPFileSave = 'bsv.bzl.bep.file.save', + BEPFileClippy = 'bsv.bzl.bep.file.clippy', RepositoryExplore = 'bsv.bzl.repository.explore', RepositorySelect = 'bsv.bzl.repository.select', diff --git a/src/bzl/feature.ts b/src/bzl/feature.ts index f9736807..c014107d 100644 --- a/src/bzl/feature.ts +++ b/src/bzl/feature.ts @@ -150,6 +150,8 @@ export class BzlFeature implements IExtensionFeature, vscode.Disposable { const server = this.server = this.add(new BzlServerProcess(cfg.executable, cfg.command)); server.start(); await server.onReady(); + console.debug(`Started bzl (${cfg.executable})`); + return this.tryConnectServer(cfg, attempts); } diff --git a/src/bzl/view/events.ts b/src/bzl/view/events.ts index 8c971ce5..21ce3f8a 100644 --- a/src/bzl/view/events.ts +++ b/src/bzl/view/events.ts @@ -54,13 +54,14 @@ export class BuildEventProtocolView extends BzlClientTreeDataProvider { @@ -73,6 +74,18 @@ export class BuildEventProtocolView extends BzlClientTreeDataProvider { + if (!item.file.uri) { + return; + } + const fsPath = vscode.Uri.parse(item.file.uri).fsPath; + vscode.window.setStatusBarMessage( + `"${fsPath}" copied to clipboard`, + 3000 + ); + return vscode.env.clipboard.writeText(fsPath); + } + async handleCommandFileSave(item: FileItem): Promise { const client = this.client; if (!client) { diff --git a/src/bzl/view/history.ts b/src/bzl/view/history.ts index 1c83da7c..a73f42d1 100644 --- a/src/bzl/view/history.ts +++ b/src/bzl/view/history.ts @@ -28,8 +28,8 @@ function isCommandRunSpec(value: unknown): value is CommandRunSpec { return false; } return typeof (value as CommandRunSpec).command === 'string'; - } - +} + /** * Renders a view for bazel command history. */ @@ -38,6 +38,7 @@ export class BzlCommandHistoryView extends BzlClientTreeDataProvider, @@ -68,6 +69,7 @@ export class BzlCommandHistoryView extends BzlClientTreeDataProvider { - const cwd = path.dirname(document.uri.fsPath); - + const cwd = path.dirname(document.uri.fsPath); + const range = new vscode.Range( new vscode.Position(lineNum, colNum), new vscode.Position(lineNum, colNum + command.length)); diff --git a/src/download.ts b/src/download.ts index ee7c4698..d2519cd6 100644 --- a/src/download.ts +++ b/src/download.ts @@ -173,7 +173,7 @@ export async function getReleaseAsset(client: octokit.Octokit, req: GithubReleas const release = findRelease(releases, req.releaseTag); if (!release) { - return Promise.reject(`github.com/${req.owner}/${req.name} does not have a release tagged "${req.releaseTag}"`); + return Promise.reject(`github.com/${req.owner}/${req.repo}/releases/${req.releaseTag} does not exist`); } const assets = await listReleaseAssets(client, req.owner, req.repo, release.id); diff --git a/src/proto/annotations.ts b/src/proto/annotations.ts index 88b4bf1b..d98a007d 100644 --- a/src/proto/annotations.ts +++ b/src/proto/annotations.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/auth.ts b/src/proto/auth.ts index 5eb0e10a..e7ebf404 100644 --- a/src/proto/auth.ts +++ b/src/proto/auth.ts @@ -1,11 +1,10 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -import { AuthServiceClient as _build_stack_auth_v1beta1_AuthServiceClient } from './build/stack/auth/v1beta1/AuthService'; +import type { AuthServiceClient as _build_stack_auth_v1beta1_AuthServiceClient } from './build/stack/auth/v1beta1/AuthService'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/bazel_flags.ts b/src/proto/bazel_flags.ts index a5847ec5..aeab7282 100644 --- a/src/proto/bazel_flags.ts +++ b/src/proto/bazel_flags.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/bazel_flags/FlagCollection.ts b/src/proto/bazel_flags/FlagCollection.ts index ddf2ed69..11d3985e 100644 --- a/src/proto/bazel_flags/FlagCollection.ts +++ b/src/proto/bazel_flags/FlagCollection.ts @@ -1,6 +1,6 @@ // Original file: proto/bazel_flags.proto -import { FlagInfo as _bazel_flags_FlagInfo, FlagInfo__Output as _bazel_flags_FlagInfo__Output } from '../bazel_flags/FlagInfo'; +import type { FlagInfo as _bazel_flags_FlagInfo, FlagInfo__Output as _bazel_flags_FlagInfo__Output } from '../bazel_flags/FlagInfo'; export interface FlagCollection { 'flagInfos'?: (_bazel_flags_FlagInfo)[]; diff --git a/src/proto/blaze/invocation_policy/AllowValues.ts b/src/proto/blaze/invocation_policy/AllowValues.ts index 10eeb9df..4fefa376 100644 --- a/src/proto/blaze/invocation_policy/AllowValues.ts +++ b/src/proto/blaze/invocation_policy/AllowValues.ts @@ -1,6 +1,6 @@ // Original file: proto/invocation_policy.proto -import { UseDefault as _blaze_invocation_policy_UseDefault, UseDefault__Output as _blaze_invocation_policy_UseDefault__Output } from '../../blaze/invocation_policy/UseDefault'; +import type { UseDefault as _blaze_invocation_policy_UseDefault, UseDefault__Output as _blaze_invocation_policy_UseDefault__Output } from '../../blaze/invocation_policy/UseDefault'; export interface AllowValues { /** diff --git a/src/proto/blaze/invocation_policy/DisallowValues.ts b/src/proto/blaze/invocation_policy/DisallowValues.ts index 51410435..7510ad58 100644 --- a/src/proto/blaze/invocation_policy/DisallowValues.ts +++ b/src/proto/blaze/invocation_policy/DisallowValues.ts @@ -1,6 +1,6 @@ // Original file: proto/invocation_policy.proto -import { UseDefault as _blaze_invocation_policy_UseDefault, UseDefault__Output as _blaze_invocation_policy_UseDefault__Output } from '../../blaze/invocation_policy/UseDefault'; +import type { UseDefault as _blaze_invocation_policy_UseDefault, UseDefault__Output as _blaze_invocation_policy_UseDefault__Output } from '../../blaze/invocation_policy/UseDefault'; export interface DisallowValues { /** diff --git a/src/proto/blaze/invocation_policy/FlagPolicy.ts b/src/proto/blaze/invocation_policy/FlagPolicy.ts index 60de11a0..eeceba2b 100644 --- a/src/proto/blaze/invocation_policy/FlagPolicy.ts +++ b/src/proto/blaze/invocation_policy/FlagPolicy.ts @@ -1,9 +1,9 @@ // Original file: proto/invocation_policy.proto -import { SetValue as _blaze_invocation_policy_SetValue, SetValue__Output as _blaze_invocation_policy_SetValue__Output } from '../../blaze/invocation_policy/SetValue'; -import { UseDefault as _blaze_invocation_policy_UseDefault, UseDefault__Output as _blaze_invocation_policy_UseDefault__Output } from '../../blaze/invocation_policy/UseDefault'; -import { DisallowValues as _blaze_invocation_policy_DisallowValues, DisallowValues__Output as _blaze_invocation_policy_DisallowValues__Output } from '../../blaze/invocation_policy/DisallowValues'; -import { AllowValues as _blaze_invocation_policy_AllowValues, AllowValues__Output as _blaze_invocation_policy_AllowValues__Output } from '../../blaze/invocation_policy/AllowValues'; +import type { SetValue as _blaze_invocation_policy_SetValue, SetValue__Output as _blaze_invocation_policy_SetValue__Output } from '../../blaze/invocation_policy/SetValue'; +import type { UseDefault as _blaze_invocation_policy_UseDefault, UseDefault__Output as _blaze_invocation_policy_UseDefault__Output } from '../../blaze/invocation_policy/UseDefault'; +import type { DisallowValues as _blaze_invocation_policy_DisallowValues, DisallowValues__Output as _blaze_invocation_policy_DisallowValues__Output } from '../../blaze/invocation_policy/DisallowValues'; +import type { AllowValues as _blaze_invocation_policy_AllowValues, AllowValues__Output as _blaze_invocation_policy_AllowValues__Output } from '../../blaze/invocation_policy/AllowValues'; /** * A policy for controlling the value of a flag. diff --git a/src/proto/blaze/invocation_policy/InvocationPolicy.ts b/src/proto/blaze/invocation_policy/InvocationPolicy.ts index 60d7886c..bff83f24 100644 --- a/src/proto/blaze/invocation_policy/InvocationPolicy.ts +++ b/src/proto/blaze/invocation_policy/InvocationPolicy.ts @@ -1,6 +1,6 @@ // Original file: proto/invocation_policy.proto -import { FlagPolicy as _blaze_invocation_policy_FlagPolicy, FlagPolicy__Output as _blaze_invocation_policy_FlagPolicy__Output } from '../../blaze/invocation_policy/FlagPolicy'; +import type { FlagPolicy as _blaze_invocation_policy_FlagPolicy, FlagPolicy__Output as _blaze_invocation_policy_FlagPolicy__Output } from '../../blaze/invocation_policy/FlagPolicy'; /** * The --invocation_policy flag takes a base64-encoded binary-serialized or text diff --git a/src/proto/build/stack/auth/v1beta1/AuthService.ts b/src/proto/build/stack/auth/v1beta1/AuthService.ts index cd2b0adf..f89f88dd 100644 --- a/src/proto/build/stack/auth/v1beta1/AuthService.ts +++ b/src/proto/build/stack/auth/v1beta1/AuthService.ts @@ -1,11 +1,11 @@ // Original file: proto/auth.proto -import * as grpc from '@grpc/grpc-js' -import { LoginRequest as _build_stack_auth_v1beta1_LoginRequest, LoginRequest__Output as _build_stack_auth_v1beta1_LoginRequest__Output } from '../../../../build/stack/auth/v1beta1/LoginRequest'; -import { LoginResponse as _build_stack_auth_v1beta1_LoginResponse, LoginResponse__Output as _build_stack_auth_v1beta1_LoginResponse__Output } from '../../../../build/stack/auth/v1beta1/LoginResponse'; -import { PasswordResetRequest as _build_stack_auth_v1beta1_PasswordResetRequest, PasswordResetRequest__Output as _build_stack_auth_v1beta1_PasswordResetRequest__Output } from '../../../../build/stack/auth/v1beta1/PasswordResetRequest'; -import { PasswordResetResponse as _build_stack_auth_v1beta1_PasswordResetResponse, PasswordResetResponse__Output as _build_stack_auth_v1beta1_PasswordResetResponse__Output } from '../../../../build/stack/auth/v1beta1/PasswordResetResponse'; -import { RegisterRequest as _build_stack_auth_v1beta1_RegisterRequest, RegisterRequest__Output as _build_stack_auth_v1beta1_RegisterRequest__Output } from '../../../../build/stack/auth/v1beta1/RegisterRequest'; +import type * as grpc from '@grpc/grpc-js' +import type { LoginRequest as _build_stack_auth_v1beta1_LoginRequest, LoginRequest__Output as _build_stack_auth_v1beta1_LoginRequest__Output } from '../../../../build/stack/auth/v1beta1/LoginRequest'; +import type { LoginResponse as _build_stack_auth_v1beta1_LoginResponse, LoginResponse__Output as _build_stack_auth_v1beta1_LoginResponse__Output } from '../../../../build/stack/auth/v1beta1/LoginResponse'; +import type { PasswordResetRequest as _build_stack_auth_v1beta1_PasswordResetRequest, PasswordResetRequest__Output as _build_stack_auth_v1beta1_PasswordResetRequest__Output } from '../../../../build/stack/auth/v1beta1/PasswordResetRequest'; +import type { PasswordResetResponse as _build_stack_auth_v1beta1_PasswordResetResponse, PasswordResetResponse__Output as _build_stack_auth_v1beta1_PasswordResetResponse__Output } from '../../../../build/stack/auth/v1beta1/PasswordResetResponse'; +import type { RegisterRequest as _build_stack_auth_v1beta1_RegisterRequest, RegisterRequest__Output as _build_stack_auth_v1beta1_RegisterRequest__Output } from '../../../../build/stack/auth/v1beta1/RegisterRequest'; export interface AuthServiceClient extends grpc.Client { Login(argument: _build_stack_auth_v1beta1_LoginRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_auth_v1beta1_LoginResponse__Output) => void): grpc.ClientUnaryCall; @@ -38,10 +38,10 @@ export interface AuthServiceClient extends grpc.Client { } export interface AuthServiceHandlers extends grpc.UntypedServiceImplementation { - Login(call: grpc.ServerUnaryCall<_build_stack_auth_v1beta1_LoginRequest__Output, _build_stack_auth_v1beta1_LoginResponse>, callback: grpc.sendUnaryData<_build_stack_auth_v1beta1_LoginResponse>): void; + Login: grpc.handleUnaryCall<_build_stack_auth_v1beta1_LoginRequest__Output, _build_stack_auth_v1beta1_LoginResponse>; - PasswordReset(call: grpc.ServerUnaryCall<_build_stack_auth_v1beta1_PasswordResetRequest__Output, _build_stack_auth_v1beta1_PasswordResetResponse>, callback: grpc.sendUnaryData<_build_stack_auth_v1beta1_PasswordResetResponse>): void; + PasswordReset: grpc.handleUnaryCall<_build_stack_auth_v1beta1_PasswordResetRequest__Output, _build_stack_auth_v1beta1_PasswordResetResponse>; - Register(call: grpc.ServerUnaryCall<_build_stack_auth_v1beta1_RegisterRequest__Output, _build_stack_auth_v1beta1_LoginResponse>, callback: grpc.sendUnaryData<_build_stack_auth_v1beta1_LoginResponse>): void; + Register: grpc.handleUnaryCall<_build_stack_auth_v1beta1_RegisterRequest__Output, _build_stack_auth_v1beta1_LoginResponse>; } diff --git a/src/proto/build/stack/auth/v1beta1/LoginResponse.ts b/src/proto/build/stack/auth/v1beta1/LoginResponse.ts index 70fde7e0..c019df4c 100644 --- a/src/proto/build/stack/auth/v1beta1/LoginResponse.ts +++ b/src/proto/build/stack/auth/v1beta1/LoginResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/auth.proto -import { User as _build_stack_auth_v1beta1_User, User__Output as _build_stack_auth_v1beta1_User__Output } from '../../../../build/stack/auth/v1beta1/User'; +import type { User as _build_stack_auth_v1beta1_User, User__Output as _build_stack_auth_v1beta1_User__Output } from '../../../../build/stack/auth/v1beta1/User'; export interface LoginResponse { /** diff --git a/src/proto/build/stack/bezel/v1beta1/ApplicationService.ts b/src/proto/build/stack/bezel/v1beta1/ApplicationService.ts index b79541f6..52c9a764 100644 --- a/src/proto/build/stack/bezel/v1beta1/ApplicationService.ts +++ b/src/proto/build/stack/bezel/v1beta1/ApplicationService.ts @@ -1,10 +1,10 @@ // Original file: proto/bzl.proto -import * as grpc from '@grpc/grpc-js' -import { GetMetadataRequest as _build_stack_bezel_v1beta1_GetMetadataRequest, GetMetadataRequest__Output as _build_stack_bezel_v1beta1_GetMetadataRequest__Output } from '../../../../build/stack/bezel/v1beta1/GetMetadataRequest'; -import { Metadata as _build_stack_bezel_v1beta1_Metadata, Metadata__Output as _build_stack_bezel_v1beta1_Metadata__Output } from '../../../../build/stack/bezel/v1beta1/Metadata'; -import { ShutdownRequest as _build_stack_bezel_v1beta1_ShutdownRequest, ShutdownRequest__Output as _build_stack_bezel_v1beta1_ShutdownRequest__Output } from '../../../../build/stack/bezel/v1beta1/ShutdownRequest'; -import { ShutdownResponse as _build_stack_bezel_v1beta1_ShutdownResponse, ShutdownResponse__Output as _build_stack_bezel_v1beta1_ShutdownResponse__Output } from '../../../../build/stack/bezel/v1beta1/ShutdownResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { GetMetadataRequest as _build_stack_bezel_v1beta1_GetMetadataRequest, GetMetadataRequest__Output as _build_stack_bezel_v1beta1_GetMetadataRequest__Output } from '../../../../build/stack/bezel/v1beta1/GetMetadataRequest'; +import type { Metadata as _build_stack_bezel_v1beta1_Metadata, Metadata__Output as _build_stack_bezel_v1beta1_Metadata__Output } from '../../../../build/stack/bezel/v1beta1/Metadata'; +import type { ShutdownRequest as _build_stack_bezel_v1beta1_ShutdownRequest, ShutdownRequest__Output as _build_stack_bezel_v1beta1_ShutdownRequest__Output } from '../../../../build/stack/bezel/v1beta1/ShutdownRequest'; +import type { ShutdownResponse as _build_stack_bezel_v1beta1_ShutdownResponse, ShutdownResponse__Output as _build_stack_bezel_v1beta1_ShutdownResponse__Output } from '../../../../build/stack/bezel/v1beta1/ShutdownResponse'; export interface ApplicationServiceClient extends grpc.Client { GetMetadata(argument: _build_stack_bezel_v1beta1_GetMetadataRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_bezel_v1beta1_Metadata__Output) => void): grpc.ClientUnaryCall; @@ -28,8 +28,8 @@ export interface ApplicationServiceClient extends grpc.Client { } export interface ApplicationServiceHandlers extends grpc.UntypedServiceImplementation { - GetMetadata(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_GetMetadataRequest__Output, _build_stack_bezel_v1beta1_Metadata>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_Metadata>): void; + GetMetadata: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_GetMetadataRequest__Output, _build_stack_bezel_v1beta1_Metadata>; - Shutdown(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_ShutdownRequest__Output, _build_stack_bezel_v1beta1_ShutdownResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_ShutdownResponse>): void; + Shutdown: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_ShutdownRequest__Output, _build_stack_bezel_v1beta1_ShutdownResponse>; } diff --git a/src/proto/build/stack/bezel/v1beta1/CancelRequest.ts b/src/proto/build/stack/bezel/v1beta1/CancelRequest.ts index 743baf70..03e8c13b 100644 --- a/src/proto/build/stack/bezel/v1beta1/CancelRequest.ts +++ b/src/proto/build/stack/bezel/v1beta1/CancelRequest.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; export interface CancelRequest { 'workspace'?: (_build_stack_bezel_v1beta1_Workspace); diff --git a/src/proto/build/stack/bezel/v1beta1/CommandHistory.ts b/src/proto/build/stack/bezel/v1beta1/CommandHistory.ts index 5136b98c..1737d8e5 100644 --- a/src/proto/build/stack/bezel/v1beta1/CommandHistory.ts +++ b/src/proto/build/stack/bezel/v1beta1/CommandHistory.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; /** * Used to implement a simple cache of what the user has built diff --git a/src/proto/build/stack/bezel/v1beta1/CommandService.ts b/src/proto/build/stack/bezel/v1beta1/CommandService.ts index f8392422..0ad08659 100644 --- a/src/proto/build/stack/bezel/v1beta1/CommandService.ts +++ b/src/proto/build/stack/bezel/v1beta1/CommandService.ts @@ -1,10 +1,10 @@ // Original file: proto/bzl.proto -import * as grpc from '@grpc/grpc-js' -import { CancelRequest as _build_stack_bezel_v1beta1_CancelRequest, CancelRequest__Output as _build_stack_bezel_v1beta1_CancelRequest__Output } from '../../../../build/stack/bezel/v1beta1/CancelRequest'; -import { CancelResponse as _build_stack_bezel_v1beta1_CancelResponse, CancelResponse__Output as _build_stack_bezel_v1beta1_CancelResponse__Output } from '../../../../build/stack/bezel/v1beta1/CancelResponse'; -import { RunRequest as _build_stack_bezel_v1beta1_RunRequest, RunRequest__Output as _build_stack_bezel_v1beta1_RunRequest__Output } from '../../../../build/stack/bezel/v1beta1/RunRequest'; -import { RunResponse as _build_stack_bezel_v1beta1_RunResponse, RunResponse__Output as _build_stack_bezel_v1beta1_RunResponse__Output } from '../../../../build/stack/bezel/v1beta1/RunResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { CancelRequest as _build_stack_bezel_v1beta1_CancelRequest, CancelRequest__Output as _build_stack_bezel_v1beta1_CancelRequest__Output } from '../../../../build/stack/bezel/v1beta1/CancelRequest'; +import type { CancelResponse as _build_stack_bezel_v1beta1_CancelResponse, CancelResponse__Output as _build_stack_bezel_v1beta1_CancelResponse__Output } from '../../../../build/stack/bezel/v1beta1/CancelResponse'; +import type { RunRequest as _build_stack_bezel_v1beta1_RunRequest, RunRequest__Output as _build_stack_bezel_v1beta1_RunRequest__Output } from '../../../../build/stack/bezel/v1beta1/RunRequest'; +import type { RunResponse as _build_stack_bezel_v1beta1_RunResponse, RunResponse__Output as _build_stack_bezel_v1beta1_RunResponse__Output } from '../../../../build/stack/bezel/v1beta1/RunResponse'; export interface CommandServiceClient extends grpc.Client { Cancel(argument: _build_stack_bezel_v1beta1_CancelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_bezel_v1beta1_CancelResponse__Output) => void): grpc.ClientUnaryCall; @@ -24,8 +24,8 @@ export interface CommandServiceClient extends grpc.Client { } export interface CommandServiceHandlers extends grpc.UntypedServiceImplementation { - Cancel(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_CancelRequest__Output, _build_stack_bezel_v1beta1_CancelResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_CancelResponse>): void; + Cancel: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_CancelRequest__Output, _build_stack_bezel_v1beta1_CancelResponse>; - Run(call: grpc.ServerWritableStream<_build_stack_bezel_v1beta1_RunRequest__Output, _build_stack_bezel_v1beta1_RunResponse>): void; + Run: grpc.handleServerStreamingCall<_build_stack_bezel_v1beta1_RunRequest__Output, _build_stack_bezel_v1beta1_RunResponse>; } diff --git a/src/proto/build/stack/bezel/v1beta1/ExecRequest.ts b/src/proto/build/stack/bezel/v1beta1/ExecRequest.ts index 0b8a8f34..6330cbf3 100644 --- a/src/proto/build/stack/bezel/v1beta1/ExecRequest.ts +++ b/src/proto/build/stack/bezel/v1beta1/ExecRequest.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { EnvironmentVariable as _build_stack_bezel_v1beta1_EnvironmentVariable, EnvironmentVariable__Output as _build_stack_bezel_v1beta1_EnvironmentVariable__Output } from '../../../../build/stack/bezel/v1beta1/EnvironmentVariable'; +import type { EnvironmentVariable as _build_stack_bezel_v1beta1_EnvironmentVariable, EnvironmentVariable__Output as _build_stack_bezel_v1beta1_EnvironmentVariable__Output } from '../../../../build/stack/bezel/v1beta1/EnvironmentVariable'; /** * Mirrors the command_server ExecRequest but uses strings instead of bytes. diff --git a/src/proto/build/stack/bezel/v1beta1/ExecResponse.ts b/src/proto/build/stack/bezel/v1beta1/ExecResponse.ts index 9d383548..2967a2ce 100644 --- a/src/proto/build/stack/bezel/v1beta1/ExecResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/ExecResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; export interface ExecResponse { /** diff --git a/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesRequest.ts b/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesRequest.ts index 8a412665..e8f669d8 100644 --- a/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesRequest.ts +++ b/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesRequest.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; export interface ExternalListWorkspacesRequest { 'workspace'?: (_build_stack_bezel_v1beta1_Workspace); diff --git a/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesResponse.ts b/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesResponse.ts index 5a66be32..aae28fad 100644 --- a/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/ExternalListWorkspacesResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { ExternalWorkspace as _build_stack_bezel_v1beta1_ExternalWorkspace, ExternalWorkspace__Output as _build_stack_bezel_v1beta1_ExternalWorkspace__Output } from '../../../../build/stack/bezel/v1beta1/ExternalWorkspace'; +import type { ExternalWorkspace as _build_stack_bezel_v1beta1_ExternalWorkspace, ExternalWorkspace__Output as _build_stack_bezel_v1beta1_ExternalWorkspace__Output } from '../../../../build/stack/bezel/v1beta1/ExternalWorkspace'; export interface ExternalListWorkspacesResponse { 'workspace'?: (_build_stack_bezel_v1beta1_ExternalWorkspace)[]; diff --git a/src/proto/build/stack/bezel/v1beta1/ExternalWorkspaceService.ts b/src/proto/build/stack/bezel/v1beta1/ExternalWorkspaceService.ts index e4da03f0..0e61f2c7 100644 --- a/src/proto/build/stack/bezel/v1beta1/ExternalWorkspaceService.ts +++ b/src/proto/build/stack/bezel/v1beta1/ExternalWorkspaceService.ts @@ -1,8 +1,8 @@ // Original file: proto/bzl.proto -import * as grpc from '@grpc/grpc-js' -import { ExternalListWorkspacesRequest as _build_stack_bezel_v1beta1_ExternalListWorkspacesRequest, ExternalListWorkspacesRequest__Output as _build_stack_bezel_v1beta1_ExternalListWorkspacesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ExternalListWorkspacesRequest'; -import { ExternalListWorkspacesResponse as _build_stack_bezel_v1beta1_ExternalListWorkspacesResponse, ExternalListWorkspacesResponse__Output as _build_stack_bezel_v1beta1_ExternalListWorkspacesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ExternalListWorkspacesResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { ExternalListWorkspacesRequest as _build_stack_bezel_v1beta1_ExternalListWorkspacesRequest, ExternalListWorkspacesRequest__Output as _build_stack_bezel_v1beta1_ExternalListWorkspacesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ExternalListWorkspacesRequest'; +import type { ExternalListWorkspacesResponse as _build_stack_bezel_v1beta1_ExternalListWorkspacesResponse, ExternalListWorkspacesResponse__Output as _build_stack_bezel_v1beta1_ExternalListWorkspacesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ExternalListWorkspacesResponse'; export interface ExternalWorkspaceServiceClient extends grpc.Client { ListExternal(argument: _build_stack_bezel_v1beta1_ExternalListWorkspacesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_bezel_v1beta1_ExternalListWorkspacesResponse__Output) => void): grpc.ClientUnaryCall; @@ -17,6 +17,6 @@ export interface ExternalWorkspaceServiceClient extends grpc.Client { } export interface ExternalWorkspaceServiceHandlers extends grpc.UntypedServiceImplementation { - ListExternal(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_ExternalListWorkspacesRequest__Output, _build_stack_bezel_v1beta1_ExternalListWorkspacesResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_ExternalListWorkspacesResponse>): void; + ListExternal: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_ExternalListWorkspacesRequest__Output, _build_stack_bezel_v1beta1_ExternalListWorkspacesResponse>; } diff --git a/src/proto/build/stack/bezel/v1beta1/FileDownloadRequest.ts b/src/proto/build/stack/bezel/v1beta1/FileDownloadRequest.ts index c0381c46..f42cafec 100644 --- a/src/proto/build/stack/bezel/v1beta1/FileDownloadRequest.ts +++ b/src/proto/build/stack/bezel/v1beta1/FileDownloadRequest.ts @@ -1,7 +1,7 @@ // Original file: proto/bzl.proto -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; -import { FileKind as _build_stack_bezel_v1beta1_FileKind } from '../../../../build/stack/bezel/v1beta1/FileKind'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type { FileKind as _build_stack_bezel_v1beta1_FileKind } from '../../../../build/stack/bezel/v1beta1/FileKind'; export interface FileDownloadRequest { 'workspace'?: (_build_stack_bezel_v1beta1_Workspace); diff --git a/src/proto/build/stack/bezel/v1beta1/FileDownloadResponse.ts b/src/proto/build/stack/bezel/v1beta1/FileDownloadResponse.ts index 01a825ed..30488ee9 100644 --- a/src/proto/build/stack/bezel/v1beta1/FileDownloadResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/FileDownloadResponse.ts @@ -1,7 +1,7 @@ // Original file: proto/bzl.proto -import { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; -import { Long } from '@grpc/proto-loader'; +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; +import type { Long } from '@grpc/proto-loader'; export interface FileDownloadResponse { /** diff --git a/src/proto/build/stack/bezel/v1beta1/FileService.ts b/src/proto/build/stack/bezel/v1beta1/FileService.ts index 679c5620..9c91377e 100644 --- a/src/proto/build/stack/bezel/v1beta1/FileService.ts +++ b/src/proto/build/stack/bezel/v1beta1/FileService.ts @@ -1,8 +1,8 @@ // Original file: proto/bzl.proto -import * as grpc from '@grpc/grpc-js' -import { FileDownloadRequest as _build_stack_bezel_v1beta1_FileDownloadRequest, FileDownloadRequest__Output as _build_stack_bezel_v1beta1_FileDownloadRequest__Output } from '../../../../build/stack/bezel/v1beta1/FileDownloadRequest'; -import { FileDownloadResponse as _build_stack_bezel_v1beta1_FileDownloadResponse, FileDownloadResponse__Output as _build_stack_bezel_v1beta1_FileDownloadResponse__Output } from '../../../../build/stack/bezel/v1beta1/FileDownloadResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { FileDownloadRequest as _build_stack_bezel_v1beta1_FileDownloadRequest, FileDownloadRequest__Output as _build_stack_bezel_v1beta1_FileDownloadRequest__Output } from '../../../../build/stack/bezel/v1beta1/FileDownloadRequest'; +import type { FileDownloadResponse as _build_stack_bezel_v1beta1_FileDownloadResponse, FileDownloadResponse__Output as _build_stack_bezel_v1beta1_FileDownloadResponse__Output } from '../../../../build/stack/bezel/v1beta1/FileDownloadResponse'; export interface FileServiceClient extends grpc.Client { Download(argument: _build_stack_bezel_v1beta1_FileDownloadRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_bezel_v1beta1_FileDownloadResponse__Output) => void): grpc.ClientUnaryCall; @@ -17,6 +17,6 @@ export interface FileServiceClient extends grpc.Client { } export interface FileServiceHandlers extends grpc.UntypedServiceImplementation { - Download(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_FileDownloadRequest__Output, _build_stack_bezel_v1beta1_FileDownloadResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_FileDownloadResponse>): void; + Download: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_FileDownloadRequest__Output, _build_stack_bezel_v1beta1_FileDownloadResponse>; } diff --git a/src/proto/build/stack/bezel/v1beta1/History.ts b/src/proto/build/stack/bezel/v1beta1/History.ts index c4381658..0b52abee 100644 --- a/src/proto/build/stack/bezel/v1beta1/History.ts +++ b/src/proto/build/stack/bezel/v1beta1/History.ts @@ -1,10 +1,10 @@ // Original file: proto/bzl.proto -import * as grpc from '@grpc/grpc-js' -import { DeleteCommandHistoryRequest as _build_stack_bezel_v1beta1_DeleteCommandHistoryRequest, DeleteCommandHistoryRequest__Output as _build_stack_bezel_v1beta1_DeleteCommandHistoryRequest__Output } from '../../../../build/stack/bezel/v1beta1/DeleteCommandHistoryRequest'; -import { DeleteCommandHistoryResponse as _build_stack_bezel_v1beta1_DeleteCommandHistoryResponse, DeleteCommandHistoryResponse__Output as _build_stack_bezel_v1beta1_DeleteCommandHistoryResponse__Output } from '../../../../build/stack/bezel/v1beta1/DeleteCommandHistoryResponse'; -import { ListCommandHistoryRequest as _build_stack_bezel_v1beta1_ListCommandHistoryRequest, ListCommandHistoryRequest__Output as _build_stack_bezel_v1beta1_ListCommandHistoryRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListCommandHistoryRequest'; -import { ListCommandHistoryResponse as _build_stack_bezel_v1beta1_ListCommandHistoryResponse, ListCommandHistoryResponse__Output as _build_stack_bezel_v1beta1_ListCommandHistoryResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListCommandHistoryResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { DeleteCommandHistoryRequest as _build_stack_bezel_v1beta1_DeleteCommandHistoryRequest, DeleteCommandHistoryRequest__Output as _build_stack_bezel_v1beta1_DeleteCommandHistoryRequest__Output } from '../../../../build/stack/bezel/v1beta1/DeleteCommandHistoryRequest'; +import type { DeleteCommandHistoryResponse as _build_stack_bezel_v1beta1_DeleteCommandHistoryResponse, DeleteCommandHistoryResponse__Output as _build_stack_bezel_v1beta1_DeleteCommandHistoryResponse__Output } from '../../../../build/stack/bezel/v1beta1/DeleteCommandHistoryResponse'; +import type { ListCommandHistoryRequest as _build_stack_bezel_v1beta1_ListCommandHistoryRequest, ListCommandHistoryRequest__Output as _build_stack_bezel_v1beta1_ListCommandHistoryRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListCommandHistoryRequest'; +import type { ListCommandHistoryResponse as _build_stack_bezel_v1beta1_ListCommandHistoryResponse, ListCommandHistoryResponse__Output as _build_stack_bezel_v1beta1_ListCommandHistoryResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListCommandHistoryResponse'; export interface HistoryClient extends grpc.Client { Delete(argument: _build_stack_bezel_v1beta1_DeleteCommandHistoryRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_bezel_v1beta1_DeleteCommandHistoryResponse__Output) => void): grpc.ClientUnaryCall; @@ -28,8 +28,8 @@ export interface HistoryClient extends grpc.Client { } export interface HistoryHandlers extends grpc.UntypedServiceImplementation { - Delete(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_DeleteCommandHistoryRequest__Output, _build_stack_bezel_v1beta1_DeleteCommandHistoryResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_DeleteCommandHistoryResponse>): void; + Delete: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_DeleteCommandHistoryRequest__Output, _build_stack_bezel_v1beta1_DeleteCommandHistoryResponse>; - List(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_ListCommandHistoryRequest__Output, _build_stack_bezel_v1beta1_ListCommandHistoryResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_ListCommandHistoryResponse>): void; + List: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_ListCommandHistoryRequest__Output, _build_stack_bezel_v1beta1_ListCommandHistoryResponse>; } diff --git a/src/proto/build/stack/bezel/v1beta1/ListCommandHistoryResponse.ts b/src/proto/build/stack/bezel/v1beta1/ListCommandHistoryResponse.ts index ab9569fc..4e4a2644 100644 --- a/src/proto/build/stack/bezel/v1beta1/ListCommandHistoryResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/ListCommandHistoryResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { CommandHistory as _build_stack_bezel_v1beta1_CommandHistory, CommandHistory__Output as _build_stack_bezel_v1beta1_CommandHistory__Output } from '../../../../build/stack/bezel/v1beta1/CommandHistory'; +import type { CommandHistory as _build_stack_bezel_v1beta1_CommandHistory, CommandHistory__Output as _build_stack_bezel_v1beta1_CommandHistory__Output } from '../../../../build/stack/bezel/v1beta1/CommandHistory'; export interface ListCommandHistoryResponse { 'history'?: (_build_stack_bezel_v1beta1_CommandHistory)[]; diff --git a/src/proto/build/stack/bezel/v1beta1/ListPackagesRequest.ts b/src/proto/build/stack/bezel/v1beta1/ListPackagesRequest.ts index d34fdc06..5c046818 100644 --- a/src/proto/build/stack/bezel/v1beta1/ListPackagesRequest.ts +++ b/src/proto/build/stack/bezel/v1beta1/ListPackagesRequest.ts @@ -1,7 +1,7 @@ // Original file: proto/bzl.proto -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; -import { ExternalWorkspace as _build_stack_bezel_v1beta1_ExternalWorkspace, ExternalWorkspace__Output as _build_stack_bezel_v1beta1_ExternalWorkspace__Output } from '../../../../build/stack/bezel/v1beta1/ExternalWorkspace'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type { ExternalWorkspace as _build_stack_bezel_v1beta1_ExternalWorkspace, ExternalWorkspace__Output as _build_stack_bezel_v1beta1_ExternalWorkspace__Output } from '../../../../build/stack/bezel/v1beta1/ExternalWorkspace'; export interface ListPackagesRequest { 'workspace'?: (_build_stack_bezel_v1beta1_Workspace); diff --git a/src/proto/build/stack/bezel/v1beta1/ListPackagesResponse.ts b/src/proto/build/stack/bezel/v1beta1/ListPackagesResponse.ts index f374ae2b..faa84272 100644 --- a/src/proto/build/stack/bezel/v1beta1/ListPackagesResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/ListPackagesResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Package as _build_stack_bezel_v1beta1_Package, Package__Output as _build_stack_bezel_v1beta1_Package__Output } from '../../../../build/stack/bezel/v1beta1/Package'; +import type { Package as _build_stack_bezel_v1beta1_Package, Package__Output as _build_stack_bezel_v1beta1_Package__Output } from '../../../../build/stack/bezel/v1beta1/Package'; export interface ListPackagesResponse { /** diff --git a/src/proto/build/stack/bezel/v1beta1/ListRulesRequest.ts b/src/proto/build/stack/bezel/v1beta1/ListRulesRequest.ts index 38bd428f..7b709224 100644 --- a/src/proto/build/stack/bezel/v1beta1/ListRulesRequest.ts +++ b/src/proto/build/stack/bezel/v1beta1/ListRulesRequest.ts @@ -1,8 +1,8 @@ // Original file: proto/bzl.proto -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; -import { ExternalWorkspace as _build_stack_bezel_v1beta1_ExternalWorkspace, ExternalWorkspace__Output as _build_stack_bezel_v1beta1_ExternalWorkspace__Output } from '../../../../build/stack/bezel/v1beta1/ExternalWorkspace'; -import { Package as _build_stack_bezel_v1beta1_Package, Package__Output as _build_stack_bezel_v1beta1_Package__Output } from '../../../../build/stack/bezel/v1beta1/Package'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type { ExternalWorkspace as _build_stack_bezel_v1beta1_ExternalWorkspace, ExternalWorkspace__Output as _build_stack_bezel_v1beta1_ExternalWorkspace__Output } from '../../../../build/stack/bezel/v1beta1/ExternalWorkspace'; +import type { Package as _build_stack_bezel_v1beta1_Package, Package__Output as _build_stack_bezel_v1beta1_Package__Output } from '../../../../build/stack/bezel/v1beta1/Package'; export interface ListRulesRequest { /** diff --git a/src/proto/build/stack/bezel/v1beta1/ListRulesResponse.ts b/src/proto/build/stack/bezel/v1beta1/ListRulesResponse.ts index 85eb5840..20bcfd74 100644 --- a/src/proto/build/stack/bezel/v1beta1/ListRulesResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/ListRulesResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { LabelKind as _build_stack_bezel_v1beta1_LabelKind, LabelKind__Output as _build_stack_bezel_v1beta1_LabelKind__Output } from '../../../../build/stack/bezel/v1beta1/LabelKind'; +import type { LabelKind as _build_stack_bezel_v1beta1_LabelKind, LabelKind__Output as _build_stack_bezel_v1beta1_LabelKind__Output } from '../../../../build/stack/bezel/v1beta1/LabelKind'; export interface ListRulesResponse { /** diff --git a/src/proto/build/stack/bezel/v1beta1/ListWorkspacesResponse.ts b/src/proto/build/stack/bezel/v1beta1/ListWorkspacesResponse.ts index 2f8ebcc2..ba9279ab 100644 --- a/src/proto/build/stack/bezel/v1beta1/ListWorkspacesResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/ListWorkspacesResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; /** * ListWorkspacesResponse is produced by the WorkspaceService.List rpc. diff --git a/src/proto/build/stack/bezel/v1beta1/Metadata.ts b/src/proto/build/stack/bezel/v1beta1/Metadata.ts index 63b8e88d..1a46e74e 100644 --- a/src/proto/build/stack/bezel/v1beta1/Metadata.ts +++ b/src/proto/build/stack/bezel/v1beta1/Metadata.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; /** * Metadata about the UI application diff --git a/src/proto/build/stack/bezel/v1beta1/PackageService.ts b/src/proto/build/stack/bezel/v1beta1/PackageService.ts index 33eebf92..c2f93ec0 100644 --- a/src/proto/build/stack/bezel/v1beta1/PackageService.ts +++ b/src/proto/build/stack/bezel/v1beta1/PackageService.ts @@ -1,10 +1,10 @@ // Original file: proto/bzl.proto -import * as grpc from '@grpc/grpc-js' -import { ListPackagesRequest as _build_stack_bezel_v1beta1_ListPackagesRequest, ListPackagesRequest__Output as _build_stack_bezel_v1beta1_ListPackagesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListPackagesRequest'; -import { ListPackagesResponse as _build_stack_bezel_v1beta1_ListPackagesResponse, ListPackagesResponse__Output as _build_stack_bezel_v1beta1_ListPackagesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListPackagesResponse'; -import { ListRulesRequest as _build_stack_bezel_v1beta1_ListRulesRequest, ListRulesRequest__Output as _build_stack_bezel_v1beta1_ListRulesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListRulesRequest'; -import { ListRulesResponse as _build_stack_bezel_v1beta1_ListRulesResponse, ListRulesResponse__Output as _build_stack_bezel_v1beta1_ListRulesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListRulesResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { ListPackagesRequest as _build_stack_bezel_v1beta1_ListPackagesRequest, ListPackagesRequest__Output as _build_stack_bezel_v1beta1_ListPackagesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListPackagesRequest'; +import type { ListPackagesResponse as _build_stack_bezel_v1beta1_ListPackagesResponse, ListPackagesResponse__Output as _build_stack_bezel_v1beta1_ListPackagesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListPackagesResponse'; +import type { ListRulesRequest as _build_stack_bezel_v1beta1_ListRulesRequest, ListRulesRequest__Output as _build_stack_bezel_v1beta1_ListRulesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListRulesRequest'; +import type { ListRulesResponse as _build_stack_bezel_v1beta1_ListRulesResponse, ListRulesResponse__Output as _build_stack_bezel_v1beta1_ListRulesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListRulesResponse'; /** * PackageService defines an API for listing packages and rules. @@ -34,8 +34,8 @@ export interface PackageServiceClient extends grpc.Client { * PackageService defines an API for listing packages and rules. */ export interface PackageServiceHandlers extends grpc.UntypedServiceImplementation { - ListPackages(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_ListPackagesRequest__Output, _build_stack_bezel_v1beta1_ListPackagesResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_ListPackagesResponse>): void; + ListPackages: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_ListPackagesRequest__Output, _build_stack_bezel_v1beta1_ListPackagesResponse>; - ListRules(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_ListRulesRequest__Output, _build_stack_bezel_v1beta1_ListRulesResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_ListRulesResponse>): void; + ListRules: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_ListRulesRequest__Output, _build_stack_bezel_v1beta1_ListRulesResponse>; } diff --git a/src/proto/build/stack/bezel/v1beta1/RunRequest.ts b/src/proto/build/stack/bezel/v1beta1/RunRequest.ts index 974a2c8e..85f1711a 100644 --- a/src/proto/build/stack/bezel/v1beta1/RunRequest.ts +++ b/src/proto/build/stack/bezel/v1beta1/RunRequest.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; export interface RunRequest { 'workspace'?: (_build_stack_bezel_v1beta1_Workspace); diff --git a/src/proto/build/stack/bezel/v1beta1/RunResponse.ts b/src/proto/build/stack/bezel/v1beta1/RunResponse.ts index 954c8647..38429224 100644 --- a/src/proto/build/stack/bezel/v1beta1/RunResponse.ts +++ b/src/proto/build/stack/bezel/v1beta1/RunResponse.ts @@ -1,7 +1,7 @@ // Original file: proto/bzl.proto -import { OrderedBuildEvent as _google_devtools_build_v1_OrderedBuildEvent, OrderedBuildEvent__Output as _google_devtools_build_v1_OrderedBuildEvent__Output } from '../../../../google/devtools/build/v1/OrderedBuildEvent'; -import { ExecRequest as _build_stack_bezel_v1beta1_ExecRequest, ExecRequest__Output as _build_stack_bezel_v1beta1_ExecRequest__Output } from '../../../../build/stack/bezel/v1beta1/ExecRequest'; +import type { OrderedBuildEvent as _google_devtools_build_v1_OrderedBuildEvent, OrderedBuildEvent__Output as _google_devtools_build_v1_OrderedBuildEvent__Output } from '../../../../google/devtools/build/v1/OrderedBuildEvent'; +import type { ExecRequest as _build_stack_bezel_v1beta1_ExecRequest, ExecRequest__Output as _build_stack_bezel_v1beta1_ExecRequest__Output } from '../../../../build/stack/bezel/v1beta1/ExecRequest'; export interface RunResponse { /** diff --git a/src/proto/build/stack/bezel/v1beta1/Workspace.ts b/src/proto/build/stack/bezel/v1beta1/Workspace.ts index 8cbafadc..d7caa851 100644 --- a/src/proto/build/stack/bezel/v1beta1/Workspace.ts +++ b/src/proto/build/stack/bezel/v1beta1/Workspace.ts @@ -1,6 +1,6 @@ // Original file: proto/bzl.proto -import { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; /** * Workspace represents a local bazel repository diff --git a/src/proto/build/stack/bezel/v1beta1/WorkspaceService.ts b/src/proto/build/stack/bezel/v1beta1/WorkspaceService.ts index dd935231..6554bba3 100644 --- a/src/proto/build/stack/bezel/v1beta1/WorkspaceService.ts +++ b/src/proto/build/stack/bezel/v1beta1/WorkspaceService.ts @@ -1,10 +1,10 @@ // Original file: proto/bzl.proto -import * as grpc from '@grpc/grpc-js' -import { GetWorkspaceRequest as _build_stack_bezel_v1beta1_GetWorkspaceRequest, GetWorkspaceRequest__Output as _build_stack_bezel_v1beta1_GetWorkspaceRequest__Output } from '../../../../build/stack/bezel/v1beta1/GetWorkspaceRequest'; -import { ListWorkspacesRequest as _build_stack_bezel_v1beta1_ListWorkspacesRequest, ListWorkspacesRequest__Output as _build_stack_bezel_v1beta1_ListWorkspacesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListWorkspacesRequest'; -import { ListWorkspacesResponse as _build_stack_bezel_v1beta1_ListWorkspacesResponse, ListWorkspacesResponse__Output as _build_stack_bezel_v1beta1_ListWorkspacesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListWorkspacesResponse'; -import { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; +import type * as grpc from '@grpc/grpc-js' +import type { GetWorkspaceRequest as _build_stack_bezel_v1beta1_GetWorkspaceRequest, GetWorkspaceRequest__Output as _build_stack_bezel_v1beta1_GetWorkspaceRequest__Output } from '../../../../build/stack/bezel/v1beta1/GetWorkspaceRequest'; +import type { ListWorkspacesRequest as _build_stack_bezel_v1beta1_ListWorkspacesRequest, ListWorkspacesRequest__Output as _build_stack_bezel_v1beta1_ListWorkspacesRequest__Output } from '../../../../build/stack/bezel/v1beta1/ListWorkspacesRequest'; +import type { ListWorkspacesResponse as _build_stack_bezel_v1beta1_ListWorkspacesResponse, ListWorkspacesResponse__Output as _build_stack_bezel_v1beta1_ListWorkspacesResponse__Output } from '../../../../build/stack/bezel/v1beta1/ListWorkspacesResponse'; +import type { Workspace as _build_stack_bezel_v1beta1_Workspace, Workspace__Output as _build_stack_bezel_v1beta1_Workspace__Output } from '../../../../build/stack/bezel/v1beta1/Workspace'; export interface WorkspaceServiceClient extends grpc.Client { Get(argument: _build_stack_bezel_v1beta1_GetWorkspaceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_bezel_v1beta1_Workspace__Output) => void): grpc.ClientUnaryCall; @@ -28,8 +28,8 @@ export interface WorkspaceServiceClient extends grpc.Client { } export interface WorkspaceServiceHandlers extends grpc.UntypedServiceImplementation { - Get(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_GetWorkspaceRequest__Output, _build_stack_bezel_v1beta1_Workspace>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_Workspace>): void; + Get: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_GetWorkspaceRequest__Output, _build_stack_bezel_v1beta1_Workspace>; - List(call: grpc.ServerUnaryCall<_build_stack_bezel_v1beta1_ListWorkspacesRequest__Output, _build_stack_bezel_v1beta1_ListWorkspacesResponse>, callback: grpc.sendUnaryData<_build_stack_bezel_v1beta1_ListWorkspacesResponse>): void; + List: grpc.handleUnaryCall<_build_stack_bezel_v1beta1_ListWorkspacesRequest__Output, _build_stack_bezel_v1beta1_ListWorkspacesResponse>; } diff --git a/src/proto/build/stack/codesearch/v1beta1/CodeSearch.ts b/src/proto/build/stack/codesearch/v1beta1/CodeSearch.ts index 1d43ea43..5bc49a8b 100644 --- a/src/proto/build/stack/codesearch/v1beta1/CodeSearch.ts +++ b/src/proto/build/stack/codesearch/v1beta1/CodeSearch.ts @@ -1,8 +1,8 @@ // Original file: proto/codesearch.proto -import * as grpc from '@grpc/grpc-js' -import { CodeSearchResult as _livegrep_CodeSearchResult, CodeSearchResult__Output as _livegrep_CodeSearchResult__Output } from '../../../../livegrep/CodeSearchResult'; -import { ScopedQuery as _build_stack_codesearch_v1beta1_ScopedQuery, ScopedQuery__Output as _build_stack_codesearch_v1beta1_ScopedQuery__Output } from '../../../../build/stack/codesearch/v1beta1/ScopedQuery'; +import type * as grpc from '@grpc/grpc-js' +import type { CodeSearchResult as _livegrep_CodeSearchResult, CodeSearchResult__Output as _livegrep_CodeSearchResult__Output } from '../../../../livegrep/CodeSearchResult'; +import type { ScopedQuery as _build_stack_codesearch_v1beta1_ScopedQuery, ScopedQuery__Output as _build_stack_codesearch_v1beta1_ScopedQuery__Output } from '../../../../build/stack/codesearch/v1beta1/ScopedQuery'; export interface CodeSearchClient extends grpc.Client { Search(argument: _build_stack_codesearch_v1beta1_ScopedQuery, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _livegrep_CodeSearchResult__Output) => void): grpc.ClientUnaryCall; @@ -17,6 +17,6 @@ export interface CodeSearchClient extends grpc.Client { } export interface CodeSearchHandlers extends grpc.UntypedServiceImplementation { - Search(call: grpc.ServerUnaryCall<_build_stack_codesearch_v1beta1_ScopedQuery__Output, _livegrep_CodeSearchResult>, callback: grpc.sendUnaryData<_livegrep_CodeSearchResult>): void; + Search: grpc.handleUnaryCall<_build_stack_codesearch_v1beta1_ScopedQuery__Output, _livegrep_CodeSearchResult>; } diff --git a/src/proto/build/stack/codesearch/v1beta1/CreateScopeRequest.ts b/src/proto/build/stack/codesearch/v1beta1/CreateScopeRequest.ts index 7ffc14b8..08203b57 100644 --- a/src/proto/build/stack/codesearch/v1beta1/CreateScopeRequest.ts +++ b/src/proto/build/stack/codesearch/v1beta1/CreateScopeRequest.ts @@ -1,6 +1,6 @@ // Original file: proto/codesearch.proto -import { BazelQuery as _build_stack_codesearch_v1beta1_BazelQuery, BazelQuery__Output as _build_stack_codesearch_v1beta1_BazelQuery__Output } from '../../../../build/stack/codesearch/v1beta1/BazelQuery'; +import type { BazelQuery as _build_stack_codesearch_v1beta1_BazelQuery, BazelQuery__Output as _build_stack_codesearch_v1beta1_BazelQuery__Output } from '../../../../build/stack/codesearch/v1beta1/BazelQuery'; export interface CreateScopeRequest { 'cwd'?: (string); diff --git a/src/proto/build/stack/codesearch/v1beta1/LineBlock.ts b/src/proto/build/stack/codesearch/v1beta1/LineBlock.ts index 2148ea3a..1a12fd6f 100644 --- a/src/proto/build/stack/codesearch/v1beta1/LineBlock.ts +++ b/src/proto/build/stack/codesearch/v1beta1/LineBlock.ts @@ -1,6 +1,6 @@ // Original file: proto/codesearch.proto -import { LineBounds as _build_stack_codesearch_v1beta1_LineBounds, LineBounds__Output as _build_stack_codesearch_v1beta1_LineBounds__Output } from '../../../../build/stack/codesearch/v1beta1/LineBounds'; +import type { LineBounds as _build_stack_codesearch_v1beta1_LineBounds, LineBounds__Output as _build_stack_codesearch_v1beta1_LineBounds__Output } from '../../../../build/stack/codesearch/v1beta1/LineBounds'; /** * A block is a contiguous set of lines. diff --git a/src/proto/build/stack/codesearch/v1beta1/LineBounds.ts b/src/proto/build/stack/codesearch/v1beta1/LineBounds.ts index 60dd5b72..a35e9494 100644 --- a/src/proto/build/stack/codesearch/v1beta1/LineBounds.ts +++ b/src/proto/build/stack/codesearch/v1beta1/LineBounds.ts @@ -1,7 +1,7 @@ // Original file: proto/codesearch.proto -import { Bounds as _livegrep_Bounds, Bounds__Output as _livegrep_Bounds__Output } from '../../../../livegrep/Bounds'; -import { Long } from '@grpc/proto-loader'; +import type { Bounds as _livegrep_Bounds, Bounds__Output as _livegrep_Bounds__Output } from '../../../../livegrep/Bounds'; +import type { Long } from '@grpc/proto-loader'; /** * the set of context lines and matched lines. The line numbers should be diff --git a/src/proto/build/stack/codesearch/v1beta1/ListScopesResponse.ts b/src/proto/build/stack/codesearch/v1beta1/ListScopesResponse.ts index 064e91f8..3eba695f 100644 --- a/src/proto/build/stack/codesearch/v1beta1/ListScopesResponse.ts +++ b/src/proto/build/stack/codesearch/v1beta1/ListScopesResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/codesearch.proto -import { Scope as _build_stack_codesearch_v1beta1_Scope, Scope__Output as _build_stack_codesearch_v1beta1_Scope__Output } from '../../../../build/stack/codesearch/v1beta1/Scope'; +import type { Scope as _build_stack_codesearch_v1beta1_Scope, Scope__Output as _build_stack_codesearch_v1beta1_Scope__Output } from '../../../../build/stack/codesearch/v1beta1/Scope'; export interface ListScopesResponse { 'scope'?: (_build_stack_codesearch_v1beta1_Scope)[]; diff --git a/src/proto/build/stack/codesearch/v1beta1/MergedCodeSearchResult.ts b/src/proto/build/stack/codesearch/v1beta1/MergedCodeSearchResult.ts index 368ca48c..9eece50f 100644 --- a/src/proto/build/stack/codesearch/v1beta1/MergedCodeSearchResult.ts +++ b/src/proto/build/stack/codesearch/v1beta1/MergedCodeSearchResult.ts @@ -1,9 +1,9 @@ // Original file: proto/codesearch.proto -import { SearchStats as _livegrep_SearchStats, SearchStats__Output as _livegrep_SearchStats__Output } from '../../../../livegrep/SearchStats'; -import { MergedSearchResult as _build_stack_codesearch_v1beta1_MergedSearchResult, MergedSearchResult__Output as _build_stack_codesearch_v1beta1_MergedSearchResult__Output } from '../../../../build/stack/codesearch/v1beta1/MergedSearchResult'; -import { FileResult as _livegrep_FileResult, FileResult__Output as _livegrep_FileResult__Output } from '../../../../livegrep/FileResult'; -import { Long } from '@grpc/proto-loader'; +import type { SearchStats as _livegrep_SearchStats, SearchStats__Output as _livegrep_SearchStats__Output } from '../../../../livegrep/SearchStats'; +import type { MergedSearchResult as _build_stack_codesearch_v1beta1_MergedSearchResult, MergedSearchResult__Output as _build_stack_codesearch_v1beta1_MergedSearchResult__Output } from '../../../../build/stack/codesearch/v1beta1/MergedSearchResult'; +import type { FileResult as _livegrep_FileResult, FileResult__Output as _livegrep_FileResult__Output } from '../../../../livegrep/FileResult'; +import type { Long } from '@grpc/proto-loader'; export interface MergedCodeSearchResult { 'stats'?: (_livegrep_SearchStats); diff --git a/src/proto/build/stack/codesearch/v1beta1/MergedSearchResult.ts b/src/proto/build/stack/codesearch/v1beta1/MergedSearchResult.ts index 2678c44f..a91873cb 100644 --- a/src/proto/build/stack/codesearch/v1beta1/MergedSearchResult.ts +++ b/src/proto/build/stack/codesearch/v1beta1/MergedSearchResult.ts @@ -1,6 +1,6 @@ // Original file: proto/codesearch.proto -import { LineBlock as _build_stack_codesearch_v1beta1_LineBlock, LineBlock__Output as _build_stack_codesearch_v1beta1_LineBlock__Output } from '../../../../build/stack/codesearch/v1beta1/LineBlock'; +import type { LineBlock as _build_stack_codesearch_v1beta1_LineBlock, LineBlock__Output as _build_stack_codesearch_v1beta1_LineBlock__Output } from '../../../../build/stack/codesearch/v1beta1/LineBlock'; /** * MergedSearchResult is the union of multiple SearchResult items for the same diff --git a/src/proto/build/stack/codesearch/v1beta1/Scope.ts b/src/proto/build/stack/codesearch/v1beta1/Scope.ts index a87e6abd..90f144e8 100644 --- a/src/proto/build/stack/codesearch/v1beta1/Scope.ts +++ b/src/proto/build/stack/codesearch/v1beta1/Scope.ts @@ -1,8 +1,8 @@ // Original file: proto/codesearch.proto -import { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; -import { ServerInfo as _livegrep_ServerInfo, ServerInfo__Output as _livegrep_ServerInfo__Output } from '../../../../livegrep/ServerInfo'; -import { Long } from '@grpc/proto-loader'; +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; +import type { ServerInfo as _livegrep_ServerInfo, ServerInfo__Output as _livegrep_ServerInfo__Output } from '../../../../livegrep/ServerInfo'; +import type { Long } from '@grpc/proto-loader'; /** * A scope is a definition of a set of files diff --git a/src/proto/build/stack/codesearch/v1beta1/ScopedQuery.ts b/src/proto/build/stack/codesearch/v1beta1/ScopedQuery.ts index 2a784799..cf2c46eb 100644 --- a/src/proto/build/stack/codesearch/v1beta1/ScopedQuery.ts +++ b/src/proto/build/stack/codesearch/v1beta1/ScopedQuery.ts @@ -1,6 +1,6 @@ // Original file: proto/codesearch.proto -import { Query as _livegrep_Query, Query__Output as _livegrep_Query__Output } from '../../../../livegrep/Query'; +import type { Query as _livegrep_Query, Query__Output as _livegrep_Query__Output } from '../../../../livegrep/Query'; export interface ScopedQuery { /** diff --git a/src/proto/build/stack/codesearch/v1beta1/Scopes.ts b/src/proto/build/stack/codesearch/v1beta1/Scopes.ts index 2ca3a9de..00a7b772 100644 --- a/src/proto/build/stack/codesearch/v1beta1/Scopes.ts +++ b/src/proto/build/stack/codesearch/v1beta1/Scopes.ts @@ -1,12 +1,12 @@ // Original file: proto/codesearch.proto -import * as grpc from '@grpc/grpc-js' -import { CreateScopeRequest as _build_stack_codesearch_v1beta1_CreateScopeRequest, CreateScopeRequest__Output as _build_stack_codesearch_v1beta1_CreateScopeRequest__Output } from '../../../../build/stack/codesearch/v1beta1/CreateScopeRequest'; -import { CreateScopeResponse as _build_stack_codesearch_v1beta1_CreateScopeResponse, CreateScopeResponse__Output as _build_stack_codesearch_v1beta1_CreateScopeResponse__Output } from '../../../../build/stack/codesearch/v1beta1/CreateScopeResponse'; -import { GetScopeRequest as _build_stack_codesearch_v1beta1_GetScopeRequest, GetScopeRequest__Output as _build_stack_codesearch_v1beta1_GetScopeRequest__Output } from '../../../../build/stack/codesearch/v1beta1/GetScopeRequest'; -import { ListScopesRequest as _build_stack_codesearch_v1beta1_ListScopesRequest, ListScopesRequest__Output as _build_stack_codesearch_v1beta1_ListScopesRequest__Output } from '../../../../build/stack/codesearch/v1beta1/ListScopesRequest'; -import { ListScopesResponse as _build_stack_codesearch_v1beta1_ListScopesResponse, ListScopesResponse__Output as _build_stack_codesearch_v1beta1_ListScopesResponse__Output } from '../../../../build/stack/codesearch/v1beta1/ListScopesResponse'; -import { Scope as _build_stack_codesearch_v1beta1_Scope, Scope__Output as _build_stack_codesearch_v1beta1_Scope__Output } from '../../../../build/stack/codesearch/v1beta1/Scope'; +import type * as grpc from '@grpc/grpc-js' +import type { CreateScopeRequest as _build_stack_codesearch_v1beta1_CreateScopeRequest, CreateScopeRequest__Output as _build_stack_codesearch_v1beta1_CreateScopeRequest__Output } from '../../../../build/stack/codesearch/v1beta1/CreateScopeRequest'; +import type { CreateScopeResponse as _build_stack_codesearch_v1beta1_CreateScopeResponse, CreateScopeResponse__Output as _build_stack_codesearch_v1beta1_CreateScopeResponse__Output } from '../../../../build/stack/codesearch/v1beta1/CreateScopeResponse'; +import type { GetScopeRequest as _build_stack_codesearch_v1beta1_GetScopeRequest, GetScopeRequest__Output as _build_stack_codesearch_v1beta1_GetScopeRequest__Output } from '../../../../build/stack/codesearch/v1beta1/GetScopeRequest'; +import type { ListScopesRequest as _build_stack_codesearch_v1beta1_ListScopesRequest, ListScopesRequest__Output as _build_stack_codesearch_v1beta1_ListScopesRequest__Output } from '../../../../build/stack/codesearch/v1beta1/ListScopesRequest'; +import type { ListScopesResponse as _build_stack_codesearch_v1beta1_ListScopesResponse, ListScopesResponse__Output as _build_stack_codesearch_v1beta1_ListScopesResponse__Output } from '../../../../build/stack/codesearch/v1beta1/ListScopesResponse'; +import type { Scope as _build_stack_codesearch_v1beta1_Scope, Scope__Output as _build_stack_codesearch_v1beta1_Scope__Output } from '../../../../build/stack/codesearch/v1beta1/Scope'; export interface ScopesClient extends grpc.Client { Create(argument: _build_stack_codesearch_v1beta1_CreateScopeRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_build_stack_codesearch_v1beta1_CreateScopeResponse__Output>; @@ -35,10 +35,10 @@ export interface ScopesClient extends grpc.Client { } export interface ScopesHandlers extends grpc.UntypedServiceImplementation { - Create(call: grpc.ServerWritableStream<_build_stack_codesearch_v1beta1_CreateScopeRequest__Output, _build_stack_codesearch_v1beta1_CreateScopeResponse>): void; + Create: grpc.handleServerStreamingCall<_build_stack_codesearch_v1beta1_CreateScopeRequest__Output, _build_stack_codesearch_v1beta1_CreateScopeResponse>; - Get(call: grpc.ServerUnaryCall<_build_stack_codesearch_v1beta1_GetScopeRequest__Output, _build_stack_codesearch_v1beta1_Scope>, callback: grpc.sendUnaryData<_build_stack_codesearch_v1beta1_Scope>): void; + Get: grpc.handleUnaryCall<_build_stack_codesearch_v1beta1_GetScopeRequest__Output, _build_stack_codesearch_v1beta1_Scope>; - List(call: grpc.ServerUnaryCall<_build_stack_codesearch_v1beta1_ListScopesRequest__Output, _build_stack_codesearch_v1beta1_ListScopesResponse>, callback: grpc.sendUnaryData<_build_stack_codesearch_v1beta1_ListScopesResponse>): void; + List: grpc.handleUnaryCall<_build_stack_codesearch_v1beta1_ListScopesRequest__Output, _build_stack_codesearch_v1beta1_ListScopesResponse>; } diff --git a/src/proto/build/stack/license/v1beta1/License.ts b/src/proto/build/stack/license/v1beta1/License.ts index 05c8f088..e6c882e1 100644 --- a/src/proto/build/stack/license/v1beta1/License.ts +++ b/src/proto/build/stack/license/v1beta1/License.ts @@ -1,6 +1,6 @@ // Original file: proto/license.proto -import { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; // Original file: proto/license.proto diff --git a/src/proto/build/stack/license/v1beta1/Licenses.ts b/src/proto/build/stack/license/v1beta1/Licenses.ts index 026cc008..8abf90e7 100644 --- a/src/proto/build/stack/license/v1beta1/Licenses.ts +++ b/src/proto/build/stack/license/v1beta1/Licenses.ts @@ -1,8 +1,8 @@ // Original file: proto/license.proto -import * as grpc from '@grpc/grpc-js' -import { RenewLicenseRequest as _build_stack_license_v1beta1_RenewLicenseRequest, RenewLicenseRequest__Output as _build_stack_license_v1beta1_RenewLicenseRequest__Output } from '../../../../build/stack/license/v1beta1/RenewLicenseRequest'; -import { RenewLicenseResponse as _build_stack_license_v1beta1_RenewLicenseResponse, RenewLicenseResponse__Output as _build_stack_license_v1beta1_RenewLicenseResponse__Output } from '../../../../build/stack/license/v1beta1/RenewLicenseResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { RenewLicenseRequest as _build_stack_license_v1beta1_RenewLicenseRequest, RenewLicenseRequest__Output as _build_stack_license_v1beta1_RenewLicenseRequest__Output } from '../../../../build/stack/license/v1beta1/RenewLicenseRequest'; +import type { RenewLicenseResponse as _build_stack_license_v1beta1_RenewLicenseResponse, RenewLicenseResponse__Output as _build_stack_license_v1beta1_RenewLicenseResponse__Output } from '../../../../build/stack/license/v1beta1/RenewLicenseResponse'; export interface LicensesClient extends grpc.Client { Renew(argument: _build_stack_license_v1beta1_RenewLicenseRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_license_v1beta1_RenewLicenseResponse__Output) => void): grpc.ClientUnaryCall; @@ -17,6 +17,6 @@ export interface LicensesClient extends grpc.Client { } export interface LicensesHandlers extends grpc.UntypedServiceImplementation { - Renew(call: grpc.ServerUnaryCall<_build_stack_license_v1beta1_RenewLicenseRequest__Output, _build_stack_license_v1beta1_RenewLicenseResponse>, callback: grpc.sendUnaryData<_build_stack_license_v1beta1_RenewLicenseResponse>): void; + Renew: grpc.handleUnaryCall<_build_stack_license_v1beta1_RenewLicenseRequest__Output, _build_stack_license_v1beta1_RenewLicenseResponse>; } diff --git a/src/proto/build/stack/license/v1beta1/RenewLicenseResponse.ts b/src/proto/build/stack/license/v1beta1/RenewLicenseResponse.ts index 6f7d1653..2151c122 100644 --- a/src/proto/build/stack/license/v1beta1/RenewLicenseResponse.ts +++ b/src/proto/build/stack/license/v1beta1/RenewLicenseResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/license.proto -import { License as _build_stack_license_v1beta1_License, License__Output as _build_stack_license_v1beta1_License__Output } from '../../../../build/stack/license/v1beta1/License'; +import type { License as _build_stack_license_v1beta1_License, License__Output as _build_stack_license_v1beta1_License__Output } from '../../../../build/stack/license/v1beta1/License'; export interface RenewLicenseResponse { /** diff --git a/src/proto/build/stack/nucleate/v1beta/CancelSubscriptionResponse.ts b/src/proto/build/stack/nucleate/v1beta/CancelSubscriptionResponse.ts index a79fcd1c..0662f30d 100644 --- a/src/proto/build/stack/nucleate/v1beta/CancelSubscriptionResponse.ts +++ b/src/proto/build/stack/nucleate/v1beta/CancelSubscriptionResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/nucleate.proto -import { Subscription as _build_stack_nucleate_v1beta_Subscription, Subscription__Output as _build_stack_nucleate_v1beta_Subscription__Output } from '../../../../build/stack/nucleate/v1beta/Subscription'; +import type { Subscription as _build_stack_nucleate_v1beta_Subscription, Subscription__Output as _build_stack_nucleate_v1beta_Subscription__Output } from '../../../../build/stack/nucleate/v1beta/Subscription'; export interface CancelSubscriptionResponse { 'subscription'?: (_build_stack_nucleate_v1beta_Subscription); diff --git a/src/proto/build/stack/nucleate/v1beta/CreateSubscriptionRequest.ts b/src/proto/build/stack/nucleate/v1beta/CreateSubscriptionRequest.ts index f24d390f..d022bc12 100644 --- a/src/proto/build/stack/nucleate/v1beta/CreateSubscriptionRequest.ts +++ b/src/proto/build/stack/nucleate/v1beta/CreateSubscriptionRequest.ts @@ -1,6 +1,6 @@ // Original file: proto/nucleate.proto -import { PaymentSource as _build_stack_nucleate_v1beta_PaymentSource, PaymentSource__Output as _build_stack_nucleate_v1beta_PaymentSource__Output } from '../../../../build/stack/nucleate/v1beta/PaymentSource'; +import type { PaymentSource as _build_stack_nucleate_v1beta_PaymentSource, PaymentSource__Output as _build_stack_nucleate_v1beta_PaymentSource__Output } from '../../../../build/stack/nucleate/v1beta/PaymentSource'; /** * Username is implied in the auth headers diff --git a/src/proto/build/stack/nucleate/v1beta/Customer.ts b/src/proto/build/stack/nucleate/v1beta/Customer.ts index afaac66f..29c1e2ee 100644 --- a/src/proto/build/stack/nucleate/v1beta/Customer.ts +++ b/src/proto/build/stack/nucleate/v1beta/Customer.ts @@ -1,6 +1,6 @@ // Original file: proto/nucleate.proto -import { Subscription as _build_stack_nucleate_v1beta_Subscription, Subscription__Output as _build_stack_nucleate_v1beta_Subscription__Output } from '../../../../build/stack/nucleate/v1beta/Subscription'; +import type { Subscription as _build_stack_nucleate_v1beta_Subscription, Subscription__Output as _build_stack_nucleate_v1beta_Subscription__Output } from '../../../../build/stack/nucleate/v1beta/Subscription'; export interface Customer { 'id'?: (string); diff --git a/src/proto/build/stack/nucleate/v1beta/Customers.ts b/src/proto/build/stack/nucleate/v1beta/Customers.ts index b982dac1..2ec4c808 100644 --- a/src/proto/build/stack/nucleate/v1beta/Customers.ts +++ b/src/proto/build/stack/nucleate/v1beta/Customers.ts @@ -1,8 +1,8 @@ // Original file: proto/nucleate.proto -import * as grpc from '@grpc/grpc-js' -import { Customer as _build_stack_nucleate_v1beta_Customer, Customer__Output as _build_stack_nucleate_v1beta_Customer__Output } from '../../../../build/stack/nucleate/v1beta/Customer'; -import { GetCustomerRequest as _build_stack_nucleate_v1beta_GetCustomerRequest, GetCustomerRequest__Output as _build_stack_nucleate_v1beta_GetCustomerRequest__Output } from '../../../../build/stack/nucleate/v1beta/GetCustomerRequest'; +import type * as grpc from '@grpc/grpc-js' +import type { Customer as _build_stack_nucleate_v1beta_Customer, Customer__Output as _build_stack_nucleate_v1beta_Customer__Output } from '../../../../build/stack/nucleate/v1beta/Customer'; +import type { GetCustomerRequest as _build_stack_nucleate_v1beta_GetCustomerRequest, GetCustomerRequest__Output as _build_stack_nucleate_v1beta_GetCustomerRequest__Output } from '../../../../build/stack/nucleate/v1beta/GetCustomerRequest'; export interface CustomersClient extends grpc.Client { Get(argument: _build_stack_nucleate_v1beta_GetCustomerRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_nucleate_v1beta_Customer__Output) => void): grpc.ClientUnaryCall; @@ -17,6 +17,6 @@ export interface CustomersClient extends grpc.Client { } export interface CustomersHandlers extends grpc.UntypedServiceImplementation { - Get(call: grpc.ServerUnaryCall<_build_stack_nucleate_v1beta_GetCustomerRequest__Output, _build_stack_nucleate_v1beta_Customer>, callback: grpc.sendUnaryData<_build_stack_nucleate_v1beta_Customer>): void; + Get: grpc.handleUnaryCall<_build_stack_nucleate_v1beta_GetCustomerRequest__Output, _build_stack_nucleate_v1beta_Customer>; } diff --git a/src/proto/build/stack/nucleate/v1beta/ListPlansResponse.ts b/src/proto/build/stack/nucleate/v1beta/ListPlansResponse.ts index c9935df7..98a09bf6 100644 --- a/src/proto/build/stack/nucleate/v1beta/ListPlansResponse.ts +++ b/src/proto/build/stack/nucleate/v1beta/ListPlansResponse.ts @@ -1,6 +1,6 @@ // Original file: proto/nucleate.proto -import { Plan as _build_stack_nucleate_v1beta_Plan, Plan__Output as _build_stack_nucleate_v1beta_Plan__Output } from '../../../../build/stack/nucleate/v1beta/Plan'; +import type { Plan as _build_stack_nucleate_v1beta_Plan, Plan__Output as _build_stack_nucleate_v1beta_Plan__Output } from '../../../../build/stack/nucleate/v1beta/Plan'; export interface ListPlansResponse { 'plan'?: (_build_stack_nucleate_v1beta_Plan)[]; diff --git a/src/proto/build/stack/nucleate/v1beta/Plan.ts b/src/proto/build/stack/nucleate/v1beta/Plan.ts index abdb23c3..a9653d29 100644 --- a/src/proto/build/stack/nucleate/v1beta/Plan.ts +++ b/src/proto/build/stack/nucleate/v1beta/Plan.ts @@ -1,6 +1,6 @@ // Original file: proto/nucleate.proto -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; export interface Plan { 'id'?: (string); diff --git a/src/proto/build/stack/nucleate/v1beta/Plans.ts b/src/proto/build/stack/nucleate/v1beta/Plans.ts index 74cb4bdf..8b51ef0b 100644 --- a/src/proto/build/stack/nucleate/v1beta/Plans.ts +++ b/src/proto/build/stack/nucleate/v1beta/Plans.ts @@ -1,8 +1,8 @@ // Original file: proto/nucleate.proto -import * as grpc from '@grpc/grpc-js' -import { ListPlansRequest as _build_stack_nucleate_v1beta_ListPlansRequest, ListPlansRequest__Output as _build_stack_nucleate_v1beta_ListPlansRequest__Output } from '../../../../build/stack/nucleate/v1beta/ListPlansRequest'; -import { ListPlansResponse as _build_stack_nucleate_v1beta_ListPlansResponse, ListPlansResponse__Output as _build_stack_nucleate_v1beta_ListPlansResponse__Output } from '../../../../build/stack/nucleate/v1beta/ListPlansResponse'; +import type * as grpc from '@grpc/grpc-js' +import type { ListPlansRequest as _build_stack_nucleate_v1beta_ListPlansRequest, ListPlansRequest__Output as _build_stack_nucleate_v1beta_ListPlansRequest__Output } from '../../../../build/stack/nucleate/v1beta/ListPlansRequest'; +import type { ListPlansResponse as _build_stack_nucleate_v1beta_ListPlansResponse, ListPlansResponse__Output as _build_stack_nucleate_v1beta_ListPlansResponse__Output } from '../../../../build/stack/nucleate/v1beta/ListPlansResponse'; export interface PlansClient extends grpc.Client { List(argument: _build_stack_nucleate_v1beta_ListPlansRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_nucleate_v1beta_ListPlansResponse__Output) => void): grpc.ClientUnaryCall; @@ -17,6 +17,6 @@ export interface PlansClient extends grpc.Client { } export interface PlansHandlers extends grpc.UntypedServiceImplementation { - List(call: grpc.ServerUnaryCall<_build_stack_nucleate_v1beta_ListPlansRequest__Output, _build_stack_nucleate_v1beta_ListPlansResponse>, callback: grpc.sendUnaryData<_build_stack_nucleate_v1beta_ListPlansResponse>): void; + List: grpc.handleUnaryCall<_build_stack_nucleate_v1beta_ListPlansRequest__Output, _build_stack_nucleate_v1beta_ListPlansResponse>; } diff --git a/src/proto/build/stack/nucleate/v1beta/Subscription.ts b/src/proto/build/stack/nucleate/v1beta/Subscription.ts index bcabcf6f..ec888adc 100644 --- a/src/proto/build/stack/nucleate/v1beta/Subscription.ts +++ b/src/proto/build/stack/nucleate/v1beta/Subscription.ts @@ -1,6 +1,6 @@ // Original file: proto/nucleate.proto -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; export interface Subscription { 'customerId'?: (string); diff --git a/src/proto/build/stack/nucleate/v1beta/Subscriptions.ts b/src/proto/build/stack/nucleate/v1beta/Subscriptions.ts index 30959dcb..47033af6 100644 --- a/src/proto/build/stack/nucleate/v1beta/Subscriptions.ts +++ b/src/proto/build/stack/nucleate/v1beta/Subscriptions.ts @@ -1,10 +1,10 @@ // Original file: proto/nucleate.proto -import * as grpc from '@grpc/grpc-js' -import { CancelSubscriptionRequest as _build_stack_nucleate_v1beta_CancelSubscriptionRequest, CancelSubscriptionRequest__Output as _build_stack_nucleate_v1beta_CancelSubscriptionRequest__Output } from '../../../../build/stack/nucleate/v1beta/CancelSubscriptionRequest'; -import { CancelSubscriptionResponse as _build_stack_nucleate_v1beta_CancelSubscriptionResponse, CancelSubscriptionResponse__Output as _build_stack_nucleate_v1beta_CancelSubscriptionResponse__Output } from '../../../../build/stack/nucleate/v1beta/CancelSubscriptionResponse'; -import { CreateSubscriptionRequest as _build_stack_nucleate_v1beta_CreateSubscriptionRequest, CreateSubscriptionRequest__Output as _build_stack_nucleate_v1beta_CreateSubscriptionRequest__Output } from '../../../../build/stack/nucleate/v1beta/CreateSubscriptionRequest'; -import { Subscription as _build_stack_nucleate_v1beta_Subscription, Subscription__Output as _build_stack_nucleate_v1beta_Subscription__Output } from '../../../../build/stack/nucleate/v1beta/Subscription'; +import type * as grpc from '@grpc/grpc-js' +import type { CancelSubscriptionRequest as _build_stack_nucleate_v1beta_CancelSubscriptionRequest, CancelSubscriptionRequest__Output as _build_stack_nucleate_v1beta_CancelSubscriptionRequest__Output } from '../../../../build/stack/nucleate/v1beta/CancelSubscriptionRequest'; +import type { CancelSubscriptionResponse as _build_stack_nucleate_v1beta_CancelSubscriptionResponse, CancelSubscriptionResponse__Output as _build_stack_nucleate_v1beta_CancelSubscriptionResponse__Output } from '../../../../build/stack/nucleate/v1beta/CancelSubscriptionResponse'; +import type { CreateSubscriptionRequest as _build_stack_nucleate_v1beta_CreateSubscriptionRequest, CreateSubscriptionRequest__Output as _build_stack_nucleate_v1beta_CreateSubscriptionRequest__Output } from '../../../../build/stack/nucleate/v1beta/CreateSubscriptionRequest'; +import type { Subscription as _build_stack_nucleate_v1beta_Subscription, Subscription__Output as _build_stack_nucleate_v1beta_Subscription__Output } from '../../../../build/stack/nucleate/v1beta/Subscription'; export interface SubscriptionsClient extends grpc.Client { CancelSubscription(argument: _build_stack_nucleate_v1beta_CancelSubscriptionRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _build_stack_nucleate_v1beta_CancelSubscriptionResponse__Output) => void): grpc.ClientUnaryCall; @@ -28,8 +28,8 @@ export interface SubscriptionsClient extends grpc.Client { } export interface SubscriptionsHandlers extends grpc.UntypedServiceImplementation { - CancelSubscription(call: grpc.ServerUnaryCall<_build_stack_nucleate_v1beta_CancelSubscriptionRequest__Output, _build_stack_nucleate_v1beta_CancelSubscriptionResponse>, callback: grpc.sendUnaryData<_build_stack_nucleate_v1beta_CancelSubscriptionResponse>): void; + CancelSubscription: grpc.handleUnaryCall<_build_stack_nucleate_v1beta_CancelSubscriptionRequest__Output, _build_stack_nucleate_v1beta_CancelSubscriptionResponse>; - CreateSubscription(call: grpc.ServerUnaryCall<_build_stack_nucleate_v1beta_CreateSubscriptionRequest__Output, _build_stack_nucleate_v1beta_Subscription>, callback: grpc.sendUnaryData<_build_stack_nucleate_v1beta_Subscription>): void; + CreateSubscription: grpc.handleUnaryCall<_build_stack_nucleate_v1beta_CreateSubscriptionRequest__Output, _build_stack_nucleate_v1beta_Subscription>; } diff --git a/src/proto/build_event_stream.ts b/src/proto/build_event_stream.ts index 1ce27fb3..1a97d355 100644 --- a/src/proto/build_event_stream.ts +++ b/src/proto/build_event_stream.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/build_event_stream/ActionExecuted.ts b/src/proto/build_event_stream/ActionExecuted.ts index af801a77..7add7b3d 100644 --- a/src/proto/build_event_stream/ActionExecuted.ts +++ b/src/proto/build_event_stream/ActionExecuted.ts @@ -1,8 +1,8 @@ // Original file: proto/build_event_stream.proto -import { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; -import { _build_event_stream_BuildEventId_ConfigurationId, _build_event_stream_BuildEventId_ConfigurationId__Output } from '../build_event_stream/BuildEventId'; -import { FailureDetail as _failure_details_FailureDetail, FailureDetail__Output as _failure_details_FailureDetail__Output } from '../failure_details/FailureDetail'; +import type { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; +import type { _build_event_stream_BuildEventId_ConfigurationId, _build_event_stream_BuildEventId_ConfigurationId__Output } from '../build_event_stream/BuildEventId'; +import type { FailureDetail as _failure_details_FailureDetail, FailureDetail__Output as _failure_details_FailureDetail__Output } from '../failure_details/FailureDetail'; /** * Payload of the event indicating the completion of an action. The main purpose diff --git a/src/proto/build_event_stream/BuildEvent.ts b/src/proto/build_event_stream/BuildEvent.ts index b9272b92..d6b50ca6 100644 --- a/src/proto/build_event_stream/BuildEvent.ts +++ b/src/proto/build_event_stream/BuildEvent.ts @@ -1,28 +1,28 @@ // Original file: proto/build_event_stream.proto -import { BuildEventId as _build_event_stream_BuildEventId, BuildEventId__Output as _build_event_stream_BuildEventId__Output } from '../build_event_stream/BuildEventId'; -import { Progress as _build_event_stream_Progress, Progress__Output as _build_event_stream_Progress__Output } from '../build_event_stream/Progress'; -import { Aborted as _build_event_stream_Aborted, Aborted__Output as _build_event_stream_Aborted__Output } from '../build_event_stream/Aborted'; -import { BuildStarted as _build_event_stream_BuildStarted, BuildStarted__Output as _build_event_stream_BuildStarted__Output } from '../build_event_stream/BuildStarted'; -import { PatternExpanded as _build_event_stream_PatternExpanded, PatternExpanded__Output as _build_event_stream_PatternExpanded__Output } from '../build_event_stream/PatternExpanded'; -import { ActionExecuted as _build_event_stream_ActionExecuted, ActionExecuted__Output as _build_event_stream_ActionExecuted__Output } from '../build_event_stream/ActionExecuted'; -import { TargetComplete as _build_event_stream_TargetComplete, TargetComplete__Output as _build_event_stream_TargetComplete__Output } from '../build_event_stream/TargetComplete'; -import { TestSummary as _build_event_stream_TestSummary, TestSummary__Output as _build_event_stream_TestSummary__Output } from '../build_event_stream/TestSummary'; -import { TestResult as _build_event_stream_TestResult, TestResult__Output as _build_event_stream_TestResult__Output } from '../build_event_stream/TestResult'; -import { UnstructuredCommandLine as _build_event_stream_UnstructuredCommandLine, UnstructuredCommandLine__Output as _build_event_stream_UnstructuredCommandLine__Output } from '../build_event_stream/UnstructuredCommandLine'; -import { OptionsParsed as _build_event_stream_OptionsParsed, OptionsParsed__Output as _build_event_stream_OptionsParsed__Output } from '../build_event_stream/OptionsParsed'; -import { BuildFinished as _build_event_stream_BuildFinished, BuildFinished__Output as _build_event_stream_BuildFinished__Output } from '../build_event_stream/BuildFinished'; -import { NamedSetOfFiles as _build_event_stream_NamedSetOfFiles, NamedSetOfFiles__Output as _build_event_stream_NamedSetOfFiles__Output } from '../build_event_stream/NamedSetOfFiles'; -import { WorkspaceStatus as _build_event_stream_WorkspaceStatus, WorkspaceStatus__Output as _build_event_stream_WorkspaceStatus__Output } from '../build_event_stream/WorkspaceStatus'; -import { Configuration as _build_event_stream_Configuration, Configuration__Output as _build_event_stream_Configuration__Output } from '../build_event_stream/Configuration'; -import { TargetConfigured as _build_event_stream_TargetConfigured, TargetConfigured__Output as _build_event_stream_TargetConfigured__Output } from '../build_event_stream/TargetConfigured'; -import { Fetch as _build_event_stream_Fetch, Fetch__Output as _build_event_stream_Fetch__Output } from '../build_event_stream/Fetch'; -import { CommandLine as _command_line_CommandLine, CommandLine__Output as _command_line_CommandLine__Output } from '../command_line/CommandLine'; -import { BuildToolLogs as _build_event_stream_BuildToolLogs, BuildToolLogs__Output as _build_event_stream_BuildToolLogs__Output } from '../build_event_stream/BuildToolLogs'; -import { BuildMetrics as _build_event_stream_BuildMetrics, BuildMetrics__Output as _build_event_stream_BuildMetrics__Output } from '../build_event_stream/BuildMetrics'; -import { WorkspaceConfig as _build_event_stream_WorkspaceConfig, WorkspaceConfig__Output as _build_event_stream_WorkspaceConfig__Output } from '../build_event_stream/WorkspaceConfig'; -import { BuildMetadata as _build_event_stream_BuildMetadata, BuildMetadata__Output as _build_event_stream_BuildMetadata__Output } from '../build_event_stream/BuildMetadata'; -import { ConvenienceSymlinksIdentified as _build_event_stream_ConvenienceSymlinksIdentified, ConvenienceSymlinksIdentified__Output as _build_event_stream_ConvenienceSymlinksIdentified__Output } from '../build_event_stream/ConvenienceSymlinksIdentified'; +import type { BuildEventId as _build_event_stream_BuildEventId, BuildEventId__Output as _build_event_stream_BuildEventId__Output } from '../build_event_stream/BuildEventId'; +import type { Progress as _build_event_stream_Progress, Progress__Output as _build_event_stream_Progress__Output } from '../build_event_stream/Progress'; +import type { Aborted as _build_event_stream_Aborted, Aborted__Output as _build_event_stream_Aborted__Output } from '../build_event_stream/Aborted'; +import type { BuildStarted as _build_event_stream_BuildStarted, BuildStarted__Output as _build_event_stream_BuildStarted__Output } from '../build_event_stream/BuildStarted'; +import type { PatternExpanded as _build_event_stream_PatternExpanded, PatternExpanded__Output as _build_event_stream_PatternExpanded__Output } from '../build_event_stream/PatternExpanded'; +import type { ActionExecuted as _build_event_stream_ActionExecuted, ActionExecuted__Output as _build_event_stream_ActionExecuted__Output } from '../build_event_stream/ActionExecuted'; +import type { TargetComplete as _build_event_stream_TargetComplete, TargetComplete__Output as _build_event_stream_TargetComplete__Output } from '../build_event_stream/TargetComplete'; +import type { TestSummary as _build_event_stream_TestSummary, TestSummary__Output as _build_event_stream_TestSummary__Output } from '../build_event_stream/TestSummary'; +import type { TestResult as _build_event_stream_TestResult, TestResult__Output as _build_event_stream_TestResult__Output } from '../build_event_stream/TestResult'; +import type { UnstructuredCommandLine as _build_event_stream_UnstructuredCommandLine, UnstructuredCommandLine__Output as _build_event_stream_UnstructuredCommandLine__Output } from '../build_event_stream/UnstructuredCommandLine'; +import type { OptionsParsed as _build_event_stream_OptionsParsed, OptionsParsed__Output as _build_event_stream_OptionsParsed__Output } from '../build_event_stream/OptionsParsed'; +import type { BuildFinished as _build_event_stream_BuildFinished, BuildFinished__Output as _build_event_stream_BuildFinished__Output } from '../build_event_stream/BuildFinished'; +import type { NamedSetOfFiles as _build_event_stream_NamedSetOfFiles, NamedSetOfFiles__Output as _build_event_stream_NamedSetOfFiles__Output } from '../build_event_stream/NamedSetOfFiles'; +import type { WorkspaceStatus as _build_event_stream_WorkspaceStatus, WorkspaceStatus__Output as _build_event_stream_WorkspaceStatus__Output } from '../build_event_stream/WorkspaceStatus'; +import type { Configuration as _build_event_stream_Configuration, Configuration__Output as _build_event_stream_Configuration__Output } from '../build_event_stream/Configuration'; +import type { TargetConfigured as _build_event_stream_TargetConfigured, TargetConfigured__Output as _build_event_stream_TargetConfigured__Output } from '../build_event_stream/TargetConfigured'; +import type { Fetch as _build_event_stream_Fetch, Fetch__Output as _build_event_stream_Fetch__Output } from '../build_event_stream/Fetch'; +import type { CommandLine as _command_line_CommandLine, CommandLine__Output as _command_line_CommandLine__Output } from '../command_line/CommandLine'; +import type { BuildToolLogs as _build_event_stream_BuildToolLogs, BuildToolLogs__Output as _build_event_stream_BuildToolLogs__Output } from '../build_event_stream/BuildToolLogs'; +import type { BuildMetrics as _build_event_stream_BuildMetrics, BuildMetrics__Output as _build_event_stream_BuildMetrics__Output } from '../build_event_stream/BuildMetrics'; +import type { WorkspaceConfig as _build_event_stream_WorkspaceConfig, WorkspaceConfig__Output as _build_event_stream_WorkspaceConfig__Output } from '../build_event_stream/WorkspaceConfig'; +import type { BuildMetadata as _build_event_stream_BuildMetadata, BuildMetadata__Output as _build_event_stream_BuildMetadata__Output } from '../build_event_stream/BuildMetadata'; +import type { ConvenienceSymlinksIdentified as _build_event_stream_ConvenienceSymlinksIdentified, ConvenienceSymlinksIdentified__Output as _build_event_stream_ConvenienceSymlinksIdentified__Output } from '../build_event_stream/ConvenienceSymlinksIdentified'; /** * Message describing a build event. Events will have an identifier that diff --git a/src/proto/build_event_stream/BuildFinished.ts b/src/proto/build_event_stream/BuildFinished.ts index e831986d..23ad8801 100644 --- a/src/proto/build_event_stream/BuildFinished.ts +++ b/src/proto/build_event_stream/BuildFinished.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; /** * Things that happened during the build that could be of interest. diff --git a/src/proto/build_event_stream/BuildMetrics.ts b/src/proto/build_event_stream/BuildMetrics.ts index 68bf27c8..27bbc3d1 100644 --- a/src/proto/build_event_stream/BuildMetrics.ts +++ b/src/proto/build_event_stream/BuildMetrics.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; export interface _build_event_stream_BuildMetrics_ActionSummary { /** diff --git a/src/proto/build_event_stream/BuildStarted.ts b/src/proto/build_event_stream/BuildStarted.ts index 555e565f..fdfd92b4 100644 --- a/src/proto/build_event_stream/BuildStarted.ts +++ b/src/proto/build_event_stream/BuildStarted.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; /** * Payload of an event indicating the beginning of a new build. Usually, events diff --git a/src/proto/build_event_stream/BuildToolLogs.ts b/src/proto/build_event_stream/BuildToolLogs.ts index 78fd495e..aee61d83 100644 --- a/src/proto/build_event_stream/BuildToolLogs.ts +++ b/src/proto/build_event_stream/BuildToolLogs.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; +import type { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; /** * Event providing additional statistics/logs after completion of the build. diff --git a/src/proto/build_event_stream/ConvenienceSymlinksIdentified.ts b/src/proto/build_event_stream/ConvenienceSymlinksIdentified.ts index 7fe8618a..31c617b2 100644 --- a/src/proto/build_event_stream/ConvenienceSymlinksIdentified.ts +++ b/src/proto/build_event_stream/ConvenienceSymlinksIdentified.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { ConvenienceSymlink as _build_event_stream_ConvenienceSymlink, ConvenienceSymlink__Output as _build_event_stream_ConvenienceSymlink__Output } from '../build_event_stream/ConvenienceSymlink'; +import type { ConvenienceSymlink as _build_event_stream_ConvenienceSymlink, ConvenienceSymlink__Output as _build_event_stream_ConvenienceSymlink__Output } from '../build_event_stream/ConvenienceSymlink'; /** * Event describing all convenience symlinks (i.e., workspace symlinks) to be diff --git a/src/proto/build_event_stream/NamedSetOfFiles.ts b/src/proto/build_event_stream/NamedSetOfFiles.ts index f6e37f1d..b0bdd870 100644 --- a/src/proto/build_event_stream/NamedSetOfFiles.ts +++ b/src/proto/build_event_stream/NamedSetOfFiles.ts @@ -1,7 +1,7 @@ // Original file: proto/build_event_stream.proto -import { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; -import { _build_event_stream_BuildEventId_NamedSetOfFilesId, _build_event_stream_BuildEventId_NamedSetOfFilesId__Output } from '../build_event_stream/BuildEventId'; +import type { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; +import type { _build_event_stream_BuildEventId_NamedSetOfFilesId, _build_event_stream_BuildEventId_NamedSetOfFilesId__Output } from '../build_event_stream/BuildEventId'; /** * Payload of a message to describe a set of files, usually build artifacts, to diff --git a/src/proto/build_event_stream/OptionsParsed.ts b/src/proto/build_event_stream/OptionsParsed.ts index 7c24c7fe..34eecf18 100644 --- a/src/proto/build_event_stream/OptionsParsed.ts +++ b/src/proto/build_event_stream/OptionsParsed.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { InvocationPolicy as _blaze_invocation_policy_InvocationPolicy, InvocationPolicy__Output as _blaze_invocation_policy_InvocationPolicy__Output } from '../blaze/invocation_policy/InvocationPolicy'; +import type { InvocationPolicy as _blaze_invocation_policy_InvocationPolicy, InvocationPolicy__Output as _blaze_invocation_policy_InvocationPolicy__Output } from '../blaze/invocation_policy/InvocationPolicy'; /** * Payload of an event reporting on the parsed options, grouped in various ways. diff --git a/src/proto/build_event_stream/OutputGroup.ts b/src/proto/build_event_stream/OutputGroup.ts index b0c6b52c..d3ba74ed 100644 --- a/src/proto/build_event_stream/OutputGroup.ts +++ b/src/proto/build_event_stream/OutputGroup.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { _build_event_stream_BuildEventId_NamedSetOfFilesId, _build_event_stream_BuildEventId_NamedSetOfFilesId__Output } from '../build_event_stream/BuildEventId'; +import type { _build_event_stream_BuildEventId_NamedSetOfFilesId, _build_event_stream_BuildEventId_NamedSetOfFilesId__Output } from '../build_event_stream/BuildEventId'; /** * Collection of all output files belonging to that output group. diff --git a/src/proto/build_event_stream/TargetComplete.ts b/src/proto/build_event_stream/TargetComplete.ts index 96a71c67..4d5d4830 100644 --- a/src/proto/build_event_stream/TargetComplete.ts +++ b/src/proto/build_event_stream/TargetComplete.ts @@ -1,10 +1,10 @@ // Original file: proto/build_event_stream.proto -import { OutputGroup as _build_event_stream_OutputGroup, OutputGroup__Output as _build_event_stream_OutputGroup__Output } from '../build_event_stream/OutputGroup'; -import { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; -import { TestSize as _build_event_stream_TestSize } from '../build_event_stream/TestSize'; -import { FailureDetail as _failure_details_FailureDetail, FailureDetail__Output as _failure_details_FailureDetail__Output } from '../failure_details/FailureDetail'; -import { Long } from '@grpc/proto-loader'; +import type { OutputGroup as _build_event_stream_OutputGroup, OutputGroup__Output as _build_event_stream_OutputGroup__Output } from '../build_event_stream/OutputGroup'; +import type { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; +import type { TestSize as _build_event_stream_TestSize } from '../build_event_stream/TestSize'; +import type { FailureDetail as _failure_details_FailureDetail, FailureDetail__Output as _failure_details_FailureDetail__Output } from '../failure_details/FailureDetail'; +import type { Long } from '@grpc/proto-loader'; /** * Payload of the event indicating the completion of a target. The target is diff --git a/src/proto/build_event_stream/TargetConfigured.ts b/src/proto/build_event_stream/TargetConfigured.ts index b68bcdd6..15eb6a43 100644 --- a/src/proto/build_event_stream/TargetConfigured.ts +++ b/src/proto/build_event_stream/TargetConfigured.ts @@ -1,6 +1,6 @@ // Original file: proto/build_event_stream.proto -import { TestSize as _build_event_stream_TestSize } from '../build_event_stream/TestSize'; +import type { TestSize as _build_event_stream_TestSize } from '../build_event_stream/TestSize'; /** * Payload of the event indicating that the configurations for a target have diff --git a/src/proto/build_event_stream/TestResult.ts b/src/proto/build_event_stream/TestResult.ts index 91ebbfce..12612b76 100644 --- a/src/proto/build_event_stream/TestResult.ts +++ b/src/proto/build_event_stream/TestResult.ts @@ -1,8 +1,8 @@ // Original file: proto/build_event_stream.proto -import { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; -import { TestStatus as _build_event_stream_TestStatus } from '../build_event_stream/TestStatus'; -import { Long } from '@grpc/proto-loader'; +import type { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; +import type { TestStatus as _build_event_stream_TestStatus } from '../build_event_stream/TestStatus'; +import type { Long } from '@grpc/proto-loader'; /** * Message providing optional meta data on the execution of the test action, diff --git a/src/proto/build_event_stream/TestSummary.ts b/src/proto/build_event_stream/TestSummary.ts index 9df24e07..ab4eca12 100644 --- a/src/proto/build_event_stream/TestSummary.ts +++ b/src/proto/build_event_stream/TestSummary.ts @@ -1,8 +1,8 @@ // Original file: proto/build_event_stream.proto -import { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; -import { TestStatus as _build_event_stream_TestStatus } from '../build_event_stream/TestStatus'; -import { Long } from '@grpc/proto-loader'; +import type { File as _build_event_stream_File, File__Output as _build_event_stream_File__Output } from '../build_event_stream/File'; +import type { TestStatus as _build_event_stream_TestStatus } from '../build_event_stream/TestStatus'; +import type { Long } from '@grpc/proto-loader'; /** * Payload of the event summarizing a test. diff --git a/src/proto/build_events.ts b/src/proto/build_events.ts index 0c4c0723..846725fa 100644 --- a/src/proto/build_events.ts +++ b/src/proto/build_events.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/build_status.ts b/src/proto/build_status.ts index 15c6beb4..ee5145f5 100644 --- a/src/proto/build_status.ts +++ b/src/proto/build_status.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/bzl.ts b/src/proto/bzl.ts index da337fcb..159d9e84 100644 --- a/src/proto/bzl.ts +++ b/src/proto/bzl.ts @@ -1,18 +1,17 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -import { ApplicationServiceClient as _build_stack_bezel_v1beta1_ApplicationServiceClient } from './build/stack/bezel/v1beta1/ApplicationService'; -import { CommandServiceClient as _build_stack_bezel_v1beta1_CommandServiceClient } from './build/stack/bezel/v1beta1/CommandService'; -import { ExternalWorkspaceServiceClient as _build_stack_bezel_v1beta1_ExternalWorkspaceServiceClient } from './build/stack/bezel/v1beta1/ExternalWorkspaceService'; -import { FileServiceClient as _build_stack_bezel_v1beta1_FileServiceClient } from './build/stack/bezel/v1beta1/FileService'; -import { HistoryClient as _build_stack_bezel_v1beta1_HistoryClient } from './build/stack/bezel/v1beta1/History'; -import { PackageServiceClient as _build_stack_bezel_v1beta1_PackageServiceClient } from './build/stack/bezel/v1beta1/PackageService'; -import { WorkspaceServiceClient as _build_stack_bezel_v1beta1_WorkspaceServiceClient } from './build/stack/bezel/v1beta1/WorkspaceService'; -import { PublishBuildEventClient as _google_devtools_build_v1_PublishBuildEventClient } from './google/devtools/build/v1/PublishBuildEvent'; +import type { ApplicationServiceClient as _build_stack_bezel_v1beta1_ApplicationServiceClient } from './build/stack/bezel/v1beta1/ApplicationService'; +import type { CommandServiceClient as _build_stack_bezel_v1beta1_CommandServiceClient } from './build/stack/bezel/v1beta1/CommandService'; +import type { ExternalWorkspaceServiceClient as _build_stack_bezel_v1beta1_ExternalWorkspaceServiceClient } from './build/stack/bezel/v1beta1/ExternalWorkspaceService'; +import type { FileServiceClient as _build_stack_bezel_v1beta1_FileServiceClient } from './build/stack/bezel/v1beta1/FileService'; +import type { HistoryClient as _build_stack_bezel_v1beta1_HistoryClient } from './build/stack/bezel/v1beta1/History'; +import type { PackageServiceClient as _build_stack_bezel_v1beta1_PackageServiceClient } from './build/stack/bezel/v1beta1/PackageService'; +import type { WorkspaceServiceClient as _build_stack_bezel_v1beta1_WorkspaceServiceClient } from './build/stack/bezel/v1beta1/WorkspaceService'; +import type { PublishBuildEventClient as _google_devtools_build_v1_PublishBuildEventClient } from './google/devtools/build/v1/PublishBuildEvent'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/codesearch.ts b/src/proto/codesearch.ts index 36e685d4..19b8e817 100644 --- a/src/proto/codesearch.ts +++ b/src/proto/codesearch.ts @@ -1,13 +1,12 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -import { CodeSearchClient as _build_stack_codesearch_v1beta1_CodeSearchClient } from './build/stack/codesearch/v1beta1/CodeSearch'; -import { ScopesClient as _build_stack_codesearch_v1beta1_ScopesClient } from './build/stack/codesearch/v1beta1/Scopes'; -import { CodeSearchClient as _livegrep_CodeSearchClient } from './livegrep/CodeSearch'; +import type { CodeSearchClient as _build_stack_codesearch_v1beta1_CodeSearchClient } from './build/stack/codesearch/v1beta1/CodeSearch'; +import type { ScopesClient as _build_stack_codesearch_v1beta1_ScopesClient } from './build/stack/codesearch/v1beta1/Scopes'; +import type { CodeSearchClient as _livegrep_CodeSearchClient } from './livegrep/CodeSearch'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/command_line.ts b/src/proto/command_line.ts index 72c68187..3a5b5de2 100644 --- a/src/proto/command_line.ts +++ b/src/proto/command_line.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/command_line/CommandLine.ts b/src/proto/command_line/CommandLine.ts index f28f406e..83e0c9dc 100644 --- a/src/proto/command_line/CommandLine.ts +++ b/src/proto/command_line/CommandLine.ts @@ -1,6 +1,6 @@ // Original file: proto/command_line.proto -import { CommandLineSection as _command_line_CommandLineSection, CommandLineSection__Output as _command_line_CommandLineSection__Output } from '../command_line/CommandLineSection'; +import type { CommandLineSection as _command_line_CommandLineSection, CommandLineSection__Output as _command_line_CommandLineSection__Output } from '../command_line/CommandLineSection'; /** * Representation of a Bazel command line. diff --git a/src/proto/command_line/CommandLineSection.ts b/src/proto/command_line/CommandLineSection.ts index 47617ba5..59989499 100644 --- a/src/proto/command_line/CommandLineSection.ts +++ b/src/proto/command_line/CommandLineSection.ts @@ -1,7 +1,7 @@ // Original file: proto/command_line.proto -import { ChunkList as _command_line_ChunkList, ChunkList__Output as _command_line_ChunkList__Output } from '../command_line/ChunkList'; -import { OptionList as _command_line_OptionList, OptionList__Output as _command_line_OptionList__Output } from '../command_line/OptionList'; +import type { ChunkList as _command_line_ChunkList, ChunkList__Output as _command_line_ChunkList__Output } from '../command_line/ChunkList'; +import type { OptionList as _command_line_OptionList, OptionList__Output as _command_line_OptionList__Output } from '../command_line/OptionList'; /** * A section of the Bazel command line. diff --git a/src/proto/command_line/Option.ts b/src/proto/command_line/Option.ts index 0ef74c2b..ceffaa5d 100644 --- a/src/proto/command_line/Option.ts +++ b/src/proto/command_line/Option.ts @@ -1,7 +1,7 @@ // Original file: proto/command_line.proto -import { OptionEffectTag as _options_OptionEffectTag } from '../options/OptionEffectTag'; -import { OptionMetadataTag as _options_OptionMetadataTag } from '../options/OptionMetadataTag'; +import type { OptionEffectTag as _options_OptionEffectTag } from '../options/OptionEffectTag'; +import type { OptionMetadataTag as _options_OptionMetadataTag } from '../options/OptionMetadataTag'; /** * A single command line option. diff --git a/src/proto/command_line/OptionList.ts b/src/proto/command_line/OptionList.ts index b20d5ede..d665b189 100644 --- a/src/proto/command_line/OptionList.ts +++ b/src/proto/command_line/OptionList.ts @@ -1,6 +1,6 @@ // Original file: proto/command_line.proto -import { Option as _command_line_Option, Option__Output as _command_line_Option__Output } from '../command_line/Option'; +import type { Option as _command_line_Option, Option__Output as _command_line_Option__Output } from '../command_line/Option'; /** * Wrapper to allow a list of options in the "oneof" section_type. diff --git a/src/proto/failure_details.ts b/src/proto/failure_details.ts index cb937ef1..eda25f6b 100644 --- a/src/proto/failure_details.ts +++ b/src/proto/failure_details.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/failure_details/Crash.ts b/src/proto/failure_details/Crash.ts index 0ba0fa38..bdbb7671 100644 --- a/src/proto/failure_details/Crash.ts +++ b/src/proto/failure_details/Crash.ts @@ -1,6 +1,6 @@ // Original file: proto/failure_details.proto -import { Throwable as _failure_details_Throwable, Throwable__Output as _failure_details_Throwable__Output } from '../failure_details/Throwable'; +import type { Throwable as _failure_details_Throwable, Throwable__Output as _failure_details_Throwable__Output } from '../failure_details/Throwable'; // Original file: proto/failure_details.proto diff --git a/src/proto/failure_details/FailureDetail.ts b/src/proto/failure_details/FailureDetail.ts index 9a537d8e..0d642977 100644 --- a/src/proto/failure_details/FailureDetail.ts +++ b/src/proto/failure_details/FailureDetail.ts @@ -1,14 +1,14 @@ // Original file: proto/failure_details.proto -import { Interrupted as _failure_details_Interrupted, Interrupted__Output as _failure_details_Interrupted__Output } from '../failure_details/Interrupted'; -import { ExternalRepository as _failure_details_ExternalRepository, ExternalRepository__Output as _failure_details_ExternalRepository__Output } from '../failure_details/ExternalRepository'; -import { BuildProgress as _failure_details_BuildProgress, BuildProgress__Output as _failure_details_BuildProgress__Output } from '../failure_details/BuildProgress'; -import { RemoteOptions as _failure_details_RemoteOptions, RemoteOptions__Output as _failure_details_RemoteOptions__Output } from '../failure_details/RemoteOptions'; -import { ClientEnvironment as _failure_details_ClientEnvironment, ClientEnvironment__Output as _failure_details_ClientEnvironment__Output } from '../failure_details/ClientEnvironment'; -import { Crash as _failure_details_Crash, Crash__Output as _failure_details_Crash__Output } from '../failure_details/Crash'; -import { SymlinkForest as _failure_details_SymlinkForest, SymlinkForest__Output as _failure_details_SymlinkForest__Output } from '../failure_details/SymlinkForest'; -import { PackageOptions as _failure_details_PackageOptions, PackageOptions__Output as _failure_details_PackageOptions__Output } from '../failure_details/PackageOptions'; -import { RemoteExecution as _failure_details_RemoteExecution, RemoteExecution__Output as _failure_details_RemoteExecution__Output } from '../failure_details/RemoteExecution'; +import type { Interrupted as _failure_details_Interrupted, Interrupted__Output as _failure_details_Interrupted__Output } from '../failure_details/Interrupted'; +import type { ExternalRepository as _failure_details_ExternalRepository, ExternalRepository__Output as _failure_details_ExternalRepository__Output } from '../failure_details/ExternalRepository'; +import type { BuildProgress as _failure_details_BuildProgress, BuildProgress__Output as _failure_details_BuildProgress__Output } from '../failure_details/BuildProgress'; +import type { RemoteOptions as _failure_details_RemoteOptions, RemoteOptions__Output as _failure_details_RemoteOptions__Output } from '../failure_details/RemoteOptions'; +import type { ClientEnvironment as _failure_details_ClientEnvironment, ClientEnvironment__Output as _failure_details_ClientEnvironment__Output } from '../failure_details/ClientEnvironment'; +import type { Crash as _failure_details_Crash, Crash__Output as _failure_details_Crash__Output } from '../failure_details/Crash'; +import type { SymlinkForest as _failure_details_SymlinkForest, SymlinkForest__Output as _failure_details_SymlinkForest__Output } from '../failure_details/SymlinkForest'; +import type { PackageOptions as _failure_details_PackageOptions, PackageOptions__Output as _failure_details_PackageOptions__Output } from '../failure_details/PackageOptions'; +import type { RemoteExecution as _failure_details_RemoteExecution, RemoteExecution__Output as _failure_details_RemoteExecution__Output } from '../failure_details/RemoteExecution'; /** * The FailureDetail message type is designed such that consumers can extract a diff --git a/src/proto/google/api/Http.ts b/src/proto/google/api/Http.ts index dce78e44..8b9d12eb 100644 --- a/src/proto/google/api/Http.ts +++ b/src/proto/google/api/Http.ts @@ -1,6 +1,6 @@ // Original file: proto/http.proto -import { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule'; +import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule'; /** * Defines the HTTP configuration for an API service. It contains a list of diff --git a/src/proto/google/api/HttpRule.ts b/src/proto/google/api/HttpRule.ts index ecdd8eb2..54c5492b 100644 --- a/src/proto/google/api/HttpRule.ts +++ b/src/proto/google/api/HttpRule.ts @@ -1,7 +1,7 @@ // Original file: proto/http.proto -import { CustomHttpPattern as _google_api_CustomHttpPattern, CustomHttpPattern__Output as _google_api_CustomHttpPattern__Output } from '../../google/api/CustomHttpPattern'; -import { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule'; +import type { CustomHttpPattern as _google_api_CustomHttpPattern, CustomHttpPattern__Output as _google_api_CustomHttpPattern__Output } from '../../google/api/CustomHttpPattern'; +import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule'; /** * # gRPC Transcoding diff --git a/src/proto/google/devtools/build/v1/BuildEvent.ts b/src/proto/google/devtools/build/v1/BuildEvent.ts index 4c8d890d..dd9485a9 100644 --- a/src/proto/google/devtools/build/v1/BuildEvent.ts +++ b/src/proto/google/devtools/build/v1/BuildEvent.ts @@ -1,10 +1,10 @@ // Original file: proto/build_events.proto -import { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; -import { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../../google/protobuf/Any'; -import { BuildStatus as _google_devtools_build_v1_BuildStatus, BuildStatus__Output as _google_devtools_build_v1_BuildStatus__Output } from '../../../../google/devtools/build/v1/BuildStatus'; -import { ConsoleOutputStream as _google_devtools_build_v1_ConsoleOutputStream } from '../../../../google/devtools/build/v1/ConsoleOutputStream'; -import { Long } from '@grpc/proto-loader'; +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../google/protobuf/Timestamp'; +import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../../google/protobuf/Any'; +import type { BuildStatus as _google_devtools_build_v1_BuildStatus, BuildStatus__Output as _google_devtools_build_v1_BuildStatus__Output } from '../../../../google/devtools/build/v1/BuildStatus'; +import type { ConsoleOutputStream as _google_devtools_build_v1_ConsoleOutputStream } from '../../../../google/devtools/build/v1/ConsoleOutputStream'; +import type { Long } from '@grpc/proto-loader'; /** * Notification of the end of a build event stream published by a build diff --git a/src/proto/google/devtools/build/v1/BuildStatus.ts b/src/proto/google/devtools/build/v1/BuildStatus.ts index 6eb519a5..aea7acb0 100644 --- a/src/proto/google/devtools/build/v1/BuildStatus.ts +++ b/src/proto/google/devtools/build/v1/BuildStatus.ts @@ -1,6 +1,6 @@ // Original file: proto/build_status.proto -import { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../../google/protobuf/Any'; +import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../../google/protobuf/Any'; // Original file: proto/build_status.proto diff --git a/src/proto/google/devtools/build/v1/OrderedBuildEvent.ts b/src/proto/google/devtools/build/v1/OrderedBuildEvent.ts index ad48b288..47f55d20 100644 --- a/src/proto/google/devtools/build/v1/OrderedBuildEvent.ts +++ b/src/proto/google/devtools/build/v1/OrderedBuildEvent.ts @@ -1,8 +1,8 @@ // Original file: proto/publish_build_event.proto -import { StreamId as _google_devtools_build_v1_StreamId, StreamId__Output as _google_devtools_build_v1_StreamId__Output } from '../../../../google/devtools/build/v1/StreamId'; -import { BuildEvent as _google_devtools_build_v1_BuildEvent, BuildEvent__Output as _google_devtools_build_v1_BuildEvent__Output } from '../../../../google/devtools/build/v1/BuildEvent'; -import { Long } from '@grpc/proto-loader'; +import type { StreamId as _google_devtools_build_v1_StreamId, StreamId__Output as _google_devtools_build_v1_StreamId__Output } from '../../../../google/devtools/build/v1/StreamId'; +import type { BuildEvent as _google_devtools_build_v1_BuildEvent, BuildEvent__Output as _google_devtools_build_v1_BuildEvent__Output } from '../../../../google/devtools/build/v1/BuildEvent'; +import type { Long } from '@grpc/proto-loader'; /** * Build event with contextual information about the stream it belongs to and diff --git a/src/proto/google/devtools/build/v1/PublishBuildEvent.ts b/src/proto/google/devtools/build/v1/PublishBuildEvent.ts index bdf8dbf0..7bc8775b 100644 --- a/src/proto/google/devtools/build/v1/PublishBuildEvent.ts +++ b/src/proto/google/devtools/build/v1/PublishBuildEvent.ts @@ -1,10 +1,10 @@ // Original file: proto/publish_build_event.proto -import * as grpc from '@grpc/grpc-js' -import { Empty as _google_protobuf_Empty, Empty__Output as _google_protobuf_Empty__Output } from '../../../../google/protobuf/Empty'; -import { PublishBuildToolEventStreamRequest as _google_devtools_build_v1_PublishBuildToolEventStreamRequest, PublishBuildToolEventStreamRequest__Output as _google_devtools_build_v1_PublishBuildToolEventStreamRequest__Output } from '../../../../google/devtools/build/v1/PublishBuildToolEventStreamRequest'; -import { PublishBuildToolEventStreamResponse as _google_devtools_build_v1_PublishBuildToolEventStreamResponse, PublishBuildToolEventStreamResponse__Output as _google_devtools_build_v1_PublishBuildToolEventStreamResponse__Output } from '../../../../google/devtools/build/v1/PublishBuildToolEventStreamResponse'; -import { PublishLifecycleEventRequest as _google_devtools_build_v1_PublishLifecycleEventRequest, PublishLifecycleEventRequest__Output as _google_devtools_build_v1_PublishLifecycleEventRequest__Output } from '../../../../google/devtools/build/v1/PublishLifecycleEventRequest'; +import type * as grpc from '@grpc/grpc-js' +import type { Empty as _google_protobuf_Empty, Empty__Output as _google_protobuf_Empty__Output } from '../../../../google/protobuf/Empty'; +import type { PublishBuildToolEventStreamRequest as _google_devtools_build_v1_PublishBuildToolEventStreamRequest, PublishBuildToolEventStreamRequest__Output as _google_devtools_build_v1_PublishBuildToolEventStreamRequest__Output } from '../../../../google/devtools/build/v1/PublishBuildToolEventStreamRequest'; +import type { PublishBuildToolEventStreamResponse as _google_devtools_build_v1_PublishBuildToolEventStreamResponse, PublishBuildToolEventStreamResponse__Output as _google_devtools_build_v1_PublishBuildToolEventStreamResponse__Output } from '../../../../google/devtools/build/v1/PublishBuildToolEventStreamResponse'; +import type { PublishLifecycleEventRequest as _google_devtools_build_v1_PublishLifecycleEventRequest, PublishLifecycleEventRequest__Output as _google_devtools_build_v1_PublishLifecycleEventRequest__Output } from '../../../../google/devtools/build/v1/PublishLifecycleEventRequest'; /** * A service for publishing BuildEvents. BuildEvents are generated by Build @@ -94,7 +94,7 @@ export interface PublishBuildEventHandlers extends grpc.UntypedServiceImplementa * Publish build tool events belonging to the same stream to a backend job * using bidirectional streaming. */ - PublishBuildToolEventStream(call: grpc.ServerDuplexStream<_google_devtools_build_v1_PublishBuildToolEventStreamRequest__Output, _google_devtools_build_v1_PublishBuildToolEventStreamResponse>): void; + PublishBuildToolEventStream: grpc.handleBidiStreamingCall<_google_devtools_build_v1_PublishBuildToolEventStreamRequest__Output, _google_devtools_build_v1_PublishBuildToolEventStreamResponse>; /** * Publish a build event stating the new state of a build (typically from the @@ -108,6 +108,6 @@ export interface PublishBuildEventHandlers extends grpc.UntypedServiceImplementa * function. The error code is the canoncial error code defined in * //util/task/codes.proto. */ - PublishLifecycleEvent(call: grpc.ServerUnaryCall<_google_devtools_build_v1_PublishLifecycleEventRequest__Output, _google_protobuf_Empty>, callback: grpc.sendUnaryData<_google_protobuf_Empty>): void; + PublishLifecycleEvent: grpc.handleUnaryCall<_google_devtools_build_v1_PublishLifecycleEventRequest__Output, _google_protobuf_Empty>; } diff --git a/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamRequest.ts b/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamRequest.ts index 280013b5..651147b6 100644 --- a/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamRequest.ts +++ b/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamRequest.ts @@ -1,6 +1,6 @@ // Original file: proto/publish_build_event.proto -import { OrderedBuildEvent as _google_devtools_build_v1_OrderedBuildEvent, OrderedBuildEvent__Output as _google_devtools_build_v1_OrderedBuildEvent__Output } from '../../../../google/devtools/build/v1/OrderedBuildEvent'; +import type { OrderedBuildEvent as _google_devtools_build_v1_OrderedBuildEvent, OrderedBuildEvent__Output as _google_devtools_build_v1_OrderedBuildEvent__Output } from '../../../../google/devtools/build/v1/OrderedBuildEvent'; /** * Streaming request message for PublishBuildToolEventStream. diff --git a/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamResponse.ts b/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamResponse.ts index 5c51b4df..9f4f6c17 100644 --- a/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamResponse.ts +++ b/src/proto/google/devtools/build/v1/PublishBuildToolEventStreamResponse.ts @@ -1,7 +1,7 @@ // Original file: proto/publish_build_event.proto -import { StreamId as _google_devtools_build_v1_StreamId, StreamId__Output as _google_devtools_build_v1_StreamId__Output } from '../../../../google/devtools/build/v1/StreamId'; -import { Long } from '@grpc/proto-loader'; +import type { StreamId as _google_devtools_build_v1_StreamId, StreamId__Output as _google_devtools_build_v1_StreamId__Output } from '../../../../google/devtools/build/v1/StreamId'; +import type { Long } from '@grpc/proto-loader'; /** * States which event has been committed. Any failure to commit will cause diff --git a/src/proto/google/devtools/build/v1/PublishLifecycleEventRequest.ts b/src/proto/google/devtools/build/v1/PublishLifecycleEventRequest.ts index edb7d669..b6121671 100644 --- a/src/proto/google/devtools/build/v1/PublishLifecycleEventRequest.ts +++ b/src/proto/google/devtools/build/v1/PublishLifecycleEventRequest.ts @@ -1,7 +1,7 @@ // Original file: proto/publish_build_event.proto -import { OrderedBuildEvent as _google_devtools_build_v1_OrderedBuildEvent, OrderedBuildEvent__Output as _google_devtools_build_v1_OrderedBuildEvent__Output } from '../../../../google/devtools/build/v1/OrderedBuildEvent'; -import { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../../google/protobuf/Duration'; +import type { OrderedBuildEvent as _google_devtools_build_v1_OrderedBuildEvent, OrderedBuildEvent__Output as _google_devtools_build_v1_OrderedBuildEvent__Output } from '../../../../google/devtools/build/v1/OrderedBuildEvent'; +import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../../google/protobuf/Duration'; // Original file: proto/publish_build_event.proto diff --git a/src/proto/google/protobuf/Any.ts b/src/proto/google/protobuf/Any.ts index a5081899..fcaa6724 100644 --- a/src/proto/google/protobuf/Any.ts +++ b/src/proto/google/protobuf/Any.ts @@ -1,6 +1,6 @@ // Original file: null -import { AnyExtension } from '@grpc/proto-loader'; +import type { AnyExtension } from '@grpc/proto-loader'; export type Any = AnyExtension | { type_url: string; diff --git a/src/proto/google/protobuf/DescriptorProto.ts b/src/proto/google/protobuf/DescriptorProto.ts index 8ab28689..2f6f9f0c 100644 --- a/src/proto/google/protobuf/DescriptorProto.ts +++ b/src/proto/google/protobuf/DescriptorProto.ts @@ -1,10 +1,10 @@ // Original file: null -import { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from '../../google/protobuf/FieldDescriptorProto'; -import { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Output as _google_protobuf_DescriptorProto__Output } from '../../google/protobuf/DescriptorProto'; -import { EnumDescriptorProto as _google_protobuf_EnumDescriptorProto, EnumDescriptorProto__Output as _google_protobuf_EnumDescriptorProto__Output } from '../../google/protobuf/EnumDescriptorProto'; -import { MessageOptions as _google_protobuf_MessageOptions, MessageOptions__Output as _google_protobuf_MessageOptions__Output } from '../../google/protobuf/MessageOptions'; -import { OneofDescriptorProto as _google_protobuf_OneofDescriptorProto, OneofDescriptorProto__Output as _google_protobuf_OneofDescriptorProto__Output } from '../../google/protobuf/OneofDescriptorProto'; +import type { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from '../../google/protobuf/FieldDescriptorProto'; +import type { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Output as _google_protobuf_DescriptorProto__Output } from '../../google/protobuf/DescriptorProto'; +import type { EnumDescriptorProto as _google_protobuf_EnumDescriptorProto, EnumDescriptorProto__Output as _google_protobuf_EnumDescriptorProto__Output } from '../../google/protobuf/EnumDescriptorProto'; +import type { MessageOptions as _google_protobuf_MessageOptions, MessageOptions__Output as _google_protobuf_MessageOptions__Output } from '../../google/protobuf/MessageOptions'; +import type { OneofDescriptorProto as _google_protobuf_OneofDescriptorProto, OneofDescriptorProto__Output as _google_protobuf_OneofDescriptorProto__Output } from '../../google/protobuf/OneofDescriptorProto'; export interface _google_protobuf_DescriptorProto_ExtensionRange { 'start'?: (number); diff --git a/src/proto/google/protobuf/Duration.ts b/src/proto/google/protobuf/Duration.ts index 3a8ec6a1..20cb5553 100644 --- a/src/proto/google/protobuf/Duration.ts +++ b/src/proto/google/protobuf/Duration.ts @@ -1,6 +1,6 @@ // Original file: null -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; export interface Duration { 'seconds'?: (number | string | Long); diff --git a/src/proto/google/protobuf/EnumDescriptorProto.ts b/src/proto/google/protobuf/EnumDescriptorProto.ts index 1971fccb..7aa40ce4 100644 --- a/src/proto/google/protobuf/EnumDescriptorProto.ts +++ b/src/proto/google/protobuf/EnumDescriptorProto.ts @@ -1,7 +1,7 @@ // Original file: null -import { EnumValueDescriptorProto as _google_protobuf_EnumValueDescriptorProto, EnumValueDescriptorProto__Output as _google_protobuf_EnumValueDescriptorProto__Output } from '../../google/protobuf/EnumValueDescriptorProto'; -import { EnumOptions as _google_protobuf_EnumOptions, EnumOptions__Output as _google_protobuf_EnumOptions__Output } from '../../google/protobuf/EnumOptions'; +import type { EnumValueDescriptorProto as _google_protobuf_EnumValueDescriptorProto, EnumValueDescriptorProto__Output as _google_protobuf_EnumValueDescriptorProto__Output } from '../../google/protobuf/EnumValueDescriptorProto'; +import type { EnumOptions as _google_protobuf_EnumOptions, EnumOptions__Output as _google_protobuf_EnumOptions__Output } from '../../google/protobuf/EnumOptions'; export interface EnumDescriptorProto { 'name'?: (string); diff --git a/src/proto/google/protobuf/EnumOptions.ts b/src/proto/google/protobuf/EnumOptions.ts index 56c8db7d..b92ade4f 100644 --- a/src/proto/google/protobuf/EnumOptions.ts +++ b/src/proto/google/protobuf/EnumOptions.ts @@ -1,6 +1,6 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; export interface EnumOptions { 'allowAlias'?: (boolean); diff --git a/src/proto/google/protobuf/EnumValueDescriptorProto.ts b/src/proto/google/protobuf/EnumValueDescriptorProto.ts index 919b7aa3..238e7fd0 100644 --- a/src/proto/google/protobuf/EnumValueDescriptorProto.ts +++ b/src/proto/google/protobuf/EnumValueDescriptorProto.ts @@ -1,6 +1,6 @@ // Original file: null -import { EnumValueOptions as _google_protobuf_EnumValueOptions, EnumValueOptions__Output as _google_protobuf_EnumValueOptions__Output } from '../../google/protobuf/EnumValueOptions'; +import type { EnumValueOptions as _google_protobuf_EnumValueOptions, EnumValueOptions__Output as _google_protobuf_EnumValueOptions__Output } from '../../google/protobuf/EnumValueOptions'; export interface EnumValueDescriptorProto { 'name'?: (string); diff --git a/src/proto/google/protobuf/EnumValueOptions.ts b/src/proto/google/protobuf/EnumValueOptions.ts index 6bbd4951..e60ee6f4 100644 --- a/src/proto/google/protobuf/EnumValueOptions.ts +++ b/src/proto/google/protobuf/EnumValueOptions.ts @@ -1,6 +1,6 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; export interface EnumValueOptions { 'deprecated'?: (boolean); diff --git a/src/proto/google/protobuf/FieldDescriptorProto.ts b/src/proto/google/protobuf/FieldDescriptorProto.ts index f31eb352..922494a2 100644 --- a/src/proto/google/protobuf/FieldDescriptorProto.ts +++ b/src/proto/google/protobuf/FieldDescriptorProto.ts @@ -1,6 +1,6 @@ // Original file: null -import { FieldOptions as _google_protobuf_FieldOptions, FieldOptions__Output as _google_protobuf_FieldOptions__Output } from '../../google/protobuf/FieldOptions'; +import type { FieldOptions as _google_protobuf_FieldOptions, FieldOptions__Output as _google_protobuf_FieldOptions__Output } from '../../google/protobuf/FieldOptions'; // Original file: null diff --git a/src/proto/google/protobuf/FieldOptions.ts b/src/proto/google/protobuf/FieldOptions.ts index 054fdc3d..521cd356 100644 --- a/src/proto/google/protobuf/FieldOptions.ts +++ b/src/proto/google/protobuf/FieldOptions.ts @@ -1,6 +1,6 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; // Original file: null diff --git a/src/proto/google/protobuf/FileDescriptorProto.ts b/src/proto/google/protobuf/FileDescriptorProto.ts index 65315a64..2954e420 100644 --- a/src/proto/google/protobuf/FileDescriptorProto.ts +++ b/src/proto/google/protobuf/FileDescriptorProto.ts @@ -1,11 +1,11 @@ // Original file: null -import { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Output as _google_protobuf_DescriptorProto__Output } from '../../google/protobuf/DescriptorProto'; -import { EnumDescriptorProto as _google_protobuf_EnumDescriptorProto, EnumDescriptorProto__Output as _google_protobuf_EnumDescriptorProto__Output } from '../../google/protobuf/EnumDescriptorProto'; -import { ServiceDescriptorProto as _google_protobuf_ServiceDescriptorProto, ServiceDescriptorProto__Output as _google_protobuf_ServiceDescriptorProto__Output } from '../../google/protobuf/ServiceDescriptorProto'; -import { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from '../../google/protobuf/FieldDescriptorProto'; -import { FileOptions as _google_protobuf_FileOptions, FileOptions__Output as _google_protobuf_FileOptions__Output } from '../../google/protobuf/FileOptions'; -import { SourceCodeInfo as _google_protobuf_SourceCodeInfo, SourceCodeInfo__Output as _google_protobuf_SourceCodeInfo__Output } from '../../google/protobuf/SourceCodeInfo'; +import type { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Output as _google_protobuf_DescriptorProto__Output } from '../../google/protobuf/DescriptorProto'; +import type { EnumDescriptorProto as _google_protobuf_EnumDescriptorProto, EnumDescriptorProto__Output as _google_protobuf_EnumDescriptorProto__Output } from '../../google/protobuf/EnumDescriptorProto'; +import type { ServiceDescriptorProto as _google_protobuf_ServiceDescriptorProto, ServiceDescriptorProto__Output as _google_protobuf_ServiceDescriptorProto__Output } from '../../google/protobuf/ServiceDescriptorProto'; +import type { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from '../../google/protobuf/FieldDescriptorProto'; +import type { FileOptions as _google_protobuf_FileOptions, FileOptions__Output as _google_protobuf_FileOptions__Output } from '../../google/protobuf/FileOptions'; +import type { SourceCodeInfo as _google_protobuf_SourceCodeInfo, SourceCodeInfo__Output as _google_protobuf_SourceCodeInfo__Output } from '../../google/protobuf/SourceCodeInfo'; export interface FileDescriptorProto { 'name'?: (string); diff --git a/src/proto/google/protobuf/FileDescriptorSet.ts b/src/proto/google/protobuf/FileDescriptorSet.ts index f01cabc4..74ded247 100644 --- a/src/proto/google/protobuf/FileDescriptorSet.ts +++ b/src/proto/google/protobuf/FileDescriptorSet.ts @@ -1,6 +1,6 @@ // Original file: null -import { FileDescriptorProto as _google_protobuf_FileDescriptorProto, FileDescriptorProto__Output as _google_protobuf_FileDescriptorProto__Output } from '../../google/protobuf/FileDescriptorProto'; +import type { FileDescriptorProto as _google_protobuf_FileDescriptorProto, FileDescriptorProto__Output as _google_protobuf_FileDescriptorProto__Output } from '../../google/protobuf/FileDescriptorProto'; export interface FileDescriptorSet { 'file'?: (_google_protobuf_FileDescriptorProto)[]; diff --git a/src/proto/google/protobuf/FileOptions.ts b/src/proto/google/protobuf/FileOptions.ts index be170e8e..b9f03198 100644 --- a/src/proto/google/protobuf/FileOptions.ts +++ b/src/proto/google/protobuf/FileOptions.ts @@ -1,6 +1,6 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; // Original file: null diff --git a/src/proto/google/protobuf/MessageOptions.ts b/src/proto/google/protobuf/MessageOptions.ts index 40bf2927..31f669eb 100644 --- a/src/proto/google/protobuf/MessageOptions.ts +++ b/src/proto/google/protobuf/MessageOptions.ts @@ -1,6 +1,6 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; export interface MessageOptions { 'messageSetWireFormat'?: (boolean); diff --git a/src/proto/google/protobuf/MethodDescriptorProto.ts b/src/proto/google/protobuf/MethodDescriptorProto.ts index b62d4573..bc2f0afb 100644 --- a/src/proto/google/protobuf/MethodDescriptorProto.ts +++ b/src/proto/google/protobuf/MethodDescriptorProto.ts @@ -1,6 +1,6 @@ // Original file: null -import { MethodOptions as _google_protobuf_MethodOptions, MethodOptions__Output as _google_protobuf_MethodOptions__Output } from '../../google/protobuf/MethodOptions'; +import type { MethodOptions as _google_protobuf_MethodOptions, MethodOptions__Output as _google_protobuf_MethodOptions__Output } from '../../google/protobuf/MethodOptions'; export interface MethodDescriptorProto { 'name'?: (string); diff --git a/src/proto/google/protobuf/MethodOptions.ts b/src/proto/google/protobuf/MethodOptions.ts index a5edbd8b..66b30236 100644 --- a/src/proto/google/protobuf/MethodOptions.ts +++ b/src/proto/google/protobuf/MethodOptions.ts @@ -1,7 +1,7 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; -import { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule'; export interface MethodOptions { 'deprecated'?: (boolean); diff --git a/src/proto/google/protobuf/OneofDescriptorProto.ts b/src/proto/google/protobuf/OneofDescriptorProto.ts index 5d151200..c10ccecd 100644 --- a/src/proto/google/protobuf/OneofDescriptorProto.ts +++ b/src/proto/google/protobuf/OneofDescriptorProto.ts @@ -1,6 +1,6 @@ // Original file: null -import { OneofOptions as _google_protobuf_OneofOptions, OneofOptions__Output as _google_protobuf_OneofOptions__Output } from '../../google/protobuf/OneofOptions'; +import type { OneofOptions as _google_protobuf_OneofOptions, OneofOptions__Output as _google_protobuf_OneofOptions__Output } from '../../google/protobuf/OneofOptions'; export interface OneofDescriptorProto { 'name'?: (string); diff --git a/src/proto/google/protobuf/OneofOptions.ts b/src/proto/google/protobuf/OneofOptions.ts index 02353a0a..d81d3479 100644 --- a/src/proto/google/protobuf/OneofOptions.ts +++ b/src/proto/google/protobuf/OneofOptions.ts @@ -1,6 +1,6 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; export interface OneofOptions { 'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[]; diff --git a/src/proto/google/protobuf/ServiceDescriptorProto.ts b/src/proto/google/protobuf/ServiceDescriptorProto.ts index fe5cab5b..695a8775 100644 --- a/src/proto/google/protobuf/ServiceDescriptorProto.ts +++ b/src/proto/google/protobuf/ServiceDescriptorProto.ts @@ -1,7 +1,7 @@ // Original file: null -import { MethodDescriptorProto as _google_protobuf_MethodDescriptorProto, MethodDescriptorProto__Output as _google_protobuf_MethodDescriptorProto__Output } from '../../google/protobuf/MethodDescriptorProto'; -import { ServiceOptions as _google_protobuf_ServiceOptions, ServiceOptions__Output as _google_protobuf_ServiceOptions__Output } from '../../google/protobuf/ServiceOptions'; +import type { MethodDescriptorProto as _google_protobuf_MethodDescriptorProto, MethodDescriptorProto__Output as _google_protobuf_MethodDescriptorProto__Output } from '../../google/protobuf/MethodDescriptorProto'; +import type { ServiceOptions as _google_protobuf_ServiceOptions, ServiceOptions__Output as _google_protobuf_ServiceOptions__Output } from '../../google/protobuf/ServiceOptions'; export interface ServiceDescriptorProto { 'name'?: (string); diff --git a/src/proto/google/protobuf/ServiceOptions.ts b/src/proto/google/protobuf/ServiceOptions.ts index c1bd8360..4899506a 100644 --- a/src/proto/google/protobuf/ServiceOptions.ts +++ b/src/proto/google/protobuf/ServiceOptions.ts @@ -1,6 +1,6 @@ // Original file: null -import { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; +import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption'; export interface ServiceOptions { 'deprecated'?: (boolean); diff --git a/src/proto/google/protobuf/Timestamp.ts b/src/proto/google/protobuf/Timestamp.ts index a9c326fb..e4321bb3 100644 --- a/src/proto/google/protobuf/Timestamp.ts +++ b/src/proto/google/protobuf/Timestamp.ts @@ -1,6 +1,6 @@ // Original file: null -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; export interface Timestamp { 'seconds'?: (number | string | Long); diff --git a/src/proto/google/protobuf/UninterpretedOption.ts b/src/proto/google/protobuf/UninterpretedOption.ts index ee2cb8a0..33870549 100644 --- a/src/proto/google/protobuf/UninterpretedOption.ts +++ b/src/proto/google/protobuf/UninterpretedOption.ts @@ -1,6 +1,6 @@ // Original file: null -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; export interface _google_protobuf_UninterpretedOption_NamePart { 'namePart'?: (string); diff --git a/src/proto/http.ts b/src/proto/http.ts index e2dcf756..02b05957 100644 --- a/src/proto/http.ts +++ b/src/proto/http.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/invocation_policy.ts b/src/proto/invocation_policy.ts index 9807534c..3b0514f1 100644 --- a/src/proto/invocation_policy.ts +++ b/src/proto/invocation_policy.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/license.ts b/src/proto/license.ts index 280b94f5..c3a124d3 100644 --- a/src/proto/license.ts +++ b/src/proto/license.ts @@ -1,11 +1,10 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -import { LicensesClient as _build_stack_license_v1beta1_LicensesClient } from './build/stack/license/v1beta1/Licenses'; +import type { LicensesClient as _build_stack_license_v1beta1_LicensesClient } from './build/stack/license/v1beta1/Licenses'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/livegrep.ts b/src/proto/livegrep.ts index 745e93b5..6f2360e6 100644 --- a/src/proto/livegrep.ts +++ b/src/proto/livegrep.ts @@ -1,11 +1,10 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -import { CodeSearchClient as _livegrep_CodeSearchClient } from './livegrep/CodeSearch'; +import type { CodeSearchClient as _livegrep_CodeSearchClient } from './livegrep/CodeSearch'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/livegrep/CodeSearch.ts b/src/proto/livegrep/CodeSearch.ts index f4c6e2f7..eb6b9631 100644 --- a/src/proto/livegrep/CodeSearch.ts +++ b/src/proto/livegrep/CodeSearch.ts @@ -1,10 +1,10 @@ // Original file: proto/livegrep.proto -import * as grpc from '@grpc/grpc-js' -import { CodeSearchResult as _livegrep_CodeSearchResult, CodeSearchResult__Output as _livegrep_CodeSearchResult__Output } from '../livegrep/CodeSearchResult'; -import { InfoRequest as _livegrep_InfoRequest, InfoRequest__Output as _livegrep_InfoRequest__Output } from '../livegrep/InfoRequest'; -import { Query as _livegrep_Query, Query__Output as _livegrep_Query__Output } from '../livegrep/Query'; -import { ServerInfo as _livegrep_ServerInfo, ServerInfo__Output as _livegrep_ServerInfo__Output } from '../livegrep/ServerInfo'; +import type * as grpc from '@grpc/grpc-js' +import type { CodeSearchResult as _livegrep_CodeSearchResult, CodeSearchResult__Output as _livegrep_CodeSearchResult__Output } from '../livegrep/CodeSearchResult'; +import type { InfoRequest as _livegrep_InfoRequest, InfoRequest__Output as _livegrep_InfoRequest__Output } from '../livegrep/InfoRequest'; +import type { Query as _livegrep_Query, Query__Output as _livegrep_Query__Output } from '../livegrep/Query'; +import type { ServerInfo as _livegrep_ServerInfo, ServerInfo__Output as _livegrep_ServerInfo__Output } from '../livegrep/ServerInfo'; export interface CodeSearchClient extends grpc.Client { Info(argument: _livegrep_InfoRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (error?: grpc.ServiceError, result?: _livegrep_ServerInfo__Output) => void): grpc.ClientUnaryCall; @@ -28,8 +28,8 @@ export interface CodeSearchClient extends grpc.Client { } export interface CodeSearchHandlers extends grpc.UntypedServiceImplementation { - Info(call: grpc.ServerUnaryCall<_livegrep_InfoRequest__Output, _livegrep_ServerInfo>, callback: grpc.sendUnaryData<_livegrep_ServerInfo>): void; + Info: grpc.handleUnaryCall<_livegrep_InfoRequest__Output, _livegrep_ServerInfo>; - Search(call: grpc.ServerUnaryCall<_livegrep_Query__Output, _livegrep_CodeSearchResult>, callback: grpc.sendUnaryData<_livegrep_CodeSearchResult>): void; + Search: grpc.handleUnaryCall<_livegrep_Query__Output, _livegrep_CodeSearchResult>; } diff --git a/src/proto/livegrep/CodeSearchResult.ts b/src/proto/livegrep/CodeSearchResult.ts index ea16d752..10481ff4 100644 --- a/src/proto/livegrep/CodeSearchResult.ts +++ b/src/proto/livegrep/CodeSearchResult.ts @@ -1,9 +1,9 @@ // Original file: proto/livegrep.proto -import { SearchStats as _livegrep_SearchStats, SearchStats__Output as _livegrep_SearchStats__Output } from '../livegrep/SearchStats'; -import { SearchResult as _livegrep_SearchResult, SearchResult__Output as _livegrep_SearchResult__Output } from '../livegrep/SearchResult'; -import { FileResult as _livegrep_FileResult, FileResult__Output as _livegrep_FileResult__Output } from '../livegrep/FileResult'; -import { Long } from '@grpc/proto-loader'; +import type { SearchStats as _livegrep_SearchStats, SearchStats__Output as _livegrep_SearchStats__Output } from '../livegrep/SearchStats'; +import type { SearchResult as _livegrep_SearchResult, SearchResult__Output as _livegrep_SearchResult__Output } from '../livegrep/SearchResult'; +import type { FileResult as _livegrep_FileResult, FileResult__Output as _livegrep_FileResult__Output } from '../livegrep/FileResult'; +import type { Long } from '@grpc/proto-loader'; export interface CodeSearchResult { 'stats'?: (_livegrep_SearchStats); diff --git a/src/proto/livegrep/FileResult.ts b/src/proto/livegrep/FileResult.ts index da091d34..5aff2fba 100644 --- a/src/proto/livegrep/FileResult.ts +++ b/src/proto/livegrep/FileResult.ts @@ -1,6 +1,6 @@ // Original file: proto/livegrep.proto -import { Bounds as _livegrep_Bounds, Bounds__Output as _livegrep_Bounds__Output } from '../livegrep/Bounds'; +import type { Bounds as _livegrep_Bounds, Bounds__Output as _livegrep_Bounds__Output } from '../livegrep/Bounds'; export interface FileResult { 'tree'?: (string); diff --git a/src/proto/livegrep/IndexSpec.ts b/src/proto/livegrep/IndexSpec.ts index ce102868..53114217 100644 --- a/src/proto/livegrep/IndexSpec.ts +++ b/src/proto/livegrep/IndexSpec.ts @@ -1,7 +1,7 @@ // Original file: proto/livegrep.proto -import { PathSpec as _livegrep_PathSpec, PathSpec__Output as _livegrep_PathSpec__Output } from '../livegrep/PathSpec'; -import { RepoSpec as _livegrep_RepoSpec, RepoSpec__Output as _livegrep_RepoSpec__Output } from '../livegrep/RepoSpec'; +import type { PathSpec as _livegrep_PathSpec, PathSpec__Output as _livegrep_PathSpec__Output } from '../livegrep/PathSpec'; +import type { RepoSpec as _livegrep_RepoSpec, RepoSpec__Output as _livegrep_RepoSpec__Output } from '../livegrep/RepoSpec'; export interface IndexSpec { 'name'?: (string); diff --git a/src/proto/livegrep/PathSpec.ts b/src/proto/livegrep/PathSpec.ts index 02ec05d0..65615580 100644 --- a/src/proto/livegrep/PathSpec.ts +++ b/src/proto/livegrep/PathSpec.ts @@ -1,6 +1,6 @@ // Original file: proto/livegrep.proto -import { Metadata as _livegrep_Metadata, Metadata__Output as _livegrep_Metadata__Output } from '../livegrep/Metadata'; +import type { Metadata as _livegrep_Metadata, Metadata__Output as _livegrep_Metadata__Output } from '../livegrep/Metadata'; export interface PathSpec { 'path'?: (string); diff --git a/src/proto/livegrep/RepoSpec.ts b/src/proto/livegrep/RepoSpec.ts index b4ddccb1..32fe5a78 100644 --- a/src/proto/livegrep/RepoSpec.ts +++ b/src/proto/livegrep/RepoSpec.ts @@ -1,6 +1,6 @@ // Original file: proto/livegrep.proto -import { Metadata as _livegrep_Metadata, Metadata__Output as _livegrep_Metadata__Output } from '../livegrep/Metadata'; +import type { Metadata as _livegrep_Metadata, Metadata__Output as _livegrep_Metadata__Output } from '../livegrep/Metadata'; export interface RepoSpec { 'path'?: (string); diff --git a/src/proto/livegrep/SearchResult.ts b/src/proto/livegrep/SearchResult.ts index 9e2f43ce..81fb1b58 100644 --- a/src/proto/livegrep/SearchResult.ts +++ b/src/proto/livegrep/SearchResult.ts @@ -1,7 +1,7 @@ // Original file: proto/livegrep.proto -import { Bounds as _livegrep_Bounds, Bounds__Output as _livegrep_Bounds__Output } from '../livegrep/Bounds'; -import { Long } from '@grpc/proto-loader'; +import type { Bounds as _livegrep_Bounds, Bounds__Output as _livegrep_Bounds__Output } from '../livegrep/Bounds'; +import type { Long } from '@grpc/proto-loader'; export interface SearchResult { 'tree'?: (string); diff --git a/src/proto/livegrep/SearchStats.ts b/src/proto/livegrep/SearchStats.ts index 4d7c8562..ee75b93c 100644 --- a/src/proto/livegrep/SearchStats.ts +++ b/src/proto/livegrep/SearchStats.ts @@ -1,6 +1,6 @@ // Original file: proto/livegrep.proto -import { Long } from '@grpc/proto-loader'; +import type { Long } from '@grpc/proto-loader'; // Original file: proto/livegrep.proto diff --git a/src/proto/livegrep/ServerInfo.ts b/src/proto/livegrep/ServerInfo.ts index b8afbb66..e43031d9 100644 --- a/src/proto/livegrep/ServerInfo.ts +++ b/src/proto/livegrep/ServerInfo.ts @@ -1,7 +1,7 @@ // Original file: proto/livegrep.proto -import { Metadata as _livegrep_Metadata, Metadata__Output as _livegrep_Metadata__Output } from '../livegrep/Metadata'; -import { Long } from '@grpc/proto-loader'; +import type { Metadata as _livegrep_Metadata, Metadata__Output as _livegrep_Metadata__Output } from '../livegrep/Metadata'; +import type { Long } from '@grpc/proto-loader'; export interface _livegrep_ServerInfo_Tree { 'name'?: (string); diff --git a/src/proto/nucleate.ts b/src/proto/nucleate.ts index 15d6caa1..ed816879 100644 --- a/src/proto/nucleate.ts +++ b/src/proto/nucleate.ts @@ -1,13 +1,12 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -import { CustomersClient as _build_stack_nucleate_v1beta_CustomersClient } from './build/stack/nucleate/v1beta/Customers'; -import { PlansClient as _build_stack_nucleate_v1beta_PlansClient } from './build/stack/nucleate/v1beta/Plans'; -import { SubscriptionsClient as _build_stack_nucleate_v1beta_SubscriptionsClient } from './build/stack/nucleate/v1beta/Subscriptions'; +import type { CustomersClient as _build_stack_nucleate_v1beta_CustomersClient } from './build/stack/nucleate/v1beta/Customers'; +import type { PlansClient as _build_stack_nucleate_v1beta_PlansClient } from './build/stack/nucleate/v1beta/Plans'; +import type { SubscriptionsClient as _build_stack_nucleate_v1beta_SubscriptionsClient } from './build/stack/nucleate/v1beta/Subscriptions'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/option_filters.ts b/src/proto/option_filters.ts index 950e7e4b..7726b541 100644 --- a/src/proto/option_filters.ts +++ b/src/proto/option_filters.ts @@ -1,10 +1,9 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/proto/publish_build_event.ts b/src/proto/publish_build_event.ts index ff7df7f9..c8ba3bd2 100644 --- a/src/proto/publish_build_event.ts +++ b/src/proto/publish_build_event.ts @@ -1,11 +1,10 @@ -import * as grpc from '@grpc/grpc-js'; -import { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; +import type * as grpc from '@grpc/grpc-js'; +import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; -import { PublishBuildEventClient as _google_devtools_build_v1_PublishBuildEventClient } from './google/devtools/build/v1/PublishBuildEvent'; +import type { PublishBuildEventClient as _google_devtools_build_v1_PublishBuildEventClient } from './google/devtools/build/v1/PublishBuildEvent'; -type ConstructorArguments = Constructor extends new (...args: infer Args) => any ? Args: never; -type SubtypeConstructor = { - new(...args: ConstructorArguments): Subtype; +type SubtypeConstructor any, Subtype> = { + new(...args: ConstructorParameters): Subtype; }; export interface ProtoGrpcType { diff --git a/src/starlark/client.ts b/src/starlark/client.ts index ffd26163..f963584c 100644 --- a/src/starlark/client.ts +++ b/src/starlark/client.ts @@ -13,7 +13,7 @@ export class StardocLSPClient implements vscode.Disposable { private disposables: vscode.Disposable[] = []; private client: LanguageClient; - constructor(executable: string, command: string[]) { + constructor(executable: string, command: string[], title = 'Starlark Language Server') { let serverOptions: ServerOptions = { command: executable, args: command, @@ -36,7 +36,7 @@ export class StardocLSPClient implements vscode.Disposable { // Create the language client and start the client. this.client = new LanguageClient( 'starlark', - 'Starlark Language Server', + title, serverOptions, clientOptions ); diff --git a/src/starlark/configuration.ts b/src/starlark/configuration.ts index 627154ac..f81e9c1b 100644 --- a/src/starlark/configuration.ts +++ b/src/starlark/configuration.ts @@ -1,5 +1,6 @@ import * as path from 'path'; import * as vscode from 'vscode'; +import { ConfigSection } from './constants'; /** * Configuration for the Starlark LSP feature. @@ -19,19 +20,19 @@ export type ServerConfiguration = { export async function createStarlarkLSPConfiguration(ctx: vscode.ExtensionContext, config: vscode.WorkspaceConfiguration): Promise { const server = { - owner: config.get('server.github-owner', 'stackb'), - repo: config.get('server.github-repo', 'bazel-stack-vscode'), - releaseTag: config.get('github-release', '0.3.5'), - executable: config.get('server.executable', ''), - command: config.get('server.command', ['lsp', 'starlark']), + owner: config.get(ConfigSection.LspServerGithubOwner, 'stackb'), + repo: config.get(ConfigSection.LspServerGithubOwner, 'bzl'), + releaseTag: config.get(ConfigSection.LspServerGithubRelease, '0.9.4'), + executable: config.get(ConfigSection.LspServerExecutable, ''), + command: config.get(ConfigSection.LspServerCommand, ['lsp', 'serve']), }; const cfg = { - verbose: config.get('verbose', 0), + verbose: config.get(ConfigSection.Verbose, 0), server: server, }; - let modules: any = config.get('server.stardoc.moduleinfo'); + let modules: any = config.get(ConfigSection.ServerStardocModuleinfo); if (modules) { for (const label of Object.keys(modules)) { const filenames = modules[label]; diff --git a/src/starlark/constants.ts b/src/starlark/constants.ts new file mode 100644 index 00000000..719f6cb5 --- /dev/null +++ b/src/starlark/constants.ts @@ -0,0 +1,10 @@ + +export enum ConfigSection { + LspServerGithubOwner = 'lsp.server.github-owner', + LspServerGithubRepo = 'lsp.server.github-repo', + LspServerGithubRelease = 'lsp.server.github-release', + LspServerExecutable = 'lsp.server.executable', + LspServerCommand = 'lsp.server.command', + ServerStardocModuleinfo = 'server.stardoc.moduleinfo', + Verbose = 'verbose', +} diff --git a/src/starlark/feature.ts b/src/starlark/feature.ts index ed9e3dc7..ad4f2b54 100644 --- a/src/starlark/feature.ts +++ b/src/starlark/feature.ts @@ -21,7 +21,7 @@ export class StarlarkLSPFeature implements IExtensionFeature { try { cfg.server.executable = await maybeInstallExecutable(cfg, path.join(ctx.globalStoragePath, StarlarkLSPFeatureName)); } catch (err) { - return fail(this, `could not install gostarlark ${err}`); + return fail(this, `could not install gostarlark: ${err}`); } } @@ -67,7 +67,7 @@ export async function maybeInstallExecutable(cfg: StarlarkLSPConfiguration, stor ); const executable = downloader.getFilepath(); - + console.log(`downloding to ${executable}`); if (fs.existsSync(executable)) { if (cfg.verbose > 1) { vscode.window.showInformationMessage(`skipping download ${assetName} ${cfg.server.releaseTag} (${executable} already exists)`); diff --git a/src/test/integration/feature.starlark.test.ts b/src/test/integration/feature.starlark.test.ts index 61fd0b9e..ee4c5904 100644 --- a/src/test/integration/feature.starlark.test.ts +++ b/src/test/integration/feature.starlark.test.ts @@ -23,14 +23,6 @@ const keepTmpDownloadDir = true; tmp.setGracefulCleanup(); -type hoverTest = { - d: string, // test description - input: string, // content of file - col: number, // apparent hover position - match?: string, // expected markdown string - range?: vscode.Range, // the expected range, if we care -}; - describe(StarlarkLSPFeatureName, function () { this.timeout(60 * 1000); // for download @@ -56,12 +48,12 @@ describe(StarlarkLSPFeatureName, function () { name: platformBinaryName('gostarlark'), }, downloadDir, true); - const executable = downloader.getFilepath(); + let executable = downloader.getFilepath(); if (!fs.existsSync(executable)) { await downloader.download(); } - client = new StardocLSPClient(executable, command).getLanguageClientForTesting(); + client = new StardocLSPClient(executable, command, 'LSP Test Instance').getLanguageClientForTesting(); client.start(); await client.onReady(); }); @@ -76,16 +68,26 @@ describe(StarlarkLSPFeatureName, function () { }); it('InitializeResult', () => { - let expected = { + let expected: lsclient.InitializeResult = { capabilities: { textDocumentSync: 1, hoverProvider: true, + definitionProvider: true, } }; expect(client.initializeResult).eql(expected); }); describe('Hover', () => { + + type hoverTest = { + d: string, // test description + input: string, // content of file + col: number, // apparent hover position + match?: string, // expected markdown string + range?: vscode.Range, // the expected range, if we care + }; + const cases: hoverTest[] = [ { d: 'should miss empty line', @@ -224,7 +226,6 @@ describe(StarlarkLSPFeatureName, function () { const document = await vscode.workspace.openTextDocument(uri); const position = new vscode.Position(0, tc.col - 1); - const provider = client.getFeature(lsclient.HoverRequest.method).getProvider(document); expect(provider).not.to.be.undefined; @@ -251,4 +252,93 @@ describe(StarlarkLSPFeatureName, function () { }); }); + describe('Definition', () => { + + type definitionTest = { + d: string, // test description + input: string, // content of file + files: { [key: string]: string }, // mock files to setup + line: number, + col: number, // apparent document position + location?: string, // expected location string + range?: vscode.Range, // the expected range, if we care + }; + + const cases: definitionTest[] = [ + { + d: 'should not locate empty line', + input: '', + line: 1, + col: 2, + files: { + 'WORKSPACE': '', + 'BUILD.bazel': 'THIS' + }, + }, + // + // TODO: need to figure out how to initialize the LSP implementation + // with the correct cwd. For now, relying on tests in the upstream + // gostarlark repo. + // + // { + // d: 'should locate source file in current directory', + // input: '"file.txt"', + // files: { + // 'WORKSPACE': '', + // 'BUILD.bazel': 'THIS', + // 'file.txt': '', + // }, + // line: 1, + // col: 1, + // }, + ]; + + cases.forEach((tc) => { + it(tc.d, async () => { + const tmpDir = tmp.dirSync(); + let thisFile = ''; + for (const relname of Object.keys(tc.files)) { + const filename = path.join(tmpDir.name, relname); + fs.mkdirSync(path.dirname(filename), { + recursive: true, + }); + let content = tc.files[relname]; + if (content === 'THIS') { + content = tc.input; + thisFile = filename; + } + fs.writeFileSync(filename, content); + } + if (!thisFile) { + throw new Error('target build file no defined'); + } + const uri = vscode.Uri.file(thisFile); + const document = await vscode.workspace.openTextDocument(uri); + const position = new vscode.Position(tc.line - 1, tc.col - 1); + const provider = client.getFeature(lsclient.DefinitionRequest.method).getProvider(document); + expect(provider).not.to.be.undefined; + + const locs = await provider.provideDefinition(document, position, tokenSource.token); + if (!locs) { + fail('expected defined locs result'); + } + if (!tc.location) { + expect(locs).to.have.length(0); + return; + } + const locations: vscode.Location[] = locs as vscode.Location[]; + expect(locations).not.to.be.undefined; + expect(locations?.length).greaterThan(0); // first one is the prototype, second one is the doc + const location = locations[0]; + expect(location.uri.toString()).to.eql(tc.location); + if (tc.range) { + expect(tc.range.start.line).equals(location.range?.start.line); + expect(tc.range.start.character).equals(location.range?.start.character); + expect(tc.range.end.line).equals(location.range?.end.line); + expect(tc.range.end.character).equals(location.range?.end.character); + } + }); + }); + }); + });