You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-251222093928",
|
||||
"version": "1.13.0-SNAPSHOT-251222140458",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -38,6 +38,7 @@ import type { GetProjectUserResult } from "./user";
|
||||
import type { GetProjectUserRequest } from "./user";
|
||||
import type { GetOrganisationUserResult } from "./user";
|
||||
import type { GetOrganisationUserRequest } from "./user";
|
||||
import type { GetPlatformUserByMailRequest } from "./user";
|
||||
import type { GetPlatformUserResult } from "./user";
|
||||
import type { GetPlatformUserRequest } from "./user";
|
||||
import type { ListUsersInConnectionRoleRequest } from "./user";
|
||||
@@ -220,6 +221,10 @@ export interface IUserServiceClient {
|
||||
* @generated from protobuf rpc: GetPlatformUser
|
||||
*/
|
||||
getPlatformUser(input: GetPlatformUserRequest, options?: RpcOptions): UnaryCall<GetPlatformUserRequest, GetPlatformUserResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetPlatformUserByMail
|
||||
*/
|
||||
getPlatformUserByMail(input: GetPlatformUserByMailRequest, options?: RpcOptions): UnaryCall<GetPlatformUserByMailRequest, GetPlatformUserResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetOrganisationUser
|
||||
*/
|
||||
@@ -526,130 +531,137 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo {
|
||||
const method = this.methods[31], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetPlatformUserRequest, GetPlatformUserResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetPlatformUserByMail
|
||||
*/
|
||||
getPlatformUserByMail(input: GetPlatformUserByMailRequest, options?: RpcOptions): UnaryCall<GetPlatformUserByMailRequest, GetPlatformUserResult> {
|
||||
const method = this.methods[32], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetPlatformUserByMailRequest, GetPlatformUserResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetOrganisationUser
|
||||
*/
|
||||
getOrganisationUser(input: GetOrganisationUserRequest, options?: RpcOptions): UnaryCall<GetOrganisationUserRequest, GetOrganisationUserResult> {
|
||||
const method = this.methods[32], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[33], 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[33], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[34], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetProjectUserRequest, GetProjectUserResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetProjectUserByMail
|
||||
*/
|
||||
getProjectUserByMail(input: GetProjectUserByMailRequest, options?: RpcOptions): UnaryCall<GetProjectUserByMailRequest, GetProjectUserResult> {
|
||||
const method = this.methods[34], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[35], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetProjectUserByMailRequest, GetProjectUserResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListPlatformRoles
|
||||
*/
|
||||
listPlatformRoles(input: ListUserPlatformRolesRequest, options?: RpcOptions): UnaryCall<ListUserPlatformRolesRequest, ListUserPlatformRolesResult> {
|
||||
const method = this.methods[35], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[36], 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[36], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[37], 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[37], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[38], 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[38], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[39], 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[39], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[40], 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[40], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[41], 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[41], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[42], 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[42], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[43], 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[43], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[44], 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[44], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[45], 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[45], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[46], 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[46], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[47], 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[47], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[48], 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[48], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[49], 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[49], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[50], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
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