@code0-tech/tucana 0.0.0 → 0.0.37

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 "aquila.flow_type.proto" (package "aquila", 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 aquila.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 aquila.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("aquila.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 aquila.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("aquila.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 aquila.FlowTypeUpdateResponse
133
+ */
134
+ export const FlowTypeUpdateResponse = new FlowTypeUpdateResponse$Type();
135
+ /**
136
+ * @generated ServiceType for protobuf service aquila.FlowTypeService
137
+ */
138
+ export const FlowTypeService = new ServiceType("aquila.FlowTypeService", [
139
+ { name: "Update", options: {}, I: FlowTypeUpdateRequest, O: FlowTypeUpdateResponse }
140
+ ]);
@@ -0,0 +1,41 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "aquila.runtime_function.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 { RuntimeFunctionDefinitionService } from "./aquila.runtime_function_pb";
7
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
+ import type { RuntimeFunctionDefinitionUpdateResponse } from "./aquila.runtime_function_pb";
9
+ import type { RuntimeFunctionDefinitionUpdateRequest } from "./aquila.runtime_function_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 Aquila and as a client by Taurus.
14
+ *
15
+ * @generated from protobuf service aquila.RuntimeFunctionDefinitionService
16
+ */
17
+ export interface IRuntimeFunctionDefinitionServiceClient {
18
+ /**
19
+ * @generated from protobuf rpc: Update
20
+ */
21
+ update(input: RuntimeFunctionDefinitionUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeFunctionDefinitionUpdateRequest, RuntimeFunctionDefinitionUpdateResponse>;
22
+ }
23
+ /**
24
+ * This service will be implemented as a server by Aquila and as a client by Taurus.
25
+ *
26
+ * @generated from protobuf service aquila.RuntimeFunctionDefinitionService
27
+ */
28
+ export class RuntimeFunctionDefinitionServiceClient implements IRuntimeFunctionDefinitionServiceClient, ServiceInfo {
29
+ typeName = RuntimeFunctionDefinitionService.typeName;
30
+ methods = RuntimeFunctionDefinitionService.methods;
31
+ options = RuntimeFunctionDefinitionService.options;
32
+ constructor(private readonly _transport: RpcTransport) {
33
+ }
34
+ /**
35
+ * @generated from protobuf rpc: Update
36
+ */
37
+ update(input: RuntimeFunctionDefinitionUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeFunctionDefinitionUpdateRequest, RuntimeFunctionDefinitionUpdateResponse> {
38
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
39
+ return stackIntercept<RuntimeFunctionDefinitionUpdateRequest, RuntimeFunctionDefinitionUpdateResponse>("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 "aquila.runtime_function.proto" (package "aquila", 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 { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
15
+ /**
16
+ * Request for updating a list of runtime function definitions
17
+ *
18
+ * @generated from protobuf message aquila.RuntimeFunctionDefinitionUpdateRequest
19
+ */
20
+ export interface RuntimeFunctionDefinitionUpdateRequest {
21
+ /**
22
+ * List of runtime function definitions
23
+ *
24
+ * @generated from protobuf field: repeated shared.RuntimeFunctionDefinition runtime_functions = 1
25
+ */
26
+ runtimeFunctions: RuntimeFunctionDefinition[];
27
+ }
28
+ /**
29
+ * Response of updating runtime function definitions
30
+ *
31
+ * @generated from protobuf message aquila.RuntimeFunctionDefinitionUpdateResponse
32
+ */
33
+ export interface RuntimeFunctionDefinitionUpdateResponse {
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 RuntimeFunctionDefinitionUpdateRequest$Type extends MessageType<RuntimeFunctionDefinitionUpdateRequest> {
43
+ constructor() {
44
+ super("aquila.RuntimeFunctionDefinitionUpdateRequest", [
45
+ { no: 1, name: "runtime_functions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFunctionDefinition }
46
+ ]);
47
+ }
48
+ create(value?: PartialMessage<RuntimeFunctionDefinitionUpdateRequest>): RuntimeFunctionDefinitionUpdateRequest {
49
+ const message = globalThis.Object.create((this.messagePrototype!));
50
+ message.runtimeFunctions = [];
51
+ if (value !== undefined)
52
+ reflectionMergePartial<RuntimeFunctionDefinitionUpdateRequest>(this, message, value);
53
+ return message;
54
+ }
55
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeFunctionDefinitionUpdateRequest): RuntimeFunctionDefinitionUpdateRequest {
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.RuntimeFunctionDefinition runtime_functions */ 1:
61
+ message.runtimeFunctions.push(RuntimeFunctionDefinition.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: RuntimeFunctionDefinitionUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
75
+ /* repeated shared.RuntimeFunctionDefinition runtime_functions = 1; */
76
+ for (let i = 0; i < message.runtimeFunctions.length; i++)
77
+ RuntimeFunctionDefinition.internalBinaryWrite(message.runtimeFunctions[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 aquila.RuntimeFunctionDefinitionUpdateRequest
86
+ */
87
+ export const RuntimeFunctionDefinitionUpdateRequest = new RuntimeFunctionDefinitionUpdateRequest$Type();
88
+ // @generated message type with reflection information, may provide speed optimized methods
89
+ class RuntimeFunctionDefinitionUpdateResponse$Type extends MessageType<RuntimeFunctionDefinitionUpdateResponse> {
90
+ constructor() {
91
+ super("aquila.RuntimeFunctionDefinitionUpdateResponse", [
92
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
93
+ ]);
94
+ }
95
+ create(value?: PartialMessage<RuntimeFunctionDefinitionUpdateResponse>): RuntimeFunctionDefinitionUpdateResponse {
96
+ const message = globalThis.Object.create((this.messagePrototype!));
97
+ message.success = false;
98
+ if (value !== undefined)
99
+ reflectionMergePartial<RuntimeFunctionDefinitionUpdateResponse>(this, message, value);
100
+ return message;
101
+ }
102
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeFunctionDefinitionUpdateResponse): RuntimeFunctionDefinitionUpdateResponse {
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: RuntimeFunctionDefinitionUpdateResponse, 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 aquila.RuntimeFunctionDefinitionUpdateResponse
133
+ */
134
+ export const RuntimeFunctionDefinitionUpdateResponse = new RuntimeFunctionDefinitionUpdateResponse$Type();
135
+ /**
136
+ * @generated ServiceType for protobuf service aquila.RuntimeFunctionDefinitionService
137
+ */
138
+ export const RuntimeFunctionDefinitionService = new ServiceType("aquila.RuntimeFunctionDefinitionService", [
139
+ { name: "Update", options: {}, I: RuntimeFunctionDefinitionUpdateRequest, O: RuntimeFunctionDefinitionUpdateResponse }
140
+ ]);
@@ -0,0 +1,54 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.action.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 { ActionService } from "./sagittarius.action_pb";
7
+ import type { ActionLogoffResponse } from "./sagittarius.action_pb";
8
+ import type { ActionLogoffRequest } from "./sagittarius.action_pb";
9
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
10
+ import type { ActionLogonResponse } from "./sagittarius.action_pb";
11
+ import type { ActionLogonRequest } from "./sagittarius.action_pb";
12
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
13
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
14
+ /**
15
+ * Service from Sagittarius to get called by Aquila to get informed of any action behavior & availability
16
+ *
17
+ * @generated from protobuf service sagittarius.ActionService
18
+ */
19
+ export interface IActionServiceClient {
20
+ /**
21
+ * @generated from protobuf rpc: Logon
22
+ */
23
+ logon(input: ActionLogonRequest, options?: RpcOptions): UnaryCall<ActionLogonRequest, ActionLogonResponse>;
24
+ /**
25
+ * @generated from protobuf rpc: Logoff
26
+ */
27
+ logoff(input: ActionLogoffRequest, options?: RpcOptions): UnaryCall<ActionLogoffRequest, ActionLogoffResponse>;
28
+ }
29
+ /**
30
+ * Service from Sagittarius to get called by Aquila to get informed of any action behavior & availability
31
+ *
32
+ * @generated from protobuf service sagittarius.ActionService
33
+ */
34
+ export class ActionServiceClient implements IActionServiceClient, ServiceInfo {
35
+ typeName = ActionService.typeName;
36
+ methods = ActionService.methods;
37
+ options = ActionService.options;
38
+ constructor(private readonly _transport: RpcTransport) {
39
+ }
40
+ /**
41
+ * @generated from protobuf rpc: Logon
42
+ */
43
+ logon(input: ActionLogonRequest, options?: RpcOptions): UnaryCall<ActionLogonRequest, ActionLogonResponse> {
44
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
45
+ return stackIntercept<ActionLogonRequest, ActionLogonResponse>("unary", this._transport, method, opt, input);
46
+ }
47
+ /**
48
+ * @generated from protobuf rpc: Logoff
49
+ */
50
+ logoff(input: ActionLogoffRequest, options?: RpcOptions): UnaryCall<ActionLogoffRequest, ActionLogoffResponse> {
51
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
52
+ return stackIntercept<ActionLogoffRequest, ActionLogoffResponse>("unary", this._transport, method, opt, input);
53
+ }
54
+ }
@@ -0,0 +1,239 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "sagittarius.action.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 { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
15
+ /**
16
+ * Request for communicating that an action went online
17
+ *
18
+ * @generated from protobuf message sagittarius.ActionLogonRequest
19
+ */
20
+ export interface ActionLogonRequest {
21
+ /**
22
+ * Unique identifier of action
23
+ *
24
+ * @generated from protobuf field: string identifier = 1
25
+ */
26
+ identifier: string;
27
+ /**
28
+ * All function definitions the action holds
29
+ *
30
+ * @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definition = 2
31
+ */
32
+ functionDefinition: RuntimeFunctionDefinition[];
33
+ }
34
+ /**
35
+ * @generated from protobuf message sagittarius.ActionLogonResponse
36
+ */
37
+ export interface ActionLogonResponse {
38
+ }
39
+ /**
40
+ * Request for communication that an action went offline
41
+ *
42
+ * @generated from protobuf message sagittarius.ActionLogoffRequest
43
+ */
44
+ export interface ActionLogoffRequest {
45
+ /**
46
+ * @generated from protobuf field: string identifier = 1
47
+ */
48
+ identifier: string;
49
+ }
50
+ /**
51
+ * @generated from protobuf message sagittarius.ActionLogoffResponse
52
+ */
53
+ export interface ActionLogoffResponse {
54
+ }
55
+ // @generated message type with reflection information, may provide speed optimized methods
56
+ class ActionLogonRequest$Type extends MessageType<ActionLogonRequest> {
57
+ constructor() {
58
+ super("sagittarius.ActionLogonRequest", [
59
+ { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
60
+ { no: 2, name: "function_definition", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFunctionDefinition }
61
+ ]);
62
+ }
63
+ create(value?: PartialMessage<ActionLogonRequest>): ActionLogonRequest {
64
+ const message = globalThis.Object.create((this.messagePrototype!));
65
+ message.identifier = "";
66
+ message.functionDefinition = [];
67
+ if (value !== undefined)
68
+ reflectionMergePartial<ActionLogonRequest>(this, message, value);
69
+ return message;
70
+ }
71
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionLogonRequest): ActionLogonRequest {
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
+ case /* string identifier */ 1:
77
+ message.identifier = reader.string();
78
+ break;
79
+ case /* repeated shared.RuntimeFunctionDefinition function_definition */ 2:
80
+ message.functionDefinition.push(RuntimeFunctionDefinition.internalBinaryRead(reader, reader.uint32(), options));
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: ActionLogonRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
94
+ /* string identifier = 1; */
95
+ if (message.identifier !== "")
96
+ writer.tag(1, WireType.LengthDelimited).string(message.identifier);
97
+ /* repeated shared.RuntimeFunctionDefinition function_definition = 2; */
98
+ for (let i = 0; i < message.functionDefinition.length; i++)
99
+ RuntimeFunctionDefinition.internalBinaryWrite(message.functionDefinition[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
100
+ let u = options.writeUnknownFields;
101
+ if (u !== false)
102
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
103
+ return writer;
104
+ }
105
+ }
106
+ /**
107
+ * @generated MessageType for protobuf message sagittarius.ActionLogonRequest
108
+ */
109
+ export const ActionLogonRequest = new ActionLogonRequest$Type();
110
+ // @generated message type with reflection information, may provide speed optimized methods
111
+ class ActionLogonResponse$Type extends MessageType<ActionLogonResponse> {
112
+ constructor() {
113
+ super("sagittarius.ActionLogonResponse", []);
114
+ }
115
+ create(value?: PartialMessage<ActionLogonResponse>): ActionLogonResponse {
116
+ const message = globalThis.Object.create((this.messagePrototype!));
117
+ if (value !== undefined)
118
+ reflectionMergePartial<ActionLogonResponse>(this, message, value);
119
+ return message;
120
+ }
121
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionLogonResponse): ActionLogonResponse {
122
+ let message = target ?? this.create(), end = reader.pos + length;
123
+ while (reader.pos < end) {
124
+ let [fieldNo, wireType] = reader.tag();
125
+ switch (fieldNo) {
126
+ default:
127
+ let u = options.readUnknownField;
128
+ if (u === "throw")
129
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
130
+ let d = reader.skip(wireType);
131
+ if (u !== false)
132
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
133
+ }
134
+ }
135
+ return message;
136
+ }
137
+ internalBinaryWrite(message: ActionLogonResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
138
+ let u = options.writeUnknownFields;
139
+ if (u !== false)
140
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
141
+ return writer;
142
+ }
143
+ }
144
+ /**
145
+ * @generated MessageType for protobuf message sagittarius.ActionLogonResponse
146
+ */
147
+ export const ActionLogonResponse = new ActionLogonResponse$Type();
148
+ // @generated message type with reflection information, may provide speed optimized methods
149
+ class ActionLogoffRequest$Type extends MessageType<ActionLogoffRequest> {
150
+ constructor() {
151
+ super("sagittarius.ActionLogoffRequest", [
152
+ { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
153
+ ]);
154
+ }
155
+ create(value?: PartialMessage<ActionLogoffRequest>): ActionLogoffRequest {
156
+ const message = globalThis.Object.create((this.messagePrototype!));
157
+ message.identifier = "";
158
+ if (value !== undefined)
159
+ reflectionMergePartial<ActionLogoffRequest>(this, message, value);
160
+ return message;
161
+ }
162
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionLogoffRequest): ActionLogoffRequest {
163
+ let message = target ?? this.create(), end = reader.pos + length;
164
+ while (reader.pos < end) {
165
+ let [fieldNo, wireType] = reader.tag();
166
+ switch (fieldNo) {
167
+ case /* string identifier */ 1:
168
+ message.identifier = reader.string();
169
+ break;
170
+ default:
171
+ let u = options.readUnknownField;
172
+ if (u === "throw")
173
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
174
+ let d = reader.skip(wireType);
175
+ if (u !== false)
176
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
177
+ }
178
+ }
179
+ return message;
180
+ }
181
+ internalBinaryWrite(message: ActionLogoffRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
182
+ /* string identifier = 1; */
183
+ if (message.identifier !== "")
184
+ writer.tag(1, WireType.LengthDelimited).string(message.identifier);
185
+ let u = options.writeUnknownFields;
186
+ if (u !== false)
187
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
188
+ return writer;
189
+ }
190
+ }
191
+ /**
192
+ * @generated MessageType for protobuf message sagittarius.ActionLogoffRequest
193
+ */
194
+ export const ActionLogoffRequest = new ActionLogoffRequest$Type();
195
+ // @generated message type with reflection information, may provide speed optimized methods
196
+ class ActionLogoffResponse$Type extends MessageType<ActionLogoffResponse> {
197
+ constructor() {
198
+ super("sagittarius.ActionLogoffResponse", []);
199
+ }
200
+ create(value?: PartialMessage<ActionLogoffResponse>): ActionLogoffResponse {
201
+ const message = globalThis.Object.create((this.messagePrototype!));
202
+ if (value !== undefined)
203
+ reflectionMergePartial<ActionLogoffResponse>(this, message, value);
204
+ return message;
205
+ }
206
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionLogoffResponse): ActionLogoffResponse {
207
+ let message = target ?? this.create(), end = reader.pos + length;
208
+ while (reader.pos < end) {
209
+ let [fieldNo, wireType] = reader.tag();
210
+ switch (fieldNo) {
211
+ default:
212
+ let u = options.readUnknownField;
213
+ if (u === "throw")
214
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
215
+ let d = reader.skip(wireType);
216
+ if (u !== false)
217
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
218
+ }
219
+ }
220
+ return message;
221
+ }
222
+ internalBinaryWrite(message: ActionLogoffResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
223
+ let u = options.writeUnknownFields;
224
+ if (u !== false)
225
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
226
+ return writer;
227
+ }
228
+ }
229
+ /**
230
+ * @generated MessageType for protobuf message sagittarius.ActionLogoffResponse
231
+ */
232
+ export const ActionLogoffResponse = new ActionLogoffResponse$Type();
233
+ /**
234
+ * @generated ServiceType for protobuf service sagittarius.ActionService
235
+ */
236
+ export const ActionService = new ServiceType("sagittarius.ActionService", [
237
+ { name: "Logon", options: {}, I: ActionLogonRequest, O: ActionLogonResponse },
238
+ { name: "Logoff", options: {}, I: ActionLogoffRequest, O: ActionLogoffResponse }
239
+ ]);
@@ -0,0 +1,37 @@
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 type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import { DataTypeService } from "./sagittarius.data_type_pb";
7
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
+ import type { DataTypeUpdateResponse } from "./sagittarius.data_type_pb";
9
+ import type { DataTypeUpdateRequest } from "./sagittarius.data_type_pb";
10
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
11
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
12
+ /**
13
+ * @generated from protobuf service sagittarius.DataTypeService
14
+ */
15
+ export interface IDataTypeServiceClient {
16
+ /**
17
+ * @generated from protobuf rpc: Update
18
+ */
19
+ update(input: DataTypeUpdateRequest, options?: RpcOptions): UnaryCall<DataTypeUpdateRequest, DataTypeUpdateResponse>;
20
+ }
21
+ /**
22
+ * @generated from protobuf service sagittarius.DataTypeService
23
+ */
24
+ export class DataTypeServiceClient implements IDataTypeServiceClient, ServiceInfo {
25
+ typeName = DataTypeService.typeName;
26
+ methods = DataTypeService.methods;
27
+ options = DataTypeService.options;
28
+ constructor(private readonly _transport: RpcTransport) {
29
+ }
30
+ /**
31
+ * @generated from protobuf rpc: Update
32
+ */
33
+ update(input: DataTypeUpdateRequest, options?: RpcOptions): UnaryCall<DataTypeUpdateRequest, DataTypeUpdateResponse> {
34
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
35
+ return stackIntercept<DataTypeUpdateRequest, DataTypeUpdateResponse>("unary", this._transport, method, opt, input);
36
+ }
37
+ }