@code0-tech/tucana 0.0.48 → 0.0.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/tucana",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Code0 GRPC Protocol",
5
5
  "homepage": "https://github.com/code0-tech/tucana#readme",
6
6
  "bugs": {
@@ -0,0 +1,32 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_status.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import type { RuntimeStatusUpdateResponse } from "./aquila.runtime_status_pb";
7
+ import type { RuntimeStatusUpdateRequest } from "./aquila.runtime_status_pb";
8
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
9
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
10
+ /**
11
+ * @generated from protobuf service aquila.RuntimeStatusService
12
+ */
13
+ export interface IRuntimeStatusServiceClient {
14
+ /**
15
+ * @generated from protobuf rpc: Update
16
+ */
17
+ update(input: RuntimeStatusUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeStatusUpdateRequest, RuntimeStatusUpdateResponse>;
18
+ }
19
+ /**
20
+ * @generated from protobuf service aquila.RuntimeStatusService
21
+ */
22
+ export declare class RuntimeStatusServiceClient implements IRuntimeStatusServiceClient, ServiceInfo {
23
+ private readonly _transport;
24
+ typeName: any;
25
+ methods: any;
26
+ options: any;
27
+ constructor(_transport: RpcTransport);
28
+ /**
29
+ * @generated from protobuf rpc: Update
30
+ */
31
+ update(input: RuntimeStatusUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeStatusUpdateRequest, RuntimeStatusUpdateResponse>;
32
+ }
@@ -0,0 +1,23 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_status.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import { RuntimeStatusService } from "./aquila.runtime_status_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service aquila.RuntimeStatusService
8
+ */
9
+ export class RuntimeStatusServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = RuntimeStatusService.typeName;
13
+ this.methods = RuntimeStatusService.methods;
14
+ this.options = RuntimeStatusService.options;
15
+ }
16
+ /**
17
+ * @generated from protobuf rpc: Update
18
+ */
19
+ update(input, options) {
20
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
21
+ return stackIntercept("unary", this._transport, method, opt, input);
22
+ }
23
+ }
@@ -0,0 +1,68 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_status.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
8
+ import type { PartialMessage } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ import { ExecutionRuntimeStatus } from "./shared.runtime_status_pb";
11
+ import { AdapterRuntimeStatus } from "./shared.runtime_status_pb";
12
+ /**
13
+ * @generated from protobuf message aquila.RuntimeStatusUpdateRequest
14
+ */
15
+ export interface RuntimeStatusUpdateRequest {
16
+ /**
17
+ * @generated from protobuf oneof: status
18
+ */
19
+ status: {
20
+ oneofKind: "adapterRuntimeStatus";
21
+ /**
22
+ * @generated from protobuf field: shared.AdapterRuntimeStatus adapter_runtime_status = 1
23
+ */
24
+ adapterRuntimeStatus: AdapterRuntimeStatus;
25
+ } | {
26
+ oneofKind: "executionRuntimeStatus";
27
+ /**
28
+ * @generated from protobuf field: shared.ExecutionRuntimeStatus execution_runtime_status = 2
29
+ */
30
+ executionRuntimeStatus: ExecutionRuntimeStatus;
31
+ } | {
32
+ oneofKind: undefined;
33
+ };
34
+ }
35
+ /**
36
+ * @generated from protobuf message aquila.RuntimeStatusUpdateResponse
37
+ */
38
+ export interface RuntimeStatusUpdateResponse {
39
+ /**
40
+ * @generated from protobuf field: bool success = 1
41
+ */
42
+ success: boolean;
43
+ }
44
+ declare class RuntimeStatusUpdateRequest$Type extends MessageType<RuntimeStatusUpdateRequest> {
45
+ constructor();
46
+ create(value?: PartialMessage<RuntimeStatusUpdateRequest>): RuntimeStatusUpdateRequest;
47
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeStatusUpdateRequest): RuntimeStatusUpdateRequest;
48
+ internalBinaryWrite(message: RuntimeStatusUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
49
+ }
50
+ /**
51
+ * @generated MessageType for protobuf message aquila.RuntimeStatusUpdateRequest
52
+ */
53
+ export declare const RuntimeStatusUpdateRequest: RuntimeStatusUpdateRequest$Type;
54
+ declare class RuntimeStatusUpdateResponse$Type extends MessageType<RuntimeStatusUpdateResponse> {
55
+ constructor();
56
+ create(value?: PartialMessage<RuntimeStatusUpdateResponse>): RuntimeStatusUpdateResponse;
57
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeStatusUpdateResponse): RuntimeStatusUpdateResponse;
58
+ internalBinaryWrite(message: RuntimeStatusUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
59
+ }
60
+ /**
61
+ * @generated MessageType for protobuf message aquila.RuntimeStatusUpdateResponse
62
+ */
63
+ export declare const RuntimeStatusUpdateResponse: RuntimeStatusUpdateResponse$Type;
64
+ /**
65
+ * @generated ServiceType for protobuf service aquila.RuntimeStatusService
66
+ */
67
+ export declare const RuntimeStatusService: any;
68
+ export {};
@@ -0,0 +1,126 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_status.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
5
+ // @generated from protobuf file "aquila.runtime_status.proto" (package "aquila", syntax proto3)
6
+ // tslint:disable
7
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
8
+ import { WireType } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
11
+ import { MessageType } from "@protobuf-ts/runtime";
12
+ import { ExecutionRuntimeStatus } from "./shared.runtime_status_pb";
13
+ import { AdapterRuntimeStatus } from "./shared.runtime_status_pb";
14
+ // @generated message type with reflection information, may provide speed optimized methods
15
+ class RuntimeStatusUpdateRequest$Type extends MessageType {
16
+ constructor() {
17
+ super("aquila.RuntimeStatusUpdateRequest", [
18
+ { no: 1, name: "adapter_runtime_status", kind: "message", oneof: "status", T: () => AdapterRuntimeStatus },
19
+ { no: 2, name: "execution_runtime_status", kind: "message", oneof: "status", T: () => ExecutionRuntimeStatus }
20
+ ]);
21
+ }
22
+ create(value) {
23
+ const message = globalThis.Object.create((this.messagePrototype));
24
+ message.status = { oneofKind: undefined };
25
+ if (value !== undefined)
26
+ reflectionMergePartial(this, message, value);
27
+ return message;
28
+ }
29
+ internalBinaryRead(reader, length, options, target) {
30
+ let message = target ?? this.create(), end = reader.pos + length;
31
+ while (reader.pos < end) {
32
+ let [fieldNo, wireType] = reader.tag();
33
+ switch (fieldNo) {
34
+ case /* shared.AdapterRuntimeStatus adapter_runtime_status */ 1:
35
+ message.status = {
36
+ oneofKind: "adapterRuntimeStatus",
37
+ adapterRuntimeStatus: AdapterRuntimeStatus.internalBinaryRead(reader, reader.uint32(), options, message.status.adapterRuntimeStatus)
38
+ };
39
+ break;
40
+ case /* shared.ExecutionRuntimeStatus execution_runtime_status */ 2:
41
+ message.status = {
42
+ oneofKind: "executionRuntimeStatus",
43
+ executionRuntimeStatus: ExecutionRuntimeStatus.internalBinaryRead(reader, reader.uint32(), options, message.status.executionRuntimeStatus)
44
+ };
45
+ break;
46
+ default:
47
+ let u = options.readUnknownField;
48
+ if (u === "throw")
49
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
50
+ let d = reader.skip(wireType);
51
+ if (u !== false)
52
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
53
+ }
54
+ }
55
+ return message;
56
+ }
57
+ internalBinaryWrite(message, writer, options) {
58
+ /* shared.AdapterRuntimeStatus adapter_runtime_status = 1; */
59
+ if (message.status.oneofKind === "adapterRuntimeStatus")
60
+ AdapterRuntimeStatus.internalBinaryWrite(message.status.adapterRuntimeStatus, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
61
+ /* shared.ExecutionRuntimeStatus execution_runtime_status = 2; */
62
+ if (message.status.oneofKind === "executionRuntimeStatus")
63
+ ExecutionRuntimeStatus.internalBinaryWrite(message.status.executionRuntimeStatus, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
64
+ let u = options.writeUnknownFields;
65
+ if (u !== false)
66
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
67
+ return writer;
68
+ }
69
+ }
70
+ /**
71
+ * @generated MessageType for protobuf message aquila.RuntimeStatusUpdateRequest
72
+ */
73
+ export const RuntimeStatusUpdateRequest = new RuntimeStatusUpdateRequest$Type();
74
+ // @generated message type with reflection information, may provide speed optimized methods
75
+ class RuntimeStatusUpdateResponse$Type extends MessageType {
76
+ constructor() {
77
+ super("aquila.RuntimeStatusUpdateResponse", [
78
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
79
+ ]);
80
+ }
81
+ create(value) {
82
+ const message = globalThis.Object.create((this.messagePrototype));
83
+ message.success = false;
84
+ if (value !== undefined)
85
+ reflectionMergePartial(this, message, value);
86
+ return message;
87
+ }
88
+ internalBinaryRead(reader, length, options, target) {
89
+ let message = target ?? this.create(), end = reader.pos + length;
90
+ while (reader.pos < end) {
91
+ let [fieldNo, wireType] = reader.tag();
92
+ switch (fieldNo) {
93
+ case /* bool success */ 1:
94
+ message.success = reader.bool();
95
+ break;
96
+ default:
97
+ let u = options.readUnknownField;
98
+ if (u === "throw")
99
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
100
+ let d = reader.skip(wireType);
101
+ if (u !== false)
102
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
103
+ }
104
+ }
105
+ return message;
106
+ }
107
+ internalBinaryWrite(message, writer, options) {
108
+ /* bool success = 1; */
109
+ if (message.success !== false)
110
+ writer.tag(1, WireType.Varint).bool(message.success);
111
+ let u = options.writeUnknownFields;
112
+ if (u !== false)
113
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
114
+ return writer;
115
+ }
116
+ }
117
+ /**
118
+ * @generated MessageType for protobuf message aquila.RuntimeStatusUpdateResponse
119
+ */
120
+ export const RuntimeStatusUpdateResponse = new RuntimeStatusUpdateResponse$Type();
121
+ /**
122
+ * @generated ServiceType for protobuf service aquila.RuntimeStatusService
123
+ */
124
+ export const RuntimeStatusService = new ServiceType("aquila.RuntimeStatusService", [
125
+ { name: "Update", options: {}, I: RuntimeStatusUpdateRequest, O: RuntimeStatusUpdateResponse }
126
+ ]);
@@ -0,0 +1,32 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import type { RuntimeUsageResponse } from "./aquila.runtime_usage_pb";
7
+ import type { RuntimeUsageRequest } from "./aquila.runtime_usage_pb";
8
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
9
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
10
+ /**
11
+ * @generated from protobuf service aquila.RuntimeUsageService
12
+ */
13
+ export interface IRuntimeUsageServiceClient {
14
+ /**
15
+ * @generated from protobuf rpc: Update
16
+ */
17
+ update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
18
+ }
19
+ /**
20
+ * @generated from protobuf service aquila.RuntimeUsageService
21
+ */
22
+ export declare class RuntimeUsageServiceClient implements IRuntimeUsageServiceClient, ServiceInfo {
23
+ private readonly _transport;
24
+ typeName: any;
25
+ methods: any;
26
+ options: any;
27
+ constructor(_transport: RpcTransport);
28
+ /**
29
+ * @generated from protobuf rpc: Update
30
+ */
31
+ update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
32
+ }
@@ -0,0 +1,23 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import { RuntimeUsageService } from "./aquila.runtime_usage_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service aquila.RuntimeUsageService
8
+ */
9
+ export class RuntimeUsageServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = RuntimeUsageService.typeName;
13
+ this.methods = RuntimeUsageService.methods;
14
+ this.options = RuntimeUsageService.options;
15
+ }
16
+ /**
17
+ * @generated from protobuf rpc: Update
18
+ */
19
+ update(input, options) {
20
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
21
+ return stackIntercept("unary", this._transport, method, opt, input);
22
+ }
23
+ }
@@ -0,0 +1,53 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
8
+ import type { PartialMessage } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ import { RuntimeUsage } from "./shared.runtime_usage_pb";
11
+ /**
12
+ * @generated from protobuf message aquila.RuntimeUsageRequest
13
+ */
14
+ export interface RuntimeUsageRequest {
15
+ /**
16
+ * @generated from protobuf field: repeated shared.RuntimeUsage runtime_usage = 1
17
+ */
18
+ runtimeUsage: RuntimeUsage[];
19
+ }
20
+ /**
21
+ * @generated from protobuf message aquila.RuntimeUsageResponse
22
+ */
23
+ export interface RuntimeUsageResponse {
24
+ /**
25
+ * @generated from protobuf field: bool success = 1
26
+ */
27
+ success: boolean;
28
+ }
29
+ declare class RuntimeUsageRequest$Type extends MessageType<RuntimeUsageRequest> {
30
+ constructor();
31
+ create(value?: PartialMessage<RuntimeUsageRequest>): RuntimeUsageRequest;
32
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageRequest): RuntimeUsageRequest;
33
+ internalBinaryWrite(message: RuntimeUsageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
34
+ }
35
+ /**
36
+ * @generated MessageType for protobuf message aquila.RuntimeUsageRequest
37
+ */
38
+ export declare const RuntimeUsageRequest: RuntimeUsageRequest$Type;
39
+ declare class RuntimeUsageResponse$Type extends MessageType<RuntimeUsageResponse> {
40
+ constructor();
41
+ create(value?: PartialMessage<RuntimeUsageResponse>): RuntimeUsageResponse;
42
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageResponse): RuntimeUsageResponse;
43
+ internalBinaryWrite(message: RuntimeUsageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
44
+ }
45
+ /**
46
+ * @generated MessageType for protobuf message aquila.RuntimeUsageResponse
47
+ */
48
+ export declare const RuntimeUsageResponse: RuntimeUsageResponse$Type;
49
+ /**
50
+ * @generated ServiceType for protobuf service aquila.RuntimeUsageService
51
+ */
52
+ export declare const RuntimeUsageService: any;
53
+ export {};
@@ -0,0 +1,112 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
5
+ // @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
6
+ // tslint:disable
7
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
8
+ import { WireType } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
11
+ import { MessageType } from "@protobuf-ts/runtime";
12
+ import { RuntimeUsage } from "./shared.runtime_usage_pb";
13
+ // @generated message type with reflection information, may provide speed optimized methods
14
+ class RuntimeUsageRequest$Type extends MessageType {
15
+ constructor() {
16
+ super("aquila.RuntimeUsageRequest", [
17
+ { no: 1, name: "runtime_usage", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeUsage }
18
+ ]);
19
+ }
20
+ create(value) {
21
+ const message = globalThis.Object.create((this.messagePrototype));
22
+ message.runtimeUsage = [];
23
+ if (value !== undefined)
24
+ reflectionMergePartial(this, message, value);
25
+ return message;
26
+ }
27
+ internalBinaryRead(reader, length, options, target) {
28
+ let message = target ?? this.create(), end = reader.pos + length;
29
+ while (reader.pos < end) {
30
+ let [fieldNo, wireType] = reader.tag();
31
+ switch (fieldNo) {
32
+ case /* repeated shared.RuntimeUsage runtime_usage */ 1:
33
+ message.runtimeUsage.push(RuntimeUsage.internalBinaryRead(reader, reader.uint32(), options));
34
+ break;
35
+ default:
36
+ let u = options.readUnknownField;
37
+ if (u === "throw")
38
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
39
+ let d = reader.skip(wireType);
40
+ if (u !== false)
41
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
42
+ }
43
+ }
44
+ return message;
45
+ }
46
+ internalBinaryWrite(message, writer, options) {
47
+ /* repeated shared.RuntimeUsage runtime_usage = 1; */
48
+ for (let i = 0; i < message.runtimeUsage.length; i++)
49
+ RuntimeUsage.internalBinaryWrite(message.runtimeUsage[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
50
+ let u = options.writeUnknownFields;
51
+ if (u !== false)
52
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
53
+ return writer;
54
+ }
55
+ }
56
+ /**
57
+ * @generated MessageType for protobuf message aquila.RuntimeUsageRequest
58
+ */
59
+ export const RuntimeUsageRequest = new RuntimeUsageRequest$Type();
60
+ // @generated message type with reflection information, may provide speed optimized methods
61
+ class RuntimeUsageResponse$Type extends MessageType {
62
+ constructor() {
63
+ super("aquila.RuntimeUsageResponse", [
64
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
65
+ ]);
66
+ }
67
+ create(value) {
68
+ const message = globalThis.Object.create((this.messagePrototype));
69
+ message.success = false;
70
+ if (value !== undefined)
71
+ reflectionMergePartial(this, message, value);
72
+ return message;
73
+ }
74
+ internalBinaryRead(reader, length, options, target) {
75
+ let message = target ?? this.create(), end = reader.pos + length;
76
+ while (reader.pos < end) {
77
+ let [fieldNo, wireType] = reader.tag();
78
+ switch (fieldNo) {
79
+ case /* bool success */ 1:
80
+ message.success = reader.bool();
81
+ break;
82
+ default:
83
+ let u = options.readUnknownField;
84
+ if (u === "throw")
85
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
86
+ let d = reader.skip(wireType);
87
+ if (u !== false)
88
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
89
+ }
90
+ }
91
+ return message;
92
+ }
93
+ internalBinaryWrite(message, writer, options) {
94
+ /* bool success = 1; */
95
+ if (message.success !== false)
96
+ writer.tag(1, WireType.Varint).bool(message.success);
97
+ let u = options.writeUnknownFields;
98
+ if (u !== false)
99
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
100
+ return writer;
101
+ }
102
+ }
103
+ /**
104
+ * @generated MessageType for protobuf message aquila.RuntimeUsageResponse
105
+ */
106
+ export const RuntimeUsageResponse = new RuntimeUsageResponse$Type();
107
+ /**
108
+ * @generated ServiceType for protobuf service aquila.RuntimeUsageService
109
+ */
110
+ export const RuntimeUsageService = new ServiceType("aquila.RuntimeUsageService", [
111
+ { name: "Update", options: {}, I: RuntimeUsageRequest, O: RuntimeUsageResponse }
112
+ ]);
@@ -0,0 +1,32 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_status.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import type { RuntimeStatusUpdateResponse } from "./sagittarius.runtime_status_pb";
7
+ import type { RuntimeStatusUpdateRequest } from "./sagittarius.runtime_status_pb";
8
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
9
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
10
+ /**
11
+ * @generated from protobuf service sagittarius.RuntimeStatusService
12
+ */
13
+ export interface IRuntimeStatusServiceClient {
14
+ /**
15
+ * @generated from protobuf rpc: Update
16
+ */
17
+ update(input: RuntimeStatusUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeStatusUpdateRequest, RuntimeStatusUpdateResponse>;
18
+ }
19
+ /**
20
+ * @generated from protobuf service sagittarius.RuntimeStatusService
21
+ */
22
+ export declare class RuntimeStatusServiceClient implements IRuntimeStatusServiceClient, ServiceInfo {
23
+ private readonly _transport;
24
+ typeName: any;
25
+ methods: any;
26
+ options: any;
27
+ constructor(_transport: RpcTransport);
28
+ /**
29
+ * @generated from protobuf rpc: Update
30
+ */
31
+ update(input: RuntimeStatusUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeStatusUpdateRequest, RuntimeStatusUpdateResponse>;
32
+ }
@@ -0,0 +1,23 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_status.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { RuntimeStatusService } from "./sagittarius.runtime_status_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service sagittarius.RuntimeStatusService
8
+ */
9
+ export class RuntimeStatusServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = RuntimeStatusService.typeName;
13
+ this.methods = RuntimeStatusService.methods;
14
+ this.options = RuntimeStatusService.options;
15
+ }
16
+ /**
17
+ * @generated from protobuf rpc: Update
18
+ */
19
+ update(input, options) {
20
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
21
+ return stackIntercept("unary", this._transport, method, opt, input);
22
+ }
23
+ }
@@ -0,0 +1,68 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_status.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
8
+ import type { PartialMessage } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ import { ExecutionRuntimeStatus } from "./shared.runtime_status_pb";
11
+ import { AdapterRuntimeStatus } from "./shared.runtime_status_pb";
12
+ /**
13
+ * @generated from protobuf message sagittarius.RuntimeStatusUpdateRequest
14
+ */
15
+ export interface RuntimeStatusUpdateRequest {
16
+ /**
17
+ * @generated from protobuf oneof: status
18
+ */
19
+ status: {
20
+ oneofKind: "adapterRuntimeStatus";
21
+ /**
22
+ * @generated from protobuf field: shared.AdapterRuntimeStatus adapter_runtime_status = 1
23
+ */
24
+ adapterRuntimeStatus: AdapterRuntimeStatus;
25
+ } | {
26
+ oneofKind: "executionRuntimeStatus";
27
+ /**
28
+ * @generated from protobuf field: shared.ExecutionRuntimeStatus execution_runtime_status = 2
29
+ */
30
+ executionRuntimeStatus: ExecutionRuntimeStatus;
31
+ } | {
32
+ oneofKind: undefined;
33
+ };
34
+ }
35
+ /**
36
+ * @generated from protobuf message sagittarius.RuntimeStatusUpdateResponse
37
+ */
38
+ export interface RuntimeStatusUpdateResponse {
39
+ /**
40
+ * @generated from protobuf field: bool success = 1
41
+ */
42
+ success: boolean;
43
+ }
44
+ declare class RuntimeStatusUpdateRequest$Type extends MessageType<RuntimeStatusUpdateRequest> {
45
+ constructor();
46
+ create(value?: PartialMessage<RuntimeStatusUpdateRequest>): RuntimeStatusUpdateRequest;
47
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeStatusUpdateRequest): RuntimeStatusUpdateRequest;
48
+ internalBinaryWrite(message: RuntimeStatusUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
49
+ }
50
+ /**
51
+ * @generated MessageType for protobuf message sagittarius.RuntimeStatusUpdateRequest
52
+ */
53
+ export declare const RuntimeStatusUpdateRequest: RuntimeStatusUpdateRequest$Type;
54
+ declare class RuntimeStatusUpdateResponse$Type extends MessageType<RuntimeStatusUpdateResponse> {
55
+ constructor();
56
+ create(value?: PartialMessage<RuntimeStatusUpdateResponse>): RuntimeStatusUpdateResponse;
57
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeStatusUpdateResponse): RuntimeStatusUpdateResponse;
58
+ internalBinaryWrite(message: RuntimeStatusUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
59
+ }
60
+ /**
61
+ * @generated MessageType for protobuf message sagittarius.RuntimeStatusUpdateResponse
62
+ */
63
+ export declare const RuntimeStatusUpdateResponse: RuntimeStatusUpdateResponse$Type;
64
+ /**
65
+ * @generated ServiceType for protobuf service sagittarius.RuntimeStatusService
66
+ */
67
+ export declare const RuntimeStatusService: any;
68
+ export {};