@miradorlabs/web-grpc 4.23.0 → 4.25.0
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/google/api/field_behavior.ts +1 -1
- package/google/protobuf/descriptor.ts +1 -1
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +1 -1
- package/proto/gateway/common/v1/attribute_value.ts +1 -1
- package/proto/gateway/common/v1/status.ts +1 -1
- package/proto/gateway/common/v1/types.ts +1 -1
- package/proto/gateway/web/v1/account_gateway.ts +1 -1
- package/proto/gateway/web/v1/admin_gateway.ts +158 -1210
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +52 -158
- package/proto/gateway/web/v1/admin_gateway_pb.js +224 -2187
- package/proto/gateway/web/v1/ai_gateway.ts +495 -752
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +4 -4
- package/proto/gateway/web/v1/ai_gateway_pb.js +830 -778
- package/proto/gateway/web/v1/attribute_value.ts +1 -1
- package/proto/gateway/web/v1/beta_gateway.ts +1 -1
- package/proto/gateway/web/v1/chain_gateway.ts +1 -1
- package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1 -1
- package/proto/gateway/web/v1/common.ts +1 -1
- package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/desktop_auth_gateway.ts +1 -1
- package/proto/gateway/web/v1/github_connector.ts +1 -1
- package/proto/gateway/web/v1/integration_gateway.ts +1 -1
- package/proto/gateway/web/v1/log_gateway.ts +1 -1
- package/proto/gateway/web/v1/market_gateway.ts +1 -1
- package/proto/gateway/web/v1/metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/notification_gateway.ts +1 -1
- package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
- package/proto/gateway/web/v1/plan_gateway.ts +1 -1
- package/proto/gateway/web/v1/policy_gateway.ts +1 -1
- package/proto/gateway/web/v1/reference_gateway.ts +1 -1
- package/proto/gateway/web/v1/rule_gateway.ts +1 -1
- package/proto/gateway/web/v1/slo_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.21.1
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: proto/gateway/web/v1/admin_gateway.proto
|
|
6
6
|
|
|
@@ -145,7 +145,7 @@ export function adminUsageGroupSortToJSON(object: AdminUsageGroupSort): string {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
/** AITask mirrors ai.api.v1.AITask: an AI job
|
|
148
|
+
/** AITask mirrors ai.api.v1.AITask: an AI job whose model staff choose. */
|
|
149
149
|
export enum AITask {
|
|
150
150
|
AI_TASK_UNSPECIFIED = 0,
|
|
151
151
|
AI_TASK_SESSION_INSIGHT = 1,
|
|
@@ -605,124 +605,46 @@ export interface UserDetails {
|
|
|
605
605
|
name: string;
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
export interface
|
|
608
|
+
export interface ListAITaskModelsRequest {
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
export interface
|
|
611
|
+
export interface ListAITaskModelsResponse {
|
|
612
612
|
status:
|
|
613
613
|
| ResponseStatus
|
|
614
614
|
| undefined;
|
|
615
615
|
/** In AITask order. */
|
|
616
|
-
|
|
616
|
+
taskModels: AITaskModel[];
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
/**
|
|
620
|
-
|
|
621
|
-
* code, its active revision, and the code-owned parts its prompt is sent with.
|
|
622
|
-
*/
|
|
623
|
-
export interface AITaskDefinition {
|
|
619
|
+
/** AITaskModel mirrors ai.api.v1.AITaskModel: one AI job and the model it runs. The prompt is code, never shown here. */
|
|
620
|
+
export interface AITaskModel {
|
|
624
621
|
task: AITask;
|
|
625
622
|
/** "Session insights", "Project insights". */
|
|
626
623
|
displayName: string;
|
|
627
|
-
/** One sentence on what the job does. */
|
|
628
|
-
description: string;
|
|
629
|
-
/** Unset when no revision is active: the job runs built_in_instruction on its chart model. */
|
|
630
|
-
activation:
|
|
631
|
-
| AITaskActivation
|
|
632
|
-
| undefined;
|
|
633
|
-
/** The answer's JSON schema, read-only. */
|
|
634
|
-
schemaJson: string;
|
|
635
|
-
/** Text the job appends to the prompt (the enum vocabularies), read-only; empty when it appends none. */
|
|
636
|
-
appendedInstruction: string;
|
|
637
624
|
/**
|
|
638
|
-
* The
|
|
639
|
-
*
|
|
625
|
+
* The model staff chose, as "<publisher>/<model>"; empty when none was chosen, so the job runs its chart's
|
|
626
|
+
* config.model.
|
|
640
627
|
*/
|
|
641
|
-
builtInInstruction: string;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
/** AITaskActivation is a job's active revision and who activated it, when. */
|
|
645
|
-
export interface AITaskActivation {
|
|
646
|
-
revision:
|
|
647
|
-
| AITaskRevision
|
|
648
|
-
| undefined;
|
|
649
|
-
/** The Mirador account user id. */
|
|
650
|
-
activatedByUserId: string;
|
|
651
|
-
activateTime: Date | undefined;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
/** AITaskRevision is one saved, immutable revision of a job's model and prompt. */
|
|
655
|
-
export interface AITaskRevision {
|
|
656
|
-
id: string;
|
|
657
|
-
task: AITask;
|
|
658
|
-
/** Counts the job's revisions from 1, for display ("v7"). */
|
|
659
|
-
number: number;
|
|
660
628
|
model: string;
|
|
661
|
-
/**
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
createdByUserId: string;
|
|
666
|
-
createTime: Date | undefined;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
export interface ListAITaskRevisionsRequest {
|
|
670
|
-
/** The parent: UNSPECIFIED or an unknown value is a validation error. */
|
|
671
|
-
task: AITask;
|
|
672
|
-
/** The server default (10) when 0, coerced to 20 above it; negative is a validation error. */
|
|
673
|
-
pageSize: number;
|
|
674
|
-
/** From a prior response with the same task; any other token is a validation error. */
|
|
675
|
-
pageToken: string;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
export interface ListAITaskRevisionsResponse {
|
|
679
|
-
status: ResponseStatus | undefined;
|
|
680
|
-
revisions: AITaskRevision[];
|
|
681
|
-
/** Empty once the last page has been returned. */
|
|
682
|
-
nextPageToken: string;
|
|
629
|
+
/** Account's user id of whoever chose the model; empty with model. */
|
|
630
|
+
updateUserId: string;
|
|
631
|
+
/** When the model was chosen; unset with model. */
|
|
632
|
+
updateTime: Date | undefined;
|
|
683
633
|
}
|
|
684
634
|
|
|
685
|
-
export interface
|
|
686
|
-
/** UNSPECIFIED
|
|
635
|
+
export interface UpdateAITaskModelRequest {
|
|
636
|
+
/** UNSPECIFIED, an unknown or a retired value is a validation error. */
|
|
687
637
|
task: AITask;
|
|
688
638
|
/**
|
|
689
|
-
*
|
|
690
|
-
*
|
|
639
|
+
* "<publisher>/<model>": two non-empty parts of ASCII letters, digits and . _ - @ :, at most 128 bytes; anything
|
|
640
|
+
* else is a validation error. Only its shape is checked.
|
|
691
641
|
*/
|
|
692
642
|
model: string;
|
|
693
|
-
/**
|
|
694
|
-
* Valid UTF-8 without NUL, non-blank, at most 64 KiB, stored byte for byte; anything else is a validation error.
|
|
695
|
-
* The job sends it followed by appended_instruction.
|
|
696
|
-
*/
|
|
697
|
-
instruction: string;
|
|
698
|
-
/** What changed and why: valid UTF-8 without NUL, at most 1 KiB; anything else is a validation error. */
|
|
699
|
-
note: string;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
export interface CreateAITaskRevisionResponse {
|
|
703
|
-
status: ResponseStatus | undefined;
|
|
704
|
-
revision: AITaskRevision | undefined;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
export interface ActivateAITaskRevisionRequest {
|
|
708
|
-
/** UNSPECIFIED or an unknown value is a validation error. */
|
|
709
|
-
task: AITask;
|
|
710
|
-
/** A revision of task; a malformed id is a validation error, another job's revision or an unknown id is not found. */
|
|
711
|
-
revisionId: string;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
export interface ActivateAITaskRevisionResponse {
|
|
715
|
-
status: ResponseStatus | undefined;
|
|
716
|
-
activation: AITaskActivation | undefined;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
export interface DeactivateAITaskRevisionRequest {
|
|
720
|
-
/** UNSPECIFIED or an unknown value is a validation error. */
|
|
721
|
-
task: AITask;
|
|
722
643
|
}
|
|
723
644
|
|
|
724
|
-
export interface
|
|
645
|
+
export interface UpdateAITaskModelResponse {
|
|
725
646
|
status: ResponseStatus | undefined;
|
|
647
|
+
taskModel: AITaskModel | undefined;
|
|
726
648
|
}
|
|
727
649
|
|
|
728
650
|
function createBaseGetAdminStatusRequest(): GetAdminStatusRequest {
|
|
@@ -5380,16 +5302,16 @@ export const UserDetails: MessageFns<UserDetails> = {
|
|
|
5380
5302
|
},
|
|
5381
5303
|
};
|
|
5382
5304
|
|
|
5383
|
-
function
|
|
5305
|
+
function createBaseListAITaskModelsRequest(): ListAITaskModelsRequest {
|
|
5384
5306
|
return {};
|
|
5385
5307
|
}
|
|
5386
5308
|
|
|
5387
|
-
export const
|
|
5388
|
-
encode(_:
|
|
5309
|
+
export const ListAITaskModelsRequest: MessageFns<ListAITaskModelsRequest> = {
|
|
5310
|
+
encode(_: ListAITaskModelsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5389
5311
|
return writer;
|
|
5390
5312
|
},
|
|
5391
5313
|
|
|
5392
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
5314
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListAITaskModelsRequest {
|
|
5393
5315
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5394
5316
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
5395
5317
|
if (previousRecursionDepth >= 100) {
|
|
@@ -5398,7 +5320,7 @@ export const ListAITasksRequest: MessageFns<ListAITasksRequest> = {
|
|
|
5398
5320
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5399
5321
|
try {
|
|
5400
5322
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5401
|
-
const message =
|
|
5323
|
+
const message = createBaseListAITaskModelsRequest();
|
|
5402
5324
|
while (reader.pos < end) {
|
|
5403
5325
|
const tag = reader.uint32();
|
|
5404
5326
|
switch (tag >>> 3) {
|
|
@@ -5414,40 +5336,40 @@ export const ListAITasksRequest: MessageFns<ListAITasksRequest> = {
|
|
|
5414
5336
|
}
|
|
5415
5337
|
},
|
|
5416
5338
|
|
|
5417
|
-
fromJSON(_: any):
|
|
5339
|
+
fromJSON(_: any): ListAITaskModelsRequest {
|
|
5418
5340
|
return {};
|
|
5419
5341
|
},
|
|
5420
5342
|
|
|
5421
|
-
toJSON(_:
|
|
5343
|
+
toJSON(_: ListAITaskModelsRequest): unknown {
|
|
5422
5344
|
const obj: any = {};
|
|
5423
5345
|
return obj;
|
|
5424
5346
|
},
|
|
5425
5347
|
|
|
5426
|
-
create<I extends Exact<DeepPartial<
|
|
5427
|
-
return
|
|
5348
|
+
create<I extends Exact<DeepPartial<ListAITaskModelsRequest>, I>>(base?: I): ListAITaskModelsRequest {
|
|
5349
|
+
return ListAITaskModelsRequest.fromPartial(base ?? ({} as any));
|
|
5428
5350
|
},
|
|
5429
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
5430
|
-
const message =
|
|
5351
|
+
fromPartial<I extends Exact<DeepPartial<ListAITaskModelsRequest>, I>>(_: I): ListAITaskModelsRequest {
|
|
5352
|
+
const message = createBaseListAITaskModelsRequest();
|
|
5431
5353
|
return message;
|
|
5432
5354
|
},
|
|
5433
5355
|
};
|
|
5434
5356
|
|
|
5435
|
-
function
|
|
5436
|
-
return { status: undefined,
|
|
5357
|
+
function createBaseListAITaskModelsResponse(): ListAITaskModelsResponse {
|
|
5358
|
+
return { status: undefined, taskModels: [] };
|
|
5437
5359
|
}
|
|
5438
5360
|
|
|
5439
|
-
export const
|
|
5440
|
-
encode(message:
|
|
5361
|
+
export const ListAITaskModelsResponse: MessageFns<ListAITaskModelsResponse> = {
|
|
5362
|
+
encode(message: ListAITaskModelsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5441
5363
|
if (message.status !== undefined) {
|
|
5442
5364
|
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
5443
5365
|
}
|
|
5444
|
-
for (const v of message.
|
|
5445
|
-
|
|
5366
|
+
for (const v of message.taskModels) {
|
|
5367
|
+
AITaskModel.encode(v!, writer.uint32(18).fork()).join();
|
|
5446
5368
|
}
|
|
5447
5369
|
return writer;
|
|
5448
5370
|
},
|
|
5449
5371
|
|
|
5450
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
5372
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListAITaskModelsResponse {
|
|
5451
5373
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5452
5374
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
5453
5375
|
if (previousRecursionDepth >= 100) {
|
|
@@ -5456,7 +5378,7 @@ export const ListAITasksResponse: MessageFns<ListAITasksResponse> = {
|
|
|
5456
5378
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5457
5379
|
try {
|
|
5458
5380
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5459
|
-
const message =
|
|
5381
|
+
const message = createBaseListAITaskModelsResponse();
|
|
5460
5382
|
while (reader.pos < end) {
|
|
5461
5383
|
const tag = reader.uint32();
|
|
5462
5384
|
switch (tag >>> 3) {
|
|
@@ -5473,7 +5395,7 @@ export const ListAITasksResponse: MessageFns<ListAITasksResponse> = {
|
|
|
5473
5395
|
break;
|
|
5474
5396
|
}
|
|
5475
5397
|
|
|
5476
|
-
message.
|
|
5398
|
+
message.taskModels.push(AITaskModel.decode(reader, reader.uint32()));
|
|
5477
5399
|
continue;
|
|
5478
5400
|
}
|
|
5479
5401
|
}
|
|
@@ -5488,76 +5410,66 @@ export const ListAITasksResponse: MessageFns<ListAITasksResponse> = {
|
|
|
5488
5410
|
}
|
|
5489
5411
|
},
|
|
5490
5412
|
|
|
5491
|
-
fromJSON(object: any):
|
|
5413
|
+
fromJSON(object: any): ListAITaskModelsResponse {
|
|
5492
5414
|
return {
|
|
5493
5415
|
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
5494
|
-
|
|
5416
|
+
taskModels: globalThis.Array.isArray(object?.taskModels)
|
|
5417
|
+
? object.taskModels.map((e: any) => AITaskModel.fromJSON(e))
|
|
5418
|
+
: globalThis.Array.isArray(object?.task_models)
|
|
5419
|
+
? object.task_models.map((e: any) => AITaskModel.fromJSON(e))
|
|
5420
|
+
: [],
|
|
5495
5421
|
};
|
|
5496
5422
|
},
|
|
5497
5423
|
|
|
5498
|
-
toJSON(message:
|
|
5424
|
+
toJSON(message: ListAITaskModelsResponse): unknown {
|
|
5499
5425
|
const obj: any = {};
|
|
5500
5426
|
if (message.status !== undefined) {
|
|
5501
5427
|
obj.status = ResponseStatus.toJSON(message.status);
|
|
5502
5428
|
}
|
|
5503
|
-
if (message.
|
|
5504
|
-
obj.
|
|
5429
|
+
if (message.taskModels?.length) {
|
|
5430
|
+
obj.taskModels = message.taskModels.map((e) => AITaskModel.toJSON(e));
|
|
5505
5431
|
}
|
|
5506
5432
|
return obj;
|
|
5507
5433
|
},
|
|
5508
5434
|
|
|
5509
|
-
create<I extends Exact<DeepPartial<
|
|
5510
|
-
return
|
|
5435
|
+
create<I extends Exact<DeepPartial<ListAITaskModelsResponse>, I>>(base?: I): ListAITaskModelsResponse {
|
|
5436
|
+
return ListAITaskModelsResponse.fromPartial(base ?? ({} as any));
|
|
5511
5437
|
},
|
|
5512
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
5513
|
-
const message =
|
|
5438
|
+
fromPartial<I extends Exact<DeepPartial<ListAITaskModelsResponse>, I>>(object: I): ListAITaskModelsResponse {
|
|
5439
|
+
const message = createBaseListAITaskModelsResponse();
|
|
5514
5440
|
message.status = (object.status !== undefined && object.status !== null)
|
|
5515
5441
|
? ResponseStatus.fromPartial(object.status)
|
|
5516
5442
|
: undefined;
|
|
5517
|
-
message.
|
|
5443
|
+
message.taskModels = object.taskModels?.map((e) => AITaskModel.fromPartial(e)) || [];
|
|
5518
5444
|
return message;
|
|
5519
5445
|
},
|
|
5520
5446
|
};
|
|
5521
5447
|
|
|
5522
|
-
function
|
|
5523
|
-
return {
|
|
5524
|
-
task: 0,
|
|
5525
|
-
displayName: "",
|
|
5526
|
-
description: "",
|
|
5527
|
-
activation: undefined,
|
|
5528
|
-
schemaJson: "",
|
|
5529
|
-
appendedInstruction: "",
|
|
5530
|
-
builtInInstruction: "",
|
|
5531
|
-
};
|
|
5448
|
+
function createBaseAITaskModel(): AITaskModel {
|
|
5449
|
+
return { task: 0, displayName: "", model: "", updateUserId: "", updateTime: undefined };
|
|
5532
5450
|
}
|
|
5533
5451
|
|
|
5534
|
-
export const
|
|
5535
|
-
encode(message:
|
|
5452
|
+
export const AITaskModel: MessageFns<AITaskModel> = {
|
|
5453
|
+
encode(message: AITaskModel, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5536
5454
|
if (message.task !== 0) {
|
|
5537
5455
|
writer.uint32(8).int32(message.task);
|
|
5538
5456
|
}
|
|
5539
5457
|
if (message.displayName !== "") {
|
|
5540
5458
|
writer.uint32(18).string(message.displayName);
|
|
5541
5459
|
}
|
|
5542
|
-
if (message.
|
|
5543
|
-
writer.uint32(26).string(message.
|
|
5544
|
-
}
|
|
5545
|
-
if (message.activation !== undefined) {
|
|
5546
|
-
AITaskActivation.encode(message.activation, writer.uint32(34).fork()).join();
|
|
5547
|
-
}
|
|
5548
|
-
if (message.schemaJson !== "") {
|
|
5549
|
-
writer.uint32(42).string(message.schemaJson);
|
|
5460
|
+
if (message.model !== "") {
|
|
5461
|
+
writer.uint32(26).string(message.model);
|
|
5550
5462
|
}
|
|
5551
|
-
if (message.
|
|
5552
|
-
writer.uint32(
|
|
5463
|
+
if (message.updateUserId !== "") {
|
|
5464
|
+
writer.uint32(34).string(message.updateUserId);
|
|
5553
5465
|
}
|
|
5554
|
-
if (message.
|
|
5555
|
-
writer.uint32(
|
|
5466
|
+
if (message.updateTime !== undefined) {
|
|
5467
|
+
Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(42).fork()).join();
|
|
5556
5468
|
}
|
|
5557
5469
|
return writer;
|
|
5558
5470
|
},
|
|
5559
5471
|
|
|
5560
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
5472
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AITaskModel {
|
|
5561
5473
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5562
5474
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
5563
5475
|
if (previousRecursionDepth >= 100) {
|
|
@@ -5566,7 +5478,7 @@ export const AITaskDefinition: MessageFns<AITaskDefinition> = {
|
|
|
5566
5478
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5567
5479
|
try {
|
|
5568
5480
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5569
|
-
const message =
|
|
5481
|
+
const message = createBaseAITaskModel();
|
|
5570
5482
|
while (reader.pos < end) {
|
|
5571
5483
|
const tag = reader.uint32();
|
|
5572
5484
|
switch (tag >>> 3) {
|
|
@@ -5591,7 +5503,7 @@ export const AITaskDefinition: MessageFns<AITaskDefinition> = {
|
|
|
5591
5503
|
break;
|
|
5592
5504
|
}
|
|
5593
5505
|
|
|
5594
|
-
message.
|
|
5506
|
+
message.model = reader.string();
|
|
5595
5507
|
continue;
|
|
5596
5508
|
}
|
|
5597
5509
|
case 4: {
|
|
@@ -5599,7 +5511,7 @@ export const AITaskDefinition: MessageFns<AITaskDefinition> = {
|
|
|
5599
5511
|
break;
|
|
5600
5512
|
}
|
|
5601
5513
|
|
|
5602
|
-
message.
|
|
5514
|
+
message.updateUserId = reader.string();
|
|
5603
5515
|
continue;
|
|
5604
5516
|
}
|
|
5605
5517
|
case 5: {
|
|
@@ -5607,23 +5519,7 @@ export const AITaskDefinition: MessageFns<AITaskDefinition> = {
|
|
|
5607
5519
|
break;
|
|
5608
5520
|
}
|
|
5609
5521
|
|
|
5610
|
-
message.
|
|
5611
|
-
continue;
|
|
5612
|
-
}
|
|
5613
|
-
case 6: {
|
|
5614
|
-
if (tag !== 50) {
|
|
5615
|
-
break;
|
|
5616
|
-
}
|
|
5617
|
-
|
|
5618
|
-
message.appendedInstruction = reader.string();
|
|
5619
|
-
continue;
|
|
5620
|
-
}
|
|
5621
|
-
case 7: {
|
|
5622
|
-
if (tag !== 58) {
|
|
5623
|
-
break;
|
|
5624
|
-
}
|
|
5625
|
-
|
|
5626
|
-
message.builtInInstruction = reader.string();
|
|
5522
|
+
message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
5627
5523
|
continue;
|
|
5628
5524
|
}
|
|
5629
5525
|
}
|
|
@@ -5638,7 +5534,7 @@ export const AITaskDefinition: MessageFns<AITaskDefinition> = {
|
|
|
5638
5534
|
}
|
|
5639
5535
|
},
|
|
5640
5536
|
|
|
5641
|
-
fromJSON(object: any):
|
|
5537
|
+
fromJSON(object: any): AITaskModel {
|
|
5642
5538
|
return {
|
|
5643
5539
|
task: isSet(object.task) ? aITaskFromJSON(object.task) : 0,
|
|
5644
5540
|
displayName: isSet(object.displayName)
|
|
@@ -5646,27 +5542,21 @@ export const AITaskDefinition: MessageFns<AITaskDefinition> = {
|
|
|
5646
5542
|
: isSet(object.display_name)
|
|
5647
5543
|
? globalThis.String(object.display_name)
|
|
5648
5544
|
: "",
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
? globalThis.String(object.schema_json)
|
|
5655
|
-
: "",
|
|
5656
|
-
appendedInstruction: isSet(object.appendedInstruction)
|
|
5657
|
-
? globalThis.String(object.appendedInstruction)
|
|
5658
|
-
: isSet(object.appended_instruction)
|
|
5659
|
-
? globalThis.String(object.appended_instruction)
|
|
5660
|
-
: "",
|
|
5661
|
-
builtInInstruction: isSet(object.builtInInstruction)
|
|
5662
|
-
? globalThis.String(object.builtInInstruction)
|
|
5663
|
-
: isSet(object.built_in_instruction)
|
|
5664
|
-
? globalThis.String(object.built_in_instruction)
|
|
5545
|
+
model: isSet(object.model) ? globalThis.String(object.model) : "",
|
|
5546
|
+
updateUserId: isSet(object.updateUserId)
|
|
5547
|
+
? globalThis.String(object.updateUserId)
|
|
5548
|
+
: isSet(object.update_user_id)
|
|
5549
|
+
? globalThis.String(object.update_user_id)
|
|
5665
5550
|
: "",
|
|
5551
|
+
updateTime: isSet(object.updateTime)
|
|
5552
|
+
? fromJsonTimestamp(object.updateTime)
|
|
5553
|
+
: isSet(object.update_time)
|
|
5554
|
+
? fromJsonTimestamp(object.update_time)
|
|
5555
|
+
: undefined,
|
|
5666
5556
|
};
|
|
5667
5557
|
},
|
|
5668
5558
|
|
|
5669
|
-
toJSON(message:
|
|
5559
|
+
toJSON(message: AITaskModel): unknown {
|
|
5670
5560
|
const obj: any = {};
|
|
5671
5561
|
if (message.task !== 0) {
|
|
5672
5562
|
obj.task = aITaskToJSON(message.task);
|
|
@@ -5674,196 +5564,48 @@ export const AITaskDefinition: MessageFns<AITaskDefinition> = {
|
|
|
5674
5564
|
if (message.displayName !== "") {
|
|
5675
5565
|
obj.displayName = message.displayName;
|
|
5676
5566
|
}
|
|
5677
|
-
if (message.
|
|
5678
|
-
obj.
|
|
5679
|
-
}
|
|
5680
|
-
if (message.activation !== undefined) {
|
|
5681
|
-
obj.activation = AITaskActivation.toJSON(message.activation);
|
|
5682
|
-
}
|
|
5683
|
-
if (message.schemaJson !== "") {
|
|
5684
|
-
obj.schemaJson = message.schemaJson;
|
|
5567
|
+
if (message.model !== "") {
|
|
5568
|
+
obj.model = message.model;
|
|
5685
5569
|
}
|
|
5686
|
-
if (message.
|
|
5687
|
-
obj.
|
|
5570
|
+
if (message.updateUserId !== "") {
|
|
5571
|
+
obj.updateUserId = message.updateUserId;
|
|
5688
5572
|
}
|
|
5689
|
-
if (message.
|
|
5690
|
-
obj.
|
|
5573
|
+
if (message.updateTime !== undefined) {
|
|
5574
|
+
obj.updateTime = message.updateTime.toISOString();
|
|
5691
5575
|
}
|
|
5692
5576
|
return obj;
|
|
5693
5577
|
},
|
|
5694
5578
|
|
|
5695
|
-
create<I extends Exact<DeepPartial<
|
|
5696
|
-
return
|
|
5579
|
+
create<I extends Exact<DeepPartial<AITaskModel>, I>>(base?: I): AITaskModel {
|
|
5580
|
+
return AITaskModel.fromPartial(base ?? ({} as any));
|
|
5697
5581
|
},
|
|
5698
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
5699
|
-
const message =
|
|
5582
|
+
fromPartial<I extends Exact<DeepPartial<AITaskModel>, I>>(object: I): AITaskModel {
|
|
5583
|
+
const message = createBaseAITaskModel();
|
|
5700
5584
|
message.task = object.task ?? 0;
|
|
5701
5585
|
message.displayName = object.displayName ?? "";
|
|
5702
|
-
message.
|
|
5703
|
-
message.
|
|
5704
|
-
|
|
5705
|
-
: undefined;
|
|
5706
|
-
message.schemaJson = object.schemaJson ?? "";
|
|
5707
|
-
message.appendedInstruction = object.appendedInstruction ?? "";
|
|
5708
|
-
message.builtInInstruction = object.builtInInstruction ?? "";
|
|
5709
|
-
return message;
|
|
5710
|
-
},
|
|
5711
|
-
};
|
|
5712
|
-
|
|
5713
|
-
function createBaseAITaskActivation(): AITaskActivation {
|
|
5714
|
-
return { revision: undefined, activatedByUserId: "", activateTime: undefined };
|
|
5715
|
-
}
|
|
5716
|
-
|
|
5717
|
-
export const AITaskActivation: MessageFns<AITaskActivation> = {
|
|
5718
|
-
encode(message: AITaskActivation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5719
|
-
if (message.revision !== undefined) {
|
|
5720
|
-
AITaskRevision.encode(message.revision, writer.uint32(10).fork()).join();
|
|
5721
|
-
}
|
|
5722
|
-
if (message.activatedByUserId !== "") {
|
|
5723
|
-
writer.uint32(18).string(message.activatedByUserId);
|
|
5724
|
-
}
|
|
5725
|
-
if (message.activateTime !== undefined) {
|
|
5726
|
-
Timestamp.encode(toTimestamp(message.activateTime), writer.uint32(26).fork()).join();
|
|
5727
|
-
}
|
|
5728
|
-
return writer;
|
|
5729
|
-
},
|
|
5730
|
-
|
|
5731
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AITaskActivation {
|
|
5732
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5733
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
5734
|
-
if (previousRecursionDepth >= 100) {
|
|
5735
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5736
|
-
}
|
|
5737
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5738
|
-
try {
|
|
5739
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5740
|
-
const message = createBaseAITaskActivation();
|
|
5741
|
-
while (reader.pos < end) {
|
|
5742
|
-
const tag = reader.uint32();
|
|
5743
|
-
switch (tag >>> 3) {
|
|
5744
|
-
case 1: {
|
|
5745
|
-
if (tag !== 10) {
|
|
5746
|
-
break;
|
|
5747
|
-
}
|
|
5748
|
-
|
|
5749
|
-
message.revision = AITaskRevision.decode(reader, reader.uint32());
|
|
5750
|
-
continue;
|
|
5751
|
-
}
|
|
5752
|
-
case 2: {
|
|
5753
|
-
if (tag !== 18) {
|
|
5754
|
-
break;
|
|
5755
|
-
}
|
|
5756
|
-
|
|
5757
|
-
message.activatedByUserId = reader.string();
|
|
5758
|
-
continue;
|
|
5759
|
-
}
|
|
5760
|
-
case 3: {
|
|
5761
|
-
if (tag !== 26) {
|
|
5762
|
-
break;
|
|
5763
|
-
}
|
|
5764
|
-
|
|
5765
|
-
message.activateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
5766
|
-
continue;
|
|
5767
|
-
}
|
|
5768
|
-
}
|
|
5769
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5770
|
-
break;
|
|
5771
|
-
}
|
|
5772
|
-
reader.skip(tag & 7);
|
|
5773
|
-
}
|
|
5774
|
-
return message;
|
|
5775
|
-
} finally {
|
|
5776
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
5777
|
-
}
|
|
5778
|
-
},
|
|
5779
|
-
|
|
5780
|
-
fromJSON(object: any): AITaskActivation {
|
|
5781
|
-
return {
|
|
5782
|
-
revision: isSet(object.revision) ? AITaskRevision.fromJSON(object.revision) : undefined,
|
|
5783
|
-
activatedByUserId: isSet(object.activatedByUserId)
|
|
5784
|
-
? globalThis.String(object.activatedByUserId)
|
|
5785
|
-
: isSet(object.activated_by_user_id)
|
|
5786
|
-
? globalThis.String(object.activated_by_user_id)
|
|
5787
|
-
: "",
|
|
5788
|
-
activateTime: isSet(object.activateTime)
|
|
5789
|
-
? fromJsonTimestamp(object.activateTime)
|
|
5790
|
-
: isSet(object.activate_time)
|
|
5791
|
-
? fromJsonTimestamp(object.activate_time)
|
|
5792
|
-
: undefined,
|
|
5793
|
-
};
|
|
5794
|
-
},
|
|
5795
|
-
|
|
5796
|
-
toJSON(message: AITaskActivation): unknown {
|
|
5797
|
-
const obj: any = {};
|
|
5798
|
-
if (message.revision !== undefined) {
|
|
5799
|
-
obj.revision = AITaskRevision.toJSON(message.revision);
|
|
5800
|
-
}
|
|
5801
|
-
if (message.activatedByUserId !== "") {
|
|
5802
|
-
obj.activatedByUserId = message.activatedByUserId;
|
|
5803
|
-
}
|
|
5804
|
-
if (message.activateTime !== undefined) {
|
|
5805
|
-
obj.activateTime = message.activateTime.toISOString();
|
|
5806
|
-
}
|
|
5807
|
-
return obj;
|
|
5808
|
-
},
|
|
5809
|
-
|
|
5810
|
-
create<I extends Exact<DeepPartial<AITaskActivation>, I>>(base?: I): AITaskActivation {
|
|
5811
|
-
return AITaskActivation.fromPartial(base ?? ({} as any));
|
|
5812
|
-
},
|
|
5813
|
-
fromPartial<I extends Exact<DeepPartial<AITaskActivation>, I>>(object: I): AITaskActivation {
|
|
5814
|
-
const message = createBaseAITaskActivation();
|
|
5815
|
-
message.revision = (object.revision !== undefined && object.revision !== null)
|
|
5816
|
-
? AITaskRevision.fromPartial(object.revision)
|
|
5817
|
-
: undefined;
|
|
5818
|
-
message.activatedByUserId = object.activatedByUserId ?? "";
|
|
5819
|
-
message.activateTime = object.activateTime ?? undefined;
|
|
5586
|
+
message.model = object.model ?? "";
|
|
5587
|
+
message.updateUserId = object.updateUserId ?? "";
|
|
5588
|
+
message.updateTime = object.updateTime ?? undefined;
|
|
5820
5589
|
return message;
|
|
5821
5590
|
},
|
|
5822
5591
|
};
|
|
5823
5592
|
|
|
5824
|
-
function
|
|
5825
|
-
return {
|
|
5826
|
-
id: "",
|
|
5827
|
-
task: 0,
|
|
5828
|
-
number: 0,
|
|
5829
|
-
model: "",
|
|
5830
|
-
instruction: "",
|
|
5831
|
-
note: "",
|
|
5832
|
-
createdByUserId: "",
|
|
5833
|
-
createTime: undefined,
|
|
5834
|
-
};
|
|
5593
|
+
function createBaseUpdateAITaskModelRequest(): UpdateAITaskModelRequest {
|
|
5594
|
+
return { task: 0, model: "" };
|
|
5835
5595
|
}
|
|
5836
5596
|
|
|
5837
|
-
export const
|
|
5838
|
-
encode(message:
|
|
5839
|
-
if (message.id !== "") {
|
|
5840
|
-
writer.uint32(10).string(message.id);
|
|
5841
|
-
}
|
|
5597
|
+
export const UpdateAITaskModelRequest: MessageFns<UpdateAITaskModelRequest> = {
|
|
5598
|
+
encode(message: UpdateAITaskModelRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5842
5599
|
if (message.task !== 0) {
|
|
5843
|
-
writer.uint32(
|
|
5844
|
-
}
|
|
5845
|
-
if (message.number !== 0) {
|
|
5846
|
-
writer.uint32(24).int32(message.number);
|
|
5600
|
+
writer.uint32(8).int32(message.task);
|
|
5847
5601
|
}
|
|
5848
5602
|
if (message.model !== "") {
|
|
5849
|
-
writer.uint32(
|
|
5850
|
-
}
|
|
5851
|
-
if (message.instruction !== "") {
|
|
5852
|
-
writer.uint32(42).string(message.instruction);
|
|
5853
|
-
}
|
|
5854
|
-
if (message.note !== "") {
|
|
5855
|
-
writer.uint32(50).string(message.note);
|
|
5856
|
-
}
|
|
5857
|
-
if (message.createdByUserId !== "") {
|
|
5858
|
-
writer.uint32(58).string(message.createdByUserId);
|
|
5859
|
-
}
|
|
5860
|
-
if (message.createTime !== undefined) {
|
|
5861
|
-
Timestamp.encode(toTimestamp(message.createTime), writer.uint32(66).fork()).join();
|
|
5603
|
+
writer.uint32(18).string(message.model);
|
|
5862
5604
|
}
|
|
5863
5605
|
return writer;
|
|
5864
5606
|
},
|
|
5865
5607
|
|
|
5866
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
5608
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpdateAITaskModelRequest {
|
|
5867
5609
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5868
5610
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
5869
5611
|
if (previousRecursionDepth >= 100) {
|
|
@@ -5872,74 +5614,26 @@ export const AITaskRevision: MessageFns<AITaskRevision> = {
|
|
|
5872
5614
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5873
5615
|
try {
|
|
5874
5616
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5875
|
-
const message =
|
|
5617
|
+
const message = createBaseUpdateAITaskModelRequest();
|
|
5876
5618
|
while (reader.pos < end) {
|
|
5877
5619
|
const tag = reader.uint32();
|
|
5878
5620
|
switch (tag >>> 3) {
|
|
5879
5621
|
case 1: {
|
|
5880
|
-
if (tag !==
|
|
5881
|
-
break;
|
|
5882
|
-
}
|
|
5883
|
-
|
|
5884
|
-
message.id = reader.string();
|
|
5885
|
-
continue;
|
|
5886
|
-
}
|
|
5887
|
-
case 2: {
|
|
5888
|
-
if (tag !== 16) {
|
|
5622
|
+
if (tag !== 8) {
|
|
5889
5623
|
break;
|
|
5890
5624
|
}
|
|
5891
5625
|
|
|
5892
5626
|
message.task = reader.int32() as any;
|
|
5893
5627
|
continue;
|
|
5894
5628
|
}
|
|
5895
|
-
case
|
|
5896
|
-
if (tag !==
|
|
5897
|
-
break;
|
|
5898
|
-
}
|
|
5899
|
-
|
|
5900
|
-
message.number = reader.int32();
|
|
5901
|
-
continue;
|
|
5902
|
-
}
|
|
5903
|
-
case 4: {
|
|
5904
|
-
if (tag !== 34) {
|
|
5629
|
+
case 2: {
|
|
5630
|
+
if (tag !== 18) {
|
|
5905
5631
|
break;
|
|
5906
5632
|
}
|
|
5907
5633
|
|
|
5908
5634
|
message.model = reader.string();
|
|
5909
5635
|
continue;
|
|
5910
5636
|
}
|
|
5911
|
-
case 5: {
|
|
5912
|
-
if (tag !== 42) {
|
|
5913
|
-
break;
|
|
5914
|
-
}
|
|
5915
|
-
|
|
5916
|
-
message.instruction = reader.string();
|
|
5917
|
-
continue;
|
|
5918
|
-
}
|
|
5919
|
-
case 6: {
|
|
5920
|
-
if (tag !== 50) {
|
|
5921
|
-
break;
|
|
5922
|
-
}
|
|
5923
|
-
|
|
5924
|
-
message.note = reader.string();
|
|
5925
|
-
continue;
|
|
5926
|
-
}
|
|
5927
|
-
case 7: {
|
|
5928
|
-
if (tag !== 58) {
|
|
5929
|
-
break;
|
|
5930
|
-
}
|
|
5931
|
-
|
|
5932
|
-
message.createdByUserId = reader.string();
|
|
5933
|
-
continue;
|
|
5934
|
-
}
|
|
5935
|
-
case 8: {
|
|
5936
|
-
if (tag !== 66) {
|
|
5937
|
-
break;
|
|
5938
|
-
}
|
|
5939
|
-
|
|
5940
|
-
message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
5941
|
-
continue;
|
|
5942
|
-
}
|
|
5943
5637
|
}
|
|
5944
5638
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5945
5639
|
break;
|
|
@@ -5952,92 +5646,51 @@ export const AITaskRevision: MessageFns<AITaskRevision> = {
|
|
|
5952
5646
|
}
|
|
5953
5647
|
},
|
|
5954
5648
|
|
|
5955
|
-
fromJSON(object: any):
|
|
5649
|
+
fromJSON(object: any): UpdateAITaskModelRequest {
|
|
5956
5650
|
return {
|
|
5957
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
5958
5651
|
task: isSet(object.task) ? aITaskFromJSON(object.task) : 0,
|
|
5959
|
-
number: isSet(object.number) ? globalThis.Number(object.number) : 0,
|
|
5960
5652
|
model: isSet(object.model) ? globalThis.String(object.model) : "",
|
|
5961
|
-
instruction: isSet(object.instruction) ? globalThis.String(object.instruction) : "",
|
|
5962
|
-
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
|
5963
|
-
createdByUserId: isSet(object.createdByUserId)
|
|
5964
|
-
? globalThis.String(object.createdByUserId)
|
|
5965
|
-
: isSet(object.created_by_user_id)
|
|
5966
|
-
? globalThis.String(object.created_by_user_id)
|
|
5967
|
-
: "",
|
|
5968
|
-
createTime: isSet(object.createTime)
|
|
5969
|
-
? fromJsonTimestamp(object.createTime)
|
|
5970
|
-
: isSet(object.create_time)
|
|
5971
|
-
? fromJsonTimestamp(object.create_time)
|
|
5972
|
-
: undefined,
|
|
5973
5653
|
};
|
|
5974
5654
|
},
|
|
5975
5655
|
|
|
5976
|
-
toJSON(message:
|
|
5656
|
+
toJSON(message: UpdateAITaskModelRequest): unknown {
|
|
5977
5657
|
const obj: any = {};
|
|
5978
|
-
if (message.id !== "") {
|
|
5979
|
-
obj.id = message.id;
|
|
5980
|
-
}
|
|
5981
5658
|
if (message.task !== 0) {
|
|
5982
5659
|
obj.task = aITaskToJSON(message.task);
|
|
5983
5660
|
}
|
|
5984
|
-
if (message.number !== 0) {
|
|
5985
|
-
obj.number = Math.round(message.number);
|
|
5986
|
-
}
|
|
5987
5661
|
if (message.model !== "") {
|
|
5988
5662
|
obj.model = message.model;
|
|
5989
5663
|
}
|
|
5990
|
-
if (message.instruction !== "") {
|
|
5991
|
-
obj.instruction = message.instruction;
|
|
5992
|
-
}
|
|
5993
|
-
if (message.note !== "") {
|
|
5994
|
-
obj.note = message.note;
|
|
5995
|
-
}
|
|
5996
|
-
if (message.createdByUserId !== "") {
|
|
5997
|
-
obj.createdByUserId = message.createdByUserId;
|
|
5998
|
-
}
|
|
5999
|
-
if (message.createTime !== undefined) {
|
|
6000
|
-
obj.createTime = message.createTime.toISOString();
|
|
6001
|
-
}
|
|
6002
5664
|
return obj;
|
|
6003
5665
|
},
|
|
6004
5666
|
|
|
6005
|
-
create<I extends Exact<DeepPartial<
|
|
6006
|
-
return
|
|
5667
|
+
create<I extends Exact<DeepPartial<UpdateAITaskModelRequest>, I>>(base?: I): UpdateAITaskModelRequest {
|
|
5668
|
+
return UpdateAITaskModelRequest.fromPartial(base ?? ({} as any));
|
|
6007
5669
|
},
|
|
6008
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
6009
|
-
const message =
|
|
6010
|
-
message.id = object.id ?? "";
|
|
5670
|
+
fromPartial<I extends Exact<DeepPartial<UpdateAITaskModelRequest>, I>>(object: I): UpdateAITaskModelRequest {
|
|
5671
|
+
const message = createBaseUpdateAITaskModelRequest();
|
|
6011
5672
|
message.task = object.task ?? 0;
|
|
6012
|
-
message.number = object.number ?? 0;
|
|
6013
5673
|
message.model = object.model ?? "";
|
|
6014
|
-
message.instruction = object.instruction ?? "";
|
|
6015
|
-
message.note = object.note ?? "";
|
|
6016
|
-
message.createdByUserId = object.createdByUserId ?? "";
|
|
6017
|
-
message.createTime = object.createTime ?? undefined;
|
|
6018
5674
|
return message;
|
|
6019
5675
|
},
|
|
6020
5676
|
};
|
|
6021
5677
|
|
|
6022
|
-
function
|
|
6023
|
-
return {
|
|
5678
|
+
function createBaseUpdateAITaskModelResponse(): UpdateAITaskModelResponse {
|
|
5679
|
+
return { status: undefined, taskModel: undefined };
|
|
6024
5680
|
}
|
|
6025
5681
|
|
|
6026
|
-
export const
|
|
6027
|
-
encode(message:
|
|
6028
|
-
if (message.
|
|
6029
|
-
writer.uint32(
|
|
6030
|
-
}
|
|
6031
|
-
if (message.pageSize !== 0) {
|
|
6032
|
-
writer.uint32(16).int32(message.pageSize);
|
|
5682
|
+
export const UpdateAITaskModelResponse: MessageFns<UpdateAITaskModelResponse> = {
|
|
5683
|
+
encode(message: UpdateAITaskModelResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5684
|
+
if (message.status !== undefined) {
|
|
5685
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
6033
5686
|
}
|
|
6034
|
-
if (message.
|
|
6035
|
-
writer.uint32(
|
|
5687
|
+
if (message.taskModel !== undefined) {
|
|
5688
|
+
AITaskModel.encode(message.taskModel, writer.uint32(18).fork()).join();
|
|
6036
5689
|
}
|
|
6037
5690
|
return writer;
|
|
6038
5691
|
},
|
|
6039
5692
|
|
|
6040
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
5693
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpdateAITaskModelResponse {
|
|
6041
5694
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6042
5695
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6043
5696
|
if (previousRecursionDepth >= 100) {
|
|
@@ -6046,32 +5699,24 @@ export const ListAITaskRevisionsRequest: MessageFns<ListAITaskRevisionsRequest>
|
|
|
6046
5699
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6047
5700
|
try {
|
|
6048
5701
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6049
|
-
const message =
|
|
5702
|
+
const message = createBaseUpdateAITaskModelResponse();
|
|
6050
5703
|
while (reader.pos < end) {
|
|
6051
5704
|
const tag = reader.uint32();
|
|
6052
5705
|
switch (tag >>> 3) {
|
|
6053
5706
|
case 1: {
|
|
6054
|
-
if (tag !==
|
|
5707
|
+
if (tag !== 10) {
|
|
6055
5708
|
break;
|
|
6056
5709
|
}
|
|
6057
5710
|
|
|
6058
|
-
message.
|
|
5711
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
6059
5712
|
continue;
|
|
6060
5713
|
}
|
|
6061
5714
|
case 2: {
|
|
6062
|
-
if (tag !==
|
|
6063
|
-
break;
|
|
6064
|
-
}
|
|
6065
|
-
|
|
6066
|
-
message.pageSize = reader.int32();
|
|
6067
|
-
continue;
|
|
6068
|
-
}
|
|
6069
|
-
case 3: {
|
|
6070
|
-
if (tag !== 26) {
|
|
5715
|
+
if (tag !== 18) {
|
|
6071
5716
|
break;
|
|
6072
5717
|
}
|
|
6073
5718
|
|
|
6074
|
-
message.
|
|
5719
|
+
message.taskModel = AITaskModel.decode(reader, reader.uint32());
|
|
6075
5720
|
continue;
|
|
6076
5721
|
}
|
|
6077
5722
|
}
|
|
@@ -6086,682 +5731,38 @@ export const ListAITaskRevisionsRequest: MessageFns<ListAITaskRevisionsRequest>
|
|
|
6086
5731
|
}
|
|
6087
5732
|
},
|
|
6088
5733
|
|
|
6089
|
-
fromJSON(object: any):
|
|
5734
|
+
fromJSON(object: any): UpdateAITaskModelResponse {
|
|
6090
5735
|
return {
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
?
|
|
6094
|
-
: isSet(object.
|
|
6095
|
-
?
|
|
6096
|
-
:
|
|
6097
|
-
pageToken: isSet(object.pageToken)
|
|
6098
|
-
? globalThis.String(object.pageToken)
|
|
6099
|
-
: isSet(object.page_token)
|
|
6100
|
-
? globalThis.String(object.page_token)
|
|
6101
|
-
: "",
|
|
5736
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
5737
|
+
taskModel: isSet(object.taskModel)
|
|
5738
|
+
? AITaskModel.fromJSON(object.taskModel)
|
|
5739
|
+
: isSet(object.task_model)
|
|
5740
|
+
? AITaskModel.fromJSON(object.task_model)
|
|
5741
|
+
: undefined,
|
|
6102
5742
|
};
|
|
6103
5743
|
},
|
|
6104
5744
|
|
|
6105
|
-
toJSON(message:
|
|
5745
|
+
toJSON(message: UpdateAITaskModelResponse): unknown {
|
|
6106
5746
|
const obj: any = {};
|
|
6107
|
-
if (message.
|
|
6108
|
-
obj.
|
|
6109
|
-
}
|
|
6110
|
-
if (message.pageSize !== 0) {
|
|
6111
|
-
obj.pageSize = Math.round(message.pageSize);
|
|
5747
|
+
if (message.status !== undefined) {
|
|
5748
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
6112
5749
|
}
|
|
6113
|
-
if (message.
|
|
6114
|
-
obj.
|
|
5750
|
+
if (message.taskModel !== undefined) {
|
|
5751
|
+
obj.taskModel = AITaskModel.toJSON(message.taskModel);
|
|
6115
5752
|
}
|
|
6116
5753
|
return obj;
|
|
6117
5754
|
},
|
|
6118
5755
|
|
|
6119
|
-
create<I extends Exact<DeepPartial<
|
|
6120
|
-
return
|
|
5756
|
+
create<I extends Exact<DeepPartial<UpdateAITaskModelResponse>, I>>(base?: I): UpdateAITaskModelResponse {
|
|
5757
|
+
return UpdateAITaskModelResponse.fromPartial(base ?? ({} as any));
|
|
6121
5758
|
},
|
|
6122
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
6123
|
-
const message =
|
|
6124
|
-
message.task = object.task ?? 0;
|
|
6125
|
-
message.pageSize = object.pageSize ?? 0;
|
|
6126
|
-
message.pageToken = object.pageToken ?? "";
|
|
6127
|
-
return message;
|
|
6128
|
-
},
|
|
6129
|
-
};
|
|
6130
|
-
|
|
6131
|
-
function createBaseListAITaskRevisionsResponse(): ListAITaskRevisionsResponse {
|
|
6132
|
-
return { status: undefined, revisions: [], nextPageToken: "" };
|
|
6133
|
-
}
|
|
6134
|
-
|
|
6135
|
-
export const ListAITaskRevisionsResponse: MessageFns<ListAITaskRevisionsResponse> = {
|
|
6136
|
-
encode(message: ListAITaskRevisionsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6137
|
-
if (message.status !== undefined) {
|
|
6138
|
-
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
6139
|
-
}
|
|
6140
|
-
for (const v of message.revisions) {
|
|
6141
|
-
AITaskRevision.encode(v!, writer.uint32(18).fork()).join();
|
|
6142
|
-
}
|
|
6143
|
-
if (message.nextPageToken !== "") {
|
|
6144
|
-
writer.uint32(26).string(message.nextPageToken);
|
|
6145
|
-
}
|
|
6146
|
-
return writer;
|
|
6147
|
-
},
|
|
6148
|
-
|
|
6149
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListAITaskRevisionsResponse {
|
|
6150
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6151
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6152
|
-
if (previousRecursionDepth >= 100) {
|
|
6153
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6154
|
-
}
|
|
6155
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6156
|
-
try {
|
|
6157
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6158
|
-
const message = createBaseListAITaskRevisionsResponse();
|
|
6159
|
-
while (reader.pos < end) {
|
|
6160
|
-
const tag = reader.uint32();
|
|
6161
|
-
switch (tag >>> 3) {
|
|
6162
|
-
case 1: {
|
|
6163
|
-
if (tag !== 10) {
|
|
6164
|
-
break;
|
|
6165
|
-
}
|
|
6166
|
-
|
|
6167
|
-
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
6168
|
-
continue;
|
|
6169
|
-
}
|
|
6170
|
-
case 2: {
|
|
6171
|
-
if (tag !== 18) {
|
|
6172
|
-
break;
|
|
6173
|
-
}
|
|
6174
|
-
|
|
6175
|
-
message.revisions.push(AITaskRevision.decode(reader, reader.uint32()));
|
|
6176
|
-
continue;
|
|
6177
|
-
}
|
|
6178
|
-
case 3: {
|
|
6179
|
-
if (tag !== 26) {
|
|
6180
|
-
break;
|
|
6181
|
-
}
|
|
6182
|
-
|
|
6183
|
-
message.nextPageToken = reader.string();
|
|
6184
|
-
continue;
|
|
6185
|
-
}
|
|
6186
|
-
}
|
|
6187
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6188
|
-
break;
|
|
6189
|
-
}
|
|
6190
|
-
reader.skip(tag & 7);
|
|
6191
|
-
}
|
|
6192
|
-
return message;
|
|
6193
|
-
} finally {
|
|
6194
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6195
|
-
}
|
|
6196
|
-
},
|
|
6197
|
-
|
|
6198
|
-
fromJSON(object: any): ListAITaskRevisionsResponse {
|
|
6199
|
-
return {
|
|
6200
|
-
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
6201
|
-
revisions: globalThis.Array.isArray(object?.revisions)
|
|
6202
|
-
? object.revisions.map((e: any) => AITaskRevision.fromJSON(e))
|
|
6203
|
-
: [],
|
|
6204
|
-
nextPageToken: isSet(object.nextPageToken)
|
|
6205
|
-
? globalThis.String(object.nextPageToken)
|
|
6206
|
-
: isSet(object.next_page_token)
|
|
6207
|
-
? globalThis.String(object.next_page_token)
|
|
6208
|
-
: "",
|
|
6209
|
-
};
|
|
6210
|
-
},
|
|
6211
|
-
|
|
6212
|
-
toJSON(message: ListAITaskRevisionsResponse): unknown {
|
|
6213
|
-
const obj: any = {};
|
|
6214
|
-
if (message.status !== undefined) {
|
|
6215
|
-
obj.status = ResponseStatus.toJSON(message.status);
|
|
6216
|
-
}
|
|
6217
|
-
if (message.revisions?.length) {
|
|
6218
|
-
obj.revisions = message.revisions.map((e) => AITaskRevision.toJSON(e));
|
|
6219
|
-
}
|
|
6220
|
-
if (message.nextPageToken !== "") {
|
|
6221
|
-
obj.nextPageToken = message.nextPageToken;
|
|
6222
|
-
}
|
|
6223
|
-
return obj;
|
|
6224
|
-
},
|
|
6225
|
-
|
|
6226
|
-
create<I extends Exact<DeepPartial<ListAITaskRevisionsResponse>, I>>(base?: I): ListAITaskRevisionsResponse {
|
|
6227
|
-
return ListAITaskRevisionsResponse.fromPartial(base ?? ({} as any));
|
|
6228
|
-
},
|
|
6229
|
-
fromPartial<I extends Exact<DeepPartial<ListAITaskRevisionsResponse>, I>>(object: I): ListAITaskRevisionsResponse {
|
|
6230
|
-
const message = createBaseListAITaskRevisionsResponse();
|
|
6231
|
-
message.status = (object.status !== undefined && object.status !== null)
|
|
6232
|
-
? ResponseStatus.fromPartial(object.status)
|
|
6233
|
-
: undefined;
|
|
6234
|
-
message.revisions = object.revisions?.map((e) => AITaskRevision.fromPartial(e)) || [];
|
|
6235
|
-
message.nextPageToken = object.nextPageToken ?? "";
|
|
6236
|
-
return message;
|
|
6237
|
-
},
|
|
6238
|
-
};
|
|
6239
|
-
|
|
6240
|
-
function createBaseCreateAITaskRevisionRequest(): CreateAITaskRevisionRequest {
|
|
6241
|
-
return { task: 0, model: "", instruction: "", note: "" };
|
|
6242
|
-
}
|
|
6243
|
-
|
|
6244
|
-
export const CreateAITaskRevisionRequest: MessageFns<CreateAITaskRevisionRequest> = {
|
|
6245
|
-
encode(message: CreateAITaskRevisionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6246
|
-
if (message.task !== 0) {
|
|
6247
|
-
writer.uint32(8).int32(message.task);
|
|
6248
|
-
}
|
|
6249
|
-
if (message.model !== "") {
|
|
6250
|
-
writer.uint32(18).string(message.model);
|
|
6251
|
-
}
|
|
6252
|
-
if (message.instruction !== "") {
|
|
6253
|
-
writer.uint32(26).string(message.instruction);
|
|
6254
|
-
}
|
|
6255
|
-
if (message.note !== "") {
|
|
6256
|
-
writer.uint32(34).string(message.note);
|
|
6257
|
-
}
|
|
6258
|
-
return writer;
|
|
6259
|
-
},
|
|
6260
|
-
|
|
6261
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CreateAITaskRevisionRequest {
|
|
6262
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6263
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6264
|
-
if (previousRecursionDepth >= 100) {
|
|
6265
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6266
|
-
}
|
|
6267
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6268
|
-
try {
|
|
6269
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6270
|
-
const message = createBaseCreateAITaskRevisionRequest();
|
|
6271
|
-
while (reader.pos < end) {
|
|
6272
|
-
const tag = reader.uint32();
|
|
6273
|
-
switch (tag >>> 3) {
|
|
6274
|
-
case 1: {
|
|
6275
|
-
if (tag !== 8) {
|
|
6276
|
-
break;
|
|
6277
|
-
}
|
|
6278
|
-
|
|
6279
|
-
message.task = reader.int32() as any;
|
|
6280
|
-
continue;
|
|
6281
|
-
}
|
|
6282
|
-
case 2: {
|
|
6283
|
-
if (tag !== 18) {
|
|
6284
|
-
break;
|
|
6285
|
-
}
|
|
6286
|
-
|
|
6287
|
-
message.model = reader.string();
|
|
6288
|
-
continue;
|
|
6289
|
-
}
|
|
6290
|
-
case 3: {
|
|
6291
|
-
if (tag !== 26) {
|
|
6292
|
-
break;
|
|
6293
|
-
}
|
|
6294
|
-
|
|
6295
|
-
message.instruction = reader.string();
|
|
6296
|
-
continue;
|
|
6297
|
-
}
|
|
6298
|
-
case 4: {
|
|
6299
|
-
if (tag !== 34) {
|
|
6300
|
-
break;
|
|
6301
|
-
}
|
|
6302
|
-
|
|
6303
|
-
message.note = reader.string();
|
|
6304
|
-
continue;
|
|
6305
|
-
}
|
|
6306
|
-
}
|
|
6307
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6308
|
-
break;
|
|
6309
|
-
}
|
|
6310
|
-
reader.skip(tag & 7);
|
|
6311
|
-
}
|
|
6312
|
-
return message;
|
|
6313
|
-
} finally {
|
|
6314
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6315
|
-
}
|
|
6316
|
-
},
|
|
6317
|
-
|
|
6318
|
-
fromJSON(object: any): CreateAITaskRevisionRequest {
|
|
6319
|
-
return {
|
|
6320
|
-
task: isSet(object.task) ? aITaskFromJSON(object.task) : 0,
|
|
6321
|
-
model: isSet(object.model) ? globalThis.String(object.model) : "",
|
|
6322
|
-
instruction: isSet(object.instruction) ? globalThis.String(object.instruction) : "",
|
|
6323
|
-
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
|
6324
|
-
};
|
|
6325
|
-
},
|
|
6326
|
-
|
|
6327
|
-
toJSON(message: CreateAITaskRevisionRequest): unknown {
|
|
6328
|
-
const obj: any = {};
|
|
6329
|
-
if (message.task !== 0) {
|
|
6330
|
-
obj.task = aITaskToJSON(message.task);
|
|
6331
|
-
}
|
|
6332
|
-
if (message.model !== "") {
|
|
6333
|
-
obj.model = message.model;
|
|
6334
|
-
}
|
|
6335
|
-
if (message.instruction !== "") {
|
|
6336
|
-
obj.instruction = message.instruction;
|
|
6337
|
-
}
|
|
6338
|
-
if (message.note !== "") {
|
|
6339
|
-
obj.note = message.note;
|
|
6340
|
-
}
|
|
6341
|
-
return obj;
|
|
6342
|
-
},
|
|
6343
|
-
|
|
6344
|
-
create<I extends Exact<DeepPartial<CreateAITaskRevisionRequest>, I>>(base?: I): CreateAITaskRevisionRequest {
|
|
6345
|
-
return CreateAITaskRevisionRequest.fromPartial(base ?? ({} as any));
|
|
6346
|
-
},
|
|
6347
|
-
fromPartial<I extends Exact<DeepPartial<CreateAITaskRevisionRequest>, I>>(object: I): CreateAITaskRevisionRequest {
|
|
6348
|
-
const message = createBaseCreateAITaskRevisionRequest();
|
|
6349
|
-
message.task = object.task ?? 0;
|
|
6350
|
-
message.model = object.model ?? "";
|
|
6351
|
-
message.instruction = object.instruction ?? "";
|
|
6352
|
-
message.note = object.note ?? "";
|
|
6353
|
-
return message;
|
|
6354
|
-
},
|
|
6355
|
-
};
|
|
6356
|
-
|
|
6357
|
-
function createBaseCreateAITaskRevisionResponse(): CreateAITaskRevisionResponse {
|
|
6358
|
-
return { status: undefined, revision: undefined };
|
|
6359
|
-
}
|
|
6360
|
-
|
|
6361
|
-
export const CreateAITaskRevisionResponse: MessageFns<CreateAITaskRevisionResponse> = {
|
|
6362
|
-
encode(message: CreateAITaskRevisionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6363
|
-
if (message.status !== undefined) {
|
|
6364
|
-
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
6365
|
-
}
|
|
6366
|
-
if (message.revision !== undefined) {
|
|
6367
|
-
AITaskRevision.encode(message.revision, writer.uint32(18).fork()).join();
|
|
6368
|
-
}
|
|
6369
|
-
return writer;
|
|
6370
|
-
},
|
|
6371
|
-
|
|
6372
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CreateAITaskRevisionResponse {
|
|
6373
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6374
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6375
|
-
if (previousRecursionDepth >= 100) {
|
|
6376
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6377
|
-
}
|
|
6378
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6379
|
-
try {
|
|
6380
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6381
|
-
const message = createBaseCreateAITaskRevisionResponse();
|
|
6382
|
-
while (reader.pos < end) {
|
|
6383
|
-
const tag = reader.uint32();
|
|
6384
|
-
switch (tag >>> 3) {
|
|
6385
|
-
case 1: {
|
|
6386
|
-
if (tag !== 10) {
|
|
6387
|
-
break;
|
|
6388
|
-
}
|
|
6389
|
-
|
|
6390
|
-
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
6391
|
-
continue;
|
|
6392
|
-
}
|
|
6393
|
-
case 2: {
|
|
6394
|
-
if (tag !== 18) {
|
|
6395
|
-
break;
|
|
6396
|
-
}
|
|
6397
|
-
|
|
6398
|
-
message.revision = AITaskRevision.decode(reader, reader.uint32());
|
|
6399
|
-
continue;
|
|
6400
|
-
}
|
|
6401
|
-
}
|
|
6402
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6403
|
-
break;
|
|
6404
|
-
}
|
|
6405
|
-
reader.skip(tag & 7);
|
|
6406
|
-
}
|
|
6407
|
-
return message;
|
|
6408
|
-
} finally {
|
|
6409
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6410
|
-
}
|
|
6411
|
-
},
|
|
6412
|
-
|
|
6413
|
-
fromJSON(object: any): CreateAITaskRevisionResponse {
|
|
6414
|
-
return {
|
|
6415
|
-
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
6416
|
-
revision: isSet(object.revision) ? AITaskRevision.fromJSON(object.revision) : undefined,
|
|
6417
|
-
};
|
|
6418
|
-
},
|
|
6419
|
-
|
|
6420
|
-
toJSON(message: CreateAITaskRevisionResponse): unknown {
|
|
6421
|
-
const obj: any = {};
|
|
6422
|
-
if (message.status !== undefined) {
|
|
6423
|
-
obj.status = ResponseStatus.toJSON(message.status);
|
|
6424
|
-
}
|
|
6425
|
-
if (message.revision !== undefined) {
|
|
6426
|
-
obj.revision = AITaskRevision.toJSON(message.revision);
|
|
6427
|
-
}
|
|
6428
|
-
return obj;
|
|
6429
|
-
},
|
|
6430
|
-
|
|
6431
|
-
create<I extends Exact<DeepPartial<CreateAITaskRevisionResponse>, I>>(base?: I): CreateAITaskRevisionResponse {
|
|
6432
|
-
return CreateAITaskRevisionResponse.fromPartial(base ?? ({} as any));
|
|
6433
|
-
},
|
|
6434
|
-
fromPartial<I extends Exact<DeepPartial<CreateAITaskRevisionResponse>, I>>(object: I): CreateAITaskRevisionResponse {
|
|
6435
|
-
const message = createBaseCreateAITaskRevisionResponse();
|
|
6436
|
-
message.status = (object.status !== undefined && object.status !== null)
|
|
6437
|
-
? ResponseStatus.fromPartial(object.status)
|
|
6438
|
-
: undefined;
|
|
6439
|
-
message.revision = (object.revision !== undefined && object.revision !== null)
|
|
6440
|
-
? AITaskRevision.fromPartial(object.revision)
|
|
6441
|
-
: undefined;
|
|
6442
|
-
return message;
|
|
6443
|
-
},
|
|
6444
|
-
};
|
|
6445
|
-
|
|
6446
|
-
function createBaseActivateAITaskRevisionRequest(): ActivateAITaskRevisionRequest {
|
|
6447
|
-
return { task: 0, revisionId: "" };
|
|
6448
|
-
}
|
|
6449
|
-
|
|
6450
|
-
export const ActivateAITaskRevisionRequest: MessageFns<ActivateAITaskRevisionRequest> = {
|
|
6451
|
-
encode(message: ActivateAITaskRevisionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6452
|
-
if (message.task !== 0) {
|
|
6453
|
-
writer.uint32(8).int32(message.task);
|
|
6454
|
-
}
|
|
6455
|
-
if (message.revisionId !== "") {
|
|
6456
|
-
writer.uint32(18).string(message.revisionId);
|
|
6457
|
-
}
|
|
6458
|
-
return writer;
|
|
6459
|
-
},
|
|
6460
|
-
|
|
6461
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ActivateAITaskRevisionRequest {
|
|
6462
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6463
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6464
|
-
if (previousRecursionDepth >= 100) {
|
|
6465
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6466
|
-
}
|
|
6467
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6468
|
-
try {
|
|
6469
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6470
|
-
const message = createBaseActivateAITaskRevisionRequest();
|
|
6471
|
-
while (reader.pos < end) {
|
|
6472
|
-
const tag = reader.uint32();
|
|
6473
|
-
switch (tag >>> 3) {
|
|
6474
|
-
case 1: {
|
|
6475
|
-
if (tag !== 8) {
|
|
6476
|
-
break;
|
|
6477
|
-
}
|
|
6478
|
-
|
|
6479
|
-
message.task = reader.int32() as any;
|
|
6480
|
-
continue;
|
|
6481
|
-
}
|
|
6482
|
-
case 2: {
|
|
6483
|
-
if (tag !== 18) {
|
|
6484
|
-
break;
|
|
6485
|
-
}
|
|
6486
|
-
|
|
6487
|
-
message.revisionId = reader.string();
|
|
6488
|
-
continue;
|
|
6489
|
-
}
|
|
6490
|
-
}
|
|
6491
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6492
|
-
break;
|
|
6493
|
-
}
|
|
6494
|
-
reader.skip(tag & 7);
|
|
6495
|
-
}
|
|
6496
|
-
return message;
|
|
6497
|
-
} finally {
|
|
6498
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6499
|
-
}
|
|
6500
|
-
},
|
|
6501
|
-
|
|
6502
|
-
fromJSON(object: any): ActivateAITaskRevisionRequest {
|
|
6503
|
-
return {
|
|
6504
|
-
task: isSet(object.task) ? aITaskFromJSON(object.task) : 0,
|
|
6505
|
-
revisionId: isSet(object.revisionId)
|
|
6506
|
-
? globalThis.String(object.revisionId)
|
|
6507
|
-
: isSet(object.revision_id)
|
|
6508
|
-
? globalThis.String(object.revision_id)
|
|
6509
|
-
: "",
|
|
6510
|
-
};
|
|
6511
|
-
},
|
|
6512
|
-
|
|
6513
|
-
toJSON(message: ActivateAITaskRevisionRequest): unknown {
|
|
6514
|
-
const obj: any = {};
|
|
6515
|
-
if (message.task !== 0) {
|
|
6516
|
-
obj.task = aITaskToJSON(message.task);
|
|
6517
|
-
}
|
|
6518
|
-
if (message.revisionId !== "") {
|
|
6519
|
-
obj.revisionId = message.revisionId;
|
|
6520
|
-
}
|
|
6521
|
-
return obj;
|
|
6522
|
-
},
|
|
6523
|
-
|
|
6524
|
-
create<I extends Exact<DeepPartial<ActivateAITaskRevisionRequest>, I>>(base?: I): ActivateAITaskRevisionRequest {
|
|
6525
|
-
return ActivateAITaskRevisionRequest.fromPartial(base ?? ({} as any));
|
|
6526
|
-
},
|
|
6527
|
-
fromPartial<I extends Exact<DeepPartial<ActivateAITaskRevisionRequest>, I>>(
|
|
6528
|
-
object: I,
|
|
6529
|
-
): ActivateAITaskRevisionRequest {
|
|
6530
|
-
const message = createBaseActivateAITaskRevisionRequest();
|
|
6531
|
-
message.task = object.task ?? 0;
|
|
6532
|
-
message.revisionId = object.revisionId ?? "";
|
|
6533
|
-
return message;
|
|
6534
|
-
},
|
|
6535
|
-
};
|
|
6536
|
-
|
|
6537
|
-
function createBaseActivateAITaskRevisionResponse(): ActivateAITaskRevisionResponse {
|
|
6538
|
-
return { status: undefined, activation: undefined };
|
|
6539
|
-
}
|
|
6540
|
-
|
|
6541
|
-
export const ActivateAITaskRevisionResponse: MessageFns<ActivateAITaskRevisionResponse> = {
|
|
6542
|
-
encode(message: ActivateAITaskRevisionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6543
|
-
if (message.status !== undefined) {
|
|
6544
|
-
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
6545
|
-
}
|
|
6546
|
-
if (message.activation !== undefined) {
|
|
6547
|
-
AITaskActivation.encode(message.activation, writer.uint32(18).fork()).join();
|
|
6548
|
-
}
|
|
6549
|
-
return writer;
|
|
6550
|
-
},
|
|
6551
|
-
|
|
6552
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ActivateAITaskRevisionResponse {
|
|
6553
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6554
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6555
|
-
if (previousRecursionDepth >= 100) {
|
|
6556
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6557
|
-
}
|
|
6558
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6559
|
-
try {
|
|
6560
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6561
|
-
const message = createBaseActivateAITaskRevisionResponse();
|
|
6562
|
-
while (reader.pos < end) {
|
|
6563
|
-
const tag = reader.uint32();
|
|
6564
|
-
switch (tag >>> 3) {
|
|
6565
|
-
case 1: {
|
|
6566
|
-
if (tag !== 10) {
|
|
6567
|
-
break;
|
|
6568
|
-
}
|
|
6569
|
-
|
|
6570
|
-
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
6571
|
-
continue;
|
|
6572
|
-
}
|
|
6573
|
-
case 2: {
|
|
6574
|
-
if (tag !== 18) {
|
|
6575
|
-
break;
|
|
6576
|
-
}
|
|
6577
|
-
|
|
6578
|
-
message.activation = AITaskActivation.decode(reader, reader.uint32());
|
|
6579
|
-
continue;
|
|
6580
|
-
}
|
|
6581
|
-
}
|
|
6582
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6583
|
-
break;
|
|
6584
|
-
}
|
|
6585
|
-
reader.skip(tag & 7);
|
|
6586
|
-
}
|
|
6587
|
-
return message;
|
|
6588
|
-
} finally {
|
|
6589
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6590
|
-
}
|
|
6591
|
-
},
|
|
6592
|
-
|
|
6593
|
-
fromJSON(object: any): ActivateAITaskRevisionResponse {
|
|
6594
|
-
return {
|
|
6595
|
-
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
6596
|
-
activation: isSet(object.activation) ? AITaskActivation.fromJSON(object.activation) : undefined,
|
|
6597
|
-
};
|
|
6598
|
-
},
|
|
6599
|
-
|
|
6600
|
-
toJSON(message: ActivateAITaskRevisionResponse): unknown {
|
|
6601
|
-
const obj: any = {};
|
|
6602
|
-
if (message.status !== undefined) {
|
|
6603
|
-
obj.status = ResponseStatus.toJSON(message.status);
|
|
6604
|
-
}
|
|
6605
|
-
if (message.activation !== undefined) {
|
|
6606
|
-
obj.activation = AITaskActivation.toJSON(message.activation);
|
|
6607
|
-
}
|
|
6608
|
-
return obj;
|
|
6609
|
-
},
|
|
6610
|
-
|
|
6611
|
-
create<I extends Exact<DeepPartial<ActivateAITaskRevisionResponse>, I>>(base?: I): ActivateAITaskRevisionResponse {
|
|
6612
|
-
return ActivateAITaskRevisionResponse.fromPartial(base ?? ({} as any));
|
|
6613
|
-
},
|
|
6614
|
-
fromPartial<I extends Exact<DeepPartial<ActivateAITaskRevisionResponse>, I>>(
|
|
6615
|
-
object: I,
|
|
6616
|
-
): ActivateAITaskRevisionResponse {
|
|
6617
|
-
const message = createBaseActivateAITaskRevisionResponse();
|
|
5759
|
+
fromPartial<I extends Exact<DeepPartial<UpdateAITaskModelResponse>, I>>(object: I): UpdateAITaskModelResponse {
|
|
5760
|
+
const message = createBaseUpdateAITaskModelResponse();
|
|
6618
5761
|
message.status = (object.status !== undefined && object.status !== null)
|
|
6619
5762
|
? ResponseStatus.fromPartial(object.status)
|
|
6620
5763
|
: undefined;
|
|
6621
|
-
message.
|
|
6622
|
-
?
|
|
6623
|
-
: undefined;
|
|
6624
|
-
return message;
|
|
6625
|
-
},
|
|
6626
|
-
};
|
|
6627
|
-
|
|
6628
|
-
function createBaseDeactivateAITaskRevisionRequest(): DeactivateAITaskRevisionRequest {
|
|
6629
|
-
return { task: 0 };
|
|
6630
|
-
}
|
|
6631
|
-
|
|
6632
|
-
export const DeactivateAITaskRevisionRequest: MessageFns<DeactivateAITaskRevisionRequest> = {
|
|
6633
|
-
encode(message: DeactivateAITaskRevisionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6634
|
-
if (message.task !== 0) {
|
|
6635
|
-
writer.uint32(8).int32(message.task);
|
|
6636
|
-
}
|
|
6637
|
-
return writer;
|
|
6638
|
-
},
|
|
6639
|
-
|
|
6640
|
-
decode(input: BinaryReader | Uint8Array, length?: number): DeactivateAITaskRevisionRequest {
|
|
6641
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6642
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6643
|
-
if (previousRecursionDepth >= 100) {
|
|
6644
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6645
|
-
}
|
|
6646
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6647
|
-
try {
|
|
6648
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6649
|
-
const message = createBaseDeactivateAITaskRevisionRequest();
|
|
6650
|
-
while (reader.pos < end) {
|
|
6651
|
-
const tag = reader.uint32();
|
|
6652
|
-
switch (tag >>> 3) {
|
|
6653
|
-
case 1: {
|
|
6654
|
-
if (tag !== 8) {
|
|
6655
|
-
break;
|
|
6656
|
-
}
|
|
6657
|
-
|
|
6658
|
-
message.task = reader.int32() as any;
|
|
6659
|
-
continue;
|
|
6660
|
-
}
|
|
6661
|
-
}
|
|
6662
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6663
|
-
break;
|
|
6664
|
-
}
|
|
6665
|
-
reader.skip(tag & 7);
|
|
6666
|
-
}
|
|
6667
|
-
return message;
|
|
6668
|
-
} finally {
|
|
6669
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6670
|
-
}
|
|
6671
|
-
},
|
|
6672
|
-
|
|
6673
|
-
fromJSON(object: any): DeactivateAITaskRevisionRequest {
|
|
6674
|
-
return { task: isSet(object.task) ? aITaskFromJSON(object.task) : 0 };
|
|
6675
|
-
},
|
|
6676
|
-
|
|
6677
|
-
toJSON(message: DeactivateAITaskRevisionRequest): unknown {
|
|
6678
|
-
const obj: any = {};
|
|
6679
|
-
if (message.task !== 0) {
|
|
6680
|
-
obj.task = aITaskToJSON(message.task);
|
|
6681
|
-
}
|
|
6682
|
-
return obj;
|
|
6683
|
-
},
|
|
6684
|
-
|
|
6685
|
-
create<I extends Exact<DeepPartial<DeactivateAITaskRevisionRequest>, I>>(base?: I): DeactivateAITaskRevisionRequest {
|
|
6686
|
-
return DeactivateAITaskRevisionRequest.fromPartial(base ?? ({} as any));
|
|
6687
|
-
},
|
|
6688
|
-
fromPartial<I extends Exact<DeepPartial<DeactivateAITaskRevisionRequest>, I>>(
|
|
6689
|
-
object: I,
|
|
6690
|
-
): DeactivateAITaskRevisionRequest {
|
|
6691
|
-
const message = createBaseDeactivateAITaskRevisionRequest();
|
|
6692
|
-
message.task = object.task ?? 0;
|
|
6693
|
-
return message;
|
|
6694
|
-
},
|
|
6695
|
-
};
|
|
6696
|
-
|
|
6697
|
-
function createBaseDeactivateAITaskRevisionResponse(): DeactivateAITaskRevisionResponse {
|
|
6698
|
-
return { status: undefined };
|
|
6699
|
-
}
|
|
6700
|
-
|
|
6701
|
-
export const DeactivateAITaskRevisionResponse: MessageFns<DeactivateAITaskRevisionResponse> = {
|
|
6702
|
-
encode(message: DeactivateAITaskRevisionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6703
|
-
if (message.status !== undefined) {
|
|
6704
|
-
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
6705
|
-
}
|
|
6706
|
-
return writer;
|
|
6707
|
-
},
|
|
6708
|
-
|
|
6709
|
-
decode(input: BinaryReader | Uint8Array, length?: number): DeactivateAITaskRevisionResponse {
|
|
6710
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6711
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
6712
|
-
if (previousRecursionDepth >= 100) {
|
|
6713
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6714
|
-
}
|
|
6715
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6716
|
-
try {
|
|
6717
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6718
|
-
const message = createBaseDeactivateAITaskRevisionResponse();
|
|
6719
|
-
while (reader.pos < end) {
|
|
6720
|
-
const tag = reader.uint32();
|
|
6721
|
-
switch (tag >>> 3) {
|
|
6722
|
-
case 1: {
|
|
6723
|
-
if (tag !== 10) {
|
|
6724
|
-
break;
|
|
6725
|
-
}
|
|
6726
|
-
|
|
6727
|
-
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
6728
|
-
continue;
|
|
6729
|
-
}
|
|
6730
|
-
}
|
|
6731
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6732
|
-
break;
|
|
6733
|
-
}
|
|
6734
|
-
reader.skip(tag & 7);
|
|
6735
|
-
}
|
|
6736
|
-
return message;
|
|
6737
|
-
} finally {
|
|
6738
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6739
|
-
}
|
|
6740
|
-
},
|
|
6741
|
-
|
|
6742
|
-
fromJSON(object: any): DeactivateAITaskRevisionResponse {
|
|
6743
|
-
return { status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined };
|
|
6744
|
-
},
|
|
6745
|
-
|
|
6746
|
-
toJSON(message: DeactivateAITaskRevisionResponse): unknown {
|
|
6747
|
-
const obj: any = {};
|
|
6748
|
-
if (message.status !== undefined) {
|
|
6749
|
-
obj.status = ResponseStatus.toJSON(message.status);
|
|
6750
|
-
}
|
|
6751
|
-
return obj;
|
|
6752
|
-
},
|
|
6753
|
-
|
|
6754
|
-
create<I extends Exact<DeepPartial<DeactivateAITaskRevisionResponse>, I>>(
|
|
6755
|
-
base?: I,
|
|
6756
|
-
): DeactivateAITaskRevisionResponse {
|
|
6757
|
-
return DeactivateAITaskRevisionResponse.fromPartial(base ?? ({} as any));
|
|
6758
|
-
},
|
|
6759
|
-
fromPartial<I extends Exact<DeepPartial<DeactivateAITaskRevisionResponse>, I>>(
|
|
6760
|
-
object: I,
|
|
6761
|
-
): DeactivateAITaskRevisionResponse {
|
|
6762
|
-
const message = createBaseDeactivateAITaskRevisionResponse();
|
|
6763
|
-
message.status = (object.status !== undefined && object.status !== null)
|
|
6764
|
-
? ResponseStatus.fromPartial(object.status)
|
|
5764
|
+
message.taskModel = (object.taskModel !== undefined && object.taskModel !== null)
|
|
5765
|
+
? AITaskModel.fromPartial(object.taskModel)
|
|
6765
5766
|
: undefined;
|
|
6766
5767
|
return message;
|
|
6767
5768
|
},
|
|
@@ -6837,39 +5838,16 @@ export interface AdminGatewayService {
|
|
|
6837
5838
|
*/
|
|
6838
5839
|
ResolveUserDetails(request: ResolveUserDetailsRequest, metadata?: Metadata): Promise<ResolveUserDetailsResponse>;
|
|
6839
5840
|
/**
|
|
6840
|
-
* The AI jobs' models
|
|
6841
|
-
*
|
|
6842
|
-
* description, active revision, built-in prompt and the parts that stay code. Accepted risk: unpaged (proto_api_test unpagedLists):
|
|
5841
|
+
* The AI jobs' models; they proxy ai.api.v1.AIAdminService's RPCs of the same names. ListAITaskModels lists every
|
|
5842
|
+
* AI job, in AITask order, with the model staff chose for it. Accepted risk: unpaged (proto_api_test unpagedLists):
|
|
6843
5843
|
* one row per job, six today; the upgrade path is token paging if it ever passes 50.
|
|
6844
5844
|
*/
|
|
6845
|
-
|
|
6846
|
-
/** ListAITaskRevisions lists one job's revisions, newest number first, with their full prompt. */
|
|
6847
|
-
ListAITaskRevisions(request: ListAITaskRevisionsRequest, metadata?: Metadata): Promise<ListAITaskRevisionsResponse>;
|
|
5845
|
+
ListAITaskModels(request: ListAITaskModelsRequest, metadata?: Metadata): Promise<ListAITaskModelsResponse>;
|
|
6848
5846
|
/**
|
|
6849
|
-
*
|
|
6850
|
-
*
|
|
5847
|
+
* UpdateAITaskModel sets the model a job runs, as the caller, replacing any earlier choice. The job reads it on its
|
|
5848
|
+
* next run. Last write wins.
|
|
6851
5849
|
*/
|
|
6852
|
-
|
|
6853
|
-
request: CreateAITaskRevisionRequest,
|
|
6854
|
-
metadata?: Metadata,
|
|
6855
|
-
): Promise<CreateAITaskRevisionResponse>;
|
|
6856
|
-
/**
|
|
6857
|
-
* ActivateAITaskRevision makes a revision of the job active, as the caller; activating an older one is a rollback.
|
|
6858
|
-
* A job that reads revisions picks it up on its next tick; until the insight jobs do, they keep their chart model
|
|
6859
|
-
* and embedded prompt. Last write wins.
|
|
6860
|
-
*/
|
|
6861
|
-
ActivateAITaskRevision(
|
|
6862
|
-
request: ActivateAITaskRevisionRequest,
|
|
6863
|
-
metadata?: Metadata,
|
|
6864
|
-
): Promise<ActivateAITaskRevisionResponse>;
|
|
6865
|
-
/**
|
|
6866
|
-
* DeactivateAITaskRevision clears the job's active revision, as the caller, so the job runs its built-in prompt
|
|
6867
|
-
* again; its revisions stay in the history, and with none active it changes nothing. Last write wins.
|
|
6868
|
-
*/
|
|
6869
|
-
DeactivateAITaskRevision(
|
|
6870
|
-
request: DeactivateAITaskRevisionRequest,
|
|
6871
|
-
metadata?: Metadata,
|
|
6872
|
-
): Promise<DeactivateAITaskRevisionResponse>;
|
|
5850
|
+
UpdateAITaskModel(request: UpdateAITaskModelRequest, metadata?: Metadata): Promise<UpdateAITaskModelResponse>;
|
|
6873
5851
|
}
|
|
6874
5852
|
|
|
6875
5853
|
export const AdminGatewayServiceServiceName = "gateway.web.v1.AdminGatewayService";
|
|
@@ -6896,11 +5874,8 @@ export class AdminGatewayServiceClientImpl implements AdminGatewayService {
|
|
|
6896
5874
|
this.ResolveOrgDetails = this.ResolveOrgDetails.bind(this);
|
|
6897
5875
|
this.ResolveProjectDetails = this.ResolveProjectDetails.bind(this);
|
|
6898
5876
|
this.ResolveUserDetails = this.ResolveUserDetails.bind(this);
|
|
6899
|
-
this.
|
|
6900
|
-
this.
|
|
6901
|
-
this.CreateAITaskRevision = this.CreateAITaskRevision.bind(this);
|
|
6902
|
-
this.ActivateAITaskRevision = this.ActivateAITaskRevision.bind(this);
|
|
6903
|
-
this.DeactivateAITaskRevision = this.DeactivateAITaskRevision.bind(this);
|
|
5877
|
+
this.ListAITaskModels = this.ListAITaskModels.bind(this);
|
|
5878
|
+
this.UpdateAITaskModel = this.UpdateAITaskModel.bind(this);
|
|
6904
5879
|
}
|
|
6905
5880
|
GetAdminStatus(request: GetAdminStatusRequest, metadata?: Metadata): Promise<GetAdminStatusResponse> {
|
|
6906
5881
|
const data = GetAdminStatusRequest.encode(request).finish();
|
|
@@ -7010,43 +5985,16 @@ export class AdminGatewayServiceClientImpl implements AdminGatewayService {
|
|
|
7010
5985
|
return promise.then((data) => ResolveUserDetailsResponse.decode(new BinaryReader(data)));
|
|
7011
5986
|
}
|
|
7012
5987
|
|
|
7013
|
-
|
|
7014
|
-
const data =
|
|
7015
|
-
const promise = this.rpc.request(this.service, "
|
|
7016
|
-
return promise.then((data) =>
|
|
7017
|
-
}
|
|
7018
|
-
|
|
7019
|
-
ListAITaskRevisions(request: ListAITaskRevisionsRequest, metadata?: Metadata): Promise<ListAITaskRevisionsResponse> {
|
|
7020
|
-
const data = ListAITaskRevisionsRequest.encode(request).finish();
|
|
7021
|
-
const promise = this.rpc.request(this.service, "ListAITaskRevisions", data, metadata);
|
|
7022
|
-
return promise.then((data) => ListAITaskRevisionsResponse.decode(new BinaryReader(data)));
|
|
7023
|
-
}
|
|
7024
|
-
|
|
7025
|
-
CreateAITaskRevision(
|
|
7026
|
-
request: CreateAITaskRevisionRequest,
|
|
7027
|
-
metadata?: Metadata,
|
|
7028
|
-
): Promise<CreateAITaskRevisionResponse> {
|
|
7029
|
-
const data = CreateAITaskRevisionRequest.encode(request).finish();
|
|
7030
|
-
const promise = this.rpc.request(this.service, "CreateAITaskRevision", data, metadata);
|
|
7031
|
-
return promise.then((data) => CreateAITaskRevisionResponse.decode(new BinaryReader(data)));
|
|
7032
|
-
}
|
|
7033
|
-
|
|
7034
|
-
ActivateAITaskRevision(
|
|
7035
|
-
request: ActivateAITaskRevisionRequest,
|
|
7036
|
-
metadata?: Metadata,
|
|
7037
|
-
): Promise<ActivateAITaskRevisionResponse> {
|
|
7038
|
-
const data = ActivateAITaskRevisionRequest.encode(request).finish();
|
|
7039
|
-
const promise = this.rpc.request(this.service, "ActivateAITaskRevision", data, metadata);
|
|
7040
|
-
return promise.then((data) => ActivateAITaskRevisionResponse.decode(new BinaryReader(data)));
|
|
5988
|
+
ListAITaskModels(request: ListAITaskModelsRequest, metadata?: Metadata): Promise<ListAITaskModelsResponse> {
|
|
5989
|
+
const data = ListAITaskModelsRequest.encode(request).finish();
|
|
5990
|
+
const promise = this.rpc.request(this.service, "ListAITaskModels", data, metadata);
|
|
5991
|
+
return promise.then((data) => ListAITaskModelsResponse.decode(new BinaryReader(data)));
|
|
7041
5992
|
}
|
|
7042
5993
|
|
|
7043
|
-
|
|
7044
|
-
request
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
const data = DeactivateAITaskRevisionRequest.encode(request).finish();
|
|
7048
|
-
const promise = this.rpc.request(this.service, "DeactivateAITaskRevision", data, metadata);
|
|
7049
|
-
return promise.then((data) => DeactivateAITaskRevisionResponse.decode(new BinaryReader(data)));
|
|
5994
|
+
UpdateAITaskModel(request: UpdateAITaskModelRequest, metadata?: Metadata): Promise<UpdateAITaskModelResponse> {
|
|
5995
|
+
const data = UpdateAITaskModelRequest.encode(request).finish();
|
|
5996
|
+
const promise = this.rpc.request(this.service, "UpdateAITaskModel", data, metadata);
|
|
5997
|
+
return promise.then((data) => UpdateAITaskModelResponse.decode(new BinaryReader(data)));
|
|
7050
5998
|
}
|
|
7051
5999
|
}
|
|
7052
6000
|
|