-
Notifications
You must be signed in to change notification settings - Fork 607
chore: add proto for typescript #3903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts" | ||
| // @generated from file proto/ctrl/v1/acme.proto (package ctrl.v1, syntax proto3) | ||
| /* eslint-disable */ | ||
| // @ts-nocheck | ||
|
|
||
| import { MethodKind } from "@bufbuild/protobuf"; | ||
| import { | ||
| HandleCertificateVerificationRequest, | ||
| HandleCertificateVerificationResponse, | ||
| } from "./acme_pb.js"; | ||
|
|
||
| /** | ||
| * @generated from service ctrl.v1.AcmeService | ||
| */ | ||
| export const AcmeService = { | ||
| typeName: "ctrl.v1.AcmeService", | ||
| methods: { | ||
| /** | ||
| * @generated from rpc ctrl.v1.AcmeService.HandleCertificateVerification | ||
| */ | ||
| handleCertificateVerification: { | ||
| name: "HandleCertificateVerification", | ||
| I: HandleCertificateVerificationRequest, | ||
| O: HandleCertificateVerificationResponse, | ||
| kind: MethodKind.Unary, | ||
| }, | ||
| }, | ||
| } as const; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| // @generated by protoc-gen-es v1.10.0 with parameter "target=ts" | ||
| // @generated from file proto/ctrl/v1/acme.proto (package ctrl.v1, syntax proto3) | ||
| /* eslint-disable */ | ||
| // @ts-nocheck | ||
|
|
||
| import type { | ||
| BinaryReadOptions, | ||
| FieldList, | ||
| JsonReadOptions, | ||
| JsonValue, | ||
| PartialMessage, | ||
| PlainMessage, | ||
| } from "@bufbuild/protobuf"; | ||
| import { Message, proto3 } from "@bufbuild/protobuf"; | ||
|
|
||
| /** | ||
| * @generated from message ctrl.v1.HandleCertificateVerificationRequest | ||
| */ | ||
| export class HandleCertificateVerificationRequest extends Message<HandleCertificateVerificationRequest> { | ||
| /** | ||
| * @generated from field: string domain = 1; | ||
| */ | ||
| domain = ""; | ||
|
|
||
| /** | ||
| * @generated from field: string token = 2; | ||
| */ | ||
| token = ""; | ||
|
|
||
| constructor(data?: PartialMessage<HandleCertificateVerificationRequest>) { | ||
| super(); | ||
| proto3.util.initPartial(data, this); | ||
| } | ||
|
|
||
| static readonly runtime: typeof proto3 = proto3; | ||
| static readonly typeName = "ctrl.v1.HandleCertificateVerificationRequest"; | ||
| static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
| { no: 1, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
| { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
| ]); | ||
|
|
||
| static fromBinary( | ||
| bytes: Uint8Array, | ||
| options?: Partial<BinaryReadOptions>, | ||
| ): HandleCertificateVerificationRequest { | ||
| return new HandleCertificateVerificationRequest().fromBinary(bytes, options); | ||
| } | ||
|
|
||
| static fromJson( | ||
| jsonValue: JsonValue, | ||
| options?: Partial<JsonReadOptions>, | ||
| ): HandleCertificateVerificationRequest { | ||
| return new HandleCertificateVerificationRequest().fromJson(jsonValue, options); | ||
| } | ||
|
|
||
| static fromJsonString( | ||
| jsonString: string, | ||
| options?: Partial<JsonReadOptions>, | ||
| ): HandleCertificateVerificationRequest { | ||
| return new HandleCertificateVerificationRequest().fromJsonString(jsonString, options); | ||
| } | ||
|
|
||
| static equals( | ||
| a: | ||
| | HandleCertificateVerificationRequest | ||
| | PlainMessage<HandleCertificateVerificationRequest> | ||
| | undefined, | ||
| b: | ||
| | HandleCertificateVerificationRequest | ||
| | PlainMessage<HandleCertificateVerificationRequest> | ||
| | undefined, | ||
| ): boolean { | ||
| return proto3.util.equals(HandleCertificateVerificationRequest, a, b); | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * @generated from message ctrl.v1.HandleCertificateVerificationResponse | ||
| */ | ||
| export class HandleCertificateVerificationResponse extends Message<HandleCertificateVerificationResponse> { | ||
| /** | ||
| * @generated from field: string token = 1; | ||
| */ | ||
| token = ""; | ||
|
|
||
| constructor(data?: PartialMessage<HandleCertificateVerificationResponse>) { | ||
| super(); | ||
| proto3.util.initPartial(data, this); | ||
| } | ||
|
|
||
| static readonly runtime: typeof proto3 = proto3; | ||
| static readonly typeName = "ctrl.v1.HandleCertificateVerificationResponse"; | ||
| static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
| { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
| ]); | ||
|
|
||
| static fromBinary( | ||
| bytes: Uint8Array, | ||
| options?: Partial<BinaryReadOptions>, | ||
| ): HandleCertificateVerificationResponse { | ||
| return new HandleCertificateVerificationResponse().fromBinary(bytes, options); | ||
| } | ||
|
|
||
| static fromJson( | ||
| jsonValue: JsonValue, | ||
| options?: Partial<JsonReadOptions>, | ||
| ): HandleCertificateVerificationResponse { | ||
| return new HandleCertificateVerificationResponse().fromJson(jsonValue, options); | ||
| } | ||
|
|
||
| static fromJsonString( | ||
| jsonString: string, | ||
| options?: Partial<JsonReadOptions>, | ||
| ): HandleCertificateVerificationResponse { | ||
| return new HandleCertificateVerificationResponse().fromJsonString(jsonString, options); | ||
| } | ||
|
|
||
| static equals( | ||
| a: | ||
| | HandleCertificateVerificationResponse | ||
| | PlainMessage<HandleCertificateVerificationResponse> | ||
| | undefined, | ||
| b: | ||
| | HandleCertificateVerificationResponse | ||
| | PlainMessage<HandleCertificateVerificationResponse> | ||
| | undefined, | ||
| ): boolean { | ||
| return proto3.util.equals(HandleCertificateVerificationResponse, a, b); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts" | ||
| // @generated from file proto/ctrl/v1/build.proto (package ctrl.v1, syntax proto3) | ||
| /* eslint-disable */ | ||
| // @ts-nocheck | ||
|
|
||
| import { MethodKind } from "@bufbuild/protobuf"; | ||
| import { | ||
| CreateBuildRequest, | ||
| CreateBuildResponse, | ||
| GetBuildRequest, | ||
| GetBuildResponse, | ||
| } from "./build_pb.js"; | ||
|
|
||
| /** | ||
| * @generated from service ctrl.v1.BuildService | ||
| */ | ||
| export const BuildService = { | ||
| typeName: "ctrl.v1.BuildService", | ||
| methods: { | ||
| /** | ||
| * Create a new build | ||
| * | ||
| * @generated from rpc ctrl.v1.BuildService.CreateBuild | ||
| */ | ||
| createBuild: { | ||
| name: "CreateBuild", | ||
| I: CreateBuildRequest, | ||
| O: CreateBuildResponse, | ||
| kind: MethodKind.Unary, | ||
| }, | ||
| /** | ||
| * Get build details | ||
| * | ||
| * @generated from rpc ctrl.v1.BuildService.GetBuild | ||
| */ | ||
| getBuild: { | ||
| name: "GetBuild", | ||
| I: GetBuildRequest, | ||
| O: GetBuildResponse, | ||
| kind: MethodKind.Unary, | ||
| }, | ||
| }, | ||
| } as const; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.