diff --git a/package.json b/package.json index ead0d46..e01592a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.11.0-SNAPSHOT-250702131820", + "version": "1.11.0-SNAPSHOT-250703081252", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/tiny-url.ts b/tiny-url.ts index d70a29c..4f15820 100644 --- a/tiny-url.ts +++ b/tiny-url.ts @@ -169,9 +169,9 @@ export interface SiteUploadFileRequest { */ Header?: RequestSiteHeader; /** - * @generated from protobuf field: api.FileDataRequest FileData = 2 + * @generated from protobuf field: api.FileDataRequest File = 2 */ - FileData?: FileDataRequest; + File?: FileDataRequest; /** * @generated from protobuf field: int64 TimeToLive = 3 */ @@ -207,9 +207,9 @@ export interface PartnerAppUploadFileRequest { */ Header?: RequestPartnerAppHeader; /** - * @generated from protobuf field: api.FileDataRequest FileData = 2 + * @generated from protobuf field: api.FileDataRequest File = 2 */ - FileData?: FileDataRequest; + File?: FileDataRequest; /** * @generated from protobuf field: int64 TimeToLive = 3 */ @@ -951,12 +951,12 @@ class SiteUploadFileRequest$Type extends MessageType { constructor() { super("api.SiteUploadFileRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "FileData", kind: "message", localName: "FileData", jsonName: "FileData", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "FileData", "TimeToLive"] } } }); + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } }); } create(value?: PartialMessage): SiteUploadFileRequest { const message = globalThis.Object.create((this.messagePrototype!)); @@ -976,8 +976,8 @@ class SiteUploadFileRequest$Type extends MessageType { case /* api.RequestSiteHeader Header */ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; - case /* api.FileDataRequest FileData */ 2: - message.FileData = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.FileData); + case /* api.FileDataRequest File */ 2: + message.File = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.File); break; case /* int64 TimeToLive */ 3: message.TimeToLive = reader.int64().toBigInt(); @@ -1006,9 +1006,9 @@ class SiteUploadFileRequest$Type extends MessageType { /* api.RequestSiteHeader Header = 1; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* api.FileDataRequest FileData = 2; */ - if (message.FileData) - FileDataRequest.internalBinaryWrite(message.FileData, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.FileDataRequest File = 2; */ + if (message.File) + FileDataRequest.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* int64 TimeToLive = 3; */ if (message.TimeToLive !== 0n) writer.tag(3, WireType.Varint).int64(message.TimeToLive); @@ -1082,12 +1082,12 @@ class PartnerAppUploadFileRequest$Type extends MessageType RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "FileData", kind: "message", localName: "FileData", jsonName: "FileData", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "FileData", "TimeToLive"] } } }); + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } }); } create(value?: PartialMessage): PartnerAppUploadFileRequest { const message = globalThis.Object.create((this.messagePrototype!)); @@ -1107,8 +1107,8 @@ class PartnerAppUploadFileRequest$Type extends MessageType RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, @@ -1345,7 +1345,7 @@ class PartnerAppUploadPayloadRequest$Type extends MessageType RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, @@ -2189,10 +2189,10 @@ export const DeleteAllTinyURLsResponse = new DeleteAllTinyURLsResponse$Type(); export const TinyURLService = new ServiceType("api.TinyURLService", [ { name: "SiteShortenURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Generates a short alias for a given URL linked to a site." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SiteShortenURLRequest, O: SiteShortenURLResponse }, { name: "PartnerAppShortenURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Generates a short alias for a given URL linked to a partnerApp." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppShortenURLRequest, O: PartnerAppShortenURLResponse }, - { name: "SiteUploadFile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a file linked to a specific site resource. Generates a short URL to download the file.
Must be called using a multipart form-data content type request.
Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.TinyURLService/SiteUploadFile -H Authorization: $TOKEN -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID -F TimeToLive=-1 -F IsPublic=false -F IsOnce=false" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SiteUploadFileRequest, O: SiteUploadFileResponse }, - { name: "PartnerAppUploadFile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a file linked to a specific partnerApp resource. Generates a short URL to download the file.
Must be called using a multipart form-data content type request.
Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.TinyURLService/PartnerAppUploadFile -H Authorization: $TOKEN -F File=\"@path/to/my/file/to/upload\" -F PartnerAppID=myPartnerAppID -F TimeToLive=-1 -F IsPublic=false -F IsOnce=false" }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppUploadFileRequest, O: PartnerAppUploadFileResponse }, - { name: "SiteUploadPayload", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a payload linked to a specific site resource. Generates a short URL to retrieve the payload." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SiteUploadPayloadRequest, O: SiteUploadPayloadResponse }, - { name: "PartnerAppUploadPayload", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a payload linked to a specific partnerApp resource. Generates a short URL to retrieve the payload." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppUploadPayloadRequest, O: PartnerAppUploadPayloadResponse }, + { name: "SiteUploadFile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a file linked to a specific site resource. Generates a short URL to download the file.
Must be called using a multipart form-data content type request.
Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.TinyURLService/SiteUploadFile -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID -F TimeToLive=-1 -F IsPublic=false -F IsOnce=false -F Alias=myAlias" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SiteUploadFileRequest, O: SiteUploadFileResponse }, + { name: "PartnerAppUploadFile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a file linked to a specific partnerApp resource. Generates a short URL to download the file.
Must be called using a multipart form-data content type request.
Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.TinyURLService/PartnerAppUploadFile -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F PartnerAppID=myPartnerAppID -F TimeToLive=-1 -F IsPublic=false -F IsOnce=false -F Alias=myAlias" }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppUploadFileRequest, O: PartnerAppUploadFileResponse }, + { name: "SiteUploadPayload", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a payload (either plain text or JSON) linked to a specific site resource. Generates a short URL to retrieve the payload." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SiteUploadPayloadRequest, O: SiteUploadPayloadResponse }, + { name: "PartnerAppUploadPayload", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a payload (either plain text or JSON) linked to a specific partnerApp resource. Generates a short URL to retrieve the payload." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppUploadPayloadRequest, O: PartnerAppUploadPayloadResponse }, { name: "SiteListTinyURLs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "List all the tiny URLs linked to a specific site resource." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SiteListTinyURLsRequest, O: SiteListTinyURLsResponse }, { name: "PartnerAppListTinyURLs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "List all the tiny URLs linked to a specific partnerApp resource." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppListTinyURLsRequest, O: PartnerAppListTinyURLsResponse }, { name: "SiteDeleteTinyURL", 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: SiteDeleteTinyURLRequest, O: SiteDeleteTinyURLResponse },