Skip to content

Commit

Permalink
push latest version of APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rig-bot committed Jan 9, 2024
1 parent 5153c3d commit 3e1b188
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 0 deletions.
51 changes: 51 additions & 0 deletions api/v1/environment/environment_pb.ts
Original file line number Diff line number Diff line change
@@ -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<Environment> {
/**
* @generated from field: string environment_id = 1;
*/
environmentId = "";

/**
* @generated from field: bool default = 2;
*/
default = false;

constructor(data?: PartialMessage<Environment>) {
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<BinaryReadOptions>): Environment {
return new Environment().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Environment {
return new Environment().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Environment {
return new Environment().fromJsonString(jsonString, options);
}

static equals(a: Environment | PlainMessage<Environment> | undefined, b: Environment | PlainMessage<Environment> | undefined): boolean {
return proto3.util.equals(Environment, a, b);
}
}

28 changes: 28 additions & 0 deletions api/v1/environment/service_connect.ts
Original file line number Diff line number Diff line change
@@ -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;

84 changes: 84 additions & 0 deletions api/v1/environment/service_pb.ts
Original file line number Diff line number Diff line change
@@ -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<ListRequest> {
/**
* @generated from field: model.Pagination pagination = 2;
*/
pagination?: Pagination;

constructor(data?: PartialMessage<ListRequest>) {
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<BinaryReadOptions>): ListRequest {
return new ListRequest().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRequest {
return new ListRequest().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRequest {
return new ListRequest().fromJsonString(jsonString, options);
}

static equals(a: ListRequest | PlainMessage<ListRequest> | undefined, b: ListRequest | PlainMessage<ListRequest> | undefined): boolean {
return proto3.util.equals(ListRequest, a, b);
}
}

/**
* @generated from message api.v1.environment.ListResponse
*/
export class ListResponse extends Message<ListResponse> {
/**
* @generated from field: repeated api.v1.environment.Environment environments = 1;
*/
environments: Environment[] = [];

constructor(data?: PartialMessage<ListResponse>) {
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<BinaryReadOptions>): ListResponse {
return new ListResponse().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListResponse {
return new ListResponse().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListResponse {
return new ListResponse().fromJsonString(jsonString, options);
}

static equals(a: ListResponse | PlainMessage<ListResponse> | undefined, b: ListResponse | PlainMessage<ListResponse> | undefined): boolean {
return proto3.util.equals(ListResponse, a, b);
}
}

0 comments on commit 3e1b188

Please sign in to comment.