@ouraihub/aether-contracts 0.0.0-stage → 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 +789 -0
- package/package.json +32 -3
- package/src/generated/Ack.ts +10 -0
- package/src/generated/Approval.ts +6 -0
- package/src/generated/ContextRef.ts +14 -0
- package/src/generated/ContextSource.ts +6 -0
- package/src/generated/ContextUsage.ts +27 -0
- package/src/generated/Conversation.ts +16 -0
- package/src/generated/ConversationSummary.ts +30 -0
- package/src/generated/Cost.ts +15 -0
- package/src/generated/Currency.ts +6 -0
- package/src/generated/Details.ts +6 -0
- package/src/generated/EndStatus.ts +6 -0
- package/src/generated/Endpoint.ts +54 -0
- package/src/generated/EndpointKey.ts +34 -0
- package/src/generated/EndpointKeySave.ts +30 -0
- package/src/generated/EndpointSave.ts +45 -0
- package/src/generated/ImagePart.ts +14 -0
- package/src/generated/ImageRef.ts +14 -0
- package/src/generated/IngestBatch.ts +15 -0
- package/src/generated/IngestEntry.ts +19 -0
- package/src/generated/IngestLevel.ts +6 -0
- package/src/generated/IngestReceipt.ts +14 -0
- package/src/generated/IssuedToken.ts +34 -0
- package/src/generated/KeyStrategy.ts +6 -0
- package/src/generated/KitError.ts +21 -0
- package/src/generated/KitErrorCode.ts +6 -0
- package/src/generated/LogEntry.ts +26 -0
- package/src/generated/LogLevel.ts +6 -0
- package/src/generated/LogStatus.ts +15 -0
- package/src/generated/ManualSave.ts +30 -0
- package/src/generated/McpTransport.ts +22 -0
- package/src/generated/Model.ts +58 -0
- package/src/generated/ModelFilter.ts +15 -0
- package/src/generated/ModelOption.ts +44 -0
- package/src/generated/ModelPricing.ts +16 -0
- package/src/generated/ModelRef.ts +14 -0
- package/src/generated/ModelSave.ts +60 -0
- package/src/generated/ModelType.ts +6 -0
- package/src/generated/PermissionMode.ts +7 -0
- package/src/generated/Preview.ts +50 -0
- package/src/generated/PreviewAction.ts +6 -0
- package/src/generated/PreviewCurrent.ts +14 -0
- package/src/generated/PricingTier.ts +26 -0
- package/src/generated/ProbeError.ts +23 -0
- package/src/generated/ProbeErrorKind.ts +6 -0
- package/src/generated/ProbeResult.ts +26 -0
- package/src/generated/ProbeTarget.ts +27 -0
- package/src/generated/ProbedModel.ts +62 -0
- package/src/generated/Protocol.ts +6 -0
- package/src/generated/Provider.ts +31 -0
- package/src/generated/ProviderSave.ts +32 -0
- package/src/generated/ReasoningConfig.ts +20 -0
- package/src/generated/ReasoningDialect.ts +6 -0
- package/src/generated/ReasoningEffort.ts +6 -0
- package/src/generated/RunAccepted.ts +18 -0
- package/src/generated/RunEvent.ts +121 -0
- package/src/generated/RunRequest.ts +84 -0
- package/src/generated/RunSnapshot.ts +36 -0
- package/src/generated/RunStatus.ts +6 -0
- package/src/generated/ScopeState.ts +22 -0
- package/src/generated/SearchHit.ts +18 -0
- package/src/generated/ServerDto.ts +44 -0
- package/src/generated/ServerSave.ts +40 -0
- package/src/generated/ServerSecret.ts +19 -0
- package/src/generated/SkillDto.ts +64 -0
- package/src/generated/SkillFileKind.ts +6 -0
- package/src/generated/SkillFileMeta.ts +19 -0
- package/src/generated/SkillMeta.ts +47 -0
- package/src/generated/SkillOrigin.ts +6 -0
- package/src/generated/SkillRef.ts +14 -0
- package/src/generated/Source.ts +15 -0
- package/src/generated/Status.ts +22 -0
- package/src/generated/TokenRecord.ts +30 -0
- package/src/generated/TokenUsage.ts +26 -0
- package/src/generated/ToolDto.ts +23 -0
- package/src/generated/ToolEffect.ts +6 -0
- package/src/generated/ToolOutcome.ts +6 -0
- package/src/generated/ToolSourceKind.ts +6 -0
- package/src/generated/Turn.ts +84 -0
- package/src/generated/TurnStatus.ts +6 -0
- package/src/generated/TypeSource.ts +6 -0
- package/src/index.ts +82 -0
- package/src/search.ts +50 -0
- package/src/validation.ts +368 -0
- package/src/validators.d.ts +177 -0
- package/src/validators.js +18 -0
- package/README.md +0 -3
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ModelPricing } from "./ModelPricing";
|
|
3
|
+
import type { ModelType } from "./ModelType";
|
|
4
|
+
import type { ReasoningConfig } from "./ReasoningConfig";
|
|
5
|
+
import type { TypeSource } from "./TypeSource";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A selected model of an endpoint.
|
|
9
|
+
*/
|
|
10
|
+
export type Model = {
|
|
11
|
+
/**
|
|
12
|
+
* Upstream model identifier.
|
|
13
|
+
*/
|
|
14
|
+
id: string,
|
|
15
|
+
/**
|
|
16
|
+
* Intended model capability.
|
|
17
|
+
*/
|
|
18
|
+
modelType: ModelType,
|
|
19
|
+
/**
|
|
20
|
+
* Origin of the capability declaration.
|
|
21
|
+
*/
|
|
22
|
+
typeSource: TypeSource,
|
|
23
|
+
/**
|
|
24
|
+
* Configured context window in tokens.
|
|
25
|
+
*/
|
|
26
|
+
contextWindow: number | null,
|
|
27
|
+
/**
|
|
28
|
+
* Configured maximum output tokens.
|
|
29
|
+
*/
|
|
30
|
+
maxOutput: number | null,
|
|
31
|
+
/**
|
|
32
|
+
* Image input support.
|
|
33
|
+
*/
|
|
34
|
+
canVision: boolean,
|
|
35
|
+
/**
|
|
36
|
+
* Client-side tool support, unknown when absent.
|
|
37
|
+
*/
|
|
38
|
+
supportsTools: boolean | null,
|
|
39
|
+
/**
|
|
40
|
+
* User-declared reasoning parameters.
|
|
41
|
+
*/
|
|
42
|
+
reasoning: ReasoningConfig | null,
|
|
43
|
+
/**
|
|
44
|
+
* User-declared support for protocol-native web search.
|
|
45
|
+
*/
|
|
46
|
+
nativeWebSearch: boolean,
|
|
47
|
+
/**
|
|
48
|
+
* Display name; `None` = show the id.
|
|
49
|
+
*/
|
|
50
|
+
name: string | null,
|
|
51
|
+
/**
|
|
52
|
+
* Picker group; `None` = ungrouped.
|
|
53
|
+
*/
|
|
54
|
+
groupName: string | null,
|
|
55
|
+
/**
|
|
56
|
+
* User-declared prices (chat only).
|
|
57
|
+
*/
|
|
58
|
+
pricing: ModelPricing | null, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ModelType } from "./ModelType";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Narrows [`crate::Store::model_options`]; `None` fields match everything.
|
|
6
|
+
*/
|
|
7
|
+
export type ModelFilter = {
|
|
8
|
+
/**
|
|
9
|
+
* Only this type.
|
|
10
|
+
*/
|
|
11
|
+
modelType?: ModelType,
|
|
12
|
+
/**
|
|
13
|
+
* Only models whose `supports_tools` equals this value.
|
|
14
|
+
*/
|
|
15
|
+
supportsTools?: boolean, };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ModelType } from "./ModelType";
|
|
3
|
+
import type { ReasoningConfig } from "./ReasoningConfig";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* One entry of a model picker.
|
|
7
|
+
*/
|
|
8
|
+
export type ModelOption = {
|
|
9
|
+
/**
|
|
10
|
+
* Endpoint id.
|
|
11
|
+
*/
|
|
12
|
+
endpointId: string,
|
|
13
|
+
/**
|
|
14
|
+
* Model id.
|
|
15
|
+
*/
|
|
16
|
+
modelId: string,
|
|
17
|
+
/**
|
|
18
|
+
* `provider · endpoint · model`.
|
|
19
|
+
*/
|
|
20
|
+
label: string,
|
|
21
|
+
/**
|
|
22
|
+
* User display name of the model; `None` = not set.
|
|
23
|
+
*/
|
|
24
|
+
name: string | null,
|
|
25
|
+
/**
|
|
26
|
+
* Model type.
|
|
27
|
+
*/
|
|
28
|
+
modelType: ModelType,
|
|
29
|
+
/**
|
|
30
|
+
* Whether the model accepts tools; `None` = unknown.
|
|
31
|
+
*/
|
|
32
|
+
supportsTools: boolean | null,
|
|
33
|
+
/**
|
|
34
|
+
* Configured reasoning capabilities.
|
|
35
|
+
*/
|
|
36
|
+
reasoning: ReasoningConfig | null,
|
|
37
|
+
/**
|
|
38
|
+
* User-declared support for protocol-native web search.
|
|
39
|
+
*/
|
|
40
|
+
nativeWebSearch: boolean,
|
|
41
|
+
/**
|
|
42
|
+
* Image input support (inferred on fetch, user-editable in model settings).
|
|
43
|
+
*/
|
|
44
|
+
canVision: boolean, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { Currency } from "./Currency";
|
|
3
|
+
import type { PricingTier } from "./PricingTier";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Tiered prices of one model.
|
|
7
|
+
*/
|
|
8
|
+
export type ModelPricing = {
|
|
9
|
+
/**
|
|
10
|
+
* Currency of every price.
|
|
11
|
+
*/
|
|
12
|
+
currency: Currency,
|
|
13
|
+
/**
|
|
14
|
+
* Tiers by strictly increasing `min_input_tokens`, starting at 0.
|
|
15
|
+
*/
|
|
16
|
+
tiers: Array<PricingTier>, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Reference to one stored model, kept by the host for its own role settings.
|
|
5
|
+
*/
|
|
6
|
+
export type ModelRef = {
|
|
7
|
+
/**
|
|
8
|
+
* Endpoint id.
|
|
9
|
+
*/
|
|
10
|
+
endpointId: string,
|
|
11
|
+
/**
|
|
12
|
+
* Model id within the endpoint.
|
|
13
|
+
*/
|
|
14
|
+
modelId: string, };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ModelPricing } from "./ModelPricing";
|
|
3
|
+
import type { ModelType } from "./ModelType";
|
|
4
|
+
import type { ReasoningConfig } from "./ReasoningConfig";
|
|
5
|
+
import type { TypeSource } from "./TypeSource";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Model fields in a save request. `reasoning` is tri-state: omitted keeps the
|
|
9
|
+
* stored value, `null` turns it off, and an object replaces it. `name`, `groupName`
|
|
10
|
+
* and `pricing` replace the stored value (omitted = `null`).
|
|
11
|
+
*/
|
|
12
|
+
export type ModelSave = {
|
|
13
|
+
/**
|
|
14
|
+
* Upstream model identifier.
|
|
15
|
+
*/
|
|
16
|
+
id: string,
|
|
17
|
+
/**
|
|
18
|
+
* Intended model capability.
|
|
19
|
+
*/
|
|
20
|
+
modelType: ModelType,
|
|
21
|
+
/**
|
|
22
|
+
* Origin of the capability declaration.
|
|
23
|
+
*/
|
|
24
|
+
typeSource: TypeSource,
|
|
25
|
+
/**
|
|
26
|
+
* Configured context window in tokens.
|
|
27
|
+
*/
|
|
28
|
+
contextWindow: number | null,
|
|
29
|
+
/**
|
|
30
|
+
* Configured maximum output tokens.
|
|
31
|
+
*/
|
|
32
|
+
maxOutput: number | null,
|
|
33
|
+
/**
|
|
34
|
+
* Image input support.
|
|
35
|
+
*/
|
|
36
|
+
canVision: boolean,
|
|
37
|
+
/**
|
|
38
|
+
* Client-side tool support, unknown when absent.
|
|
39
|
+
*/
|
|
40
|
+
supportsTools: boolean | null,
|
|
41
|
+
/**
|
|
42
|
+
* Omit to keep, null to turn off, object to replace reasoning settings.
|
|
43
|
+
*/
|
|
44
|
+
reasoning?: ReasoningConfig | null,
|
|
45
|
+
/**
|
|
46
|
+
* User-declared support for protocol-native web search.
|
|
47
|
+
*/
|
|
48
|
+
nativeWebSearch: boolean,
|
|
49
|
+
/**
|
|
50
|
+
* Display name, at most 80 characters; blank = `None`.
|
|
51
|
+
*/
|
|
52
|
+
name: string | null,
|
|
53
|
+
/**
|
|
54
|
+
* Picker group, at most 80 characters; blank = `None`.
|
|
55
|
+
*/
|
|
56
|
+
groupName: string | null,
|
|
57
|
+
/**
|
|
58
|
+
* User-declared prices (chat only).
|
|
59
|
+
*/
|
|
60
|
+
pricing: ModelPricing | null, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* How much of the tool catalogue one run may use without asking; chosen per run, fixed
|
|
5
|
+
* once the run is accepted (docs/12 §5.1).
|
|
6
|
+
*/
|
|
7
|
+
export type PermissionMode = "default" | "plan" | "accept_edits" | "auto" | "full_access";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { PreviewAction } from "./PreviewAction";
|
|
3
|
+
import type { PreviewCurrent } from "./PreviewCurrent";
|
|
4
|
+
import type { SkillFileMeta } from "./SkillFileMeta";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* What the user confirms before install; `digest` must come back unchanged.
|
|
8
|
+
*/
|
|
9
|
+
export type Preview = {
|
|
10
|
+
/**
|
|
11
|
+
* `sha256` over the name, description, version, body, license and every packaged
|
|
12
|
+
* file (sorted by path).
|
|
13
|
+
*/
|
|
14
|
+
digest: string,
|
|
15
|
+
/**
|
|
16
|
+
* Frontmatter `name`.
|
|
17
|
+
*/
|
|
18
|
+
name: string,
|
|
19
|
+
/**
|
|
20
|
+
* Frontmatter `description`.
|
|
21
|
+
*/
|
|
22
|
+
description: string,
|
|
23
|
+
/**
|
|
24
|
+
* Frontmatter `version`.
|
|
25
|
+
*/
|
|
26
|
+
version: string | null,
|
|
27
|
+
/**
|
|
28
|
+
* Full body.
|
|
29
|
+
*/
|
|
30
|
+
body: string,
|
|
31
|
+
/**
|
|
32
|
+
* License text.
|
|
33
|
+
*/
|
|
34
|
+
license: string | null,
|
|
35
|
+
/**
|
|
36
|
+
* Uninterpreted frontmatter keys.
|
|
37
|
+
*/
|
|
38
|
+
extra: { [key in string]?: string },
|
|
39
|
+
/**
|
|
40
|
+
* Packaged files, sorted by path.
|
|
41
|
+
*/
|
|
42
|
+
files: Array<SkillFileMeta>,
|
|
43
|
+
/**
|
|
44
|
+
* Install or replace.
|
|
45
|
+
*/
|
|
46
|
+
action: PreviewAction,
|
|
47
|
+
/**
|
|
48
|
+
* Present when `action` is `replace`.
|
|
49
|
+
*/
|
|
50
|
+
current: PreviewCurrent | null, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The installed skill a preview would replace.
|
|
5
|
+
*/
|
|
6
|
+
export type PreviewCurrent = {
|
|
7
|
+
/**
|
|
8
|
+
* Installed version.
|
|
9
|
+
*/
|
|
10
|
+
version: string | null,
|
|
11
|
+
/**
|
|
12
|
+
* Installed revision.
|
|
13
|
+
*/
|
|
14
|
+
revision: number, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Prices per million tokens for rounds whose input reaches `min_input_tokens`.
|
|
5
|
+
*/
|
|
6
|
+
export type PricingTier = {
|
|
7
|
+
/**
|
|
8
|
+
* Lowest round input (cache included) this tier applies to; the first tier is 0.
|
|
9
|
+
*/
|
|
10
|
+
minInputTokens: number,
|
|
11
|
+
/**
|
|
12
|
+
* Uncached input price.
|
|
13
|
+
*/
|
|
14
|
+
input: number,
|
|
15
|
+
/**
|
|
16
|
+
* Output price (reasoning included).
|
|
17
|
+
*/
|
|
18
|
+
output: number,
|
|
19
|
+
/**
|
|
20
|
+
* Cache-read price; `None` = `input`.
|
|
21
|
+
*/
|
|
22
|
+
cacheRead: number | null,
|
|
23
|
+
/**
|
|
24
|
+
* Cache-write price; `None` = `input`.
|
|
25
|
+
*/
|
|
26
|
+
cacheWrite: number | null, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ProbeErrorKind } from "./ProbeErrorKind";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A probe failure shown next to the endpoint form.
|
|
6
|
+
*/
|
|
7
|
+
export type ProbeError = {
|
|
8
|
+
/**
|
|
9
|
+
* Failure kind.
|
|
10
|
+
*/
|
|
11
|
+
kind: ProbeErrorKind,
|
|
12
|
+
/**
|
|
13
|
+
* Upstream HTTP status.
|
|
14
|
+
*/
|
|
15
|
+
status: number | null,
|
|
16
|
+
/**
|
|
17
|
+
* Upstream text, masked, at most 300 characters.
|
|
18
|
+
*/
|
|
19
|
+
message: string | null,
|
|
20
|
+
/**
|
|
21
|
+
* i18n key such as `providers.hint.missing_v1`.
|
|
22
|
+
*/
|
|
23
|
+
hint: string | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Why fetching the model list failed.
|
|
5
|
+
*/
|
|
6
|
+
export type ProbeErrorKind = "missing_key" | "unauthorized" | "not_found" | "rate_limited" | "status" | "timeout" | "connect" | "blocked_address" | "invalid_body";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ProbeError } from "./ProbeError";
|
|
3
|
+
import type { ProbedModel } from "./ProbedModel";
|
|
4
|
+
import type { Protocol } from "./Protocol";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Probe outcome: never a command error, so the UI can show `probeUrl` either way.
|
|
8
|
+
*/
|
|
9
|
+
export type ProbeResult = {
|
|
10
|
+
/**
|
|
11
|
+
* `GET` URL that was (or would be) requested.
|
|
12
|
+
*/
|
|
13
|
+
probeUrl: string,
|
|
14
|
+
/**
|
|
15
|
+
* Deduplicated, sorted models; empty on error.
|
|
16
|
+
*/
|
|
17
|
+
models: Array<ProbedModel>,
|
|
18
|
+
/**
|
|
19
|
+
* Set on failure.
|
|
20
|
+
*/
|
|
21
|
+
error: ProbeError | null,
|
|
22
|
+
/**
|
|
23
|
+
* `anthropic-messages` when listed `claude-*` models also answer on `/messages`
|
|
24
|
+
* while the endpoint uses another protocol (images and thinking work natively there).
|
|
25
|
+
*/
|
|
26
|
+
suggestedProtocol: Protocol | null, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { Protocol } from "./Protocol";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* What to probe: a stored endpoint, or an unsaved draft from the settings form (docs/11 §4).
|
|
6
|
+
*/
|
|
7
|
+
export type ProbeTarget = { "kind": "saved",
|
|
8
|
+
/**
|
|
9
|
+
* Endpoint id.
|
|
10
|
+
*/
|
|
11
|
+
endpointId: string, } | { "kind": "draft",
|
|
12
|
+
/**
|
|
13
|
+
* Base URL as typed.
|
|
14
|
+
*/
|
|
15
|
+
baseUrl: string,
|
|
16
|
+
/**
|
|
17
|
+
* Wire protocol.
|
|
18
|
+
*/
|
|
19
|
+
protocol: Protocol,
|
|
20
|
+
/**
|
|
21
|
+
* Endpoint being edited, if any.
|
|
22
|
+
*/
|
|
23
|
+
endpointId?: string,
|
|
24
|
+
/**
|
|
25
|
+
* Use only this key of `endpointId`; absent = rotate with failover.
|
|
26
|
+
*/
|
|
27
|
+
keyId?: string, };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ModelPricing } from "./ModelPricing";
|
|
3
|
+
import type { ModelType } from "./ModelType";
|
|
4
|
+
import type { ReasoningConfig } from "./ReasoningConfig";
|
|
5
|
+
import type { TypeSource } from "./TypeSource";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A model found by a probe, with the inferred family group.
|
|
9
|
+
*/
|
|
10
|
+
export type ProbedModel = {
|
|
11
|
+
/**
|
|
12
|
+
* Family group for the picker, when known.
|
|
13
|
+
*/
|
|
14
|
+
group: string | null,
|
|
15
|
+
/**
|
|
16
|
+
* Upstream model identifier.
|
|
17
|
+
*/
|
|
18
|
+
id: string,
|
|
19
|
+
/**
|
|
20
|
+
* Intended model capability.
|
|
21
|
+
*/
|
|
22
|
+
modelType: ModelType,
|
|
23
|
+
/**
|
|
24
|
+
* Origin of the capability declaration.
|
|
25
|
+
*/
|
|
26
|
+
typeSource: TypeSource,
|
|
27
|
+
/**
|
|
28
|
+
* Configured context window in tokens.
|
|
29
|
+
*/
|
|
30
|
+
contextWindow: number | null,
|
|
31
|
+
/**
|
|
32
|
+
* Configured maximum output tokens.
|
|
33
|
+
*/
|
|
34
|
+
maxOutput: number | null,
|
|
35
|
+
/**
|
|
36
|
+
* Image input support.
|
|
37
|
+
*/
|
|
38
|
+
canVision: boolean,
|
|
39
|
+
/**
|
|
40
|
+
* Client-side tool support, unknown when absent.
|
|
41
|
+
*/
|
|
42
|
+
supportsTools: boolean | null,
|
|
43
|
+
/**
|
|
44
|
+
* User-declared reasoning parameters.
|
|
45
|
+
*/
|
|
46
|
+
reasoning: ReasoningConfig | null,
|
|
47
|
+
/**
|
|
48
|
+
* User-declared support for protocol-native web search.
|
|
49
|
+
*/
|
|
50
|
+
nativeWebSearch: boolean,
|
|
51
|
+
/**
|
|
52
|
+
* Display name; `None` = show the id.
|
|
53
|
+
*/
|
|
54
|
+
name: string | null,
|
|
55
|
+
/**
|
|
56
|
+
* Picker group; `None` = ungrouped.
|
|
57
|
+
*/
|
|
58
|
+
groupName: string | null,
|
|
59
|
+
/**
|
|
60
|
+
* User-declared prices (chat only).
|
|
61
|
+
*/
|
|
62
|
+
pricing: ModelPricing | null, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { Endpoint } from "./Endpoint";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A provider with its endpoints in display order.
|
|
6
|
+
*/
|
|
7
|
+
export type Provider = {
|
|
8
|
+
/**
|
|
9
|
+
* Provider id.
|
|
10
|
+
*/
|
|
11
|
+
id: string,
|
|
12
|
+
/**
|
|
13
|
+
* Display name.
|
|
14
|
+
*/
|
|
15
|
+
name: string,
|
|
16
|
+
/**
|
|
17
|
+
* Off = its models leave every picker and cannot run.
|
|
18
|
+
*/
|
|
19
|
+
enabled: boolean,
|
|
20
|
+
/**
|
|
21
|
+
* Free-form Markdown notes about this provider's models.
|
|
22
|
+
*/
|
|
23
|
+
notes: string,
|
|
24
|
+
/**
|
|
25
|
+
* Host preset this provider belongs to; preset providers cannot be deleted. `None` = user-created.
|
|
26
|
+
*/
|
|
27
|
+
presetId: string | null,
|
|
28
|
+
/**
|
|
29
|
+
* Endpoints in display order.
|
|
30
|
+
*/
|
|
31
|
+
endpoints: Array<Endpoint>, };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { EndpointSave } from "./EndpointSave";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A whole-provider save: endpoints missing from `endpoints` are deleted.
|
|
6
|
+
*/
|
|
7
|
+
export type ProviderSave = {
|
|
8
|
+
/**
|
|
9
|
+
* Existing provider id; absent = new provider.
|
|
10
|
+
*/
|
|
11
|
+
id?: string,
|
|
12
|
+
/**
|
|
13
|
+
* Display name, 1–80 characters.
|
|
14
|
+
*/
|
|
15
|
+
name: string,
|
|
16
|
+
/**
|
|
17
|
+
* Absent = keep (new providers start enabled).
|
|
18
|
+
*/
|
|
19
|
+
enabled?: boolean,
|
|
20
|
+
/**
|
|
21
|
+
* Markdown notes, at most 10000 characters; absent = keep.
|
|
22
|
+
*/
|
|
23
|
+
notes?: string,
|
|
24
|
+
/**
|
|
25
|
+
* New providers only: seed this host preset. A no-op returning the current list when the preset
|
|
26
|
+
* is already present; a same-named user provider adopts it instead of a duplicate.
|
|
27
|
+
*/
|
|
28
|
+
presetId?: string,
|
|
29
|
+
/**
|
|
30
|
+
* The complete endpoint list.
|
|
31
|
+
*/
|
|
32
|
+
endpoints: Array<EndpointSave>, };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ReasoningDialect } from "./ReasoningDialect";
|
|
3
|
+
import type { ReasoningEffort } from "./ReasoningEffort";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* User-declared reasoning capabilities of one model.
|
|
7
|
+
*/
|
|
8
|
+
export type ReasoningConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Request parameter dialect.
|
|
11
|
+
*/
|
|
12
|
+
dialect: ReasoningDialect,
|
|
13
|
+
/**
|
|
14
|
+
* Allowed explicit choices.
|
|
15
|
+
*/
|
|
16
|
+
efforts: Array<ReasoningEffort>,
|
|
17
|
+
/**
|
|
18
|
+
* Upper bound for budget-based reasoning.
|
|
19
|
+
*/
|
|
20
|
+
budgetTokens?: number, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Provider-specific reasoning request dialect.
|
|
5
|
+
*/
|
|
6
|
+
export type ReasoningDialect = "openai" | "anthropic-budget" | "anthropic-adaptive" | "thinking-type" | "qwen";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Explicit per-run reasoning choice; default leaves provider controls untouched.
|
|
5
|
+
*/
|
|
6
|
+
export type ReasoningEffort = "default" | "none" | "auto" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Accepted identity; events may arrive before this reply is delivered.
|
|
5
|
+
*/
|
|
6
|
+
export type RunAccepted = {
|
|
7
|
+
/**
|
|
8
|
+
* Service-generated identifier.
|
|
9
|
+
*/
|
|
10
|
+
runId: string,
|
|
11
|
+
/**
|
|
12
|
+
* Persisted conversation, when enabled.
|
|
13
|
+
*/
|
|
14
|
+
conversationId: string | null,
|
|
15
|
+
/**
|
|
16
|
+
* Persisted candidate, when enabled.
|
|
17
|
+
*/
|
|
18
|
+
turnId: string | null, };
|