@independo/inderun-contracts 0.1.0
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/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/generated/http-request.d.ts +34 -0
- package/dist/generated/http-request.d.ts.map +1 -0
- package/dist/generated/http-request.js +2 -0
- package/dist/generated/http-response.d.ts +25 -0
- package/dist/generated/http-response.d.ts.map +1 -0
- package/dist/generated/http-response.js +2 -0
- package/dist/generated/inderun-error.d.ts +45 -0
- package/dist/generated/inderun-error.d.ts.map +1 -0
- package/dist/generated/inderun-error.js +2 -0
- package/dist/generated/index.d.ts +10 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +2 -0
- package/dist/generated/route-plan.d.ts +59 -0
- package/dist/generated/route-plan.d.ts.map +1 -0
- package/dist/generated/route-plan.js +2 -0
- package/dist/generated/route-planner-input.d.ts +104 -0
- package/dist/generated/route-planner-input.d.ts.map +1 -0
- package/dist/generated/route-planner-input.js +2 -0
- package/dist/generated/schemas.d.ts +610 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +773 -0
- package/dist/generated/task-request.d.ts +171 -0
- package/dist/generated/task-request.d.ts.map +1 -0
- package/dist/generated/task-request.js +2 -0
- package/dist/generated/task-result.d.ts +96 -0
- package/dist/generated/task-result.d.ts.map +1 -0
- package/dist/generated/task-result.js +2 -0
- package/dist/generated/telemetry-event.d.ts +29 -0
- package/dist/generated/telemetry-event.d.ts.map +1 -0
- package/dist/generated/telemetry-event.js +2 -0
- package/dist/host.d.ts +111 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/types.d.ts +18 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/validators.d.ts +30 -0
- package/dist/validators.d.ts.map +1 -0
- package/dist/validators.js +158 -0
- package/package.json +33 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Independo GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @independo/inderun-contracts
|
|
2
|
+
|
|
3
|
+
Canonical JSON Schema-backed contracts for IndeRun.
|
|
4
|
+
|
|
5
|
+
The JSON Schema files in `contracts/schemas/` are the source of truth. TypeScript types and validators in this package,
|
|
6
|
+
and the generated Swift contract models, are produced from those schemas.
|
|
7
|
+
|
|
8
|
+
Use this package when you need the generated request, result, error, HTTP, route-planning, or telemetry contract types.
|
|
9
|
+
|
|
10
|
+
## Commands
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
pnpm generate
|
|
14
|
+
pnpm --filter @independo/inderun-contracts build
|
|
15
|
+
pnpm --filter @independo/inderun-contracts test
|
|
16
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalized HTTP request payload for host-provided cloud transport.
|
|
3
|
+
*/
|
|
4
|
+
export type HttpRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional serialized request body. For JSON APIs this should be a JSON string.
|
|
7
|
+
*/
|
|
8
|
+
body?: string;
|
|
9
|
+
/**
|
|
10
|
+
* HTTP headers to send after the provider adapter has applied any required transport-level
|
|
11
|
+
* credentials.
|
|
12
|
+
*/
|
|
13
|
+
headers?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* HTTP method to use for the request.
|
|
18
|
+
*/
|
|
19
|
+
method: Method;
|
|
20
|
+
/**
|
|
21
|
+
* Optional maximum duration for the host transport attempt in milliseconds.
|
|
22
|
+
*/
|
|
23
|
+
timeoutMs?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Absolute target URL for the provider transport request.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
[property: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* HTTP method to use for the request.
|
|
32
|
+
*/
|
|
33
|
+
export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
34
|
+
//# sourceMappingURL=http-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request.d.ts","sourceRoot":"","sources":["../../src/generated/http-request.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalized HTTP response payload returned by host-provided cloud transport.
|
|
3
|
+
*/
|
|
4
|
+
export type HttpResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* Serialized response body returned by the provider transport.
|
|
7
|
+
*/
|
|
8
|
+
body: string;
|
|
9
|
+
/**
|
|
10
|
+
* HTTP response headers normalized to string key-value pairs.
|
|
11
|
+
*/
|
|
12
|
+
headers: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* HTTP status code returned by the provider transport.
|
|
17
|
+
*/
|
|
18
|
+
status: number;
|
|
19
|
+
/**
|
|
20
|
+
* HTTP status text returned by the provider transport.
|
|
21
|
+
*/
|
|
22
|
+
statusText: string;
|
|
23
|
+
[property: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=http-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-response.d.ts","sourceRoot":"","sources":["../../src/generated/http-response.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalized Milestone-1 error contract.
|
|
3
|
+
*/
|
|
4
|
+
export type IndeRunError = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional structured diagnostic details. It must not contain raw secrets.
|
|
7
|
+
*/
|
|
8
|
+
details?: {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Normalized error taxonomy class.
|
|
13
|
+
*/
|
|
14
|
+
errorClass: ErrorClass;
|
|
15
|
+
/**
|
|
16
|
+
* Human-readable error message suitable for logs and developer diagnostics.
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
/**
|
|
20
|
+
* Identifier of the provider associated with the failure, if execution reached a provider.
|
|
21
|
+
*/
|
|
22
|
+
providerId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether retrying the same request may succeed.
|
|
25
|
+
*/
|
|
26
|
+
retryable?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Optional suggested delay before retrying, in milliseconds.
|
|
29
|
+
*/
|
|
30
|
+
retryAfterMs?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Opaque run identifier associated with the failed execution, if available.
|
|
33
|
+
*/
|
|
34
|
+
runId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Contract schema version used to interpret the error payload.
|
|
37
|
+
*/
|
|
38
|
+
schemaVersion: "1.0";
|
|
39
|
+
[property: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Normalized error taxonomy class.
|
|
43
|
+
*/
|
|
44
|
+
export type ErrorClass = "CapabilityMismatch" | "Offline" | "AuthError" | "RateLimited" | "Timeout" | "Unavailable" | "Internal";
|
|
45
|
+
//# sourceMappingURL=inderun-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inderun-error.d.ts","sourceRoot":"","sources":["../../src/generated/inderun-error.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACrC;;OAEG;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;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { TaskRequest } from "./task-request.js";
|
|
2
|
+
export type { TaskResult } from "./task-result.js";
|
|
3
|
+
export type { IndeRunError } from "./inderun-error.js";
|
|
4
|
+
export type { HttpRequest } from "./http-request.js";
|
|
5
|
+
export type { HttpResponse } from "./http-response.js";
|
|
6
|
+
export type { TelemetryEvent } from "./telemetry-event.js";
|
|
7
|
+
export type { RoutePlannerInput } from "./route-planner-input.js";
|
|
8
|
+
export type { RoutePlan } from "./route-plan.js";
|
|
9
|
+
export * from "./schemas.js";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deterministic shared-core Mode-1 route planning result.
|
|
3
|
+
*/
|
|
4
|
+
export type RoutePlan = {
|
|
5
|
+
/**
|
|
6
|
+
* Eligible candidates in deterministic order.
|
|
7
|
+
*/
|
|
8
|
+
candidates: Candidate[];
|
|
9
|
+
/**
|
|
10
|
+
* Human-readable selection or failure explanation suitable for telemetry/debugging.
|
|
11
|
+
*/
|
|
12
|
+
explanation: Explanation;
|
|
13
|
+
/**
|
|
14
|
+
* Normalized routing failure class when no provider is selected.
|
|
15
|
+
*/
|
|
16
|
+
failureCode?: FailureCode;
|
|
17
|
+
/**
|
|
18
|
+
* Fallback provider IDs ordered after the primary selection.
|
|
19
|
+
*/
|
|
20
|
+
fallbackProviderIds: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Providers filtered out during planning together with machine-readable reasons.
|
|
23
|
+
*/
|
|
24
|
+
rejectedProviders: RejectedProvider[];
|
|
25
|
+
/**
|
|
26
|
+
* Chosen primary provider ID, if any.
|
|
27
|
+
*/
|
|
28
|
+
selectedProviderId?: string;
|
|
29
|
+
[property: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
export type Candidate = {
|
|
32
|
+
order: number;
|
|
33
|
+
providerId: string;
|
|
34
|
+
[property: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Human-readable selection or failure explanation suitable for telemetry/debugging.
|
|
38
|
+
*/
|
|
39
|
+
export type Explanation = {
|
|
40
|
+
selectedProviderId?: string;
|
|
41
|
+
summary: string;
|
|
42
|
+
[property: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Normalized routing failure class when no provider is selected.
|
|
46
|
+
*/
|
|
47
|
+
export type FailureCode = "capability_mismatch" | "offline" | "unavailable";
|
|
48
|
+
export type RejectedProvider = {
|
|
49
|
+
providerId: string;
|
|
50
|
+
reasons: Reason[];
|
|
51
|
+
[property: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
export type Reason = {
|
|
54
|
+
code: Code;
|
|
55
|
+
message: string;
|
|
56
|
+
[property: string]: unknown;
|
|
57
|
+
};
|
|
58
|
+
export type Code = "task_not_supported" | "run_not_supported" | "privacy_constraint" | "cloud_constraint" | "offline" | "capability_unavailable";
|
|
59
|
+
//# sourceMappingURL=route-plan.d.ts.map
|
|
@@ -0,0 +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;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B;;OAEG;IACH,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,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,IAAI,EAAK,IAAI,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,oBAAoB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,kBAAkB,GAAG,SAAS,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure data input contract for deterministic shared-core Mode-1 route planning.
|
|
3
|
+
*/
|
|
4
|
+
export type RoutePlannerInput = {
|
|
5
|
+
/**
|
|
6
|
+
* Hard routing constraints evaluated before provider selection.
|
|
7
|
+
*/
|
|
8
|
+
constraints: Constraints;
|
|
9
|
+
/**
|
|
10
|
+
* Soft route ordering preferences applied after hard filtering.
|
|
11
|
+
*/
|
|
12
|
+
preferences: Preferences;
|
|
13
|
+
/**
|
|
14
|
+
* Static descriptors plus dynamic capability snapshots for planning.
|
|
15
|
+
*/
|
|
16
|
+
providers: Provider[];
|
|
17
|
+
/**
|
|
18
|
+
* Minimal task descriptor for provider task matching.
|
|
19
|
+
*/
|
|
20
|
+
task: Task;
|
|
21
|
+
[property: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Hard routing constraints evaluated before provider selection.
|
|
25
|
+
*/
|
|
26
|
+
export type Constraints = {
|
|
27
|
+
/**
|
|
28
|
+
* Cloud execution constraint.
|
|
29
|
+
*/
|
|
30
|
+
cloud?: Cloud;
|
|
31
|
+
/**
|
|
32
|
+
* Current connectivity snapshot used for cloud route planning.
|
|
33
|
+
*/
|
|
34
|
+
networkOnline?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Privacy requirement or preference for execution placement.
|
|
37
|
+
*/
|
|
38
|
+
privacy?: PrivacyEnum;
|
|
39
|
+
[property: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Cloud execution constraint.
|
|
43
|
+
*/
|
|
44
|
+
export type Cloud = "forbidden" | "allowed" | "required";
|
|
45
|
+
/**
|
|
46
|
+
* Privacy requirement or preference for execution placement.
|
|
47
|
+
*/
|
|
48
|
+
export type PrivacyEnum = "local_required" | "local_preferred" | "cloud_allowed" | "cloud_required";
|
|
49
|
+
/**
|
|
50
|
+
* Soft route ordering preferences applied after hard filtering.
|
|
51
|
+
*/
|
|
52
|
+
export type Preferences = {
|
|
53
|
+
/**
|
|
54
|
+
* Primary optimization goal when multiple providers remain eligible.
|
|
55
|
+
*/
|
|
56
|
+
optimizeFor?: OptimizeFor;
|
|
57
|
+
[property: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Primary optimization goal when multiple providers remain eligible.
|
|
61
|
+
*/
|
|
62
|
+
export type OptimizeFor = "privacy" | "latency" | "cost" | "balanced";
|
|
63
|
+
export type Provider = {
|
|
64
|
+
capabilities: Capabilities;
|
|
65
|
+
descriptor: Descriptor;
|
|
66
|
+
[property: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
export type Capabilities = {
|
|
69
|
+
available: boolean;
|
|
70
|
+
reason?: string;
|
|
71
|
+
[property: string]: unknown;
|
|
72
|
+
};
|
|
73
|
+
export type Descriptor = {
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* Descriptor privacy metadata used to enforce local/cloud routing rules.
|
|
77
|
+
*/
|
|
78
|
+
privacy?: PrivacyObject;
|
|
79
|
+
supports: Supports;
|
|
80
|
+
tasks: string[];
|
|
81
|
+
type: Type;
|
|
82
|
+
[property: string]: unknown;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Descriptor privacy metadata used to enforce local/cloud routing rules.
|
|
86
|
+
*/
|
|
87
|
+
export type PrivacyObject = {
|
|
88
|
+
dataLeavesDevice: boolean;
|
|
89
|
+
regions?: string[];
|
|
90
|
+
[property: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
export type Supports = {
|
|
93
|
+
run: boolean;
|
|
94
|
+
[property: string]: unknown;
|
|
95
|
+
};
|
|
96
|
+
export type Type = "local" | "edge" | "cloud";
|
|
97
|
+
/**
|
|
98
|
+
* Minimal task descriptor for provider task matching.
|
|
99
|
+
*/
|
|
100
|
+
export type Task = {
|
|
101
|
+
kind: string;
|
|
102
|
+
[property: string]: unknown;
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=route-planner-input.d.ts.map
|
|
@@ -0,0 +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;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAA;AAED;;GAEG;AACH,MAAM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