Latest generation

This commit is contained in:
ci core model
2025-04-28 12:35:42 +00:00
parent 595d5e3e36
commit 09d656c554
197 changed files with 25094 additions and 25094 deletions

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "nats-api.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
@@ -21,11 +21,11 @@ export interface CreateProjectAccountRequest {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
*/
projectID: string;
ProjectID: string;
/**
* @generated from protobuf field: string OrganisationID = 2 [json_name = "OrganisationID"];
*/
organisationID: string;
OrganisationID: string;
}
/**
* @generated from protobuf message api.CreateProjectAccountResult
@@ -34,7 +34,7 @@ export interface CreateProjectAccountResult {
/**
* @generated from protobuf field: api.NatsCredentials Credentials = 1 [json_name = "Credentials"];
*/
credentials?: NatsCredentials;
Credentials?: NatsCredentials;
}
/**
* @generated from protobuf message api.CreatePartnerAppUserRequest
@@ -43,11 +43,11 @@ export interface CreatePartnerAppUserRequest {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
*/
projectID: string;
ProjectID: string;
/**
* @generated from protobuf field: string PartnerAppID = 2 [json_name = "PartnerAppID"];
*/
partnerAppID: string;
PartnerAppID: string;
}
/**
* @generated from protobuf message api.CreatePartnerAppUserResult
@@ -56,11 +56,11 @@ export interface CreatePartnerAppUserResult {
/**
* @generated from protobuf field: api.NatsCredentials Credentials = 1 [json_name = "Credentials"];
*/
credentials?: NatsCredentials;
Credentials?: NatsCredentials;
/**
* @generated from protobuf field: string NatsRootSubject = 2 [json_name = "NatsRootSubject"];
*/
natsRootSubject: string;
NatsRootSubject: string;
}
/**
* @generated from protobuf message api.DeleteProjectAccountRequest
@@ -69,7 +69,7 @@ export interface DeleteProjectAccountRequest {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
*/
projectID: string;
ProjectID: string;
}
/**
* @generated from protobuf message api.DeleteProjectAccountResult
@@ -83,11 +83,11 @@ export interface DeletePartnerAppUserRequest {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
*/
projectID: string;
ProjectID: string;
/**
* @generated from protobuf field: string PartnerAppID = 2 [json_name = "PartnerAppID"];
*/
partnerAppID: string;
PartnerAppID: string;
}
/**
* @generated from protobuf message api.DeletePartnerAppUserResult
@@ -101,11 +101,11 @@ export interface RenewPartnerAppUserCredentialsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
*/
header?: RequestProjectHeader;
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string PartnerAppID = 2 [json_name = "PartnerAppID"];
*/
partnerAppID: string;
PartnerAppID: string;
}
/**
* @generated from protobuf message api.RenewPartnerAppUserCredentialsResult
@@ -114,7 +114,7 @@ export interface RenewPartnerAppUserCredentialsResult {
/**
* @generated from protobuf field: api.NatsCredentials Credentials = 1 [json_name = "Credentials"];
*/
credentials?: NatsCredentials;
Credentials?: NatsCredentials;
}
/**
* @generated from protobuf message api.RenewProjectAccountCredentialsRequest
@@ -123,7 +123,7 @@ export interface RenewProjectAccountCredentialsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
*/
header?: RequestProjectHeader;
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.RenewProjectAccountCredentialsResult
@@ -132,7 +132,7 @@ export interface RenewProjectAccountCredentialsResult {
/**
* @generated from protobuf field: api.NatsCredentials Credentials = 1 [json_name = "Credentials"];
*/
credentials?: NatsCredentials;
Credentials?: NatsCredentials;
}
/**
* @generated from protobuf message api.PushMessageRequest
@@ -141,19 +141,19 @@ export interface PushMessageRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1 [json_name = "Header"];
*/
header?: RequestPartnerAppHeader;
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string JWT = 2 [json_name = "JWT"];
*/
jWT: string;
JWT: string;
/**
* @generated from protobuf field: string SubjectSuffix = 3 [json_name = "SubjectSuffix"];
*/
subjectSuffix: string;
SubjectSuffix: string;
/**
* @generated from protobuf field: string Payload = 4 [json_name = "Payload"];
*/
payload: string;
Payload: string;
}
/**
* @generated from protobuf message api.PushMessageResult
@@ -164,14 +164,14 @@ export interface PushMessageResult {
class CreateProjectAccountRequest$Type extends MessageType<CreateProjectAccountRequest> {
constructor() {
super("api.CreateProjectAccountRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "OrganisationID", kind: "scalar", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<CreateProjectAccountRequest>): CreateProjectAccountRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.projectID = "";
message.organisationID = "";
message.ProjectID = "";
message.OrganisationID = "";
if (value !== undefined)
reflectionMergePartial<CreateProjectAccountRequest>(this, message, value);
return message;
@@ -182,10 +182,10 @@ class CreateProjectAccountRequest$Type extends MessageType<CreateProjectAccountR
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
message.projectID = reader.string();
message.ProjectID = reader.string();
break;
case /* string OrganisationID = 2 [json_name = "OrganisationID"];*/ 2:
message.organisationID = reader.string();
message.OrganisationID = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -200,11 +200,11 @@ class CreateProjectAccountRequest$Type extends MessageType<CreateProjectAccountR
}
internalBinaryWrite(message: CreateProjectAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1 [json_name = "ProjectID"]; */
if (message.projectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string OrganisationID = 2 [json_name = "OrganisationID"]; */
if (message.organisationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.organisationID);
if (message.OrganisationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.OrganisationID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -219,7 +219,7 @@ export const CreateProjectAccountRequest = new CreateProjectAccountRequest$Type(
class CreateProjectAccountResult$Type extends MessageType<CreateProjectAccountResult> {
constructor() {
super("api.CreateProjectAccountResult", [
{ no: 1, name: "Credentials", kind: "message", jsonName: "Credentials", T: () => NatsCredentials }
{ no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials }
]);
}
create(value?: PartialMessage<CreateProjectAccountResult>): CreateProjectAccountResult {
@@ -234,7 +234,7 @@ class CreateProjectAccountResult$Type extends MessageType<CreateProjectAccountRe
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.NatsCredentials Credentials = 1 [json_name = "Credentials"];*/ 1:
message.credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.credentials);
message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials);
break;
default:
let u = options.readUnknownField;
@@ -249,8 +249,8 @@ class CreateProjectAccountResult$Type extends MessageType<CreateProjectAccountRe
}
internalBinaryWrite(message: CreateProjectAccountResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.NatsCredentials Credentials = 1 [json_name = "Credentials"]; */
if (message.credentials)
NatsCredentials.internalBinaryWrite(message.credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Credentials)
NatsCredentials.internalBinaryWrite(message.Credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -265,14 +265,14 @@ export const CreateProjectAccountResult = new CreateProjectAccountResult$Type();
class CreatePartnerAppUserRequest$Type extends MessageType<CreatePartnerAppUserRequest> {
constructor() {
super("api.CreatePartnerAppUserRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "PartnerAppID", kind: "scalar", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<CreatePartnerAppUserRequest>): CreatePartnerAppUserRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.projectID = "";
message.partnerAppID = "";
message.ProjectID = "";
message.PartnerAppID = "";
if (value !== undefined)
reflectionMergePartial<CreatePartnerAppUserRequest>(this, message, value);
return message;
@@ -283,10 +283,10 @@ class CreatePartnerAppUserRequest$Type extends MessageType<CreatePartnerAppUserR
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
message.projectID = reader.string();
message.ProjectID = reader.string();
break;
case /* string PartnerAppID = 2 [json_name = "PartnerAppID"];*/ 2:
message.partnerAppID = reader.string();
message.PartnerAppID = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -301,11 +301,11 @@ class CreatePartnerAppUserRequest$Type extends MessageType<CreatePartnerAppUserR
}
internalBinaryWrite(message: CreatePartnerAppUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1 [json_name = "ProjectID"]; */
if (message.projectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string PartnerAppID = 2 [json_name = "PartnerAppID"]; */
if (message.partnerAppID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.partnerAppID);
if (message.PartnerAppID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.PartnerAppID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -320,13 +320,13 @@ export const CreatePartnerAppUserRequest = new CreatePartnerAppUserRequest$Type(
class CreatePartnerAppUserResult$Type extends MessageType<CreatePartnerAppUserResult> {
constructor() {
super("api.CreatePartnerAppUserResult", [
{ no: 1, name: "Credentials", kind: "message", jsonName: "Credentials", T: () => NatsCredentials },
{ no: 2, name: "NatsRootSubject", kind: "scalar", jsonName: "NatsRootSubject", T: 9 /*ScalarType.STRING*/ }
{ no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials },
{ no: 2, name: "NatsRootSubject", kind: "scalar", localName: "NatsRootSubject", jsonName: "NatsRootSubject", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CreatePartnerAppUserResult>): CreatePartnerAppUserResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.natsRootSubject = "";
message.NatsRootSubject = "";
if (value !== undefined)
reflectionMergePartial<CreatePartnerAppUserResult>(this, message, value);
return message;
@@ -337,10 +337,10 @@ class CreatePartnerAppUserResult$Type extends MessageType<CreatePartnerAppUserRe
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.NatsCredentials Credentials = 1 [json_name = "Credentials"];*/ 1:
message.credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.credentials);
message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials);
break;
case /* string NatsRootSubject = 2 [json_name = "NatsRootSubject"];*/ 2:
message.natsRootSubject = reader.string();
message.NatsRootSubject = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -355,11 +355,11 @@ class CreatePartnerAppUserResult$Type extends MessageType<CreatePartnerAppUserRe
}
internalBinaryWrite(message: CreatePartnerAppUserResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.NatsCredentials Credentials = 1 [json_name = "Credentials"]; */
if (message.credentials)
NatsCredentials.internalBinaryWrite(message.credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Credentials)
NatsCredentials.internalBinaryWrite(message.Credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string NatsRootSubject = 2 [json_name = "NatsRootSubject"]; */
if (message.natsRootSubject !== "")
writer.tag(2, WireType.LengthDelimited).string(message.natsRootSubject);
if (message.NatsRootSubject !== "")
writer.tag(2, WireType.LengthDelimited).string(message.NatsRootSubject);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -374,12 +374,12 @@ export const CreatePartnerAppUserResult = new CreatePartnerAppUserResult$Type();
class DeleteProjectAccountRequest$Type extends MessageType<DeleteProjectAccountRequest> {
constructor() {
super("api.DeleteProjectAccountRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<DeleteProjectAccountRequest>): DeleteProjectAccountRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.projectID = "";
message.ProjectID = "";
if (value !== undefined)
reflectionMergePartial<DeleteProjectAccountRequest>(this, message, value);
return message;
@@ -390,7 +390,7 @@ class DeleteProjectAccountRequest$Type extends MessageType<DeleteProjectAccountR
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
message.projectID = reader.string();
message.ProjectID = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -405,8 +405,8 @@ class DeleteProjectAccountRequest$Type extends MessageType<DeleteProjectAccountR
}
internalBinaryWrite(message: DeleteProjectAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1 [json_name = "ProjectID"]; */
if (message.projectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -459,14 +459,14 @@ export const DeleteProjectAccountResult = new DeleteProjectAccountResult$Type();
class DeletePartnerAppUserRequest$Type extends MessageType<DeletePartnerAppUserRequest> {
constructor() {
super("api.DeletePartnerAppUserRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "PartnerAppID", kind: "scalar", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<DeletePartnerAppUserRequest>): DeletePartnerAppUserRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.projectID = "";
message.partnerAppID = "";
message.ProjectID = "";
message.PartnerAppID = "";
if (value !== undefined)
reflectionMergePartial<DeletePartnerAppUserRequest>(this, message, value);
return message;
@@ -477,10 +477,10 @@ class DeletePartnerAppUserRequest$Type extends MessageType<DeletePartnerAppUserR
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
message.projectID = reader.string();
message.ProjectID = reader.string();
break;
case /* string PartnerAppID = 2 [json_name = "PartnerAppID"];*/ 2:
message.partnerAppID = reader.string();
message.PartnerAppID = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -495,11 +495,11 @@ class DeletePartnerAppUserRequest$Type extends MessageType<DeletePartnerAppUserR
}
internalBinaryWrite(message: DeletePartnerAppUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1 [json_name = "ProjectID"]; */
if (message.projectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string PartnerAppID = 2 [json_name = "PartnerAppID"]; */
if (message.partnerAppID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.partnerAppID);
if (message.PartnerAppID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.PartnerAppID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -552,13 +552,13 @@ export const DeletePartnerAppUserResult = new DeletePartnerAppUserResult$Type();
class RenewPartnerAppUserCredentialsRequest$Type extends MessageType<RenewPartnerAppUserCredentialsRequest> {
constructor() {
super("api.RenewPartnerAppUserCredentialsRequest", [
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "PartnerAppID", kind: "scalar", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<RenewPartnerAppUserCredentialsRequest>): RenewPartnerAppUserCredentialsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.partnerAppID = "";
message.PartnerAppID = "";
if (value !== undefined)
reflectionMergePartial<RenewPartnerAppUserCredentialsRequest>(this, message, value);
return message;
@@ -569,10 +569,10 @@ class RenewPartnerAppUserCredentialsRequest$Type extends MessageType<RenewPartne
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string PartnerAppID = 2 [json_name = "PartnerAppID"];*/ 2:
message.partnerAppID = reader.string();
message.PartnerAppID = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -587,11 +587,11 @@ class RenewPartnerAppUserCredentialsRequest$Type extends MessageType<RenewPartne
}
internalBinaryWrite(message: RenewPartnerAppUserCredentialsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
if (message.header)
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string PartnerAppID = 2 [json_name = "PartnerAppID"]; */
if (message.partnerAppID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.partnerAppID);
if (message.PartnerAppID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.PartnerAppID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -606,7 +606,7 @@ export const RenewPartnerAppUserCredentialsRequest = new RenewPartnerAppUserCred
class RenewPartnerAppUserCredentialsResult$Type extends MessageType<RenewPartnerAppUserCredentialsResult> {
constructor() {
super("api.RenewPartnerAppUserCredentialsResult", [
{ no: 1, name: "Credentials", kind: "message", jsonName: "Credentials", T: () => NatsCredentials }
{ no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials }
]);
}
create(value?: PartialMessage<RenewPartnerAppUserCredentialsResult>): RenewPartnerAppUserCredentialsResult {
@@ -621,7 +621,7 @@ class RenewPartnerAppUserCredentialsResult$Type extends MessageType<RenewPartner
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.NatsCredentials Credentials = 1 [json_name = "Credentials"];*/ 1:
message.credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.credentials);
message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials);
break;
default:
let u = options.readUnknownField;
@@ -636,8 +636,8 @@ class RenewPartnerAppUserCredentialsResult$Type extends MessageType<RenewPartner
}
internalBinaryWrite(message: RenewPartnerAppUserCredentialsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.NatsCredentials Credentials = 1 [json_name = "Credentials"]; */
if (message.credentials)
NatsCredentials.internalBinaryWrite(message.credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Credentials)
NatsCredentials.internalBinaryWrite(message.Credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -652,7 +652,7 @@ export const RenewPartnerAppUserCredentialsResult = new RenewPartnerAppUserCrede
class RenewProjectAccountCredentialsRequest$Type extends MessageType<RenewProjectAccountCredentialsRequest> {
constructor() {
super("api.RenewProjectAccountCredentialsRequest", [
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<RenewProjectAccountCredentialsRequest>): RenewProjectAccountCredentialsRequest {
@@ -667,7 +667,7 @@ class RenewProjectAccountCredentialsRequest$Type extends MessageType<RenewProjec
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
@@ -682,8 +682,8 @@ class RenewProjectAccountCredentialsRequest$Type extends MessageType<RenewProjec
}
internalBinaryWrite(message: RenewProjectAccountCredentialsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
if (message.header)
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -698,7 +698,7 @@ export const RenewProjectAccountCredentialsRequest = new RenewProjectAccountCred
class RenewProjectAccountCredentialsResult$Type extends MessageType<RenewProjectAccountCredentialsResult> {
constructor() {
super("api.RenewProjectAccountCredentialsResult", [
{ no: 1, name: "Credentials", kind: "message", jsonName: "Credentials", T: () => NatsCredentials }
{ no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials }
]);
}
create(value?: PartialMessage<RenewProjectAccountCredentialsResult>): RenewProjectAccountCredentialsResult {
@@ -713,7 +713,7 @@ class RenewProjectAccountCredentialsResult$Type extends MessageType<RenewProject
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.NatsCredentials Credentials = 1 [json_name = "Credentials"];*/ 1:
message.credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.credentials);
message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials);
break;
default:
let u = options.readUnknownField;
@@ -728,8 +728,8 @@ class RenewProjectAccountCredentialsResult$Type extends MessageType<RenewProject
}
internalBinaryWrite(message: RenewProjectAccountCredentialsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.NatsCredentials Credentials = 1 [json_name = "Credentials"]; */
if (message.credentials)
NatsCredentials.internalBinaryWrite(message.credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Credentials)
NatsCredentials.internalBinaryWrite(message.Credentials, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -744,17 +744,17 @@ export const RenewProjectAccountCredentialsResult = new RenewProjectAccountCrede
class PushMessageRequest$Type extends MessageType<PushMessageRequest> {
constructor() {
super("api.PushMessageRequest", [
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "JWT", kind: "scalar", 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", 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", 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: 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." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "JWT", "Subject"] } } });
}
create(value?: PartialMessage<PushMessageRequest>): PushMessageRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.jWT = "";
message.subjectSuffix = "";
message.payload = "";
message.JWT = "";
message.SubjectSuffix = "";
message.Payload = "";
if (value !== undefined)
reflectionMergePartial<PushMessageRequest>(this, message, value);
return message;
@@ -765,16 +765,16 @@ class PushMessageRequest$Type extends MessageType<PushMessageRequest> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header = 1 [json_name = "Header"];*/ 1:
message.header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string JWT = 2 [json_name = "JWT"];*/ 2:
message.jWT = reader.string();
message.JWT = reader.string();
break;
case /* string SubjectSuffix = 3 [json_name = "SubjectSuffix"];*/ 3:
message.subjectSuffix = reader.string();
message.SubjectSuffix = reader.string();
break;
case /* string Payload = 4 [json_name = "Payload"];*/ 4:
message.payload = reader.string();
message.Payload = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -789,17 +789,17 @@ class PushMessageRequest$Type extends MessageType<PushMessageRequest> {
}
internalBinaryWrite(message: PushMessageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1 [json_name = "Header"]; */
if (message.header)
RequestPartnerAppHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string JWT = 2 [json_name = "JWT"]; */
if (message.jWT !== "")
writer.tag(2, WireType.LengthDelimited).string(message.jWT);
if (message.JWT !== "")
writer.tag(2, WireType.LengthDelimited).string(message.JWT);
/* string SubjectSuffix = 3 [json_name = "SubjectSuffix"]; */
if (message.subjectSuffix !== "")
writer.tag(3, WireType.LengthDelimited).string(message.subjectSuffix);
if (message.SubjectSuffix !== "")
writer.tag(3, WireType.LengthDelimited).string(message.SubjectSuffix);
/* string Payload = 4 [json_name = "Payload"]; */
if (message.payload !== "")
writer.tag(4, WireType.LengthDelimited).string(message.payload);
if (message.Payload !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Payload);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);