You've already forked npm-core-sdk
Latest generation
This commit is contained in:
104
client.ts
104
client.ts
@@ -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 "client.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -19,23 +19,23 @@ export interface OpenIDClient {
|
||||
/**
|
||||
* @generated from protobuf field: string AppName = 1 [json_name = "AppName"];
|
||||
*/
|
||||
appName: string;
|
||||
AppName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string DisplayName = 2 [json_name = "DisplayName"];
|
||||
*/
|
||||
displayName: string;
|
||||
DisplayName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string RootURI = 3 [json_name = "RootURI"];
|
||||
*/
|
||||
rootURI: string;
|
||||
RootURI: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string RedirectURIs = 4 [json_name = "RedirectURIs"];
|
||||
*/
|
||||
redirectURIs: string[];
|
||||
RedirectURIs: string[];
|
||||
/**
|
||||
* @generated from protobuf field: string Description = 5 [json_name = "Description"];
|
||||
*/
|
||||
description: string;
|
||||
Description: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.RegisterPlatformClientRequest
|
||||
@@ -44,7 +44,7 @@ export interface RegisterPlatformClientRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.OpenIDClient Client = 1 [json_name = "Client"];
|
||||
*/
|
||||
client?: OpenIDClient;
|
||||
Client?: OpenIDClient;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.RegisterClientRequest
|
||||
@@ -53,11 +53,11 @@ export interface RegisterClientRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.OpenIDClient Client = 2 [json_name = "Client"];
|
||||
*/
|
||||
client?: OpenIDClient;
|
||||
Client?: OpenIDClient;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.RegisterClientResult
|
||||
@@ -66,26 +66,26 @@ export interface RegisterClientResult {
|
||||
/**
|
||||
* @generated from protobuf field: string ClientID = 1 [json_name = "ClientID"];
|
||||
*/
|
||||
clientID: string;
|
||||
ClientID: string;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class OpenIDClient$Type extends MessageType<OpenIDClient> {
|
||||
constructor() {
|
||||
super("api.OpenIDClient", [
|
||||
{ no: 1, name: "AppName", kind: "scalar", jsonName: "AppName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-z]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The application name must be lowercase and can only contain letters and numbers. It must be unique within the organisation.", example: "\"reflexvisibility\"", pattern: "^[a-z]+$" } } },
|
||||
{ no: 2, name: "DisplayName", kind: "scalar", jsonName: "DisplayName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The display name of the application.", example: "\"Reflex Visibility\"" } } },
|
||||
{ no: 3, name: "RootURI", kind: "scalar", jsonName: "RootURI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The root URI of the application.", example: "\"https://localhost\"" } } },
|
||||
{ no: 4, name: "RedirectURIs", kind: "scalar", jsonName: "RedirectURIs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The allowed redirect URIs of the application.", example: "\"https://localhost/*\"" } } },
|
||||
{ no: 5, name: "Description", kind: "scalar", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The description of the application.", example: "\"Reflex Visibility application from Reflex Platform\"" } } }
|
||||
{ no: 1, name: "AppName", kind: "scalar", localName: "AppName", jsonName: "AppName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-z]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The application name must be lowercase and can only contain letters and numbers. It must be unique within the organisation.", example: "\"reflexvisibility\"", pattern: "^[a-z]+$" } } },
|
||||
{ no: 2, name: "DisplayName", kind: "scalar", localName: "DisplayName", jsonName: "DisplayName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The display name of the application.", example: "\"Reflex Visibility\"" } } },
|
||||
{ no: 3, name: "RootURI", kind: "scalar", localName: "RootURI", jsonName: "RootURI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The root URI of the application.", example: "\"https://localhost\"" } } },
|
||||
{ no: 4, name: "RedirectURIs", kind: "scalar", localName: "RedirectURIs", jsonName: "RedirectURIs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The allowed redirect URIs of the application.", example: "\"https://localhost/*\"" } } },
|
||||
{ no: 5, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The description of the application.", example: "\"Reflex Visibility application from Reflex Platform\"" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppName", "RootURI", "DisplayName"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<OpenIDClient>): OpenIDClient {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.appName = "";
|
||||
message.displayName = "";
|
||||
message.rootURI = "";
|
||||
message.redirectURIs = [];
|
||||
message.description = "";
|
||||
message.AppName = "";
|
||||
message.DisplayName = "";
|
||||
message.RootURI = "";
|
||||
message.RedirectURIs = [];
|
||||
message.Description = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OpenIDClient>(this, message, value);
|
||||
return message;
|
||||
@@ -96,19 +96,19 @@ class OpenIDClient$Type extends MessageType<OpenIDClient> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string AppName = 1 [json_name = "AppName"];*/ 1:
|
||||
message.appName = reader.string();
|
||||
message.AppName = reader.string();
|
||||
break;
|
||||
case /* string DisplayName = 2 [json_name = "DisplayName"];*/ 2:
|
||||
message.displayName = reader.string();
|
||||
message.DisplayName = reader.string();
|
||||
break;
|
||||
case /* string RootURI = 3 [json_name = "RootURI"];*/ 3:
|
||||
message.rootURI = reader.string();
|
||||
message.RootURI = reader.string();
|
||||
break;
|
||||
case /* repeated string RedirectURIs = 4 [json_name = "RedirectURIs"];*/ 4:
|
||||
message.redirectURIs.push(reader.string());
|
||||
message.RedirectURIs.push(reader.string());
|
||||
break;
|
||||
case /* string Description = 5 [json_name = "Description"];*/ 5:
|
||||
message.description = reader.string();
|
||||
message.Description = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -123,20 +123,20 @@ class OpenIDClient$Type extends MessageType<OpenIDClient> {
|
||||
}
|
||||
internalBinaryWrite(message: OpenIDClient, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string AppName = 1 [json_name = "AppName"]; */
|
||||
if (message.appName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.appName);
|
||||
if (message.AppName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.AppName);
|
||||
/* string DisplayName = 2 [json_name = "DisplayName"]; */
|
||||
if (message.displayName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
||||
if (message.DisplayName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DisplayName);
|
||||
/* string RootURI = 3 [json_name = "RootURI"]; */
|
||||
if (message.rootURI !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.rootURI);
|
||||
if (message.RootURI !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.RootURI);
|
||||
/* repeated string RedirectURIs = 4 [json_name = "RedirectURIs"]; */
|
||||
for (let i = 0; i < message.redirectURIs.length; i++)
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.redirectURIs[i]);
|
||||
for (let i = 0; i < message.RedirectURIs.length; i++)
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.RedirectURIs[i]);
|
||||
/* string Description = 5 [json_name = "Description"]; */
|
||||
if (message.description !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.description);
|
||||
if (message.Description !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.Description);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -151,7 +151,7 @@ export const OpenIDClient = new OpenIDClient$Type();
|
||||
class RegisterPlatformClientRequest$Type extends MessageType<RegisterPlatformClientRequest> {
|
||||
constructor() {
|
||||
super("api.RegisterPlatformClientRequest", [
|
||||
{ no: 1, name: "Client", kind: "message", jsonName: "Client", T: () => OpenIDClient, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "Client", kind: "message", localName: "Client", jsonName: "Client", T: () => OpenIDClient, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Client"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<RegisterPlatformClientRequest>): RegisterPlatformClientRequest {
|
||||
@@ -166,7 +166,7 @@ class RegisterPlatformClientRequest$Type extends MessageType<RegisterPlatformCli
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.OpenIDClient Client = 1 [json_name = "Client"];*/ 1:
|
||||
message.client = OpenIDClient.internalBinaryRead(reader, reader.uint32(), options, message.client);
|
||||
message.Client = OpenIDClient.internalBinaryRead(reader, reader.uint32(), options, message.Client);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -181,8 +181,8 @@ class RegisterPlatformClientRequest$Type extends MessageType<RegisterPlatformCli
|
||||
}
|
||||
internalBinaryWrite(message: RegisterPlatformClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.OpenIDClient Client = 1 [json_name = "Client"]; */
|
||||
if (message.client)
|
||||
OpenIDClient.internalBinaryWrite(message.client, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Client)
|
||||
OpenIDClient.internalBinaryWrite(message.Client, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -197,8 +197,8 @@ export const RegisterPlatformClientRequest = new RegisterPlatformClientRequest$T
|
||||
class RegisterClientRequest$Type extends MessageType<RegisterClientRequest> {
|
||||
constructor() {
|
||||
super("api.RegisterClientRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Client", kind: "message", jsonName: "Client", T: () => OpenIDClient, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Client", kind: "message", localName: "Client", jsonName: "Client", T: () => OpenIDClient, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Client"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<RegisterClientRequest>): RegisterClientRequest {
|
||||
@@ -213,10 +213,10 @@ class RegisterClientRequest$Type extends MessageType<RegisterClientRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestOrganisationHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
message.header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.OpenIDClient Client = 2 [json_name = "Client"];*/ 2:
|
||||
message.client = OpenIDClient.internalBinaryRead(reader, reader.uint32(), options, message.client);
|
||||
message.Client = OpenIDClient.internalBinaryRead(reader, reader.uint32(), options, message.Client);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -231,11 +231,11 @@ class RegisterClientRequest$Type extends MessageType<RegisterClientRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: RegisterClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; */
|
||||
if (message.header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.OpenIDClient Client = 2 [json_name = "Client"]; */
|
||||
if (message.client)
|
||||
OpenIDClient.internalBinaryWrite(message.client, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Client)
|
||||
OpenIDClient.internalBinaryWrite(message.Client, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -250,12 +250,12 @@ export const RegisterClientRequest = new RegisterClientRequest$Type();
|
||||
class RegisterClientResult$Type extends MessageType<RegisterClientResult> {
|
||||
constructor() {
|
||||
super("api.RegisterClientResult", [
|
||||
{ no: 1, name: "ClientID", kind: "scalar", jsonName: "ClientID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "ClientID", kind: "scalar", localName: "ClientID", jsonName: "ClientID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<RegisterClientResult>): RegisterClientResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.clientID = "";
|
||||
message.ClientID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<RegisterClientResult>(this, message, value);
|
||||
return message;
|
||||
@@ -266,7 +266,7 @@ class RegisterClientResult$Type extends MessageType<RegisterClientResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ClientID = 1 [json_name = "ClientID"];*/ 1:
|
||||
message.clientID = reader.string();
|
||||
message.ClientID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -281,8 +281,8 @@ class RegisterClientResult$Type extends MessageType<RegisterClientResult> {
|
||||
}
|
||||
internalBinaryWrite(message: RegisterClientResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ClientID = 1 [json_name = "ClientID"]; */
|
||||
if (message.clientID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.clientID);
|
||||
if (message.ClientID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ClientID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user