@claudexor/schema 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/account-resources.d.ts +64 -27
  2. package/dist/account-resources.d.ts.map +1 -1
  3. package/dist/account-target.d.ts +3 -0
  4. package/dist/account-target.d.ts.map +1 -1
  5. package/dist/account-target.js +2 -0
  6. package/dist/account-target.js.map +1 -1
  7. package/dist/attachment.js +1 -1
  8. package/dist/attachment.js.map +1 -1
  9. package/dist/budget.d.ts +3 -0
  10. package/dist/budget.d.ts.map +1 -1
  11. package/dist/budget.js +2 -0
  12. package/dist/budget.js.map +1 -1
  13. package/dist/credential-profile-snapshot.d.ts +64 -28
  14. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  15. package/dist/harness-quota.d.ts +8 -3
  16. package/dist/harness-quota.d.ts.map +1 -1
  17. package/dist/harness.d.ts +17 -5
  18. package/dist/harness.d.ts.map +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +1 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/model-image.d.ts +416 -0
  24. package/dist/model-image.d.ts.map +1 -0
  25. package/dist/model-image.js +77 -0
  26. package/dist/model-image.js.map +1 -0
  27. package/dist/model-operation.d.ts +143 -0
  28. package/dist/model-operation.d.ts.map +1 -1
  29. package/dist/model-operation.js +22 -0
  30. package/dist/model-operation.js.map +1 -1
  31. package/dist/quota-availability.d.ts +33 -0
  32. package/dist/quota-availability.d.ts.map +1 -0
  33. package/dist/quota-availability.js +130 -0
  34. package/dist/quota-availability.js.map +1 -0
  35. package/dist/quota-read.d.ts +38 -9
  36. package/dist/quota-read.d.ts.map +1 -1
  37. package/dist/quota-read.js +5 -3
  38. package/dist/quota-read.js.map +1 -1
  39. package/dist/quota-request-kind.d.ts +9 -0
  40. package/dist/quota-request-kind.d.ts.map +1 -0
  41. package/dist/quota-request-kind.js +8 -0
  42. package/dist/quota-request-kind.js.map +1 -0
  43. package/dist/quota.d.ts +60 -49
  44. package/dist/quota.d.ts.map +1 -1
  45. package/dist/quota.js +17 -126
  46. package/dist/quota.js.map +1 -1
  47. package/dist/rate-limit.d.ts +3 -0
  48. package/dist/rate-limit.d.ts.map +1 -1
  49. package/dist/rate-limit.js +2 -0
  50. package/dist/rate-limit.js.map +1 -1
  51. package/generated/BudgetObservation.schema.json +11 -0
  52. package/generated/ControlAccountResetResponse.schema.json +14 -1
  53. package/generated/ControlAccountResourcesResponse.schema.json +14 -1
  54. package/generated/ControlCredentialProfilesQueryResponse.schema.json +14 -1
  55. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +14 -1
  56. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +14 -1
  57. package/generated/ControlModelSourcesAccountsResponse.schema.json +62 -0
  58. package/generated/ControlModelSourcesQueryResponse.schema.json +62 -0
  59. package/generated/ControlQuotaFreshnessResponse.schema.json +14 -1
  60. package/generated/ControlQuotaQueryResponse.schema.json +17 -1
  61. package/generated/ControlQuotaReadRequest.schema.json +15 -1
  62. package/generated/ControlQuotaRefreshRequest.schema.json +8 -0
  63. package/generated/ControlQuotaResponse.schema.json +14 -1
  64. package/generated/ControlUploadCreateRequest.schema.json +1 -1
  65. package/generated/HarnessEvent.schema.json +21 -1
  66. package/generated/ImageCallRequest.schema.json +145 -0
  67. package/generated/ImageCallResult.schema.json +415 -0
  68. package/package.json +2 -2
package/dist/quota.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod/v3";
2
2
  export { ControlQuotaRefreshRequest } from "./account-target.js";
3
- export declare const QuotaSource: 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"]>;
3
+ export { QuotaRequestKind, quotaConstraintAppliesToRequestKind } from "./quota-request-kind.js";
4
+ export declare const QuotaSource: 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", "codex_image_response"]>;
4
5
  export type QuotaSource = z.infer<typeof QuotaSource>;
5
6
  /** Orthogonal capabilities of every quota evidence source. Keep this
6
7
  * exhaustive registry beside the QuotaSource vocabulary so consumers cannot
@@ -74,6 +75,12 @@ export declare const QUOTA_SOURCE_TRAITS: {
74
75
  readonly refreshDemandHarness: null;
75
76
  readonly producedByRefresher: false;
76
77
  };
78
+ readonly codex_image_response: {
79
+ readonly snapshotMode: "window";
80
+ readonly vendorAuthenticated: false;
81
+ readonly refreshDemandHarness: null;
82
+ readonly producedByRefresher: false;
83
+ };
77
84
  };
78
85
  export declare function quotaSourceTraits(source: QuotaSource): QuotaSourceTraits;
79
86
  /** Harness → source label for reactive `rate_limit` cooldown evidence. This
@@ -140,6 +147,7 @@ export declare const QuotaConstraint: z.ZodObject<{
140
147
  * profile rotation unreachable.
141
148
  */
142
149
  applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
150
+ applies_to_request_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
143
151
  used_ratio: z.ZodNullable<z.ZodNumber>;
144
152
  window_seconds: z.ZodNullable<z.ZodNumber>;
145
153
  resets_at: z.ZodNullable<z.ZodString>;
@@ -150,6 +158,7 @@ export declare const QuotaConstraint: z.ZodObject<{
150
158
  applies_to_models?: string[] | null | undefined;
151
159
  applies_to_model_prefixes?: string[] | undefined;
152
160
  applies_to_unspecified_model?: boolean | undefined;
161
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
153
162
  used_ratio: number | null;
154
163
  window_seconds: number | null;
155
164
  resets_at: string | null;
@@ -160,6 +169,7 @@ export declare const QuotaConstraint: z.ZodObject<{
160
169
  applies_to_models?: string[] | null | undefined;
161
170
  applies_to_model_prefixes?: string[] | undefined;
162
171
  applies_to_unspecified_model?: boolean | undefined;
172
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
163
173
  used_ratio: number | null;
164
174
  window_seconds: number | null;
165
175
  resets_at: string | null;
@@ -210,6 +220,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
210
220
  * profile rotation unreachable.
211
221
  */
212
222
  applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
223
+ applies_to_request_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
213
224
  used_ratio: z.ZodNullable<z.ZodNumber>;
214
225
  window_seconds: z.ZodNullable<z.ZodNumber>;
215
226
  resets_at: z.ZodNullable<z.ZodString>;
@@ -220,6 +231,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
220
231
  applies_to_models?: string[] | null | undefined;
221
232
  applies_to_model_prefixes?: string[] | undefined;
222
233
  applies_to_unspecified_model?: boolean | undefined;
234
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
223
235
  used_ratio: number | null;
224
236
  window_seconds: number | null;
225
237
  resets_at: string | null;
@@ -230,12 +242,13 @@ export declare const QuotaSnapshot: z.ZodObject<{
230
242
  applies_to_models?: string[] | null | undefined;
231
243
  applies_to_model_prefixes?: string[] | undefined;
232
244
  applies_to_unspecified_model?: boolean | undefined;
245
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
233
246
  used_ratio: number | null;
234
247
  window_seconds: number | null;
235
248
  resets_at: string | null;
236
249
  cooldown_until?: string | null | undefined;
237
250
  }>, "many">;
238
- 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"]>;
251
+ 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", "codex_image_response"]>;
239
252
  observed_at: z.ZodString;
240
253
  freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
241
254
  }, "strict", z.ZodTypeAny, {
@@ -251,12 +264,13 @@ export declare const QuotaSnapshot: z.ZodObject<{
251
264
  applies_to_models?: string[] | null | undefined;
252
265
  applies_to_model_prefixes?: string[] | undefined;
253
266
  applies_to_unspecified_model?: boolean | undefined;
267
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
254
268
  used_ratio: number | null;
255
269
  window_seconds: number | null;
256
270
  resets_at: string | null;
257
271
  cooldown_until: string | null;
258
272
  }[];
259
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
273
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
260
274
  observed_at: string;
261
275
  freshness: "fresh" | "stale" | "unknown";
262
276
  }, {
@@ -272,12 +286,13 @@ export declare const QuotaSnapshot: z.ZodObject<{
272
286
  applies_to_models?: string[] | null | undefined;
273
287
  applies_to_model_prefixes?: string[] | undefined;
274
288
  applies_to_unspecified_model?: boolean | undefined;
289
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
275
290
  used_ratio: number | null;
276
291
  window_seconds: number | null;
277
292
  resets_at: string | null;
278
293
  cooldown_until?: string | null | undefined;
279
294
  }[];
280
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
295
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
281
296
  observed_at: string;
282
297
  freshness: "fresh" | "stale" | "unknown";
283
298
  }>;
@@ -338,6 +353,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
338
353
  * profile rotation unreachable.
339
354
  */
340
355
  applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
356
+ applies_to_request_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
341
357
  used_ratio: z.ZodNullable<z.ZodNumber>;
342
358
  window_seconds: z.ZodNullable<z.ZodNumber>;
343
359
  resets_at: z.ZodNullable<z.ZodString>;
@@ -348,6 +364,7 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
348
364
  applies_to_models?: string[] | null | undefined;
349
365
  applies_to_model_prefixes?: string[] | undefined;
350
366
  applies_to_unspecified_model?: boolean | undefined;
367
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
351
368
  used_ratio: number | null;
352
369
  window_seconds: number | null;
353
370
  resets_at: string | null;
@@ -358,12 +375,13 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
358
375
  applies_to_models?: string[] | null | undefined;
359
376
  applies_to_model_prefixes?: string[] | undefined;
360
377
  applies_to_unspecified_model?: boolean | undefined;
378
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
361
379
  used_ratio: number | null;
362
380
  window_seconds: number | null;
363
381
  resets_at: string | null;
364
382
  cooldown_until?: string | null | undefined;
365
383
  }>, "many">;
366
- 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"]>;
384
+ 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", "codex_image_response"]>;
367
385
  observed_at: z.ZodString;
368
386
  freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
369
387
  }, "strict", z.ZodTypeAny, {
@@ -379,12 +397,13 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
379
397
  applies_to_models?: string[] | null | undefined;
380
398
  applies_to_model_prefixes?: string[] | undefined;
381
399
  applies_to_unspecified_model?: boolean | undefined;
400
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
382
401
  used_ratio: number | null;
383
402
  window_seconds: number | null;
384
403
  resets_at: string | null;
385
404
  cooldown_until: string | null;
386
405
  }[];
387
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
406
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
388
407
  observed_at: string;
389
408
  freshness: "fresh" | "stale" | "unknown";
390
409
  }, {
@@ -400,12 +419,13 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
400
419
  applies_to_models?: string[] | null | undefined;
401
420
  applies_to_model_prefixes?: string[] | undefined;
402
421
  applies_to_unspecified_model?: boolean | undefined;
422
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
403
423
  used_ratio: number | null;
404
424
  window_seconds: number | null;
405
425
  resets_at: string | null;
406
426
  cooldown_until?: string | null | undefined;
407
427
  }[];
408
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
428
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
409
429
  observed_at: string;
410
430
  freshness: "fresh" | "stale" | "unknown";
411
431
  }>;
@@ -424,12 +444,13 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
424
444
  applies_to_models?: string[] | null | undefined;
425
445
  applies_to_model_prefixes?: string[] | undefined;
426
446
  applies_to_unspecified_model?: boolean | undefined;
447
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
427
448
  used_ratio: number | null;
428
449
  window_seconds: number | null;
429
450
  resets_at: string | null;
430
451
  cooldown_until: string | null;
431
452
  }[];
432
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
453
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
433
454
  observed_at: string;
434
455
  freshness: "fresh" | "stale" | "unknown";
435
456
  };
@@ -448,12 +469,13 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
448
469
  applies_to_models?: string[] | null | undefined;
449
470
  applies_to_model_prefixes?: string[] | undefined;
450
471
  applies_to_unspecified_model?: boolean | undefined;
472
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
451
473
  used_ratio: number | null;
452
474
  window_seconds: number | null;
453
475
  resets_at: string | null;
454
476
  cooldown_until?: string | null | undefined;
455
477
  }[];
456
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
478
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
457
479
  observed_at: string;
458
480
  freshness: "fresh" | "stale" | "unknown";
459
481
  };
@@ -472,12 +494,13 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
472
494
  applies_to_models?: string[] | null | undefined;
473
495
  applies_to_model_prefixes?: string[] | undefined;
474
496
  applies_to_unspecified_model?: boolean | undefined;
497
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
475
498
  used_ratio: number | null;
476
499
  window_seconds: number | null;
477
500
  resets_at: string | null;
478
501
  cooldown_until: string | null;
479
502
  }[];
480
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
503
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
481
504
  observed_at: string;
482
505
  freshness: "fresh" | "stale" | "unknown";
483
506
  };
@@ -496,12 +519,13 @@ export declare const QuotaWindowObservation: z.ZodEffects<z.ZodObject<{
496
519
  applies_to_models?: string[] | null | undefined;
497
520
  applies_to_model_prefixes?: string[] | undefined;
498
521
  applies_to_unspecified_model?: boolean | undefined;
522
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
499
523
  used_ratio: number | null;
500
524
  window_seconds: number | null;
501
525
  resets_at: string | null;
502
526
  cooldown_until?: string | null | undefined;
503
527
  }[];
504
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
528
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
505
529
  observed_at: string;
506
530
  freshness: "fresh" | "stale" | "unknown";
507
531
  };
@@ -554,6 +578,7 @@ export declare const QuotaWindowSupersession: z.ZodObject<Pick<{
554
578
  * profile rotation unreachable.
555
579
  */
556
580
  applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
581
+ applies_to_request_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
557
582
  used_ratio: z.ZodNullable<z.ZodNumber>;
558
583
  window_seconds: z.ZodNullable<z.ZodNumber>;
559
584
  resets_at: z.ZodNullable<z.ZodString>;
@@ -564,6 +589,7 @@ export declare const QuotaWindowSupersession: z.ZodObject<Pick<{
564
589
  applies_to_models?: string[] | null | undefined;
565
590
  applies_to_model_prefixes?: string[] | undefined;
566
591
  applies_to_unspecified_model?: boolean | undefined;
592
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
567
593
  used_ratio: number | null;
568
594
  window_seconds: number | null;
569
595
  resets_at: string | null;
@@ -574,12 +600,13 @@ export declare const QuotaWindowSupersession: z.ZodObject<Pick<{
574
600
  applies_to_models?: string[] | null | undefined;
575
601
  applies_to_model_prefixes?: string[] | undefined;
576
602
  applies_to_unspecified_model?: boolean | undefined;
603
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
577
604
  used_ratio: number | null;
578
605
  window_seconds: number | null;
579
606
  resets_at: string | null;
580
607
  cooldown_until?: string | null | undefined;
581
608
  }>, "many">;
582
- 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"]>;
609
+ 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", "codex_image_response"]>;
583
610
  observed_at: z.ZodString;
584
611
  freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
585
612
  }, "observed_at" | "subject"> & {
@@ -774,6 +801,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
774
801
  * profile rotation unreachable.
775
802
  */
776
803
  applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
804
+ applies_to_request_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
777
805
  used_ratio: z.ZodNullable<z.ZodNumber>;
778
806
  window_seconds: z.ZodNullable<z.ZodNumber>;
779
807
  resets_at: z.ZodNullable<z.ZodString>;
@@ -784,6 +812,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
784
812
  applies_to_models?: string[] | null | undefined;
785
813
  applies_to_model_prefixes?: string[] | undefined;
786
814
  applies_to_unspecified_model?: boolean | undefined;
815
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
787
816
  used_ratio: number | null;
788
817
  window_seconds: number | null;
789
818
  resets_at: string | null;
@@ -794,12 +823,13 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
794
823
  applies_to_models?: string[] | null | undefined;
795
824
  applies_to_model_prefixes?: string[] | undefined;
796
825
  applies_to_unspecified_model?: boolean | undefined;
826
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
797
827
  used_ratio: number | null;
798
828
  window_seconds: number | null;
799
829
  resets_at: string | null;
800
830
  cooldown_until?: string | null | undefined;
801
831
  }>, "many">;
802
- 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"]>;
832
+ 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", "codex_image_response"]>;
803
833
  observed_at: z.ZodString;
804
834
  freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
805
835
  } & {
@@ -858,12 +888,13 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
858
888
  applies_to_models?: string[] | null | undefined;
859
889
  applies_to_model_prefixes?: string[] | undefined;
860
890
  applies_to_unspecified_model?: boolean | undefined;
891
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
861
892
  used_ratio: number | null;
862
893
  window_seconds: number | null;
863
894
  resets_at: string | null;
864
895
  cooldown_until: string | null;
865
896
  }[];
866
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
897
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
867
898
  observed_at: string;
868
899
  freshness: "fresh" | "stale" | "unknown";
869
900
  snapshot_id?: string | undefined;
@@ -891,12 +922,13 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
891
922
  applies_to_models?: string[] | null | undefined;
892
923
  applies_to_model_prefixes?: string[] | undefined;
893
924
  applies_to_unspecified_model?: boolean | undefined;
925
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
894
926
  used_ratio: number | null;
895
927
  window_seconds: number | null;
896
928
  resets_at: string | null;
897
929
  cooldown_until?: string | null | undefined;
898
930
  }[];
899
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
931
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
900
932
  observed_at: string;
901
933
  freshness: "fresh" | "stale" | "unknown";
902
934
  snapshot_id?: string | undefined;
@@ -1003,6 +1035,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1003
1035
  * profile rotation unreachable.
1004
1036
  */
1005
1037
  applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
1038
+ applies_to_request_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
1006
1039
  used_ratio: z.ZodNullable<z.ZodNumber>;
1007
1040
  window_seconds: z.ZodNullable<z.ZodNumber>;
1008
1041
  resets_at: z.ZodNullable<z.ZodString>;
@@ -1013,6 +1046,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1013
1046
  applies_to_models?: string[] | null | undefined;
1014
1047
  applies_to_model_prefixes?: string[] | undefined;
1015
1048
  applies_to_unspecified_model?: boolean | undefined;
1049
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
1016
1050
  used_ratio: number | null;
1017
1051
  window_seconds: number | null;
1018
1052
  resets_at: string | null;
@@ -1023,12 +1057,13 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1023
1057
  applies_to_models?: string[] | null | undefined;
1024
1058
  applies_to_model_prefixes?: string[] | undefined;
1025
1059
  applies_to_unspecified_model?: boolean | undefined;
1060
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
1026
1061
  used_ratio: number | null;
1027
1062
  window_seconds: number | null;
1028
1063
  resets_at: string | null;
1029
1064
  cooldown_until?: string | null | undefined;
1030
1065
  }>, "many">;
1031
- 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"]>;
1066
+ 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", "codex_image_response"]>;
1032
1067
  observed_at: z.ZodString;
1033
1068
  freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
1034
1069
  } & {
@@ -1087,12 +1122,13 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1087
1122
  applies_to_models?: string[] | null | undefined;
1088
1123
  applies_to_model_prefixes?: string[] | undefined;
1089
1124
  applies_to_unspecified_model?: boolean | undefined;
1125
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
1090
1126
  used_ratio: number | null;
1091
1127
  window_seconds: number | null;
1092
1128
  resets_at: string | null;
1093
1129
  cooldown_until: string | null;
1094
1130
  }[];
1095
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
1131
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
1096
1132
  observed_at: string;
1097
1133
  freshness: "fresh" | "stale" | "unknown";
1098
1134
  snapshot_id?: string | undefined;
@@ -1120,12 +1156,13 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1120
1156
  applies_to_models?: string[] | null | undefined;
1121
1157
  applies_to_model_prefixes?: string[] | undefined;
1122
1158
  applies_to_unspecified_model?: boolean | undefined;
1159
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
1123
1160
  used_ratio: number | null;
1124
1161
  window_seconds: number | null;
1125
1162
  resets_at: string | null;
1126
1163
  cooldown_until?: string | null | undefined;
1127
1164
  }[];
1128
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
1165
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
1129
1166
  observed_at: string;
1130
1167
  freshness: "fresh" | "stale" | "unknown";
1131
1168
  snapshot_id?: string | undefined;
@@ -1258,12 +1295,13 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1258
1295
  applies_to_models?: string[] | null | undefined;
1259
1296
  applies_to_model_prefixes?: string[] | undefined;
1260
1297
  applies_to_unspecified_model?: boolean | undefined;
1298
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
1261
1299
  used_ratio: number | null;
1262
1300
  window_seconds: number | null;
1263
1301
  resets_at: string | null;
1264
1302
  cooldown_until: string | null;
1265
1303
  }[];
1266
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
1304
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
1267
1305
  observed_at: string;
1268
1306
  freshness: "fresh" | "stale" | "unknown";
1269
1307
  snapshot_id?: string | undefined;
@@ -1316,12 +1354,13 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1316
1354
  applies_to_models?: string[] | null | undefined;
1317
1355
  applies_to_model_prefixes?: string[] | undefined;
1318
1356
  applies_to_unspecified_model?: boolean | undefined;
1357
+ applies_to_request_kinds?: ("image" | "text")[] | undefined;
1319
1358
  used_ratio: number | null;
1320
1359
  window_seconds: number | null;
1321
1360
  resets_at: string | null;
1322
1361
  cooldown_until?: string | null | undefined;
1323
1362
  }[];
1324
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
1363
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_image_response" | "codex_rollout" | "cursor_rate_limit";
1325
1364
  observed_at: string;
1326
1365
  freshness: "fresh" | "stale" | "unknown";
1327
1366
  snapshot_id?: string | undefined;
@@ -1362,33 +1401,5 @@ export declare const ControlQuotaResponse: z.ZodObject<{
1362
1401
  }[] | undefined;
1363
1402
  }>;
1364
1403
  export type ControlQuotaResponse = z.infer<typeof ControlQuotaResponse>;
1365
- /** Literal family matching belongs to the quota contract, shared by display
1366
- * and admission. Prefixes must be declared by the vendor-specific producer;
1367
- * neither a missing model nor an unknown family proves a match. */
1368
- export declare function quotaModelPrefixMatches(prefixes: readonly string[] | undefined, model: string): boolean;
1369
- /** Derive one snapshot's typed model-aware availability — a pure projection
1370
- * over the snapshot's own constraints, never an aggregate across subjects.
1371
- * Blocking semantics mirror the router's `BudgetLedger`: a window
1372
- * blocks while its cooldown_until is in the future, or while used_ratio >= 1
1373
- * with a still-future resets_at (a spent ratio whose reset elapsed or is
1374
- * unknown is stale data, not a live block). Without `model`, only windows that
1375
- * apply to EVERY model can block; model-scoped spent windows are disclosed in
1376
- * model_scoped_exhaustions and leave state available — including a spent
1377
- * scoped window whose reset is UNKNOWN (disclosed with resets_at null, never
1378
- * blocking); one whose reset ELAPSED is provably released and not disclosed.
1379
- * With `model`, scoped windows matching it block too.
1380
- * Full-coverage inference ("every model is
1381
- * covered by some spent scoped window") is deliberately not attempted: the
1382
- * model universe is unknowable here, so that case stays available + disclosed. */
1383
- export declare function quotaSnapshotAvailability(snapshot: Pick<QuotaSnapshot, "constraints">, opts?: {
1384
- now?: Date;
1385
- model?: string | null;
1386
- }): QuotaAvailability;
1387
- /** Decorate a quota response with per-snapshot availability projections —
1388
- * applied at the /v2/quota and atomic Accounts response boundaries so
1389
- * journals and raw projection signatures stay byte-identical. */
1390
- export declare function withQuotaAvailability(response: ControlQuotaResponse, opts?: {
1391
- now?: Date;
1392
- model?: string | null;
1393
- }): ControlQuotaResponse;
1404
+ export { quotaModelPrefixMatches, quotaSnapshotAvailability, withQuotaAvailability, } from "./quota-availability.js";
1394
1405
  //# sourceMappingURL=quota.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../src/quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAGjE,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;IAC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