@code0-tech/tucana 0.0.79 → 0.0.81

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