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

188 lines
6.7 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file client.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 { RequestOrganisationHeader } from "./shared_pb.js";
/**
* @generated from message api.OpenIDClient
*/
export class OpenIDClient extends Message<OpenIDClient> {
/**
* @generated from field: string AppName = 1;
*/
AppName = "";
/**
* @generated from field: string DisplayName = 2;
*/
DisplayName = "";
/**
* @generated from field: string RootURI = 3;
*/
RootURI = "";
/**
* @generated from field: repeated string RedirectURIs = 4;
*/
RedirectURIs: string[] = [];
/**
* @generated from field: string Description = 5;
*/
Description = "";
constructor(data?: PartialMessage<OpenIDClient>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.OpenIDClient";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "AppName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "DisplayName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "RootURI", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "RedirectURIs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 5, name: "Description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenIDClient {
return new OpenIDClient().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenIDClient {
return new OpenIDClient().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenIDClient {
return new OpenIDClient().fromJsonString(jsonString, options);
}
static equals(a: OpenIDClient | PlainMessage<OpenIDClient> | undefined, b: OpenIDClient | PlainMessage<OpenIDClient> | undefined): boolean {
return proto3.util.equals(OpenIDClient, a, b);
}
}
/**
* @generated from message api.RegisterPlatformClientRequest
*/
export class RegisterPlatformClientRequest extends Message<RegisterPlatformClientRequest> {
/**
* @generated from field: api.OpenIDClient Client = 1;
*/
Client?: OpenIDClient;
constructor(data?: PartialMessage<RegisterPlatformClientRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.RegisterPlatformClientRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Client", kind: "message", T: OpenIDClient },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterPlatformClientRequest {
return new RegisterPlatformClientRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterPlatformClientRequest {
return new RegisterPlatformClientRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterPlatformClientRequest {
return new RegisterPlatformClientRequest().fromJsonString(jsonString, options);
}
static equals(a: RegisterPlatformClientRequest | PlainMessage<RegisterPlatformClientRequest> | undefined, b: RegisterPlatformClientRequest | PlainMessage<RegisterPlatformClientRequest> | undefined): boolean {
return proto3.util.equals(RegisterPlatformClientRequest, a, b);
}
}
/**
* @generated from message api.RegisterClientRequest
*/
export class RegisterClientRequest extends Message<RegisterClientRequest> {
/**
* @generated from field: api.RequestOrganisationHeader Header = 1;
*/
Header?: RequestOrganisationHeader;
/**
* @generated from field: api.OpenIDClient Client = 2;
*/
Client?: OpenIDClient;
constructor(data?: PartialMessage<RegisterClientRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.RegisterClientRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestOrganisationHeader },
{ no: 2, name: "Client", kind: "message", T: OpenIDClient },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterClientRequest {
return new RegisterClientRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterClientRequest {
return new RegisterClientRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterClientRequest {
return new RegisterClientRequest().fromJsonString(jsonString, options);
}
static equals(a: RegisterClientRequest | PlainMessage<RegisterClientRequest> | undefined, b: RegisterClientRequest | PlainMessage<RegisterClientRequest> | undefined): boolean {
return proto3.util.equals(RegisterClientRequest, a, b);
}
}
/**
* @generated from message api.RegisterClientResult
*/
export class RegisterClientResult extends Message<RegisterClientResult> {
/**
* @generated from field: string ClientID = 1;
*/
ClientID = "";
constructor(data?: PartialMessage<RegisterClientResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.RegisterClientResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ClientID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterClientResult {
return new RegisterClientResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterClientResult {
return new RegisterClientResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterClientResult {
return new RegisterClientResult().fromJsonString(jsonString, options);
}
static equals(a: RegisterClientResult | PlainMessage<RegisterClientResult> | undefined, b: RegisterClientResult | PlainMessage<RegisterClientResult> | undefined): boolean {
return proto3.util.equals(RegisterClientResult, a, b);
}
}