@mochabug/adaptkit 1.0.0-rc.32 → 1.0.0-rc.34

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,85 +1,358 @@
1
1
  import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
- import type { SignalDescriptor, SignalDescriptorJson } from "./signal_descriptor_pb";
2
+ import type { SignalData, SignalDataJson } from "./signal_data_pb";
3
+ import type { SignalFormat, SignalFormatJson } from "./signal_format_pb";
3
4
  import type { Message } from "@bufbuild/protobuf";
4
5
  /**
5
6
  * Describes the file mochabugapis/adapt/graph/signal_binding.proto.
6
7
  */
7
8
  export declare const file_mochabugapis_adapt_graph_signal_binding: GenFile;
8
9
  /**
9
- * Receiver represents an input point for a vertex, which can bind
10
- * to multiple signals.
10
+ * SignalBinding represents an input point for a vertex in the computation graph.
11
+ * Unlike SignalDescriptor which describes what a signal IS (producing one specific format),
12
+ * a binding describes what formats an input ACCEPTS (potentially accepting multiple formats).
13
+ *
14
+ * Bindings enable flexible graph construction by allowing vertices to accept data in
15
+ * various compatible formats. For example, a text display component might accept strings,
16
+ * numbers, dates, and booleans, while an image viewer might accept image/* MIME types.
17
+ *
18
+ * The binding can be connected to a signal reference or assigned a constant value.
19
+ * Runtime validation ensures the bound signal's format matches one of the accepted formats.
11
20
  *
12
21
  * @generated from message mochabugapis.adapt.graph.SignalBinding
13
22
  */
14
23
  export type SignalBinding = Message<"mochabugapis.adapt.graph.SignalBinding"> & {
15
24
  /**
16
- * The actual signal descriptor.
25
+ * Identifier for this binding point, following ECMAScript identifier conventions.
26
+ * Must be unique within the vertex's binding collection.
27
+ *
28
+ * Pattern: Must start with letter, $, or _, followed by letters, digits, $, or _
29
+ * Length: 1-50 characters
30
+ *
31
+ * Examples: "inputText", "image_data", "$config", "_internalParam"
32
+ *
33
+ * @generated from field: string name = 1;
34
+ */
35
+ name: string;
36
+ /**
37
+ * Human-readable label for the binding, suitable for display in user interfaces.
38
+ * Describes what this input represents in the context of the vertex.
39
+ *
40
+ * Length: Up to 250 characters
41
+ *
42
+ * Examples: "Text to Display", "Source Image", "Configuration Object"
43
+ *
44
+ * @generated from field: optional string label = 2;
45
+ */
46
+ label?: string;
47
+ /**
48
+ * Detailed description of the binding's purpose and accepted data.
49
+ * Should document what the vertex does with this input and any constraints.
50
+ *
51
+ * Length: Up to 1000 characters
52
+ *
53
+ * May include:
54
+ * - What the binding represents in the vertex's operation
55
+ * - How the data is used or transformed
56
+ * - Constraints on values or formats
57
+ * - Examples of valid inputs
58
+ *
59
+ * @generated from field: optional string description = 3;
60
+ */
61
+ description?: string;
62
+ /**
63
+ * Indicates whether this binding must be connected.
64
+ *
65
+ * When false or unset: Binding is required and must be connected
66
+ * When true: Binding is optional and may be left unbound
67
+ *
68
+ * Optional bindings provide flexibility, allowing vertices to function
69
+ * with or without certain inputs (e.g., optional configuration parameters).
70
+ *
71
+ * @generated from field: optional bool optional = 4;
72
+ */
73
+ optional?: boolean;
74
+ /**
75
+ * List of formats this binding accepts. The binding will accept any signal whose
76
+ * format matches at least one entry in this list.
77
+ *
78
+ * Format matching rules:
79
+ * - JTD schemas: Structural compatibility according to JTD specification
80
+ * - MIME types (exact): Exact string match (case-insensitive)
81
+ * - MIME types (wildcard): Pattern matching with * wildcards
82
+ * - "image/*" matches "image/png", "image/jpeg", "image/webp", etc.
83
+ * - "text/*" matches "text/plain", "text/html", "text/csv", etc.
84
+ * - "application/*" matches any application type
85
+ *
86
+ * Common patterns:
87
+ *
88
+ * Example 1: Text display (accepts primitive types for display as text)
89
+ * accepts = [
90
+ * { jtd_schema: { type: "string" } },
91
+ * { jtd_schema: { type: "float32" } },
92
+ * { jtd_schema: { type: "float64" } },
93
+ * { jtd_schema: { type: "int32" } },
94
+ * { jtd_schema: { type: "boolean" } },
95
+ * { jtd_schema: { type: "timestamp" } }
96
+ * ]
17
97
  *
18
- * @generated from field: mochabugapis.adapt.graph.SignalDescriptor descriptor = 1;
98
+ * Example 2: Image viewer (accepts displayable image formats)
99
+ * accepts = [
100
+ * { mime_type: "image/*" } // Accepts any image type
101
+ * ]
102
+ *
103
+ * Example 3: Document viewer (accepts specific document types)
104
+ * accepts = [
105
+ * { mime_type: "application/pdf" },
106
+ * { mime_type: "text/html" },
107
+ * { mime_type: "text/plain" }
108
+ * ]
109
+ *
110
+ * Example 4: Data processor (accepts structured data)
111
+ * accepts = [
112
+ * { jtd_schema: { elements: { type: "string" } } }, // Array of strings
113
+ * { jtd_schema: { properties: { id: { type: "string" } } } } // Object with id
114
+ * ]
115
+ *
116
+ * Validation: At least one format must be specified. Maximum 50 formats to prevent
117
+ * overly permissive bindings and ensure reasonable validation performance.
118
+ *
119
+ * @generated from field: repeated mochabugapis.adapt.graph.SignalFormat accepts = 5;
19
120
  */
20
- descriptor?: SignalDescriptor;
121
+ accepts: SignalFormat[];
21
122
  /**
22
- * The binding can be a reference to another signal or a constant value.
23
- * not required to be set if the descriptor is optional
123
+ * The actual binding - either a reference to another signal or a constant value.
124
+ * Not required if the binding is marked as optional.
125
+ *
126
+ * When required (optional = false):
127
+ * - Exactly one of 'reference' or 'constant' must be set
128
+ * - If neither is set, ERROR_UNBOUND will be raised
129
+ *
130
+ * When optional (optional = true):
131
+ * - May be unset (neither reference nor constant)
132
+ * - Vertex must handle the unbound case gracefully
24
133
  *
25
134
  * @generated from oneof mochabugapis.adapt.graph.SignalBinding.binding
26
135
  */
27
136
  binding: {
28
137
  /**
29
- * A reference to another signal <vertexid>/<transmitter>/<signal>
138
+ * Reference to another signal in the graph.
139
+ *
140
+ * Format: <vertex_id>/<transmitter_name>/<signal_name>
141
+ * - vertex_id: 4-character alphanumeric identifier (lowercase)
142
+ * - transmitter_name: ECMAScript identifier for the output transmitter
143
+ * - signal_name: ECMAScript identifier for the specific signal
144
+ *
145
+ * Examples:
146
+ * - "a1b2/output/temperature"
147
+ * - "xyz9/results/processedData"
148
+ * - "0123/$internal/_debug"
30
149
  *
31
- * @generated from field: string reference = 2;
150
+ * The referenced signal's format must match one of the accepted formats.
151
+ * Validation occurs at graph construction time.
152
+ *
153
+ * @generated from field: string reference = 6;
32
154
  */
33
155
  value: string;
34
156
  case: "reference";
35
157
  } | {
36
158
  /**
37
- * A constant value (must validate against the descriptor)
159
+ * Constant value to bind to this input.
160
+ * The constant must be serialized in a format matching one of the accepted formats.
161
+ *
162
+ * For JTD schemas:
163
+ * - Value must be JSON-serialized and encoded as bytes
164
+ * - Must validate against at least one accepted JTD schema
38
165
  *
39
- * @generated from field: bytes constant = 3;
166
+ * For MIME types:
167
+ * - Value must be in the binary format specified by the MIME type
168
+ * - Must match at least one accepted MIME type (considering wildcards)
169
+ *
170
+ * Validation occurs at graph construction time.
171
+ *
172
+ * @generated from field: mochabugapis.adapt.graph.SignalData constant = 7;
40
173
  */
41
- value: Uint8Array;
174
+ value: SignalData;
42
175
  case: "constant";
43
176
  } | {
44
177
  case: undefined;
45
178
  value?: undefined;
46
179
  };
47
180
  /**
48
- * The binding may also have one of the 3 error codes
181
+ * Error state of this binding, if any.
182
+ * Set by the graph validation system when issues are detected.
183
+ * Should not be set to ERROR_UNSPECIFIED (value 0).
184
+ *
185
+ * When unset: Binding is valid
186
+ * When set: Binding has the specified error and requires correction
49
187
  *
50
- * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 4;
188
+ * Applications should check this field and provide appropriate user feedback
189
+ * for bindings in error states.
190
+ *
191
+ * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 8;
51
192
  */
52
193
  error?: SignalBinding_Error;
53
194
  };
54
195
  /**
55
- * Receiver represents an input point for a vertex, which can bind
56
- * to multiple signals.
196
+ * SignalBinding represents an input point for a vertex in the computation graph.
197
+ * Unlike SignalDescriptor which describes what a signal IS (producing one specific format),
198
+ * a binding describes what formats an input ACCEPTS (potentially accepting multiple formats).
199
+ *
200
+ * Bindings enable flexible graph construction by allowing vertices to accept data in
201
+ * various compatible formats. For example, a text display component might accept strings,
202
+ * numbers, dates, and booleans, while an image viewer might accept image/* MIME types.
203
+ *
204
+ * The binding can be connected to a signal reference or assigned a constant value.
205
+ * Runtime validation ensures the bound signal's format matches one of the accepted formats.
57
206
  *
58
207
  * @generated from message mochabugapis.adapt.graph.SignalBinding
59
208
  */
60
209
  export type SignalBindingJson = {
61
210
  /**
62
- * The actual signal descriptor.
211
+ * Identifier for this binding point, following ECMAScript identifier conventions.
212
+ * Must be unique within the vertex's binding collection.
213
+ *
214
+ * Pattern: Must start with letter, $, or _, followed by letters, digits, $, or _
215
+ * Length: 1-50 characters
216
+ *
217
+ * Examples: "inputText", "image_data", "$config", "_internalParam"
218
+ *
219
+ * @generated from field: string name = 1;
220
+ */
221
+ name?: string;
222
+ /**
223
+ * Human-readable label for the binding, suitable for display in user interfaces.
224
+ * Describes what this input represents in the context of the vertex.
225
+ *
226
+ * Length: Up to 250 characters
227
+ *
228
+ * Examples: "Text to Display", "Source Image", "Configuration Object"
229
+ *
230
+ * @generated from field: optional string label = 2;
231
+ */
232
+ label?: string;
233
+ /**
234
+ * Detailed description of the binding's purpose and accepted data.
235
+ * Should document what the vertex does with this input and any constraints.
236
+ *
237
+ * Length: Up to 1000 characters
238
+ *
239
+ * May include:
240
+ * - What the binding represents in the vertex's operation
241
+ * - How the data is used or transformed
242
+ * - Constraints on values or formats
243
+ * - Examples of valid inputs
63
244
  *
64
- * @generated from field: mochabugapis.adapt.graph.SignalDescriptor descriptor = 1;
245
+ * @generated from field: optional string description = 3;
65
246
  */
66
- descriptor?: SignalDescriptorJson;
247
+ description?: string;
67
248
  /**
68
- * A reference to another signal <vertexid>/<transmitter>/<signal>
249
+ * Indicates whether this binding must be connected.
250
+ *
251
+ * When false or unset: Binding is required and must be connected
252
+ * When true: Binding is optional and may be left unbound
253
+ *
254
+ * Optional bindings provide flexibility, allowing vertices to function
255
+ * with or without certain inputs (e.g., optional configuration parameters).
69
256
  *
70
- * @generated from field: string reference = 2;
257
+ * @generated from field: optional bool optional = 4;
258
+ */
259
+ optional?: boolean;
260
+ /**
261
+ * List of formats this binding accepts. The binding will accept any signal whose
262
+ * format matches at least one entry in this list.
263
+ *
264
+ * Format matching rules:
265
+ * - JTD schemas: Structural compatibility according to JTD specification
266
+ * - MIME types (exact): Exact string match (case-insensitive)
267
+ * - MIME types (wildcard): Pattern matching with * wildcards
268
+ * - "image/*" matches "image/png", "image/jpeg", "image/webp", etc.
269
+ * - "text/*" matches "text/plain", "text/html", "text/csv", etc.
270
+ * - "application/*" matches any application type
271
+ *
272
+ * Common patterns:
273
+ *
274
+ * Example 1: Text display (accepts primitive types for display as text)
275
+ * accepts = [
276
+ * { jtd_schema: { type: "string" } },
277
+ * { jtd_schema: { type: "float32" } },
278
+ * { jtd_schema: { type: "float64" } },
279
+ * { jtd_schema: { type: "int32" } },
280
+ * { jtd_schema: { type: "boolean" } },
281
+ * { jtd_schema: { type: "timestamp" } }
282
+ * ]
283
+ *
284
+ * Example 2: Image viewer (accepts displayable image formats)
285
+ * accepts = [
286
+ * { mime_type: "image/*" } // Accepts any image type
287
+ * ]
288
+ *
289
+ * Example 3: Document viewer (accepts specific document types)
290
+ * accepts = [
291
+ * { mime_type: "application/pdf" },
292
+ * { mime_type: "text/html" },
293
+ * { mime_type: "text/plain" }
294
+ * ]
295
+ *
296
+ * Example 4: Data processor (accepts structured data)
297
+ * accepts = [
298
+ * { jtd_schema: { elements: { type: "string" } } }, // Array of strings
299
+ * { jtd_schema: { properties: { id: { type: "string" } } } } // Object with id
300
+ * ]
301
+ *
302
+ * Validation: At least one format must be specified. Maximum 50 formats to prevent
303
+ * overly permissive bindings and ensure reasonable validation performance.
304
+ *
305
+ * @generated from field: repeated mochabugapis.adapt.graph.SignalFormat accepts = 5;
306
+ */
307
+ accepts?: SignalFormatJson[];
308
+ /**
309
+ * Reference to another signal in the graph.
310
+ *
311
+ * Format: <vertex_id>/<transmitter_name>/<signal_name>
312
+ * - vertex_id: 4-character alphanumeric identifier (lowercase)
313
+ * - transmitter_name: ECMAScript identifier for the output transmitter
314
+ * - signal_name: ECMAScript identifier for the specific signal
315
+ *
316
+ * Examples:
317
+ * - "a1b2/output/temperature"
318
+ * - "xyz9/results/processedData"
319
+ * - "0123/$internal/_debug"
320
+ *
321
+ * The referenced signal's format must match one of the accepted formats.
322
+ * Validation occurs at graph construction time.
323
+ *
324
+ * @generated from field: string reference = 6;
71
325
  */
72
326
  reference?: string;
73
327
  /**
74
- * A constant value (must validate against the descriptor)
328
+ * Constant value to bind to this input.
329
+ * The constant must be serialized in a format matching one of the accepted formats.
330
+ *
331
+ * For JTD schemas:
332
+ * - Value must be JSON-serialized and encoded as bytes
333
+ * - Must validate against at least one accepted JTD schema
334
+ *
335
+ * For MIME types:
336
+ * - Value must be in the binary format specified by the MIME type
337
+ * - Must match at least one accepted MIME type (considering wildcards)
75
338
  *
76
- * @generated from field: bytes constant = 3;
339
+ * Validation occurs at graph construction time.
340
+ *
341
+ * @generated from field: mochabugapis.adapt.graph.SignalData constant = 7;
77
342
  */
78
- constant?: string;
343
+ constant?: SignalDataJson;
79
344
  /**
80
- * The binding may also have one of the 3 error codes
345
+ * Error state of this binding, if any.
346
+ * Set by the graph validation system when issues are detected.
347
+ * Should not be set to ERROR_UNSPECIFIED (value 0).
348
+ *
349
+ * When unset: Binding is valid
350
+ * When set: Binding has the specified error and requires correction
81
351
  *
82
- * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 4;
352
+ * Applications should check this field and provide appropriate user feedback
353
+ * for bindings in error states.
354
+ *
355
+ * @generated from field: optional mochabugapis.adapt.graph.SignalBinding.Error error = 8;
83
356
  */
84
357
  error?: SignalBinding_ErrorJson;
85
358
  };
@@ -91,38 +364,61 @@ export declare const SignalBindingSchema: GenMessage<SignalBinding, {
91
364
  jsonType: SignalBindingJson;
92
365
  }>;
93
366
  /**
94
- * Some error codes that can appear on the binding
367
+ * Error codes that can occur during binding validation or resolution.
368
+ * These errors are typically set by the graph validation system.
95
369
  *
96
370
  * @generated from enum mochabugapis.adapt.graph.SignalBinding.Error
97
371
  */
98
372
  export declare enum SignalBinding_Error {
99
373
  /**
100
- * Not specified
374
+ * No error specified. This value should never be explicitly set as it indicates
375
+ * the absence of an error. The error field should be unset for valid bindings.
101
376
  *
102
377
  * @generated from enum value: ERROR_UNSPECIFIED = 0;
103
378
  */
104
379
  UNSPECIFIED = 0,
105
380
  /**
106
- * Binding is missing, the signal is unbound even though the descriptor requires it to be bound
381
+ * The binding is unbound (no reference or constant provided) despite being required.
382
+ * This occurs when:
383
+ * - The binding is not marked as optional
384
+ * - Neither 'reference' nor 'constant' is set in the binding oneof
385
+ *
386
+ * Resolution: Provide either a signal reference or a constant value.
107
387
  *
108
388
  * @generated from enum value: ERROR_UNBOUND = 1;
109
389
  */
110
390
  UNBOUND = 1,
111
391
  /**
112
- * The source does not exist
392
+ * The referenced signal source does not exist in the graph.
393
+ * This occurs when:
394
+ * - The reference points to a non-existent vertex ID
395
+ * - The transmitter name doesn't exist on the referenced vertex
396
+ * - The signal name doesn't exist on the specified transmitter
397
+ *
398
+ * Resolution: Verify the signal reference path and ensure the source vertex,
399
+ * transmitter, and signal all exist.
113
400
  *
114
401
  * @generated from enum value: ERROR_INVALID_SOURCE = 2;
115
402
  */
116
403
  INVALID_SOURCE = 2,
117
404
  /**
118
- * The schema does not match, the source is valid
405
+ * The signal format doesn't match any of the accepted formats.
406
+ * This occurs when:
407
+ * - The source signal's format (from SignalDescriptor) doesn't match any
408
+ * format in the 'accepts' list
409
+ * - JTD schema validation fails
410
+ * - MIME type mismatch (including wildcard matching failures)
411
+ *
412
+ * Resolution: Either change the binding to accept the source signal's format,
413
+ * or use a different signal source with a compatible format.
119
414
  *
120
415
  * @generated from enum value: ERROR_SCHEMA_MISMATCH = 3;
121
416
  */
122
417
  SCHEMA_MISMATCH = 3
123
418
  }
124
419
  /**
125
- * Some error codes that can appear on the binding
420
+ * Error codes that can occur during binding validation or resolution.
421
+ * These errors are typically set by the graph validation system.
126
422
  *
127
423
  * @generated from enum mochabugapis.adapt.graph.SignalBinding.Error
128
424
  */
@@ -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,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAErF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,OAC8qB,CAAC;AAE1uB;;;;;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,UAAU,CAAC;QAClB,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,MAAM,CAAC;IAElB;;;;OAIG;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;;;;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,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEnE,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,OACutC,CAAC;AAEnxC;;;;;;;;;;;;;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;;;;;;;;;;;;;OAaG;IACH,OAAO,EAAE;QACP;;;;;;;;;;;;;;;;;WAiBG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,WAAW,CAAC;KACnB,GAAG;QACF;;;;;;;;;;;;;;;WAeG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,UAAU,CAAC;KAClB,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;IAE3C;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;;;;;;;;;;;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,190 @@
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
+ * Must follow standard filename conventions. Can include extension (e.g., "document.pdf")
16
+ * or be extension-less (e.g., "README").
17
+ *
18
+ * Valid characters:
19
+ * - Alphanumeric: a-z, A-Z, 0-9
20
+ * - Special: hyphen (-), underscore (_), period (.)
21
+ * - Space is allowed within the filename
22
+ *
23
+ * Restrictions:
24
+ * - Cannot start or end with a period (prevents ".", "..", and hidden files)
25
+ * - Cannot start or end with whitespace
26
+ * - Cannot contain path separators (/, \)
27
+ * - Cannot contain null bytes or control characters
28
+ * - Maximum length: 255 characters (filesystem compatibility)
29
+ *
30
+ * Examples:
31
+ * ✅ "document.pdf"
32
+ * ✅ "my-file_v2.txt"
33
+ * ✅ "README"
34
+ * ✅ "Report 2024.docx"
35
+ * ✅ "image.backup.png"
36
+ * ❌ ".hidden" (starts with period)
37
+ * ❌ "file." (ends with period)
38
+ * ❌ " file.txt" (starts with space)
39
+ * ❌ "file.txt " (ends with space)
40
+ * ❌ "path/to/file.txt" (contains path separator)
41
+ * ❌ "file\0.txt" (contains null byte)
42
+ *
43
+ * @generated from field: optional string filename = 1;
44
+ */
45
+ filename?: string;
46
+ /**
47
+ * The MIME type of the signal data.
48
+ * Must be a **concrete** MIME type conforming to RFC 6838 (NO wildcards allowed).
49
+ *
50
+ * This field specifies the actual format of the binary data in the `data` field.
51
+ * Unlike SignalFormat which can use wildcards for format families, SignalData
52
+ * represents actual concrete data and must have a specific MIME type.
53
+ *
54
+ * Format requirements:
55
+ * - Structure: type/subtype (e.g., "image/png", "application/pdf")
56
+ * - Type must be concrete alphanumeric (no wildcards)
57
+ * - Subtype must be concrete alphanumeric (no wildcards)
58
+ * - NO parameters allowed (no semicolons or charset specifications)
59
+ * - Case-insensitive but conventionally lowercase
60
+ * - Maximum length: 255 characters (127 for type + "/" + 127 for subtype)
61
+ *
62
+ * **No wildcards**: Unlike SignalFormat, wildcards are FORBIDDEN here because
63
+ * this represents actual data which must have a concrete format.
64
+ * ❌ "*\/*" - Forbidden (data must have specific format)
65
+ * ❌ "image/*" - Forbidden (data must be specific image format)
66
+ * ❌ "*\/png" - Forbidden (semantically invalid anyway)
67
+ * ✅ "image/png" - Valid (concrete format)
68
+ * ✅ "application/pdf" - Valid (concrete format)
69
+ *
70
+ * **Character Encoding Assumption**:
71
+ * All text-based formats (text/*, application/json, application/xml, etc.) are
72
+ * assumed to use UTF-8 encoding. Charset parameters are forbidden.
73
+ *
74
+ * Examples of forbidden formats:
75
+ * ❌ "text/plain; charset=utf-8" (parameters not allowed)
76
+ * ❌ "image/*" (wildcards not allowed)
77
+ * ❌ "*\/*" (wildcards not allowed)
78
+ *
79
+ * Common concrete examples:
80
+ * - Images: "image/png", "image/jpeg", "image/webp", "image/gif", "image/svg+xml"
81
+ * - Documents: "application/pdf", "text/html", "text/markdown", "text/plain"
82
+ * - Data: "application/json", "application/xml", "text/csv"
83
+ * - Binary: "application/octet-stream", "application/zip"
84
+ *
85
+ * @generated from field: string mime_type = 2;
86
+ */
87
+ mimeType: string;
88
+ /**
89
+ * The actual raw binary data
90
+ *
91
+ * @generated from field: bytes data = 3;
92
+ */
93
+ data: Uint8Array;
94
+ };
95
+ /**
96
+ * This represents the actual data in the system
97
+ *
98
+ * @generated from message mochabugapis.adapt.graph.SignalData
99
+ */
100
+ export type SignalDataJson = {
101
+ /**
102
+ * An optional filename associated with the signal.
103
+ * Must follow standard filename conventions. Can include extension (e.g., "document.pdf")
104
+ * or be extension-less (e.g., "README").
105
+ *
106
+ * Valid characters:
107
+ * - Alphanumeric: a-z, A-Z, 0-9
108
+ * - Special: hyphen (-), underscore (_), period (.)
109
+ * - Space is allowed within the filename
110
+ *
111
+ * Restrictions:
112
+ * - Cannot start or end with a period (prevents ".", "..", and hidden files)
113
+ * - Cannot start or end with whitespace
114
+ * - Cannot contain path separators (/, \)
115
+ * - Cannot contain null bytes or control characters
116
+ * - Maximum length: 255 characters (filesystem compatibility)
117
+ *
118
+ * Examples:
119
+ * ✅ "document.pdf"
120
+ * ✅ "my-file_v2.txt"
121
+ * ✅ "README"
122
+ * ✅ "Report 2024.docx"
123
+ * ✅ "image.backup.png"
124
+ * ❌ ".hidden" (starts with period)
125
+ * ❌ "file." (ends with period)
126
+ * ❌ " file.txt" (starts with space)
127
+ * ❌ "file.txt " (ends with space)
128
+ * ❌ "path/to/file.txt" (contains path separator)
129
+ * ❌ "file\0.txt" (contains null byte)
130
+ *
131
+ * @generated from field: optional string filename = 1;
132
+ */
133
+ filename?: string;
134
+ /**
135
+ * The MIME type of the signal data.
136
+ * Must be a **concrete** MIME type conforming to RFC 6838 (NO wildcards allowed).
137
+ *
138
+ * This field specifies the actual format of the binary data in the `data` field.
139
+ * Unlike SignalFormat which can use wildcards for format families, SignalData
140
+ * represents actual concrete data and must have a specific MIME type.
141
+ *
142
+ * Format requirements:
143
+ * - Structure: type/subtype (e.g., "image/png", "application/pdf")
144
+ * - Type must be concrete alphanumeric (no wildcards)
145
+ * - Subtype must be concrete alphanumeric (no wildcards)
146
+ * - NO parameters allowed (no semicolons or charset specifications)
147
+ * - Case-insensitive but conventionally lowercase
148
+ * - Maximum length: 255 characters (127 for type + "/" + 127 for subtype)
149
+ *
150
+ * **No wildcards**: Unlike SignalFormat, wildcards are FORBIDDEN here because
151
+ * this represents actual data which must have a concrete format.
152
+ * ❌ "*\/*" - Forbidden (data must have specific format)
153
+ * ❌ "image/*" - Forbidden (data must be specific image format)
154
+ * ❌ "*\/png" - Forbidden (semantically invalid anyway)
155
+ * ✅ "image/png" - Valid (concrete format)
156
+ * ✅ "application/pdf" - Valid (concrete format)
157
+ *
158
+ * **Character Encoding Assumption**:
159
+ * All text-based formats (text/*, application/json, application/xml, etc.) are
160
+ * assumed to use UTF-8 encoding. Charset parameters are forbidden.
161
+ *
162
+ * Examples of forbidden formats:
163
+ * ❌ "text/plain; charset=utf-8" (parameters not allowed)
164
+ * ❌ "image/*" (wildcards not allowed)
165
+ * ❌ "*\/*" (wildcards not allowed)
166
+ *
167
+ * Common concrete examples:
168
+ * - Images: "image/png", "image/jpeg", "image/webp", "image/gif", "image/svg+xml"
169
+ * - Documents: "application/pdf", "text/html", "text/markdown", "text/plain"
170
+ * - Data: "application/json", "application/xml", "text/csv"
171
+ * - Binary: "application/octet-stream", "application/zip"
172
+ *
173
+ * @generated from field: string mime_type = 2;
174
+ */
175
+ mimeType?: string;
176
+ /**
177
+ * The actual raw binary data
178
+ *
179
+ * @generated from field: bytes data = 3;
180
+ */
181
+ data?: string;
182
+ };
183
+ /**
184
+ * Describes the message mochabugapis.adapt.graph.SignalData.
185
+ * Use `create(SignalDataSchema)` to create a new message.
186
+ */
187
+ export declare const SignalDataSchema: GenMessage<SignalData, {
188
+ jsonType: SignalDataJson;
189
+ }>;
190
+ //# 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,OAC4jD,CAAC;AAErnD;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,qCAAqC,CAAC,GAAG;IACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;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"}