@xemahq/llm-registry-api-client 0.10.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,7 +149,7 @@ const modelStrategyControllerUpsertEntries = async (id, upsertModelStrategyEntri
149
149
  };
150
150
  exports.modelStrategyControllerUpsertEntries = modelStrategyControllerUpsertEntries;
151
151
  const getModelStrategyControllerUpsertEntryUrl = (id, lane) => {
152
- return `/model-strategies/${id}/entries/${lane}`;
152
+ return `/model-strategies/${id}/entries/lane/${lane}`;
153
153
  };
154
154
  exports.getModelStrategyControllerUpsertEntryUrl = getModelStrategyControllerUpsertEntryUrl;
155
155
  /**
@@ -165,7 +165,7 @@ const modelStrategyControllerUpsertEntry = async (id, lane, upsertModelStrategyE
165
165
  };
166
166
  exports.modelStrategyControllerUpsertEntry = modelStrategyControllerUpsertEntry;
167
167
  const getModelStrategyControllerDeleteEntryUrl = (id, lane) => {
168
- return `/model-strategies/${id}/entries/${lane}`;
168
+ return `/model-strategies/${id}/entries/lane/${lane}`;
169
169
  };
170
170
  exports.getModelStrategyControllerDeleteEntryUrl = getModelStrategyControllerDeleteEntryUrl;
171
171
  /**
@@ -14,7 +14,7 @@ export interface CreateModelDto {
14
14
  contextWindow: number;
15
15
  /** Model capabilities */
16
16
  capabilities?: string[];
17
- /** Closed-enum input/output modalities the model serves. Empty when omitted. Consumed by the model-modality capability provider-binding. */
17
+ /** Closed-enum INPUT modalities the model accepts, recorded with source `operator`. Omitted or empty means unknown (a provider sync may fill it). Consumed by the model-modality capability provider-binding. */
18
18
  modalities?: ModelModality[];
19
19
  /** Embedding vector dimension (for embedding models only) */
20
20
  embeddingDimension?: number;
@@ -186,6 +186,9 @@ export * from './migrationProvisionDtoConsumer';
186
186
  export * from './migrationTargetDto';
187
187
  export * from './modelBindingResponseDto';
188
188
  export * from './modelCapability';
189
+ export * from './modelFactConflictDto';
190
+ export * from './modelFactName';
191
+ export * from './modelFactSource';
189
192
  export * from './modelModality';
190
193
  export * from './modelMode';
191
194
  export * from './modelPricingTierDto';
@@ -229,8 +232,12 @@ export * from './paginationMeta';
229
232
  export * from './probeProviderDto';
230
233
  export * from './probeProviderDtoApiType';
231
234
  export * from './probedModelDto';
235
+ export * from './problemActionableBy';
232
236
  export * from './problemDetailsDto';
237
+ export * from './problemDetailsDtoParams';
233
238
  export * from './problemFieldIssueDto';
239
+ export * from './problemFieldIssueDtoParams';
240
+ export * from './problemRetry';
234
241
  export * from './projectAgentOverrideResponseDto';
235
242
  export * from './projectAgentOverrideResponseDtoDataArrayEnvelope';
236
243
  export * from './projectAgentOverrideResponseDtoDataEnvelope';
@@ -203,6 +203,9 @@ __exportStar(require("./migrationProvisionDtoConsumer"), exports);
203
203
  __exportStar(require("./migrationTargetDto"), exports);
204
204
  __exportStar(require("./modelBindingResponseDto"), exports);
205
205
  __exportStar(require("./modelCapability"), exports);
206
+ __exportStar(require("./modelFactConflictDto"), exports);
207
+ __exportStar(require("./modelFactName"), exports);
208
+ __exportStar(require("./modelFactSource"), exports);
206
209
  __exportStar(require("./modelModality"), exports);
207
210
  __exportStar(require("./modelMode"), exports);
208
211
  __exportStar(require("./modelPricingTierDto"), exports);
@@ -246,8 +249,12 @@ __exportStar(require("./paginationMeta"), exports);
246
249
  __exportStar(require("./probeProviderDto"), exports);
247
250
  __exportStar(require("./probeProviderDtoApiType"), exports);
248
251
  __exportStar(require("./probedModelDto"), exports);
252
+ __exportStar(require("./problemActionableBy"), exports);
249
253
  __exportStar(require("./problemDetailsDto"), exports);
254
+ __exportStar(require("./problemDetailsDtoParams"), exports);
250
255
  __exportStar(require("./problemFieldIssueDto"), exports);
256
+ __exportStar(require("./problemFieldIssueDtoParams"), exports);
257
+ __exportStar(require("./problemRetry"), exports);
251
258
  __exportStar(require("./projectAgentOverrideResponseDto"), exports);
252
259
  __exportStar(require("./projectAgentOverrideResponseDtoDataArrayEnvelope"), exports);
253
260
  __exportStar(require("./projectAgentOverrideResponseDtoDataEnvelope"), exports);
@@ -0,0 +1,21 @@
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 { ModelFactName } from './modelFactName.js';
7
+ import type { ModelFactSource } from './modelFactSource.js';
8
+ export interface ModelFactConflictDto {
9
+ /** A model size fact (`ModelResponseDto` property name). Here: the capped fact (`maxInputTokens` or `maxOutputTokens`) that exceeds its bound. */
10
+ fact: ModelFactName;
11
+ /** Its effective value. */
12
+ value: number;
13
+ /** Where that value came from; null = provenance not recorded. */
14
+ source: ModelFactSource | null;
15
+ /** The bounding fact (always `contextWindow` today). */
16
+ limitFact: ModelFactName;
17
+ /** Its effective value. */
18
+ limitValue: number;
19
+ /** Where the bound came from; null = provenance not recorded. */
20
+ limitSource: ModelFactSource | null;
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
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
+ * A model size fact (`ModelResponseDto` property name). Here: the capped fact (`maxInputTokens` or `maxOutputTokens`) that exceeds its bound.
8
+ */
9
+ export type ModelFactName = typeof ModelFactName[keyof typeof ModelFactName];
10
+ export declare const ModelFactName: {
11
+ readonly contextWindow: "contextWindow";
12
+ readonly maxInputTokens: "maxInputTokens";
13
+ readonly maxOutputTokens: "maxOutputTokens";
14
+ };
@@ -0,0 +1,13 @@
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.ModelFactName = void 0;
9
+ exports.ModelFactName = {
10
+ contextWindow: 'contextWindow',
11
+ maxInputTokens: 'maxInputTokens',
12
+ maxOutputTokens: 'maxOutputTokens',
13
+ };
@@ -0,0 +1,14 @@
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
+ * Where a model size fact came from, highest rank first: `operator` (a person set it; no provider sync ever overwrites it), `provider` (provider discovery reported it), `curated_catalog` (the curated per-provider catalogue). For `contextWindow`, null = provenance not recorded (a model registered before sources were tracked).
8
+ */
9
+ export type ModelFactSource = typeof ModelFactSource[keyof typeof ModelFactSource];
10
+ export declare const ModelFactSource: {
11
+ readonly operator: "operator";
12
+ readonly provider: "provider";
13
+ readonly curated_catalog: "curated_catalog";
14
+ };
@@ -0,0 +1,13 @@
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.ModelFactSource = void 0;
9
+ exports.ModelFactSource = {
10
+ operator: 'operator',
11
+ provider: 'provider',
12
+ curated_catalog: 'curated_catalog',
13
+ };
@@ -4,7 +4,7 @@
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
6
  /**
7
- * Closed-enum input/output modalities the model serves. Empty when none declared.
7
+ * Closed-enum INPUT modalities the model accepts — a capability fact (see `modalitiesSource`). Empty when nobody declared any.
8
8
  */
9
9
  export type ModelModality = typeof ModelModality[keyof typeof ModelModality];
10
10
  export declare const ModelModality: {
@@ -3,6 +3,8 @@
3
3
  * LLM Registry API
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
+ import type { ModelFactConflictDto } from './modelFactConflictDto.js';
7
+ import type { ModelFactSource } from './modelFactSource.js';
6
8
  import type { ModelModality } from './modelModality.js';
7
9
  import type { ModelMode } from './modelMode.js';
8
10
  import type { ModelPricingTierDto } from './modelPricingTierDto.js';
@@ -15,10 +17,40 @@ export interface ModelResponseDto {
15
17
  /** @nullable */
16
18
  contextWindow?: ModelResponseDtoContextWindow;
17
19
  /**
18
- * Max generation/output tokens. Distinct from contextWindow (the input budget). Null when no authoritative source declares one.
20
+ * Max generation/output tokens. Bounded by contextWindow, which is the TOTAL budget (prompt + reasoning + answer). Null when no authoritative source declares one.
19
21
  * @nullable
20
22
  */
21
23
  maxOutputTokens?: number | null;
24
+ /** Where a model size fact came from, highest rank first: `operator` (a person set it; no provider sync ever overwrites it), `provider` (provider discovery reported it), `curated_catalog` (the curated per-provider catalogue). For `contextWindow`, null = provenance not recorded (a model registered before sources were tracked). */
25
+ contextWindowSource: ModelFactSource | null;
26
+ /**
27
+ * When the source of `contextWindow` last asserted this value (ISO 8601). Null exactly when its source is null.
28
+ * @nullable
29
+ */
30
+ contextWindowVerifiedAt: string | null;
31
+ /**
32
+ * Max prompt (input) tokens, when the service caps input below the context window. Null when no source declares a cap (only the context window applies).
33
+ * @nullable
34
+ */
35
+ maxInputTokens: number | null;
36
+ /** Where a model size fact came from, highest rank first: `operator` (a person set it; no provider sync ever overwrites it), `provider` (provider discovery reported it), `curated_catalog` (the curated per-provider catalogue). For `maxInputTokens`, null = the fact is unknown. */
37
+ maxInputTokensSource: ModelFactSource | null;
38
+ /**
39
+ * When the source of `maxInputTokens` last asserted this value (ISO 8601). Null exactly when its source is null.
40
+ * @nullable
41
+ */
42
+ maxInputTokensVerifiedAt: string | null;
43
+ /** Where a model size fact came from, highest rank first: `operator` (a person set it; no provider sync ever overwrites it), `provider` (provider discovery reported it), `curated_catalog` (the curated per-provider catalogue). For `maxOutputTokens`, null with a null value = the fact is unknown; null beside a value = provenance not recorded (a model registered before sources were tracked). */
44
+ maxOutputTokensSource: ModelFactSource | null;
45
+ /**
46
+ * When the source of `maxOutputTokens` last asserted this value (ISO 8601). Null exactly when its source is null.
47
+ * @nullable
48
+ */
49
+ maxOutputTokensVerifiedAt: string | null;
50
+ /** False when the effective size facts conflict (see `factConflicts`). An inconsistent model is refused for selection and use with `MODEL_FACTS_CONFLICT` until an admin changes or clears the overriding value. */
51
+ factsConsistent: boolean;
52
+ /** Every violated size-fact bound, with both sides' sources. Empty when consistent. */
53
+ factConflicts: ModelFactConflictDto[];
22
54
  /** Operating mode of the model. Null when no signal resolved one. */
23
55
  mode?: ModelMode | null;
24
56
  /**
@@ -27,8 +59,15 @@ export interface ModelResponseDto {
27
59
  */
28
60
  embeddingDimension?: number | null;
29
61
  capabilities: string[];
30
- /** Closed-enum input/output modalities the model serves. Empty when none declared. */
62
+ /** Closed-enum INPUT modalities the model accepts — a capability fact (see `modalitiesSource`). Empty when nobody declared any. */
31
63
  modalities: ModelModality[];
64
+ /** Where the `modalities` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. an empty set with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
65
+ modalitiesSource: ModelFactSource | null;
66
+ /**
67
+ * When the source of `modalities` last asserted it (ISO 8601). Null exactly when its source is null.
68
+ * @nullable
69
+ */
70
+ modalitiesVerifiedAt: string | null;
32
71
  /** Model exposes function/tool calling. */
33
72
  supportsTools: boolean;
34
73
  /** Model accepts image inputs. */
@@ -45,6 +84,62 @@ export interface ModelResponseDto {
45
84
  supportsJsonMode: boolean;
46
85
  /** Model supports built-in web search. */
47
86
  supportsWebSearch: boolean;
87
+ /** Where the `supportsTools` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
88
+ supportsToolsSource: ModelFactSource | null;
89
+ /**
90
+ * When the source of `supportsTools` last asserted it (ISO 8601). Null exactly when its source is null.
91
+ * @nullable
92
+ */
93
+ supportsToolsVerifiedAt: string | null;
94
+ /** Where the `supportsVision` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
95
+ supportsVisionSource: ModelFactSource | null;
96
+ /**
97
+ * When the source of `supportsVision` last asserted it (ISO 8601). Null exactly when its source is null.
98
+ * @nullable
99
+ */
100
+ supportsVisionVerifiedAt: string | null;
101
+ /** Where the `supportsReasoning` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
102
+ supportsReasoningSource: ModelFactSource | null;
103
+ /**
104
+ * When the source of `supportsReasoning` last asserted it (ISO 8601). Null exactly when its source is null.
105
+ * @nullable
106
+ */
107
+ supportsReasoningVerifiedAt: string | null;
108
+ /** Where the `supportsAudioInput` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
109
+ supportsAudioInputSource: ModelFactSource | null;
110
+ /**
111
+ * When the source of `supportsAudioInput` last asserted it (ISO 8601). Null exactly when its source is null.
112
+ * @nullable
113
+ */
114
+ supportsAudioInputVerifiedAt: string | null;
115
+ /** Where the `supportsPdfInput` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
116
+ supportsPdfInputSource: ModelFactSource | null;
117
+ /**
118
+ * When the source of `supportsPdfInput` last asserted it (ISO 8601). Null exactly when its source is null.
119
+ * @nullable
120
+ */
121
+ supportsPdfInputVerifiedAt: string | null;
122
+ /** Where the `supportsPromptCaching` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
123
+ supportsPromptCachingSource: ModelFactSource | null;
124
+ /**
125
+ * When the source of `supportsPromptCaching` last asserted it (ISO 8601). Null exactly when its source is null.
126
+ * @nullable
127
+ */
128
+ supportsPromptCachingVerifiedAt: string | null;
129
+ /** Where the `supportsJsonMode` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
130
+ supportsJsonModeSource: ModelFactSource | null;
131
+ /**
132
+ * When the source of `supportsJsonMode` last asserted it (ISO 8601). Null exactly when its source is null.
133
+ * @nullable
134
+ */
135
+ supportsJsonModeVerifiedAt: string | null;
136
+ /** Where the `supportsWebSearch` capability fact came from, highest rank first: `operator` (no sync overwrites it), `provider` (the provider declared it), `curated_catalog`. `false` with a null source = the fact is unknown (nobody declared it); a non-default value with a null source = provenance not recorded. */
137
+ supportsWebSearchSource: ModelFactSource | null;
138
+ /**
139
+ * When the source of `supportsWebSearch` last asserted it (ISO 8601). Null exactly when its source is null.
140
+ * @nullable
141
+ */
142
+ supportsWebSearchVerifiedAt: string | null;
48
143
  /** Model has rolled out of the current window. */
49
144
  deprecated: boolean;
50
145
  /**
@@ -8,6 +8,6 @@ export interface ProbedModelDto {
8
8
  id: string;
9
9
  /** Human-readable model name, when the provider reports one. */
10
10
  displayName?: string;
11
- /** Context window resolved from the provider /models response or gateway metadata. Absent when no authoritative value was found. */
11
+ /** TOTAL context window (prompt + answer) resolved from the provider /models response or gateway metadata — never an input cap. Absent when no authoritative total was found. */
12
12
  contextWindow?: number;
13
13
  }
@@ -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
+ /**
7
+ * Who can act on this refusal: `user` (correct the input, sign in), `org-admin` (an administrator of the organisation), `platform` (the operators of this installation), `none` (nobody — it cannot succeed). ABSENT when not known; never guessed.
8
+ */
9
+ export type ProblemActionableBy = typeof ProblemActionableBy[keyof typeof ProblemActionableBy];
10
+ export declare const ProblemActionableBy: {
11
+ readonly user: "user";
12
+ readonly 'org-admin': "org-admin";
13
+ readonly platform: "platform";
14
+ readonly none: "none";
15
+ };
@@ -0,0 +1,14 @@
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.ProblemActionableBy = void 0;
9
+ exports.ProblemActionableBy = {
10
+ user: 'user',
11
+ 'org-admin': 'org-admin',
12
+ platform: 'platform',
13
+ none: 'none',
14
+ };
@@ -3,7 +3,10 @@
3
3
  * LLM Registry API
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
+ import type { ProblemActionableBy } from './problemActionableBy.js';
7
+ import type { ProblemDetailsDtoParams } from './problemDetailsDtoParams.js';
6
8
  import type { ProblemFieldIssueDto } from './problemFieldIssueDto.js';
9
+ import type { ProblemRetry } from './problemRetry.js';
7
10
  /**
8
11
  * RFC 9457 problem document. The declared members are the reserved core; extension members are TOP-LEVEL and OPEN, owned by the refusing plane.
9
12
  */
@@ -24,5 +27,11 @@ export interface ProblemDetailsDto {
24
27
  traceId?: string;
25
28
  /** Field-level issues, when the refusal is about the request body. */
26
29
  errors?: ProblemFieldIssueDto[];
30
+ /** Who can act on this refusal: `user` (correct the input, sign in), `org-admin` (an administrator of the organisation), `platform` (the operators of this installation), `none` (nobody — it cannot succeed). ABSENT when not known; never guessed. */
31
+ actionableBy?: ProblemActionableBy;
32
+ /** What a retry can achieve: `transient` (later, unchanged), `after-change` (only after someone changes something), `never` (a defect until a fixed version ships). ABSENT when not known. */
33
+ retry?: ProblemRetry;
34
+ /** Safe i18n interpolation values for the message keyed by `code` — typed and allowlisted per code by its declaration. Never server-authored copy, never internal diagnostics. */
35
+ params?: ProblemDetailsDtoParams;
27
36
  [key: string]: unknown;
28
37
  }
@@ -0,0 +1,11 @@
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
+ * Safe i18n interpolation values for the message keyed by `code` — typed and allowlisted per code by its declaration. Never server-authored copy, never internal diagnostics.
8
+ */
9
+ export type ProblemDetailsDtoParams = {
10
+ [key: string]: string | number | boolean;
11
+ };
@@ -0,0 +1,7 @@
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 });
@@ -3,8 +3,14 @@
3
3
  * LLM Registry API
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
+ import type { ProblemFieldIssueDtoParams } from './problemFieldIssueDtoParams.js';
6
7
  export interface ProblemFieldIssueDto {
7
8
  /** RFC 6901 JSON Pointer into the request body. Root is "/". */
8
9
  pointer: string;
10
+ /** Prose for logs and developers. A frontend localises from `code` + `params` instead. */
9
11
  detail: string;
12
+ /** SCREAMING_SNAKE_CASE code of THIS issue, for a frontend i18n key. Present when the issue was minted by a declared problem. */
13
+ code?: string;
14
+ /** Safe i18n interpolation values for this issue's `code`. */
15
+ params?: ProblemFieldIssueDtoParams;
10
16
  }
@@ -1,7 +1,2 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
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
+ * Safe i18n interpolation values for this issue's `code`.
8
+ */
9
+ export type ProblemFieldIssueDtoParams = {
10
+ [key: string]: string | number | boolean;
11
+ };
@@ -0,0 +1,7 @@
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 });
@@ -0,0 +1,14 @@
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
+ * What a retry can achieve: `transient` (later, unchanged), `after-change` (only after someone changes something), `never` (a defect until a fixed version ships). ABSENT when not known.
8
+ */
9
+ export type ProblemRetry = typeof ProblemRetry[keyof typeof ProblemRetry];
10
+ export declare const ProblemRetry: {
11
+ readonly transient: "transient";
12
+ readonly 'after-change': "after-change";
13
+ readonly never: "never";
14
+ };
@@ -0,0 +1,13 @@
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.ProblemRetry = void 0;
9
+ exports.ProblemRetry = {
10
+ transient: 'transient',
11
+ 'after-change': 'after-change',
12
+ never: 'never',
13
+ };
@@ -23,6 +23,21 @@ export interface ResolvedPhaseConfigDto {
23
23
  */
24
24
  reasoningEffort?: string | null;
25
25
  source: string;
26
+ /**
27
+ * The model's TOTAL token budget (prompt + reasoning + answer). Never an input cap.
28
+ * @nullable
29
+ */
30
+ contextWindow?: number | null;
31
+ /**
32
+ * A declared cap on the PROMPT alone, independent of the window. Null = none declared; only the window bounds the prompt.
33
+ * @nullable
34
+ */
35
+ maxInputTokens?: number | null;
36
+ /**
37
+ * Declared ceiling on one answer. Null = UNKNOWN — never "unlimited", never "the rest of the window".
38
+ * @nullable
39
+ */
40
+ maxOutputTokens?: number | null;
26
41
  /** Model Resolution Matrix win-reason trace — which rule won and why. Null only for the persisted per-agent override path. */
27
42
  decision?: ResolvedModelDecisionDto | null;
28
43
  }
@@ -8,13 +8,65 @@ export interface UpdateModelDto {
8
8
  /** Human-friendly display name */
9
9
  displayName?: string;
10
10
  /**
11
- * Context window size in tokens
11
+ * Context window (max input tokens). Recorded with source `operator`; the provider sync never overwrites an operator value. Not nullable — a model always has a context window. Omit to leave it unchanged.
12
12
  * @minimum 1
13
13
  */
14
14
  contextWindow?: number;
15
+ /**
16
+ * Max prompt (input) tokens, when the service caps input below the context window. A positive integer is recorded with source `operator`. `null` clears the fact to unknown (value and source). Omit to leave it unchanged.
17
+ * @minimum 1
18
+ * @nullable
19
+ */
20
+ maxInputTokens?: number | null;
21
+ /**
22
+ * Max generation/output tokens. A positive integer is recorded with source `operator` and the provider sync never overwrites it. `null` clears the fact to unknown (value and source), so the next provider sync may fill it again. Omit to leave it unchanged.
23
+ * @minimum 1
24
+ * @nullable
25
+ */
26
+ maxOutputTokens?: number | null;
15
27
  /** Model capabilities */
16
28
  capabilities?: string[];
17
- /** Closed-enum input/output modalities the model serves. Replaces the stored set when provided; omit to leave it unchanged. */
29
+ /**
30
+ * The model exposes function/tool calling. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
31
+ * @nullable
32
+ */
33
+ supportsTools?: boolean | null;
34
+ /**
35
+ * The model accepts image inputs. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
36
+ * @nullable
37
+ */
38
+ supportsVision?: boolean | null;
39
+ /**
40
+ * The model performs explicit reasoning. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
41
+ * @nullable
42
+ */
43
+ supportsReasoning?: boolean | null;
44
+ /**
45
+ * The model accepts audio inputs. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
46
+ * @nullable
47
+ */
48
+ supportsAudioInput?: boolean | null;
49
+ /**
50
+ * The model accepts PDF inputs. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
51
+ * @nullable
52
+ */
53
+ supportsPdfInput?: boolean | null;
54
+ /**
55
+ * The model supports prompt caching. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
56
+ * @nullable
57
+ */
58
+ supportsPromptCaching?: boolean | null;
59
+ /**
60
+ * The model supports structured JSON output. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
61
+ * @nullable
62
+ */
63
+ supportsJsonMode?: boolean | null;
64
+ /**
65
+ * The model supports built-in web search. `true`/`false` is recorded with source `operator`, which no sync overwrites. `null` clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged.
66
+ * @nullable
67
+ */
68
+ supportsWebSearch?: boolean | null;
69
+ /** Closed-enum INPUT modalities the model accepts — an operator declaration recorded with source `operator`, which no sync overwrites. An empty array clears the fact to unknown so the next sync may fill it. Omit to leave it unchanged. */
18
70
  modalities?: ModelModality[];
19
71
  /** Embedding vector dimension (for embedding models only) */
20
72
  embeddingDimension?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/llm-registry-api-client",
3
- "version": "0.10.1",
3
+ "version": "0.11.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [