Latest generation

This commit is contained in:
ci core model
2025-07-01 08:57:10 +00:00
parent 10d9227cf9
commit 2c8ad5e3da
3 changed files with 127 additions and 2 deletions

View File

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

View File

@@ -4,6 +4,8 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { TinyURLService } from "./tiny-url";
import type { DeleteAllTinyURLsResult } from "./tiny-url";
import type { DeleteAllTinyURLsRequest } from "./tiny-url";
import type { GetPartnerAppTinyURLResult } from "./tiny-url";
import type { GetPartnerAppTinyURLRequest } from "./tiny-url";
import type { GetSiteTinyURLResult } from "./tiny-url";
@@ -73,6 +75,10 @@ export interface ITinyURLServiceClient {
* @generated from protobuf rpc: GetPartnerAppTinyURL
*/
getPartnerAppTinyURL(input: GetPartnerAppTinyURLRequest, options?: RpcOptions): UnaryCall<GetPartnerAppTinyURLRequest, GetPartnerAppTinyURLResult>;
/**
* @generated from protobuf rpc: DeleteAll
*/
deleteAll(input: DeleteAllTinyURLsRequest, options?: RpcOptions): UnaryCall<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResult>;
}
// ============ SERVICE DESCRIPTION ============
@@ -155,4 +161,11 @@ export class TinyURLServiceClient implements ITinyURLServiceClient, ServiceInfo
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<GetPartnerAppTinyURLRequest, GetPartnerAppTinyURLResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteAll
*/
deleteAll(input: DeleteAllTinyURLsRequest, options?: RpcOptions): UnaryCall<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResult> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResult>("unary", this._transport, method, opt, input);
}
}

View File

@@ -361,6 +361,24 @@ export interface GetPartnerAppTinyURLResult {
*/
LongURL: string;
}
/**
* @generated from protobuf message api.DeleteAllTinyURLsRequest
*/
export interface DeleteAllTinyURLsRequest {
/**
* @generated from protobuf field: api.ResourceType ResourceType = 1
*/
ResourceType: ResourceType;
/**
* @generated from protobuf field: string ResourceRefID = 2
*/
ResourceRefID: string;
}
/**
* @generated from protobuf message api.DeleteAllTinyURLsResult
*/
export interface DeleteAllTinyURLsResult {
}
// ========== MODEL MESSAGES ==========
/**
@@ -1711,6 +1729,99 @@ class GetPartnerAppTinyURLResult$Type extends MessageType<GetPartnerAppTinyURLRe
* @generated MessageType for protobuf message api.GetPartnerAppTinyURLResult
*/
export const GetPartnerAppTinyURLResult = new GetPartnerAppTinyURLResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAllTinyURLsRequest$Type extends MessageType<DeleteAllTinyURLsRequest> {
constructor() {
super("api.DeleteAllTinyURLsRequest", [
{ no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "ResourceRefID", kind: "scalar", localName: "ResourceRefID", jsonName: "ResourceRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceType", "ResourceRefID"] } } });
}
create(value?: PartialMessage<DeleteAllTinyURLsRequest>): DeleteAllTinyURLsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ResourceType = 0;
message.ResourceRefID = "";
if (value !== undefined)
reflectionMergePartial<DeleteAllTinyURLsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllTinyURLsRequest): DeleteAllTinyURLsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResourceType ResourceType */ 1:
message.ResourceType = reader.int32();
break;
case /* string ResourceRefID */ 2:
message.ResourceRefID = 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: DeleteAllTinyURLsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResourceType ResourceType = 1; */
if (message.ResourceType !== 0)
writer.tag(1, WireType.Varint).int32(message.ResourceType);
/* string ResourceRefID = 2; */
if (message.ResourceRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ResourceRefID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteAllTinyURLsRequest
*/
export const DeleteAllTinyURLsRequest = new DeleteAllTinyURLsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAllTinyURLsResult$Type extends MessageType<DeleteAllTinyURLsResult> {
constructor() {
super("api.DeleteAllTinyURLsResult", []);
}
create(value?: PartialMessage<DeleteAllTinyURLsResult>): DeleteAllTinyURLsResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteAllTinyURLsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllTinyURLsResult): DeleteAllTinyURLsResult {
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: DeleteAllTinyURLsResult, 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.DeleteAllTinyURLsResult
*/
export const DeleteAllTinyURLsResult = new DeleteAllTinyURLsResult$Type();
/**
* @generated ServiceType for protobuf service api.TinyURLService
*/
@@ -1724,5 +1835,6 @@ export const TinyURLService = new ServiceType("api.TinyURLService", [
{ name: "DeleteSiteTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Delete a tiny URL linked to a specific site resource." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteSiteTinyURLRequest, O: DeleteSiteTinyURLResponse },
{ name: "DeletePartnerAppTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Delete a tiny URL linked to a specific partnerApp resource." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeletePartnerAppTinyURLRequest, O: DeletePartnerAppTinyURLResponse },
{ name: "GetSiteTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Get a tiny URL linked to a specific site resource. Can be a link or a file." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteTinyURLRequest, O: GetSiteTinyURLResult },
{ name: "GetPartnerAppTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Get a tiny URL linked to a specific partner app resource. Can be a link or a file." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPartnerAppTinyURLRequest, O: GetPartnerAppTinyURLResult }
{ name: "GetPartnerAppTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Get a tiny URL linked to a specific partner app resource. Can be a link or a file." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPartnerAppTinyURLRequest, O: GetPartnerAppTinyURLResult },
{ name: "DeleteAll", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Delete all tiny URLs linked to a resource" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAllTinyURLsRequest, O: DeleteAllTinyURLsResult }
], { "api.k8sService": "tiny-url-server" });