From 3e1b1884cc3b42c8bd24b8e8f2d5bbb18dfb2a3c Mon Sep 17 00:00:00 2001 From: rig-bot Date: Tue, 9 Jan 2024 08:00:25 +0000 Subject: [PATCH] push latest version of APIs --- api/v1/environment/environment_pb.ts | 51 ++++++++++++++++ api/v1/environment/service_connect.ts | 28 +++++++++ api/v1/environment/service_pb.ts | 84 +++++++++++++++++++++++++++ 3 files changed, 163 insertions(+) create mode 100644 api/v1/environment/environment_pb.ts create mode 100644 api/v1/environment/service_connect.ts create mode 100644 api/v1/environment/service_pb.ts diff --git a/api/v1/environment/environment_pb.ts b/api/v1/environment/environment_pb.ts new file mode 100644 index 0000000..8ea00c6 --- /dev/null +++ b/api/v1/environment/environment_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.6.0 with parameter "target=ts" +// @generated from file api/v1/environment/environment.proto (package api.v1.environment, 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 api.v1.environment.Environment + */ +export class Environment extends Message { + /** + * @generated from field: string environment_id = 1; + */ + environmentId = ""; + + /** + * @generated from field: bool default = 2; + */ + default = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.environment.Environment"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "default", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Environment { + return new Environment().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Environment { + return new Environment().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Environment { + return new Environment().fromJsonString(jsonString, options); + } + + static equals(a: Environment | PlainMessage | undefined, b: Environment | PlainMessage | undefined): boolean { + return proto3.util.equals(Environment, a, b); + } +} + diff --git a/api/v1/environment/service_connect.ts b/api/v1/environment/service_connect.ts new file mode 100644 index 0000000..75333b5 --- /dev/null +++ b/api/v1/environment/service_connect.ts @@ -0,0 +1,28 @@ +// @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts" +// @generated from file api/v1/environment/service.proto (package api.v1.environment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { ListRequest, ListResponse } from "./service_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service api.v1.environment.Service + */ +export const Service = { + typeName: "api.v1.environment.Service", + methods: { + /** + * List available environments. + * + * @generated from rpc api.v1.environment.Service.List + */ + list: { + name: "List", + I: ListRequest, + O: ListResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/api/v1/environment/service_pb.ts b/api/v1/environment/service_pb.ts new file mode 100644 index 0000000..06ca304 --- /dev/null +++ b/api/v1/environment/service_pb.ts @@ -0,0 +1,84 @@ +// @generated by protoc-gen-es v1.6.0 with parameter "target=ts" +// @generated from file api/v1/environment/service.proto (package api.v1.environment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Pagination } from "../../../model/common_pb.js"; +import { Environment } from "./environment_pb.js"; + +/** + * @generated from message api.v1.environment.ListRequest + */ +export class ListRequest extends Message { + /** + * @generated from field: model.Pagination pagination = 2; + */ + pagination?: Pagination; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.environment.ListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "pagination", kind: "message", T: Pagination }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListRequest { + return new ListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListRequest { + return new ListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListRequest { + return new ListRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListRequest | PlainMessage | undefined, b: ListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListRequest, a, b); + } +} + +/** + * @generated from message api.v1.environment.ListResponse + */ +export class ListResponse extends Message { + /** + * @generated from field: repeated api.v1.environment.Environment environments = 1; + */ + environments: Environment[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.environment.ListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "environments", kind: "message", T: Environment, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListResponse { + return new ListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListResponse { + return new ListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListResponse { + return new ListResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListResponse | PlainMessage | undefined, b: ListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListResponse, a, b); + } +} +