You've already forked npm-core-sdk
108 lines
3.7 KiB
TypeScript
108 lines
3.7 KiB
TypeScript
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
// @generated from file nsc-base.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 } from "./shared_pb.js";
|
|
|
|
/**
|
|
* @generated from message api.NscPermission
|
|
*/
|
|
export class NscPermission extends Message<NscPermission> {
|
|
/**
|
|
* @generated from field: repeated string allowSub = 1;
|
|
*/
|
|
allowSub: string[] = [];
|
|
|
|
/**
|
|
* @generated from field: repeated string allowPub = 2;
|
|
*/
|
|
allowPub: string[] = [];
|
|
|
|
/**
|
|
* @generated from field: repeated string denySub = 3;
|
|
*/
|
|
denySub: string[] = [];
|
|
|
|
/**
|
|
* @generated from field: repeated string denyPub = 4;
|
|
*/
|
|
denyPub: string[] = [];
|
|
|
|
constructor(data?: PartialMessage<NscPermission>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.NscPermission";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "allowSub", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
{ no: 2, name: "allowPub", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
{ no: 3, name: "denySub", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
{ no: 4, name: "denyPub", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NscPermission {
|
|
return new NscPermission().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NscPermission {
|
|
return new NscPermission().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NscPermission {
|
|
return new NscPermission().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: NscPermission | PlainMessage<NscPermission> | undefined, b: NscPermission | PlainMessage<NscPermission> | undefined): boolean {
|
|
return proto3.util.equals(NscPermission, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.NamedNscCredentials
|
|
*/
|
|
export class NamedNscCredentials extends Message<NamedNscCredentials> {
|
|
/**
|
|
* @generated from field: string name = 1;
|
|
*/
|
|
name = "";
|
|
|
|
/**
|
|
* @generated from field: api.NatsCredentials NscCredentials = 2;
|
|
*/
|
|
NscCredentials?: NatsCredentials;
|
|
|
|
constructor(data?: PartialMessage<NamedNscCredentials>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.NamedNscCredentials";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 2, name: "NscCredentials", kind: "message", T: NatsCredentials },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NamedNscCredentials {
|
|
return new NamedNscCredentials().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NamedNscCredentials {
|
|
return new NamedNscCredentials().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NamedNscCredentials {
|
|
return new NamedNscCredentials().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: NamedNscCredentials | PlainMessage<NamedNscCredentials> | undefined, b: NamedNscCredentials | PlainMessage<NamedNscCredentials> | undefined): boolean {
|
|
return proto3.util.equals(NamedNscCredentials, a, b);
|
|
}
|
|
}
|
|
|