// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" // @generated from file api.proto (package api, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { ClientAPI, ModuleRegistration, Permission, ResourceType, Scope, UserUIPermissions } from "./shared_pb.js"; import { Role } from "./role_pb.js"; import { Module } from "./module_pb.js"; /** * @generated from message api.GetPermissionsRequest */ export class GetPermissionsRequest extends Message { /** * @generated from field: api.ResourceType RscType = 1; */ RscType = ResourceType.UNKNOWN; /** * @generated from field: string Client = 2; */ Client = ""; /** * @generated from field: string Service = 3; */ Service = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.GetPermissionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "RscType", kind: "enum", T: proto3.getEnumType(ResourceType) }, { no: 2, name: "Client", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "Service", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPermissionsRequest { return new GetPermissionsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPermissionsRequest { return new GetPermissionsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPermissionsRequest { return new GetPermissionsRequest().fromJsonString(jsonString, options); } static equals(a: GetPermissionsRequest | PlainMessage | undefined, b: GetPermissionsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPermissionsRequest, a, b); } } /** * @generated from message api.GetPermissionsResult */ export class GetPermissionsResult extends Message { /** * @generated from field: repeated api.Permission Permissions = 5; */ Permissions: Permission[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.GetPermissionsResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 5, name: "Permissions", kind: "message", T: Permission, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPermissionsResult { return new GetPermissionsResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPermissionsResult { return new GetPermissionsResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPermissionsResult { return new GetPermissionsResult().fromJsonString(jsonString, options); } static equals(a: GetPermissionsResult | PlainMessage | undefined, b: GetPermissionsResult | PlainMessage | undefined): boolean { return proto3.util.equals(GetPermissionsResult, a, b); } } /** * @generated from message api.GetUIPermissionsRequest */ export class GetUIPermissionsRequest extends Message { /** * @generated from field: api.ResourceType RscType = 1; */ RscType = ResourceType.UNKNOWN; /** * @generated from field: string Client = 2; */ Client = ""; /** * @generated from field: string Service = 3; */ Service = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.GetUIPermissionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "RscType", kind: "enum", T: proto3.getEnumType(ResourceType) }, { no: 2, name: "Client", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "Service", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetUIPermissionsRequest { return new GetUIPermissionsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetUIPermissionsRequest { return new GetUIPermissionsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetUIPermissionsRequest { return new GetUIPermissionsRequest().fromJsonString(jsonString, options); } static equals(a: GetUIPermissionsRequest | PlainMessage | undefined, b: GetUIPermissionsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetUIPermissionsRequest, a, b); } } /** * @generated from message api.GetUIPermissionsResult */ export class GetUIPermissionsResult extends Message { /** * @generated from field: repeated api.Permission Permissions = 1; */ Permissions: Permission[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.GetUIPermissionsResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Permissions", kind: "message", T: Permission, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetUIPermissionsResult { return new GetUIPermissionsResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetUIPermissionsResult { return new GetUIPermissionsResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetUIPermissionsResult { return new GetUIPermissionsResult().fromJsonString(jsonString, options); } static equals(a: GetUIPermissionsResult | PlainMessage | undefined, b: GetUIPermissionsResult | PlainMessage | undefined): boolean { return proto3.util.equals(GetUIPermissionsResult, a, b); } } /** * @generated from message api.ListUserUIPermissionsRequest */ export class ListUserUIPermissionsRequest extends Message { /** * @generated from field: string Client = 2; */ Client = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.ListUserUIPermissionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "Client", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListUserUIPermissionsRequest { return new ListUserUIPermissionsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListUserUIPermissionsRequest { return new ListUserUIPermissionsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListUserUIPermissionsRequest { return new ListUserUIPermissionsRequest().fromJsonString(jsonString, options); } static equals(a: ListUserUIPermissionsRequest | PlainMessage | undefined, b: ListUserUIPermissionsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListUserUIPermissionsRequest, a, b); } } /** * @generated from message api.ListUserUIPermissionsResult */ export class ListUserUIPermissionsResult extends Message { /** * @generated from field: repeated api.UserUIPermissions Permissions = 2; */ Permissions: UserUIPermissions[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.ListUserUIPermissionsResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "Permissions", kind: "message", T: UserUIPermissions, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListUserUIPermissionsResult { return new ListUserUIPermissionsResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListUserUIPermissionsResult { return new ListUserUIPermissionsResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListUserUIPermissionsResult { return new ListUserUIPermissionsResult().fromJsonString(jsonString, options); } static equals(a: ListUserUIPermissionsResult | PlainMessage | undefined, b: ListUserUIPermissionsResult | PlainMessage | undefined): boolean { return proto3.util.equals(ListUserUIPermissionsResult, a, b); } } /** * @generated from message api.RegisterPackageRequest */ export class RegisterPackageRequest extends Message { /** * @generated from field: string PackageName = 1; */ PackageName = ""; /** * @generated from field: repeated api.ClientAPI Clients = 2; */ Clients: ClientAPI[] = []; /** * @generated from field: bool ForceFullScopeCreation = 3; */ ForceFullScopeCreation = false; /** * @generated from field: repeated api.Role Roles = 4; */ Roles: Role[] = []; /** * @generated from field: repeated api.ModuleRegistration Workflows = 5; */ Workflows: ModuleRegistration[] = []; /** * @generated from field: repeated api.Module Modules = 6; */ Modules: Module[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.RegisterPackageRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "PackageName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "Clients", kind: "message", T: ClientAPI, repeated: true }, { no: 3, name: "ForceFullScopeCreation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "Roles", kind: "message", T: Role, repeated: true }, { no: 5, name: "Workflows", kind: "message", T: ModuleRegistration, repeated: true }, { no: 6, name: "Modules", kind: "message", T: Module, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RegisterPackageRequest { return new RegisterPackageRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RegisterPackageRequest { return new RegisterPackageRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RegisterPackageRequest { return new RegisterPackageRequest().fromJsonString(jsonString, options); } static equals(a: RegisterPackageRequest | PlainMessage | undefined, b: RegisterPackageRequest | PlainMessage | undefined): boolean { return proto3.util.equals(RegisterPackageRequest, a, b); } } /** * @generated from message api.RegisterPackageResult */ export class RegisterPackageResult extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.RegisterPackageResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): RegisterPackageResult { return new RegisterPackageResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RegisterPackageResult { return new RegisterPackageResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RegisterPackageResult { return new RegisterPackageResult().fromJsonString(jsonString, options); } static equals(a: RegisterPackageResult | PlainMessage | undefined, b: RegisterPackageResult | PlainMessage | undefined): boolean { return proto3.util.equals(RegisterPackageResult, a, b); } } /** * @generated from message api.CreateScopeRequest */ export class CreateScopeRequest extends Message { /** * @generated from field: string ModuleName = 1; */ ModuleName = ""; /** * @generated from field: string Client = 2; */ Client = ""; /** * @generated from field: api.Scope Scope = 3; */ Scope?: Scope; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.CreateScopeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ModuleName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "Client", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "Scope", kind: "message", T: Scope }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateScopeRequest { return new CreateScopeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateScopeRequest { return new CreateScopeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateScopeRequest { return new CreateScopeRequest().fromJsonString(jsonString, options); } static equals(a: CreateScopeRequest | PlainMessage | undefined, b: CreateScopeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CreateScopeRequest, a, b); } } /** * @generated from message api.CreateScopeResult */ export class CreateScopeResult extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.CreateScopeResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateScopeResult { return new CreateScopeResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateScopeResult { return new CreateScopeResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateScopeResult { return new CreateScopeResult().fromJsonString(jsonString, options); } static equals(a: CreateScopeResult | PlainMessage | undefined, b: CreateScopeResult | PlainMessage | undefined): boolean { return proto3.util.equals(CreateScopeResult, a, b); } } /** * @generated from message api.DeleteScopeRequest */ export class DeleteScopeRequest extends Message { /** * @generated from field: string ModuleName = 1; */ ModuleName = ""; /** * @generated from field: string Client = 2; */ Client = ""; /** * @generated from field: api.Scope Scope = 3; */ Scope?: Scope; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DeleteScopeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ModuleName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "Client", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "Scope", kind: "message", T: Scope }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteScopeRequest { return new DeleteScopeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteScopeRequest { return new DeleteScopeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteScopeRequest { return new DeleteScopeRequest().fromJsonString(jsonString, options); } static equals(a: DeleteScopeRequest | PlainMessage | undefined, b: DeleteScopeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteScopeRequest, a, b); } } /** * @generated from message api.DeleteScopeResult */ export class DeleteScopeResult extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DeleteScopeResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteScopeResult { return new DeleteScopeResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteScopeResult { return new DeleteScopeResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteScopeResult { return new DeleteScopeResult().fromJsonString(jsonString, options); } static equals(a: DeleteScopeResult | PlainMessage | undefined, b: DeleteScopeResult | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteScopeResult, a, b); } } /** * @generated from message api.CleanScopeRequest */ export class CleanScopeRequest extends Message { /** * @generated from field: string Client = 1; */ Client = ""; /** * @generated from field: api.Scope Scope = 2; */ Scope?: Scope; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.CleanScopeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Client", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "Scope", kind: "message", T: Scope }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CleanScopeRequest { return new CleanScopeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CleanScopeRequest { return new CleanScopeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CleanScopeRequest { return new CleanScopeRequest().fromJsonString(jsonString, options); } static equals(a: CleanScopeRequest | PlainMessage | undefined, b: CleanScopeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CleanScopeRequest, a, b); } } /** * @generated from message api.CleanScopeResult */ export class CleanScopeResult extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.CleanScopeResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): CleanScopeResult { return new CleanScopeResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CleanScopeResult { return new CleanScopeResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CleanScopeResult { return new CleanScopeResult().fromJsonString(jsonString, options); } static equals(a: CleanScopeResult | PlainMessage | undefined, b: CleanScopeResult | PlainMessage | undefined): boolean { return proto3.util.equals(CleanScopeResult, a, b); } }