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 Apr 18, 2024
1 parent 4727a7d commit 6d2a8e5
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 1 deletion.
13 changes: 12 additions & 1 deletion api/v1/role/service_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable */
// @ts-nocheck

import { AssignRequest, AssignResponse, CreateRequest, CreateResponse, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, RevokeRequest, RevokeResponse, UpdateRequest, UpdateResponse } from "./service_pb.js";
import { AssignRequest, AssignResponse, CreateRequest, CreateResponse, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListForEntityRequest, ListForEntityResponse, ListRequest, ListResponse, RevokeRequest, RevokeResponse, UpdateRequest, UpdateResponse } from "./service_pb.js";
import { MethodKind } from "@bufbuild/protobuf";

/**
Expand Down Expand Up @@ -91,6 +91,17 @@ export const Service = {
O: RevokeResponse,
kind: MethodKind.Unary,
},
/**
* List roles for an entity.
*
* @generated from rpc api.v1.role.Service.ListForEntity
*/
listForEntity: {
name: "ListForEntity",
I: ListForEntityRequest,
O: ListForEntityResponse,
kind: MethodKind.Unary,
},
}
} as const;

78 changes: 78 additions & 0 deletions api/v1/role/service_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,84 @@ import { Message, proto3 } from "@bufbuild/protobuf";
import { EntityID, Permission, Role, Update } from "./role_pb.js";
import { Pagination } from "../../../model/common_pb.js";

/**
* @generated from message api.v1.role.ListForEntityRequest
*/
export class ListForEntityRequest extends Message<ListForEntityRequest> {
/**
* The entity to list roles for.
*
* @generated from field: api.v1.role.EntityID entity_id = 1;
*/
entityId?: EntityID;

constructor(data?: PartialMessage<ListForEntityRequest>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.role.ListForEntityRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "entity_id", kind: "message", T: EntityID },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListForEntityRequest {
return new ListForEntityRequest().fromBinary(bytes, options);
}

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

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

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

/**
* @generated from message api.v1.role.ListForEntityResponse
*/
export class ListForEntityResponse extends Message<ListForEntityResponse> {
/**
* The roles assigned to the entity.
*
* @generated from field: repeated api.v1.role.Role roles = 1;
*/
roles: Role[] = [];

constructor(data?: PartialMessage<ListForEntityResponse>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.role.ListForEntityResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "roles", kind: "message", T: Role, repeated: true },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListForEntityResponse {
return new ListForEntityResponse().fromBinary(bytes, options);
}

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

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

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

/**
* Request to create a role.
*
Expand Down

0 comments on commit 6d2a8e5

Please sign in to comment.