Latest generation

This commit is contained in:
ci core model
2026-02-26 15:28:52 +00:00
parent 186eb5803f
commit 185153e725
3 changed files with 116 additions and 2 deletions

View File

@@ -4,6 +4,8 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ModelService } from "./model";
import type { ListEntitiesResult } from "./model";
import type { ListEntitiesRequest } from "./model";
import type { GetEntitiesResult } from "./model";
import type { GetEntitiesRequest } from "./model";
import type { GetEntityModelResult } from "./model";
@@ -37,6 +39,10 @@ export interface IModelServiceClient {
* @generated from protobuf rpc: GetEntitiesWithDataRestriction
*/
getEntitiesWithDataRestriction(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult>;
/**
* @generated from protobuf rpc: ListEntities
*/
listEntities(input: ListEntitiesRequest, options?: RpcOptions): UnaryCall<ListEntitiesRequest, ListEntitiesResult>;
}
/**
* @generated from protobuf service api.ModelService
@@ -82,4 +88,11 @@ export class ModelServiceClient implements IModelServiceClient, ServiceInfo {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListEntities
*/
listEntities(input: ListEntitiesRequest, options?: RpcOptions): UnaryCall<ListEntitiesRequest, ListEntitiesResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<ListEntitiesRequest, ListEntitiesResult>("unary", this._transport, method, opt, input);
}
}

103
model.ts
View File

@@ -11,6 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { EntityDefinition } from "./shared";
import { RequestProjectHeader } from "./shared";
// message MetadataSchema {
// string Id = 1;
@@ -177,6 +178,20 @@ export interface GetEntitiesResult {
*/
Entities: string[];
}
/**
* @generated from protobuf message api.ListEntitiesRequest
*/
export interface ListEntitiesRequest {
}
/**
* @generated from protobuf message api.ListEntitiesResult
*/
export interface ListEntitiesResult {
/**
* @generated from protobuf field: repeated api.EntityDefinition Entities = 1
*/
Entities: EntityDefinition[];
}
// @generated message type with reflection information, may provide speed optimized methods
class DataFilters$Type extends MessageType<DataFilters> {
constructor() {
@@ -752,6 +767,91 @@ class GetEntitiesResult$Type extends MessageType<GetEntitiesResult> {
* @generated MessageType for protobuf message api.GetEntitiesResult
*/
export const GetEntitiesResult = new GetEntitiesResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListEntitiesRequest$Type extends MessageType<ListEntitiesRequest> {
constructor() {
super("api.ListEntitiesRequest", []);
}
create(value?: PartialMessage<ListEntitiesRequest>): ListEntitiesRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ListEntitiesRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEntitiesRequest): ListEntitiesRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: ListEntitiesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListEntitiesRequest
*/
export const ListEntitiesRequest = new ListEntitiesRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListEntitiesResult$Type extends MessageType<ListEntitiesResult> {
constructor() {
super("api.ListEntitiesResult", [
{ no: 1, name: "Entities", kind: "message", localName: "Entities", jsonName: "Entities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityDefinition }
]);
}
create(value?: PartialMessage<ListEntitiesResult>): ListEntitiesResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Entities = [];
if (value !== undefined)
reflectionMergePartial<ListEntitiesResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEntitiesResult): ListEntitiesResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.EntityDefinition Entities */ 1:
message.Entities.push(EntityDefinition.internalBinaryRead(reader, reader.uint32(), options));
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: ListEntitiesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.EntityDefinition Entities = 1; */
for (let i = 0; i < message.Entities.length; i++)
EntityDefinition.internalBinaryWrite(message.Entities[i], 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.ListEntitiesResult
*/
export const ListEntitiesResult = new ListEntitiesResult$Type();
/**
* @generated ServiceType for protobuf service api.ModelService
*/
@@ -760,5 +860,6 @@ export const ModelService = new ServiceType("api.ModelService", [
{ name: "GetEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entity data model with project metadata in Json Format" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntityModelRequest, O: GetEntityModelResult },
{ name: "GetEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
{ name: "GetEntitiesWithMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with metadata" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
{ name: "GetEntitiesWithDataRestriction", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult }
{ name: "GetEntitiesWithDataRestriction", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
{ name: "ListEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Return a list of definitions of entities" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: ListEntitiesRequest, O: ListEntitiesResult }
], { "api.k8sService": "project-model-server" });

View File

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