@claudexor/schema 4.0.0 → 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
@@ -83,6 +83,18 @@
83
83
  "applies_to_unspecified_model": {
84
84
  "type": "boolean"
85
85
  },
86
+ "applies_to_request_kinds": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string",
90
+ "enum": [
91
+ "text",
92
+ "image"
93
+ ]
94
+ },
95
+ "minItems": 1,
96
+ "description": "Vendor-declared operation scope. Absent applies to both text and image; model scope still applies independently."
97
+ },
86
98
  "used_ratio": {
87
99
  "anyOf": [
88
100
  {
@@ -152,7 +164,8 @@
152
164
  "agy_command_usage",
153
165
  "cursor_rate_limit",
154
166
  "claude_rate_limit_event",
155
- "codex_app_server_event"
167
+ "codex_app_server_event",
168
+ "codex_image_response"
156
169
  ],
157
170
  "description": "Machine-readable source of quota evidence, classified by schema-owned traits."
158
171
  },
@@ -963,6 +976,9 @@
963
976
  "applies_to_unspecified_model": {
964
977
  "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/applies_to_unspecified_model"
965
978
  },
979
+ "applies_to_request_kinds": {
980
+ "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/applies_to_request_kinds"
981
+ },
966
982
  "used_ratio": {
967
983
  "$ref": "#/definitions/ControlQuotaQueryResponse/anyOf/0/properties/snapshots/items/properties/constraints/items/properties/used_ratio"
968
984
  },
@@ -4,6 +4,19 @@
4
4
  "ControlQuotaReadRequest": {
5
5
  "type": "object",
6
6
  "properties": {
7
+ "requestKind": {
8
+ "type": "string",
9
+ "enum": [
10
+ "text",
11
+ "image"
12
+ ],
13
+ "description": "Availability scope; omitted means text. Raw constraints retain every scope."
14
+ },
15
+ "model": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "description": "Optional model id/alias the caller intends to spend against. When present, each snapshot's availability.state is computed against this model (case-insensitive alias containment in either direction), so windows scoped to OTHER models never report the subject exhausted."
19
+ },
7
20
  "view": {
8
21
  "type": "string",
9
22
  "enum": [
@@ -12,7 +25,8 @@
12
25
  ]
13
26
  }
14
27
  },
15
- "additionalProperties": false
28
+ "additionalProperties": false,
29
+ "description": "GET /v2/quota query selectors, each at most once; there is no body. Omitted requestKind means text availability, omitted model keeps the model-agnostic projection, and omitted view keeps the legacy shape. Reads cached snapshots without refreshing quota."
16
30
  }
17
31
  },
18
32
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -22,6 +22,14 @@
22
22
  ],
23
23
  "additionalProperties": false
24
24
  },
25
+ "requestKind": {
26
+ "type": "string",
27
+ "enum": [
28
+ "text",
29
+ "image"
30
+ ],
31
+ "description": "Availability scope; omitted means text. Raw constraints retain every scope."
32
+ },
25
33
  "model": {
26
34
  "type": "string",
27
35
  "minLength": 1,
@@ -81,6 +81,18 @@
81
81
  "applies_to_unspecified_model": {
82
82
  "type": "boolean"
83
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
+ },
84
96
  "used_ratio": {
85
97
  "anyOf": [
86
98
  {
@@ -150,7 +162,8 @@
150
162
  "agy_command_usage",
151
163
  "cursor_rate_limit",
152
164
  "claude_rate_limit_event",
153
- "codex_app_server_event"
165
+ "codex_app_server_event",
166
+ "codex_image_response"
154
167
  ],
155
168
  "description": "Machine-readable source of quota evidence, classified by schema-owned traits."
156
169
  },
@@ -7,7 +7,7 @@
7
7
  "purpose": {
8
8
  "type": "string",
9
9
  "const": "model",
10
- "description": "Model-operation payload, never an Agent attachment; absent preserves attachment semantics."
10
+ "description": "Model-operation payload (text or image); never an Agent attachment; absent preserves attachment semantics."
11
11
  },
12
12
  "kind": {
13
13
  "type": "string",
@@ -771,7 +771,8 @@
771
771
  "agy_command_usage",
772
772
  "cursor_rate_limit",
773
773
  "claude_rate_limit_event",
774
- "codex_app_server_event"
774
+ "codex_app_server_event",
775
+ "codex_image_response"
775
776
  ],
776
777
  "description": "Machine-readable source of quota evidence, classified by schema-owned traits."
777
778
  },
@@ -823,6 +824,18 @@
823
824
  "applies_to_unspecified_model": {
824
825
  "type": "boolean"
825
826
  },
827
+ "applies_to_request_kinds": {
828
+ "type": "array",
829
+ "items": {
830
+ "type": "string",
831
+ "enum": [
832
+ "text",
833
+ "image"
834
+ ]
835
+ },
836
+ "minItems": 1,
837
+ "description": "Vendor-declared operation scope. Absent applies to both text and image; model scope still applies independently."
838
+ },
826
839
  "used_ratio": {
827
840
  "anyOf": [
828
841
  {
@@ -936,6 +949,13 @@
936
949
  "$ref": "#/definitions/HarnessEvent/properties/credential_profile_id",
937
950
  "description": "Vendor-owned rate-window identity, when the adapter can map it from a typed field."
938
951
  },
952
+ "applies_to_request_kinds": {
953
+ "type": "array",
954
+ "items": {
955
+ "$ref": "#/definitions/HarnessEvent/properties/quota/properties/constraints/items/properties/applies_to_request_kinds/items"
956
+ },
957
+ "minItems": 1
958
+ },
939
959
  "applies_to_models": {
940
960
  "anyOf": [
941
961
  {
@@ -0,0 +1,145 @@
1
+ {
2
+ "$ref": "#/definitions/ImageCallRequest",
3
+ "definitions": {
4
+ "ImageCallRequest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "source": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Non-empty identifier string."
11
+ },
12
+ "model": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "pattern": "\\S",
16
+ "description": "Explicit image model; never derived from a text model."
17
+ },
18
+ "account": {
19
+ "anyOf": [
20
+ {
21
+ "type": "object",
22
+ "properties": {
23
+ "mode": {
24
+ "type": "string",
25
+ "const": "auto"
26
+ },
27
+ "preferredProfileId": {
28
+ "$ref": "#/definitions/ImageCallRequest/properties/source",
29
+ "description": "Non-empty identifier string."
30
+ }
31
+ },
32
+ "required": [
33
+ "mode"
34
+ ],
35
+ "additionalProperties": false
36
+ },
37
+ {
38
+ "type": "object",
39
+ "properties": {
40
+ "mode": {
41
+ "type": "string",
42
+ "const": "pin"
43
+ },
44
+ "profileId": {
45
+ "$ref": "#/definitions/ImageCallRequest/properties/source"
46
+ }
47
+ },
48
+ "required": [
49
+ "mode",
50
+ "profileId"
51
+ ],
52
+ "additionalProperties": false
53
+ }
54
+ ],
55
+ "description": "Auto keeps a usable prior account; pin never selects another account."
56
+ },
57
+ "prompt": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "pattern": "\\S",
61
+ "description": "User-supplied string that must contain visible content, not just whitespace."
62
+ },
63
+ "images": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "object",
67
+ "properties": {
68
+ "mime": {
69
+ "type": "string",
70
+ "enum": [
71
+ "image/png",
72
+ "image/jpeg",
73
+ "image/webp"
74
+ ]
75
+ },
76
+ "sha256": {
77
+ "type": "string",
78
+ "pattern": "^sha256:[a-f0-9]{64}$",
79
+ "description": "Digest of the decoded bytes."
80
+ },
81
+ "dataBase64": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "description": "The caller's exact bytes in standard base64; forwarded verbatim, never re-encoded."
85
+ }
86
+ },
87
+ "required": [
88
+ "mime",
89
+ "sha256",
90
+ "dataBase64"
91
+ ],
92
+ "additionalProperties": false,
93
+ "description": "One caller-owned edit reference; decoded bytes must match mime and sha256."
94
+ },
95
+ "default": [],
96
+ "description": "Empty selects generation; one or more selects an edit of these references."
97
+ },
98
+ "options": {
99
+ "type": "object",
100
+ "properties": {
101
+ "size": {
102
+ "$ref": "#/definitions/ImageCallRequest/properties/prompt",
103
+ "description": "Vendor size token, e.g. \"auto\" or \"1024x1024\"."
104
+ },
105
+ "quality": {
106
+ "type": "string",
107
+ "enum": [
108
+ "low",
109
+ "medium",
110
+ "high",
111
+ "auto"
112
+ ]
113
+ },
114
+ "background": {
115
+ "type": "string",
116
+ "enum": [
117
+ "transparent",
118
+ "opaque",
119
+ "auto"
120
+ ]
121
+ },
122
+ "n": {
123
+ "type": "integer",
124
+ "exclusiveMinimum": 0,
125
+ "maximum": 10,
126
+ "description": "Requested image count in ONE provider request. Omitted sends no n; the provider may return several items either way."
127
+ }
128
+ },
129
+ "additionalProperties": false,
130
+ "description": "Only explicit options are sent; this transport adds no defaults of its own.",
131
+ "default": {}
132
+ }
133
+ },
134
+ "required": [
135
+ "source",
136
+ "model",
137
+ "account",
138
+ "prompt"
139
+ ],
140
+ "additionalProperties": false,
141
+ "description": "One image generation or edit request, stored only in a model-purpose payload outside the command journal."
142
+ }
143
+ },
144
+ "$schema": "http://json-schema.org/draft-07/schema#"
145
+ }