You've already forked npm-core-sdk
Latest generation
This commit is contained in:
2
claim.ts
2
claim.ts
@@ -247,7 +247,7 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
|||||||
{ no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
{ no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||||
{ no: 3, name: "Criticality", kind: "enum", localName: "Criticality", jsonName: "Criticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Criticality of the claim" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
{ no: 3, name: "Criticality", kind: "enum", localName: "Criticality", jsonName: "Criticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Criticality of the claim" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||||
{ no: 4, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ClaimStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.aggSkip": "StatusUpdated" } },
|
{ no: 4, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ClaimStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.aggSkip": "StatusUpdated" } },
|
||||||
{ no: 6, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
{ no: 6, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||||
{ no: 23, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime },
|
{ no: 23, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime },
|
||||||
{ no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contacts assigned on the claims" }, "api.aggSkip": "AssigneesAdded", "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
{ no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contacts assigned on the claims" }, "api.aggSkip": "AssigneesAdded", "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||||
{ no: 16, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AssigneesRemoved", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
{ no: 16, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AssigneesRemoved", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"API_KEY_ALREADY_EXISTS": {
|
||||||
|
"TechMessage": "API key already exists for {name}",
|
||||||
|
"UserMessage": "API key already exists for {name}"
|
||||||
|
},
|
||||||
|
"API_KEY_NOT_FOUND": {
|
||||||
|
"TechMessage": "API key not found for {name}",
|
||||||
|
"UserMessage": "API key not found for {name}"
|
||||||
|
},
|
||||||
"APPOINTMENT_ACTOR_UNKNOWN": {
|
"APPOINTMENT_ACTOR_UNKNOWN": {
|
||||||
"TechMessage": "Actor {ressource} unknown or not well defined",
|
"TechMessage": "Actor {ressource} unknown or not well defined",
|
||||||
"UserMessage": "Actor {ressource} unknown or not well defined"
|
"UserMessage": "Actor {ressource} unknown or not well defined"
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"API_KEY_ALREADY_EXISTS": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
|
"API_KEY_NOT_FOUND": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
"APPOINTMENT_ACTOR_UNKNOWN": {
|
"APPOINTMENT_ACTOR_UNKNOWN": {
|
||||||
"TechMessage": "",
|
"TechMessage": "",
|
||||||
"UserMessage": ""
|
"UserMessage": ""
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"API_KEY_ALREADY_EXISTS": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
|
"API_KEY_NOT_FOUND": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
"APPOINTMENT_ACTOR_UNKNOWN": {
|
"APPOINTMENT_ACTOR_UNKNOWN": {
|
||||||
"TechMessage": "",
|
"TechMessage": "",
|
||||||
"UserMessage": ""
|
"UserMessage": ""
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"API_KEY_ALREADY_EXISTS": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
|
"API_KEY_NOT_FOUND": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
"APPOINTMENT_ACTOR_UNKNOWN": {
|
"APPOINTMENT_ACTOR_UNKNOWN": {
|
||||||
"TechMessage": "",
|
"TechMessage": "",
|
||||||
"UserMessage": ""
|
"UserMessage": ""
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"API_KEY_ALREADY_EXISTS": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
|
"API_KEY_NOT_FOUND": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
"APPOINTMENT_ACTOR_UNKNOWN": {
|
"APPOINTMENT_ACTOR_UNKNOWN": {
|
||||||
"TechMessage": "",
|
"TechMessage": "",
|
||||||
"UserMessage": ""
|
"UserMessage": ""
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"API_KEY_ALREADY_EXISTS": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
|
"API_KEY_NOT_FOUND": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
"APPOINTMENT_ACTOR_UNKNOWN": {
|
"APPOINTMENT_ACTOR_UNKNOWN": {
|
||||||
"TechMessage": "",
|
"TechMessage": "",
|
||||||
"UserMessage": ""
|
"UserMessage": ""
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"API_KEY_ALREADY_EXISTS": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
|
"API_KEY_NOT_FOUND": {
|
||||||
|
"TechMessage": "",
|
||||||
|
"UserMessage": ""
|
||||||
|
},
|
||||||
"APPOINTMENT_ACTOR_UNKNOWN": {
|
"APPOINTMENT_ACTOR_UNKNOWN": {
|
||||||
"TechMessage": "",
|
"TechMessage": "",
|
||||||
"UserMessage": ""
|
"UserMessage": ""
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reflex-platform/npm-core-sdk",
|
"name": "@reflex-platform/npm-core-sdk",
|
||||||
"version": "1.14.0-SNAPSHOT-260421081440",
|
"version": "1.14.0-SNAPSHOT-260427121806",
|
||||||
"description": "npm libs from core model proto files",
|
"description": "npm libs from core model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
@@ -4,6 +4,14 @@
|
|||||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||||
import { UserService } from "./user";
|
import { UserService } from "./user";
|
||||||
|
import type { ResolveAPIKeyResult } from "./user";
|
||||||
|
import type { ResolveAPIKeyRequest } from "./user";
|
||||||
|
import type { RenewAPIKeyResult } from "./user";
|
||||||
|
import type { RenewAPIKeyRequest } from "./user";
|
||||||
|
import type { RevokeAPIKeyResult } from "./user";
|
||||||
|
import type { RevokeAPIKeyRequest } from "./user";
|
||||||
|
import type { GenerateAPIKeyResult } from "./user";
|
||||||
|
import type { GenerateAPIKeyRequest } from "./user";
|
||||||
import type { UpdateTwoFAPlatformResult } from "./user";
|
import type { UpdateTwoFAPlatformResult } from "./user";
|
||||||
import type { UpdateTwoFAPlatformRequest } from "./user";
|
import type { UpdateTwoFAPlatformRequest } from "./user";
|
||||||
import type { ForceProjectUserTwoFARequest } from "./user";
|
import type { ForceProjectUserTwoFARequest } from "./user";
|
||||||
@@ -297,6 +305,22 @@ export interface IUserServiceClient {
|
|||||||
* @generated from protobuf rpc: UpdatePlatformTwoFA
|
* @generated from protobuf rpc: UpdatePlatformTwoFA
|
||||||
*/
|
*/
|
||||||
updatePlatformTwoFA(input: UpdateTwoFAPlatformRequest, options?: RpcOptions): UnaryCall<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>;
|
updatePlatformTwoFA(input: UpdateTwoFAPlatformRequest, options?: RpcOptions): UnaryCall<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: GenerateAPIKey
|
||||||
|
*/
|
||||||
|
generateAPIKey(input: GenerateAPIKeyRequest, options?: RpcOptions): UnaryCall<GenerateAPIKeyRequest, GenerateAPIKeyResult>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: RevokeAPIKey
|
||||||
|
*/
|
||||||
|
revokeAPIKey(input: RevokeAPIKeyRequest, options?: RpcOptions): UnaryCall<RevokeAPIKeyRequest, RevokeAPIKeyResult>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: RenewAPIKey
|
||||||
|
*/
|
||||||
|
renewAPIKey(input: RenewAPIKeyRequest, options?: RpcOptions): UnaryCall<RenewAPIKeyRequest, RenewAPIKeyResult>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ResolveAPIKey
|
||||||
|
*/
|
||||||
|
resolveAPIKey(input: ResolveAPIKeyRequest, options?: RpcOptions): UnaryCall<ResolveAPIKeyRequest, ResolveAPIKeyResult>;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf service api.UserService
|
* @generated from protobuf service api.UserService
|
||||||
@@ -664,4 +688,32 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo {
|
|||||||
const method = this.methods[50], opt = this._transport.mergeOptions(options);
|
const method = this.methods[50], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: GenerateAPIKey
|
||||||
|
*/
|
||||||
|
generateAPIKey(input: GenerateAPIKeyRequest, options?: RpcOptions): UnaryCall<GenerateAPIKeyRequest, GenerateAPIKeyResult> {
|
||||||
|
const method = this.methods[51], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<GenerateAPIKeyRequest, GenerateAPIKeyResult>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: RevokeAPIKey
|
||||||
|
*/
|
||||||
|
revokeAPIKey(input: RevokeAPIKeyRequest, options?: RpcOptions): UnaryCall<RevokeAPIKeyRequest, RevokeAPIKeyResult> {
|
||||||
|
const method = this.methods[52], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<RevokeAPIKeyRequest, RevokeAPIKeyResult>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: RenewAPIKey
|
||||||
|
*/
|
||||||
|
renewAPIKey(input: RenewAPIKeyRequest, options?: RpcOptions): UnaryCall<RenewAPIKeyRequest, RenewAPIKeyResult> {
|
||||||
|
const method = this.methods[53], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<RenewAPIKeyRequest, RenewAPIKeyResult>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ResolveAPIKey
|
||||||
|
*/
|
||||||
|
resolveAPIKey(input: ResolveAPIKeyRequest, options?: RpcOptions): UnaryCall<ResolveAPIKeyRequest, ResolveAPIKeyResult> {
|
||||||
|
const method = this.methods[54], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<ResolveAPIKeyRequest, ResolveAPIKeyResult>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
404
user.ts
404
user.ts
@@ -1139,6 +1139,64 @@ export interface ListUsersInRoleResult {
|
|||||||
*/
|
*/
|
||||||
Users: User[];
|
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 UserMail = 1
|
||||||
|
*/
|
||||||
|
UserMail: string;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf enum api.TwoFAValue
|
* @generated from protobuf enum api.TwoFAValue
|
||||||
*/
|
*/
|
||||||
@@ -5817,6 +5875,346 @@ class ListUsersInRoleResult$Type extends MessageType<ListUsersInRoleResult> {
|
|||||||
* @generated MessageType for protobuf message api.ListUsersInRoleResult
|
* @generated MessageType for protobuf message api.ListUsersInRoleResult
|
||||||
*/
|
*/
|
||||||
export const ListUsersInRoleResult = new ListUsersInRoleResult$Type();
|
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: "UserMail", kind: "scalar", localName: "UserMail", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/ }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<ResolveAPIKeyResult>): ResolveAPIKeyResult {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.UserMail = "";
|
||||||
|
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 UserMail */ 1:
|
||||||
|
message.UserMail = 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 UserMail = 1; */
|
||||||
|
if (message.UserMail !== "")
|
||||||
|
writer.tag(1, WireType.LengthDelimited).string(message.UserMail);
|
||||||
|
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
|
* @generated ServiceType for protobuf service api.UserService
|
||||||
*/
|
*/
|
||||||
@@ -5871,5 +6269,9 @@ 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: "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: "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: "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: "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 email" }, "api.rscType": "Platform", "api.roles": "Platform.API-Key", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ResolveAPIKeyRequest, O: ResolveAPIKeyResult }
|
||||||
], { "api.k8sService": "organisation-server" });
|
], { "api.k8sService": "organisation-server" });
|
||||||
|
|||||||
Reference in New Issue
Block a user