@independo/inderun-contracts 0.3.3-rc.2 → 0.4.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.
- package/dist/generated/execution-provenance.d.ts +95 -0
- package/dist/generated/execution-provenance.d.ts.map +1 -0
- package/dist/generated/execution-provenance.js +2 -0
- package/dist/generated/inderun-error.d.ts +102 -0
- package/dist/generated/inderun-error.d.ts.map +1 -1
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/route-plan.d.ts +5 -3
- package/dist/generated/route-plan.d.ts.map +1 -1
- package/dist/generated/route-planner-input.d.ts +26 -0
- package/dist/generated/route-planner-input.d.ts.map +1 -1
- package/dist/generated/schemas.d.ts +169 -2
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +214 -2
- package/dist/generated/stream-event.d.ts +109 -0
- package/dist/generated/stream-event.d.ts.map +1 -1
- package/dist/generated/stream-terminal-outcome.d.ts +108 -0
- package/dist/generated/stream-terminal-outcome.d.ts.map +1 -1
- package/dist/generated/task-request.d.ts +8 -0
- package/dist/generated/task-request.d.ts.map +1 -1
- package/dist/generated/task-result.d.ts +114 -6
- package/dist/generated/task-result.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/validators.d.ts +3 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +12 -1
- package/package.json +1 -1
- package/src/generated/execution-provenance.ts +102 -0
- package/src/generated/inderun-error.ts +108 -0
- package/src/generated/index.ts +1 -0
- package/src/generated/route-plan.ts +5 -3
- package/src/generated/route-planner-input.ts +27 -0
- package/src/generated/schemas.ts +215 -2
- package/src/generated/stream-event.ts +122 -7
- package/src/generated/stream-terminal-outcome.ts +114 -0
- package/src/generated/task-request.ts +8 -0
- package/src/generated/task-result.ts +121 -7
- package/src/index.ts +3 -0
- package/src/validators.ts +15 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provider-neutral record of how an execution was carried out: the target the outcome is
|
|
3
|
+
* attributed to, its declared locality, the configured and provider-reported model, every
|
|
4
|
+
* attempt, and why other candidates were rejected. Carried on TaskResult, on every
|
|
5
|
+
* StreamTerminalOutcome branch, and on IndeRunError. It reports what the engine observed
|
|
6
|
+
* and what providers declared or reported; it never infers a model or locality a provider
|
|
7
|
+
* did not state, and it never contains request content, credentials, or provider payloads.
|
|
8
|
+
*/
|
|
9
|
+
export type ExecutionProvenance = {
|
|
10
|
+
/**
|
|
11
|
+
* How many providers were attempted. 0 when the request failed validation or routing, or
|
|
12
|
+
* was cancelled before any attempt started.
|
|
13
|
+
*/
|
|
14
|
+
attemptCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Every attempted provider, in attempt order, with how its attempt ended.
|
|
17
|
+
*/
|
|
18
|
+
attempts: ExecutionProvenanceAttempt[];
|
|
19
|
+
/**
|
|
20
|
+
* The model providerId is bound to, as its descriptor declares it. Absent when the provider
|
|
21
|
+
* cannot name its model or no provider is attributed.
|
|
22
|
+
*/
|
|
23
|
+
configuredModel?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether more than one provider was attempted (attemptCount > 1).
|
|
26
|
+
*/
|
|
27
|
+
fallbackOccurred: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Where providerId declares it executes: 'on_device' for a local provider, 'edge', or
|
|
30
|
+
* 'cloud'. A declaration by the provider's descriptor, not a measurement. 'unknown' when
|
|
31
|
+
* providerId is absent.
|
|
32
|
+
*/
|
|
33
|
+
locality: Locality;
|
|
34
|
+
/**
|
|
35
|
+
* The model profile the request routed within; 'auto' when the request named none.
|
|
36
|
+
*/
|
|
37
|
+
modelProfile: string;
|
|
38
|
+
/**
|
|
39
|
+
* The target the outcome is attributed to: the provider that produced the result, the
|
|
40
|
+
* provider a stream had committed to when it ended, or the provider that was running when
|
|
41
|
+
* it was cancelled. Absent when no provider was reached or when every attempted provider
|
|
42
|
+
* failed before one was committed to.
|
|
43
|
+
*/
|
|
44
|
+
providerId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The model identifier the provider reported in its own response. Absent means the provider
|
|
47
|
+
* did not report one; it is never inferred from configuration.
|
|
48
|
+
*/
|
|
49
|
+
reportedModel?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Providers the route planner rejected before any attempt, with the normalized RoutePlan
|
|
52
|
+
* reason codes. Codes only: no provider-supplied messages.
|
|
53
|
+
*/
|
|
54
|
+
routeRejections: ExecutionProvenanceRouteRejection[];
|
|
55
|
+
/**
|
|
56
|
+
* Contract schema version used to interpret this provenance record.
|
|
57
|
+
*/
|
|
58
|
+
schemaVersion: "1.0";
|
|
59
|
+
[property: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
export type ExecutionProvenanceAttempt = {
|
|
62
|
+
/**
|
|
63
|
+
* Normalized error class of a failed attempt.
|
|
64
|
+
*/
|
|
65
|
+
errorClass?: ErrorClass;
|
|
66
|
+
/**
|
|
67
|
+
* 'succeeded' (produced the result or was committed to and completed), 'failed', or
|
|
68
|
+
* 'cancelled'.
|
|
69
|
+
*/
|
|
70
|
+
outcome: AttemptOutcome;
|
|
71
|
+
providerId: string;
|
|
72
|
+
[property: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Normalized error class of a failed attempt.
|
|
76
|
+
*/
|
|
77
|
+
export type ErrorClass = "CapabilityMismatch" | "Offline" | "AuthError" | "RateLimited" | "Timeout" | "Unavailable" | "Internal";
|
|
78
|
+
/**
|
|
79
|
+
* 'succeeded' (produced the result or was committed to and completed), 'failed', or
|
|
80
|
+
* 'cancelled'.
|
|
81
|
+
*/
|
|
82
|
+
export type AttemptOutcome = "succeeded" | "failed" | "cancelled";
|
|
83
|
+
/**
|
|
84
|
+
* Where providerId declares it executes: 'on_device' for a local provider, 'edge', or
|
|
85
|
+
* 'cloud'. A declaration by the provider's descriptor, not a measurement. 'unknown' when
|
|
86
|
+
* providerId is absent.
|
|
87
|
+
*/
|
|
88
|
+
export type Locality = "on_device" | "edge" | "cloud" | "unknown";
|
|
89
|
+
export type ExecutionProvenanceRouteRejection = {
|
|
90
|
+
codes: Code[];
|
|
91
|
+
providerId: string;
|
|
92
|
+
[property: string]: unknown;
|
|
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";
|
|
95
|
+
//# sourceMappingURL=execution-provenance.d.ts.map
|
|
@@ -0,0 +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,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;AAEjI;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAElE,MAAM,MAAM,iCAAiC,GAAG;IAC5C,KAAK,EAAO,IAAI,EAAE,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,CAAC"}
|
|
@@ -22,6 +22,12 @@ export type IndeRunError = {
|
|
|
22
22
|
* Human-readable error message suitable for logs and developer diagnostics.
|
|
23
23
|
*/
|
|
24
24
|
message: string;
|
|
25
|
+
/**
|
|
26
|
+
* Normalized execution provenance: which target ran, its declared locality, the configured
|
|
27
|
+
* and reported model, and how fallback and routing played out. See
|
|
28
|
+
* execution-provenance.schema.json.
|
|
29
|
+
*/
|
|
30
|
+
provenance?: ExecutionProvenance;
|
|
25
31
|
/**
|
|
26
32
|
* Identifier of the provider associated with the failure, if execution reached a provider.
|
|
27
33
|
*/
|
|
@@ -50,6 +56,102 @@ export type IndeRunError = {
|
|
|
50
56
|
* Offline/Unavailable (provider unreachable or not ready), AuthError (credential/auth
|
|
51
57
|
* failure), RateLimited (provider throttled the request), Timeout (provider exceeded its
|
|
52
58
|
* execution budget), Internal (unexpected engine-side failure).
|
|
59
|
+
*
|
|
60
|
+
* Normalized error class of a failed attempt.
|
|
53
61
|
*/
|
|
54
62
|
export type ErrorClass = "CapabilityMismatch" | "Offline" | "AuthError" | "RateLimited" | "Timeout" | "Unavailable" | "Internal";
|
|
63
|
+
/**
|
|
64
|
+
* Normalized execution provenance: which target ran, its declared locality, the configured
|
|
65
|
+
* and reported model, and how fallback and routing played out. See
|
|
66
|
+
* execution-provenance.schema.json.
|
|
67
|
+
*
|
|
68
|
+
* Provider-neutral record of how an execution was carried out: the target the outcome is
|
|
69
|
+
* attributed to, its declared locality, the configured and provider-reported model, every
|
|
70
|
+
* attempt, and why other candidates were rejected. Carried on TaskResult, on every
|
|
71
|
+
* StreamTerminalOutcome branch, and on IndeRunError. It reports what the engine observed
|
|
72
|
+
* and what providers declared or reported; it never infers a model or locality a provider
|
|
73
|
+
* did not state, and it never contains request content, credentials, or provider payloads.
|
|
74
|
+
*/
|
|
75
|
+
export type ExecutionProvenance = {
|
|
76
|
+
/**
|
|
77
|
+
* How many providers were attempted. 0 when the request failed validation or routing, or
|
|
78
|
+
* was cancelled before any attempt started.
|
|
79
|
+
*/
|
|
80
|
+
attemptCount: number;
|
|
81
|
+
/**
|
|
82
|
+
* Every attempted provider, in attempt order, with how its attempt ended.
|
|
83
|
+
*/
|
|
84
|
+
attempts: ExecutionProvenanceAttempt[];
|
|
85
|
+
/**
|
|
86
|
+
* The model providerId is bound to, as its descriptor declares it. Absent when the provider
|
|
87
|
+
* cannot name its model or no provider is attributed.
|
|
88
|
+
*/
|
|
89
|
+
configuredModel?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Whether more than one provider was attempted (attemptCount > 1).
|
|
92
|
+
*/
|
|
93
|
+
fallbackOccurred: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Where providerId declares it executes: 'on_device' for a local provider, 'edge', or
|
|
96
|
+
* 'cloud'. A declaration by the provider's descriptor, not a measurement. 'unknown' when
|
|
97
|
+
* providerId is absent.
|
|
98
|
+
*/
|
|
99
|
+
locality: Locality;
|
|
100
|
+
/**
|
|
101
|
+
* The model profile the request routed within; 'auto' when the request named none.
|
|
102
|
+
*/
|
|
103
|
+
modelProfile: string;
|
|
104
|
+
/**
|
|
105
|
+
* The target the outcome is attributed to: the provider that produced the result, the
|
|
106
|
+
* provider a stream had committed to when it ended, or the provider that was running when
|
|
107
|
+
* it was cancelled. Absent when no provider was reached or when every attempted provider
|
|
108
|
+
* failed before one was committed to.
|
|
109
|
+
*/
|
|
110
|
+
providerId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The model identifier the provider reported in its own response. Absent means the provider
|
|
113
|
+
* did not report one; it is never inferred from configuration.
|
|
114
|
+
*/
|
|
115
|
+
reportedModel?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Providers the route planner rejected before any attempt, with the normalized RoutePlan
|
|
118
|
+
* reason codes. Codes only: no provider-supplied messages.
|
|
119
|
+
*/
|
|
120
|
+
routeRejections: ExecutionProvenanceRouteRejection[];
|
|
121
|
+
/**
|
|
122
|
+
* Contract schema version used to interpret this provenance record.
|
|
123
|
+
*/
|
|
124
|
+
schemaVersion: "1.0";
|
|
125
|
+
[property: string]: unknown;
|
|
126
|
+
};
|
|
127
|
+
export type ExecutionProvenanceAttempt = {
|
|
128
|
+
/**
|
|
129
|
+
* Normalized error class of a failed attempt.
|
|
130
|
+
*/
|
|
131
|
+
errorClass?: ErrorClass;
|
|
132
|
+
/**
|
|
133
|
+
* 'succeeded' (produced the result or was committed to and completed), 'failed', or
|
|
134
|
+
* 'cancelled'.
|
|
135
|
+
*/
|
|
136
|
+
outcome: AttemptOutcome;
|
|
137
|
+
providerId: string;
|
|
138
|
+
[property: string]: unknown;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* 'succeeded' (produced the result or was committed to and completed), 'failed', or
|
|
142
|
+
* 'cancelled'.
|
|
143
|
+
*/
|
|
144
|
+
export type AttemptOutcome = "succeeded" | "failed" | "cancelled";
|
|
145
|
+
/**
|
|
146
|
+
* Where providerId declares it executes: 'on_device' for a local provider, 'edge', or
|
|
147
|
+
* 'cloud'. A declaration by the provider's descriptor, not a measurement. 'unknown' when
|
|
148
|
+
* providerId is absent.
|
|
149
|
+
*/
|
|
150
|
+
export type Locality = "on_device" | "edge" | "cloud" | "unknown";
|
|
151
|
+
export type ExecutionProvenanceRouteRejection = {
|
|
152
|
+
codes: Code[];
|
|
153
|
+
providerId: string;
|
|
154
|
+
[property: string]: unknown;
|
|
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";
|
|
55
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;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC;IACrB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED
|
|
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;;O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AO,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,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAElE,MAAM,MAAM,iCAAiC,GAAG;IAC5C,KAAK,EAAO,IAAI,EAAE,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,CAAC"}
|
|
@@ -10,5 +10,6 @@ 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 { ExecutionProvenance } from "./execution-provenance.js";
|
|
13
14
|
export * from "./schemas.js";
|
|
14
15
|
//# 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,EA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,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,cAAc,cAAc,CAAC"}
|
|
@@ -55,7 +55,8 @@ export type Reason = {
|
|
|
55
55
|
* Normalized rejection reason. 'streaming_not_supported' means the descriptor does not
|
|
56
56
|
* statically declare Mode-2 streaming; 'streaming_unavailable' means it declares streaming
|
|
57
57
|
* but the dynamic capability snapshot reports it cannot stream in the current host
|
|
58
|
-
* environment.
|
|
58
|
+
* environment. 'not_in_model_profile' means the request named a model profile that does not
|
|
59
|
+
* list this provider.
|
|
59
60
|
*/
|
|
60
61
|
code: Code;
|
|
61
62
|
message: string;
|
|
@@ -65,7 +66,8 @@ export type Reason = {
|
|
|
65
66
|
* Normalized rejection reason. 'streaming_not_supported' means the descriptor does not
|
|
66
67
|
* statically declare Mode-2 streaming; 'streaming_unavailable' means it declares streaming
|
|
67
68
|
* but the dynamic capability snapshot reports it cannot stream in the current host
|
|
68
|
-
* environment.
|
|
69
|
+
* environment. 'not_in_model_profile' means the request named a model profile that does not
|
|
70
|
+
* list this provider.
|
|
69
71
|
*/
|
|
70
|
-
export type Code = "task_not_supported" | "run_not_supported" | "streaming_not_supported" | "streaming_unavailable" | "privacy_constraint" | "cloud_constraint" | "offline" | "capability_unavailable";
|
|
72
|
+
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";
|
|
71
73
|
//# sourceMappingURL=route-plan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-plan.d.ts","sourceRoot":"","sources":["../../src/generated/route-plan.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB;;OAEG;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;I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C5B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACpB,KAAK,EAAO,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAc,MAAM,CAAC;IAC5B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,qBAAqB,GAAG,SAAS,GAAG,aAAa,CAAC;AAE5E,MAAM,MAAM,gBAAgB,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAK,MAAM,EAAE,CAAC;IACrB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACjB;;;;;;OAMG;IACH,IAAI,EAAK,IAAI,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;;;;;GAMG;AACH,MAAM,MAAM,IAAI,GAAG,oBAAoB,GAAG,mBAAmB,GAAG,yBAAyB,GAAG,uBAAuB,GAAG,oBAAoB,GAAG,kBAAkB,GAAG,SAAS,GAAG,wBAAwB,GAAG,sBAAsB,CAAC"}
|
|
@@ -12,6 +12,14 @@ export type RoutePlannerInput = {
|
|
|
12
12
|
* eligible providers; it never changes candidate ordering.
|
|
13
13
|
*/
|
|
14
14
|
interactionMode?: InteractionMode;
|
|
15
|
+
/**
|
|
16
|
+
* The resolved model profile the request routes within. Absent means the built-in 'auto'
|
|
17
|
+
* profile: no allow-list, and ordering by placement and preference alone. When present,
|
|
18
|
+
* providers whose id is not in targetIds are rejected with 'not_in_model_profile', and the
|
|
19
|
+
* position in targetIds ranks the survivors after placement and before preferences. Ids
|
|
20
|
+
* that name no registered provider are ignored.
|
|
21
|
+
*/
|
|
22
|
+
modelProfile?: ModelProfile;
|
|
15
23
|
/**
|
|
16
24
|
* Soft route ordering preferences applied after hard filtering.
|
|
17
25
|
*/
|
|
@@ -58,6 +66,24 @@ export type PrivacyEnum = "local_required" | "local_preferred" | "cloud_allowed"
|
|
|
58
66
|
* eligible providers; it never changes candidate ordering.
|
|
59
67
|
*/
|
|
60
68
|
export type InteractionMode = "run" | "stream";
|
|
69
|
+
/**
|
|
70
|
+
* The resolved model profile the request routes within. Absent means the built-in 'auto'
|
|
71
|
+
* profile: no allow-list, and ordering by placement and preference alone. When present,
|
|
72
|
+
* providers whose id is not in targetIds are rejected with 'not_in_model_profile', and the
|
|
73
|
+
* position in targetIds ranks the survivors after placement and before preferences. Ids
|
|
74
|
+
* that name no registered provider are ignored.
|
|
75
|
+
*/
|
|
76
|
+
export type ModelProfile = {
|
|
77
|
+
/**
|
|
78
|
+
* Profile name, carried for explanations.
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Provider ids in profile order.
|
|
83
|
+
*/
|
|
84
|
+
targetIds: [string, ...string[]];
|
|
85
|
+
[property: string]: unknown;
|
|
86
|
+
};
|
|
61
87
|
/**
|
|
62
88
|
* Soft route ordering preferences applied after hard filtering.
|
|
63
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-planner-input.d.ts","sourceRoot":"","sources":["../../src/generated/route-planner-input.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,SAAS,EAAE,QAA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CAC/B,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA"}
|
|
@@ -60,6 +60,11 @@ export declare const taskRequestSchema: {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
+
readonly modelProfile: {
|
|
64
|
+
readonly description: "Name of the model profile to route within, as configured on the engine. Absent or 'auto' means every registered target, ranked by constraints and preferences alone. A profile is an application-defined, ordered allow-list of targets (provider instances bound to one model each); raw model or provider identifiers are never accepted here. An unknown profile name fails request validation.";
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly minLength: 1;
|
|
67
|
+
};
|
|
63
68
|
readonly generation: {
|
|
64
69
|
readonly description: "Optional configuration for fine-tuning how the AI model generates its response.";
|
|
65
70
|
readonly type: "object";
|
|
@@ -226,6 +231,11 @@ export declare const taskResultSchema: {
|
|
|
226
231
|
readonly type: "string";
|
|
227
232
|
readonly minLength: 1;
|
|
228
233
|
};
|
|
234
|
+
readonly reportedModel: {
|
|
235
|
+
readonly description: "The model identifier the provider reported in its own response, set by the provider when its backend reports one. The engine carries it into provenance.reportedModel; it is never inferred from configuration.";
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly minLength: 1;
|
|
238
|
+
};
|
|
229
239
|
readonly totalMs: {
|
|
230
240
|
readonly description: "Measured execution duration in milliseconds, including route selection and result processing.";
|
|
231
241
|
readonly type: "number";
|
|
@@ -237,6 +247,10 @@ export declare const taskResultSchema: {
|
|
|
237
247
|
};
|
|
238
248
|
};
|
|
239
249
|
};
|
|
250
|
+
readonly provenance: {
|
|
251
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
252
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
253
|
+
};
|
|
240
254
|
};
|
|
241
255
|
};
|
|
242
256
|
export declare const inderunErrorSchema: {
|
|
@@ -285,6 +299,10 @@ export declare const inderunErrorSchema: {
|
|
|
285
299
|
readonly type: "object";
|
|
286
300
|
readonly additionalProperties: true;
|
|
287
301
|
};
|
|
302
|
+
readonly provenance: {
|
|
303
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
304
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
305
|
+
};
|
|
288
306
|
};
|
|
289
307
|
};
|
|
290
308
|
export declare const httpRequestSchema: {
|
|
@@ -440,6 +458,28 @@ export declare const routePlannerInputSchema: {
|
|
|
440
458
|
};
|
|
441
459
|
};
|
|
442
460
|
};
|
|
461
|
+
readonly modelProfile: {
|
|
462
|
+
readonly description: "The resolved model profile the request routes within. Absent means the built-in 'auto' profile: no allow-list, and ordering by placement and preference alone. When present, providers whose id is not in targetIds are rejected with 'not_in_model_profile', and the position in targetIds ranks the survivors after placement and before preferences. Ids that name no registered provider are ignored.";
|
|
463
|
+
readonly type: "object";
|
|
464
|
+
readonly additionalProperties: true;
|
|
465
|
+
readonly required: readonly ["name", "targetIds"];
|
|
466
|
+
readonly properties: {
|
|
467
|
+
readonly name: {
|
|
468
|
+
readonly description: "Profile name, carried for explanations.";
|
|
469
|
+
readonly type: "string";
|
|
470
|
+
readonly minLength: 1;
|
|
471
|
+
};
|
|
472
|
+
readonly targetIds: {
|
|
473
|
+
readonly description: "Provider ids in profile order.";
|
|
474
|
+
readonly type: "array";
|
|
475
|
+
readonly minItems: 1;
|
|
476
|
+
readonly items: {
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
readonly minLength: 1;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
443
483
|
readonly providers: {
|
|
444
484
|
readonly description: "Static descriptors plus dynamic capability snapshots for planning.";
|
|
445
485
|
readonly type: "array";
|
|
@@ -598,8 +638,8 @@ export declare const routePlanSchema: {
|
|
|
598
638
|
readonly required: readonly ["code", "message"];
|
|
599
639
|
readonly properties: {
|
|
600
640
|
readonly code: {
|
|
601
|
-
readonly description: "Normalized rejection reason. 'streaming_not_supported' means the descriptor does not statically declare Mode-2 streaming; 'streaming_unavailable' means it declares streaming but the dynamic capability snapshot reports it cannot stream in the current host environment.";
|
|
602
|
-
readonly enum: readonly ["task_not_supported", "run_not_supported", "streaming_not_supported", "streaming_unavailable", "privacy_constraint", "cloud_constraint", "offline", "capability_unavailable"];
|
|
641
|
+
readonly description: "Normalized rejection reason. 'streaming_not_supported' means the descriptor does not statically declare Mode-2 streaming; 'streaming_unavailable' means it declares streaming but the dynamic capability snapshot reports it cannot stream in the current host environment. 'not_in_model_profile' means the request named a model profile that does not list this provider.";
|
|
642
|
+
readonly enum: readonly ["task_not_supported", "run_not_supported", "streaming_not_supported", "streaming_unavailable", "privacy_constraint", "cloud_constraint", "offline", "capability_unavailable", "not_in_model_profile"];
|
|
603
643
|
};
|
|
604
644
|
readonly message: {
|
|
605
645
|
readonly type: "string";
|
|
@@ -1064,6 +1104,10 @@ export declare const streamEventSchema: {
|
|
|
1064
1104
|
};
|
|
1065
1105
|
};
|
|
1066
1106
|
};
|
|
1107
|
+
readonly provenance: {
|
|
1108
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1109
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1110
|
+
};
|
|
1067
1111
|
};
|
|
1068
1112
|
}, {
|
|
1069
1113
|
readonly type: "object";
|
|
@@ -1110,8 +1154,16 @@ export declare const streamEventSchema: {
|
|
|
1110
1154
|
readonly type: "object";
|
|
1111
1155
|
readonly additionalProperties: true;
|
|
1112
1156
|
};
|
|
1157
|
+
readonly provenance: {
|
|
1158
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1159
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1160
|
+
};
|
|
1113
1161
|
};
|
|
1114
1162
|
};
|
|
1163
|
+
readonly provenance: {
|
|
1164
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1165
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1166
|
+
};
|
|
1115
1167
|
};
|
|
1116
1168
|
}, {
|
|
1117
1169
|
readonly type: "object";
|
|
@@ -1134,6 +1186,10 @@ export declare const streamEventSchema: {
|
|
|
1134
1186
|
readonly reason: {
|
|
1135
1187
|
readonly type: "string";
|
|
1136
1188
|
};
|
|
1189
|
+
readonly provenance: {
|
|
1190
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1191
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1192
|
+
};
|
|
1137
1193
|
};
|
|
1138
1194
|
}];
|
|
1139
1195
|
};
|
|
@@ -1248,6 +1304,10 @@ export declare const streamTerminalOutcomeSchema: {
|
|
|
1248
1304
|
};
|
|
1249
1305
|
};
|
|
1250
1306
|
};
|
|
1307
|
+
readonly provenance: {
|
|
1308
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1309
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1310
|
+
};
|
|
1251
1311
|
};
|
|
1252
1312
|
}, {
|
|
1253
1313
|
readonly type: "object";
|
|
@@ -1305,8 +1365,16 @@ export declare const streamTerminalOutcomeSchema: {
|
|
|
1305
1365
|
readonly type: "object";
|
|
1306
1366
|
readonly additionalProperties: true;
|
|
1307
1367
|
};
|
|
1368
|
+
readonly provenance: {
|
|
1369
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1370
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1371
|
+
};
|
|
1308
1372
|
};
|
|
1309
1373
|
};
|
|
1374
|
+
readonly provenance: {
|
|
1375
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1376
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1377
|
+
};
|
|
1310
1378
|
};
|
|
1311
1379
|
}, {
|
|
1312
1380
|
readonly type: "object";
|
|
@@ -1334,7 +1402,106 @@ export declare const streamTerminalOutcomeSchema: {
|
|
|
1334
1402
|
readonly description: "Optional human-readable reason the run was cancelled (e.g. caller-initiated abort). Not a machine-taxonomy field; use errorClass on the 'error' outcome branch for failure classification.";
|
|
1335
1403
|
readonly type: "string";
|
|
1336
1404
|
};
|
|
1405
|
+
readonly provenance: {
|
|
1406
|
+
readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json.";
|
|
1407
|
+
readonly $ref: "execution-provenance.schema.json";
|
|
1408
|
+
};
|
|
1337
1409
|
};
|
|
1338
1410
|
}];
|
|
1339
1411
|
};
|
|
1412
|
+
export declare const executionProvenanceSchema: {
|
|
1413
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1414
|
+
readonly $id: "https://schemas.inderun.dev/1.0/execution-provenance.schema.json";
|
|
1415
|
+
readonly title: "ExecutionProvenance";
|
|
1416
|
+
readonly description: "Provider-neutral record of how an execution was carried out: the target the outcome is attributed to, its declared locality, the configured and provider-reported model, every attempt, and why other candidates were rejected. Carried on TaskResult, on every StreamTerminalOutcome branch, and on IndeRunError. It reports what the engine observed and what providers declared or reported; it never infers a model or locality a provider did not state, and it never contains request content, credentials, or provider payloads.";
|
|
1417
|
+
readonly type: "object";
|
|
1418
|
+
readonly additionalProperties: true;
|
|
1419
|
+
readonly required: readonly ["schemaVersion", "modelProfile", "locality", "attemptCount", "fallbackOccurred", "attempts", "routeRejections"];
|
|
1420
|
+
readonly properties: {
|
|
1421
|
+
readonly schemaVersion: {
|
|
1422
|
+
readonly description: "Contract schema version used to interpret this provenance record.";
|
|
1423
|
+
readonly const: "1.0";
|
|
1424
|
+
};
|
|
1425
|
+
readonly modelProfile: {
|
|
1426
|
+
readonly description: "The model profile the request routed within; 'auto' when the request named none.";
|
|
1427
|
+
readonly type: "string";
|
|
1428
|
+
readonly minLength: 1;
|
|
1429
|
+
};
|
|
1430
|
+
readonly providerId: {
|
|
1431
|
+
readonly description: "The target the outcome is attributed to: the provider that produced the result, the provider a stream had committed to when it ended, or the provider that was running when it was cancelled. Absent when no provider was reached or when every attempted provider failed before one was committed to.";
|
|
1432
|
+
readonly type: "string";
|
|
1433
|
+
readonly minLength: 1;
|
|
1434
|
+
};
|
|
1435
|
+
readonly locality: {
|
|
1436
|
+
readonly description: "Where providerId declares it executes: 'on_device' for a local provider, 'edge', or 'cloud'. A declaration by the provider's descriptor, not a measurement. 'unknown' when providerId is absent.";
|
|
1437
|
+
readonly enum: readonly ["on_device", "edge", "cloud", "unknown"];
|
|
1438
|
+
};
|
|
1439
|
+
readonly configuredModel: {
|
|
1440
|
+
readonly description: "The model providerId is bound to, as its descriptor declares it. Absent when the provider cannot name its model or no provider is attributed.";
|
|
1441
|
+
readonly type: "string";
|
|
1442
|
+
readonly minLength: 1;
|
|
1443
|
+
};
|
|
1444
|
+
readonly reportedModel: {
|
|
1445
|
+
readonly description: "The model identifier the provider reported in its own response. Absent means the provider did not report one; it is never inferred from configuration.";
|
|
1446
|
+
readonly type: "string";
|
|
1447
|
+
readonly minLength: 1;
|
|
1448
|
+
};
|
|
1449
|
+
readonly attemptCount: {
|
|
1450
|
+
readonly description: "How many providers were attempted. 0 when the request failed validation or routing, or was cancelled before any attempt started.";
|
|
1451
|
+
readonly type: "integer";
|
|
1452
|
+
readonly minimum: 0;
|
|
1453
|
+
};
|
|
1454
|
+
readonly fallbackOccurred: {
|
|
1455
|
+
readonly description: "Whether more than one provider was attempted (attemptCount > 1).";
|
|
1456
|
+
readonly type: "boolean";
|
|
1457
|
+
};
|
|
1458
|
+
readonly attempts: {
|
|
1459
|
+
readonly description: "Every attempted provider, in attempt order, with how its attempt ended.";
|
|
1460
|
+
readonly type: "array";
|
|
1461
|
+
readonly items: {
|
|
1462
|
+
readonly title: "ExecutionProvenanceAttempt";
|
|
1463
|
+
readonly type: "object";
|
|
1464
|
+
readonly additionalProperties: true;
|
|
1465
|
+
readonly required: readonly ["providerId", "outcome"];
|
|
1466
|
+
readonly properties: {
|
|
1467
|
+
readonly providerId: {
|
|
1468
|
+
readonly type: "string";
|
|
1469
|
+
readonly minLength: 1;
|
|
1470
|
+
};
|
|
1471
|
+
readonly outcome: {
|
|
1472
|
+
readonly title: "AttemptOutcome";
|
|
1473
|
+
readonly description: "'succeeded' (produced the result or was committed to and completed), 'failed', or 'cancelled'.";
|
|
1474
|
+
readonly enum: readonly ["succeeded", "failed", "cancelled"];
|
|
1475
|
+
};
|
|
1476
|
+
readonly errorClass: {
|
|
1477
|
+
readonly description: "Normalized error class of a failed attempt.";
|
|
1478
|
+
readonly enum: readonly ["CapabilityMismatch", "Offline", "AuthError", "RateLimited", "Timeout", "Unavailable", "Internal"];
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
readonly routeRejections: {
|
|
1484
|
+
readonly description: "Providers the route planner rejected before any attempt, with the normalized RoutePlan reason codes. Codes only: no provider-supplied messages.";
|
|
1485
|
+
readonly type: "array";
|
|
1486
|
+
readonly items: {
|
|
1487
|
+
readonly title: "ExecutionProvenanceRouteRejection";
|
|
1488
|
+
readonly type: "object";
|
|
1489
|
+
readonly additionalProperties: true;
|
|
1490
|
+
readonly required: readonly ["providerId", "codes"];
|
|
1491
|
+
readonly properties: {
|
|
1492
|
+
readonly providerId: {
|
|
1493
|
+
readonly type: "string";
|
|
1494
|
+
readonly minLength: 1;
|
|
1495
|
+
};
|
|
1496
|
+
readonly codes: {
|
|
1497
|
+
readonly type: "array";
|
|
1498
|
+
readonly items: {
|
|
1499
|
+
readonly enum: readonly ["task_not_supported", "run_not_supported", "streaming_not_supported", "streaming_unavailable", "privacy_constraint", "cloud_constraint", "offline", "capability_unavailable", "not_in_model_profile"];
|
|
1500
|
+
};
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1340
1507
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/generated/schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/generated/schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsMpB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHnB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DrB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CpB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCrB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;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