@code0-tech/tucana 0.0.0 → 0.0.38

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.
Files changed (34) hide show
  1. package/index.js +0 -0
  2. package/package.json +1 -1
  3. package/pb/aquila.action_pb.client.ts +41 -0
  4. package/pb/aquila.action_pb.ts +615 -0
  5. package/pb/aquila.data_type_pb.client.ts +37 -0
  6. package/pb/aquila.data_type_pb.ts +140 -0
  7. package/pb/aquila.execution_pb.client.ts +74 -0
  8. package/pb/aquila.execution_pb.ts +334 -0
  9. package/pb/aquila.flow_type_pb.client.ts +41 -0
  10. package/pb/aquila.flow_type_pb.ts +140 -0
  11. package/pb/aquila.runtime_function_pb.client.ts +41 -0
  12. package/pb/aquila.runtime_function_pb.ts +140 -0
  13. package/pb/sagittarius.action_pb.client.ts +54 -0
  14. package/pb/sagittarius.action_pb.ts +239 -0
  15. package/pb/sagittarius.data_type_pb.client.ts +37 -0
  16. package/pb/sagittarius.data_type_pb.ts +140 -0
  17. package/pb/sagittarius.flow_pb.client.ts +37 -0
  18. package/pb/sagittarius.flow_pb.ts +173 -0
  19. package/pb/sagittarius.flow_type_pb.client.ts +41 -0
  20. package/pb/sagittarius.flow_type_pb.ts +140 -0
  21. package/pb/sagittarius.ping_pb.client.ts +36 -0
  22. package/pb/sagittarius.ping_pb.ts +75 -0
  23. package/pb/sagittarius.runtime_function_pb.client.ts +41 -0
  24. package/pb/sagittarius.runtime_function_pb.ts +140 -0
  25. package/pb/sagittarius.text_execution_pb.client.ts +37 -0
  26. package/pb/sagittarius.text_execution_pb.ts +456 -0
  27. package/pb/shared.data_type_pb.ts +1534 -0
  28. package/pb/shared.event_pb.ts +285 -0
  29. package/pb/shared.flow_definition_pb.ts +281 -0
  30. package/pb/shared.flow_pb.ts +845 -0
  31. package/pb/shared.runtime_function_pb.ts +298 -0
  32. package/pb/shared.struct_pb.ts +383 -0
  33. package/pb/shared.translation_pb.ts +86 -0
  34. package/pb/shared.version_pb.ts +92 -0
@@ -0,0 +1,140 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.data_type.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
+ import { WireType } from "@protobuf-ts/runtime";
8
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
10
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ import { DefinitionDataType } from "./shared.data_type_pb";
15
+ /**
16
+ * Request for updating a data type
17
+ *
18
+ * @generated from protobuf message sagittarius.DataTypeUpdateRequest
19
+ */
20
+ export interface DataTypeUpdateRequest {
21
+ /**
22
+ * List of data types that should be updated
23
+ *
24
+ * @generated from protobuf field: repeated shared.DefinitionDataType data_types = 1
25
+ */
26
+ dataTypes: DefinitionDataType[];
27
+ }
28
+ /**
29
+ * Response of updating a data type
30
+ *
31
+ * @generated from protobuf message sagittarius.DataTypeUpdateResponse
32
+ */
33
+ export interface DataTypeUpdateResponse {
34
+ /**
35
+ * True if was successful, false if not
36
+ *
37
+ * @generated from protobuf field: bool success = 1
38
+ */
39
+ success: boolean;
40
+ }
41
+ // @generated message type with reflection information, may provide speed optimized methods
42
+ class DataTypeUpdateRequest$Type extends MessageType<DataTypeUpdateRequest> {
43
+ constructor() {
44
+ super("sagittarius.DataTypeUpdateRequest", [
45
+ { no: 1, name: "data_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DefinitionDataType }
46
+ ]);
47
+ }
48
+ create(value?: PartialMessage<DataTypeUpdateRequest>): DataTypeUpdateRequest {
49
+ const message = globalThis.Object.create((this.messagePrototype!));
50
+ message.dataTypes = [];
51
+ if (value !== undefined)
52
+ reflectionMergePartial<DataTypeUpdateRequest>(this, message, value);
53
+ return message;
54
+ }
55
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataTypeUpdateRequest): DataTypeUpdateRequest {
56
+ let message = target ?? this.create(), end = reader.pos + length;
57
+ while (reader.pos < end) {
58
+ let [fieldNo, wireType] = reader.tag();
59
+ switch (fieldNo) {
60
+ case /* repeated shared.DefinitionDataType data_types */ 1:
61
+ message.dataTypes.push(DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options));
62
+ break;
63
+ default:
64
+ let u = options.readUnknownField;
65
+ if (u === "throw")
66
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
67
+ let d = reader.skip(wireType);
68
+ if (u !== false)
69
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
70
+ }
71
+ }
72
+ return message;
73
+ }
74
+ internalBinaryWrite(message: DataTypeUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
75
+ /* repeated shared.DefinitionDataType data_types = 1; */
76
+ for (let i = 0; i < message.dataTypes.length; i++)
77
+ DefinitionDataType.internalBinaryWrite(message.dataTypes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
78
+ let u = options.writeUnknownFields;
79
+ if (u !== false)
80
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
81
+ return writer;
82
+ }
83
+ }
84
+ /**
85
+ * @generated MessageType for protobuf message sagittarius.DataTypeUpdateRequest
86
+ */
87
+ export const DataTypeUpdateRequest = new DataTypeUpdateRequest$Type();
88
+ // @generated message type with reflection information, may provide speed optimized methods
89
+ class DataTypeUpdateResponse$Type extends MessageType<DataTypeUpdateResponse> {
90
+ constructor() {
91
+ super("sagittarius.DataTypeUpdateResponse", [
92
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
93
+ ]);
94
+ }
95
+ create(value?: PartialMessage<DataTypeUpdateResponse>): DataTypeUpdateResponse {
96
+ const message = globalThis.Object.create((this.messagePrototype!));
97
+ message.success = false;
98
+ if (value !== undefined)
99
+ reflectionMergePartial<DataTypeUpdateResponse>(this, message, value);
100
+ return message;
101
+ }
102
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataTypeUpdateResponse): DataTypeUpdateResponse {
103
+ let message = target ?? this.create(), end = reader.pos + length;
104
+ while (reader.pos < end) {
105
+ let [fieldNo, wireType] = reader.tag();
106
+ switch (fieldNo) {
107
+ case /* bool success */ 1:
108
+ message.success = reader.bool();
109
+ break;
110
+ default:
111
+ let u = options.readUnknownField;
112
+ if (u === "throw")
113
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
114
+ let d = reader.skip(wireType);
115
+ if (u !== false)
116
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
117
+ }
118
+ }
119
+ return message;
120
+ }
121
+ internalBinaryWrite(message: DataTypeUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
122
+ /* bool success = 1; */
123
+ if (message.success !== false)
124
+ writer.tag(1, WireType.Varint).bool(message.success);
125
+ let u = options.writeUnknownFields;
126
+ if (u !== false)
127
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
128
+ return writer;
129
+ }
130
+ }
131
+ /**
132
+ * @generated MessageType for protobuf message sagittarius.DataTypeUpdateResponse
133
+ */
134
+ export const DataTypeUpdateResponse = new DataTypeUpdateResponse$Type();
135
+ /**
136
+ * @generated ServiceType for protobuf service sagittarius.DataTypeService
137
+ */
138
+ export const DataTypeService = new ServiceType("sagittarius.DataTypeService", [
139
+ { name: "Update", options: {}, I: DataTypeUpdateRequest, O: DataTypeUpdateResponse }
140
+ ]);
@@ -0,0 +1,37 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.flow.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 { FlowService } from "./sagittarius.flow_pb";
7
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
+ import type { FlowResponse } from "./sagittarius.flow_pb";
9
+ import type { FlowLogonRequest } from "./sagittarius.flow_pb";
10
+ import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
11
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
12
+ /**
13
+ * @generated from protobuf service sagittarius.FlowService
14
+ */
15
+ export interface IFlowServiceClient {
16
+ /**
17
+ * @generated from protobuf rpc: Update
18
+ */
19
+ update(input: FlowLogonRequest, options?: RpcOptions): ServerStreamingCall<FlowLogonRequest, FlowResponse>;
20
+ }
21
+ /**
22
+ * @generated from protobuf service sagittarius.FlowService
23
+ */
24
+ export class FlowServiceClient implements IFlowServiceClient, ServiceInfo {
25
+ typeName = FlowService.typeName;
26
+ methods = FlowService.methods;
27
+ options = FlowService.options;
28
+ constructor(private readonly _transport: RpcTransport) {
29
+ }
30
+ /**
31
+ * @generated from protobuf rpc: Update
32
+ */
33
+ update(input: FlowLogonRequest, options?: RpcOptions): ServerStreamingCall<FlowLogonRequest, FlowResponse> {
34
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
35
+ return stackIntercept<FlowLogonRequest, FlowResponse>("serverStreaming", this._transport, method, opt, input);
36
+ }
37
+ }
@@ -0,0 +1,173 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.flow.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import { WireType } from "@protobuf-ts/runtime";
6
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
8
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
10
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ import { Flows } from "./shared.flow_pb";
15
+ import { ValidationFlow } from "./shared.flow_pb";
16
+ /**
17
+ * Aquila sends a request to initialise stream to Sagittarius
18
+ *
19
+ * @generated from protobuf message sagittarius.FlowLogonRequest
20
+ */
21
+ export interface FlowLogonRequest {
22
+ }
23
+ /**
24
+ * Sagittarius sends flow to be updated
25
+ *
26
+ * @generated from protobuf message sagittarius.FlowResponse
27
+ */
28
+ export interface FlowResponse {
29
+ /**
30
+ * @generated from protobuf oneof: data
31
+ */
32
+ data: {
33
+ oneofKind: "updatedFlow";
34
+ /**
35
+ * Updates a single flow
36
+ *
37
+ * @generated from protobuf field: shared.ValidationFlow updated_flow = 1
38
+ */
39
+ updatedFlow: ValidationFlow;
40
+ } | {
41
+ oneofKind: "deletedFlowId";
42
+ /**
43
+ * Deletes a single flow
44
+ *
45
+ * @generated from protobuf field: int64 deleted_flow_id = 2
46
+ */
47
+ deletedFlowId: bigint;
48
+ } | {
49
+ oneofKind: "flows";
50
+ /**
51
+ * Replaces all flows in Aquila (only on startup and for releases)
52
+ *
53
+ * @generated from protobuf field: shared.Flows flows = 3
54
+ */
55
+ flows: Flows;
56
+ } | {
57
+ oneofKind: undefined;
58
+ };
59
+ }
60
+ // @generated message type with reflection information, may provide speed optimized methods
61
+ class FlowLogonRequest$Type extends MessageType<FlowLogonRequest> {
62
+ constructor() {
63
+ super("sagittarius.FlowLogonRequest", []);
64
+ }
65
+ create(value?: PartialMessage<FlowLogonRequest>): FlowLogonRequest {
66
+ const message = globalThis.Object.create((this.messagePrototype!));
67
+ if (value !== undefined)
68
+ reflectionMergePartial<FlowLogonRequest>(this, message, value);
69
+ return message;
70
+ }
71
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowLogonRequest): FlowLogonRequest {
72
+ let message = target ?? this.create(), end = reader.pos + length;
73
+ while (reader.pos < end) {
74
+ let [fieldNo, wireType] = reader.tag();
75
+ switch (fieldNo) {
76
+ default:
77
+ let u = options.readUnknownField;
78
+ if (u === "throw")
79
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
80
+ let d = reader.skip(wireType);
81
+ if (u !== false)
82
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
83
+ }
84
+ }
85
+ return message;
86
+ }
87
+ internalBinaryWrite(message: FlowLogonRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
88
+ let u = options.writeUnknownFields;
89
+ if (u !== false)
90
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
91
+ return writer;
92
+ }
93
+ }
94
+ /**
95
+ * @generated MessageType for protobuf message sagittarius.FlowLogonRequest
96
+ */
97
+ export const FlowLogonRequest = new FlowLogonRequest$Type();
98
+ // @generated message type with reflection information, may provide speed optimized methods
99
+ class FlowResponse$Type extends MessageType<FlowResponse> {
100
+ constructor() {
101
+ super("sagittarius.FlowResponse", [
102
+ { no: 1, name: "updated_flow", kind: "message", oneof: "data", T: () => ValidationFlow },
103
+ { no: 2, name: "deleted_flow_id", kind: "scalar", oneof: "data", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
104
+ { no: 3, name: "flows", kind: "message", oneof: "data", T: () => Flows }
105
+ ]);
106
+ }
107
+ create(value?: PartialMessage<FlowResponse>): FlowResponse {
108
+ const message = globalThis.Object.create((this.messagePrototype!));
109
+ message.data = { oneofKind: undefined };
110
+ if (value !== undefined)
111
+ reflectionMergePartial<FlowResponse>(this, message, value);
112
+ return message;
113
+ }
114
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowResponse): FlowResponse {
115
+ let message = target ?? this.create(), end = reader.pos + length;
116
+ while (reader.pos < end) {
117
+ let [fieldNo, wireType] = reader.tag();
118
+ switch (fieldNo) {
119
+ case /* shared.ValidationFlow updated_flow */ 1:
120
+ message.data = {
121
+ oneofKind: "updatedFlow",
122
+ updatedFlow: ValidationFlow.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updatedFlow)
123
+ };
124
+ break;
125
+ case /* int64 deleted_flow_id */ 2:
126
+ message.data = {
127
+ oneofKind: "deletedFlowId",
128
+ deletedFlowId: reader.int64().toBigInt()
129
+ };
130
+ break;
131
+ case /* shared.Flows flows */ 3:
132
+ message.data = {
133
+ oneofKind: "flows",
134
+ flows: Flows.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).flows)
135
+ };
136
+ break;
137
+ default:
138
+ let u = options.readUnknownField;
139
+ if (u === "throw")
140
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
141
+ let d = reader.skip(wireType);
142
+ if (u !== false)
143
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
144
+ }
145
+ }
146
+ return message;
147
+ }
148
+ internalBinaryWrite(message: FlowResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
149
+ /* shared.ValidationFlow updated_flow = 1; */
150
+ if (message.data.oneofKind === "updatedFlow")
151
+ ValidationFlow.internalBinaryWrite(message.data.updatedFlow, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
152
+ /* int64 deleted_flow_id = 2; */
153
+ if (message.data.oneofKind === "deletedFlowId")
154
+ writer.tag(2, WireType.Varint).int64(message.data.deletedFlowId);
155
+ /* shared.Flows flows = 3; */
156
+ if (message.data.oneofKind === "flows")
157
+ Flows.internalBinaryWrite(message.data.flows, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
158
+ let u = options.writeUnknownFields;
159
+ if (u !== false)
160
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
161
+ return writer;
162
+ }
163
+ }
164
+ /**
165
+ * @generated MessageType for protobuf message sagittarius.FlowResponse
166
+ */
167
+ export const FlowResponse = new FlowResponse$Type();
168
+ /**
169
+ * @generated ServiceType for protobuf service sagittarius.FlowService
170
+ */
171
+ export const FlowService = new ServiceType("sagittarius.FlowService", [
172
+ { name: "Update", serverStreaming: true, options: {}, I: FlowLogonRequest, O: FlowResponse }
173
+ ]);
@@ -0,0 +1,41 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.flow_type.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 { FlowTypeService } from "./sagittarius.flow_type_pb";
7
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
+ import type { FlowTypeUpdateResponse } from "./sagittarius.flow_type_pb";
9
+ import type { FlowTypeUpdateRequest } from "./sagittarius.flow_type_pb";
10
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
11
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
12
+ /**
13
+ * This service will be implemented as a server by Sagittarius and as a client by Aquila.
14
+ *
15
+ * @generated from protobuf service sagittarius.FlowTypeService
16
+ */
17
+ export interface IFlowTypeServiceClient {
18
+ /**
19
+ * @generated from protobuf rpc: Update
20
+ */
21
+ update(input: FlowTypeUpdateRequest, options?: RpcOptions): UnaryCall<FlowTypeUpdateRequest, FlowTypeUpdateResponse>;
22
+ }
23
+ /**
24
+ * This service will be implemented as a server by Sagittarius and as a client by Aquila.
25
+ *
26
+ * @generated from protobuf service sagittarius.FlowTypeService
27
+ */
28
+ export class FlowTypeServiceClient implements IFlowTypeServiceClient, ServiceInfo {
29
+ typeName = FlowTypeService.typeName;
30
+ methods = FlowTypeService.methods;
31
+ options = FlowTypeService.options;
32
+ constructor(private readonly _transport: RpcTransport) {
33
+ }
34
+ /**
35
+ * @generated from protobuf rpc: Update
36
+ */
37
+ update(input: FlowTypeUpdateRequest, options?: RpcOptions): UnaryCall<FlowTypeUpdateRequest, FlowTypeUpdateResponse> {
38
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
39
+ return stackIntercept<FlowTypeUpdateRequest, FlowTypeUpdateResponse>("unary", this._transport, method, opt, input);
40
+ }
41
+ }
@@ -0,0 +1,140 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.flow_type.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
+ import { WireType } from "@protobuf-ts/runtime";
8
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
10
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ import { FlowType } from "./shared.flow_definition_pb";
15
+ /**
16
+ * Request for updating a list of adapter flow types
17
+ *
18
+ * @generated from protobuf message sagittarius.FlowTypeUpdateRequest
19
+ */
20
+ export interface FlowTypeUpdateRequest {
21
+ /**
22
+ * List of adapter flow types
23
+ *
24
+ * @generated from protobuf field: repeated shared.FlowType flow_types = 1
25
+ */
26
+ flowTypes: FlowType[];
27
+ }
28
+ /**
29
+ * Response of updating adapter flow types
30
+ *
31
+ * @generated from protobuf message sagittarius.FlowTypeUpdateResponse
32
+ */
33
+ export interface FlowTypeUpdateResponse {
34
+ /**
35
+ * True if was successful, false if not
36
+ *
37
+ * @generated from protobuf field: bool success = 1
38
+ */
39
+ success: boolean;
40
+ }
41
+ // @generated message type with reflection information, may provide speed optimized methods
42
+ class FlowTypeUpdateRequest$Type extends MessageType<FlowTypeUpdateRequest> {
43
+ constructor() {
44
+ super("sagittarius.FlowTypeUpdateRequest", [
45
+ { no: 1, name: "flow_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowType }
46
+ ]);
47
+ }
48
+ create(value?: PartialMessage<FlowTypeUpdateRequest>): FlowTypeUpdateRequest {
49
+ const message = globalThis.Object.create((this.messagePrototype!));
50
+ message.flowTypes = [];
51
+ if (value !== undefined)
52
+ reflectionMergePartial<FlowTypeUpdateRequest>(this, message, value);
53
+ return message;
54
+ }
55
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowTypeUpdateRequest): FlowTypeUpdateRequest {
56
+ let message = target ?? this.create(), end = reader.pos + length;
57
+ while (reader.pos < end) {
58
+ let [fieldNo, wireType] = reader.tag();
59
+ switch (fieldNo) {
60
+ case /* repeated shared.FlowType flow_types */ 1:
61
+ message.flowTypes.push(FlowType.internalBinaryRead(reader, reader.uint32(), options));
62
+ break;
63
+ default:
64
+ let u = options.readUnknownField;
65
+ if (u === "throw")
66
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
67
+ let d = reader.skip(wireType);
68
+ if (u !== false)
69
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
70
+ }
71
+ }
72
+ return message;
73
+ }
74
+ internalBinaryWrite(message: FlowTypeUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
75
+ /* repeated shared.FlowType flow_types = 1; */
76
+ for (let i = 0; i < message.flowTypes.length; i++)
77
+ FlowType.internalBinaryWrite(message.flowTypes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
78
+ let u = options.writeUnknownFields;
79
+ if (u !== false)
80
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
81
+ return writer;
82
+ }
83
+ }
84
+ /**
85
+ * @generated MessageType for protobuf message sagittarius.FlowTypeUpdateRequest
86
+ */
87
+ export const FlowTypeUpdateRequest = new FlowTypeUpdateRequest$Type();
88
+ // @generated message type with reflection information, may provide speed optimized methods
89
+ class FlowTypeUpdateResponse$Type extends MessageType<FlowTypeUpdateResponse> {
90
+ constructor() {
91
+ super("sagittarius.FlowTypeUpdateResponse", [
92
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
93
+ ]);
94
+ }
95
+ create(value?: PartialMessage<FlowTypeUpdateResponse>): FlowTypeUpdateResponse {
96
+ const message = globalThis.Object.create((this.messagePrototype!));
97
+ message.success = false;
98
+ if (value !== undefined)
99
+ reflectionMergePartial<FlowTypeUpdateResponse>(this, message, value);
100
+ return message;
101
+ }
102
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowTypeUpdateResponse): FlowTypeUpdateResponse {
103
+ let message = target ?? this.create(), end = reader.pos + length;
104
+ while (reader.pos < end) {
105
+ let [fieldNo, wireType] = reader.tag();
106
+ switch (fieldNo) {
107
+ case /* bool success */ 1:
108
+ message.success = reader.bool();
109
+ break;
110
+ default:
111
+ let u = options.readUnknownField;
112
+ if (u === "throw")
113
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
114
+ let d = reader.skip(wireType);
115
+ if (u !== false)
116
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
117
+ }
118
+ }
119
+ return message;
120
+ }
121
+ internalBinaryWrite(message: FlowTypeUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
122
+ /* bool success = 1; */
123
+ if (message.success !== false)
124
+ writer.tag(1, WireType.Varint).bool(message.success);
125
+ let u = options.writeUnknownFields;
126
+ if (u !== false)
127
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
128
+ return writer;
129
+ }
130
+ }
131
+ /**
132
+ * @generated MessageType for protobuf message sagittarius.FlowTypeUpdateResponse
133
+ */
134
+ export const FlowTypeUpdateResponse = new FlowTypeUpdateResponse$Type();
135
+ /**
136
+ * @generated ServiceType for protobuf service sagittarius.FlowTypeService
137
+ */
138
+ export const FlowTypeService = new ServiceType("sagittarius.FlowTypeService", [
139
+ { name: "Update", options: {}, I: FlowTypeUpdateRequest, O: FlowTypeUpdateResponse }
140
+ ]);
@@ -0,0 +1,36 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.ping.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 { PingService } from "./sagittarius.ping_pb";
7
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
+ import type { PingMessage } from "./sagittarius.ping_pb";
9
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
10
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
11
+ /**
12
+ * @generated from protobuf service sagittarius.PingService
13
+ */
14
+ export interface IPingServiceClient {
15
+ /**
16
+ * @generated from protobuf rpc: Ping
17
+ */
18
+ ping(input: PingMessage, options?: RpcOptions): UnaryCall<PingMessage, PingMessage>;
19
+ }
20
+ /**
21
+ * @generated from protobuf service sagittarius.PingService
22
+ */
23
+ export class PingServiceClient implements IPingServiceClient, ServiceInfo {
24
+ typeName = PingService.typeName;
25
+ methods = PingService.methods;
26
+ options = PingService.options;
27
+ constructor(private readonly _transport: RpcTransport) {
28
+ }
29
+ /**
30
+ * @generated from protobuf rpc: Ping
31
+ */
32
+ ping(input: PingMessage, options?: RpcOptions): UnaryCall<PingMessage, PingMessage> {
33
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
34
+ return stackIntercept<PingMessage, PingMessage>("unary", this._transport, method, opt, input);
35
+ }
36
+ }
@@ -0,0 +1,75 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.ping.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
+ import { WireType } from "@protobuf-ts/runtime";
8
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
10
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ /**
15
+ * @generated from protobuf message sagittarius.PingMessage
16
+ */
17
+ export interface PingMessage {
18
+ /**
19
+ * @generated from protobuf field: int64 ping_id = 1
20
+ */
21
+ pingId: bigint;
22
+ }
23
+ // @generated message type with reflection information, may provide speed optimized methods
24
+ class PingMessage$Type extends MessageType<PingMessage> {
25
+ constructor() {
26
+ super("sagittarius.PingMessage", [
27
+ { no: 1, name: "ping_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
28
+ ]);
29
+ }
30
+ create(value?: PartialMessage<PingMessage>): PingMessage {
31
+ const message = globalThis.Object.create((this.messagePrototype!));
32
+ message.pingId = 0n;
33
+ if (value !== undefined)
34
+ reflectionMergePartial<PingMessage>(this, message, value);
35
+ return message;
36
+ }
37
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PingMessage): PingMessage {
38
+ let message = target ?? this.create(), end = reader.pos + length;
39
+ while (reader.pos < end) {
40
+ let [fieldNo, wireType] = reader.tag();
41
+ switch (fieldNo) {
42
+ case /* int64 ping_id */ 1:
43
+ message.pingId = reader.int64().toBigInt();
44
+ break;
45
+ default:
46
+ let u = options.readUnknownField;
47
+ if (u === "throw")
48
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
49
+ let d = reader.skip(wireType);
50
+ if (u !== false)
51
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
52
+ }
53
+ }
54
+ return message;
55
+ }
56
+ internalBinaryWrite(message: PingMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
57
+ /* int64 ping_id = 1; */
58
+ if (message.pingId !== 0n)
59
+ writer.tag(1, WireType.Varint).int64(message.pingId);
60
+ let u = options.writeUnknownFields;
61
+ if (u !== false)
62
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
63
+ return writer;
64
+ }
65
+ }
66
+ /**
67
+ * @generated MessageType for protobuf message sagittarius.PingMessage
68
+ */
69
+ export const PingMessage = new PingMessage$Type();
70
+ /**
71
+ * @generated ServiceType for protobuf service sagittarius.PingService
72
+ */
73
+ export const PingService = new ServiceType("sagittarius.PingService", [
74
+ { name: "Ping", options: {}, I: PingMessage, O: PingMessage }
75
+ ]);