@code0-tech/tucana 0.0.77 → 0.0.78

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.
@@ -1,1019 +0,0 @@
1
- import { C as e, S as t, h as n, l as r, u as i, v as a, y as o } from "./shared.function_pb-Caz-4jvi.js";
2
- var s = new class extends a {
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: () => n
31
- },
32
- {
33
- no: 5,
34
- name: "settings",
35
- kind: "message",
36
- repeat: 2,
37
- T: () => u
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: () => d
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 && o(this, t, e), t;
77
- }
78
- internalBinaryRead(e, r, i, a) {
79
- let o = a ?? this.create(), s = e.pos + r;
80
- for (; e.pos < s;) {
81
- let [r, a] = e.tag();
82
- switch (r) {
83
- case 1:
84
- o.flowId = e.int64().toBigInt();
85
- break;
86
- case 2:
87
- o.projectId = e.int64().toBigInt();
88
- break;
89
- case 3:
90
- o.type = e.string();
91
- break;
92
- case 4:
93
- o.dataTypes.push(n.internalBinaryRead(e, e.uint32(), i));
94
- break;
95
- case 5:
96
- o.settings.push(u.internalBinaryRead(e, e.uint32(), i));
97
- break;
98
- case 6:
99
- o.startingNodeId = e.int64().toBigInt();
100
- break;
101
- case 7:
102
- o.nodeFunctions.push(d.internalBinaryRead(e, e.uint32(), i));
103
- break;
104
- case 8:
105
- o.projectSlug = e.string();
106
- break;
107
- case 9:
108
- o.disableReason = e.string();
109
- break;
110
- case 10:
111
- o.signature = e.string();
112
- break;
113
- default:
114
- let s = i.readUnknownField;
115
- if (s === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);
116
- let c = e.skip(a);
117
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, r, a, c);
118
- }
119
- }
120
- return o;
121
- }
122
- internalBinaryWrite(r, i, a) {
123
- r.flowId !== 0n && i.tag(1, e.Varint).int64(r.flowId), r.projectId !== 0n && i.tag(2, e.Varint).int64(r.projectId), r.type !== "" && i.tag(3, e.LengthDelimited).string(r.type);
124
- for (let t = 0; t < r.dataTypes.length; t++) n.internalBinaryWrite(r.dataTypes[t], i.tag(4, e.LengthDelimited).fork(), a).join();
125
- for (let t = 0; t < r.settings.length; t++) u.internalBinaryWrite(r.settings[t], i.tag(5, e.LengthDelimited).fork(), a).join();
126
- r.startingNodeId !== 0n && i.tag(6, e.Varint).int64(r.startingNodeId);
127
- for (let t = 0; t < r.nodeFunctions.length; t++) d.internalBinaryWrite(r.nodeFunctions[t], i.tag(7, e.LengthDelimited).fork(), a).join();
128
- r.projectSlug !== "" && i.tag(8, e.LengthDelimited).string(r.projectSlug), r.disableReason !== void 0 && i.tag(9, e.LengthDelimited).string(r.disableReason), r.signature !== "" && i.tag(10, e.LengthDelimited).string(r.signature);
129
- let o = a.writeUnknownFields;
130
- return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, r, i), i;
131
- }
132
- }(), c = new class extends a {
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: () => d
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 && o(this, t, e), t;
174
- }
175
- internalBinaryRead(e, n, r, a) {
176
- let o = a ?? this.create(), s = e.pos + n;
177
- for (; e.pos < s;) {
178
- let [n, a] = e.tag();
179
- switch (n) {
180
- case 1:
181
- o.flowId = e.int64().toBigInt();
182
- break;
183
- case 5:
184
- o.projectId = e.int64().toBigInt();
185
- break;
186
- case 2:
187
- o.startingNodeId = e.int64().toBigInt();
188
- break;
189
- case 4:
190
- o.nodeFunctions.push(d.internalBinaryRead(e, e.uint32(), r));
191
- break;
192
- case 3:
193
- o.inputValue = i.internalBinaryRead(e, e.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 = e.skip(a);
199
- s !== !1 && (s === !0 ? t.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, e.Varint).int64(n.flowId), n.startingNodeId !== 0n && r.tag(2, e.Varint).int64(n.startingNodeId), n.inputValue && i.internalBinaryWrite(n.inputValue, r.tag(3, e.LengthDelimited).fork(), a).join();
206
- for (let t = 0; t < n.nodeFunctions.length; t++) d.internalBinaryWrite(n.nodeFunctions[t], r.tag(4, e.LengthDelimited).fork(), a).join();
207
- n.projectId !== 0n && r.tag(5, e.Varint).int64(n.projectId);
208
- let o = a.writeUnknownFields;
209
- return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
210
- }
211
- }(), l = new class extends a {
212
- constructor() {
213
- super("shared.GenerationFlow", [
214
- {
215
- no: 1,
216
- name: "name",
217
- kind: "scalar",
218
- T: 9
219
- },
220
- {
221
- no: 2,
222
- name: "type",
223
- kind: "scalar",
224
- T: 9
225
- },
226
- {
227
- no: 3,
228
- name: "starting_node_id",
229
- kind: "scalar",
230
- T: 9
231
- },
232
- {
233
- no: 4,
234
- name: "node_functions",
235
- kind: "message",
236
- repeat: 2,
237
- T: () => d
238
- },
239
- {
240
- no: 5,
241
- name: "settings",
242
- kind: "message",
243
- repeat: 2,
244
- T: () => u
245
- }
246
- ]);
247
- }
248
- create(e) {
249
- let t = globalThis.Object.create(this.messagePrototype);
250
- return t.name = "", t.type = "", t.startingNodeId = "", t.nodeFunctions = [], t.settings = [], e !== void 0 && o(this, t, e), t;
251
- }
252
- internalBinaryRead(e, n, r, i) {
253
- let a = i ?? this.create(), o = e.pos + n;
254
- for (; e.pos < o;) {
255
- let [n, i] = e.tag();
256
- switch (n) {
257
- case 1:
258
- a.name = e.string();
259
- break;
260
- case 2:
261
- a.type = e.string();
262
- break;
263
- case 3:
264
- a.startingNodeId = e.string();
265
- break;
266
- case 4:
267
- a.nodeFunctions.push(d.internalBinaryRead(e, e.uint32(), r));
268
- break;
269
- case 5:
270
- a.settings.push(u.internalBinaryRead(e, e.uint32(), r));
271
- break;
272
- default:
273
- let o = r.readUnknownField;
274
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
275
- let s = e.skip(i);
276
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
277
- }
278
- }
279
- return a;
280
- }
281
- internalBinaryWrite(n, r, i) {
282
- n.name !== "" && r.tag(1, e.LengthDelimited).string(n.name), n.type !== "" && r.tag(2, e.LengthDelimited).string(n.type), n.startingNodeId !== "" && r.tag(3, e.LengthDelimited).string(n.startingNodeId);
283
- for (let t = 0; t < n.nodeFunctions.length; t++) d.internalBinaryWrite(n.nodeFunctions[t], r.tag(4, e.LengthDelimited).fork(), i).join();
284
- for (let t = 0; t < n.settings.length; t++) u.internalBinaryWrite(n.settings[t], r.tag(5, e.LengthDelimited).fork(), i).join();
285
- let a = i.writeUnknownFields;
286
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
287
- }
288
- }(), u = new class extends a {
289
- constructor() {
290
- super("shared.FlowSetting", [
291
- {
292
- no: 1,
293
- name: "database_id",
294
- kind: "scalar",
295
- opt: !0,
296
- T: 3,
297
- L: 0
298
- },
299
- {
300
- no: 2,
301
- name: "flow_setting_id",
302
- kind: "scalar",
303
- T: 9
304
- },
305
- {
306
- no: 3,
307
- name: "value",
308
- kind: "message",
309
- T: () => i
310
- },
311
- {
312
- no: 4,
313
- name: "cast",
314
- kind: "scalar",
315
- opt: !0,
316
- T: 9
317
- }
318
- ]);
319
- }
320
- create(e) {
321
- let t = globalThis.Object.create(this.messagePrototype);
322
- return t.flowSettingId = "", e !== void 0 && o(this, t, e), t;
323
- }
324
- internalBinaryRead(e, n, r, a) {
325
- let o = a ?? this.create(), s = e.pos + n;
326
- for (; e.pos < s;) {
327
- let [n, a] = e.tag();
328
- switch (n) {
329
- case 1:
330
- o.databaseId = e.int64().toBigInt();
331
- break;
332
- case 2:
333
- o.flowSettingId = e.string();
334
- break;
335
- case 3:
336
- o.value = i.internalBinaryRead(e, e.uint32(), r, o.value);
337
- break;
338
- case 4:
339
- o.cast = e.string();
340
- break;
341
- default:
342
- let s = r.readUnknownField;
343
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
344
- let c = e.skip(a);
345
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, a, c);
346
- }
347
- }
348
- return o;
349
- }
350
- internalBinaryWrite(n, r, a) {
351
- n.databaseId !== void 0 && r.tag(1, e.Varint).int64(n.databaseId), n.flowSettingId !== "" && r.tag(2, e.LengthDelimited).string(n.flowSettingId), n.value && i.internalBinaryWrite(n.value, r.tag(3, e.LengthDelimited).fork(), a).join(), n.cast !== void 0 && r.tag(4, e.LengthDelimited).string(n.cast);
352
- let o = a.writeUnknownFields;
353
- return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
354
- }
355
- }(), d = new class extends a {
356
- constructor() {
357
- super("shared.NodeFunction", [
358
- {
359
- no: 1,
360
- name: "database_id",
361
- kind: "scalar",
362
- opt: !0,
363
- T: 3,
364
- L: 0
365
- },
366
- {
367
- no: 2,
368
- name: "runtime_function_id",
369
- kind: "scalar",
370
- T: 9
371
- },
372
- {
373
- no: 3,
374
- name: "parameters",
375
- kind: "message",
376
- repeat: 2,
377
- T: () => p
378
- },
379
- {
380
- no: 4,
381
- name: "next_node_id",
382
- kind: "scalar",
383
- opt: !0,
384
- T: 3,
385
- L: 0
386
- },
387
- {
388
- no: 5,
389
- name: "definition_source",
390
- kind: "scalar",
391
- opt: !0,
392
- T: 9
393
- }
394
- ]);
395
- }
396
- create(e) {
397
- let t = globalThis.Object.create(this.messagePrototype);
398
- return t.runtimeFunctionId = "", t.parameters = [], e !== void 0 && o(this, t, e), t;
399
- }
400
- internalBinaryRead(e, n, r, i) {
401
- let a = i ?? this.create(), o = e.pos + n;
402
- for (; e.pos < o;) {
403
- let [n, i] = e.tag();
404
- switch (n) {
405
- case 1:
406
- a.databaseId = e.int64().toBigInt();
407
- break;
408
- case 2:
409
- a.runtimeFunctionId = e.string();
410
- break;
411
- case 3:
412
- a.parameters.push(p.internalBinaryRead(e, e.uint32(), r));
413
- break;
414
- case 4:
415
- a.nextNodeId = e.int64().toBigInt();
416
- break;
417
- case 5:
418
- a.definitionSource = e.string();
419
- break;
420
- default:
421
- let o = r.readUnknownField;
422
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
423
- let s = e.skip(i);
424
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
425
- }
426
- }
427
- return a;
428
- }
429
- internalBinaryWrite(n, r, i) {
430
- n.databaseId !== void 0 && r.tag(1, e.Varint).int64(n.databaseId), n.runtimeFunctionId !== "" && r.tag(2, e.LengthDelimited).string(n.runtimeFunctionId);
431
- for (let t = 0; t < n.parameters.length; t++) p.internalBinaryWrite(n.parameters[t], r.tag(3, e.LengthDelimited).fork(), i).join();
432
- n.nextNodeId !== void 0 && r.tag(4, e.Varint).int64(n.nextNodeId), n.definitionSource !== void 0 && r.tag(5, e.LengthDelimited).string(n.definitionSource);
433
- let a = i.writeUnknownFields;
434
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
435
- }
436
- }(), f = new class extends a {
437
- constructor() {
438
- super("shared.NodeValue", [
439
- {
440
- no: 1,
441
- name: "literal_value",
442
- kind: "message",
443
- oneof: "value",
444
- T: () => i
445
- },
446
- {
447
- no: 2,
448
- name: "reference_value",
449
- kind: "message",
450
- oneof: "value",
451
- T: () => m
452
- },
453
- {
454
- no: 3,
455
- name: "sub_flow",
456
- kind: "message",
457
- oneof: "value",
458
- T: () => h
459
- }
460
- ]);
461
- }
462
- create(e) {
463
- let t = globalThis.Object.create(this.messagePrototype);
464
- return t.value = { oneofKind: void 0 }, e !== void 0 && o(this, t, e), t;
465
- }
466
- internalBinaryRead(e, n, r, a) {
467
- let o = a ?? this.create(), s = e.pos + n;
468
- for (; e.pos < s;) {
469
- let [n, a] = e.tag();
470
- switch (n) {
471
- case 1:
472
- o.value = {
473
- oneofKind: "literalValue",
474
- literalValue: i.internalBinaryRead(e, e.uint32(), r, o.value.literalValue)
475
- };
476
- break;
477
- case 2:
478
- o.value = {
479
- oneofKind: "referenceValue",
480
- referenceValue: m.internalBinaryRead(e, e.uint32(), r, o.value.referenceValue)
481
- };
482
- break;
483
- case 3:
484
- o.value = {
485
- oneofKind: "subFlow",
486
- subFlow: h.internalBinaryRead(e, e.uint32(), r, o.value.subFlow)
487
- };
488
- break;
489
- default:
490
- let s = r.readUnknownField;
491
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
492
- let c = e.skip(a);
493
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, a, c);
494
- }
495
- }
496
- return o;
497
- }
498
- internalBinaryWrite(n, r, a) {
499
- n.value.oneofKind === "literalValue" && i.internalBinaryWrite(n.value.literalValue, r.tag(1, e.LengthDelimited).fork(), a).join(), n.value.oneofKind === "referenceValue" && m.internalBinaryWrite(n.value.referenceValue, r.tag(2, e.LengthDelimited).fork(), a).join(), n.value.oneofKind === "subFlow" && h.internalBinaryWrite(n.value.subFlow, r.tag(3, e.LengthDelimited).fork(), a).join();
500
- let o = a.writeUnknownFields;
501
- return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
502
- }
503
- }(), p = new class extends a {
504
- constructor() {
505
- super("shared.NodeParameter", [
506
- {
507
- no: 1,
508
- name: "database_id",
509
- kind: "scalar",
510
- T: 3,
511
- L: 0
512
- },
513
- {
514
- no: 2,
515
- name: "runtime_parameter_id",
516
- kind: "scalar",
517
- T: 9
518
- },
519
- {
520
- no: 3,
521
- name: "value",
522
- kind: "message",
523
- T: () => f
524
- },
525
- {
526
- no: 4,
527
- name: "cast",
528
- kind: "scalar",
529
- opt: !0,
530
- T: 9
531
- }
532
- ]);
533
- }
534
- create(e) {
535
- let t = globalThis.Object.create(this.messagePrototype);
536
- return t.databaseId = 0n, t.runtimeParameterId = "", e !== void 0 && o(this, t, e), t;
537
- }
538
- internalBinaryRead(e, n, r, i) {
539
- let a = i ?? this.create(), o = e.pos + n;
540
- for (; e.pos < o;) {
541
- let [n, i] = e.tag();
542
- switch (n) {
543
- case 1:
544
- a.databaseId = e.int64().toBigInt();
545
- break;
546
- case 2:
547
- a.runtimeParameterId = e.string();
548
- break;
549
- case 3:
550
- a.value = f.internalBinaryRead(e, e.uint32(), r, a.value);
551
- break;
552
- case 4:
553
- a.cast = e.string();
554
- break;
555
- default:
556
- let o = r.readUnknownField;
557
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
558
- let s = e.skip(i);
559
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
560
- }
561
- }
562
- return a;
563
- }
564
- internalBinaryWrite(n, r, i) {
565
- n.databaseId !== 0n && r.tag(1, e.Varint).int64(n.databaseId), n.runtimeParameterId !== "" && r.tag(2, e.LengthDelimited).string(n.runtimeParameterId), n.value && f.internalBinaryWrite(n.value, r.tag(3, e.LengthDelimited).fork(), i).join(), n.cast !== void 0 && r.tag(4, e.LengthDelimited).string(n.cast);
566
- let a = i.writeUnknownFields;
567
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
568
- }
569
- }(), m = new class extends a {
570
- constructor() {
571
- super("shared.ReferenceValue", [
572
- {
573
- no: 1,
574
- name: "flow_input",
575
- kind: "message",
576
- oneof: "target",
577
- T: () => v
578
- },
579
- {
580
- no: 2,
581
- name: "node_id",
582
- kind: "scalar",
583
- oneof: "target",
584
- T: 3,
585
- L: 0
586
- },
587
- {
588
- no: 3,
589
- name: "input_type",
590
- kind: "message",
591
- oneof: "target",
592
- T: () => y
593
- },
594
- {
595
- no: 4,
596
- name: "paths",
597
- kind: "message",
598
- repeat: 2,
599
- T: () => b
600
- }
601
- ]);
602
- }
603
- create(e) {
604
- let t = globalThis.Object.create(this.messagePrototype);
605
- return t.target = { oneofKind: void 0 }, t.paths = [], e !== void 0 && o(this, t, e), t;
606
- }
607
- internalBinaryRead(e, n, r, i) {
608
- let a = i ?? this.create(), o = e.pos + n;
609
- for (; e.pos < o;) {
610
- let [n, i] = e.tag();
611
- switch (n) {
612
- case 1:
613
- a.target = {
614
- oneofKind: "flowInput",
615
- flowInput: v.internalBinaryRead(e, e.uint32(), r, a.target.flowInput)
616
- };
617
- break;
618
- case 2:
619
- a.target = {
620
- oneofKind: "nodeId",
621
- nodeId: e.int64().toBigInt()
622
- };
623
- break;
624
- case 3:
625
- a.target = {
626
- oneofKind: "inputType",
627
- inputType: y.internalBinaryRead(e, e.uint32(), r, a.target.inputType)
628
- };
629
- break;
630
- case 4:
631
- a.paths.push(b.internalBinaryRead(e, e.uint32(), r));
632
- break;
633
- default:
634
- let o = r.readUnknownField;
635
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
636
- let s = e.skip(i);
637
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
638
- }
639
- }
640
- return a;
641
- }
642
- internalBinaryWrite(n, r, i) {
643
- n.target.oneofKind === "flowInput" && v.internalBinaryWrite(n.target.flowInput, r.tag(1, e.LengthDelimited).fork(), i).join(), n.target.oneofKind === "nodeId" && r.tag(2, e.Varint).int64(n.target.nodeId), n.target.oneofKind === "inputType" && y.internalBinaryWrite(n.target.inputType, r.tag(3, e.LengthDelimited).fork(), i).join();
644
- for (let t = 0; t < n.paths.length; t++) b.internalBinaryWrite(n.paths[t], r.tag(4, e.LengthDelimited).fork(), i).join();
645
- let a = i.writeUnknownFields;
646
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
647
- }
648
- }(), h = new class extends a {
649
- constructor() {
650
- super("shared.SubFlow", [
651
- {
652
- no: 1,
653
- name: "starting_node_id",
654
- kind: "scalar",
655
- oneof: "executionReference",
656
- T: 3,
657
- L: 0
658
- },
659
- {
660
- no: 2,
661
- name: "function",
662
- kind: "message",
663
- oneof: "executionReference",
664
- T: () => g
665
- },
666
- {
667
- no: 3,
668
- name: "input_schema",
669
- kind: "message",
670
- T: () => r
671
- },
672
- {
673
- no: 4,
674
- name: "output_schema",
675
- kind: "message",
676
- T: () => r
677
- },
678
- {
679
- no: 5,
680
- name: "signature",
681
- kind: "scalar",
682
- T: 9
683
- },
684
- {
685
- no: 6,
686
- name: "settings",
687
- kind: "message",
688
- repeat: 2,
689
- T: () => _
690
- }
691
- ]);
692
- }
693
- create(e) {
694
- let t = globalThis.Object.create(this.messagePrototype);
695
- return t.executionReference = { oneofKind: void 0 }, t.signature = "", t.settings = [], e !== void 0 && o(this, t, e), t;
696
- }
697
- internalBinaryRead(e, n, i, a) {
698
- let o = a ?? this.create(), s = e.pos + n;
699
- for (; e.pos < s;) {
700
- let [n, a] = e.tag();
701
- switch (n) {
702
- case 1:
703
- o.executionReference = {
704
- oneofKind: "startingNodeId",
705
- startingNodeId: e.int64().toBigInt()
706
- };
707
- break;
708
- case 2:
709
- o.executionReference = {
710
- oneofKind: "function",
711
- function: g.internalBinaryRead(e, e.uint32(), i, o.executionReference.function)
712
- };
713
- break;
714
- case 3:
715
- o.inputSchema = r.internalBinaryRead(e, e.uint32(), i, o.inputSchema);
716
- break;
717
- case 4:
718
- o.outputSchema = r.internalBinaryRead(e, e.uint32(), i, o.outputSchema);
719
- break;
720
- case 5:
721
- o.signature = e.string();
722
- break;
723
- case 6:
724
- o.settings.push(_.internalBinaryRead(e, e.uint32(), i));
725
- break;
726
- default:
727
- let s = i.readUnknownField;
728
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
729
- let c = e.skip(a);
730
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, a, c);
731
- }
732
- }
733
- return o;
734
- }
735
- internalBinaryWrite(n, i, a) {
736
- n.executionReference.oneofKind === "startingNodeId" && i.tag(1, e.Varint).int64(n.executionReference.startingNodeId), n.executionReference.oneofKind === "function" && g.internalBinaryWrite(n.executionReference.function, i.tag(2, e.LengthDelimited).fork(), a).join(), n.inputSchema && r.internalBinaryWrite(n.inputSchema, i.tag(3, e.LengthDelimited).fork(), a).join(), n.outputSchema && r.internalBinaryWrite(n.outputSchema, i.tag(4, e.LengthDelimited).fork(), a).join(), n.signature !== "" && i.tag(5, e.LengthDelimited).string(n.signature);
737
- for (let t = 0; t < n.settings.length; t++) _.internalBinaryWrite(n.settings[t], i.tag(6, e.LengthDelimited).fork(), a).join();
738
- let o = a.writeUnknownFields;
739
- return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, i), i;
740
- }
741
- }(), g = new class extends a {
742
- constructor() {
743
- super("shared.SubFlow.SubFlowFunction", [{
744
- no: 1,
745
- name: "function_identifier",
746
- kind: "scalar",
747
- T: 9
748
- }, {
749
- no: 2,
750
- name: "definition_source",
751
- kind: "scalar",
752
- opt: !0,
753
- T: 9
754
- }]);
755
- }
756
- create(e) {
757
- let t = globalThis.Object.create(this.messagePrototype);
758
- return t.functionIdentifier = "", e !== void 0 && o(this, t, e), t;
759
- }
760
- internalBinaryRead(e, n, r, i) {
761
- let a = i ?? this.create(), o = e.pos + n;
762
- for (; e.pos < o;) {
763
- let [n, i] = e.tag();
764
- switch (n) {
765
- case 1:
766
- a.functionIdentifier = e.string();
767
- break;
768
- case 2:
769
- a.definitionSource = e.string();
770
- break;
771
- default:
772
- let o = r.readUnknownField;
773
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
774
- let s = e.skip(i);
775
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
776
- }
777
- }
778
- return a;
779
- }
780
- internalBinaryWrite(n, r, i) {
781
- n.functionIdentifier !== "" && r.tag(1, e.LengthDelimited).string(n.functionIdentifier), n.definitionSource !== void 0 && r.tag(2, e.LengthDelimited).string(n.definitionSource);
782
- let a = i.writeUnknownFields;
783
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
784
- }
785
- }(), _ = new class extends a {
786
- constructor() {
787
- super("shared.SubFlowSetting", [
788
- {
789
- no: 1,
790
- name: "identifier",
791
- kind: "scalar",
792
- T: 9
793
- },
794
- {
795
- no: 2,
796
- name: "default_value",
797
- kind: "message",
798
- T: () => i
799
- },
800
- {
801
- no: 3,
802
- name: "optional",
803
- kind: "scalar",
804
- opt: !0,
805
- T: 8
806
- },
807
- {
808
- no: 4,
809
- name: "hidden",
810
- kind: "scalar",
811
- opt: !0,
812
- T: 8
813
- }
814
- ]);
815
- }
816
- create(e) {
817
- let t = globalThis.Object.create(this.messagePrototype);
818
- return t.identifier = "", e !== void 0 && o(this, t, e), t;
819
- }
820
- internalBinaryRead(e, n, r, a) {
821
- let o = a ?? this.create(), s = e.pos + n;
822
- for (; e.pos < s;) {
823
- let [n, a] = e.tag();
824
- switch (n) {
825
- case 1:
826
- o.identifier = e.string();
827
- break;
828
- case 2:
829
- o.defaultValue = i.internalBinaryRead(e, e.uint32(), r, o.defaultValue);
830
- break;
831
- case 3:
832
- o.optional = e.bool();
833
- break;
834
- case 4:
835
- o.hidden = e.bool();
836
- break;
837
- default:
838
- let s = r.readUnknownField;
839
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
840
- let c = e.skip(a);
841
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, a, c);
842
- }
843
- }
844
- return o;
845
- }
846
- internalBinaryWrite(n, r, a) {
847
- n.identifier !== "" && r.tag(1, e.LengthDelimited).string(n.identifier), n.defaultValue && i.internalBinaryWrite(n.defaultValue, r.tag(2, e.LengthDelimited).fork(), a).join(), n.optional !== void 0 && r.tag(3, e.Varint).bool(n.optional), n.hidden !== void 0 && r.tag(4, e.Varint).bool(n.hidden);
848
- let o = a.writeUnknownFields;
849
- return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
850
- }
851
- }(), v = new class extends a {
852
- constructor() {
853
- super("shared.FlowInput", []);
854
- }
855
- create(e) {
856
- let t = globalThis.Object.create(this.messagePrototype);
857
- return e !== void 0 && o(this, t, e), t;
858
- }
859
- internalBinaryRead(e, n, r, i) {
860
- let a = i ?? this.create(), o = e.pos + n;
861
- for (; e.pos < o;) {
862
- let [n, i] = e.tag();
863
- switch (n) {
864
- default:
865
- let o = r.readUnknownField;
866
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
867
- let s = e.skip(i);
868
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
869
- }
870
- }
871
- return a;
872
- }
873
- internalBinaryWrite(e, n, r) {
874
- let i = r.writeUnknownFields;
875
- return i !== !1 && (i == 1 ? t.onWrite : i)(this.typeName, e, n), n;
876
- }
877
- }(), y = new class extends a {
878
- constructor() {
879
- super("shared.InputType", [
880
- {
881
- no: 1,
882
- name: "node_id",
883
- kind: "scalar",
884
- T: 3,
885
- L: 0
886
- },
887
- {
888
- no: 2,
889
- name: "parameter_index",
890
- kind: "scalar",
891
- T: 3,
892
- L: 0
893
- },
894
- {
895
- no: 3,
896
- name: "input_index",
897
- kind: "scalar",
898
- T: 3,
899
- L: 0
900
- }
901
- ]);
902
- }
903
- create(e) {
904
- let t = globalThis.Object.create(this.messagePrototype);
905
- return t.nodeId = 0n, t.parameterIndex = 0n, t.inputIndex = 0n, e !== void 0 && o(this, t, e), t;
906
- }
907
- internalBinaryRead(e, n, r, i) {
908
- let a = i ?? this.create(), o = e.pos + n;
909
- for (; e.pos < o;) {
910
- let [n, i] = e.tag();
911
- switch (n) {
912
- case 1:
913
- a.nodeId = e.int64().toBigInt();
914
- break;
915
- case 2:
916
- a.parameterIndex = e.int64().toBigInt();
917
- break;
918
- case 3:
919
- a.inputIndex = e.int64().toBigInt();
920
- break;
921
- default:
922
- let o = r.readUnknownField;
923
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
924
- let s = e.skip(i);
925
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
926
- }
927
- }
928
- return a;
929
- }
930
- internalBinaryWrite(n, r, i) {
931
- n.nodeId !== 0n && r.tag(1, e.Varint).int64(n.nodeId), n.parameterIndex !== 0n && r.tag(2, e.Varint).int64(n.parameterIndex), n.inputIndex !== 0n && r.tag(3, e.Varint).int64(n.inputIndex);
932
- let a = i.writeUnknownFields;
933
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
934
- }
935
- }(), b = new class extends a {
936
- constructor() {
937
- super("shared.ReferencePath", [{
938
- no: 1,
939
- name: "path",
940
- kind: "scalar",
941
- opt: !0,
942
- T: 9
943
- }, {
944
- no: 2,
945
- name: "array_index",
946
- kind: "scalar",
947
- opt: !0,
948
- T: 3,
949
- L: 0
950
- }]);
951
- }
952
- create(e) {
953
- let t = globalThis.Object.create(this.messagePrototype);
954
- return e !== void 0 && o(this, t, e), t;
955
- }
956
- internalBinaryRead(e, n, r, i) {
957
- let a = i ?? this.create(), o = e.pos + n;
958
- for (; e.pos < o;) {
959
- let [n, i] = e.tag();
960
- switch (n) {
961
- case 1:
962
- a.path = e.string();
963
- break;
964
- case 2:
965
- a.arrayIndex = e.int64().toBigInt();
966
- break;
967
- default:
968
- let o = r.readUnknownField;
969
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
970
- let s = e.skip(i);
971
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
972
- }
973
- }
974
- return a;
975
- }
976
- internalBinaryWrite(n, r, i) {
977
- n.path !== void 0 && r.tag(1, e.LengthDelimited).string(n.path), n.arrayIndex !== void 0 && r.tag(2, e.Varint).int64(n.arrayIndex);
978
- let a = i.writeUnknownFields;
979
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
980
- }
981
- }(), x = new class extends a {
982
- constructor() {
983
- super("shared.Flows", [{
984
- no: 1,
985
- name: "flows",
986
- kind: "message",
987
- repeat: 2,
988
- T: () => s
989
- }]);
990
- }
991
- create(e) {
992
- let t = globalThis.Object.create(this.messagePrototype);
993
- return t.flows = [], e !== void 0 && o(this, t, e), t;
994
- }
995
- internalBinaryRead(e, n, r, i) {
996
- let a = i ?? this.create(), o = e.pos + n;
997
- for (; e.pos < o;) {
998
- let [n, i] = e.tag();
999
- switch (n) {
1000
- case 1:
1001
- a.flows.push(s.internalBinaryRead(e, e.uint32(), r));
1002
- break;
1003
- default:
1004
- let o = r.readUnknownField;
1005
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
1006
- let c = e.skip(i);
1007
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, c);
1008
- }
1009
- }
1010
- return a;
1011
- }
1012
- internalBinaryWrite(n, r, i) {
1013
- for (let t = 0; t < n.flows.length; t++) s.internalBinaryWrite(n.flows[t], r.tag(1, e.LengthDelimited).fork(), i).join();
1014
- let a = i.writeUnknownFields;
1015
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
1016
- }
1017
- }();
1018
- //#endregion
1019
- export { l as a, p as c, m as d, h as f, s as h, x as i, f as l, g as m, v as n, y as o, _ as p, u as r, d as s, c as t, b as u };