@code0-tech/tucana 0.0.49 → 0.0.51
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/package.json +1 -1
- package/pb/aquila.action_pb.d.ts +14 -8
- package/pb/aquila.action_pb.js +33 -17
- package/pb/aquila.runtime_status_pb.client.d.ts +32 -0
- package/pb/aquila.runtime_status_pb.client.js +23 -0
- package/pb/aquila.runtime_status_pb.d.ts +68 -0
- package/pb/aquila.runtime_status_pb.js +126 -0
- package/pb/sagittarius.runtime_status_pb.client.d.ts +32 -0
- package/pb/sagittarius.runtime_status_pb.client.js +23 -0
- package/pb/sagittarius.runtime_status_pb.d.ts +68 -0
- package/pb/sagittarius.runtime_status_pb.js +126 -0
- package/pb/sagittarius.text_execution_pb.d.ts +101 -0
- package/pb/sagittarius.text_execution_pb.js +213 -2
- package/pb/shared.data_type_pb.d.ts +6 -0
- package/pb/shared.data_type_pb.js +8 -1
- package/pb/shared.flow_definition_pb.d.ts +29 -2
- package/pb/shared.flow_definition_pb.js +41 -8
- package/pb/shared.flow_pb.d.ts +9 -0
- package/pb/shared.flow_pb.js +8 -1
- package/pb/shared.runtime_function_pb.d.ts +10 -0
- package/pb/shared.runtime_function_pb.js +16 -1
- package/pb/shared.runtime_status_pb.d.ts +177 -0
- package/pb/shared.runtime_status_pb.js +315 -0
- package/pb/shared.event_pb.d.ts +0 -120
- package/pb/shared.event_pb.js +0 -203
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "shared.runtime_status.proto" (package "shared", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
import { Translation } from "./shared.translation_pb";
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf message shared.AdapterConfiguration
|
|
13
|
+
*/
|
|
14
|
+
export interface AdapterConfiguration {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf oneof: data
|
|
17
|
+
*/
|
|
18
|
+
data: {
|
|
19
|
+
oneofKind: "endpoint";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: string endpoint = 1
|
|
22
|
+
*/
|
|
23
|
+
endpoint: string;
|
|
24
|
+
} | {
|
|
25
|
+
oneofKind: undefined;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf message shared.RuntimeFeature
|
|
30
|
+
*/
|
|
31
|
+
export interface RuntimeFeature {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: repeated shared.Translation name = 1
|
|
34
|
+
*/
|
|
35
|
+
name: Translation[];
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: repeated shared.Translation description = 2
|
|
38
|
+
*/
|
|
39
|
+
description: Translation[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf message shared.AdapterRuntimeStatus
|
|
43
|
+
*/
|
|
44
|
+
export interface AdapterRuntimeStatus {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: shared.AdapterRuntimeStatus.Status status = 1
|
|
47
|
+
*/
|
|
48
|
+
status: AdapterRuntimeStatus_Status;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: int64 timestamp = 2
|
|
51
|
+
*/
|
|
52
|
+
timestamp: bigint;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: string identifier = 3
|
|
55
|
+
*/
|
|
56
|
+
identifier: string;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf field: repeated shared.RuntimeFeature features = 4
|
|
59
|
+
*/
|
|
60
|
+
features: RuntimeFeature[];
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf field: repeated shared.AdapterConfiguration configurations = 5
|
|
63
|
+
*/
|
|
64
|
+
configurations: AdapterConfiguration[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf enum shared.AdapterRuntimeStatus.Status
|
|
68
|
+
*/
|
|
69
|
+
export declare enum AdapterRuntimeStatus_Status {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
72
|
+
*/
|
|
73
|
+
UNKNOWN = 0,
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf enum value: NOT_RESPONDING = 1;
|
|
76
|
+
*/
|
|
77
|
+
NOT_RESPONDING = 1,
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf enum value: NOT_READY = 2;
|
|
80
|
+
*/
|
|
81
|
+
NOT_READY = 2,
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf enum value: RUNNING = 3;
|
|
84
|
+
*/
|
|
85
|
+
RUNNING = 3,
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf enum value: STOPPED = 4;
|
|
88
|
+
*/
|
|
89
|
+
STOPPED = 4
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf message shared.ExecutionRuntimeStatus
|
|
93
|
+
*/
|
|
94
|
+
export interface ExecutionRuntimeStatus {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: shared.ExecutionRuntimeStatus.Status status = 1
|
|
97
|
+
*/
|
|
98
|
+
status: ExecutionRuntimeStatus_Status;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: int64 timestamp = 2
|
|
101
|
+
*/
|
|
102
|
+
timestamp: bigint;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf field: string identifier = 3
|
|
105
|
+
*/
|
|
106
|
+
identifier: string;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf field: repeated shared.RuntimeFeature features = 4
|
|
109
|
+
*/
|
|
110
|
+
features: RuntimeFeature[];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf enum shared.ExecutionRuntimeStatus.Status
|
|
114
|
+
*/
|
|
115
|
+
export declare enum ExecutionRuntimeStatus_Status {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
118
|
+
*/
|
|
119
|
+
UNKNOWN = 0,
|
|
120
|
+
/**
|
|
121
|
+
* @generated from protobuf enum value: NOT_RESPONDING = 1;
|
|
122
|
+
*/
|
|
123
|
+
NOT_RESPONDING = 1,
|
|
124
|
+
/**
|
|
125
|
+
* @generated from protobuf enum value: NOT_READY = 2;
|
|
126
|
+
*/
|
|
127
|
+
NOT_READY = 2,
|
|
128
|
+
/**
|
|
129
|
+
* @generated from protobuf enum value: RUNNING = 3;
|
|
130
|
+
*/
|
|
131
|
+
RUNNING = 3,
|
|
132
|
+
/**
|
|
133
|
+
* @generated from protobuf enum value: STOPPED = 4;
|
|
134
|
+
*/
|
|
135
|
+
STOPPED = 4
|
|
136
|
+
}
|
|
137
|
+
declare class AdapterConfiguration$Type extends MessageType<AdapterConfiguration> {
|
|
138
|
+
constructor();
|
|
139
|
+
create(value?: PartialMessage<AdapterConfiguration>): AdapterConfiguration;
|
|
140
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdapterConfiguration): AdapterConfiguration;
|
|
141
|
+
internalBinaryWrite(message: AdapterConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @generated MessageType for protobuf message shared.AdapterConfiguration
|
|
145
|
+
*/
|
|
146
|
+
export declare const AdapterConfiguration: AdapterConfiguration$Type;
|
|
147
|
+
declare class RuntimeFeature$Type extends MessageType<RuntimeFeature> {
|
|
148
|
+
constructor();
|
|
149
|
+
create(value?: PartialMessage<RuntimeFeature>): RuntimeFeature;
|
|
150
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeFeature): RuntimeFeature;
|
|
151
|
+
internalBinaryWrite(message: RuntimeFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @generated MessageType for protobuf message shared.RuntimeFeature
|
|
155
|
+
*/
|
|
156
|
+
export declare const RuntimeFeature: RuntimeFeature$Type;
|
|
157
|
+
declare class AdapterRuntimeStatus$Type extends MessageType<AdapterRuntimeStatus> {
|
|
158
|
+
constructor();
|
|
159
|
+
create(value?: PartialMessage<AdapterRuntimeStatus>): AdapterRuntimeStatus;
|
|
160
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdapterRuntimeStatus): AdapterRuntimeStatus;
|
|
161
|
+
internalBinaryWrite(message: AdapterRuntimeStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @generated MessageType for protobuf message shared.AdapterRuntimeStatus
|
|
165
|
+
*/
|
|
166
|
+
export declare const AdapterRuntimeStatus: AdapterRuntimeStatus$Type;
|
|
167
|
+
declare class ExecutionRuntimeStatus$Type extends MessageType<ExecutionRuntimeStatus> {
|
|
168
|
+
constructor();
|
|
169
|
+
create(value?: PartialMessage<ExecutionRuntimeStatus>): ExecutionRuntimeStatus;
|
|
170
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionRuntimeStatus): ExecutionRuntimeStatus;
|
|
171
|
+
internalBinaryWrite(message: ExecutionRuntimeStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @generated MessageType for protobuf message shared.ExecutionRuntimeStatus
|
|
175
|
+
*/
|
|
176
|
+
export declare const ExecutionRuntimeStatus: ExecutionRuntimeStatus$Type;
|
|
177
|
+
export {};
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "shared.runtime_status.proto" (package "shared", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
6
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
7
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
+
import { Translation } from "./shared.translation_pb";
|
|
9
|
+
/**
|
|
10
|
+
* @generated from protobuf enum shared.AdapterRuntimeStatus.Status
|
|
11
|
+
*/
|
|
12
|
+
export var AdapterRuntimeStatus_Status;
|
|
13
|
+
(function (AdapterRuntimeStatus_Status) {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
16
|
+
*/
|
|
17
|
+
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["UNKNOWN"] = 0] = "UNKNOWN";
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf enum value: NOT_RESPONDING = 1;
|
|
20
|
+
*/
|
|
21
|
+
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["NOT_RESPONDING"] = 1] = "NOT_RESPONDING";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf enum value: NOT_READY = 2;
|
|
24
|
+
*/
|
|
25
|
+
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["NOT_READY"] = 2] = "NOT_READY";
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf enum value: RUNNING = 3;
|
|
28
|
+
*/
|
|
29
|
+
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["RUNNING"] = 3] = "RUNNING";
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf enum value: STOPPED = 4;
|
|
32
|
+
*/
|
|
33
|
+
AdapterRuntimeStatus_Status[AdapterRuntimeStatus_Status["STOPPED"] = 4] = "STOPPED";
|
|
34
|
+
})(AdapterRuntimeStatus_Status || (AdapterRuntimeStatus_Status = {}));
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf enum shared.ExecutionRuntimeStatus.Status
|
|
37
|
+
*/
|
|
38
|
+
export var ExecutionRuntimeStatus_Status;
|
|
39
|
+
(function (ExecutionRuntimeStatus_Status) {
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
42
|
+
*/
|
|
43
|
+
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["UNKNOWN"] = 0] = "UNKNOWN";
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf enum value: NOT_RESPONDING = 1;
|
|
46
|
+
*/
|
|
47
|
+
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["NOT_RESPONDING"] = 1] = "NOT_RESPONDING";
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf enum value: NOT_READY = 2;
|
|
50
|
+
*/
|
|
51
|
+
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["NOT_READY"] = 2] = "NOT_READY";
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf enum value: RUNNING = 3;
|
|
54
|
+
*/
|
|
55
|
+
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["RUNNING"] = 3] = "RUNNING";
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf enum value: STOPPED = 4;
|
|
58
|
+
*/
|
|
59
|
+
ExecutionRuntimeStatus_Status[ExecutionRuntimeStatus_Status["STOPPED"] = 4] = "STOPPED";
|
|
60
|
+
})(ExecutionRuntimeStatus_Status || (ExecutionRuntimeStatus_Status = {}));
|
|
61
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
62
|
+
class AdapterConfiguration$Type extends MessageType {
|
|
63
|
+
constructor() {
|
|
64
|
+
super("shared.AdapterConfiguration", [
|
|
65
|
+
{ no: 1, name: "endpoint", kind: "scalar", oneof: "data", T: 9 /*ScalarType.STRING*/ }
|
|
66
|
+
]);
|
|
67
|
+
}
|
|
68
|
+
create(value) {
|
|
69
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
70
|
+
message.data = { oneofKind: undefined };
|
|
71
|
+
if (value !== undefined)
|
|
72
|
+
reflectionMergePartial(this, message, value);
|
|
73
|
+
return message;
|
|
74
|
+
}
|
|
75
|
+
internalBinaryRead(reader, length, options, target) {
|
|
76
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
77
|
+
while (reader.pos < end) {
|
|
78
|
+
let [fieldNo, wireType] = reader.tag();
|
|
79
|
+
switch (fieldNo) {
|
|
80
|
+
case /* string endpoint */ 1:
|
|
81
|
+
message.data = {
|
|
82
|
+
oneofKind: "endpoint",
|
|
83
|
+
endpoint: reader.string()
|
|
84
|
+
};
|
|
85
|
+
break;
|
|
86
|
+
default:
|
|
87
|
+
let u = options.readUnknownField;
|
|
88
|
+
if (u === "throw")
|
|
89
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
90
|
+
let d = reader.skip(wireType);
|
|
91
|
+
if (u !== false)
|
|
92
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return message;
|
|
96
|
+
}
|
|
97
|
+
internalBinaryWrite(message, writer, options) {
|
|
98
|
+
/* string endpoint = 1; */
|
|
99
|
+
if (message.data.oneofKind === "endpoint")
|
|
100
|
+
writer.tag(1, WireType.LengthDelimited).string(message.data.endpoint);
|
|
101
|
+
let u = options.writeUnknownFields;
|
|
102
|
+
if (u !== false)
|
|
103
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
104
|
+
return writer;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @generated MessageType for protobuf message shared.AdapterConfiguration
|
|
109
|
+
*/
|
|
110
|
+
export const AdapterConfiguration = new AdapterConfiguration$Type();
|
|
111
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
112
|
+
class RuntimeFeature$Type extends MessageType {
|
|
113
|
+
constructor() {
|
|
114
|
+
super("shared.RuntimeFeature", [
|
|
115
|
+
{ no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
116
|
+
{ no: 2, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation }
|
|
117
|
+
]);
|
|
118
|
+
}
|
|
119
|
+
create(value) {
|
|
120
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
121
|
+
message.name = [];
|
|
122
|
+
message.description = [];
|
|
123
|
+
if (value !== undefined)
|
|
124
|
+
reflectionMergePartial(this, message, value);
|
|
125
|
+
return message;
|
|
126
|
+
}
|
|
127
|
+
internalBinaryRead(reader, length, options, target) {
|
|
128
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
129
|
+
while (reader.pos < end) {
|
|
130
|
+
let [fieldNo, wireType] = reader.tag();
|
|
131
|
+
switch (fieldNo) {
|
|
132
|
+
case /* repeated shared.Translation name */ 1:
|
|
133
|
+
message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
134
|
+
break;
|
|
135
|
+
case /* repeated shared.Translation description */ 2:
|
|
136
|
+
message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
let u = options.readUnknownField;
|
|
140
|
+
if (u === "throw")
|
|
141
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
142
|
+
let d = reader.skip(wireType);
|
|
143
|
+
if (u !== false)
|
|
144
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
}
|
|
149
|
+
internalBinaryWrite(message, writer, options) {
|
|
150
|
+
/* repeated shared.Translation name = 1; */
|
|
151
|
+
for (let i = 0; i < message.name.length; i++)
|
|
152
|
+
Translation.internalBinaryWrite(message.name[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
153
|
+
/* repeated shared.Translation description = 2; */
|
|
154
|
+
for (let i = 0; i < message.description.length; i++)
|
|
155
|
+
Translation.internalBinaryWrite(message.description[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
156
|
+
let u = options.writeUnknownFields;
|
|
157
|
+
if (u !== false)
|
|
158
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
159
|
+
return writer;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @generated MessageType for protobuf message shared.RuntimeFeature
|
|
164
|
+
*/
|
|
165
|
+
export const RuntimeFeature = new RuntimeFeature$Type();
|
|
166
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
167
|
+
class AdapterRuntimeStatus$Type extends MessageType {
|
|
168
|
+
constructor() {
|
|
169
|
+
super("shared.AdapterRuntimeStatus", [
|
|
170
|
+
{ no: 1, name: "status", kind: "enum", T: () => ["shared.AdapterRuntimeStatus.Status", AdapterRuntimeStatus_Status] },
|
|
171
|
+
{ no: 2, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
172
|
+
{ no: 3, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
173
|
+
{ no: 4, name: "features", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFeature },
|
|
174
|
+
{ no: 5, name: "configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdapterConfiguration }
|
|
175
|
+
]);
|
|
176
|
+
}
|
|
177
|
+
create(value) {
|
|
178
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
179
|
+
message.status = 0;
|
|
180
|
+
message.timestamp = 0n;
|
|
181
|
+
message.identifier = "";
|
|
182
|
+
message.features = [];
|
|
183
|
+
message.configurations = [];
|
|
184
|
+
if (value !== undefined)
|
|
185
|
+
reflectionMergePartial(this, message, value);
|
|
186
|
+
return message;
|
|
187
|
+
}
|
|
188
|
+
internalBinaryRead(reader, length, options, target) {
|
|
189
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
190
|
+
while (reader.pos < end) {
|
|
191
|
+
let [fieldNo, wireType] = reader.tag();
|
|
192
|
+
switch (fieldNo) {
|
|
193
|
+
case /* shared.AdapterRuntimeStatus.Status status */ 1:
|
|
194
|
+
message.status = reader.int32();
|
|
195
|
+
break;
|
|
196
|
+
case /* int64 timestamp */ 2:
|
|
197
|
+
message.timestamp = reader.int64().toBigInt();
|
|
198
|
+
break;
|
|
199
|
+
case /* string identifier */ 3:
|
|
200
|
+
message.identifier = reader.string();
|
|
201
|
+
break;
|
|
202
|
+
case /* repeated shared.RuntimeFeature features */ 4:
|
|
203
|
+
message.features.push(RuntimeFeature.internalBinaryRead(reader, reader.uint32(), options));
|
|
204
|
+
break;
|
|
205
|
+
case /* repeated shared.AdapterConfiguration configurations */ 5:
|
|
206
|
+
message.configurations.push(AdapterConfiguration.internalBinaryRead(reader, reader.uint32(), options));
|
|
207
|
+
break;
|
|
208
|
+
default:
|
|
209
|
+
let u = options.readUnknownField;
|
|
210
|
+
if (u === "throw")
|
|
211
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
212
|
+
let d = reader.skip(wireType);
|
|
213
|
+
if (u !== false)
|
|
214
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return message;
|
|
218
|
+
}
|
|
219
|
+
internalBinaryWrite(message, writer, options) {
|
|
220
|
+
/* shared.AdapterRuntimeStatus.Status status = 1; */
|
|
221
|
+
if (message.status !== 0)
|
|
222
|
+
writer.tag(1, WireType.Varint).int32(message.status);
|
|
223
|
+
/* int64 timestamp = 2; */
|
|
224
|
+
if (message.timestamp !== 0n)
|
|
225
|
+
writer.tag(2, WireType.Varint).int64(message.timestamp);
|
|
226
|
+
/* string identifier = 3; */
|
|
227
|
+
if (message.identifier !== "")
|
|
228
|
+
writer.tag(3, WireType.LengthDelimited).string(message.identifier);
|
|
229
|
+
/* repeated shared.RuntimeFeature features = 4; */
|
|
230
|
+
for (let i = 0; i < message.features.length; i++)
|
|
231
|
+
RuntimeFeature.internalBinaryWrite(message.features[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
232
|
+
/* repeated shared.AdapterConfiguration configurations = 5; */
|
|
233
|
+
for (let i = 0; i < message.configurations.length; i++)
|
|
234
|
+
AdapterConfiguration.internalBinaryWrite(message.configurations[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
235
|
+
let u = options.writeUnknownFields;
|
|
236
|
+
if (u !== false)
|
|
237
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
238
|
+
return writer;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @generated MessageType for protobuf message shared.AdapterRuntimeStatus
|
|
243
|
+
*/
|
|
244
|
+
export const AdapterRuntimeStatus = new AdapterRuntimeStatus$Type();
|
|
245
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
246
|
+
class ExecutionRuntimeStatus$Type extends MessageType {
|
|
247
|
+
constructor() {
|
|
248
|
+
super("shared.ExecutionRuntimeStatus", [
|
|
249
|
+
{ no: 1, name: "status", kind: "enum", T: () => ["shared.ExecutionRuntimeStatus.Status", ExecutionRuntimeStatus_Status] },
|
|
250
|
+
{ no: 2, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
251
|
+
{ no: 3, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
252
|
+
{ no: 4, name: "features", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFeature }
|
|
253
|
+
]);
|
|
254
|
+
}
|
|
255
|
+
create(value) {
|
|
256
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
257
|
+
message.status = 0;
|
|
258
|
+
message.timestamp = 0n;
|
|
259
|
+
message.identifier = "";
|
|
260
|
+
message.features = [];
|
|
261
|
+
if (value !== undefined)
|
|
262
|
+
reflectionMergePartial(this, message, value);
|
|
263
|
+
return message;
|
|
264
|
+
}
|
|
265
|
+
internalBinaryRead(reader, length, options, target) {
|
|
266
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
267
|
+
while (reader.pos < end) {
|
|
268
|
+
let [fieldNo, wireType] = reader.tag();
|
|
269
|
+
switch (fieldNo) {
|
|
270
|
+
case /* shared.ExecutionRuntimeStatus.Status status */ 1:
|
|
271
|
+
message.status = reader.int32();
|
|
272
|
+
break;
|
|
273
|
+
case /* int64 timestamp */ 2:
|
|
274
|
+
message.timestamp = reader.int64().toBigInt();
|
|
275
|
+
break;
|
|
276
|
+
case /* string identifier */ 3:
|
|
277
|
+
message.identifier = reader.string();
|
|
278
|
+
break;
|
|
279
|
+
case /* repeated shared.RuntimeFeature features */ 4:
|
|
280
|
+
message.features.push(RuntimeFeature.internalBinaryRead(reader, reader.uint32(), options));
|
|
281
|
+
break;
|
|
282
|
+
default:
|
|
283
|
+
let u = options.readUnknownField;
|
|
284
|
+
if (u === "throw")
|
|
285
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
286
|
+
let d = reader.skip(wireType);
|
|
287
|
+
if (u !== false)
|
|
288
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return message;
|
|
292
|
+
}
|
|
293
|
+
internalBinaryWrite(message, writer, options) {
|
|
294
|
+
/* shared.ExecutionRuntimeStatus.Status status = 1; */
|
|
295
|
+
if (message.status !== 0)
|
|
296
|
+
writer.tag(1, WireType.Varint).int32(message.status);
|
|
297
|
+
/* int64 timestamp = 2; */
|
|
298
|
+
if (message.timestamp !== 0n)
|
|
299
|
+
writer.tag(2, WireType.Varint).int64(message.timestamp);
|
|
300
|
+
/* string identifier = 3; */
|
|
301
|
+
if (message.identifier !== "")
|
|
302
|
+
writer.tag(3, WireType.LengthDelimited).string(message.identifier);
|
|
303
|
+
/* repeated shared.RuntimeFeature features = 4; */
|
|
304
|
+
for (let i = 0; i < message.features.length; i++)
|
|
305
|
+
RuntimeFeature.internalBinaryWrite(message.features[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
306
|
+
let u = options.writeUnknownFields;
|
|
307
|
+
if (u !== false)
|
|
308
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
309
|
+
return writer;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* @generated MessageType for protobuf message shared.ExecutionRuntimeStatus
|
|
314
|
+
*/
|
|
315
|
+
export const ExecutionRuntimeStatus = new ExecutionRuntimeStatus$Type();
|
package/pb/shared.event_pb.d.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
-
// @generated from protobuf file "shared.event.proto" (package "shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
-
import { Value } from "./shared.struct_pb";
|
|
11
|
-
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
12
|
-
import { Translation } from "./shared.translation_pb";
|
|
13
|
-
/**
|
|
14
|
-
* Event configuration
|
|
15
|
-
*
|
|
16
|
-
* @generated from protobuf message shared.EventDefinitionSettings
|
|
17
|
-
*/
|
|
18
|
-
export interface EventDefinitionSettings {
|
|
19
|
-
/**
|
|
20
|
-
* Name of current configuration
|
|
21
|
-
*
|
|
22
|
-
* @generated from protobuf field: repeated shared.Translation name = 1
|
|
23
|
-
*/
|
|
24
|
-
name: Translation[];
|
|
25
|
-
/**
|
|
26
|
-
* True if this is a unique setting
|
|
27
|
-
*
|
|
28
|
-
* @generated from protobuf field: bool unique = 2
|
|
29
|
-
*/
|
|
30
|
-
unique: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Description of current configuration
|
|
33
|
-
*
|
|
34
|
-
* @generated from protobuf field: repeated shared.Translation description = 3
|
|
35
|
-
*/
|
|
36
|
-
description: Translation[];
|
|
37
|
-
/**
|
|
38
|
-
* Type of setting
|
|
39
|
-
*
|
|
40
|
-
* @generated from protobuf field: shared.DefinitionDataType type = 4
|
|
41
|
-
*/
|
|
42
|
-
type?: DefinitionDataType;
|
|
43
|
-
/**
|
|
44
|
-
* Optional default value (primitive, string, list or json)
|
|
45
|
-
*
|
|
46
|
-
* @generated from protobuf field: optional shared.Value default_value = 5
|
|
47
|
-
*/
|
|
48
|
-
defaultValue?: Value;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf message shared.EventDefinition
|
|
52
|
-
*/
|
|
53
|
-
export interface EventDefinition {
|
|
54
|
-
/**
|
|
55
|
-
* List of settings that configures the type
|
|
56
|
-
*
|
|
57
|
-
* @generated from protobuf field: repeated shared.EventDefinitionSettings settings = 1
|
|
58
|
-
*/
|
|
59
|
-
settings: EventDefinitionSettings[];
|
|
60
|
-
/**
|
|
61
|
-
* @generated from protobuf field: shared.DefinitionDataType input_type = 2
|
|
62
|
-
*/
|
|
63
|
-
inputType?: DefinitionDataType;
|
|
64
|
-
/**
|
|
65
|
-
* True if the definition can be edited live
|
|
66
|
-
*
|
|
67
|
-
* @generated from protobuf field: bool editable = 3
|
|
68
|
-
*/
|
|
69
|
-
editable: boolean;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Event type that can be hold by an action & be emitted by an action
|
|
73
|
-
*
|
|
74
|
-
* @generated from protobuf message shared.EventType
|
|
75
|
-
*/
|
|
76
|
-
export interface EventType {
|
|
77
|
-
/**
|
|
78
|
-
* Name of the event
|
|
79
|
-
*
|
|
80
|
-
* @generated from protobuf field: repeated shared.Translation name = 1
|
|
81
|
-
*/
|
|
82
|
-
name: Translation[];
|
|
83
|
-
/**
|
|
84
|
-
* Definition that holds all settings of a event
|
|
85
|
-
*
|
|
86
|
-
* @generated from protobuf field: shared.EventDefinition definition = 2
|
|
87
|
-
*/
|
|
88
|
-
definition?: EventDefinition;
|
|
89
|
-
}
|
|
90
|
-
declare class EventDefinitionSettings$Type extends MessageType<EventDefinitionSettings> {
|
|
91
|
-
constructor();
|
|
92
|
-
create(value?: PartialMessage<EventDefinitionSettings>): EventDefinitionSettings;
|
|
93
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventDefinitionSettings): EventDefinitionSettings;
|
|
94
|
-
internalBinaryWrite(message: EventDefinitionSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* @generated MessageType for protobuf message shared.EventDefinitionSettings
|
|
98
|
-
*/
|
|
99
|
-
export declare const EventDefinitionSettings: EventDefinitionSettings$Type;
|
|
100
|
-
declare class EventDefinition$Type extends MessageType<EventDefinition> {
|
|
101
|
-
constructor();
|
|
102
|
-
create(value?: PartialMessage<EventDefinition>): EventDefinition;
|
|
103
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventDefinition): EventDefinition;
|
|
104
|
-
internalBinaryWrite(message: EventDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @generated MessageType for protobuf message shared.EventDefinition
|
|
108
|
-
*/
|
|
109
|
-
export declare const EventDefinition: EventDefinition$Type;
|
|
110
|
-
declare class EventType$Type extends MessageType<EventType> {
|
|
111
|
-
constructor();
|
|
112
|
-
create(value?: PartialMessage<EventType>): EventType;
|
|
113
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventType): EventType;
|
|
114
|
-
internalBinaryWrite(message: EventType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @generated MessageType for protobuf message shared.EventType
|
|
118
|
-
*/
|
|
119
|
-
export declare const EventType: EventType$Type;
|
|
120
|
-
export {};
|