@code0-tech/tucana 0.0.56 → 0.0.58

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.
@@ -1,8 +1,32 @@
1
1
  import {Value} from "../pb/shared.struct_pb.js";
2
2
 
3
- type AllowedValue = null | number | string | boolean | Array<AllowedValue> | object;
3
+ export type PlainValue = null | number | string | boolean | Array<PlainValue> | object;
4
4
 
5
- export function constructValue(value: AllowedValue): Value {
5
+ export function toAllowedValue(value: Value): PlainValue {
6
+ switch (value.kind.oneofKind) {
7
+ case "nullValue":
8
+ return null;
9
+ case "numberValue":
10
+ return value.kind.numberValue;
11
+ case "stringValue":
12
+ return value.kind.stringValue;
13
+ case "boolValue":
14
+ return value.kind.boolValue;
15
+ case "listValue":
16
+ return value.kind.listValue.values.map(toAllowedValue);
17
+ case "structValue":
18
+ const obj: {[key: string]: PlainValue} = {};
19
+ for (const [k, v] of Object.entries(value.kind.structValue.fields)) {
20
+ obj[k] = toAllowedValue(v);
21
+ }
22
+ return obj;
23
+ default:
24
+ throw new Error(`Unsupported Value kind: ${value.kind.oneofKind}`);
25
+ }
26
+ }
27
+
28
+
29
+ export function constructValue(value: PlainValue): Value {
6
30
  if (value === null) {
7
31
  return {kind: {oneofKind: "nullValue", nullValue: 0}};
8
32
  }
@@ -37,4 +61,4 @@ export function constructValue(value: AllowedValue): Value {
37
61
  };
38
62
  }
39
63
  throw new Error(`Unsupported value type: ${typeof value}`);
40
- }
64
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/tucana",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "description": "Code0 GRPC Protocol",
5
5
  "homepage": "https://github.com/code0-tech/tucana#readme",
6
6
  "bugs": {
@@ -81,6 +81,12 @@ export interface ExecutionRequest {
81
81
  * @generated from protobuf field: shared.Struct parameters = 3
82
82
  */
83
83
  parameters?: Struct;
84
+ /**
85
+ * Project Id that this function is emitted for
86
+ *
87
+ * @generated from protobuf field: int64 project_id = 4
88
+ */
89
+ projectId: bigint;
84
90
  }
85
91
  /**
86
92
  * Result from executed flows by an action
@@ -144,13 +144,15 @@ class ExecutionRequest$Type extends MessageType {
144
144
  super("aquila.ExecutionRequest", [
145
145
  { no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
146
146
  { no: 2, name: "function_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
147
- { no: 3, name: "parameters", kind: "message", T: () => Struct }
147
+ { no: 3, name: "parameters", kind: "message", T: () => Struct },
148
+ { no: 4, name: "project_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
148
149
  ]);
149
150
  }
150
151
  create(value) {
151
152
  const message = globalThis.Object.create((this.messagePrototype));
152
153
  message.executionIdentifier = "";
153
154
  message.functionIdentifier = "";
155
+ message.projectId = 0n;
154
156
  if (value !== undefined)
155
157
  reflectionMergePartial(this, message, value);
156
158
  return message;
@@ -169,6 +171,9 @@ class ExecutionRequest$Type extends MessageType {
169
171
  case /* shared.Struct parameters */ 3:
170
172
  message.parameters = Struct.internalBinaryRead(reader, reader.uint32(), options, message.parameters);
171
173
  break;
174
+ case /* int64 project_id */ 4:
175
+ message.projectId = reader.int64().toBigInt();
176
+ break;
172
177
  default:
173
178
  let u = options.readUnknownField;
174
179
  if (u === "throw")
@@ -190,6 +195,9 @@ class ExecutionRequest$Type extends MessageType {
190
195
  /* shared.Struct parameters = 3; */
191
196
  if (message.parameters)
192
197
  Struct.internalBinaryWrite(message.parameters, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
198
+ /* int64 project_id = 4; */
199
+ if (message.projectId !== 0n)
200
+ writer.tag(4, WireType.Varint).int64(message.projectId);
193
201
  let u = options.writeUnknownFields;
194
202
  if (u !== false)
195
203
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -7,7 +7,6 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
7
  import type { IBinaryReader } from "@protobuf-ts/runtime";
8
8
  import type { PartialMessage } from "@protobuf-ts/runtime";
9
9
  import { MessageType } from "@protobuf-ts/runtime";
10
- import { DefinitionDataType } from "./shared.data_type_pb";
11
10
  import { Translation } from "./shared.translation_pb";
12
11
  import { Value } from "./shared.struct_pb";
13
12
  /**
@@ -66,15 +65,19 @@ export interface ActionConfigurationDefinition {
66
65
  */
67
66
  description: Translation[];
68
67
  /**
69
- * @generated from protobuf field: shared.DefinitionDataType type = 3
68
+ * @generated from protobuf field: string type = 3
70
69
  */
71
- type?: DefinitionDataType;
70
+ type: string;
72
71
  /**
73
- * @generated from protobuf field: optional shared.Value default_value = 4
72
+ * @generated from protobuf field: repeated string linked_data_type_identifiers = 4
73
+ */
74
+ linkedDataTypeIdentifiers: string[];
75
+ /**
76
+ * @generated from protobuf field: optional shared.Value default_value = 5
74
77
  */
75
78
  defaultValue?: Value;
76
79
  /**
77
- * @generated from protobuf field: string identifier = 5
80
+ * @generated from protobuf field: string identifier = 6
78
81
  */
79
82
  identifier: string;
80
83
  }
@@ -5,7 +5,6 @@ import { WireType } from "@protobuf-ts/runtime";
5
5
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
6
6
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
7
7
  import { MessageType } from "@protobuf-ts/runtime";
8
- import { DefinitionDataType } from "./shared.data_type_pb";
9
8
  import { Translation } from "./shared.translation_pb";
10
9
  import { Value } from "./shared.struct_pb";
11
10
  // @generated message type with reflection information, may provide speed optimized methods
@@ -170,15 +169,18 @@ class ActionConfigurationDefinition$Type extends MessageType {
170
169
  super("shared.ActionConfigurationDefinition", [
171
170
  { no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
172
171
  { no: 2, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
173
- { no: 3, name: "type", kind: "message", T: () => DefinitionDataType },
174
- { no: 4, name: "default_value", kind: "message", T: () => Value },
175
- { no: 5, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
172
+ { no: 3, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
173
+ { no: 4, name: "linked_data_type_identifiers", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
174
+ { no: 5, name: "default_value", kind: "message", T: () => Value },
175
+ { no: 6, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
176
176
  ]);
177
177
  }
178
178
  create(value) {
179
179
  const message = globalThis.Object.create((this.messagePrototype));
180
180
  message.name = [];
181
181
  message.description = [];
182
+ message.type = "";
183
+ message.linkedDataTypeIdentifiers = [];
182
184
  message.identifier = "";
183
185
  if (value !== undefined)
184
186
  reflectionMergePartial(this, message, value);
@@ -195,13 +197,16 @@ class ActionConfigurationDefinition$Type extends MessageType {
195
197
  case /* repeated shared.Translation description */ 2:
196
198
  message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
197
199
  break;
198
- case /* shared.DefinitionDataType type */ 3:
199
- message.type = DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options, message.type);
200
+ case /* string type */ 3:
201
+ message.type = reader.string();
200
202
  break;
201
- case /* optional shared.Value default_value */ 4:
203
+ case /* repeated string linked_data_type_identifiers */ 4:
204
+ message.linkedDataTypeIdentifiers.push(reader.string());
205
+ break;
206
+ case /* optional shared.Value default_value */ 5:
202
207
  message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
203
208
  break;
204
- case /* string identifier */ 5:
209
+ case /* string identifier */ 6:
205
210
  message.identifier = reader.string();
206
211
  break;
207
212
  default:
@@ -222,15 +227,18 @@ class ActionConfigurationDefinition$Type extends MessageType {
222
227
  /* repeated shared.Translation description = 2; */
223
228
  for (let i = 0; i < message.description.length; i++)
224
229
  Translation.internalBinaryWrite(message.description[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
225
- /* shared.DefinitionDataType type = 3; */
226
- if (message.type)
227
- DefinitionDataType.internalBinaryWrite(message.type, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
228
- /* optional shared.Value default_value = 4; */
230
+ /* string type = 3; */
231
+ if (message.type !== "")
232
+ writer.tag(3, WireType.LengthDelimited).string(message.type);
233
+ /* repeated string linked_data_type_identifiers = 4; */
234
+ for (let i = 0; i < message.linkedDataTypeIdentifiers.length; i++)
235
+ writer.tag(4, WireType.LengthDelimited).string(message.linkedDataTypeIdentifiers[i]);
236
+ /* optional shared.Value default_value = 5; */
229
237
  if (message.defaultValue)
230
- Value.internalBinaryWrite(message.defaultValue, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
231
- /* string identifier = 5; */
238
+ Value.internalBinaryWrite(message.defaultValue, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
239
+ /* string identifier = 6; */
232
240
  if (message.identifier !== "")
233
- writer.tag(5, WireType.LengthDelimited).string(message.identifier);
241
+ writer.tag(6, WireType.LengthDelimited).string(message.identifier);
234
242
  let u = options.writeUnknownFields;
235
243
  if (u !== false)
236
244
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -49,9 +49,9 @@ export interface DefinitionDataType {
49
49
  /**
50
50
  * the typescript signature representing this data type
51
51
  *
52
- * @generated from protobuf field: string signature = 7
52
+ * @generated from protobuf field: string type = 7
53
53
  */
54
- signature: string;
54
+ type: string;
55
55
  /**
56
56
  * will be used if the signature includes other data types that aren't TS standard
57
57
  *
@@ -16,7 +16,7 @@ class DefinitionDataType$Type extends MessageType {
16
16
  { no: 4, name: "alias", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
17
17
  { no: 5, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DefinitionDataTypeRule },
18
18
  { no: 6, name: "generic_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
19
- { no: 7, name: "signature", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
19
+ { no: 7, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
20
20
  { no: 8, name: "linked_data_type_identifiers", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
21
21
  { no: 9, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
22
22
  { no: 10, name: "definition_source", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
@@ -30,7 +30,7 @@ class DefinitionDataType$Type extends MessageType {
30
30
  message.alias = [];
31
31
  message.rules = [];
32
32
  message.genericKeys = [];
33
- message.signature = "";
33
+ message.type = "";
34
34
  message.linkedDataTypeIdentifiers = [];
35
35
  message.version = "";
36
36
  message.definitionSource = "";
@@ -61,8 +61,8 @@ class DefinitionDataType$Type extends MessageType {
61
61
  case /* repeated string generic_keys */ 6:
62
62
  message.genericKeys.push(reader.string());
63
63
  break;
64
- case /* string signature */ 7:
65
- message.signature = reader.string();
64
+ case /* string type */ 7:
65
+ message.type = reader.string();
66
66
  break;
67
67
  case /* repeated string linked_data_type_identifiers */ 8:
68
68
  message.linkedDataTypeIdentifiers.push(reader.string());
@@ -103,9 +103,9 @@ class DefinitionDataType$Type extends MessageType {
103
103
  /* repeated string generic_keys = 6; */
104
104
  for (let i = 0; i < message.genericKeys.length; i++)
105
105
  writer.tag(6, WireType.LengthDelimited).string(message.genericKeys[i]);
106
- /* string signature = 7; */
107
- if (message.signature !== "")
108
- writer.tag(7, WireType.LengthDelimited).string(message.signature);
106
+ /* string type = 7; */
107
+ if (message.type !== "")
108
+ writer.tag(7, WireType.LengthDelimited).string(message.type);
109
109
  /* repeated string linked_data_type_identifiers = 8; */
110
110
  for (let i = 0; i < message.linkedDataTypeIdentifiers.length; i++)
111
111
  writer.tag(8, WireType.LengthDelimited).string(message.linkedDataTypeIdentifiers[i]);
@@ -22,13 +22,13 @@ export interface FlowType {
22
22
  */
23
23
  settings: FlowTypeSetting[];
24
24
  /**
25
- * @generated from protobuf field: optional string input_type_identifier = 3
25
+ * @generated from protobuf field: optional string input_type = 3
26
26
  */
27
- inputTypeIdentifier?: string;
27
+ inputType?: string;
28
28
  /**
29
- * @generated from protobuf field: optional string return_type_identifier = 4
29
+ * @generated from protobuf field: optional string return_type = 4
30
30
  */
31
- returnTypeIdentifier?: string;
31
+ returnType?: string;
32
32
  /**
33
33
  * @generated from protobuf field: bool editable = 5
34
34
  */
@@ -70,6 +70,10 @@ export interface FlowType {
70
70
  * @generated from protobuf field: optional string definition_source = 13
71
71
  */
72
72
  definitionSource?: string;
73
+ /**
74
+ * @generated from protobuf field: repeated string linked_data_type_identifiers = 14
75
+ */
76
+ linkedDataTypeIdentifiers: string[];
73
77
  }
74
78
  /**
75
79
  * @generated from protobuf message shared.FlowTypeSetting
@@ -84,9 +88,9 @@ export interface FlowTypeSetting {
84
88
  */
85
89
  unique: FlowTypeSetting_UniquenessScope;
86
90
  /**
87
- * @generated from protobuf field: string data_type_identifier = 3
91
+ * @generated from protobuf field: string type = 3
88
92
  */
89
- dataTypeIdentifier: string;
93
+ type: string;
90
94
  /**
91
95
  * @generated from protobuf field: optional shared.Value default_value = 4
92
96
  */
@@ -99,6 +103,10 @@ export interface FlowTypeSetting {
99
103
  * @generated from protobuf field: repeated shared.Translation description = 6
100
104
  */
101
105
  description: Translation[];
106
+ /**
107
+ * @generated from protobuf field: repeated string linked_data_type_identifiers = 7
108
+ */
109
+ linkedDataTypeIdentifiers: string[];
102
110
  }
103
111
  /**
104
112
  * @generated from protobuf enum shared.FlowTypeSetting.UniquenessScope
@@ -31,8 +31,8 @@ class FlowType$Type extends MessageType {
31
31
  super("shared.FlowType", [
32
32
  { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
33
33
  { no: 2, name: "settings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowTypeSetting },
34
- { no: 3, name: "input_type_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
35
- { no: 4, name: "return_type_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
34
+ { no: 3, name: "input_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
35
+ { no: 4, name: "return_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
36
36
  { no: 5, name: "editable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
37
37
  { no: 6, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
38
38
  { no: 7, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
@@ -41,7 +41,8 @@ class FlowType$Type extends MessageType {
41
41
  { no: 10, name: "alias", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
42
42
  { no: 11, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
43
43
  { no: 12, name: "display_icon", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
44
- { no: 13, name: "definition_source", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
44
+ { no: 13, name: "definition_source", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
45
+ { no: 14, name: "linked_data_type_identifiers", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
45
46
  ]);
46
47
  }
47
48
  create(value) {
@@ -56,6 +57,7 @@ class FlowType$Type extends MessageType {
56
57
  message.alias = [];
57
58
  message.version = "";
58
59
  message.displayIcon = "";
60
+ message.linkedDataTypeIdentifiers = [];
59
61
  if (value !== undefined)
60
62
  reflectionMergePartial(this, message, value);
61
63
  return message;
@@ -71,11 +73,11 @@ class FlowType$Type extends MessageType {
71
73
  case /* repeated shared.FlowTypeSetting settings */ 2:
72
74
  message.settings.push(FlowTypeSetting.internalBinaryRead(reader, reader.uint32(), options));
73
75
  break;
74
- case /* optional string input_type_identifier */ 3:
75
- message.inputTypeIdentifier = reader.string();
76
+ case /* optional string input_type */ 3:
77
+ message.inputType = reader.string();
76
78
  break;
77
- case /* optional string return_type_identifier */ 4:
78
- message.returnTypeIdentifier = reader.string();
79
+ case /* optional string return_type */ 4:
80
+ message.returnType = reader.string();
79
81
  break;
80
82
  case /* bool editable */ 5:
81
83
  message.editable = reader.bool();
@@ -104,6 +106,9 @@ class FlowType$Type extends MessageType {
104
106
  case /* optional string definition_source */ 13:
105
107
  message.definitionSource = reader.string();
106
108
  break;
109
+ case /* repeated string linked_data_type_identifiers */ 14:
110
+ message.linkedDataTypeIdentifiers.push(reader.string());
111
+ break;
107
112
  default:
108
113
  let u = options.readUnknownField;
109
114
  if (u === "throw")
@@ -122,12 +127,12 @@ class FlowType$Type extends MessageType {
122
127
  /* repeated shared.FlowTypeSetting settings = 2; */
123
128
  for (let i = 0; i < message.settings.length; i++)
124
129
  FlowTypeSetting.internalBinaryWrite(message.settings[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
125
- /* optional string input_type_identifier = 3; */
126
- if (message.inputTypeIdentifier !== undefined)
127
- writer.tag(3, WireType.LengthDelimited).string(message.inputTypeIdentifier);
128
- /* optional string return_type_identifier = 4; */
129
- if (message.returnTypeIdentifier !== undefined)
130
- writer.tag(4, WireType.LengthDelimited).string(message.returnTypeIdentifier);
130
+ /* optional string input_type = 3; */
131
+ if (message.inputType !== undefined)
132
+ writer.tag(3, WireType.LengthDelimited).string(message.inputType);
133
+ /* optional string return_type = 4; */
134
+ if (message.returnType !== undefined)
135
+ writer.tag(4, WireType.LengthDelimited).string(message.returnType);
131
136
  /* bool editable = 5; */
132
137
  if (message.editable !== false)
133
138
  writer.tag(5, WireType.Varint).bool(message.editable);
@@ -155,6 +160,9 @@ class FlowType$Type extends MessageType {
155
160
  /* optional string definition_source = 13; */
156
161
  if (message.definitionSource !== undefined)
157
162
  writer.tag(13, WireType.LengthDelimited).string(message.definitionSource);
163
+ /* repeated string linked_data_type_identifiers = 14; */
164
+ for (let i = 0; i < message.linkedDataTypeIdentifiers.length; i++)
165
+ writer.tag(14, WireType.LengthDelimited).string(message.linkedDataTypeIdentifiers[i]);
158
166
  let u = options.writeUnknownFields;
159
167
  if (u !== false)
160
168
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -171,19 +179,21 @@ class FlowTypeSetting$Type extends MessageType {
171
179
  super("shared.FlowTypeSetting", [
172
180
  { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
173
181
  { no: 2, name: "unique", kind: "enum", T: () => ["shared.FlowTypeSetting.UniquenessScope", FlowTypeSetting_UniquenessScope] },
174
- { no: 3, name: "data_type_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
182
+ { no: 3, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
175
183
  { no: 4, name: "default_value", kind: "message", T: () => Value },
176
184
  { no: 5, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
177
- { no: 6, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation }
185
+ { no: 6, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
186
+ { no: 7, name: "linked_data_type_identifiers", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
178
187
  ]);
179
188
  }
180
189
  create(value) {
181
190
  const message = globalThis.Object.create((this.messagePrototype));
182
191
  message.identifier = "";
183
192
  message.unique = 0;
184
- message.dataTypeIdentifier = "";
193
+ message.type = "";
185
194
  message.name = [];
186
195
  message.description = [];
196
+ message.linkedDataTypeIdentifiers = [];
187
197
  if (value !== undefined)
188
198
  reflectionMergePartial(this, message, value);
189
199
  return message;
@@ -199,8 +209,8 @@ class FlowTypeSetting$Type extends MessageType {
199
209
  case /* shared.FlowTypeSetting.UniquenessScope unique */ 2:
200
210
  message.unique = reader.int32();
201
211
  break;
202
- case /* string data_type_identifier */ 3:
203
- message.dataTypeIdentifier = reader.string();
212
+ case /* string type */ 3:
213
+ message.type = reader.string();
204
214
  break;
205
215
  case /* optional shared.Value default_value */ 4:
206
216
  message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
@@ -211,6 +221,9 @@ class FlowTypeSetting$Type extends MessageType {
211
221
  case /* repeated shared.Translation description */ 6:
212
222
  message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
213
223
  break;
224
+ case /* repeated string linked_data_type_identifiers */ 7:
225
+ message.linkedDataTypeIdentifiers.push(reader.string());
226
+ break;
214
227
  default:
215
228
  let u = options.readUnknownField;
216
229
  if (u === "throw")
@@ -229,9 +242,9 @@ class FlowTypeSetting$Type extends MessageType {
229
242
  /* shared.FlowTypeSetting.UniquenessScope unique = 2; */
230
243
  if (message.unique !== 0)
231
244
  writer.tag(2, WireType.Varint).int32(message.unique);
232
- /* string data_type_identifier = 3; */
233
- if (message.dataTypeIdentifier !== "")
234
- writer.tag(3, WireType.LengthDelimited).string(message.dataTypeIdentifier);
245
+ /* string type = 3; */
246
+ if (message.type !== "")
247
+ writer.tag(3, WireType.LengthDelimited).string(message.type);
235
248
  /* optional shared.Value default_value = 4; */
236
249
  if (message.defaultValue)
237
250
  Value.internalBinaryWrite(message.defaultValue, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
@@ -241,6 +254,9 @@ class FlowTypeSetting$Type extends MessageType {
241
254
  /* repeated shared.Translation description = 6; */
242
255
  for (let i = 0; i < message.description.length; i++)
243
256
  Translation.internalBinaryWrite(message.description[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
257
+ /* repeated string linked_data_type_identifiers = 7; */
258
+ for (let i = 0; i < message.linkedDataTypeIdentifiers.length; i++)
259
+ writer.tag(7, WireType.LengthDelimited).string(message.linkedDataTypeIdentifiers[i]);
244
260
  let u = options.writeUnknownFields;
245
261
  if (u !== false)
246
262
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -36,8 +36,6 @@ export interface ValidationFlow {
36
36
  */
37
37
  dataTypes: ExecutionDataType[];
38
38
  /**
39
- * These reference data_types by its identifiers, which is are string
40
- *
41
39
  * @generated from protobuf field: optional string input_type = 5
42
40
  */
43
41
  inputType?: string;
@@ -76,6 +74,10 @@ export interface ExecutionFlow {
76
74
  * @generated from protobuf field: int64 flow_id = 1
77
75
  */
78
76
  flowId: bigint;
77
+ /**
78
+ * @generated from protobuf field: int64 project_id = 5
79
+ */
80
+ projectId: bigint;
79
81
  /**
80
82
  * @generated from protobuf field: int64 starting_node_id = 2
81
83
  */
@@ -136,6 +136,7 @@ class ExecutionFlow$Type extends MessageType {
136
136
  constructor() {
137
137
  super("shared.ExecutionFlow", [
138
138
  { no: 1, name: "flow_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
139
+ { no: 5, name: "project_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
139
140
  { no: 2, name: "starting_node_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
140
141
  { no: 4, name: "node_functions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NodeFunction },
141
142
  { no: 3, name: "input_value", kind: "message", T: () => Value }
@@ -144,6 +145,7 @@ class ExecutionFlow$Type extends MessageType {
144
145
  create(value) {
145
146
  const message = globalThis.Object.create((this.messagePrototype));
146
147
  message.flowId = 0n;
148
+ message.projectId = 0n;
147
149
  message.startingNodeId = 0n;
148
150
  message.nodeFunctions = [];
149
151
  if (value !== undefined)
@@ -158,6 +160,9 @@ class ExecutionFlow$Type extends MessageType {
158
160
  case /* int64 flow_id */ 1:
159
161
  message.flowId = reader.int64().toBigInt();
160
162
  break;
163
+ case /* int64 project_id */ 5:
164
+ message.projectId = reader.int64().toBigInt();
165
+ break;
161
166
  case /* int64 starting_node_id */ 2:
162
167
  message.startingNodeId = reader.int64().toBigInt();
163
168
  break;
@@ -191,6 +196,9 @@ class ExecutionFlow$Type extends MessageType {
191
196
  /* repeated shared.NodeFunction node_functions = 4; */
192
197
  for (let i = 0; i < message.nodeFunctions.length; i++)
193
198
  NodeFunction.internalBinaryWrite(message.nodeFunctions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
199
+ /* int64 project_id = 5; */
200
+ if (message.projectId !== 0n)
201
+ writer.tag(5, WireType.Varint).int64(message.projectId);
194
202
  let u = options.writeUnknownFields;
195
203
  if (u !== false)
196
204
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1,65 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
- // @generated from protobuf file "aquila.execution.proto" (package "aquila", syntax proto3)
3
- // tslint:disable
4
- import type { ActionResultResponse } from "./aquila.execution_pb";
5
- import type { ActionResultRequest } from "./aquila.execution_pb";
6
- import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
7
- import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
8
- import type { ActionCallResponse } from "./aquila.execution_pb";
9
- import type { ActionCallRequest } from "./aquila.execution_pb";
10
- import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
11
- import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
12
- /**
13
- * Service for calling an execution with the given parameter
14
- *
15
- * @generated from protobuf service aquila.ActionCallService
16
- */
17
- export interface IActionCallServiceClient {
18
- /**
19
- * @generated from protobuf rpc: Call
20
- */
21
- call(input: ActionCallRequest, options?: RpcOptions): UnaryCall<ActionCallRequest, ActionCallResponse>;
22
- }
23
- /**
24
- * Service for calling an execution with the given parameter
25
- *
26
- * @generated from protobuf service aquila.ActionCallService
27
- */
28
- export declare class ActionCallServiceClient implements IActionCallServiceClient, ServiceInfo {
29
- private readonly _transport;
30
- typeName: any;
31
- methods: any;
32
- options: any;
33
- constructor(_transport: RpcTransport);
34
- /**
35
- * @generated from protobuf rpc: Call
36
- */
37
- call(input: ActionCallRequest, options?: RpcOptions): UnaryCall<ActionCallRequest, ActionCallResponse>;
38
- }
39
- /**
40
- * Service for getting a result of an execution
41
- *
42
- * @generated from protobuf service aquila.ActionResultService
43
- */
44
- export interface IActionResultServiceClient {
45
- /**
46
- * @generated from protobuf rpc: GetResult
47
- */
48
- getResult(input: ActionResultRequest, options?: RpcOptions): UnaryCall<ActionResultRequest, ActionResultResponse>;
49
- }
50
- /**
51
- * Service for getting a result of an execution
52
- *
53
- * @generated from protobuf service aquila.ActionResultService
54
- */
55
- export declare class ActionResultServiceClient implements IActionResultServiceClient, ServiceInfo {
56
- private readonly _transport;
57
- typeName: any;
58
- methods: any;
59
- options: any;
60
- constructor(_transport: RpcTransport);
61
- /**
62
- * @generated from protobuf rpc: GetResult
63
- */
64
- getResult(input: ActionResultRequest, options?: RpcOptions): UnaryCall<ActionResultRequest, ActionResultResponse>;
65
- }
@@ -1,49 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
- // @generated from protobuf file "aquila.execution.proto" (package "aquila", syntax proto3)
3
- // tslint:disable
4
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
5
- // @generated from protobuf file "aquila.execution.proto" (package "aquila", syntax proto3)
6
- // tslint:disable
7
- import { ActionResultService } from "./aquila.execution_pb";
8
- import { ActionCallService } from "./aquila.execution_pb";
9
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
10
- /**
11
- * Service for calling an execution with the given parameter
12
- *
13
- * @generated from protobuf service aquila.ActionCallService
14
- */
15
- export class ActionCallServiceClient {
16
- constructor(_transport) {
17
- this._transport = _transport;
18
- this.typeName = ActionCallService.typeName;
19
- this.methods = ActionCallService.methods;
20
- this.options = ActionCallService.options;
21
- }
22
- /**
23
- * @generated from protobuf rpc: Call
24
- */
25
- call(input, options) {
26
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
27
- return stackIntercept("unary", this._transport, method, opt, input);
28
- }
29
- }
30
- /**
31
- * Service for getting a result of an execution
32
- *
33
- * @generated from protobuf service aquila.ActionResultService
34
- */
35
- export class ActionResultServiceClient {
36
- constructor(_transport) {
37
- this._transport = _transport;
38
- this.typeName = ActionResultService.typeName;
39
- this.methods = ActionResultService.methods;
40
- this.options = ActionResultService.options;
41
- }
42
- /**
43
- * @generated from protobuf rpc: GetResult
44
- */
45
- getResult(input, options) {
46
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
47
- return stackIntercept("unary", this._transport, method, opt, input);
48
- }
49
- }
@@ -1,135 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
- // @generated from protobuf file "aquila.execution.proto" (package "aquila", syntax proto3)
3
- // tslint:disable
4
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
- import type { IBinaryReader } from "@protobuf-ts/runtime";
8
- import type { PartialMessage } from "@protobuf-ts/runtime";
9
- import { MessageType } from "@protobuf-ts/runtime";
10
- /**
11
- * Request to call an action with param. Request will be routed over Aquila
12
- *
13
- * @generated from protobuf message aquila.ActionCallRequest
14
- */
15
- export interface ActionCallRequest {
16
- /**
17
- * Function identifier
18
- *
19
- * @generated from protobuf field: string identifier = 1
20
- */
21
- identifier: string;
22
- /**
23
- * List of parameters (json format --> also can just be a primitive)
24
- *
25
- * @generated from protobuf field: repeated string parameters = 2
26
- */
27
- parameters: string[];
28
- }
29
- /**
30
- * Response of execution call
31
- *
32
- * @generated from protobuf message aquila.ActionCallResponse
33
- */
34
- export interface ActionCallResponse {
35
- /**
36
- * Identifier of the execution id given by Aquila for the parameter
37
- *
38
- * @generated from protobuf field: string execution_identifier = 1
39
- */
40
- executionIdentifier: string;
41
- }
42
- /**
43
- * List of results
44
- *
45
- * @generated from protobuf message aquila.ActionResult
46
- */
47
- export interface ActionResult {
48
- /**
49
- * @generated from protobuf field: repeated string result = 1
50
- */
51
- result: string[];
52
- }
53
- /**
54
- * Request to check if there are results for the given identifier
55
- *
56
- * @generated from protobuf message aquila.ActionResultRequest
57
- */
58
- export interface ActionResultRequest {
59
- /**
60
- * Identifier that is connected to the parameter
61
- *
62
- * @generated from protobuf field: string execution_identifier = 1
63
- */
64
- executionIdentifier: string;
65
- }
66
- /**
67
- * @generated from protobuf message aquila.ActionResultResponse
68
- */
69
- export interface ActionResultResponse {
70
- /**
71
- * Result of the given parameter!
72
- *
73
- * @generated from protobuf field: optional aquila.ActionResult action_result = 1
74
- */
75
- actionResult?: ActionResult;
76
- }
77
- declare class ActionCallRequest$Type extends MessageType<ActionCallRequest> {
78
- constructor();
79
- create(value?: PartialMessage<ActionCallRequest>): ActionCallRequest;
80
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionCallRequest): ActionCallRequest;
81
- internalBinaryWrite(message: ActionCallRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
82
- }
83
- /**
84
- * @generated MessageType for protobuf message aquila.ActionCallRequest
85
- */
86
- export declare const ActionCallRequest: ActionCallRequest$Type;
87
- declare class ActionCallResponse$Type extends MessageType<ActionCallResponse> {
88
- constructor();
89
- create(value?: PartialMessage<ActionCallResponse>): ActionCallResponse;
90
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionCallResponse): ActionCallResponse;
91
- internalBinaryWrite(message: ActionCallResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
92
- }
93
- /**
94
- * @generated MessageType for protobuf message aquila.ActionCallResponse
95
- */
96
- export declare const ActionCallResponse: ActionCallResponse$Type;
97
- declare class ActionResult$Type extends MessageType<ActionResult> {
98
- constructor();
99
- create(value?: PartialMessage<ActionResult>): ActionResult;
100
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionResult): ActionResult;
101
- internalBinaryWrite(message: ActionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
102
- }
103
- /**
104
- * @generated MessageType for protobuf message aquila.ActionResult
105
- */
106
- export declare const ActionResult: ActionResult$Type;
107
- declare class ActionResultRequest$Type extends MessageType<ActionResultRequest> {
108
- constructor();
109
- create(value?: PartialMessage<ActionResultRequest>): ActionResultRequest;
110
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionResultRequest): ActionResultRequest;
111
- internalBinaryWrite(message: ActionResultRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
112
- }
113
- /**
114
- * @generated MessageType for protobuf message aquila.ActionResultRequest
115
- */
116
- export declare const ActionResultRequest: ActionResultRequest$Type;
117
- declare class ActionResultResponse$Type extends MessageType<ActionResultResponse> {
118
- constructor();
119
- create(value?: PartialMessage<ActionResultResponse>): ActionResultResponse;
120
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionResultResponse): ActionResultResponse;
121
- internalBinaryWrite(message: ActionResultResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
122
- }
123
- /**
124
- * @generated MessageType for protobuf message aquila.ActionResultResponse
125
- */
126
- export declare const ActionResultResponse: ActionResultResponse$Type;
127
- /**
128
- * @generated ServiceType for protobuf service aquila.ActionCallService
129
- */
130
- export declare const ActionCallService: any;
131
- /**
132
- * @generated ServiceType for protobuf service aquila.ActionResultService
133
- */
134
- export declare const ActionResultService: any;
135
- export {};
@@ -1,265 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
- // @generated from protobuf file "aquila.execution.proto" (package "aquila", syntax proto3)
3
- // tslint:disable
4
- // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
5
- // @generated from protobuf file "aquila.execution.proto" (package "aquila", syntax proto3)
6
- // tslint:disable
7
- import { ServiceType } from "@protobuf-ts/runtime-rpc";
8
- import { WireType } from "@protobuf-ts/runtime";
9
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
11
- import { MessageType } from "@protobuf-ts/runtime";
12
- // @generated message type with reflection information, may provide speed optimized methods
13
- class ActionCallRequest$Type extends MessageType {
14
- constructor() {
15
- super("aquila.ActionCallRequest", [
16
- { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
17
- { no: 2, name: "parameters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
18
- ]);
19
- }
20
- create(value) {
21
- const message = globalThis.Object.create((this.messagePrototype));
22
- message.identifier = "";
23
- message.parameters = [];
24
- if (value !== undefined)
25
- reflectionMergePartial(this, message, value);
26
- return message;
27
- }
28
- internalBinaryRead(reader, length, options, target) {
29
- let message = target ?? this.create(), end = reader.pos + length;
30
- while (reader.pos < end) {
31
- let [fieldNo, wireType] = reader.tag();
32
- switch (fieldNo) {
33
- case /* string identifier */ 1:
34
- message.identifier = reader.string();
35
- break;
36
- case /* repeated string parameters */ 2:
37
- message.parameters.push(reader.string());
38
- break;
39
- default:
40
- let u = options.readUnknownField;
41
- if (u === "throw")
42
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
43
- let d = reader.skip(wireType);
44
- if (u !== false)
45
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
46
- }
47
- }
48
- return message;
49
- }
50
- internalBinaryWrite(message, writer, options) {
51
- /* string identifier = 1; */
52
- if (message.identifier !== "")
53
- writer.tag(1, WireType.LengthDelimited).string(message.identifier);
54
- /* repeated string parameters = 2; */
55
- for (let i = 0; i < message.parameters.length; i++)
56
- writer.tag(2, WireType.LengthDelimited).string(message.parameters[i]);
57
- let u = options.writeUnknownFields;
58
- if (u !== false)
59
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
60
- return writer;
61
- }
62
- }
63
- /**
64
- * @generated MessageType for protobuf message aquila.ActionCallRequest
65
- */
66
- export const ActionCallRequest = new ActionCallRequest$Type();
67
- // @generated message type with reflection information, may provide speed optimized methods
68
- class ActionCallResponse$Type extends MessageType {
69
- constructor() {
70
- super("aquila.ActionCallResponse", [
71
- { no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
72
- ]);
73
- }
74
- create(value) {
75
- const message = globalThis.Object.create((this.messagePrototype));
76
- message.executionIdentifier = "";
77
- if (value !== undefined)
78
- reflectionMergePartial(this, message, value);
79
- return message;
80
- }
81
- internalBinaryRead(reader, length, options, target) {
82
- let message = target ?? this.create(), end = reader.pos + length;
83
- while (reader.pos < end) {
84
- let [fieldNo, wireType] = reader.tag();
85
- switch (fieldNo) {
86
- case /* string execution_identifier */ 1:
87
- message.executionIdentifier = reader.string();
88
- break;
89
- default:
90
- let u = options.readUnknownField;
91
- if (u === "throw")
92
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
93
- let d = reader.skip(wireType);
94
- if (u !== false)
95
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
96
- }
97
- }
98
- return message;
99
- }
100
- internalBinaryWrite(message, writer, options) {
101
- /* string execution_identifier = 1; */
102
- if (message.executionIdentifier !== "")
103
- writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
104
- let u = options.writeUnknownFields;
105
- if (u !== false)
106
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
107
- return writer;
108
- }
109
- }
110
- /**
111
- * @generated MessageType for protobuf message aquila.ActionCallResponse
112
- */
113
- export const ActionCallResponse = new ActionCallResponse$Type();
114
- // @generated message type with reflection information, may provide speed optimized methods
115
- class ActionResult$Type extends MessageType {
116
- constructor() {
117
- super("aquila.ActionResult", [
118
- { no: 1, name: "result", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
119
- ]);
120
- }
121
- create(value) {
122
- const message = globalThis.Object.create((this.messagePrototype));
123
- message.result = [];
124
- if (value !== undefined)
125
- reflectionMergePartial(this, message, value);
126
- return message;
127
- }
128
- internalBinaryRead(reader, length, options, target) {
129
- let message = target ?? this.create(), end = reader.pos + length;
130
- while (reader.pos < end) {
131
- let [fieldNo, wireType] = reader.tag();
132
- switch (fieldNo) {
133
- case /* repeated string result */ 1:
134
- message.result.push(reader.string());
135
- break;
136
- default:
137
- let u = options.readUnknownField;
138
- if (u === "throw")
139
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
140
- let d = reader.skip(wireType);
141
- if (u !== false)
142
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
143
- }
144
- }
145
- return message;
146
- }
147
- internalBinaryWrite(message, writer, options) {
148
- /* repeated string result = 1; */
149
- for (let i = 0; i < message.result.length; i++)
150
- writer.tag(1, WireType.LengthDelimited).string(message.result[i]);
151
- let u = options.writeUnknownFields;
152
- if (u !== false)
153
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
154
- return writer;
155
- }
156
- }
157
- /**
158
- * @generated MessageType for protobuf message aquila.ActionResult
159
- */
160
- export const ActionResult = new ActionResult$Type();
161
- // @generated message type with reflection information, may provide speed optimized methods
162
- class ActionResultRequest$Type extends MessageType {
163
- constructor() {
164
- super("aquila.ActionResultRequest", [
165
- { no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
166
- ]);
167
- }
168
- create(value) {
169
- const message = globalThis.Object.create((this.messagePrototype));
170
- message.executionIdentifier = "";
171
- if (value !== undefined)
172
- reflectionMergePartial(this, message, value);
173
- return message;
174
- }
175
- internalBinaryRead(reader, length, options, target) {
176
- let message = target ?? this.create(), end = reader.pos + length;
177
- while (reader.pos < end) {
178
- let [fieldNo, wireType] = reader.tag();
179
- switch (fieldNo) {
180
- case /* string execution_identifier */ 1:
181
- message.executionIdentifier = reader.string();
182
- break;
183
- default:
184
- let u = options.readUnknownField;
185
- if (u === "throw")
186
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
187
- let d = reader.skip(wireType);
188
- if (u !== false)
189
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
190
- }
191
- }
192
- return message;
193
- }
194
- internalBinaryWrite(message, writer, options) {
195
- /* string execution_identifier = 1; */
196
- if (message.executionIdentifier !== "")
197
- writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
198
- let u = options.writeUnknownFields;
199
- if (u !== false)
200
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
201
- return writer;
202
- }
203
- }
204
- /**
205
- * @generated MessageType for protobuf message aquila.ActionResultRequest
206
- */
207
- export const ActionResultRequest = new ActionResultRequest$Type();
208
- // @generated message type with reflection information, may provide speed optimized methods
209
- class ActionResultResponse$Type extends MessageType {
210
- constructor() {
211
- super("aquila.ActionResultResponse", [
212
- { no: 1, name: "action_result", kind: "message", T: () => ActionResult }
213
- ]);
214
- }
215
- create(value) {
216
- const message = globalThis.Object.create((this.messagePrototype));
217
- if (value !== undefined)
218
- reflectionMergePartial(this, message, value);
219
- return message;
220
- }
221
- internalBinaryRead(reader, length, options, target) {
222
- let message = target ?? this.create(), end = reader.pos + length;
223
- while (reader.pos < end) {
224
- let [fieldNo, wireType] = reader.tag();
225
- switch (fieldNo) {
226
- case /* optional aquila.ActionResult action_result */ 1:
227
- message.actionResult = ActionResult.internalBinaryRead(reader, reader.uint32(), options, message.actionResult);
228
- break;
229
- default:
230
- let u = options.readUnknownField;
231
- if (u === "throw")
232
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
233
- let d = reader.skip(wireType);
234
- if (u !== false)
235
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
236
- }
237
- }
238
- return message;
239
- }
240
- internalBinaryWrite(message, writer, options) {
241
- /* optional aquila.ActionResult action_result = 1; */
242
- if (message.actionResult)
243
- ActionResult.internalBinaryWrite(message.actionResult, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
244
- let u = options.writeUnknownFields;
245
- if (u !== false)
246
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
247
- return writer;
248
- }
249
- }
250
- /**
251
- * @generated MessageType for protobuf message aquila.ActionResultResponse
252
- */
253
- export const ActionResultResponse = new ActionResultResponse$Type();
254
- /**
255
- * @generated ServiceType for protobuf service aquila.ActionCallService
256
- */
257
- export const ActionCallService = new ServiceType("aquila.ActionCallService", [
258
- { name: "Call", options: {}, I: ActionCallRequest, O: ActionCallResponse }
259
- ]);
260
- /**
261
- * @generated ServiceType for protobuf service aquila.ActionResultService
262
- */
263
- export const ActionResultService = new ServiceType("aquila.ActionResultService", [
264
- { name: "GetResult", options: {}, I: ActionResultRequest, O: ActionResultResponse }
265
- ]);