@code0-tech/tucana 0.0.76 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/aquila.cjs.js +1 -1
  2. package/dist/aquila.es.js +738 -209
  3. package/dist/pb/_generated/aquila.action_pb.d.ts +345 -4
  4. package/dist/pb/_generated/sagittarius_gateway.flow_pb.client.d.ts +43 -0
  5. package/dist/pb/_generated/sagittarius_gateway.flow_pb.d.ts +110 -0
  6. package/dist/pb/_generated/sagittarius_gateway.module_pb.client.d.ts +59 -0
  7. package/dist/pb/_generated/sagittarius_gateway.module_pb.d.ts +137 -0
  8. package/dist/pb/_generated/sagittarius_gateway.runtime_status_pb.client.d.ts +27 -0
  9. package/dist/pb/_generated/sagittarius_gateway.runtime_status_pb.d.ts +51 -0
  10. package/dist/pb/_generated/sagittarius_gateway.test_execution_pb.client.d.ts +43 -0
  11. package/dist/pb/_generated/{sagittarius.text_execution_pb.d.ts → sagittarius_gateway.test_execution_pb.d.ts} +45 -11
  12. package/dist/pb/_generated/sagittarius_rails.flow_pb.client.d.ts +31 -0
  13. package/dist/pb/_generated/{sagittarius.flow_pb.d.ts → sagittarius_rails.flow_pb.d.ts} +5 -14
  14. package/dist/pb/_generated/{sagittarius.module_pb.client.d.ts → sagittarius_rails.module_pb.client.d.ts} +3 -3
  15. package/dist/pb/_generated/{sagittarius.module_pb.d.ts → sagittarius_rails.module_pb.d.ts} +7 -7
  16. package/dist/pb/_generated/{sagittarius.runtime_status_pb.client.d.ts → sagittarius_rails.runtime_status_pb.client.d.ts} +3 -3
  17. package/dist/pb/_generated/{sagittarius.runtime_status_pb.d.ts → sagittarius_rails.runtime_status_pb.d.ts} +5 -5
  18. package/dist/pb/_generated/sagittarius_rails.test_execution_pb.client.d.ts +27 -0
  19. package/dist/pb/_generated/sagittarius_rails.test_execution_pb.d.ts +51 -0
  20. package/dist/pb/_generated/sagittarius_rails.token_pb.client.d.ts +31 -0
  21. package/dist/pb/_generated/sagittarius_rails.token_pb.d.ts +93 -0
  22. package/dist/pb/_generated/shared.flow_pb.d.ts +42 -26
  23. package/dist/pb/_generated/shared.struct_pb.d.ts +1 -1
  24. package/dist/pb/sagittarius_gateway.d.ts +8 -0
  25. package/dist/pb/sagittarius_rails.d.ts +10 -0
  26. package/dist/{rpc-interceptor-giFADd4b.cjs → rpc-interceptor-D-IMsC9l.cjs} +1 -1
  27. package/dist/{rpc-interceptor-d3qh7P9n.js → rpc-interceptor-D0l4GO-c.js} +1 -1
  28. package/dist/sagittarius_gateway.cjs.js +1 -0
  29. package/dist/sagittarius_gateway.d.ts +2 -0
  30. package/dist/sagittarius_gateway.es.js +793 -0
  31. package/dist/sagittarius_rails.cjs.js +1 -0
  32. package/dist/sagittarius_rails.d.ts +2 -0
  33. package/dist/sagittarius_rails.es.js +558 -0
  34. package/dist/shared.cjs.js +1 -1
  35. package/dist/shared.es.js +3 -4
  36. package/dist/shared.function_pb-BxQgyP8l.cjs +2 -0
  37. package/dist/{shared.function_pb-Caz-4jvi.js → shared.function_pb-CPUNe7pa.js} +1537 -485
  38. package/dist/shared.runtime_status_pb-5unRZGw5.js +1650 -0
  39. package/dist/{shared.runtime_status_pb-BEEvFfe8.cjs → shared.runtime_status_pb-BlKabFnb.cjs} +1 -1
  40. package/dist/velorum.cjs.js +1 -1
  41. package/dist/velorum.es.js +114 -115
  42. package/package.json +13 -7
  43. package/dist/pb/_generated/sagittarius.flow_pb.client.d.ts +0 -27
  44. package/dist/pb/_generated/sagittarius.ping_pb.client.d.ts +0 -27
  45. package/dist/pb/_generated/sagittarius.ping_pb.d.ts +0 -26
  46. package/dist/pb/_generated/sagittarius.text_execution_pb.client.d.ts +0 -27
  47. package/dist/pb/sagittarius.d.ts +0 -10
  48. package/dist/sagittarius.cjs.js +0 -1
  49. package/dist/sagittarius.d.ts +0 -2
  50. package/dist/sagittarius.es.js +0 -553
  51. package/dist/shared.flow_pb-DdVuFKPW.js +0 -1019
  52. package/dist/shared.flow_pb-clFvPGyv.cjs +0 -1
  53. package/dist/shared.function_pb-C8cj-NCz.cjs +0 -2
  54. package/dist/shared.runtime_status_pb-D7hH22xO.js +0 -1650
@@ -2,7 +2,42 @@ import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
2
  import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
3
  import { ModuleConfigurations, Module } from './shared.module_pb';
4
4
  import { NodeExecutionResult } from './shared.execution_result_pb';
5
- import { Struct, Value } from './shared.struct_pb';
5
+ import { Error } from './shared.errors_pb';
6
+ import { Value, Struct } from './shared.struct_pb';
7
+ import { FlowSetting } from './shared.flow_pb';
8
+ /**
9
+ * @generated from protobuf message aquila.ActionFlow
10
+ */
11
+ export interface ActionFlow {
12
+ /**
13
+ * @generated from protobuf field: int64 flow_id = 1
14
+ */
15
+ flowId: bigint;
16
+ /**
17
+ * @generated from protobuf field: int64 project_id = 2
18
+ */
19
+ projectId: bigint;
20
+ /**
21
+ * @generated from protobuf field: repeated shared.FlowSetting settings = 3
22
+ */
23
+ settings: FlowSetting[];
24
+ /**
25
+ * @generated from protobuf field: shared.Struct input_schema = 4
26
+ */
27
+ inputSchema?: Struct;
28
+ /**
29
+ * @generated from protobuf field: shared.Struct output_schema = 5
30
+ */
31
+ outputSchema?: Struct;
32
+ /**
33
+ * @generated from protobuf field: string project_slug = 6
34
+ */
35
+ projectSlug: string;
36
+ /**
37
+ * @generated from protobuf field: string name = 7
38
+ */
39
+ name: string;
40
+ }
6
41
  /**
7
42
  * Event that gets admitted by an action
8
43
  *
@@ -40,6 +75,73 @@ export interface ActionLogon {
40
75
  * @generated from protobuf field: shared.Module module = 1
41
76
  */
42
77
  module?: Module;
78
+ /**
79
+ * @generated from protobuf field: aquila.ActionLogon.ScalingOption scaling_option = 2
80
+ */
81
+ scalingOption: ActionLogon_ScalingOption;
82
+ }
83
+ /**
84
+ * @generated from protobuf enum aquila.ActionLogon.ScalingOption
85
+ */
86
+ export declare enum ActionLogon_ScalingOption {
87
+ /**
88
+ * @generated from protobuf enum value: UNKNOWN = 0;
89
+ */
90
+ UNKNOWN = 0,
91
+ /**
92
+ * Send all Flows/Project Configurations to all Actions of this type
93
+ *
94
+ * @generated from protobuf enum value: DISABLED = 1;
95
+ */
96
+ DISABLED = 1,
97
+ /**
98
+ * Split all Flows/Project Configurations between all available Actions of this type
99
+ *
100
+ * @generated from protobuf enum value: SPLIT = 2;
101
+ */
102
+ SPLIT = 2
103
+ }
104
+ /**
105
+ * Reference to a sub flow whose result is used as a parameter value
106
+ *
107
+ * @generated from protobuf message aquila.ActionNodeSubFlowValue
108
+ */
109
+ export interface ActionNodeSubFlowValue {
110
+ /**
111
+ * Execution identifier of the sub flow execution
112
+ *
113
+ * @generated from protobuf field: string execution_identifier = 1
114
+ */
115
+ executionIdentifier: string;
116
+ }
117
+ /**
118
+ * A single parameter value of a function
119
+ *
120
+ * @generated from protobuf message aquila.ActionNodeValue
121
+ */
122
+ export interface ActionNodeValue {
123
+ /**
124
+ * @generated from protobuf oneof: value
125
+ */
126
+ value: {
127
+ oneofKind: "literalValue";
128
+ /**
129
+ * A literal, already resolved value
130
+ *
131
+ * @generated from protobuf field: shared.Value literal_value = 1
132
+ */
133
+ literalValue: Value;
134
+ } | {
135
+ oneofKind: "subFlow";
136
+ /**
137
+ * A value that is produced by executing a sub flow
138
+ *
139
+ * @generated from protobuf field: aquila.ActionNodeSubFlowValue sub_flow = 2
140
+ */
141
+ subFlow: ActionNodeSubFlowValue;
142
+ } | {
143
+ oneofKind: undefined;
144
+ };
43
145
  }
44
146
  /**
45
147
  * Request to execute a request a flow
@@ -60,11 +162,11 @@ export interface ActionExecutionRequest {
60
162
  */
61
163
  functionIdentifier: string;
62
164
  /**
63
- * Parameters (JSON) of flow required to execute
165
+ * Parameters of functions required to execute
64
166
  *
65
- * @generated from protobuf field: shared.Struct parameters = 3
167
+ * @generated from protobuf field: repeated aquila.ActionNodeValue parameters = 3
66
168
  */
67
- parameters?: Struct;
169
+ parameters: ActionNodeValue[];
68
170
  /**
69
171
  * Project Id that this function is emitted for
70
172
  *
@@ -72,6 +174,77 @@ export interface ActionExecutionRequest {
72
174
  */
73
175
  projectId: bigint;
74
176
  }
177
+ /**
178
+ * Request to execute a sub flow
179
+ *
180
+ * @generated from protobuf message aquila.ActionSubFlowExecutionRequest
181
+ */
182
+ export interface ActionSubFlowExecutionRequest {
183
+ /**
184
+ * Execution identifier of execution
185
+ *
186
+ * @generated from protobuf field: string execution_identifier = 1
187
+ */
188
+ executionIdentifier: string;
189
+ /**
190
+ * parameters for the sub flow to inject
191
+ *
192
+ * @generated from protobuf field: repeated shared.Value parameters = 2
193
+ */
194
+ parameters: Value[];
195
+ }
196
+ /**
197
+ * Result of a sub flow execution
198
+ *
199
+ * @generated from protobuf message aquila.ActionSubFlowExecutionResponse
200
+ */
201
+ export interface ActionSubFlowExecutionResponse {
202
+ /**
203
+ * Execution identifier of execution
204
+ *
205
+ * @generated from protobuf field: string execution_identifier = 1
206
+ */
207
+ executionIdentifier: string;
208
+ /**
209
+ * @generated from protobuf oneof: result
210
+ */
211
+ result: {
212
+ oneofKind: "success";
213
+ /**
214
+ * Successful result of the sub flow execution
215
+ *
216
+ * @generated from protobuf field: shared.Value success = 2
217
+ */
218
+ success: Value;
219
+ } | {
220
+ oneofKind: "failure";
221
+ /**
222
+ * Error that occurred during the sub flow execution
223
+ *
224
+ * @generated from protobuf field: shared.Error failure = 3
225
+ */
226
+ failure: Error;
227
+ } | {
228
+ oneofKind: undefined;
229
+ };
230
+ }
231
+ /**
232
+ * @generated from protobuf message aquila.ActionFlowExecutionRequest
233
+ */
234
+ export interface ActionFlowExecutionRequest {
235
+ /**
236
+ * @generated from protobuf field: string execution_identifier = 1
237
+ */
238
+ executionIdentifier: string;
239
+ /**
240
+ * @generated from protobuf field: string flow_id = 2
241
+ */
242
+ flowId: string;
243
+ /**
244
+ * @generated from protobuf field: shared.Value payload = 3
245
+ */
246
+ payload?: Value;
247
+ }
75
248
  /**
76
249
  * @generated from protobuf message aquila.ActionExecutionResponse
77
250
  */
@@ -90,6 +263,60 @@ export interface ActionExecutionResponse {
90
263
  nodeResult?: NodeExecutionResult;
91
264
  }
92
265
  /**
266
+ * @generated from protobuf message aquila.ActionFlowExecutionResponse
267
+ */
268
+ export interface ActionFlowExecutionResponse {
269
+ /**
270
+ * Execution identifier of execution
271
+ *
272
+ * @generated from protobuf field: string execution_identifier = 1
273
+ */
274
+ executionIdentifier: string;
275
+ /**
276
+ * @generated from protobuf oneof: result
277
+ */
278
+ result: {
279
+ oneofKind: "success";
280
+ /**
281
+ * @generated from protobuf field: shared.Value success = 2
282
+ */
283
+ success: Value;
284
+ } | {
285
+ oneofKind: "failure";
286
+ /**
287
+ * @generated from protobuf field: shared.Error failure = 3
288
+ */
289
+ failure: Error;
290
+ } | {
291
+ oneofKind: undefined;
292
+ };
293
+ }
294
+ /**
295
+ * @generated from protobuf message aquila.ActionFlowUpdate
296
+ */
297
+ export interface ActionFlowUpdate {
298
+ /**
299
+ * @generated from protobuf oneof: data
300
+ */
301
+ data: {
302
+ oneofKind: "updatedFlow";
303
+ /**
304
+ * @generated from protobuf field: aquila.ActionFlow updated_flow = 1
305
+ */
306
+ updatedFlow: ActionFlow;
307
+ } | {
308
+ oneofKind: "deletedFlow";
309
+ /**
310
+ * @generated from protobuf field: int64 deleted_flow = 2
311
+ */
312
+ deletedFlow: bigint;
313
+ } | {
314
+ oneofKind: undefined;
315
+ };
316
+ }
317
+ /**
318
+ * Messages sent by the Action
319
+ *
93
320
  * @generated from protobuf message aquila.ActionTransferRequest
94
321
  */
95
322
  export interface ActionTransferRequest {
@@ -123,11 +350,21 @@ export interface ActionTransferRequest {
123
350
  * @generated from protobuf field: aquila.ActionExecutionResponse result = 3
124
351
  */
125
352
  result: ActionExecutionResponse;
353
+ } | {
354
+ oneofKind: "subFlowExecution";
355
+ /**
356
+ * Request to execute a sub flow
357
+ *
358
+ * @generated from protobuf field: aquila.ActionSubFlowExecutionRequest sub_flow_execution = 4
359
+ */
360
+ subFlowExecution: ActionSubFlowExecutionRequest;
126
361
  } | {
127
362
  oneofKind: undefined;
128
363
  };
129
364
  }
130
365
  /**
366
+ * Messages sent by Aquila
367
+ *
131
368
  * @generated from protobuf message aquila.ActionTransferResponse
132
369
  */
133
370
  export interface ActionTransferResponse {
@@ -150,10 +387,44 @@ export interface ActionTransferResponse {
150
387
  * @generated from protobuf field: shared.ModuleConfigurations module_configurations = 2
151
388
  */
152
389
  moduleConfigurations: ModuleConfigurations;
390
+ } | {
391
+ oneofKind: "flowUpdate";
392
+ /**
393
+ * An Action Flow update
394
+ *
395
+ * @generated from protobuf field: aquila.ActionFlowUpdate flow_update = 3
396
+ */
397
+ flowUpdate: ActionFlowUpdate;
398
+ } | {
399
+ oneofKind: "flowExecutionResponse";
400
+ /**
401
+ * Result of an flow execution
402
+ *
403
+ * @generated from protobuf field: aquila.ActionFlowExecutionResponse flow_execution_response = 4
404
+ */
405
+ flowExecutionResponse: ActionFlowExecutionResponse;
406
+ } | {
407
+ oneofKind: "subFlowExecutionResponse";
408
+ /**
409
+ * Result of a sub flow execution
410
+ *
411
+ * @generated from protobuf field: aquila.ActionSubFlowExecutionResponse sub_flow_execution_response = 5
412
+ */
413
+ subFlowExecutionResponse: ActionSubFlowExecutionResponse;
153
414
  } | {
154
415
  oneofKind: undefined;
155
416
  };
156
417
  }
418
+ declare class ActionFlow$Type extends MessageType<ActionFlow> {
419
+ constructor();
420
+ create(value?: PartialMessage<ActionFlow>): ActionFlow;
421
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionFlow): ActionFlow;
422
+ internalBinaryWrite(message: ActionFlow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
423
+ }
424
+ /**
425
+ * @generated MessageType for protobuf message aquila.ActionFlow
426
+ */
427
+ export declare const ActionFlow: ActionFlow$Type;
157
428
  declare class ActionEvent$Type extends MessageType<ActionEvent> {
158
429
  constructor();
159
430
  create(value?: PartialMessage<ActionEvent>): ActionEvent;
@@ -174,6 +445,26 @@ declare class ActionLogon$Type extends MessageType<ActionLogon> {
174
445
  * @generated MessageType for protobuf message aquila.ActionLogon
175
446
  */
176
447
  export declare const ActionLogon: ActionLogon$Type;
448
+ declare class ActionNodeSubFlowValue$Type extends MessageType<ActionNodeSubFlowValue> {
449
+ constructor();
450
+ create(value?: PartialMessage<ActionNodeSubFlowValue>): ActionNodeSubFlowValue;
451
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionNodeSubFlowValue): ActionNodeSubFlowValue;
452
+ internalBinaryWrite(message: ActionNodeSubFlowValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
453
+ }
454
+ /**
455
+ * @generated MessageType for protobuf message aquila.ActionNodeSubFlowValue
456
+ */
457
+ export declare const ActionNodeSubFlowValue: ActionNodeSubFlowValue$Type;
458
+ declare class ActionNodeValue$Type extends MessageType<ActionNodeValue> {
459
+ constructor();
460
+ create(value?: PartialMessage<ActionNodeValue>): ActionNodeValue;
461
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionNodeValue): ActionNodeValue;
462
+ internalBinaryWrite(message: ActionNodeValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
463
+ }
464
+ /**
465
+ * @generated MessageType for protobuf message aquila.ActionNodeValue
466
+ */
467
+ export declare const ActionNodeValue: ActionNodeValue$Type;
177
468
  declare class ActionExecutionRequest$Type extends MessageType<ActionExecutionRequest> {
178
469
  constructor();
179
470
  create(value?: PartialMessage<ActionExecutionRequest>): ActionExecutionRequest;
@@ -184,6 +475,36 @@ declare class ActionExecutionRequest$Type extends MessageType<ActionExecutionReq
184
475
  * @generated MessageType for protobuf message aquila.ActionExecutionRequest
185
476
  */
186
477
  export declare const ActionExecutionRequest: ActionExecutionRequest$Type;
478
+ declare class ActionSubFlowExecutionRequest$Type extends MessageType<ActionSubFlowExecutionRequest> {
479
+ constructor();
480
+ create(value?: PartialMessage<ActionSubFlowExecutionRequest>): ActionSubFlowExecutionRequest;
481
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionSubFlowExecutionRequest): ActionSubFlowExecutionRequest;
482
+ internalBinaryWrite(message: ActionSubFlowExecutionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
483
+ }
484
+ /**
485
+ * @generated MessageType for protobuf message aquila.ActionSubFlowExecutionRequest
486
+ */
487
+ export declare const ActionSubFlowExecutionRequest: ActionSubFlowExecutionRequest$Type;
488
+ declare class ActionSubFlowExecutionResponse$Type extends MessageType<ActionSubFlowExecutionResponse> {
489
+ constructor();
490
+ create(value?: PartialMessage<ActionSubFlowExecutionResponse>): ActionSubFlowExecutionResponse;
491
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionSubFlowExecutionResponse): ActionSubFlowExecutionResponse;
492
+ internalBinaryWrite(message: ActionSubFlowExecutionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
493
+ }
494
+ /**
495
+ * @generated MessageType for protobuf message aquila.ActionSubFlowExecutionResponse
496
+ */
497
+ export declare const ActionSubFlowExecutionResponse: ActionSubFlowExecutionResponse$Type;
498
+ declare class ActionFlowExecutionRequest$Type extends MessageType<ActionFlowExecutionRequest> {
499
+ constructor();
500
+ create(value?: PartialMessage<ActionFlowExecutionRequest>): ActionFlowExecutionRequest;
501
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionFlowExecutionRequest): ActionFlowExecutionRequest;
502
+ internalBinaryWrite(message: ActionFlowExecutionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
503
+ }
504
+ /**
505
+ * @generated MessageType for protobuf message aquila.ActionFlowExecutionRequest
506
+ */
507
+ export declare const ActionFlowExecutionRequest: ActionFlowExecutionRequest$Type;
187
508
  declare class ActionExecutionResponse$Type extends MessageType<ActionExecutionResponse> {
188
509
  constructor();
189
510
  create(value?: PartialMessage<ActionExecutionResponse>): ActionExecutionResponse;
@@ -194,6 +515,26 @@ declare class ActionExecutionResponse$Type extends MessageType<ActionExecutionRe
194
515
  * @generated MessageType for protobuf message aquila.ActionExecutionResponse
195
516
  */
196
517
  export declare const ActionExecutionResponse: ActionExecutionResponse$Type;
518
+ declare class ActionFlowExecutionResponse$Type extends MessageType<ActionFlowExecutionResponse> {
519
+ constructor();
520
+ create(value?: PartialMessage<ActionFlowExecutionResponse>): ActionFlowExecutionResponse;
521
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionFlowExecutionResponse): ActionFlowExecutionResponse;
522
+ internalBinaryWrite(message: ActionFlowExecutionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
523
+ }
524
+ /**
525
+ * @generated MessageType for protobuf message aquila.ActionFlowExecutionResponse
526
+ */
527
+ export declare const ActionFlowExecutionResponse: ActionFlowExecutionResponse$Type;
528
+ declare class ActionFlowUpdate$Type extends MessageType<ActionFlowUpdate> {
529
+ constructor();
530
+ create(value?: PartialMessage<ActionFlowUpdate>): ActionFlowUpdate;
531
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionFlowUpdate): ActionFlowUpdate;
532
+ internalBinaryWrite(message: ActionFlowUpdate, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
533
+ }
534
+ /**
535
+ * @generated MessageType for protobuf message aquila.ActionFlowUpdate
536
+ */
537
+ export declare const ActionFlowUpdate: ActionFlowUpdate$Type;
197
538
  declare class ActionTransferRequest$Type extends MessageType<ActionTransferRequest> {
198
539
  constructor();
199
540
  create(value?: PartialMessage<ActionTransferRequest>): ActionTransferRequest;
@@ -0,0 +1,43 @@
1
+ import { RpcTransport, ServiceInfo, UnaryCall, ServerStreamingCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
2
+ import { FlowPushResponse, FlowPushRequest, FlowResponse, FlowLogonRequest } from './sagittarius_gateway.flow_pb';
3
+ /**
4
+ * @generated from protobuf service sagittarius_gateway.FlowService
5
+ */
6
+ export interface IFlowServiceClient {
7
+ /**
8
+ * Called by Aquila
9
+ *
10
+ * @generated from protobuf rpc: Update
11
+ */
12
+ update(input: FlowLogonRequest, options?: RpcOptions): ServerStreamingCall<FlowLogonRequest, FlowResponse>;
13
+ /**
14
+ * Called by Sagittarius
15
+ *
16
+ * @generated from protobuf rpc: Push
17
+ */
18
+ push(input: FlowPushRequest, options?: RpcOptions): UnaryCall<FlowPushRequest, FlowPushResponse>;
19
+ }
20
+ /**
21
+ * @generated from protobuf service sagittarius_gateway.FlowService
22
+ */
23
+ export declare class FlowServiceClient implements IFlowServiceClient, ServiceInfo {
24
+ private readonly _transport;
25
+ typeName: string;
26
+ methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
27
+ options: {
28
+ [extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
29
+ };
30
+ constructor(_transport: RpcTransport);
31
+ /**
32
+ * Called by Aquila
33
+ *
34
+ * @generated from protobuf rpc: Update
35
+ */
36
+ update(input: FlowLogonRequest, options?: RpcOptions): ServerStreamingCall<FlowLogonRequest, FlowResponse>;
37
+ /**
38
+ * Called by Sagittarius
39
+ *
40
+ * @generated from protobuf rpc: Push
41
+ */
42
+ push(input: FlowPushRequest, options?: RpcOptions): UnaryCall<FlowPushRequest, FlowPushResponse>;
43
+ }
@@ -0,0 +1,110 @@
1
+ import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
+ import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
+ import { Flows, ValidationFlow } from './shared.flow_pb';
4
+ /**
5
+ * Aquila sends a request to initialise stream to Sagittarius
6
+ *
7
+ * @generated from protobuf message sagittarius_gateway.FlowLogonRequest
8
+ */
9
+ export interface FlowLogonRequest {
10
+ }
11
+ /**
12
+ * Sagittarius sends flow to be updated
13
+ *
14
+ * @generated from protobuf message sagittarius_gateway.FlowResponse
15
+ */
16
+ export interface FlowResponse {
17
+ /**
18
+ * @generated from protobuf oneof: data
19
+ */
20
+ data: {
21
+ oneofKind: "updatedFlow";
22
+ /**
23
+ * Updates a single flow
24
+ *
25
+ * @generated from protobuf field: shared.ValidationFlow updated_flow = 1
26
+ */
27
+ updatedFlow: ValidationFlow;
28
+ } | {
29
+ oneofKind: "deletedFlowId";
30
+ /**
31
+ * Deletes a single flow
32
+ *
33
+ * @generated from protobuf field: int64 deleted_flow_id = 2
34
+ */
35
+ deletedFlowId: bigint;
36
+ } | {
37
+ oneofKind: "flows";
38
+ /**
39
+ * Replaces all flows in Aquila (only on startup and for releases)
40
+ *
41
+ * @generated from protobuf field: shared.Flows flows = 3
42
+ */
43
+ flows: Flows;
44
+ } | {
45
+ oneofKind: undefined;
46
+ };
47
+ }
48
+ /**
49
+ * @generated from protobuf message sagittarius_gateway.FlowPushRequest
50
+ */
51
+ export interface FlowPushRequest {
52
+ /**
53
+ * @generated from protobuf field: int64 runtime_identifier = 1
54
+ */
55
+ runtimeIdentifier: bigint;
56
+ /**
57
+ * @generated from protobuf field: sagittarius_gateway.FlowResponse response = 2
58
+ */
59
+ response?: FlowResponse;
60
+ }
61
+ /**
62
+ * @generated from protobuf message sagittarius_gateway.FlowPushResponse
63
+ */
64
+ export interface FlowPushResponse {
65
+ }
66
+ declare class FlowLogonRequest$Type extends MessageType<FlowLogonRequest> {
67
+ constructor();
68
+ create(value?: PartialMessage<FlowLogonRequest>): FlowLogonRequest;
69
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowLogonRequest): FlowLogonRequest;
70
+ internalBinaryWrite(message: FlowLogonRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
71
+ }
72
+ /**
73
+ * @generated MessageType for protobuf message sagittarius_gateway.FlowLogonRequest
74
+ */
75
+ export declare const FlowLogonRequest: FlowLogonRequest$Type;
76
+ declare class FlowResponse$Type extends MessageType<FlowResponse> {
77
+ constructor();
78
+ create(value?: PartialMessage<FlowResponse>): FlowResponse;
79
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowResponse): FlowResponse;
80
+ internalBinaryWrite(message: FlowResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
81
+ }
82
+ /**
83
+ * @generated MessageType for protobuf message sagittarius_gateway.FlowResponse
84
+ */
85
+ export declare const FlowResponse: FlowResponse$Type;
86
+ declare class FlowPushRequest$Type extends MessageType<FlowPushRequest> {
87
+ constructor();
88
+ create(value?: PartialMessage<FlowPushRequest>): FlowPushRequest;
89
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowPushRequest): FlowPushRequest;
90
+ internalBinaryWrite(message: FlowPushRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
91
+ }
92
+ /**
93
+ * @generated MessageType for protobuf message sagittarius_gateway.FlowPushRequest
94
+ */
95
+ export declare const FlowPushRequest: FlowPushRequest$Type;
96
+ declare class FlowPushResponse$Type extends MessageType<FlowPushResponse> {
97
+ constructor();
98
+ create(value?: PartialMessage<FlowPushResponse>): FlowPushResponse;
99
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowPushResponse): FlowPushResponse;
100
+ internalBinaryWrite(message: FlowPushResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
101
+ }
102
+ /**
103
+ * @generated MessageType for protobuf message sagittarius_gateway.FlowPushResponse
104
+ */
105
+ export declare const FlowPushResponse: FlowPushResponse$Type;
106
+ /**
107
+ * @generated ServiceType for protobuf service sagittarius_gateway.FlowService
108
+ */
109
+ export declare const FlowService: ServiceType;
110
+ export {};
@@ -0,0 +1,59 @@
1
+ import { RpcTransport, ServiceInfo, ServerStreamingCall, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
2
+ import { ModuleConfigurationPushResponse, ModuleConfigurationPushRequest, ModuleConfigurationResponse, ModuleConfigurationRequest, ModuleUpdateResponse, ModuleUpdateRequest } from './sagittarius_gateway.module_pb';
3
+ /**
4
+ * This service will be implemented as a server by Sagittarius and as a client by Aquila.
5
+ *
6
+ * @generated from protobuf service sagittarius_gateway.ModuleService
7
+ */
8
+ export interface IModuleServiceClient {
9
+ /**
10
+ * Aquila will call this method to update modules
11
+ *
12
+ * @generated from protobuf rpc: Update
13
+ */
14
+ update(input: ModuleUpdateRequest, options?: RpcOptions): UnaryCall<ModuleUpdateRequest, ModuleUpdateResponse>;
15
+ /**
16
+ * Aquila will call this method to open a stream to receive module configurations
17
+ *
18
+ * @generated from protobuf rpc: Configurations
19
+ */
20
+ configurations(input: ModuleConfigurationRequest, options?: RpcOptions): ServerStreamingCall<ModuleConfigurationRequest, ModuleConfigurationResponse>;
21
+ /**
22
+ * Sagittarius will call this method push new module configurations to aquila
23
+ *
24
+ * @generated from protobuf rpc: Push
25
+ */
26
+ push(input: ModuleConfigurationPushRequest, options?: RpcOptions): UnaryCall<ModuleConfigurationPushRequest, ModuleConfigurationPushResponse>;
27
+ }
28
+ /**
29
+ * This service will be implemented as a server by Sagittarius and as a client by Aquila.
30
+ *
31
+ * @generated from protobuf service sagittarius_gateway.ModuleService
32
+ */
33
+ export declare class ModuleServiceClient implements IModuleServiceClient, ServiceInfo {
34
+ private readonly _transport;
35
+ typeName: string;
36
+ methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
37
+ options: {
38
+ [extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
39
+ };
40
+ constructor(_transport: RpcTransport);
41
+ /**
42
+ * Aquila will call this method to update modules
43
+ *
44
+ * @generated from protobuf rpc: Update
45
+ */
46
+ update(input: ModuleUpdateRequest, options?: RpcOptions): UnaryCall<ModuleUpdateRequest, ModuleUpdateResponse>;
47
+ /**
48
+ * Aquila will call this method to open a stream to receive module configurations
49
+ *
50
+ * @generated from protobuf rpc: Configurations
51
+ */
52
+ configurations(input: ModuleConfigurationRequest, options?: RpcOptions): ServerStreamingCall<ModuleConfigurationRequest, ModuleConfigurationResponse>;
53
+ /**
54
+ * Sagittarius will call this method push new module configurations to aquila
55
+ *
56
+ * @generated from protobuf rpc: Push
57
+ */
58
+ push(input: ModuleConfigurationPushRequest, options?: RpcOptions): UnaryCall<ModuleConfigurationPushRequest, ModuleConfigurationPushResponse>;
59
+ }