@code0-tech/tucana 0.0.70 → 0.0.71
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.
- package/dist/aquila.cjs.js +1 -1
- package/dist/aquila.es.js +177 -176
- package/dist/pb/_generated/shared.flow_pb.d.ts +41 -6
- package/dist/pb/_generated/velorum.generate_pb.client.d.ts +35 -0
- package/dist/pb/_generated/velorum.generate_pb.d.ts +103 -0
- package/dist/pb/_generated/velorum.info_pb.client.d.ts +27 -0
- package/dist/pb/_generated/velorum.info_pb.d.ts +85 -0
- package/dist/pb/velorum.d.ts +4 -0
- package/dist/{rpc-interceptor-DpAjfIVk.js → rpc-interceptor-Bq56L_Jg.js} +1 -1
- package/dist/rpc-interceptor-CRhk15Dz.cjs +1 -0
- package/dist/sagittarius.cjs.js +1 -1
- package/dist/sagittarius.es.js +165 -164
- package/dist/shared.cjs.js +1 -1
- package/dist/shared.es.js +4 -3
- package/dist/shared.flow_pb-BNS2UoJj.cjs +1 -0
- package/dist/shared.flow_pb-BV09VLFs.js +957 -0
- package/dist/shared.function_pb-B9l5kdQt.cjs +2 -0
- package/dist/shared.function_pb-CMAwFz4S.js +2383 -0
- package/dist/shared.runtime_usage_pb-BwOAdgPp.js +2051 -0
- package/dist/shared.runtime_usage_pb-CVahFg9u.cjs +1 -0
- package/dist/velorum.cjs.js +1 -0
- package/dist/velorum.d.ts +2 -0
- package/dist/velorum.es.js +364 -0
- package/package.json +9 -3
- package/dist/rpc-interceptor-4ZNqeHp7.cjs +0 -1
- package/dist/shared.flow_pb-CAu-uZAs.cjs +0 -1
- package/dist/shared.flow_pb-YdrVU_yH.js +0 -877
- package/dist/shared.runtime_usage_pb-6pp995qK.cjs +0 -2
- package/dist/shared.runtime_usage_pb-Qa9pCiee.js +0 -4430
|
@@ -79,6 +79,31 @@ export interface ExecutionFlow {
|
|
|
79
79
|
*/
|
|
80
80
|
inputValue?: Value;
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf message shared.GenerationFlow
|
|
84
|
+
*/
|
|
85
|
+
export interface GenerationFlow {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: string name = 1
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf field: string type = 2
|
|
92
|
+
*/
|
|
93
|
+
type: string;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf field: string starting_node_id = 3
|
|
96
|
+
*/
|
|
97
|
+
startingNodeId: string;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: repeated shared.NodeFunction node_functions = 4
|
|
100
|
+
*/
|
|
101
|
+
nodeFunctions: NodeFunction[];
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf field: repeated shared.FlowSetting settings = 5
|
|
104
|
+
*/
|
|
105
|
+
settings: FlowSetting[];
|
|
106
|
+
}
|
|
82
107
|
/**
|
|
83
108
|
* @generated from protobuf message shared.FlowSetting
|
|
84
109
|
*/
|
|
@@ -86,9 +111,9 @@ export interface FlowSetting {
|
|
|
86
111
|
/**
|
|
87
112
|
* The database id from sagittarius
|
|
88
113
|
*
|
|
89
|
-
* @generated from protobuf field: int64 database_id = 1
|
|
114
|
+
* @generated from protobuf field: optional int64 database_id = 1
|
|
90
115
|
*/
|
|
91
|
-
databaseId
|
|
116
|
+
databaseId?: bigint;
|
|
92
117
|
/**
|
|
93
118
|
* @generated from protobuf field: string flow_setting_id = 2
|
|
94
119
|
*/
|
|
@@ -109,9 +134,9 @@ export interface NodeFunction {
|
|
|
109
134
|
/**
|
|
110
135
|
* The database id from sagittarius
|
|
111
136
|
*
|
|
112
|
-
* @generated from protobuf field: int64 database_id = 1
|
|
137
|
+
* @generated from protobuf field: optional int64 database_id = 1
|
|
113
138
|
*/
|
|
114
|
-
databaseId
|
|
139
|
+
databaseId?: bigint;
|
|
115
140
|
/**
|
|
116
141
|
* @generated from protobuf field: string runtime_function_id = 2
|
|
117
142
|
*/
|
|
@@ -125,9 +150,9 @@ export interface NodeFunction {
|
|
|
125
150
|
*/
|
|
126
151
|
nextNodeId?: bigint;
|
|
127
152
|
/**
|
|
128
|
-
* @generated from protobuf field: string definition_source = 5
|
|
153
|
+
* @generated from protobuf field: optional string definition_source = 5
|
|
129
154
|
*/
|
|
130
|
-
definitionSource
|
|
155
|
+
definitionSource?: string;
|
|
131
156
|
}
|
|
132
157
|
/**
|
|
133
158
|
* @generated from protobuf message shared.NodeValue
|
|
@@ -345,6 +370,16 @@ declare class ExecutionFlow$Type extends MessageType<ExecutionFlow> {
|
|
|
345
370
|
* @generated MessageType for protobuf message shared.ExecutionFlow
|
|
346
371
|
*/
|
|
347
372
|
export declare const ExecutionFlow: ExecutionFlow$Type;
|
|
373
|
+
declare class GenerationFlow$Type extends MessageType<GenerationFlow> {
|
|
374
|
+
constructor();
|
|
375
|
+
create(value?: PartialMessage<GenerationFlow>): GenerationFlow;
|
|
376
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenerationFlow): GenerationFlow;
|
|
377
|
+
internalBinaryWrite(message: GenerationFlow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @generated MessageType for protobuf message shared.GenerationFlow
|
|
381
|
+
*/
|
|
382
|
+
export declare const GenerationFlow: GenerationFlow$Type;
|
|
348
383
|
declare class FlowSetting$Type extends MessageType<FlowSetting> {
|
|
349
384
|
constructor();
|
|
350
385
|
create(value?: PartialMessage<FlowSetting>): FlowSetting;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { FlowRequest, FlowResponse, PromptRequest } from './velorum.generate_pb';
|
|
3
|
+
/**
|
|
4
|
+
* @generated from protobuf service velorum.GenerateService
|
|
5
|
+
*/
|
|
6
|
+
export interface IGenerateServiceClient {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from protobuf rpc: Prompt
|
|
9
|
+
*/
|
|
10
|
+
prompt(input: PromptRequest, options?: RpcOptions): UnaryCall<PromptRequest, FlowResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf rpc: Flow
|
|
13
|
+
*/
|
|
14
|
+
flow(input: FlowRequest, options?: RpcOptions): UnaryCall<FlowRequest, FlowResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf service velorum.GenerateService
|
|
18
|
+
*/
|
|
19
|
+
export declare class GenerateServiceClient implements IGenerateServiceClient, ServiceInfo {
|
|
20
|
+
private readonly _transport;
|
|
21
|
+
typeName: string;
|
|
22
|
+
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
23
|
+
options: {
|
|
24
|
+
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
25
|
+
};
|
|
26
|
+
constructor(_transport: RpcTransport);
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf rpc: Prompt
|
|
29
|
+
*/
|
|
30
|
+
prompt(input: PromptRequest, options?: RpcOptions): UnaryCall<PromptRequest, FlowResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf rpc: Flow
|
|
33
|
+
*/
|
|
34
|
+
flow(input: FlowRequest, options?: RpcOptions): UnaryCall<FlowRequest, FlowResponse>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
|
|
3
|
+
import { GenerationFlow } from './shared.flow_pb';
|
|
4
|
+
import { DefinitionDataType } from './shared.data_type_pb';
|
|
5
|
+
import { FunctionDefinition } from './shared.function_pb';
|
|
6
|
+
/**
|
|
7
|
+
* @generated from protobuf message velorum.PromptRequest
|
|
8
|
+
*/
|
|
9
|
+
export interface PromptRequest {
|
|
10
|
+
/**
|
|
11
|
+
* @generated from protobuf field: string prompt = 1
|
|
12
|
+
*/
|
|
13
|
+
prompt: string;
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf field: int64 project_id = 2
|
|
16
|
+
*/
|
|
17
|
+
projectId: bigint;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: repeated shared.FunctionDefinition functions = 3
|
|
20
|
+
*/
|
|
21
|
+
functions: FunctionDefinition[];
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: repeated shared.DefinitionDataType data_types = 4
|
|
24
|
+
*/
|
|
25
|
+
dataTypes: DefinitionDataType[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf message velorum.FlowRequest
|
|
29
|
+
*/
|
|
30
|
+
export interface FlowRequest {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: string prompt = 1
|
|
33
|
+
*/
|
|
34
|
+
prompt: string;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: shared.GenerationFlow flow = 2
|
|
37
|
+
*/
|
|
38
|
+
flow?: GenerationFlow;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: int64 project_id = 3
|
|
41
|
+
*/
|
|
42
|
+
projectId: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: repeated shared.FunctionDefinition functions = 4
|
|
45
|
+
*/
|
|
46
|
+
functions: FunctionDefinition[];
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: repeated shared.DefinitionDataType data_types = 5
|
|
49
|
+
*/
|
|
50
|
+
dataTypes: DefinitionDataType[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf message velorum.FlowResponse
|
|
54
|
+
*/
|
|
55
|
+
export interface FlowResponse {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: shared.GenerationFlow flow = 1
|
|
58
|
+
*/
|
|
59
|
+
flow?: GenerationFlow;
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf field: int64 cached_until = 2
|
|
62
|
+
*/
|
|
63
|
+
cachedUntil: bigint;
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf field: int64 usage = 3
|
|
66
|
+
*/
|
|
67
|
+
usage: bigint;
|
|
68
|
+
}
|
|
69
|
+
declare class PromptRequest$Type extends MessageType<PromptRequest> {
|
|
70
|
+
constructor();
|
|
71
|
+
create(value?: PartialMessage<PromptRequest>): PromptRequest;
|
|
72
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PromptRequest): PromptRequest;
|
|
73
|
+
internalBinaryWrite(message: PromptRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @generated MessageType for protobuf message velorum.PromptRequest
|
|
77
|
+
*/
|
|
78
|
+
export declare const PromptRequest: PromptRequest$Type;
|
|
79
|
+
declare class FlowRequest$Type extends MessageType<FlowRequest> {
|
|
80
|
+
constructor();
|
|
81
|
+
create(value?: PartialMessage<FlowRequest>): FlowRequest;
|
|
82
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowRequest): FlowRequest;
|
|
83
|
+
internalBinaryWrite(message: FlowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @generated MessageType for protobuf message velorum.FlowRequest
|
|
87
|
+
*/
|
|
88
|
+
export declare const FlowRequest: FlowRequest$Type;
|
|
89
|
+
declare class FlowResponse$Type extends MessageType<FlowResponse> {
|
|
90
|
+
constructor();
|
|
91
|
+
create(value?: PartialMessage<FlowResponse>): FlowResponse;
|
|
92
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowResponse): FlowResponse;
|
|
93
|
+
internalBinaryWrite(message: FlowResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @generated MessageType for protobuf message velorum.FlowResponse
|
|
97
|
+
*/
|
|
98
|
+
export declare const FlowResponse: FlowResponse$Type;
|
|
99
|
+
/**
|
|
100
|
+
* @generated ServiceType for protobuf service velorum.GenerateService
|
|
101
|
+
*/
|
|
102
|
+
export declare const GenerateService: ServiceType;
|
|
103
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { ModelsResponse, ModelsRequest } from './velorum.info_pb';
|
|
3
|
+
/**
|
|
4
|
+
* @generated from protobuf service velorum.InfoService
|
|
5
|
+
*/
|
|
6
|
+
export interface IInfoServiceClient {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from protobuf rpc: Models
|
|
9
|
+
*/
|
|
10
|
+
models(input: ModelsRequest, options?: RpcOptions): UnaryCall<ModelsRequest, ModelsResponse>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf service velorum.InfoService
|
|
14
|
+
*/
|
|
15
|
+
export declare class InfoServiceClient implements IInfoServiceClient, ServiceInfo {
|
|
16
|
+
private readonly _transport;
|
|
17
|
+
typeName: string;
|
|
18
|
+
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
19
|
+
options: {
|
|
20
|
+
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
21
|
+
};
|
|
22
|
+
constructor(_transport: RpcTransport);
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf rpc: Models
|
|
25
|
+
*/
|
|
26
|
+
models(input: ModelsRequest, options?: RpcOptions): UnaryCall<ModelsRequest, ModelsResponse>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
|
|
3
|
+
/**
|
|
4
|
+
* @generated from protobuf message velorum.ModelsRequest
|
|
5
|
+
*/
|
|
6
|
+
export interface ModelsRequest {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf message velorum.Model
|
|
10
|
+
*/
|
|
11
|
+
export interface Model {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf field: string name = 1
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf field: float token_cost = 2
|
|
18
|
+
*/
|
|
19
|
+
tokenCost: number;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: velorum.Model.ModelType type = 3
|
|
22
|
+
*/
|
|
23
|
+
type: Model_ModelType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf enum velorum.Model.ModelType
|
|
27
|
+
*/
|
|
28
|
+
export declare enum Model_ModelType {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
31
|
+
*/
|
|
32
|
+
UNKNOWN = 0,
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf enum value: EXPLAIN = 1;
|
|
35
|
+
*/
|
|
36
|
+
EXPLAIN = 1,
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf enum value: GENERATE = 2;
|
|
39
|
+
*/
|
|
40
|
+
GENERATE = 2
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf message velorum.ModelsResponse
|
|
44
|
+
*/
|
|
45
|
+
export interface ModelsResponse {
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf field: repeated velorum.Model models = 1
|
|
48
|
+
*/
|
|
49
|
+
models: Model[];
|
|
50
|
+
}
|
|
51
|
+
declare class ModelsRequest$Type extends MessageType<ModelsRequest> {
|
|
52
|
+
constructor();
|
|
53
|
+
create(value?: PartialMessage<ModelsRequest>): ModelsRequest;
|
|
54
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelsRequest): ModelsRequest;
|
|
55
|
+
internalBinaryWrite(message: ModelsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @generated MessageType for protobuf message velorum.ModelsRequest
|
|
59
|
+
*/
|
|
60
|
+
export declare const ModelsRequest: ModelsRequest$Type;
|
|
61
|
+
declare class Model$Type extends MessageType<Model> {
|
|
62
|
+
constructor();
|
|
63
|
+
create(value?: PartialMessage<Model>): Model;
|
|
64
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Model): Model;
|
|
65
|
+
internalBinaryWrite(message: Model, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @generated MessageType for protobuf message velorum.Model
|
|
69
|
+
*/
|
|
70
|
+
export declare const Model: Model$Type;
|
|
71
|
+
declare class ModelsResponse$Type extends MessageType<ModelsResponse> {
|
|
72
|
+
constructor();
|
|
73
|
+
create(value?: PartialMessage<ModelsResponse>): ModelsResponse;
|
|
74
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelsResponse): ModelsResponse;
|
|
75
|
+
internalBinaryWrite(message: ModelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @generated MessageType for protobuf message velorum.ModelsResponse
|
|
79
|
+
*/
|
|
80
|
+
export declare const ModelsResponse: ModelsResponse$Type;
|
|
81
|
+
/**
|
|
82
|
+
* @generated ServiceType for protobuf service velorum.InfoService
|
|
83
|
+
*/
|
|
84
|
+
export declare const InfoService: ServiceType;
|
|
85
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./shared.function_pb-B9l5kdQt.cjs`);function t(t,n){let r=t;return r.service=n,r.localName=r.localName??e._(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}var n=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t(e,this)),this.options=r??{}}};function r(t,n,r,i,a){if(t==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(t==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(t==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(t==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}e.v(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
package/dist/sagittarius.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shared.runtime_usage_pb-6pp995qK.cjs`),t=require(`./shared.flow_pb-CAu-uZAs.cjs`),n=require(`./rpc-interceptor-4ZNqeHp7.cjs`);var r=new class extends e.W{constructor(){super(`sagittarius.FlowLogonRequest`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.G(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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},i=new class extends e.W{constructor(){super(`sagittarius.FlowResponse`,[{no:1,name:`updated_flow`,kind:`message`,oneof:`data`,T:()=>t.p},{no:2,name:`deleted_flow_id`,kind:`scalar`,oneof:`data`,T:3,L:0},{no:3,name:`flows`,kind:`message`,oneof:`data`,T:()=>t.i},{no:4,name:`module_configurations`,kind:`message`,oneof:`data`,T:()=>e.p}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.G(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:`updatedFlow`,updatedFlow:t.p.internalBinaryRead(n,n.uint32(),i,o.data.updatedFlow)};break;case 2:o.data={oneofKind:`deletedFlowId`,deletedFlowId:n.int64().toBigInt()};break;case 3:o.data={oneofKind:`flows`,flows:t.i.internalBinaryRead(n,n.uint32(),i,o.data.flows)};break;case 4:o.data={oneofKind:`moduleConfigurations`,moduleConfigurations:e.p.internalBinaryRead(n,n.uint32(),i,o.data.moduleConfigurations)};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.J.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.data.oneofKind===`updatedFlow`&&t.p.internalBinaryWrite(n.data.updatedFlow,r.tag(1,e.Y.LengthDelimited).fork(),i).join(),n.data.oneofKind===`deletedFlowId`&&r.tag(2,e.Y.Varint).int64(n.data.deletedFlowId),n.data.oneofKind===`flows`&&t.i.internalBinaryWrite(n.data.flows,r.tag(3,e.Y.LengthDelimited).fork(),i).join(),n.data.oneofKind===`moduleConfigurations`&&e.p.internalBinaryWrite(n.data.moduleConfigurations,r.tag(4,e.Y.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.J.onWrite:a)(this.typeName,n,r),r}},a=new n.n(`sagittarius.FlowService`,[{name:`Update`,serverStreaming:!0,options:{},I:r,O:i}]),o=class{constructor(e){this._transport=e,this.typeName=a.typeName,this.methods=a.methods,this.options=a.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`serverStreaming`,this._transport,r,i,e)}},s=new class extends e.W{constructor(){super(`sagittarius.ModuleUpdateRequest`,[{no:1,name:`modules`,kind:`message`,repeat:2,T:()=>e.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.modules=[],t!==void 0&&e.G(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.modules.push(e.u.internalBinaryRead(t,t.uint32(),r));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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){for(let i=0;i<t.modules.length;i++)e.u.internalBinaryWrite(t.modules[i],n.tag(1,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},c=new class extends e.W{constructor(){super(`sagittarius.ModuleUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>e.A}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.G(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.success=t.bool();break;case 2:a.error=e.A.internalBinaryRead(t,t.uint32(),r,a.error);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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.Y.Varint).bool(t.success),t.error&&e.A.internalBinaryWrite(t.error,n.tag(2,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},l=new n.n(`sagittarius.ModuleService`,[{name:`Update`,options:{},I:s,O:c}]),u=class{constructor(e){this._transport=e,this.typeName=l.typeName,this.methods=l.methods,this.options=l.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},d=new class extends e.W{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.G(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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.pingId!==0n&&n.tag(1,e.Y.Varint).int64(t.pingId);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},f=new n.n(`sagittarius.PingService`,[{name:`Ping`,options:{},I:d,O:d}]),p=class{constructor(e){this._transport=e,this.typeName=f.typeName,this.methods=f.methods,this.options=f.options}ping(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},m=new class extends e.W{constructor(){super(`sagittarius.RuntimeStatusUpdateRequest`,[{no:1,name:`adapter_runtime_status`,kind:`message`,oneof:`status`,T:()=>e.a},{no:2,name:`execution_runtime_status`,kind:`message`,oneof:`status`,T:()=>e.c},{no:3,name:`action_status`,kind:`message`,oneof:`status`,T:()=>e.n}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.status={oneofKind:void 0},t!==void 0&&e.G(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.status={oneofKind:`adapterRuntimeStatus`,adapterRuntimeStatus:e.a.internalBinaryRead(t,t.uint32(),r,a.status.adapterRuntimeStatus)};break;case 2:a.status={oneofKind:`executionRuntimeStatus`,executionRuntimeStatus:e.c.internalBinaryRead(t,t.uint32(),r,a.status.executionRuntimeStatus)};break;case 3:a.status={oneofKind:`actionStatus`,actionStatus:e.n.internalBinaryRead(t,t.uint32(),r,a.status.actionStatus)};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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.status.oneofKind===`adapterRuntimeStatus`&&e.a.internalBinaryWrite(t.status.adapterRuntimeStatus,n.tag(1,e.Y.LengthDelimited).fork(),r).join(),t.status.oneofKind===`executionRuntimeStatus`&&e.c.internalBinaryWrite(t.status.executionRuntimeStatus,n.tag(2,e.Y.LengthDelimited).fork(),r).join(),t.status.oneofKind===`actionStatus`&&e.n.internalBinaryWrite(t.status.actionStatus,n.tag(3,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},h=new class extends e.W{constructor(){super(`sagittarius.RuntimeStatusUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>e.A}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.G(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.success=t.bool();break;case 2:a.error=e.A.internalBinaryRead(t,t.uint32(),r,a.error);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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.Y.Varint).bool(t.success),t.error&&e.A.internalBinaryWrite(t.error,n.tag(2,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},g=new n.n(`sagittarius.RuntimeStatusService`,[{name:`Update`,options:{},I:m,O:h}]),_=class{constructor(e){this._transport=e,this.typeName=g.typeName,this.methods=g.methods,this.options=g.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},v=new class extends e.W{constructor(){super(`sagittarius.RuntimeUsageRequest`,[{no:1,name:`runtime_usage`,kind:`message`,repeat:2,T:()=>e.t}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.runtimeUsage=[],t!==void 0&&e.G(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.runtimeUsage.push(e.t.internalBinaryRead(t,t.uint32(),r));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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){for(let i=0;i<t.runtimeUsage.length;i++)e.t.internalBinaryWrite(t.runtimeUsage[i],n.tag(1,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},y=new class extends e.W{constructor(){super(`sagittarius.RuntimeUsageResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>e.A}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.G(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.success=t.bool();break;case 2:a.error=e.A.internalBinaryRead(t,t.uint32(),r,a.error);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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.Y.Varint).bool(t.success),t.error&&e.A.internalBinaryWrite(t.error,n.tag(2,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},b=new n.n(`sagittarius.RuntimeUsageService`,[{name:`Update`,options:{},I:v,O:y}]),x=class{constructor(e){this._transport=e,this.typeName=b.typeName,this.methods=b.methods,this.options=b.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},S=new class extends e.W{constructor(){super(`sagittarius.Logon`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.G(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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},C=new class extends e.W{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.I}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.flowId=0n,n.executionIdentifier=``,t!==void 0&&e.G(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.I.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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.flowId!==0n&&n.tag(1,e.Y.Varint).int64(t.flowId),t.executionIdentifier!==``&&n.tag(2,e.Y.LengthDelimited).string(t.executionIdentifier),t.body&&e.I.internalBinaryWrite(t.body,n.tag(3,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},w=new class extends e.W{constructor(){super(`sagittarius.ExecutionLogonRequest`,[{no:1,name:`logon`,kind:`message`,oneof:`data`,T:()=>S},{no:2,name:`response`,kind:`message`,oneof:`data`,T:()=>e.T}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.G(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.data={oneofKind:`logon`,logon:S.internalBinaryRead(t,t.uint32(),r,a.data.logon)};break;case 2:a.data={oneofKind:`response`,response:e.T.internalBinaryRead(t,t.uint32(),r,a.data.response)};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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.data.oneofKind===`logon`&&S.internalBinaryWrite(t.data.logon,n.tag(1,e.Y.LengthDelimited).fork(),r).join(),t.data.oneofKind===`response`&&e.T.internalBinaryWrite(t.data.response,n.tag(2,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},T=new class extends e.W{constructor(){super(`sagittarius.ExecutionLogonResponse`,[{no:1,name:`request`,kind:`message`,T:()=>C}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.G(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=C.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.J.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.request&&C.internalBinaryWrite(t.request,n.tag(1,e.Y.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.J.onWrite:i)(this.typeName,t,n),n}},E=new n.n(`sagittarius.ExecutionService`,[{name:`Test`,serverStreaming:!0,clientStreaming:!0,options:{},I:w,O:T}]),D=class{constructor(e){this._transport=e,this.typeName=E.typeName,this.methods=E.methods,this.options=E.options}test(e){let t=this.methods[0],r=this._transport.mergeOptions(e);return n.t(`duplex`,this._transport,t,r)}};exports.ExecutionLogonRequest=w,exports.ExecutionLogonResponse=T,exports.ExecutionService=E,exports.ExecutionServiceClient=D,exports.FlowLogonRequest=r,exports.FlowResponse=i,exports.FlowService=a,exports.FlowServiceClient=o,exports.Logon=S,exports.ModuleService=l,exports.ModuleServiceClient=u,exports.ModuleUpdateRequest=s,exports.ModuleUpdateResponse=c,exports.PingMessage=d,exports.PingService=f,exports.PingServiceClient=p,exports.RuntimeStatusService=g,exports.RuntimeStatusServiceClient=_,exports.RuntimeStatusUpdateRequest=m,exports.RuntimeStatusUpdateResponse=h,exports.RuntimeUsageRequest=v,exports.RuntimeUsageResponse=y,exports.RuntimeUsageService=b,exports.RuntimeUsageServiceClient=x,exports.TestExecutionRequest=C;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shared.function_pb-B9l5kdQt.cjs`),t=require(`./shared.runtime_usage_pb-CVahFg9u.cjs`),n=require(`./shared.flow_pb-BNS2UoJj.cjs`),r=require(`./rpc-interceptor-CRhk15Dz.cjs`);var i=new class extends e.h{constructor(){super(`sagittarius.FlowLogonRequest`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.g(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.y.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.y.onWrite:i)(this.typeName,t,n),n}},a=new class extends e.h{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.g(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.y.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.b.LengthDelimited).fork(),a).join(),r.data.oneofKind===`deletedFlowId`&&i.tag(2,e.b.Varint).int64(r.data.deletedFlowId),r.data.oneofKind===`flows`&&n.i.internalBinaryWrite(r.data.flows,i.tag(3,e.b.LengthDelimited).fork(),a).join(),r.data.oneofKind===`moduleConfigurations`&&t.p.internalBinaryWrite(r.data.moduleConfigurations,i.tag(4,e.b.LengthDelimited).fork(),a).join();let o=a.writeUnknownFields;return o!==!1&&(o==1?e.y.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.h{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.g(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.y.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.b.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.y.onWrite:a)(this.typeName,n,r),r}},l=new class extends e.h{constructor(){super(`sagittarius.ModuleUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.O}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.g(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.O.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.y.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.b.Varint).bool(n.success),n.error&&t.O.internalBinaryWrite(n.error,r.tag(2,e.b.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.y.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.h{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.g(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.y.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.pingId!==0n&&n.tag(1,e.b.Varint).int64(t.pingId);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.y.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.h{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.g(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.y.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.b.LengthDelimited).fork(),i).join(),n.status.oneofKind===`executionRuntimeStatus`&&t.c.internalBinaryWrite(n.status.executionRuntimeStatus,r.tag(2,e.b.LengthDelimited).fork(),i).join(),n.status.oneofKind===`actionStatus`&&t.n.internalBinaryWrite(n.status.actionStatus,r.tag(3,e.b.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.y.onWrite:a)(this.typeName,n,r),r}},g=new class extends e.h{constructor(){super(`sagittarius.RuntimeStatusUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.O}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.g(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.O.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.y.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.b.Varint).bool(n.success),n.error&&t.O.internalBinaryWrite(n.error,r.tag(2,e.b.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.y.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.h{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.g(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.y.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.b.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.y.onWrite:a)(this.typeName,n,r),r}},b=new class extends e.h{constructor(){super(`sagittarius.RuntimeUsageResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.O}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.g(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.O.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.y.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.b.Varint).bool(n.success),n.error&&t.O.internalBinaryWrite(n.error,r.tag(2,e.b.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.y.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.h{constructor(){super(`sagittarius.Logon`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.g(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.y.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.y.onWrite:i)(this.typeName,t,n),n}},w=new class extends e.h{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.s}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.flowId=0n,n.executionIdentifier=``,t!==void 0&&e.g(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.s.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.y.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.flowId!==0n&&n.tag(1,e.b.Varint).int64(t.flowId),t.executionIdentifier!==``&&n.tag(2,e.b.LengthDelimited).string(t.executionIdentifier),t.body&&e.s.internalBinaryWrite(t.body,n.tag(3,e.b.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.y.onWrite:i)(this.typeName,t,n),n}},T=new class extends e.h{constructor(){super(`sagittarius.ExecutionLogonRequest`,[{no:1,name:`logon`,kind:`message`,oneof:`data`,T:()=>C},{no:2,name:`response`,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.g(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.C.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.y.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.b.LengthDelimited).fork(),i).join(),n.data.oneofKind===`response`&&t.C.internalBinaryWrite(n.data.response,r.tag(2,e.b.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.y.onWrite:a)(this.typeName,n,r),r}},E=new class extends e.h{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.g(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.y.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.request&&w.internalBinaryWrite(t.request,n.tag(1,e.b.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.y.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;
|