|
|
|
|
@@ -1139,64 +1139,6 @@ export interface ListUsersInRoleResult {
|
|
|
|
|
*/
|
|
|
|
|
Users: User[];
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* ===== API Key =====
|
|
|
|
|
*
|
|
|
|
|
* @generated from protobuf message api.GenerateAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export interface GenerateAPIKeyRequest {
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.GenerateAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export interface GenerateAPIKeyResult {
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string APIKey = 1
|
|
|
|
|
*/
|
|
|
|
|
APIKey: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.RevokeAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export interface RevokeAPIKeyRequest {
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.RevokeAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export interface RevokeAPIKeyResult {
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.RenewAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export interface RenewAPIKeyRequest {
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.RenewAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export interface RenewAPIKeyResult {
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string APIKey = 1
|
|
|
|
|
*/
|
|
|
|
|
APIKey: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.ResolveAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export interface ResolveAPIKeyRequest {
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string APIKey = 1
|
|
|
|
|
*/
|
|
|
|
|
APIKey: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.ResolveAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export interface ResolveAPIKeyResult {
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string UserID = 1
|
|
|
|
|
*/
|
|
|
|
|
UserID: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf enum api.TwoFAValue
|
|
|
|
|
*/
|
|
|
|
|
@@ -5875,346 +5817,6 @@ class ListUsersInRoleResult$Type extends MessageType<ListUsersInRoleResult> {
|
|
|
|
|
* @generated MessageType for protobuf message api.ListUsersInRoleResult
|
|
|
|
|
*/
|
|
|
|
|
export const ListUsersInRoleResult = new ListUsersInRoleResult$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class GenerateAPIKeyRequest$Type extends MessageType<GenerateAPIKeyRequest> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.GenerateAPIKeyRequest", []);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<GenerateAPIKeyRequest>): GenerateAPIKeyRequest {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<GenerateAPIKeyRequest>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenerateAPIKeyRequest): GenerateAPIKeyRequest {
|
|
|
|
|
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: GenerateAPIKeyRequest, 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.GenerateAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export const GenerateAPIKeyRequest = new GenerateAPIKeyRequest$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class GenerateAPIKeyResult$Type extends MessageType<GenerateAPIKeyResult> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.GenerateAPIKeyResult", [
|
|
|
|
|
{ no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/ }
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<GenerateAPIKeyResult>): GenerateAPIKeyResult {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
message.APIKey = "";
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<GenerateAPIKeyResult>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenerateAPIKeyResult): GenerateAPIKeyResult {
|
|
|
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
|
|
|
while (reader.pos < end) {
|
|
|
|
|
let [fieldNo, wireType] = reader.tag();
|
|
|
|
|
switch (fieldNo) {
|
|
|
|
|
case /* string APIKey */ 1:
|
|
|
|
|
message.APIKey = 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: GenerateAPIKeyResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
/* string APIKey = 1; */
|
|
|
|
|
if (message.APIKey !== "")
|
|
|
|
|
writer.tag(1, WireType.LengthDelimited).string(message.APIKey);
|
|
|
|
|
let u = options.writeUnknownFields;
|
|
|
|
|
if (u !== false)
|
|
|
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
|
|
|
return writer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated MessageType for protobuf message api.GenerateAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export const GenerateAPIKeyResult = new GenerateAPIKeyResult$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class RevokeAPIKeyRequest$Type extends MessageType<RevokeAPIKeyRequest> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.RevokeAPIKeyRequest", []);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<RevokeAPIKeyRequest>): RevokeAPIKeyRequest {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<RevokeAPIKeyRequest>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeAPIKeyRequest): RevokeAPIKeyRequest {
|
|
|
|
|
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: RevokeAPIKeyRequest, 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.RevokeAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export const RevokeAPIKeyRequest = new RevokeAPIKeyRequest$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class RevokeAPIKeyResult$Type extends MessageType<RevokeAPIKeyResult> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.RevokeAPIKeyResult", []);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<RevokeAPIKeyResult>): RevokeAPIKeyResult {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<RevokeAPIKeyResult>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeAPIKeyResult): RevokeAPIKeyResult {
|
|
|
|
|
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: RevokeAPIKeyResult, 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.RevokeAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export const RevokeAPIKeyResult = new RevokeAPIKeyResult$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class RenewAPIKeyRequest$Type extends MessageType<RenewAPIKeyRequest> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.RenewAPIKeyRequest", []);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<RenewAPIKeyRequest>): RenewAPIKeyRequest {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<RenewAPIKeyRequest>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewAPIKeyRequest): RenewAPIKeyRequest {
|
|
|
|
|
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: RenewAPIKeyRequest, 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.RenewAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export const RenewAPIKeyRequest = new RenewAPIKeyRequest$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class RenewAPIKeyResult$Type extends MessageType<RenewAPIKeyResult> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.RenewAPIKeyResult", [
|
|
|
|
|
{ no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/ }
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<RenewAPIKeyResult>): RenewAPIKeyResult {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
message.APIKey = "";
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<RenewAPIKeyResult>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewAPIKeyResult): RenewAPIKeyResult {
|
|
|
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
|
|
|
while (reader.pos < end) {
|
|
|
|
|
let [fieldNo, wireType] = reader.tag();
|
|
|
|
|
switch (fieldNo) {
|
|
|
|
|
case /* string APIKey */ 1:
|
|
|
|
|
message.APIKey = 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: RenewAPIKeyResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
/* string APIKey = 1; */
|
|
|
|
|
if (message.APIKey !== "")
|
|
|
|
|
writer.tag(1, WireType.LengthDelimited).string(message.APIKey);
|
|
|
|
|
let u = options.writeUnknownFields;
|
|
|
|
|
if (u !== false)
|
|
|
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
|
|
|
return writer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated MessageType for protobuf message api.RenewAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export const RenewAPIKeyResult = new RenewAPIKeyResult$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class ResolveAPIKeyRequest$Type extends MessageType<ResolveAPIKeyRequest> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.ResolveAPIKeyRequest", [
|
|
|
|
|
{ no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
|
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["APIKey"] } } });
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<ResolveAPIKeyRequest>): ResolveAPIKeyRequest {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
message.APIKey = "";
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<ResolveAPIKeyRequest>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveAPIKeyRequest): ResolveAPIKeyRequest {
|
|
|
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
|
|
|
while (reader.pos < end) {
|
|
|
|
|
let [fieldNo, wireType] = reader.tag();
|
|
|
|
|
switch (fieldNo) {
|
|
|
|
|
case /* string APIKey */ 1:
|
|
|
|
|
message.APIKey = 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: ResolveAPIKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
/* string APIKey = 1; */
|
|
|
|
|
if (message.APIKey !== "")
|
|
|
|
|
writer.tag(1, WireType.LengthDelimited).string(message.APIKey);
|
|
|
|
|
let u = options.writeUnknownFields;
|
|
|
|
|
if (u !== false)
|
|
|
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
|
|
|
return writer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated MessageType for protobuf message api.ResolveAPIKeyRequest
|
|
|
|
|
*/
|
|
|
|
|
export const ResolveAPIKeyRequest = new ResolveAPIKeyRequest$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class ResolveAPIKeyResult$Type extends MessageType<ResolveAPIKeyResult> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.ResolveAPIKeyResult", [
|
|
|
|
|
{ no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ }
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<ResolveAPIKeyResult>): ResolveAPIKeyResult {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
message.UserID = "";
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<ResolveAPIKeyResult>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveAPIKeyResult): ResolveAPIKeyResult {
|
|
|
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
|
|
|
while (reader.pos < end) {
|
|
|
|
|
let [fieldNo, wireType] = reader.tag();
|
|
|
|
|
switch (fieldNo) {
|
|
|
|
|
case /* string UserID */ 1:
|
|
|
|
|
message.UserID = 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: ResolveAPIKeyResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
/* string UserID = 1; */
|
|
|
|
|
if (message.UserID !== "")
|
|
|
|
|
writer.tag(1, WireType.LengthDelimited).string(message.UserID);
|
|
|
|
|
let u = options.writeUnknownFields;
|
|
|
|
|
if (u !== false)
|
|
|
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
|
|
|
return writer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated MessageType for protobuf message api.ResolveAPIKeyResult
|
|
|
|
|
*/
|
|
|
|
|
export const ResolveAPIKeyResult = new ResolveAPIKeyResult$Type();
|
|
|
|
|
/**
|
|
|
|
|
* @generated ServiceType for protobuf service api.UserService
|
|
|
|
|
*/
|
|
|
|
|
@@ -6269,9 +5871,5 @@ export const UserService = new ServiceType("api.UserService", [
|
|
|
|
|
{ name: "SetAttachmentTypeRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Set AttachmentType Roles of a user" }, "api.rscType": "Project", "api.roles": "Platform.Project-User", "google.api.method_visibility": { restriction: "SDK" } }, I: SetUserAttachmentTypeRolesRequest, O: SetUserAttachmentTypeRolesResult },
|
|
|
|
|
{ name: "ForceTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Enable or disable forced 2FA for a user" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceTwoFAOrganisationRequest, O: ForceTwoFAResult },
|
|
|
|
|
{ name: "ForceProjectUserTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Enables forced 2FA for a user on a project. Cannot disable forced 2FA." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceProjectUserTwoFARequest, O: ForceTwoFAResult },
|
|
|
|
|
{ name: "UpdatePlatformTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Update 2FA value for a user" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateTwoFAPlatformRequest, O: UpdateTwoFAPlatformResult },
|
|
|
|
|
{ name: "GenerateAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Generate an API key for the user" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GenerateAPIKeyRequest, O: GenerateAPIKeyResult },
|
|
|
|
|
{ name: "RevokeAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Revoke the user's API key" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RevokeAPIKeyRequest, O: RevokeAPIKeyResult },
|
|
|
|
|
{ name: "RenewAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Renew the user's API key" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RenewAPIKeyRequest, O: RenewAPIKeyResult },
|
|
|
|
|
{ name: "ResolveAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Resolve an API key to the corresponding user ID" }, "api.rscType": "Platform", "api.roles": "Platform.API-Key", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ResolveAPIKeyRequest, O: ResolveAPIKeyResult }
|
|
|
|
|
{ name: "UpdatePlatformTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Update 2FA value for a user" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateTwoFAPlatformRequest, O: UpdateTwoFAPlatformResult }
|
|
|
|
|
], { "api.k8sService": "organisation-server" });
|
|
|
|
|
|