@code0-tech/tucana 0.0.62 → 0.0.66

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