@code0-tech/tucana 0.0.62 → 0.0.65

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 (119) hide show
  1. package/dist/aquila.cjs.js +1 -0
  2. package/dist/aquila.d.ts +2 -0
  3. package/dist/aquila.es.js +858 -0
  4. package/dist/helpers/helpers.d.ts +1 -0
  5. package/{helpers → dist/helpers}/shared.struct_helper.d.ts +2 -2
  6. package/dist/helpers.cjs.js +1 -0
  7. package/dist/helpers.d.ts +2 -0
  8. package/dist/helpers.es.js +61 -0
  9. package/{pb → dist/pb}/_generated/aquila.action_pb.client.d.ts +7 -12
  10. package/{pb → dist/pb}/_generated/aquila.action_pb.d.ts +5 -14
  11. package/{pb → dist/pb}/_generated/aquila.data_type_pb.client.d.ts +7 -12
  12. package/{pb → dist/pb}/_generated/aquila.data_type_pb.d.ts +4 -11
  13. package/{pb → dist/pb}/_generated/aquila.flow_type_pb.client.d.ts +7 -12
  14. package/{pb → dist/pb}/_generated/aquila.flow_type_pb.d.ts +4 -11
  15. package/{pb → dist/pb}/_generated/aquila.runtime_function_pb.client.d.ts +7 -12
  16. package/{pb → dist/pb}/_generated/aquila.runtime_function_pb.d.ts +4 -11
  17. package/{pb → dist/pb}/_generated/aquila.runtime_status_pb.client.d.ts +7 -12
  18. package/{pb → dist/pb}/_generated/aquila.runtime_status_pb.d.ts +4 -12
  19. package/{pb → dist/pb}/_generated/aquila.runtime_usage_pb.client.d.ts +7 -12
  20. package/{pb → dist/pb}/_generated/aquila.runtime_usage_pb.d.ts +4 -11
  21. package/{pb → dist/pb}/_generated/sagittarius.action_configuration_pb.client.d.ts +7 -12
  22. package/{pb → dist/pb}/_generated/sagittarius.action_configuration_pb.d.ts +4 -11
  23. package/{pb → dist/pb}/_generated/sagittarius.data_type_pb.client.d.ts +7 -12
  24. package/{pb → dist/pb}/_generated/sagittarius.data_type_pb.d.ts +4 -11
  25. package/{pb → dist/pb}/_generated/sagittarius.flow_pb.client.d.ts +7 -12
  26. package/{pb → dist/pb}/_generated/sagittarius.flow_pb.d.ts +5 -13
  27. package/{pb → dist/pb}/_generated/sagittarius.flow_type_pb.client.d.ts +7 -12
  28. package/{pb → dist/pb}/_generated/sagittarius.flow_type_pb.d.ts +4 -11
  29. package/{pb → dist/pb}/_generated/sagittarius.ping_pb.client.d.ts +7 -11
  30. package/{pb → dist/pb}/_generated/sagittarius.ping_pb.d.ts +3 -10
  31. package/{pb → dist/pb}/_generated/sagittarius.runtime_function_pb.client.d.ts +7 -12
  32. package/{pb → dist/pb}/_generated/sagittarius.runtime_function_pb.d.ts +4 -11
  33. package/{pb → dist/pb}/_generated/sagittarius.runtime_status_pb.client.d.ts +7 -12
  34. package/{pb → dist/pb}/_generated/sagittarius.runtime_status_pb.d.ts +4 -12
  35. package/{pb → dist/pb}/_generated/sagittarius.runtime_usage_pb.client.d.ts +7 -12
  36. package/{pb → dist/pb}/_generated/sagittarius.runtime_usage_pb.d.ts +4 -11
  37. package/dist/pb/_generated/sagittarius.text_execution_pb.client.d.ts +27 -0
  38. package/{pb → dist/pb}/_generated/sagittarius.text_execution_pb.d.ts +4 -11
  39. package/{pb → dist/pb}/_generated/shared.action_configuration_pb.d.ts +3 -11
  40. package/{pb → dist/pb}/_generated/shared.data_type_pb.d.ts +2 -10
  41. package/{pb → dist/pb}/_generated/shared.flow_definition_pb.d.ts +35 -47
  42. package/{pb → dist/pb}/_generated/shared.flow_pb.d.ts +12 -24
  43. package/{pb → dist/pb}/_generated/shared.runtime_function_pb.d.ts +3 -11
  44. package/{pb → dist/pb}/_generated/shared.runtime_status_pb.d.ts +52 -32
  45. package/{pb → dist/pb}/_generated/shared.runtime_usage_pb.d.ts +1 -9
  46. package/{pb → dist/pb}/_generated/shared.struct_pb.d.ts +62 -55
  47. package/{pb → dist/pb}/_generated/shared.translation_pb.d.ts +1 -9
  48. package/dist/pb/aquila.d.ts +12 -0
  49. package/dist/pb/sagittarius.d.ts +18 -0
  50. package/dist/pb/shared.d.ts +9 -0
  51. package/dist/rpc-interceptor-DARwxsWH.cjs +1 -0
  52. package/dist/rpc-interceptor-Dzh_AxUX.js +52 -0
  53. package/dist/sagittarius.cjs.js +1 -0
  54. package/dist/sagittarius.d.ts +2 -0
  55. package/dist/sagittarius.es.js +1212 -0
  56. package/dist/shared.cjs.js +1 -0
  57. package/dist/shared.d.ts +2 -0
  58. package/dist/shared.es.js +3 -0
  59. package/dist/shared.flow_pb-BBS51Wou.cjs +1 -0
  60. package/dist/shared.flow_pb-Bt00q6yT.js +717 -0
  61. package/dist/shared.runtime_usage_pb-Cgr2Xle6.cjs +2 -0
  62. package/dist/shared.runtime_usage_pb-QD7fpRLv.js +3069 -0
  63. package/package.json +24 -22
  64. package/helpers/helpers.d.ts +0 -1
  65. package/helpers/helpers.js +0 -1
  66. package/helpers/helpers.ts +0 -1
  67. package/helpers/shared.struct_helper.js +0 -59
  68. package/helpers/shared.struct_helper.ts +0 -70
  69. package/index.js +0 -0
  70. package/pb/_generated/.gitkeep +0 -0
  71. package/pb/_generated/aquila.action_pb.client.js +0 -25
  72. package/pb/_generated/aquila.action_pb.js +0 -468
  73. package/pb/_generated/aquila.data_type_pb.client.js +0 -23
  74. package/pb/_generated/aquila.data_type_pb.js +0 -112
  75. package/pb/_generated/aquila.flow_type_pb.client.js +0 -25
  76. package/pb/_generated/aquila.flow_type_pb.js +0 -112
  77. package/pb/_generated/aquila.runtime_function_pb.client.js +0 -25
  78. package/pb/_generated/aquila.runtime_function_pb.js +0 -112
  79. package/pb/_generated/aquila.runtime_status_pb.client.js +0 -23
  80. package/pb/_generated/aquila.runtime_status_pb.js +0 -126
  81. package/pb/_generated/aquila.runtime_usage_pb.client.js +0 -23
  82. package/pb/_generated/aquila.runtime_usage_pb.js +0 -112
  83. package/pb/_generated/sagittarius.action_configuration_pb.client.js +0 -23
  84. package/pb/_generated/sagittarius.action_configuration_pb.js +0 -120
  85. package/pb/_generated/sagittarius.data_type_pb.client.js +0 -23
  86. package/pb/_generated/sagittarius.data_type_pb.js +0 -112
  87. package/pb/_generated/sagittarius.flow_pb.client.js +0 -23
  88. package/pb/_generated/sagittarius.flow_pb.js +0 -138
  89. package/pb/_generated/sagittarius.flow_type_pb.client.js +0 -25
  90. package/pb/_generated/sagittarius.flow_type_pb.js +0 -112
  91. package/pb/_generated/sagittarius.ping_pb.client.js +0 -23
  92. package/pb/_generated/sagittarius.ping_pb.js +0 -64
  93. package/pb/_generated/sagittarius.runtime_function_pb.client.js +0 -25
  94. package/pb/_generated/sagittarius.runtime_function_pb.js +0 -112
  95. package/pb/_generated/sagittarius.runtime_status_pb.client.js +0 -23
  96. package/pb/_generated/sagittarius.runtime_status_pb.js +0 -126
  97. package/pb/_generated/sagittarius.runtime_usage_pb.client.js +0 -23
  98. package/pb/_generated/sagittarius.runtime_usage_pb.js +0 -112
  99. package/pb/_generated/sagittarius.text_execution_pb.client.d.ts +0 -32
  100. package/pb/_generated/sagittarius.text_execution_pb.client.js +0 -23
  101. package/pb/_generated/sagittarius.text_execution_pb.js +0 -568
  102. package/pb/_generated/shared.action_configuration_pb.js +0 -251
  103. package/pb/_generated/shared.data_type_pb.js +0 -411
  104. package/pb/_generated/shared.flow_definition_pb.js +0 -269
  105. package/pb/_generated/shared.flow_pb.js +0 -762
  106. package/pb/_generated/shared.runtime_function_pb.js +0 -238
  107. package/pb/_generated/shared.runtime_status_pb.js +0 -315
  108. package/pb/_generated/shared.runtime_usage_pb.js +0 -62
  109. package/pb/_generated/shared.struct_pb.js +0 -274
  110. package/pb/_generated/shared.translation_pb.js +0 -62
  111. package/pb/aquila.d.ts +0 -24
  112. package/pb/aquila.js +0 -24
  113. package/pb/aquila.ts +0 -24
  114. package/pb/sagittarius.d.ts +0 -36
  115. package/pb/sagittarius.js +0 -36
  116. package/pb/sagittarius.ts +0 -36
  117. package/pb/shared.d.ts +0 -18
  118. package/pb/shared.js +0 -18
  119. package/pb/shared.ts +0 -18
@@ -0,0 +1,717 @@
1
+ import { A as e, D as t, N as n, P as r, _ as i, k as a } from "./shared.runtime_usage_pb-QD7fpRLv.js";
2
+ var o = 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: () => i
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(t) {
75
+ let n = globalThis.Object.create(this.messagePrototype);
76
+ return n.flowId = 0n, n.projectId = 0n, n.type = "", n.dataTypes = [], n.settings = [], n.startingNodeId = 0n, n.nodeFunctions = [], n.projectSlug = "", n.signature = "", t !== void 0 && e(this, n, t), n;
77
+ }
78
+ internalBinaryRead(e, t, r, a) {
79
+ let o = a ?? this.create(), s = e.pos + t;
80
+ for (; e.pos < s;) {
81
+ let [t, a] = e.tag();
82
+ switch (t) {
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(i.internalBinaryRead(e, e.uint32(), r));
94
+ break;
95
+ case 5:
96
+ o.settings.push(c.internalBinaryRead(e, e.uint32(), r));
97
+ break;
98
+ case 6:
99
+ o.startingNodeId = e.int64().toBigInt();
100
+ break;
101
+ case 7:
102
+ o.nodeFunctions.push(l.internalBinaryRead(e, e.uint32(), r));
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 = r.readUnknownField;
115
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${a}) for ${this.typeName}`);
116
+ let u = e.skip(a);
117
+ s !== !1 && (s === !0 ? n.onRead : s)(this.typeName, o, t, a, u);
118
+ }
119
+ }
120
+ return o;
121
+ }
122
+ internalBinaryWrite(e, t, a) {
123
+ e.flowId !== 0n && t.tag(1, r.Varint).int64(e.flowId), e.projectId !== 0n && t.tag(2, r.Varint).int64(e.projectId), e.type !== "" && t.tag(3, r.LengthDelimited).string(e.type);
124
+ for (let n = 0; n < e.dataTypes.length; n++) i.internalBinaryWrite(e.dataTypes[n], t.tag(4, r.LengthDelimited).fork(), a).join();
125
+ for (let n = 0; n < e.settings.length; n++) c.internalBinaryWrite(e.settings[n], t.tag(5, r.LengthDelimited).fork(), a).join();
126
+ e.startingNodeId !== 0n && t.tag(6, r.Varint).int64(e.startingNodeId);
127
+ for (let n = 0; n < e.nodeFunctions.length; n++) l.internalBinaryWrite(e.nodeFunctions[n], t.tag(7, r.LengthDelimited).fork(), a).join();
128
+ e.projectSlug !== "" && t.tag(8, r.LengthDelimited).string(e.projectSlug), e.disableReason !== void 0 && t.tag(9, r.LengthDelimited).string(e.disableReason), e.signature !== "" && t.tag(10, r.LengthDelimited).string(e.signature);
129
+ let o = a.writeUnknownFields;
130
+ return o !== !1 && (o == 1 ? n.onWrite : o)(this.typeName, e, t), t;
131
+ }
132
+ }(), s = 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: () => l
162
+ },
163
+ {
164
+ no: 3,
165
+ name: "input_value",
166
+ kind: "message",
167
+ T: () => t
168
+ }
169
+ ]);
170
+ }
171
+ create(t) {
172
+ let n = globalThis.Object.create(this.messagePrototype);
173
+ return n.flowId = 0n, n.projectId = 0n, n.startingNodeId = 0n, n.nodeFunctions = [], t !== void 0 && e(this, n, t), n;
174
+ }
175
+ internalBinaryRead(e, r, i, a) {
176
+ let o = a ?? this.create(), s = e.pos + r;
177
+ for (; e.pos < s;) {
178
+ let [r, a] = e.tag();
179
+ switch (r) {
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(l.internalBinaryRead(e, e.uint32(), i));
191
+ break;
192
+ case 3:
193
+ o.inputValue = t.internalBinaryRead(e, e.uint32(), i, o.inputValue);
194
+ break;
195
+ default:
196
+ let s = i.readUnknownField;
197
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);
198
+ let c = e.skip(a);
199
+ s !== !1 && (s === !0 ? n.onRead : s)(this.typeName, o, r, a, c);
200
+ }
201
+ }
202
+ return o;
203
+ }
204
+ internalBinaryWrite(e, i, a) {
205
+ e.flowId !== 0n && i.tag(1, r.Varint).int64(e.flowId), e.startingNodeId !== 0n && i.tag(2, r.Varint).int64(e.startingNodeId), e.inputValue && t.internalBinaryWrite(e.inputValue, i.tag(3, r.LengthDelimited).fork(), a).join();
206
+ for (let t = 0; t < e.nodeFunctions.length; t++) l.internalBinaryWrite(e.nodeFunctions[t], i.tag(4, r.LengthDelimited).fork(), a).join();
207
+ e.projectId !== 0n && i.tag(5, r.Varint).int64(e.projectId);
208
+ let o = a.writeUnknownFields;
209
+ return o !== !1 && (o == 1 ? n.onWrite : o)(this.typeName, e, i), i;
210
+ }
211
+ }(), c = new class extends a {
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: () => t
232
+ }
233
+ ]);
234
+ }
235
+ create(t) {
236
+ let n = globalThis.Object.create(this.messagePrototype);
237
+ return n.databaseId = 0n, n.flowSettingId = "", t !== void 0 && e(this, n, t), n;
238
+ }
239
+ internalBinaryRead(e, r, i, a) {
240
+ let o = a ?? this.create(), s = e.pos + r;
241
+ for (; e.pos < s;) {
242
+ let [r, a] = e.tag();
243
+ switch (r) {
244
+ case 1:
245
+ o.databaseId = e.int64().toBigInt();
246
+ break;
247
+ case 2:
248
+ o.flowSettingId = e.string();
249
+ break;
250
+ case 3:
251
+ o.value = t.internalBinaryRead(e, e.uint32(), i, o.value);
252
+ break;
253
+ default:
254
+ let s = i.readUnknownField;
255
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);
256
+ let c = e.skip(a);
257
+ s !== !1 && (s === !0 ? n.onRead : s)(this.typeName, o, r, a, c);
258
+ }
259
+ }
260
+ return o;
261
+ }
262
+ internalBinaryWrite(e, i, a) {
263
+ e.databaseId !== 0n && i.tag(1, r.Varint).int64(e.databaseId), e.flowSettingId !== "" && i.tag(2, r.LengthDelimited).string(e.flowSettingId), e.value && t.internalBinaryWrite(e.value, i.tag(3, r.LengthDelimited).fork(), a).join();
264
+ let o = a.writeUnknownFields;
265
+ return o !== !1 && (o == 1 ? n.onWrite : o)(this.typeName, e, i), i;
266
+ }
267
+ }(), l = new class extends a {
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(t) {
307
+ let n = globalThis.Object.create(this.messagePrototype);
308
+ return n.databaseId = 0n, n.runtimeFunctionId = "", n.parameters = [], n.definitionSource = "", t !== void 0 && e(this, n, t), n;
309
+ }
310
+ internalBinaryRead(e, t, r, i) {
311
+ let a = i ?? this.create(), o = e.pos + t;
312
+ for (; e.pos < o;) {
313
+ let [t, i] = e.tag();
314
+ switch (t) {
315
+ case 1:
316
+ a.databaseId = e.int64().toBigInt();
317
+ break;
318
+ case 2:
319
+ a.runtimeFunctionId = e.string();
320
+ break;
321
+ case 3:
322
+ a.parameters.push(d.internalBinaryRead(e, e.uint32(), r));
323
+ break;
324
+ case 4:
325
+ a.nextNodeId = e.int64().toBigInt();
326
+ break;
327
+ case 5:
328
+ a.definitionSource = e.string();
329
+ break;
330
+ default:
331
+ let o = r.readUnknownField;
332
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);
333
+ let s = e.skip(i);
334
+ o !== !1 && (o === !0 ? n.onRead : o)(this.typeName, a, t, i, s);
335
+ }
336
+ }
337
+ return a;
338
+ }
339
+ internalBinaryWrite(e, t, i) {
340
+ e.databaseId !== 0n && t.tag(1, r.Varint).int64(e.databaseId), e.runtimeFunctionId !== "" && t.tag(2, r.LengthDelimited).string(e.runtimeFunctionId);
341
+ for (let n = 0; n < e.parameters.length; n++) d.internalBinaryWrite(e.parameters[n], t.tag(3, r.LengthDelimited).fork(), i).join();
342
+ e.nextNodeId !== void 0 && t.tag(4, r.Varint).int64(e.nextNodeId), e.definitionSource !== "" && t.tag(5, r.LengthDelimited).string(e.definitionSource);
343
+ let a = i.writeUnknownFields;
344
+ return a !== !1 && (a == 1 ? n.onWrite : a)(this.typeName, e, t), t;
345
+ }
346
+ }(), u = new class extends a {
347
+ constructor() {
348
+ super("shared.NodeValue", [
349
+ {
350
+ no: 1,
351
+ name: "literal_value",
352
+ kind: "message",
353
+ oneof: "value",
354
+ T: () => t
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(t) {
374
+ let n = globalThis.Object.create(this.messagePrototype);
375
+ return n.value = { oneofKind: void 0 }, t !== void 0 && e(this, n, t), n;
376
+ }
377
+ internalBinaryRead(e, r, i, a) {
378
+ let o = a ?? this.create(), s = e.pos + r;
379
+ for (; e.pos < s;) {
380
+ let [r, a] = e.tag();
381
+ switch (r) {
382
+ case 1:
383
+ o.value = {
384
+ oneofKind: "literalValue",
385
+ literalValue: t.internalBinaryRead(e, e.uint32(), i, o.value.literalValue)
386
+ };
387
+ break;
388
+ case 2:
389
+ o.value = {
390
+ oneofKind: "referenceValue",
391
+ referenceValue: f.internalBinaryRead(e, e.uint32(), i, o.value.referenceValue)
392
+ };
393
+ break;
394
+ case 3:
395
+ o.value = {
396
+ oneofKind: "nodeFunctionId",
397
+ nodeFunctionId: e.int64().toBigInt()
398
+ };
399
+ break;
400
+ default:
401
+ let s = i.readUnknownField;
402
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);
403
+ let c = e.skip(a);
404
+ s !== !1 && (s === !0 ? n.onRead : s)(this.typeName, o, r, a, c);
405
+ }
406
+ }
407
+ return o;
408
+ }
409
+ internalBinaryWrite(e, i, a) {
410
+ e.value.oneofKind === "literalValue" && t.internalBinaryWrite(e.value.literalValue, i.tag(1, r.LengthDelimited).fork(), a).join(), e.value.oneofKind === "referenceValue" && f.internalBinaryWrite(e.value.referenceValue, i.tag(2, r.LengthDelimited).fork(), a).join(), e.value.oneofKind === "nodeFunctionId" && i.tag(3, r.Varint).int64(e.value.nodeFunctionId);
411
+ let o = a.writeUnknownFields;
412
+ return o !== !1 && (o == 1 ? n.onWrite : o)(this.typeName, e, i), i;
413
+ }
414
+ }(), d = new class extends a {
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(t) {
439
+ let n = globalThis.Object.create(this.messagePrototype);
440
+ return n.databaseId = 0n, n.runtimeParameterId = "", t !== void 0 && e(this, n, t), n;
441
+ }
442
+ internalBinaryRead(e, t, r, i) {
443
+ let a = i ?? this.create(), o = e.pos + t;
444
+ for (; e.pos < o;) {
445
+ let [t, i] = e.tag();
446
+ switch (t) {
447
+ case 1:
448
+ a.databaseId = e.int64().toBigInt();
449
+ break;
450
+ case 2:
451
+ a.runtimeParameterId = e.string();
452
+ break;
453
+ case 3:
454
+ a.value = u.internalBinaryRead(e, e.uint32(), r, a.value);
455
+ break;
456
+ default:
457
+ let o = r.readUnknownField;
458
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);
459
+ let s = e.skip(i);
460
+ o !== !1 && (o === !0 ? n.onRead : o)(this.typeName, a, t, i, s);
461
+ }
462
+ }
463
+ return a;
464
+ }
465
+ internalBinaryWrite(e, t, i) {
466
+ e.databaseId !== 0n && t.tag(1, r.Varint).int64(e.databaseId), e.runtimeParameterId !== "" && t.tag(2, r.LengthDelimited).string(e.runtimeParameterId), e.value && u.internalBinaryWrite(e.value, t.tag(3, r.LengthDelimited).fork(), i).join();
467
+ let a = i.writeUnknownFields;
468
+ return a !== !1 && (a == 1 ? n.onWrite : a)(this.typeName, e, t), t;
469
+ }
470
+ }(), f = new class extends a {
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(t) {
505
+ let n = globalThis.Object.create(this.messagePrototype);
506
+ return n.target = { oneofKind: void 0 }, n.paths = [], t !== void 0 && e(this, n, t), n;
507
+ }
508
+ internalBinaryRead(e, t, r, i) {
509
+ let a = i ?? this.create(), o = e.pos + t;
510
+ for (; e.pos < o;) {
511
+ let [t, i] = e.tag();
512
+ switch (t) {
513
+ case 1:
514
+ a.target = {
515
+ oneofKind: "flowInput",
516
+ flowInput: p.internalBinaryRead(e, e.uint32(), r, a.target.flowInput)
517
+ };
518
+ break;
519
+ case 2:
520
+ a.target = {
521
+ oneofKind: "nodeId",
522
+ nodeId: e.int64().toBigInt()
523
+ };
524
+ break;
525
+ case 3:
526
+ a.target = {
527
+ oneofKind: "inputType",
528
+ inputType: m.internalBinaryRead(e, e.uint32(), r, a.target.inputType)
529
+ };
530
+ break;
531
+ case 4:
532
+ a.paths.push(h.internalBinaryRead(e, e.uint32(), r));
533
+ break;
534
+ default:
535
+ let o = r.readUnknownField;
536
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);
537
+ let s = e.skip(i);
538
+ o !== !1 && (o === !0 ? n.onRead : o)(this.typeName, a, t, i, s);
539
+ }
540
+ }
541
+ return a;
542
+ }
543
+ internalBinaryWrite(e, t, i) {
544
+ e.target.oneofKind === "flowInput" && p.internalBinaryWrite(e.target.flowInput, t.tag(1, r.LengthDelimited).fork(), i).join(), e.target.oneofKind === "nodeId" && t.tag(2, r.Varint).int64(e.target.nodeId), e.target.oneofKind === "inputType" && m.internalBinaryWrite(e.target.inputType, t.tag(3, r.LengthDelimited).fork(), i).join();
545
+ for (let n = 0; n < e.paths.length; n++) h.internalBinaryWrite(e.paths[n], t.tag(4, r.LengthDelimited).fork(), i).join();
546
+ let a = i.writeUnknownFields;
547
+ return a !== !1 && (a == 1 ? n.onWrite : a)(this.typeName, e, t), t;
548
+ }
549
+ }(), p = new class extends a {
550
+ constructor() {
551
+ super("shared.FlowInput", []);
552
+ }
553
+ create(t) {
554
+ let n = globalThis.Object.create(this.messagePrototype);
555
+ return t !== void 0 && e(this, n, t), n;
556
+ }
557
+ internalBinaryRead(e, t, r, i) {
558
+ let a = i ?? this.create(), o = e.pos + t;
559
+ for (; e.pos < o;) {
560
+ let [t, i] = e.tag();
561
+ switch (t) {
562
+ default:
563
+ let o = r.readUnknownField;
564
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);
565
+ let s = e.skip(i);
566
+ o !== !1 && (o === !0 ? n.onRead : o)(this.typeName, a, t, i, s);
567
+ }
568
+ }
569
+ return a;
570
+ }
571
+ internalBinaryWrite(e, t, r) {
572
+ let i = r.writeUnknownFields;
573
+ return i !== !1 && (i == 1 ? n.onWrite : i)(this.typeName, e, t), t;
574
+ }
575
+ }(), m = new class extends a {
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(t) {
602
+ let n = globalThis.Object.create(this.messagePrototype);
603
+ return n.nodeId = 0n, n.parameterIndex = 0n, n.inputIndex = 0n, t !== void 0 && e(this, n, t), n;
604
+ }
605
+ internalBinaryRead(e, t, r, i) {
606
+ let a = i ?? this.create(), o = e.pos + t;
607
+ for (; e.pos < o;) {
608
+ let [t, i] = e.tag();
609
+ switch (t) {
610
+ case 1:
611
+ a.nodeId = e.int64().toBigInt();
612
+ break;
613
+ case 2:
614
+ a.parameterIndex = e.int64().toBigInt();
615
+ break;
616
+ case 3:
617
+ a.inputIndex = e.int64().toBigInt();
618
+ break;
619
+ default:
620
+ let o = r.readUnknownField;
621
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);
622
+ let s = e.skip(i);
623
+ o !== !1 && (o === !0 ? n.onRead : o)(this.typeName, a, t, i, s);
624
+ }
625
+ }
626
+ return a;
627
+ }
628
+ internalBinaryWrite(e, t, i) {
629
+ e.nodeId !== 0n && t.tag(1, r.Varint).int64(e.nodeId), e.parameterIndex !== 0n && t.tag(2, r.Varint).int64(e.parameterIndex), e.inputIndex !== 0n && t.tag(3, r.Varint).int64(e.inputIndex);
630
+ let a = i.writeUnknownFields;
631
+ return a !== !1 && (a == 1 ? n.onWrite : a)(this.typeName, e, t), t;
632
+ }
633
+ }(), h = new class extends a {
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(t) {
651
+ let n = globalThis.Object.create(this.messagePrototype);
652
+ return t !== void 0 && e(this, n, t), n;
653
+ }
654
+ internalBinaryRead(e, t, r, i) {
655
+ let a = i ?? this.create(), o = e.pos + t;
656
+ for (; e.pos < o;) {
657
+ let [t, i] = e.tag();
658
+ switch (t) {
659
+ case 1:
660
+ a.path = e.string();
661
+ break;
662
+ case 2:
663
+ a.arrayIndex = e.int64().toBigInt();
664
+ break;
665
+ default:
666
+ let o = r.readUnknownField;
667
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);
668
+ let s = e.skip(i);
669
+ o !== !1 && (o === !0 ? n.onRead : o)(this.typeName, a, t, i, s);
670
+ }
671
+ }
672
+ return a;
673
+ }
674
+ internalBinaryWrite(e, t, i) {
675
+ e.path !== void 0 && t.tag(1, r.LengthDelimited).string(e.path), e.arrayIndex !== void 0 && t.tag(2, r.Varint).int64(e.arrayIndex);
676
+ let a = i.writeUnknownFields;
677
+ return a !== !1 && (a == 1 ? n.onWrite : a)(this.typeName, e, t), t;
678
+ }
679
+ }(), g = new class extends a {
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(t) {
690
+ let n = globalThis.Object.create(this.messagePrototype);
691
+ return n.flows = [], t !== void 0 && e(this, n, t), n;
692
+ }
693
+ internalBinaryRead(e, t, r, i) {
694
+ let a = i ?? this.create(), s = e.pos + t;
695
+ for (; e.pos < s;) {
696
+ let [t, i] = e.tag();
697
+ switch (t) {
698
+ case 1:
699
+ a.flows.push(o.internalBinaryRead(e, e.uint32(), r));
700
+ break;
701
+ default:
702
+ let s = r.readUnknownField;
703
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${i}) for ${this.typeName}`);
704
+ let c = e.skip(i);
705
+ s !== !1 && (s === !0 ? n.onRead : s)(this.typeName, a, t, i, c);
706
+ }
707
+ }
708
+ return a;
709
+ }
710
+ internalBinaryWrite(e, t, i) {
711
+ for (let n = 0; n < e.flows.length; n++) o.internalBinaryWrite(e.flows[n], t.tag(1, r.LengthDelimited).fork(), i).join();
712
+ let a = i.writeUnknownFields;
713
+ return a !== !1 && (a == 1 ? n.onWrite : a)(this.typeName, e, t), t;
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 };