@code0-tech/tucana 0.0.55 → 0.0.57

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.
@@ -2,6 +2,30 @@ import {Value} from "../pb/shared.struct_pb.js";
2
2
 
3
3
  type AllowedValue = null | number | string | boolean | Array<AllowedValue> | object;
4
4
 
5
+ export function toAllowedValue(value: Value): AllowedValue {
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]: AllowedValue} = {};
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
+
5
29
  export function constructValue(value: AllowedValue): Value {
6
30
  if (value === null) {
7
31
  return {kind: {oneofKind: "nullValue", nullValue: 0}};
@@ -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.55",
3
+ "version": "0.0.57",
4
4
  "description": "Code0 GRPC Protocol",
5
5
  "homepage": "https://github.com/code0-tech/tucana#readme",
6
6
  "bugs": {
@@ -9,6 +9,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
9
9
  import { MessageType } from "@protobuf-ts/runtime";
10
10
  import { ActionConfigurations } from "./shared.action_configuration_pb";
11
11
  import { Struct } from "./shared.struct_pb";
12
+ import { ActionConfigurationDefinition } from "./shared.action_configuration_pb";
12
13
  import { Value } from "./shared.struct_pb";
13
14
  /**
14
15
  * Event that gets admitted by an action
@@ -22,10 +23,16 @@ export interface Event {
22
23
  * @generated from protobuf field: string event_type = 1
23
24
  */
24
25
  eventType: string;
26
+ /**
27
+ * Project Id that this event is emitted for
28
+ *
29
+ * @generated from protobuf field: int64 project_id = 2
30
+ */
31
+ projectId: bigint;
25
32
  /**
26
33
  * Payload (JSON) of event params
27
34
  *
28
- * @generated from protobuf field: shared.Value payload = 2
35
+ * @generated from protobuf field: shared.Value payload = 3
29
36
  */
30
37
  payload?: Value;
31
38
  }
@@ -45,6 +52,10 @@ export interface ActionLogon {
45
52
  * @generated from protobuf field: string version = 2
46
53
  */
47
54
  version: string;
55
+ /**
56
+ * @generated from protobuf field: repeated shared.ActionConfigurationDefinition action_configurations = 3
57
+ */
58
+ actionConfigurations: ActionConfigurationDefinition[];
48
59
  }
49
60
  /**
50
61
  * Request to execute a request a flow
@@ -70,6 +81,12 @@ export interface ExecutionRequest {
70
81
  * @generated from protobuf field: shared.Struct parameters = 3
71
82
  */
72
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;
73
90
  }
74
91
  /**
75
92
  * Result from executed flows by an action
@@ -11,18 +11,21 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
11
11
  import { MessageType } from "@protobuf-ts/runtime";
12
12
  import { ActionConfigurations } from "./shared.action_configuration_pb";
13
13
  import { Struct } from "./shared.struct_pb";
14
+ import { ActionConfigurationDefinition } from "./shared.action_configuration_pb";
14
15
  import { Value } from "./shared.struct_pb";
15
16
  // @generated message type with reflection information, may provide speed optimized methods
16
17
  class Event$Type extends MessageType {
17
18
  constructor() {
18
19
  super("aquila.Event", [
19
20
  { no: 1, name: "event_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
20
- { no: 2, name: "payload", kind: "message", T: () => Value }
21
+ { no: 2, name: "project_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
22
+ { no: 3, name: "payload", kind: "message", T: () => Value }
21
23
  ]);
22
24
  }
23
25
  create(value) {
24
26
  const message = globalThis.Object.create((this.messagePrototype));
25
27
  message.eventType = "";
28
+ message.projectId = 0n;
26
29
  if (value !== undefined)
27
30
  reflectionMergePartial(this, message, value);
28
31
  return message;
@@ -35,7 +38,10 @@ class Event$Type extends MessageType {
35
38
  case /* string event_type */ 1:
36
39
  message.eventType = reader.string();
37
40
  break;
38
- case /* shared.Value payload */ 2:
41
+ case /* int64 project_id */ 2:
42
+ message.projectId = reader.int64().toBigInt();
43
+ break;
44
+ case /* shared.Value payload */ 3:
39
45
  message.payload = Value.internalBinaryRead(reader, reader.uint32(), options, message.payload);
40
46
  break;
41
47
  default:
@@ -53,9 +59,12 @@ class Event$Type extends MessageType {
53
59
  /* string event_type = 1; */
54
60
  if (message.eventType !== "")
55
61
  writer.tag(1, WireType.LengthDelimited).string(message.eventType);
56
- /* shared.Value payload = 2; */
62
+ /* int64 project_id = 2; */
63
+ if (message.projectId !== 0n)
64
+ writer.tag(2, WireType.Varint).int64(message.projectId);
65
+ /* shared.Value payload = 3; */
57
66
  if (message.payload)
58
- Value.internalBinaryWrite(message.payload, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
67
+ Value.internalBinaryWrite(message.payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
59
68
  let u = options.writeUnknownFields;
60
69
  if (u !== false)
61
70
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -71,13 +80,15 @@ class ActionLogon$Type extends MessageType {
71
80
  constructor() {
72
81
  super("aquila.ActionLogon", [
73
82
  { no: 1, name: "action_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
74
- { no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
83
+ { no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
84
+ { no: 3, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfigurationDefinition }
75
85
  ]);
76
86
  }
77
87
  create(value) {
78
88
  const message = globalThis.Object.create((this.messagePrototype));
79
89
  message.actionIdentifier = "";
80
90
  message.version = "";
91
+ message.actionConfigurations = [];
81
92
  if (value !== undefined)
82
93
  reflectionMergePartial(this, message, value);
83
94
  return message;
@@ -93,6 +104,9 @@ class ActionLogon$Type extends MessageType {
93
104
  case /* string version */ 2:
94
105
  message.version = reader.string();
95
106
  break;
107
+ case /* repeated shared.ActionConfigurationDefinition action_configurations */ 3:
108
+ message.actionConfigurations.push(ActionConfigurationDefinition.internalBinaryRead(reader, reader.uint32(), options));
109
+ break;
96
110
  default:
97
111
  let u = options.readUnknownField;
98
112
  if (u === "throw")
@@ -111,6 +125,9 @@ class ActionLogon$Type extends MessageType {
111
125
  /* string version = 2; */
112
126
  if (message.version !== "")
113
127
  writer.tag(2, WireType.LengthDelimited).string(message.version);
128
+ /* repeated shared.ActionConfigurationDefinition action_configurations = 3; */
129
+ for (let i = 0; i < message.actionConfigurations.length; i++)
130
+ ActionConfigurationDefinition.internalBinaryWrite(message.actionConfigurations[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
114
131
  let u = options.writeUnknownFields;
115
132
  if (u !== false)
116
133
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -127,13 +144,15 @@ class ExecutionRequest$Type extends MessageType {
127
144
  super("aquila.ExecutionRequest", [
128
145
  { no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
129
146
  { no: 2, name: "function_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
130
- { 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*/ }
131
149
  ]);
132
150
  }
133
151
  create(value) {
134
152
  const message = globalThis.Object.create((this.messagePrototype));
135
153
  message.executionIdentifier = "";
136
154
  message.functionIdentifier = "";
155
+ message.projectId = 0n;
137
156
  if (value !== undefined)
138
157
  reflectionMergePartial(this, message, value);
139
158
  return message;
@@ -152,6 +171,9 @@ class ExecutionRequest$Type extends MessageType {
152
171
  case /* shared.Struct parameters */ 3:
153
172
  message.parameters = Struct.internalBinaryRead(reader, reader.uint32(), options, message.parameters);
154
173
  break;
174
+ case /* int64 project_id */ 4:
175
+ message.projectId = reader.int64().toBigInt();
176
+ break;
155
177
  default:
156
178
  let u = options.readUnknownField;
157
179
  if (u === "throw")
@@ -173,6 +195,9 @@ class ExecutionRequest$Type extends MessageType {
173
195
  /* shared.Struct parameters = 3; */
174
196
  if (message.parameters)
175
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);
176
201
  let u = options.writeUnknownFields;
177
202
  if (u !== false)
178
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
  /**
@@ -21,24 +20,35 @@ export interface ActionConfiguration {
21
20
  */
22
21
  identifier: string;
23
22
  /**
24
- * @generated from protobuf field: int64 project_id = 2
23
+ * @generated from protobuf field: shared.Value value = 2
24
+ */
25
+ value?: Value;
26
+ }
27
+ /**
28
+ * Message representing a project configuration for an action
29
+ *
30
+ * @generated from protobuf message shared.ActionProjectConfiguration
31
+ */
32
+ export interface ActionProjectConfiguration {
33
+ /**
34
+ * @generated from protobuf field: int64 project_id = 1
25
35
  */
26
36
  projectId: bigint;
27
37
  /**
28
- * @generated from protobuf field: shared.Value value = 3
38
+ * @generated from protobuf field: repeated shared.ActionConfiguration action_configurations = 2
29
39
  */
30
- value?: Value;
40
+ actionConfigurations: ActionConfiguration[];
31
41
  }
32
42
  /**
33
- * Wrapper message containing a collection of ActionConfiguration instances
43
+ * Wrapper message containing a collection of ActionProjectConfiguration instances
34
44
  *
35
45
  * @generated from protobuf message shared.ActionConfigurations
36
46
  */
37
47
  export interface ActionConfigurations {
38
48
  /**
39
- * @generated from protobuf field: repeated shared.ActionConfiguration action_configurations = 1
49
+ * @generated from protobuf field: repeated shared.ActionProjectConfiguration action_configurations = 1
40
50
  */
41
- actionConfigurations: ActionConfiguration[];
51
+ actionConfigurations: ActionProjectConfiguration[];
42
52
  }
43
53
  /**
44
54
  * Message sent by the Action to define a configuration
@@ -55,15 +65,19 @@ export interface ActionConfigurationDefinition {
55
65
  */
56
66
  description: Translation[];
57
67
  /**
58
- * @generated from protobuf field: shared.DefinitionDataType type = 3
68
+ * @generated from protobuf field: string type = 3
69
+ */
70
+ type: string;
71
+ /**
72
+ * @generated from protobuf field: repeated string linked_data_type_identifiers = 4
59
73
  */
60
- type?: DefinitionDataType;
74
+ linkedDataTypeIdentifiers: string[];
61
75
  /**
62
- * @generated from protobuf field: optional shared.Value default_value = 4
76
+ * @generated from protobuf field: optional shared.Value default_value = 5
63
77
  */
64
78
  defaultValue?: Value;
65
79
  /**
66
- * @generated from protobuf field: string identifier = 5
80
+ * @generated from protobuf field: string identifier = 6
67
81
  */
68
82
  identifier: string;
69
83
  }
@@ -77,6 +91,16 @@ declare class ActionConfiguration$Type extends MessageType<ActionConfiguration>
77
91
  * @generated MessageType for protobuf message shared.ActionConfiguration
78
92
  */
79
93
  export declare const ActionConfiguration: ActionConfiguration$Type;
94
+ declare class ActionProjectConfiguration$Type extends MessageType<ActionProjectConfiguration> {
95
+ constructor();
96
+ create(value?: PartialMessage<ActionProjectConfiguration>): ActionProjectConfiguration;
97
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionProjectConfiguration): ActionProjectConfiguration;
98
+ internalBinaryWrite(message: ActionProjectConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
99
+ }
100
+ /**
101
+ * @generated MessageType for protobuf message shared.ActionProjectConfiguration
102
+ */
103
+ export declare const ActionProjectConfiguration: ActionProjectConfiguration$Type;
80
104
  declare class ActionConfigurations$Type extends MessageType<ActionConfigurations> {
81
105
  constructor();
82
106
  create(value?: PartialMessage<ActionConfigurations>): ActionConfigurations;
@@ -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
@@ -13,14 +12,12 @@ class ActionConfiguration$Type extends MessageType {
13
12
  constructor() {
14
13
  super("shared.ActionConfiguration", [
15
14
  { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
16
- { no: 2, name: "project_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
17
- { no: 3, name: "value", kind: "message", T: () => Value }
15
+ { no: 2, name: "value", kind: "message", T: () => Value }
18
16
  ]);
19
17
  }
20
18
  create(value) {
21
19
  const message = globalThis.Object.create((this.messagePrototype));
22
20
  message.identifier = "";
23
- message.projectId = 0n;
24
21
  if (value !== undefined)
25
22
  reflectionMergePartial(this, message, value);
26
23
  return message;
@@ -33,10 +30,7 @@ class ActionConfiguration$Type extends MessageType {
33
30
  case /* string identifier */ 1:
34
31
  message.identifier = reader.string();
35
32
  break;
36
- case /* int64 project_id */ 2:
37
- message.projectId = reader.int64().toBigInt();
38
- break;
39
- case /* shared.Value value */ 3:
33
+ case /* shared.Value value */ 2:
40
34
  message.value = Value.internalBinaryRead(reader, reader.uint32(), options, message.value);
41
35
  break;
42
36
  default:
@@ -54,12 +48,9 @@ class ActionConfiguration$Type extends MessageType {
54
48
  /* string identifier = 1; */
55
49
  if (message.identifier !== "")
56
50
  writer.tag(1, WireType.LengthDelimited).string(message.identifier);
57
- /* int64 project_id = 2; */
58
- if (message.projectId !== 0n)
59
- writer.tag(2, WireType.Varint).int64(message.projectId);
60
- /* shared.Value value = 3; */
51
+ /* shared.Value value = 2; */
61
52
  if (message.value)
62
- Value.internalBinaryWrite(message.value, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
53
+ Value.internalBinaryWrite(message.value, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
63
54
  let u = options.writeUnknownFields;
64
55
  if (u !== false)
65
56
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -71,10 +62,65 @@ class ActionConfiguration$Type extends MessageType {
71
62
  */
72
63
  export const ActionConfiguration = new ActionConfiguration$Type();
73
64
  // @generated message type with reflection information, may provide speed optimized methods
65
+ class ActionProjectConfiguration$Type extends MessageType {
66
+ constructor() {
67
+ super("shared.ActionProjectConfiguration", [
68
+ { no: 1, name: "project_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
69
+ { no: 2, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
70
+ ]);
71
+ }
72
+ create(value) {
73
+ const message = globalThis.Object.create((this.messagePrototype));
74
+ message.projectId = 0n;
75
+ message.actionConfigurations = [];
76
+ if (value !== undefined)
77
+ reflectionMergePartial(this, message, value);
78
+ return message;
79
+ }
80
+ internalBinaryRead(reader, length, options, target) {
81
+ let message = target ?? this.create(), end = reader.pos + length;
82
+ while (reader.pos < end) {
83
+ let [fieldNo, wireType] = reader.tag();
84
+ switch (fieldNo) {
85
+ case /* int64 project_id */ 1:
86
+ message.projectId = reader.int64().toBigInt();
87
+ break;
88
+ case /* repeated shared.ActionConfiguration action_configurations */ 2:
89
+ message.actionConfigurations.push(ActionConfiguration.internalBinaryRead(reader, reader.uint32(), options));
90
+ break;
91
+ default:
92
+ let u = options.readUnknownField;
93
+ if (u === "throw")
94
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
95
+ let d = reader.skip(wireType);
96
+ if (u !== false)
97
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
98
+ }
99
+ }
100
+ return message;
101
+ }
102
+ internalBinaryWrite(message, writer, options) {
103
+ /* int64 project_id = 1; */
104
+ if (message.projectId !== 0n)
105
+ writer.tag(1, WireType.Varint).int64(message.projectId);
106
+ /* repeated shared.ActionConfiguration action_configurations = 2; */
107
+ for (let i = 0; i < message.actionConfigurations.length; i++)
108
+ ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
109
+ let u = options.writeUnknownFields;
110
+ if (u !== false)
111
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
112
+ return writer;
113
+ }
114
+ }
115
+ /**
116
+ * @generated MessageType for protobuf message shared.ActionProjectConfiguration
117
+ */
118
+ export const ActionProjectConfiguration = new ActionProjectConfiguration$Type();
119
+ // @generated message type with reflection information, may provide speed optimized methods
74
120
  class ActionConfigurations$Type extends MessageType {
75
121
  constructor() {
76
122
  super("shared.ActionConfigurations", [
77
- { no: 1, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
123
+ { no: 1, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionProjectConfiguration }
78
124
  ]);
79
125
  }
80
126
  create(value) {
@@ -89,8 +135,8 @@ class ActionConfigurations$Type extends MessageType {
89
135
  while (reader.pos < end) {
90
136
  let [fieldNo, wireType] = reader.tag();
91
137
  switch (fieldNo) {
92
- case /* repeated shared.ActionConfiguration action_configurations */ 1:
93
- message.actionConfigurations.push(ActionConfiguration.internalBinaryRead(reader, reader.uint32(), options));
138
+ case /* repeated shared.ActionProjectConfiguration action_configurations */ 1:
139
+ message.actionConfigurations.push(ActionProjectConfiguration.internalBinaryRead(reader, reader.uint32(), options));
94
140
  break;
95
141
  default:
96
142
  let u = options.readUnknownField;
@@ -104,9 +150,9 @@ class ActionConfigurations$Type extends MessageType {
104
150
  return message;
105
151
  }
106
152
  internalBinaryWrite(message, writer, options) {
107
- /* repeated shared.ActionConfiguration action_configurations = 1; */
153
+ /* repeated shared.ActionProjectConfiguration action_configurations = 1; */
108
154
  for (let i = 0; i < message.actionConfigurations.length; i++)
109
- ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
155
+ ActionProjectConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
110
156
  let u = options.writeUnknownFields;
111
157
  if (u !== false)
112
158
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -123,15 +169,18 @@ class ActionConfigurationDefinition$Type extends MessageType {
123
169
  super("shared.ActionConfigurationDefinition", [
124
170
  { no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
125
171
  { no: 2, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
126
- { no: 3, name: "type", kind: "message", T: () => DefinitionDataType },
127
- { no: 4, name: "default_value", kind: "message", T: () => Value },
128
- { 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*/ }
129
176
  ]);
130
177
  }
131
178
  create(value) {
132
179
  const message = globalThis.Object.create((this.messagePrototype));
133
180
  message.name = [];
134
181
  message.description = [];
182
+ message.type = "";
183
+ message.linkedDataTypeIdentifiers = [];
135
184
  message.identifier = "";
136
185
  if (value !== undefined)
137
186
  reflectionMergePartial(this, message, value);
@@ -148,13 +197,16 @@ class ActionConfigurationDefinition$Type extends MessageType {
148
197
  case /* repeated shared.Translation description */ 2:
149
198
  message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
150
199
  break;
151
- case /* shared.DefinitionDataType type */ 3:
152
- message.type = DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options, message.type);
200
+ case /* string type */ 3:
201
+ message.type = reader.string();
202
+ break;
203
+ case /* repeated string linked_data_type_identifiers */ 4:
204
+ message.linkedDataTypeIdentifiers.push(reader.string());
153
205
  break;
154
- case /* optional shared.Value default_value */ 4:
206
+ case /* optional shared.Value default_value */ 5:
155
207
  message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
156
208
  break;
157
- case /* string identifier */ 5:
209
+ case /* string identifier */ 6:
158
210
  message.identifier = reader.string();
159
211
  break;
160
212
  default:
@@ -175,15 +227,18 @@ class ActionConfigurationDefinition$Type extends MessageType {
175
227
  /* repeated shared.Translation description = 2; */
176
228
  for (let i = 0; i < message.description.length; i++)
177
229
  Translation.internalBinaryWrite(message.description[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
178
- /* shared.DefinitionDataType type = 3; */
179
- if (message.type)
180
- DefinitionDataType.internalBinaryWrite(message.type, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
181
- /* 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; */
182
237
  if (message.defaultValue)
183
- Value.internalBinaryWrite(message.defaultValue, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
184
- /* string identifier = 5; */
238
+ Value.internalBinaryWrite(message.defaultValue, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
239
+ /* string identifier = 6; */
185
240
  if (message.identifier !== "")
186
- writer.tag(5, WireType.LengthDelimited).string(message.identifier);
241
+ writer.tag(6, WireType.LengthDelimited).string(message.identifier);
187
242
  let u = options.writeUnknownFields;
188
243
  if (u !== false)
189
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