@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
package/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "aquila.action.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 { ActionTransferService } from "./aquila.action_pb";
|
|
7
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import type { TransferResponse } from "./aquila.action_pb";
|
|
9
|
+
import type { TransferRequest } from "./aquila.action_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 aquila.ActionTransferService
|
|
14
|
+
*/
|
|
15
|
+
export interface IActionTransferServiceClient {
|
|
16
|
+
/**
|
|
17
|
+
* This behavior achieves a bi-directional stream so that both services aren't required to be a server & client on their own
|
|
18
|
+
*
|
|
19
|
+
* @generated from protobuf rpc: Transfer
|
|
20
|
+
*/
|
|
21
|
+
transfer(options?: RpcOptions): DuplexStreamingCall<TransferRequest, TransferResponse>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf service aquila.ActionTransferService
|
|
25
|
+
*/
|
|
26
|
+
export class ActionTransferServiceClient implements IActionTransferServiceClient, ServiceInfo {
|
|
27
|
+
typeName = ActionTransferService.typeName;
|
|
28
|
+
methods = ActionTransferService.methods;
|
|
29
|
+
options = ActionTransferService.options;
|
|
30
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* This behavior achieves a bi-directional stream so that both services aren't required to be a server & client on their own
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf rpc: Transfer
|
|
36
|
+
*/
|
|
37
|
+
transfer(options?: RpcOptions): DuplexStreamingCall<TransferRequest, TransferResponse> {
|
|
38
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
39
|
+
return stackIntercept<TransferRequest, TransferResponse>("duplex", this._transport, method, opt);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "aquila.action.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 { Struct } from "./shared.struct_pb";
|
|
15
|
+
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
16
|
+
import { Translation } from "./shared.translation_pb";
|
|
17
|
+
import { EventType } from "./shared.event_pb";
|
|
18
|
+
import { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
|
|
19
|
+
import { Value } from "./shared.struct_pb";
|
|
20
|
+
/**
|
|
21
|
+
* Event that gets admitted by an action
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf message aquila.Event
|
|
24
|
+
*/
|
|
25
|
+
export interface Event {
|
|
26
|
+
/**
|
|
27
|
+
* Id of Event type
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf field: string event_type = 1
|
|
30
|
+
*/
|
|
31
|
+
eventType: string;
|
|
32
|
+
/**
|
|
33
|
+
* Payload (JSON) of event params
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf field: shared.Value payload = 2
|
|
36
|
+
*/
|
|
37
|
+
payload?: Value;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Action flow/event configuration
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf message aquila.Configuration
|
|
43
|
+
*/
|
|
44
|
+
export interface Configuration {
|
|
45
|
+
/**
|
|
46
|
+
* Action identifier
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf field: string identifier = 1
|
|
49
|
+
*/
|
|
50
|
+
identifier: string;
|
|
51
|
+
/**
|
|
52
|
+
* Flow Configuration
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definitions = 2
|
|
55
|
+
*/
|
|
56
|
+
functionDefinitions: RuntimeFunctionDefinition[];
|
|
57
|
+
/**
|
|
58
|
+
* Event Configuration
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf field: repeated shared.EventType event_types = 3
|
|
61
|
+
*/
|
|
62
|
+
eventTypes: EventType[];
|
|
63
|
+
/**
|
|
64
|
+
* Application Configuration
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf field: repeated aquila.ActionConfiguration action_configurations = 4
|
|
67
|
+
*/
|
|
68
|
+
actionConfigurations: ActionConfiguration[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf message aquila.ActionConfiguration
|
|
72
|
+
*/
|
|
73
|
+
export interface ActionConfiguration {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf field: repeated shared.Translation name = 1
|
|
76
|
+
*/
|
|
77
|
+
name: Translation[];
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf field: repeated shared.Translation description = 2
|
|
80
|
+
*/
|
|
81
|
+
description: Translation[];
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: shared.DefinitionDataType type = 3
|
|
84
|
+
*/
|
|
85
|
+
type?: DefinitionDataType;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: optional shared.Value default_value = 4
|
|
88
|
+
*/
|
|
89
|
+
defaultValue?: Value;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Request to execute a request a flow
|
|
93
|
+
*
|
|
94
|
+
* @generated from protobuf message aquila.ExecutionRequest
|
|
95
|
+
*/
|
|
96
|
+
export interface ExecutionRequest {
|
|
97
|
+
/**
|
|
98
|
+
* Execution identifier of execution
|
|
99
|
+
*
|
|
100
|
+
* @generated from protobuf field: string execution_identifier = 1
|
|
101
|
+
*/
|
|
102
|
+
executionIdentifier: string;
|
|
103
|
+
/**
|
|
104
|
+
* Function identifier of flow to execute
|
|
105
|
+
*
|
|
106
|
+
* @generated from protobuf field: string function_identifier = 2
|
|
107
|
+
*/
|
|
108
|
+
functionIdentifier: string;
|
|
109
|
+
/**
|
|
110
|
+
* Parameters (JSON) of flow required to execute
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf field: shared.Struct parameters = 3
|
|
113
|
+
*/
|
|
114
|
+
parameters?: Struct;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Result from executed flows by an action
|
|
118
|
+
*
|
|
119
|
+
* @generated from protobuf message aquila.ExecutionResult
|
|
120
|
+
*/
|
|
121
|
+
export interface ExecutionResult {
|
|
122
|
+
/**
|
|
123
|
+
* Identifier of flow to execute
|
|
124
|
+
*
|
|
125
|
+
* @generated from protobuf field: string execution_identifier = 1
|
|
126
|
+
*/
|
|
127
|
+
executionIdentifier: string;
|
|
128
|
+
/**
|
|
129
|
+
* Result of executed flow
|
|
130
|
+
*
|
|
131
|
+
* @generated from protobuf field: shared.Value result = 2
|
|
132
|
+
*/
|
|
133
|
+
result?: Value;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @generated from protobuf message aquila.TransferRequest
|
|
137
|
+
*/
|
|
138
|
+
export interface TransferRequest {
|
|
139
|
+
/**
|
|
140
|
+
* @generated from protobuf oneof: data
|
|
141
|
+
*/
|
|
142
|
+
data: {
|
|
143
|
+
oneofKind: "configuration";
|
|
144
|
+
/**
|
|
145
|
+
* Configuration of action that will be send to sagittarius
|
|
146
|
+
*
|
|
147
|
+
* Expected behavior:
|
|
148
|
+
* Aquila will abort if the first request is not a configuration
|
|
149
|
+
*
|
|
150
|
+
* @generated from protobuf field: aquila.Configuration configuration = 1
|
|
151
|
+
*/
|
|
152
|
+
configuration: Configuration;
|
|
153
|
+
} | {
|
|
154
|
+
oneofKind: "event";
|
|
155
|
+
/**
|
|
156
|
+
* Event that got admitted
|
|
157
|
+
*
|
|
158
|
+
* @generated from protobuf field: aquila.Event event = 2
|
|
159
|
+
*/
|
|
160
|
+
event: Event;
|
|
161
|
+
} | {
|
|
162
|
+
oneofKind: "result";
|
|
163
|
+
/**
|
|
164
|
+
* Result of execution that was triggered by a execution request
|
|
165
|
+
*
|
|
166
|
+
* @generated from protobuf field: aquila.ExecutionResult result = 3
|
|
167
|
+
*/
|
|
168
|
+
result: ExecutionResult;
|
|
169
|
+
} | {
|
|
170
|
+
oneofKind: undefined;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @generated from protobuf message aquila.TransferResponse
|
|
175
|
+
*/
|
|
176
|
+
export interface TransferResponse {
|
|
177
|
+
/**
|
|
178
|
+
* Execution request
|
|
179
|
+
*
|
|
180
|
+
* @generated from protobuf field: aquila.ExecutionRequest execution = 1
|
|
181
|
+
*/
|
|
182
|
+
execution?: ExecutionRequest;
|
|
183
|
+
}
|
|
184
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
185
|
+
class Event$Type extends MessageType<Event> {
|
|
186
|
+
constructor() {
|
|
187
|
+
super("aquila.Event", [
|
|
188
|
+
{ no: 1, name: "event_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
189
|
+
{ no: 2, name: "payload", kind: "message", T: () => Value }
|
|
190
|
+
]);
|
|
191
|
+
}
|
|
192
|
+
create(value?: PartialMessage<Event>): Event {
|
|
193
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
194
|
+
message.eventType = "";
|
|
195
|
+
if (value !== undefined)
|
|
196
|
+
reflectionMergePartial<Event>(this, message, value);
|
|
197
|
+
return message;
|
|
198
|
+
}
|
|
199
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Event): Event {
|
|
200
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
201
|
+
while (reader.pos < end) {
|
|
202
|
+
let [fieldNo, wireType] = reader.tag();
|
|
203
|
+
switch (fieldNo) {
|
|
204
|
+
case /* string event_type */ 1:
|
|
205
|
+
message.eventType = reader.string();
|
|
206
|
+
break;
|
|
207
|
+
case /* shared.Value payload */ 2:
|
|
208
|
+
message.payload = Value.internalBinaryRead(reader, reader.uint32(), options, message.payload);
|
|
209
|
+
break;
|
|
210
|
+
default:
|
|
211
|
+
let u = options.readUnknownField;
|
|
212
|
+
if (u === "throw")
|
|
213
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
214
|
+
let d = reader.skip(wireType);
|
|
215
|
+
if (u !== false)
|
|
216
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return message;
|
|
220
|
+
}
|
|
221
|
+
internalBinaryWrite(message: Event, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
222
|
+
/* string event_type = 1; */
|
|
223
|
+
if (message.eventType !== "")
|
|
224
|
+
writer.tag(1, WireType.LengthDelimited).string(message.eventType);
|
|
225
|
+
/* shared.Value payload = 2; */
|
|
226
|
+
if (message.payload)
|
|
227
|
+
Value.internalBinaryWrite(message.payload, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
228
|
+
let u = options.writeUnknownFields;
|
|
229
|
+
if (u !== false)
|
|
230
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
231
|
+
return writer;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @generated MessageType for protobuf message aquila.Event
|
|
236
|
+
*/
|
|
237
|
+
export const Event = new Event$Type();
|
|
238
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
239
|
+
class Configuration$Type extends MessageType<Configuration> {
|
|
240
|
+
constructor() {
|
|
241
|
+
super("aquila.Configuration", [
|
|
242
|
+
{ no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
243
|
+
{ no: 2, name: "function_definitions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFunctionDefinition },
|
|
244
|
+
{ no: 3, name: "event_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EventType },
|
|
245
|
+
{ no: 4, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
|
|
246
|
+
]);
|
|
247
|
+
}
|
|
248
|
+
create(value?: PartialMessage<Configuration>): Configuration {
|
|
249
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
250
|
+
message.identifier = "";
|
|
251
|
+
message.functionDefinitions = [];
|
|
252
|
+
message.eventTypes = [];
|
|
253
|
+
message.actionConfigurations = [];
|
|
254
|
+
if (value !== undefined)
|
|
255
|
+
reflectionMergePartial<Configuration>(this, message, value);
|
|
256
|
+
return message;
|
|
257
|
+
}
|
|
258
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Configuration): Configuration {
|
|
259
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
260
|
+
while (reader.pos < end) {
|
|
261
|
+
let [fieldNo, wireType] = reader.tag();
|
|
262
|
+
switch (fieldNo) {
|
|
263
|
+
case /* string identifier */ 1:
|
|
264
|
+
message.identifier = reader.string();
|
|
265
|
+
break;
|
|
266
|
+
case /* repeated shared.RuntimeFunctionDefinition function_definitions */ 2:
|
|
267
|
+
message.functionDefinitions.push(RuntimeFunctionDefinition.internalBinaryRead(reader, reader.uint32(), options));
|
|
268
|
+
break;
|
|
269
|
+
case /* repeated shared.EventType event_types */ 3:
|
|
270
|
+
message.eventTypes.push(EventType.internalBinaryRead(reader, reader.uint32(), options));
|
|
271
|
+
break;
|
|
272
|
+
case /* repeated aquila.ActionConfiguration action_configurations */ 4:
|
|
273
|
+
message.actionConfigurations.push(ActionConfiguration.internalBinaryRead(reader, reader.uint32(), options));
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
let u = options.readUnknownField;
|
|
277
|
+
if (u === "throw")
|
|
278
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
279
|
+
let d = reader.skip(wireType);
|
|
280
|
+
if (u !== false)
|
|
281
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return message;
|
|
285
|
+
}
|
|
286
|
+
internalBinaryWrite(message: Configuration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
287
|
+
/* string identifier = 1; */
|
|
288
|
+
if (message.identifier !== "")
|
|
289
|
+
writer.tag(1, WireType.LengthDelimited).string(message.identifier);
|
|
290
|
+
/* repeated shared.RuntimeFunctionDefinition function_definitions = 2; */
|
|
291
|
+
for (let i = 0; i < message.functionDefinitions.length; i++)
|
|
292
|
+
RuntimeFunctionDefinition.internalBinaryWrite(message.functionDefinitions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
293
|
+
/* repeated shared.EventType event_types = 3; */
|
|
294
|
+
for (let i = 0; i < message.eventTypes.length; i++)
|
|
295
|
+
EventType.internalBinaryWrite(message.eventTypes[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
296
|
+
/* repeated aquila.ActionConfiguration action_configurations = 4; */
|
|
297
|
+
for (let i = 0; i < message.actionConfigurations.length; i++)
|
|
298
|
+
ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
299
|
+
let u = options.writeUnknownFields;
|
|
300
|
+
if (u !== false)
|
|
301
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
302
|
+
return writer;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* @generated MessageType for protobuf message aquila.Configuration
|
|
307
|
+
*/
|
|
308
|
+
export const Configuration = new Configuration$Type();
|
|
309
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
310
|
+
class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
|
|
311
|
+
constructor() {
|
|
312
|
+
super("aquila.ActionConfiguration", [
|
|
313
|
+
{ no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
314
|
+
{ no: 2, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
315
|
+
{ no: 3, name: "type", kind: "message", T: () => DefinitionDataType },
|
|
316
|
+
{ no: 4, name: "default_value", kind: "message", T: () => Value }
|
|
317
|
+
]);
|
|
318
|
+
}
|
|
319
|
+
create(value?: PartialMessage<ActionConfiguration>): ActionConfiguration {
|
|
320
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
321
|
+
message.name = [];
|
|
322
|
+
message.description = [];
|
|
323
|
+
if (value !== undefined)
|
|
324
|
+
reflectionMergePartial<ActionConfiguration>(this, message, value);
|
|
325
|
+
return message;
|
|
326
|
+
}
|
|
327
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfiguration): ActionConfiguration {
|
|
328
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
329
|
+
while (reader.pos < end) {
|
|
330
|
+
let [fieldNo, wireType] = reader.tag();
|
|
331
|
+
switch (fieldNo) {
|
|
332
|
+
case /* repeated shared.Translation name */ 1:
|
|
333
|
+
message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
334
|
+
break;
|
|
335
|
+
case /* repeated shared.Translation description */ 2:
|
|
336
|
+
message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
337
|
+
break;
|
|
338
|
+
case /* shared.DefinitionDataType type */ 3:
|
|
339
|
+
message.type = DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options, message.type);
|
|
340
|
+
break;
|
|
341
|
+
case /* optional shared.Value default_value */ 4:
|
|
342
|
+
message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
|
|
343
|
+
break;
|
|
344
|
+
default:
|
|
345
|
+
let u = options.readUnknownField;
|
|
346
|
+
if (u === "throw")
|
|
347
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
348
|
+
let d = reader.skip(wireType);
|
|
349
|
+
if (u !== false)
|
|
350
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return message;
|
|
354
|
+
}
|
|
355
|
+
internalBinaryWrite(message: ActionConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
356
|
+
/* repeated shared.Translation name = 1; */
|
|
357
|
+
for (let i = 0; i < message.name.length; i++)
|
|
358
|
+
Translation.internalBinaryWrite(message.name[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
359
|
+
/* repeated shared.Translation description = 2; */
|
|
360
|
+
for (let i = 0; i < message.description.length; i++)
|
|
361
|
+
Translation.internalBinaryWrite(message.description[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
362
|
+
/* shared.DefinitionDataType type = 3; */
|
|
363
|
+
if (message.type)
|
|
364
|
+
DefinitionDataType.internalBinaryWrite(message.type, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
365
|
+
/* optional shared.Value default_value = 4; */
|
|
366
|
+
if (message.defaultValue)
|
|
367
|
+
Value.internalBinaryWrite(message.defaultValue, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
368
|
+
let u = options.writeUnknownFields;
|
|
369
|
+
if (u !== false)
|
|
370
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
371
|
+
return writer;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @generated MessageType for protobuf message aquila.ActionConfiguration
|
|
376
|
+
*/
|
|
377
|
+
export const ActionConfiguration = new ActionConfiguration$Type();
|
|
378
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
379
|
+
class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
|
|
380
|
+
constructor() {
|
|
381
|
+
super("aquila.ExecutionRequest", [
|
|
382
|
+
{ no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
383
|
+
{ no: 2, name: "function_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
384
|
+
{ no: 3, name: "parameters", kind: "message", T: () => Struct }
|
|
385
|
+
]);
|
|
386
|
+
}
|
|
387
|
+
create(value?: PartialMessage<ExecutionRequest>): ExecutionRequest {
|
|
388
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
389
|
+
message.executionIdentifier = "";
|
|
390
|
+
message.functionIdentifier = "";
|
|
391
|
+
if (value !== undefined)
|
|
392
|
+
reflectionMergePartial<ExecutionRequest>(this, message, value);
|
|
393
|
+
return message;
|
|
394
|
+
}
|
|
395
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionRequest): ExecutionRequest {
|
|
396
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
397
|
+
while (reader.pos < end) {
|
|
398
|
+
let [fieldNo, wireType] = reader.tag();
|
|
399
|
+
switch (fieldNo) {
|
|
400
|
+
case /* string execution_identifier */ 1:
|
|
401
|
+
message.executionIdentifier = reader.string();
|
|
402
|
+
break;
|
|
403
|
+
case /* string function_identifier */ 2:
|
|
404
|
+
message.functionIdentifier = reader.string();
|
|
405
|
+
break;
|
|
406
|
+
case /* shared.Struct parameters */ 3:
|
|
407
|
+
message.parameters = Struct.internalBinaryRead(reader, reader.uint32(), options, message.parameters);
|
|
408
|
+
break;
|
|
409
|
+
default:
|
|
410
|
+
let u = options.readUnknownField;
|
|
411
|
+
if (u === "throw")
|
|
412
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
413
|
+
let d = reader.skip(wireType);
|
|
414
|
+
if (u !== false)
|
|
415
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return message;
|
|
419
|
+
}
|
|
420
|
+
internalBinaryWrite(message: ExecutionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
421
|
+
/* string execution_identifier = 1; */
|
|
422
|
+
if (message.executionIdentifier !== "")
|
|
423
|
+
writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
|
|
424
|
+
/* string function_identifier = 2; */
|
|
425
|
+
if (message.functionIdentifier !== "")
|
|
426
|
+
writer.tag(2, WireType.LengthDelimited).string(message.functionIdentifier);
|
|
427
|
+
/* shared.Struct parameters = 3; */
|
|
428
|
+
if (message.parameters)
|
|
429
|
+
Struct.internalBinaryWrite(message.parameters, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
430
|
+
let u = options.writeUnknownFields;
|
|
431
|
+
if (u !== false)
|
|
432
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
433
|
+
return writer;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* @generated MessageType for protobuf message aquila.ExecutionRequest
|
|
438
|
+
*/
|
|
439
|
+
export const ExecutionRequest = new ExecutionRequest$Type();
|
|
440
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
441
|
+
class ExecutionResult$Type extends MessageType<ExecutionResult> {
|
|
442
|
+
constructor() {
|
|
443
|
+
super("aquila.ExecutionResult", [
|
|
444
|
+
{ no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
445
|
+
{ no: 2, name: "result", kind: "message", T: () => Value }
|
|
446
|
+
]);
|
|
447
|
+
}
|
|
448
|
+
create(value?: PartialMessage<ExecutionResult>): ExecutionResult {
|
|
449
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
450
|
+
message.executionIdentifier = "";
|
|
451
|
+
if (value !== undefined)
|
|
452
|
+
reflectionMergePartial<ExecutionResult>(this, message, value);
|
|
453
|
+
return message;
|
|
454
|
+
}
|
|
455
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionResult): ExecutionResult {
|
|
456
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
457
|
+
while (reader.pos < end) {
|
|
458
|
+
let [fieldNo, wireType] = reader.tag();
|
|
459
|
+
switch (fieldNo) {
|
|
460
|
+
case /* string execution_identifier */ 1:
|
|
461
|
+
message.executionIdentifier = reader.string();
|
|
462
|
+
break;
|
|
463
|
+
case /* shared.Value result */ 2:
|
|
464
|
+
message.result = Value.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
|
465
|
+
break;
|
|
466
|
+
default:
|
|
467
|
+
let u = options.readUnknownField;
|
|
468
|
+
if (u === "throw")
|
|
469
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
470
|
+
let d = reader.skip(wireType);
|
|
471
|
+
if (u !== false)
|
|
472
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
return message;
|
|
476
|
+
}
|
|
477
|
+
internalBinaryWrite(message: ExecutionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
478
|
+
/* string execution_identifier = 1; */
|
|
479
|
+
if (message.executionIdentifier !== "")
|
|
480
|
+
writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
|
|
481
|
+
/* shared.Value result = 2; */
|
|
482
|
+
if (message.result)
|
|
483
|
+
Value.internalBinaryWrite(message.result, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
484
|
+
let u = options.writeUnknownFields;
|
|
485
|
+
if (u !== false)
|
|
486
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
487
|
+
return writer;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* @generated MessageType for protobuf message aquila.ExecutionResult
|
|
492
|
+
*/
|
|
493
|
+
export const ExecutionResult = new ExecutionResult$Type();
|
|
494
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
495
|
+
class TransferRequest$Type extends MessageType<TransferRequest> {
|
|
496
|
+
constructor() {
|
|
497
|
+
super("aquila.TransferRequest", [
|
|
498
|
+
{ no: 1, name: "configuration", kind: "message", oneof: "data", T: () => Configuration },
|
|
499
|
+
{ no: 2, name: "event", kind: "message", oneof: "data", T: () => Event },
|
|
500
|
+
{ no: 3, name: "result", kind: "message", oneof: "data", T: () => ExecutionResult }
|
|
501
|
+
]);
|
|
502
|
+
}
|
|
503
|
+
create(value?: PartialMessage<TransferRequest>): TransferRequest {
|
|
504
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
505
|
+
message.data = { oneofKind: undefined };
|
|
506
|
+
if (value !== undefined)
|
|
507
|
+
reflectionMergePartial<TransferRequest>(this, message, value);
|
|
508
|
+
return message;
|
|
509
|
+
}
|
|
510
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransferRequest): TransferRequest {
|
|
511
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
512
|
+
while (reader.pos < end) {
|
|
513
|
+
let [fieldNo, wireType] = reader.tag();
|
|
514
|
+
switch (fieldNo) {
|
|
515
|
+
case /* aquila.Configuration configuration */ 1:
|
|
516
|
+
message.data = {
|
|
517
|
+
oneofKind: "configuration",
|
|
518
|
+
configuration: Configuration.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).configuration)
|
|
519
|
+
};
|
|
520
|
+
break;
|
|
521
|
+
case /* aquila.Event event */ 2:
|
|
522
|
+
message.data = {
|
|
523
|
+
oneofKind: "event",
|
|
524
|
+
event: Event.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).event)
|
|
525
|
+
};
|
|
526
|
+
break;
|
|
527
|
+
case /* aquila.ExecutionResult result */ 3:
|
|
528
|
+
message.data = {
|
|
529
|
+
oneofKind: "result",
|
|
530
|
+
result: ExecutionResult.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).result)
|
|
531
|
+
};
|
|
532
|
+
break;
|
|
533
|
+
default:
|
|
534
|
+
let u = options.readUnknownField;
|
|
535
|
+
if (u === "throw")
|
|
536
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
537
|
+
let d = reader.skip(wireType);
|
|
538
|
+
if (u !== false)
|
|
539
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
return message;
|
|
543
|
+
}
|
|
544
|
+
internalBinaryWrite(message: TransferRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
545
|
+
/* aquila.Configuration configuration = 1; */
|
|
546
|
+
if (message.data.oneofKind === "configuration")
|
|
547
|
+
Configuration.internalBinaryWrite(message.data.configuration, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
548
|
+
/* aquila.Event event = 2; */
|
|
549
|
+
if (message.data.oneofKind === "event")
|
|
550
|
+
Event.internalBinaryWrite(message.data.event, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
551
|
+
/* aquila.ExecutionResult result = 3; */
|
|
552
|
+
if (message.data.oneofKind === "result")
|
|
553
|
+
ExecutionResult.internalBinaryWrite(message.data.result, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
554
|
+
let u = options.writeUnknownFields;
|
|
555
|
+
if (u !== false)
|
|
556
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
557
|
+
return writer;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @generated MessageType for protobuf message aquila.TransferRequest
|
|
562
|
+
*/
|
|
563
|
+
export const TransferRequest = new TransferRequest$Type();
|
|
564
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
565
|
+
class TransferResponse$Type extends MessageType<TransferResponse> {
|
|
566
|
+
constructor() {
|
|
567
|
+
super("aquila.TransferResponse", [
|
|
568
|
+
{ no: 1, name: "execution", kind: "message", T: () => ExecutionRequest }
|
|
569
|
+
]);
|
|
570
|
+
}
|
|
571
|
+
create(value?: PartialMessage<TransferResponse>): TransferResponse {
|
|
572
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
573
|
+
if (value !== undefined)
|
|
574
|
+
reflectionMergePartial<TransferResponse>(this, message, value);
|
|
575
|
+
return message;
|
|
576
|
+
}
|
|
577
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransferResponse): TransferResponse {
|
|
578
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
579
|
+
while (reader.pos < end) {
|
|
580
|
+
let [fieldNo, wireType] = reader.tag();
|
|
581
|
+
switch (fieldNo) {
|
|
582
|
+
case /* aquila.ExecutionRequest execution */ 1:
|
|
583
|
+
message.execution = ExecutionRequest.internalBinaryRead(reader, reader.uint32(), options, message.execution);
|
|
584
|
+
break;
|
|
585
|
+
default:
|
|
586
|
+
let u = options.readUnknownField;
|
|
587
|
+
if (u === "throw")
|
|
588
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
589
|
+
let d = reader.skip(wireType);
|
|
590
|
+
if (u !== false)
|
|
591
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
return message;
|
|
595
|
+
}
|
|
596
|
+
internalBinaryWrite(message: TransferResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
597
|
+
/* aquila.ExecutionRequest execution = 1; */
|
|
598
|
+
if (message.execution)
|
|
599
|
+
ExecutionRequest.internalBinaryWrite(message.execution, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
600
|
+
let u = options.writeUnknownFields;
|
|
601
|
+
if (u !== false)
|
|
602
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
603
|
+
return writer;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* @generated MessageType for protobuf message aquila.TransferResponse
|
|
608
|
+
*/
|
|
609
|
+
export const TransferResponse = new TransferResponse$Type();
|
|
610
|
+
/**
|
|
611
|
+
* @generated ServiceType for protobuf service aquila.ActionTransferService
|
|
612
|
+
*/
|
|
613
|
+
export const ActionTransferService = new ServiceType("aquila.ActionTransferService", [
|
|
614
|
+
{ name: "Transfer", serverStreaming: true, clientStreaming: true, options: {}, I: TransferRequest, O: TransferResponse }
|
|
615
|
+
]);
|