@code0-tech/tucana 0.0.76 → 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.
Files changed (54) hide show
  1. package/dist/aquila.cjs.js +1 -1
  2. package/dist/aquila.es.js +738 -209
  3. package/dist/pb/_generated/aquila.action_pb.d.ts +345 -4
  4. package/dist/pb/_generated/sagittarius_gateway.flow_pb.client.d.ts +43 -0
  5. package/dist/pb/_generated/sagittarius_gateway.flow_pb.d.ts +110 -0
  6. package/dist/pb/_generated/sagittarius_gateway.module_pb.client.d.ts +59 -0
  7. package/dist/pb/_generated/sagittarius_gateway.module_pb.d.ts +137 -0
  8. package/dist/pb/_generated/sagittarius_gateway.runtime_status_pb.client.d.ts +27 -0
  9. package/dist/pb/_generated/sagittarius_gateway.runtime_status_pb.d.ts +51 -0
  10. package/dist/pb/_generated/sagittarius_gateway.test_execution_pb.client.d.ts +43 -0
  11. package/dist/pb/_generated/{sagittarius.text_execution_pb.d.ts → sagittarius_gateway.test_execution_pb.d.ts} +45 -11
  12. package/dist/pb/_generated/sagittarius_rails.flow_pb.client.d.ts +31 -0
  13. package/dist/pb/_generated/{sagittarius.flow_pb.d.ts → sagittarius_rails.flow_pb.d.ts} +5 -14
  14. package/dist/pb/_generated/{sagittarius.module_pb.client.d.ts → sagittarius_rails.module_pb.client.d.ts} +3 -3
  15. package/dist/pb/_generated/{sagittarius.module_pb.d.ts → sagittarius_rails.module_pb.d.ts} +7 -7
  16. package/dist/pb/_generated/{sagittarius.runtime_status_pb.client.d.ts → sagittarius_rails.runtime_status_pb.client.d.ts} +3 -3
  17. package/dist/pb/_generated/{sagittarius.runtime_status_pb.d.ts → sagittarius_rails.runtime_status_pb.d.ts} +5 -5
  18. package/dist/pb/_generated/sagittarius_rails.test_execution_pb.client.d.ts +27 -0
  19. package/dist/pb/_generated/sagittarius_rails.test_execution_pb.d.ts +51 -0
  20. package/dist/pb/_generated/sagittarius_rails.token_pb.client.d.ts +31 -0
  21. package/dist/pb/_generated/sagittarius_rails.token_pb.d.ts +93 -0
  22. package/dist/pb/_generated/shared.flow_pb.d.ts +42 -26
  23. package/dist/pb/_generated/shared.struct_pb.d.ts +1 -1
  24. package/dist/pb/sagittarius_gateway.d.ts +8 -0
  25. package/dist/pb/sagittarius_rails.d.ts +10 -0
  26. package/dist/{rpc-interceptor-giFADd4b.cjs → rpc-interceptor-D-IMsC9l.cjs} +1 -1
  27. package/dist/{rpc-interceptor-d3qh7P9n.js → rpc-interceptor-D0l4GO-c.js} +1 -1
  28. package/dist/sagittarius_gateway.cjs.js +1 -0
  29. package/dist/sagittarius_gateway.d.ts +2 -0
  30. package/dist/sagittarius_gateway.es.js +793 -0
  31. package/dist/sagittarius_rails.cjs.js +1 -0
  32. package/dist/sagittarius_rails.d.ts +2 -0
  33. package/dist/sagittarius_rails.es.js +558 -0
  34. package/dist/shared.cjs.js +1 -1
  35. package/dist/shared.es.js +3 -4
  36. package/dist/shared.function_pb-BxQgyP8l.cjs +2 -0
  37. package/dist/{shared.function_pb-Caz-4jvi.js → shared.function_pb-CPUNe7pa.js} +1537 -485
  38. package/dist/shared.runtime_status_pb-5unRZGw5.js +1650 -0
  39. package/dist/{shared.runtime_status_pb-BEEvFfe8.cjs → shared.runtime_status_pb-BlKabFnb.cjs} +1 -1
  40. package/dist/velorum.cjs.js +1 -1
  41. package/dist/velorum.es.js +114 -115
  42. package/package.json +13 -7
  43. package/dist/pb/_generated/sagittarius.flow_pb.client.d.ts +0 -27
  44. package/dist/pb/_generated/sagittarius.ping_pb.client.d.ts +0 -27
  45. package/dist/pb/_generated/sagittarius.ping_pb.d.ts +0 -26
  46. package/dist/pb/_generated/sagittarius.text_execution_pb.client.d.ts +0 -27
  47. package/dist/pb/sagittarius.d.ts +0 -10
  48. package/dist/sagittarius.cjs.js +0 -1
  49. package/dist/sagittarius.d.ts +0 -2
  50. package/dist/sagittarius.es.js +0 -553
  51. package/dist/shared.flow_pb-DdVuFKPW.js +0 -1019
  52. package/dist/shared.flow_pb-clFvPGyv.cjs +0 -1
  53. package/dist/shared.function_pb-C8cj-NCz.cjs +0 -2
  54. package/dist/shared.runtime_status_pb-D7hH22xO.js +0 -1650
@@ -0,0 +1,793 @@
1
+ import { L as e, N as t, P as n, R as r, T as i, b as a, l as o } from "./shared.function_pb-CPUNe7pa.js";
2
+ import { b as s, h as c, i as l, s as u, t as d } from "./shared.runtime_status_pb-5unRZGw5.js";
3
+ import { n as f, t as p } from "./rpc-interceptor-D0l4GO-c.js";
4
+ var m = new class extends t {
5
+ constructor() {
6
+ super("sagittarius_gateway.FlowLogonRequest", []);
7
+ }
8
+ create(e) {
9
+ let t = globalThis.Object.create(this.messagePrototype);
10
+ return e !== void 0 && n(this, t, e), t;
11
+ }
12
+ internalBinaryRead(t, n, r, i) {
13
+ let a = i ?? this.create(), o = t.pos + n;
14
+ for (; t.pos < o;) {
15
+ let [n, i] = t.tag();
16
+ switch (n) {
17
+ default:
18
+ let o = r.readUnknownField;
19
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
20
+ let s = t.skip(i);
21
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
22
+ }
23
+ }
24
+ return a;
25
+ }
26
+ internalBinaryWrite(t, n, r) {
27
+ let i = r.writeUnknownFields;
28
+ return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
29
+ }
30
+ }(), h = new class extends t {
31
+ constructor() {
32
+ super("sagittarius_gateway.FlowResponse", [
33
+ {
34
+ no: 1,
35
+ name: "updated_flow",
36
+ kind: "message",
37
+ oneof: "data",
38
+ T: () => a
39
+ },
40
+ {
41
+ no: 2,
42
+ name: "deleted_flow_id",
43
+ kind: "scalar",
44
+ oneof: "data",
45
+ T: 3,
46
+ L: 0
47
+ },
48
+ {
49
+ no: 3,
50
+ name: "flows",
51
+ kind: "message",
52
+ oneof: "data",
53
+ T: () => o
54
+ }
55
+ ]);
56
+ }
57
+ create(e) {
58
+ let t = globalThis.Object.create(this.messagePrototype);
59
+ return t.data = { oneofKind: void 0 }, e !== void 0 && n(this, t, e), t;
60
+ }
61
+ internalBinaryRead(t, n, r, i) {
62
+ let s = i ?? this.create(), c = t.pos + n;
63
+ for (; t.pos < c;) {
64
+ let [n, i] = t.tag();
65
+ switch (n) {
66
+ case 1:
67
+ s.data = {
68
+ oneofKind: "updatedFlow",
69
+ updatedFlow: a.internalBinaryRead(t, t.uint32(), r, s.data.updatedFlow)
70
+ };
71
+ break;
72
+ case 2:
73
+ s.data = {
74
+ oneofKind: "deletedFlowId",
75
+ deletedFlowId: t.int64().toBigInt()
76
+ };
77
+ break;
78
+ case 3:
79
+ s.data = {
80
+ oneofKind: "flows",
81
+ flows: o.internalBinaryRead(t, t.uint32(), r, s.data.flows)
82
+ };
83
+ break;
84
+ default:
85
+ let c = r.readUnknownField;
86
+ if (c === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
87
+ let l = t.skip(i);
88
+ c !== !1 && (c === !0 ? e.onRead : c)(this.typeName, s, n, i, l);
89
+ }
90
+ }
91
+ return s;
92
+ }
93
+ internalBinaryWrite(t, n, i) {
94
+ t.data.oneofKind === "updatedFlow" && a.internalBinaryWrite(t.data.updatedFlow, n.tag(1, r.LengthDelimited).fork(), i).join(), t.data.oneofKind === "deletedFlowId" && n.tag(2, r.Varint).int64(t.data.deletedFlowId), t.data.oneofKind === "flows" && o.internalBinaryWrite(t.data.flows, n.tag(3, r.LengthDelimited).fork(), i).join();
95
+ let s = i.writeUnknownFields;
96
+ return s !== !1 && (s == 1 ? e.onWrite : s)(this.typeName, t, n), n;
97
+ }
98
+ }(), g = new class extends t {
99
+ constructor() {
100
+ super("sagittarius_gateway.FlowPushRequest", [{
101
+ no: 1,
102
+ name: "runtime_identifier",
103
+ kind: "scalar",
104
+ T: 3,
105
+ L: 0
106
+ }, {
107
+ no: 2,
108
+ name: "response",
109
+ kind: "message",
110
+ T: () => h
111
+ }]);
112
+ }
113
+ create(e) {
114
+ let t = globalThis.Object.create(this.messagePrototype);
115
+ return t.runtimeIdentifier = 0n, e !== void 0 && n(this, t, e), t;
116
+ }
117
+ internalBinaryRead(t, n, r, i) {
118
+ let a = i ?? this.create(), o = t.pos + n;
119
+ for (; t.pos < o;) {
120
+ let [n, i] = t.tag();
121
+ switch (n) {
122
+ case 1:
123
+ a.runtimeIdentifier = t.int64().toBigInt();
124
+ break;
125
+ case 2:
126
+ a.response = h.internalBinaryRead(t, t.uint32(), r, a.response);
127
+ break;
128
+ default:
129
+ let o = r.readUnknownField;
130
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
131
+ let s = t.skip(i);
132
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
133
+ }
134
+ }
135
+ return a;
136
+ }
137
+ internalBinaryWrite(t, n, i) {
138
+ t.runtimeIdentifier !== 0n && n.tag(1, r.Varint).int64(t.runtimeIdentifier), t.response && h.internalBinaryWrite(t.response, n.tag(2, r.LengthDelimited).fork(), i).join();
139
+ let a = i.writeUnknownFields;
140
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
141
+ }
142
+ }(), _ = new class extends t {
143
+ constructor() {
144
+ super("sagittarius_gateway.FlowPushResponse", []);
145
+ }
146
+ create(e) {
147
+ let t = globalThis.Object.create(this.messagePrototype);
148
+ return e !== void 0 && n(this, t, e), t;
149
+ }
150
+ internalBinaryRead(t, n, r, i) {
151
+ let a = i ?? this.create(), o = t.pos + n;
152
+ for (; t.pos < o;) {
153
+ let [n, i] = t.tag();
154
+ switch (n) {
155
+ default:
156
+ let o = r.readUnknownField;
157
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
158
+ let s = t.skip(i);
159
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
160
+ }
161
+ }
162
+ return a;
163
+ }
164
+ internalBinaryWrite(t, n, r) {
165
+ let i = r.writeUnknownFields;
166
+ return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
167
+ }
168
+ }(), v = new f("sagittarius_gateway.FlowService", [{
169
+ name: "Update",
170
+ serverStreaming: !0,
171
+ options: {},
172
+ I: m,
173
+ O: h
174
+ }, {
175
+ name: "Push",
176
+ options: {},
177
+ I: g,
178
+ O: _
179
+ }]), y = class {
180
+ constructor(e) {
181
+ this._transport = e, this.typeName = v.typeName, this.methods = v.methods, this.options = v.options;
182
+ }
183
+ update(e, t) {
184
+ let n = this.methods[0], r = this._transport.mergeOptions(t);
185
+ return p("serverStreaming", this._transport, n, r, e);
186
+ }
187
+ push(e, t) {
188
+ let n = this.methods[1], r = this._transport.mergeOptions(t);
189
+ return p("unary", this._transport, n, r, e);
190
+ }
191
+ }, b = new class extends t {
192
+ constructor() {
193
+ super("sagittarius_gateway.ModuleUpdateRequest", [{
194
+ no: 1,
195
+ name: "modules",
196
+ kind: "message",
197
+ repeat: 2,
198
+ T: () => l
199
+ }, {
200
+ no: 2,
201
+ name: "available_definition_sources",
202
+ kind: "scalar",
203
+ repeat: 2,
204
+ T: 9
205
+ }]);
206
+ }
207
+ create(e) {
208
+ let t = globalThis.Object.create(this.messagePrototype);
209
+ return t.modules = [], t.availableDefinitionSources = [], e !== void 0 && n(this, t, e), t;
210
+ }
211
+ internalBinaryRead(t, n, r, i) {
212
+ let a = i ?? this.create(), o = t.pos + n;
213
+ for (; t.pos < o;) {
214
+ let [n, i] = t.tag();
215
+ switch (n) {
216
+ case 1:
217
+ a.modules.push(l.internalBinaryRead(t, t.uint32(), r));
218
+ break;
219
+ case 2:
220
+ a.availableDefinitionSources.push(t.string());
221
+ break;
222
+ default:
223
+ let o = r.readUnknownField;
224
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
225
+ let s = t.skip(i);
226
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
227
+ }
228
+ }
229
+ return a;
230
+ }
231
+ internalBinaryWrite(t, n, i) {
232
+ for (let e = 0; e < t.modules.length; e++) l.internalBinaryWrite(t.modules[e], n.tag(1, r.LengthDelimited).fork(), i).join();
233
+ for (let e = 0; e < t.availableDefinitionSources.length; e++) n.tag(2, r.LengthDelimited).string(t.availableDefinitionSources[e]);
234
+ let a = i.writeUnknownFields;
235
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
236
+ }
237
+ }(), x = new class extends t {
238
+ constructor() {
239
+ super("sagittarius_gateway.ModuleUpdateResponse", [{
240
+ no: 1,
241
+ name: "success",
242
+ kind: "scalar",
243
+ T: 8
244
+ }, {
245
+ no: 2,
246
+ name: "error",
247
+ kind: "message",
248
+ T: () => s
249
+ }]);
250
+ }
251
+ create(e) {
252
+ let t = globalThis.Object.create(this.messagePrototype);
253
+ return t.success = !1, e !== void 0 && n(this, t, e), t;
254
+ }
255
+ internalBinaryRead(t, n, r, i) {
256
+ let a = i ?? this.create(), o = t.pos + n;
257
+ for (; t.pos < o;) {
258
+ let [n, i] = t.tag();
259
+ switch (n) {
260
+ case 1:
261
+ a.success = t.bool();
262
+ break;
263
+ case 2:
264
+ a.error = s.internalBinaryRead(t, t.uint32(), r, a.error);
265
+ break;
266
+ default:
267
+ let o = r.readUnknownField;
268
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
269
+ let c = t.skip(i);
270
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, c);
271
+ }
272
+ }
273
+ return a;
274
+ }
275
+ internalBinaryWrite(t, n, i) {
276
+ t.success !== !1 && n.tag(1, r.Varint).bool(t.success), t.error && s.internalBinaryWrite(t.error, n.tag(2, r.LengthDelimited).fork(), i).join();
277
+ let a = i.writeUnknownFields;
278
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
279
+ }
280
+ }(), S = new class extends t {
281
+ constructor() {
282
+ super("sagittarius_gateway.ModuleConfigurationRequest", []);
283
+ }
284
+ create(e) {
285
+ let t = globalThis.Object.create(this.messagePrototype);
286
+ return e !== void 0 && n(this, t, e), t;
287
+ }
288
+ internalBinaryRead(t, n, r, i) {
289
+ let a = i ?? this.create(), o = t.pos + n;
290
+ for (; t.pos < o;) {
291
+ let [n, i] = t.tag();
292
+ switch (n) {
293
+ default:
294
+ let o = r.readUnknownField;
295
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
296
+ let s = t.skip(i);
297
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
298
+ }
299
+ }
300
+ return a;
301
+ }
302
+ internalBinaryWrite(t, n, r) {
303
+ let i = r.writeUnknownFields;
304
+ return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
305
+ }
306
+ }(), C = new class extends t {
307
+ constructor() {
308
+ super("sagittarius_gateway.ModuleConfigurationResponse", [{
309
+ no: 1,
310
+ name: "module_configurations",
311
+ kind: "message",
312
+ T: () => u
313
+ }]);
314
+ }
315
+ create(e) {
316
+ let t = globalThis.Object.create(this.messagePrototype);
317
+ return e !== void 0 && n(this, t, e), t;
318
+ }
319
+ internalBinaryRead(t, n, r, i) {
320
+ let a = i ?? this.create(), o = t.pos + n;
321
+ for (; t.pos < o;) {
322
+ let [n, i] = t.tag();
323
+ switch (n) {
324
+ case 1:
325
+ a.moduleConfigurations = u.internalBinaryRead(t, t.uint32(), r, a.moduleConfigurations);
326
+ break;
327
+ default:
328
+ let o = r.readUnknownField;
329
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
330
+ let s = t.skip(i);
331
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
332
+ }
333
+ }
334
+ return a;
335
+ }
336
+ internalBinaryWrite(t, n, i) {
337
+ t.moduleConfigurations && u.internalBinaryWrite(t.moduleConfigurations, n.tag(1, r.LengthDelimited).fork(), i).join();
338
+ let a = i.writeUnknownFields;
339
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
340
+ }
341
+ }(), w = new class extends t {
342
+ constructor() {
343
+ super("sagittarius_gateway.ModuleConfigurationPushRequest", [{
344
+ no: 1,
345
+ name: "runtime_identifier",
346
+ kind: "scalar",
347
+ T: 3,
348
+ L: 0
349
+ }, {
350
+ no: 2,
351
+ name: "response",
352
+ kind: "message",
353
+ T: () => C
354
+ }]);
355
+ }
356
+ create(e) {
357
+ let t = globalThis.Object.create(this.messagePrototype);
358
+ return t.runtimeIdentifier = 0n, e !== void 0 && n(this, t, e), t;
359
+ }
360
+ internalBinaryRead(t, n, r, i) {
361
+ let a = i ?? this.create(), o = t.pos + n;
362
+ for (; t.pos < o;) {
363
+ let [n, i] = t.tag();
364
+ switch (n) {
365
+ case 1:
366
+ a.runtimeIdentifier = t.int64().toBigInt();
367
+ break;
368
+ case 2:
369
+ a.response = C.internalBinaryRead(t, t.uint32(), r, a.response);
370
+ break;
371
+ default:
372
+ let o = r.readUnknownField;
373
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
374
+ let s = t.skip(i);
375
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
376
+ }
377
+ }
378
+ return a;
379
+ }
380
+ internalBinaryWrite(t, n, i) {
381
+ t.runtimeIdentifier !== 0n && n.tag(1, r.Varint).int64(t.runtimeIdentifier), t.response && C.internalBinaryWrite(t.response, n.tag(2, r.LengthDelimited).fork(), i).join();
382
+ let a = i.writeUnknownFields;
383
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
384
+ }
385
+ }(), T = new class extends t {
386
+ constructor() {
387
+ super("sagittarius_gateway.ModuleConfigurationPushResponse", []);
388
+ }
389
+ create(e) {
390
+ let t = globalThis.Object.create(this.messagePrototype);
391
+ return e !== void 0 && n(this, t, e), t;
392
+ }
393
+ internalBinaryRead(t, n, r, i) {
394
+ let a = i ?? this.create(), o = t.pos + n;
395
+ for (; t.pos < o;) {
396
+ let [n, i] = t.tag();
397
+ switch (n) {
398
+ default:
399
+ let o = r.readUnknownField;
400
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
401
+ let s = t.skip(i);
402
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
403
+ }
404
+ }
405
+ return a;
406
+ }
407
+ internalBinaryWrite(t, n, r) {
408
+ let i = r.writeUnknownFields;
409
+ return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
410
+ }
411
+ }(), E = new f("sagittarius_gateway.ModuleService", [
412
+ {
413
+ name: "Update",
414
+ options: {},
415
+ I: b,
416
+ O: x
417
+ },
418
+ {
419
+ name: "Configurations",
420
+ serverStreaming: !0,
421
+ options: {},
422
+ I: S,
423
+ O: C
424
+ },
425
+ {
426
+ name: "Push",
427
+ options: {},
428
+ I: w,
429
+ O: T
430
+ }
431
+ ]), D = class {
432
+ constructor(e) {
433
+ this._transport = e, this.typeName = E.typeName, this.methods = E.methods, this.options = E.options;
434
+ }
435
+ update(e, t) {
436
+ let n = this.methods[0], r = this._transport.mergeOptions(t);
437
+ return p("unary", this._transport, n, r, e);
438
+ }
439
+ configurations(e, t) {
440
+ let n = this.methods[1], r = this._transport.mergeOptions(t);
441
+ return p("serverStreaming", this._transport, n, r, e);
442
+ }
443
+ push(e, t) {
444
+ let n = this.methods[2], r = this._transport.mergeOptions(t);
445
+ return p("unary", this._transport, n, r, e);
446
+ }
447
+ }, O = new class extends t {
448
+ constructor() {
449
+ super("sagittarius_gateway.RuntimeStatusUpdateRequest", [{
450
+ no: 1,
451
+ name: "status",
452
+ kind: "message",
453
+ T: () => d
454
+ }]);
455
+ }
456
+ create(e) {
457
+ let t = globalThis.Object.create(this.messagePrototype);
458
+ return e !== void 0 && n(this, t, e), t;
459
+ }
460
+ internalBinaryRead(t, n, r, i) {
461
+ let a = i ?? this.create(), o = t.pos + n;
462
+ for (; t.pos < o;) {
463
+ let [n, i] = t.tag();
464
+ switch (n) {
465
+ case 1:
466
+ a.status = d.internalBinaryRead(t, t.uint32(), r, a.status);
467
+ break;
468
+ default:
469
+ let o = r.readUnknownField;
470
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
471
+ let s = t.skip(i);
472
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
473
+ }
474
+ }
475
+ return a;
476
+ }
477
+ internalBinaryWrite(t, n, i) {
478
+ t.status && d.internalBinaryWrite(t.status, n.tag(1, r.LengthDelimited).fork(), i).join();
479
+ let a = i.writeUnknownFields;
480
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
481
+ }
482
+ }(), k = new class extends t {
483
+ constructor() {
484
+ super("sagittarius_gateway.RuntimeStatusUpdateResponse", [{
485
+ no: 1,
486
+ name: "success",
487
+ kind: "scalar",
488
+ T: 8
489
+ }, {
490
+ no: 2,
491
+ name: "error",
492
+ kind: "message",
493
+ T: () => s
494
+ }]);
495
+ }
496
+ create(e) {
497
+ let t = globalThis.Object.create(this.messagePrototype);
498
+ return t.success = !1, e !== void 0 && n(this, t, e), t;
499
+ }
500
+ internalBinaryRead(t, n, r, i) {
501
+ let a = i ?? this.create(), o = t.pos + n;
502
+ for (; t.pos < o;) {
503
+ let [n, i] = t.tag();
504
+ switch (n) {
505
+ case 1:
506
+ a.success = t.bool();
507
+ break;
508
+ case 2:
509
+ a.error = s.internalBinaryRead(t, t.uint32(), r, a.error);
510
+ break;
511
+ default:
512
+ let o = r.readUnknownField;
513
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
514
+ let c = t.skip(i);
515
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, c);
516
+ }
517
+ }
518
+ return a;
519
+ }
520
+ internalBinaryWrite(t, n, i) {
521
+ t.success !== !1 && n.tag(1, r.Varint).bool(t.success), t.error && s.internalBinaryWrite(t.error, n.tag(2, r.LengthDelimited).fork(), i).join();
522
+ let a = i.writeUnknownFields;
523
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
524
+ }
525
+ }(), A = new f("sagittarius_gateway.RuntimeStatusService", [{
526
+ name: "Update",
527
+ options: {},
528
+ I: O,
529
+ O: k
530
+ }]), j = class {
531
+ constructor(e) {
532
+ this._transport = e, this.typeName = A.typeName, this.methods = A.methods, this.options = A.options;
533
+ }
534
+ update(e, t) {
535
+ let n = this.methods[0], r = this._transport.mergeOptions(t);
536
+ return p("unary", this._transport, n, r, e);
537
+ }
538
+ }, M = new class extends t {
539
+ constructor() {
540
+ super("sagittarius_gateway.Logon", []);
541
+ }
542
+ create(e) {
543
+ let t = globalThis.Object.create(this.messagePrototype);
544
+ return e !== void 0 && n(this, t, e), t;
545
+ }
546
+ internalBinaryRead(t, n, r, i) {
547
+ let a = i ?? this.create(), o = t.pos + n;
548
+ for (; t.pos < o;) {
549
+ let [n, i] = t.tag();
550
+ switch (n) {
551
+ default:
552
+ let o = r.readUnknownField;
553
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
554
+ let s = t.skip(i);
555
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
556
+ }
557
+ }
558
+ return a;
559
+ }
560
+ internalBinaryWrite(t, n, r) {
561
+ let i = r.writeUnknownFields;
562
+ return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
563
+ }
564
+ }(), N = new class extends t {
565
+ constructor() {
566
+ super("sagittarius_gateway.TestExecutionRequest", [
567
+ {
568
+ no: 1,
569
+ name: "flow_id",
570
+ kind: "scalar",
571
+ T: 3,
572
+ L: 0
573
+ },
574
+ {
575
+ no: 2,
576
+ name: "execution_identifier",
577
+ kind: "scalar",
578
+ T: 9
579
+ },
580
+ {
581
+ no: 3,
582
+ name: "body",
583
+ kind: "message",
584
+ T: () => i
585
+ }
586
+ ]);
587
+ }
588
+ create(e) {
589
+ let t = globalThis.Object.create(this.messagePrototype);
590
+ return t.flowId = 0n, t.executionIdentifier = "", e !== void 0 && n(this, t, e), t;
591
+ }
592
+ internalBinaryRead(t, n, r, a) {
593
+ let o = a ?? this.create(), s = t.pos + n;
594
+ for (; t.pos < s;) {
595
+ let [n, a] = t.tag();
596
+ switch (n) {
597
+ case 1:
598
+ o.flowId = t.int64().toBigInt();
599
+ break;
600
+ case 2:
601
+ o.executionIdentifier = t.string();
602
+ break;
603
+ case 3:
604
+ o.body = i.internalBinaryRead(t, t.uint32(), r, o.body);
605
+ break;
606
+ default:
607
+ let s = r.readUnknownField;
608
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
609
+ let c = t.skip(a);
610
+ s !== !1 && (s === !0 ? e.onRead : s)(this.typeName, o, n, a, c);
611
+ }
612
+ }
613
+ return o;
614
+ }
615
+ internalBinaryWrite(t, n, a) {
616
+ t.flowId !== 0n && n.tag(1, r.Varint).int64(t.flowId), t.executionIdentifier !== "" && n.tag(2, r.LengthDelimited).string(t.executionIdentifier), t.body && i.internalBinaryWrite(t.body, n.tag(3, r.LengthDelimited).fork(), a).join();
617
+ let o = a.writeUnknownFields;
618
+ return o !== !1 && (o == 1 ? e.onWrite : o)(this.typeName, t, n), n;
619
+ }
620
+ }(), P = new class extends t {
621
+ constructor() {
622
+ super("sagittarius_gateway.ExecutionLogonRequest", [{
623
+ no: 1,
624
+ name: "logon",
625
+ kind: "message",
626
+ oneof: "data",
627
+ T: () => M
628
+ }, {
629
+ no: 2,
630
+ name: "response",
631
+ kind: "message",
632
+ oneof: "data",
633
+ T: () => c
634
+ }]);
635
+ }
636
+ create(e) {
637
+ let t = globalThis.Object.create(this.messagePrototype);
638
+ return t.data = { oneofKind: void 0 }, e !== void 0 && n(this, t, e), t;
639
+ }
640
+ internalBinaryRead(t, n, r, i) {
641
+ let a = i ?? this.create(), o = t.pos + n;
642
+ for (; t.pos < o;) {
643
+ let [n, i] = t.tag();
644
+ switch (n) {
645
+ case 1:
646
+ a.data = {
647
+ oneofKind: "logon",
648
+ logon: M.internalBinaryRead(t, t.uint32(), r, a.data.logon)
649
+ };
650
+ break;
651
+ case 2:
652
+ a.data = {
653
+ oneofKind: "response",
654
+ response: c.internalBinaryRead(t, t.uint32(), r, a.data.response)
655
+ };
656
+ break;
657
+ default:
658
+ let o = r.readUnknownField;
659
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
660
+ let s = t.skip(i);
661
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
662
+ }
663
+ }
664
+ return a;
665
+ }
666
+ internalBinaryWrite(t, n, i) {
667
+ t.data.oneofKind === "logon" && M.internalBinaryWrite(t.data.logon, n.tag(1, r.LengthDelimited).fork(), i).join(), t.data.oneofKind === "response" && c.internalBinaryWrite(t.data.response, n.tag(2, r.LengthDelimited).fork(), i).join();
668
+ let a = i.writeUnknownFields;
669
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
670
+ }
671
+ }(), F = new class extends t {
672
+ constructor() {
673
+ super("sagittarius_gateway.ExecutionLogonResponse", [{
674
+ no: 1,
675
+ name: "request",
676
+ kind: "message",
677
+ T: () => N
678
+ }]);
679
+ }
680
+ create(e) {
681
+ let t = globalThis.Object.create(this.messagePrototype);
682
+ return e !== void 0 && n(this, t, e), t;
683
+ }
684
+ internalBinaryRead(t, n, r, i) {
685
+ let a = i ?? this.create(), o = t.pos + n;
686
+ for (; t.pos < o;) {
687
+ let [n, i] = t.tag();
688
+ switch (n) {
689
+ case 1:
690
+ a.request = N.internalBinaryRead(t, t.uint32(), r, a.request);
691
+ break;
692
+ default:
693
+ let o = r.readUnknownField;
694
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
695
+ let s = t.skip(i);
696
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
697
+ }
698
+ }
699
+ return a;
700
+ }
701
+ internalBinaryWrite(t, n, i) {
702
+ t.request && N.internalBinaryWrite(t.request, n.tag(1, r.LengthDelimited).fork(), i).join();
703
+ let a = i.writeUnknownFields;
704
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
705
+ }
706
+ }(), I = new class extends t {
707
+ constructor() {
708
+ super("sagittarius_gateway.ExecutionPushRequest", [{
709
+ no: 1,
710
+ name: "request",
711
+ kind: "message",
712
+ T: () => N
713
+ }]);
714
+ }
715
+ create(e) {
716
+ let t = globalThis.Object.create(this.messagePrototype);
717
+ return e !== void 0 && n(this, t, e), t;
718
+ }
719
+ internalBinaryRead(t, n, r, i) {
720
+ let a = i ?? this.create(), o = t.pos + n;
721
+ for (; t.pos < o;) {
722
+ let [n, i] = t.tag();
723
+ switch (n) {
724
+ case 1:
725
+ a.request = N.internalBinaryRead(t, t.uint32(), r, a.request);
726
+ break;
727
+ default:
728
+ let o = r.readUnknownField;
729
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
730
+ let s = t.skip(i);
731
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
732
+ }
733
+ }
734
+ return a;
735
+ }
736
+ internalBinaryWrite(t, n, i) {
737
+ t.request && N.internalBinaryWrite(t.request, n.tag(1, r.LengthDelimited).fork(), i).join();
738
+ let a = i.writeUnknownFields;
739
+ return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
740
+ }
741
+ }(), L = new class extends t {
742
+ constructor() {
743
+ super("sagittarius_gateway.ExecutionPushResponse", []);
744
+ }
745
+ create(e) {
746
+ let t = globalThis.Object.create(this.messagePrototype);
747
+ return e !== void 0 && n(this, t, e), t;
748
+ }
749
+ internalBinaryRead(t, n, r, i) {
750
+ let a = i ?? this.create(), o = t.pos + n;
751
+ for (; t.pos < o;) {
752
+ let [n, i] = t.tag();
753
+ switch (n) {
754
+ default:
755
+ let o = r.readUnknownField;
756
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
757
+ let s = t.skip(i);
758
+ o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
759
+ }
760
+ }
761
+ return a;
762
+ }
763
+ internalBinaryWrite(t, n, r) {
764
+ let i = r.writeUnknownFields;
765
+ return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
766
+ }
767
+ }(), R = new f("sagittarius_gateway.ExecutionService", [{
768
+ name: "Update",
769
+ serverStreaming: !0,
770
+ clientStreaming: !0,
771
+ options: {},
772
+ I: P,
773
+ O: F
774
+ }, {
775
+ name: "Push",
776
+ options: {},
777
+ I,
778
+ O: L
779
+ }]), z = class {
780
+ constructor(e) {
781
+ this._transport = e, this.typeName = R.typeName, this.methods = R.methods, this.options = R.options;
782
+ }
783
+ update(e) {
784
+ let t = this.methods[0], n = this._transport.mergeOptions(e);
785
+ return p("duplex", this._transport, t, n);
786
+ }
787
+ push(e, t) {
788
+ let n = this.methods[1], r = this._transport.mergeOptions(t);
789
+ return p("unary", this._transport, n, r, e);
790
+ }
791
+ };
792
+ //#endregion
793
+ export { P as ExecutionLogonRequest, F as ExecutionLogonResponse, I as ExecutionPushRequest, L as ExecutionPushResponse, R as ExecutionService, z as ExecutionServiceClient, m as FlowLogonRequest, g as FlowPushRequest, _ as FlowPushResponse, h as FlowResponse, v as FlowService, y as FlowServiceClient, M as Logon, w as ModuleConfigurationPushRequest, T as ModuleConfigurationPushResponse, S as ModuleConfigurationRequest, C as ModuleConfigurationResponse, E as ModuleService, D as ModuleServiceClient, b as ModuleUpdateRequest, x as ModuleUpdateResponse, A as RuntimeStatusService, j as RuntimeStatusServiceClient, O as RuntimeStatusUpdateRequest, k as RuntimeStatusUpdateResponse, N as TestExecutionRequest };