@code0-tech/tucana 0.0.38 → 0.0.39

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 (65) hide show
  1. package/package.json +5 -4
  2. package/pb/{aquila.action_pb.client.ts → aquila.action_pb.client.d.ts} +8 -13
  3. package/pb/aquila.action_pb.client.js +25 -0
  4. package/pb/aquila.action_pb.d.ts +254 -0
  5. package/pb/{aquila.action_pb.ts → aquila.action_pb.js} +49 -215
  6. package/pb/{aquila.data_type_pb.client.ts → aquila.data_type_pb.client.d.ts} +8 -13
  7. package/pb/aquila.data_type_pb.client.js +23 -0
  8. package/pb/aquila.data_type_pb.d.ts +61 -0
  9. package/pb/{aquila.data_type_pb.ts → aquila.data_type_pb.js} +16 -44
  10. package/pb/{aquila.execution_pb.client.ts → aquila.execution_pb.client.d.ts} +15 -24
  11. package/pb/aquila.execution_pb.client.js +49 -0
  12. package/pb/aquila.execution_pb.d.ts +135 -0
  13. package/pb/{aquila.execution_pb.ts → aquila.execution_pb.js} +34 -103
  14. package/pb/{aquila.flow_type_pb.client.ts → aquila.flow_type_pb.client.d.ts} +8 -13
  15. package/pb/aquila.flow_type_pb.client.js +25 -0
  16. package/pb/aquila.flow_type_pb.d.ts +61 -0
  17. package/pb/{aquila.flow_type_pb.ts → aquila.flow_type_pb.js} +16 -44
  18. package/pb/{aquila.runtime_function_pb.client.ts → aquila.runtime_function_pb.client.d.ts} +8 -13
  19. package/pb/aquila.runtime_function_pb.client.js +25 -0
  20. package/pb/aquila.runtime_function_pb.d.ts +61 -0
  21. package/pb/{aquila.runtime_function_pb.ts → aquila.runtime_function_pb.js} +16 -44
  22. package/pb/{sagittarius.action_pb.client.ts → sagittarius.action_pb.client.d.ts} +9 -17
  23. package/pb/sagittarius.action_pb.client.js +32 -0
  24. package/pb/sagittarius.action_pb.d.ts +95 -0
  25. package/pb/{sagittarius.action_pb.ts → sagittarius.action_pb.js} +28 -70
  26. package/pb/{sagittarius.data_type_pb.client.ts → sagittarius.data_type_pb.client.d.ts} +8 -13
  27. package/pb/sagittarius.data_type_pb.client.js +23 -0
  28. package/pb/sagittarius.data_type_pb.d.ts +61 -0
  29. package/pb/{sagittarius.data_type_pb.ts → sagittarius.data_type_pb.js} +16 -44
  30. package/pb/{sagittarius.flow_pb.client.ts → sagittarius.flow_pb.client.d.ts} +8 -13
  31. package/pb/sagittarius.flow_pb.client.js +23 -0
  32. package/pb/sagittarius.flow_pb.d.ts +80 -0
  33. package/pb/{sagittarius.flow_pb.ts → sagittarius.flow_pb.js} +18 -64
  34. package/pb/{sagittarius.flow_type_pb.client.ts → sagittarius.flow_type_pb.client.d.ts} +8 -13
  35. package/pb/sagittarius.flow_type_pb.client.js +25 -0
  36. package/pb/sagittarius.flow_type_pb.d.ts +61 -0
  37. package/pb/{sagittarius.flow_type_pb.ts → sagittarius.flow_type_pb.js} +16 -44
  38. package/pb/{sagittarius.ping_pb.client.ts → sagittarius.ping_pb.client.d.ts} +8 -13
  39. package/pb/sagittarius.ping_pb.client.js +23 -0
  40. package/pb/sagittarius.ping_pb.d.ts +33 -0
  41. package/pb/{sagittarius.ping_pb.ts → sagittarius.ping_pb.js} +10 -21
  42. package/pb/{sagittarius.runtime_function_pb.client.ts → sagittarius.runtime_function_pb.client.d.ts} +8 -13
  43. package/pb/sagittarius.runtime_function_pb.client.js +25 -0
  44. package/pb/sagittarius.runtime_function_pb.d.ts +61 -0
  45. package/pb/{sagittarius.runtime_function_pb.ts → sagittarius.runtime_function_pb.js} +16 -44
  46. package/pb/{sagittarius.text_execution_pb.client.ts → sagittarius.text_execution_pb.client.d.ts} +8 -13
  47. package/pb/sagittarius.text_execution_pb.client.js +23 -0
  48. package/pb/sagittarius.text_execution_pb.d.ts +172 -0
  49. package/pb/{sagittarius.text_execution_pb.ts → sagittarius.text_execution_pb.js} +42 -141
  50. package/pb/shared.data_type_pb.d.ts +614 -0
  51. package/pb/{shared.data_type_pb.ts → shared.data_type_pb.js} +140 -508
  52. package/pb/shared.event_pb.d.ts +120 -0
  53. package/pb/{shared.event_pb.ts → shared.event_pb.js} +19 -101
  54. package/pb/shared.flow_definition_pb.d.ts +105 -0
  55. package/pb/{shared.flow_definition_pb.ts → shared.flow_definition_pb.js} +13 -90
  56. package/pb/shared.flow_pb.d.ts +311 -0
  57. package/pb/{shared.flow_pb.ts → shared.flow_pb.js} +57 -270
  58. package/pb/shared.runtime_function_pb.d.ts +114 -0
  59. package/pb/{shared.runtime_function_pb.ts → shared.runtime_function_pb.js} +13 -98
  60. package/pb/shared.struct_pb.d.ts +198 -0
  61. package/pb/{shared.struct_pb.ts → shared.struct_pb.js} +27 -136
  62. package/pb/shared.translation_pb.d.ts +39 -0
  63. package/pb/{shared.translation_pb.ts → shared.translation_pb.js} +7 -31
  64. package/pb/shared.version_pb.d.ts +37 -0
  65. package/pb/{shared.version_pb.ts → shared.version_pb.js} +7 -29
@@ -1,14 +1,12 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.action.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
5
  // @generated from protobuf file "aquila.action.proto" (package "aquila", syntax proto3)
3
6
  // tslint:disable
4
7
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
8
  import { WireType } from "@protobuf-ts/runtime";
8
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
- import type { IBinaryReader } from "@protobuf-ts/runtime";
10
9
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
- import type { PartialMessage } from "@protobuf-ts/runtime";
12
10
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
11
  import { MessageType } from "@protobuf-ts/runtime";
14
12
  import { Struct } from "./shared.struct_pb";
@@ -17,186 +15,22 @@ import { Translation } from "./shared.translation_pb";
17
15
  import { EventType } from "./shared.event_pb";
18
16
  import { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
19
17
  import { Value } from "./shared.struct_pb";
20
- /**
21
- * Event that gets admitted by an action
22
- *
23
- * @generated from protobuf message aquila.Event
24
- */
25
- export interface Event {
26
- /**
27
- * Id of Event type
28
- *
29
- * @generated from protobuf field: string event_type = 1
30
- */
31
- eventType: string;
32
- /**
33
- * Payload (JSON) of event params
34
- *
35
- * @generated from protobuf field: shared.Value payload = 2
36
- */
37
- payload?: Value;
38
- }
39
- /**
40
- * Action flow/event configuration
41
- *
42
- * @generated from protobuf message aquila.Configuration
43
- */
44
- export interface Configuration {
45
- /**
46
- * Action identifier
47
- *
48
- * @generated from protobuf field: string identifier = 1
49
- */
50
- identifier: string;
51
- /**
52
- * Flow Configuration
53
- *
54
- * @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definitions = 2
55
- */
56
- functionDefinitions: RuntimeFunctionDefinition[];
57
- /**
58
- * Event Configuration
59
- *
60
- * @generated from protobuf field: repeated shared.EventType event_types = 3
61
- */
62
- eventTypes: EventType[];
63
- /**
64
- * Application Configuration
65
- *
66
- * @generated from protobuf field: repeated aquila.ActionConfiguration action_configurations = 4
67
- */
68
- actionConfigurations: ActionConfiguration[];
69
- }
70
- /**
71
- * @generated from protobuf message aquila.ActionConfiguration
72
- */
73
- export interface ActionConfiguration {
74
- /**
75
- * @generated from protobuf field: repeated shared.Translation name = 1
76
- */
77
- name: Translation[];
78
- /**
79
- * @generated from protobuf field: repeated shared.Translation description = 2
80
- */
81
- description: Translation[];
82
- /**
83
- * @generated from protobuf field: shared.DefinitionDataType type = 3
84
- */
85
- type?: DefinitionDataType;
86
- /**
87
- * @generated from protobuf field: optional shared.Value default_value = 4
88
- */
89
- defaultValue?: Value;
90
- }
91
- /**
92
- * Request to execute a request a flow
93
- *
94
- * @generated from protobuf message aquila.ExecutionRequest
95
- */
96
- export interface ExecutionRequest {
97
- /**
98
- * Execution identifier of execution
99
- *
100
- * @generated from protobuf field: string execution_identifier = 1
101
- */
102
- executionIdentifier: string;
103
- /**
104
- * Function identifier of flow to execute
105
- *
106
- * @generated from protobuf field: string function_identifier = 2
107
- */
108
- functionIdentifier: string;
109
- /**
110
- * Parameters (JSON) of flow required to execute
111
- *
112
- * @generated from protobuf field: shared.Struct parameters = 3
113
- */
114
- parameters?: Struct;
115
- }
116
- /**
117
- * Result from executed flows by an action
118
- *
119
- * @generated from protobuf message aquila.ExecutionResult
120
- */
121
- export interface ExecutionResult {
122
- /**
123
- * Identifier of flow to execute
124
- *
125
- * @generated from protobuf field: string execution_identifier = 1
126
- */
127
- executionIdentifier: string;
128
- /**
129
- * Result of executed flow
130
- *
131
- * @generated from protobuf field: shared.Value result = 2
132
- */
133
- result?: Value;
134
- }
135
- /**
136
- * @generated from protobuf message aquila.TransferRequest
137
- */
138
- export interface TransferRequest {
139
- /**
140
- * @generated from protobuf oneof: data
141
- */
142
- data: {
143
- oneofKind: "configuration";
144
- /**
145
- * Configuration of action that will be send to sagittarius
146
- *
147
- * Expected behavior:
148
- * Aquila will abort if the first request is not a configuration
149
- *
150
- * @generated from protobuf field: aquila.Configuration configuration = 1
151
- */
152
- configuration: Configuration;
153
- } | {
154
- oneofKind: "event";
155
- /**
156
- * Event that got admitted
157
- *
158
- * @generated from protobuf field: aquila.Event event = 2
159
- */
160
- event: Event;
161
- } | {
162
- oneofKind: "result";
163
- /**
164
- * Result of execution that was triggered by a execution request
165
- *
166
- * @generated from protobuf field: aquila.ExecutionResult result = 3
167
- */
168
- result: ExecutionResult;
169
- } | {
170
- oneofKind: undefined;
171
- };
172
- }
173
- /**
174
- * @generated from protobuf message aquila.TransferResponse
175
- */
176
- export interface TransferResponse {
177
- /**
178
- * Execution request
179
- *
180
- * @generated from protobuf field: aquila.ExecutionRequest execution = 1
181
- */
182
- execution?: ExecutionRequest;
183
- }
184
18
  // @generated message type with reflection information, may provide speed optimized methods
185
- class Event$Type extends MessageType<Event> {
19
+ class Event$Type extends MessageType {
186
20
  constructor() {
187
21
  super("aquila.Event", [
188
22
  { no: 1, name: "event_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
189
23
  { no: 2, name: "payload", kind: "message", T: () => Value }
190
24
  ]);
191
25
  }
192
- create(value?: PartialMessage<Event>): Event {
193
- const message = globalThis.Object.create((this.messagePrototype!));
26
+ create(value) {
27
+ const message = globalThis.Object.create((this.messagePrototype));
194
28
  message.eventType = "";
195
29
  if (value !== undefined)
196
- reflectionMergePartial<Event>(this, message, value);
30
+ reflectionMergePartial(this, message, value);
197
31
  return message;
198
32
  }
199
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Event): Event {
33
+ internalBinaryRead(reader, length, options, target) {
200
34
  let message = target ?? this.create(), end = reader.pos + length;
201
35
  while (reader.pos < end) {
202
36
  let [fieldNo, wireType] = reader.tag();
@@ -218,7 +52,7 @@ class Event$Type extends MessageType<Event> {
218
52
  }
219
53
  return message;
220
54
  }
221
- internalBinaryWrite(message: Event, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
55
+ internalBinaryWrite(message, writer, options) {
222
56
  /* string event_type = 1; */
223
57
  if (message.eventType !== "")
224
58
  writer.tag(1, WireType.LengthDelimited).string(message.eventType);
@@ -236,7 +70,7 @@ class Event$Type extends MessageType<Event> {
236
70
  */
237
71
  export const Event = new Event$Type();
238
72
  // @generated message type with reflection information, may provide speed optimized methods
239
- class Configuration$Type extends MessageType<Configuration> {
73
+ class Configuration$Type extends MessageType {
240
74
  constructor() {
241
75
  super("aquila.Configuration", [
242
76
  { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -245,17 +79,17 @@ class Configuration$Type extends MessageType<Configuration> {
245
79
  { no: 4, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
246
80
  ]);
247
81
  }
248
- create(value?: PartialMessage<Configuration>): Configuration {
249
- const message = globalThis.Object.create((this.messagePrototype!));
82
+ create(value) {
83
+ const message = globalThis.Object.create((this.messagePrototype));
250
84
  message.identifier = "";
251
85
  message.functionDefinitions = [];
252
86
  message.eventTypes = [];
253
87
  message.actionConfigurations = [];
254
88
  if (value !== undefined)
255
- reflectionMergePartial<Configuration>(this, message, value);
89
+ reflectionMergePartial(this, message, value);
256
90
  return message;
257
91
  }
258
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Configuration): Configuration {
92
+ internalBinaryRead(reader, length, options, target) {
259
93
  let message = target ?? this.create(), end = reader.pos + length;
260
94
  while (reader.pos < end) {
261
95
  let [fieldNo, wireType] = reader.tag();
@@ -283,7 +117,7 @@ class Configuration$Type extends MessageType<Configuration> {
283
117
  }
284
118
  return message;
285
119
  }
286
- internalBinaryWrite(message: Configuration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
120
+ internalBinaryWrite(message, writer, options) {
287
121
  /* string identifier = 1; */
288
122
  if (message.identifier !== "")
289
123
  writer.tag(1, WireType.LengthDelimited).string(message.identifier);
@@ -307,7 +141,7 @@ class Configuration$Type extends MessageType<Configuration> {
307
141
  */
308
142
  export const Configuration = new Configuration$Type();
309
143
  // @generated message type with reflection information, may provide speed optimized methods
310
- class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
144
+ class ActionConfiguration$Type extends MessageType {
311
145
  constructor() {
312
146
  super("aquila.ActionConfiguration", [
313
147
  { no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
@@ -316,15 +150,15 @@ class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
316
150
  { no: 4, name: "default_value", kind: "message", T: () => Value }
317
151
  ]);
318
152
  }
319
- create(value?: PartialMessage<ActionConfiguration>): ActionConfiguration {
320
- const message = globalThis.Object.create((this.messagePrototype!));
153
+ create(value) {
154
+ const message = globalThis.Object.create((this.messagePrototype));
321
155
  message.name = [];
322
156
  message.description = [];
323
157
  if (value !== undefined)
324
- reflectionMergePartial<ActionConfiguration>(this, message, value);
158
+ reflectionMergePartial(this, message, value);
325
159
  return message;
326
160
  }
327
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfiguration): ActionConfiguration {
161
+ internalBinaryRead(reader, length, options, target) {
328
162
  let message = target ?? this.create(), end = reader.pos + length;
329
163
  while (reader.pos < end) {
330
164
  let [fieldNo, wireType] = reader.tag();
@@ -352,7 +186,7 @@ class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
352
186
  }
353
187
  return message;
354
188
  }
355
- internalBinaryWrite(message: ActionConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
189
+ internalBinaryWrite(message, writer, options) {
356
190
  /* repeated shared.Translation name = 1; */
357
191
  for (let i = 0; i < message.name.length; i++)
358
192
  Translation.internalBinaryWrite(message.name[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -376,7 +210,7 @@ class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
376
210
  */
377
211
  export const ActionConfiguration = new ActionConfiguration$Type();
378
212
  // @generated message type with reflection information, may provide speed optimized methods
379
- class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
213
+ class ExecutionRequest$Type extends MessageType {
380
214
  constructor() {
381
215
  super("aquila.ExecutionRequest", [
382
216
  { no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -384,15 +218,15 @@ class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
384
218
  { no: 3, name: "parameters", kind: "message", T: () => Struct }
385
219
  ]);
386
220
  }
387
- create(value?: PartialMessage<ExecutionRequest>): ExecutionRequest {
388
- const message = globalThis.Object.create((this.messagePrototype!));
221
+ create(value) {
222
+ const message = globalThis.Object.create((this.messagePrototype));
389
223
  message.executionIdentifier = "";
390
224
  message.functionIdentifier = "";
391
225
  if (value !== undefined)
392
- reflectionMergePartial<ExecutionRequest>(this, message, value);
226
+ reflectionMergePartial(this, message, value);
393
227
  return message;
394
228
  }
395
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionRequest): ExecutionRequest {
229
+ internalBinaryRead(reader, length, options, target) {
396
230
  let message = target ?? this.create(), end = reader.pos + length;
397
231
  while (reader.pos < end) {
398
232
  let [fieldNo, wireType] = reader.tag();
@@ -417,7 +251,7 @@ class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
417
251
  }
418
252
  return message;
419
253
  }
420
- internalBinaryWrite(message: ExecutionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
254
+ internalBinaryWrite(message, writer, options) {
421
255
  /* string execution_identifier = 1; */
422
256
  if (message.executionIdentifier !== "")
423
257
  writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
@@ -438,21 +272,21 @@ class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
438
272
  */
439
273
  export const ExecutionRequest = new ExecutionRequest$Type();
440
274
  // @generated message type with reflection information, may provide speed optimized methods
441
- class ExecutionResult$Type extends MessageType<ExecutionResult> {
275
+ class ExecutionResult$Type extends MessageType {
442
276
  constructor() {
443
277
  super("aquila.ExecutionResult", [
444
278
  { no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
445
279
  { no: 2, name: "result", kind: "message", T: () => Value }
446
280
  ]);
447
281
  }
448
- create(value?: PartialMessage<ExecutionResult>): ExecutionResult {
449
- const message = globalThis.Object.create((this.messagePrototype!));
282
+ create(value) {
283
+ const message = globalThis.Object.create((this.messagePrototype));
450
284
  message.executionIdentifier = "";
451
285
  if (value !== undefined)
452
- reflectionMergePartial<ExecutionResult>(this, message, value);
286
+ reflectionMergePartial(this, message, value);
453
287
  return message;
454
288
  }
455
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionResult): ExecutionResult {
289
+ internalBinaryRead(reader, length, options, target) {
456
290
  let message = target ?? this.create(), end = reader.pos + length;
457
291
  while (reader.pos < end) {
458
292
  let [fieldNo, wireType] = reader.tag();
@@ -474,7 +308,7 @@ class ExecutionResult$Type extends MessageType<ExecutionResult> {
474
308
  }
475
309
  return message;
476
310
  }
477
- internalBinaryWrite(message: ExecutionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
311
+ internalBinaryWrite(message, writer, options) {
478
312
  /* string execution_identifier = 1; */
479
313
  if (message.executionIdentifier !== "")
480
314
  writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
@@ -492,7 +326,7 @@ class ExecutionResult$Type extends MessageType<ExecutionResult> {
492
326
  */
493
327
  export const ExecutionResult = new ExecutionResult$Type();
494
328
  // @generated message type with reflection information, may provide speed optimized methods
495
- class TransferRequest$Type extends MessageType<TransferRequest> {
329
+ class TransferRequest$Type extends MessageType {
496
330
  constructor() {
497
331
  super("aquila.TransferRequest", [
498
332
  { no: 1, name: "configuration", kind: "message", oneof: "data", T: () => Configuration },
@@ -500,14 +334,14 @@ class TransferRequest$Type extends MessageType<TransferRequest> {
500
334
  { no: 3, name: "result", kind: "message", oneof: "data", T: () => ExecutionResult }
501
335
  ]);
502
336
  }
503
- create(value?: PartialMessage<TransferRequest>): TransferRequest {
504
- const message = globalThis.Object.create((this.messagePrototype!));
337
+ create(value) {
338
+ const message = globalThis.Object.create((this.messagePrototype));
505
339
  message.data = { oneofKind: undefined };
506
340
  if (value !== undefined)
507
- reflectionMergePartial<TransferRequest>(this, message, value);
341
+ reflectionMergePartial(this, message, value);
508
342
  return message;
509
343
  }
510
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransferRequest): TransferRequest {
344
+ internalBinaryRead(reader, length, options, target) {
511
345
  let message = target ?? this.create(), end = reader.pos + length;
512
346
  while (reader.pos < end) {
513
347
  let [fieldNo, wireType] = reader.tag();
@@ -515,19 +349,19 @@ class TransferRequest$Type extends MessageType<TransferRequest> {
515
349
  case /* aquila.Configuration configuration */ 1:
516
350
  message.data = {
517
351
  oneofKind: "configuration",
518
- configuration: Configuration.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).configuration)
352
+ configuration: Configuration.internalBinaryRead(reader, reader.uint32(), options, message.data.configuration)
519
353
  };
520
354
  break;
521
355
  case /* aquila.Event event */ 2:
522
356
  message.data = {
523
357
  oneofKind: "event",
524
- event: Event.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).event)
358
+ event: Event.internalBinaryRead(reader, reader.uint32(), options, message.data.event)
525
359
  };
526
360
  break;
527
361
  case /* aquila.ExecutionResult result */ 3:
528
362
  message.data = {
529
363
  oneofKind: "result",
530
- result: ExecutionResult.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).result)
364
+ result: ExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.data.result)
531
365
  };
532
366
  break;
533
367
  default:
@@ -541,7 +375,7 @@ class TransferRequest$Type extends MessageType<TransferRequest> {
541
375
  }
542
376
  return message;
543
377
  }
544
- internalBinaryWrite(message: TransferRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
378
+ internalBinaryWrite(message, writer, options) {
545
379
  /* aquila.Configuration configuration = 1; */
546
380
  if (message.data.oneofKind === "configuration")
547
381
  Configuration.internalBinaryWrite(message.data.configuration, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -562,19 +396,19 @@ class TransferRequest$Type extends MessageType<TransferRequest> {
562
396
  */
563
397
  export const TransferRequest = new TransferRequest$Type();
564
398
  // @generated message type with reflection information, may provide speed optimized methods
565
- class TransferResponse$Type extends MessageType<TransferResponse> {
399
+ class TransferResponse$Type extends MessageType {
566
400
  constructor() {
567
401
  super("aquila.TransferResponse", [
568
402
  { no: 1, name: "execution", kind: "message", T: () => ExecutionRequest }
569
403
  ]);
570
404
  }
571
- create(value?: PartialMessage<TransferResponse>): TransferResponse {
572
- const message = globalThis.Object.create((this.messagePrototype!));
405
+ create(value) {
406
+ const message = globalThis.Object.create((this.messagePrototype));
573
407
  if (value !== undefined)
574
- reflectionMergePartial<TransferResponse>(this, message, value);
408
+ reflectionMergePartial(this, message, value);
575
409
  return message;
576
410
  }
577
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransferResponse): TransferResponse {
411
+ internalBinaryRead(reader, length, options, target) {
578
412
  let message = target ?? this.create(), end = reader.pos + length;
579
413
  while (reader.pos < end) {
580
414
  let [fieldNo, wireType] = reader.tag();
@@ -593,7 +427,7 @@ class TransferResponse$Type extends MessageType<TransferResponse> {
593
427
  }
594
428
  return message;
595
429
  }
596
- internalBinaryWrite(message: TransferResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
430
+ internalBinaryWrite(message, writer, options) {
597
431
  /* aquila.ExecutionRequest execution = 1; */
598
432
  if (message.execution)
599
433
  ExecutionRequest.internalBinaryWrite(message.execution, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1,10 +1,8 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
2
  // @generated from protobuf file "aquila.data_type.proto" (package "aquila", syntax proto3)
3
3
  // tslint:disable
4
4
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
5
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
- import { DataTypeService } from "./aquila.data_type_pb";
7
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
6
  import type { DataTypeUpdateResponse } from "./aquila.data_type_pb";
9
7
  import type { DataTypeUpdateRequest } from "./aquila.data_type_pb";
10
8
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
@@ -21,17 +19,14 @@ export interface IDataTypeServiceClient {
21
19
  /**
22
20
  * @generated from protobuf service aquila.DataTypeService
23
21
  */
24
- export class DataTypeServiceClient implements IDataTypeServiceClient, ServiceInfo {
25
- typeName = DataTypeService.typeName;
26
- methods = DataTypeService.methods;
27
- options = DataTypeService.options;
28
- constructor(private readonly _transport: RpcTransport) {
29
- }
22
+ export declare class DataTypeServiceClient implements IDataTypeServiceClient, ServiceInfo {
23
+ private readonly _transport;
24
+ typeName: any;
25
+ methods: any;
26
+ options: any;
27
+ constructor(_transport: RpcTransport);
30
28
  /**
31
29
  * @generated from protobuf rpc: Update
32
30
  */
33
- update(input: DataTypeUpdateRequest, options?: RpcOptions): UnaryCall<DataTypeUpdateRequest, DataTypeUpdateResponse> {
34
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
35
- return stackIntercept<DataTypeUpdateRequest, DataTypeUpdateResponse>("unary", this._transport, method, opt, input);
36
- }
31
+ update(input: DataTypeUpdateRequest, options?: RpcOptions): UnaryCall<DataTypeUpdateRequest, DataTypeUpdateResponse>;
37
32
  }
@@ -0,0 +1,23 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.data_type.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import { DataTypeService } from "./aquila.data_type_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service aquila.DataTypeService
8
+ */
9
+ export class DataTypeServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = DataTypeService.typeName;
13
+ this.methods = DataTypeService.methods;
14
+ this.options = DataTypeService.options;
15
+ }
16
+ /**
17
+ * @generated from protobuf rpc: Update
18
+ */
19
+ update(input, options) {
20
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
21
+ return stackIntercept("unary", this._transport, method, opt, input);
22
+ }
23
+ }
@@ -0,0 +1,61 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "aquila.data_type.proto" (package "aquila", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
8
+ import type { PartialMessage } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ import { DefinitionDataType } from "./shared.data_type_pb";
11
+ /**
12
+ * Request for updating a data type
13
+ *
14
+ * @generated from protobuf message aquila.DataTypeUpdateRequest
15
+ */
16
+ export interface DataTypeUpdateRequest {
17
+ /**
18
+ * List of data types that should be updated
19
+ *
20
+ * @generated from protobuf field: repeated shared.DefinitionDataType data_types = 1
21
+ */
22
+ dataTypes: DefinitionDataType[];
23
+ }
24
+ /**
25
+ * Response of updating a data type
26
+ *
27
+ * @generated from protobuf message aquila.DataTypeUpdateResponse
28
+ */
29
+ export interface DataTypeUpdateResponse {
30
+ /**
31
+ * True if was successful, false if not
32
+ *
33
+ * @generated from protobuf field: bool success = 1
34
+ */
35
+ success: boolean;
36
+ }
37
+ declare class DataTypeUpdateRequest$Type extends MessageType<DataTypeUpdateRequest> {
38
+ constructor();
39
+ create(value?: PartialMessage<DataTypeUpdateRequest>): DataTypeUpdateRequest;
40
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataTypeUpdateRequest): DataTypeUpdateRequest;
41
+ internalBinaryWrite(message: DataTypeUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
42
+ }
43
+ /**
44
+ * @generated MessageType for protobuf message aquila.DataTypeUpdateRequest
45
+ */
46
+ export declare const DataTypeUpdateRequest: DataTypeUpdateRequest$Type;
47
+ declare class DataTypeUpdateResponse$Type extends MessageType<DataTypeUpdateResponse> {
48
+ constructor();
49
+ create(value?: PartialMessage<DataTypeUpdateResponse>): DataTypeUpdateResponse;
50
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataTypeUpdateResponse): DataTypeUpdateResponse;
51
+ internalBinaryWrite(message: DataTypeUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
52
+ }
53
+ /**
54
+ * @generated MessageType for protobuf message aquila.DataTypeUpdateResponse
55
+ */
56
+ export declare const DataTypeUpdateResponse: DataTypeUpdateResponse$Type;
57
+ /**
58
+ * @generated ServiceType for protobuf service aquila.DataTypeService
59
+ */
60
+ export declare const DataTypeService: any;
61
+ export {};