@opengeni/agent-proto 0.4.0 → 0.5.1-canary.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/dist/gen/opengeni_agent.d.ts +127 -7
- package/dist/index.js +768 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/opengeni_agent.ts +1082 -96
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
|
+
// protoc v5.28.3
|
|
5
5
|
// source: opengeni_agent.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -478,6 +478,71 @@ export function goingOfflineReasonToJSON(object: GoingOfflineReason): string {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
+
export enum AgentUpdateStage {
|
|
482
|
+
AGENT_UPDATE_STAGE_UNSPECIFIED = 0,
|
|
483
|
+
AGENT_UPDATE_STAGE_ACCEPTED = 1,
|
|
484
|
+
AGENT_UPDATE_STAGE_WAITING_FOR_IDLE = 2,
|
|
485
|
+
AGENT_UPDATE_STAGE_DOWNLOADING = 3,
|
|
486
|
+
AGENT_UPDATE_STAGE_VERIFYING = 4,
|
|
487
|
+
AGENT_UPDATE_STAGE_APPLYING = 5,
|
|
488
|
+
AGENT_UPDATE_STAGE_RESTARTING = 6,
|
|
489
|
+
AGENT_UPDATE_STAGE_FAILED = 7,
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export function agentUpdateStageFromJSON(object: any): AgentUpdateStage {
|
|
493
|
+
switch (object) {
|
|
494
|
+
case 0:
|
|
495
|
+
case "AGENT_UPDATE_STAGE_UNSPECIFIED":
|
|
496
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_UNSPECIFIED;
|
|
497
|
+
case 1:
|
|
498
|
+
case "AGENT_UPDATE_STAGE_ACCEPTED":
|
|
499
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_ACCEPTED;
|
|
500
|
+
case 2:
|
|
501
|
+
case "AGENT_UPDATE_STAGE_WAITING_FOR_IDLE":
|
|
502
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_WAITING_FOR_IDLE;
|
|
503
|
+
case 3:
|
|
504
|
+
case "AGENT_UPDATE_STAGE_DOWNLOADING":
|
|
505
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_DOWNLOADING;
|
|
506
|
+
case 4:
|
|
507
|
+
case "AGENT_UPDATE_STAGE_VERIFYING":
|
|
508
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_VERIFYING;
|
|
509
|
+
case 5:
|
|
510
|
+
case "AGENT_UPDATE_STAGE_APPLYING":
|
|
511
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_APPLYING;
|
|
512
|
+
case 6:
|
|
513
|
+
case "AGENT_UPDATE_STAGE_RESTARTING":
|
|
514
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_RESTARTING;
|
|
515
|
+
case 7:
|
|
516
|
+
case "AGENT_UPDATE_STAGE_FAILED":
|
|
517
|
+
return AgentUpdateStage.AGENT_UPDATE_STAGE_FAILED;
|
|
518
|
+
default:
|
|
519
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum AgentUpdateStage");
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export function agentUpdateStageToJSON(object: AgentUpdateStage): string {
|
|
524
|
+
switch (object) {
|
|
525
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_UNSPECIFIED:
|
|
526
|
+
return "AGENT_UPDATE_STAGE_UNSPECIFIED";
|
|
527
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_ACCEPTED:
|
|
528
|
+
return "AGENT_UPDATE_STAGE_ACCEPTED";
|
|
529
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_WAITING_FOR_IDLE:
|
|
530
|
+
return "AGENT_UPDATE_STAGE_WAITING_FOR_IDLE";
|
|
531
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_DOWNLOADING:
|
|
532
|
+
return "AGENT_UPDATE_STAGE_DOWNLOADING";
|
|
533
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_VERIFYING:
|
|
534
|
+
return "AGENT_UPDATE_STAGE_VERIFYING";
|
|
535
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_APPLYING:
|
|
536
|
+
return "AGENT_UPDATE_STAGE_APPLYING";
|
|
537
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_RESTARTING:
|
|
538
|
+
return "AGENT_UPDATE_STAGE_RESTARTING";
|
|
539
|
+
case AgentUpdateStage.AGENT_UPDATE_STAGE_FAILED:
|
|
540
|
+
return "AGENT_UPDATE_STAGE_FAILED";
|
|
541
|
+
default:
|
|
542
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum AgentUpdateStage");
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
481
546
|
/** The logical byte stream an op-frame Data chunk belongs to. */
|
|
482
547
|
export enum OpChannel {
|
|
483
548
|
OP_CHANNEL_UNSPECIFIED = 0,
|
|
@@ -893,6 +958,20 @@ export interface Hello {
|
|
|
893
958
|
* first connect.
|
|
894
959
|
*/
|
|
895
960
|
resumeToken: string;
|
|
961
|
+
/**
|
|
962
|
+
* Lowercase sha256 of the exact running executable. The control plane uses
|
|
963
|
+
* this with agent_version to verify that a self-update's successor process is
|
|
964
|
+
* the build the signed manifest selected, not merely a process that reconnected.
|
|
965
|
+
*/
|
|
966
|
+
binarySha256: string;
|
|
967
|
+
/**
|
|
968
|
+
* Durable proof written only after an explicitly requested update passed the
|
|
969
|
+
* signed-manifest, artifact signature+digest, atomic apply, and startup health
|
|
970
|
+
* gates. Repeating it on successor Hellos heals lost progress events.
|
|
971
|
+
*/
|
|
972
|
+
completedUpdateOperationId: string;
|
|
973
|
+
completedUpdateTargetVersion: string;
|
|
974
|
+
completedUpdateBinarySha256: string;
|
|
896
975
|
}
|
|
897
976
|
|
|
898
977
|
/**
|
|
@@ -940,6 +1019,18 @@ export interface Capabilities {
|
|
|
940
1019
|
* one machine may host multiple Chrome profiles.
|
|
941
1020
|
*/
|
|
942
1021
|
browserBridge: boolean;
|
|
1022
|
+
/**
|
|
1023
|
+
* The runner enforces the optional per-connection operation memory policy on
|
|
1024
|
+
* every contained exec/git child. A control plane must fail closed rather than
|
|
1025
|
+
* send a configured policy to a runner that does not advertise this bit.
|
|
1026
|
+
*/
|
|
1027
|
+
operationResourcePolicy: boolean;
|
|
1028
|
+
/**
|
|
1029
|
+
* The runner additionally understands and enforces cpu_max_millicores. This is
|
|
1030
|
+
* separate from the memory-policy bit so a newer control plane never sends a
|
|
1031
|
+
* CPU quota that an older memory-only runner would ignore as an unknown field.
|
|
1032
|
+
*/
|
|
1033
|
+
operationCpuQuota: boolean;
|
|
943
1034
|
}
|
|
944
1035
|
|
|
945
1036
|
/**
|
|
@@ -1087,6 +1178,29 @@ export interface EnrollmentCredentials {
|
|
|
1087
1178
|
relayToken: string;
|
|
1088
1179
|
}
|
|
1089
1180
|
|
|
1181
|
+
/**
|
|
1182
|
+
* Optional policy selected for one Connected Machine enrollment. Absence means
|
|
1183
|
+
* the control plane requests no limit; there is deliberately no runner-created
|
|
1184
|
+
* default quota. cpu_max_millicores is an exact, period-independent public ratio.
|
|
1185
|
+
* The Linux runner selects a cgroup-v2 period within the kernel's 1ms..1s ABI so
|
|
1186
|
+
* every positive uint32 millicore value is represented without rounding or
|
|
1187
|
+
* silent loosening. Local runner policy and ancestor OS/cgroup policy may tighten
|
|
1188
|
+
* these values but never loosen them.
|
|
1189
|
+
*/
|
|
1190
|
+
export interface OperationResourcePolicy {
|
|
1191
|
+
memoryMaxBytes?: string | undefined;
|
|
1192
|
+
memoryHighBytes?:
|
|
1193
|
+
| string
|
|
1194
|
+
| undefined;
|
|
1195
|
+
/**
|
|
1196
|
+
* Exact thousandths of one CPU (1000 = one CPU). Absence is unlimited.
|
|
1197
|
+
* The runner preserves the kernel cpu.max period when it can represent this
|
|
1198
|
+
* ratio exactly, otherwise minimally lengthens it to satisfy cgroup v2's 1 ms
|
|
1199
|
+
* minimum quota/period and 1 s maximum period without rounding the ratio.
|
|
1200
|
+
*/
|
|
1201
|
+
cpuMaxMillicores?: number | undefined;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1090
1204
|
export interface ExecRequest {
|
|
1091
1205
|
/** argv[0] is the program; the agent does NOT shell-interpret unless `shell`. */
|
|
1092
1206
|
command: string[];
|
|
@@ -1258,6 +1372,15 @@ export interface PtyOpenRequest {
|
|
|
1258
1372
|
rows: number;
|
|
1259
1373
|
/** The TERM value to advertise (e.g. "xterm-256color"). */
|
|
1260
1374
|
term: string;
|
|
1375
|
+
/**
|
|
1376
|
+
* Stable caller-owned identity for an idempotent terminal. Repeating pty_open
|
|
1377
|
+
* with the same non-empty scope_id returns the existing live PTY/channel rather
|
|
1378
|
+
* than spawning another shell. Empty preserves the explicit "open a new PTY"
|
|
1379
|
+
* behavior. The control plane uses the durable OpenGeni session id here so
|
|
1380
|
+
* capability/token refreshes reattach the same terminal while separate sessions
|
|
1381
|
+
* on one machine remain isolated.
|
|
1382
|
+
*/
|
|
1383
|
+
scopeId: string;
|
|
1261
1384
|
}
|
|
1262
1385
|
|
|
1263
1386
|
export interface PtyOpenRequest_EnvEntry {
|
|
@@ -1656,6 +1779,48 @@ export interface UpdateMayProceedResponse {
|
|
|
1656
1779
|
activeSessions: number;
|
|
1657
1780
|
}
|
|
1658
1781
|
|
|
1782
|
+
/**
|
|
1783
|
+
* Control-plane initiated, process-global self-update. This wraps the same
|
|
1784
|
+
* signed/minisign/sha256/atomic-rollback updater used by the local CLI; it is not
|
|
1785
|
+
* a second installer. The request is idempotent by operation_id and fenced by
|
|
1786
|
+
* the exact process subject plus its expected running version+digest.
|
|
1787
|
+
*/
|
|
1788
|
+
export interface AgentUpdateApplyRequest {
|
|
1789
|
+
operationId: string;
|
|
1790
|
+
targetVersion: string;
|
|
1791
|
+
channel: string;
|
|
1792
|
+
expectedCurrentVersion: string;
|
|
1793
|
+
expectedCurrentSha256: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* The deployment origin serving the signed channel manifest. The pinned
|
|
1796
|
+
* minisign key remains the trust root; this only chooses the fetch origin.
|
|
1797
|
+
*/
|
|
1798
|
+
releaseBaseUrl: string;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
export interface AgentUpdateApplyResponse {
|
|
1802
|
+
accepted: boolean;
|
|
1803
|
+
operationId: string;
|
|
1804
|
+
currentVersion: string;
|
|
1805
|
+
currentSha256: string;
|
|
1806
|
+
targetVersion: string;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* Durable, secret-free progress from the authoritative runner. A successful
|
|
1811
|
+
* RESTARTING event is still provisional: only the successor Hello completes the
|
|
1812
|
+
* update in the control plane.
|
|
1813
|
+
*/
|
|
1814
|
+
export interface AgentUpdateProgress {
|
|
1815
|
+
operationId: string;
|
|
1816
|
+
targetVersion: string;
|
|
1817
|
+
stage: AgentUpdateStage;
|
|
1818
|
+
expectedBinarySha256: string;
|
|
1819
|
+
errorCode: string;
|
|
1820
|
+
retryable: boolean;
|
|
1821
|
+
rolledBack: boolean;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1659
1824
|
/**
|
|
1660
1825
|
* The terminal outcome of an op — carried in the Exit frame body AND echoed in
|
|
1661
1826
|
* OpStatus once complete. Digests/totals are keyed by channel name
|
|
@@ -1857,7 +2022,8 @@ export interface OpProgress {
|
|
|
1857
2022
|
|
|
1858
2023
|
/**
|
|
1859
2024
|
* A server→runner cumulative ack + credit replenishment, published fire-and-forget
|
|
1860
|
-
* on the
|
|
2025
|
+
* on the exact process ack subject
|
|
2026
|
+
* (`agent.<ws>.<id>.connection.<instance>.ack`). Best-effort, healed by repetition.
|
|
1861
2027
|
*/
|
|
1862
2028
|
export interface OpAck {
|
|
1863
2029
|
opId: string;
|
|
@@ -1887,11 +2053,16 @@ export interface OpAck {
|
|
|
1887
2053
|
export interface ControlRequest {
|
|
1888
2054
|
requestId: string;
|
|
1889
2055
|
epoch: number;
|
|
2056
|
+
/**
|
|
2057
|
+
* Per-connection policy snapshot attached to the operation request. It lives
|
|
2058
|
+
* on the envelope so request/reply Git and replayable OpStart share one
|
|
2059
|
+
* contract. Absent means unrestricted by the control plane.
|
|
2060
|
+
*/
|
|
2061
|
+
resourcePolicy: OperationResourcePolicy | undefined;
|
|
1890
2062
|
op:
|
|
1891
2063
|
| { $case: "ping"; ping: PingRequest }
|
|
1892
2064
|
| { $case: "hello"; hello: Hello }
|
|
1893
2065
|
| { $case: "resume"; resume: ResumeRequest }
|
|
1894
|
-
| { $case: "exec"; exec: ExecRequest }
|
|
1895
2066
|
| { $case: "fsRead"; fsRead: FsReadRequest }
|
|
1896
2067
|
| { $case: "fsWrite"; fsWrite: FsWriteRequest }
|
|
1897
2068
|
| { $case: "fsList"; fsList: FsListRequest }
|
|
@@ -1922,6 +2093,7 @@ export interface ControlRequest {
|
|
|
1922
2093
|
| { $case: "browserControlEnsure"; browserControlEnsure: BrowserControlEnsureRequest }
|
|
1923
2094
|
| { $case: "browserFramesOpen"; browserFramesOpen: BrowserFramesOpenRequest }
|
|
1924
2095
|
| { $case: "computerFramesOpen"; computerFramesOpen: ComputerFramesOpenRequest }
|
|
2096
|
+
| { $case: "agentUpdateApply"; agentUpdateApply: AgentUpdateApplyRequest }
|
|
1925
2097
|
| undefined;
|
|
1926
2098
|
}
|
|
1927
2099
|
|
|
@@ -1934,7 +2106,6 @@ export interface ControlResponse {
|
|
|
1934
2106
|
| { $case: "ping"; ping: PingResponse }
|
|
1935
2107
|
| { $case: "hello"; hello: HelloAck }
|
|
1936
2108
|
| { $case: "resume"; resume: ResumeResponse }
|
|
1937
|
-
| { $case: "exec"; exec: ExecResponse }
|
|
1938
2109
|
| { $case: "fsRead"; fsRead: FsReadResponse }
|
|
1939
2110
|
| { $case: "fsWrite"; fsWrite: FsWriteResponse }
|
|
1940
2111
|
| { $case: "fsList"; fsList: FsListResponse }
|
|
@@ -1963,6 +2134,7 @@ export interface ControlResponse {
|
|
|
1963
2134
|
| { $case: "browserControlEnsure"; browserControlEnsure: BrowserControlEnsureResponse }
|
|
1964
2135
|
| { $case: "browserFramesOpen"; browserFramesOpen: BrowserFramesOpenResponse }
|
|
1965
2136
|
| { $case: "computerFramesOpen"; computerFramesOpen: ComputerFramesOpenResponse }
|
|
2137
|
+
| { $case: "agentUpdateApply"; agentUpdateApply: AgentUpdateApplyResponse }
|
|
1966
2138
|
| undefined;
|
|
1967
2139
|
}
|
|
1968
2140
|
|
|
@@ -1984,10 +2156,10 @@ export interface HelloAck {
|
|
|
1984
2156
|
*/
|
|
1985
2157
|
export interface AgentEvent {
|
|
1986
2158
|
agentId: string;
|
|
1987
|
-
event:
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
2159
|
+
event: { $case: "heartbeat"; heartbeat: Heartbeat } | { $case: "goingOffline"; goingOffline: GoingOffline } | {
|
|
2160
|
+
$case: "agentUpdateProgress";
|
|
2161
|
+
agentUpdateProgress: AgentUpdateProgress;
|
|
2162
|
+
} | undefined;
|
|
1991
2163
|
}
|
|
1992
2164
|
|
|
1993
2165
|
/** The control plane's ack of an AgentEvent (e.g. a HeartbeatAck). */
|
|
@@ -2322,6 +2494,10 @@ function createBaseHello(): Hello {
|
|
|
2322
2494
|
capabilities: undefined,
|
|
2323
2495
|
updateChannel: "",
|
|
2324
2496
|
resumeToken: "",
|
|
2497
|
+
binarySha256: "",
|
|
2498
|
+
completedUpdateOperationId: "",
|
|
2499
|
+
completedUpdateTargetVersion: "",
|
|
2500
|
+
completedUpdateBinarySha256: "",
|
|
2325
2501
|
};
|
|
2326
2502
|
}
|
|
2327
2503
|
|
|
@@ -2357,6 +2533,18 @@ export const Hello: MessageFns<Hello> = {
|
|
|
2357
2533
|
if (message.resumeToken !== "") {
|
|
2358
2534
|
writer.uint32(82).string(message.resumeToken);
|
|
2359
2535
|
}
|
|
2536
|
+
if (message.binarySha256 !== "") {
|
|
2537
|
+
writer.uint32(90).string(message.binarySha256);
|
|
2538
|
+
}
|
|
2539
|
+
if (message.completedUpdateOperationId !== "") {
|
|
2540
|
+
writer.uint32(98).string(message.completedUpdateOperationId);
|
|
2541
|
+
}
|
|
2542
|
+
if (message.completedUpdateTargetVersion !== "") {
|
|
2543
|
+
writer.uint32(106).string(message.completedUpdateTargetVersion);
|
|
2544
|
+
}
|
|
2545
|
+
if (message.completedUpdateBinarySha256 !== "") {
|
|
2546
|
+
writer.uint32(114).string(message.completedUpdateBinarySha256);
|
|
2547
|
+
}
|
|
2360
2548
|
return writer;
|
|
2361
2549
|
},
|
|
2362
2550
|
|
|
@@ -2447,6 +2635,38 @@ export const Hello: MessageFns<Hello> = {
|
|
|
2447
2635
|
message.resumeToken = reader.string();
|
|
2448
2636
|
continue;
|
|
2449
2637
|
}
|
|
2638
|
+
case 11: {
|
|
2639
|
+
if (tag !== 90) {
|
|
2640
|
+
break;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
message.binarySha256 = reader.string();
|
|
2644
|
+
continue;
|
|
2645
|
+
}
|
|
2646
|
+
case 12: {
|
|
2647
|
+
if (tag !== 98) {
|
|
2648
|
+
break;
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
message.completedUpdateOperationId = reader.string();
|
|
2652
|
+
continue;
|
|
2653
|
+
}
|
|
2654
|
+
case 13: {
|
|
2655
|
+
if (tag !== 106) {
|
|
2656
|
+
break;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
message.completedUpdateTargetVersion = reader.string();
|
|
2660
|
+
continue;
|
|
2661
|
+
}
|
|
2662
|
+
case 14: {
|
|
2663
|
+
if (tag !== 114) {
|
|
2664
|
+
break;
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
message.completedUpdateBinarySha256 = reader.string();
|
|
2668
|
+
continue;
|
|
2669
|
+
}
|
|
2450
2670
|
}
|
|
2451
2671
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2452
2672
|
break;
|
|
@@ -2496,6 +2716,26 @@ export const Hello: MessageFns<Hello> = {
|
|
|
2496
2716
|
: isSet(object.resume_token)
|
|
2497
2717
|
? globalThis.String(object.resume_token)
|
|
2498
2718
|
: "",
|
|
2719
|
+
binarySha256: isSet(object.binarySha256)
|
|
2720
|
+
? globalThis.String(object.binarySha256)
|
|
2721
|
+
: isSet(object.binary_sha256)
|
|
2722
|
+
? globalThis.String(object.binary_sha256)
|
|
2723
|
+
: "",
|
|
2724
|
+
completedUpdateOperationId: isSet(object.completedUpdateOperationId)
|
|
2725
|
+
? globalThis.String(object.completedUpdateOperationId)
|
|
2726
|
+
: isSet(object.completed_update_operation_id)
|
|
2727
|
+
? globalThis.String(object.completed_update_operation_id)
|
|
2728
|
+
: "",
|
|
2729
|
+
completedUpdateTargetVersion: isSet(object.completedUpdateTargetVersion)
|
|
2730
|
+
? globalThis.String(object.completedUpdateTargetVersion)
|
|
2731
|
+
: isSet(object.completed_update_target_version)
|
|
2732
|
+
? globalThis.String(object.completed_update_target_version)
|
|
2733
|
+
: "",
|
|
2734
|
+
completedUpdateBinarySha256: isSet(object.completedUpdateBinarySha256)
|
|
2735
|
+
? globalThis.String(object.completedUpdateBinarySha256)
|
|
2736
|
+
: isSet(object.completed_update_binary_sha256)
|
|
2737
|
+
? globalThis.String(object.completed_update_binary_sha256)
|
|
2738
|
+
: "",
|
|
2499
2739
|
};
|
|
2500
2740
|
},
|
|
2501
2741
|
|
|
@@ -2531,6 +2771,18 @@ export const Hello: MessageFns<Hello> = {
|
|
|
2531
2771
|
if (message.resumeToken !== "") {
|
|
2532
2772
|
obj.resumeToken = message.resumeToken;
|
|
2533
2773
|
}
|
|
2774
|
+
if (message.binarySha256 !== "") {
|
|
2775
|
+
obj.binarySha256 = message.binarySha256;
|
|
2776
|
+
}
|
|
2777
|
+
if (message.completedUpdateOperationId !== "") {
|
|
2778
|
+
obj.completedUpdateOperationId = message.completedUpdateOperationId;
|
|
2779
|
+
}
|
|
2780
|
+
if (message.completedUpdateTargetVersion !== "") {
|
|
2781
|
+
obj.completedUpdateTargetVersion = message.completedUpdateTargetVersion;
|
|
2782
|
+
}
|
|
2783
|
+
if (message.completedUpdateBinarySha256 !== "") {
|
|
2784
|
+
obj.completedUpdateBinarySha256 = message.completedUpdateBinarySha256;
|
|
2785
|
+
}
|
|
2534
2786
|
return obj;
|
|
2535
2787
|
},
|
|
2536
2788
|
|
|
@@ -2551,6 +2803,10 @@ export const Hello: MessageFns<Hello> = {
|
|
|
2551
2803
|
: undefined;
|
|
2552
2804
|
message.updateChannel = object.updateChannel ?? "";
|
|
2553
2805
|
message.resumeToken = object.resumeToken ?? "";
|
|
2806
|
+
message.binarySha256 = object.binarySha256 ?? "";
|
|
2807
|
+
message.completedUpdateOperationId = object.completedUpdateOperationId ?? "";
|
|
2808
|
+
message.completedUpdateTargetVersion = object.completedUpdateTargetVersion ?? "";
|
|
2809
|
+
message.completedUpdateBinarySha256 = object.completedUpdateBinarySha256 ?? "";
|
|
2554
2810
|
return message;
|
|
2555
2811
|
},
|
|
2556
2812
|
};
|
|
@@ -2568,6 +2824,8 @@ function createBaseCapabilities(): Capabilities {
|
|
|
2568
2824
|
desktopUnavailableReason: "",
|
|
2569
2825
|
opStream: false,
|
|
2570
2826
|
browserBridge: false,
|
|
2827
|
+
operationResourcePolicy: false,
|
|
2828
|
+
operationCpuQuota: false,
|
|
2571
2829
|
};
|
|
2572
2830
|
}
|
|
2573
2831
|
|
|
@@ -2606,6 +2864,12 @@ export const Capabilities: MessageFns<Capabilities> = {
|
|
|
2606
2864
|
if (message.browserBridge !== false) {
|
|
2607
2865
|
writer.uint32(88).bool(message.browserBridge);
|
|
2608
2866
|
}
|
|
2867
|
+
if (message.operationResourcePolicy !== false) {
|
|
2868
|
+
writer.uint32(96).bool(message.operationResourcePolicy);
|
|
2869
|
+
}
|
|
2870
|
+
if (message.operationCpuQuota !== false) {
|
|
2871
|
+
writer.uint32(104).bool(message.operationCpuQuota);
|
|
2872
|
+
}
|
|
2609
2873
|
return writer;
|
|
2610
2874
|
},
|
|
2611
2875
|
|
|
@@ -2704,6 +2968,22 @@ export const Capabilities: MessageFns<Capabilities> = {
|
|
|
2704
2968
|
message.browserBridge = reader.bool();
|
|
2705
2969
|
continue;
|
|
2706
2970
|
}
|
|
2971
|
+
case 12: {
|
|
2972
|
+
if (tag !== 96) {
|
|
2973
|
+
break;
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
message.operationResourcePolicy = reader.bool();
|
|
2977
|
+
continue;
|
|
2978
|
+
}
|
|
2979
|
+
case 13: {
|
|
2980
|
+
if (tag !== 104) {
|
|
2981
|
+
break;
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
message.operationCpuQuota = reader.bool();
|
|
2985
|
+
continue;
|
|
2986
|
+
}
|
|
2707
2987
|
}
|
|
2708
2988
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2709
2989
|
break;
|
|
@@ -2746,6 +3026,16 @@ export const Capabilities: MessageFns<Capabilities> = {
|
|
|
2746
3026
|
: isSet(object.browser_bridge)
|
|
2747
3027
|
? globalThis.Boolean(object.browser_bridge)
|
|
2748
3028
|
: false,
|
|
3029
|
+
operationResourcePolicy: isSet(object.operationResourcePolicy)
|
|
3030
|
+
? globalThis.Boolean(object.operationResourcePolicy)
|
|
3031
|
+
: isSet(object.operation_resource_policy)
|
|
3032
|
+
? globalThis.Boolean(object.operation_resource_policy)
|
|
3033
|
+
: false,
|
|
3034
|
+
operationCpuQuota: isSet(object.operationCpuQuota)
|
|
3035
|
+
? globalThis.Boolean(object.operationCpuQuota)
|
|
3036
|
+
: isSet(object.operation_cpu_quota)
|
|
3037
|
+
? globalThis.Boolean(object.operation_cpu_quota)
|
|
3038
|
+
: false,
|
|
2749
3039
|
};
|
|
2750
3040
|
},
|
|
2751
3041
|
|
|
@@ -2784,6 +3074,12 @@ export const Capabilities: MessageFns<Capabilities> = {
|
|
|
2784
3074
|
if (message.browserBridge !== false) {
|
|
2785
3075
|
obj.browserBridge = message.browserBridge;
|
|
2786
3076
|
}
|
|
3077
|
+
if (message.operationResourcePolicy !== false) {
|
|
3078
|
+
obj.operationResourcePolicy = message.operationResourcePolicy;
|
|
3079
|
+
}
|
|
3080
|
+
if (message.operationCpuQuota !== false) {
|
|
3081
|
+
obj.operationCpuQuota = message.operationCpuQuota;
|
|
3082
|
+
}
|
|
2787
3083
|
return obj;
|
|
2788
3084
|
},
|
|
2789
3085
|
|
|
@@ -2805,6 +3101,8 @@ export const Capabilities: MessageFns<Capabilities> = {
|
|
|
2805
3101
|
message.desktopUnavailableReason = object.desktopUnavailableReason ?? "";
|
|
2806
3102
|
message.opStream = object.opStream ?? false;
|
|
2807
3103
|
message.browserBridge = object.browserBridge ?? false;
|
|
3104
|
+
message.operationResourcePolicy = object.operationResourcePolicy ?? false;
|
|
3105
|
+
message.operationCpuQuota = object.operationCpuQuota ?? false;
|
|
2808
3106
|
return message;
|
|
2809
3107
|
},
|
|
2810
3108
|
};
|
|
@@ -4217,6 +4515,110 @@ export const EnrollmentCredentials: MessageFns<EnrollmentCredentials> = {
|
|
|
4217
4515
|
},
|
|
4218
4516
|
};
|
|
4219
4517
|
|
|
4518
|
+
function createBaseOperationResourcePolicy(): OperationResourcePolicy {
|
|
4519
|
+
return { memoryMaxBytes: undefined, memoryHighBytes: undefined, cpuMaxMillicores: undefined };
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4522
|
+
export const OperationResourcePolicy: MessageFns<OperationResourcePolicy> = {
|
|
4523
|
+
encode(message: OperationResourcePolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4524
|
+
if (message.memoryMaxBytes !== undefined) {
|
|
4525
|
+
writer.uint32(8).uint64(message.memoryMaxBytes);
|
|
4526
|
+
}
|
|
4527
|
+
if (message.memoryHighBytes !== undefined) {
|
|
4528
|
+
writer.uint32(16).uint64(message.memoryHighBytes);
|
|
4529
|
+
}
|
|
4530
|
+
if (message.cpuMaxMillicores !== undefined) {
|
|
4531
|
+
writer.uint32(24).uint32(message.cpuMaxMillicores);
|
|
4532
|
+
}
|
|
4533
|
+
return writer;
|
|
4534
|
+
},
|
|
4535
|
+
|
|
4536
|
+
decode(input: BinaryReader | Uint8Array, length?: number): OperationResourcePolicy {
|
|
4537
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4538
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4539
|
+
const message = createBaseOperationResourcePolicy();
|
|
4540
|
+
while (reader.pos < end) {
|
|
4541
|
+
const tag = reader.uint32();
|
|
4542
|
+
switch (tag >>> 3) {
|
|
4543
|
+
case 1: {
|
|
4544
|
+
if (tag !== 8) {
|
|
4545
|
+
break;
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4548
|
+
message.memoryMaxBytes = reader.uint64().toString();
|
|
4549
|
+
continue;
|
|
4550
|
+
}
|
|
4551
|
+
case 2: {
|
|
4552
|
+
if (tag !== 16) {
|
|
4553
|
+
break;
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4556
|
+
message.memoryHighBytes = reader.uint64().toString();
|
|
4557
|
+
continue;
|
|
4558
|
+
}
|
|
4559
|
+
case 3: {
|
|
4560
|
+
if (tag !== 24) {
|
|
4561
|
+
break;
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4564
|
+
message.cpuMaxMillicores = reader.uint32();
|
|
4565
|
+
continue;
|
|
4566
|
+
}
|
|
4567
|
+
}
|
|
4568
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4569
|
+
break;
|
|
4570
|
+
}
|
|
4571
|
+
reader.skip(tag & 7);
|
|
4572
|
+
}
|
|
4573
|
+
return message;
|
|
4574
|
+
},
|
|
4575
|
+
|
|
4576
|
+
fromJSON(object: any): OperationResourcePolicy {
|
|
4577
|
+
return {
|
|
4578
|
+
memoryMaxBytes: isSet(object.memoryMaxBytes)
|
|
4579
|
+
? globalThis.String(object.memoryMaxBytes)
|
|
4580
|
+
: isSet(object.memory_max_bytes)
|
|
4581
|
+
? globalThis.String(object.memory_max_bytes)
|
|
4582
|
+
: undefined,
|
|
4583
|
+
memoryHighBytes: isSet(object.memoryHighBytes)
|
|
4584
|
+
? globalThis.String(object.memoryHighBytes)
|
|
4585
|
+
: isSet(object.memory_high_bytes)
|
|
4586
|
+
? globalThis.String(object.memory_high_bytes)
|
|
4587
|
+
: undefined,
|
|
4588
|
+
cpuMaxMillicores: isSet(object.cpuMaxMillicores)
|
|
4589
|
+
? globalThis.Number(object.cpuMaxMillicores)
|
|
4590
|
+
: isSet(object.cpu_max_millicores)
|
|
4591
|
+
? globalThis.Number(object.cpu_max_millicores)
|
|
4592
|
+
: undefined,
|
|
4593
|
+
};
|
|
4594
|
+
},
|
|
4595
|
+
|
|
4596
|
+
toJSON(message: OperationResourcePolicy): unknown {
|
|
4597
|
+
const obj: any = {};
|
|
4598
|
+
if (message.memoryMaxBytes !== undefined) {
|
|
4599
|
+
obj.memoryMaxBytes = message.memoryMaxBytes;
|
|
4600
|
+
}
|
|
4601
|
+
if (message.memoryHighBytes !== undefined) {
|
|
4602
|
+
obj.memoryHighBytes = message.memoryHighBytes;
|
|
4603
|
+
}
|
|
4604
|
+
if (message.cpuMaxMillicores !== undefined) {
|
|
4605
|
+
obj.cpuMaxMillicores = Math.round(message.cpuMaxMillicores);
|
|
4606
|
+
}
|
|
4607
|
+
return obj;
|
|
4608
|
+
},
|
|
4609
|
+
|
|
4610
|
+
create<I extends Exact<DeepPartial<OperationResourcePolicy>, I>>(base?: I): OperationResourcePolicy {
|
|
4611
|
+
return OperationResourcePolicy.fromPartial(base ?? ({} as any));
|
|
4612
|
+
},
|
|
4613
|
+
fromPartial<I extends Exact<DeepPartial<OperationResourcePolicy>, I>>(object: I): OperationResourcePolicy {
|
|
4614
|
+
const message = createBaseOperationResourcePolicy();
|
|
4615
|
+
message.memoryMaxBytes = object.memoryMaxBytes ?? undefined;
|
|
4616
|
+
message.memoryHighBytes = object.memoryHighBytes ?? undefined;
|
|
4617
|
+
message.cpuMaxMillicores = object.cpuMaxMillicores ?? undefined;
|
|
4618
|
+
return message;
|
|
4619
|
+
},
|
|
4620
|
+
};
|
|
4621
|
+
|
|
4220
4622
|
function createBaseExecRequest(): ExecRequest {
|
|
4221
4623
|
return { command: [], shell: false, cwd: "", env: {}, stdin: new Uint8Array(0), timeoutMs: 0 };
|
|
4222
4624
|
}
|
|
@@ -6206,7 +6608,7 @@ export const GitFileStatus: MessageFns<GitFileStatus> = {
|
|
|
6206
6608
|
};
|
|
6207
6609
|
|
|
6208
6610
|
function createBasePtyOpenRequest(): PtyOpenRequest {
|
|
6209
|
-
return { command: [], cwd: "", env: {}, cols: 0, rows: 0, term: "" };
|
|
6611
|
+
return { command: [], cwd: "", env: {}, cols: 0, rows: 0, term: "", scopeId: "" };
|
|
6210
6612
|
}
|
|
6211
6613
|
|
|
6212
6614
|
export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
@@ -6229,6 +6631,9 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6229
6631
|
if (message.term !== "") {
|
|
6230
6632
|
writer.uint32(50).string(message.term);
|
|
6231
6633
|
}
|
|
6634
|
+
if (message.scopeId !== "") {
|
|
6635
|
+
writer.uint32(58).string(message.scopeId);
|
|
6636
|
+
}
|
|
6232
6637
|
return writer;
|
|
6233
6638
|
},
|
|
6234
6639
|
|
|
@@ -6290,6 +6695,14 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6290
6695
|
message.term = reader.string();
|
|
6291
6696
|
continue;
|
|
6292
6697
|
}
|
|
6698
|
+
case 7: {
|
|
6699
|
+
if (tag !== 58) {
|
|
6700
|
+
break;
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
message.scopeId = reader.string();
|
|
6704
|
+
continue;
|
|
6705
|
+
}
|
|
6293
6706
|
}
|
|
6294
6707
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6295
6708
|
break;
|
|
@@ -6315,6 +6728,11 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6315
6728
|
cols: isSet(object.cols) ? globalThis.Number(object.cols) : 0,
|
|
6316
6729
|
rows: isSet(object.rows) ? globalThis.Number(object.rows) : 0,
|
|
6317
6730
|
term: isSet(object.term) ? globalThis.String(object.term) : "",
|
|
6731
|
+
scopeId: isSet(object.scopeId)
|
|
6732
|
+
? globalThis.String(object.scopeId)
|
|
6733
|
+
: isSet(object.scope_id)
|
|
6734
|
+
? globalThis.String(object.scope_id)
|
|
6735
|
+
: "",
|
|
6318
6736
|
};
|
|
6319
6737
|
},
|
|
6320
6738
|
|
|
@@ -6344,6 +6762,9 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6344
6762
|
if (message.term !== "") {
|
|
6345
6763
|
obj.term = message.term;
|
|
6346
6764
|
}
|
|
6765
|
+
if (message.scopeId !== "") {
|
|
6766
|
+
obj.scopeId = message.scopeId;
|
|
6767
|
+
}
|
|
6347
6768
|
return obj;
|
|
6348
6769
|
},
|
|
6349
6770
|
|
|
@@ -6366,6 +6787,7 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6366
6787
|
message.cols = object.cols ?? 0;
|
|
6367
6788
|
message.rows = object.rows ?? 0;
|
|
6368
6789
|
message.term = object.term ?? "";
|
|
6790
|
+
message.scopeId = object.scopeId ?? "";
|
|
6369
6791
|
return message;
|
|
6370
6792
|
},
|
|
6371
6793
|
};
|
|
@@ -10495,85 +10917,77 @@ export const UpdateMayProceedResponse: MessageFns<UpdateMayProceedResponse> = {
|
|
|
10495
10917
|
},
|
|
10496
10918
|
};
|
|
10497
10919
|
|
|
10498
|
-
function
|
|
10920
|
+
function createBaseAgentUpdateApplyRequest(): AgentUpdateApplyRequest {
|
|
10499
10921
|
return {
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
failureCode: "",
|
|
10507
|
-
failureDetail: {},
|
|
10922
|
+
operationId: "",
|
|
10923
|
+
targetVersion: "",
|
|
10924
|
+
channel: "",
|
|
10925
|
+
expectedCurrentVersion: "",
|
|
10926
|
+
expectedCurrentSha256: "",
|
|
10927
|
+
releaseBaseUrl: "",
|
|
10508
10928
|
};
|
|
10509
10929
|
}
|
|
10510
10930
|
|
|
10511
|
-
export const
|
|
10512
|
-
encode(message:
|
|
10513
|
-
if (message.
|
|
10514
|
-
writer.uint32(
|
|
10931
|
+
export const AgentUpdateApplyRequest: MessageFns<AgentUpdateApplyRequest> = {
|
|
10932
|
+
encode(message: AgentUpdateApplyRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
10933
|
+
if (message.operationId !== "") {
|
|
10934
|
+
writer.uint32(10).string(message.operationId);
|
|
10515
10935
|
}
|
|
10516
|
-
if (message.
|
|
10517
|
-
writer.uint32(
|
|
10936
|
+
if (message.targetVersion !== "") {
|
|
10937
|
+
writer.uint32(18).string(message.targetVersion);
|
|
10518
10938
|
}
|
|
10519
|
-
if (message.
|
|
10520
|
-
writer.uint32(
|
|
10939
|
+
if (message.channel !== "") {
|
|
10940
|
+
writer.uint32(26).string(message.channel);
|
|
10521
10941
|
}
|
|
10522
|
-
if (message.
|
|
10523
|
-
writer.uint32(
|
|
10942
|
+
if (message.expectedCurrentVersion !== "") {
|
|
10943
|
+
writer.uint32(34).string(message.expectedCurrentVersion);
|
|
10524
10944
|
}
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
}
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
});
|
|
10531
|
-
if (message.failureCode !== "") {
|
|
10532
|
-
writer.uint32(58).string(message.failureCode);
|
|
10945
|
+
if (message.expectedCurrentSha256 !== "") {
|
|
10946
|
+
writer.uint32(42).string(message.expectedCurrentSha256);
|
|
10947
|
+
}
|
|
10948
|
+
if (message.releaseBaseUrl !== "") {
|
|
10949
|
+
writer.uint32(50).string(message.releaseBaseUrl);
|
|
10533
10950
|
}
|
|
10534
|
-
globalThis.Object.entries(message.failureDetail).forEach(([key, value]: [string, string]) => {
|
|
10535
|
-
OpExit_FailureDetailEntry.encode({ key: key as any, value }, writer.uint32(66).fork()).join();
|
|
10536
|
-
});
|
|
10537
10951
|
return writer;
|
|
10538
10952
|
},
|
|
10539
10953
|
|
|
10540
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
10954
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AgentUpdateApplyRequest {
|
|
10541
10955
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10542
10956
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
10543
|
-
const message =
|
|
10957
|
+
const message = createBaseAgentUpdateApplyRequest();
|
|
10544
10958
|
while (reader.pos < end) {
|
|
10545
10959
|
const tag = reader.uint32();
|
|
10546
10960
|
switch (tag >>> 3) {
|
|
10547
10961
|
case 1: {
|
|
10548
|
-
if (tag !==
|
|
10962
|
+
if (tag !== 10) {
|
|
10549
10963
|
break;
|
|
10550
10964
|
}
|
|
10551
10965
|
|
|
10552
|
-
message.
|
|
10966
|
+
message.operationId = reader.string();
|
|
10553
10967
|
continue;
|
|
10554
10968
|
}
|
|
10555
10969
|
case 2: {
|
|
10556
|
-
if (tag !==
|
|
10970
|
+
if (tag !== 18) {
|
|
10557
10971
|
break;
|
|
10558
10972
|
}
|
|
10559
10973
|
|
|
10560
|
-
message.
|
|
10974
|
+
message.targetVersion = reader.string();
|
|
10561
10975
|
continue;
|
|
10562
10976
|
}
|
|
10563
10977
|
case 3: {
|
|
10564
|
-
if (tag !==
|
|
10978
|
+
if (tag !== 26) {
|
|
10565
10979
|
break;
|
|
10566
10980
|
}
|
|
10567
10981
|
|
|
10568
|
-
message.
|
|
10982
|
+
message.channel = reader.string();
|
|
10569
10983
|
continue;
|
|
10570
10984
|
}
|
|
10571
10985
|
case 4: {
|
|
10572
|
-
if (tag !==
|
|
10986
|
+
if (tag !== 34) {
|
|
10573
10987
|
break;
|
|
10574
10988
|
}
|
|
10575
10989
|
|
|
10576
|
-
message.
|
|
10990
|
+
message.expectedCurrentVersion = reader.string();
|
|
10577
10991
|
continue;
|
|
10578
10992
|
}
|
|
10579
10993
|
case 5: {
|
|
@@ -10581,9 +10995,508 @@ export const OpExit: MessageFns<OpExit> = {
|
|
|
10581
10995
|
break;
|
|
10582
10996
|
}
|
|
10583
10997
|
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10998
|
+
message.expectedCurrentSha256 = reader.string();
|
|
10999
|
+
continue;
|
|
11000
|
+
}
|
|
11001
|
+
case 6: {
|
|
11002
|
+
if (tag !== 50) {
|
|
11003
|
+
break;
|
|
11004
|
+
}
|
|
11005
|
+
|
|
11006
|
+
message.releaseBaseUrl = reader.string();
|
|
11007
|
+
continue;
|
|
11008
|
+
}
|
|
11009
|
+
}
|
|
11010
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11011
|
+
break;
|
|
11012
|
+
}
|
|
11013
|
+
reader.skip(tag & 7);
|
|
11014
|
+
}
|
|
11015
|
+
return message;
|
|
11016
|
+
},
|
|
11017
|
+
|
|
11018
|
+
fromJSON(object: any): AgentUpdateApplyRequest {
|
|
11019
|
+
return {
|
|
11020
|
+
operationId: isSet(object.operationId)
|
|
11021
|
+
? globalThis.String(object.operationId)
|
|
11022
|
+
: isSet(object.operation_id)
|
|
11023
|
+
? globalThis.String(object.operation_id)
|
|
11024
|
+
: "",
|
|
11025
|
+
targetVersion: isSet(object.targetVersion)
|
|
11026
|
+
? globalThis.String(object.targetVersion)
|
|
11027
|
+
: isSet(object.target_version)
|
|
11028
|
+
? globalThis.String(object.target_version)
|
|
11029
|
+
: "",
|
|
11030
|
+
channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
|
|
11031
|
+
expectedCurrentVersion: isSet(object.expectedCurrentVersion)
|
|
11032
|
+
? globalThis.String(object.expectedCurrentVersion)
|
|
11033
|
+
: isSet(object.expected_current_version)
|
|
11034
|
+
? globalThis.String(object.expected_current_version)
|
|
11035
|
+
: "",
|
|
11036
|
+
expectedCurrentSha256: isSet(object.expectedCurrentSha256)
|
|
11037
|
+
? globalThis.String(object.expectedCurrentSha256)
|
|
11038
|
+
: isSet(object.expected_current_sha256)
|
|
11039
|
+
? globalThis.String(object.expected_current_sha256)
|
|
11040
|
+
: "",
|
|
11041
|
+
releaseBaseUrl: isSet(object.releaseBaseUrl)
|
|
11042
|
+
? globalThis.String(object.releaseBaseUrl)
|
|
11043
|
+
: isSet(object.release_base_url)
|
|
11044
|
+
? globalThis.String(object.release_base_url)
|
|
11045
|
+
: "",
|
|
11046
|
+
};
|
|
11047
|
+
},
|
|
11048
|
+
|
|
11049
|
+
toJSON(message: AgentUpdateApplyRequest): unknown {
|
|
11050
|
+
const obj: any = {};
|
|
11051
|
+
if (message.operationId !== "") {
|
|
11052
|
+
obj.operationId = message.operationId;
|
|
11053
|
+
}
|
|
11054
|
+
if (message.targetVersion !== "") {
|
|
11055
|
+
obj.targetVersion = message.targetVersion;
|
|
11056
|
+
}
|
|
11057
|
+
if (message.channel !== "") {
|
|
11058
|
+
obj.channel = message.channel;
|
|
11059
|
+
}
|
|
11060
|
+
if (message.expectedCurrentVersion !== "") {
|
|
11061
|
+
obj.expectedCurrentVersion = message.expectedCurrentVersion;
|
|
11062
|
+
}
|
|
11063
|
+
if (message.expectedCurrentSha256 !== "") {
|
|
11064
|
+
obj.expectedCurrentSha256 = message.expectedCurrentSha256;
|
|
11065
|
+
}
|
|
11066
|
+
if (message.releaseBaseUrl !== "") {
|
|
11067
|
+
obj.releaseBaseUrl = message.releaseBaseUrl;
|
|
11068
|
+
}
|
|
11069
|
+
return obj;
|
|
11070
|
+
},
|
|
11071
|
+
|
|
11072
|
+
create<I extends Exact<DeepPartial<AgentUpdateApplyRequest>, I>>(base?: I): AgentUpdateApplyRequest {
|
|
11073
|
+
return AgentUpdateApplyRequest.fromPartial(base ?? ({} as any));
|
|
11074
|
+
},
|
|
11075
|
+
fromPartial<I extends Exact<DeepPartial<AgentUpdateApplyRequest>, I>>(object: I): AgentUpdateApplyRequest {
|
|
11076
|
+
const message = createBaseAgentUpdateApplyRequest();
|
|
11077
|
+
message.operationId = object.operationId ?? "";
|
|
11078
|
+
message.targetVersion = object.targetVersion ?? "";
|
|
11079
|
+
message.channel = object.channel ?? "";
|
|
11080
|
+
message.expectedCurrentVersion = object.expectedCurrentVersion ?? "";
|
|
11081
|
+
message.expectedCurrentSha256 = object.expectedCurrentSha256 ?? "";
|
|
11082
|
+
message.releaseBaseUrl = object.releaseBaseUrl ?? "";
|
|
11083
|
+
return message;
|
|
11084
|
+
},
|
|
11085
|
+
};
|
|
11086
|
+
|
|
11087
|
+
function createBaseAgentUpdateApplyResponse(): AgentUpdateApplyResponse {
|
|
11088
|
+
return { accepted: false, operationId: "", currentVersion: "", currentSha256: "", targetVersion: "" };
|
|
11089
|
+
}
|
|
11090
|
+
|
|
11091
|
+
export const AgentUpdateApplyResponse: MessageFns<AgentUpdateApplyResponse> = {
|
|
11092
|
+
encode(message: AgentUpdateApplyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
11093
|
+
if (message.accepted !== false) {
|
|
11094
|
+
writer.uint32(8).bool(message.accepted);
|
|
11095
|
+
}
|
|
11096
|
+
if (message.operationId !== "") {
|
|
11097
|
+
writer.uint32(18).string(message.operationId);
|
|
11098
|
+
}
|
|
11099
|
+
if (message.currentVersion !== "") {
|
|
11100
|
+
writer.uint32(26).string(message.currentVersion);
|
|
11101
|
+
}
|
|
11102
|
+
if (message.currentSha256 !== "") {
|
|
11103
|
+
writer.uint32(34).string(message.currentSha256);
|
|
11104
|
+
}
|
|
11105
|
+
if (message.targetVersion !== "") {
|
|
11106
|
+
writer.uint32(42).string(message.targetVersion);
|
|
11107
|
+
}
|
|
11108
|
+
return writer;
|
|
11109
|
+
},
|
|
11110
|
+
|
|
11111
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AgentUpdateApplyResponse {
|
|
11112
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11113
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
11114
|
+
const message = createBaseAgentUpdateApplyResponse();
|
|
11115
|
+
while (reader.pos < end) {
|
|
11116
|
+
const tag = reader.uint32();
|
|
11117
|
+
switch (tag >>> 3) {
|
|
11118
|
+
case 1: {
|
|
11119
|
+
if (tag !== 8) {
|
|
11120
|
+
break;
|
|
11121
|
+
}
|
|
11122
|
+
|
|
11123
|
+
message.accepted = reader.bool();
|
|
11124
|
+
continue;
|
|
11125
|
+
}
|
|
11126
|
+
case 2: {
|
|
11127
|
+
if (tag !== 18) {
|
|
11128
|
+
break;
|
|
11129
|
+
}
|
|
11130
|
+
|
|
11131
|
+
message.operationId = reader.string();
|
|
11132
|
+
continue;
|
|
11133
|
+
}
|
|
11134
|
+
case 3: {
|
|
11135
|
+
if (tag !== 26) {
|
|
11136
|
+
break;
|
|
11137
|
+
}
|
|
11138
|
+
|
|
11139
|
+
message.currentVersion = reader.string();
|
|
11140
|
+
continue;
|
|
11141
|
+
}
|
|
11142
|
+
case 4: {
|
|
11143
|
+
if (tag !== 34) {
|
|
11144
|
+
break;
|
|
11145
|
+
}
|
|
11146
|
+
|
|
11147
|
+
message.currentSha256 = reader.string();
|
|
11148
|
+
continue;
|
|
11149
|
+
}
|
|
11150
|
+
case 5: {
|
|
11151
|
+
if (tag !== 42) {
|
|
11152
|
+
break;
|
|
11153
|
+
}
|
|
11154
|
+
|
|
11155
|
+
message.targetVersion = reader.string();
|
|
11156
|
+
continue;
|
|
11157
|
+
}
|
|
11158
|
+
}
|
|
11159
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11160
|
+
break;
|
|
11161
|
+
}
|
|
11162
|
+
reader.skip(tag & 7);
|
|
11163
|
+
}
|
|
11164
|
+
return message;
|
|
11165
|
+
},
|
|
11166
|
+
|
|
11167
|
+
fromJSON(object: any): AgentUpdateApplyResponse {
|
|
11168
|
+
return {
|
|
11169
|
+
accepted: isSet(object.accepted) ? globalThis.Boolean(object.accepted) : false,
|
|
11170
|
+
operationId: isSet(object.operationId)
|
|
11171
|
+
? globalThis.String(object.operationId)
|
|
11172
|
+
: isSet(object.operation_id)
|
|
11173
|
+
? globalThis.String(object.operation_id)
|
|
11174
|
+
: "",
|
|
11175
|
+
currentVersion: isSet(object.currentVersion)
|
|
11176
|
+
? globalThis.String(object.currentVersion)
|
|
11177
|
+
: isSet(object.current_version)
|
|
11178
|
+
? globalThis.String(object.current_version)
|
|
11179
|
+
: "",
|
|
11180
|
+
currentSha256: isSet(object.currentSha256)
|
|
11181
|
+
? globalThis.String(object.currentSha256)
|
|
11182
|
+
: isSet(object.current_sha256)
|
|
11183
|
+
? globalThis.String(object.current_sha256)
|
|
11184
|
+
: "",
|
|
11185
|
+
targetVersion: isSet(object.targetVersion)
|
|
11186
|
+
? globalThis.String(object.targetVersion)
|
|
11187
|
+
: isSet(object.target_version)
|
|
11188
|
+
? globalThis.String(object.target_version)
|
|
11189
|
+
: "",
|
|
11190
|
+
};
|
|
11191
|
+
},
|
|
11192
|
+
|
|
11193
|
+
toJSON(message: AgentUpdateApplyResponse): unknown {
|
|
11194
|
+
const obj: any = {};
|
|
11195
|
+
if (message.accepted !== false) {
|
|
11196
|
+
obj.accepted = message.accepted;
|
|
11197
|
+
}
|
|
11198
|
+
if (message.operationId !== "") {
|
|
11199
|
+
obj.operationId = message.operationId;
|
|
11200
|
+
}
|
|
11201
|
+
if (message.currentVersion !== "") {
|
|
11202
|
+
obj.currentVersion = message.currentVersion;
|
|
11203
|
+
}
|
|
11204
|
+
if (message.currentSha256 !== "") {
|
|
11205
|
+
obj.currentSha256 = message.currentSha256;
|
|
11206
|
+
}
|
|
11207
|
+
if (message.targetVersion !== "") {
|
|
11208
|
+
obj.targetVersion = message.targetVersion;
|
|
11209
|
+
}
|
|
11210
|
+
return obj;
|
|
11211
|
+
},
|
|
11212
|
+
|
|
11213
|
+
create<I extends Exact<DeepPartial<AgentUpdateApplyResponse>, I>>(base?: I): AgentUpdateApplyResponse {
|
|
11214
|
+
return AgentUpdateApplyResponse.fromPartial(base ?? ({} as any));
|
|
11215
|
+
},
|
|
11216
|
+
fromPartial<I extends Exact<DeepPartial<AgentUpdateApplyResponse>, I>>(object: I): AgentUpdateApplyResponse {
|
|
11217
|
+
const message = createBaseAgentUpdateApplyResponse();
|
|
11218
|
+
message.accepted = object.accepted ?? false;
|
|
11219
|
+
message.operationId = object.operationId ?? "";
|
|
11220
|
+
message.currentVersion = object.currentVersion ?? "";
|
|
11221
|
+
message.currentSha256 = object.currentSha256 ?? "";
|
|
11222
|
+
message.targetVersion = object.targetVersion ?? "";
|
|
11223
|
+
return message;
|
|
11224
|
+
},
|
|
11225
|
+
};
|
|
11226
|
+
|
|
11227
|
+
function createBaseAgentUpdateProgress(): AgentUpdateProgress {
|
|
11228
|
+
return {
|
|
11229
|
+
operationId: "",
|
|
11230
|
+
targetVersion: "",
|
|
11231
|
+
stage: 0,
|
|
11232
|
+
expectedBinarySha256: "",
|
|
11233
|
+
errorCode: "",
|
|
11234
|
+
retryable: false,
|
|
11235
|
+
rolledBack: false,
|
|
11236
|
+
};
|
|
11237
|
+
}
|
|
11238
|
+
|
|
11239
|
+
export const AgentUpdateProgress: MessageFns<AgentUpdateProgress> = {
|
|
11240
|
+
encode(message: AgentUpdateProgress, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
11241
|
+
if (message.operationId !== "") {
|
|
11242
|
+
writer.uint32(10).string(message.operationId);
|
|
11243
|
+
}
|
|
11244
|
+
if (message.targetVersion !== "") {
|
|
11245
|
+
writer.uint32(18).string(message.targetVersion);
|
|
11246
|
+
}
|
|
11247
|
+
if (message.stage !== 0) {
|
|
11248
|
+
writer.uint32(24).int32(message.stage);
|
|
11249
|
+
}
|
|
11250
|
+
if (message.expectedBinarySha256 !== "") {
|
|
11251
|
+
writer.uint32(34).string(message.expectedBinarySha256);
|
|
11252
|
+
}
|
|
11253
|
+
if (message.errorCode !== "") {
|
|
11254
|
+
writer.uint32(42).string(message.errorCode);
|
|
11255
|
+
}
|
|
11256
|
+
if (message.retryable !== false) {
|
|
11257
|
+
writer.uint32(48).bool(message.retryable);
|
|
11258
|
+
}
|
|
11259
|
+
if (message.rolledBack !== false) {
|
|
11260
|
+
writer.uint32(56).bool(message.rolledBack);
|
|
11261
|
+
}
|
|
11262
|
+
return writer;
|
|
11263
|
+
},
|
|
11264
|
+
|
|
11265
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AgentUpdateProgress {
|
|
11266
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11267
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
11268
|
+
const message = createBaseAgentUpdateProgress();
|
|
11269
|
+
while (reader.pos < end) {
|
|
11270
|
+
const tag = reader.uint32();
|
|
11271
|
+
switch (tag >>> 3) {
|
|
11272
|
+
case 1: {
|
|
11273
|
+
if (tag !== 10) {
|
|
11274
|
+
break;
|
|
11275
|
+
}
|
|
11276
|
+
|
|
11277
|
+
message.operationId = reader.string();
|
|
11278
|
+
continue;
|
|
11279
|
+
}
|
|
11280
|
+
case 2: {
|
|
11281
|
+
if (tag !== 18) {
|
|
11282
|
+
break;
|
|
11283
|
+
}
|
|
11284
|
+
|
|
11285
|
+
message.targetVersion = reader.string();
|
|
11286
|
+
continue;
|
|
11287
|
+
}
|
|
11288
|
+
case 3: {
|
|
11289
|
+
if (tag !== 24) {
|
|
11290
|
+
break;
|
|
11291
|
+
}
|
|
11292
|
+
|
|
11293
|
+
message.stage = reader.int32() as any;
|
|
11294
|
+
continue;
|
|
11295
|
+
}
|
|
11296
|
+
case 4: {
|
|
11297
|
+
if (tag !== 34) {
|
|
11298
|
+
break;
|
|
11299
|
+
}
|
|
11300
|
+
|
|
11301
|
+
message.expectedBinarySha256 = reader.string();
|
|
11302
|
+
continue;
|
|
11303
|
+
}
|
|
11304
|
+
case 5: {
|
|
11305
|
+
if (tag !== 42) {
|
|
11306
|
+
break;
|
|
11307
|
+
}
|
|
11308
|
+
|
|
11309
|
+
message.errorCode = reader.string();
|
|
11310
|
+
continue;
|
|
11311
|
+
}
|
|
11312
|
+
case 6: {
|
|
11313
|
+
if (tag !== 48) {
|
|
11314
|
+
break;
|
|
11315
|
+
}
|
|
11316
|
+
|
|
11317
|
+
message.retryable = reader.bool();
|
|
11318
|
+
continue;
|
|
11319
|
+
}
|
|
11320
|
+
case 7: {
|
|
11321
|
+
if (tag !== 56) {
|
|
11322
|
+
break;
|
|
11323
|
+
}
|
|
11324
|
+
|
|
11325
|
+
message.rolledBack = reader.bool();
|
|
11326
|
+
continue;
|
|
11327
|
+
}
|
|
11328
|
+
}
|
|
11329
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11330
|
+
break;
|
|
11331
|
+
}
|
|
11332
|
+
reader.skip(tag & 7);
|
|
11333
|
+
}
|
|
11334
|
+
return message;
|
|
11335
|
+
},
|
|
11336
|
+
|
|
11337
|
+
fromJSON(object: any): AgentUpdateProgress {
|
|
11338
|
+
return {
|
|
11339
|
+
operationId: isSet(object.operationId)
|
|
11340
|
+
? globalThis.String(object.operationId)
|
|
11341
|
+
: isSet(object.operation_id)
|
|
11342
|
+
? globalThis.String(object.operation_id)
|
|
11343
|
+
: "",
|
|
11344
|
+
targetVersion: isSet(object.targetVersion)
|
|
11345
|
+
? globalThis.String(object.targetVersion)
|
|
11346
|
+
: isSet(object.target_version)
|
|
11347
|
+
? globalThis.String(object.target_version)
|
|
11348
|
+
: "",
|
|
11349
|
+
stage: isSet(object.stage) ? agentUpdateStageFromJSON(object.stage) : 0,
|
|
11350
|
+
expectedBinarySha256: isSet(object.expectedBinarySha256)
|
|
11351
|
+
? globalThis.String(object.expectedBinarySha256)
|
|
11352
|
+
: isSet(object.expected_binary_sha256)
|
|
11353
|
+
? globalThis.String(object.expected_binary_sha256)
|
|
11354
|
+
: "",
|
|
11355
|
+
errorCode: isSet(object.errorCode)
|
|
11356
|
+
? globalThis.String(object.errorCode)
|
|
11357
|
+
: isSet(object.error_code)
|
|
11358
|
+
? globalThis.String(object.error_code)
|
|
11359
|
+
: "",
|
|
11360
|
+
retryable: isSet(object.retryable) ? globalThis.Boolean(object.retryable) : false,
|
|
11361
|
+
rolledBack: isSet(object.rolledBack)
|
|
11362
|
+
? globalThis.Boolean(object.rolledBack)
|
|
11363
|
+
: isSet(object.rolled_back)
|
|
11364
|
+
? globalThis.Boolean(object.rolled_back)
|
|
11365
|
+
: false,
|
|
11366
|
+
};
|
|
11367
|
+
},
|
|
11368
|
+
|
|
11369
|
+
toJSON(message: AgentUpdateProgress): unknown {
|
|
11370
|
+
const obj: any = {};
|
|
11371
|
+
if (message.operationId !== "") {
|
|
11372
|
+
obj.operationId = message.operationId;
|
|
11373
|
+
}
|
|
11374
|
+
if (message.targetVersion !== "") {
|
|
11375
|
+
obj.targetVersion = message.targetVersion;
|
|
11376
|
+
}
|
|
11377
|
+
if (message.stage !== 0) {
|
|
11378
|
+
obj.stage = agentUpdateStageToJSON(message.stage);
|
|
11379
|
+
}
|
|
11380
|
+
if (message.expectedBinarySha256 !== "") {
|
|
11381
|
+
obj.expectedBinarySha256 = message.expectedBinarySha256;
|
|
11382
|
+
}
|
|
11383
|
+
if (message.errorCode !== "") {
|
|
11384
|
+
obj.errorCode = message.errorCode;
|
|
11385
|
+
}
|
|
11386
|
+
if (message.retryable !== false) {
|
|
11387
|
+
obj.retryable = message.retryable;
|
|
11388
|
+
}
|
|
11389
|
+
if (message.rolledBack !== false) {
|
|
11390
|
+
obj.rolledBack = message.rolledBack;
|
|
11391
|
+
}
|
|
11392
|
+
return obj;
|
|
11393
|
+
},
|
|
11394
|
+
|
|
11395
|
+
create<I extends Exact<DeepPartial<AgentUpdateProgress>, I>>(base?: I): AgentUpdateProgress {
|
|
11396
|
+
return AgentUpdateProgress.fromPartial(base ?? ({} as any));
|
|
11397
|
+
},
|
|
11398
|
+
fromPartial<I extends Exact<DeepPartial<AgentUpdateProgress>, I>>(object: I): AgentUpdateProgress {
|
|
11399
|
+
const message = createBaseAgentUpdateProgress();
|
|
11400
|
+
message.operationId = object.operationId ?? "";
|
|
11401
|
+
message.targetVersion = object.targetVersion ?? "";
|
|
11402
|
+
message.stage = object.stage ?? 0;
|
|
11403
|
+
message.expectedBinarySha256 = object.expectedBinarySha256 ?? "";
|
|
11404
|
+
message.errorCode = object.errorCode ?? "";
|
|
11405
|
+
message.retryable = object.retryable ?? false;
|
|
11406
|
+
message.rolledBack = object.rolledBack ?? false;
|
|
11407
|
+
return message;
|
|
11408
|
+
},
|
|
11409
|
+
};
|
|
11410
|
+
|
|
11411
|
+
function createBaseOpExit(): OpExit {
|
|
11412
|
+
return {
|
|
11413
|
+
exitCode: 0,
|
|
11414
|
+
timedOut: false,
|
|
11415
|
+
cancelled: false,
|
|
11416
|
+
durationMs: "0",
|
|
11417
|
+
digests: {},
|
|
11418
|
+
totals: {},
|
|
11419
|
+
failureCode: "",
|
|
11420
|
+
failureDetail: {},
|
|
11421
|
+
};
|
|
11422
|
+
}
|
|
11423
|
+
|
|
11424
|
+
export const OpExit: MessageFns<OpExit> = {
|
|
11425
|
+
encode(message: OpExit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
11426
|
+
if (message.exitCode !== 0) {
|
|
11427
|
+
writer.uint32(8).int32(message.exitCode);
|
|
11428
|
+
}
|
|
11429
|
+
if (message.timedOut !== false) {
|
|
11430
|
+
writer.uint32(16).bool(message.timedOut);
|
|
11431
|
+
}
|
|
11432
|
+
if (message.cancelled !== false) {
|
|
11433
|
+
writer.uint32(24).bool(message.cancelled);
|
|
11434
|
+
}
|
|
11435
|
+
if (message.durationMs !== "0") {
|
|
11436
|
+
writer.uint32(32).uint64(message.durationMs);
|
|
11437
|
+
}
|
|
11438
|
+
globalThis.Object.entries(message.digests).forEach(([key, value]: [string, string]) => {
|
|
11439
|
+
OpExit_DigestsEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();
|
|
11440
|
+
});
|
|
11441
|
+
globalThis.Object.entries(message.totals).forEach(([key, value]: [string, string]) => {
|
|
11442
|
+
OpExit_TotalsEntry.encode({ key: key as any, value }, writer.uint32(50).fork()).join();
|
|
11443
|
+
});
|
|
11444
|
+
if (message.failureCode !== "") {
|
|
11445
|
+
writer.uint32(58).string(message.failureCode);
|
|
11446
|
+
}
|
|
11447
|
+
globalThis.Object.entries(message.failureDetail).forEach(([key, value]: [string, string]) => {
|
|
11448
|
+
OpExit_FailureDetailEntry.encode({ key: key as any, value }, writer.uint32(66).fork()).join();
|
|
11449
|
+
});
|
|
11450
|
+
return writer;
|
|
11451
|
+
},
|
|
11452
|
+
|
|
11453
|
+
decode(input: BinaryReader | Uint8Array, length?: number): OpExit {
|
|
11454
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11455
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
11456
|
+
const message = createBaseOpExit();
|
|
11457
|
+
while (reader.pos < end) {
|
|
11458
|
+
const tag = reader.uint32();
|
|
11459
|
+
switch (tag >>> 3) {
|
|
11460
|
+
case 1: {
|
|
11461
|
+
if (tag !== 8) {
|
|
11462
|
+
break;
|
|
11463
|
+
}
|
|
11464
|
+
|
|
11465
|
+
message.exitCode = reader.int32();
|
|
11466
|
+
continue;
|
|
11467
|
+
}
|
|
11468
|
+
case 2: {
|
|
11469
|
+
if (tag !== 16) {
|
|
11470
|
+
break;
|
|
11471
|
+
}
|
|
11472
|
+
|
|
11473
|
+
message.timedOut = reader.bool();
|
|
11474
|
+
continue;
|
|
11475
|
+
}
|
|
11476
|
+
case 3: {
|
|
11477
|
+
if (tag !== 24) {
|
|
11478
|
+
break;
|
|
11479
|
+
}
|
|
11480
|
+
|
|
11481
|
+
message.cancelled = reader.bool();
|
|
11482
|
+
continue;
|
|
11483
|
+
}
|
|
11484
|
+
case 4: {
|
|
11485
|
+
if (tag !== 32) {
|
|
11486
|
+
break;
|
|
11487
|
+
}
|
|
11488
|
+
|
|
11489
|
+
message.durationMs = reader.uint64().toString();
|
|
11490
|
+
continue;
|
|
11491
|
+
}
|
|
11492
|
+
case 5: {
|
|
11493
|
+
if (tag !== 42) {
|
|
11494
|
+
break;
|
|
11495
|
+
}
|
|
11496
|
+
|
|
11497
|
+
const entry5 = OpExit_DigestsEntry.decode(reader, reader.uint32());
|
|
11498
|
+
if (entry5.value !== undefined) {
|
|
11499
|
+
message.digests[entry5.key] = entry5.value;
|
|
10587
11500
|
}
|
|
10588
11501
|
continue;
|
|
10589
11502
|
}
|
|
@@ -12357,7 +13270,7 @@ export const OpAck: MessageFns<OpAck> = {
|
|
|
12357
13270
|
};
|
|
12358
13271
|
|
|
12359
13272
|
function createBaseControlRequest(): ControlRequest {
|
|
12360
|
-
return { requestId: "", epoch: 0, op: undefined };
|
|
13273
|
+
return { requestId: "", epoch: 0, resourcePolicy: undefined, op: undefined };
|
|
12361
13274
|
}
|
|
12362
13275
|
|
|
12363
13276
|
export const ControlRequest: MessageFns<ControlRequest> = {
|
|
@@ -12368,6 +13281,9 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12368
13281
|
if (message.epoch !== 0) {
|
|
12369
13282
|
writer.uint32(16).uint32(message.epoch);
|
|
12370
13283
|
}
|
|
13284
|
+
if (message.resourcePolicy !== undefined) {
|
|
13285
|
+
OperationResourcePolicy.encode(message.resourcePolicy, writer.uint32(26).fork()).join();
|
|
13286
|
+
}
|
|
12371
13287
|
switch (message.op?.$case) {
|
|
12372
13288
|
case "ping":
|
|
12373
13289
|
PingRequest.encode(message.op.ping, writer.uint32(82).fork()).join();
|
|
@@ -12378,9 +13294,6 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12378
13294
|
case "resume":
|
|
12379
13295
|
ResumeRequest.encode(message.op.resume, writer.uint32(98).fork()).join();
|
|
12380
13296
|
break;
|
|
12381
|
-
case "exec":
|
|
12382
|
-
ExecRequest.encode(message.op.exec, writer.uint32(106).fork()).join();
|
|
12383
|
-
break;
|
|
12384
13297
|
case "fsRead":
|
|
12385
13298
|
FsReadRequest.encode(message.op.fsRead, writer.uint32(114).fork()).join();
|
|
12386
13299
|
break;
|
|
@@ -12456,6 +13369,9 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12456
13369
|
case "computerFramesOpen":
|
|
12457
13370
|
ComputerFramesOpenRequest.encode(message.op.computerFramesOpen, writer.uint32(306).fork()).join();
|
|
12458
13371
|
break;
|
|
13372
|
+
case "agentUpdateApply":
|
|
13373
|
+
AgentUpdateApplyRequest.encode(message.op.agentUpdateApply, writer.uint32(314).fork()).join();
|
|
13374
|
+
break;
|
|
12459
13375
|
}
|
|
12460
13376
|
return writer;
|
|
12461
13377
|
},
|
|
@@ -12483,6 +13399,14 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12483
13399
|
message.epoch = reader.uint32();
|
|
12484
13400
|
continue;
|
|
12485
13401
|
}
|
|
13402
|
+
case 3: {
|
|
13403
|
+
if (tag !== 26) {
|
|
13404
|
+
break;
|
|
13405
|
+
}
|
|
13406
|
+
|
|
13407
|
+
message.resourcePolicy = OperationResourcePolicy.decode(reader, reader.uint32());
|
|
13408
|
+
continue;
|
|
13409
|
+
}
|
|
12486
13410
|
case 10: {
|
|
12487
13411
|
if (tag !== 82) {
|
|
12488
13412
|
break;
|
|
@@ -12507,14 +13431,6 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12507
13431
|
message.op = { $case: "resume", resume: ResumeRequest.decode(reader, reader.uint32()) };
|
|
12508
13432
|
continue;
|
|
12509
13433
|
}
|
|
12510
|
-
case 13: {
|
|
12511
|
-
if (tag !== 106) {
|
|
12512
|
-
break;
|
|
12513
|
-
}
|
|
12514
|
-
|
|
12515
|
-
message.op = { $case: "exec", exec: ExecRequest.decode(reader, reader.uint32()) };
|
|
12516
|
-
continue;
|
|
12517
|
-
}
|
|
12518
13434
|
case 14: {
|
|
12519
13435
|
if (tag !== 114) {
|
|
12520
13436
|
break;
|
|
@@ -12730,6 +13646,17 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12730
13646
|
};
|
|
12731
13647
|
continue;
|
|
12732
13648
|
}
|
|
13649
|
+
case 39: {
|
|
13650
|
+
if (tag !== 314) {
|
|
13651
|
+
break;
|
|
13652
|
+
}
|
|
13653
|
+
|
|
13654
|
+
message.op = {
|
|
13655
|
+
$case: "agentUpdateApply",
|
|
13656
|
+
agentUpdateApply: AgentUpdateApplyRequest.decode(reader, reader.uint32()),
|
|
13657
|
+
};
|
|
13658
|
+
continue;
|
|
13659
|
+
}
|
|
12733
13660
|
}
|
|
12734
13661
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12735
13662
|
break;
|
|
@@ -12747,14 +13674,17 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12747
13674
|
? globalThis.String(object.request_id)
|
|
12748
13675
|
: "",
|
|
12749
13676
|
epoch: isSet(object.epoch) ? globalThis.Number(object.epoch) : 0,
|
|
13677
|
+
resourcePolicy: isSet(object.resourcePolicy)
|
|
13678
|
+
? OperationResourcePolicy.fromJSON(object.resourcePolicy)
|
|
13679
|
+
: isSet(object.resource_policy)
|
|
13680
|
+
? OperationResourcePolicy.fromJSON(object.resource_policy)
|
|
13681
|
+
: undefined,
|
|
12750
13682
|
op: isSet(object.ping)
|
|
12751
13683
|
? { $case: "ping", ping: PingRequest.fromJSON(object.ping) }
|
|
12752
13684
|
: isSet(object.hello)
|
|
12753
13685
|
? { $case: "hello", hello: Hello.fromJSON(object.hello) }
|
|
12754
13686
|
: isSet(object.resume)
|
|
12755
13687
|
? { $case: "resume", resume: ResumeRequest.fromJSON(object.resume) }
|
|
12756
|
-
: isSet(object.exec)
|
|
12757
|
-
? { $case: "exec", exec: ExecRequest.fromJSON(object.exec) }
|
|
12758
13688
|
: isSet(object.fsRead)
|
|
12759
13689
|
? { $case: "fsRead", fsRead: FsReadRequest.fromJSON(object.fsRead) }
|
|
12760
13690
|
: isSet(object.fs_read)
|
|
@@ -12869,6 +13799,10 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12869
13799
|
$case: "computerFramesOpen",
|
|
12870
13800
|
computerFramesOpen: ComputerFramesOpenRequest.fromJSON(object.computer_frames_open),
|
|
12871
13801
|
}
|
|
13802
|
+
: isSet(object.agentUpdateApply)
|
|
13803
|
+
? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agentUpdateApply) }
|
|
13804
|
+
: isSet(object.agent_update_apply)
|
|
13805
|
+
? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agent_update_apply) }
|
|
12872
13806
|
: undefined,
|
|
12873
13807
|
};
|
|
12874
13808
|
},
|
|
@@ -12881,14 +13815,15 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12881
13815
|
if (message.epoch !== 0) {
|
|
12882
13816
|
obj.epoch = Math.round(message.epoch);
|
|
12883
13817
|
}
|
|
13818
|
+
if (message.resourcePolicy !== undefined) {
|
|
13819
|
+
obj.resourcePolicy = OperationResourcePolicy.toJSON(message.resourcePolicy);
|
|
13820
|
+
}
|
|
12884
13821
|
if (message.op?.$case === "ping") {
|
|
12885
13822
|
obj.ping = PingRequest.toJSON(message.op.ping);
|
|
12886
13823
|
} else if (message.op?.$case === "hello") {
|
|
12887
13824
|
obj.hello = Hello.toJSON(message.op.hello);
|
|
12888
13825
|
} else if (message.op?.$case === "resume") {
|
|
12889
13826
|
obj.resume = ResumeRequest.toJSON(message.op.resume);
|
|
12890
|
-
} else if (message.op?.$case === "exec") {
|
|
12891
|
-
obj.exec = ExecRequest.toJSON(message.op.exec);
|
|
12892
13827
|
} else if (message.op?.$case === "fsRead") {
|
|
12893
13828
|
obj.fsRead = FsReadRequest.toJSON(message.op.fsRead);
|
|
12894
13829
|
} else if (message.op?.$case === "fsWrite") {
|
|
@@ -12939,6 +13874,8 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12939
13874
|
obj.browserFramesOpen = BrowserFramesOpenRequest.toJSON(message.op.browserFramesOpen);
|
|
12940
13875
|
} else if (message.op?.$case === "computerFramesOpen") {
|
|
12941
13876
|
obj.computerFramesOpen = ComputerFramesOpenRequest.toJSON(message.op.computerFramesOpen);
|
|
13877
|
+
} else if (message.op?.$case === "agentUpdateApply") {
|
|
13878
|
+
obj.agentUpdateApply = AgentUpdateApplyRequest.toJSON(message.op.agentUpdateApply);
|
|
12942
13879
|
}
|
|
12943
13880
|
return obj;
|
|
12944
13881
|
},
|
|
@@ -12950,6 +13887,9 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12950
13887
|
const message = createBaseControlRequest();
|
|
12951
13888
|
message.requestId = object.requestId ?? "";
|
|
12952
13889
|
message.epoch = object.epoch ?? 0;
|
|
13890
|
+
message.resourcePolicy = (object.resourcePolicy !== undefined && object.resourcePolicy !== null)
|
|
13891
|
+
? OperationResourcePolicy.fromPartial(object.resourcePolicy)
|
|
13892
|
+
: undefined;
|
|
12953
13893
|
switch (object.op?.$case) {
|
|
12954
13894
|
case "ping": {
|
|
12955
13895
|
if (object.op?.ping !== undefined && object.op?.ping !== null) {
|
|
@@ -12969,12 +13909,6 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
12969
13909
|
}
|
|
12970
13910
|
break;
|
|
12971
13911
|
}
|
|
12972
|
-
case "exec": {
|
|
12973
|
-
if (object.op?.exec !== undefined && object.op?.exec !== null) {
|
|
12974
|
-
message.op = { $case: "exec", exec: ExecRequest.fromPartial(object.op.exec) };
|
|
12975
|
-
}
|
|
12976
|
-
break;
|
|
12977
|
-
}
|
|
12978
13912
|
case "fsRead": {
|
|
12979
13913
|
if (object.op?.fsRead !== undefined && object.op?.fsRead !== null) {
|
|
12980
13914
|
message.op = { $case: "fsRead", fsRead: FsReadRequest.fromPartial(object.op.fsRead) };
|
|
@@ -13143,6 +14077,15 @@ export const ControlRequest: MessageFns<ControlRequest> = {
|
|
|
13143
14077
|
}
|
|
13144
14078
|
break;
|
|
13145
14079
|
}
|
|
14080
|
+
case "agentUpdateApply": {
|
|
14081
|
+
if (object.op?.agentUpdateApply !== undefined && object.op?.agentUpdateApply !== null) {
|
|
14082
|
+
message.op = {
|
|
14083
|
+
$case: "agentUpdateApply",
|
|
14084
|
+
agentUpdateApply: AgentUpdateApplyRequest.fromPartial(object.op.agentUpdateApply),
|
|
14085
|
+
};
|
|
14086
|
+
}
|
|
14087
|
+
break;
|
|
14088
|
+
}
|
|
13146
14089
|
}
|
|
13147
14090
|
return message;
|
|
13148
14091
|
},
|
|
@@ -13170,9 +14113,6 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13170
14113
|
case "resume":
|
|
13171
14114
|
ResumeResponse.encode(message.result.resume, writer.uint32(98).fork()).join();
|
|
13172
14115
|
break;
|
|
13173
|
-
case "exec":
|
|
13174
|
-
ExecResponse.encode(message.result.exec, writer.uint32(106).fork()).join();
|
|
13175
|
-
break;
|
|
13176
14116
|
case "fsRead":
|
|
13177
14117
|
FsReadResponse.encode(message.result.fsRead, writer.uint32(114).fork()).join();
|
|
13178
14118
|
break;
|
|
@@ -13242,6 +14182,9 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13242
14182
|
case "computerFramesOpen":
|
|
13243
14183
|
ComputerFramesOpenResponse.encode(message.result.computerFramesOpen, writer.uint32(306).fork()).join();
|
|
13244
14184
|
break;
|
|
14185
|
+
case "agentUpdateApply":
|
|
14186
|
+
AgentUpdateApplyResponse.encode(message.result.agentUpdateApply, writer.uint32(314).fork()).join();
|
|
14187
|
+
break;
|
|
13245
14188
|
}
|
|
13246
14189
|
return writer;
|
|
13247
14190
|
},
|
|
@@ -13293,14 +14236,6 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13293
14236
|
message.result = { $case: "resume", resume: ResumeResponse.decode(reader, reader.uint32()) };
|
|
13294
14237
|
continue;
|
|
13295
14238
|
}
|
|
13296
|
-
case 13: {
|
|
13297
|
-
if (tag !== 106) {
|
|
13298
|
-
break;
|
|
13299
|
-
}
|
|
13300
|
-
|
|
13301
|
-
message.result = { $case: "exec", exec: ExecResponse.decode(reader, reader.uint32()) };
|
|
13302
|
-
continue;
|
|
13303
|
-
}
|
|
13304
14239
|
case 14: {
|
|
13305
14240
|
if (tag !== 114) {
|
|
13306
14241
|
break;
|
|
@@ -13506,6 +14441,17 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13506
14441
|
};
|
|
13507
14442
|
continue;
|
|
13508
14443
|
}
|
|
14444
|
+
case 39: {
|
|
14445
|
+
if (tag !== 314) {
|
|
14446
|
+
break;
|
|
14447
|
+
}
|
|
14448
|
+
|
|
14449
|
+
message.result = {
|
|
14450
|
+
$case: "agentUpdateApply",
|
|
14451
|
+
agentUpdateApply: AgentUpdateApplyResponse.decode(reader, reader.uint32()),
|
|
14452
|
+
};
|
|
14453
|
+
continue;
|
|
14454
|
+
}
|
|
13509
14455
|
}
|
|
13510
14456
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13511
14457
|
break;
|
|
@@ -13529,8 +14475,6 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13529
14475
|
? { $case: "hello", hello: HelloAck.fromJSON(object.hello) }
|
|
13530
14476
|
: isSet(object.resume)
|
|
13531
14477
|
? { $case: "resume", resume: ResumeResponse.fromJSON(object.resume) }
|
|
13532
|
-
: isSet(object.exec)
|
|
13533
|
-
? { $case: "exec", exec: ExecResponse.fromJSON(object.exec) }
|
|
13534
14478
|
: isSet(object.fsRead)
|
|
13535
14479
|
? { $case: "fsRead", fsRead: FsReadResponse.fromJSON(object.fsRead) }
|
|
13536
14480
|
: isSet(object.fs_read)
|
|
@@ -13643,6 +14587,10 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13643
14587
|
$case: "computerFramesOpen",
|
|
13644
14588
|
computerFramesOpen: ComputerFramesOpenResponse.fromJSON(object.computer_frames_open),
|
|
13645
14589
|
}
|
|
14590
|
+
: isSet(object.agentUpdateApply)
|
|
14591
|
+
? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agentUpdateApply) }
|
|
14592
|
+
: isSet(object.agent_update_apply)
|
|
14593
|
+
? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agent_update_apply) }
|
|
13646
14594
|
: undefined,
|
|
13647
14595
|
};
|
|
13648
14596
|
},
|
|
@@ -13661,8 +14609,6 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13661
14609
|
obj.hello = HelloAck.toJSON(message.result.hello);
|
|
13662
14610
|
} else if (message.result?.$case === "resume") {
|
|
13663
14611
|
obj.resume = ResumeResponse.toJSON(message.result.resume);
|
|
13664
|
-
} else if (message.result?.$case === "exec") {
|
|
13665
|
-
obj.exec = ExecResponse.toJSON(message.result.exec);
|
|
13666
14612
|
} else if (message.result?.$case === "fsRead") {
|
|
13667
14613
|
obj.fsRead = FsReadResponse.toJSON(message.result.fsRead);
|
|
13668
14614
|
} else if (message.result?.$case === "fsWrite") {
|
|
@@ -13709,6 +14655,8 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13709
14655
|
obj.browserFramesOpen = BrowserFramesOpenResponse.toJSON(message.result.browserFramesOpen);
|
|
13710
14656
|
} else if (message.result?.$case === "computerFramesOpen") {
|
|
13711
14657
|
obj.computerFramesOpen = ComputerFramesOpenResponse.toJSON(message.result.computerFramesOpen);
|
|
14658
|
+
} else if (message.result?.$case === "agentUpdateApply") {
|
|
14659
|
+
obj.agentUpdateApply = AgentUpdateApplyResponse.toJSON(message.result.agentUpdateApply);
|
|
13712
14660
|
}
|
|
13713
14661
|
return obj;
|
|
13714
14662
|
},
|
|
@@ -13741,12 +14689,6 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13741
14689
|
}
|
|
13742
14690
|
break;
|
|
13743
14691
|
}
|
|
13744
|
-
case "exec": {
|
|
13745
|
-
if (object.result?.exec !== undefined && object.result?.exec !== null) {
|
|
13746
|
-
message.result = { $case: "exec", exec: ExecResponse.fromPartial(object.result.exec) };
|
|
13747
|
-
}
|
|
13748
|
-
break;
|
|
13749
|
-
}
|
|
13750
14692
|
case "fsRead": {
|
|
13751
14693
|
if (object.result?.fsRead !== undefined && object.result?.fsRead !== null) {
|
|
13752
14694
|
message.result = { $case: "fsRead", fsRead: FsReadResponse.fromPartial(object.result.fsRead) };
|
|
@@ -13906,6 +14848,15 @@ export const ControlResponse: MessageFns<ControlResponse> = {
|
|
|
13906
14848
|
}
|
|
13907
14849
|
break;
|
|
13908
14850
|
}
|
|
14851
|
+
case "agentUpdateApply": {
|
|
14852
|
+
if (object.result?.agentUpdateApply !== undefined && object.result?.agentUpdateApply !== null) {
|
|
14853
|
+
message.result = {
|
|
14854
|
+
$case: "agentUpdateApply",
|
|
14855
|
+
agentUpdateApply: AgentUpdateApplyResponse.fromPartial(object.result.agentUpdateApply),
|
|
14856
|
+
};
|
|
14857
|
+
}
|
|
14858
|
+
break;
|
|
14859
|
+
}
|
|
13909
14860
|
}
|
|
13910
14861
|
return message;
|
|
13911
14862
|
},
|
|
@@ -14027,6 +14978,9 @@ export const AgentEvent: MessageFns<AgentEvent> = {
|
|
|
14027
14978
|
case "goingOffline":
|
|
14028
14979
|
GoingOffline.encode(message.event.goingOffline, writer.uint32(90).fork()).join();
|
|
14029
14980
|
break;
|
|
14981
|
+
case "agentUpdateProgress":
|
|
14982
|
+
AgentUpdateProgress.encode(message.event.agentUpdateProgress, writer.uint32(98).fork()).join();
|
|
14983
|
+
break;
|
|
14030
14984
|
}
|
|
14031
14985
|
return writer;
|
|
14032
14986
|
},
|
|
@@ -14062,6 +15016,17 @@ export const AgentEvent: MessageFns<AgentEvent> = {
|
|
|
14062
15016
|
message.event = { $case: "goingOffline", goingOffline: GoingOffline.decode(reader, reader.uint32()) };
|
|
14063
15017
|
continue;
|
|
14064
15018
|
}
|
|
15019
|
+
case 12: {
|
|
15020
|
+
if (tag !== 98) {
|
|
15021
|
+
break;
|
|
15022
|
+
}
|
|
15023
|
+
|
|
15024
|
+
message.event = {
|
|
15025
|
+
$case: "agentUpdateProgress",
|
|
15026
|
+
agentUpdateProgress: AgentUpdateProgress.decode(reader, reader.uint32()),
|
|
15027
|
+
};
|
|
15028
|
+
continue;
|
|
15029
|
+
}
|
|
14065
15030
|
}
|
|
14066
15031
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14067
15032
|
break;
|
|
@@ -14084,6 +15049,16 @@ export const AgentEvent: MessageFns<AgentEvent> = {
|
|
|
14084
15049
|
? { $case: "goingOffline", goingOffline: GoingOffline.fromJSON(object.goingOffline) }
|
|
14085
15050
|
: isSet(object.going_offline)
|
|
14086
15051
|
? { $case: "goingOffline", goingOffline: GoingOffline.fromJSON(object.going_offline) }
|
|
15052
|
+
: isSet(object.agentUpdateProgress)
|
|
15053
|
+
? {
|
|
15054
|
+
$case: "agentUpdateProgress",
|
|
15055
|
+
agentUpdateProgress: AgentUpdateProgress.fromJSON(object.agentUpdateProgress),
|
|
15056
|
+
}
|
|
15057
|
+
: isSet(object.agent_update_progress)
|
|
15058
|
+
? {
|
|
15059
|
+
$case: "agentUpdateProgress",
|
|
15060
|
+
agentUpdateProgress: AgentUpdateProgress.fromJSON(object.agent_update_progress),
|
|
15061
|
+
}
|
|
14087
15062
|
: undefined,
|
|
14088
15063
|
};
|
|
14089
15064
|
},
|
|
@@ -14097,6 +15072,8 @@ export const AgentEvent: MessageFns<AgentEvent> = {
|
|
|
14097
15072
|
obj.heartbeat = Heartbeat.toJSON(message.event.heartbeat);
|
|
14098
15073
|
} else if (message.event?.$case === "goingOffline") {
|
|
14099
15074
|
obj.goingOffline = GoingOffline.toJSON(message.event.goingOffline);
|
|
15075
|
+
} else if (message.event?.$case === "agentUpdateProgress") {
|
|
15076
|
+
obj.agentUpdateProgress = AgentUpdateProgress.toJSON(message.event.agentUpdateProgress);
|
|
14100
15077
|
}
|
|
14101
15078
|
return obj;
|
|
14102
15079
|
},
|
|
@@ -14120,6 +15097,15 @@ export const AgentEvent: MessageFns<AgentEvent> = {
|
|
|
14120
15097
|
}
|
|
14121
15098
|
break;
|
|
14122
15099
|
}
|
|
15100
|
+
case "agentUpdateProgress": {
|
|
15101
|
+
if (object.event?.agentUpdateProgress !== undefined && object.event?.agentUpdateProgress !== null) {
|
|
15102
|
+
message.event = {
|
|
15103
|
+
$case: "agentUpdateProgress",
|
|
15104
|
+
agentUpdateProgress: AgentUpdateProgress.fromPartial(object.event.agentUpdateProgress),
|
|
15105
|
+
};
|
|
15106
|
+
}
|
|
15107
|
+
break;
|
|
15108
|
+
}
|
|
14123
15109
|
}
|
|
14124
15110
|
return message;
|
|
14125
15111
|
},
|