@claudexor/schema 3.6.0 → 3.8.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 (58) hide show
  1. package/dist/agent-capabilities.d.ts +32 -0
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +4 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/config.d.ts +10 -8
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +7 -6
  8. package/dist/config.js.map +1 -1
  9. package/dist/control-harness-list.d.ts +197 -1
  10. package/dist/control-harness-list.d.ts.map +1 -1
  11. package/dist/credential-profile-snapshot.d.ts +408 -16
  12. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  13. package/dist/credential-profile.d.ts +69 -42
  14. package/dist/credential-profile.d.ts.map +1 -1
  15. package/dist/credential-profile.js +47 -30
  16. package/dist/credential-profile.js.map +1 -1
  17. package/dist/harness.d.ts +247 -54
  18. package/dist/harness.d.ts.map +1 -1
  19. package/dist/harness.js +2 -32
  20. package/dist/harness.js.map +1 -1
  21. package/dist/platform-auth.d.ts +196 -0
  22. package/dist/platform-auth.d.ts.map +1 -0
  23. package/dist/platform-auth.js +142 -0
  24. package/dist/platform-auth.js.map +1 -0
  25. package/dist/quota.d.ts +9 -9
  26. package/dist/quota.d.ts.map +1 -1
  27. package/dist/quota.js +3 -0
  28. package/dist/quota.js.map +1 -1
  29. package/dist/readiness.d.ts +178 -1
  30. package/dist/readiness.d.ts.map +1 -1
  31. package/dist/readiness.js +12 -0
  32. package/dist/readiness.js.map +1 -1
  33. package/dist/setup-login.d.ts +5 -5
  34. package/dist/setup.d.ts +102 -95
  35. package/dist/setup.d.ts.map +1 -1
  36. package/dist/setup.js +29 -5
  37. package/dist/setup.js.map +1 -1
  38. package/generated/AgentCapabilityCatalog.schema.json +26 -0
  39. package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
  40. package/generated/ControlCredentialProfileCreateResponse.schema.json +4 -4
  41. package/generated/ControlCredentialProfileDeleteResponse.schema.json +27 -3
  42. package/generated/ControlCredentialProfileUpdateResponse.schema.json +4 -4
  43. package/generated/ControlCredentialProfilesQueryResponse.schema.json +130 -5
  44. package/generated/ControlCredentialProfilesResponse.schema.json +4 -4
  45. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +130 -5
  46. package/generated/ControlHarnessListResponse.schema.json +124 -0
  47. package/generated/ControlQuotaResponse.schema.json +2 -1
  48. package/generated/ControlSetupJob.schema.json +5 -1
  49. package/generated/ControlSetupJobCreateRequest.schema.json +1 -1
  50. package/generated/ControlSetupJobEvent.schema.json +5 -1
  51. package/generated/ControlSetupJobListResponse.schema.json +5 -1
  52. package/generated/ControlSetupJobSnapshot.schema.json +5 -1
  53. package/generated/CredentialProfile.schema.json +3 -3
  54. package/generated/CredentialProfileStatus.schema.json +1 -1
  55. package/generated/GlobalConfig.schema.json +4 -4
  56. package/generated/HarnessManifest.schema.json +98 -0
  57. package/generated/HarnessStatusDto.schema.json +124 -0
  58. package/package.json +2 -2
@@ -132,6 +132,20 @@
132
132
  },
133
133
  "default": [],
134
134
  "description": "Relocation levers that can move this transport into a scoped environment."
135
+ },
136
+ "platforms": {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string",
140
+ "enum": [
141
+ "darwin",
142
+ "linux",
143
+ "win32"
144
+ ],
145
+ "description": "Host platform used to resolve credential and managed-login policy."
146
+ },
147
+ "minItems": 1,
148
+ "description": "Host platforms on which this physical credential transport applies; absent means every supported platform for backward compatibility."
135
149
  }
136
150
  },
137
151
  "required": [
@@ -143,6 +157,90 @@
143
157
  },
144
158
  "default": [],
145
159
  "description": "Declared credential transports per auth source."
160
+ },
161
+ "credential_profile_policies": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "object",
165
+ "properties": {
166
+ "source": {
167
+ "$ref": "#/definitions/HarnessStatusDto/properties/manifest/anyOf/0/properties/capability_profile/properties/auth/properties/supported_sources/items"
168
+ },
169
+ "platforms": {
170
+ "type": "array",
171
+ "items": {
172
+ "$ref": "#/definitions/HarnessStatusDto/properties/manifest/anyOf/0/properties/capability_profile/properties/auth/properties/credential_transports/items/properties/platforms/items"
173
+ },
174
+ "minItems": 1,
175
+ "description": "Nonempty host-platform set governed by this policy row."
176
+ },
177
+ "identity_scope": {
178
+ "type": "string",
179
+ "enum": [
180
+ "profile",
181
+ "os_user"
182
+ ],
183
+ "description": "Identity boundary selected by a credential profile: the named profile itself or the host OS user/login vault."
184
+ },
185
+ "max_enabled_profiles": {
186
+ "anyOf": [
187
+ {
188
+ "type": "integer",
189
+ "exclusiveMinimum": 0
190
+ },
191
+ {
192
+ "type": "null"
193
+ }
194
+ ],
195
+ "description": "Maximum enabled profile bindings on these platforms; null means unbounded."
196
+ },
197
+ "cleanup_owner": {
198
+ "type": "string",
199
+ "enum": [
200
+ "claudexor",
201
+ "vendor"
202
+ ],
203
+ "description": "Who owns cleanup of the credential when its Claudexor profile binding is removed."
204
+ }
205
+ },
206
+ "required": [
207
+ "source",
208
+ "platforms",
209
+ "identity_scope",
210
+ "max_enabled_profiles",
211
+ "cleanup_owner"
212
+ ],
213
+ "additionalProperties": false,
214
+ "description": "Platform-specific identity scope, enabled-profile cardinality, and credential cleanup ownership for one auth source."
215
+ },
216
+ "description": "Platform-specific profile identity/cardinality/cleanup policy; absent uses the backward-compatible profile-scoped, unbounded, Claudexor-owned defaults."
217
+ },
218
+ "managed_login": {
219
+ "anyOf": [
220
+ {
221
+ "type": "object",
222
+ "properties": {
223
+ "stdin": {
224
+ "type": "string",
225
+ "enum": [
226
+ "none",
227
+ "pipe",
228
+ "terminal"
229
+ ],
230
+ "description": "Input transport the vendor login command requires."
231
+ }
232
+ },
233
+ "required": [
234
+ "stdin"
235
+ ],
236
+ "additionalProperties": false,
237
+ "description": "Managed-login input requirement; command, argv, flow, and time window remain owned by the native-login registry."
238
+ },
239
+ {
240
+ "type": "null"
241
+ }
242
+ ],
243
+ "description": "Managed subscription-login input requirement; null means this harness defines no managed login, absent is a legacy manifest."
146
244
  }
147
245
  },
148
246
  "additionalProperties": false,
@@ -762,6 +860,32 @@
762
860
  ],
763
861
  "description": "Engine-owned Delegate capability for this harness and installed runtime; null on legacy status rows.",
764
862
  "default": null
863
+ },
864
+ "setupLogin": {
865
+ "anyOf": [
866
+ {
867
+ "type": "object",
868
+ "properties": {
869
+ "mode": {
870
+ "type": "string",
871
+ "enum": [
872
+ "in_app",
873
+ "external_terminal"
874
+ ],
875
+ "description": "in_app requests the daemon-hosted login flow; external_terminal requests the existing client PTY flow."
876
+ }
877
+ },
878
+ "required": [
879
+ "mode"
880
+ ],
881
+ "additionalProperties": false,
882
+ "description": "Effective setup-login flow for this harness on the current host."
883
+ },
884
+ {
885
+ "type": "null"
886
+ }
887
+ ],
888
+ "description": "Effective setup-login flow for this harness on the current host; current producers emit null or an object, while omission identifies a legacy row."
765
889
  }
766
890
  },
767
891
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/schema",
3
- "version": "3.6.0",
3
+ "version": "3.8.0",
4
4
  "license": "MIT",
5
5
  "description": "Single source of truth for all Claudexor data shapes (Zod + generated JSON Schema).",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "zod": "^4.4.3",
22
22
  "zod-to-json-schema": "^3.24.1",
23
- "@claudexor/util": "3.6.0"
23
+ "@claudexor/util": "3.8.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",