geniebox-shared-lib 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/key.interface.d.ts +21 -0
- package/dist/key.interface.js +87 -2
- package/dist/request.interface.d.ts +2 -0
- package/dist/request.interface.js +11 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { MessageFns as EndpointMessageFns, protobufPackage as EndpointProtobufPa
|
|
|
15
15
|
export { MessageFns as OpenAIMessageFns, protobufPackage as OpenAIProtobufPackage, CreateRequest as OpenAICreateRequest, CreateResponse as OpenAICreateResponse, OpenAIServiceService as OpenAIService, } from "./openai.interface";
|
|
16
16
|
export { UploadRequest, UploadResponse, DownloadRequest, DownloadResponse, DeleteRequest, DeleteResponse, StorageServiceService as StorageService, protobufPackage as FileProtobufPackage, } from "./storage.interface";
|
|
17
17
|
export { MessageFns as EventMessageFns, protobufPackage as EventProtobufPackage, SubscribeRequest, EventMessage, EventServiceService as EventService, } from "./event.interface";
|
|
18
|
-
export { MessageFns as KeysMessageFns, protobufPackage as KeysProtobufPackage, Key, CreateKeyRequest, UpdateKeyRequest, RemoveKeyRequest, GetKeyByIdRequest, KeyResponse, KeysResponse, GetKeysByUserRequest, KeyServiceService as KeyService, } from "./key.interface";
|
|
18
|
+
export { MessageFns as KeysMessageFns, protobufPackage as KeysProtobufPackage, Key, CreateKeyRequest, UpdateKeyRequest, RemoveKeyRequest, GetKeyByIdRequest, KeyResponse, KeysResponse, GetKeysByUserRequest, ValidateKeyRequest, ValidateKeyResponse, KeyServiceService as KeyService, } from "./key.interface";
|
|
19
19
|
export { MessageFns as RequestMessageFns, protobufPackage as RequestProtobufPackage, CreateRequestRequest, CreateRequestResponse, GetRequestStatusRequest, RequestStatusResponse, GetRequestResultRequest, RequestResultResponse, CancelRequestRequest, CancelRequestResponse, StreamRequestRequest, RequestLog, StreamChunk, RequestServiceService as RequestService, } from "./request.interface";
|
|
20
20
|
export { MessageFns as ResponseMessageFns, protobufPackage as ResponseProtobufPackage, ProcessResponseRequest, ProcessResponseResponse, StreamUpdatesRequest, StreamUpdate, ResponseServiceService as ResponseService, } from "./response.interface";
|
|
21
21
|
export { MessageFns as BillingMessageFns, protobufPackage as BillingProtobufPackage, GetBalanceRequest, GetBalanceResponse, ChargeRequest, ChargeResponse, DepositRequest, DepositResponse, CreateTransactionRequest, CreateTransactionResponse, GetTransactionsRequest, GetTransactionsResponse, GetTransactionRequest, GetTransactionResponse, RecordUsageRequest, RecordUsageResponse, GetUsageStatsRequest, GetUsageStatsResponse, GetUsageByKeyRequest, GetUsageByKeyResponse, GetUsageByUserRequest, GetUsageByUserResponse, CreatePaymentRequest, CreatePaymentResponse, GetPaymentRequest, GetPaymentResponse, GetPaymentsByUserRequest, GetPaymentsByUserResponse, ProcessWebhookRequest, ProcessWebhookResponse, BillingServiceService as BillingService, } from "./billing.interface";
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EndpointPricing = exports.EndpointModel = exports.EndpointProvider = exports.ENDPOINT_SERVICE_NAME = exports.ENDPOINT_PACKAGE_NAME = exports.EndpointProtobufPackage = exports.VerifyResetCodeRequest = exports.ResendConfirmationCodeRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.AuthResponse = exports.RefreshRequest = exports.LogoutRequest = exports.RegisterCredentials = exports.LoginCredentials = exports.AuthProtobufPackage = exports.UserService = exports.EmailVerificationStatusResponse = exports.GetEmailVerificationStatusRequest = exports.ResetPasswordData = exports.UpdateEmailVerificationRequest = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.FindOneRequest = exports.UpdateUserRequest = exports.CreateUserPersonal = exports.CreateUserRequest = exports.User = exports.UserProtobufPackage = exports.BillingClient = exports.ResponseClient = exports.RequestClient = exports.KeyClient = exports.EventClient = exports.StorageClient = exports.OpenAIClient = exports.EndpointClient = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.BillingService = exports.ProcessWebhookResponse = exports.ProcessWebhookRequest = exports.GetPaymentsByUserResponse = exports.GetPaymentsByUserRequest = exports.GetPaymentResponse = exports.GetPaymentRequest = exports.CreatePaymentResponse = exports.CreatePaymentRequest = exports.GetUsageByUserResponse = exports.GetUsageByUserRequest = exports.GetUsageByKeyResponse = exports.GetUsageByKeyRequest = exports.GetUsageStatsResponse = exports.GetUsageStatsRequest = exports.RecordUsageResponse = exports.RecordUsageRequest = exports.GetTransactionResponse = exports.GetTransactionRequest = exports.GetTransactionsResponse = exports.GetTransactionsRequest = exports.CreateTransactionResponse = exports.CreateTransactionRequest = exports.DepositResponse = exports.DepositRequest = exports.ChargeResponse = exports.ChargeRequest = exports.GetBalanceResponse = exports.GetBalanceRequest = exports.BillingProtobufPackage = exports.ResponseService = exports.StreamUpdate = exports.StreamUpdatesRequest = exports.ProcessResponseResponse = exports.ProcessResponseRequest = exports.ResponseProtobufPackage = exports.RequestService = exports.StreamChunk = exports.RequestLog = exports.StreamRequestRequest = exports.CancelRequestResponse = exports.CancelRequestRequest = exports.RequestResultResponse = exports.GetRequestResultRequest = exports.RequestStatusResponse = exports.GetRequestStatusRequest = void 0;
|
|
4
|
+
exports.RequestProtobufPackage = exports.KeyService = exports.ValidateKeyResponse = exports.ValidateKeyRequest = exports.GetKeysByUserRequest = exports.KeysResponse = exports.KeyResponse = exports.GetKeyByIdRequest = exports.RemoveKeyRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KeysProtobufPackage = exports.EventService = exports.EventMessage = exports.SubscribeRequest = exports.EventProtobufPackage = exports.FileProtobufPackage = exports.StorageService = exports.DeleteResponse = exports.DeleteRequest = exports.DownloadResponse = exports.DownloadRequest = exports.UploadResponse = exports.UploadRequest = exports.OpenAIService = exports.OpenAICreateResponse = exports.OpenAICreateRequest = exports.OpenAIProtobufPackage = exports.EndpointService = exports.DeleteEndpointResponse = exports.ListEndpointsResponse = exports.GetEndpointByIdResponse = exports.UpdateEndpointResponse = exports.CreateEndpointResponse = exports.DeleteEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByIdRequest = exports.UpdateEndpointRequest = exports.CreateEndpointRequest = exports.ValidateEndpointResponse = exports.ValidateEndpointRequest = exports.PricingResponse = exports.PricingRequest = exports.ModelsResponse = exports.ModelsRequest = exports.ProvidersResponse = exports.ProvidersRequest = exports.EndpointRequest = exports.EndpointConfig = void 0;
|
|
5
|
+
exports.BillingService = exports.ProcessWebhookResponse = exports.ProcessWebhookRequest = exports.GetPaymentsByUserResponse = exports.GetPaymentsByUserRequest = exports.GetPaymentResponse = exports.GetPaymentRequest = exports.CreatePaymentResponse = exports.CreatePaymentRequest = exports.GetUsageByUserResponse = exports.GetUsageByUserRequest = exports.GetUsageByKeyResponse = exports.GetUsageByKeyRequest = exports.GetUsageStatsResponse = exports.GetUsageStatsRequest = exports.RecordUsageResponse = exports.RecordUsageRequest = exports.GetTransactionResponse = exports.GetTransactionRequest = exports.GetTransactionsResponse = exports.GetTransactionsRequest = exports.CreateTransactionResponse = exports.CreateTransactionRequest = exports.DepositResponse = exports.DepositRequest = exports.ChargeResponse = exports.ChargeRequest = exports.GetBalanceResponse = exports.GetBalanceRequest = exports.BillingProtobufPackage = exports.ResponseService = exports.StreamUpdate = exports.StreamUpdatesRequest = exports.ProcessResponseResponse = exports.ProcessResponseRequest = exports.ResponseProtobufPackage = exports.RequestService = exports.StreamChunk = exports.RequestLog = exports.StreamRequestRequest = exports.CancelRequestResponse = exports.CancelRequestRequest = exports.RequestResultResponse = exports.GetRequestResultRequest = exports.RequestStatusResponse = exports.GetRequestStatusRequest = exports.CreateRequestResponse = exports.CreateRequestRequest = void 0;
|
|
6
6
|
var shared_module_1 = require("./shared.module");
|
|
7
7
|
Object.defineProperty(exports, "SharedModule", { enumerable: true, get: function () { return shared_module_1.SharedModule; } });
|
|
8
8
|
var user_client_1 = require("./user.client");
|
|
@@ -139,6 +139,8 @@ Object.defineProperty(exports, "GetKeyByIdRequest", { enumerable: true, get: fun
|
|
|
139
139
|
Object.defineProperty(exports, "KeyResponse", { enumerable: true, get: function () { return key_interface_1.KeyResponse; } });
|
|
140
140
|
Object.defineProperty(exports, "KeysResponse", { enumerable: true, get: function () { return key_interface_1.KeysResponse; } });
|
|
141
141
|
Object.defineProperty(exports, "GetKeysByUserRequest", { enumerable: true, get: function () { return key_interface_1.GetKeysByUserRequest; } });
|
|
142
|
+
Object.defineProperty(exports, "ValidateKeyRequest", { enumerable: true, get: function () { return key_interface_1.ValidateKeyRequest; } });
|
|
143
|
+
Object.defineProperty(exports, "ValidateKeyResponse", { enumerable: true, get: function () { return key_interface_1.ValidateKeyResponse; } });
|
|
142
144
|
Object.defineProperty(exports, "KeyService", { enumerable: true, get: function () { return key_interface_1.KeyServiceService; } });
|
|
143
145
|
// ============================
|
|
144
146
|
// Request exports
|
package/dist/key.interface.d.ts
CHANGED
|
@@ -30,12 +30,19 @@ export interface GetKeysByUserRequest {
|
|
|
30
30
|
export interface RemoveKeyRequest {
|
|
31
31
|
uuid: string;
|
|
32
32
|
}
|
|
33
|
+
export interface ValidateKeyRequest {
|
|
34
|
+
secret: string;
|
|
35
|
+
}
|
|
33
36
|
export interface KeyResponse {
|
|
34
37
|
key?: Key | undefined;
|
|
35
38
|
}
|
|
36
39
|
export interface KeysResponse {
|
|
37
40
|
keys: Key[];
|
|
38
41
|
}
|
|
42
|
+
export interface ValidateKeyResponse {
|
|
43
|
+
key?: Key | undefined;
|
|
44
|
+
valid: boolean;
|
|
45
|
+
}
|
|
39
46
|
export declare const KEY_PACKAGE_NAME = "key";
|
|
40
47
|
export declare const Key: MessageFns<Key>;
|
|
41
48
|
export declare const CreateKeyRequest: MessageFns<CreateKeyRequest>;
|
|
@@ -43,8 +50,10 @@ export declare const UpdateKeyRequest: MessageFns<UpdateKeyRequest>;
|
|
|
43
50
|
export declare const GetKeyByIdRequest: MessageFns<GetKeyByIdRequest>;
|
|
44
51
|
export declare const GetKeysByUserRequest: MessageFns<GetKeysByUserRequest>;
|
|
45
52
|
export declare const RemoveKeyRequest: MessageFns<RemoveKeyRequest>;
|
|
53
|
+
export declare const ValidateKeyRequest: MessageFns<ValidateKeyRequest>;
|
|
46
54
|
export declare const KeyResponse: MessageFns<KeyResponse>;
|
|
47
55
|
export declare const KeysResponse: MessageFns<KeysResponse>;
|
|
56
|
+
export declare const ValidateKeyResponse: MessageFns<ValidateKeyResponse>;
|
|
48
57
|
export interface KeyServiceClient {
|
|
49
58
|
create(request: CreateKeyRequest, metadata?: Metadata): Observable<KeyResponse>;
|
|
50
59
|
findOne(request: GetKeyByIdRequest, metadata?: Metadata): Observable<KeyResponse>;
|
|
@@ -52,6 +61,7 @@ export interface KeyServiceClient {
|
|
|
52
61
|
findAll(request: Empty, metadata?: Metadata): Observable<KeysResponse>;
|
|
53
62
|
update(request: UpdateKeyRequest, metadata?: Metadata): Observable<KeyResponse>;
|
|
54
63
|
remove(request: RemoveKeyRequest, metadata?: Metadata): Observable<Empty>;
|
|
64
|
+
validateKey(request: ValidateKeyRequest, metadata?: Metadata): Observable<ValidateKeyResponse>;
|
|
55
65
|
}
|
|
56
66
|
export interface KeyServiceController {
|
|
57
67
|
create(request: CreateKeyRequest, metadata?: Metadata): Promise<KeyResponse> | Observable<KeyResponse> | KeyResponse;
|
|
@@ -60,6 +70,7 @@ export interface KeyServiceController {
|
|
|
60
70
|
findAll(request: Empty, metadata?: Metadata): Promise<KeysResponse> | Observable<KeysResponse> | KeysResponse;
|
|
61
71
|
update(request: UpdateKeyRequest, metadata?: Metadata): Promise<KeyResponse> | Observable<KeyResponse> | KeyResponse;
|
|
62
72
|
remove(request: RemoveKeyRequest, metadata?: Metadata): void;
|
|
73
|
+
validateKey(request: ValidateKeyRequest, metadata?: Metadata): Promise<ValidateKeyResponse> | Observable<ValidateKeyResponse> | ValidateKeyResponse;
|
|
63
74
|
}
|
|
64
75
|
export declare function KeyServiceControllerMethods(): (constructor: Function) => void;
|
|
65
76
|
export declare const KEY_SERVICE_NAME = "KeyService";
|
|
@@ -119,6 +130,15 @@ export declare const KeyServiceService: {
|
|
|
119
130
|
readonly responseSerialize: (value: Empty) => Buffer;
|
|
120
131
|
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
121
132
|
};
|
|
133
|
+
readonly validateKey: {
|
|
134
|
+
readonly path: "/key.KeyService/validateKey";
|
|
135
|
+
readonly requestStream: false;
|
|
136
|
+
readonly responseStream: false;
|
|
137
|
+
readonly requestSerialize: (value: ValidateKeyRequest) => Buffer;
|
|
138
|
+
readonly requestDeserialize: (value: Buffer) => ValidateKeyRequest;
|
|
139
|
+
readonly responseSerialize: (value: ValidateKeyResponse) => Buffer;
|
|
140
|
+
readonly responseDeserialize: (value: Buffer) => ValidateKeyResponse;
|
|
141
|
+
};
|
|
122
142
|
};
|
|
123
143
|
export interface KeyServiceServer extends UntypedServiceImplementation {
|
|
124
144
|
create: handleUnaryCall<CreateKeyRequest, KeyResponse>;
|
|
@@ -127,6 +147,7 @@ export interface KeyServiceServer extends UntypedServiceImplementation {
|
|
|
127
147
|
findAll: handleUnaryCall<Empty, KeysResponse>;
|
|
128
148
|
update: handleUnaryCall<UpdateKeyRequest, KeyResponse>;
|
|
129
149
|
remove: handleUnaryCall<RemoveKeyRequest, Empty>;
|
|
150
|
+
validateKey: handleUnaryCall<ValidateKeyRequest, ValidateKeyResponse>;
|
|
130
151
|
}
|
|
131
152
|
export interface MessageFns<T> {
|
|
132
153
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
package/dist/key.interface.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.2
|
|
6
6
|
// source: key.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.KeyServiceService = exports.KEY_SERVICE_NAME = exports.KeysResponse = exports.KeyResponse = exports.RemoveKeyRequest = exports.GetKeysByUserRequest = exports.GetKeyByIdRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KEY_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.KeyServiceService = exports.KEY_SERVICE_NAME = exports.ValidateKeyResponse = exports.KeysResponse = exports.KeyResponse = exports.ValidateKeyRequest = exports.RemoveKeyRequest = exports.GetKeysByUserRequest = exports.GetKeyByIdRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KEY_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.KeyServiceControllerMethods = KeyServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
@@ -291,6 +291,39 @@ exports.RemoveKeyRequest = {
|
|
|
291
291
|
return message;
|
|
292
292
|
},
|
|
293
293
|
};
|
|
294
|
+
function createBaseValidateKeyRequest() {
|
|
295
|
+
return { secret: "" };
|
|
296
|
+
}
|
|
297
|
+
exports.ValidateKeyRequest = {
|
|
298
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
299
|
+
if (message.secret !== "") {
|
|
300
|
+
writer.uint32(10).string(message.secret);
|
|
301
|
+
}
|
|
302
|
+
return writer;
|
|
303
|
+
},
|
|
304
|
+
decode(input, length) {
|
|
305
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
306
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
307
|
+
const message = createBaseValidateKeyRequest();
|
|
308
|
+
while (reader.pos < end) {
|
|
309
|
+
const tag = reader.uint32();
|
|
310
|
+
switch (tag >>> 3) {
|
|
311
|
+
case 1: {
|
|
312
|
+
if (tag !== 10) {
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
message.secret = reader.string();
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
reader.skip(tag & 7);
|
|
323
|
+
}
|
|
324
|
+
return message;
|
|
325
|
+
},
|
|
326
|
+
};
|
|
294
327
|
function createBaseKeyResponse() {
|
|
295
328
|
return {};
|
|
296
329
|
}
|
|
@@ -357,9 +390,52 @@ exports.KeysResponse = {
|
|
|
357
390
|
return message;
|
|
358
391
|
},
|
|
359
392
|
};
|
|
393
|
+
function createBaseValidateKeyResponse() {
|
|
394
|
+
return { valid: false };
|
|
395
|
+
}
|
|
396
|
+
exports.ValidateKeyResponse = {
|
|
397
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
398
|
+
if (message.key !== undefined) {
|
|
399
|
+
exports.Key.encode(message.key, writer.uint32(10).fork()).join();
|
|
400
|
+
}
|
|
401
|
+
if (message.valid !== false) {
|
|
402
|
+
writer.uint32(16).bool(message.valid);
|
|
403
|
+
}
|
|
404
|
+
return writer;
|
|
405
|
+
},
|
|
406
|
+
decode(input, length) {
|
|
407
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
408
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
409
|
+
const message = createBaseValidateKeyResponse();
|
|
410
|
+
while (reader.pos < end) {
|
|
411
|
+
const tag = reader.uint32();
|
|
412
|
+
switch (tag >>> 3) {
|
|
413
|
+
case 1: {
|
|
414
|
+
if (tag !== 10) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.key = exports.Key.decode(reader, reader.uint32());
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
case 2: {
|
|
421
|
+
if (tag !== 16) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
message.valid = reader.bool();
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
reader.skip(tag & 7);
|
|
432
|
+
}
|
|
433
|
+
return message;
|
|
434
|
+
},
|
|
435
|
+
};
|
|
360
436
|
function KeyServiceControllerMethods() {
|
|
361
437
|
return function (constructor) {
|
|
362
|
-
const grpcMethods = ["create", "findOne", "findByUser", "findAll", "update", "remove"];
|
|
438
|
+
const grpcMethods = ["create", "findOne", "findByUser", "findAll", "update", "remove", "validateKey"];
|
|
363
439
|
for (const method of grpcMethods) {
|
|
364
440
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
365
441
|
(0, microservices_1.GrpcMethod)("KeyService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -427,4 +503,13 @@ exports.KeyServiceService = {
|
|
|
427
503
|
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
428
504
|
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
429
505
|
},
|
|
506
|
+
validateKey: {
|
|
507
|
+
path: "/key.KeyService/validateKey",
|
|
508
|
+
requestStream: false,
|
|
509
|
+
responseStream: false,
|
|
510
|
+
requestSerialize: (value) => Buffer.from(exports.ValidateKeyRequest.encode(value).finish()),
|
|
511
|
+
requestDeserialize: (value) => exports.ValidateKeyRequest.decode(value),
|
|
512
|
+
responseSerialize: (value) => Buffer.from(exports.ValidateKeyResponse.encode(value).finish()),
|
|
513
|
+
responseDeserialize: (value) => exports.ValidateKeyResponse.decode(value),
|
|
514
|
+
},
|
|
430
515
|
};
|
|
@@ -139,7 +139,7 @@ exports.StreamChunk = {
|
|
|
139
139
|
},
|
|
140
140
|
};
|
|
141
141
|
function createBaseCreateRequestRequest() {
|
|
142
|
-
return { path: "", payload: "", userId: "", priority: "", webhookUrl: "", hint: "" };
|
|
142
|
+
return { path: "", payload: "", userId: "", priority: "", webhookUrl: "", hint: "", apiKeyId: "" };
|
|
143
143
|
}
|
|
144
144
|
exports.CreateRequestRequest = {
|
|
145
145
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -161,6 +161,9 @@ exports.CreateRequestRequest = {
|
|
|
161
161
|
if (message.hint !== "") {
|
|
162
162
|
writer.uint32(50).string(message.hint);
|
|
163
163
|
}
|
|
164
|
+
if (message.apiKeyId !== "") {
|
|
165
|
+
writer.uint32(58).string(message.apiKeyId);
|
|
166
|
+
}
|
|
164
167
|
return writer;
|
|
165
168
|
},
|
|
166
169
|
decode(input, length) {
|
|
@@ -212,6 +215,13 @@ exports.CreateRequestRequest = {
|
|
|
212
215
|
message.hint = reader.string();
|
|
213
216
|
continue;
|
|
214
217
|
}
|
|
218
|
+
case 7: {
|
|
219
|
+
if (tag !== 58) {
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
message.apiKeyId = reader.string();
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
215
225
|
}
|
|
216
226
|
if ((tag & 7) === 4 || tag === 0) {
|
|
217
227
|
break;
|