@mochabug/adaptkit 1.0.0-rc.5 → 1.0.0-rc.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.
Files changed (93) hide show
  1. package/README.md +50 -45
  2. package/assets/build.js +1 -1
  3. package/assets/configurator.main.tsx +8 -0
  4. package/assets/configurator_browser_none.main.ts +30 -0
  5. package/assets/configurator_browser_none.ssg.ts +64 -0
  6. package/assets/configurator_none.ts +14 -103
  7. package/assets/configurator_react.tsx +8 -8
  8. package/assets/executor.html +1 -1
  9. package/assets/executor.main.tsx +8 -0
  10. package/assets/executor_action.ts +4 -8
  11. package/assets/{executor_cron_trigger.ts → executor_action_cron.ts} +4 -8
  12. package/assets/executor_browser_none.main.ts +25 -0
  13. package/assets/executor_browser_none.ssg.ts +42 -0
  14. package/assets/executor_browser_none.ts +15 -83
  15. package/assets/executor_browser_none_cron.ts +55 -0
  16. package/assets/executor_browser_react.tsx +9 -13
  17. package/assets/executor_browser_react_cron.tsx +55 -0
  18. package/assets/{executor_external_trigger.ts → executor_external.ts} +8 -12
  19. package/assets/executor_external_cron.ts +45 -0
  20. package/assets/tsconf.json +1 -2
  21. package/bin/add.d.ts.map +1 -1
  22. package/bin/genproto/buf/validate/validate_pb.d.ts +1245 -547
  23. package/bin/genproto/buf/validate/validate_pb.d.ts.map +1 -1
  24. package/bin/genproto/google/api/annotations_pb.d.ts +1 -1
  25. package/bin/genproto/google/api/client_pb.d.ts +46 -16
  26. package/bin/genproto/google/api/client_pb.d.ts.map +1 -1
  27. package/bin/genproto/google/api/http_pb.d.ts +10 -4
  28. package/bin/genproto/google/api/http_pb.d.ts.map +1 -1
  29. package/bin/genproto/google/api/launch_stage_pb.d.ts +1 -1
  30. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +4 -2
  31. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -1
  32. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +192 -16
  33. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -1
  34. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +4 -2
  35. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -1
  36. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +309 -53
  37. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -1
  38. package/bin/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
  39. package/bin/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
  40. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +101 -27
  41. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -1
  42. package/bin/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
  43. package/bin/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
  44. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +16 -2
  45. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -1
  46. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +53 -8
  47. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -1
  48. package/bin/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts +353 -0
  49. package/bin/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts.map +1 -0
  50. package/bin/genproto/mochabugapis/adapt/graph/{vertex_config_pb.d.ts → vertex_metadata_pb.d.ts} +28 -23
  51. package/bin/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
  52. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
  53. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
  54. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +4 -2
  55. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -1
  56. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
  57. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
  58. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +188 -23
  59. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
  60. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +129 -39
  61. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -1
  62. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +50 -6
  63. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -1
  64. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +145 -20
  65. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -1
  66. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
  67. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
  68. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +134 -4
  69. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -1
  70. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +92 -55
  71. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
  72. package/bin/index.d.ts +5 -0
  73. package/bin/index.d.ts.map +1 -1
  74. package/bin/index.js +709 -652
  75. package/bin/index.js.map +4 -4
  76. package/bin/init.d.ts.map +1 -1
  77. package/bin/oauth2.d.ts +1 -1
  78. package/bin/oauth2.d.ts.map +1 -1
  79. package/bin/publish.d.ts +4 -0
  80. package/bin/publish.d.ts.map +1 -1
  81. package/bin/utils.d.ts +4 -4
  82. package/bin/utils.d.ts.map +1 -1
  83. package/bin/vertices.d.ts +2 -2
  84. package/bin/vertices.d.ts.map +1 -1
  85. package/package.json +23 -18
  86. package/assets/license.md +0 -15
  87. package/bin/genproto/mochabugapis/adapt/graph/vertex_config_pb.d.ts.map +0 -1
  88. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +0 -92
  89. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts.map +0 -1
  90. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +0 -134
  91. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts.map +0 -1
  92. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +0 -159
  93. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts.map +0 -1
@@ -1,86 +1,317 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { Value, ValueJson } from "@bufbuild/protobuf/wkt";
3
- import type { SignalDescriptor, SignalDescriptorJson } from "./signal_descriptor_pb";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { SignalFormat, SignalFormatJson } from "./signal_format_pb";
4
3
  import type { Message } from "@bufbuild/protobuf";
5
4
  /**
6
5
  * Describes the file mochabugapis/adapt/graph/signal_binding.proto.
7
6
  */
8
7
  export declare const file_mochabugapis_adapt_graph_signal_binding: GenFile;
9
8
  /**
10
- * Receiver represents an input point for a vertex, which can bind
11
- * to multiple signals.
9
+ * SignalBinding represents an input point for a vertex in the computation graph.
10
+ * Unlike SignalDescriptor which describes what a signal IS (producing one specific format),
11
+ * a binding describes what formats an input ACCEPTS (potentially accepting multiple formats).
12
+ *
13
+ * Bindings enable flexible graph construction by allowing vertices to accept data in
14
+ * various compatible formats. For example, a text display component might accept strings,
15
+ * numbers, dates, and booleans, while an image viewer might accept image/* MIME types.
16
+ *
17
+ * The binding is connected via a reference — either to a signal in the graph or to a
18
+ * project-level constant. Validation ensures the format matches one of the accepted formats.
12
19
  *
13
20
  * @generated from message mochabugapis.adapt.graph.SignalBinding
14
21
  */
15
22
  export type SignalBinding = Message<"mochabugapis.adapt.graph.SignalBinding"> & {
16
23
  /**
17
- * The actual signal descriptor.
24
+ * Identifier for this binding point, following ECMAScript identifier conventions.
25
+ * Must be unique within the vertex's binding collection.
26
+ *
27
+ * Pattern: Must start with letter, $, or _, followed by letters, digits, $, or _
28
+ * Length: 1-50 characters
18
29
  *
19
- * @generated from field: mochabugapis.adapt.graph.SignalDescriptor descriptor = 1;
30
+ * Examples: "inputText", "image_data", "$config", "_internalParam"
31
+ *
32
+ * @generated from field: string name = 1;
20
33
  */
21
- descriptor?: SignalDescriptor;
34
+ name: string;
22
35
  /**
23
- * The binding can be a reference to another signal or a constant value.
24
- * not required to be set if the descriptor is optional
36
+ * Human-readable label for the binding, suitable for display in user interfaces.
37
+ * Describes what this input represents in the context of the vertex.
38
+ *
39
+ * Length: Up to 250 characters
25
40
  *
26
- * @generated from oneof mochabugapis.adapt.graph.SignalBinding.binding
41
+ * Examples: "Text to Display", "Source Image", "Configuration Object"
42
+ *
43
+ * @generated from field: optional string label = 2;
27
44
  */
28
- binding: {
29
- /**
30
- * A reference to another signal <vertexid>:<transmitter>:<signal>
31
- *
32
- * @generated from field: string reference = 2;
33
- */
34
- value: string;
35
- case: "reference";
36
- } | {
37
- /**
38
- * A constant value (must validate against the descriptor)
39
- *
40
- * @generated from field: google.protobuf.Value constant = 3;
41
- */
42
- value: Value;
43
- case: "constant";
44
- } | {
45
- case: undefined;
46
- value?: undefined;
47
- };
45
+ label?: string;
48
46
  /**
49
- * The binding may also have one of the 3 error codes
47
+ * Detailed description of the binding's purpose and accepted data.
48
+ * Should document what the vertex does with this input and any constraints.
49
+ *
50
+ * Length: Up to 1000 characters
51
+ *
52
+ * May include:
53
+ * - What the binding represents in the vertex's operation
54
+ * - How the data is used or transformed
55
+ * - Constraints on values or formats
56
+ * - Examples of valid inputs
50
57
  *
51
- * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 4;
58
+ * @generated from field: optional string description = 3;
59
+ */
60
+ description?: string;
61
+ /**
62
+ * Indicates whether this binding must be connected.
63
+ *
64
+ * When false or unset: Binding is required and must be connected
65
+ * When true: Binding is optional and may be left unbound
66
+ *
67
+ * Optional bindings provide flexibility, allowing vertices to function
68
+ * with or without certain inputs (e.g., optional configuration parameters).
69
+ *
70
+ * @generated from field: optional bool optional = 4;
71
+ */
72
+ optional?: boolean;
73
+ /**
74
+ * List of formats this binding accepts. The binding will accept any signal whose
75
+ * format matches at least one entry in this list.
76
+ *
77
+ * Format matching rules:
78
+ * - JTD schemas: Structural compatibility according to JTD specification
79
+ * - MIME types (exact): Exact string match (case-insensitive)
80
+ * - MIME types (wildcard): Pattern matching with * wildcards
81
+ * - "image/*" matches "image/png", "image/jpeg", "image/webp", etc.
82
+ * - "text/*" matches "text/plain", "text/html", "text/csv", etc.
83
+ * - "application/*" matches any application type
84
+ *
85
+ * Common patterns:
86
+ *
87
+ * Example 1: Text display (accepts primitive types for display as text)
88
+ * accepts = [
89
+ * { jtd_schema: { type: "string" } },
90
+ * { jtd_schema: { type: "float32" } },
91
+ * { jtd_schema: { type: "float64" } },
92
+ * { jtd_schema: { type: "int32" } },
93
+ * { jtd_schema: { type: "boolean" } },
94
+ * { jtd_schema: { type: "timestamp" } }
95
+ * ]
96
+ *
97
+ * Example 2: Image viewer (accepts displayable image formats)
98
+ * accepts = [
99
+ * { mime_type: "image/*" } // Accepts any image type
100
+ * ]
101
+ *
102
+ * Example 3: Document viewer (accepts specific document types)
103
+ * accepts = [
104
+ * { mime_type: "application/pdf" },
105
+ * { mime_type: "text/html" },
106
+ * { mime_type: "text/plain" }
107
+ * ]
108
+ *
109
+ * Example 4: Data processor (accepts structured data)
110
+ * accepts = [
111
+ * { jtd_schema: { elements: { type: "string" } } }, // Array of strings
112
+ * { jtd_schema: { properties: { id: { type: "string" } } } } // Object with id
113
+ * ]
114
+ *
115
+ * Validation: At least one format must be specified. Maximum 50 formats to prevent
116
+ * overly permissive bindings and ensure reasonable validation performance.
117
+ *
118
+ * @generated from field: repeated mochabugapis.adapt.graph.SignalFormat accepts = 5;
119
+ */
120
+ accepts: SignalFormat[];
121
+ /**
122
+ * Reference to another signal in the graph, or a project-level constant.
123
+ *
124
+ * Signal reference format: <vertex_id>/<transmitter_name>/<signal_name>
125
+ * - vertex_id: 4-character alphanumeric identifier (lowercase)
126
+ * - transmitter_name: ECMAScript identifier for the output transmitter
127
+ * - signal_name: ECMAScript identifier for the specific signal
128
+ *
129
+ * Constant reference format: constant/<constant_name>
130
+ * - constant_name: ECMAScript identifier for the project-level constant
131
+ *
132
+ * Examples:
133
+ * - "a1b2/output/temperature" (signal reference)
134
+ * - "xyz9/results/processedData" (signal reference)
135
+ * - "constant/apiKey" (constant reference)
136
+ * - "constant/threshold" (constant reference)
137
+ *
138
+ * Signal references are resolved during execution by reading from the
139
+ * referenced transmitter. Constant references are baked into the published
140
+ * run and must be valid at publish time.
141
+ *
142
+ * The referenced signal's or constant's format must match one of the
143
+ * accepted formats. Validation occurs at graph construction time.
144
+ *
145
+ * @generated from field: string reference = 6;
146
+ */
147
+ reference: string;
148
+ /**
149
+ * Error state of this binding, if any.
150
+ * Set by the graph validation system when issues are detected.
151
+ * Should not be set to ERROR_UNSPECIFIED (value 0).
152
+ *
153
+ * When unset: Binding is valid
154
+ * When set: Binding has the specified error and requires correction
155
+ *
156
+ * Applications should check this field and provide appropriate user feedback
157
+ * for bindings in error states.
158
+ *
159
+ * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 8;
52
160
  */
53
161
  error?: SignalBinding_Error;
54
162
  };
55
163
  /**
56
- * Receiver represents an input point for a vertex, which can bind
57
- * to multiple signals.
164
+ * SignalBinding represents an input point for a vertex in the computation graph.
165
+ * Unlike SignalDescriptor which describes what a signal IS (producing one specific format),
166
+ * a binding describes what formats an input ACCEPTS (potentially accepting multiple formats).
167
+ *
168
+ * Bindings enable flexible graph construction by allowing vertices to accept data in
169
+ * various compatible formats. For example, a text display component might accept strings,
170
+ * numbers, dates, and booleans, while an image viewer might accept image/* MIME types.
171
+ *
172
+ * The binding is connected via a reference — either to a signal in the graph or to a
173
+ * project-level constant. Validation ensures the format matches one of the accepted formats.
58
174
  *
59
175
  * @generated from message mochabugapis.adapt.graph.SignalBinding
60
176
  */
61
177
  export type SignalBindingJson = {
62
178
  /**
63
- * The actual signal descriptor.
179
+ * Identifier for this binding point, following ECMAScript identifier conventions.
180
+ * Must be unique within the vertex's binding collection.
181
+ *
182
+ * Pattern: Must start with letter, $, or _, followed by letters, digits, $, or _
183
+ * Length: 1-50 characters
184
+ *
185
+ * Examples: "inputText", "image_data", "$config", "_internalParam"
64
186
  *
65
- * @generated from field: mochabugapis.adapt.graph.SignalDescriptor descriptor = 1;
187
+ * @generated from field: string name = 1;
66
188
  */
67
- descriptor?: SignalDescriptorJson;
189
+ name?: string;
68
190
  /**
69
- * A reference to another signal <vertexid>:<transmitter>:<signal>
191
+ * Human-readable label for the binding, suitable for display in user interfaces.
192
+ * Describes what this input represents in the context of the vertex.
193
+ *
194
+ * Length: Up to 250 characters
195
+ *
196
+ * Examples: "Text to Display", "Source Image", "Configuration Object"
70
197
  *
71
- * @generated from field: string reference = 2;
198
+ * @generated from field: optional string label = 2;
72
199
  */
73
- reference?: string;
200
+ label?: string;
74
201
  /**
75
- * A constant value (must validate against the descriptor)
202
+ * Detailed description of the binding's purpose and accepted data.
203
+ * Should document what the vertex does with this input and any constraints.
204
+ *
205
+ * Length: Up to 1000 characters
206
+ *
207
+ * May include:
208
+ * - What the binding represents in the vertex's operation
209
+ * - How the data is used or transformed
210
+ * - Constraints on values or formats
211
+ * - Examples of valid inputs
76
212
  *
77
- * @generated from field: google.protobuf.Value constant = 3;
213
+ * @generated from field: optional string description = 3;
78
214
  */
79
- constant?: ValueJson;
215
+ description?: string;
80
216
  /**
81
- * The binding may also have one of the 3 error codes
217
+ * Indicates whether this binding must be connected.
218
+ *
219
+ * When false or unset: Binding is required and must be connected
220
+ * When true: Binding is optional and may be left unbound
221
+ *
222
+ * Optional bindings provide flexibility, allowing vertices to function
223
+ * with or without certain inputs (e.g., optional configuration parameters).
82
224
  *
83
- * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 4;
225
+ * @generated from field: optional bool optional = 4;
226
+ */
227
+ optional?: boolean;
228
+ /**
229
+ * List of formats this binding accepts. The binding will accept any signal whose
230
+ * format matches at least one entry in this list.
231
+ *
232
+ * Format matching rules:
233
+ * - JTD schemas: Structural compatibility according to JTD specification
234
+ * - MIME types (exact): Exact string match (case-insensitive)
235
+ * - MIME types (wildcard): Pattern matching with * wildcards
236
+ * - "image/*" matches "image/png", "image/jpeg", "image/webp", etc.
237
+ * - "text/*" matches "text/plain", "text/html", "text/csv", etc.
238
+ * - "application/*" matches any application type
239
+ *
240
+ * Common patterns:
241
+ *
242
+ * Example 1: Text display (accepts primitive types for display as text)
243
+ * accepts = [
244
+ * { jtd_schema: { type: "string" } },
245
+ * { jtd_schema: { type: "float32" } },
246
+ * { jtd_schema: { type: "float64" } },
247
+ * { jtd_schema: { type: "int32" } },
248
+ * { jtd_schema: { type: "boolean" } },
249
+ * { jtd_schema: { type: "timestamp" } }
250
+ * ]
251
+ *
252
+ * Example 2: Image viewer (accepts displayable image formats)
253
+ * accepts = [
254
+ * { mime_type: "image/*" } // Accepts any image type
255
+ * ]
256
+ *
257
+ * Example 3: Document viewer (accepts specific document types)
258
+ * accepts = [
259
+ * { mime_type: "application/pdf" },
260
+ * { mime_type: "text/html" },
261
+ * { mime_type: "text/plain" }
262
+ * ]
263
+ *
264
+ * Example 4: Data processor (accepts structured data)
265
+ * accepts = [
266
+ * { jtd_schema: { elements: { type: "string" } } }, // Array of strings
267
+ * { jtd_schema: { properties: { id: { type: "string" } } } } // Object with id
268
+ * ]
269
+ *
270
+ * Validation: At least one format must be specified. Maximum 50 formats to prevent
271
+ * overly permissive bindings and ensure reasonable validation performance.
272
+ *
273
+ * @generated from field: repeated mochabugapis.adapt.graph.SignalFormat accepts = 5;
274
+ */
275
+ accepts?: SignalFormatJson[];
276
+ /**
277
+ * Reference to another signal in the graph, or a project-level constant.
278
+ *
279
+ * Signal reference format: <vertex_id>/<transmitter_name>/<signal_name>
280
+ * - vertex_id: 4-character alphanumeric identifier (lowercase)
281
+ * - transmitter_name: ECMAScript identifier for the output transmitter
282
+ * - signal_name: ECMAScript identifier for the specific signal
283
+ *
284
+ * Constant reference format: constant/<constant_name>
285
+ * - constant_name: ECMAScript identifier for the project-level constant
286
+ *
287
+ * Examples:
288
+ * - "a1b2/output/temperature" (signal reference)
289
+ * - "xyz9/results/processedData" (signal reference)
290
+ * - "constant/apiKey" (constant reference)
291
+ * - "constant/threshold" (constant reference)
292
+ *
293
+ * Signal references are resolved during execution by reading from the
294
+ * referenced transmitter. Constant references are baked into the published
295
+ * run and must be valid at publish time.
296
+ *
297
+ * The referenced signal's or constant's format must match one of the
298
+ * accepted formats. Validation occurs at graph construction time.
299
+ *
300
+ * @generated from field: string reference = 6;
301
+ */
302
+ reference?: string;
303
+ /**
304
+ * Error state of this binding, if any.
305
+ * Set by the graph validation system when issues are detected.
306
+ * Should not be set to ERROR_UNSPECIFIED (value 0).
307
+ *
308
+ * When unset: Binding is valid
309
+ * When set: Binding has the specified error and requires correction
310
+ *
311
+ * Applications should check this field and provide appropriate user feedback
312
+ * for bindings in error states.
313
+ *
314
+ * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 8;
84
315
  */
85
316
  error?: SignalBinding_ErrorJson;
86
317
  };
@@ -88,40 +319,65 @@ export type SignalBindingJson = {
88
319
  * Describes the message mochabugapis.adapt.graph.SignalBinding.
89
320
  * Use `create(SignalBindingSchema)` to create a new message.
90
321
  */
91
- export declare const SignalBindingSchema: GenMessage<SignalBinding, SignalBindingJson>;
322
+ export declare const SignalBindingSchema: GenMessage<SignalBinding, {
323
+ jsonType: SignalBindingJson;
324
+ }>;
92
325
  /**
93
- * Some error codes that can appear on the binding
326
+ * Error codes that can occur during binding validation or resolution.
327
+ * These errors are typically set by the graph validation system.
94
328
  *
95
329
  * @generated from enum mochabugapis.adapt.graph.SignalBinding.Error
96
330
  */
97
331
  export declare enum SignalBinding_Error {
98
332
  /**
99
- * Not specified
333
+ * No error specified. This value should never be explicitly set as it indicates
334
+ * the absence of an error. The error field should be unset for valid bindings.
100
335
  *
101
336
  * @generated from enum value: ERROR_UNSPECIFIED = 0;
102
337
  */
103
338
  UNSPECIFIED = 0,
104
339
  /**
105
- * Binding is missing, the signal is unbound even though the descriptor requires it to be bound
340
+ * The binding is unbound (no reference provided) despite being required.
341
+ * This occurs when:
342
+ * - The binding is not marked as optional
343
+ * - The 'reference' field is not set
344
+ *
345
+ * Resolution: Provide a signal reference or a constant reference.
106
346
  *
107
347
  * @generated from enum value: ERROR_UNBOUND = 1;
108
348
  */
109
349
  UNBOUND = 1,
110
350
  /**
111
- * The source does not exist
351
+ * The referenced signal source does not exist in the graph.
352
+ * This occurs when:
353
+ * - The reference points to a non-existent vertex ID
354
+ * - The transmitter name doesn't exist on the referenced vertex
355
+ * - The signal name doesn't exist on the specified transmitter
356
+ *
357
+ * Resolution: Verify the signal reference path and ensure the source vertex,
358
+ * transmitter, and signal all exist.
112
359
  *
113
360
  * @generated from enum value: ERROR_INVALID_SOURCE = 2;
114
361
  */
115
362
  INVALID_SOURCE = 2,
116
363
  /**
117
- * The schema does not match, the source is valid
364
+ * The signal format doesn't match any of the accepted formats.
365
+ * This occurs when:
366
+ * - The source signal's format (from SignalDescriptor) doesn't match any
367
+ * format in the 'accepts' list
368
+ * - JTD schema validation fails
369
+ * - MIME type mismatch (including wildcard matching failures)
370
+ *
371
+ * Resolution: Either change the binding to accept the source signal's format,
372
+ * or use a different signal source with a compatible format.
118
373
  *
119
374
  * @generated from enum value: ERROR_SCHEMA_MISMATCH = 3;
120
375
  */
121
376
  SCHEMA_MISMATCH = 3
122
377
  }
123
378
  /**
124
- * Some error codes that can appear on the binding
379
+ * Error codes that can occur during binding validation or resolution.
380
+ * These errors are typically set by the graph validation system.
125
381
  *
126
382
  * @generated from enum mochabugapis.adapt.graph.SignalBinding.Error
127
383
  */
@@ -1 +1 @@
1
- {"version":3,"file":"signal_binding_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/signal_binding_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAErF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,OACypB,CAAC;AAErtB;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IAC9E;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;;;OAKG;IACH,OAAO,EAAE;QACP;;;;WAIG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,WAAW,CAAC;KACnB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,UAAU,CAAC;KAClB,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;IAE3C;;;;OAIG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAElC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;OAIG;IACH,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,EAAE,iBAAiB,CACf,CAAC;AAE/D;;;;GAIG;AACH,oBAAY,mBAAmB;IAC7B;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;OAIG;IACH,OAAO,IAAI;IAEX;;;;OAIG;IACH,cAAc,IAAI;IAElB;;;;OAIG;IACH,eAAe,IAAI;CACpB;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,eAAe,GAAG,sBAAsB,GAAG,uBAAuB,CAAC;AAE/H;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,mBAAmB,EAAE,uBAAuB,CAC9B,CAAC"}
1
+ {"version":3,"file":"signal_binding_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/signal_binding_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,OACy6B,CAAC;AAEr+B;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IAC9E;;;;;;;;;;OAUG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;IAExB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAE7B;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,EAAE;IAAC,QAAQ,EAAE,iBAAiB,CAAA;CAAC,CAC3B,CAAC;AAE/D;;;;;GAKG;AACH,oBAAY,mBAAmB;IAC7B;;;;;OAKG;IACH,WAAW,IAAI;IAEf;;;;;;;;;OASG;IACH,OAAO,IAAI;IAEX;;;;;;;;;;;OAWG;IACH,cAAc,IAAI;IAElB;;;;;;;;;;;;OAYG;IACH,eAAe,IAAI;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,eAAe,GAAG,sBAAsB,GAAG,uBAAuB,CAAC;AAE/H;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,mBAAmB,EAAE,uBAAuB,CAC9B,CAAC"}
@@ -0,0 +1,198 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file mochabugapis/adapt/graph/signal_data.proto.
5
+ */
6
+ export declare const file_mochabugapis_adapt_graph_signal_data: GenFile;
7
+ /**
8
+ * This represents the actual data in the system
9
+ *
10
+ * @generated from message mochabugapis.adapt.graph.SignalData
11
+ */
12
+ export type SignalData = Message<"mochabugapis.adapt.graph.SignalData"> & {
13
+ /**
14
+ * An optional filename associated with the signal.
15
+ * Supports international filenames with Unicode characters.
16
+ * Can include extension (e.g., "document.pdf") or be extension-less (e.g., "README").
17
+ *
18
+ * Supported characters:
19
+ * - All Unicode characters (international support)
20
+ * - All printable ASCII including special characters
21
+ * - Spaces, dots, hyphens, underscores anywhere in the filename
22
+ *
23
+ * Blocked characters (filesystem-illegal):
24
+ * - Path separators: / \
25
+ * - Windows-illegal: < > : " | ? *
26
+ * - Control characters: null bytes, newlines, tabs, etc. (0x00-0x1F)
27
+ *
28
+ * Additional restrictions:
29
+ * - Cannot start or end with whitespace (enforced by CEL)
30
+ * - Maximum length: 255 characters (filesystem compatibility)
31
+ *
32
+ * Examples:
33
+ * ✅ "document.pdf"
34
+ * ✅ "my-file_v2.txt"
35
+ * ✅ "Report (Final).docx"
36
+ * ✅ "résumé.pdf" (French accents)
37
+ * ✅ "文档.pdf" (Chinese)
38
+ * ✅ "файл.txt" (Cyrillic)
39
+ * ✅ "Project #2.xlsx"
40
+ * ✅ ".gitignore" (hidden files allowed)
41
+ * ❌ " file.txt" (starts with space)
42
+ * ❌ "file.txt " (ends with space)
43
+ * ❌ "path/to/file.txt" (contains path separator)
44
+ * ❌ "file\0.txt" (contains null byte)
45
+ * ❌ "file<name>.txt" (contains Windows-illegal char)
46
+ *
47
+ * @generated from field: optional string filename = 1;
48
+ */
49
+ filename?: string;
50
+ /**
51
+ * The MIME type of the signal data.
52
+ * Must be a **concrete** MIME type conforming to RFC 6838 (NO wildcards allowed).
53
+ *
54
+ * This field specifies the actual format of the binary data in the `data` field.
55
+ * Unlike SignalFormat which can use wildcards for format families, SignalData
56
+ * represents actual concrete data and must have a specific MIME type.
57
+ *
58
+ * Format requirements:
59
+ * - Structure: type/subtype (e.g., "image/png", "application/pdf")
60
+ * - Type must be concrete alphanumeric (no wildcards)
61
+ * - Subtype must be concrete alphanumeric (no wildcards)
62
+ * - NO parameters allowed (no semicolons or charset specifications)
63
+ * - Case-insensitive but conventionally lowercase
64
+ * - Maximum length: 255 characters (127 for type + "/" + 127 for subtype)
65
+ *
66
+ * **No wildcards**: Unlike SignalFormat, wildcards are FORBIDDEN here because
67
+ * this represents actual data which must have a concrete format.
68
+ * ❌ "*\/*" - Forbidden (data must have specific format)
69
+ * ❌ "image/*" - Forbidden (data must be specific image format)
70
+ * ❌ "*\/png" - Forbidden (semantically invalid anyway)
71
+ * ✅ "image/png" - Valid (concrete format)
72
+ * ✅ "application/pdf" - Valid (concrete format)
73
+ *
74
+ * **Character Encoding Assumption**:
75
+ * All text-based formats (text/*, application/json, application/xml, etc.) are
76
+ * assumed to use UTF-8 encoding. Charset parameters are forbidden.
77
+ *
78
+ * Examples of forbidden formats:
79
+ * ❌ "text/plain; charset=utf-8" (parameters not allowed)
80
+ * ❌ "image/*" (wildcards not allowed)
81
+ * ❌ "*\/*" (wildcards not allowed)
82
+ *
83
+ * Common concrete examples:
84
+ * - Images: "image/png", "image/jpeg", "image/webp", "image/gif", "image/svg+xml"
85
+ * - Documents: "application/pdf", "text/html", "text/markdown", "text/plain"
86
+ * - Data: "application/json", "application/xml", "text/csv"
87
+ * - Binary: "application/octet-stream", "application/zip"
88
+ *
89
+ * @generated from field: string mime_type = 2;
90
+ */
91
+ mimeType: string;
92
+ /**
93
+ * The actual raw binary data
94
+ *
95
+ * @generated from field: bytes data = 3;
96
+ */
97
+ data: Uint8Array;
98
+ };
99
+ /**
100
+ * This represents the actual data in the system
101
+ *
102
+ * @generated from message mochabugapis.adapt.graph.SignalData
103
+ */
104
+ export type SignalDataJson = {
105
+ /**
106
+ * An optional filename associated with the signal.
107
+ * Supports international filenames with Unicode characters.
108
+ * Can include extension (e.g., "document.pdf") or be extension-less (e.g., "README").
109
+ *
110
+ * Supported characters:
111
+ * - All Unicode characters (international support)
112
+ * - All printable ASCII including special characters
113
+ * - Spaces, dots, hyphens, underscores anywhere in the filename
114
+ *
115
+ * Blocked characters (filesystem-illegal):
116
+ * - Path separators: / \
117
+ * - Windows-illegal: < > : " | ? *
118
+ * - Control characters: null bytes, newlines, tabs, etc. (0x00-0x1F)
119
+ *
120
+ * Additional restrictions:
121
+ * - Cannot start or end with whitespace (enforced by CEL)
122
+ * - Maximum length: 255 characters (filesystem compatibility)
123
+ *
124
+ * Examples:
125
+ * ✅ "document.pdf"
126
+ * ✅ "my-file_v2.txt"
127
+ * ✅ "Report (Final).docx"
128
+ * ✅ "résumé.pdf" (French accents)
129
+ * ✅ "文档.pdf" (Chinese)
130
+ * ✅ "файл.txt" (Cyrillic)
131
+ * ✅ "Project #2.xlsx"
132
+ * ✅ ".gitignore" (hidden files allowed)
133
+ * ❌ " file.txt" (starts with space)
134
+ * ❌ "file.txt " (ends with space)
135
+ * ❌ "path/to/file.txt" (contains path separator)
136
+ * ❌ "file\0.txt" (contains null byte)
137
+ * ❌ "file<name>.txt" (contains Windows-illegal char)
138
+ *
139
+ * @generated from field: optional string filename = 1;
140
+ */
141
+ filename?: string;
142
+ /**
143
+ * The MIME type of the signal data.
144
+ * Must be a **concrete** MIME type conforming to RFC 6838 (NO wildcards allowed).
145
+ *
146
+ * This field specifies the actual format of the binary data in the `data` field.
147
+ * Unlike SignalFormat which can use wildcards for format families, SignalData
148
+ * represents actual concrete data and must have a specific MIME type.
149
+ *
150
+ * Format requirements:
151
+ * - Structure: type/subtype (e.g., "image/png", "application/pdf")
152
+ * - Type must be concrete alphanumeric (no wildcards)
153
+ * - Subtype must be concrete alphanumeric (no wildcards)
154
+ * - NO parameters allowed (no semicolons or charset specifications)
155
+ * - Case-insensitive but conventionally lowercase
156
+ * - Maximum length: 255 characters (127 for type + "/" + 127 for subtype)
157
+ *
158
+ * **No wildcards**: Unlike SignalFormat, wildcards are FORBIDDEN here because
159
+ * this represents actual data which must have a concrete format.
160
+ * ❌ "*\/*" - Forbidden (data must have specific format)
161
+ * ❌ "image/*" - Forbidden (data must be specific image format)
162
+ * ❌ "*\/png" - Forbidden (semantically invalid anyway)
163
+ * ✅ "image/png" - Valid (concrete format)
164
+ * ✅ "application/pdf" - Valid (concrete format)
165
+ *
166
+ * **Character Encoding Assumption**:
167
+ * All text-based formats (text/*, application/json, application/xml, etc.) are
168
+ * assumed to use UTF-8 encoding. Charset parameters are forbidden.
169
+ *
170
+ * Examples of forbidden formats:
171
+ * ❌ "text/plain; charset=utf-8" (parameters not allowed)
172
+ * ❌ "image/*" (wildcards not allowed)
173
+ * ❌ "*\/*" (wildcards not allowed)
174
+ *
175
+ * Common concrete examples:
176
+ * - Images: "image/png", "image/jpeg", "image/webp", "image/gif", "image/svg+xml"
177
+ * - Documents: "application/pdf", "text/html", "text/markdown", "text/plain"
178
+ * - Data: "application/json", "application/xml", "text/csv"
179
+ * - Binary: "application/octet-stream", "application/zip"
180
+ *
181
+ * @generated from field: string mime_type = 2;
182
+ */
183
+ mimeType?: string;
184
+ /**
185
+ * The actual raw binary data
186
+ *
187
+ * @generated from field: bytes data = 3;
188
+ */
189
+ data?: string;
190
+ };
191
+ /**
192
+ * Describes the message mochabugapis.adapt.graph.SignalData.
193
+ * Use `create(SignalDataSchema)` to create a new message.
194
+ */
195
+ export declare const SignalDataSchema: GenMessage<SignalData, {
196
+ jsonType: SignalDataJson;
197
+ }>;
198
+ //# sourceMappingURL=signal_data_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signal_data_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/signal_data_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,OAC8zD,CAAC;AAEv3D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,qCAAqC,CAAC,GAAG;IACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,UAAU,EAAE;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAC,CACrB,CAAC"}