@code0-tech/tucana 0.0.72 → 0.0.74

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.
@@ -0,0 +1,46 @@
1
+ import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
+ import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
+ import { ExecutionResult } from './shared.execution_result_pb';
4
+ /**
5
+ * @generated from protobuf message aquila.ExecutionRequest
6
+ */
7
+ export interface ExecutionRequest {
8
+ /**
9
+ * @generated from protobuf field: shared.ExecutionResult execution_result = 1
10
+ */
11
+ executionResult?: ExecutionResult;
12
+ }
13
+ /**
14
+ * @generated from protobuf message aquila.ExecutionResponse
15
+ */
16
+ export interface ExecutionResponse {
17
+ /**
18
+ * @generated from protobuf field: bool success = 1
19
+ */
20
+ success: boolean;
21
+ }
22
+ declare class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
23
+ constructor();
24
+ create(value?: PartialMessage<ExecutionRequest>): ExecutionRequest;
25
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionRequest): ExecutionRequest;
26
+ internalBinaryWrite(message: ExecutionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
27
+ }
28
+ /**
29
+ * @generated MessageType for protobuf message aquila.ExecutionRequest
30
+ */
31
+ export declare const ExecutionRequest: ExecutionRequest$Type;
32
+ declare class ExecutionResponse$Type extends MessageType<ExecutionResponse> {
33
+ constructor();
34
+ create(value?: PartialMessage<ExecutionResponse>): ExecutionResponse;
35
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionResponse): ExecutionResponse;
36
+ internalBinaryWrite(message: ExecutionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
37
+ }
38
+ /**
39
+ * @generated MessageType for protobuf message aquila.ExecutionResponse
40
+ */
41
+ export declare const ExecutionResponse: ExecutionResponse$Type;
42
+ /**
43
+ * @generated ServiceType for protobuf service aquila.ExecutionService
44
+ */
45
+ export declare const ExecutionService: ServiceType;
46
+ export {};
@@ -1,34 +1,14 @@
1
1
  import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
2
  import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
- import { ActionStatus, ExecutionRuntimeStatus, AdapterRuntimeStatus } from './shared.runtime_status_pb';
3
+ import { ModuleStatus } from './shared.runtime_status_pb';
4
4
  /**
5
5
  * @generated from protobuf message aquila.RuntimeStatusUpdateRequest
6
6
  */
7
7
  export interface RuntimeStatusUpdateRequest {
8
8
  /**
9
- * @generated from protobuf oneof: status
9
+ * @generated from protobuf field: shared.ModuleStatus status = 1
10
10
  */
11
- status: {
12
- oneofKind: "adapterRuntimeStatus";
13
- /**
14
- * @generated from protobuf field: shared.AdapterRuntimeStatus adapter_runtime_status = 1
15
- */
16
- adapterRuntimeStatus: AdapterRuntimeStatus;
17
- } | {
18
- oneofKind: "executionRuntimeStatus";
19
- /**
20
- * @generated from protobuf field: shared.ExecutionRuntimeStatus execution_runtime_status = 2
21
- */
22
- executionRuntimeStatus: ExecutionRuntimeStatus;
23
- } | {
24
- oneofKind: "actionStatus";
25
- /**
26
- * @generated from protobuf field: shared.ActionStatus action_status = 3
27
- */
28
- actionStatus: ActionStatus;
29
- } | {
30
- oneofKind: undefined;
31
- };
11
+ status?: ModuleStatus;
32
12
  }
33
13
  /**
34
14
  * @generated from protobuf message aquila.RuntimeStatusUpdateResponse
@@ -1,35 +1,15 @@
1
1
  import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
2
  import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
3
  import { ServiceError } from './shared.errors_pb';
4
- import { ActionStatus, ExecutionRuntimeStatus, AdapterRuntimeStatus } from './shared.runtime_status_pb';
4
+ import { ModuleStatus } from './shared.runtime_status_pb';
5
5
  /**
6
6
  * @generated from protobuf message sagittarius.RuntimeStatusUpdateRequest
7
7
  */
8
8
  export interface RuntimeStatusUpdateRequest {
9
9
  /**
10
- * @generated from protobuf oneof: status
10
+ * @generated from protobuf field: shared.ModuleStatus status = 1
11
11
  */
12
- status: {
13
- oneofKind: "adapterRuntimeStatus";
14
- /**
15
- * @generated from protobuf field: shared.AdapterRuntimeStatus adapter_runtime_status = 1
16
- */
17
- adapterRuntimeStatus: AdapterRuntimeStatus;
18
- } | {
19
- oneofKind: "executionRuntimeStatus";
20
- /**
21
- * @generated from protobuf field: shared.ExecutionRuntimeStatus execution_runtime_status = 2
22
- */
23
- executionRuntimeStatus: ExecutionRuntimeStatus;
24
- } | {
25
- oneofKind: "actionStatus";
26
- /**
27
- * @generated from protobuf field: shared.ActionStatus action_status = 3
28
- */
29
- actionStatus: ActionStatus;
30
- } | {
31
- oneofKind: undefined;
32
- };
12
+ status?: ModuleStatus;
33
13
  }
34
14
  /**
35
15
  * @generated from protobuf message sagittarius.RuntimeStatusUpdateResponse
@@ -15,19 +15,33 @@ export interface NodeParameterNodeExecutionResult {
15
15
  */
16
16
  export interface NodeExecutionResult {
17
17
  /**
18
- * @generated from protobuf field: int64 node_id = 1
18
+ * @generated from protobuf oneof: id
19
19
  */
20
- nodeId: bigint;
20
+ id: {
21
+ oneofKind: "nodeId";
22
+ /**
23
+ * @generated from protobuf field: int64 node_id = 1
24
+ */
25
+ nodeId: bigint;
26
+ } | {
27
+ oneofKind: "functionId";
28
+ /**
29
+ * @generated from protobuf field: int64 function_id = 2
30
+ */
31
+ functionId: bigint;
32
+ } | {
33
+ oneofKind: undefined;
34
+ };
21
35
  /**
22
- * @generated from protobuf field: int64 started_at = 2
36
+ * @generated from protobuf field: int64 started_at = 3
23
37
  */
24
38
  startedAt: bigint;
25
39
  /**
26
- * @generated from protobuf field: int64 finished_at = 3
40
+ * @generated from protobuf field: int64 finished_at = 4
27
41
  */
28
42
  finishedAt: bigint;
29
43
  /**
30
- * @generated from protobuf field: repeated shared.NodeParameterNodeExecutionResult parameter_results = 4
44
+ * @generated from protobuf field: repeated shared.NodeParameterNodeExecutionResult parameter_results = 5
31
45
  */
32
46
  parameterResults: NodeParameterNodeExecutionResult[];
33
47
  /**
@@ -36,13 +50,13 @@ export interface NodeExecutionResult {
36
50
  result: {
37
51
  oneofKind: "success";
38
52
  /**
39
- * @generated from protobuf field: shared.Value success = 5
53
+ * @generated from protobuf field: shared.Value success = 6
40
54
  */
41
55
  success: Value;
42
56
  } | {
43
57
  oneofKind: "error";
44
58
  /**
45
- * @generated from protobuf field: shared.Error error = 6
59
+ * @generated from protobuf field: shared.Error error = 7
46
60
  */
47
61
  error: Error;
48
62
  } | {
@@ -62,6 +62,52 @@ export interface Module {
62
62
  * @generated from protobuf field: repeated shared.ModuleConfigurationDefinition configurations = 14
63
63
  */
64
64
  configurations: ModuleConfigurationDefinition[];
65
+ /**
66
+ * @generated from protobuf field: repeated shared.ModuleDefinition definitions = 15
67
+ */
68
+ definitions: ModuleDefinition[];
69
+ }
70
+ /**
71
+ * @generated from protobuf message shared.ModuleDefinition
72
+ */
73
+ export interface ModuleDefinition {
74
+ /**
75
+ * A list of flow type identifier to which the value appies
76
+ *
77
+ * @generated from protobuf field: repeated string flow_type_identifier = 1
78
+ */
79
+ flowTypeIdentifier: string[];
80
+ /**
81
+ * @generated from protobuf oneof: value
82
+ */
83
+ value: {
84
+ oneofKind: "endpoint";
85
+ /**
86
+ * Endpoint URL
87
+ *
88
+ * @generated from protobuf field: shared.Endpoint endpoint = 2
89
+ */
90
+ endpoint: Endpoint;
91
+ } | {
92
+ oneofKind: undefined;
93
+ };
94
+ }
95
+ /**
96
+ * @generated from protobuf message shared.Endpoint
97
+ */
98
+ export interface Endpoint {
99
+ /**
100
+ * @generated from protobuf field: string host = 1
101
+ */
102
+ host: string;
103
+ /**
104
+ * @generated from protobuf field: int64 port = 2
105
+ */
106
+ port: bigint;
107
+ /**
108
+ * @generated from protobuf field: string endpoint = 3
109
+ */
110
+ endpoint: string;
65
111
  }
66
112
  /**
67
113
  * send by sagittarius to inform a module of the real config set by the user
@@ -153,6 +199,26 @@ declare class Module$Type extends MessageType<Module> {
153
199
  * @generated MessageType for protobuf message shared.Module
154
200
  */
155
201
  export declare const Module: Module$Type;
202
+ declare class ModuleDefinition$Type extends MessageType<ModuleDefinition> {
203
+ constructor();
204
+ create(value?: PartialMessage<ModuleDefinition>): ModuleDefinition;
205
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModuleDefinition): ModuleDefinition;
206
+ internalBinaryWrite(message: ModuleDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
207
+ }
208
+ /**
209
+ * @generated MessageType for protobuf message shared.ModuleDefinition
210
+ */
211
+ export declare const ModuleDefinition: ModuleDefinition$Type;
212
+ declare class Endpoint$Type extends MessageType<Endpoint> {
213
+ constructor();
214
+ create(value?: PartialMessage<Endpoint>): Endpoint;
215
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Endpoint): Endpoint;
216
+ internalBinaryWrite(message: Endpoint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
217
+ }
218
+ /**
219
+ * @generated MessageType for protobuf message shared.Endpoint
220
+ */
221
+ export declare const Endpoint: Endpoint$Type;
156
222
  declare class ModuleConfiguration$Type extends MessageType<ModuleConfiguration> {
157
223
  constructor();
158
224
  create(value?: PartialMessage<ModuleConfiguration>): ModuleConfiguration;
@@ -1,163 +1,29 @@
1
1
  import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
2
2
  /**
3
- * @generated from protobuf message shared.AdapterStatusConfiguration
3
+ * @generated from protobuf message shared.ModuleStatus
4
4
  */
5
- export interface AdapterStatusConfiguration {
5
+ export interface ModuleStatus {
6
6
  /**
7
- * List of flow type identifiers for this specific AdapterConfiguration
7
+ * Identifier of this module
8
8
  *
9
- * @generated from protobuf field: repeated string flow_type_identifiers = 1
10
- */
11
- flowTypeIdentifiers: string[];
12
- /**
13
- * @generated from protobuf oneof: data
14
- */
15
- data: {
16
- oneofKind: "endpoint";
17
- /**
18
- * @generated from protobuf field: string endpoint = 2
19
- */
20
- endpoint: string;
21
- } | {
22
- oneofKind: undefined;
23
- };
24
- }
25
- /**
26
- * @generated from protobuf message shared.ActionStatusConfiguration
27
- */
28
- export interface ActionStatusConfiguration {
29
- /**
30
- * List of flow type identifiers for this specific ActionStatusConfiguration
31
- *
32
- * @generated from protobuf field: repeated string flow_type_identifiers = 1
33
- */
34
- flowTypeIdentifiers: string[];
35
- /**
36
- * @generated from protobuf oneof: data
37
- */
38
- data: {
39
- oneofKind: "endpoint";
40
- /**
41
- * @generated from protobuf field: string endpoint = 2
42
- */
43
- endpoint: string;
44
- } | {
45
- oneofKind: undefined;
46
- };
47
- }
48
- /**
49
- * @generated from protobuf message shared.AdapterRuntimeStatus
50
- */
51
- export interface AdapterRuntimeStatus {
52
- /**
53
- * @generated from protobuf field: shared.AdapterRuntimeStatus.Status status = 1
54
- */
55
- status: AdapterRuntimeStatus_Status;
56
- /**
57
- * @generated from protobuf field: int64 timestamp = 2
58
- */
59
- timestamp: bigint;
60
- /**
61
- * @generated from protobuf field: string identifier = 3
62
- */
63
- identifier: string;
64
- /**
65
- * @generated from protobuf field: repeated shared.AdapterStatusConfiguration configurations = 4
66
- */
67
- configurations: AdapterStatusConfiguration[];
68
- }
69
- /**
70
- * @generated from protobuf enum shared.AdapterRuntimeStatus.Status
71
- */
72
- export declare enum AdapterRuntimeStatus_Status {
73
- /**
74
- * @generated from protobuf enum value: UNKNOWN = 0;
75
- */
76
- UNKNOWN = 0,
77
- /**
78
- * @generated from protobuf enum value: NOT_RESPONDING = 1;
79
- */
80
- NOT_RESPONDING = 1,
81
- /**
82
- * @generated from protobuf enum value: NOT_READY = 2;
83
- */
84
- NOT_READY = 2,
85
- /**
86
- * @generated from protobuf enum value: RUNNING = 3;
87
- */
88
- RUNNING = 3,
89
- /**
90
- * @generated from protobuf enum value: STOPPED = 4;
91
- */
92
- STOPPED = 4
93
- }
94
- /**
95
- * @generated from protobuf message shared.ExecutionRuntimeStatus
96
- */
97
- export interface ExecutionRuntimeStatus {
98
- /**
99
- * @generated from protobuf field: shared.ExecutionRuntimeStatus.Status status = 1
100
- */
101
- status: ExecutionRuntimeStatus_Status;
102
- /**
103
- * @generated from protobuf field: int64 timestamp = 2
104
- */
105
- timestamp: bigint;
106
- /**
107
- * @generated from protobuf field: string identifier = 3
9
+ * @generated from protobuf field: string identifier = 1
108
10
  */
109
11
  identifier: string;
110
- }
111
- /**
112
- * @generated from protobuf enum shared.ExecutionRuntimeStatus.Status
113
- */
114
- export declare enum ExecutionRuntimeStatus_Status {
115
- /**
116
- * @generated from protobuf enum value: UNKNOWN = 0;
117
- */
118
- UNKNOWN = 0,
119
- /**
120
- * @generated from protobuf enum value: NOT_RESPONDING = 1;
121
- */
122
- NOT_RESPONDING = 1,
123
- /**
124
- * @generated from protobuf enum value: NOT_READY = 2;
125
- */
126
- NOT_READY = 2,
127
- /**
128
- * @generated from protobuf enum value: RUNNING = 3;
129
- */
130
- RUNNING = 3,
131
- /**
132
- * @generated from protobuf enum value: STOPPED = 4;
133
- */
134
- STOPPED = 4
135
- }
136
- /**
137
- * @generated from protobuf message shared.ActionStatus
138
- */
139
- export interface ActionStatus {
140
- /**
141
- * @generated from protobuf field: shared.ActionStatus.Status status = 1
142
- */
143
- status: ActionStatus_Status;
144
12
  /**
13
+ * epoch timestamp in seconds
14
+ *
145
15
  * @generated from protobuf field: int64 timestamp = 2
146
16
  */
147
17
  timestamp: bigint;
148
18
  /**
149
- * @generated from protobuf field: string identifier = 3
19
+ * @generated from protobuf field: shared.ModuleStatus.StatusVariant status = 3
150
20
  */
151
- identifier: string;
152
- /**
153
- * @generated from protobuf field: repeated shared.ActionStatusConfiguration configurations = 4
154
- */
155
- configurations: ActionStatusConfiguration[];
21
+ status: ModuleStatus_StatusVariant;
156
22
  }
157
23
  /**
158
- * @generated from protobuf enum shared.ActionStatus.Status
24
+ * @generated from protobuf enum shared.ModuleStatus.StatusVariant
159
25
  */
160
- export declare enum ActionStatus_Status {
26
+ export declare enum ModuleStatus_StatusVariant {
161
27
  /**
162
28
  * @generated from protobuf enum value: UNKNOWN = 0;
163
29
  */
@@ -179,54 +45,14 @@ export declare enum ActionStatus_Status {
179
45
  */
180
46
  STOPPED = 4
181
47
  }
182
- declare class AdapterStatusConfiguration$Type extends MessageType<AdapterStatusConfiguration> {
183
- constructor();
184
- create(value?: PartialMessage<AdapterStatusConfiguration>): AdapterStatusConfiguration;
185
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdapterStatusConfiguration): AdapterStatusConfiguration;
186
- internalBinaryWrite(message: AdapterStatusConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
187
- }
188
- /**
189
- * @generated MessageType for protobuf message shared.AdapterStatusConfiguration
190
- */
191
- export declare const AdapterStatusConfiguration: AdapterStatusConfiguration$Type;
192
- declare class ActionStatusConfiguration$Type extends MessageType<ActionStatusConfiguration> {
193
- constructor();
194
- create(value?: PartialMessage<ActionStatusConfiguration>): ActionStatusConfiguration;
195
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionStatusConfiguration): ActionStatusConfiguration;
196
- internalBinaryWrite(message: ActionStatusConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
197
- }
198
- /**
199
- * @generated MessageType for protobuf message shared.ActionStatusConfiguration
200
- */
201
- export declare const ActionStatusConfiguration: ActionStatusConfiguration$Type;
202
- declare class AdapterRuntimeStatus$Type extends MessageType<AdapterRuntimeStatus> {
203
- constructor();
204
- create(value?: PartialMessage<AdapterRuntimeStatus>): AdapterRuntimeStatus;
205
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdapterRuntimeStatus): AdapterRuntimeStatus;
206
- internalBinaryWrite(message: AdapterRuntimeStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
207
- }
208
- /**
209
- * @generated MessageType for protobuf message shared.AdapterRuntimeStatus
210
- */
211
- export declare const AdapterRuntimeStatus: AdapterRuntimeStatus$Type;
212
- declare class ExecutionRuntimeStatus$Type extends MessageType<ExecutionRuntimeStatus> {
213
- constructor();
214
- create(value?: PartialMessage<ExecutionRuntimeStatus>): ExecutionRuntimeStatus;
215
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionRuntimeStatus): ExecutionRuntimeStatus;
216
- internalBinaryWrite(message: ExecutionRuntimeStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
217
- }
218
- /**
219
- * @generated MessageType for protobuf message shared.ExecutionRuntimeStatus
220
- */
221
- export declare const ExecutionRuntimeStatus: ExecutionRuntimeStatus$Type;
222
- declare class ActionStatus$Type extends MessageType<ActionStatus> {
48
+ declare class ModuleStatus$Type extends MessageType<ModuleStatus> {
223
49
  constructor();
224
- create(value?: PartialMessage<ActionStatus>): ActionStatus;
225
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionStatus): ActionStatus;
226
- internalBinaryWrite(message: ActionStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
50
+ create(value?: PartialMessage<ModuleStatus>): ModuleStatus;
51
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModuleStatus): ModuleStatus;
52
+ internalBinaryWrite(message: ModuleStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
227
53
  }
228
54
  /**
229
- * @generated MessageType for protobuf message shared.ActionStatus
55
+ * @generated MessageType for protobuf message shared.ModuleStatus
230
56
  */
231
- export declare const ActionStatus: ActionStatus$Type;
57
+ export declare const ModuleStatus: ModuleStatus$Type;
232
58
  export {};
@@ -1,5 +1,7 @@
1
1
  export * from './_generated/aquila.action_pb.client.js';
2
2
  export * from './_generated/aquila.action_pb.js';
3
+ export * from './_generated/aquila.execution_pb.client.js';
4
+ export * from './_generated/aquila.execution_pb.js';
3
5
  export * from './_generated/aquila.module_pb.client.js';
4
6
  export * from './_generated/aquila.module_pb.js';
5
7
  export * from './_generated/aquila.runtime_status_pb.client.js';
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shared.function_pb-BErnwHWO.cjs`),t=require(`./shared.runtime_usage_pb-CSRup69H.cjs`),n=require(`./shared.flow_pb-DrDw61IF.cjs`),r=require(`./rpc-interceptor-DOeBkZHU.cjs`);var i=new class extends e.v{constructor(){super(`sagittarius.FlowLogonRequest`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},a=new class extends e.v{constructor(){super(`sagittarius.FlowResponse`,[{no:1,name:`updated_flow`,kind:`message`,oneof:`data`,T:()=>n.m},{no:2,name:`deleted_flow_id`,kind:`scalar`,oneof:`data`,T:3,L:0},{no:3,name:`flows`,kind:`message`,oneof:`data`,T:()=>n.i},{no:4,name:`module_configurations`,kind:`message`,oneof:`data`,T:()=>t.p}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(r,i,a,o){let s=o??this.create(),c=r.pos+i;for(;r.pos<c;){let[i,o]=r.tag();switch(i){case 1:s.data={oneofKind:`updatedFlow`,updatedFlow:n.m.internalBinaryRead(r,r.uint32(),a,s.data.updatedFlow)};break;case 2:s.data={oneofKind:`deletedFlowId`,deletedFlowId:r.int64().toBigInt()};break;case 3:s.data={oneofKind:`flows`,flows:n.i.internalBinaryRead(r,r.uint32(),a,s.data.flows)};break;case 4:s.data={oneofKind:`moduleConfigurations`,moduleConfigurations:t.p.internalBinaryRead(r,r.uint32(),a,s.data.moduleConfigurations)};break;default:let c=a.readUnknownField;if(c===`throw`)throw new globalThis.Error(`Unknown field ${i} (wire type ${o}) for ${this.typeName}`);let l=r.skip(o);c!==!1&&(c===!0?e.S.onRead:c)(this.typeName,s,i,o,l)}}return s}internalBinaryWrite(r,i,a){r.data.oneofKind===`updatedFlow`&&n.m.internalBinaryWrite(r.data.updatedFlow,i.tag(1,e.C.LengthDelimited).fork(),a).join(),r.data.oneofKind===`deletedFlowId`&&i.tag(2,e.C.Varint).int64(r.data.deletedFlowId),r.data.oneofKind===`flows`&&n.i.internalBinaryWrite(r.data.flows,i.tag(3,e.C.LengthDelimited).fork(),a).join(),r.data.oneofKind===`moduleConfigurations`&&t.p.internalBinaryWrite(r.data.moduleConfigurations,i.tag(4,e.C.LengthDelimited).fork(),a).join();let o=a.writeUnknownFields;return o!==!1&&(o==1?e.S.onWrite:o)(this.typeName,r,i),i}},o=new r.n(`sagittarius.FlowService`,[{name:`Update`,serverStreaming:!0,options:{},I:i,O:a}]),s=class{constructor(e){this._transport=e,this.typeName=o.typeName,this.methods=o.methods,this.options=o.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`serverStreaming`,this._transport,n,i,e)}},c=new class extends e.v{constructor(){super(`sagittarius.ModuleUpdateRequest`,[{no:1,name:`modules`,kind:`message`,repeat:2,T:()=>t.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.modules=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.modules.push(t.u.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.modules.length;a++)t.u.internalBinaryWrite(n.modules[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},l=new class extends e.v{constructor(){super(`sagittarius.ModuleUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.T}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.T.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.T.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},u=new r.n(`sagittarius.ModuleService`,[{name:`Update`,options:{},I:c,O:l}]),d=class{constructor(e){this._transport=e,this.typeName=u.typeName,this.methods=u.methods,this.options=u.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},f=new class extends e.v{constructor(){super(`sagittarius.PingMessage`,[{no:1,name:`ping_id`,kind:`scalar`,T:3,L:0}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.pingId=0n,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.pingId=t.int64().toBigInt();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.pingId!==0n&&n.tag(1,e.C.Varint).int64(t.pingId);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},p=new r.n(`sagittarius.PingService`,[{name:`Ping`,options:{},I:f,O:f}]),m=class{constructor(e){this._transport=e,this.typeName=p.typeName,this.methods=p.methods,this.options=p.options}ping(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},h=new class extends e.v{constructor(){super(`sagittarius.RuntimeStatusUpdateRequest`,[{no:1,name:`adapter_runtime_status`,kind:`message`,oneof:`status`,T:()=>t.a},{no:2,name:`execution_runtime_status`,kind:`message`,oneof:`status`,T:()=>t.c},{no:3,name:`action_status`,kind:`message`,oneof:`status`,T:()=>t.n}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.status={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.status={oneofKind:`adapterRuntimeStatus`,adapterRuntimeStatus:t.a.internalBinaryRead(n,n.uint32(),i,o.status.adapterRuntimeStatus)};break;case 2:o.status={oneofKind:`executionRuntimeStatus`,executionRuntimeStatus:t.c.internalBinaryRead(n,n.uint32(),i,o.status.executionRuntimeStatus)};break;case 3:o.status={oneofKind:`actionStatus`,actionStatus:t.n.internalBinaryRead(n,n.uint32(),i,o.status.actionStatus)};break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.status.oneofKind===`adapterRuntimeStatus`&&t.a.internalBinaryWrite(n.status.adapterRuntimeStatus,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.status.oneofKind===`executionRuntimeStatus`&&t.c.internalBinaryWrite(n.status.executionRuntimeStatus,r.tag(2,e.C.LengthDelimited).fork(),i).join(),n.status.oneofKind===`actionStatus`&&t.n.internalBinaryWrite(n.status.actionStatus,r.tag(3,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},g=new class extends e.v{constructor(){super(`sagittarius.RuntimeStatusUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.T}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.T.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.T.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},_=new r.n(`sagittarius.RuntimeStatusService`,[{name:`Update`,options:{},I:h,O:g}]),v=class{constructor(e){this._transport=e,this.typeName=_.typeName,this.methods=_.methods,this.options=_.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},y=new class extends e.v{constructor(){super(`sagittarius.RuntimeUsageRequest`,[{no:1,name:`runtime_usage`,kind:`message`,repeat:2,T:()=>t.t}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.runtimeUsage=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.runtimeUsage.push(t.t.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.runtimeUsage.length;a++)t.t.internalBinaryWrite(n.runtimeUsage[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},b=new class extends e.v{constructor(){super(`sagittarius.RuntimeUsageResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.T}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.T.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.T.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},x=new r.n(`sagittarius.RuntimeUsageService`,[{name:`Update`,options:{},I:y,O:b}]),S=class{constructor(e){this._transport=e,this.typeName=x.typeName,this.methods=x.methods,this.options=x.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},C=new class extends e.v{constructor(){super(`sagittarius.Logon`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},w=new class extends e.v{constructor(){super(`sagittarius.TestExecutionRequest`,[{no:1,name:`flow_id`,kind:`scalar`,T:3,L:0},{no:2,name:`execution_identifier`,kind:`scalar`,T:9},{no:3,name:`body`,kind:`message`,T:()=>e.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.flowId=0n,n.executionIdentifier=``,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.flowId=t.int64().toBigInt();break;case 2:a.executionIdentifier=t.string();break;case 3:a.body=e.u.internalBinaryRead(t,t.uint32(),r,a.body);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.flowId!==0n&&n.tag(1,e.C.Varint).int64(t.flowId),t.executionIdentifier!==``&&n.tag(2,e.C.LengthDelimited).string(t.executionIdentifier),t.body&&e.u.internalBinaryWrite(t.body,n.tag(3,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},T=new class extends e.v{constructor(){super(`sagittarius.ExecutionLogonRequest`,[{no:1,name:`logon`,kind:`message`,oneof:`data`,T:()=>C},{no:2,name:`response`,kind:`message`,oneof:`data`,T:()=>t.b}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.data={oneofKind:`logon`,logon:C.internalBinaryRead(n,n.uint32(),i,o.data.logon)};break;case 2:o.data={oneofKind:`response`,response:t.b.internalBinaryRead(n,n.uint32(),i,o.data.response)};break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.data.oneofKind===`logon`&&C.internalBinaryWrite(n.data.logon,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.data.oneofKind===`response`&&t.b.internalBinaryWrite(n.data.response,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},E=new class extends e.v{constructor(){super(`sagittarius.ExecutionLogonResponse`,[{no:1,name:`request`,kind:`message`,T:()=>w}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.request=w.internalBinaryRead(t,t.uint32(),r,a.request);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.request&&w.internalBinaryWrite(t.request,n.tag(1,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},D=new r.n(`sagittarius.ExecutionService`,[{name:`Test`,serverStreaming:!0,clientStreaming:!0,options:{},I:T,O:E}]),O=class{constructor(e){this._transport=e,this.typeName=D.typeName,this.methods=D.methods,this.options=D.options}test(e){let t=this.methods[0],n=this._transport.mergeOptions(e);return r.t(`duplex`,this._transport,t,n)}};exports.ExecutionLogonRequest=T,exports.ExecutionLogonResponse=E,exports.ExecutionService=D,exports.ExecutionServiceClient=O,exports.FlowLogonRequest=i,exports.FlowResponse=a,exports.FlowService=o,exports.FlowServiceClient=s,exports.Logon=C,exports.ModuleService=u,exports.ModuleServiceClient=d,exports.ModuleUpdateRequest=c,exports.ModuleUpdateResponse=l,exports.PingMessage=f,exports.PingService=p,exports.PingServiceClient=m,exports.RuntimeStatusService=_,exports.RuntimeStatusServiceClient=v,exports.RuntimeStatusUpdateRequest=h,exports.RuntimeStatusUpdateResponse=g,exports.RuntimeUsageRequest=y,exports.RuntimeUsageResponse=b,exports.RuntimeUsageService=x,exports.RuntimeUsageServiceClient=S,exports.TestExecutionRequest=w;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shared.function_pb-BErnwHWO.cjs`),t=require(`./shared.runtime_usage_pb-BWGBeR-4.cjs`),n=require(`./shared.flow_pb-DrDw61IF.cjs`),r=require(`./rpc-interceptor-DOeBkZHU.cjs`);var i=new class extends e.v{constructor(){super(`sagittarius.FlowLogonRequest`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},a=new class extends e.v{constructor(){super(`sagittarius.FlowResponse`,[{no:1,name:`updated_flow`,kind:`message`,oneof:`data`,T:()=>n.m},{no:2,name:`deleted_flow_id`,kind:`scalar`,oneof:`data`,T:3,L:0},{no:3,name:`flows`,kind:`message`,oneof:`data`,T:()=>n.i},{no:4,name:`module_configurations`,kind:`message`,oneof:`data`,T:()=>t.c}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(r,i,a,o){let s=o??this.create(),c=r.pos+i;for(;r.pos<c;){let[i,o]=r.tag();switch(i){case 1:s.data={oneofKind:`updatedFlow`,updatedFlow:n.m.internalBinaryRead(r,r.uint32(),a,s.data.updatedFlow)};break;case 2:s.data={oneofKind:`deletedFlowId`,deletedFlowId:r.int64().toBigInt()};break;case 3:s.data={oneofKind:`flows`,flows:n.i.internalBinaryRead(r,r.uint32(),a,s.data.flows)};break;case 4:s.data={oneofKind:`moduleConfigurations`,moduleConfigurations:t.c.internalBinaryRead(r,r.uint32(),a,s.data.moduleConfigurations)};break;default:let c=a.readUnknownField;if(c===`throw`)throw new globalThis.Error(`Unknown field ${i} (wire type ${o}) for ${this.typeName}`);let l=r.skip(o);c!==!1&&(c===!0?e.S.onRead:c)(this.typeName,s,i,o,l)}}return s}internalBinaryWrite(r,i,a){r.data.oneofKind===`updatedFlow`&&n.m.internalBinaryWrite(r.data.updatedFlow,i.tag(1,e.C.LengthDelimited).fork(),a).join(),r.data.oneofKind===`deletedFlowId`&&i.tag(2,e.C.Varint).int64(r.data.deletedFlowId),r.data.oneofKind===`flows`&&n.i.internalBinaryWrite(r.data.flows,i.tag(3,e.C.LengthDelimited).fork(),a).join(),r.data.oneofKind===`moduleConfigurations`&&t.c.internalBinaryWrite(r.data.moduleConfigurations,i.tag(4,e.C.LengthDelimited).fork(),a).join();let o=a.writeUnknownFields;return o!==!1&&(o==1?e.S.onWrite:o)(this.typeName,r,i),i}},o=new r.n(`sagittarius.FlowService`,[{name:`Update`,serverStreaming:!0,options:{},I:i,O:a}]),s=class{constructor(e){this._transport=e,this.typeName=o.typeName,this.methods=o.methods,this.options=o.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`serverStreaming`,this._transport,n,i,e)}},c=new class extends e.v{constructor(){super(`sagittarius.ModuleUpdateRequest`,[{no:1,name:`modules`,kind:`message`,repeat:2,T:()=>t.a}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.modules=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.modules.push(t.a.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.modules.length;a++)t.a.internalBinaryWrite(n.modules[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},l=new class extends e.v{constructor(){super(`sagittarius.ModuleUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.x}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.x.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.x.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},u=new r.n(`sagittarius.ModuleService`,[{name:`Update`,options:{},I:c,O:l}]),d=class{constructor(e){this._transport=e,this.typeName=u.typeName,this.methods=u.methods,this.options=u.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},f=new class extends e.v{constructor(){super(`sagittarius.PingMessage`,[{no:1,name:`ping_id`,kind:`scalar`,T:3,L:0}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.pingId=0n,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.pingId=t.int64().toBigInt();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.pingId!==0n&&n.tag(1,e.C.Varint).int64(t.pingId);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},p=new r.n(`sagittarius.PingService`,[{name:`Ping`,options:{},I:f,O:f}]),m=class{constructor(e){this._transport=e,this.typeName=p.typeName,this.methods=p.methods,this.options=p.options}ping(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},h=new class extends e.v{constructor(){super(`sagittarius.RuntimeStatusUpdateRequest`,[{no:1,name:`status`,kind:`message`,T:()=>t.n}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.status=t.n.internalBinaryRead(n,n.uint32(),i,o.status);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.status&&t.n.internalBinaryWrite(n.status,r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},g=new class extends e.v{constructor(){super(`sagittarius.RuntimeStatusUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.x}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.x.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.x.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},_=new r.n(`sagittarius.RuntimeStatusService`,[{name:`Update`,options:{},I:h,O:g}]),v=class{constructor(e){this._transport=e,this.typeName=_.typeName,this.methods=_.methods,this.options=_.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},y=new class extends e.v{constructor(){super(`sagittarius.RuntimeUsageRequest`,[{no:1,name:`runtime_usage`,kind:`message`,repeat:2,T:()=>t.t}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.runtimeUsage=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.runtimeUsage.push(t.t.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.runtimeUsage.length;a++)t.t.internalBinaryWrite(n.runtimeUsage[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},b=new class extends e.v{constructor(){super(`sagittarius.RuntimeUsageResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.x}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.x.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.x.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},x=new r.n(`sagittarius.RuntimeUsageService`,[{name:`Update`,options:{},I:y,O:b}]),S=class{constructor(e){this._transport=e,this.typeName=x.typeName,this.methods=x.methods,this.options=x.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},C=new class extends e.v{constructor(){super(`sagittarius.Logon`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},w=new class extends e.v{constructor(){super(`sagittarius.TestExecutionRequest`,[{no:1,name:`flow_id`,kind:`scalar`,T:3,L:0},{no:2,name:`execution_identifier`,kind:`scalar`,T:9},{no:3,name:`body`,kind:`message`,T:()=>e.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.flowId=0n,n.executionIdentifier=``,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.flowId=t.int64().toBigInt();break;case 2:a.executionIdentifier=t.string();break;case 3:a.body=e.u.internalBinaryRead(t,t.uint32(),r,a.body);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.flowId!==0n&&n.tag(1,e.C.Varint).int64(t.flowId),t.executionIdentifier!==``&&n.tag(2,e.C.LengthDelimited).string(t.executionIdentifier),t.body&&e.u.internalBinaryWrite(t.body,n.tag(3,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},T=new class extends e.v{constructor(){super(`sagittarius.ExecutionLogonRequest`,[{no:1,name:`logon`,kind:`message`,oneof:`data`,T:()=>C},{no:2,name:`response`,kind:`message`,oneof:`data`,T:()=>t.g}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.data={oneofKind:`logon`,logon:C.internalBinaryRead(n,n.uint32(),i,o.data.logon)};break;case 2:o.data={oneofKind:`response`,response:t.g.internalBinaryRead(n,n.uint32(),i,o.data.response)};break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.data.oneofKind===`logon`&&C.internalBinaryWrite(n.data.logon,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.data.oneofKind===`response`&&t.g.internalBinaryWrite(n.data.response,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},E=new class extends e.v{constructor(){super(`sagittarius.ExecutionLogonResponse`,[{no:1,name:`request`,kind:`message`,T:()=>w}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.request=w.internalBinaryRead(t,t.uint32(),r,a.request);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.request&&w.internalBinaryWrite(t.request,n.tag(1,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},D=new r.n(`sagittarius.ExecutionService`,[{name:`Test`,serverStreaming:!0,clientStreaming:!0,options:{},I:T,O:E}]),O=class{constructor(e){this._transport=e,this.typeName=D.typeName,this.methods=D.methods,this.options=D.options}test(e){let t=this.methods[0],n=this._transport.mergeOptions(e);return r.t(`duplex`,this._transport,t,n)}};exports.ExecutionLogonRequest=T,exports.ExecutionLogonResponse=E,exports.ExecutionService=D,exports.ExecutionServiceClient=O,exports.FlowLogonRequest=i,exports.FlowResponse=a,exports.FlowService=o,exports.FlowServiceClient=s,exports.Logon=C,exports.ModuleService=u,exports.ModuleServiceClient=d,exports.ModuleUpdateRequest=c,exports.ModuleUpdateResponse=l,exports.PingMessage=f,exports.PingService=p,exports.PingServiceClient=m,exports.RuntimeStatusService=_,exports.RuntimeStatusServiceClient=v,exports.RuntimeStatusUpdateRequest=h,exports.RuntimeStatusUpdateResponse=g,exports.RuntimeUsageRequest=y,exports.RuntimeUsageResponse=b,exports.RuntimeUsageService=x,exports.RuntimeUsageServiceClient=S,exports.TestExecutionRequest=w;