@code0-tech/tucana 0.0.0 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/index.js +0 -0
  2. package/package.json +1 -1
  3. package/pb/aquila.action_pb.client.ts +41 -0
  4. package/pb/aquila.action_pb.ts +615 -0
  5. package/pb/aquila.data_type_pb.client.ts +37 -0
  6. package/pb/aquila.data_type_pb.ts +140 -0
  7. package/pb/aquila.execution_pb.client.ts +74 -0
  8. package/pb/aquila.execution_pb.ts +334 -0
  9. package/pb/aquila.flow_type_pb.client.ts +41 -0
  10. package/pb/aquila.flow_type_pb.ts +140 -0
  11. package/pb/aquila.runtime_function_pb.client.ts +41 -0
  12. package/pb/aquila.runtime_function_pb.ts +140 -0
  13. package/pb/sagittarius.action_pb.client.ts +54 -0
  14. package/pb/sagittarius.action_pb.ts +239 -0
  15. package/pb/sagittarius.data_type_pb.client.ts +37 -0
  16. package/pb/sagittarius.data_type_pb.ts +140 -0
  17. package/pb/sagittarius.flow_pb.client.ts +37 -0
  18. package/pb/sagittarius.flow_pb.ts +173 -0
  19. package/pb/sagittarius.flow_type_pb.client.ts +41 -0
  20. package/pb/sagittarius.flow_type_pb.ts +140 -0
  21. package/pb/sagittarius.ping_pb.client.ts +36 -0
  22. package/pb/sagittarius.ping_pb.ts +75 -0
  23. package/pb/sagittarius.runtime_function_pb.client.ts +41 -0
  24. package/pb/sagittarius.runtime_function_pb.ts +140 -0
  25. package/pb/sagittarius.text_execution_pb.client.ts +37 -0
  26. package/pb/sagittarius.text_execution_pb.ts +456 -0
  27. package/pb/shared.data_type_pb.ts +1534 -0
  28. package/pb/shared.event_pb.ts +285 -0
  29. package/pb/shared.flow_definition_pb.ts +281 -0
  30. package/pb/shared.flow_pb.ts +845 -0
  31. package/pb/shared.runtime_function_pb.ts +298 -0
  32. package/pb/shared.struct_pb.ts +383 -0
  33. package/pb/shared.translation_pb.ts +86 -0
  34. package/pb/shared.version_pb.ts +92 -0
@@ -0,0 +1,845 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "shared.flow.proto" (package "shared", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { Struct } from "./shared.struct_pb";
14
+ import { Value } from "./shared.struct_pb";
15
+ import { ExecutionDataType } from "./shared.data_type_pb";
16
+ /**
17
+ * @generated from protobuf message shared.ValidationFlow
18
+ */
19
+ export interface ValidationFlow {
20
+ /**
21
+ * Database ID -> req. for Aquila to identify in FlowStore
22
+ *
23
+ * @generated from protobuf field: int64 flow_id = 1
24
+ */
25
+ flowId: bigint;
26
+ /**
27
+ * @generated from protobuf field: int64 project_id = 2
28
+ */
29
+ projectId: bigint;
30
+ /**
31
+ * The FlowType´s identifier
32
+ *
33
+ * @generated from protobuf field: string type = 3
34
+ */
35
+ type: string;
36
+ /**
37
+ * All custom data types used in this flow
38
+ *
39
+ * @generated from protobuf field: repeated shared.ExecutionDataType data_types = 4
40
+ */
41
+ dataTypes: ExecutionDataType[];
42
+ /**
43
+ * These reference data_types by its identifiers, which is are string
44
+ *
45
+ * @generated from protobuf field: optional string input_type_identifier = 5
46
+ */
47
+ inputTypeIdentifier?: string;
48
+ /**
49
+ * @generated from protobuf field: optional string return_type_identifier = 6
50
+ */
51
+ returnTypeIdentifier?: string;
52
+ /**
53
+ * @generated from protobuf field: repeated shared.FlowSetting settings = 7
54
+ */
55
+ settings: FlowSetting[];
56
+ /**
57
+ * @generated from protobuf field: int64 starting_node_id = 8
58
+ */
59
+ startingNodeId: bigint;
60
+ /**
61
+ * @generated from protobuf field: repeated shared.NodeFunction node_functions = 9
62
+ */
63
+ nodeFunctions: NodeFunction[];
64
+ }
65
+ /**
66
+ * @generated from protobuf message shared.ExecutionFlow
67
+ */
68
+ export interface ExecutionFlow {
69
+ /**
70
+ * Database ID -> req. for Aquila to identify in FlowStore
71
+ *
72
+ * @generated from protobuf field: int64 flow_id = 1
73
+ */
74
+ flowId: bigint;
75
+ /**
76
+ * @generated from protobuf field: int64 starting_node_id = 2
77
+ */
78
+ startingNodeId: bigint;
79
+ /**
80
+ * @generated from protobuf field: repeated shared.NodeFunction node_functions = 4
81
+ */
82
+ nodeFunctions: NodeFunction[];
83
+ /**
84
+ * @generated from protobuf field: optional shared.Value input_value = 3
85
+ */
86
+ inputValue?: Value;
87
+ }
88
+ /**
89
+ * @generated from protobuf message shared.FlowSetting
90
+ */
91
+ export interface FlowSetting {
92
+ /**
93
+ * The database id from sagittarius
94
+ *
95
+ * @generated from protobuf field: int64 database_id = 1
96
+ */
97
+ databaseId: bigint;
98
+ /**
99
+ * @generated from protobuf field: string flow_setting_id = 2
100
+ */
101
+ flowSettingId: string;
102
+ /**
103
+ * @generated from protobuf field: shared.Struct object = 3
104
+ */
105
+ object?: Struct;
106
+ }
107
+ /**
108
+ * @generated from protobuf message shared.NodeFunction
109
+ */
110
+ export interface NodeFunction {
111
+ /**
112
+ * The database id from sagittarius
113
+ *
114
+ * @generated from protobuf field: int64 database_id = 1
115
+ */
116
+ databaseId: bigint;
117
+ /**
118
+ * @generated from protobuf field: string runtime_function_id = 2
119
+ */
120
+ runtimeFunctionId: string;
121
+ /**
122
+ * @generated from protobuf field: repeated shared.NodeParameter parameters = 3
123
+ */
124
+ parameters: NodeParameter[];
125
+ /**
126
+ * @generated from protobuf field: optional int64 next_node_id = 4
127
+ */
128
+ nextNodeId?: bigint;
129
+ }
130
+ /**
131
+ * @generated from protobuf message shared.NodeValue
132
+ */
133
+ export interface NodeValue {
134
+ /**
135
+ * @generated from protobuf oneof: value
136
+ */
137
+ value: {
138
+ oneofKind: "literalValue";
139
+ /**
140
+ * @generated from protobuf field: shared.Value literal_value = 1
141
+ */
142
+ literalValue: Value;
143
+ } | {
144
+ oneofKind: "referenceValue";
145
+ /**
146
+ * @generated from protobuf field: shared.ReferenceValue reference_value = 2
147
+ */
148
+ referenceValue: ReferenceValue;
149
+ } | {
150
+ oneofKind: "nodeFunctionId";
151
+ /**
152
+ * @generated from protobuf field: int64 node_function_id = 3
153
+ */
154
+ nodeFunctionId: bigint;
155
+ } | {
156
+ oneofKind: undefined;
157
+ };
158
+ }
159
+ /**
160
+ * @generated from protobuf message shared.NodeParameter
161
+ */
162
+ export interface NodeParameter {
163
+ /**
164
+ * The database id from sagittarius
165
+ *
166
+ * @generated from protobuf field: int64 database_id = 1
167
+ */
168
+ databaseId: bigint;
169
+ /**
170
+ * @generated from protobuf field: string runtime_parameter_id = 2
171
+ */
172
+ runtimeParameterId: string;
173
+ /**
174
+ * @generated from protobuf field: shared.NodeValue value = 3
175
+ */
176
+ value?: NodeValue;
177
+ }
178
+ /**
179
+ * @generated from protobuf message shared.ReferenceValue
180
+ */
181
+ export interface ReferenceValue {
182
+ /**
183
+ * @generated from protobuf field: int32 depth = 1
184
+ */
185
+ depth: number;
186
+ /**
187
+ * @generated from protobuf field: repeated int32 scope = 2
188
+ */
189
+ scope: number[];
190
+ /**
191
+ * @generated from protobuf field: int32 node = 3
192
+ */
193
+ node: number;
194
+ /**
195
+ * @generated from protobuf field: repeated shared.ReferencePath paths = 4
196
+ */
197
+ paths: ReferencePath[];
198
+ }
199
+ /**
200
+ * @generated from protobuf message shared.ReferencePath
201
+ */
202
+ export interface ReferencePath {
203
+ /**
204
+ * @generated from protobuf field: optional string path = 1
205
+ */
206
+ path?: string;
207
+ /**
208
+ * @generated from protobuf field: optional int64 array_index = 2
209
+ */
210
+ arrayIndex?: bigint;
211
+ }
212
+ /**
213
+ * Used in sagittarius´s FlowService because oneof can only
214
+ * take in a single message type and not a repeated one
215
+ *
216
+ * @generated from protobuf message shared.Flows
217
+ */
218
+ export interface Flows {
219
+ /**
220
+ * @generated from protobuf field: repeated shared.ValidationFlow flows = 1
221
+ */
222
+ flows: ValidationFlow[];
223
+ }
224
+ // @generated message type with reflection information, may provide speed optimized methods
225
+ class ValidationFlow$Type extends MessageType<ValidationFlow> {
226
+ constructor() {
227
+ super("shared.ValidationFlow", [
228
+ { no: 1, name: "flow_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
229
+ { no: 2, name: "project_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
230
+ { no: 3, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
231
+ { no: 4, name: "data_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExecutionDataType },
232
+ { no: 5, name: "input_type_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
233
+ { no: 6, name: "return_type_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
234
+ { no: 7, name: "settings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowSetting },
235
+ { no: 8, name: "starting_node_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
236
+ { no: 9, name: "node_functions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NodeFunction }
237
+ ]);
238
+ }
239
+ create(value?: PartialMessage<ValidationFlow>): ValidationFlow {
240
+ const message = globalThis.Object.create((this.messagePrototype!));
241
+ message.flowId = 0n;
242
+ message.projectId = 0n;
243
+ message.type = "";
244
+ message.dataTypes = [];
245
+ message.settings = [];
246
+ message.startingNodeId = 0n;
247
+ message.nodeFunctions = [];
248
+ if (value !== undefined)
249
+ reflectionMergePartial<ValidationFlow>(this, message, value);
250
+ return message;
251
+ }
252
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ValidationFlow): ValidationFlow {
253
+ let message = target ?? this.create(), end = reader.pos + length;
254
+ while (reader.pos < end) {
255
+ let [fieldNo, wireType] = reader.tag();
256
+ switch (fieldNo) {
257
+ case /* int64 flow_id */ 1:
258
+ message.flowId = reader.int64().toBigInt();
259
+ break;
260
+ case /* int64 project_id */ 2:
261
+ message.projectId = reader.int64().toBigInt();
262
+ break;
263
+ case /* string type */ 3:
264
+ message.type = reader.string();
265
+ break;
266
+ case /* repeated shared.ExecutionDataType data_types */ 4:
267
+ message.dataTypes.push(ExecutionDataType.internalBinaryRead(reader, reader.uint32(), options));
268
+ break;
269
+ case /* optional string input_type_identifier */ 5:
270
+ message.inputTypeIdentifier = reader.string();
271
+ break;
272
+ case /* optional string return_type_identifier */ 6:
273
+ message.returnTypeIdentifier = reader.string();
274
+ break;
275
+ case /* repeated shared.FlowSetting settings */ 7:
276
+ message.settings.push(FlowSetting.internalBinaryRead(reader, reader.uint32(), options));
277
+ break;
278
+ case /* int64 starting_node_id */ 8:
279
+ message.startingNodeId = reader.int64().toBigInt();
280
+ break;
281
+ case /* repeated shared.NodeFunction node_functions */ 9:
282
+ message.nodeFunctions.push(NodeFunction.internalBinaryRead(reader, reader.uint32(), options));
283
+ break;
284
+ default:
285
+ let u = options.readUnknownField;
286
+ if (u === "throw")
287
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
288
+ let d = reader.skip(wireType);
289
+ if (u !== false)
290
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
291
+ }
292
+ }
293
+ return message;
294
+ }
295
+ internalBinaryWrite(message: ValidationFlow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
296
+ /* int64 flow_id = 1; */
297
+ if (message.flowId !== 0n)
298
+ writer.tag(1, WireType.Varint).int64(message.flowId);
299
+ /* int64 project_id = 2; */
300
+ if (message.projectId !== 0n)
301
+ writer.tag(2, WireType.Varint).int64(message.projectId);
302
+ /* string type = 3; */
303
+ if (message.type !== "")
304
+ writer.tag(3, WireType.LengthDelimited).string(message.type);
305
+ /* repeated shared.ExecutionDataType data_types = 4; */
306
+ for (let i = 0; i < message.dataTypes.length; i++)
307
+ ExecutionDataType.internalBinaryWrite(message.dataTypes[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
308
+ /* optional string input_type_identifier = 5; */
309
+ if (message.inputTypeIdentifier !== undefined)
310
+ writer.tag(5, WireType.LengthDelimited).string(message.inputTypeIdentifier);
311
+ /* optional string return_type_identifier = 6; */
312
+ if (message.returnTypeIdentifier !== undefined)
313
+ writer.tag(6, WireType.LengthDelimited).string(message.returnTypeIdentifier);
314
+ /* repeated shared.FlowSetting settings = 7; */
315
+ for (let i = 0; i < message.settings.length; i++)
316
+ FlowSetting.internalBinaryWrite(message.settings[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
317
+ /* int64 starting_node_id = 8; */
318
+ if (message.startingNodeId !== 0n)
319
+ writer.tag(8, WireType.Varint).int64(message.startingNodeId);
320
+ /* repeated shared.NodeFunction node_functions = 9; */
321
+ for (let i = 0; i < message.nodeFunctions.length; i++)
322
+ NodeFunction.internalBinaryWrite(message.nodeFunctions[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
323
+ let u = options.writeUnknownFields;
324
+ if (u !== false)
325
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
326
+ return writer;
327
+ }
328
+ }
329
+ /**
330
+ * @generated MessageType for protobuf message shared.ValidationFlow
331
+ */
332
+ export const ValidationFlow = new ValidationFlow$Type();
333
+ // @generated message type with reflection information, may provide speed optimized methods
334
+ class ExecutionFlow$Type extends MessageType<ExecutionFlow> {
335
+ constructor() {
336
+ super("shared.ExecutionFlow", [
337
+ { no: 1, name: "flow_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
338
+ { no: 2, name: "starting_node_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
339
+ { no: 4, name: "node_functions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NodeFunction },
340
+ { no: 3, name: "input_value", kind: "message", T: () => Value }
341
+ ]);
342
+ }
343
+ create(value?: PartialMessage<ExecutionFlow>): ExecutionFlow {
344
+ const message = globalThis.Object.create((this.messagePrototype!));
345
+ message.flowId = 0n;
346
+ message.startingNodeId = 0n;
347
+ message.nodeFunctions = [];
348
+ if (value !== undefined)
349
+ reflectionMergePartial<ExecutionFlow>(this, message, value);
350
+ return message;
351
+ }
352
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionFlow): ExecutionFlow {
353
+ let message = target ?? this.create(), end = reader.pos + length;
354
+ while (reader.pos < end) {
355
+ let [fieldNo, wireType] = reader.tag();
356
+ switch (fieldNo) {
357
+ case /* int64 flow_id */ 1:
358
+ message.flowId = reader.int64().toBigInt();
359
+ break;
360
+ case /* int64 starting_node_id */ 2:
361
+ message.startingNodeId = reader.int64().toBigInt();
362
+ break;
363
+ case /* repeated shared.NodeFunction node_functions */ 4:
364
+ message.nodeFunctions.push(NodeFunction.internalBinaryRead(reader, reader.uint32(), options));
365
+ break;
366
+ case /* optional shared.Value input_value */ 3:
367
+ message.inputValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.inputValue);
368
+ break;
369
+ default:
370
+ let u = options.readUnknownField;
371
+ if (u === "throw")
372
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
373
+ let d = reader.skip(wireType);
374
+ if (u !== false)
375
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
376
+ }
377
+ }
378
+ return message;
379
+ }
380
+ internalBinaryWrite(message: ExecutionFlow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
381
+ /* int64 flow_id = 1; */
382
+ if (message.flowId !== 0n)
383
+ writer.tag(1, WireType.Varint).int64(message.flowId);
384
+ /* int64 starting_node_id = 2; */
385
+ if (message.startingNodeId !== 0n)
386
+ writer.tag(2, WireType.Varint).int64(message.startingNodeId);
387
+ /* optional shared.Value input_value = 3; */
388
+ if (message.inputValue)
389
+ Value.internalBinaryWrite(message.inputValue, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
390
+ /* repeated shared.NodeFunction node_functions = 4; */
391
+ for (let i = 0; i < message.nodeFunctions.length; i++)
392
+ NodeFunction.internalBinaryWrite(message.nodeFunctions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
393
+ let u = options.writeUnknownFields;
394
+ if (u !== false)
395
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
396
+ return writer;
397
+ }
398
+ }
399
+ /**
400
+ * @generated MessageType for protobuf message shared.ExecutionFlow
401
+ */
402
+ export const ExecutionFlow = new ExecutionFlow$Type();
403
+ // @generated message type with reflection information, may provide speed optimized methods
404
+ class FlowSetting$Type extends MessageType<FlowSetting> {
405
+ constructor() {
406
+ super("shared.FlowSetting", [
407
+ { no: 1, name: "database_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
408
+ { no: 2, name: "flow_setting_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
409
+ { no: 3, name: "object", kind: "message", T: () => Struct }
410
+ ]);
411
+ }
412
+ create(value?: PartialMessage<FlowSetting>): FlowSetting {
413
+ const message = globalThis.Object.create((this.messagePrototype!));
414
+ message.databaseId = 0n;
415
+ message.flowSettingId = "";
416
+ if (value !== undefined)
417
+ reflectionMergePartial<FlowSetting>(this, message, value);
418
+ return message;
419
+ }
420
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowSetting): FlowSetting {
421
+ let message = target ?? this.create(), end = reader.pos + length;
422
+ while (reader.pos < end) {
423
+ let [fieldNo, wireType] = reader.tag();
424
+ switch (fieldNo) {
425
+ case /* int64 database_id */ 1:
426
+ message.databaseId = reader.int64().toBigInt();
427
+ break;
428
+ case /* string flow_setting_id */ 2:
429
+ message.flowSettingId = reader.string();
430
+ break;
431
+ case /* shared.Struct object */ 3:
432
+ message.object = Struct.internalBinaryRead(reader, reader.uint32(), options, message.object);
433
+ break;
434
+ default:
435
+ let u = options.readUnknownField;
436
+ if (u === "throw")
437
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
438
+ let d = reader.skip(wireType);
439
+ if (u !== false)
440
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
441
+ }
442
+ }
443
+ return message;
444
+ }
445
+ internalBinaryWrite(message: FlowSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
446
+ /* int64 database_id = 1; */
447
+ if (message.databaseId !== 0n)
448
+ writer.tag(1, WireType.Varint).int64(message.databaseId);
449
+ /* string flow_setting_id = 2; */
450
+ if (message.flowSettingId !== "")
451
+ writer.tag(2, WireType.LengthDelimited).string(message.flowSettingId);
452
+ /* shared.Struct object = 3; */
453
+ if (message.object)
454
+ Struct.internalBinaryWrite(message.object, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
455
+ let u = options.writeUnknownFields;
456
+ if (u !== false)
457
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
458
+ return writer;
459
+ }
460
+ }
461
+ /**
462
+ * @generated MessageType for protobuf message shared.FlowSetting
463
+ */
464
+ export const FlowSetting = new FlowSetting$Type();
465
+ // @generated message type with reflection information, may provide speed optimized methods
466
+ class NodeFunction$Type extends MessageType<NodeFunction> {
467
+ constructor() {
468
+ super("shared.NodeFunction", [
469
+ { no: 1, name: "database_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
470
+ { no: 2, name: "runtime_function_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
471
+ { no: 3, name: "parameters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NodeParameter },
472
+ { no: 4, name: "next_node_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
473
+ ]);
474
+ }
475
+ create(value?: PartialMessage<NodeFunction>): NodeFunction {
476
+ const message = globalThis.Object.create((this.messagePrototype!));
477
+ message.databaseId = 0n;
478
+ message.runtimeFunctionId = "";
479
+ message.parameters = [];
480
+ if (value !== undefined)
481
+ reflectionMergePartial<NodeFunction>(this, message, value);
482
+ return message;
483
+ }
484
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NodeFunction): NodeFunction {
485
+ let message = target ?? this.create(), end = reader.pos + length;
486
+ while (reader.pos < end) {
487
+ let [fieldNo, wireType] = reader.tag();
488
+ switch (fieldNo) {
489
+ case /* int64 database_id */ 1:
490
+ message.databaseId = reader.int64().toBigInt();
491
+ break;
492
+ case /* string runtime_function_id */ 2:
493
+ message.runtimeFunctionId = reader.string();
494
+ break;
495
+ case /* repeated shared.NodeParameter parameters */ 3:
496
+ message.parameters.push(NodeParameter.internalBinaryRead(reader, reader.uint32(), options));
497
+ break;
498
+ case /* optional int64 next_node_id */ 4:
499
+ message.nextNodeId = reader.int64().toBigInt();
500
+ break;
501
+ default:
502
+ let u = options.readUnknownField;
503
+ if (u === "throw")
504
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
505
+ let d = reader.skip(wireType);
506
+ if (u !== false)
507
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
508
+ }
509
+ }
510
+ return message;
511
+ }
512
+ internalBinaryWrite(message: NodeFunction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
513
+ /* int64 database_id = 1; */
514
+ if (message.databaseId !== 0n)
515
+ writer.tag(1, WireType.Varint).int64(message.databaseId);
516
+ /* string runtime_function_id = 2; */
517
+ if (message.runtimeFunctionId !== "")
518
+ writer.tag(2, WireType.LengthDelimited).string(message.runtimeFunctionId);
519
+ /* repeated shared.NodeParameter parameters = 3; */
520
+ for (let i = 0; i < message.parameters.length; i++)
521
+ NodeParameter.internalBinaryWrite(message.parameters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
522
+ /* optional int64 next_node_id = 4; */
523
+ if (message.nextNodeId !== undefined)
524
+ writer.tag(4, WireType.Varint).int64(message.nextNodeId);
525
+ let u = options.writeUnknownFields;
526
+ if (u !== false)
527
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
528
+ return writer;
529
+ }
530
+ }
531
+ /**
532
+ * @generated MessageType for protobuf message shared.NodeFunction
533
+ */
534
+ export const NodeFunction = new NodeFunction$Type();
535
+ // @generated message type with reflection information, may provide speed optimized methods
536
+ class NodeValue$Type extends MessageType<NodeValue> {
537
+ constructor() {
538
+ super("shared.NodeValue", [
539
+ { no: 1, name: "literal_value", kind: "message", oneof: "value", T: () => Value },
540
+ { no: 2, name: "reference_value", kind: "message", oneof: "value", T: () => ReferenceValue },
541
+ { no: 3, name: "node_function_id", kind: "scalar", oneof: "value", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
542
+ ]);
543
+ }
544
+ create(value?: PartialMessage<NodeValue>): NodeValue {
545
+ const message = globalThis.Object.create((this.messagePrototype!));
546
+ message.value = { oneofKind: undefined };
547
+ if (value !== undefined)
548
+ reflectionMergePartial<NodeValue>(this, message, value);
549
+ return message;
550
+ }
551
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NodeValue): NodeValue {
552
+ let message = target ?? this.create(), end = reader.pos + length;
553
+ while (reader.pos < end) {
554
+ let [fieldNo, wireType] = reader.tag();
555
+ switch (fieldNo) {
556
+ case /* shared.Value literal_value */ 1:
557
+ message.value = {
558
+ oneofKind: "literalValue",
559
+ literalValue: Value.internalBinaryRead(reader, reader.uint32(), options, (message.value as any).literalValue)
560
+ };
561
+ break;
562
+ case /* shared.ReferenceValue reference_value */ 2:
563
+ message.value = {
564
+ oneofKind: "referenceValue",
565
+ referenceValue: ReferenceValue.internalBinaryRead(reader, reader.uint32(), options, (message.value as any).referenceValue)
566
+ };
567
+ break;
568
+ case /* int64 node_function_id */ 3:
569
+ message.value = {
570
+ oneofKind: "nodeFunctionId",
571
+ nodeFunctionId: reader.int64().toBigInt()
572
+ };
573
+ break;
574
+ default:
575
+ let u = options.readUnknownField;
576
+ if (u === "throw")
577
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
578
+ let d = reader.skip(wireType);
579
+ if (u !== false)
580
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
581
+ }
582
+ }
583
+ return message;
584
+ }
585
+ internalBinaryWrite(message: NodeValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
586
+ /* shared.Value literal_value = 1; */
587
+ if (message.value.oneofKind === "literalValue")
588
+ Value.internalBinaryWrite(message.value.literalValue, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
589
+ /* shared.ReferenceValue reference_value = 2; */
590
+ if (message.value.oneofKind === "referenceValue")
591
+ ReferenceValue.internalBinaryWrite(message.value.referenceValue, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
592
+ /* int64 node_function_id = 3; */
593
+ if (message.value.oneofKind === "nodeFunctionId")
594
+ writer.tag(3, WireType.Varint).int64(message.value.nodeFunctionId);
595
+ let u = options.writeUnknownFields;
596
+ if (u !== false)
597
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
598
+ return writer;
599
+ }
600
+ }
601
+ /**
602
+ * @generated MessageType for protobuf message shared.NodeValue
603
+ */
604
+ export const NodeValue = new NodeValue$Type();
605
+ // @generated message type with reflection information, may provide speed optimized methods
606
+ class NodeParameter$Type extends MessageType<NodeParameter> {
607
+ constructor() {
608
+ super("shared.NodeParameter", [
609
+ { no: 1, name: "database_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
610
+ { no: 2, name: "runtime_parameter_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
611
+ { no: 3, name: "value", kind: "message", T: () => NodeValue }
612
+ ]);
613
+ }
614
+ create(value?: PartialMessage<NodeParameter>): NodeParameter {
615
+ const message = globalThis.Object.create((this.messagePrototype!));
616
+ message.databaseId = 0n;
617
+ message.runtimeParameterId = "";
618
+ if (value !== undefined)
619
+ reflectionMergePartial<NodeParameter>(this, message, value);
620
+ return message;
621
+ }
622
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NodeParameter): NodeParameter {
623
+ let message = target ?? this.create(), end = reader.pos + length;
624
+ while (reader.pos < end) {
625
+ let [fieldNo, wireType] = reader.tag();
626
+ switch (fieldNo) {
627
+ case /* int64 database_id */ 1:
628
+ message.databaseId = reader.int64().toBigInt();
629
+ break;
630
+ case /* string runtime_parameter_id */ 2:
631
+ message.runtimeParameterId = reader.string();
632
+ break;
633
+ case /* shared.NodeValue value */ 3:
634
+ message.value = NodeValue.internalBinaryRead(reader, reader.uint32(), options, message.value);
635
+ break;
636
+ default:
637
+ let u = options.readUnknownField;
638
+ if (u === "throw")
639
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
640
+ let d = reader.skip(wireType);
641
+ if (u !== false)
642
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
643
+ }
644
+ }
645
+ return message;
646
+ }
647
+ internalBinaryWrite(message: NodeParameter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
648
+ /* int64 database_id = 1; */
649
+ if (message.databaseId !== 0n)
650
+ writer.tag(1, WireType.Varint).int64(message.databaseId);
651
+ /* string runtime_parameter_id = 2; */
652
+ if (message.runtimeParameterId !== "")
653
+ writer.tag(2, WireType.LengthDelimited).string(message.runtimeParameterId);
654
+ /* shared.NodeValue value = 3; */
655
+ if (message.value)
656
+ NodeValue.internalBinaryWrite(message.value, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
657
+ let u = options.writeUnknownFields;
658
+ if (u !== false)
659
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
660
+ return writer;
661
+ }
662
+ }
663
+ /**
664
+ * @generated MessageType for protobuf message shared.NodeParameter
665
+ */
666
+ export const NodeParameter = new NodeParameter$Type();
667
+ // @generated message type with reflection information, may provide speed optimized methods
668
+ class ReferenceValue$Type extends MessageType<ReferenceValue> {
669
+ constructor() {
670
+ super("shared.ReferenceValue", [
671
+ { no: 1, name: "depth", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
672
+ { no: 2, name: "scope", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
673
+ { no: 3, name: "node", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
674
+ { no: 4, name: "paths", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ReferencePath }
675
+ ]);
676
+ }
677
+ create(value?: PartialMessage<ReferenceValue>): ReferenceValue {
678
+ const message = globalThis.Object.create((this.messagePrototype!));
679
+ message.depth = 0;
680
+ message.scope = [];
681
+ message.node = 0;
682
+ message.paths = [];
683
+ if (value !== undefined)
684
+ reflectionMergePartial<ReferenceValue>(this, message, value);
685
+ return message;
686
+ }
687
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReferenceValue): ReferenceValue {
688
+ let message = target ?? this.create(), end = reader.pos + length;
689
+ while (reader.pos < end) {
690
+ let [fieldNo, wireType] = reader.tag();
691
+ switch (fieldNo) {
692
+ case /* int32 depth */ 1:
693
+ message.depth = reader.int32();
694
+ break;
695
+ case /* repeated int32 scope */ 2:
696
+ if (wireType === WireType.LengthDelimited)
697
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
698
+ message.scope.push(reader.int32());
699
+ else
700
+ message.scope.push(reader.int32());
701
+ break;
702
+ case /* int32 node */ 3:
703
+ message.node = reader.int32();
704
+ break;
705
+ case /* repeated shared.ReferencePath paths */ 4:
706
+ message.paths.push(ReferencePath.internalBinaryRead(reader, reader.uint32(), options));
707
+ break;
708
+ default:
709
+ let u = options.readUnknownField;
710
+ if (u === "throw")
711
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
712
+ let d = reader.skip(wireType);
713
+ if (u !== false)
714
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
715
+ }
716
+ }
717
+ return message;
718
+ }
719
+ internalBinaryWrite(message: ReferenceValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
720
+ /* int32 depth = 1; */
721
+ if (message.depth !== 0)
722
+ writer.tag(1, WireType.Varint).int32(message.depth);
723
+ /* repeated int32 scope = 2; */
724
+ if (message.scope.length) {
725
+ writer.tag(2, WireType.LengthDelimited).fork();
726
+ for (let i = 0; i < message.scope.length; i++)
727
+ writer.int32(message.scope[i]);
728
+ writer.join();
729
+ }
730
+ /* int32 node = 3; */
731
+ if (message.node !== 0)
732
+ writer.tag(3, WireType.Varint).int32(message.node);
733
+ /* repeated shared.ReferencePath paths = 4; */
734
+ for (let i = 0; i < message.paths.length; i++)
735
+ ReferencePath.internalBinaryWrite(message.paths[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
736
+ let u = options.writeUnknownFields;
737
+ if (u !== false)
738
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
739
+ return writer;
740
+ }
741
+ }
742
+ /**
743
+ * @generated MessageType for protobuf message shared.ReferenceValue
744
+ */
745
+ export const ReferenceValue = new ReferenceValue$Type();
746
+ // @generated message type with reflection information, may provide speed optimized methods
747
+ class ReferencePath$Type extends MessageType<ReferencePath> {
748
+ constructor() {
749
+ super("shared.ReferencePath", [
750
+ { no: 1, name: "path", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
751
+ { no: 2, name: "array_index", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
752
+ ]);
753
+ }
754
+ create(value?: PartialMessage<ReferencePath>): ReferencePath {
755
+ const message = globalThis.Object.create((this.messagePrototype!));
756
+ if (value !== undefined)
757
+ reflectionMergePartial<ReferencePath>(this, message, value);
758
+ return message;
759
+ }
760
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReferencePath): ReferencePath {
761
+ let message = target ?? this.create(), end = reader.pos + length;
762
+ while (reader.pos < end) {
763
+ let [fieldNo, wireType] = reader.tag();
764
+ switch (fieldNo) {
765
+ case /* optional string path */ 1:
766
+ message.path = reader.string();
767
+ break;
768
+ case /* optional int64 array_index */ 2:
769
+ message.arrayIndex = reader.int64().toBigInt();
770
+ break;
771
+ default:
772
+ let u = options.readUnknownField;
773
+ if (u === "throw")
774
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
775
+ let d = reader.skip(wireType);
776
+ if (u !== false)
777
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
778
+ }
779
+ }
780
+ return message;
781
+ }
782
+ internalBinaryWrite(message: ReferencePath, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
783
+ /* optional string path = 1; */
784
+ if (message.path !== undefined)
785
+ writer.tag(1, WireType.LengthDelimited).string(message.path);
786
+ /* optional int64 array_index = 2; */
787
+ if (message.arrayIndex !== undefined)
788
+ writer.tag(2, WireType.Varint).int64(message.arrayIndex);
789
+ let u = options.writeUnknownFields;
790
+ if (u !== false)
791
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
792
+ return writer;
793
+ }
794
+ }
795
+ /**
796
+ * @generated MessageType for protobuf message shared.ReferencePath
797
+ */
798
+ export const ReferencePath = new ReferencePath$Type();
799
+ // @generated message type with reflection information, may provide speed optimized methods
800
+ class Flows$Type extends MessageType<Flows> {
801
+ constructor() {
802
+ super("shared.Flows", [
803
+ { no: 1, name: "flows", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ValidationFlow }
804
+ ]);
805
+ }
806
+ create(value?: PartialMessage<Flows>): Flows {
807
+ const message = globalThis.Object.create((this.messagePrototype!));
808
+ message.flows = [];
809
+ if (value !== undefined)
810
+ reflectionMergePartial<Flows>(this, message, value);
811
+ return message;
812
+ }
813
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Flows): Flows {
814
+ let message = target ?? this.create(), end = reader.pos + length;
815
+ while (reader.pos < end) {
816
+ let [fieldNo, wireType] = reader.tag();
817
+ switch (fieldNo) {
818
+ case /* repeated shared.ValidationFlow flows */ 1:
819
+ message.flows.push(ValidationFlow.internalBinaryRead(reader, reader.uint32(), options));
820
+ break;
821
+ default:
822
+ let u = options.readUnknownField;
823
+ if (u === "throw")
824
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
825
+ let d = reader.skip(wireType);
826
+ if (u !== false)
827
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
828
+ }
829
+ }
830
+ return message;
831
+ }
832
+ internalBinaryWrite(message: Flows, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
833
+ /* repeated shared.ValidationFlow flows = 1; */
834
+ for (let i = 0; i < message.flows.length; i++)
835
+ ValidationFlow.internalBinaryWrite(message.flows[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
836
+ let u = options.writeUnknownFields;
837
+ if (u !== false)
838
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
839
+ return writer;
840
+ }
841
+ }
842
+ /**
843
+ * @generated MessageType for protobuf message shared.Flows
844
+ */
845
+ export const Flows = new Flows$Type();