@claudexor/schema 4.1.1 → 4.3.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 (133) 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 +5989 -0
  6. package/dist/account-routing-evidence.d.ts.map +1 -0
  7. package/dist/account-routing-evidence.js +49 -0
  8. package/dist/account-routing-evidence.js.map +1 -0
  9. package/dist/agent-capabilities.js +1 -1
  10. package/dist/agent-capabilities.js.map +1 -1
  11. package/dist/attempt-execution.d.ts +5 -0
  12. package/dist/attempt-execution.d.ts.map +1 -1
  13. package/dist/budget.d.ts +16 -0
  14. package/dist/budget.d.ts.map +1 -1
  15. package/dist/budget.js +13 -1
  16. package/dist/budget.js.map +1 -1
  17. package/dist/config.d.ts +12 -12
  18. package/dist/config.d.ts.map +1 -1
  19. package/dist/config.js +2 -1
  20. package/dist/config.js.map +1 -1
  21. package/dist/control-operation-responses.d.ts +298 -24
  22. package/dist/control-operation-responses.d.ts.map +1 -1
  23. package/dist/control-run-detail.d.ts +816 -42
  24. package/dist/control-run-detail.d.ts.map +1 -1
  25. package/dist/control-run-failure.d.ts +258 -0
  26. package/dist/control-run-failure.d.ts.map +1 -1
  27. package/dist/control-run-failure.js +55 -0
  28. package/dist/control-run-failure.js.map +1 -1
  29. package/dist/control.d.ts +258 -39
  30. package/dist/control.d.ts.map +1 -1
  31. package/dist/control.js +9 -21
  32. package/dist/control.js.map +1 -1
  33. package/dist/credential-profile-snapshot.d.ts +332 -0
  34. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  35. package/dist/decision.d.ts +5 -0
  36. package/dist/decision.d.ts.map +1 -1
  37. package/dist/decision.js +9 -2
  38. package/dist/decision.js.map +1 -1
  39. package/dist/events.d.ts +4 -4
  40. package/dist/events.d.ts.map +1 -1
  41. package/dist/events.js +6 -0
  42. package/dist/events.js.map +1 -1
  43. package/dist/harness-input.d.ts +11 -0
  44. package/dist/harness-input.d.ts.map +1 -1
  45. package/dist/harness-input.js +7 -0
  46. package/dist/harness-input.js.map +1 -1
  47. package/dist/harness.d.ts +32 -4
  48. package/dist/harness.d.ts.map +1 -1
  49. package/dist/harness.js +5 -4
  50. package/dist/harness.js.map +1 -1
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +2 -0
  54. package/dist/index.js.map +1 -1
  55. package/dist/mcp-run-result.d.ts +445 -0
  56. package/dist/mcp-run-result.d.ts.map +1 -1
  57. package/dist/model-image.d.ts +7 -0
  58. package/dist/model-image.d.ts.map +1 -1
  59. package/dist/model-operation.d.ts +26 -0
  60. package/dist/model-operation.d.ts.map +1 -1
  61. package/dist/model-operation.js +3 -1
  62. package/dist/model-operation.js.map +1 -1
  63. package/dist/processing.d.ts +56 -0
  64. package/dist/processing.d.ts.map +1 -1
  65. package/dist/processing.js +15 -0
  66. package/dist/processing.js.map +1 -1
  67. package/dist/quota-read.d.ts +3 -3
  68. package/dist/quota-read.js +1 -1
  69. package/dist/quota-read.js.map +1 -1
  70. package/dist/run-continuation.d.ts +9 -6
  71. package/dist/run-continuation.d.ts.map +1 -1
  72. package/dist/run-continuation.js +4 -0
  73. package/dist/run-continuation.js.map +1 -1
  74. package/dist/run-continuity.d.ts +7 -7
  75. package/dist/run-continuity.d.ts.map +1 -1
  76. package/dist/run-continuity.js +2 -1
  77. package/dist/run-continuity.js.map +1 -1
  78. package/dist/run-time-limit.d.ts +81 -0
  79. package/dist/run-time-limit.d.ts.map +1 -0
  80. package/dist/run-time-limit.js +36 -0
  81. package/dist/run-time-limit.js.map +1 -0
  82. package/dist/surface-run-controls.d.ts.map +1 -1
  83. package/dist/surface-run-controls.js +9 -0
  84. package/dist/surface-run-controls.js.map +1 -1
  85. package/dist/telemetry.d.ts +12 -0
  86. package/dist/telemetry.d.ts.map +1 -1
  87. package/generated/AgentCapabilityCatalog.schema.json +1 -1
  88. package/generated/AttemptExecutionEvidence.schema.json +6 -1
  89. package/generated/BudgetLease.schema.json +5 -0
  90. package/generated/ControlAccountResetResponse.schema.json +51 -0
  91. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +1016 -0
  92. package/generated/ControlAccountResourcesResponse.schema.json +71 -20
  93. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +101 -0
  94. package/generated/ControlCredentialProfilesQueryResponse.schema.json +72 -21
  95. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +72 -21
  96. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1 -1
  97. package/generated/ControlHarnessListResponse.schema.json +1 -1
  98. package/generated/ControlModelAccountCatalogResponse.schema.json +2 -1
  99. package/generated/ControlModelCatalogQueryResponse.schema.json +2 -1
  100. package/generated/ControlModelCatalogResponse.schema.json +2 -1
  101. package/generated/ControlModelOperationDetail.schema.json +5 -0
  102. package/generated/ControlQuotaQueryResponse.schema.json +131 -20
  103. package/generated/ControlQuotaReadRequest.schema.json +2 -1
  104. package/generated/ControlRetainedEnvelope.schema.json +2 -1
  105. package/generated/ControlRunAgainDraft.schema.json +9 -1
  106. package/generated/ControlRunDetail.schema.json +187 -4
  107. package/generated/ControlRunListResponse.schema.json +164 -1
  108. package/generated/ControlRunStartRequest.schema.json +9 -1
  109. package/generated/ControlRunSummary.schema.json +164 -1
  110. package/generated/ControlSettingsSnapshot.schema.json +10 -3
  111. package/generated/ControlThreadTurnRequest.schema.json +9 -1
  112. package/generated/DecisionRecord.schema.json +8 -1
  113. package/generated/EnvelopeCustody.schema.json +6 -1
  114. package/generated/GlobalConfig.schema.json +10 -3
  115. package/generated/HarnessEvent.schema.json +24 -0
  116. package/generated/HarnessManifest.schema.json +1 -1
  117. package/generated/HarnessStatusDto.schema.json +1 -1
  118. package/generated/ImageCallResult.schema.json +5 -0
  119. package/generated/McpAccountsToolResult.schema.json +2578 -0
  120. package/generated/McpRunHandleResult.schema.json +177 -2
  121. package/generated/McpRunToolResult.schema.json +168 -1
  122. package/generated/ModelCallResult.schema.json +5 -0
  123. package/generated/ProcessingCostBasis.schema.json +5 -0
  124. package/generated/RunContinuityReceipt.schema.json +2 -1
  125. package/generated/RunEvent.schema.json +1 -0
  126. package/generated/RunFailure.schema.json +162 -0
  127. package/generated/RunProcessingIntent.schema.json +117 -0
  128. package/generated/RunResumable.schema.json +2 -1
  129. package/generated/RunTelemetry.schema.json +6 -1
  130. package/generated/RunTimeLimitRequest.schema.json +92 -0
  131. package/generated/RunTimeLimitSnapshot.schema.json +61 -0
  132. package/generated/UsageCostSummary.schema.json +1 -1
  133. package/package.json +2 -2
@@ -0,0 +1,117 @@
1
+ {
2
+ "$ref": "#/definitions/RunProcessingIntent",
3
+ "definitions": {
4
+ "RunProcessingIntent": {
5
+ "type": "object",
6
+ "properties": {
7
+ "schema_version": {
8
+ "type": "number",
9
+ "const": 1
10
+ },
11
+ "harnesses": {
12
+ "type": "object",
13
+ "additionalProperties": {
14
+ "type": "object",
15
+ "properties": {
16
+ "requested": {
17
+ "anyOf": [
18
+ {
19
+ "type": "string",
20
+ "enum": [
21
+ "standard",
22
+ "fast",
23
+ "economy"
24
+ ],
25
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
26
+ },
27
+ {
28
+ "type": "null"
29
+ }
30
+ ],
31
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
32
+ },
33
+ "submitted": {
34
+ "anyOf": [
35
+ {
36
+ "$ref": "#/definitions/RunProcessingIntent/properties/harnesses/additionalProperties/properties/requested/anyOf/0"
37
+ },
38
+ {
39
+ "type": "null"
40
+ }
41
+ ],
42
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
43
+ },
44
+ "submittedNative": {
45
+ "anyOf": [
46
+ {
47
+ "type": "string",
48
+ "minLength": 1,
49
+ "pattern": "\\S",
50
+ "description": "User-supplied string that must contain visible content, not just whitespace."
51
+ },
52
+ {
53
+ "type": "null"
54
+ }
55
+ ],
56
+ "description": "User-supplied string that must contain visible content, not just whitespace."
57
+ },
58
+ "observed": {
59
+ "type": "string",
60
+ "enum": [
61
+ "standard",
62
+ "fast",
63
+ "economy",
64
+ "mixed",
65
+ "unknown"
66
+ ]
67
+ },
68
+ "observedNative": {
69
+ "type": "array",
70
+ "items": {
71
+ "$ref": "#/definitions/RunProcessingIntent/properties/harnesses/additionalProperties/properties/submittedNative/anyOf/0"
72
+ }
73
+ },
74
+ "reason": {
75
+ "anyOf": [
76
+ {
77
+ "$ref": "#/definitions/RunProcessingIntent/properties/harnesses/additionalProperties/properties/submittedNative/anyOf/0"
78
+ },
79
+ {
80
+ "type": "null"
81
+ }
82
+ ],
83
+ "description": "User-supplied string that must contain visible content, not just whitespace."
84
+ },
85
+ "source": {
86
+ "$ref": "#/definitions/RunProcessingIntent/properties/harnesses/additionalProperties/properties/submittedNative/anyOf/0"
87
+ }
88
+ },
89
+ "required": [
90
+ "requested",
91
+ "submitted",
92
+ "submittedNative",
93
+ "observed",
94
+ "observedNative",
95
+ "reason",
96
+ "source"
97
+ ],
98
+ "additionalProperties": false,
99
+ "description": "Requested intent, submitted native control, and observed execution are independent facts. A submitted flag never proves observed service; mixed or missing session observations remain explicit."
100
+ },
101
+ "propertyNames": {
102
+ "minLength": 1,
103
+ "pattern": "\\S"
104
+ },
105
+ "description": "Routing-time receipt per routed harness; its source keeps the original provenance (for example codex.managed_config)."
106
+ }
107
+ },
108
+ "required": [
109
+ "schema_version",
110
+ "harnesses"
111
+ ],
112
+ "additionalProperties": false,
113
+ "description": "Speed each routed harness chose without a processing preference, written once at its first routing. Exact Retry keeps it instead of a changed or different account's native setting, and a retry records the intent it kept, so a retry chain keeps the original even after an ordinary fallback."
114
+ }
115
+ },
116
+ "$schema": "http://json-schema.org/draft-07/schema#"
117
+ }
@@ -11,6 +11,7 @@
11
11
  "pool_exhausted",
12
12
  "pinned_limit",
13
13
  "transport",
14
+ "permission_denied",
14
15
  "context_exhausted",
15
16
  "wall_clock",
16
17
  "cancelled",
@@ -18,7 +19,7 @@
18
19
  "input_required",
19
20
  "other"
20
21
  ],
21
- "description": "Typed reason the previous process stopped: a vendor limit (next account eligible), the whole pool spent, a pinned account's limit, a transport death (crash, timeout, watchdog), context exhaustion, the wall-clock deadline, a cancel, a daemon/host restart, a model that asked for input, or another typed cause."
22
+ "description": "Typed reason the previous process stopped: a vendor limit (next account eligible), the whole pool spent, a pinned account's limit, a transport death (crash, timeout, watchdog), a confirmed native tool permission refusal, context exhaustion, the wall-clock deadline, a cancel, a daemon/host restart, a model that asked for input, or another typed cause."
22
23
  },
23
24
  "resetsAt": {
24
25
  "type": [
@@ -499,6 +499,11 @@
499
499
  },
500
500
  "source": {
501
501
  "$ref": "#/definitions/RunTelemetry/properties/attempts/items/properties/effort_resolution/properties/requested/anyOf/0"
502
+ },
503
+ "debit": {
504
+ "type": "string",
505
+ "const": "unobserved",
506
+ "description": "The route reports no actual cash or purchased-credit debit. Included service still admits the work, but its cash stays unknown instead of zero and is outside the finite cap; absence keeps proven ordinary inclusion as zero cash."
502
507
  }
503
508
  },
504
509
  "required": [
@@ -545,7 +550,7 @@
545
550
  "valuationKnowledge"
546
551
  ],
547
552
  "additionalProperties": false,
548
- "description": "Observed usage components. An amount of unknown meaning is not charged cash; separately proven included service can still establish exact zero incremental cash."
553
+ "description": "Observed usage components. An amount of unknown meaning is not charged cash; separately proven included service can still establish exact zero incremental cash unless its route reports no actual debit."
549
554
  },
550
555
  "attempt_id": {
551
556
  "type": "string",
@@ -0,0 +1,92 @@
1
+ {
2
+ "$ref": "#/definitions/RunTimeLimitRequest",
3
+ "definitions": {
4
+ "RunTimeLimitRequest": {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "action": {
10
+ "type": "string",
11
+ "const": "read"
12
+ }
13
+ },
14
+ "required": [
15
+ "action"
16
+ ],
17
+ "additionalProperties": false
18
+ },
19
+ {
20
+ "type": "object",
21
+ "properties": {
22
+ "action": {
23
+ "type": "string",
24
+ "const": "set"
25
+ },
26
+ "seconds": {
27
+ "type": "integer",
28
+ "exclusiveMinimum": 0,
29
+ "maximum": 604800
30
+ },
31
+ "mode": {
32
+ "type": "string",
33
+ "enum": [
34
+ "soft",
35
+ "hard"
36
+ ]
37
+ },
38
+ "expectedRevision": {
39
+ "type": "integer",
40
+ "minimum": 0
41
+ }
42
+ },
43
+ "required": [
44
+ "action",
45
+ "seconds",
46
+ "expectedRevision"
47
+ ],
48
+ "additionalProperties": false
49
+ },
50
+ {
51
+ "type": "object",
52
+ "properties": {
53
+ "action": {
54
+ "type": "string",
55
+ "const": "extend"
56
+ },
57
+ "seconds": {
58
+ "$ref": "#/definitions/RunTimeLimitRequest/anyOf/1/properties/seconds"
59
+ },
60
+ "expectedRevision": {
61
+ "$ref": "#/definitions/RunTimeLimitRequest/anyOf/1/properties/expectedRevision"
62
+ }
63
+ },
64
+ "required": [
65
+ "action",
66
+ "seconds",
67
+ "expectedRevision"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "action": {
75
+ "type": "string",
76
+ "const": "disable"
77
+ },
78
+ "expectedRevision": {
79
+ "$ref": "#/definitions/RunTimeLimitRequest/anyOf/1/properties/expectedRevision"
80
+ }
81
+ },
82
+ "required": [
83
+ "action",
84
+ "expectedRevision"
85
+ ],
86
+ "additionalProperties": false
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "$schema": "http://json-schema.org/draft-07/schema#"
92
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$ref": "#/definitions/RunTimeLimitSnapshot",
3
+ "definitions": {
4
+ "RunTimeLimitSnapshot": {
5
+ "type": "object",
6
+ "properties": {
7
+ "revision": {
8
+ "type": "integer",
9
+ "minimum": 0
10
+ },
11
+ "mode": {
12
+ "type": "string",
13
+ "enum": [
14
+ "soft",
15
+ "hard"
16
+ ]
17
+ },
18
+ "state": {
19
+ "type": "string",
20
+ "enum": [
21
+ "disabled",
22
+ "armed",
23
+ "reached",
24
+ "closed"
25
+ ]
26
+ },
27
+ "deadlineAt": {
28
+ "anyOf": [
29
+ {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ },
33
+ {
34
+ "type": "null"
35
+ }
36
+ ]
37
+ },
38
+ "reachedAt": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string",
42
+ "format": "date-time"
43
+ },
44
+ {
45
+ "type": "null"
46
+ }
47
+ ]
48
+ }
49
+ },
50
+ "required": [
51
+ "revision",
52
+ "mode",
53
+ "state",
54
+ "deadlineAt",
55
+ "reachedAt"
56
+ ],
57
+ "additionalProperties": false
58
+ }
59
+ },
60
+ "$schema": "http://json-schema.org/draft-07/schema#"
61
+ }
@@ -37,7 +37,7 @@
37
37
  "valuationKnowledge"
38
38
  ],
39
39
  "additionalProperties": false,
40
- "description": "Observed usage components. An amount of unknown meaning is not charged cash; separately proven included service can still establish exact zero incremental cash."
40
+ "description": "Observed usage components. An amount of unknown meaning is not charged cash; separately proven included service can still establish exact zero incremental cash unless its route reports no actual debit."
41
41
  }
42
42
  },
43
43
  "$schema": "http://json-schema.org/draft-07/schema#"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/schema",
3
- "version": "4.1.1",
3
+ "version": "4.3.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.6.5",
22
22
  "zod-to-json-schema": "^3.24.1",
23
- "@claudexor/util": "4.1.1"
23
+ "@claudexor/util": "4.3.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",