@xemahq/llm-registry-api-client 0.15.0 → 0.17.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/README.md +1 -1
- package/dist/custom-fetch.d.ts +15 -1
- package/dist/custom-fetch.js +9 -8
- package/dist/endpoints/llm-registry/llm-registry.d.ts +5 -5
- package/dist/endpoints/llm-registry/llm-registry.js +46 -8
- package/dist/endpoints/model-resolution-matrix/model-resolution-matrix.d.ts +7 -1
- package/dist/endpoints/model-resolution-matrix/model-resolution-matrix.js +18 -1
- package/dist/endpoints/model-strategies/model-strategies.d.ts +10 -25
- package/dist/endpoints/model-strategies/model-strategies.js +24 -66
- package/dist/endpoints/org-model-default/org-model-default.d.ts +21 -0
- package/dist/endpoints/org-model-default/org-model-default.js +48 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/agentKernelResponseDto.d.ts +3 -2
- package/dist/models/agentProfileDto.d.ts +3 -2
- package/dist/models/createAgentKernelDto.d.ts +1 -1
- package/dist/models/createModelResolutionRuleDto.d.ts +3 -15
- package/dist/models/createModelStrategyDto.d.ts +3 -23
- package/dist/models/embeddingStorageDeclarationDto.d.ts +8 -12
- package/dist/models/index.d.ts +9 -22
- package/dist/models/index.js +9 -22
- package/dist/models/llmReadinessResponseDtoAction.d.ts +2 -2
- package/dist/models/llmReadinessResponseDtoAction.js +2 -2
- package/dist/models/llmReadinessResponseDtoStatus.d.ts +2 -2
- package/dist/models/llmReadinessResponseDtoStatus.js +2 -2
- package/dist/models/llmRegistryControllerDeleteModelParams.d.ts +11 -0
- package/dist/models/llmRegistryControllerDeleteProviderParams.d.ts +11 -0
- package/dist/models/migrationConsumerDelegationDto.d.ts +3 -1
- package/dist/models/migrationTargetDto.d.ts +1 -1
- package/dist/models/modelResolutionRuleResponseDto.d.ts +7 -45
- package/dist/models/modelResolutionSource.d.ts +1 -1
- package/dist/models/modelResolutionSource.js +1 -1
- package/dist/models/modelStrategyResponseDto.d.ts +7 -37
- package/dist/models/modelStrategySource.d.ts +12 -0
- package/dist/models/modelStrategySource.js +11 -0
- package/dist/models/orgModelDefaultResponseDto.d.ts +15 -0
- package/dist/models/orgModelDefaultResponseDtoDataEnvelope.d.ts +9 -0
- package/dist/models/providerDeletionImpactResponseDto.d.ts +4 -2
- package/dist/models/resolveFullResponseDto.d.ts +5 -2
- package/dist/models/resolveModelForInvocationDto.d.ts +4 -4
- package/dist/models/resolvedAgentKernelResponseDto.d.ts +3 -2
- package/dist/models/resolvedModelRefDto.d.ts +3 -7
- package/dist/models/resolvedModelRefDtoKind.d.ts +3 -1
- package/dist/models/resolvedModelRefDtoKind.js +0 -1
- package/dist/models/resolvedModelSelectionDtoSource.d.ts +1 -1
- package/dist/models/resolvedModelSelectionDtoSource.js +1 -1
- package/dist/models/resolvedModelStubDtoSource.d.ts +1 -1
- package/dist/models/resolvedModelStubDtoSource.js +1 -1
- package/dist/models/resolvedPhaseConfigDto.d.ts +3 -0
- package/dist/models/setOrgModelDefaultDto.d.ts +9 -0
- package/dist/models/strategyDeletionImpactResponseDto.d.ts +0 -14
- package/dist/models/updateAgentKernelDto.d.ts +1 -1
- package/dist/models/updateModelResolutionRuleDto.d.ts +0 -5
- package/dist/models/updateModelStrategyDto.d.ts +0 -5
- package/dist/models/updateModelStrategyDto.js +5 -0
- package/dist/models/upsertModelStrategyLaneRuleDto.d.ts +19 -0
- package/dist/models/upsertModelStrategyRulesDto.d.ts +15 -0
- package/dist/models/upsertOrgLaneRuleDto.d.ts +19 -0
- package/package.json +6 -3
- package/dist/models/createModelResolutionRuleDtoTargetKind.d.ts +0 -13
- package/dist/models/createModelResolutionRuleDtoTargetKind.js +0 -12
- package/dist/models/createModelStrategyDtoProviderFocus.d.ts +0 -14
- package/dist/models/createModelStrategyDtoProviderFocus.js +0 -16
- package/dist/models/createModelStrategyDtoTier.d.ts +0 -12
- package/dist/models/createModelStrategyDtoTier.js +0 -14
- package/dist/models/createModelStrategyEntryDto.d.ts +0 -19
- package/dist/models/modelBindingResponseDto.d.ts +0 -19
- package/dist/models/modelLaneBindingSource.d.ts +0 -14
- package/dist/models/modelLaneBindingSource.js +0 -13
- package/dist/models/modelLaneEffectiveBindingDto.d.ts +0 -15
- package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind.d.ts +0 -14
- package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind.js +0 -12
- package/dist/models/modelResolutionRuleResponseDtoTargetKind.d.ts +0 -10
- package/dist/models/modelResolutionRuleResponseDtoTargetKind.js +0 -12
- package/dist/models/modelStrategyEntryResponseDto.d.ts +0 -25
- package/dist/models/modelStrategyLaneEffectiveResponseDto.d.ts +0 -11
- package/dist/models/orgDefaultStrategyStatusResponseDto.d.ts +0 -9
- package/dist/models/orgDefaultStrategyStatusResponseDtoDataEnvelope.d.ts +0 -9
- package/dist/models/orgDefaultStrategyStatusResponseDtoDataEnvelope.js +0 -2
- package/dist/models/strategyTemplateAvailabilityDto.d.ts +0 -17
- package/dist/models/strategyTemplateAvailabilityDto.js +0 -2
- package/dist/models/strategyTemplateAvailabilityDtoReasonsItem.d.ts +0 -12
- package/dist/models/strategyTemplateAvailabilityDtoReasonsItem.js +0 -14
- package/dist/models/strategyTemplateEntryDto.d.ts +0 -21
- package/dist/models/strategyTemplateResponseDto.d.ts +0 -33
- package/dist/models/strategyTemplateResponseDto.js +0 -2
- package/dist/models/strategyTemplateResponseDtoDataArrayEnvelope.d.ts +0 -9
- package/dist/models/strategyTemplateResponseDtoDataArrayEnvelope.js +0 -2
- package/dist/models/updateModelResolutionRuleDtoTargetKind.d.ts +0 -10
- package/dist/models/updateModelResolutionRuleDtoTargetKind.js +0 -12
- package/dist/models/updateModelStrategyDefaultBindingDto.d.ts +0 -21
- package/dist/models/upsertModelStrategyEntriesDto.d.ts +0 -15
- package/dist/models/upsertModelStrategyEntriesDto.js +0 -2
- package/dist/models/upsertModelStrategyEntryDto.d.ts +0 -17
- package/dist/models/upsertModelStrategyEntryDto.js +0 -7
- /package/dist/models/{createModelStrategyEntryDto.js → llmRegistryControllerDeleteModelParams.js} +0 -0
- /package/dist/models/{modelBindingResponseDto.js → llmRegistryControllerDeleteProviderParams.js} +0 -0
- /package/dist/models/{modelStrategyEntryResponseDto.js → orgModelDefaultResponseDto.js} +0 -0
- /package/dist/models/{modelLaneEffectiveBindingDto.js → orgModelDefaultResponseDtoDataEnvelope.js} +0 -0
- /package/dist/models/{orgDefaultStrategyStatusResponseDto.js → setOrgModelDefaultDto.js} +0 -0
- /package/dist/models/{strategyTemplateEntryDto.js → upsertModelStrategyLaneRuleDto.js} +0 -0
- /package/dist/models/{modelStrategyLaneEffectiveResponseDto.js → upsertModelStrategyRulesDto.js} +0 -0
- /package/dist/models/{updateModelStrategyDefaultBindingDto.js → upsertOrgLaneRuleDto.js} +0 -0
|
@@ -12,18 +12,18 @@ export interface ResolveModelForInvocationDto {
|
|
|
12
12
|
*/
|
|
13
13
|
space: string;
|
|
14
14
|
/**
|
|
15
|
-
* The Matrix `stage` dimension.
|
|
15
|
+
* The Matrix `stage` dimension. Omit it when the call has no stage: the resolve then runs on the lane rules and the org default only, and no stage rule can match. (A caller that passes its agent slug here is treated the same: the resolver drops the dimension when the two are equal.)
|
|
16
16
|
* @minLength 1
|
|
17
17
|
* @maxLength 512
|
|
18
18
|
*/
|
|
19
|
-
stageKey
|
|
19
|
+
stageKey?: string;
|
|
20
20
|
/**
|
|
21
21
|
* The resolving agent — the Matrix `agent` dimension.
|
|
22
22
|
* @maxLength 512
|
|
23
23
|
*/
|
|
24
24
|
agentSlug?: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* The model lane this invocation runs in — the Matrix `modelLane` CONTEXT dimension. Lane rules decide; it is not an override. When both this and `preferredModelLane` are supplied, this wins.
|
|
27
27
|
* @maxLength 512
|
|
28
28
|
*/
|
|
29
29
|
modelLane?: string;
|
|
@@ -42,7 +42,7 @@ export interface ResolveModelForInvocationDto {
|
|
|
42
42
|
* @maxLength 512
|
|
43
43
|
*/
|
|
44
44
|
purpose?: string;
|
|
45
|
-
/** Per-session "smartness" preference — the Matrix `modelLane` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped kind
|
|
45
|
+
/** Per-session "smartness" preference — the Matrix `modelLane` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped kind matches no lane rule. Ignored when an explicit `modelLane`/`modelId` override is present. An AGENT-axis work kind: the kernel core plus every key a biome or this organisation has declared. Lower-kebab; an undeclared value is a 400 so a typo never silently lands on the no-match path — the same posture `purpose` has one field up. */
|
|
46
46
|
preferredModelLane?: string;
|
|
47
47
|
/**
|
|
48
48
|
* The active/launched skill — the Matrix `skill` dimension. Free-form: the skill vocabulary is open and owned by `skill-registry-api`, so an unknown value simply matches no rule rather than being refused.
|
|
@@ -7,10 +7,11 @@ export interface ResolvedAgentKernelResponseDto {
|
|
|
7
7
|
slug: string;
|
|
8
8
|
displayName: string;
|
|
9
9
|
/**
|
|
10
|
-
* The model LANE this agent routes on —
|
|
10
|
+
* The model LANE this agent routes on — rules select on it. An OPEN vocabulary: every key is declared by a `model-lane` contribution, and `GET /work-kinds?kind=model-lane` enumerates what this organisation may use. Distinct from AgentRunRole (permissions).
|
|
11
|
+
* @nullable
|
|
11
12
|
* @pattern ^[a-z][a-z0-9-]{0,62}$
|
|
12
13
|
*/
|
|
13
|
-
modelLane: string;
|
|
14
|
+
modelLane: string | null;
|
|
14
15
|
systemPrompt: string;
|
|
15
16
|
/**
|
|
16
17
|
* `null` defers to the engine/model default.
|
|
@@ -5,22 +5,18 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ResolvedModelRefDtoKind } from './resolvedModelRefDtoKind.js';
|
|
7
7
|
export interface ResolvedModelRefDto {
|
|
8
|
+
/** Always `concrete`: a rule targets a model. */
|
|
8
9
|
kind: ResolvedModelRefDtoKind;
|
|
9
10
|
/**
|
|
10
|
-
* Concrete model id
|
|
11
|
+
* Concrete model id.
|
|
11
12
|
* @nullable
|
|
12
13
|
*/
|
|
13
14
|
modelId?: string | null;
|
|
14
15
|
/**
|
|
15
|
-
* Provider slug pinned by the rule
|
|
16
|
+
* Provider slug pinned by the rule.
|
|
16
17
|
* @nullable
|
|
17
18
|
*/
|
|
18
19
|
providerSlug?: string | null;
|
|
19
|
-
/**
|
|
20
|
-
* Work kind this ref routes through (kind=strategy).
|
|
21
|
-
* @nullable
|
|
22
|
-
*/
|
|
23
|
-
modelLane?: string | null;
|
|
24
20
|
/** @nullable */
|
|
25
21
|
temperature?: number | null;
|
|
26
22
|
/** @nullable */
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
* LLM Registry API
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Always `concrete`: a rule targets a model.
|
|
8
|
+
*/
|
|
6
9
|
export type ResolvedModelRefDtoKind = typeof ResolvedModelRefDtoKind[keyof typeof ResolvedModelRefDtoKind];
|
|
7
10
|
export declare const ResolvedModelRefDtoKind: {
|
|
8
11
|
readonly concrete: "concrete";
|
|
9
|
-
readonly strategy: "strategy";
|
|
10
12
|
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export type ResolvedModelSelectionDtoSource = typeof ResolvedModelSelectionDtoSource[keyof typeof ResolvedModelSelectionDtoSource];
|
|
10
10
|
export declare const ResolvedModelSelectionDtoSource: {
|
|
11
11
|
readonly matrix: "matrix";
|
|
12
|
-
readonly strategy: "strategy";
|
|
13
12
|
readonly override: "override";
|
|
13
|
+
readonly org_default: "org_default";
|
|
14
14
|
readonly unresolved: "unresolved";
|
|
15
15
|
};
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.ResolvedModelSelectionDtoSource = void 0;
|
|
9
9
|
exports.ResolvedModelSelectionDtoSource = {
|
|
10
10
|
matrix: 'matrix',
|
|
11
|
-
strategy: 'strategy',
|
|
12
11
|
override: 'override',
|
|
12
|
+
org_default: 'org_default',
|
|
13
13
|
unresolved: 'unresolved',
|
|
14
14
|
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export type ResolvedModelStubDtoSource = typeof ResolvedModelStubDtoSource[keyof typeof ResolvedModelStubDtoSource];
|
|
10
10
|
export declare const ResolvedModelStubDtoSource: {
|
|
11
11
|
readonly matrix: "matrix";
|
|
12
|
-
readonly strategy: "strategy";
|
|
13
12
|
readonly override: "override";
|
|
13
|
+
readonly org_default: "org_default";
|
|
14
14
|
readonly unresolved: "unresolved";
|
|
15
15
|
};
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.ResolvedModelStubDtoSource = void 0;
|
|
9
9
|
exports.ResolvedModelStubDtoSource = {
|
|
10
10
|
matrix: 'matrix',
|
|
11
|
-
strategy: 'strategy',
|
|
12
11
|
override: 'override',
|
|
12
|
+
org_default: 'org_default',
|
|
13
13
|
unresolved: 'unresolved',
|
|
14
14
|
};
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
import type { ResolvedModelDecisionDto } from './resolvedModelDecisionDto.js';
|
|
7
7
|
export interface ResolvedPhaseConfigDto {
|
|
8
8
|
stageKey: string;
|
|
9
|
+
/** The registry model record id (`LlmModel.id`) the resolution selected — the id a rule or the org default targets. */
|
|
10
|
+
llmModelId: string;
|
|
11
|
+
/** The provider's own model id. */
|
|
9
12
|
modelId: string;
|
|
10
13
|
modelDisplayName: string;
|
|
11
14
|
providerId: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
export interface SetOrgModelDefaultDto {
|
|
7
|
+
/** The registry model record id (`LlmModel.id`) the organisation routes to when nothing more specific applies. Must be served by an active provider. */
|
|
8
|
+
modelId: string;
|
|
9
|
+
}
|
|
@@ -7,21 +7,7 @@ import type { StrategyDeletionAffectedProjectDto } from './strategyDeletionAffec
|
|
|
7
7
|
export interface StrategyDeletionImpactResponseDto {
|
|
8
8
|
strategyId: string;
|
|
9
9
|
displayName: string;
|
|
10
|
-
/** Whether this strategy is the organisation default. When true, deleting it leaves bound projects with no fallback — there is no platform-level default beneath it. */
|
|
11
|
-
isOrgDefault: boolean;
|
|
12
10
|
/** Projects explicitly bound to this strategy. Their bindings cascade-delete. */
|
|
13
11
|
boundProjectCount: number;
|
|
14
12
|
affectedProjects: StrategyDeletionAffectedProjectDto[];
|
|
15
|
-
/**
|
|
16
|
-
* The strategy those projects resolve to after deletion, or null when the organisation would be left with no default at all.
|
|
17
|
-
* @nullable
|
|
18
|
-
*/
|
|
19
|
-
fallsBackToStrategyId: string | null;
|
|
20
|
-
/**
|
|
21
|
-
* Display name of `fallsBackToStrategyId`.
|
|
22
|
-
* @nullable
|
|
23
|
-
*/
|
|
24
|
-
fallsBackToDisplayName: string | null;
|
|
25
|
-
/** True when at least one project would have NO resolvable strategy after this deletion. The caller should treat this as destructive. */
|
|
26
|
-
leavesProjectsUnresolved: boolean;
|
|
27
13
|
}
|
|
@@ -8,7 +8,7 @@ export interface UpdateAgentKernelDto {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
systemPrompt?: string;
|
|
10
10
|
/**
|
|
11
|
-
* The model LANE this agent routes on —
|
|
11
|
+
* The model LANE this agent routes on — rules select on it. An OPEN vocabulary: every key is declared by a `model-lane` contribution, and `GET /work-kinds?kind=model-lane` enumerates what this organisation may use. Distinct from AgentRunRole (permissions).
|
|
12
12
|
* @pattern ^[a-z][a-z0-9-]{0,62}$
|
|
13
13
|
*/
|
|
14
14
|
modelLane?: string;
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
6
|
import type { ModelResolutionSelectorDto } from './modelResolutionSelectorDto.js';
|
|
7
|
-
import type { UpdateModelResolutionRuleDtoTargetKind } from './updateModelResolutionRuleDtoTargetKind.js';
|
|
8
7
|
export interface UpdateModelResolutionRuleDto {
|
|
9
8
|
selector?: ModelResolutionSelectorDto;
|
|
10
|
-
targetKind?: UpdateModelResolutionRuleDtoTargetKind;
|
|
11
9
|
targetModelId?: string;
|
|
12
|
-
targetProviderSlug?: string;
|
|
13
|
-
/** @pattern ^[a-z][a-z0-9-]{0,62}$ */
|
|
14
|
-
targetModelLane?: string;
|
|
15
10
|
/**
|
|
16
11
|
* @minimum 0
|
|
17
12
|
* @maximum 2
|
|
@@ -3,13 +3,8 @@
|
|
|
3
3
|
* LLM Registry API
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
|
-
import type { UpdateModelStrategyDefaultBindingDto } from './updateModelStrategyDefaultBindingDto.js';
|
|
7
6
|
export interface UpdateModelStrategyDto {
|
|
8
7
|
displayName?: string;
|
|
9
8
|
/** @nullable */
|
|
10
9
|
description?: string | null;
|
|
11
|
-
/** Make this the org's DEFAULT STRATEGY — which strategy an invocation uses when a project binds none. A different axis from `defaultBinding`, which is the model an unbound LANE routes to WITHIN a strategy. Both are called "default" in the domain and they are not the same decision. */
|
|
12
|
-
isDefault?: boolean;
|
|
13
|
-
/** Replace this strategy's default binding — the model an invocation routes to when the requested model lane has no entry. Before this existed the field could be set ONLY at create, so a strategy adopted from a template or created without one could not be repaired at all. */
|
|
14
|
-
defaultBinding?: UpdateModelStrategyDefaultBindingDto;
|
|
15
10
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
export interface UpsertModelStrategyLaneRuleDto {
|
|
7
|
+
/** Registry model record id (LlmModel.id) the rule routes to. It must be an active model on an active provider the organisation or the platform owns; otherwise the write is refused with 422 MODEL_NOT_SERVED. */
|
|
8
|
+
targetModelId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Optional temperature override carried by the resolved model.
|
|
11
|
+
* @minimum 0
|
|
12
|
+
* @maximum 2
|
|
13
|
+
*/
|
|
14
|
+
targetTemperature?: number;
|
|
15
|
+
/** Optional reasoning effort carried by the resolved model, forwarded verbatim to the provider. OPEN vocabulary owned by the provider (e.g. minimal/low/medium/high, or low/medium/high/xhigh/max) — not an enum here, so a new provider spelling is not refused at the door. */
|
|
16
|
+
targetReasoningEffort?: string;
|
|
17
|
+
/** Tie-break hint when two rules match the same number of dimensions and the fixed dimension-priority ladder does not separate them. Higher wins. Defaults to 0. */
|
|
18
|
+
priority?: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
import type { CreateModelResolutionRuleDto } from './createModelResolutionRuleDto.js';
|
|
7
|
+
export interface UpsertModelStrategyRulesDto {
|
|
8
|
+
/** The strategy's rules (replaces the whole rule set). Each rule has the same shape and the same validation as an org-level model resolution rule. */
|
|
9
|
+
rules: CreateModelResolutionRuleDto[];
|
|
10
|
+
/**
|
|
11
|
+
* The `version` read from this strategy. When sent, a stale value is refused with 409 `MODEL_STRATEGY_VERSION_MISMATCH`, which carries `currentVersion` to retry with. Send it: it is optional only for one transition and will become REQUIRED — without it this route replaces the whole rule set unconditionally, so a concurrent edit to a DIFFERENT lane is silently discarded. To change one lane, use PUT /model-strategies/:id/rules/lane/:lane, which needs no version.
|
|
12
|
+
* @minimum 1
|
|
13
|
+
*/
|
|
14
|
+
expectedVersion?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
export interface UpsertOrgLaneRuleDto {
|
|
7
|
+
/** Registry model record id (LlmModel.id) the rule routes to. It must be an active model on an active provider the organisation or the platform owns; otherwise the write is refused with 422 MODEL_NOT_SERVED. */
|
|
8
|
+
targetModelId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Optional temperature override carried by the resolved model.
|
|
11
|
+
* @minimum 0
|
|
12
|
+
* @maximum 2
|
|
13
|
+
*/
|
|
14
|
+
targetTemperature?: number;
|
|
15
|
+
/** Optional reasoning effort carried by the resolved model, forwarded verbatim to the provider. OPEN vocabulary owned by the provider (e.g. minimal/low/medium/high, or low/medium/high/xhigh/max) — not an enum here, so a new provider spelling is not refused at the door. */
|
|
16
|
+
targetReasoningEffort?: string;
|
|
17
|
+
/** Tie-break hint when two rules match the same number of dimensions and the fixed dimension-priority ladder does not separate them. Higher wins. Defaults to 0. */
|
|
18
|
+
priority?: number;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/llm-registry-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"service": "llm-registry-api",
|
|
20
20
|
"biome": "agent-runtime",
|
|
21
21
|
"target": "server",
|
|
22
|
-
"generator": "@xemahq/api-client-generator@2.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@2.7.1",
|
|
23
23
|
"source": "openapi.public.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|
|
@@ -58,5 +58,8 @@
|
|
|
58
58
|
"sideEffects": false,
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsc -p tsconfig.json"
|
|
61
|
+
},
|
|
62
|
+
"xemaRelease": {
|
|
63
|
+
"sourceDigest": "sha256:4c513d597b672a7c46e815f88df91da6ca1caa024ff366ad9dac51719df6d6e2"
|
|
61
64
|
}
|
|
62
|
-
}
|
|
65
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Target kind: `concrete` pins (modelId, providerSlug); `strategy` routes through a ModelStrategy class.
|
|
8
|
-
*/
|
|
9
|
-
export type CreateModelResolutionRuleDtoTargetKind = typeof CreateModelResolutionRuleDtoTargetKind[keyof typeof CreateModelResolutionRuleDtoTargetKind];
|
|
10
|
-
export declare const CreateModelResolutionRuleDtoTargetKind: {
|
|
11
|
-
readonly concrete: "concrete";
|
|
12
|
-
readonly strategy: "strategy";
|
|
13
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
-
* LLM Registry API
|
|
5
|
-
* OpenAPI spec version: 0.1.3
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CreateModelResolutionRuleDtoTargetKind = void 0;
|
|
9
|
-
exports.CreateModelResolutionRuleDtoTargetKind = {
|
|
10
|
-
concrete: 'concrete',
|
|
11
|
-
strategy: 'strategy',
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
export type CreateModelStrategyDtoProviderFocus = typeof CreateModelStrategyDtoProviderFocus[keyof typeof CreateModelStrategyDtoProviderFocus];
|
|
7
|
-
export declare const CreateModelStrategyDtoProviderFocus: {
|
|
8
|
-
readonly claude: "claude";
|
|
9
|
-
readonly openai: "openai";
|
|
10
|
-
readonly xai: "xai";
|
|
11
|
-
readonly mixed: "mixed";
|
|
12
|
-
readonly 'openai-claude': "openai-claude";
|
|
13
|
-
readonly 'self-managed': "self-managed";
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
-
* LLM Registry API
|
|
5
|
-
* OpenAPI spec version: 0.1.3
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CreateModelStrategyDtoProviderFocus = void 0;
|
|
9
|
-
exports.CreateModelStrategyDtoProviderFocus = {
|
|
10
|
-
claude: 'claude',
|
|
11
|
-
openai: 'openai',
|
|
12
|
-
xai: 'xai',
|
|
13
|
-
mixed: 'mixed',
|
|
14
|
-
'openai-claude': 'openai-claude',
|
|
15
|
-
'self-managed': 'self-managed',
|
|
16
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
export type CreateModelStrategyDtoTier = typeof CreateModelStrategyDtoTier[keyof typeof CreateModelStrategyDtoTier];
|
|
7
|
-
export declare const CreateModelStrategyDtoTier: {
|
|
8
|
-
readonly ultra: "ultra";
|
|
9
|
-
readonly balanced: "balanced";
|
|
10
|
-
readonly fast: "fast";
|
|
11
|
-
readonly turbo: "turbo";
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
-
* LLM Registry API
|
|
5
|
-
* OpenAPI spec version: 0.1.3
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CreateModelStrategyDtoTier = void 0;
|
|
9
|
-
exports.CreateModelStrategyDtoTier = {
|
|
10
|
-
ultra: 'ultra',
|
|
11
|
-
balanced: 'balanced',
|
|
12
|
-
fast: 'fast',
|
|
13
|
-
turbo: 'turbo',
|
|
14
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
export interface CreateModelStrategyEntryDto {
|
|
7
|
-
/** The work kind this entry routes. An OPEN vocabulary: the kernel core plus every key a biome or this organisation has declared. Lower-kebab; validated for GRAMMAR here and for DECLARATION where org context exists. */
|
|
8
|
-
modelLane: string;
|
|
9
|
-
/** Model slug/ID to match against LlmModel.modelId */
|
|
10
|
-
modelSlug: string;
|
|
11
|
-
/**
|
|
12
|
-
* Temperature (0-2)
|
|
13
|
-
* @minimum 0
|
|
14
|
-
* @maximum 2
|
|
15
|
-
*/
|
|
16
|
-
temperature?: number;
|
|
17
|
-
/** Reasoning effort asked of the model — the kernel's `ModelOptions.reasoningEffort`, an open string the provider interprets (`low`/`medium`/`high`/…). Omitted = the engine/model owns it; no platform default. */
|
|
18
|
-
reasoningEffort?: string;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
export interface ModelBindingResponseDto {
|
|
7
|
-
/** Model slug, matched against `LlmModel.modelId` for the org. */
|
|
8
|
-
modelSlug: string;
|
|
9
|
-
/**
|
|
10
|
-
* `null` defers to the engine/model default.
|
|
11
|
-
* @nullable
|
|
12
|
-
*/
|
|
13
|
-
temperature?: number | null;
|
|
14
|
-
/**
|
|
15
|
-
* `null` defers to the engine/model default.
|
|
16
|
-
* @nullable
|
|
17
|
-
*/
|
|
18
|
-
reasoningEffort?: string | null;
|
|
19
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* `lane` — the strategy binds this lane directly. `default` — no entry for this lane; the strategy's default binding applies. `unconfigured` — no entry and no default; the lane resolves nothing.
|
|
8
|
-
*/
|
|
9
|
-
export type ModelLaneBindingSource = typeof ModelLaneBindingSource[keyof typeof ModelLaneBindingSource];
|
|
10
|
-
export declare const ModelLaneBindingSource: {
|
|
11
|
-
readonly lane: "lane";
|
|
12
|
-
readonly default: "default";
|
|
13
|
-
readonly unconfigured: "unconfigured";
|
|
14
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
-
* LLM Registry API
|
|
5
|
-
* OpenAPI spec version: 0.1.3
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ModelLaneBindingSource = void 0;
|
|
9
|
-
exports.ModelLaneBindingSource = {
|
|
10
|
-
lane: 'lane',
|
|
11
|
-
default: 'default',
|
|
12
|
-
unconfigured: 'unconfigured',
|
|
13
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
import type { ModelLaneBindingSource } from './modelLaneBindingSource.js';
|
|
7
|
-
export interface ModelLaneEffectiveBindingDto {
|
|
8
|
-
/**
|
|
9
|
-
* `null` only when `source` is `unconfigured` — the lane has neither its own entry nor a strategy default to fall back to.
|
|
10
|
-
* @nullable
|
|
11
|
-
*/
|
|
12
|
-
modelSlug: string | null;
|
|
13
|
-
/** `lane` — the strategy binds this lane directly. `default` — no entry for this lane; the strategy's default binding applies. `unconfigured` — no entry and no default; the lane resolves nothing. */
|
|
14
|
-
source: ModelLaneBindingSource;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* SEAM #2: the target KIND the default rule had before the first override, restored on revert. NULL when no override is active.
|
|
8
|
-
* @nullable
|
|
9
|
-
*/
|
|
10
|
-
export type ModelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind = typeof ModelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind[keyof typeof ModelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind] | null;
|
|
11
|
-
export declare const ModelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind: {
|
|
12
|
-
readonly concrete: "concrete";
|
|
13
|
-
readonly strategy: "strategy";
|
|
14
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
-
* LLM Registry API
|
|
5
|
-
* OpenAPI spec version: 0.1.3
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ModelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind = void 0;
|
|
9
|
-
exports.ModelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind = {
|
|
10
|
-
concrete: 'concrete',
|
|
11
|
-
strategy: 'strategy',
|
|
12
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
export type ModelResolutionRuleResponseDtoTargetKind = typeof ModelResolutionRuleResponseDtoTargetKind[keyof typeof ModelResolutionRuleResponseDtoTargetKind];
|
|
7
|
-
export declare const ModelResolutionRuleResponseDtoTargetKind: {
|
|
8
|
-
readonly concrete: "concrete";
|
|
9
|
-
readonly strategy: "strategy";
|
|
10
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
-
* LLM Registry API
|
|
5
|
-
* OpenAPI spec version: 0.1.3
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ModelResolutionRuleResponseDtoTargetKind = void 0;
|
|
9
|
-
exports.ModelResolutionRuleResponseDtoTargetKind = {
|
|
10
|
-
concrete: 'concrete',
|
|
11
|
-
strategy: 'strategy',
|
|
12
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
export interface ModelStrategyEntryResponseDto {
|
|
7
|
-
id: string;
|
|
8
|
-
strategyId: string;
|
|
9
|
-
/** The model LANE this entry routes. An OPEN vocabulary declared by `model-lane` contributions — `GET /work-kinds?kind=model-lane` enumerates what this organisation may use. */
|
|
10
|
-
modelLane: string;
|
|
11
|
-
/** Model slug matched against LlmModel.modelId */
|
|
12
|
-
modelSlug: string;
|
|
13
|
-
/**
|
|
14
|
-
* `null` defers to the engine/model default.
|
|
15
|
-
* @nullable
|
|
16
|
-
*/
|
|
17
|
-
temperature?: number | null;
|
|
18
|
-
/**
|
|
19
|
-
* Reasoning effort the entry asks of the model (kernel `ModelOptions.reasoningEffort`). `null` defers to the engine/model default.
|
|
20
|
-
* @nullable
|
|
21
|
-
*/
|
|
22
|
-
reasoningEffort?: string | null;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
updatedAt: string;
|
|
25
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
import type { ModelLaneEffectiveBindingDto } from './modelLaneEffectiveBindingDto.js';
|
|
7
|
-
export interface ModelStrategyLaneEffectiveResponseDto {
|
|
8
|
-
/** The model lane this entry describes — see `ModelStrategyEntryResponseDto.modelLane`. */
|
|
9
|
-
lane: string;
|
|
10
|
-
effective: ModelLaneEffectiveBindingDto;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
export interface OrgDefaultStrategyStatusResponseDto {
|
|
7
|
-
/** True when the org owns a strategy marked as its default. */
|
|
8
|
-
hasDefault: boolean;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
import type { OrgDefaultStrategyStatusResponseDto } from './orgDefaultStrategyStatusResponseDto.js';
|
|
7
|
-
export interface OrgDefaultStrategyStatusResponseDtoDataEnvelope {
|
|
8
|
-
data: OrgDefaultStrategyStatusResponseDto;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
import type { StrategyTemplateAvailabilityDtoReasonsItem } from './strategyTemplateAvailabilityDtoReasonsItem.js';
|
|
7
|
-
import type { StrategyTemplateEntryDto } from './strategyTemplateEntryDto.js';
|
|
8
|
-
export interface StrategyTemplateAvailabilityDto {
|
|
9
|
-
/** Whether this org can run every entry in the template today. */
|
|
10
|
-
available: boolean;
|
|
11
|
-
/** Why the template is unavailable. Empty when available. */
|
|
12
|
-
reasons: StrategyTemplateAvailabilityDtoReasonsItem[];
|
|
13
|
-
/** Entries whose model this org has not registered. */
|
|
14
|
-
missingModels: StrategyTemplateEntryDto[];
|
|
15
|
-
/** Provider slugs that would supply the missing models, for a one-click fix. */
|
|
16
|
-
suggestedProviderSlugs: string[];
|
|
17
|
-
}
|