You've already forked npm-core-sdk
Latest generation
This commit is contained in:
57
user.ts
57
user.ts
@@ -359,6 +359,15 @@ export interface GetPlatformUserRequest {
|
||||
*/
|
||||
UserID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetPlatformUserByMailRequest
|
||||
*/
|
||||
export interface GetPlatformUserByMailRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string UserMail = 1
|
||||
*/
|
||||
UserMail: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetOrganisationUserRequest
|
||||
*/
|
||||
@@ -2456,6 +2465,53 @@ class GetPlatformUserRequest$Type extends MessageType<GetPlatformUserRequest> {
|
||||
*/
|
||||
export const GetPlatformUserRequest = new GetPlatformUserRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetPlatformUserByMailRequest$Type extends MessageType<GetPlatformUserByMailRequest> {
|
||||
constructor() {
|
||||
super("api.GetPlatformUserByMailRequest", [
|
||||
{ no: 1, name: "UserMail", kind: "scalar", localName: "UserMail", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserMail"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetPlatformUserByMailRequest>): GetPlatformUserByMailRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.UserMail = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetPlatformUserByMailRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPlatformUserByMailRequest): GetPlatformUserByMailRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string UserMail */ 1:
|
||||
message.UserMail = 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: GetPlatformUserByMailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string UserMail = 1; */
|
||||
if (message.UserMail !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.UserMail);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetPlatformUserByMailRequest
|
||||
*/
|
||||
export const GetPlatformUserByMailRequest = new GetPlatformUserByMailRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetOrganisationUserRequest$Type extends MessageType<GetOrganisationUserRequest> {
|
||||
constructor() {
|
||||
super("api.GetOrganisationUserRequest", [
|
||||
@@ -5797,6 +5853,7 @@ export const UserService = new ServiceType("api.UserService", [
|
||||
{ name: "ListUsersInPartnerAppRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List users with a specific partner app role. If the user has one of the provided roles, it will be returned." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUsersInPartnerAppRoleRequest, O: ListUsersInRoleResult },
|
||||
{ name: "ListUsersInConnectionRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List users with a specific connection role. If the user has one of the provided roles, it will be returned." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUsersInConnectionRoleRequest, O: ListUsersInRoleResult },
|
||||
{ name: "GetPlatformUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details. The user must have at least a platform role." }, "api.rscType": "Platform", "api.roles": "Platform.User", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPlatformUserRequest, O: GetPlatformUserResult },
|
||||
{ name: "GetPlatformUserByMail", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details. The user must have at least a platform role." }, "api.rscType": "Platform", "api.roles": "Platform.User", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPlatformUserByMailRequest, O: GetPlatformUserResult },
|
||||
{ name: "GetOrganisationUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details. The user must have at least an organisation role." }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetOrganisationUserRequest, O: GetOrganisationUserResult },
|
||||
{ name: "GetProjectUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details. The user must have at least a project role." }, "api.rscType": "Project", "api.roles": "Platform.Project-User", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectUserRequest, O: GetProjectUserResult },
|
||||
{ name: "GetProjectUserByMail", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details." }, "api.rscType": "Platform", "api.roles": "Platform.Project-User", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetProjectUserByMailRequest, O: GetProjectUserResult },
|
||||
|
||||
Reference in New Issue
Block a user