@code0-tech/tucana 0.0.65 → 0.0.67

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.
@@ -0,0 +1,717 @@
1
+ import { F as e, I as t, M as n, j as r, k as i, y as a } from "./shared.runtime_usage_pb-SKgDYw_k.js";
2
+ var o = new class extends r {
3
+ constructor() {
4
+ super("shared.ValidationFlow", [
5
+ {
6
+ no: 1,
7
+ name: "flow_id",
8
+ kind: "scalar",
9
+ T: 3,
10
+ L: 0
11
+ },
12
+ {
13
+ no: 2,
14
+ name: "project_id",
15
+ kind: "scalar",
16
+ T: 3,
17
+ L: 0
18
+ },
19
+ {
20
+ no: 3,
21
+ name: "type",
22
+ kind: "scalar",
23
+ T: 9
24
+ },
25
+ {
26
+ no: 4,
27
+ name: "data_types",
28
+ kind: "message",
29
+ repeat: 2,
30
+ T: () => a
31
+ },
32
+ {
33
+ no: 5,
34
+ name: "settings",
35
+ kind: "message",
36
+ repeat: 2,
37
+ T: () => c
38
+ },
39
+ {
40
+ no: 6,
41
+ name: "starting_node_id",
42
+ kind: "scalar",
43
+ T: 3,
44
+ L: 0
45
+ },
46
+ {
47
+ no: 7,
48
+ name: "node_functions",
49
+ kind: "message",
50
+ repeat: 2,
51
+ T: () => l
52
+ },
53
+ {
54
+ no: 8,
55
+ name: "project_slug",
56
+ kind: "scalar",
57
+ T: 9
58
+ },
59
+ {
60
+ no: 9,
61
+ name: "disable_reason",
62
+ kind: "scalar",
63
+ opt: !0,
64
+ T: 9
65
+ },
66
+ {
67
+ no: 10,
68
+ name: "signature",
69
+ kind: "scalar",
70
+ T: 9
71
+ }
72
+ ]);
73
+ }
74
+ create(e) {
75
+ let t = globalThis.Object.create(this.messagePrototype);
76
+ return t.flowId = 0n, t.projectId = 0n, t.type = "", t.dataTypes = [], t.settings = [], t.startingNodeId = 0n, t.nodeFunctions = [], t.projectSlug = "", t.signature = "", e !== void 0 && n(this, t, e), t;
77
+ }
78
+ internalBinaryRead(t, n, r, i) {
79
+ let o = i ?? this.create(), s = t.pos + n;
80
+ for (; t.pos < s;) {
81
+ let [n, i] = t.tag();
82
+ switch (n) {
83
+ case 1:
84
+ o.flowId = t.int64().toBigInt();
85
+ break;
86
+ case 2:
87
+ o.projectId = t.int64().toBigInt();
88
+ break;
89
+ case 3:
90
+ o.type = t.string();
91
+ break;
92
+ case 4:
93
+ o.dataTypes.push(a.internalBinaryRead(t, t.uint32(), r));
94
+ break;
95
+ case 5:
96
+ o.settings.push(c.internalBinaryRead(t, t.uint32(), r));
97
+ break;
98
+ case 6:
99
+ o.startingNodeId = t.int64().toBigInt();
100
+ break;
101
+ case 7:
102
+ o.nodeFunctions.push(l.internalBinaryRead(t, t.uint32(), r));
103
+ break;
104
+ case 8:
105
+ o.projectSlug = t.string();
106
+ break;
107
+ case 9:
108
+ o.disableReason = t.string();
109
+ break;
110
+ case 10:
111
+ o.signature = t.string();
112
+ break;
113
+ default:
114
+ let s = r.readUnknownField;
115
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
116
+ let u = t.skip(i);
117
+ s !== !1 && (s === !0 ? e.onRead : s)(this.typeName, o, n, i, u);
118
+ }
119
+ }
120
+ return o;
121
+ }
122
+ internalBinaryWrite(n, r, i) {
123
+ n.flowId !== 0n && r.tag(1, t.Varint).int64(n.flowId), n.projectId !== 0n && r.tag(2, t.Varint).int64(n.projectId), n.type !== "" && r.tag(3, t.LengthDelimited).string(n.type);
124
+ for (let e = 0; e < n.dataTypes.length; e++) a.internalBinaryWrite(n.dataTypes[e], r.tag(4, t.LengthDelimited).fork(), i).join();
125
+ for (let e = 0; e < n.settings.length; e++) c.internalBinaryWrite(n.settings[e], r.tag(5, t.LengthDelimited).fork(), i).join();
126
+ n.startingNodeId !== 0n && r.tag(6, t.Varint).int64(n.startingNodeId);
127
+ for (let e = 0; e < n.nodeFunctions.length; e++) l.internalBinaryWrite(n.nodeFunctions[e], r.tag(7, t.LengthDelimited).fork(), i).join();
128
+ n.projectSlug !== "" && r.tag(8, t.LengthDelimited).string(n.projectSlug), n.disableReason !== void 0 && r.tag(9, t.LengthDelimited).string(n.disableReason), n.signature !== "" && r.tag(10, t.LengthDelimited).string(n.signature);
129
+ let o = i.writeUnknownFields;
130
+ return o !== !1 && (o == 1 ? e.onWrite : o)(this.typeName, n, r), r;
131
+ }
132
+ }(), s = new class extends r {
133
+ constructor() {
134
+ super("shared.ExecutionFlow", [
135
+ {
136
+ no: 1,
137
+ name: "flow_id",
138
+ kind: "scalar",
139
+ T: 3,
140
+ L: 0
141
+ },
142
+ {
143
+ no: 5,
144
+ name: "project_id",
145
+ kind: "scalar",
146
+ T: 3,
147
+ L: 0
148
+ },
149
+ {
150
+ no: 2,
151
+ name: "starting_node_id",
152
+ kind: "scalar",
153
+ T: 3,
154
+ L: 0
155
+ },
156
+ {
157
+ no: 4,
158
+ name: "node_functions",
159
+ kind: "message",
160
+ repeat: 2,
161
+ T: () => l
162
+ },
163
+ {
164
+ no: 3,
165
+ name: "input_value",
166
+ kind: "message",
167
+ T: () => i
168
+ }
169
+ ]);
170
+ }
171
+ create(e) {
172
+ let t = globalThis.Object.create(this.messagePrototype);
173
+ return t.flowId = 0n, t.projectId = 0n, t.startingNodeId = 0n, t.nodeFunctions = [], e !== void 0 && n(this, t, e), t;
174
+ }
175
+ internalBinaryRead(t, n, r, a) {
176
+ let o = a ?? this.create(), s = t.pos + n;
177
+ for (; t.pos < s;) {
178
+ let [n, a] = t.tag();
179
+ switch (n) {
180
+ case 1:
181
+ o.flowId = t.int64().toBigInt();
182
+ break;
183
+ case 5:
184
+ o.projectId = t.int64().toBigInt();
185
+ break;
186
+ case 2:
187
+ o.startingNodeId = t.int64().toBigInt();
188
+ break;
189
+ case 4:
190
+ o.nodeFunctions.push(l.internalBinaryRead(t, t.uint32(), r));
191
+ break;
192
+ case 3:
193
+ o.inputValue = i.internalBinaryRead(t, t.uint32(), r, o.inputValue);
194
+ break;
195
+ default:
196
+ let s = r.readUnknownField;
197
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
198
+ let c = t.skip(a);
199
+ s !== !1 && (s === !0 ? e.onRead : s)(this.typeName, o, n, a, c);
200
+ }
201
+ }
202
+ return o;
203
+ }
204
+ internalBinaryWrite(n, r, a) {
205
+ n.flowId !== 0n && r.tag(1, t.Varint).int64(n.flowId), n.startingNodeId !== 0n && r.tag(2, t.Varint).int64(n.startingNodeId), n.inputValue && i.internalBinaryWrite(n.inputValue, r.tag(3, t.LengthDelimited).fork(), a).join();
206
+ for (let e = 0; e < n.nodeFunctions.length; e++) l.internalBinaryWrite(n.nodeFunctions[e], r.tag(4, t.LengthDelimited).fork(), a).join();
207
+ n.projectId !== 0n && r.tag(5, t.Varint).int64(n.projectId);
208
+ let o = a.writeUnknownFields;
209
+ return o !== !1 && (o == 1 ? e.onWrite : o)(this.typeName, n, r), r;
210
+ }
211
+ }(), c = new class extends r {
212
+ constructor() {
213
+ super("shared.FlowSetting", [
214
+ {
215
+ no: 1,
216
+ name: "database_id",
217
+ kind: "scalar",
218
+ T: 3,
219
+ L: 0
220
+ },
221
+ {
222
+ no: 2,
223
+ name: "flow_setting_id",
224
+ kind: "scalar",
225
+ T: 9
226
+ },
227
+ {
228
+ no: 3,
229
+ name: "value",
230
+ kind: "message",
231
+ T: () => i
232
+ }
233
+ ]);
234
+ }
235
+ create(e) {
236
+ let t = globalThis.Object.create(this.messagePrototype);
237
+ return t.databaseId = 0n, t.flowSettingId = "", e !== void 0 && n(this, t, e), t;
238
+ }
239
+ internalBinaryRead(t, n, r, a) {
240
+ let o = a ?? this.create(), s = t.pos + n;
241
+ for (; t.pos < s;) {
242
+ let [n, a] = t.tag();
243
+ switch (n) {
244
+ case 1:
245
+ o.databaseId = t.int64().toBigInt();
246
+ break;
247
+ case 2:
248
+ o.flowSettingId = t.string();
249
+ break;
250
+ case 3:
251
+ o.value = i.internalBinaryRead(t, t.uint32(), r, o.value);
252
+ break;
253
+ default:
254
+ let s = r.readUnknownField;
255
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
256
+ let c = t.skip(a);
257
+ s !== !1 && (s === !0 ? e.onRead : s)(this.typeName, o, n, a, c);
258
+ }
259
+ }
260
+ return o;
261
+ }
262
+ internalBinaryWrite(n, r, a) {
263
+ n.databaseId !== 0n && r.tag(1, t.Varint).int64(n.databaseId), n.flowSettingId !== "" && r.tag(2, t.LengthDelimited).string(n.flowSettingId), n.value && i.internalBinaryWrite(n.value, r.tag(3, t.LengthDelimited).fork(), a).join();
264
+ let o = a.writeUnknownFields;
265
+ return o !== !1 && (o == 1 ? e.onWrite : o)(this.typeName, n, r), r;
266
+ }
267
+ }(), l = new class extends r {
268
+ constructor() {
269
+ super("shared.NodeFunction", [
270
+ {
271
+ no: 1,
272
+ name: "database_id",
273
+ kind: "scalar",
274
+ T: 3,
275
+ L: 0
276
+ },
277
+ {
278
+ no: 2,
279
+ name: "runtime_function_id",
280
+ kind: "scalar",
281
+ T: 9
282
+ },
283
+ {
284
+ no: 3,
285
+ name: "parameters",
286
+ kind: "message",
287
+ repeat: 2,
288
+ T: () => d
289
+ },
290
+ {
291
+ no: 4,
292
+ name: "next_node_id",
293
+ kind: "scalar",
294
+ opt: !0,
295
+ T: 3,
296
+ L: 0
297
+ },
298
+ {
299
+ no: 5,
300
+ name: "definition_source",
301
+ kind: "scalar",
302
+ T: 9
303
+ }
304
+ ]);
305
+ }
306
+ create(e) {
307
+ let t = globalThis.Object.create(this.messagePrototype);
308
+ return t.databaseId = 0n, t.runtimeFunctionId = "", t.parameters = [], t.definitionSource = "", e !== void 0 && n(this, t, e), t;
309
+ }
310
+ internalBinaryRead(t, n, r, i) {
311
+ let a = i ?? this.create(), o = t.pos + n;
312
+ for (; t.pos < o;) {
313
+ let [n, i] = t.tag();
314
+ switch (n) {
315
+ case 1:
316
+ a.databaseId = t.int64().toBigInt();
317
+ break;
318
+ case 2:
319
+ a.runtimeFunctionId = t.string();
320
+ break;
321
+ case 3:
322
+ a.parameters.push(d.internalBinaryRead(t, t.uint32(), r));
323
+ break;
324
+ case 4:
325
+ a.nextNodeId = t.int64().toBigInt();
326
+ break;
327
+ case 5:
328
+ a.definitionSource = t.string();
329
+ break;
330
+ default:
331
+ let o = r.readUnknownField;
332
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
333
+ let s = t.skip(i);
334
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
335
+ }
336
+ }
337
+ return a;
338
+ }
339
+ internalBinaryWrite(n, r, i) {
340
+ n.databaseId !== 0n && r.tag(1, t.Varint).int64(n.databaseId), n.runtimeFunctionId !== "" && r.tag(2, t.LengthDelimited).string(n.runtimeFunctionId);
341
+ for (let e = 0; e < n.parameters.length; e++) d.internalBinaryWrite(n.parameters[e], r.tag(3, t.LengthDelimited).fork(), i).join();
342
+ n.nextNodeId !== void 0 && r.tag(4, t.Varint).int64(n.nextNodeId), n.definitionSource !== "" && r.tag(5, t.LengthDelimited).string(n.definitionSource);
343
+ let a = i.writeUnknownFields;
344
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
345
+ }
346
+ }(), u = new class extends r {
347
+ constructor() {
348
+ super("shared.NodeValue", [
349
+ {
350
+ no: 1,
351
+ name: "literal_value",
352
+ kind: "message",
353
+ oneof: "value",
354
+ T: () => i
355
+ },
356
+ {
357
+ no: 2,
358
+ name: "reference_value",
359
+ kind: "message",
360
+ oneof: "value",
361
+ T: () => f
362
+ },
363
+ {
364
+ no: 3,
365
+ name: "node_function_id",
366
+ kind: "scalar",
367
+ oneof: "value",
368
+ T: 3,
369
+ L: 0
370
+ }
371
+ ]);
372
+ }
373
+ create(e) {
374
+ let t = globalThis.Object.create(this.messagePrototype);
375
+ return t.value = { oneofKind: void 0 }, e !== void 0 && n(this, t, e), t;
376
+ }
377
+ internalBinaryRead(t, n, r, a) {
378
+ let o = a ?? this.create(), s = t.pos + n;
379
+ for (; t.pos < s;) {
380
+ let [n, a] = t.tag();
381
+ switch (n) {
382
+ case 1:
383
+ o.value = {
384
+ oneofKind: "literalValue",
385
+ literalValue: i.internalBinaryRead(t, t.uint32(), r, o.value.literalValue)
386
+ };
387
+ break;
388
+ case 2:
389
+ o.value = {
390
+ oneofKind: "referenceValue",
391
+ referenceValue: f.internalBinaryRead(t, t.uint32(), r, o.value.referenceValue)
392
+ };
393
+ break;
394
+ case 3:
395
+ o.value = {
396
+ oneofKind: "nodeFunctionId",
397
+ nodeFunctionId: t.int64().toBigInt()
398
+ };
399
+ break;
400
+ default:
401
+ let s = r.readUnknownField;
402
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
403
+ let c = t.skip(a);
404
+ s !== !1 && (s === !0 ? e.onRead : s)(this.typeName, o, n, a, c);
405
+ }
406
+ }
407
+ return o;
408
+ }
409
+ internalBinaryWrite(n, r, a) {
410
+ n.value.oneofKind === "literalValue" && i.internalBinaryWrite(n.value.literalValue, r.tag(1, t.LengthDelimited).fork(), a).join(), n.value.oneofKind === "referenceValue" && f.internalBinaryWrite(n.value.referenceValue, r.tag(2, t.LengthDelimited).fork(), a).join(), n.value.oneofKind === "nodeFunctionId" && r.tag(3, t.Varint).int64(n.value.nodeFunctionId);
411
+ let o = a.writeUnknownFields;
412
+ return o !== !1 && (o == 1 ? e.onWrite : o)(this.typeName, n, r), r;
413
+ }
414
+ }(), d = new class extends r {
415
+ constructor() {
416
+ super("shared.NodeParameter", [
417
+ {
418
+ no: 1,
419
+ name: "database_id",
420
+ kind: "scalar",
421
+ T: 3,
422
+ L: 0
423
+ },
424
+ {
425
+ no: 2,
426
+ name: "runtime_parameter_id",
427
+ kind: "scalar",
428
+ T: 9
429
+ },
430
+ {
431
+ no: 3,
432
+ name: "value",
433
+ kind: "message",
434
+ T: () => u
435
+ }
436
+ ]);
437
+ }
438
+ create(e) {
439
+ let t = globalThis.Object.create(this.messagePrototype);
440
+ return t.databaseId = 0n, t.runtimeParameterId = "", e !== void 0 && n(this, t, e), t;
441
+ }
442
+ internalBinaryRead(t, n, r, i) {
443
+ let a = i ?? this.create(), o = t.pos + n;
444
+ for (; t.pos < o;) {
445
+ let [n, i] = t.tag();
446
+ switch (n) {
447
+ case 1:
448
+ a.databaseId = t.int64().toBigInt();
449
+ break;
450
+ case 2:
451
+ a.runtimeParameterId = t.string();
452
+ break;
453
+ case 3:
454
+ a.value = u.internalBinaryRead(t, t.uint32(), r, a.value);
455
+ break;
456
+ default:
457
+ let o = r.readUnknownField;
458
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
459
+ let s = t.skip(i);
460
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
461
+ }
462
+ }
463
+ return a;
464
+ }
465
+ internalBinaryWrite(n, r, i) {
466
+ n.databaseId !== 0n && r.tag(1, t.Varint).int64(n.databaseId), n.runtimeParameterId !== "" && r.tag(2, t.LengthDelimited).string(n.runtimeParameterId), n.value && u.internalBinaryWrite(n.value, r.tag(3, t.LengthDelimited).fork(), i).join();
467
+ let a = i.writeUnknownFields;
468
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
469
+ }
470
+ }(), f = new class extends r {
471
+ constructor() {
472
+ super("shared.ReferenceValue", [
473
+ {
474
+ no: 1,
475
+ name: "flow_input",
476
+ kind: "message",
477
+ oneof: "target",
478
+ T: () => p
479
+ },
480
+ {
481
+ no: 2,
482
+ name: "node_id",
483
+ kind: "scalar",
484
+ oneof: "target",
485
+ T: 3,
486
+ L: 0
487
+ },
488
+ {
489
+ no: 3,
490
+ name: "input_type",
491
+ kind: "message",
492
+ oneof: "target",
493
+ T: () => m
494
+ },
495
+ {
496
+ no: 4,
497
+ name: "paths",
498
+ kind: "message",
499
+ repeat: 2,
500
+ T: () => h
501
+ }
502
+ ]);
503
+ }
504
+ create(e) {
505
+ let t = globalThis.Object.create(this.messagePrototype);
506
+ return t.target = { oneofKind: void 0 }, t.paths = [], e !== void 0 && n(this, t, e), t;
507
+ }
508
+ internalBinaryRead(t, n, r, i) {
509
+ let a = i ?? this.create(), o = t.pos + n;
510
+ for (; t.pos < o;) {
511
+ let [n, i] = t.tag();
512
+ switch (n) {
513
+ case 1:
514
+ a.target = {
515
+ oneofKind: "flowInput",
516
+ flowInput: p.internalBinaryRead(t, t.uint32(), r, a.target.flowInput)
517
+ };
518
+ break;
519
+ case 2:
520
+ a.target = {
521
+ oneofKind: "nodeId",
522
+ nodeId: t.int64().toBigInt()
523
+ };
524
+ break;
525
+ case 3:
526
+ a.target = {
527
+ oneofKind: "inputType",
528
+ inputType: m.internalBinaryRead(t, t.uint32(), r, a.target.inputType)
529
+ };
530
+ break;
531
+ case 4:
532
+ a.paths.push(h.internalBinaryRead(t, t.uint32(), r));
533
+ break;
534
+ default:
535
+ let o = r.readUnknownField;
536
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
537
+ let s = t.skip(i);
538
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
539
+ }
540
+ }
541
+ return a;
542
+ }
543
+ internalBinaryWrite(n, r, i) {
544
+ n.target.oneofKind === "flowInput" && p.internalBinaryWrite(n.target.flowInput, r.tag(1, t.LengthDelimited).fork(), i).join(), n.target.oneofKind === "nodeId" && r.tag(2, t.Varint).int64(n.target.nodeId), n.target.oneofKind === "inputType" && m.internalBinaryWrite(n.target.inputType, r.tag(3, t.LengthDelimited).fork(), i).join();
545
+ for (let e = 0; e < n.paths.length; e++) h.internalBinaryWrite(n.paths[e], r.tag(4, t.LengthDelimited).fork(), i).join();
546
+ let a = i.writeUnknownFields;
547
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
548
+ }
549
+ }(), p = new class extends r {
550
+ constructor() {
551
+ super("shared.FlowInput", []);
552
+ }
553
+ create(e) {
554
+ let t = globalThis.Object.create(this.messagePrototype);
555
+ return e !== void 0 && n(this, t, e), t;
556
+ }
557
+ internalBinaryRead(t, n, r, i) {
558
+ let a = i ?? this.create(), o = t.pos + n;
559
+ for (; t.pos < o;) {
560
+ let [n, i] = t.tag();
561
+ switch (n) {
562
+ default:
563
+ let o = r.readUnknownField;
564
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
565
+ let s = t.skip(i);
566
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
567
+ }
568
+ }
569
+ return a;
570
+ }
571
+ internalBinaryWrite(t, n, r) {
572
+ let i = r.writeUnknownFields;
573
+ return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
574
+ }
575
+ }(), m = new class extends r {
576
+ constructor() {
577
+ super("shared.InputType", [
578
+ {
579
+ no: 1,
580
+ name: "node_id",
581
+ kind: "scalar",
582
+ T: 3,
583
+ L: 0
584
+ },
585
+ {
586
+ no: 2,
587
+ name: "parameter_index",
588
+ kind: "scalar",
589
+ T: 3,
590
+ L: 0
591
+ },
592
+ {
593
+ no: 3,
594
+ name: "input_index",
595
+ kind: "scalar",
596
+ T: 3,
597
+ L: 0
598
+ }
599
+ ]);
600
+ }
601
+ create(e) {
602
+ let t = globalThis.Object.create(this.messagePrototype);
603
+ return t.nodeId = 0n, t.parameterIndex = 0n, t.inputIndex = 0n, e !== void 0 && n(this, t, e), t;
604
+ }
605
+ internalBinaryRead(t, n, r, i) {
606
+ let a = i ?? this.create(), o = t.pos + n;
607
+ for (; t.pos < o;) {
608
+ let [n, i] = t.tag();
609
+ switch (n) {
610
+ case 1:
611
+ a.nodeId = t.int64().toBigInt();
612
+ break;
613
+ case 2:
614
+ a.parameterIndex = t.int64().toBigInt();
615
+ break;
616
+ case 3:
617
+ a.inputIndex = t.int64().toBigInt();
618
+ break;
619
+ default:
620
+ let o = r.readUnknownField;
621
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
622
+ let s = t.skip(i);
623
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
624
+ }
625
+ }
626
+ return a;
627
+ }
628
+ internalBinaryWrite(n, r, i) {
629
+ n.nodeId !== 0n && r.tag(1, t.Varint).int64(n.nodeId), n.parameterIndex !== 0n && r.tag(2, t.Varint).int64(n.parameterIndex), n.inputIndex !== 0n && r.tag(3, t.Varint).int64(n.inputIndex);
630
+ let a = i.writeUnknownFields;
631
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
632
+ }
633
+ }(), h = new class extends r {
634
+ constructor() {
635
+ super("shared.ReferencePath", [{
636
+ no: 1,
637
+ name: "path",
638
+ kind: "scalar",
639
+ opt: !0,
640
+ T: 9
641
+ }, {
642
+ no: 2,
643
+ name: "array_index",
644
+ kind: "scalar",
645
+ opt: !0,
646
+ T: 3,
647
+ L: 0
648
+ }]);
649
+ }
650
+ create(e) {
651
+ let t = globalThis.Object.create(this.messagePrototype);
652
+ return e !== void 0 && n(this, t, e), t;
653
+ }
654
+ internalBinaryRead(t, n, r, i) {
655
+ let a = i ?? this.create(), o = t.pos + n;
656
+ for (; t.pos < o;) {
657
+ let [n, i] = t.tag();
658
+ switch (n) {
659
+ case 1:
660
+ a.path = t.string();
661
+ break;
662
+ case 2:
663
+ a.arrayIndex = t.int64().toBigInt();
664
+ break;
665
+ default:
666
+ let o = r.readUnknownField;
667
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
668
+ let s = t.skip(i);
669
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
670
+ }
671
+ }
672
+ return a;
673
+ }
674
+ internalBinaryWrite(n, r, i) {
675
+ n.path !== void 0 && r.tag(1, t.LengthDelimited).string(n.path), n.arrayIndex !== void 0 && r.tag(2, t.Varint).int64(n.arrayIndex);
676
+ let a = i.writeUnknownFields;
677
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
678
+ }
679
+ }(), g = new class extends r {
680
+ constructor() {
681
+ super("shared.Flows", [{
682
+ no: 1,
683
+ name: "flows",
684
+ kind: "message",
685
+ repeat: 2,
686
+ T: () => o
687
+ }]);
688
+ }
689
+ create(e) {
690
+ let t = globalThis.Object.create(this.messagePrototype);
691
+ return t.flows = [], e !== void 0 && n(this, t, e), t;
692
+ }
693
+ internalBinaryRead(t, n, r, i) {
694
+ let a = i ?? this.create(), s = t.pos + n;
695
+ for (; t.pos < s;) {
696
+ let [n, i] = t.tag();
697
+ switch (n) {
698
+ case 1:
699
+ a.flows.push(o.internalBinaryRead(t, t.uint32(), r));
700
+ break;
701
+ default:
702
+ let s = r.readUnknownField;
703
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
704
+ let c = t.skip(i);
705
+ s !== !1 && (s === !0 ? e.onRead : s)(this.typeName, a, n, i, c);
706
+ }
707
+ }
708
+ return a;
709
+ }
710
+ internalBinaryWrite(n, r, i) {
711
+ for (let e = 0; e < n.flows.length; e++) o.internalBinaryWrite(n.flows[e], r.tag(1, t.LengthDelimited).fork(), i).join();
712
+ let a = i.writeUnknownFields;
713
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
714
+ }
715
+ }();
716
+ //#endregion
717
+ export { m as a, u as c, o as d, g as i, h as l, p as n, l as o, c as r, d as s, s as t, f as u };