diff --git a/package.json b/package.json index 359a00f..f2084dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260219141954", + "version": "1.13.0-SNAPSHOT-260219144159", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/workflow.client.ts b/workflow.client.ts index a9212e6..9dfbfc8 100644 --- a/workflow.client.ts +++ b/workflow.client.ts @@ -4,6 +4,8 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { WorkflowService } from "./workflow"; +import type { StartWorkflowSynchronizeUMAStoreResult } from "./workflow"; +import type { StartWorkflowSynchronizeUMAStoreRequest } from "./workflow"; import type { StartWorkflowCleanCassandraResult } from "./workflow"; import type { StartWorkflowCleanCassandraRequest } from "./workflow"; import type { StartWorkflowDeleteClickhouseResult } from "./workflow"; @@ -203,6 +205,10 @@ export interface IWorkflowServiceClient { * @generated from protobuf rpc: StartWorkflowCleanCassandra */ startWorkflowCleanCassandra(input: StartWorkflowCleanCassandraRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: StartWorkflowSynchronizeUMAStore + */ + startWorkflowSynchronizeUMAStore(input: StartWorkflowSynchronizeUMAStoreRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.WorkflowService @@ -437,4 +443,11 @@ export class WorkflowServiceClient implements IWorkflowServiceClient, ServiceInf const method = this.methods[31], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: StartWorkflowSynchronizeUMAStore + */ + startWorkflowSynchronizeUMAStore(input: StartWorkflowSynchronizeUMAStoreRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[32], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } } diff --git a/workflow.ts b/workflow.ts index b38f8d3..d913a69 100644 --- a/workflow.ts +++ b/workflow.ts @@ -907,6 +907,24 @@ export interface StartWorkflowCleanCassandraResult { */ WorkflowExecution?: WorkflowExecutionResult; } +/** + * @generated from protobuf message api.StartWorkflowSynchronizeUMAStoreRequest + */ +export interface StartWorkflowSynchronizeUMAStoreRequest { + /** + * @generated from protobuf field: string UserID = 1 + */ + UserID: string; // If no UserID is provided, the workflow will synchronize the UMA store for all users +} +/** + * @generated from protobuf message api.StartWorkflowSynchronizeUMAStoreResult + */ +export interface StartWorkflowSynchronizeUMAStoreResult { + /** + * @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1 + */ + WorkflowExecution?: WorkflowExecutionResult; +} /** * @generated from protobuf enum api.WorkflowStatusEnum */ @@ -4600,6 +4618,99 @@ class StartWorkflowCleanCassandraResult$Type extends MessageType { + constructor() { + super("api.StartWorkflowSynchronizeUMAStoreRequest", [ + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): StartWorkflowSynchronizeUMAStoreRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.UserID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartWorkflowSynchronizeUMAStoreRequest): StartWorkflowSynchronizeUMAStoreRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string UserID */ 1: + message.UserID = 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: StartWorkflowSynchronizeUMAStoreRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string UserID = 1; */ + if (message.UserID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.UserID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.StartWorkflowSynchronizeUMAStoreRequest + */ +export const StartWorkflowSynchronizeUMAStoreRequest = new StartWorkflowSynchronizeUMAStoreRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class StartWorkflowSynchronizeUMAStoreResult$Type extends MessageType { + constructor() { + super("api.StartWorkflowSynchronizeUMAStoreResult", [ + { no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult } + ]); + } + create(value?: PartialMessage): StartWorkflowSynchronizeUMAStoreResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartWorkflowSynchronizeUMAStoreResult): StartWorkflowSynchronizeUMAStoreResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.WorkflowExecutionResult WorkflowExecution */ 1: + message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution); + 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: StartWorkflowSynchronizeUMAStoreResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.WorkflowExecutionResult WorkflowExecution = 1; */ + if (message.WorkflowExecution) + WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.StartWorkflowSynchronizeUMAStoreResult + */ +export const StartWorkflowSynchronizeUMAStoreResult = new StartWorkflowSynchronizeUMAStoreResult$Type(); /** * @generated ServiceType for protobuf service api.WorkflowService */ @@ -4635,5 +4746,6 @@ export const WorkflowService = new ServiceType("api.WorkflowService", [ { name: "StartWorkflowSweep", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow to sweep the platform." }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowSweepRequest, O: StartWorkflowSweepResult }, { name: "StartWorkflowCreateClickhouse", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow which will create clickhouse database for the project and the resource" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowCreateClickhouseRequest, O: StartWorkflowCreateClickhouseResult }, { name: "StartWorkflowDeleteClickhouse", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow which will delete clickhouse database for the project and the resource" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowDeleteClickhouseRequest, O: StartWorkflowDeleteClickhouseResult }, - { name: "StartWorkflowCleanCassandra", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow which will clean data in cassandra tables for the project and the resource" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowCleanCassandraRequest, O: StartWorkflowCleanCassandraResult } + { name: "StartWorkflowCleanCassandra", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow which will clean data in cassandra tables for the project and the resource" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowCleanCassandraRequest, O: StartWorkflowCleanCassandraResult }, + { name: "StartWorkflowSynchronizeUMAStore", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow which will synchronize UMA store for all users or for a specific user if UserID is provided" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowSynchronizeUMAStoreRequest, O: StartWorkflowSynchronizeUMAStoreResult } ], { "api.k8sService": "organisation-server", "api.roleManager": true, "api.resourceManager": true });