@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.
- package/index.js +0 -0
- package/package.json +1 -1
- package/pb/aquila.action_pb.client.ts +41 -0
- package/pb/aquila.action_pb.ts +615 -0
- package/pb/aquila.data_type_pb.client.ts +37 -0
- package/pb/aquila.data_type_pb.ts +140 -0
- package/pb/aquila.execution_pb.client.ts +74 -0
- package/pb/aquila.execution_pb.ts +334 -0
- package/pb/aquila.flow_type_pb.client.ts +41 -0
- package/pb/aquila.flow_type_pb.ts +140 -0
- package/pb/aquila.runtime_function_pb.client.ts +41 -0
- package/pb/aquila.runtime_function_pb.ts +140 -0
- package/pb/sagittarius.action_pb.client.ts +54 -0
- package/pb/sagittarius.action_pb.ts +239 -0
- package/pb/sagittarius.data_type_pb.client.ts +37 -0
- package/pb/sagittarius.data_type_pb.ts +140 -0
- package/pb/sagittarius.flow_pb.client.ts +37 -0
- package/pb/sagittarius.flow_pb.ts +173 -0
- package/pb/sagittarius.flow_type_pb.client.ts +41 -0
- package/pb/sagittarius.flow_type_pb.ts +140 -0
- package/pb/sagittarius.ping_pb.client.ts +36 -0
- package/pb/sagittarius.ping_pb.ts +75 -0
- package/pb/sagittarius.runtime_function_pb.client.ts +41 -0
- package/pb/sagittarius.runtime_function_pb.ts +140 -0
- package/pb/sagittarius.text_execution_pb.client.ts +37 -0
- package/pb/sagittarius.text_execution_pb.ts +456 -0
- package/pb/shared.data_type_pb.ts +1534 -0
- package/pb/shared.event_pb.ts +285 -0
- package/pb/shared.flow_definition_pb.ts +281 -0
- package/pb/shared.flow_pb.ts +845 -0
- package/pb/shared.runtime_function_pb.ts +298 -0
- package/pb/shared.struct_pb.ts +383 -0
- package/pb/shared.translation_pb.ts +86 -0
- package/pb/shared.version_pb.ts +92 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "sagittarius.runtime_function.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 { RuntimeFunctionDefinitionService } from "./sagittarius.runtime_function_pb";
|
|
7
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import type { RuntimeFunctionDefinitionUpdateResponse } from "./sagittarius.runtime_function_pb";
|
|
9
|
+
import type { RuntimeFunctionDefinitionUpdateRequest } from "./sagittarius.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 Sagittarius and as a client by Aquila.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf service sagittarius.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 Sagittarius and as a client by Aquila.
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf service sagittarius.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 "sagittarius.runtime_function.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 updating a list of runtime function definitions
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf message sagittarius.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 sagittarius.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("sagittarius.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 sagittarius.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("sagittarius.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 sagittarius.RuntimeFunctionDefinitionUpdateResponse
|
|
133
|
+
*/
|
|
134
|
+
export const RuntimeFunctionDefinitionUpdateResponse = new RuntimeFunctionDefinitionUpdateResponse$Type();
|
|
135
|
+
/**
|
|
136
|
+
* @generated ServiceType for protobuf service sagittarius.RuntimeFunctionDefinitionService
|
|
137
|
+
*/
|
|
138
|
+
export const RuntimeFunctionDefinitionService = new ServiceType("sagittarius.RuntimeFunctionDefinitionService", [
|
|
139
|
+
{ name: "Update", options: {}, I: RuntimeFunctionDefinitionUpdateRequest, O: RuntimeFunctionDefinitionUpdateResponse }
|
|
140
|
+
]);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "sagittarius.text_execution.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 { ExecutionService } from "./sagittarius.text_execution_pb";
|
|
7
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import type { ExecutionLogonResponse } from "./sagittarius.text_execution_pb";
|
|
9
|
+
import type { ExecutionLogonRequest } from "./sagittarius.text_execution_pb";
|
|
10
|
+
import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
11
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf service sagittarius.ExecutionService
|
|
14
|
+
*/
|
|
15
|
+
export interface IExecutionServiceClient {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf rpc: Test
|
|
18
|
+
*/
|
|
19
|
+
test(options?: RpcOptions): DuplexStreamingCall<ExecutionLogonRequest, ExecutionLogonResponse>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf service sagittarius.ExecutionService
|
|
23
|
+
*/
|
|
24
|
+
export class ExecutionServiceClient implements IExecutionServiceClient, ServiceInfo {
|
|
25
|
+
typeName = ExecutionService.typeName;
|
|
26
|
+
methods = ExecutionService.methods;
|
|
27
|
+
options = ExecutionService.options;
|
|
28
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf rpc: Test
|
|
32
|
+
*/
|
|
33
|
+
test(options?: RpcOptions): DuplexStreamingCall<ExecutionLogonRequest, ExecutionLogonResponse> {
|
|
34
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
35
|
+
return stackIntercept<ExecutionLogonRequest, ExecutionLogonResponse>("duplex", this._transport, method, opt);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "sagittarius.text_execution.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 { Value } from "./shared.struct_pb";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf message sagittarius.Logon
|
|
17
|
+
*/
|
|
18
|
+
export interface Logon {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf message sagittarius.TestExecutionRequest
|
|
22
|
+
*/
|
|
23
|
+
export interface TestExecutionRequest {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: int64 flow_id = 1
|
|
26
|
+
*/
|
|
27
|
+
flowId: bigint;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: string execution_uuid = 2
|
|
30
|
+
*/
|
|
31
|
+
executionUuid: string;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: shared.Value body = 3
|
|
34
|
+
*/
|
|
35
|
+
body?: Value;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf message sagittarius.TestExecutionResponse
|
|
39
|
+
*/
|
|
40
|
+
export interface TestExecutionResponse {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf field: int64 flow_id = 1
|
|
43
|
+
*/
|
|
44
|
+
flowId: bigint;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: string execution_uuid = 2
|
|
47
|
+
*/
|
|
48
|
+
executionUuid: string;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: shared.Value result = 3
|
|
51
|
+
*/
|
|
52
|
+
result?: Value;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: repeated sagittarius.Log logs = 4
|
|
55
|
+
*/
|
|
56
|
+
logs: Log[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf message sagittarius.Log
|
|
60
|
+
*/
|
|
61
|
+
export interface Log {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf field: string message = 1
|
|
64
|
+
*/
|
|
65
|
+
message: string;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf field: string level = 2
|
|
68
|
+
*/
|
|
69
|
+
level: string;
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf field: string timestamp = 3
|
|
72
|
+
*/
|
|
73
|
+
timestamp: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Aquila sends a logon request to Sagittarius that initiates a stream
|
|
77
|
+
* If the stream is initialized it will return the result after it received a request
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf message sagittarius.ExecutionLogonRequest
|
|
80
|
+
*/
|
|
81
|
+
export interface ExecutionLogonRequest {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf oneof: data
|
|
84
|
+
*/
|
|
85
|
+
data: {
|
|
86
|
+
oneofKind: "logon";
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: sagittarius.Logon logon = 1
|
|
89
|
+
*/
|
|
90
|
+
logon: Logon;
|
|
91
|
+
} | {
|
|
92
|
+
oneofKind: "response";
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: sagittarius.TestExecutionResponse response = 2
|
|
95
|
+
*/
|
|
96
|
+
response: TestExecutionResponse;
|
|
97
|
+
} | {
|
|
98
|
+
oneofKind: undefined;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Sagittarius sends execution requests
|
|
103
|
+
*
|
|
104
|
+
* @generated from protobuf message sagittarius.ExecutionLogonResponse
|
|
105
|
+
*/
|
|
106
|
+
export interface ExecutionLogonResponse {
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf field: sagittarius.TestExecutionRequest request = 1
|
|
109
|
+
*/
|
|
110
|
+
request?: TestExecutionRequest;
|
|
111
|
+
}
|
|
112
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
113
|
+
class Logon$Type extends MessageType<Logon> {
|
|
114
|
+
constructor() {
|
|
115
|
+
super("sagittarius.Logon", []);
|
|
116
|
+
}
|
|
117
|
+
create(value?: PartialMessage<Logon>): Logon {
|
|
118
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
119
|
+
if (value !== undefined)
|
|
120
|
+
reflectionMergePartial<Logon>(this, message, value);
|
|
121
|
+
return message;
|
|
122
|
+
}
|
|
123
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Logon): Logon {
|
|
124
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
125
|
+
while (reader.pos < end) {
|
|
126
|
+
let [fieldNo, wireType] = reader.tag();
|
|
127
|
+
switch (fieldNo) {
|
|
128
|
+
default:
|
|
129
|
+
let u = options.readUnknownField;
|
|
130
|
+
if (u === "throw")
|
|
131
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
132
|
+
let d = reader.skip(wireType);
|
|
133
|
+
if (u !== false)
|
|
134
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return message;
|
|
138
|
+
}
|
|
139
|
+
internalBinaryWrite(message: Logon, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
140
|
+
let u = options.writeUnknownFields;
|
|
141
|
+
if (u !== false)
|
|
142
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
143
|
+
return writer;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @generated MessageType for protobuf message sagittarius.Logon
|
|
148
|
+
*/
|
|
149
|
+
export const Logon = new Logon$Type();
|
|
150
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
151
|
+
class TestExecutionRequest$Type extends MessageType<TestExecutionRequest> {
|
|
152
|
+
constructor() {
|
|
153
|
+
super("sagittarius.TestExecutionRequest", [
|
|
154
|
+
{ no: 1, name: "flow_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
155
|
+
{ no: 2, name: "execution_uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
156
|
+
{ no: 3, name: "body", kind: "message", T: () => Value }
|
|
157
|
+
]);
|
|
158
|
+
}
|
|
159
|
+
create(value?: PartialMessage<TestExecutionRequest>): TestExecutionRequest {
|
|
160
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
161
|
+
message.flowId = 0n;
|
|
162
|
+
message.executionUuid = "";
|
|
163
|
+
if (value !== undefined)
|
|
164
|
+
reflectionMergePartial<TestExecutionRequest>(this, message, value);
|
|
165
|
+
return message;
|
|
166
|
+
}
|
|
167
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TestExecutionRequest): TestExecutionRequest {
|
|
168
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
169
|
+
while (reader.pos < end) {
|
|
170
|
+
let [fieldNo, wireType] = reader.tag();
|
|
171
|
+
switch (fieldNo) {
|
|
172
|
+
case /* int64 flow_id */ 1:
|
|
173
|
+
message.flowId = reader.int64().toBigInt();
|
|
174
|
+
break;
|
|
175
|
+
case /* string execution_uuid */ 2:
|
|
176
|
+
message.executionUuid = reader.string();
|
|
177
|
+
break;
|
|
178
|
+
case /* shared.Value body */ 3:
|
|
179
|
+
message.body = Value.internalBinaryRead(reader, reader.uint32(), options, message.body);
|
|
180
|
+
break;
|
|
181
|
+
default:
|
|
182
|
+
let u = options.readUnknownField;
|
|
183
|
+
if (u === "throw")
|
|
184
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
185
|
+
let d = reader.skip(wireType);
|
|
186
|
+
if (u !== false)
|
|
187
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return message;
|
|
191
|
+
}
|
|
192
|
+
internalBinaryWrite(message: TestExecutionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
193
|
+
/* int64 flow_id = 1; */
|
|
194
|
+
if (message.flowId !== 0n)
|
|
195
|
+
writer.tag(1, WireType.Varint).int64(message.flowId);
|
|
196
|
+
/* string execution_uuid = 2; */
|
|
197
|
+
if (message.executionUuid !== "")
|
|
198
|
+
writer.tag(2, WireType.LengthDelimited).string(message.executionUuid);
|
|
199
|
+
/* shared.Value body = 3; */
|
|
200
|
+
if (message.body)
|
|
201
|
+
Value.internalBinaryWrite(message.body, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
202
|
+
let u = options.writeUnknownFields;
|
|
203
|
+
if (u !== false)
|
|
204
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
205
|
+
return writer;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @generated MessageType for protobuf message sagittarius.TestExecutionRequest
|
|
210
|
+
*/
|
|
211
|
+
export const TestExecutionRequest = new TestExecutionRequest$Type();
|
|
212
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
213
|
+
class TestExecutionResponse$Type extends MessageType<TestExecutionResponse> {
|
|
214
|
+
constructor() {
|
|
215
|
+
super("sagittarius.TestExecutionResponse", [
|
|
216
|
+
{ no: 1, name: "flow_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
217
|
+
{ no: 2, name: "execution_uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
218
|
+
{ no: 3, name: "result", kind: "message", T: () => Value },
|
|
219
|
+
{ no: 4, name: "logs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Log }
|
|
220
|
+
]);
|
|
221
|
+
}
|
|
222
|
+
create(value?: PartialMessage<TestExecutionResponse>): TestExecutionResponse {
|
|
223
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
224
|
+
message.flowId = 0n;
|
|
225
|
+
message.executionUuid = "";
|
|
226
|
+
message.logs = [];
|
|
227
|
+
if (value !== undefined)
|
|
228
|
+
reflectionMergePartial<TestExecutionResponse>(this, message, value);
|
|
229
|
+
return message;
|
|
230
|
+
}
|
|
231
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TestExecutionResponse): TestExecutionResponse {
|
|
232
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
233
|
+
while (reader.pos < end) {
|
|
234
|
+
let [fieldNo, wireType] = reader.tag();
|
|
235
|
+
switch (fieldNo) {
|
|
236
|
+
case /* int64 flow_id */ 1:
|
|
237
|
+
message.flowId = reader.int64().toBigInt();
|
|
238
|
+
break;
|
|
239
|
+
case /* string execution_uuid */ 2:
|
|
240
|
+
message.executionUuid = reader.string();
|
|
241
|
+
break;
|
|
242
|
+
case /* shared.Value result */ 3:
|
|
243
|
+
message.result = Value.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
|
244
|
+
break;
|
|
245
|
+
case /* repeated sagittarius.Log logs */ 4:
|
|
246
|
+
message.logs.push(Log.internalBinaryRead(reader, reader.uint32(), options));
|
|
247
|
+
break;
|
|
248
|
+
default:
|
|
249
|
+
let u = options.readUnknownField;
|
|
250
|
+
if (u === "throw")
|
|
251
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
252
|
+
let d = reader.skip(wireType);
|
|
253
|
+
if (u !== false)
|
|
254
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return message;
|
|
258
|
+
}
|
|
259
|
+
internalBinaryWrite(message: TestExecutionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
260
|
+
/* int64 flow_id = 1; */
|
|
261
|
+
if (message.flowId !== 0n)
|
|
262
|
+
writer.tag(1, WireType.Varint).int64(message.flowId);
|
|
263
|
+
/* string execution_uuid = 2; */
|
|
264
|
+
if (message.executionUuid !== "")
|
|
265
|
+
writer.tag(2, WireType.LengthDelimited).string(message.executionUuid);
|
|
266
|
+
/* shared.Value result = 3; */
|
|
267
|
+
if (message.result)
|
|
268
|
+
Value.internalBinaryWrite(message.result, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
269
|
+
/* repeated sagittarius.Log logs = 4; */
|
|
270
|
+
for (let i = 0; i < message.logs.length; i++)
|
|
271
|
+
Log.internalBinaryWrite(message.logs[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
272
|
+
let u = options.writeUnknownFields;
|
|
273
|
+
if (u !== false)
|
|
274
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
275
|
+
return writer;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* @generated MessageType for protobuf message sagittarius.TestExecutionResponse
|
|
280
|
+
*/
|
|
281
|
+
export const TestExecutionResponse = new TestExecutionResponse$Type();
|
|
282
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
283
|
+
class Log$Type extends MessageType<Log> {
|
|
284
|
+
constructor() {
|
|
285
|
+
super("sagittarius.Log", [
|
|
286
|
+
{ no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
287
|
+
{ no: 2, name: "level", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
288
|
+
{ no: 3, name: "timestamp", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
289
|
+
]);
|
|
290
|
+
}
|
|
291
|
+
create(value?: PartialMessage<Log>): Log {
|
|
292
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
293
|
+
message.message = "";
|
|
294
|
+
message.level = "";
|
|
295
|
+
message.timestamp = "";
|
|
296
|
+
if (value !== undefined)
|
|
297
|
+
reflectionMergePartial<Log>(this, message, value);
|
|
298
|
+
return message;
|
|
299
|
+
}
|
|
300
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Log): Log {
|
|
301
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
302
|
+
while (reader.pos < end) {
|
|
303
|
+
let [fieldNo, wireType] = reader.tag();
|
|
304
|
+
switch (fieldNo) {
|
|
305
|
+
case /* string message */ 1:
|
|
306
|
+
message.message = reader.string();
|
|
307
|
+
break;
|
|
308
|
+
case /* string level */ 2:
|
|
309
|
+
message.level = reader.string();
|
|
310
|
+
break;
|
|
311
|
+
case /* string timestamp */ 3:
|
|
312
|
+
message.timestamp = reader.string();
|
|
313
|
+
break;
|
|
314
|
+
default:
|
|
315
|
+
let u = options.readUnknownField;
|
|
316
|
+
if (u === "throw")
|
|
317
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
318
|
+
let d = reader.skip(wireType);
|
|
319
|
+
if (u !== false)
|
|
320
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return message;
|
|
324
|
+
}
|
|
325
|
+
internalBinaryWrite(message: Log, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
326
|
+
/* string message = 1; */
|
|
327
|
+
if (message.message !== "")
|
|
328
|
+
writer.tag(1, WireType.LengthDelimited).string(message.message);
|
|
329
|
+
/* string level = 2; */
|
|
330
|
+
if (message.level !== "")
|
|
331
|
+
writer.tag(2, WireType.LengthDelimited).string(message.level);
|
|
332
|
+
/* string timestamp = 3; */
|
|
333
|
+
if (message.timestamp !== "")
|
|
334
|
+
writer.tag(3, WireType.LengthDelimited).string(message.timestamp);
|
|
335
|
+
let u = options.writeUnknownFields;
|
|
336
|
+
if (u !== false)
|
|
337
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
338
|
+
return writer;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* @generated MessageType for protobuf message sagittarius.Log
|
|
343
|
+
*/
|
|
344
|
+
export const Log = new Log$Type();
|
|
345
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
346
|
+
class ExecutionLogonRequest$Type extends MessageType<ExecutionLogonRequest> {
|
|
347
|
+
constructor() {
|
|
348
|
+
super("sagittarius.ExecutionLogonRequest", [
|
|
349
|
+
{ no: 1, name: "logon", kind: "message", oneof: "data", T: () => Logon },
|
|
350
|
+
{ no: 2, name: "response", kind: "message", oneof: "data", T: () => TestExecutionResponse }
|
|
351
|
+
]);
|
|
352
|
+
}
|
|
353
|
+
create(value?: PartialMessage<ExecutionLogonRequest>): ExecutionLogonRequest {
|
|
354
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
355
|
+
message.data = { oneofKind: undefined };
|
|
356
|
+
if (value !== undefined)
|
|
357
|
+
reflectionMergePartial<ExecutionLogonRequest>(this, message, value);
|
|
358
|
+
return message;
|
|
359
|
+
}
|
|
360
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionLogonRequest): ExecutionLogonRequest {
|
|
361
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
362
|
+
while (reader.pos < end) {
|
|
363
|
+
let [fieldNo, wireType] = reader.tag();
|
|
364
|
+
switch (fieldNo) {
|
|
365
|
+
case /* sagittarius.Logon logon */ 1:
|
|
366
|
+
message.data = {
|
|
367
|
+
oneofKind: "logon",
|
|
368
|
+
logon: Logon.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).logon)
|
|
369
|
+
};
|
|
370
|
+
break;
|
|
371
|
+
case /* sagittarius.TestExecutionResponse response */ 2:
|
|
372
|
+
message.data = {
|
|
373
|
+
oneofKind: "response",
|
|
374
|
+
response: TestExecutionResponse.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).response)
|
|
375
|
+
};
|
|
376
|
+
break;
|
|
377
|
+
default:
|
|
378
|
+
let u = options.readUnknownField;
|
|
379
|
+
if (u === "throw")
|
|
380
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
381
|
+
let d = reader.skip(wireType);
|
|
382
|
+
if (u !== false)
|
|
383
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
}
|
|
388
|
+
internalBinaryWrite(message: ExecutionLogonRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
389
|
+
/* sagittarius.Logon logon = 1; */
|
|
390
|
+
if (message.data.oneofKind === "logon")
|
|
391
|
+
Logon.internalBinaryWrite(message.data.logon, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
392
|
+
/* sagittarius.TestExecutionResponse response = 2; */
|
|
393
|
+
if (message.data.oneofKind === "response")
|
|
394
|
+
TestExecutionResponse.internalBinaryWrite(message.data.response, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
395
|
+
let u = options.writeUnknownFields;
|
|
396
|
+
if (u !== false)
|
|
397
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
398
|
+
return writer;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @generated MessageType for protobuf message sagittarius.ExecutionLogonRequest
|
|
403
|
+
*/
|
|
404
|
+
export const ExecutionLogonRequest = new ExecutionLogonRequest$Type();
|
|
405
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
406
|
+
class ExecutionLogonResponse$Type extends MessageType<ExecutionLogonResponse> {
|
|
407
|
+
constructor() {
|
|
408
|
+
super("sagittarius.ExecutionLogonResponse", [
|
|
409
|
+
{ no: 1, name: "request", kind: "message", T: () => TestExecutionRequest }
|
|
410
|
+
]);
|
|
411
|
+
}
|
|
412
|
+
create(value?: PartialMessage<ExecutionLogonResponse>): ExecutionLogonResponse {
|
|
413
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
414
|
+
if (value !== undefined)
|
|
415
|
+
reflectionMergePartial<ExecutionLogonResponse>(this, message, value);
|
|
416
|
+
return message;
|
|
417
|
+
}
|
|
418
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionLogonResponse): ExecutionLogonResponse {
|
|
419
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
420
|
+
while (reader.pos < end) {
|
|
421
|
+
let [fieldNo, wireType] = reader.tag();
|
|
422
|
+
switch (fieldNo) {
|
|
423
|
+
case /* sagittarius.TestExecutionRequest request */ 1:
|
|
424
|
+
message.request = TestExecutionRequest.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
425
|
+
break;
|
|
426
|
+
default:
|
|
427
|
+
let u = options.readUnknownField;
|
|
428
|
+
if (u === "throw")
|
|
429
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
430
|
+
let d = reader.skip(wireType);
|
|
431
|
+
if (u !== false)
|
|
432
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return message;
|
|
436
|
+
}
|
|
437
|
+
internalBinaryWrite(message: ExecutionLogonResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
438
|
+
/* sagittarius.TestExecutionRequest request = 1; */
|
|
439
|
+
if (message.request)
|
|
440
|
+
TestExecutionRequest.internalBinaryWrite(message.request, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
441
|
+
let u = options.writeUnknownFields;
|
|
442
|
+
if (u !== false)
|
|
443
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
444
|
+
return writer;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* @generated MessageType for protobuf message sagittarius.ExecutionLogonResponse
|
|
449
|
+
*/
|
|
450
|
+
export const ExecutionLogonResponse = new ExecutionLogonResponse$Type();
|
|
451
|
+
/**
|
|
452
|
+
* @generated ServiceType for protobuf service sagittarius.ExecutionService
|
|
453
|
+
*/
|
|
454
|
+
export const ExecutionService = new ServiceType("sagittarius.ExecutionService", [
|
|
455
|
+
{ name: "Test", serverStreaming: true, clientStreaming: true, options: {}, I: ExecutionLogonRequest, O: ExecutionLogonResponse }
|
|
456
|
+
]);
|