@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
@@ -1,14 +1,14 @@
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 {
1
+ import { C as e, S as t, v as n, y as r } from "./shared.function_pb-Caz-4jvi.js";
2
+ import { b as i, h as a, i as o, t as s } from "./shared.runtime_status_pb-D7hH22xO.js";
3
+ import { h as c, i as l } from "./shared.flow_pb-DdVuFKPW.js";
4
+ import { n as u, t as d } from "./rpc-interceptor-d3qh7P9n.js";
5
+ var f = new class extends n {
6
6
  constructor() {
7
- super("sagittarius.FlowLogonRequest", []);
7
+ super("sagittarius_rails.FlowLogonRequest", []);
8
8
  }
9
9
  create(e) {
10
10
  let t = globalThis.Object.create(this.messagePrototype);
11
- return e !== void 0 && i(this, t, e), t;
11
+ return e !== void 0 && r(this, t, e), t;
12
12
  }
13
13
  internalBinaryRead(e, n, r, i) {
14
14
  let a = i ?? this.create(), o = e.pos + n;
@@ -28,15 +28,15 @@ var m = new class extends r {
28
28
  let i = r.writeUnknownFields;
29
29
  return i !== !1 && (i == 1 ? t.onWrite : i)(this.typeName, e, n), n;
30
30
  }
31
- }(), h = new class extends r {
31
+ }(), p = new class extends n {
32
32
  constructor() {
33
- super("sagittarius.FlowResponse", [
33
+ super("sagittarius_rails.FlowResponse", [
34
34
  {
35
35
  no: 1,
36
36
  name: "updated_flow",
37
37
  kind: "message",
38
38
  oneof: "data",
39
- T: () => u
39
+ T: () => c
40
40
  },
41
41
  {
42
42
  no: 2,
@@ -51,20 +51,13 @@ var m = new class extends r {
51
51
  name: "flows",
52
52
  kind: "message",
53
53
  oneof: "data",
54
- T: () => d
55
- },
56
- {
57
- no: 4,
58
- name: "module_configurations",
59
- kind: "message",
60
- oneof: "data",
61
- T: () => c
54
+ T: () => l
62
55
  }
63
56
  ]);
64
57
  }
65
58
  create(e) {
66
59
  let t = globalThis.Object.create(this.messagePrototype);
67
- return t.data = { oneofKind: void 0 }, e !== void 0 && i(this, t, e), t;
60
+ return t.data = { oneofKind: void 0 }, e !== void 0 && r(this, t, e), t;
68
61
  }
69
62
  internalBinaryRead(e, n, r, i) {
70
63
  let a = i ?? this.create(), o = e.pos + n;
@@ -74,7 +67,7 @@ var m = new class extends r {
74
67
  case 1:
75
68
  a.data = {
76
69
  oneofKind: "updatedFlow",
77
- updatedFlow: u.internalBinaryRead(e, e.uint32(), r, a.data.updatedFlow)
70
+ updatedFlow: c.internalBinaryRead(e, e.uint32(), r, a.data.updatedFlow)
78
71
  };
79
72
  break;
80
73
  case 2:
@@ -86,13 +79,7 @@ var m = new class extends r {
86
79
  case 3:
87
80
  a.data = {
88
81
  oneofKind: "flows",
89
- flows: d.internalBinaryRead(e, e.uint32(), r, a.data.flows)
90
- };
91
- break;
92
- case 4:
93
- a.data = {
94
- oneofKind: "moduleConfigurations",
95
- moduleConfigurations: c.internalBinaryRead(e, e.uint32(), r, a.data.moduleConfigurations)
82
+ flows: l.internalBinaryRead(e, e.uint32(), r, a.data.flows)
96
83
  };
97
84
  break;
98
85
  default:
@@ -105,32 +92,31 @@ var m = new class extends r {
105
92
  return a;
106
93
  }
107
94
  internalBinaryWrite(n, r, i) {
108
- 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(), n.data.oneofKind === "moduleConfigurations" && c.internalBinaryWrite(n.data.moduleConfigurations, r.tag(4, e.LengthDelimited).fork(), i).join();
95
+ n.data.oneofKind === "updatedFlow" && c.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" && l.internalBinaryWrite(n.data.flows, r.tag(3, e.LengthDelimited).fork(), i).join();
109
96
  let a = i.writeUnknownFields;
110
97
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
111
98
  }
112
- }(), g = new f("sagittarius.FlowService", [{
99
+ }(), m = new u("sagittarius_rails.FlowService", [{
113
100
  name: "Update",
114
- serverStreaming: !0,
115
101
  options: {},
116
- I: m,
117
- O: h
118
- }]), _ = class {
102
+ I: f,
103
+ O: p
104
+ }]), h = class {
119
105
  constructor(e) {
120
- this._transport = e, this.typeName = g.typeName, this.methods = g.methods, this.options = g.options;
106
+ this._transport = e, this.typeName = m.typeName, this.methods = m.methods, this.options = m.options;
121
107
  }
122
108
  update(e, t) {
123
109
  let n = this.methods[0], r = this._transport.mergeOptions(t);
124
- return p("serverStreaming", this._transport, n, r, e);
110
+ return d("unary", this._transport, n, r, e);
125
111
  }
126
- }, v = new class extends r {
112
+ }, g = new class extends n {
127
113
  constructor() {
128
- super("sagittarius.ModuleUpdateRequest", [{
114
+ super("sagittarius_rails.ModuleUpdateRequest", [{
129
115
  no: 1,
130
116
  name: "modules",
131
117
  kind: "message",
132
118
  repeat: 2,
133
- T: () => s
119
+ T: () => o
134
120
  }, {
135
121
  no: 2,
136
122
  name: "available_defintition_soruces",
@@ -141,37 +127,37 @@ var m = new class extends r {
141
127
  }
142
128
  create(e) {
143
129
  let t = globalThis.Object.create(this.messagePrototype);
144
- return t.modules = [], t.availableDefintitionSoruces = [], e !== void 0 && i(this, t, e), t;
130
+ return t.modules = [], t.availableDefintitionSoruces = [], e !== void 0 && r(this, t, e), t;
145
131
  }
146
132
  internalBinaryRead(e, n, r, i) {
147
- let a = i ?? this.create(), o = e.pos + n;
148
- for (; e.pos < o;) {
133
+ let a = i ?? this.create(), s = e.pos + n;
134
+ for (; e.pos < s;) {
149
135
  let [n, i] = e.tag();
150
136
  switch (n) {
151
137
  case 1:
152
- a.modules.push(s.internalBinaryRead(e, e.uint32(), r));
138
+ a.modules.push(o.internalBinaryRead(e, e.uint32(), r));
153
139
  break;
154
140
  case 2:
155
141
  a.availableDefintitionSoruces.push(e.string());
156
142
  break;
157
143
  default:
158
- let o = r.readUnknownField;
159
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
144
+ let s = r.readUnknownField;
145
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
160
146
  let c = e.skip(i);
161
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, c);
147
+ s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, a, n, i, c);
162
148
  }
163
149
  }
164
150
  return a;
165
151
  }
166
152
  internalBinaryWrite(n, r, i) {
167
- for (let t = 0; t < n.modules.length; t++) s.internalBinaryWrite(n.modules[t], r.tag(1, e.LengthDelimited).fork(), i).join();
153
+ for (let t = 0; t < n.modules.length; t++) o.internalBinaryWrite(n.modules[t], r.tag(1, e.LengthDelimited).fork(), i).join();
168
154
  for (let t = 0; t < n.availableDefintitionSoruces.length; t++) r.tag(2, e.LengthDelimited).string(n.availableDefintitionSoruces[t]);
169
155
  let a = i.writeUnknownFields;
170
156
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
171
157
  }
172
- }(), y = new class extends r {
158
+ }(), _ = new class extends n {
173
159
  constructor() {
174
- super("sagittarius.ModuleUpdateResponse", [{
160
+ super("sagittarius_rails.ModuleUpdateResponse", [{
175
161
  no: 1,
176
162
  name: "success",
177
163
  kind: "scalar",
@@ -180,64 +166,63 @@ var m = new class extends r {
180
166
  no: 2,
181
167
  name: "error",
182
168
  kind: "message",
183
- T: () => a
169
+ T: () => i
184
170
  }]);
185
171
  }
186
172
  create(e) {
187
173
  let t = globalThis.Object.create(this.messagePrototype);
188
- return t.success = !1, e !== void 0 && i(this, t, e), t;
174
+ return t.success = !1, e !== void 0 && r(this, t, e), t;
189
175
  }
190
- internalBinaryRead(e, n, r, i) {
191
- let o = i ?? this.create(), s = e.pos + n;
176
+ internalBinaryRead(e, n, r, a) {
177
+ let o = a ?? this.create(), s = e.pos + n;
192
178
  for (; e.pos < s;) {
193
- let [n, i] = e.tag();
179
+ let [n, a] = e.tag();
194
180
  switch (n) {
195
181
  case 1:
196
182
  o.success = e.bool();
197
183
  break;
198
184
  case 2:
199
- o.error = a.internalBinaryRead(e, e.uint32(), r, o.error);
185
+ o.error = i.internalBinaryRead(e, e.uint32(), r, o.error);
200
186
  break;
201
187
  default:
202
188
  let s = r.readUnknownField;
203
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
204
- let c = e.skip(i);
205
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, i, c);
189
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
190
+ let c = e.skip(a);
191
+ s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, a, c);
206
192
  }
207
193
  }
208
194
  return o;
209
195
  }
210
- internalBinaryWrite(n, r, i) {
211
- 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();
212
- let o = i.writeUnknownFields;
196
+ internalBinaryWrite(n, r, a) {
197
+ n.success !== !1 && r.tag(1, e.Varint).bool(n.success), n.error && i.internalBinaryWrite(n.error, r.tag(2, e.LengthDelimited).fork(), a).join();
198
+ let o = a.writeUnknownFields;
213
199
  return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
214
200
  }
215
- }(), b = new f("sagittarius.ModuleService", [{
201
+ }(), v = new u("sagittarius_rails.ModuleService", [{
216
202
  name: "Update",
217
203
  options: {},
218
- I: v,
219
- O: y
220
- }]), x = class {
204
+ I: g,
205
+ O: _
206
+ }]), y = class {
221
207
  constructor(e) {
222
- this._transport = e, this.typeName = b.typeName, this.methods = b.methods, this.options = b.options;
208
+ this._transport = e, this.typeName = v.typeName, this.methods = v.methods, this.options = v.options;
223
209
  }
224
210
  update(e, t) {
225
211
  let n = this.methods[0], r = this._transport.mergeOptions(t);
226
- return p("unary", this._transport, n, r, e);
212
+ return d("unary", this._transport, n, r, e);
227
213
  }
228
- }, S = new class extends r {
214
+ }, b = new class extends n {
229
215
  constructor() {
230
- super("sagittarius.PingMessage", [{
216
+ super("sagittarius_rails.RuntimeStatusUpdateRequest", [{
231
217
  no: 1,
232
- name: "ping_id",
233
- kind: "scalar",
234
- T: 3,
235
- L: 0
218
+ name: "status",
219
+ kind: "message",
220
+ T: () => s
236
221
  }]);
237
222
  }
238
223
  create(e) {
239
224
  let t = globalThis.Object.create(this.messagePrototype);
240
- return t.pingId = 0n, e !== void 0 && i(this, t, e), t;
225
+ return e !== void 0 && r(this, t, e), t;
241
226
  }
242
227
  internalBinaryRead(e, n, r, i) {
243
228
  let a = i ?? this.create(), o = e.pos + n;
@@ -245,73 +230,116 @@ var m = new class extends r {
245
230
  let [n, i] = e.tag();
246
231
  switch (n) {
247
232
  case 1:
248
- a.pingId = e.int64().toBigInt();
233
+ a.status = s.internalBinaryRead(e, e.uint32(), r, a.status);
249
234
  break;
250
235
  default:
251
236
  let o = r.readUnknownField;
252
237
  if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
253
- let s = e.skip(i);
254
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
238
+ let c = e.skip(i);
239
+ o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, c);
255
240
  }
256
241
  }
257
242
  return a;
258
243
  }
259
244
  internalBinaryWrite(n, r, i) {
260
- n.pingId !== 0n && r.tag(1, e.Varint).int64(n.pingId);
245
+ n.status && s.internalBinaryWrite(n.status, r.tag(1, e.LengthDelimited).fork(), i).join();
261
246
  let a = i.writeUnknownFields;
262
247
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
263
248
  }
264
- }(), C = new f("sagittarius.PingService", [{
265
- name: "Ping",
249
+ }(), x = new class extends n {
250
+ constructor() {
251
+ super("sagittarius_rails.RuntimeStatusUpdateResponse", [{
252
+ no: 1,
253
+ name: "success",
254
+ kind: "scalar",
255
+ T: 8
256
+ }, {
257
+ no: 2,
258
+ name: "error",
259
+ kind: "message",
260
+ T: () => i
261
+ }]);
262
+ }
263
+ create(e) {
264
+ let t = globalThis.Object.create(this.messagePrototype);
265
+ return t.success = !1, e !== void 0 && r(this, t, e), t;
266
+ }
267
+ internalBinaryRead(e, n, r, a) {
268
+ let o = a ?? this.create(), s = e.pos + n;
269
+ for (; e.pos < s;) {
270
+ let [n, a] = e.tag();
271
+ switch (n) {
272
+ case 1:
273
+ o.success = e.bool();
274
+ break;
275
+ case 2:
276
+ o.error = i.internalBinaryRead(e, e.uint32(), r, o.error);
277
+ break;
278
+ default:
279
+ let s = r.readUnknownField;
280
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
281
+ let c = e.skip(a);
282
+ s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, a, c);
283
+ }
284
+ }
285
+ return o;
286
+ }
287
+ internalBinaryWrite(n, r, a) {
288
+ n.success !== !1 && r.tag(1, e.Varint).bool(n.success), n.error && i.internalBinaryWrite(n.error, r.tag(2, e.LengthDelimited).fork(), a).join();
289
+ let o = a.writeUnknownFields;
290
+ return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
291
+ }
292
+ }(), S = new u("sagittarius_rails.RuntimeStatusService", [{
293
+ name: "Update",
266
294
  options: {},
267
- I: S,
268
- O: S
269
- }]), w = class {
295
+ I: b,
296
+ O: x
297
+ }]), C = class {
270
298
  constructor(e) {
271
- this._transport = e, this.typeName = C.typeName, this.methods = C.methods, this.options = C.options;
299
+ this._transport = e, this.typeName = S.typeName, this.methods = S.methods, this.options = S.options;
272
300
  }
273
- ping(e, t) {
301
+ update(e, t) {
274
302
  let n = this.methods[0], r = this._transport.mergeOptions(t);
275
- return p("unary", this._transport, n, r, e);
303
+ return d("unary", this._transport, n, r, e);
276
304
  }
277
- }, T = new class extends r {
305
+ }, w = new class extends n {
278
306
  constructor() {
279
- super("sagittarius.RuntimeStatusUpdateRequest", [{
307
+ super("sagittarius_rails.ExecutionRequest", [{
280
308
  no: 1,
281
- name: "status",
309
+ name: "response",
282
310
  kind: "message",
283
- T: () => l
311
+ T: () => a
284
312
  }]);
285
313
  }
286
314
  create(e) {
287
315
  let t = globalThis.Object.create(this.messagePrototype);
288
- return e !== void 0 && i(this, t, e), t;
316
+ return e !== void 0 && r(this, t, e), t;
289
317
  }
290
318
  internalBinaryRead(e, n, r, i) {
291
- let a = i ?? this.create(), o = e.pos + n;
292
- for (; e.pos < o;) {
319
+ let o = i ?? this.create(), s = e.pos + n;
320
+ for (; e.pos < s;) {
293
321
  let [n, i] = e.tag();
294
322
  switch (n) {
295
323
  case 1:
296
- a.status = l.internalBinaryRead(e, e.uint32(), r, a.status);
324
+ o.response = a.internalBinaryRead(e, e.uint32(), r, o.response);
297
325
  break;
298
326
  default:
299
- let o = r.readUnknownField;
300
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
301
- let s = e.skip(i);
302
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
327
+ let s = r.readUnknownField;
328
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
329
+ let c = e.skip(i);
330
+ s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, i, c);
303
331
  }
304
332
  }
305
- return a;
333
+ return o;
306
334
  }
307
335
  internalBinaryWrite(n, r, i) {
308
- n.status && l.internalBinaryWrite(n.status, r.tag(1, e.LengthDelimited).fork(), i).join();
309
- let a = i.writeUnknownFields;
310
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
336
+ n.response && a.internalBinaryWrite(n.response, r.tag(1, e.LengthDelimited).fork(), i).join();
337
+ let o = i.writeUnknownFields;
338
+ return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
311
339
  }
312
- }(), E = new class extends r {
340
+ }(), T = new class extends n {
313
341
  constructor() {
314
- super("sagittarius.RuntimeStatusUpdateResponse", [{
342
+ super("sagittarius_rails.ExecutionResponse", [{
315
343
  no: 1,
316
344
  name: "success",
317
345
  kind: "scalar",
@@ -320,64 +348,72 @@ var m = new class extends r {
320
348
  no: 2,
321
349
  name: "error",
322
350
  kind: "message",
323
- T: () => a
351
+ T: () => i
324
352
  }]);
325
353
  }
326
354
  create(e) {
327
355
  let t = globalThis.Object.create(this.messagePrototype);
328
- return t.success = !1, e !== void 0 && i(this, t, e), t;
356
+ return t.success = !1, e !== void 0 && r(this, t, e), t;
329
357
  }
330
- internalBinaryRead(e, n, r, i) {
331
- let o = i ?? this.create(), s = e.pos + n;
358
+ internalBinaryRead(e, n, r, a) {
359
+ let o = a ?? this.create(), s = e.pos + n;
332
360
  for (; e.pos < s;) {
333
- let [n, i] = e.tag();
361
+ let [n, a] = e.tag();
334
362
  switch (n) {
335
363
  case 1:
336
364
  o.success = e.bool();
337
365
  break;
338
366
  case 2:
339
- o.error = a.internalBinaryRead(e, e.uint32(), r, o.error);
367
+ o.error = i.internalBinaryRead(e, e.uint32(), r, o.error);
340
368
  break;
341
369
  default:
342
370
  let s = r.readUnknownField;
343
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
344
- let c = e.skip(i);
345
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, i, c);
371
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
372
+ let c = e.skip(a);
373
+ s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, n, a, c);
346
374
  }
347
375
  }
348
376
  return o;
349
377
  }
350
- internalBinaryWrite(n, r, i) {
351
- 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();
352
- let o = i.writeUnknownFields;
378
+ internalBinaryWrite(n, r, a) {
379
+ n.success !== !1 && r.tag(1, e.Varint).bool(n.success), n.error && i.internalBinaryWrite(n.error, r.tag(2, e.LengthDelimited).fork(), a).join();
380
+ let o = a.writeUnknownFields;
353
381
  return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, r), r;
354
382
  }
355
- }(), D = new f("sagittarius.RuntimeStatusService", [{
383
+ }(), E = new u("sagittarius_rails.ExecutionService", [{
356
384
  name: "Update",
357
385
  options: {},
358
- I: T,
359
- O: E
360
- }]), O = class {
386
+ I: w,
387
+ O: T
388
+ }]), D = class {
361
389
  constructor(e) {
362
- this._transport = e, this.typeName = D.typeName, this.methods = D.methods, this.options = D.options;
390
+ this._transport = e, this.typeName = E.typeName, this.methods = E.methods, this.options = E.options;
363
391
  }
364
392
  update(e, t) {
365
393
  let n = this.methods[0], r = this._transport.mergeOptions(t);
366
- return p("unary", this._transport, n, r, e);
394
+ return d("unary", this._transport, n, r, e);
367
395
  }
368
- }, k = new class extends r {
396
+ }, O = new class extends n {
369
397
  constructor() {
370
- super("sagittarius.Logon", []);
398
+ super("sagittarius_rails.TokenVerifyRequest", [{
399
+ no: 1,
400
+ name: "token",
401
+ kind: "scalar",
402
+ T: 9
403
+ }]);
371
404
  }
372
405
  create(e) {
373
406
  let t = globalThis.Object.create(this.messagePrototype);
374
- return e !== void 0 && i(this, t, e), t;
407
+ return t.token = "", e !== void 0 && r(this, t, e), t;
375
408
  }
376
409
  internalBinaryRead(e, n, r, i) {
377
410
  let a = i ?? this.create(), o = e.pos + n;
378
411
  for (; e.pos < o;) {
379
412
  let [n, i] = e.tag();
380
413
  switch (n) {
414
+ case 1:
415
+ a.token = e.string();
416
+ break;
381
417
  default:
382
418
  let o = r.readUnknownField;
383
419
  if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
@@ -387,129 +423,75 @@ var m = new class extends r {
387
423
  }
388
424
  return a;
389
425
  }
390
- internalBinaryWrite(e, n, r) {
391
- let i = r.writeUnknownFields;
392
- return i !== !1 && (i == 1 ? t.onWrite : i)(this.typeName, e, n), n;
393
- }
394
- }(), A = new class extends r {
395
- constructor() {
396
- super("sagittarius.TestExecutionRequest", [
397
- {
398
- no: 1,
399
- name: "flow_id",
400
- kind: "scalar",
401
- T: 3,
402
- L: 0
403
- },
404
- {
405
- no: 2,
406
- name: "execution_identifier",
407
- kind: "scalar",
408
- T: 9
409
- },
410
- {
411
- no: 3,
412
- name: "body",
413
- kind: "message",
414
- T: () => n
415
- }
416
- ]);
417
- }
418
- create(e) {
419
- let t = globalThis.Object.create(this.messagePrototype);
420
- return t.flowId = 0n, t.executionIdentifier = "", e !== void 0 && i(this, t, e), t;
421
- }
422
- internalBinaryRead(e, r, i, a) {
423
- let o = a ?? this.create(), s = e.pos + r;
424
- for (; e.pos < s;) {
425
- let [r, a] = e.tag();
426
- switch (r) {
427
- case 1:
428
- o.flowId = e.int64().toBigInt();
429
- break;
430
- case 2:
431
- o.executionIdentifier = e.string();
432
- break;
433
- case 3:
434
- o.body = n.internalBinaryRead(e, e.uint32(), i, o.body);
435
- break;
436
- default:
437
- let s = i.readUnknownField;
438
- if (s === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);
439
- let c = e.skip(a);
440
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, o, r, a, c);
441
- }
442
- }
443
- return o;
444
- }
445
- internalBinaryWrite(r, i, a) {
446
- 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();
447
- let o = a.writeUnknownFields;
448
- return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, r, i), i;
426
+ internalBinaryWrite(n, r, i) {
427
+ n.token !== "" && r.tag(1, e.LengthDelimited).string(n.token);
428
+ let a = i.writeUnknownFields;
429
+ return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
449
430
  }
450
- }(), j = new class extends r {
431
+ }(), k = new class extends n {
451
432
  constructor() {
452
- super("sagittarius.ExecutionLogonRequest", [{
433
+ super("sagittarius_rails.TokenVerifyResponse", [{
453
434
  no: 1,
454
- name: "logon",
435
+ name: "verified",
455
436
  kind: "message",
456
437
  oneof: "data",
457
- T: () => k
438
+ T: () => A
458
439
  }, {
459
440
  no: 2,
460
- name: "response",
441
+ name: "unverified",
461
442
  kind: "message",
462
443
  oneof: "data",
463
- T: () => o
444
+ T: () => j
464
445
  }]);
465
446
  }
466
447
  create(e) {
467
448
  let t = globalThis.Object.create(this.messagePrototype);
468
- return t.data = { oneofKind: void 0 }, e !== void 0 && i(this, t, e), t;
449
+ return t.data = { oneofKind: void 0 }, e !== void 0 && r(this, t, e), t;
469
450
  }
470
451
  internalBinaryRead(e, n, r, i) {
471
- let a = i ?? this.create(), s = e.pos + n;
472
- for (; e.pos < s;) {
452
+ let a = i ?? this.create(), o = e.pos + n;
453
+ for (; e.pos < o;) {
473
454
  let [n, i] = e.tag();
474
455
  switch (n) {
475
456
  case 1:
476
457
  a.data = {
477
- oneofKind: "logon",
478
- logon: k.internalBinaryRead(e, e.uint32(), r, a.data.logon)
458
+ oneofKind: "verified",
459
+ verified: A.internalBinaryRead(e, e.uint32(), r, a.data.verified)
479
460
  };
480
461
  break;
481
462
  case 2:
482
463
  a.data = {
483
- oneofKind: "response",
484
- response: o.internalBinaryRead(e, e.uint32(), r, a.data.response)
464
+ oneofKind: "unverified",
465
+ unverified: j.internalBinaryRead(e, e.uint32(), r, a.data.unverified)
485
466
  };
486
467
  break;
487
468
  default:
488
- let s = r.readUnknownField;
489
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
490
- let c = e.skip(i);
491
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, a, n, i, c);
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 = e.skip(i);
472
+ o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
492
473
  }
493
474
  }
494
475
  return a;
495
476
  }
496
477
  internalBinaryWrite(n, r, i) {
497
- n.data.oneofKind === "logon" && k.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();
478
+ n.data.oneofKind === "verified" && A.internalBinaryWrite(n.data.verified, r.tag(1, e.LengthDelimited).fork(), i).join(), n.data.oneofKind === "unverified" && j.internalBinaryWrite(n.data.unverified, r.tag(2, e.LengthDelimited).fork(), i).join();
498
479
  let a = i.writeUnknownFields;
499
480
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
500
481
  }
501
- }(), M = new class extends r {
482
+ }(), A = new class extends n {
502
483
  constructor() {
503
- super("sagittarius.ExecutionLogonResponse", [{
484
+ super("sagittarius_rails.VerifiedRuntime", [{
504
485
  no: 1,
505
- name: "request",
506
- kind: "message",
507
- T: () => A
486
+ name: "runtime_id",
487
+ kind: "scalar",
488
+ T: 3,
489
+ L: 0
508
490
  }]);
509
491
  }
510
492
  create(e) {
511
493
  let t = globalThis.Object.create(this.messagePrototype);
512
- return e !== void 0 && i(this, t, e), t;
494
+ return t.runtimeId = 0n, e !== void 0 && r(this, t, e), t;
513
495
  }
514
496
  internalBinaryRead(e, n, r, i) {
515
497
  let a = i ?? this.create(), o = e.pos + n;
@@ -517,7 +499,7 @@ var m = new class extends r {
517
499
  let [n, i] = e.tag();
518
500
  switch (n) {
519
501
  case 1:
520
- a.request = A.internalBinaryRead(e, e.uint32(), r, a.request);
502
+ a.runtimeId = e.int64().toBigInt();
521
503
  break;
522
504
  default:
523
505
  let o = r.readUnknownField;
@@ -529,25 +511,49 @@ var m = new class extends r {
529
511
  return a;
530
512
  }
531
513
  internalBinaryWrite(n, r, i) {
532
- n.request && A.internalBinaryWrite(n.request, r.tag(1, e.LengthDelimited).fork(), i).join();
514
+ n.runtimeId !== 0n && r.tag(1, e.Varint).int64(n.runtimeId);
533
515
  let a = i.writeUnknownFields;
534
516
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
535
517
  }
536
- }(), N = new f("sagittarius.ExecutionService", [{
537
- name: "Test",
538
- serverStreaming: !0,
539
- clientStreaming: !0,
518
+ }(), j = new class extends n {
519
+ constructor() {
520
+ super("sagittarius_rails.UnverifiedRuntime", []);
521
+ }
522
+ create(e) {
523
+ let t = globalThis.Object.create(this.messagePrototype);
524
+ return e !== void 0 && r(this, t, e), t;
525
+ }
526
+ internalBinaryRead(e, n, r, i) {
527
+ let a = i ?? this.create(), o = e.pos + n;
528
+ for (; e.pos < o;) {
529
+ let [n, i] = e.tag();
530
+ switch (n) {
531
+ default:
532
+ let o = r.readUnknownField;
533
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
534
+ let s = e.skip(i);
535
+ o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
536
+ }
537
+ }
538
+ return a;
539
+ }
540
+ internalBinaryWrite(e, n, r) {
541
+ let i = r.writeUnknownFields;
542
+ return i !== !1 && (i == 1 ? t.onWrite : i)(this.typeName, e, n), n;
543
+ }
544
+ }(), M = new u("sagittarius_rails.TokenService", [{
545
+ name: "Verify",
540
546
  options: {},
541
- I: j,
542
- O: M
543
- }]), P = class {
547
+ I: O,
548
+ O: k
549
+ }]), N = class {
544
550
  constructor(e) {
545
- this._transport = e, this.typeName = N.typeName, this.methods = N.methods, this.options = N.options;
551
+ this._transport = e, this.typeName = M.typeName, this.methods = M.methods, this.options = M.options;
546
552
  }
547
- test(e) {
548
- let t = this.methods[0], n = this._transport.mergeOptions(e);
549
- return p("duplex", this._transport, t, n);
553
+ verify(e, t) {
554
+ let n = this.methods[0], r = this._transport.mergeOptions(t);
555
+ return d("unary", this._transport, n, r, e);
550
556
  }
551
557
  };
552
558
  //#endregion
553
- export { j as ExecutionLogonRequest, M as ExecutionLogonResponse, N as ExecutionService, P as ExecutionServiceClient, m as FlowLogonRequest, h as FlowResponse, g as FlowService, _ as FlowServiceClient, k as Logon, b as ModuleService, x as ModuleServiceClient, v as ModuleUpdateRequest, y as ModuleUpdateResponse, S as PingMessage, C as PingService, w as PingServiceClient, D as RuntimeStatusService, O as RuntimeStatusServiceClient, T as RuntimeStatusUpdateRequest, E as RuntimeStatusUpdateResponse, A as TestExecutionRequest };
559
+ export { w as ExecutionRequest, T as ExecutionResponse, E as ExecutionService, D as ExecutionServiceClient, f as FlowLogonRequest, p as FlowResponse, m as FlowService, h as FlowServiceClient, v as ModuleService, y as ModuleServiceClient, g as ModuleUpdateRequest, _ as ModuleUpdateResponse, S as RuntimeStatusService, C as RuntimeStatusServiceClient, b as RuntimeStatusUpdateRequest, x as RuntimeStatusUpdateResponse, M as TokenService, N as TokenServiceClient, O as TokenVerifyRequest, k as TokenVerifyResponse, j as UnverifiedRuntime, A as VerifiedRuntime };