@independo/inderun-contracts 0.4.0-rc.2 → 0.5.0-rc.1

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 (52) hide show
  1. package/dist/generated/execution-provenance.d.ts +1 -1
  2. package/dist/generated/execution-provenance.d.ts.map +1 -1
  3. package/dist/generated/inderun-error.d.ts +1 -1
  4. package/dist/generated/inderun-error.d.ts.map +1 -1
  5. package/dist/generated/index.d.ts +3 -0
  6. package/dist/generated/index.d.ts.map +1 -1
  7. package/dist/generated/provider-capability-snapshot.d.ts +370 -0
  8. package/dist/generated/provider-capability-snapshot.d.ts.map +1 -0
  9. package/dist/generated/provider-capability-snapshot.js +2 -0
  10. package/dist/generated/provider-descriptor.d.ts +264 -0
  11. package/dist/generated/provider-descriptor.d.ts.map +1 -0
  12. package/dist/generated/provider-descriptor.js +2 -0
  13. package/dist/generated/provider-dynamic-capabilities.d.ts +99 -0
  14. package/dist/generated/provider-dynamic-capabilities.d.ts.map +1 -0
  15. package/dist/generated/provider-dynamic-capabilities.js +2 -0
  16. package/dist/generated/route-plan.d.ts +47 -3
  17. package/dist/generated/route-plan.d.ts.map +1 -1
  18. package/dist/generated/route-planner-input.d.ts +417 -32
  19. package/dist/generated/route-planner-input.d.ts.map +1 -1
  20. package/dist/generated/schemas.d.ts +458 -85
  21. package/dist/generated/schemas.d.ts.map +1 -1
  22. package/dist/generated/schemas.js +549 -104
  23. package/dist/generated/stream-event.d.ts +1 -1
  24. package/dist/generated/stream-event.d.ts.map +1 -1
  25. package/dist/generated/stream-terminal-outcome.d.ts +1 -1
  26. package/dist/generated/stream-terminal-outcome.d.ts.map +1 -1
  27. package/dist/generated/task-result.d.ts +1 -1
  28. package/dist/generated/task-result.d.ts.map +1 -1
  29. package/dist/index.d.ts +4 -4
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -2
  32. package/dist/types.d.ts +7 -1
  33. package/dist/types.d.ts.map +1 -1
  34. package/dist/validators.d.ts +9 -0
  35. package/dist/validators.d.ts.map +1 -1
  36. package/dist/validators.js +24 -1
  37. package/package.json +1 -1
  38. package/src/generated/execution-provenance.ts +1 -1
  39. package/src/generated/inderun-error.ts +1 -1
  40. package/src/generated/index.ts +3 -0
  41. package/src/generated/provider-capability-snapshot.ts +388 -0
  42. package/src/generated/provider-descriptor.ts +278 -0
  43. package/src/generated/provider-dynamic-capabilities.ts +103 -0
  44. package/src/generated/route-plan.ts +49 -3
  45. package/src/generated/route-planner-input.ts +437 -36
  46. package/src/generated/schemas.ts +552 -104
  47. package/src/generated/stream-event.ts +1 -1
  48. package/src/generated/stream-terminal-outcome.ts +1 -1
  49. package/src/generated/task-result.ts +1 -1
  50. package/src/index.ts +13 -1
  51. package/src/types.ts +7 -0
  52. package/src/validators.ts +39 -0
@@ -91,5 +91,5 @@ export type ExecutionProvenanceRouteRejection = {
91
91
  providerId: string;
92
92
  [property: string]: unknown;
93
93
  };
94
- export type Code = "task_not_supported" | "run_not_supported" | "streaming_not_supported" | "streaming_unavailable" | "privacy_constraint" | "cloud_constraint" | "offline" | "capability_unavailable" | "not_in_model_profile";
94
+ export type Code = "task_not_supported" | "run_not_supported" | "streaming_not_supported" | "streaming_unavailable" | "privacy_constraint" | "cloud_constraint" | "offline" | "capability_unavailable" | "not_in_model_profile" | "input_not_supported" | "output_delivery_not_supported" | "output_format_not_supported" | "locale_not_supported" | "voice_not_available";
95
95
  //# sourceMappingURL=execution-provenance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-provenance.d.ts","sourceRoot":"","sources":["../../src/generated/execution-provenance.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,0BAA0B,EAAE,CAAC;IACvC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,gB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E,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,oBAAoB,GAAG,mBAAmB,GAAG,yBAAyB,GAAG,uBAAuB,GAAG,oBAAoB,GAAG,kBAAkB,GAAG,SAAS,GAAG,wBAAwB,GAAG,sBAAsB,GAAG,qBAAqB,GAAG,+BAA+B,GAAG,6BAA6B,GAAG,sBAAsB,GAAG,qBAAqB,CAAC"}
@@ -153,5 +153,5 @@ export type ExecutionProvenanceRouteRejection = {
153
153
  providerId: string;
154
154
  [property: string]: unknown;
155
155
  };
156
- export type Code = "task_not_supported" | "run_not_supported" | "streaming_not_supported" | "streaming_unavailable" | "privacy_constraint" | "cloud_constraint" | "offline" | "capability_unavailable" | "not_in_model_profile";
156
+ export type Code = "task_not_supported" | "run_not_supported" | "streaming_not_supported" | "streaming_unavailable" | "privacy_constraint" | "cloud_constraint" | "offline" | "capability_unavailable" | "not_in_model_profile" | "input_not_supported" | "output_delivery_not_supported" | "output_format_not_supported" | "locale_not_supported" | "voice_not_available";
157
157
  //# sourceMappingURL=inderun-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inderun-error.d.ts","sourceRoot":"","sources":["../../src/generated/inderun-error.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACrC;;;;;;OAMG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH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B,GAAG,sBAAsB,GAAG,qBAAqB,GAAG,+BAA+B,GAAG,6BAA6B,GAAG,sBAAsB,GAAG,qBAAqB,CAAC"}
@@ -10,6 +10,9 @@ export type { ModelPackage } from "./model-package.js";
10
10
  export type { StreamRunHandle } from "./stream-run.js";
11
11
  export type { StreamEvent } from "./stream-event.js";
12
12
  export type { StreamTerminalOutcome } from "./stream-terminal-outcome.js";
13
+ export type { ProviderCapabilitySnapshot } from "./provider-capability-snapshot.js";
14
+ export type { ProviderDescriptor } from "./provider-descriptor.js";
15
+ export type { ProviderDynamicCapabilities } from "./provider-dynamic-capabilities.js";
13
16
  export type { ExecutionProvenance } from "./execution-provenance.js";
14
17
  export * from "./schemas.js";
15
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,YAAY,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACpF,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,YAAY,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,cAAc,cAAc,CAAC"}
@@ -0,0 +1,370 @@
1
+ /**
2
+ * One registered provider's identity, static declaration and live capability check, as
3
+ * returned by checkCapabilities(). A read-only snapshot: producing it executes no task and
4
+ * has no side effects.
5
+ */
6
+ export type ProviderCapabilitySnapshot = {
7
+ /**
8
+ * The provider's live capability check at the time of the call.
9
+ */
10
+ capabilities: ProviderDynamicCapabilities;
11
+ /**
12
+ * The provider's static capability declaration.
13
+ */
14
+ descriptor: ProviderDescriptor;
15
+ /**
16
+ * Identifier of the provider; equal to descriptor.id.
17
+ */
18
+ providerId: string;
19
+ [property: string]: unknown;
20
+ };
21
+ /**
22
+ * The provider's live capability check at the time of the call.
23
+ *
24
+ * A provider's live capability check, evaluated on the current host when routing or when
25
+ * checkCapabilities() is called. Unlike the descriptor it can change between calls.
26
+ */
27
+ export type ProviderDynamicCapabilities = {
28
+ /**
29
+ * Whether the provider is available and functional on this host right now.
30
+ */
31
+ available: boolean;
32
+ /**
33
+ * Whether cancellation is honored on this host right now. Absent inherits the static
34
+ * descriptor.cancel value: any value other than 'none' means available. Never null.
35
+ */
36
+ cancellationAvailable?: boolean;
37
+ /**
38
+ * Why the provider is unavailable, when available is false.
39
+ */
40
+ reason?: string;
41
+ /**
42
+ * Whether the provider can stream (Mode 2) on this host right now. Absent inherits the
43
+ * static descriptor.supports.streaming value; only set it when the host takes streaming
44
+ * away from a provider that otherwise declares it. Never null.
45
+ */
46
+ streamingAvailable?: boolean;
47
+ /**
48
+ * Why streaming is unavailable, when streamingAvailable is false. Absent lets the route
49
+ * planner synthesize a default message.
50
+ */
51
+ streamingUnavailableReason?: string;
52
+ /**
53
+ * Per-task overrides of the provider-level check, for tasks whose availability differs on
54
+ * this host, e.g. a voice that is not installed. Every field of an entry is optional and
55
+ * absent inherits the provider-level value; a false at either level wins.
56
+ */
57
+ taskCapabilities?: ProviderTaskAvailability[];
58
+ [property: string]: unknown;
59
+ };
60
+ /**
61
+ * The live check for one task kind.
62
+ */
63
+ export type ProviderTaskAvailability = {
64
+ /**
65
+ * Whether the task can run on this host right now. Absent inherits the provider-level
66
+ * available. Never null.
67
+ */
68
+ available?: boolean;
69
+ /**
70
+ * Whether cancellation is honored for this task right now. Absent inherits. Never null.
71
+ */
72
+ cancellationAvailable?: boolean;
73
+ /**
74
+ * The task kind this entry describes.
75
+ */
76
+ kind: string;
77
+ /**
78
+ * BCP 47 locales available for this task right now. Absent means the provider cannot
79
+ * enumerate them.
80
+ */
81
+ locales?: string[];
82
+ /**
83
+ * Why the task is unavailable, when available is false.
84
+ */
85
+ reason?: string;
86
+ /**
87
+ * Whether the task can stream on this host right now. Absent inherits. Never null.
88
+ */
89
+ streamingAvailable?: boolean;
90
+ /**
91
+ * Why streaming is unavailable for this task, when streamingAvailable is false.
92
+ */
93
+ streamingUnavailableReason?: string;
94
+ /**
95
+ * Voices available for this task right now. Absent means the provider cannot enumerate
96
+ * them; a request that requires a voice then never routes to it.
97
+ */
98
+ voices?: ProviderVoice[];
99
+ [property: string]: unknown;
100
+ };
101
+ /**
102
+ * Provider-neutral traits of one available voice. Carries no provider voice identifier.
103
+ */
104
+ export type ProviderVoice = {
105
+ gender?: VoiceGender;
106
+ /**
107
+ * BCP 47 locale the voice speaks.
108
+ */
109
+ locale: string;
110
+ /**
111
+ * Whether using the voice sends data off the device. Absent inherits the task's privacy
112
+ * posture.
113
+ */
114
+ networkRequired?: boolean;
115
+ [property: string]: unknown;
116
+ };
117
+ /**
118
+ * Perceived gender of a voice, as the platform reports it.
119
+ */
120
+ export type VoiceGender = "female" | "male" | "neutral";
121
+ /**
122
+ * The provider's static capability declaration.
123
+ *
124
+ * A provider's static capability declaration: identity, placement, transport, supported
125
+ * interaction modes and tasks, cancellation guarantee, resource limits and privacy posture.
126
+ * It does not change while the provider is registered. The route planner,
127
+ * checkCapabilities() and execution provenance all read this one shape.
128
+ */
129
+ export type ProviderDescriptor = {
130
+ /**
131
+ * Cancellation guarantee: 'hard' stops processing including remote work, 'soft' stops
132
+ * reading locally while remote work may continue, 'none' means cancellation is unsupported.
133
+ * Independently of this value, the engine delivers no event after a cancel.
134
+ */
135
+ cancel: CancelSemantics;
136
+ /**
137
+ * Unique identifier of the provider instance (a target), e.g. 'apple_foundation_models' or
138
+ * 'openai_compatible_cloud:gpt-5-mini'. Model profiles list targets by this id.
139
+ */
140
+ id: string;
141
+ /**
142
+ * Optional input and output resource limits.
143
+ */
144
+ limits?: ProviderLimits;
145
+ /**
146
+ * The model this provider instance is bound to, when it can name one. Cloud providers
147
+ * report the model id they send; platform-managed models report an opaque platform alias
148
+ * rather than a guessed weight name. Absent means the provider cannot name its model.
149
+ */
150
+ model?: string;
151
+ /**
152
+ * Data-egress posture, used to enforce local and cloud routing rules. Absent means a local
153
+ * or edge provider is treated as keeping data on the device and a cloud provider as sending
154
+ * it off.
155
+ */
156
+ privacy?: ProviderPrivacy;
157
+ /**
158
+ * How a streaming provider delivers incremental output: individual tokens, larger chunks,
159
+ * or whole snapshots. Absent for providers that do not stream.
160
+ */
161
+ streamingStyle?: StreamingStyle;
162
+ /**
163
+ * Interaction modes and features the provider statically declares.
164
+ */
165
+ supports: ProviderSupports;
166
+ /**
167
+ * What the provider can do for each task: accepted inputs, interaction modes, output
168
+ * deliveries and formats, cancellation, locales and privacy. When present it is
169
+ * authoritative for routing and must list every task the provider serves. When absent (a
170
+ * legacy descriptor), routing infers exactly one entry — 'text_to_text' with text input,
171
+ * inline output, run/stream from supports and cancel from cancel — if tasks contains
172
+ * 'text_to_text', and nothing for any other task: a legacy descriptor is never treated as
173
+ * capable of a non-text task.
174
+ */
175
+ taskCapabilities?: ProviderTaskCapability[];
176
+ /**
177
+ * Task kinds the provider supports, e.g. 'text_to_text'. When taskCapabilities is present
178
+ * it must describe the same kinds and is what routing reads; without it, routing infers
179
+ * capabilities for 'text_to_text' alone (see taskCapabilities).
180
+ */
181
+ tasks: string[];
182
+ /**
183
+ * How the engine reaches the provider: in-process runtime, operating-system service,
184
+ * buffered HTTP, server-sent events, or a realtime connection.
185
+ */
186
+ transport: ProviderTransport;
187
+ /**
188
+ * Execution placement: 'local' (on the device), 'edge', or 'cloud'.
189
+ */
190
+ type: ProviderType;
191
+ [property: string]: unknown;
192
+ };
193
+ /**
194
+ * Cancellation guarantee: 'hard' stops processing including remote work, 'soft' stops
195
+ * reading locally while remote work may continue, 'none' means cancellation is unsupported.
196
+ * Independently of this value, the engine delivers no event after a cancel.
197
+ *
198
+ * Cancellation guarantee for this task. It may differ from the provider-level cancel, e.g.
199
+ * when stopping playback is immediate but a synthesis request cannot be aborted.
200
+ */
201
+ export type CancelSemantics = "hard" | "soft" | "none";
202
+ /**
203
+ * Optional input and output resource limits.
204
+ */
205
+ export type ProviderLimits = {
206
+ /**
207
+ * Longest accepted or produced audio, in seconds.
208
+ */
209
+ maxAudioSeconds?: number;
210
+ /**
211
+ * Largest accepted image, in bytes.
212
+ */
213
+ maxImageBytes?: number;
214
+ /**
215
+ * Largest accepted input, in tokens.
216
+ */
217
+ maxInputTokens?: number;
218
+ /**
219
+ * Largest output the provider produces, in tokens.
220
+ */
221
+ maxOutputTokens?: number;
222
+ [property: string]: unknown;
223
+ };
224
+ /**
225
+ * Data-egress posture, used to enforce local and cloud routing rules. Absent means a local
226
+ * or edge provider is treated as keeping data on the device and a cloud provider as sending
227
+ * it off.
228
+ *
229
+ * Data-egress posture for this task when it differs from the provider-level privacy, e.g. a
230
+ * provider whose speech synthesis uses a network service. Absent inherits
231
+ * descriptor.privacy.
232
+ */
233
+ export type ProviderPrivacy = {
234
+ /**
235
+ * Whether request content leaves the device.
236
+ */
237
+ dataLeavesDevice: boolean;
238
+ /**
239
+ * Geographic regions where a cloud provider processes data.
240
+ */
241
+ regions?: string[];
242
+ [property: string]: unknown;
243
+ };
244
+ /**
245
+ * How a streaming provider delivers incremental output: individual tokens, larger chunks,
246
+ * or whole snapshots. Absent for providers that do not stream.
247
+ */
248
+ export type StreamingStyle = "tokens" | "chunks" | "snapshots";
249
+ /**
250
+ * Interaction modes and features the provider statically declares.
251
+ */
252
+ export type ProviderSupports = {
253
+ /**
254
+ * Whether the provider accepts non-text inputs such as images or audio.
255
+ */
256
+ multimodal: boolean;
257
+ /**
258
+ * Whether the provider supports Mode 3 realtime sessions. Reserved; no engine implements
259
+ * Mode 3 yet.
260
+ */
261
+ realtime: boolean;
262
+ /**
263
+ * Whether the provider emits reasoning events alongside content.
264
+ */
265
+ reasoningEvents: boolean;
266
+ /**
267
+ * Whether the provider supports Mode 1 run (request/response).
268
+ */
269
+ run: boolean;
270
+ /**
271
+ * Whether the provider supports Mode 2 stream. A provider that declares it must also
272
+ * implement the streaming adapter; the engines report it as unavailable otherwise.
273
+ */
274
+ streaming: boolean;
275
+ /**
276
+ * Whether the provider supports structured output constrained by a JSON schema.
277
+ */
278
+ structuredOutput: boolean;
279
+ /**
280
+ * Whether the provider supports tool calling.
281
+ */
282
+ tools: boolean;
283
+ [property: string]: unknown;
284
+ };
285
+ /**
286
+ * The provider's static capabilities for one task kind.
287
+ */
288
+ export type ProviderTaskCapability = {
289
+ /**
290
+ * Cancellation guarantee for this task. It may differ from the provider-level cancel, e.g.
291
+ * when stopping playback is immediate but a synthesis request cannot be aborted.
292
+ */
293
+ cancel: CancelSemantics;
294
+ /**
295
+ * Input media kinds the provider accepts for this task.
296
+ */
297
+ inputs: [TaskInputKind, ...TaskInputKind[]];
298
+ /**
299
+ * Interaction modes the provider supports for this task.
300
+ */
301
+ interaction: ProviderTaskInteraction;
302
+ /**
303
+ * The task kind this entry describes, e.g. 'text_to_speech'.
304
+ */
305
+ kind: string;
306
+ /**
307
+ * BCP 47 locales the provider can serve for this task, when it knows them statically.
308
+ * Absent means unknown; the dynamic check may report them instead.
309
+ */
310
+ locales?: string[];
311
+ /**
312
+ * How results of this task can be delivered. A provider lists only what it really produces:
313
+ * a provider that can only play audio lists 'playback' and never 'artifact'.
314
+ */
315
+ outputs: [ProviderTaskOutput, ...ProviderTaskOutput[]];
316
+ /**
317
+ * Data-egress posture for this task when it differs from the provider-level privacy, e.g. a
318
+ * provider whose speech synthesis uses a network service. Absent inherits
319
+ * descriptor.privacy.
320
+ */
321
+ privacy?: ProviderPrivacy;
322
+ [property: string]: unknown;
323
+ };
324
+ /**
325
+ * A kind of input medium a task consumes.
326
+ */
327
+ export type TaskInputKind = "text" | "image" | "audio";
328
+ /**
329
+ * Interaction modes the provider supports for this task.
330
+ */
331
+ export type ProviderTaskInteraction = {
332
+ /**
333
+ * Whether the provider supports Mode 1 run for this task.
334
+ */
335
+ run: boolean;
336
+ /**
337
+ * Whether the provider supports Mode 2 stream for this task.
338
+ */
339
+ stream: boolean;
340
+ [property: string]: unknown;
341
+ };
342
+ /**
343
+ * One way the provider can deliver a task's result.
344
+ */
345
+ export type ProviderTaskOutput = {
346
+ delivery: OutputDelivery;
347
+ /**
348
+ * Media types the provider can produce with this delivery, e.g. 'audio/wav'. Absent means
349
+ * the provider does not declare them; a request that requires specific media types never
350
+ * routes to such an output.
351
+ */
352
+ mediaTypes?: string[];
353
+ [property: string]: unknown;
354
+ };
355
+ /**
356
+ * How a task's result reaches the application: 'inline' content in the result (text),
357
+ * 'playback' as a managed, audible effect on the device with no retrievable bytes, or
358
+ * 'artifact' as retrievable media.
359
+ */
360
+ export type OutputDelivery = "inline" | "playback" | "artifact";
361
+ /**
362
+ * How the engine reaches the provider: in-process runtime, operating-system service,
363
+ * buffered HTTP, server-sent events, or a realtime connection.
364
+ */
365
+ export type ProviderTransport = "in_process" | "system_service" | "http" | "sse" | "realtime";
366
+ /**
367
+ * Execution placement: 'local' (on the device), 'edge', or 'cloud'.
368
+ */
369
+ export type ProviderType = "local" | "edge" | "cloud";
370
+ //# sourceMappingURL=provider-capability-snapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-capability-snapshot.d.ts","sourceRoot":"","sources":["../../src/generated/provider-capability-snapshot.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC;;OAEG;IACH,YAAY,EAAE,2BAA2B,CAAC;IAC1C;;OAEG;IACH,UAAU,EAAE,kBAAkB,CAAC;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACtC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAE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