@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/tucana",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Code0 GRPC Protocol",
5
5
  "homepage": "https://github.com/code0-tech/tucana#readme",
6
6
  "bugs": {
@@ -15,9 +15,9 @@
15
15
  "type": "module",
16
16
  "main": "index.js",
17
17
  "scripts": {
18
- "generate:aquila": "protoc --ts_opt=add_pb_suffix --ts_out=pb --proto_path=../../proto/aquila --proto_path=../../proto/shared ../../proto/aquila/*.proto",
19
- "generate:sagittarius": "protoc --ts_opt=add_pb_suffix --ts_out=pb --proto_path=../../proto/sagittarius --proto_path=../../proto/shared ../../proto/sagittarius/*.proto",
20
- "generate:shared": "protoc --ts_opt=add_pb_suffix --ts_out=pb --proto_path=../../proto/shared ../../proto/shared/*.proto",
18
+ "generate:aquila": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript_es2020 --ts_out=pb --proto_path=../../proto/aquila --proto_path=../../proto/shared ../../proto/aquila/*.proto",
19
+ "generate:sagittarius": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript_es2020 --ts_out=pb --proto_path=../../proto/sagittarius --proto_path=../../proto/shared ../../proto/sagittarius/*.proto",
20
+ "generate:shared": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript_es2020 --ts_out=pb --proto_path=../../proto/shared ../../proto/shared/*.proto",
21
21
  "generate": "npm run generate:shared && npm run generate:sagittarius && npm run generate:aquila"
22
22
  },
23
23
  "devDependencies": {
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "files": [
28
28
  "pb/*.ts",
29
+ "pb/*.js",
29
30
  "index.js",
30
31
  "package.json"
31
32
  ],
@@ -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.action.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 { ActionTransferService } from "./aquila.action_pb";
7
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
6
  import type { TransferResponse } from "./aquila.action_pb";
9
7
  import type { TransferRequest } from "./aquila.action_pb";
10
8
  import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
@@ -23,19 +21,16 @@ export interface IActionTransferServiceClient {
23
21
  /**
24
22
  * @generated from protobuf service aquila.ActionTransferService
25
23
  */
26
- export class ActionTransferServiceClient implements IActionTransferServiceClient, ServiceInfo {
27
- typeName = ActionTransferService.typeName;
28
- methods = ActionTransferService.methods;
29
- options = ActionTransferService.options;
30
- constructor(private readonly _transport: RpcTransport) {
31
- }
24
+ export declare class ActionTransferServiceClient implements IActionTransferServiceClient, ServiceInfo {
25
+ private readonly _transport;
26
+ typeName: any;
27
+ methods: any;
28
+ options: any;
29
+ constructor(_transport: RpcTransport);
32
30
  /**
33
31
  * This behavior achieves a bi-directional stream so that both services aren't required to be a server & client on their own
34
32
  *
35
33
  * @generated from protobuf rpc: Transfer
36
34
  */
37
- transfer(options?: RpcOptions): DuplexStreamingCall<TransferRequest, TransferResponse> {
38
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
39
- return stackIntercept<TransferRequest, TransferResponse>("duplex", this._transport, method, opt);
40
- }
35
+ transfer(options?: RpcOptions): DuplexStreamingCall<TransferRequest, TransferResponse>;
41
36
  }
@@ -0,0 +1,25 @@
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
+ import { ActionTransferService } from "./aquila.action_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service aquila.ActionTransferService
8
+ */
9
+ export class ActionTransferServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = ActionTransferService.typeName;
13
+ this.methods = ActionTransferService.methods;
14
+ this.options = ActionTransferService.options;
15
+ }
16
+ /**
17
+ * This behavior achieves a bi-directional stream so that both services aren't required to be a server & client on their own
18
+ *
19
+ * @generated from protobuf rpc: Transfer
20
+ */
21
+ transfer(options) {
22
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
23
+ return stackIntercept("duplex", this._transport, method, opt);
24
+ }
25
+ }
@@ -0,0 +1,254 @@
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
+ 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 { Struct } from "./shared.struct_pb";
11
+ import { DefinitionDataType } from "./shared.data_type_pb";
12
+ import { Translation } from "./shared.translation_pb";
13
+ import { EventType } from "./shared.event_pb";
14
+ import { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
15
+ import { Value } from "./shared.struct_pb";
16
+ /**
17
+ * Event that gets admitted by an action
18
+ *
19
+ * @generated from protobuf message aquila.Event
20
+ */
21
+ export interface Event {
22
+ /**
23
+ * Id of Event type
24
+ *
25
+ * @generated from protobuf field: string event_type = 1
26
+ */
27
+ eventType: string;
28
+ /**
29
+ * Payload (JSON) of event params
30
+ *
31
+ * @generated from protobuf field: shared.Value payload = 2
32
+ */
33
+ payload?: Value;
34
+ }
35
+ /**
36
+ * Action flow/event configuration
37
+ *
38
+ * @generated from protobuf message aquila.Configuration
39
+ */
40
+ export interface Configuration {
41
+ /**
42
+ * Action identifier
43
+ *
44
+ * @generated from protobuf field: string identifier = 1
45
+ */
46
+ identifier: string;
47
+ /**
48
+ * Flow Configuration
49
+ *
50
+ * @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definitions = 2
51
+ */
52
+ functionDefinitions: RuntimeFunctionDefinition[];
53
+ /**
54
+ * Event Configuration
55
+ *
56
+ * @generated from protobuf field: repeated shared.EventType event_types = 3
57
+ */
58
+ eventTypes: EventType[];
59
+ /**
60
+ * Application Configuration
61
+ *
62
+ * @generated from protobuf field: repeated aquila.ActionConfiguration action_configurations = 4
63
+ */
64
+ actionConfigurations: ActionConfiguration[];
65
+ }
66
+ /**
67
+ * @generated from protobuf message aquila.ActionConfiguration
68
+ */
69
+ export interface ActionConfiguration {
70
+ /**
71
+ * @generated from protobuf field: repeated shared.Translation name = 1
72
+ */
73
+ name: Translation[];
74
+ /**
75
+ * @generated from protobuf field: repeated shared.Translation description = 2
76
+ */
77
+ description: Translation[];
78
+ /**
79
+ * @generated from protobuf field: shared.DefinitionDataType type = 3
80
+ */
81
+ type?: DefinitionDataType;
82
+ /**
83
+ * @generated from protobuf field: optional shared.Value default_value = 4
84
+ */
85
+ defaultValue?: Value;
86
+ }
87
+ /**
88
+ * Request to execute a request a flow
89
+ *
90
+ * @generated from protobuf message aquila.ExecutionRequest
91
+ */
92
+ export interface ExecutionRequest {
93
+ /**
94
+ * Execution identifier of execution
95
+ *
96
+ * @generated from protobuf field: string execution_identifier = 1
97
+ */
98
+ executionIdentifier: string;
99
+ /**
100
+ * Function identifier of flow to execute
101
+ *
102
+ * @generated from protobuf field: string function_identifier = 2
103
+ */
104
+ functionIdentifier: string;
105
+ /**
106
+ * Parameters (JSON) of flow required to execute
107
+ *
108
+ * @generated from protobuf field: shared.Struct parameters = 3
109
+ */
110
+ parameters?: Struct;
111
+ }
112
+ /**
113
+ * Result from executed flows by an action
114
+ *
115
+ * @generated from protobuf message aquila.ExecutionResult
116
+ */
117
+ export interface ExecutionResult {
118
+ /**
119
+ * Identifier of flow to execute
120
+ *
121
+ * @generated from protobuf field: string execution_identifier = 1
122
+ */
123
+ executionIdentifier: string;
124
+ /**
125
+ * Result of executed flow
126
+ *
127
+ * @generated from protobuf field: shared.Value result = 2
128
+ */
129
+ result?: Value;
130
+ }
131
+ /**
132
+ * @generated from protobuf message aquila.TransferRequest
133
+ */
134
+ export interface TransferRequest {
135
+ /**
136
+ * @generated from protobuf oneof: data
137
+ */
138
+ data: {
139
+ oneofKind: "configuration";
140
+ /**
141
+ * Configuration of action that will be send to sagittarius
142
+ *
143
+ * Expected behavior:
144
+ * Aquila will abort if the first request is not a configuration
145
+ *
146
+ * @generated from protobuf field: aquila.Configuration configuration = 1
147
+ */
148
+ configuration: Configuration;
149
+ } | {
150
+ oneofKind: "event";
151
+ /**
152
+ * Event that got admitted
153
+ *
154
+ * @generated from protobuf field: aquila.Event event = 2
155
+ */
156
+ event: Event;
157
+ } | {
158
+ oneofKind: "result";
159
+ /**
160
+ * Result of execution that was triggered by a execution request
161
+ *
162
+ * @generated from protobuf field: aquila.ExecutionResult result = 3
163
+ */
164
+ result: ExecutionResult;
165
+ } | {
166
+ oneofKind: undefined;
167
+ };
168
+ }
169
+ /**
170
+ * @generated from protobuf message aquila.TransferResponse
171
+ */
172
+ export interface TransferResponse {
173
+ /**
174
+ * Execution request
175
+ *
176
+ * @generated from protobuf field: aquila.ExecutionRequest execution = 1
177
+ */
178
+ execution?: ExecutionRequest;
179
+ }
180
+ declare class Event$Type extends MessageType<Event> {
181
+ constructor();
182
+ create(value?: PartialMessage<Event>): Event;
183
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Event): Event;
184
+ internalBinaryWrite(message: Event, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
185
+ }
186
+ /**
187
+ * @generated MessageType for protobuf message aquila.Event
188
+ */
189
+ export declare const Event: Event$Type;
190
+ declare class Configuration$Type extends MessageType<Configuration> {
191
+ constructor();
192
+ create(value?: PartialMessage<Configuration>): Configuration;
193
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Configuration): Configuration;
194
+ internalBinaryWrite(message: Configuration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
195
+ }
196
+ /**
197
+ * @generated MessageType for protobuf message aquila.Configuration
198
+ */
199
+ export declare const Configuration: Configuration$Type;
200
+ declare class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
201
+ constructor();
202
+ create(value?: PartialMessage<ActionConfiguration>): ActionConfiguration;
203
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfiguration): ActionConfiguration;
204
+ internalBinaryWrite(message: ActionConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
205
+ }
206
+ /**
207
+ * @generated MessageType for protobuf message aquila.ActionConfiguration
208
+ */
209
+ export declare const ActionConfiguration: ActionConfiguration$Type;
210
+ declare class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
211
+ constructor();
212
+ create(value?: PartialMessage<ExecutionRequest>): ExecutionRequest;
213
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionRequest): ExecutionRequest;
214
+ internalBinaryWrite(message: ExecutionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
215
+ }
216
+ /**
217
+ * @generated MessageType for protobuf message aquila.ExecutionRequest
218
+ */
219
+ export declare const ExecutionRequest: ExecutionRequest$Type;
220
+ declare class ExecutionResult$Type extends MessageType<ExecutionResult> {
221
+ constructor();
222
+ create(value?: PartialMessage<ExecutionResult>): ExecutionResult;
223
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionResult): ExecutionResult;
224
+ internalBinaryWrite(message: ExecutionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
225
+ }
226
+ /**
227
+ * @generated MessageType for protobuf message aquila.ExecutionResult
228
+ */
229
+ export declare const ExecutionResult: ExecutionResult$Type;
230
+ declare class TransferRequest$Type extends MessageType<TransferRequest> {
231
+ constructor();
232
+ create(value?: PartialMessage<TransferRequest>): TransferRequest;
233
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransferRequest): TransferRequest;
234
+ internalBinaryWrite(message: TransferRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
235
+ }
236
+ /**
237
+ * @generated MessageType for protobuf message aquila.TransferRequest
238
+ */
239
+ export declare const TransferRequest: TransferRequest$Type;
240
+ declare class TransferResponse$Type extends MessageType<TransferResponse> {
241
+ constructor();
242
+ create(value?: PartialMessage<TransferResponse>): TransferResponse;
243
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransferResponse): TransferResponse;
244
+ internalBinaryWrite(message: TransferResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
245
+ }
246
+ /**
247
+ * @generated MessageType for protobuf message aquila.TransferResponse
248
+ */
249
+ export declare const TransferResponse: TransferResponse$Type;
250
+ /**
251
+ * @generated ServiceType for protobuf service aquila.ActionTransferService
252
+ */
253
+ export declare const ActionTransferService: any;
254
+ export {};