@independo/inderun-contracts 0.4.0 → 0.5.0-rc.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.
- package/dist/generated/artifact-read-request.d.ts +24 -0
- package/dist/generated/artifact-read-request.d.ts.map +1 -0
- package/dist/generated/artifact-read-request.js +2 -0
- package/dist/generated/execution-provenance.d.ts +8 -1
- package/dist/generated/execution-provenance.d.ts.map +1 -1
- package/dist/generated/inderun-error.d.ts +8 -1
- package/dist/generated/inderun-error.d.ts.map +1 -1
- package/dist/generated/index.d.ts +6 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/media-artifact.d.ts +53 -0
- package/dist/generated/media-artifact.d.ts.map +1 -0
- package/dist/generated/media-artifact.js +2 -0
- package/dist/generated/provider-capability-snapshot.d.ts +370 -0
- package/dist/generated/provider-capability-snapshot.d.ts.map +1 -0
- package/dist/generated/provider-capability-snapshot.js +2 -0
- package/dist/generated/provider-descriptor.d.ts +264 -0
- package/dist/generated/provider-descriptor.d.ts.map +1 -0
- package/dist/generated/provider-descriptor.js +2 -0
- package/dist/generated/provider-dynamic-capabilities.d.ts +99 -0
- package/dist/generated/provider-dynamic-capabilities.d.ts.map +1 -0
- package/dist/generated/provider-dynamic-capabilities.js +2 -0
- package/dist/generated/route-plan.d.ts +47 -3
- package/dist/generated/route-plan.d.ts.map +1 -1
- package/dist/generated/route-planner-input.d.ts +417 -32
- package/dist/generated/route-planner-input.d.ts.map +1 -1
- package/dist/generated/schemas.d.ts +833 -115
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +1038 -160
- package/dist/generated/stream-event.d.ts +136 -1
- package/dist/generated/stream-event.d.ts.map +1 -1
- package/dist/generated/stream-terminal-outcome.d.ts +182 -18
- package/dist/generated/stream-terminal-outcome.d.ts.map +1 -1
- package/dist/generated/task-output.d.ts +128 -0
- package/dist/generated/task-output.d.ts.map +1 -0
- package/dist/generated/task-output.js +2 -0
- package/dist/generated/task-request.d.ts +116 -11
- package/dist/generated/task-request.d.ts.map +1 -1
- package/dist/generated/task-result.d.ts +139 -15
- package/dist/generated/task-result.d.ts.map +1 -1
- package/dist/generated/telemetry-event.d.ts +2 -2
- package/dist/generated/telemetry-event.d.ts.map +1 -1
- package/dist/host.d.ts +24 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/types.d.ts +46 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/validators.d.ts +18 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +49 -1
- package/package.json +1 -1
- package/src/generated/artifact-read-request.ts +25 -0
- package/src/generated/execution-provenance.ts +8 -1
- package/src/generated/inderun-error.ts +8 -1
- package/src/generated/index.ts +6 -0
- package/src/generated/media-artifact.ts +56 -0
- package/src/generated/provider-capability-snapshot.ts +388 -0
- package/src/generated/provider-descriptor.ts +278 -0
- package/src/generated/provider-dynamic-capabilities.ts +103 -0
- package/src/generated/route-plan.ts +49 -3
- package/src/generated/route-planner-input.ts +437 -36
- package/src/generated/schemas.ts +1044 -160
- package/src/generated/stream-event.ts +145 -1
- package/src/generated/stream-terminal-outcome.ts +191 -18
- package/src/generated/task-output.ts +137 -0
- package/src/generated/task-request.ts +124 -11
- package/src/generated/task-result.ts +147 -15
- package/src/generated/telemetry-event.ts +2 -2
- package/src/host.ts +30 -1
- package/src/index.ts +28 -1
- package/src/types.ts +38 -1
- package/src/validators.ts +76 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A ranged read of an engine-owned media artifact through IndeRunApi.readArtifact (ADR
|
|
3
|
+
* 017). Reads are repeatable until the artifact is disposed; each returns at most the
|
|
4
|
+
* engine's configured maximum read size, which bounds what one call -- and one bridge
|
|
5
|
+
* message -- carries.
|
|
6
|
+
*/
|
|
7
|
+
export type ArtifactReadRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* MediaArtifact.id of the artifact to read.
|
|
10
|
+
*/
|
|
11
|
+
artifactId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Most bytes to return. Absent, or larger than the engine's maximum read size, means that
|
|
14
|
+
* maximum.
|
|
15
|
+
*/
|
|
16
|
+
maxBytes?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Byte offset to read from. Absent means 0. An offset equal to the artifact's size returns
|
|
19
|
+
* an empty, final chunk; a larger one is rejected.
|
|
20
|
+
*/
|
|
21
|
+
offset?: number;
|
|
22
|
+
[property: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=artifact-read-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-read-request.d.ts","sourceRoot":"","sources":["../../src/generated/artifact-read-request.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA"}
|
|
@@ -59,6 +59,13 @@ export type ExecutionProvenance = {
|
|
|
59
59
|
[property: string]: unknown;
|
|
60
60
|
};
|
|
61
61
|
export type ExecutionProvenanceAttempt = {
|
|
62
|
+
/**
|
|
63
|
+
* Whether the run committed to this provider during the attempt: its first content was
|
|
64
|
+
* delivered, it signalled the first possible audible effect, or it handed over an artifact.
|
|
65
|
+
* After commit a failure ends the run instead of falling back. Absent means the attempt did
|
|
66
|
+
* not commit.
|
|
67
|
+
*/
|
|
68
|
+
committed?: boolean;
|
|
62
69
|
/**
|
|
63
70
|
* Normalized error class of a failed attempt.
|
|
64
71
|
*/
|
|
@@ -91,5 +98,5 @@ export type ExecutionProvenanceRouteRejection = {
|
|
|
91
98
|
providerId: string;
|
|
92
99
|
[property: string]: unknown;
|
|
93
100
|
};
|
|
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";
|
|
101
|
+
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
102
|
//# 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,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,eAAe,EAAE,iCAAiC,EAAE,CAAC;IACrD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC;IACrB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,OAAO,EAAK,cAAc,CAAC;IAC3B,UAAU,EAAE,M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
|
+
/**
|
|
129
|
+
* Whether the run committed to this provider during the attempt: its first content was
|
|
130
|
+
* delivered, it signalled the first possible audible effect, or it handed over an artifact.
|
|
131
|
+
* After commit a failure ends the run instead of falling back. Absent means the attempt did
|
|
132
|
+
* not commit.
|
|
133
|
+
*/
|
|
134
|
+
committed?: boolean;
|
|
128
135
|
/**
|
|
129
136
|
* Normalized error class of a failed attempt.
|
|
130
137
|
*/
|
|
@@ -153,5 +160,5 @@ export type ExecutionProvenanceRouteRejection = {
|
|
|
153
160
|
providerId: string;
|
|
154
161
|
[property: string]: unknown;
|
|
155
162
|
};
|
|
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";
|
|
163
|
+
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
164
|
//# 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,YAAY,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AAG,oBAAoB,GAAG,kBAAkB,GAAG,SAAS,GAAG,wBAAwB,GAAG,sBAAsB,GAAG,qBAAqB,GAAG,+BAA+B,GAAG,6BAA6B,GAAG,sBAAsB,GAAG,qBAAqB,CAAC"}
|
|
@@ -10,6 +10,12 @@ 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";
|
|
16
|
+
export type { ArtifactReadRequest } from "./artifact-read-request.js";
|
|
17
|
+
export type { TaskOutput } from "./task-output.js";
|
|
18
|
+
export type { MediaArtifact } from "./media-artifact.js";
|
|
13
19
|
export type { ExecutionProvenance } from "./execution-provenance.js";
|
|
14
20
|
export * from "./schemas.js";
|
|
15
21
|
//# 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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,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A reference to retrievable media a run produced (ADR 017). It carries no bytes and no
|
|
3
|
+
* location: an engine-owned artifact is read through the engine by id, and an
|
|
4
|
+
* application-owned one was written to an application destination. Media-neutral: audio,
|
|
5
|
+
* images and video share this shape and differ only in mediaType.
|
|
6
|
+
*/
|
|
7
|
+
export type MediaArtifact = {
|
|
8
|
+
/**
|
|
9
|
+
* Size of the media in bytes. Always set for an artifact the engine materialized.
|
|
10
|
+
*/
|
|
11
|
+
byteLength?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The request's delivery.destinationRef the bytes were written to. Set exactly when owner
|
|
14
|
+
* is 'application'.
|
|
15
|
+
*/
|
|
16
|
+
destinationRef?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Duration of time-based media in milliseconds, where the producer knows it.
|
|
19
|
+
*/
|
|
20
|
+
durationMs?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Opaque, engine-issued identifier. Never a path, URL or provider identifier.
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* How long the engine keeps the bytes. 'until_disposed': until the application disposes the
|
|
27
|
+
* artifact or the process ends; the artifact outlives the run that produced it.
|
|
28
|
+
*/
|
|
29
|
+
lifetime: "until_disposed";
|
|
30
|
+
/**
|
|
31
|
+
* IANA media type of the bytes, e.g. 'audio/wav'. Encoding parameters ride on the media
|
|
32
|
+
* type (e.g. 'audio/L16;rate=22050').
|
|
33
|
+
*/
|
|
34
|
+
mediaType: string;
|
|
35
|
+
/**
|
|
36
|
+
* 'engine': the engine holds the bytes and the application reads them by id until it
|
|
37
|
+
* disposes the artifact. 'application': the bytes were written to the application
|
|
38
|
+
* destination named by destinationRef and the engine holds nothing.
|
|
39
|
+
*/
|
|
40
|
+
owner: ArtifactOwner;
|
|
41
|
+
[property: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* How long the engine keeps the bytes. 'until_disposed': until the application disposes the
|
|
45
|
+
* artifact or the process ends; the artifact outlives the run that produced it.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* 'engine': the engine holds the bytes and the application reads them by id until it
|
|
49
|
+
* disposes the artifact. 'application': the bytes were written to the application
|
|
50
|
+
* destination named by destinationRef and the engine holds nothing.
|
|
51
|
+
*/
|
|
52
|
+
export type ArtifactOwner = "engine" | "application";
|
|
53
|
+
//# sourceMappingURL=media-artifact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-artifact.d.ts","sourceRoot":"","sources":["../../src/generated/media-artifact.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,QAAQ,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,aAAa,CAAC;IACrB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,aAAa,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/gener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