@claudexor/schema 3.23.2 → 3.25.1

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 (51) hide show
  1. package/dist/account-resources.d.ts +5842 -0
  2. package/dist/account-resources.d.ts.map +1 -0
  3. package/dist/account-resources.js +161 -0
  4. package/dist/account-resources.js.map +1 -0
  5. package/dist/account-target.d.ts +39 -0
  6. package/dist/account-target.d.ts.map +1 -0
  7. package/dist/account-target.js +16 -0
  8. package/dist/account-target.js.map +1 -0
  9. package/dist/credential-profile-snapshot.d.ts +5987 -126
  10. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  11. package/dist/credential-profile-snapshot.js +9 -1
  12. package/dist/credential-profile-snapshot.js.map +1 -1
  13. package/dist/harness-maintenance.d.ts +938 -0
  14. package/dist/harness-maintenance.d.ts.map +1 -0
  15. package/dist/harness-maintenance.js +150 -0
  16. package/dist/harness-maintenance.js.map +1 -0
  17. package/dist/harness-quota.d.ts +81 -0
  18. package/dist/harness-quota.d.ts.map +1 -0
  19. package/dist/harness-quota.js +20 -0
  20. package/dist/harness-quota.js.map +1 -0
  21. package/dist/harness.d.ts +116 -99
  22. package/dist/harness.d.ts.map +1 -1
  23. package/dist/harness.js +2 -12
  24. package/dist/harness.js.map +1 -1
  25. package/dist/index.d.ts +2 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +2 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/model-operation.d.ts +116 -16
  30. package/dist/model-operation.d.ts.map +1 -1
  31. package/dist/model-operation.js +13 -5
  32. package/dist/model-operation.js.map +1 -1
  33. package/dist/quota.d.ts +1 -8
  34. package/dist/quota.d.ts.map +1 -1
  35. package/dist/quota.js +1 -10
  36. package/dist/quota.js.map +1 -1
  37. package/generated/ControlAccountResetRequest.schema.json +42 -0
  38. package/generated/ControlAccountResetResponse.schema.json +1024 -0
  39. package/generated/ControlAccountResourcesResponse.schema.json +912 -0
  40. package/generated/ControlCredentialProfilesQueryResponse.schema.json +600 -0
  41. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +2324 -0
  42. package/generated/ControlHarnessMaintenanceCreateRequest.schema.json +84 -0
  43. package/generated/ControlHarnessMaintenanceInventory.schema.json +345 -0
  44. package/generated/ControlHarnessMaintenanceOperation.schema.json +298 -0
  45. package/generated/ControlModelAccountCatalogResponse.schema.json +22 -1
  46. package/generated/ControlModelCatalogQueryResponse.schema.json +22 -1
  47. package/generated/ControlModelCatalogResponse.schema.json +22 -1
  48. package/generated/ControlQuotaQueryResponse.schema.json +939 -0
  49. package/generated/ControlQuotaRefreshRequest.schema.json +18 -0
  50. package/generated/HarnessEvent.schema.json +23 -0
  51. package/package.json +2 -2
@@ -0,0 +1,912 @@
1
+ {
2
+ "$ref": "#/definitions/ControlAccountResourcesResponse",
3
+ "definitions": {
4
+ "ControlAccountResourcesResponse": {
5
+ "type": "object",
6
+ "properties": {
7
+ "snapshots": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "subject": {
13
+ "type": "object",
14
+ "properties": {
15
+ "harness": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "description": "Non-empty identifier string."
19
+ },
20
+ "credential_route": {
21
+ "type": "string",
22
+ "enum": [
23
+ "vendor_native",
24
+ "managed_api_key",
25
+ "local"
26
+ ]
27
+ },
28
+ "plan_label": {
29
+ "type": [
30
+ "string",
31
+ "null"
32
+ ],
33
+ "default": null
34
+ },
35
+ "subject_id": {
36
+ "type": [
37
+ "string",
38
+ "null"
39
+ ],
40
+ "default": null
41
+ }
42
+ },
43
+ "required": [
44
+ "harness",
45
+ "credential_route"
46
+ ],
47
+ "additionalProperties": false,
48
+ "description": "Quota owner and credential route; subject_id is the credential-profile id (null = the engine-default credential)."
49
+ },
50
+ "constraints": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "object",
54
+ "properties": {
55
+ "id": {
56
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
57
+ },
58
+ "label": {
59
+ "type": "string",
60
+ "minLength": 1
61
+ },
62
+ "applies_to_models": {
63
+ "anyOf": [
64
+ {
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
68
+ }
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ]
74
+ },
75
+ "applies_to_model_prefixes": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
79
+ }
80
+ },
81
+ "applies_to_unspecified_model": {
82
+ "type": "boolean"
83
+ },
84
+ "used_ratio": {
85
+ "anyOf": [
86
+ {
87
+ "type": "number",
88
+ "minimum": 0,
89
+ "maximum": 1
90
+ },
91
+ {
92
+ "type": "null"
93
+ }
94
+ ]
95
+ },
96
+ "window_seconds": {
97
+ "anyOf": [
98
+ {
99
+ "type": "number",
100
+ "exclusiveMinimum": 0
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ },
107
+ "resets_at": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string",
111
+ "format": "date-time"
112
+ },
113
+ {
114
+ "type": "null"
115
+ }
116
+ ]
117
+ },
118
+ "cooldown_until": {
119
+ "anyOf": [
120
+ {
121
+ "type": "string",
122
+ "format": "date-time"
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ],
128
+ "default": null
129
+ }
130
+ },
131
+ "required": [
132
+ "id",
133
+ "label",
134
+ "used_ratio",
135
+ "window_seconds",
136
+ "resets_at"
137
+ ],
138
+ "additionalProperties": false,
139
+ "description": "One independent vendor quota window; without model ids or declared prefixes it applies to every model, and null usage stays unknown."
140
+ }
141
+ },
142
+ "source": {
143
+ "type": "string",
144
+ "enum": [
145
+ "codex_app_server",
146
+ "codex_rollout",
147
+ "claude_statusline",
148
+ "claude_api_retry",
149
+ "claude_oauth_usage",
150
+ "agy_command_usage",
151
+ "cursor_rate_limit",
152
+ "claude_rate_limit_event",
153
+ "codex_app_server_event"
154
+ ],
155
+ "description": "Machine-readable source of quota evidence, classified by schema-owned traits."
156
+ },
157
+ "observed_at": {
158
+ "type": "string",
159
+ "format": "date-time"
160
+ },
161
+ "freshness": {
162
+ "type": "string",
163
+ "enum": [
164
+ "fresh",
165
+ "stale",
166
+ "unknown"
167
+ ],
168
+ "description": "Freshness of a quota snapshot at read time."
169
+ },
170
+ "snapshot_id": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "description": "Server-derived stable snapshot identity for consumers; absent from raw journal evidence and optional for legacy responses."
174
+ },
175
+ "availability": {
176
+ "type": "object",
177
+ "properties": {
178
+ "state": {
179
+ "type": "string",
180
+ "enum": [
181
+ "available",
182
+ "exhausted",
183
+ "cooldown"
184
+ ],
185
+ "description": "Spendability verdict for one snapshot: exhausted = a spent window blocks every applicable request; cooldown = an applicable window is only rate-limit-cooling; available = nothing applicable blocks."
186
+ },
187
+ "blocking_constraints": {
188
+ "type": "array",
189
+ "items": {
190
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
191
+ },
192
+ "description": "Ids of the constraints that produced a non-available state."
193
+ },
194
+ "resets_at": {
195
+ "anyOf": [
196
+ {
197
+ "type": "string",
198
+ "format": "date-time"
199
+ },
200
+ {
201
+ "type": "null"
202
+ }
203
+ ],
204
+ "description": "Earliest known instant at which any blocking constraint may release; null when nothing blocks or no reset is known."
205
+ },
206
+ "model_scoped_exhaustions": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "object",
210
+ "properties": {
211
+ "constraint_id": {
212
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
213
+ },
214
+ "applies_to_models": {
215
+ "type": "array",
216
+ "items": {
217
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
218
+ }
219
+ },
220
+ "applies_to_model_prefixes": {
221
+ "type": "array",
222
+ "items": {
223
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
224
+ }
225
+ },
226
+ "resets_at": {
227
+ "anyOf": [
228
+ {
229
+ "type": "string",
230
+ "format": "date-time"
231
+ },
232
+ {
233
+ "type": "null"
234
+ }
235
+ ]
236
+ }
237
+ },
238
+ "required": [
239
+ "constraint_id",
240
+ "applies_to_models",
241
+ "resets_at"
242
+ ],
243
+ "additionalProperties": false,
244
+ "description": "A spent or cooling window that applies only to the named models or declared model-id prefixes. Without a requested model only a window that DECLARES it governs the unspecified-model route can exhaust the subject; when the request names a model it covers, it blocks that request too (and is then also listed in blocking_constraints). resets_at is its earliest known release instant (null = unknown)."
245
+ },
246
+ "description": "Every spent/cooling model-scoped window, listed regardless of state so consumers see partial exhaustion without re-deriving constraint scope."
247
+ }
248
+ },
249
+ "required": [
250
+ "state",
251
+ "blocking_constraints",
252
+ "resets_at",
253
+ "model_scoped_exhaustions"
254
+ ],
255
+ "additionalProperties": false,
256
+ "description": "Typed server-owned availability projection derived at the /v2/quota and atomic Accounts response boundaries; absent from raw journal/projection storage."
257
+ }
258
+ },
259
+ "required": [
260
+ "subject",
261
+ "constraints",
262
+ "source",
263
+ "observed_at",
264
+ "freshness"
265
+ ],
266
+ "additionalProperties": false,
267
+ "description": "One vendor-owned quota snapshot plus its derived availability projection."
268
+ }
269
+ },
270
+ "absences": {
271
+ "type": "array",
272
+ "items": {
273
+ "type": "object",
274
+ "properties": {
275
+ "subject": {
276
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject"
277
+ },
278
+ "reason": {
279
+ "type": "string",
280
+ "enum": [
281
+ "not_logged_in",
282
+ "transport_unavailable",
283
+ "platform_unsupported",
284
+ "refresh_failed",
285
+ "no_source",
286
+ "auth_revoked",
287
+ "rate_limited",
288
+ "probe_skipped_rate_limited",
289
+ "poll_paced",
290
+ "credential_profile_ambiguous"
291
+ ],
292
+ "description": "Why a registered subject has no fresh quota snapshot, in the source's own vocabulary."
293
+ },
294
+ "detail": {
295
+ "type": [
296
+ "string",
297
+ "null"
298
+ ],
299
+ "default": null
300
+ },
301
+ "observed_at": {
302
+ "type": "string",
303
+ "format": "date-time"
304
+ },
305
+ "retry_after_ms": {
306
+ "type": "integer",
307
+ "minimum": 0
308
+ }
309
+ },
310
+ "required": [
311
+ "subject",
312
+ "reason",
313
+ "observed_at"
314
+ ],
315
+ "additionalProperties": false,
316
+ "description": "A registered subject's typed quota observation gap; may accompany stale last-known data."
317
+ },
318
+ "default": [],
319
+ "description": "Every registered subject reports a snapshot or a typed absence; a refresh gap may coexist with a stale last-known snapshot."
320
+ },
321
+ "refreshed_at": {
322
+ "anyOf": [
323
+ {
324
+ "type": "string",
325
+ "format": "date-time"
326
+ },
327
+ {
328
+ "type": "null"
329
+ }
330
+ ]
331
+ },
332
+ "refresh_skipped": {
333
+ "type": "array",
334
+ "items": {
335
+ "type": "object",
336
+ "properties": {
337
+ "vendor": {
338
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject/properties/harness"
339
+ },
340
+ "subject": {
341
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/snapshots/items/properties/subject",
342
+ "description": "The exact paused subject; omitted only for an existing vendor-wide floor."
343
+ },
344
+ "not_before": {
345
+ "type": "string",
346
+ "format": "date-time"
347
+ }
348
+ },
349
+ "required": [
350
+ "vendor",
351
+ "not_before"
352
+ ],
353
+ "additionalProperties": false,
354
+ "description": "One subject a refresh cycle did not re-fetch because its poll rate-limit cooldown is active, or a retained legacy vendor floor when subject is absent; its snapshots/absences in the same response are last-known registry data."
355
+ }
356
+ },
357
+ "resources": {
358
+ "type": "array",
359
+ "items": {
360
+ "type": "object",
361
+ "properties": {
362
+ "target": {
363
+ "type": "object",
364
+ "properties": {
365
+ "harness": {
366
+ "type": "string",
367
+ "minLength": 1
368
+ },
369
+ "profile_id": {
370
+ "type": "string",
371
+ "minLength": 1
372
+ }
373
+ },
374
+ "required": [
375
+ "harness",
376
+ "profile_id"
377
+ ],
378
+ "additionalProperties": false
379
+ },
380
+ "balances": {
381
+ "type": "object",
382
+ "properties": {
383
+ "value": {
384
+ "anyOf": [
385
+ {
386
+ "type": "array",
387
+ "items": {
388
+ "type": "object",
389
+ "properties": {
390
+ "id": {
391
+ "type": "string"
392
+ },
393
+ "label": {
394
+ "type": "string"
395
+ },
396
+ "amount": {
397
+ "type": [
398
+ "string",
399
+ "null"
400
+ ]
401
+ },
402
+ "unit": {
403
+ "type": "string"
404
+ },
405
+ "currency": {
406
+ "type": [
407
+ "string",
408
+ "null"
409
+ ]
410
+ },
411
+ "decimal_places": {
412
+ "anyOf": [
413
+ {
414
+ "type": "integer",
415
+ "minimum": 0
416
+ },
417
+ {
418
+ "type": "null"
419
+ }
420
+ ]
421
+ },
422
+ "has_balance": {
423
+ "type": [
424
+ "boolean",
425
+ "null"
426
+ ]
427
+ },
428
+ "unlimited": {
429
+ "type": [
430
+ "boolean",
431
+ "null"
432
+ ]
433
+ }
434
+ },
435
+ "required": [
436
+ "id",
437
+ "label",
438
+ "amount",
439
+ "unit",
440
+ "currency",
441
+ "decimal_places",
442
+ "has_balance",
443
+ "unlimited"
444
+ ],
445
+ "additionalProperties": false
446
+ }
447
+ },
448
+ {
449
+ "type": "null"
450
+ }
451
+ ]
452
+ },
453
+ "source": {
454
+ "type": [
455
+ "string",
456
+ "null"
457
+ ]
458
+ },
459
+ "observed_at": {
460
+ "anyOf": [
461
+ {
462
+ "type": "string",
463
+ "format": "date-time"
464
+ },
465
+ {
466
+ "type": "null"
467
+ }
468
+ ]
469
+ },
470
+ "freshness": {
471
+ "type": "string",
472
+ "enum": [
473
+ "fresh",
474
+ "stale",
475
+ "unknown"
476
+ ]
477
+ },
478
+ "last_attempt_at": {
479
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
480
+ },
481
+ "last_error": {
482
+ "type": [
483
+ "string",
484
+ "null"
485
+ ]
486
+ }
487
+ },
488
+ "required": [
489
+ "value",
490
+ "source",
491
+ "observed_at",
492
+ "freshness",
493
+ "last_attempt_at",
494
+ "last_error"
495
+ ],
496
+ "additionalProperties": false
497
+ },
498
+ "spending": {
499
+ "type": "object",
500
+ "properties": {
501
+ "value": {
502
+ "anyOf": [
503
+ {
504
+ "type": "array",
505
+ "items": {
506
+ "type": "object",
507
+ "properties": {
508
+ "id": {
509
+ "type": "string"
510
+ },
511
+ "label": {
512
+ "type": "string"
513
+ },
514
+ "enabled": {
515
+ "type": [
516
+ "boolean",
517
+ "null"
518
+ ]
519
+ },
520
+ "used": {
521
+ "type": [
522
+ "string",
523
+ "null"
524
+ ]
525
+ },
526
+ "limit": {
527
+ "type": [
528
+ "string",
529
+ "null"
530
+ ]
531
+ },
532
+ "unit": {
533
+ "type": "string"
534
+ },
535
+ "currency": {
536
+ "type": [
537
+ "string",
538
+ "null"
539
+ ]
540
+ },
541
+ "decimal_places": {
542
+ "anyOf": [
543
+ {
544
+ "type": "integer",
545
+ "minimum": 0
546
+ },
547
+ {
548
+ "type": "null"
549
+ }
550
+ ]
551
+ },
552
+ "resets_at": {
553
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
554
+ },
555
+ "reason": {
556
+ "type": [
557
+ "string",
558
+ "null"
559
+ ]
560
+ }
561
+ },
562
+ "required": [
563
+ "id",
564
+ "label",
565
+ "enabled",
566
+ "used",
567
+ "limit",
568
+ "unit",
569
+ "currency",
570
+ "decimal_places",
571
+ "resets_at",
572
+ "reason"
573
+ ],
574
+ "additionalProperties": false
575
+ }
576
+ },
577
+ {
578
+ "type": "null"
579
+ }
580
+ ]
581
+ },
582
+ "source": {
583
+ "type": [
584
+ "string",
585
+ "null"
586
+ ]
587
+ },
588
+ "observed_at": {
589
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
590
+ },
591
+ "freshness": {
592
+ "type": "string",
593
+ "enum": [
594
+ "fresh",
595
+ "stale",
596
+ "unknown"
597
+ ]
598
+ },
599
+ "last_attempt_at": {
600
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
601
+ },
602
+ "last_error": {
603
+ "type": [
604
+ "string",
605
+ "null"
606
+ ]
607
+ }
608
+ },
609
+ "required": [
610
+ "value",
611
+ "source",
612
+ "observed_at",
613
+ "freshness",
614
+ "last_attempt_at",
615
+ "last_error"
616
+ ],
617
+ "additionalProperties": false
618
+ },
619
+ "resets": {
620
+ "type": "object",
621
+ "properties": {
622
+ "value": {
623
+ "anyOf": [
624
+ {
625
+ "type": "array",
626
+ "items": {
627
+ "type": "object",
628
+ "properties": {
629
+ "id": {
630
+ "type": "string"
631
+ },
632
+ "kind": {
633
+ "type": "string",
634
+ "enum": [
635
+ "granted_reset",
636
+ "session_refill"
637
+ ]
638
+ },
639
+ "label": {
640
+ "type": "string"
641
+ },
642
+ "description": {
643
+ "type": [
644
+ "string",
645
+ "null"
646
+ ]
647
+ },
648
+ "available_count": {
649
+ "anyOf": [
650
+ {
651
+ "type": "integer",
652
+ "minimum": 0
653
+ },
654
+ {
655
+ "type": "null"
656
+ }
657
+ ]
658
+ },
659
+ "eligible": {
660
+ "type": [
661
+ "boolean",
662
+ "null"
663
+ ]
664
+ },
665
+ "usable_now": {
666
+ "type": [
667
+ "boolean",
668
+ "null"
669
+ ]
670
+ },
671
+ "reason": {
672
+ "type": [
673
+ "string",
674
+ "null"
675
+ ]
676
+ },
677
+ "resets_at": {
678
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
679
+ },
680
+ "weekly_limit_applies": {
681
+ "type": "boolean"
682
+ },
683
+ "grants": {
684
+ "anyOf": [
685
+ {
686
+ "type": "array",
687
+ "items": {
688
+ "type": "object",
689
+ "properties": {
690
+ "id": {
691
+ "type": "string"
692
+ },
693
+ "label": {
694
+ "type": "string"
695
+ },
696
+ "description": {
697
+ "type": [
698
+ "string",
699
+ "null"
700
+ ]
701
+ },
702
+ "available_count": {
703
+ "anyOf": [
704
+ {
705
+ "type": "integer",
706
+ "minimum": 0
707
+ },
708
+ {
709
+ "type": "null"
710
+ }
711
+ ]
712
+ },
713
+ "total_count": {
714
+ "anyOf": [
715
+ {
716
+ "type": "integer",
717
+ "minimum": 0
718
+ },
719
+ {
720
+ "type": "null"
721
+ }
722
+ ]
723
+ },
724
+ "usable_now": {
725
+ "type": [
726
+ "boolean",
727
+ "null"
728
+ ]
729
+ },
730
+ "starts_at": {
731
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
732
+ },
733
+ "expires_at": {
734
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
735
+ },
736
+ "clears": {
737
+ "type": "array",
738
+ "items": {
739
+ "type": "string"
740
+ }
741
+ }
742
+ },
743
+ "required": [
744
+ "id",
745
+ "label",
746
+ "description",
747
+ "available_count",
748
+ "total_count",
749
+ "usable_now",
750
+ "starts_at",
751
+ "expires_at",
752
+ "clears"
753
+ ],
754
+ "additionalProperties": false
755
+ }
756
+ },
757
+ {
758
+ "type": "null"
759
+ }
760
+ ]
761
+ }
762
+ },
763
+ "required": [
764
+ "id",
765
+ "kind",
766
+ "label",
767
+ "description",
768
+ "available_count",
769
+ "eligible",
770
+ "usable_now",
771
+ "reason",
772
+ "resets_at",
773
+ "weekly_limit_applies",
774
+ "grants"
775
+ ],
776
+ "additionalProperties": false
777
+ }
778
+ },
779
+ {
780
+ "type": "null"
781
+ }
782
+ ]
783
+ },
784
+ "source": {
785
+ "type": [
786
+ "string",
787
+ "null"
788
+ ]
789
+ },
790
+ "observed_at": {
791
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
792
+ },
793
+ "freshness": {
794
+ "type": "string",
795
+ "enum": [
796
+ "fresh",
797
+ "stale",
798
+ "unknown"
799
+ ]
800
+ },
801
+ "last_attempt_at": {
802
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
803
+ },
804
+ "last_error": {
805
+ "type": [
806
+ "string",
807
+ "null"
808
+ ]
809
+ }
810
+ },
811
+ "required": [
812
+ "value",
813
+ "source",
814
+ "observed_at",
815
+ "freshness",
816
+ "last_attempt_at",
817
+ "last_error"
818
+ ],
819
+ "additionalProperties": false
820
+ },
821
+ "diagnostics": {
822
+ "type": "object",
823
+ "properties": {
824
+ "value": {
825
+ "anyOf": [
826
+ {
827
+ "type": "array",
828
+ "items": {
829
+ "type": "object",
830
+ "properties": {
831
+ "code": {
832
+ "type": "string"
833
+ },
834
+ "detail": {
835
+ "type": [
836
+ "string",
837
+ "null"
838
+ ]
839
+ }
840
+ },
841
+ "required": [
842
+ "code",
843
+ "detail"
844
+ ],
845
+ "additionalProperties": false
846
+ }
847
+ },
848
+ {
849
+ "type": "null"
850
+ }
851
+ ]
852
+ },
853
+ "source": {
854
+ "type": [
855
+ "string",
856
+ "null"
857
+ ]
858
+ },
859
+ "observed_at": {
860
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
861
+ },
862
+ "freshness": {
863
+ "type": "string",
864
+ "enum": [
865
+ "fresh",
866
+ "stale",
867
+ "unknown"
868
+ ]
869
+ },
870
+ "last_attempt_at": {
871
+ "$ref": "#/definitions/ControlAccountResourcesResponse/properties/resources/items/properties/balances/properties/observed_at"
872
+ },
873
+ "last_error": {
874
+ "type": [
875
+ "string",
876
+ "null"
877
+ ]
878
+ }
879
+ },
880
+ "required": [
881
+ "value",
882
+ "source",
883
+ "observed_at",
884
+ "freshness",
885
+ "last_attempt_at",
886
+ "last_error"
887
+ ],
888
+ "additionalProperties": false
889
+ }
890
+ },
891
+ "required": [
892
+ "target",
893
+ "balances",
894
+ "spending",
895
+ "resets",
896
+ "diagnostics"
897
+ ],
898
+ "additionalProperties": false
899
+ }
900
+ }
901
+ },
902
+ "required": [
903
+ "snapshots",
904
+ "refreshed_at",
905
+ "resources"
906
+ ],
907
+ "additionalProperties": false,
908
+ "description": "Current quota snapshots without a fabricated aggregate."
909
+ }
910
+ },
911
+ "$schema": "http://json-schema.org/draft-07/schema#"
912
+ }