@claudexor/schema 3.20.1 → 3.23.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/dist/agent-capabilities.d.ts +9 -9
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +2 -1
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/command-list.d.ts +108 -37
- package/dist/command-list.d.ts.map +1 -1
- package/dist/command-list.js +17 -35
- package/dist/command-list.js.map +1 -1
- package/dist/command-summary.d.ts +8 -0
- package/dist/command-summary.d.ts.map +1 -0
- package/dist/command-summary.js +33 -0
- package/dist/command-summary.js.map +1 -0
- package/dist/continuation-admission.d.ts +41 -0
- package/dist/continuation-admission.d.ts.map +1 -0
- package/dist/continuation-admission.js +136 -0
- package/dist/continuation-admission.js.map +1 -0
- package/dist/control-operation-responses.d.ts +357 -0
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +2 -0
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +726 -0
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-execution.js +1 -1
- package/dist/control-run-execution.js.map +1 -1
- package/dist/control-thread-requests.d.ts +17 -3
- package/dist/control-thread-requests.d.ts.map +1 -1
- package/dist/control-thread-requests.js +24 -1
- package/dist/control-thread-requests.js.map +1 -1
- package/dist/control.d.ts +347 -22
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +32 -4
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +144 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/credential-profile.d.ts +1 -1
- package/dist/credential-profile.js +1 -1
- package/dist/daemon-status.d.ts +177 -0
- package/dist/daemon-status.d.ts.map +1 -0
- package/dist/daemon-status.js +27 -0
- package/dist/daemon-status.js.map +1 -0
- package/dist/decision.d.ts +12 -0
- package/dist/decision.d.ts.map +1 -1
- package/dist/effort.d.ts +33 -12
- package/dist/effort.d.ts.map +1 -1
- package/dist/effort.js +43 -13
- package/dist/effort.js.map +1 -1
- package/dist/events.d.ts +4 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +11 -0
- package/dist/events.js.map +1 -1
- package/dist/harness.d.ts +16 -9
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +3 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +155 -0
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-result.js +38 -0
- package/dist/mcp-run-result.js.map +1 -1
- package/dist/project.d.ts +2 -2
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +3 -3
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +252 -0
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +42 -17
- package/dist/quota.js.map +1 -1
- package/dist/raw.d.ts +1 -1
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +0 -1
- package/dist/raw.js.map +1 -1
- package/dist/run-continuation.d.ts +166 -0
- package/dist/run-continuation.d.ts.map +1 -0
- package/dist/run-continuation.js +65 -0
- package/dist/run-continuation.js.map +1 -0
- package/dist/run-continuity.d.ts +215 -0
- package/dist/run-continuity.d.ts.map +1 -0
- package/dist/run-continuity.js +170 -0
- package/dist/run-continuity.js.map +1 -0
- package/dist/run-facts.d.ts +7 -0
- package/dist/run-facts.d.ts.map +1 -1
- package/dist/run-list-page.d.ts +74 -0
- package/dist/run-list-page.d.ts.map +1 -0
- package/dist/run-list-page.js +85 -0
- package/dist/run-list-page.js.map +1 -0
- package/dist/run-strategy.d.ts +18 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +15 -0
- package/dist/run-strategy.js.map +1 -1
- package/dist/status-projection.d.ts +8 -1
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +22 -1
- package/dist/status-projection.js.map +1 -1
- package/dist/telemetry.d.ts +33 -3
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +3 -3
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +24 -10
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +14 -4
- package/dist/thread.js.map +1 -1
- package/dist/work-report.d.ts +18 -4
- package/dist/work-report.d.ts.map +1 -1
- package/dist/work-report.js +26 -5
- package/dist/work-report.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +5 -4
- package/generated/CommandListQuery.schema.json +204 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +21 -6
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +21 -6
- package/generated/ControlDaemonStatus.schema.json +150 -0
- package/generated/ControlHarnessListResponse.schema.json +1 -1
- package/generated/ControlHarnessSettingsPatch.schema.json +1 -1
- package/generated/ControlProjectRemoveReceipt.schema.json +1 -1
- package/generated/ControlQuotaResponse.schema.json +20 -5
- package/generated/ControlRetainedEnvelope.schema.json +63 -0
- package/generated/ControlRunAgainDraft.schema.json +17 -1
- package/generated/ControlRunDetail.schema.json +406 -1
- package/generated/ControlRunListResponse.schema.json +406 -1
- package/generated/ControlRunStartRequest.schema.json +17 -1
- package/generated/ControlRunSummary.schema.json +406 -1
- package/generated/ControlSettingsSnapshot.schema.json +1 -1
- package/generated/ControlSettingsUpdateRequest.schema.json +1 -1
- package/generated/ControlThread.schema.json +11 -2
- package/generated/ControlThreadCreateRequest.schema.json +7 -2
- package/generated/ControlThreadDetail.schema.json +25 -3
- package/generated/ControlThreadListResponse.schema.json +11 -2
- package/generated/ControlThreadTurnRequest.schema.json +4 -0
- package/generated/DecisionRecord.schema.json +14 -1
- package/generated/EnvelopeCustody.schema.json +195 -0
- package/generated/GlobalConfig.schema.json +1 -1
- package/generated/HarnessEvent.schema.json +7 -2
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/McpRunHandleResult.schema.json +109 -1
- package/generated/McpRunToolResult.schema.json +14 -1
- package/generated/RunContinuityReceipt.schema.json +182 -0
- package/generated/RunEvent.schema.json +3 -1
- package/generated/RunFacts.schema.json +14 -1
- package/generated/RunListQuery.schema.json +66 -0
- package/generated/RunResumable.schema.json +153 -0
- package/generated/RunTelemetry.schema.json +14 -1
- package/generated/SessionCapsule.schema.json +78 -0
- package/generated/TaskContract.schema.json +1 -1
- package/generated/Thread.schema.json +12 -3
- package/package.json +2 -2
package/dist/quota.d.ts
CHANGED
|
@@ -125,6 +125,10 @@ export declare const QuotaConstraint: z.ZodObject<{
|
|
|
125
125
|
* list is the producer's canonical model-id/alias scope, so a
|
|
126
126
|
* model-specific cap never cools a different model on the same subject. */
|
|
127
127
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
128
|
+
/** Vendor-declared model families, matched as literal id prefixes. These
|
|
129
|
+
* augment exact ids without guessing that every unknown model belongs to
|
|
130
|
+
* a known group. An absent/empty list adds no family scope. */
|
|
131
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
128
132
|
/**
|
|
129
133
|
* Whether this MODEL-SCOPED window also governs a run that names no model.
|
|
130
134
|
* Default (absent) is the conservative answer: a scoped window cannot
|
|
@@ -143,6 +147,7 @@ export declare const QuotaConstraint: z.ZodObject<{
|
|
|
143
147
|
id: string;
|
|
144
148
|
label: string;
|
|
145
149
|
applies_to_models?: string[] | null | undefined;
|
|
150
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
146
151
|
applies_to_unspecified_model?: boolean | undefined;
|
|
147
152
|
used_ratio: number | null;
|
|
148
153
|
window_seconds: number | null;
|
|
@@ -152,6 +157,7 @@ export declare const QuotaConstraint: z.ZodObject<{
|
|
|
152
157
|
id: string;
|
|
153
158
|
label: string;
|
|
154
159
|
applies_to_models?: string[] | null | undefined;
|
|
160
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
155
161
|
applies_to_unspecified_model?: boolean | undefined;
|
|
156
162
|
used_ratio: number | null;
|
|
157
163
|
window_seconds: number | null;
|
|
@@ -189,6 +195,10 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
189
195
|
* list is the producer's canonical model-id/alias scope, so a
|
|
190
196
|
* model-specific cap never cools a different model on the same subject. */
|
|
191
197
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
198
|
+
/** Vendor-declared model families, matched as literal id prefixes. These
|
|
199
|
+
* augment exact ids without guessing that every unknown model belongs to
|
|
200
|
+
* a known group. An absent/empty list adds no family scope. */
|
|
201
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
192
202
|
/**
|
|
193
203
|
* Whether this MODEL-SCOPED window also governs a run that names no model.
|
|
194
204
|
* Default (absent) is the conservative answer: a scoped window cannot
|
|
@@ -207,6 +217,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
207
217
|
id: string;
|
|
208
218
|
label: string;
|
|
209
219
|
applies_to_models?: string[] | null | undefined;
|
|
220
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
210
221
|
applies_to_unspecified_model?: boolean | undefined;
|
|
211
222
|
used_ratio: number | null;
|
|
212
223
|
window_seconds: number | null;
|
|
@@ -216,6 +227,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
216
227
|
id: string;
|
|
217
228
|
label: string;
|
|
218
229
|
applies_to_models?: string[] | null | undefined;
|
|
230
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
219
231
|
applies_to_unspecified_model?: boolean | undefined;
|
|
220
232
|
used_ratio: number | null;
|
|
221
233
|
window_seconds: number | null;
|
|
@@ -236,6 +248,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
236
248
|
id: string;
|
|
237
249
|
label: string;
|
|
238
250
|
applies_to_models?: string[] | null | undefined;
|
|
251
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
239
252
|
applies_to_unspecified_model?: boolean | undefined;
|
|
240
253
|
used_ratio: number | null;
|
|
241
254
|
window_seconds: number | null;
|
|
@@ -256,6 +269,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
256
269
|
id: string;
|
|
257
270
|
label: string;
|
|
258
271
|
applies_to_models?: string[] | null | undefined;
|
|
272
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
259
273
|
applies_to_unspecified_model?: boolean | undefined;
|
|
260
274
|
used_ratio: number | null;
|
|
261
275
|
window_seconds: number | null;
|
|
@@ -309,6 +323,10 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
309
323
|
* list is the producer's canonical model-id/alias scope, so a
|
|
310
324
|
* model-specific cap never cools a different model on the same subject. */
|
|
311
325
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
326
|
+
/** Vendor-declared model families, matched as literal id prefixes. These
|
|
327
|
+
* augment exact ids without guessing that every unknown model belongs to
|
|
328
|
+
* a known group. An absent/empty list adds no family scope. */
|
|
329
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
312
330
|
/**
|
|
313
331
|
* Whether this MODEL-SCOPED window also governs a run that names no model.
|
|
314
332
|
* Default (absent) is the conservative answer: a scoped window cannot
|
|
@@ -327,6 +345,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
327
345
|
id: string;
|
|
328
346
|
label: string;
|
|
329
347
|
applies_to_models?: string[] | null | undefined;
|
|
348
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
330
349
|
applies_to_unspecified_model?: boolean | undefined;
|
|
331
350
|
used_ratio: number | null;
|
|
332
351
|
window_seconds: number | null;
|
|
@@ -336,6 +355,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
336
355
|
id: string;
|
|
337
356
|
label: string;
|
|
338
357
|
applies_to_models?: string[] | null | undefined;
|
|
358
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
339
359
|
applies_to_unspecified_model?: boolean | undefined;
|
|
340
360
|
used_ratio: number | null;
|
|
341
361
|
window_seconds: number | null;
|
|
@@ -356,6 +376,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
356
376
|
id: string;
|
|
357
377
|
label: string;
|
|
358
378
|
applies_to_models?: string[] | null | undefined;
|
|
379
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
359
380
|
applies_to_unspecified_model?: boolean | undefined;
|
|
360
381
|
used_ratio: number | null;
|
|
361
382
|
window_seconds: number | null;
|
|
@@ -376,6 +397,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
376
397
|
id: string;
|
|
377
398
|
label: string;
|
|
378
399
|
applies_to_models?: string[] | null | undefined;
|
|
400
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
379
401
|
applies_to_unspecified_model?: boolean | undefined;
|
|
380
402
|
used_ratio: number | null;
|
|
381
403
|
window_seconds: number | null;
|
|
@@ -399,6 +421,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
399
421
|
id: string;
|
|
400
422
|
label: string;
|
|
401
423
|
applies_to_models?: string[] | null | undefined;
|
|
424
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
402
425
|
applies_to_unspecified_model?: boolean | undefined;
|
|
403
426
|
used_ratio: number | null;
|
|
404
427
|
window_seconds: number | null;
|
|
@@ -422,6 +445,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
422
445
|
id: string;
|
|
423
446
|
label: string;
|
|
424
447
|
applies_to_models?: string[] | null | undefined;
|
|
448
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
425
449
|
applies_to_unspecified_model?: boolean | undefined;
|
|
426
450
|
used_ratio: number | null;
|
|
427
451
|
window_seconds: number | null;
|
|
@@ -445,6 +469,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
445
469
|
id: string;
|
|
446
470
|
label: string;
|
|
447
471
|
applies_to_models?: string[] | null | undefined;
|
|
472
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
448
473
|
applies_to_unspecified_model?: boolean | undefined;
|
|
449
474
|
used_ratio: number | null;
|
|
450
475
|
window_seconds: number | null;
|
|
@@ -468,6 +493,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
468
493
|
id: string;
|
|
469
494
|
label: string;
|
|
470
495
|
applies_to_models?: string[] | null | undefined;
|
|
496
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
471
497
|
applies_to_unspecified_model?: boolean | undefined;
|
|
472
498
|
used_ratio: number | null;
|
|
473
499
|
window_seconds: number | null;
|
|
@@ -480,6 +506,106 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
|
|
|
480
506
|
};
|
|
481
507
|
}>;
|
|
482
508
|
export type QuotaWindowObservation = z.infer<typeof QuotaWindowObservation>;
|
|
509
|
+
/** A newer full read superseded this exact incremental window. The cutoff
|
|
510
|
+
* survives later full-inventory replacement and rejects delayed older events;
|
|
511
|
+
* raw measurements remain ordinary journal history until compaction. */
|
|
512
|
+
export declare const QuotaWindowSupersession: z.ZodObject<Pick<{
|
|
513
|
+
subject: z.ZodObject<{
|
|
514
|
+
harness: z.ZodString;
|
|
515
|
+
credential_route: z.ZodEnum<["vendor_native", "managed_api_key", "local"]>;
|
|
516
|
+
plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
517
|
+
/** The CREDENTIAL SUBJECT the windows belong to (release wave round-16
|
|
518
|
+
* #2): a Claudexor credential-profile id, or null for the harness's
|
|
519
|
+
* engine-default credential. Every producer (oauth-usage refresher,
|
|
520
|
+
* typed-event registry, adapter quota events) uses exactly this
|
|
521
|
+
* vocabulary; budget routing filters snapshots by exact subject so one
|
|
522
|
+
* account's exhaustion never cools another. */
|
|
523
|
+
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
}, "strict", z.ZodTypeAny, {
|
|
525
|
+
harness: string;
|
|
526
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
527
|
+
plan_label: string | null;
|
|
528
|
+
subject_id: string | null;
|
|
529
|
+
}, {
|
|
530
|
+
harness: string;
|
|
531
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
532
|
+
plan_label?: string | null | undefined;
|
|
533
|
+
subject_id?: string | null | undefined;
|
|
534
|
+
}>;
|
|
535
|
+
constraints: z.ZodArray<z.ZodObject<{
|
|
536
|
+
id: z.ZodString;
|
|
537
|
+
label: z.ZodString;
|
|
538
|
+
/** omitted/null = this vendor window applies to every model. A non-null
|
|
539
|
+
* list is the producer's canonical model-id/alias scope, so a
|
|
540
|
+
* model-specific cap never cools a different model on the same subject. */
|
|
541
|
+
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
542
|
+
/** Vendor-declared model families, matched as literal id prefixes. These
|
|
543
|
+
* augment exact ids without guessing that every unknown model belongs to
|
|
544
|
+
* a known group. An absent/empty list adds no family scope. */
|
|
545
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
546
|
+
/**
|
|
547
|
+
* Whether this MODEL-SCOPED window also governs a run that names no model.
|
|
548
|
+
* Default (absent) is the conservative answer: a scoped window cannot
|
|
549
|
+
* refuse a route whose concrete model is unknowable before spawn. A source
|
|
550
|
+
* sets it when the vendor's unspecified-model route provably consumes THIS
|
|
551
|
+
* window — the case where every window is scoped, so the conservative
|
|
552
|
+
* default would leave an exhausted subscription unrefusable and its
|
|
553
|
+
* profile rotation unreachable.
|
|
554
|
+
*/
|
|
555
|
+
applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
|
|
556
|
+
used_ratio: z.ZodNullable<z.ZodNumber>;
|
|
557
|
+
window_seconds: z.ZodNullable<z.ZodNumber>;
|
|
558
|
+
resets_at: z.ZodNullable<z.ZodString>;
|
|
559
|
+
cooldown_until: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
560
|
+
}, "strict", z.ZodTypeAny, {
|
|
561
|
+
id: string;
|
|
562
|
+
label: string;
|
|
563
|
+
applies_to_models?: string[] | null | undefined;
|
|
564
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
565
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
566
|
+
used_ratio: number | null;
|
|
567
|
+
window_seconds: number | null;
|
|
568
|
+
resets_at: string | null;
|
|
569
|
+
cooldown_until: string | null;
|
|
570
|
+
}, {
|
|
571
|
+
id: string;
|
|
572
|
+
label: string;
|
|
573
|
+
applies_to_models?: string[] | null | undefined;
|
|
574
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
575
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
576
|
+
used_ratio: number | null;
|
|
577
|
+
window_seconds: number | null;
|
|
578
|
+
resets_at: string | null;
|
|
579
|
+
cooldown_until?: string | null | undefined;
|
|
580
|
+
}>, "many">;
|
|
581
|
+
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit", "claude_rate_limit_event", "codex_app_server_event"]>;
|
|
582
|
+
observed_at: z.ZodString;
|
|
583
|
+
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
584
|
+
}, "observed_at" | "subject"> & {
|
|
585
|
+
version: z.ZodLiteral<1>;
|
|
586
|
+
snapshot_id: z.ZodString;
|
|
587
|
+
}, "strict", z.ZodTypeAny, {
|
|
588
|
+
subject: {
|
|
589
|
+
harness: string;
|
|
590
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
591
|
+
plan_label: string | null;
|
|
592
|
+
subject_id: string | null;
|
|
593
|
+
};
|
|
594
|
+
observed_at: string;
|
|
595
|
+
version: 1;
|
|
596
|
+
snapshot_id: string;
|
|
597
|
+
}, {
|
|
598
|
+
subject: {
|
|
599
|
+
harness: string;
|
|
600
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
601
|
+
plan_label?: string | null | undefined;
|
|
602
|
+
subject_id?: string | null | undefined;
|
|
603
|
+
};
|
|
604
|
+
observed_at: string;
|
|
605
|
+
version: 1;
|
|
606
|
+
snapshot_id: string;
|
|
607
|
+
}>;
|
|
608
|
+
export type QuotaWindowSupersession = z.infer<typeof QuotaWindowSupersession>;
|
|
483
609
|
export declare const QuotaAbsenceReason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked", "rate_limited", "probe_skipped_rate_limited", "poll_paced", "credential_profile_ambiguous"]>;
|
|
484
610
|
export type QuotaAbsenceReason = z.infer<typeof QuotaAbsenceReason>;
|
|
485
611
|
/** Refresh-gap reasons may coexist with a STALE snapshot: the last-known
|
|
@@ -547,14 +673,17 @@ export type QuotaAvailabilityState = z.infer<typeof QuotaAvailabilityState>;
|
|
|
547
673
|
export declare const QuotaModelScopedExhaustion: z.ZodObject<{
|
|
548
674
|
constraint_id: z.ZodString;
|
|
549
675
|
applies_to_models: z.ZodArray<z.ZodString, "many">;
|
|
676
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
550
677
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
551
678
|
}, "strict", z.ZodTypeAny, {
|
|
552
679
|
constraint_id: string;
|
|
553
680
|
applies_to_models: string[];
|
|
681
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
554
682
|
resets_at: string | null;
|
|
555
683
|
}, {
|
|
556
684
|
constraint_id: string;
|
|
557
685
|
applies_to_models: string[];
|
|
686
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
558
687
|
resets_at: string | null;
|
|
559
688
|
}>;
|
|
560
689
|
export type QuotaModelScopedExhaustion = z.infer<typeof QuotaModelScopedExhaustion>;
|
|
@@ -565,14 +694,17 @@ export declare const QuotaAvailability: z.ZodObject<{
|
|
|
565
694
|
model_scoped_exhaustions: z.ZodArray<z.ZodObject<{
|
|
566
695
|
constraint_id: z.ZodString;
|
|
567
696
|
applies_to_models: z.ZodArray<z.ZodString, "many">;
|
|
697
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
568
698
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
569
699
|
}, "strict", z.ZodTypeAny, {
|
|
570
700
|
constraint_id: string;
|
|
571
701
|
applies_to_models: string[];
|
|
702
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
572
703
|
resets_at: string | null;
|
|
573
704
|
}, {
|
|
574
705
|
constraint_id: string;
|
|
575
706
|
applies_to_models: string[];
|
|
707
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
576
708
|
resets_at: string | null;
|
|
577
709
|
}>, "many">;
|
|
578
710
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -582,6 +714,7 @@ export declare const QuotaAvailability: z.ZodObject<{
|
|
|
582
714
|
model_scoped_exhaustions: {
|
|
583
715
|
constraint_id: string;
|
|
584
716
|
applies_to_models: string[];
|
|
717
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
585
718
|
resets_at: string | null;
|
|
586
719
|
}[];
|
|
587
720
|
}, {
|
|
@@ -591,6 +724,7 @@ export declare const QuotaAvailability: z.ZodObject<{
|
|
|
591
724
|
model_scoped_exhaustions: {
|
|
592
725
|
constraint_id: string;
|
|
593
726
|
applies_to_models: string[];
|
|
727
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
594
728
|
resets_at: string | null;
|
|
595
729
|
}[];
|
|
596
730
|
}>;
|
|
@@ -625,6 +759,10 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
625
759
|
* list is the producer's canonical model-id/alias scope, so a
|
|
626
760
|
* model-specific cap never cools a different model on the same subject. */
|
|
627
761
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
762
|
+
/** Vendor-declared model families, matched as literal id prefixes. These
|
|
763
|
+
* augment exact ids without guessing that every unknown model belongs to
|
|
764
|
+
* a known group. An absent/empty list adds no family scope. */
|
|
765
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
628
766
|
/**
|
|
629
767
|
* Whether this MODEL-SCOPED window also governs a run that names no model.
|
|
630
768
|
* Default (absent) is the conservative answer: a scoped window cannot
|
|
@@ -643,6 +781,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
643
781
|
id: string;
|
|
644
782
|
label: string;
|
|
645
783
|
applies_to_models?: string[] | null | undefined;
|
|
784
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
646
785
|
applies_to_unspecified_model?: boolean | undefined;
|
|
647
786
|
used_ratio: number | null;
|
|
648
787
|
window_seconds: number | null;
|
|
@@ -652,6 +791,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
652
791
|
id: string;
|
|
653
792
|
label: string;
|
|
654
793
|
applies_to_models?: string[] | null | undefined;
|
|
794
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
655
795
|
applies_to_unspecified_model?: boolean | undefined;
|
|
656
796
|
used_ratio: number | null;
|
|
657
797
|
window_seconds: number | null;
|
|
@@ -670,14 +810,17 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
670
810
|
model_scoped_exhaustions: z.ZodArray<z.ZodObject<{
|
|
671
811
|
constraint_id: z.ZodString;
|
|
672
812
|
applies_to_models: z.ZodArray<z.ZodString, "many">;
|
|
813
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
673
814
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
674
815
|
}, "strict", z.ZodTypeAny, {
|
|
675
816
|
constraint_id: string;
|
|
676
817
|
applies_to_models: string[];
|
|
818
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
677
819
|
resets_at: string | null;
|
|
678
820
|
}, {
|
|
679
821
|
constraint_id: string;
|
|
680
822
|
applies_to_models: string[];
|
|
823
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
681
824
|
resets_at: string | null;
|
|
682
825
|
}>, "many">;
|
|
683
826
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -687,6 +830,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
687
830
|
model_scoped_exhaustions: {
|
|
688
831
|
constraint_id: string;
|
|
689
832
|
applies_to_models: string[];
|
|
833
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
690
834
|
resets_at: string | null;
|
|
691
835
|
}[];
|
|
692
836
|
}, {
|
|
@@ -696,6 +840,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
696
840
|
model_scoped_exhaustions: {
|
|
697
841
|
constraint_id: string;
|
|
698
842
|
applies_to_models: string[];
|
|
843
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
699
844
|
resets_at: string | null;
|
|
700
845
|
}[];
|
|
701
846
|
}>>;
|
|
@@ -710,6 +855,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
710
855
|
id: string;
|
|
711
856
|
label: string;
|
|
712
857
|
applies_to_models?: string[] | null | undefined;
|
|
858
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
713
859
|
applies_to_unspecified_model?: boolean | undefined;
|
|
714
860
|
used_ratio: number | null;
|
|
715
861
|
window_seconds: number | null;
|
|
@@ -727,6 +873,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
727
873
|
model_scoped_exhaustions: {
|
|
728
874
|
constraint_id: string;
|
|
729
875
|
applies_to_models: string[];
|
|
876
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
730
877
|
resets_at: string | null;
|
|
731
878
|
}[];
|
|
732
879
|
} | undefined;
|
|
@@ -741,6 +888,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
741
888
|
id: string;
|
|
742
889
|
label: string;
|
|
743
890
|
applies_to_models?: string[] | null | undefined;
|
|
891
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
744
892
|
applies_to_unspecified_model?: boolean | undefined;
|
|
745
893
|
used_ratio: number | null;
|
|
746
894
|
window_seconds: number | null;
|
|
@@ -758,6 +906,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
758
906
|
model_scoped_exhaustions: {
|
|
759
907
|
constraint_id: string;
|
|
760
908
|
applies_to_models: string[];
|
|
909
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
761
910
|
resets_at: string | null;
|
|
762
911
|
}[];
|
|
763
912
|
} | undefined;
|
|
@@ -773,12 +922,46 @@ export declare const ControlQuotaRefreshRequest: z.ZodObject<{
|
|
|
773
922
|
export type ControlQuotaRefreshRequest = z.infer<typeof ControlQuotaRefreshRequest>;
|
|
774
923
|
export declare const QuotaRefreshSkipped: z.ZodObject<{
|
|
775
924
|
vendor: z.ZodString;
|
|
925
|
+
subject: z.ZodOptional<z.ZodObject<{
|
|
926
|
+
harness: z.ZodString;
|
|
927
|
+
credential_route: z.ZodEnum<["vendor_native", "managed_api_key", "local"]>;
|
|
928
|
+
plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
929
|
+
/** The CREDENTIAL SUBJECT the windows belong to (release wave round-16
|
|
930
|
+
* #2): a Claudexor credential-profile id, or null for the harness's
|
|
931
|
+
* engine-default credential. Every producer (oauth-usage refresher,
|
|
932
|
+
* typed-event registry, adapter quota events) uses exactly this
|
|
933
|
+
* vocabulary; budget routing filters snapshots by exact subject so one
|
|
934
|
+
* account's exhaustion never cools another. */
|
|
935
|
+
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
936
|
+
}, "strict", z.ZodTypeAny, {
|
|
937
|
+
harness: string;
|
|
938
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
939
|
+
plan_label: string | null;
|
|
940
|
+
subject_id: string | null;
|
|
941
|
+
}, {
|
|
942
|
+
harness: string;
|
|
943
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
944
|
+
plan_label?: string | null | undefined;
|
|
945
|
+
subject_id?: string | null | undefined;
|
|
946
|
+
}>>;
|
|
776
947
|
not_before: z.ZodString;
|
|
777
948
|
}, "strict", z.ZodTypeAny, {
|
|
778
949
|
vendor: string;
|
|
950
|
+
subject?: {
|
|
951
|
+
harness: string;
|
|
952
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
953
|
+
plan_label: string | null;
|
|
954
|
+
subject_id: string | null;
|
|
955
|
+
} | undefined;
|
|
779
956
|
not_before: string;
|
|
780
957
|
}, {
|
|
781
958
|
vendor: string;
|
|
959
|
+
subject?: {
|
|
960
|
+
harness: string;
|
|
961
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
962
|
+
plan_label?: string | null | undefined;
|
|
963
|
+
subject_id?: string | null | undefined;
|
|
964
|
+
} | undefined;
|
|
782
965
|
not_before: string;
|
|
783
966
|
}>;
|
|
784
967
|
export type QuotaRefreshSkipped = z.infer<typeof QuotaRefreshSkipped>;
|
|
@@ -813,6 +996,10 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
813
996
|
* list is the producer's canonical model-id/alias scope, so a
|
|
814
997
|
* model-specific cap never cools a different model on the same subject. */
|
|
815
998
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
999
|
+
/** Vendor-declared model families, matched as literal id prefixes. These
|
|
1000
|
+
* augment exact ids without guessing that every unknown model belongs to
|
|
1001
|
+
* a known group. An absent/empty list adds no family scope. */
|
|
1002
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
816
1003
|
/**
|
|
817
1004
|
* Whether this MODEL-SCOPED window also governs a run that names no model.
|
|
818
1005
|
* Default (absent) is the conservative answer: a scoped window cannot
|
|
@@ -831,6 +1018,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
831
1018
|
id: string;
|
|
832
1019
|
label: string;
|
|
833
1020
|
applies_to_models?: string[] | null | undefined;
|
|
1021
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
834
1022
|
applies_to_unspecified_model?: boolean | undefined;
|
|
835
1023
|
used_ratio: number | null;
|
|
836
1024
|
window_seconds: number | null;
|
|
@@ -840,6 +1028,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
840
1028
|
id: string;
|
|
841
1029
|
label: string;
|
|
842
1030
|
applies_to_models?: string[] | null | undefined;
|
|
1031
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
843
1032
|
applies_to_unspecified_model?: boolean | undefined;
|
|
844
1033
|
used_ratio: number | null;
|
|
845
1034
|
window_seconds: number | null;
|
|
@@ -858,14 +1047,17 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
858
1047
|
model_scoped_exhaustions: z.ZodArray<z.ZodObject<{
|
|
859
1048
|
constraint_id: z.ZodString;
|
|
860
1049
|
applies_to_models: z.ZodArray<z.ZodString, "many">;
|
|
1050
|
+
applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
861
1051
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
862
1052
|
}, "strict", z.ZodTypeAny, {
|
|
863
1053
|
constraint_id: string;
|
|
864
1054
|
applies_to_models: string[];
|
|
1055
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
865
1056
|
resets_at: string | null;
|
|
866
1057
|
}, {
|
|
867
1058
|
constraint_id: string;
|
|
868
1059
|
applies_to_models: string[];
|
|
1060
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
869
1061
|
resets_at: string | null;
|
|
870
1062
|
}>, "many">;
|
|
871
1063
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -875,6 +1067,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
875
1067
|
model_scoped_exhaustions: {
|
|
876
1068
|
constraint_id: string;
|
|
877
1069
|
applies_to_models: string[];
|
|
1070
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
878
1071
|
resets_at: string | null;
|
|
879
1072
|
}[];
|
|
880
1073
|
}, {
|
|
@@ -884,6 +1077,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
884
1077
|
model_scoped_exhaustions: {
|
|
885
1078
|
constraint_id: string;
|
|
886
1079
|
applies_to_models: string[];
|
|
1080
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
887
1081
|
resets_at: string | null;
|
|
888
1082
|
}[];
|
|
889
1083
|
}>>;
|
|
@@ -898,6 +1092,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
898
1092
|
id: string;
|
|
899
1093
|
label: string;
|
|
900
1094
|
applies_to_models?: string[] | null | undefined;
|
|
1095
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
901
1096
|
applies_to_unspecified_model?: boolean | undefined;
|
|
902
1097
|
used_ratio: number | null;
|
|
903
1098
|
window_seconds: number | null;
|
|
@@ -915,6 +1110,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
915
1110
|
model_scoped_exhaustions: {
|
|
916
1111
|
constraint_id: string;
|
|
917
1112
|
applies_to_models: string[];
|
|
1113
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
918
1114
|
resets_at: string | null;
|
|
919
1115
|
}[];
|
|
920
1116
|
} | undefined;
|
|
@@ -929,6 +1125,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
929
1125
|
id: string;
|
|
930
1126
|
label: string;
|
|
931
1127
|
applies_to_models?: string[] | null | undefined;
|
|
1128
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
932
1129
|
applies_to_unspecified_model?: boolean | undefined;
|
|
933
1130
|
used_ratio: number | null;
|
|
934
1131
|
window_seconds: number | null;
|
|
@@ -946,6 +1143,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
946
1143
|
model_scoped_exhaustions: {
|
|
947
1144
|
constraint_id: string;
|
|
948
1145
|
applies_to_models: string[];
|
|
1146
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
949
1147
|
resets_at: string | null;
|
|
950
1148
|
}[];
|
|
951
1149
|
} | undefined;
|
|
@@ -1011,12 +1209,46 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
1011
1209
|
* that just said 429). Absent on plain reads and unskipped refreshes. */
|
|
1012
1210
|
refresh_skipped: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1013
1211
|
vendor: z.ZodString;
|
|
1212
|
+
subject: z.ZodOptional<z.ZodObject<{
|
|
1213
|
+
harness: z.ZodString;
|
|
1214
|
+
credential_route: z.ZodEnum<["vendor_native", "managed_api_key", "local"]>;
|
|
1215
|
+
plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1216
|
+
/** The CREDENTIAL SUBJECT the windows belong to (release wave round-16
|
|
1217
|
+
* #2): a Claudexor credential-profile id, or null for the harness's
|
|
1218
|
+
* engine-default credential. Every producer (oauth-usage refresher,
|
|
1219
|
+
* typed-event registry, adapter quota events) uses exactly this
|
|
1220
|
+
* vocabulary; budget routing filters snapshots by exact subject so one
|
|
1221
|
+
* account's exhaustion never cools another. */
|
|
1222
|
+
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1223
|
+
}, "strict", z.ZodTypeAny, {
|
|
1224
|
+
harness: string;
|
|
1225
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
1226
|
+
plan_label: string | null;
|
|
1227
|
+
subject_id: string | null;
|
|
1228
|
+
}, {
|
|
1229
|
+
harness: string;
|
|
1230
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
1231
|
+
plan_label?: string | null | undefined;
|
|
1232
|
+
subject_id?: string | null | undefined;
|
|
1233
|
+
}>>;
|
|
1014
1234
|
not_before: z.ZodString;
|
|
1015
1235
|
}, "strict", z.ZodTypeAny, {
|
|
1016
1236
|
vendor: string;
|
|
1237
|
+
subject?: {
|
|
1238
|
+
harness: string;
|
|
1239
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
1240
|
+
plan_label: string | null;
|
|
1241
|
+
subject_id: string | null;
|
|
1242
|
+
} | undefined;
|
|
1017
1243
|
not_before: string;
|
|
1018
1244
|
}, {
|
|
1019
1245
|
vendor: string;
|
|
1246
|
+
subject?: {
|
|
1247
|
+
harness: string;
|
|
1248
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
1249
|
+
plan_label?: string | null | undefined;
|
|
1250
|
+
subject_id?: string | null | undefined;
|
|
1251
|
+
} | undefined;
|
|
1020
1252
|
not_before: string;
|
|
1021
1253
|
}>, "many">>;
|
|
1022
1254
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1031,6 +1263,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
1031
1263
|
id: string;
|
|
1032
1264
|
label: string;
|
|
1033
1265
|
applies_to_models?: string[] | null | undefined;
|
|
1266
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
1034
1267
|
applies_to_unspecified_model?: boolean | undefined;
|
|
1035
1268
|
used_ratio: number | null;
|
|
1036
1269
|
window_seconds: number | null;
|
|
@@ -1048,6 +1281,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
1048
1281
|
model_scoped_exhaustions: {
|
|
1049
1282
|
constraint_id: string;
|
|
1050
1283
|
applies_to_models: string[];
|
|
1284
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
1051
1285
|
resets_at: string | null;
|
|
1052
1286
|
}[];
|
|
1053
1287
|
} | undefined;
|
|
@@ -1067,6 +1301,12 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
1067
1301
|
refreshed_at: string | null;
|
|
1068
1302
|
refresh_skipped?: {
|
|
1069
1303
|
vendor: string;
|
|
1304
|
+
subject?: {
|
|
1305
|
+
harness: string;
|
|
1306
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
1307
|
+
plan_label: string | null;
|
|
1308
|
+
subject_id: string | null;
|
|
1309
|
+
} | undefined;
|
|
1070
1310
|
not_before: string;
|
|
1071
1311
|
}[] | undefined;
|
|
1072
1312
|
}, {
|
|
@@ -1081,6 +1321,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
1081
1321
|
id: string;
|
|
1082
1322
|
label: string;
|
|
1083
1323
|
applies_to_models?: string[] | null | undefined;
|
|
1324
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
1084
1325
|
applies_to_unspecified_model?: boolean | undefined;
|
|
1085
1326
|
used_ratio: number | null;
|
|
1086
1327
|
window_seconds: number | null;
|
|
@@ -1098,6 +1339,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
1098
1339
|
model_scoped_exhaustions: {
|
|
1099
1340
|
constraint_id: string;
|
|
1100
1341
|
applies_to_models: string[];
|
|
1342
|
+
applies_to_model_prefixes?: string[] | undefined;
|
|
1101
1343
|
resets_at: string | null;
|
|
1102
1344
|
}[];
|
|
1103
1345
|
} | undefined;
|
|
@@ -1117,10 +1359,20 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
1117
1359
|
refreshed_at: string | null;
|
|
1118
1360
|
refresh_skipped?: {
|
|
1119
1361
|
vendor: string;
|
|
1362
|
+
subject?: {
|
|
1363
|
+
harness: string;
|
|
1364
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
1365
|
+
plan_label?: string | null | undefined;
|
|
1366
|
+
subject_id?: string | null | undefined;
|
|
1367
|
+
} | undefined;
|
|
1120
1368
|
not_before: string;
|
|
1121
1369
|
}[] | undefined;
|
|
1122
1370
|
}>;
|
|
1123
1371
|
export type ControlQuotaResponse = z.infer<typeof ControlQuotaResponse>;
|
|
1372
|
+
/** Literal family matching belongs to the quota contract, shared by display
|
|
1373
|
+
* and admission. Prefixes must be declared by the vendor-specific producer;
|
|
1374
|
+
* neither a missing model nor an unknown family proves a match. */
|
|
1375
|
+
export declare function quotaModelPrefixMatches(prefixes: readonly string[] | undefined, model: string): boolean;
|
|
1124
1376
|
/** Derive one snapshot's typed model-aware availability — a pure projection
|
|
1125
1377
|
* over the snapshot's own constraints, never an aggregate across subjects.
|
|
1126
1378
|
* Blocking semantics mirror the router's `BudgetLedger`: a window
|
package/dist/quota.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../src/quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,eAAO,MAAM,WAAW,gNAYoE,CAAC;AAC7F,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;uDAEuD;AACvD,MAAM,WAAW,iBAAiB;IAChC;+CAC2C;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzC;oEACgE;IAChE,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC;2EACuE;IACvE,QAAQ,CAAC,oBAAoB,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;IACjE;6EACyE;IACzE,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,mBAAmB;;iBAE5B,YAAY,EAAE,MAAM;iBACpB,mBAAmB;iBACnB,oBAAoB,EAAE,OAAO;iBAC7B,mBAAmB;;;iBAGnB,YAAY,EAAE,MAAM;iBACpB,mBAAmB;iBACnB,oBAAoB;iBACpB,mBAAmB;;;iBAGnB,YAAY,EAAE,MAAM;iBACpB,mBAAmB;iBACnB,oBAAoB;iBACpB,mBAAmB;;;iBAGnB,YAAY,EAAE,MAAM;iBACpB,mBAAmB;iBACnB,oBAAoB;iBACpB,mBAAmB;;;iBAGnB,YAAY,EAAE,MAAM;iBACpB,mBAAmB;iBACnB,oBAAoB,EAAE,QAAQ;iBAC9B,mBAAmB;;;iBAGnB,YAAY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