@code0-tech/tucana 0.0.49 → 0.0.51

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.49",
3
+ "version": "0.0.51",
4
4
  "description": "Code0 GRPC Protocol",
5
5
  "homepage": "https://github.com/code0-tech/tucana#readme",
6
6
  "bugs": {
@@ -8,9 +8,9 @@ import type { IBinaryReader } from "@protobuf-ts/runtime";
8
8
  import type { PartialMessage } from "@protobuf-ts/runtime";
9
9
  import { MessageType } from "@protobuf-ts/runtime";
10
10
  import { Struct } from "./shared.struct_pb";
11
- import { DefinitionDataType } from "./shared.data_type_pb";
12
11
  import { Translation } from "./shared.translation_pb";
13
- import { EventType } from "./shared.event_pb";
12
+ import { FlowType } from "./shared.flow_definition_pb";
13
+ import { DefinitionDataType } from "./shared.data_type_pb";
14
14
  import { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
15
15
  import { Value } from "./shared.struct_pb";
16
16
  /**
@@ -44,22 +44,28 @@ export interface Configuration {
44
44
  * @generated from protobuf field: string identifier = 1
45
45
  */
46
46
  identifier: string;
47
+ /**
48
+ * @generated from protobuf field: string version = 2
49
+ */
50
+ version: string;
47
51
  /**
48
52
  * Flow Configuration
49
53
  *
50
- * @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definitions = 2
54
+ * @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definitions = 3
51
55
  */
52
56
  functionDefinitions: RuntimeFunctionDefinition[];
53
57
  /**
54
- * Event Configuration
55
- *
56
- * @generated from protobuf field: repeated shared.EventType event_types = 3
58
+ * @generated from protobuf field: repeated shared.DefinitionDataType data_types = 4
59
+ */
60
+ dataTypes: DefinitionDataType[];
61
+ /**
62
+ * @generated from protobuf field: repeated shared.FlowType flow_types = 5
57
63
  */
58
- eventTypes: EventType[];
64
+ flowTypes: FlowType[];
59
65
  /**
60
66
  * Application Configuration
61
67
  *
62
- * @generated from protobuf field: repeated aquila.ActionConfiguration action_configurations = 4
68
+ * @generated from protobuf field: repeated aquila.ActionConfiguration action_configurations = 6
63
69
  */
64
70
  actionConfigurations: ActionConfiguration[];
65
71
  }
@@ -10,9 +10,9 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
10
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
11
11
  import { MessageType } from "@protobuf-ts/runtime";
12
12
  import { Struct } from "./shared.struct_pb";
13
- import { DefinitionDataType } from "./shared.data_type_pb";
14
13
  import { Translation } from "./shared.translation_pb";
15
- import { EventType } from "./shared.event_pb";
14
+ import { FlowType } from "./shared.flow_definition_pb";
15
+ import { DefinitionDataType } from "./shared.data_type_pb";
16
16
  import { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
17
17
  import { Value } from "./shared.struct_pb";
18
18
  // @generated message type with reflection information, may provide speed optimized methods
@@ -74,16 +74,20 @@ class Configuration$Type extends MessageType {
74
74
  constructor() {
75
75
  super("aquila.Configuration", [
76
76
  { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
77
- { no: 2, name: "function_definitions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFunctionDefinition },
78
- { no: 3, name: "event_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EventType },
79
- { no: 4, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
77
+ { no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
78
+ { no: 3, name: "function_definitions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFunctionDefinition },
79
+ { no: 4, name: "data_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DefinitionDataType },
80
+ { no: 5, name: "flow_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowType },
81
+ { no: 6, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
80
82
  ]);
81
83
  }
82
84
  create(value) {
83
85
  const message = globalThis.Object.create((this.messagePrototype));
84
86
  message.identifier = "";
87
+ message.version = "";
85
88
  message.functionDefinitions = [];
86
- message.eventTypes = [];
89
+ message.dataTypes = [];
90
+ message.flowTypes = [];
87
91
  message.actionConfigurations = [];
88
92
  if (value !== undefined)
89
93
  reflectionMergePartial(this, message, value);
@@ -97,13 +101,19 @@ class Configuration$Type extends MessageType {
97
101
  case /* string identifier */ 1:
98
102
  message.identifier = reader.string();
99
103
  break;
100
- case /* repeated shared.RuntimeFunctionDefinition function_definitions */ 2:
104
+ case /* string version */ 2:
105
+ message.version = reader.string();
106
+ break;
107
+ case /* repeated shared.RuntimeFunctionDefinition function_definitions */ 3:
101
108
  message.functionDefinitions.push(RuntimeFunctionDefinition.internalBinaryRead(reader, reader.uint32(), options));
102
109
  break;
103
- case /* repeated shared.EventType event_types */ 3:
104
- message.eventTypes.push(EventType.internalBinaryRead(reader, reader.uint32(), options));
110
+ case /* repeated shared.DefinitionDataType data_types */ 4:
111
+ message.dataTypes.push(DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options));
112
+ break;
113
+ case /* repeated shared.FlowType flow_types */ 5:
114
+ message.flowTypes.push(FlowType.internalBinaryRead(reader, reader.uint32(), options));
105
115
  break;
106
- case /* repeated aquila.ActionConfiguration action_configurations */ 4:
116
+ case /* repeated aquila.ActionConfiguration action_configurations */ 6:
107
117
  message.actionConfigurations.push(ActionConfiguration.internalBinaryRead(reader, reader.uint32(), options));
108
118
  break;
109
119
  default:
@@ -121,15 +131,21 @@ class Configuration$Type extends MessageType {
121
131
  /* string identifier = 1; */
122
132
  if (message.identifier !== "")
123
133
  writer.tag(1, WireType.LengthDelimited).string(message.identifier);
124
- /* repeated shared.RuntimeFunctionDefinition function_definitions = 2; */
134
+ /* string version = 2; */
135
+ if (message.version !== "")
136
+ writer.tag(2, WireType.LengthDelimited).string(message.version);
137
+ /* repeated shared.RuntimeFunctionDefinition function_definitions = 3; */
125
138
  for (let i = 0; i < message.functionDefinitions.length; i++)
126
- RuntimeFunctionDefinition.internalBinaryWrite(message.functionDefinitions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
127
- /* repeated shared.EventType event_types = 3; */
128
- for (let i = 0; i < message.eventTypes.length; i++)
129
- EventType.internalBinaryWrite(message.eventTypes[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
130
- /* repeated aquila.ActionConfiguration action_configurations = 4; */
139
+ RuntimeFunctionDefinition.internalBinaryWrite(message.functionDefinitions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
140
+ /* repeated shared.DefinitionDataType data_types = 4; */
141
+ for (let i = 0; i < message.dataTypes.length; i++)
142
+ DefinitionDataType.internalBinaryWrite(message.dataTypes[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
143
+ /* repeated shared.FlowType flow_types = 5; */
144
+ for (let i = 0; i < message.flowTypes.length; i++)
145
+ FlowType.internalBinaryWrite(message.flowTypes[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
146
+ /* repeated aquila.ActionConfiguration action_configurations = 6; */
131
147
  for (let i = 0; i < message.actionConfigurations.length; i++)
132
- ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
148
+ ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
133
149
  let u = options.writeUnknownFields;
134
150
  if (u !== false)
135
151
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -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 "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 {};
@@ -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 "sagittarius.runtime_status.proto" (package "sagittarius", 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 "sagittarius.runtime_status.proto" (package "sagittarius", 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("sagittarius.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 sagittarius.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("sagittarius.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 sagittarius.RuntimeStatusUpdateResponse
119
+ */
120
+ export const RuntimeStatusUpdateResponse = new RuntimeStatusUpdateResponse$Type();
121
+ /**
122
+ * @generated ServiceType for protobuf service sagittarius.RuntimeStatusService
123
+ */
124
+ export const RuntimeStatusService = new ServiceType("sagittarius.RuntimeStatusService", [
125
+ { name: "Update", options: {}, I: RuntimeStatusUpdateRequest, O: RuntimeStatusUpdateResponse }
126
+ ]);