@mochabug/adapt-builder 0.2.0 → 0.2.2

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,5 +1,4 @@
1
1
  import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
- import type { SignalData, SignalDataJson } from "./signal_data_pb";
3
2
  import type { SignalFormat, SignalFormatJson } from "./signal_format_pb";
4
3
  import type { Message } from "@bufbuild/protobuf";
5
4
  /**
@@ -15,8 +14,8 @@ export declare const file_mochabugapis_adapt_graph_signal_binding: GenFile;
15
14
  * various compatible formats. For example, a text display component might accept strings,
16
15
  * numbers, dates, and booleans, while an image viewer might accept image/* MIME types.
17
16
  *
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.
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.
20
19
  *
21
20
  * @generated from message mochabugapis.adapt.graph.SignalBinding
22
21
  */
@@ -120,64 +119,32 @@ export type SignalBinding = Message<"mochabugapis.adapt.graph.SignalBinding"> &
120
119
  */
121
120
  accepts: SignalFormat[];
122
121
  /**
123
- * The actual binding - either a reference to another signal or a constant value.
124
- * Not required if the binding is marked as optional.
122
+ * Reference to another signal in the graph, or a project-level constant.
125
123
  *
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
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
129
131
  *
130
- * When optional (optional = true):
131
- * - May be unset (neither reference nor constant)
132
- * - Vertex must handle the unbound case gracefully
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.
133
141
  *
134
- * @generated from oneof mochabugapis.adapt.graph.SignalBinding.binding
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;
135
146
  */
136
- binding: {
137
- /**
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"
149
- *
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;
154
- */
155
- value: string;
156
- case: "reference";
157
- } | {
158
- /**
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
165
- *
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 [deprecated = true];
173
- * @deprecated
174
- */
175
- value: SignalData;
176
- case: "constant";
177
- } | {
178
- case: undefined;
179
- value?: undefined;
180
- };
147
+ reference: string;
181
148
  /**
182
149
  * Error state of this binding, if any.
183
150
  * Set by the graph validation system when issues are detected.
@@ -202,8 +169,8 @@ export type SignalBinding = Message<"mochabugapis.adapt.graph.SignalBinding"> &
202
169
  * various compatible formats. For example, a text display component might accept strings,
203
170
  * numbers, dates, and booleans, while an image viewer might accept image/* MIME types.
204
171
  *
205
- * The binding can be connected to a signal reference or assigned a constant value.
206
- * Runtime validation ensures the bound signal's format matches one of the accepted formats.
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.
207
174
  *
208
175
  * @generated from message mochabugapis.adapt.graph.SignalBinding
209
176
  */
@@ -307,42 +274,32 @@ export type SignalBindingJson = {
307
274
  */
308
275
  accepts?: SignalFormatJson[];
309
276
  /**
310
- * Reference to another signal in the graph.
277
+ * Reference to another signal in the graph, or a project-level constant.
311
278
  *
312
- * Format: <vertex_id>/<transmitter_name>/<signal_name>
279
+ * Signal reference format: <vertex_id>/<transmitter_name>/<signal_name>
313
280
  * - vertex_id: 4-character alphanumeric identifier (lowercase)
314
281
  * - transmitter_name: ECMAScript identifier for the output transmitter
315
282
  * - signal_name: ECMAScript identifier for the specific signal
316
283
  *
284
+ * Constant reference format: constant/<constant_name>
285
+ * - constant_name: ECMAScript identifier for the project-level constant
286
+ *
317
287
  * Examples:
318
- * - "a1b2/output/temperature"
319
- * - "xyz9/results/processedData"
320
- * - "0123/$internal/_debug"
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.
321
296
  *
322
- * The referenced signal's format must match one of the accepted formats.
323
- * Validation occurs at graph construction time.
297
+ * The referenced signal's or constant's format must match one of the
298
+ * accepted formats. Validation occurs at graph construction time.
324
299
  *
325
300
  * @generated from field: string reference = 6;
326
301
  */
327
302
  reference?: string;
328
- /**
329
- * Constant value to bind to this input.
330
- * The constant must be serialized in a format matching one of the accepted formats.
331
- *
332
- * For JTD schemas:
333
- * - Value must be JSON-serialized and encoded as bytes
334
- * - Must validate against at least one accepted JTD schema
335
- *
336
- * For MIME types:
337
- * - Value must be in the binary format specified by the MIME type
338
- * - Must match at least one accepted MIME type (considering wildcards)
339
- *
340
- * Validation occurs at graph construction time.
341
- *
342
- * @generated from field: mochabugapis.adapt.graph.SignalData constant = 7 [deprecated = true];
343
- * @deprecated
344
- */
345
- constant?: SignalDataJson;
346
303
  /**
347
304
  * Error state of this binding, if any.
348
305
  * Set by the graph validation system when issues are detected.
@@ -380,12 +337,12 @@ export declare enum SignalBinding_Error {
380
337
  */
381
338
  UNSPECIFIED = 0,
382
339
  /**
383
- * The binding is unbound (no reference or constant provided) despite being required.
340
+ * The binding is unbound (no reference provided) despite being required.
384
341
  * This occurs when:
385
342
  * - The binding is not marked as optional
386
- * - Neither 'reference' nor 'constant' is set in the binding oneof
343
+ * - The 'reference' field is not set
387
344
  *
388
- * Resolution: Provide either a signal reference or a constant value.
345
+ * Resolution: Provide a signal reference or a constant reference.
389
346
  *
390
347
  * @generated from enum value: ERROR_UNBOUND = 1;
391
348
  */
@@ -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,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,OAC2wC,CAAC;AAEv0C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IAC9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;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"}
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;;;;;;;;;;;;;O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ED;;;;;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"}
@@ -1,4 +1,5 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { SignalFormat, SignalFormatJson } from "./signal_format_pb";
2
3
  import type { Message } from "@bufbuild/protobuf";
3
4
  /**
4
5
  * Describes the file mochabugapis/adapt/graph/user_defined_exchange_options.proto.
@@ -37,6 +38,12 @@ export type UserDefinedExchangeOptions = Message<"mochabugapis.adapt.graph.UserD
37
38
  * @generated from field: optional int32 min_exchanges = 4;
38
39
  */
39
40
  minExchanges?: number;
41
+ /**
42
+ * Locks on specific plugin-defined exchanges.
43
+ *
44
+ * @generated from field: repeated mochabugapis.adapt.graph.UserDefinedExchangeOptions.ExchangeLock exchange_locks = 5;
45
+ */
46
+ exchangeLocks: UserDefinedExchangeOptions_ExchangeLock[];
40
47
  };
41
48
  /**
42
49
  * UserDefinedExchangeOptions configures if and how users can create their own
@@ -71,6 +78,12 @@ export type UserDefinedExchangeOptionsJson = {
71
78
  * @generated from field: optional int32 min_exchanges = 4;
72
79
  */
73
80
  minExchanges?: number;
81
+ /**
82
+ * Locks on specific plugin-defined exchanges.
83
+ *
84
+ * @generated from field: repeated mochabugapis.adapt.graph.UserDefinedExchangeOptions.ExchangeLock exchange_locks = 5;
85
+ */
86
+ exchangeLocks?: UserDefinedExchangeOptions_ExchangeLockJson[];
74
87
  };
75
88
  /**
76
89
  * Describes the message mochabugapis.adapt.graph.UserDefinedExchangeOptions.
@@ -79,6 +92,128 @@ export type UserDefinedExchangeOptionsJson = {
79
92
  export declare const UserDefinedExchangeOptionsSchema: GenMessage<UserDefinedExchangeOptions, {
80
93
  jsonType: UserDefinedExchangeOptionsJson;
81
94
  }>;
95
+ /**
96
+ * SignalLock constrains a specific signal within a transceiver.
97
+ * Presence means the signal is locked. Fields grant exceptions.
98
+ *
99
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.SignalLock
100
+ */
101
+ export type UserDefinedExchangeOptions_SignalLock = Message<"mochabugapis.adapt.graph.UserDefinedExchangeOptions.SignalLock"> & {
102
+ /**
103
+ * Name of the signal to lock.
104
+ *
105
+ * @generated from field: string name = 1;
106
+ */
107
+ name: string;
108
+ /**
109
+ * If set, the user can modify this signal's format but their format must
110
+ * subsume this base format. If unset, the signal is fully locked.
111
+ *
112
+ * @generated from field: optional mochabugapis.adapt.graph.SignalFormat must_subsume = 2;
113
+ */
114
+ mustSubsume?: SignalFormat;
115
+ };
116
+ /**
117
+ * SignalLock constrains a specific signal within a transceiver.
118
+ * Presence means the signal is locked. Fields grant exceptions.
119
+ *
120
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.SignalLock
121
+ */
122
+ export type UserDefinedExchangeOptions_SignalLockJson = {
123
+ /**
124
+ * Name of the signal to lock.
125
+ *
126
+ * @generated from field: string name = 1;
127
+ */
128
+ name?: string;
129
+ /**
130
+ * If set, the user can modify this signal's format but their format must
131
+ * subsume this base format. If unset, the signal is fully locked.
132
+ *
133
+ * @generated from field: optional mochabugapis.adapt.graph.SignalFormat must_subsume = 2;
134
+ */
135
+ mustSubsume?: SignalFormatJson;
136
+ };
137
+ /**
138
+ * Describes the message mochabugapis.adapt.graph.UserDefinedExchangeOptions.SignalLock.
139
+ * Use `create(UserDefinedExchangeOptions_SignalLockSchema)` to create a new message.
140
+ */
141
+ export declare const UserDefinedExchangeOptions_SignalLockSchema: GenMessage<UserDefinedExchangeOptions_SignalLock, {
142
+ jsonType: UserDefinedExchangeOptions_SignalLockJson;
143
+ }>;
144
+ /**
145
+ * TransceiverLock opens up a specific named transceiver within a locked exchange.
146
+ * Transceivers NOT listed in locks are fully frozen.
147
+ *
148
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverLock
149
+ */
150
+ export type UserDefinedExchangeOptions_TransceiverLock = Message<"mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverLock"> & {
151
+ /**
152
+ * Name of the transceiver to open up.
153
+ *
154
+ * @generated from field: string name = 1;
155
+ */
156
+ name: string;
157
+ /**
158
+ * Signals that remain locked within this transceiver.
159
+ * Unlisted signals are free to modify.
160
+ *
161
+ * @generated from field: repeated mochabugapis.adapt.graph.UserDefinedExchangeOptions.SignalLock signal_locks = 2;
162
+ */
163
+ signalLocks: UserDefinedExchangeOptions_SignalLock[];
164
+ /**
165
+ * Minimum total signals (including locked ones). Unset = no minimum.
166
+ *
167
+ * @generated from field: optional int32 min_signals = 3;
168
+ */
169
+ minSignals?: number;
170
+ /**
171
+ * Maximum total signals (including locked ones). Unset = no maximum.
172
+ *
173
+ * @generated from field: optional int32 max_signals = 4;
174
+ */
175
+ maxSignals?: number;
176
+ };
177
+ /**
178
+ * TransceiverLock opens up a specific named transceiver within a locked exchange.
179
+ * Transceivers NOT listed in locks are fully frozen.
180
+ *
181
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverLock
182
+ */
183
+ export type UserDefinedExchangeOptions_TransceiverLockJson = {
184
+ /**
185
+ * Name of the transceiver to open up.
186
+ *
187
+ * @generated from field: string name = 1;
188
+ */
189
+ name?: string;
190
+ /**
191
+ * Signals that remain locked within this transceiver.
192
+ * Unlisted signals are free to modify.
193
+ *
194
+ * @generated from field: repeated mochabugapis.adapt.graph.UserDefinedExchangeOptions.SignalLock signal_locks = 2;
195
+ */
196
+ signalLocks?: UserDefinedExchangeOptions_SignalLockJson[];
197
+ /**
198
+ * Minimum total signals (including locked ones). Unset = no minimum.
199
+ *
200
+ * @generated from field: optional int32 min_signals = 3;
201
+ */
202
+ minSignals?: number;
203
+ /**
204
+ * Maximum total signals (including locked ones). Unset = no maximum.
205
+ *
206
+ * @generated from field: optional int32 max_signals = 4;
207
+ */
208
+ maxSignals?: number;
209
+ };
210
+ /**
211
+ * Describes the message mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverLock.
212
+ * Use `create(UserDefinedExchangeOptions_TransceiverLockSchema)` to create a new message.
213
+ */
214
+ export declare const UserDefinedExchangeOptions_TransceiverLockSchema: GenMessage<UserDefinedExchangeOptions_TransceiverLock, {
215
+ jsonType: UserDefinedExchangeOptions_TransceiverLockJson;
216
+ }>;
82
217
  /**
83
218
  * TransceiverOptions restricts transceivers within user-defined exchanges.
84
219
  *
@@ -92,6 +227,25 @@ export type UserDefinedExchangeOptions_TransceiverOptions = Message<"mochabugapi
92
227
  * @generated from field: optional bool allow_streaming = 1;
93
228
  */
94
229
  allowStreaming?: boolean;
230
+ /**
231
+ * Transceiver locks. Each entry opens up a specific transceiver.
232
+ * In a locked exchange, transceivers NOT listed here are fully frozen.
233
+ *
234
+ * @generated from field: repeated mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverLock locks = 2;
235
+ */
236
+ locks: UserDefinedExchangeOptions_TransceiverLock[];
237
+ /**
238
+ * Minimum number of transceivers. Unset = no minimum.
239
+ *
240
+ * @generated from field: optional int32 min_transceivers = 3;
241
+ */
242
+ minTransceivers?: number;
243
+ /**
244
+ * Maximum number of transceivers. Unset = no maximum.
245
+ *
246
+ * @generated from field: optional int32 max_transceivers = 4;
247
+ */
248
+ maxTransceivers?: number;
95
249
  };
96
250
  /**
97
251
  * TransceiverOptions restricts transceivers within user-defined exchanges.
@@ -106,6 +260,25 @@ export type UserDefinedExchangeOptions_TransceiverOptionsJson = {
106
260
  * @generated from field: optional bool allow_streaming = 1;
107
261
  */
108
262
  allowStreaming?: boolean;
263
+ /**
264
+ * Transceiver locks. Each entry opens up a specific transceiver.
265
+ * In a locked exchange, transceivers NOT listed here are fully frozen.
266
+ *
267
+ * @generated from field: repeated mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverLock locks = 2;
268
+ */
269
+ locks?: UserDefinedExchangeOptions_TransceiverLockJson[];
270
+ /**
271
+ * Minimum number of transceivers. Unset = no minimum.
272
+ *
273
+ * @generated from field: optional int32 min_transceivers = 3;
274
+ */
275
+ minTransceivers?: number;
276
+ /**
277
+ * Maximum number of transceivers. Unset = no maximum.
278
+ *
279
+ * @generated from field: optional int32 max_transceivers = 4;
280
+ */
281
+ maxTransceivers?: number;
109
282
  };
110
283
  /**
111
284
  * Describes the message mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions.
@@ -114,4 +287,67 @@ export type UserDefinedExchangeOptions_TransceiverOptionsJson = {
114
287
  export declare const UserDefinedExchangeOptions_TransceiverOptionsSchema: GenMessage<UserDefinedExchangeOptions_TransceiverOptions, {
115
288
  jsonType: UserDefinedExchangeOptions_TransceiverOptionsJson;
116
289
  }>;
290
+ /**
291
+ * ExchangeLock locks a plugin-defined exchange.
292
+ * If neither transmitter_options nor receiver_options is set, the entire
293
+ * exchange is locked. If set, only the specified transceivers/signals are
294
+ * locked and users can add/remove the rest.
295
+ *
296
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.ExchangeLock
297
+ */
298
+ export type UserDefinedExchangeOptions_ExchangeLock = Message<"mochabugapis.adapt.graph.UserDefinedExchangeOptions.ExchangeLock"> & {
299
+ /**
300
+ * Name of the exchange to lock.
301
+ *
302
+ * @generated from field: string name = 1;
303
+ */
304
+ name: string;
305
+ /**
306
+ * Locks on transmitter transceivers within this exchange.
307
+ *
308
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions transmitter_options = 2;
309
+ */
310
+ transmitterOptions?: UserDefinedExchangeOptions_TransceiverOptions;
311
+ /**
312
+ * Locks on receiver transceivers within this exchange.
313
+ *
314
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions receiver_options = 3;
315
+ */
316
+ receiverOptions?: UserDefinedExchangeOptions_TransceiverOptions;
317
+ };
318
+ /**
319
+ * ExchangeLock locks a plugin-defined exchange.
320
+ * If neither transmitter_options nor receiver_options is set, the entire
321
+ * exchange is locked. If set, only the specified transceivers/signals are
322
+ * locked and users can add/remove the rest.
323
+ *
324
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.ExchangeLock
325
+ */
326
+ export type UserDefinedExchangeOptions_ExchangeLockJson = {
327
+ /**
328
+ * Name of the exchange to lock.
329
+ *
330
+ * @generated from field: string name = 1;
331
+ */
332
+ name?: string;
333
+ /**
334
+ * Locks on transmitter transceivers within this exchange.
335
+ *
336
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions transmitter_options = 2;
337
+ */
338
+ transmitterOptions?: UserDefinedExchangeOptions_TransceiverOptionsJson;
339
+ /**
340
+ * Locks on receiver transceivers within this exchange.
341
+ *
342
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions receiver_options = 3;
343
+ */
344
+ receiverOptions?: UserDefinedExchangeOptions_TransceiverOptionsJson;
345
+ };
346
+ /**
347
+ * Describes the message mochabugapis.adapt.graph.UserDefinedExchangeOptions.ExchangeLock.
348
+ * Use `create(UserDefinedExchangeOptions_ExchangeLockSchema)` to create a new message.
349
+ */
350
+ export declare const UserDefinedExchangeOptions_ExchangeLockSchema: GenMessage<UserDefinedExchangeOptions_ExchangeLock, {
351
+ jsonType: UserDefinedExchangeOptions_ExchangeLockJson;
352
+ }>;
117
353
  //# sourceMappingURL=user_defined_exchange_options_pb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user_defined_exchange_options_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_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,2DAA2D,EAAE,OAC68B,CAAC;AAExhC;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,qDAAqD,CAAC,GAAG;IACxG;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,6CAA6C,CAAC;IAEnE;;;;;OAKG;IACH,eAAe,CAAC,EAAE,6CAA6C,CAAC;IAEhE;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,iDAAiD,CAAC;IAEvE;;;;;OAKG;IACH,eAAe,CAAC,EAAE,iDAAiD,CAAC;IAEpE;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,0BAA0B,EAAE;IAAC,QAAQ,EAAE,8BAA8B,CAAA;CAAC,CACnD,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,6CAA6C,GAAG,OAAO,CAAC,wEAAwE,CAAC,GAAG;IAC9I;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iDAAiD,GAAG;IAC9D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,UAAU,CAAC,6CAA6C,EAAE;IAAC,QAAQ,EAAE,iDAAiD,CAAA;CAAC,CACzG,CAAC"}
1
+ {"version":3,"file":"user_defined_exchange_options_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAA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C,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iDAAiD,GAAG;IAC9D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,8CAA8C,EAAE,CAAC;IAEzD;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,UAAU,CAAC,6CAA6C,EAAE;IAAC,QAAQ,EAAE,iDAAiD,CAAA;CAAC,CACzG,CAAC;AAEjF;;;;;;;GAOG;AACH,MAAM,MAAM,uCAAuC,GAAG,OAAO,CAAC,kEAAkE,CAAC,GAAG;IAClI;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,6CAA6C,CAAC;IAEnE;;;;OAIG;IACH,eAAe,CAAC,EAAE,6CAA6C,CAAC;CACjE,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,iDAAiD,CAAC;IAEvE;;;;OAIG;IACH,eAAe,CAAC,EAAE,iDAAiD,CAAC;CACrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6CAA6C,EAAE,UAAU,CAAC,uCAAuC,EAAE;IAAC,QAAQ,EAAE,2CAA2C,CAAA;CAAC,CACvF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"vertex_metadata_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,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;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IAEjC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,8BAA8B,CAAC;IAE5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,EAAE;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAC,CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adapt-builder",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "This encapsulate the building an bundling logic for mochabug adapt plugins",
5
5
  "keywords": [
6
6
  "plugin",
@@ -45,7 +45,7 @@
45
45
  "unenv": "npm:unenv-nightly@*"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^25.3.0",
48
+ "@types/node": "^25.3.3",
49
49
  "fs-extra": "^11.3.3",
50
50
  "typescript": "^5.9.3"
51
51
  }