@code0-tech/tucana 0.0.76 → 0.0.77

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