You've already forked npm-core-sdk
1268 lines
64 KiB
TypeScript
1268 lines
64 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "partnerApp.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { WorkflowExecutionResult } from "./shared";
|
|
import { Paging } from "./base";
|
|
import { RequestPartnerAppHeader } from "./shared";
|
|
import { StorageEndpoint } from "./shared";
|
|
import { OpenSearchCredentials } from "./shared";
|
|
import { NatsCredentials } from "./shared";
|
|
import { OpenIDCredentials } from "./shared";
|
|
import { IntegrationEndpoint } from "./shared";
|
|
import { CoreEndpoint } from "./shared";
|
|
import { RequestProjectHeader } from "./shared";
|
|
/**
|
|
* @generated from protobuf message api.PartnerApp
|
|
*/
|
|
export interface PartnerApp {
|
|
/**
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: string Description = 3
|
|
*/
|
|
Description: string;
|
|
/**
|
|
* @generated from protobuf field: string BucketPath = 4
|
|
*/
|
|
BucketPath: string;
|
|
/**
|
|
* @generated from protobuf field: string NatsRootSubject = 5
|
|
*/
|
|
NatsRootSubject: string;
|
|
/**
|
|
* @generated from protobuf field: string ProjectID = 6
|
|
*/
|
|
ProjectID: string;
|
|
/**
|
|
* @generated from protobuf field: string OrganisationID = 7
|
|
*/
|
|
OrganisationID: string;
|
|
/**
|
|
* @generated from protobuf field: string NatsServer = 8
|
|
*/
|
|
NatsServer: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreatePartnerAppRequest
|
|
*/
|
|
export interface CreatePartnerAppRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: string Description = 3
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* CreatePartnerAppResult contains all the informations necessary for communication between a partner app and Platform
|
|
*
|
|
* @generated from protobuf message api.CreatePartnerAppResult
|
|
*/
|
|
export interface CreatePartnerAppResult {
|
|
/**
|
|
* Version of this definition of data.
|
|
* This number will increment with additions of new fields.
|
|
* In this message of any sub-message of it.
|
|
* Any implementation MUST ignore unknown fields,
|
|
* Any implementation MAY reject versions that are posterior to their implementation,
|
|
* Any implementation MUST accept any and all previous versions of this message definition.
|
|
* new fields introcuced in any version MUST NOT be mandatory.
|
|
*
|
|
* @generated from protobuf field: int32 Version = 1
|
|
*/
|
|
Version: number;
|
|
/**
|
|
* Unique identifiers for the organisation & the project the partnerapp belongs to.
|
|
* This identifier is guaranteed unique across all organisations/projects.
|
|
* Empty string MUST raise an error and forbid registering the settings.
|
|
*
|
|
* @generated from protobuf field: string OrganisationID = 2
|
|
*/
|
|
OrganisationID: string;
|
|
/**
|
|
* @generated from protobuf field: string ProjectID = 3
|
|
*/
|
|
ProjectID: string;
|
|
/**
|
|
* Unique identifier for the partner app.
|
|
* This identifier is guaranteed unique across all organisations/projects/partnerapps.
|
|
* This ID is suitable for updating credential and access options without any content check.
|
|
* Empty string MUST raise an error and forbid registering the settings.
|
|
*
|
|
* @generated from protobuf field: string PartnerAppID = 4
|
|
*/
|
|
PartnerAppID: string;
|
|
/**
|
|
* @generated from protobuf field: string PartnerAppJWT = 11
|
|
*/
|
|
PartnerAppJWT: string; // JWT for this partner app holding the partner app ID, the project ID and the organisation ID. This JWT is signed by the platform.
|
|
/**
|
|
* @generated from protobuf field: api.CoreEndpoint Core = 5
|
|
*/
|
|
Core?: CoreEndpoint; // How to connect to the REST webservices of Reflex Platform (with JWT auth)
|
|
/**
|
|
* @generated from protobuf field: api.IntegrationEndpoint Integration = 6
|
|
*/
|
|
Integration?: IntegrationEndpoint; // How to connect to the REST webservices Integration Platform (with JWT auth)
|
|
/**
|
|
* @generated from protobuf field: api.OpenIDCredentials OpenID = 7
|
|
*/
|
|
OpenID?: OpenIDCredentials; // Platform OpenID Connect server configuration and credentials
|
|
/**
|
|
* @generated from protobuf field: api.NatsCredentials Nats = 8
|
|
*/
|
|
Nats?: NatsCredentials; // connecting to the NATS endpoint (with decentralized JWT auth)
|
|
/**
|
|
* @generated from protobuf field: api.OpenSearchCredentials OpenDistro = 9
|
|
*/
|
|
OpenDistro?: OpenSearchCredentials; // connecting to the OpenSearch endpoint (with basic auth)
|
|
/**
|
|
* @generated from protobuf field: api.StorageEndpoint Storage = 10
|
|
*/
|
|
Storage?: StorageEndpoint; // connecting to the Google Cloud Storage endpoint (with STS auth)
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdatePartnerAppRequest
|
|
*/
|
|
export interface UpdatePartnerAppRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: string Name = 3
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: string Description = 4
|
|
*/
|
|
Description: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdatePartnerAppResult
|
|
*/
|
|
export interface UpdatePartnerAppResult {
|
|
/**
|
|
* @generated from protobuf field: api.PartnerApp Result = 1
|
|
*/
|
|
Result?: PartnerApp;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetPartnerAppRequest
|
|
*/
|
|
export interface GetPartnerAppRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
|
|
*/
|
|
Header?: RequestPartnerAppHeader;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetPartnerAppResult
|
|
*/
|
|
export interface GetPartnerAppResult {
|
|
/**
|
|
* @generated from protobuf field: api.PartnerApp Result = 1
|
|
*/
|
|
Result?: PartnerApp;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListPartnerAppsRequest
|
|
*/
|
|
export interface ListPartnerAppsRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: api.Paging Paging = 2
|
|
*/
|
|
Paging?: Paging;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListPartnerAppsResult
|
|
*/
|
|
export interface ListPartnerAppsResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.PartnerApp Results = 1
|
|
*/
|
|
Results: PartnerApp[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeletePartnerAppRequest
|
|
*/
|
|
export interface DeletePartnerAppRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeletePartnerAppResult
|
|
*/
|
|
export interface DeletePartnerAppResult {
|
|
/**
|
|
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1
|
|
*/
|
|
WorkflowExecution?: WorkflowExecutionResult;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeletePartnerAppInDBRequest
|
|
*/
|
|
export interface DeletePartnerAppInDBRequest {
|
|
/**
|
|
* @generated from protobuf field: string PartnerAppID = 1
|
|
*/
|
|
PartnerAppID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeletePartnerAppInDBResult
|
|
*/
|
|
export interface DeletePartnerAppInDBResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.RenewPartnerAppRequest
|
|
*/
|
|
export interface RenewPartnerAppRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
|
|
*/
|
|
Header?: RequestPartnerAppHeader;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.RenewPartnerAppResult
|
|
*/
|
|
export interface RenewPartnerAppResult {
|
|
/**
|
|
* @generated from protobuf field: int32 Version = 1
|
|
*/
|
|
Version: number;
|
|
/**
|
|
* @generated from protobuf field: string OrganisationID = 2
|
|
*/
|
|
OrganisationID: string;
|
|
/**
|
|
* @generated from protobuf field: string ProjectID = 3
|
|
*/
|
|
ProjectID: string;
|
|
/**
|
|
* @generated from protobuf field: string PartnerAppID = 4
|
|
*/
|
|
PartnerAppID: string;
|
|
/**
|
|
* @generated from protobuf field: string PartnerAppJWT = 11
|
|
*/
|
|
PartnerAppJWT: string; // JWT for this partner app holding the partner app ID, the project ID and the organisation ID. This JWT is signed by the platform.
|
|
/**
|
|
* @generated from protobuf field: api.CoreEndpoint Core = 5
|
|
*/
|
|
Core?: CoreEndpoint;
|
|
/**
|
|
* @generated from protobuf field: api.IntegrationEndpoint Integration = 6
|
|
*/
|
|
Integration?: IntegrationEndpoint;
|
|
/**
|
|
* @generated from protobuf field: api.OpenIDCredentials OpenID = 7
|
|
*/
|
|
OpenID?: OpenIDCredentials;
|
|
/**
|
|
* @generated from protobuf field: api.NatsCredentials Nats = 8
|
|
*/
|
|
Nats?: NatsCredentials;
|
|
/**
|
|
* @generated from protobuf field: api.OpenSearchCredentials OpenDistro = 9
|
|
*/
|
|
OpenDistro?: OpenSearchCredentials;
|
|
/**
|
|
* @generated from protobuf field: api.StorageEndpoint Storage = 10
|
|
*/
|
|
Storage?: StorageEndpoint;
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PartnerApp$Type extends MessageType<PartnerApp> {
|
|
constructor() {
|
|
super("api.PartnerApp", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 4, name: "BucketPath", kind: "scalar", localName: "BucketPath", jsonName: "BucketPath", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 5, name: "NatsRootSubject", kind: "scalar", localName: "NatsRootSubject", jsonName: "NatsRootSubject", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 6, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 7, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 8, name: "NatsServer", kind: "scalar", localName: "NatsServer", jsonName: "NatsServer", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PartnerApp>): PartnerApp {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.Name = "";
|
|
message.Description = "";
|
|
message.BucketPath = "";
|
|
message.NatsRootSubject = "";
|
|
message.ProjectID = "";
|
|
message.OrganisationID = "";
|
|
message.NatsServer = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PartnerApp>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerApp): PartnerApp {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ID */ 1:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 3:
|
|
message.Description = reader.string();
|
|
break;
|
|
case /* string BucketPath */ 4:
|
|
message.BucketPath = reader.string();
|
|
break;
|
|
case /* string NatsRootSubject */ 5:
|
|
message.NatsRootSubject = reader.string();
|
|
break;
|
|
case /* string ProjectID */ 6:
|
|
message.ProjectID = reader.string();
|
|
break;
|
|
case /* string OrganisationID */ 7:
|
|
message.OrganisationID = reader.string();
|
|
break;
|
|
case /* string NatsServer */ 8:
|
|
message.NatsServer = 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: PartnerApp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 3; */
|
|
if (message.Description !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Description);
|
|
/* string BucketPath = 4; */
|
|
if (message.BucketPath !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.BucketPath);
|
|
/* string NatsRootSubject = 5; */
|
|
if (message.NatsRootSubject !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.NatsRootSubject);
|
|
/* string ProjectID = 6; */
|
|
if (message.ProjectID !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.ProjectID);
|
|
/* string OrganisationID = 7; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.OrganisationID);
|
|
/* string NatsServer = 8; */
|
|
if (message.NatsServer !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.NatsServer);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PartnerApp
|
|
*/
|
|
export const PartnerApp = new PartnerApp$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreatePartnerAppRequest$Type extends MessageType<CreatePartnerAppRequest> {
|
|
constructor() {
|
|
super("api.CreatePartnerAppRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } },
|
|
{ no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreatePartnerAppRequest>): CreatePartnerAppRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreatePartnerAppRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePartnerAppRequest): CreatePartnerAppRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 3:
|
|
message.Description = 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: CreatePartnerAppRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 3; */
|
|
if (message.Description !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreatePartnerAppRequest
|
|
*/
|
|
export const CreatePartnerAppRequest = new CreatePartnerAppRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreatePartnerAppResult$Type extends MessageType<CreatePartnerAppResult> {
|
|
constructor() {
|
|
super("api.CreatePartnerAppResult", [
|
|
{ no: 1, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 5 /*ScalarType.INT32*/ },
|
|
{ no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 4, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 11, name: "PartnerAppJWT", kind: "scalar", localName: "PartnerAppJWT", jsonName: "PartnerAppJWT", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 5, name: "Core", kind: "message", localName: "Core", jsonName: "Core", T: () => CoreEndpoint },
|
|
{ no: 6, name: "Integration", kind: "message", localName: "Integration", jsonName: "Integration", T: () => IntegrationEndpoint },
|
|
{ no: 7, name: "OpenID", kind: "message", localName: "OpenID", jsonName: "OpenID", T: () => OpenIDCredentials },
|
|
{ no: 8, name: "Nats", kind: "message", localName: "Nats", jsonName: "Nats", T: () => NatsCredentials },
|
|
{ no: 9, name: "OpenDistro", kind: "message", localName: "OpenDistro", jsonName: "OpenDistro", T: () => OpenSearchCredentials },
|
|
{ no: 10, name: "Storage", kind: "message", localName: "Storage", jsonName: "Storage", T: () => StorageEndpoint }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreatePartnerAppResult>): CreatePartnerAppResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Version = 0;
|
|
message.OrganisationID = "";
|
|
message.ProjectID = "";
|
|
message.PartnerAppID = "";
|
|
message.PartnerAppJWT = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreatePartnerAppResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePartnerAppResult): CreatePartnerAppResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* int32 Version */ 1:
|
|
message.Version = reader.int32();
|
|
break;
|
|
case /* string OrganisationID */ 2:
|
|
message.OrganisationID = reader.string();
|
|
break;
|
|
case /* string ProjectID */ 3:
|
|
message.ProjectID = reader.string();
|
|
break;
|
|
case /* string PartnerAppID */ 4:
|
|
message.PartnerAppID = reader.string();
|
|
break;
|
|
case /* string PartnerAppJWT */ 11:
|
|
message.PartnerAppJWT = reader.string();
|
|
break;
|
|
case /* api.CoreEndpoint Core */ 5:
|
|
message.Core = CoreEndpoint.internalBinaryRead(reader, reader.uint32(), options, message.Core);
|
|
break;
|
|
case /* api.IntegrationEndpoint Integration */ 6:
|
|
message.Integration = IntegrationEndpoint.internalBinaryRead(reader, reader.uint32(), options, message.Integration);
|
|
break;
|
|
case /* api.OpenIDCredentials OpenID */ 7:
|
|
message.OpenID = OpenIDCredentials.internalBinaryRead(reader, reader.uint32(), options, message.OpenID);
|
|
break;
|
|
case /* api.NatsCredentials Nats */ 8:
|
|
message.Nats = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Nats);
|
|
break;
|
|
case /* api.OpenSearchCredentials OpenDistro */ 9:
|
|
message.OpenDistro = OpenSearchCredentials.internalBinaryRead(reader, reader.uint32(), options, message.OpenDistro);
|
|
break;
|
|
case /* api.StorageEndpoint Storage */ 10:
|
|
message.Storage = StorageEndpoint.internalBinaryRead(reader, reader.uint32(), options, message.Storage);
|
|
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: CreatePartnerAppResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* int32 Version = 1; */
|
|
if (message.Version !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.Version);
|
|
/* string OrganisationID = 2; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.OrganisationID);
|
|
/* string ProjectID = 3; */
|
|
if (message.ProjectID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
|
|
/* string PartnerAppID = 4; */
|
|
if (message.PartnerAppID !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.PartnerAppID);
|
|
/* api.CoreEndpoint Core = 5; */
|
|
if (message.Core)
|
|
CoreEndpoint.internalBinaryWrite(message.Core, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.IntegrationEndpoint Integration = 6; */
|
|
if (message.Integration)
|
|
IntegrationEndpoint.internalBinaryWrite(message.Integration, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.OpenIDCredentials OpenID = 7; */
|
|
if (message.OpenID)
|
|
OpenIDCredentials.internalBinaryWrite(message.OpenID, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.NatsCredentials Nats = 8; */
|
|
if (message.Nats)
|
|
NatsCredentials.internalBinaryWrite(message.Nats, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.OpenSearchCredentials OpenDistro = 9; */
|
|
if (message.OpenDistro)
|
|
OpenSearchCredentials.internalBinaryWrite(message.OpenDistro, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.StorageEndpoint Storage = 10; */
|
|
if (message.Storage)
|
|
StorageEndpoint.internalBinaryWrite(message.Storage, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
/* string PartnerAppJWT = 11; */
|
|
if (message.PartnerAppJWT !== "")
|
|
writer.tag(11, WireType.LengthDelimited).string(message.PartnerAppJWT);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CreatePartnerAppResult
|
|
*/
|
|
export const CreatePartnerAppResult = new CreatePartnerAppResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdatePartnerAppRequest$Type extends MessageType<UpdatePartnerAppRequest> {
|
|
constructor() {
|
|
super("api.UpdatePartnerAppRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdatePartnerAppRequest>): UpdatePartnerAppRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.Name = "";
|
|
message.Description = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdatePartnerAppRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePartnerAppRequest): UpdatePartnerAppRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string ID */ 2:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* string Name */ 3:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 4:
|
|
message.Description = 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: UpdatePartnerAppRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
/* string Name = 3; */
|
|
if (message.Name !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 4; */
|
|
if (message.Description !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Description);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdatePartnerAppRequest
|
|
*/
|
|
export const UpdatePartnerAppRequest = new UpdatePartnerAppRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdatePartnerAppResult$Type extends MessageType<UpdatePartnerAppResult> {
|
|
constructor() {
|
|
super("api.UpdatePartnerAppResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => PartnerApp }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdatePartnerAppResult>): UpdatePartnerAppResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdatePartnerAppResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePartnerAppResult): UpdatePartnerAppResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.PartnerApp Result */ 1:
|
|
message.Result = PartnerApp.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
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: UpdatePartnerAppResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.PartnerApp Result = 1; */
|
|
if (message.Result)
|
|
PartnerApp.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.UpdatePartnerAppResult
|
|
*/
|
|
export const UpdatePartnerAppResult = new UpdatePartnerAppResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetPartnerAppRequest$Type extends MessageType<GetPartnerAppRequest> {
|
|
constructor() {
|
|
super("api.GetPartnerAppRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetPartnerAppRequest>): GetPartnerAppRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetPartnerAppRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPartnerAppRequest): GetPartnerAppRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestPartnerAppHeader Header */ 1:
|
|
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
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: GetPartnerAppRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestPartnerAppHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestPartnerAppHeader.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);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetPartnerAppRequest
|
|
*/
|
|
export const GetPartnerAppRequest = new GetPartnerAppRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetPartnerAppResult$Type extends MessageType<GetPartnerAppResult> {
|
|
constructor() {
|
|
super("api.GetPartnerAppResult", [
|
|
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => PartnerApp }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetPartnerAppResult>): GetPartnerAppResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetPartnerAppResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPartnerAppResult): GetPartnerAppResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.PartnerApp Result */ 1:
|
|
message.Result = PartnerApp.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
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: GetPartnerAppResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.PartnerApp Result = 1; */
|
|
if (message.Result)
|
|
PartnerApp.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetPartnerAppResult
|
|
*/
|
|
export const GetPartnerAppResult = new GetPartnerAppResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListPartnerAppsRequest$Type extends MessageType<ListPartnerAppsRequest> {
|
|
constructor() {
|
|
super("api.ListPartnerAppsRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListPartnerAppsRequest>): ListPartnerAppsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListPartnerAppsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPartnerAppsRequest): ListPartnerAppsRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.Paging Paging */ 2:
|
|
message.Paging = Paging.internalBinaryRead(reader, reader.uint32(), options, message.Paging);
|
|
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: ListPartnerAppsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.Paging Paging = 2; */
|
|
if (message.Paging)
|
|
Paging.internalBinaryWrite(message.Paging, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListPartnerAppsRequest
|
|
*/
|
|
export const ListPartnerAppsRequest = new ListPartnerAppsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListPartnerAppsResult$Type extends MessageType<ListPartnerAppsResult> {
|
|
constructor() {
|
|
super("api.ListPartnerAppsResult", [
|
|
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PartnerApp }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListPartnerAppsResult>): ListPartnerAppsResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Results = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListPartnerAppsResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPartnerAppsResult): ListPartnerAppsResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.PartnerApp Results */ 1:
|
|
message.Results.push(PartnerApp.internalBinaryRead(reader, reader.uint32(), options));
|
|
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: ListPartnerAppsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.PartnerApp Results = 1; */
|
|
for (let i = 0; i < message.Results.length; i++)
|
|
PartnerApp.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListPartnerAppsResult
|
|
*/
|
|
export const ListPartnerAppsResult = new ListPartnerAppsResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeletePartnerAppRequest$Type extends MessageType<DeletePartnerAppRequest> {
|
|
constructor() {
|
|
super("api.DeletePartnerAppRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeletePartnerAppRequest>): DeletePartnerAppRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeletePartnerAppRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePartnerAppRequest): DeletePartnerAppRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string ID */ 2:
|
|
message.ID = 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: DeletePartnerAppRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeletePartnerAppRequest
|
|
*/
|
|
export const DeletePartnerAppRequest = new DeletePartnerAppRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeletePartnerAppResult$Type extends MessageType<DeletePartnerAppResult> {
|
|
constructor() {
|
|
super("api.DeletePartnerAppResult", [
|
|
{ no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeletePartnerAppResult>): DeletePartnerAppResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeletePartnerAppResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePartnerAppResult): DeletePartnerAppResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.WorkflowExecutionResult WorkflowExecution */ 1:
|
|
message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution);
|
|
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: DeletePartnerAppResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.WorkflowExecutionResult WorkflowExecution = 1; */
|
|
if (message.WorkflowExecution)
|
|
WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeletePartnerAppResult
|
|
*/
|
|
export const DeletePartnerAppResult = new DeletePartnerAppResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeletePartnerAppInDBRequest$Type extends MessageType<DeletePartnerAppInDBRequest> {
|
|
constructor() {
|
|
super("api.DeletePartnerAppInDBRequest", [
|
|
{ no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeletePartnerAppInDBRequest>): DeletePartnerAppInDBRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.PartnerAppID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeletePartnerAppInDBRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePartnerAppInDBRequest): DeletePartnerAppInDBRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string PartnerAppID */ 1:
|
|
message.PartnerAppID = 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: DeletePartnerAppInDBRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string PartnerAppID = 1; */
|
|
if (message.PartnerAppID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.PartnerAppID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeletePartnerAppInDBRequest
|
|
*/
|
|
export const DeletePartnerAppInDBRequest = new DeletePartnerAppInDBRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeletePartnerAppInDBResult$Type extends MessageType<DeletePartnerAppInDBResult> {
|
|
constructor() {
|
|
super("api.DeletePartnerAppInDBResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeletePartnerAppInDBResult>): DeletePartnerAppInDBResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeletePartnerAppInDBResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePartnerAppInDBResult): DeletePartnerAppInDBResult {
|
|
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: DeletePartnerAppInDBResult, 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.DeletePartnerAppInDBResult
|
|
*/
|
|
export const DeletePartnerAppInDBResult = new DeletePartnerAppInDBResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class RenewPartnerAppRequest$Type extends MessageType<RenewPartnerAppRequest> {
|
|
constructor() {
|
|
super("api.RenewPartnerAppRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<RenewPartnerAppRequest>): RenewPartnerAppRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<RenewPartnerAppRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewPartnerAppRequest): RenewPartnerAppRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestPartnerAppHeader Header */ 1:
|
|
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
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: RenewPartnerAppRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestPartnerAppHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestPartnerAppHeader.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);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.RenewPartnerAppRequest
|
|
*/
|
|
export const RenewPartnerAppRequest = new RenewPartnerAppRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class RenewPartnerAppResult$Type extends MessageType<RenewPartnerAppResult> {
|
|
constructor() {
|
|
super("api.RenewPartnerAppResult", [
|
|
{ no: 1, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 5 /*ScalarType.INT32*/ },
|
|
{ no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 4, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 11, name: "PartnerAppJWT", kind: "scalar", localName: "PartnerAppJWT", jsonName: "PartnerAppJWT", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 5, name: "Core", kind: "message", localName: "Core", jsonName: "Core", T: () => CoreEndpoint },
|
|
{ no: 6, name: "Integration", kind: "message", localName: "Integration", jsonName: "Integration", T: () => IntegrationEndpoint },
|
|
{ no: 7, name: "OpenID", kind: "message", localName: "OpenID", jsonName: "OpenID", T: () => OpenIDCredentials },
|
|
{ no: 8, name: "Nats", kind: "message", localName: "Nats", jsonName: "Nats", T: () => NatsCredentials },
|
|
{ no: 9, name: "OpenDistro", kind: "message", localName: "OpenDistro", jsonName: "OpenDistro", T: () => OpenSearchCredentials },
|
|
{ no: 10, name: "Storage", kind: "message", localName: "Storage", jsonName: "Storage", T: () => StorageEndpoint }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<RenewPartnerAppResult>): RenewPartnerAppResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Version = 0;
|
|
message.OrganisationID = "";
|
|
message.ProjectID = "";
|
|
message.PartnerAppID = "";
|
|
message.PartnerAppJWT = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<RenewPartnerAppResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewPartnerAppResult): RenewPartnerAppResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* int32 Version */ 1:
|
|
message.Version = reader.int32();
|
|
break;
|
|
case /* string OrganisationID */ 2:
|
|
message.OrganisationID = reader.string();
|
|
break;
|
|
case /* string ProjectID */ 3:
|
|
message.ProjectID = reader.string();
|
|
break;
|
|
case /* string PartnerAppID */ 4:
|
|
message.PartnerAppID = reader.string();
|
|
break;
|
|
case /* string PartnerAppJWT */ 11:
|
|
message.PartnerAppJWT = reader.string();
|
|
break;
|
|
case /* api.CoreEndpoint Core */ 5:
|
|
message.Core = CoreEndpoint.internalBinaryRead(reader, reader.uint32(), options, message.Core);
|
|
break;
|
|
case /* api.IntegrationEndpoint Integration */ 6:
|
|
message.Integration = IntegrationEndpoint.internalBinaryRead(reader, reader.uint32(), options, message.Integration);
|
|
break;
|
|
case /* api.OpenIDCredentials OpenID */ 7:
|
|
message.OpenID = OpenIDCredentials.internalBinaryRead(reader, reader.uint32(), options, message.OpenID);
|
|
break;
|
|
case /* api.NatsCredentials Nats */ 8:
|
|
message.Nats = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Nats);
|
|
break;
|
|
case /* api.OpenSearchCredentials OpenDistro */ 9:
|
|
message.OpenDistro = OpenSearchCredentials.internalBinaryRead(reader, reader.uint32(), options, message.OpenDistro);
|
|
break;
|
|
case /* api.StorageEndpoint Storage */ 10:
|
|
message.Storage = StorageEndpoint.internalBinaryRead(reader, reader.uint32(), options, message.Storage);
|
|
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: RenewPartnerAppResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* int32 Version = 1; */
|
|
if (message.Version !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.Version);
|
|
/* string OrganisationID = 2; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.OrganisationID);
|
|
/* string ProjectID = 3; */
|
|
if (message.ProjectID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
|
|
/* string PartnerAppID = 4; */
|
|
if (message.PartnerAppID !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.PartnerAppID);
|
|
/* api.CoreEndpoint Core = 5; */
|
|
if (message.Core)
|
|
CoreEndpoint.internalBinaryWrite(message.Core, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.IntegrationEndpoint Integration = 6; */
|
|
if (message.Integration)
|
|
IntegrationEndpoint.internalBinaryWrite(message.Integration, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.OpenIDCredentials OpenID = 7; */
|
|
if (message.OpenID)
|
|
OpenIDCredentials.internalBinaryWrite(message.OpenID, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.NatsCredentials Nats = 8; */
|
|
if (message.Nats)
|
|
NatsCredentials.internalBinaryWrite(message.Nats, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.OpenSearchCredentials OpenDistro = 9; */
|
|
if (message.OpenDistro)
|
|
OpenSearchCredentials.internalBinaryWrite(message.OpenDistro, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.StorageEndpoint Storage = 10; */
|
|
if (message.Storage)
|
|
StorageEndpoint.internalBinaryWrite(message.Storage, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
/* string PartnerAppJWT = 11; */
|
|
if (message.PartnerAppJWT !== "")
|
|
writer.tag(11, WireType.LengthDelimited).string(message.PartnerAppJWT);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.RenewPartnerAppResult
|
|
*/
|
|
export const RenewPartnerAppResult = new RenewPartnerAppResult$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.PartnerAppService
|
|
*/
|
|
export const PartnerAppService = new ServiceType("api.PartnerAppService", [
|
|
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin PartnerApp"], description: "Create Project partner application" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CreatePartnerAppRequest, O: CreatePartnerAppResult },
|
|
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin PartnerApp"], description: "Update Project partner application" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdatePartnerAppRequest, O: UpdatePartnerAppResult },
|
|
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin PartnerApp"], description: "Delete Project partner application" }, "api.rscType": "Project", "api.roles": "Platform.PartnerApp", "google.api.method_visibility": { restriction: "SDK" } }, I: DeletePartnerAppRequest, O: DeletePartnerAppResult },
|
|
{ name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin PartnerApp"], description: "Get Project partner application" }, "api.rscType": "PartnerApp", "api.roles": "Platform.PartnerApp", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPartnerAppRequest, O: GetPartnerAppResult },
|
|
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin PartnerApp"], description: "List Project partner application" }, "api.rscType": "Project", "api.roles": "Platform.PartnerApp", "google.api.method_visibility": { restriction: "SDK" } }, I: ListPartnerAppsRequest, O: ListPartnerAppsResult },
|
|
{ name: "DeletePartnerAppInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin PartnerApp"], description: "Delete partner application in database" }, "api.rscType": "Platform", "api.roles": "Platform.PartnerApp", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeletePartnerAppInDBRequest, O: DeletePartnerAppInDBResult },
|
|
{ name: "Renew", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin PartnerApp"], description: "Renew Project partner application credentials" }, "api.rscType": "PartnerApp", "api.roles": "Platform.PartnerApp", "google.api.method_visibility": { restriction: "SDK" } }, I: RenewPartnerAppRequest, O: RenewPartnerAppResult }
|
|
], { "api.k8sService": "organisation-server" });
|