@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,37 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "aquila.data_type.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 { DataTypeService } from "./aquila.data_type_pb";
|
|
7
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import type { DataTypeUpdateResponse } from "./aquila.data_type_pb";
|
|
9
|
+
import type { DataTypeUpdateRequest } from "./aquila.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 aquila.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 aquila.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
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "aquila.data_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 { DefinitionDataType } from "./shared.data_type_pb";
|
|
15
|
+
/**
|
|
16
|
+
* Request for updating a data type
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf message aquila.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 aquila.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("aquila.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 aquila.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("aquila.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 aquila.DataTypeUpdateResponse
|
|
133
|
+
*/
|
|
134
|
+
export const DataTypeUpdateResponse = new DataTypeUpdateResponse$Type();
|
|
135
|
+
/**
|
|
136
|
+
* @generated ServiceType for protobuf service aquila.DataTypeService
|
|
137
|
+
*/
|
|
138
|
+
export const DataTypeService = new ServiceType("aquila.DataTypeService", [
|
|
139
|
+
{ name: "Update", options: {}, I: DataTypeUpdateRequest, O: DataTypeUpdateResponse }
|
|
140
|
+
]);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "aquila.execution.proto" (package "aquila", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { ActionResultService } from "./aquila.execution_pb";
|
|
5
|
+
import type { ActionResultResponse } from "./aquila.execution_pb";
|
|
6
|
+
import type { ActionResultRequest } from "./aquila.execution_pb";
|
|
7
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
9
|
+
import { ActionCallService } from "./aquila.execution_pb";
|
|
10
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
11
|
+
import type { ActionCallResponse } from "./aquila.execution_pb";
|
|
12
|
+
import type { ActionCallRequest } from "./aquila.execution_pb";
|
|
13
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
14
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
15
|
+
/**
|
|
16
|
+
* Service for calling an execution with the given parameter
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf service aquila.ActionCallService
|
|
19
|
+
*/
|
|
20
|
+
export interface IActionCallServiceClient {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf rpc: Call
|
|
23
|
+
*/
|
|
24
|
+
call(input: ActionCallRequest, options?: RpcOptions): UnaryCall<ActionCallRequest, ActionCallResponse>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Service for calling an execution with the given parameter
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf service aquila.ActionCallService
|
|
30
|
+
*/
|
|
31
|
+
export class ActionCallServiceClient implements IActionCallServiceClient, ServiceInfo {
|
|
32
|
+
typeName = ActionCallService.typeName;
|
|
33
|
+
methods = ActionCallService.methods;
|
|
34
|
+
options = ActionCallService.options;
|
|
35
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf rpc: Call
|
|
39
|
+
*/
|
|
40
|
+
call(input: ActionCallRequest, options?: RpcOptions): UnaryCall<ActionCallRequest, ActionCallResponse> {
|
|
41
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
42
|
+
return stackIntercept<ActionCallRequest, ActionCallResponse>("unary", this._transport, method, opt, input);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Service for getting a result of an execution
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf service aquila.ActionResultService
|
|
49
|
+
*/
|
|
50
|
+
export interface IActionResultServiceClient {
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf rpc: GetResult
|
|
53
|
+
*/
|
|
54
|
+
getResult(input: ActionResultRequest, options?: RpcOptions): UnaryCall<ActionResultRequest, ActionResultResponse>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Service for getting a result of an execution
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf service aquila.ActionResultService
|
|
60
|
+
*/
|
|
61
|
+
export class ActionResultServiceClient implements IActionResultServiceClient, ServiceInfo {
|
|
62
|
+
typeName = ActionResultService.typeName;
|
|
63
|
+
methods = ActionResultService.methods;
|
|
64
|
+
options = ActionResultService.options;
|
|
65
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf rpc: GetResult
|
|
69
|
+
*/
|
|
70
|
+
getResult(input: ActionResultRequest, options?: RpcOptions): UnaryCall<ActionResultRequest, ActionResultResponse> {
|
|
71
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
72
|
+
return stackIntercept<ActionResultRequest, ActionResultResponse>("unary", this._transport, method, opt, input);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "aquila.execution.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
|
+
/**
|
|
15
|
+
* Request to call an action with param. Request will be routed over Aquila
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf message aquila.ActionCallRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface ActionCallRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Function identifier
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf field: string identifier = 1
|
|
24
|
+
*/
|
|
25
|
+
identifier: string;
|
|
26
|
+
/**
|
|
27
|
+
* List of parameters (json format --> also can just be a primitive)
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf field: repeated string parameters = 2
|
|
30
|
+
*/
|
|
31
|
+
parameters: string[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Response of execution call
|
|
35
|
+
*
|
|
36
|
+
* @generated from protobuf message aquila.ActionCallResponse
|
|
37
|
+
*/
|
|
38
|
+
export interface ActionCallResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Identifier of the execution id given by Aquila for the parameter
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf field: string execution_identifier = 1
|
|
43
|
+
*/
|
|
44
|
+
executionIdentifier: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* List of results
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf message aquila.ActionResult
|
|
50
|
+
*/
|
|
51
|
+
export interface ActionResult {
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: repeated string result = 1
|
|
54
|
+
*/
|
|
55
|
+
result: string[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Request to check if there are results for the given identifier
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf message aquila.ActionResultRequest
|
|
61
|
+
*/
|
|
62
|
+
export interface ActionResultRequest {
|
|
63
|
+
/**
|
|
64
|
+
* Identifier that is connected to the parameter
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf field: string execution_identifier = 1
|
|
67
|
+
*/
|
|
68
|
+
executionIdentifier: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf message aquila.ActionResultResponse
|
|
72
|
+
*/
|
|
73
|
+
export interface ActionResultResponse {
|
|
74
|
+
/**
|
|
75
|
+
* Result of the given parameter!
|
|
76
|
+
*
|
|
77
|
+
* @generated from protobuf field: optional aquila.ActionResult action_result = 1
|
|
78
|
+
*/
|
|
79
|
+
actionResult?: ActionResult;
|
|
80
|
+
}
|
|
81
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
82
|
+
class ActionCallRequest$Type extends MessageType<ActionCallRequest> {
|
|
83
|
+
constructor() {
|
|
84
|
+
super("aquila.ActionCallRequest", [
|
|
85
|
+
{ no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
86
|
+
{ no: 2, name: "parameters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
87
|
+
]);
|
|
88
|
+
}
|
|
89
|
+
create(value?: PartialMessage<ActionCallRequest>): ActionCallRequest {
|
|
90
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
91
|
+
message.identifier = "";
|
|
92
|
+
message.parameters = [];
|
|
93
|
+
if (value !== undefined)
|
|
94
|
+
reflectionMergePartial<ActionCallRequest>(this, message, value);
|
|
95
|
+
return message;
|
|
96
|
+
}
|
|
97
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionCallRequest): ActionCallRequest {
|
|
98
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
99
|
+
while (reader.pos < end) {
|
|
100
|
+
let [fieldNo, wireType] = reader.tag();
|
|
101
|
+
switch (fieldNo) {
|
|
102
|
+
case /* string identifier */ 1:
|
|
103
|
+
message.identifier = reader.string();
|
|
104
|
+
break;
|
|
105
|
+
case /* repeated string parameters */ 2:
|
|
106
|
+
message.parameters.push(reader.string());
|
|
107
|
+
break;
|
|
108
|
+
default:
|
|
109
|
+
let u = options.readUnknownField;
|
|
110
|
+
if (u === "throw")
|
|
111
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
112
|
+
let d = reader.skip(wireType);
|
|
113
|
+
if (u !== false)
|
|
114
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return message;
|
|
118
|
+
}
|
|
119
|
+
internalBinaryWrite(message: ActionCallRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
120
|
+
/* string identifier = 1; */
|
|
121
|
+
if (message.identifier !== "")
|
|
122
|
+
writer.tag(1, WireType.LengthDelimited).string(message.identifier);
|
|
123
|
+
/* repeated string parameters = 2; */
|
|
124
|
+
for (let i = 0; i < message.parameters.length; i++)
|
|
125
|
+
writer.tag(2, WireType.LengthDelimited).string(message.parameters[i]);
|
|
126
|
+
let u = options.writeUnknownFields;
|
|
127
|
+
if (u !== false)
|
|
128
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
129
|
+
return writer;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @generated MessageType for protobuf message aquila.ActionCallRequest
|
|
134
|
+
*/
|
|
135
|
+
export const ActionCallRequest = new ActionCallRequest$Type();
|
|
136
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
137
|
+
class ActionCallResponse$Type extends MessageType<ActionCallResponse> {
|
|
138
|
+
constructor() {
|
|
139
|
+
super("aquila.ActionCallResponse", [
|
|
140
|
+
{ no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
141
|
+
]);
|
|
142
|
+
}
|
|
143
|
+
create(value?: PartialMessage<ActionCallResponse>): ActionCallResponse {
|
|
144
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
145
|
+
message.executionIdentifier = "";
|
|
146
|
+
if (value !== undefined)
|
|
147
|
+
reflectionMergePartial<ActionCallResponse>(this, message, value);
|
|
148
|
+
return message;
|
|
149
|
+
}
|
|
150
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionCallResponse): ActionCallResponse {
|
|
151
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
152
|
+
while (reader.pos < end) {
|
|
153
|
+
let [fieldNo, wireType] = reader.tag();
|
|
154
|
+
switch (fieldNo) {
|
|
155
|
+
case /* string execution_identifier */ 1:
|
|
156
|
+
message.executionIdentifier = reader.string();
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
let u = options.readUnknownField;
|
|
160
|
+
if (u === "throw")
|
|
161
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
162
|
+
let d = reader.skip(wireType);
|
|
163
|
+
if (u !== false)
|
|
164
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
}
|
|
169
|
+
internalBinaryWrite(message: ActionCallResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
170
|
+
/* string execution_identifier = 1; */
|
|
171
|
+
if (message.executionIdentifier !== "")
|
|
172
|
+
writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
|
|
173
|
+
let u = options.writeUnknownFields;
|
|
174
|
+
if (u !== false)
|
|
175
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
176
|
+
return writer;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @generated MessageType for protobuf message aquila.ActionCallResponse
|
|
181
|
+
*/
|
|
182
|
+
export const ActionCallResponse = new ActionCallResponse$Type();
|
|
183
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
184
|
+
class ActionResult$Type extends MessageType<ActionResult> {
|
|
185
|
+
constructor() {
|
|
186
|
+
super("aquila.ActionResult", [
|
|
187
|
+
{ no: 1, name: "result", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
188
|
+
]);
|
|
189
|
+
}
|
|
190
|
+
create(value?: PartialMessage<ActionResult>): ActionResult {
|
|
191
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
192
|
+
message.result = [];
|
|
193
|
+
if (value !== undefined)
|
|
194
|
+
reflectionMergePartial<ActionResult>(this, message, value);
|
|
195
|
+
return message;
|
|
196
|
+
}
|
|
197
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionResult): ActionResult {
|
|
198
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
199
|
+
while (reader.pos < end) {
|
|
200
|
+
let [fieldNo, wireType] = reader.tag();
|
|
201
|
+
switch (fieldNo) {
|
|
202
|
+
case /* repeated string result */ 1:
|
|
203
|
+
message.result.push(reader.string());
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
let u = options.readUnknownField;
|
|
207
|
+
if (u === "throw")
|
|
208
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
209
|
+
let d = reader.skip(wireType);
|
|
210
|
+
if (u !== false)
|
|
211
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return message;
|
|
215
|
+
}
|
|
216
|
+
internalBinaryWrite(message: ActionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
217
|
+
/* repeated string result = 1; */
|
|
218
|
+
for (let i = 0; i < message.result.length; i++)
|
|
219
|
+
writer.tag(1, WireType.LengthDelimited).string(message.result[i]);
|
|
220
|
+
let u = options.writeUnknownFields;
|
|
221
|
+
if (u !== false)
|
|
222
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
223
|
+
return writer;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* @generated MessageType for protobuf message aquila.ActionResult
|
|
228
|
+
*/
|
|
229
|
+
export const ActionResult = new ActionResult$Type();
|
|
230
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
231
|
+
class ActionResultRequest$Type extends MessageType<ActionResultRequest> {
|
|
232
|
+
constructor() {
|
|
233
|
+
super("aquila.ActionResultRequest", [
|
|
234
|
+
{ no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
235
|
+
]);
|
|
236
|
+
}
|
|
237
|
+
create(value?: PartialMessage<ActionResultRequest>): ActionResultRequest {
|
|
238
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
239
|
+
message.executionIdentifier = "";
|
|
240
|
+
if (value !== undefined)
|
|
241
|
+
reflectionMergePartial<ActionResultRequest>(this, message, value);
|
|
242
|
+
return message;
|
|
243
|
+
}
|
|
244
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionResultRequest): ActionResultRequest {
|
|
245
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
246
|
+
while (reader.pos < end) {
|
|
247
|
+
let [fieldNo, wireType] = reader.tag();
|
|
248
|
+
switch (fieldNo) {
|
|
249
|
+
case /* string execution_identifier */ 1:
|
|
250
|
+
message.executionIdentifier = reader.string();
|
|
251
|
+
break;
|
|
252
|
+
default:
|
|
253
|
+
let u = options.readUnknownField;
|
|
254
|
+
if (u === "throw")
|
|
255
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
256
|
+
let d = reader.skip(wireType);
|
|
257
|
+
if (u !== false)
|
|
258
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return message;
|
|
262
|
+
}
|
|
263
|
+
internalBinaryWrite(message: ActionResultRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
264
|
+
/* string execution_identifier = 1; */
|
|
265
|
+
if (message.executionIdentifier !== "")
|
|
266
|
+
writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
|
|
267
|
+
let u = options.writeUnknownFields;
|
|
268
|
+
if (u !== false)
|
|
269
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
270
|
+
return writer;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* @generated MessageType for protobuf message aquila.ActionResultRequest
|
|
275
|
+
*/
|
|
276
|
+
export const ActionResultRequest = new ActionResultRequest$Type();
|
|
277
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
278
|
+
class ActionResultResponse$Type extends MessageType<ActionResultResponse> {
|
|
279
|
+
constructor() {
|
|
280
|
+
super("aquila.ActionResultResponse", [
|
|
281
|
+
{ no: 1, name: "action_result", kind: "message", T: () => ActionResult }
|
|
282
|
+
]);
|
|
283
|
+
}
|
|
284
|
+
create(value?: PartialMessage<ActionResultResponse>): ActionResultResponse {
|
|
285
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
286
|
+
if (value !== undefined)
|
|
287
|
+
reflectionMergePartial<ActionResultResponse>(this, message, value);
|
|
288
|
+
return message;
|
|
289
|
+
}
|
|
290
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionResultResponse): ActionResultResponse {
|
|
291
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
292
|
+
while (reader.pos < end) {
|
|
293
|
+
let [fieldNo, wireType] = reader.tag();
|
|
294
|
+
switch (fieldNo) {
|
|
295
|
+
case /* optional aquila.ActionResult action_result */ 1:
|
|
296
|
+
message.actionResult = ActionResult.internalBinaryRead(reader, reader.uint32(), options, message.actionResult);
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
let u = options.readUnknownField;
|
|
300
|
+
if (u === "throw")
|
|
301
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
302
|
+
let d = reader.skip(wireType);
|
|
303
|
+
if (u !== false)
|
|
304
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return message;
|
|
308
|
+
}
|
|
309
|
+
internalBinaryWrite(message: ActionResultResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
310
|
+
/* optional aquila.ActionResult action_result = 1; */
|
|
311
|
+
if (message.actionResult)
|
|
312
|
+
ActionResult.internalBinaryWrite(message.actionResult, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
313
|
+
let u = options.writeUnknownFields;
|
|
314
|
+
if (u !== false)
|
|
315
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
316
|
+
return writer;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @generated MessageType for protobuf message aquila.ActionResultResponse
|
|
321
|
+
*/
|
|
322
|
+
export const ActionResultResponse = new ActionResultResponse$Type();
|
|
323
|
+
/**
|
|
324
|
+
* @generated ServiceType for protobuf service aquila.ActionCallService
|
|
325
|
+
*/
|
|
326
|
+
export const ActionCallService = new ServiceType("aquila.ActionCallService", [
|
|
327
|
+
{ name: "Call", options: {}, I: ActionCallRequest, O: ActionCallResponse }
|
|
328
|
+
]);
|
|
329
|
+
/**
|
|
330
|
+
* @generated ServiceType for protobuf service aquila.ActionResultService
|
|
331
|
+
*/
|
|
332
|
+
export const ActionResultService = new ServiceType("aquila.ActionResultService", [
|
|
333
|
+
{ name: "GetResult", options: {}, I: ActionResultRequest, O: ActionResultResponse }
|
|
334
|
+
]);
|
|
@@ -0,0 +1,41 @@
|
|
|
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 type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import { FlowTypeService } from "./aquila.flow_type_pb";
|
|
7
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import type { FlowTypeUpdateResponse } from "./aquila.flow_type_pb";
|
|
9
|
+
import type { FlowTypeUpdateRequest } from "./aquila.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 Aquila and as a client by Draco.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf service aquila.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 Aquila and as a client by Draco.
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf service aquila.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
|
+
}
|