Latest generation

This commit is contained in:
ci core model
2025-08-11 09:08:33 +00:00
parent cf49a2e6f3
commit 44a5bd3cc8
93 changed files with 1440 additions and 1404 deletions

View File

@@ -745,9 +745,9 @@ class PushMessageRequest$Type extends MessageType<PushMessageRequest> {
constructor() {
super("api.PushMessageRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "JWT", kind: "scalar", localName: "JWT", jsonName: "JWT", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The JWT holding the PartnerApp identity to which parent subject the message will be pushed. It is a signed JWT issued by Reflex Platform upon PartnerApp creation. The PartnerApp from the JWT must be the same as the one in the Header field meaning you cannot push a message for a PartnerApp different than the one you're allowed to." } } },
{ no: 3, name: "SubjectSuffix", kind: "scalar", localName: "SubjectSuffix", jsonName: "SubjectSuffix", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The subject suffix to which the message will be pushed. The subject will be composed of the parent subject of the PartnerApp (from the JWT) and this suffix." } } },
{ no: 4, 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 message payload." } } }
{ no: 2, name: "JWT", kind: "scalar", localName: "JWT", jsonName: "JWT", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The JWT holding the PartnerApp identity to which parent subject the message will be pushed. It is a signed JWT issued by Reflex Platform upon PartnerApp creation. The PartnerApp from the JWT must be the same as the one in the Header field meaning you cannot push a message for a PartnerApp different than the one you're allowed to." }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SubjectSuffix", kind: "scalar", localName: "SubjectSuffix", jsonName: "SubjectSuffix", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The subject suffix to which the message will be pushed. The subject will be composed of the parent subject of the PartnerApp (from the JWT) and this suffix." }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The message payload." }, "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "JWT", "Subject"] } } });
}
create(value?: PartialMessage<PushMessageRequest>): PushMessageRequest {
@@ -852,11 +852,11 @@ export const PushMessageResult = new PushMessageResult$Type();
* @generated ServiceType for protobuf service api.NatsService
*/
export const NatsService = new ServiceType("api.NatsService", [
{ name: "CreateProjectAccount", options: { "api.rscType": "Platform", "api.roles": "Platform.Project-Nats", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Create an account and an user in NATS" }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateProjectAccountRequest, O: CreateProjectAccountResult },
{ name: "DeleteProjectAccount", options: { "api.rscType": "Platform", "api.roles": "Platform.Project-Nats", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Delete a NATS account and its users" }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteProjectAccountRequest, O: DeleteProjectAccountResult },
{ name: "CreatePartnerAppUser", options: { "api.rscType": "Platform", "api.roles": "Platform.Project-Nats", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Create an user in NATS under its associated account" }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreatePartnerAppUserRequest, O: CreatePartnerAppUserResult },
{ name: "DeletePartnerAppUser", options: { "api.rscType": "Platform", "api.roles": "Platform.Project-Nats", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Delete a NATS user" }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeletePartnerAppUserRequest, O: DeletePartnerAppUserResult },
{ name: "RenewProjectAccountCredentials", options: { "api.rscType": "Project", "api.roles": "", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Renew (revoke + create) NATS Credentials for an account" }, "google.api.method_visibility": { restriction: "SDK" } }, I: RenewProjectAccountCredentialsRequest, O: RenewProjectAccountCredentialsResult },
{ name: "RenewPartnerAppUserCredentials", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Nats", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Renew (revoke + create) NATS Credentials for a user" }, "google.api.method_visibility": { restriction: "SDK" } }, I: RenewPartnerAppUserCredentialsRequest, O: RenewPartnerAppUserCredentialsResult },
{ name: "PushMessage", options: { "api.rscType": "PartnerApp", "api.roles": "Platform.PartnerApp-Nats", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Push a message to a NATS subject" }, "google.api.method_visibility": { restriction: "SDK" } }, I: PushMessageRequest, O: PushMessageResult }
{ name: "CreateProjectAccount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Create an account and an user in NATS" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Nats" }, I: CreateProjectAccountRequest, O: CreateProjectAccountResult },
{ name: "DeleteProjectAccount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Delete a NATS account and its users" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Nats" }, I: DeleteProjectAccountRequest, O: DeleteProjectAccountResult },
{ name: "CreatePartnerAppUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Create an user in NATS under its associated account" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Nats" }, I: CreatePartnerAppUserRequest, O: CreatePartnerAppUserResult },
{ name: "DeletePartnerAppUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Delete a NATS user" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Nats" }, I: DeletePartnerAppUserRequest, O: DeletePartnerAppUserResult },
{ name: "RenewProjectAccountCredentials", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Renew (revoke + create) NATS Credentials for an account" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "" }, I: RenewProjectAccountCredentialsRequest, O: RenewProjectAccountCredentialsResult },
{ name: "RenewPartnerAppUserCredentials", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Renew (revoke + create) NATS Credentials for a user" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "Platform.Project-Nats" }, I: RenewPartnerAppUserCredentialsRequest, O: RenewPartnerAppUserCredentialsResult },
{ name: "PushMessage", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin NATS"], description: "Push a message to a NATS subject" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "PartnerApp", "api.roles": "Platform.PartnerApp-Nats" }, I: PushMessageRequest, O: PushMessageResult }
], { "api.k8sService": "nats-api" });