@code0-tech/tucana 0.0.37 → 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,74 +1,28 @@
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 "sagittarius.flow.proto" (package "sagittarius", 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 "sagittarius.flow.proto" (package "sagittarius", syntax proto3)
3
6
  // tslint:disable
4
7
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
8
  import { WireType } from "@protobuf-ts/runtime";
6
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
- import type { IBinaryWriter } 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 { Flows } from "./shared.flow_pb";
15
13
  import { ValidationFlow } from "./shared.flow_pb";
16
- /**
17
- * Aquila sends a request to initialise stream to Sagittarius
18
- *
19
- * @generated from protobuf message sagittarius.FlowLogonRequest
20
- */
21
- export interface FlowLogonRequest {
22
- }
23
- /**
24
- * Sagittarius sends flow to be updated
25
- *
26
- * @generated from protobuf message sagittarius.FlowResponse
27
- */
28
- export interface FlowResponse {
29
- /**
30
- * @generated from protobuf oneof: data
31
- */
32
- data: {
33
- oneofKind: "updatedFlow";
34
- /**
35
- * Updates a single flow
36
- *
37
- * @generated from protobuf field: shared.ValidationFlow updated_flow = 1
38
- */
39
- updatedFlow: ValidationFlow;
40
- } | {
41
- oneofKind: "deletedFlowId";
42
- /**
43
- * Deletes a single flow
44
- *
45
- * @generated from protobuf field: int64 deleted_flow_id = 2
46
- */
47
- deletedFlowId: bigint;
48
- } | {
49
- oneofKind: "flows";
50
- /**
51
- * Replaces all flows in Aquila (only on startup and for releases)
52
- *
53
- * @generated from protobuf field: shared.Flows flows = 3
54
- */
55
- flows: Flows;
56
- } | {
57
- oneofKind: undefined;
58
- };
59
- }
60
14
  // @generated message type with reflection information, may provide speed optimized methods
61
- class FlowLogonRequest$Type extends MessageType<FlowLogonRequest> {
15
+ class FlowLogonRequest$Type extends MessageType {
62
16
  constructor() {
63
17
  super("sagittarius.FlowLogonRequest", []);
64
18
  }
65
- create(value?: PartialMessage<FlowLogonRequest>): FlowLogonRequest {
66
- const message = globalThis.Object.create((this.messagePrototype!));
19
+ create(value) {
20
+ const message = globalThis.Object.create((this.messagePrototype));
67
21
  if (value !== undefined)
68
- reflectionMergePartial<FlowLogonRequest>(this, message, value);
22
+ reflectionMergePartial(this, message, value);
69
23
  return message;
70
24
  }
71
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowLogonRequest): FlowLogonRequest {
25
+ internalBinaryRead(reader, length, options, target) {
72
26
  let message = target ?? this.create(), end = reader.pos + length;
73
27
  while (reader.pos < end) {
74
28
  let [fieldNo, wireType] = reader.tag();
@@ -84,7 +38,7 @@ class FlowLogonRequest$Type extends MessageType<FlowLogonRequest> {
84
38
  }
85
39
  return message;
86
40
  }
87
- internalBinaryWrite(message: FlowLogonRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
41
+ internalBinaryWrite(message, writer, options) {
88
42
  let u = options.writeUnknownFields;
89
43
  if (u !== false)
90
44
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -96,7 +50,7 @@ class FlowLogonRequest$Type extends MessageType<FlowLogonRequest> {
96
50
  */
97
51
  export const FlowLogonRequest = new FlowLogonRequest$Type();
98
52
  // @generated message type with reflection information, may provide speed optimized methods
99
- class FlowResponse$Type extends MessageType<FlowResponse> {
53
+ class FlowResponse$Type extends MessageType {
100
54
  constructor() {
101
55
  super("sagittarius.FlowResponse", [
102
56
  { no: 1, name: "updated_flow", kind: "message", oneof: "data", T: () => ValidationFlow },
@@ -104,14 +58,14 @@ class FlowResponse$Type extends MessageType<FlowResponse> {
104
58
  { no: 3, name: "flows", kind: "message", oneof: "data", T: () => Flows }
105
59
  ]);
106
60
  }
107
- create(value?: PartialMessage<FlowResponse>): FlowResponse {
108
- const message = globalThis.Object.create((this.messagePrototype!));
61
+ create(value) {
62
+ const message = globalThis.Object.create((this.messagePrototype));
109
63
  message.data = { oneofKind: undefined };
110
64
  if (value !== undefined)
111
- reflectionMergePartial<FlowResponse>(this, message, value);
65
+ reflectionMergePartial(this, message, value);
112
66
  return message;
113
67
  }
114
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowResponse): FlowResponse {
68
+ internalBinaryRead(reader, length, options, target) {
115
69
  let message = target ?? this.create(), end = reader.pos + length;
116
70
  while (reader.pos < end) {
117
71
  let [fieldNo, wireType] = reader.tag();
@@ -119,7 +73,7 @@ class FlowResponse$Type extends MessageType<FlowResponse> {
119
73
  case /* shared.ValidationFlow updated_flow */ 1:
120
74
  message.data = {
121
75
  oneofKind: "updatedFlow",
122
- updatedFlow: ValidationFlow.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updatedFlow)
76
+ updatedFlow: ValidationFlow.internalBinaryRead(reader, reader.uint32(), options, message.data.updatedFlow)
123
77
  };
124
78
  break;
125
79
  case /* int64 deleted_flow_id */ 2:
@@ -131,7 +85,7 @@ class FlowResponse$Type extends MessageType<FlowResponse> {
131
85
  case /* shared.Flows flows */ 3:
132
86
  message.data = {
133
87
  oneofKind: "flows",
134
- flows: Flows.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).flows)
88
+ flows: Flows.internalBinaryRead(reader, reader.uint32(), options, message.data.flows)
135
89
  };
136
90
  break;
137
91
  default:
@@ -145,7 +99,7 @@ class FlowResponse$Type extends MessageType<FlowResponse> {
145
99
  }
146
100
  return message;
147
101
  }
148
- internalBinaryWrite(message: FlowResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
102
+ internalBinaryWrite(message, writer, options) {
149
103
  /* shared.ValidationFlow updated_flow = 1; */
150
104
  if (message.data.oneofKind === "updatedFlow")
151
105
  ValidationFlow.internalBinaryWrite(message.data.updatedFlow, 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 "sagittarius.flow_type.proto" (package "sagittarius", 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 { FlowTypeService } from "./sagittarius.flow_type_pb";
7
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
6
  import type { FlowTypeUpdateResponse } from "./sagittarius.flow_type_pb";
9
7
  import type { FlowTypeUpdateRequest } from "./sagittarius.flow_type_pb";
10
8
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
@@ -25,17 +23,14 @@ export interface IFlowTypeServiceClient {
25
23
  *
26
24
  * @generated from protobuf service sagittarius.FlowTypeService
27
25
  */
28
- export class FlowTypeServiceClient implements IFlowTypeServiceClient, ServiceInfo {
29
- typeName = FlowTypeService.typeName;
30
- methods = FlowTypeService.methods;
31
- options = FlowTypeService.options;
32
- constructor(private readonly _transport: RpcTransport) {
33
- }
26
+ export declare class FlowTypeServiceClient implements IFlowTypeServiceClient, ServiceInfo {
27
+ private readonly _transport;
28
+ typeName: any;
29
+ methods: any;
30
+ options: any;
31
+ constructor(_transport: RpcTransport);
34
32
  /**
35
33
  * @generated from protobuf rpc: Update
36
34
  */
37
- update(input: FlowTypeUpdateRequest, options?: RpcOptions): UnaryCall<FlowTypeUpdateRequest, FlowTypeUpdateResponse> {
38
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
39
- return stackIntercept<FlowTypeUpdateRequest, FlowTypeUpdateResponse>("unary", this._transport, method, opt, input);
40
- }
35
+ update(input: FlowTypeUpdateRequest, options?: RpcOptions): UnaryCall<FlowTypeUpdateRequest, FlowTypeUpdateResponse>;
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 "sagittarius.flow_type.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { FlowTypeService } from "./sagittarius.flow_type_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * This service will be implemented as a server by Sagittarius and as a client by Aquila.
8
+ *
9
+ * @generated from protobuf service sagittarius.FlowTypeService
10
+ */
11
+ export class FlowTypeServiceClient {
12
+ constructor(_transport) {
13
+ this._transport = _transport;
14
+ this.typeName = FlowTypeService.typeName;
15
+ this.methods = FlowTypeService.methods;
16
+ this.options = FlowTypeService.options;
17
+ }
18
+ /**
19
+ * @generated from protobuf rpc: Update
20
+ */
21
+ update(input, options) {
22
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
23
+ return stackIntercept("unary", this._transport, method, opt, input);
24
+ }
25
+ }
@@ -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 "sagittarius.flow_type.proto" (package "sagittarius", 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 { FlowType } from "./shared.flow_definition_pb";
11
+ /**
12
+ * Request for updating a list of adapter flow types
13
+ *
14
+ * @generated from protobuf message sagittarius.FlowTypeUpdateRequest
15
+ */
16
+ export interface FlowTypeUpdateRequest {
17
+ /**
18
+ * List of adapter flow types
19
+ *
20
+ * @generated from protobuf field: repeated shared.FlowType flow_types = 1
21
+ */
22
+ flowTypes: FlowType[];
23
+ }
24
+ /**
25
+ * Response of updating adapter flow types
26
+ *
27
+ * @generated from protobuf message sagittarius.FlowTypeUpdateResponse
28
+ */
29
+ export interface FlowTypeUpdateResponse {
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 FlowTypeUpdateRequest$Type extends MessageType<FlowTypeUpdateRequest> {
38
+ constructor();
39
+ create(value?: PartialMessage<FlowTypeUpdateRequest>): FlowTypeUpdateRequest;
40
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowTypeUpdateRequest): FlowTypeUpdateRequest;
41
+ internalBinaryWrite(message: FlowTypeUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
42
+ }
43
+ /**
44
+ * @generated MessageType for protobuf message sagittarius.FlowTypeUpdateRequest
45
+ */
46
+ export declare const FlowTypeUpdateRequest: FlowTypeUpdateRequest$Type;
47
+ declare class FlowTypeUpdateResponse$Type extends MessageType<FlowTypeUpdateResponse> {
48
+ constructor();
49
+ create(value?: PartialMessage<FlowTypeUpdateResponse>): FlowTypeUpdateResponse;
50
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowTypeUpdateResponse): FlowTypeUpdateResponse;
51
+ internalBinaryWrite(message: FlowTypeUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
52
+ }
53
+ /**
54
+ * @generated MessageType for protobuf message sagittarius.FlowTypeUpdateResponse
55
+ */
56
+ export declare const FlowTypeUpdateResponse: FlowTypeUpdateResponse$Type;
57
+ /**
58
+ * @generated ServiceType for protobuf service sagittarius.FlowTypeService
59
+ */
60
+ export declare const FlowTypeService: any;
61
+ export {};
@@ -1,58 +1,30 @@
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 "sagittarius.flow_type.proto" (package "sagittarius", 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 "sagittarius.flow_type.proto" (package "sagittarius", 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 { FlowType } from "./shared.flow_definition_pb";
15
- /**
16
- * Request for updating a list of adapter flow types
17
- *
18
- * @generated from protobuf message sagittarius.FlowTypeUpdateRequest
19
- */
20
- export interface FlowTypeUpdateRequest {
21
- /**
22
- * List of adapter flow types
23
- *
24
- * @generated from protobuf field: repeated shared.FlowType flow_types = 1
25
- */
26
- flowTypes: FlowType[];
27
- }
28
- /**
29
- * Response of updating adapter flow types
30
- *
31
- * @generated from protobuf message sagittarius.FlowTypeUpdateResponse
32
- */
33
- export interface FlowTypeUpdateResponse {
34
- /**
35
- * True if was successful, false if not
36
- *
37
- * @generated from protobuf field: bool success = 1
38
- */
39
- success: boolean;
40
- }
41
13
  // @generated message type with reflection information, may provide speed optimized methods
42
- class FlowTypeUpdateRequest$Type extends MessageType<FlowTypeUpdateRequest> {
14
+ class FlowTypeUpdateRequest$Type extends MessageType {
43
15
  constructor() {
44
16
  super("sagittarius.FlowTypeUpdateRequest", [
45
17
  { no: 1, name: "flow_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowType }
46
18
  ]);
47
19
  }
48
- create(value?: PartialMessage<FlowTypeUpdateRequest>): FlowTypeUpdateRequest {
49
- const message = globalThis.Object.create((this.messagePrototype!));
20
+ create(value) {
21
+ const message = globalThis.Object.create((this.messagePrototype));
50
22
  message.flowTypes = [];
51
23
  if (value !== undefined)
52
- reflectionMergePartial<FlowTypeUpdateRequest>(this, message, value);
24
+ reflectionMergePartial(this, message, value);
53
25
  return message;
54
26
  }
55
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowTypeUpdateRequest): FlowTypeUpdateRequest {
27
+ internalBinaryRead(reader, length, options, target) {
56
28
  let message = target ?? this.create(), end = reader.pos + length;
57
29
  while (reader.pos < end) {
58
30
  let [fieldNo, wireType] = reader.tag();
@@ -71,7 +43,7 @@ class FlowTypeUpdateRequest$Type extends MessageType<FlowTypeUpdateRequest> {
71
43
  }
72
44
  return message;
73
45
  }
74
- internalBinaryWrite(message: FlowTypeUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
46
+ internalBinaryWrite(message, writer, options) {
75
47
  /* repeated shared.FlowType flow_types = 1; */
76
48
  for (let i = 0; i < message.flowTypes.length; i++)
77
49
  FlowType.internalBinaryWrite(message.flowTypes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -86,20 +58,20 @@ class FlowTypeUpdateRequest$Type extends MessageType<FlowTypeUpdateRequest> {
86
58
  */
87
59
  export const FlowTypeUpdateRequest = new FlowTypeUpdateRequest$Type();
88
60
  // @generated message type with reflection information, may provide speed optimized methods
89
- class FlowTypeUpdateResponse$Type extends MessageType<FlowTypeUpdateResponse> {
61
+ class FlowTypeUpdateResponse$Type extends MessageType {
90
62
  constructor() {
91
63
  super("sagittarius.FlowTypeUpdateResponse", [
92
64
  { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
93
65
  ]);
94
66
  }
95
- create(value?: PartialMessage<FlowTypeUpdateResponse>): FlowTypeUpdateResponse {
96
- const message = globalThis.Object.create((this.messagePrototype!));
67
+ create(value) {
68
+ const message = globalThis.Object.create((this.messagePrototype));
97
69
  message.success = false;
98
70
  if (value !== undefined)
99
- reflectionMergePartial<FlowTypeUpdateResponse>(this, message, value);
71
+ reflectionMergePartial(this, message, value);
100
72
  return message;
101
73
  }
102
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowTypeUpdateResponse): FlowTypeUpdateResponse {
74
+ internalBinaryRead(reader, length, options, target) {
103
75
  let message = target ?? this.create(), end = reader.pos + length;
104
76
  while (reader.pos < end) {
105
77
  let [fieldNo, wireType] = reader.tag();
@@ -118,7 +90,7 @@ class FlowTypeUpdateResponse$Type extends MessageType<FlowTypeUpdateResponse> {
118
90
  }
119
91
  return message;
120
92
  }
121
- internalBinaryWrite(message: FlowTypeUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
93
+ internalBinaryWrite(message, writer, options) {
122
94
  /* bool success = 1; */
123
95
  if (message.success !== false)
124
96
  writer.tag(1, WireType.Varint).bool(message.success);
@@ -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 "sagittarius.ping.proto" (package "sagittarius", 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 { PingService } from "./sagittarius.ping_pb";
7
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
6
  import type { PingMessage } from "./sagittarius.ping_pb";
9
7
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
10
8
  import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
@@ -20,17 +18,14 @@ export interface IPingServiceClient {
20
18
  /**
21
19
  * @generated from protobuf service sagittarius.PingService
22
20
  */
23
- export class PingServiceClient implements IPingServiceClient, ServiceInfo {
24
- typeName = PingService.typeName;
25
- methods = PingService.methods;
26
- options = PingService.options;
27
- constructor(private readonly _transport: RpcTransport) {
28
- }
21
+ export declare class PingServiceClient implements IPingServiceClient, ServiceInfo {
22
+ private readonly _transport;
23
+ typeName: any;
24
+ methods: any;
25
+ options: any;
26
+ constructor(_transport: RpcTransport);
29
27
  /**
30
28
  * @generated from protobuf rpc: Ping
31
29
  */
32
- ping(input: PingMessage, options?: RpcOptions): UnaryCall<PingMessage, PingMessage> {
33
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
34
- return stackIntercept<PingMessage, PingMessage>("unary", this._transport, method, opt, input);
35
- }
30
+ ping(input: PingMessage, options?: RpcOptions): UnaryCall<PingMessage, PingMessage>;
36
31
  }
@@ -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 "sagittarius.ping.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { PingService } from "./sagittarius.ping_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service sagittarius.PingService
8
+ */
9
+ export class PingServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = PingService.typeName;
13
+ this.methods = PingService.methods;
14
+ this.options = PingService.options;
15
+ }
16
+ /**
17
+ * @generated from protobuf rpc: Ping
18
+ */
19
+ ping(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,33 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.ping.proto" (package "sagittarius", 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
+ /**
11
+ * @generated from protobuf message sagittarius.PingMessage
12
+ */
13
+ export interface PingMessage {
14
+ /**
15
+ * @generated from protobuf field: int64 ping_id = 1
16
+ */
17
+ pingId: bigint;
18
+ }
19
+ declare class PingMessage$Type extends MessageType<PingMessage> {
20
+ constructor();
21
+ create(value?: PartialMessage<PingMessage>): PingMessage;
22
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PingMessage): PingMessage;
23
+ internalBinaryWrite(message: PingMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
24
+ }
25
+ /**
26
+ * @generated MessageType for protobuf message sagittarius.PingMessage
27
+ */
28
+ export declare const PingMessage: PingMessage$Type;
29
+ /**
30
+ * @generated ServiceType for protobuf service sagittarius.PingService
31
+ */
32
+ export declare const PingService: any;
33
+ export {};
@@ -1,40 +1,29 @@
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 "sagittarius.ping.proto" (package "sagittarius", 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 "sagittarius.ping.proto" (package "sagittarius", 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
- /**
15
- * @generated from protobuf message sagittarius.PingMessage
16
- */
17
- export interface PingMessage {
18
- /**
19
- * @generated from protobuf field: int64 ping_id = 1
20
- */
21
- pingId: bigint;
22
- }
23
12
  // @generated message type with reflection information, may provide speed optimized methods
24
- class PingMessage$Type extends MessageType<PingMessage> {
13
+ class PingMessage$Type extends MessageType {
25
14
  constructor() {
26
15
  super("sagittarius.PingMessage", [
27
16
  { no: 1, name: "ping_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
28
17
  ]);
29
18
  }
30
- create(value?: PartialMessage<PingMessage>): PingMessage {
31
- const message = globalThis.Object.create((this.messagePrototype!));
19
+ create(value) {
20
+ const message = globalThis.Object.create((this.messagePrototype));
32
21
  message.pingId = 0n;
33
22
  if (value !== undefined)
34
- reflectionMergePartial<PingMessage>(this, message, value);
23
+ reflectionMergePartial(this, message, value);
35
24
  return message;
36
25
  }
37
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PingMessage): PingMessage {
26
+ internalBinaryRead(reader, length, options, target) {
38
27
  let message = target ?? this.create(), end = reader.pos + length;
39
28
  while (reader.pos < end) {
40
29
  let [fieldNo, wireType] = reader.tag();
@@ -53,7 +42,7 @@ class PingMessage$Type extends MessageType<PingMessage> {
53
42
  }
54
43
  return message;
55
44
  }
56
- internalBinaryWrite(message: PingMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
45
+ internalBinaryWrite(message, writer, options) {
57
46
  /* int64 ping_id = 1; */
58
47
  if (message.pingId !== 0n)
59
48
  writer.tag(1, WireType.Varint).int64(message.pingId);
@@ -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 "sagittarius.runtime_function.proto" (package "sagittarius", 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 { RuntimeFunctionDefinitionService } from "./sagittarius.runtime_function_pb";
7
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
6
  import type { RuntimeFunctionDefinitionUpdateResponse } from "./sagittarius.runtime_function_pb";
9
7
  import type { RuntimeFunctionDefinitionUpdateRequest } from "./sagittarius.runtime_function_pb";
10
8
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
@@ -25,17 +23,14 @@ export interface IRuntimeFunctionDefinitionServiceClient {
25
23
  *
26
24
  * @generated from protobuf service sagittarius.RuntimeFunctionDefinitionService
27
25
  */
28
- export class RuntimeFunctionDefinitionServiceClient implements IRuntimeFunctionDefinitionServiceClient, ServiceInfo {
29
- typeName = RuntimeFunctionDefinitionService.typeName;
30
- methods = RuntimeFunctionDefinitionService.methods;
31
- options = RuntimeFunctionDefinitionService.options;
32
- constructor(private readonly _transport: RpcTransport) {
33
- }
26
+ export declare class RuntimeFunctionDefinitionServiceClient implements IRuntimeFunctionDefinitionServiceClient, ServiceInfo {
27
+ private readonly _transport;
28
+ typeName: any;
29
+ methods: any;
30
+ options: any;
31
+ constructor(_transport: RpcTransport);
34
32
  /**
35
33
  * @generated from protobuf rpc: Update
36
34
  */
37
- update(input: RuntimeFunctionDefinitionUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeFunctionDefinitionUpdateRequest, RuntimeFunctionDefinitionUpdateResponse> {
38
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
39
- return stackIntercept<RuntimeFunctionDefinitionUpdateRequest, RuntimeFunctionDefinitionUpdateResponse>("unary", this._transport, method, opt, input);
40
- }
35
+ update(input: RuntimeFunctionDefinitionUpdateRequest, options?: RpcOptions): UnaryCall<RuntimeFunctionDefinitionUpdateRequest, RuntimeFunctionDefinitionUpdateResponse>;
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 "sagittarius.runtime_function.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { RuntimeFunctionDefinitionService } from "./sagittarius.runtime_function_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * This service will be implemented as a server by Sagittarius and as a client by Aquila.
8
+ *
9
+ * @generated from protobuf service sagittarius.RuntimeFunctionDefinitionService
10
+ */
11
+ export class RuntimeFunctionDefinitionServiceClient {
12
+ constructor(_transport) {
13
+ this._transport = _transport;
14
+ this.typeName = RuntimeFunctionDefinitionService.typeName;
15
+ this.methods = RuntimeFunctionDefinitionService.methods;
16
+ this.options = RuntimeFunctionDefinitionService.options;
17
+ }
18
+ /**
19
+ * @generated from protobuf rpc: Update
20
+ */
21
+ update(input, options) {
22
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
23
+ return stackIntercept("unary", this._transport, method, opt, input);
24
+ }
25
+ }