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