@claudexor/schema 3.25.1 → 4.0.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 (52) hide show
  1. package/dist/account-resources.d.ts +372 -0
  2. package/dist/account-resources.d.ts.map +1 -1
  3. package/dist/account-resources.js +4 -0
  4. package/dist/account-resources.js.map +1 -1
  5. package/dist/config.d.ts +74 -12
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +2 -1
  8. package/dist/config.js.map +1 -1
  9. package/dist/control.d.ts +226 -18
  10. package/dist/control.d.ts.map +1 -1
  11. package/dist/daemon-status.d.ts +671 -5
  12. package/dist/daemon-status.d.ts.map +1 -1
  13. package/dist/daemon-status.js +31 -1
  14. package/dist/daemon-status.js.map +1 -1
  15. package/dist/host-binding.d.ts +23 -0
  16. package/dist/host-binding.d.ts.map +1 -0
  17. package/dist/host-binding.js +14 -0
  18. package/dist/host-binding.js.map +1 -0
  19. package/dist/index.d.ts +3 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +3 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/model-operation.d.ts +93 -0
  24. package/dist/model-operation.d.ts.map +1 -1
  25. package/dist/model-operation.js +4 -0
  26. package/dist/model-operation.js.map +1 -1
  27. package/dist/project.d.ts +48 -0
  28. package/dist/project.d.ts.map +1 -1
  29. package/dist/project.js +8 -0
  30. package/dist/project.js.map +1 -1
  31. package/dist/quota-read.d.ts +554 -0
  32. package/dist/quota-read.d.ts.map +1 -0
  33. package/dist/quota-read.js +18 -0
  34. package/dist/quota-read.js.map +1 -0
  35. package/dist/runtime-concurrency.d.ts +359 -23
  36. package/dist/runtime-concurrency.d.ts.map +1 -1
  37. package/dist/runtime-concurrency.js +61 -17
  38. package/dist/runtime-concurrency.js.map +1 -1
  39. package/dist/store-status.d.ts +439 -0
  40. package/dist/store-status.d.ts.map +1 -0
  41. package/dist/store-status.js +58 -0
  42. package/dist/store-status.js.map +1 -0
  43. package/generated/ControlDaemonStatus.schema.json +535 -7
  44. package/generated/ControlModelOperationDetail.schema.json +103 -0
  45. package/generated/ControlProjectRegisterResponse.schema.json +82 -0
  46. package/generated/ControlQuotaFreshnessResponse.schema.json +377 -0
  47. package/generated/ControlQuotaQueryResponse.schema.json +109 -0
  48. package/generated/ControlQuotaReadRequest.schema.json +19 -0
  49. package/generated/ControlSettingsSnapshot.schema.json +59 -6
  50. package/generated/ExternalHostBinding.schema.json +43 -0
  51. package/generated/GlobalConfig.schema.json +26 -8
  52. package/package.json +3 -3
@@ -0,0 +1,82 @@
1
+ {
2
+ "$ref": "#/definitions/ControlProjectRegisterResponse",
3
+ "definitions": {
4
+ "ControlProjectRegisterResponse": {
5
+ "type": "object",
6
+ "properties": {
7
+ "schemaVersion": {
8
+ "type": "number",
9
+ "const": 2,
10
+ "description": "Schema version of the artifact; bumped on breaking ABI changes."
11
+ },
12
+ "id": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Non-empty identifier string."
16
+ },
17
+ "root": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "createdAt": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "description": "ISO-8601 timestamp string."
25
+ },
26
+ "updatedAt": {
27
+ "$ref": "#/definitions/ControlProjectRegisterResponse/properties/createdAt"
28
+ },
29
+ "nesting": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "properties": {
34
+ "relation": {
35
+ "type": "string",
36
+ "enum": [
37
+ "inside",
38
+ "contains"
39
+ ],
40
+ "description": "How this project overlaps the other."
41
+ },
42
+ "root": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "description": "The other registered project's root."
46
+ },
47
+ "projectId": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "description": "The other registered project's id."
51
+ }
52
+ },
53
+ "required": [
54
+ "relation",
55
+ "root",
56
+ "projectId"
57
+ ],
58
+ "additionalProperties": false,
59
+ "description": "A disclosed (never refused) nesting relation with another registered project."
60
+ },
61
+ "default": [],
62
+ "description": "Disclosed nesting relations with other registered projects (F3) — informational, never a refusal."
63
+ },
64
+ "created": {
65
+ "type": "boolean",
66
+ "description": "True when this registration created the project; false when the root was already registered. An Idempotency-Key replay repeats its original answer."
67
+ }
68
+ },
69
+ "required": [
70
+ "schemaVersion",
71
+ "id",
72
+ "root",
73
+ "createdAt",
74
+ "updatedAt",
75
+ "created"
76
+ ],
77
+ "additionalProperties": false,
78
+ "description": "A registered project and whether this registration created it."
79
+ }
80
+ },
81
+ "$schema": "http://json-schema.org/draft-07/schema#"
82
+ }
@@ -0,0 +1,377 @@
1
+ {
2
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse",
3
+ "definitions": {
4
+ "ControlQuotaFreshnessResponse": {
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/ControlQuotaFreshnessResponse/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/ControlQuotaFreshnessResponse/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/ControlQuotaFreshnessResponse/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
+ "freshness": {
131
+ "type": "string",
132
+ "enum": [
133
+ "fresh",
134
+ "stale",
135
+ "unknown"
136
+ ],
137
+ "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."
138
+ }
139
+ },
140
+ "required": [
141
+ "id",
142
+ "label",
143
+ "used_ratio",
144
+ "window_seconds",
145
+ "resets_at",
146
+ "freshness"
147
+ ],
148
+ "additionalProperties": false,
149
+ "description": "One independent vendor quota window; without model ids or declared prefixes it applies to every model, and null usage stays unknown."
150
+ }
151
+ },
152
+ "source": {
153
+ "type": "string",
154
+ "enum": [
155
+ "codex_app_server",
156
+ "codex_rollout",
157
+ "claude_statusline",
158
+ "claude_api_retry",
159
+ "claude_oauth_usage",
160
+ "agy_command_usage",
161
+ "cursor_rate_limit",
162
+ "claude_rate_limit_event",
163
+ "codex_app_server_event"
164
+ ],
165
+ "description": "Machine-readable source of quota evidence, classified by schema-owned traits."
166
+ },
167
+ "observed_at": {
168
+ "type": "string",
169
+ "format": "date-time"
170
+ },
171
+ "freshness": {
172
+ "type": "string",
173
+ "enum": [
174
+ "fresh",
175
+ "stale",
176
+ "unknown"
177
+ ],
178
+ "description": "Freshness of a quota snapshot at read time."
179
+ },
180
+ "snapshot_id": {
181
+ "type": "string",
182
+ "minLength": 1,
183
+ "description": "Server-derived stable snapshot identity for consumers; absent from raw journal evidence and optional for legacy responses."
184
+ },
185
+ "availability": {
186
+ "type": "object",
187
+ "properties": {
188
+ "state": {
189
+ "type": "string",
190
+ "enum": [
191
+ "available",
192
+ "exhausted",
193
+ "cooldown"
194
+ ],
195
+ "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."
196
+ },
197
+ "blocking_constraints": {
198
+ "type": "array",
199
+ "items": {
200
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse/properties/snapshots/items/properties/subject/properties/harness"
201
+ },
202
+ "description": "Ids of the constraints that produced a non-available state."
203
+ },
204
+ "resets_at": {
205
+ "anyOf": [
206
+ {
207
+ "type": "string",
208
+ "format": "date-time"
209
+ },
210
+ {
211
+ "type": "null"
212
+ }
213
+ ],
214
+ "description": "Earliest known instant at which any blocking constraint may release; null when nothing blocks or no reset is known."
215
+ },
216
+ "model_scoped_exhaustions": {
217
+ "type": "array",
218
+ "items": {
219
+ "type": "object",
220
+ "properties": {
221
+ "constraint_id": {
222
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse/properties/snapshots/items/properties/subject/properties/harness"
223
+ },
224
+ "applies_to_models": {
225
+ "type": "array",
226
+ "items": {
227
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse/properties/snapshots/items/properties/subject/properties/harness"
228
+ }
229
+ },
230
+ "applies_to_model_prefixes": {
231
+ "type": "array",
232
+ "items": {
233
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse/properties/snapshots/items/properties/subject/properties/harness"
234
+ }
235
+ },
236
+ "resets_at": {
237
+ "anyOf": [
238
+ {
239
+ "type": "string",
240
+ "format": "date-time"
241
+ },
242
+ {
243
+ "type": "null"
244
+ }
245
+ ]
246
+ }
247
+ },
248
+ "required": [
249
+ "constraint_id",
250
+ "applies_to_models",
251
+ "resets_at"
252
+ ],
253
+ "additionalProperties": false,
254
+ "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)."
255
+ },
256
+ "description": "Every spent/cooling model-scoped window, listed regardless of state so consumers see partial exhaustion without re-deriving constraint scope."
257
+ }
258
+ },
259
+ "required": [
260
+ "state",
261
+ "blocking_constraints",
262
+ "resets_at",
263
+ "model_scoped_exhaustions"
264
+ ],
265
+ "additionalProperties": false,
266
+ "description": "Typed server-owned availability projection derived at the /v2/quota and atomic Accounts response boundaries; absent from raw journal/projection storage."
267
+ }
268
+ },
269
+ "required": [
270
+ "subject",
271
+ "constraints",
272
+ "source",
273
+ "observed_at",
274
+ "freshness"
275
+ ],
276
+ "additionalProperties": false,
277
+ "description": "One vendor-owned quota snapshot plus its derived availability projection."
278
+ }
279
+ },
280
+ "absences": {
281
+ "type": "array",
282
+ "items": {
283
+ "type": "object",
284
+ "properties": {
285
+ "subject": {
286
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse/properties/snapshots/items/properties/subject"
287
+ },
288
+ "reason": {
289
+ "type": "string",
290
+ "enum": [
291
+ "not_logged_in",
292
+ "transport_unavailable",
293
+ "platform_unsupported",
294
+ "refresh_failed",
295
+ "no_source",
296
+ "auth_revoked",
297
+ "rate_limited",
298
+ "probe_skipped_rate_limited",
299
+ "poll_paced",
300
+ "credential_profile_ambiguous"
301
+ ],
302
+ "description": "Why a registered subject has no fresh quota snapshot, in the source's own vocabulary."
303
+ },
304
+ "detail": {
305
+ "type": [
306
+ "string",
307
+ "null"
308
+ ],
309
+ "default": null
310
+ },
311
+ "observed_at": {
312
+ "type": "string",
313
+ "format": "date-time"
314
+ },
315
+ "retry_after_ms": {
316
+ "type": "integer",
317
+ "minimum": 0
318
+ }
319
+ },
320
+ "required": [
321
+ "subject",
322
+ "reason",
323
+ "observed_at"
324
+ ],
325
+ "additionalProperties": false,
326
+ "description": "A registered subject's typed quota observation gap; may accompany stale last-known data."
327
+ },
328
+ "default": [],
329
+ "description": "Every registered subject reports a snapshot or a typed absence; a refresh gap may coexist with a stale last-known snapshot."
330
+ },
331
+ "refreshed_at": {
332
+ "anyOf": [
333
+ {
334
+ "type": "string",
335
+ "format": "date-time"
336
+ },
337
+ {
338
+ "type": "null"
339
+ }
340
+ ]
341
+ },
342
+ "refresh_skipped": {
343
+ "type": "array",
344
+ "items": {
345
+ "type": "object",
346
+ "properties": {
347
+ "vendor": {
348
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse/properties/snapshots/items/properties/subject/properties/harness"
349
+ },
350
+ "subject": {
351
+ "$ref": "#/definitions/ControlQuotaFreshnessResponse/properties/snapshots/items/properties/subject",
352
+ "description": "The exact paused subject; omitted only for an existing vendor-wide floor."
353
+ },
354
+ "not_before": {
355
+ "type": "string",
356
+ "format": "date-time"
357
+ }
358
+ },
359
+ "required": [
360
+ "vendor",
361
+ "not_before"
362
+ ],
363
+ "additionalProperties": false,
364
+ "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."
365
+ }
366
+ }
367
+ },
368
+ "required": [
369
+ "snapshots",
370
+ "refreshed_at"
371
+ ],
372
+ "additionalProperties": false,
373
+ "description": "Opt-in GET /v2/quota?view=constraint_freshness response. Adds constraint freshness while preserving aggregate snapshot freshness and all observed values. No refresh or durable write."
374
+ }
375
+ },
376
+ "$schema": "http://json-schema.org/draft-07/schema#"
377
+ }
@@ -931,6 +931,115 @@
931
931
  ],
932
932
  "additionalProperties": false,
933
933
  "description": "Current quota snapshots without a fabricated aggregate."
934
+ },
935
+ {
936
+ "type": "object",
937
+ "properties": {
938
+ "snapshots": {
939
+ "type": "array",
940
+ "items": {
941
+ "type": "object",
942
+ "properties": {
943
+ "subject": {
944
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/subject"
945
+ },
946
+ "constraints": {
947
+ "type": "array",
948
+ "items": {
949
+ "type": "object",
950
+ "properties": {
951
+ "id": {
952
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/subject/properties/harness"
953
+ },
954
+ "label": {
955
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/label"
956
+ },
957
+ "applies_to_models": {
958
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/applies_to_models"
959
+ },
960
+ "applies_to_model_prefixes": {
961
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/applies_to_model_prefixes"
962
+ },
963
+ "applies_to_unspecified_model": {
964
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/applies_to_unspecified_model"
965
+ },
966
+ "used_ratio": {
967
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/used_ratio"
968
+ },
969
+ "window_seconds": {
970
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/window_seconds"
971
+ },
972
+ "resets_at": {
973
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/resets_at"
974
+ },
975
+ "cooldown_until": {
976
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/cooldown_until"
977
+ },
978
+ "freshness": {
979
+ "type": "string",
980
+ "enum": [
981
+ "fresh",
982
+ "stale",
983
+ "unknown"
984
+ ],
985
+ "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."
986
+ }
987
+ },
988
+ "required": [
989
+ "id",
990
+ "label",
991
+ "used_ratio",
992
+ "window_seconds",
993
+ "resets_at",
994
+ "freshness"
995
+ ],
996
+ "additionalProperties": false,
997
+ "description": "One independent vendor quota window; without model ids or declared prefixes it applies to every model, and null usage stays unknown."
998
+ }
999
+ },
1000
+ "source": {
1001
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/source"
1002
+ },
1003
+ "observed_at": {
1004
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/observed_at"
1005
+ },
1006
+ "freshness": {
1007
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/freshness"
1008
+ },
1009
+ "snapshot_id": {
1010
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/snapshot_id"
1011
+ },
1012
+ "availability": {
1013
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/availability"
1014
+ }
1015
+ },
1016
+ "required": [
1017
+ "subject",
1018
+ "constraints",
1019
+ "source",
1020
+ "observed_at",
1021
+ "freshness"
1022
+ ],
1023
+ "additionalProperties": false,
1024
+ "description": "One vendor-owned quota snapshot plus its derived availability projection."
1025
+ }
1026
+ },
1027
+ "absences": {
1028
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/absences"
1029
+ },
1030
+ "refreshed_at": {
1031
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/refreshed_at"
1032
+ },
1033
+ "refresh_skipped": {
1034
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/refresh_skipped"
1035
+ }
1036
+ },
1037
+ "required": [
1038
+ "snapshots",
1039
+ "refreshed_at"
1040
+ ],
1041
+ "additionalProperties": false,
1042
+ "description": "Opt-in GET /v2/quota?view=constraint_freshness response. Adds constraint freshness while preserving aggregate snapshot freshness and all observed values. No refresh or durable write."
934
1043
  }
935
1044
  ]
936
1045
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$ref": "#/definitions/ControlQuotaReadRequest",
3
+ "definitions": {
4
+ "ControlQuotaReadRequest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "view": {
8
+ "type": "string",
9
+ "enum": [
10
+ "resources",
11
+ "constraint_freshness"
12
+ ]
13
+ }
14
+ },
15
+ "additionalProperties": false
16
+ }
17
+ },
18
+ "$schema": "http://json-schema.org/draft-07/schema#"
19
+ }