Files
npm-core-sdk/nats-api_pb.ts
2025-03-17 09:56:44 +00:00

558 lines
22 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file nats-api.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { NatsCredentials, RequestPartnerAppHeader, RequestProjectHeader } from "./shared_pb.js";
/**
* @generated from message api.CreateProjectAccountRequest
*/
export class CreateProjectAccountRequest extends Message<CreateProjectAccountRequest> {
/**
* @generated from field: string ProjectID = 1;
*/
ProjectID = "";
/**
* @generated from field: string OrganisationID = 2;
*/
OrganisationID = "";
constructor(data?: PartialMessage<CreateProjectAccountRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.CreateProjectAccountRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "OrganisationID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateProjectAccountRequest {
return new CreateProjectAccountRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateProjectAccountRequest {
return new CreateProjectAccountRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateProjectAccountRequest {
return new CreateProjectAccountRequest().fromJsonString(jsonString, options);
}
static equals(a: CreateProjectAccountRequest | PlainMessage<CreateProjectAccountRequest> | undefined, b: CreateProjectAccountRequest | PlainMessage<CreateProjectAccountRequest> | undefined): boolean {
return proto3.util.equals(CreateProjectAccountRequest, a, b);
}
}
/**
* @generated from message api.CreateProjectAccountResult
*/
export class CreateProjectAccountResult extends Message<CreateProjectAccountResult> {
/**
* @generated from field: api.NatsCredentials Credentials = 1;
*/
Credentials?: NatsCredentials;
constructor(data?: PartialMessage<CreateProjectAccountResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.CreateProjectAccountResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Credentials", kind: "message", T: NatsCredentials },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateProjectAccountResult {
return new CreateProjectAccountResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateProjectAccountResult {
return new CreateProjectAccountResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateProjectAccountResult {
return new CreateProjectAccountResult().fromJsonString(jsonString, options);
}
static equals(a: CreateProjectAccountResult | PlainMessage<CreateProjectAccountResult> | undefined, b: CreateProjectAccountResult | PlainMessage<CreateProjectAccountResult> | undefined): boolean {
return proto3.util.equals(CreateProjectAccountResult, a, b);
}
}
/**
* @generated from message api.CreatePartnerAppUserRequest
*/
export class CreatePartnerAppUserRequest extends Message<CreatePartnerAppUserRequest> {
/**
* @generated from field: string ProjectID = 1;
*/
ProjectID = "";
/**
* @generated from field: string PartnerAppID = 2;
*/
PartnerAppID = "";
constructor(data?: PartialMessage<CreatePartnerAppUserRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.CreatePartnerAppUserRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "PartnerAppID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePartnerAppUserRequest {
return new CreatePartnerAppUserRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePartnerAppUserRequest {
return new CreatePartnerAppUserRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePartnerAppUserRequest {
return new CreatePartnerAppUserRequest().fromJsonString(jsonString, options);
}
static equals(a: CreatePartnerAppUserRequest | PlainMessage<CreatePartnerAppUserRequest> | undefined, b: CreatePartnerAppUserRequest | PlainMessage<CreatePartnerAppUserRequest> | undefined): boolean {
return proto3.util.equals(CreatePartnerAppUserRequest, a, b);
}
}
/**
* @generated from message api.CreatePartnerAppUserResult
*/
export class CreatePartnerAppUserResult extends Message<CreatePartnerAppUserResult> {
/**
* @generated from field: api.NatsCredentials Credentials = 1;
*/
Credentials?: NatsCredentials;
/**
* @generated from field: string NatsRootSubject = 2;
*/
NatsRootSubject = "";
constructor(data?: PartialMessage<CreatePartnerAppUserResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.CreatePartnerAppUserResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Credentials", kind: "message", T: NatsCredentials },
{ no: 2, name: "NatsRootSubject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePartnerAppUserResult {
return new CreatePartnerAppUserResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePartnerAppUserResult {
return new CreatePartnerAppUserResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePartnerAppUserResult {
return new CreatePartnerAppUserResult().fromJsonString(jsonString, options);
}
static equals(a: CreatePartnerAppUserResult | PlainMessage<CreatePartnerAppUserResult> | undefined, b: CreatePartnerAppUserResult | PlainMessage<CreatePartnerAppUserResult> | undefined): boolean {
return proto3.util.equals(CreatePartnerAppUserResult, a, b);
}
}
/**
* @generated from message api.DeleteProjectAccountRequest
*/
export class DeleteProjectAccountRequest extends Message<DeleteProjectAccountRequest> {
/**
* @generated from field: string ProjectID = 1;
*/
ProjectID = "";
constructor(data?: PartialMessage<DeleteProjectAccountRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.DeleteProjectAccountRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteProjectAccountRequest {
return new DeleteProjectAccountRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteProjectAccountRequest {
return new DeleteProjectAccountRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteProjectAccountRequest {
return new DeleteProjectAccountRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteProjectAccountRequest | PlainMessage<DeleteProjectAccountRequest> | undefined, b: DeleteProjectAccountRequest | PlainMessage<DeleteProjectAccountRequest> | undefined): boolean {
return proto3.util.equals(DeleteProjectAccountRequest, a, b);
}
}
/**
* @generated from message api.DeleteProjectAccountResult
*/
export class DeleteProjectAccountResult extends Message<DeleteProjectAccountResult> {
constructor(data?: PartialMessage<DeleteProjectAccountResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.DeleteProjectAccountResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteProjectAccountResult {
return new DeleteProjectAccountResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteProjectAccountResult {
return new DeleteProjectAccountResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteProjectAccountResult {
return new DeleteProjectAccountResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteProjectAccountResult | PlainMessage<DeleteProjectAccountResult> | undefined, b: DeleteProjectAccountResult | PlainMessage<DeleteProjectAccountResult> | undefined): boolean {
return proto3.util.equals(DeleteProjectAccountResult, a, b);
}
}
/**
* @generated from message api.DeletePartnerAppUserRequest
*/
export class DeletePartnerAppUserRequest extends Message<DeletePartnerAppUserRequest> {
/**
* @generated from field: string ProjectID = 1;
*/
ProjectID = "";
/**
* @generated from field: string PartnerAppID = 2;
*/
PartnerAppID = "";
constructor(data?: PartialMessage<DeletePartnerAppUserRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.DeletePartnerAppUserRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "PartnerAppID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePartnerAppUserRequest {
return new DeletePartnerAppUserRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePartnerAppUserRequest {
return new DeletePartnerAppUserRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePartnerAppUserRequest {
return new DeletePartnerAppUserRequest().fromJsonString(jsonString, options);
}
static equals(a: DeletePartnerAppUserRequest | PlainMessage<DeletePartnerAppUserRequest> | undefined, b: DeletePartnerAppUserRequest | PlainMessage<DeletePartnerAppUserRequest> | undefined): boolean {
return proto3.util.equals(DeletePartnerAppUserRequest, a, b);
}
}
/**
* @generated from message api.DeletePartnerAppUserResult
*/
export class DeletePartnerAppUserResult extends Message<DeletePartnerAppUserResult> {
constructor(data?: PartialMessage<DeletePartnerAppUserResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.DeletePartnerAppUserResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePartnerAppUserResult {
return new DeletePartnerAppUserResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePartnerAppUserResult {
return new DeletePartnerAppUserResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePartnerAppUserResult {
return new DeletePartnerAppUserResult().fromJsonString(jsonString, options);
}
static equals(a: DeletePartnerAppUserResult | PlainMessage<DeletePartnerAppUserResult> | undefined, b: DeletePartnerAppUserResult | PlainMessage<DeletePartnerAppUserResult> | undefined): boolean {
return proto3.util.equals(DeletePartnerAppUserResult, a, b);
}
}
/**
* @generated from message api.RenewPartnerAppUserCredentialsRequest
*/
export class RenewPartnerAppUserCredentialsRequest extends Message<RenewPartnerAppUserCredentialsRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* @generated from field: string PartnerAppID = 2;
*/
PartnerAppID = "";
constructor(data?: PartialMessage<RenewPartnerAppUserCredentialsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.RenewPartnerAppUserCredentialsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "PartnerAppID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenewPartnerAppUserCredentialsRequest {
return new RenewPartnerAppUserCredentialsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenewPartnerAppUserCredentialsRequest {
return new RenewPartnerAppUserCredentialsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenewPartnerAppUserCredentialsRequest {
return new RenewPartnerAppUserCredentialsRequest().fromJsonString(jsonString, options);
}
static equals(a: RenewPartnerAppUserCredentialsRequest | PlainMessage<RenewPartnerAppUserCredentialsRequest> | undefined, b: RenewPartnerAppUserCredentialsRequest | PlainMessage<RenewPartnerAppUserCredentialsRequest> | undefined): boolean {
return proto3.util.equals(RenewPartnerAppUserCredentialsRequest, a, b);
}
}
/**
* @generated from message api.RenewPartnerAppUserCredentialsResult
*/
export class RenewPartnerAppUserCredentialsResult extends Message<RenewPartnerAppUserCredentialsResult> {
/**
* @generated from field: api.NatsCredentials Credentials = 1;
*/
Credentials?: NatsCredentials;
constructor(data?: PartialMessage<RenewPartnerAppUserCredentialsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.RenewPartnerAppUserCredentialsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Credentials", kind: "message", T: NatsCredentials },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenewPartnerAppUserCredentialsResult {
return new RenewPartnerAppUserCredentialsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenewPartnerAppUserCredentialsResult {
return new RenewPartnerAppUserCredentialsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenewPartnerAppUserCredentialsResult {
return new RenewPartnerAppUserCredentialsResult().fromJsonString(jsonString, options);
}
static equals(a: RenewPartnerAppUserCredentialsResult | PlainMessage<RenewPartnerAppUserCredentialsResult> | undefined, b: RenewPartnerAppUserCredentialsResult | PlainMessage<RenewPartnerAppUserCredentialsResult> | undefined): boolean {
return proto3.util.equals(RenewPartnerAppUserCredentialsResult, a, b);
}
}
/**
* @generated from message api.RenewProjectAccountCredentialsRequest
*/
export class RenewProjectAccountCredentialsRequest extends Message<RenewProjectAccountCredentialsRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
constructor(data?: PartialMessage<RenewProjectAccountCredentialsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.RenewProjectAccountCredentialsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenewProjectAccountCredentialsRequest {
return new RenewProjectAccountCredentialsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenewProjectAccountCredentialsRequest {
return new RenewProjectAccountCredentialsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenewProjectAccountCredentialsRequest {
return new RenewProjectAccountCredentialsRequest().fromJsonString(jsonString, options);
}
static equals(a: RenewProjectAccountCredentialsRequest | PlainMessage<RenewProjectAccountCredentialsRequest> | undefined, b: RenewProjectAccountCredentialsRequest | PlainMessage<RenewProjectAccountCredentialsRequest> | undefined): boolean {
return proto3.util.equals(RenewProjectAccountCredentialsRequest, a, b);
}
}
/**
* @generated from message api.RenewProjectAccountCredentialsResult
*/
export class RenewProjectAccountCredentialsResult extends Message<RenewProjectAccountCredentialsResult> {
/**
* @generated from field: api.NatsCredentials Credentials = 1;
*/
Credentials?: NatsCredentials;
constructor(data?: PartialMessage<RenewProjectAccountCredentialsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.RenewProjectAccountCredentialsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Credentials", kind: "message", T: NatsCredentials },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenewProjectAccountCredentialsResult {
return new RenewProjectAccountCredentialsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenewProjectAccountCredentialsResult {
return new RenewProjectAccountCredentialsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenewProjectAccountCredentialsResult {
return new RenewProjectAccountCredentialsResult().fromJsonString(jsonString, options);
}
static equals(a: RenewProjectAccountCredentialsResult | PlainMessage<RenewProjectAccountCredentialsResult> | undefined, b: RenewProjectAccountCredentialsResult | PlainMessage<RenewProjectAccountCredentialsResult> | undefined): boolean {
return proto3.util.equals(RenewProjectAccountCredentialsResult, a, b);
}
}
/**
* @generated from message api.PushMessageRequest
*/
export class PushMessageRequest extends Message<PushMessageRequest> {
/**
* @generated from field: api.RequestPartnerAppHeader Header = 1;
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from field: string JWT = 2;
*/
JWT = "";
/**
* @generated from field: string SubjectSuffix = 3;
*/
SubjectSuffix = "";
/**
* @generated from field: string Payload = 4;
*/
Payload = "";
constructor(data?: PartialMessage<PushMessageRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.PushMessageRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestPartnerAppHeader },
{ no: 2, name: "JWT", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "SubjectSuffix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushMessageRequest {
return new PushMessageRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushMessageRequest {
return new PushMessageRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushMessageRequest {
return new PushMessageRequest().fromJsonString(jsonString, options);
}
static equals(a: PushMessageRequest | PlainMessage<PushMessageRequest> | undefined, b: PushMessageRequest | PlainMessage<PushMessageRequest> | undefined): boolean {
return proto3.util.equals(PushMessageRequest, a, b);
}
}
/**
* @generated from message api.PushMessageResult
*/
export class PushMessageResult extends Message<PushMessageResult> {
constructor(data?: PartialMessage<PushMessageResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.PushMessageResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushMessageResult {
return new PushMessageResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushMessageResult {
return new PushMessageResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushMessageResult {
return new PushMessageResult().fromJsonString(jsonString, options);
}
static equals(a: PushMessageResult | PlainMessage<PushMessageResult> | undefined, b: PushMessageResult | PlainMessage<PushMessageResult> | undefined): boolean {
return proto3.util.equals(PushMessageResult, a, b);
}
}