Latest generation

This commit is contained in:
ci core model
2025-11-12 13:47:54 +00:00
parent 0324637484
commit 7159d0f884
3 changed files with 354 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.12.0-SNAPSHOT-251110110057",
"version": "1.12.0-SNAPSHOT-251112134721",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

View File

@@ -61,6 +61,10 @@ import type { ListOrganisationUsersResult } from "./user";
import type { ListOrganisationUsersRequest } from "./user";
import type { ListPlatformUsersResult } from "./user";
import type { ListPlatformUsersRequest } from "./user";
import type { SuggestProjectSANameRequest } from "./user";
import type { RemoveProjectSARequest } from "./user";
import type { RenewProjectSARequest } from "./user";
import type { CreateProjectSARequest } from "./user";
import type { SuggestSANameResult } from "./user";
import type { SuggestSANameRequest } from "./user";
import type { RemoveSAResult } from "./user";
@@ -135,6 +139,22 @@ export interface IUserServiceClient {
* @generated from protobuf rpc: SuggestSAName
*/
suggestSAName(input: SuggestSANameRequest, options?: RpcOptions): UnaryCall<SuggestSANameRequest, SuggestSANameResult>;
/**
* @generated from protobuf rpc: CreateProjectSA
*/
createProjectSA(input: CreateProjectSARequest, options?: RpcOptions): UnaryCall<CreateProjectSARequest, CreateSAResult>;
/**
* @generated from protobuf rpc: RenewProjectSA
*/
renewProjectSA(input: RenewProjectSARequest, options?: RpcOptions): UnaryCall<RenewProjectSARequest, RenewSAResult>;
/**
* @generated from protobuf rpc: RemoveProjectSA
*/
removeProjectSA(input: RemoveProjectSARequest, options?: RpcOptions): UnaryCall<RemoveProjectSARequest, RemoveSAResult>;
/**
* @generated from protobuf rpc: SuggestProjectSAName
*/
suggestProjectSAName(input: SuggestProjectSANameRequest, options?: RpcOptions): UnaryCall<SuggestProjectSANameRequest, SuggestSANameResult>;
/**
* @generated from protobuf rpc: ListPlatformUsers
*/
@@ -361,235 +381,263 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<SuggestSANameRequest, SuggestSANameResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateProjectSA
*/
createProjectSA(input: CreateProjectSARequest, options?: RpcOptions): UnaryCall<CreateProjectSARequest, CreateSAResult> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateProjectSARequest, CreateSAResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RenewProjectSA
*/
renewProjectSA(input: RenewProjectSARequest, options?: RpcOptions): UnaryCall<RenewProjectSARequest, RenewSAResult> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<RenewProjectSARequest, RenewSAResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RemoveProjectSA
*/
removeProjectSA(input: RemoveProjectSARequest, options?: RpcOptions): UnaryCall<RemoveProjectSARequest, RemoveSAResult> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<RemoveProjectSARequest, RemoveSAResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SuggestProjectSAName
*/
suggestProjectSAName(input: SuggestProjectSANameRequest, options?: RpcOptions): UnaryCall<SuggestProjectSANameRequest, SuggestSANameResult> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<SuggestProjectSANameRequest, SuggestSANameResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListPlatformUsers
*/
listPlatformUsers(input: ListPlatformUsersRequest, options?: RpcOptions): UnaryCall<ListPlatformUsersRequest, ListPlatformUsersResult> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<ListPlatformUsersRequest, ListPlatformUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListOrganisationUsers
*/
listOrganisationUsers(input: ListOrganisationUsersRequest, options?: RpcOptions): UnaryCall<ListOrganisationUsersRequest, ListOrganisationUsersResult> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<ListOrganisationUsersRequest, ListOrganisationUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListProjectUsers
*/
listProjectUsers(input: ListProjectUsersRequest, options?: RpcOptions): UnaryCall<ListProjectUsersRequest, ListProjectUsersResult> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
const method = this.methods[18], opt = this._transport.mergeOptions(options);
return stackIntercept<ListProjectUsersRequest, ListProjectUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListPartnerAppUsers
*/
listPartnerAppUsers(input: ListPartnerAppUsersRequest, options?: RpcOptions): UnaryCall<ListPartnerAppUsersRequest, ListPartnerAppUsersResult> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
const method = this.methods[19], opt = this._transport.mergeOptions(options);
return stackIntercept<ListPartnerAppUsersRequest, ListPartnerAppUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListConnectionUsers
*/
listConnectionUsers(input: ListConnectionUsersRequest, options?: RpcOptions): UnaryCall<ListConnectionUsersRequest, ListConnectionUsersResult> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[20], opt = this._transport.mergeOptions(options);
return stackIntercept<ListConnectionUsersRequest, ListConnectionUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: FindPlatformUsers
*/
findPlatformUsers(input: FindPlatformUsersRequest, options?: RpcOptions): UnaryCall<FindPlatformUsersRequest, FindUsersResult> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
const method = this.methods[21], opt = this._transport.mergeOptions(options);
return stackIntercept<FindPlatformUsersRequest, FindUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: FindOrganisationUsers
*/
findOrganisationUsers(input: FindOrganisationUsersRequest, options?: RpcOptions): UnaryCall<FindOrganisationUsersRequest, FindUsersResult> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
const method = this.methods[22], opt = this._transport.mergeOptions(options);
return stackIntercept<FindOrganisationUsersRequest, FindUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: FindProjectUsers
*/
findProjectUsers(input: FindProjectUsersRequest, options?: RpcOptions): UnaryCall<FindProjectUsersRequest, FindUsersResult> {
const method = this.methods[19], opt = this._transport.mergeOptions(options);
const method = this.methods[23], opt = this._transport.mergeOptions(options);
return stackIntercept<FindProjectUsersRequest, FindUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: FindPartnerAppUsers
*/
findPartnerAppUsers(input: FindPartnerAppUsersRequest, options?: RpcOptions): UnaryCall<FindPartnerAppUsersRequest, FindUsersResult> {
const method = this.methods[20], opt = this._transport.mergeOptions(options);
const method = this.methods[24], opt = this._transport.mergeOptions(options);
return stackIntercept<FindPartnerAppUsersRequest, FindUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: FindConnectionUsers
*/
findConnectionUsers(input: FindConnectionUsersRequest, options?: RpcOptions): UnaryCall<FindConnectionUsersRequest, FindUsersResult> {
const method = this.methods[21], opt = this._transport.mergeOptions(options);
const method = this.methods[25], opt = this._transport.mergeOptions(options);
return stackIntercept<FindConnectionUsersRequest, FindUsersResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUsersInPlatformRole
*/
listUsersInPlatformRole(input: ListUsersInPlatformRoleRequest, options?: RpcOptions): UnaryCall<ListUsersInPlatformRoleRequest, ListUsersInRoleResult> {
const method = this.methods[22], opt = this._transport.mergeOptions(options);
const method = this.methods[26], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUsersInPlatformRoleRequest, ListUsersInRoleResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUsersInOrganisationRole
*/
listUsersInOrganisationRole(input: ListUsersInOrganisationRoleRequest, options?: RpcOptions): UnaryCall<ListUsersInOrganisationRoleRequest, ListUsersInRoleResult> {
const method = this.methods[23], opt = this._transport.mergeOptions(options);
const method = this.methods[27], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUsersInOrganisationRoleRequest, ListUsersInRoleResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUsersInProjectRole
*/
listUsersInProjectRole(input: ListUsersInProjectRoleRequest, options?: RpcOptions): UnaryCall<ListUsersInProjectRoleRequest, ListUsersInRoleResult> {
const method = this.methods[24], opt = this._transport.mergeOptions(options);
const method = this.methods[28], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUsersInProjectRoleRequest, ListUsersInRoleResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUsersInPartnerAppRole
*/
listUsersInPartnerAppRole(input: ListUsersInPartnerAppRoleRequest, options?: RpcOptions): UnaryCall<ListUsersInPartnerAppRoleRequest, ListUsersInRoleResult> {
const method = this.methods[25], opt = this._transport.mergeOptions(options);
const method = this.methods[29], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUsersInPartnerAppRoleRequest, ListUsersInRoleResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUsersInConnectionRole
*/
listUsersInConnectionRole(input: ListUsersInConnectionRoleRequest, options?: RpcOptions): UnaryCall<ListUsersInConnectionRoleRequest, ListUsersInRoleResult> {
const method = this.methods[26], opt = this._transport.mergeOptions(options);
const method = this.methods[30], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUsersInConnectionRoleRequest, ListUsersInRoleResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetPlatformUser
*/
getPlatformUser(input: GetPlatformUserRequest, options?: RpcOptions): UnaryCall<GetPlatformUserRequest, GetPlatformUserResult> {
const method = this.methods[27], opt = this._transport.mergeOptions(options);
const method = this.methods[31], opt = this._transport.mergeOptions(options);
return stackIntercept<GetPlatformUserRequest, GetPlatformUserResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetOrganisationUser
*/
getOrganisationUser(input: GetOrganisationUserRequest, options?: RpcOptions): UnaryCall<GetOrganisationUserRequest, GetOrganisationUserResult> {
const method = this.methods[28], opt = this._transport.mergeOptions(options);
const method = this.methods[32], opt = this._transport.mergeOptions(options);
return stackIntercept<GetOrganisationUserRequest, GetOrganisationUserResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetProjectUser
*/
getProjectUser(input: GetProjectUserRequest, options?: RpcOptions): UnaryCall<GetProjectUserRequest, GetProjectUserResult> {
const method = this.methods[29], opt = this._transport.mergeOptions(options);
const method = this.methods[33], opt = this._transport.mergeOptions(options);
return stackIntercept<GetProjectUserRequest, GetProjectUserResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListPlatformRoles
*/
listPlatformRoles(input: ListUserPlatformRolesRequest, options?: RpcOptions): UnaryCall<ListUserPlatformRolesRequest, ListUserPlatformRolesResult> {
const method = this.methods[30], opt = this._transport.mergeOptions(options);
const method = this.methods[34], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserPlatformRolesRequest, ListUserPlatformRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListOrganisationRoles
*/
listOrganisationRoles(input: ListUserOrganisationRolesRequest, options?: RpcOptions): UnaryCall<ListUserOrganisationRolesRequest, ListUserOrganisationRolesResult> {
const method = this.methods[31], opt = this._transport.mergeOptions(options);
const method = this.methods[35], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserOrganisationRolesRequest, ListUserOrganisationRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListProjectRoles
*/
listProjectRoles(input: ListUserProjectRolesRequest, options?: RpcOptions): UnaryCall<ListUserProjectRolesRequest, ListUserProjectRolesResult> {
const method = this.methods[32], opt = this._transport.mergeOptions(options);
const method = this.methods[36], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserProjectRolesRequest, ListUserProjectRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListPartnerAppRoles
*/
listPartnerAppRoles(input: ListUserPartnerAppRolesRequest, options?: RpcOptions): UnaryCall<ListUserPartnerAppRolesRequest, ListUserPartnerAppRolesResult> {
const method = this.methods[33], opt = this._transport.mergeOptions(options);
const method = this.methods[37], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserPartnerAppRolesRequest, ListUserPartnerAppRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListConnectionRoles
*/
listConnectionRoles(input: ListUserConnectionRolesRequest, options?: RpcOptions): UnaryCall<ListUserConnectionRolesRequest, ListUserConnectionRolesResult> {
const method = this.methods[34], opt = this._transport.mergeOptions(options);
const method = this.methods[38], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserConnectionRolesRequest, ListUserConnectionRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListAttachmentTypeRoles
*/
listAttachmentTypeRoles(input: ListUserAttachmentTypeRolesRequest, options?: RpcOptions): UnaryCall<ListUserAttachmentTypeRolesRequest, ListUserAttachmentTypeRolesResult> {
const method = this.methods[35], opt = this._transport.mergeOptions(options);
const method = this.methods[39], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserAttachmentTypeRolesRequest, ListUserAttachmentTypeRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetPlatformRoles
*/
setPlatformRoles(input: SetUserPlatformRolesRequest, options?: RpcOptions): UnaryCall<SetUserPlatformRolesRequest, SetUserPlatformRolesResult> {
const method = this.methods[36], opt = this._transport.mergeOptions(options);
const method = this.methods[40], opt = this._transport.mergeOptions(options);
return stackIntercept<SetUserPlatformRolesRequest, SetUserPlatformRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetOrganisationRoles
*/
setOrganisationRoles(input: SetUserOrganisationRolesRequest, options?: RpcOptions): UnaryCall<SetUserOrganisationRolesRequest, SetUserOrganisationRolesResult> {
const method = this.methods[37], opt = this._transport.mergeOptions(options);
const method = this.methods[41], opt = this._transport.mergeOptions(options);
return stackIntercept<SetUserOrganisationRolesRequest, SetUserOrganisationRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetProjectRoles
*/
setProjectRoles(input: SetUserProjectRolesRequest, options?: RpcOptions): UnaryCall<SetUserProjectRolesRequest, SetUserProjectRolesResult> {
const method = this.methods[38], opt = this._transport.mergeOptions(options);
const method = this.methods[42], opt = this._transport.mergeOptions(options);
return stackIntercept<SetUserProjectRolesRequest, SetUserProjectRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetPartnerAppRoles
*/
setPartnerAppRoles(input: SetUserPartnerAppRolesRequest, options?: RpcOptions): UnaryCall<SetUserPartnerAppRolesRequest, SetUserPartnerAppRolesResult> {
const method = this.methods[39], opt = this._transport.mergeOptions(options);
const method = this.methods[43], opt = this._transport.mergeOptions(options);
return stackIntercept<SetUserPartnerAppRolesRequest, SetUserPartnerAppRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetConnectionRoles
*/
setConnectionRoles(input: SetUserConnectionRolesRequest, options?: RpcOptions): UnaryCall<SetUserConnectionRolesRequest, SetUserConnectionRolesResult> {
const method = this.methods[40], opt = this._transport.mergeOptions(options);
const method = this.methods[44], opt = this._transport.mergeOptions(options);
return stackIntercept<SetUserConnectionRolesRequest, SetUserConnectionRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetAttachmentTypeRoles
*/
setAttachmentTypeRoles(input: SetUserAttachmentTypeRolesRequest, options?: RpcOptions): UnaryCall<SetUserAttachmentTypeRolesRequest, SetUserAttachmentTypeRolesResult> {
const method = this.methods[41], opt = this._transport.mergeOptions(options);
const method = this.methods[45], opt = this._transport.mergeOptions(options);
return stackIntercept<SetUserAttachmentTypeRolesRequest, SetUserAttachmentTypeRolesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceTwoFA
*/
forceTwoFA(input: ForceTwoFAOrganisationRequest, options?: RpcOptions): UnaryCall<ForceTwoFAOrganisationRequest, ForceTwoFAResult> {
const method = this.methods[42], opt = this._transport.mergeOptions(options);
const method = this.methods[46], opt = this._transport.mergeOptions(options);
return stackIntercept<ForceTwoFAOrganisationRequest, ForceTwoFAResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceProjectUserTwoFA
*/
forceProjectUserTwoFA(input: ForceProjectUserTwoFARequest, options?: RpcOptions): UnaryCall<ForceProjectUserTwoFARequest, ForceTwoFAResult> {
const method = this.methods[43], opt = this._transport.mergeOptions(options);
const method = this.methods[47], opt = this._transport.mergeOptions(options);
return stackIntercept<ForceProjectUserTwoFARequest, ForceTwoFAResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdatePlatformTwoFA
*/
updatePlatformTwoFA(input: UpdateTwoFAPlatformRequest, options?: RpcOptions): UnaryCall<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult> {
const method = this.methods[44], opt = this._transport.mergeOptions(options);
const method = this.methods[48], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>("unary", this._transport, method, opt, input);
}
}

272
user.ts
View File

@@ -241,6 +241,58 @@ export interface SuggestSANameRequest {
*/
Name: string;
}
/**
* @generated from protobuf message api.CreateProjectSARequest
*/
export interface CreateProjectSARequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string Name = 2
*/
Name: string;
}
/**
* @generated from protobuf message api.RenewProjectSARequest
*/
export interface RenewProjectSARequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string Mail = 2
*/
Mail: string;
}
/**
* @generated from protobuf message api.RemoveProjectSARequest
*/
export interface RemoveProjectSARequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string Mail = 2
*/
Mail: string;
}
/**
* @generated from protobuf message api.SuggestProjectSANameRequest
*/
export interface SuggestProjectSANameRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string Name = 2
*/
Name: string;
}
/**
* @generated from protobuf message api.ListPlatformUsersRequest
*/
@@ -1858,6 +1910,222 @@ class SuggestSANameRequest$Type extends MessageType<SuggestSANameRequest> {
*/
export const SuggestSANameRequest = new SuggestSANameRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateProjectSARequest$Type extends MessageType<CreateProjectSARequest> {
constructor() {
super("api.CreateProjectSARequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } });
}
create(value?: PartialMessage<CreateProjectSARequest>): CreateProjectSARequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
if (value !== undefined)
reflectionMergePartial<CreateProjectSARequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectSARequest): CreateProjectSARequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name */ 2:
message.Name = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: CreateProjectSARequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CreateProjectSARequest
*/
export const CreateProjectSARequest = new CreateProjectSARequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RenewProjectSARequest$Type extends MessageType<RenewProjectSARequest> {
constructor() {
super("api.RenewProjectSARequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Mail"] } } });
}
create(value?: PartialMessage<RenewProjectSARequest>): RenewProjectSARequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Mail = "";
if (value !== undefined)
reflectionMergePartial<RenewProjectSARequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewProjectSARequest): RenewProjectSARequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Mail */ 2:
message.Mail = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: RenewProjectSARequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Mail = 2; */
if (message.Mail !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Mail);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RenewProjectSARequest
*/
export const RenewProjectSARequest = new RenewProjectSARequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RemoveProjectSARequest$Type extends MessageType<RemoveProjectSARequest> {
constructor() {
super("api.RemoveProjectSARequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Mail"] } } });
}
create(value?: PartialMessage<RemoveProjectSARequest>): RemoveProjectSARequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Mail = "";
if (value !== undefined)
reflectionMergePartial<RemoveProjectSARequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveProjectSARequest): RemoveProjectSARequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Mail */ 2:
message.Mail = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: RemoveProjectSARequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Mail = 2; */
if (message.Mail !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Mail);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RemoveProjectSARequest
*/
export const RemoveProjectSARequest = new RemoveProjectSARequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SuggestProjectSANameRequest$Type extends MessageType<SuggestProjectSANameRequest> {
constructor() {
super("api.SuggestProjectSANameRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } });
}
create(value?: PartialMessage<SuggestProjectSANameRequest>): SuggestProjectSANameRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
if (value !== undefined)
reflectionMergePartial<SuggestProjectSANameRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuggestProjectSANameRequest): SuggestProjectSANameRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name */ 2:
message.Name = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: SuggestProjectSANameRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SuggestProjectSANameRequest
*/
export const SuggestProjectSANameRequest = new SuggestProjectSANameRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListPlatformUsersRequest$Type extends MessageType<ListPlatformUsersRequest> {
constructor() {
super("api.ListPlatformUsersRequest", []);
@@ -5393,6 +5661,10 @@ export const UserService = new ServiceType("api.UserService", [
{ name: "RenewSA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Renew Service Account certificate" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-User", "google.api.method_visibility": { restriction: "SDK" } }, I: RenewSARequest, O: RenewSAResult },
{ name: "RemoveSA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Remove Service Account" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-User", "google.api.method_visibility": { restriction: "SDK" } }, I: RemoveSARequest, O: RemoveSAResult },
{ name: "SuggestSAName", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Suggest Service Account name" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SuggestSANameRequest, O: SuggestSANameResult },
{ name: "CreateProjectSA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Create Service Account on the project" }, "api.rscType": "Project", "api.roles": "Platform.Project-User" }, I: CreateProjectSARequest, O: CreateSAResult },
{ name: "RenewProjectSA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Renew Service Account certificate on the project" }, "api.rscType": "Project", "api.roles": "Platform.Project-User", "google.api.method_visibility": { restriction: "SDK" } }, I: RenewProjectSARequest, O: RenewSAResult },
{ name: "RemoveProjectSA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Remove Service Account on the project" }, "api.rscType": "Project", "api.roles": "Platform.Project-User", "google.api.method_visibility": { restriction: "SDK" } }, I: RemoveProjectSARequest, O: RemoveSAResult },
{ name: "SuggestProjectSAName", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Suggest Service Account name on the project" }, "api.rscType": "Project", "api.roles": "Platform.Project-User" }, I: SuggestProjectSANameRequest, O: SuggestSANameResult },
{ name: "ListPlatformUsers", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List users with at least a platform role" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListPlatformUsersRequest, O: ListPlatformUsersResult },
{ name: "ListOrganisationUsers", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List users with at least an organisation role" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListOrganisationUsersRequest, O: ListOrganisationUsersResult },
{ name: "ListProjectUsers", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List users with at least a project role" }, "api.rscType": "Project", "api.roles": "Platform.Organisation-User", "google.api.method_visibility": { restriction: "SDK" } }, I: ListProjectUsersRequest, O: ListProjectUsersResult },