changedInput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "description": "Read the public contract. This performs no authority issuance or downstream write.",
- "properties": {
- "mode": {
- "const": "read_control_plane"
- }
- },
- "required": [
- "mode"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Validate a public unsigned_dev draft. It is not signed, persisted or executable. Expiry must follow not_before by no more than 30 days.",
- "properties": {
- "mandate": {
- "$ref": "#/$defs/mandateInput"
- },
- "mode": {
- "const": "draft_mandate"
- }
- },
- "required": [
- "mode",
- "mandate"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Requires X-Wever-Operator-Key and Idempotency-Key. Issue one durable signed mandate for a configured agent. The active time window is limited to 30 days from issuance.",
- "properties": {
- "mandate": {
- "$ref": "#/$defs/mandateInput"
- },
- "mode": {
- "const": "issue_mandate"
- }
- },
- "required": [
- "mode",
- "mandate"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Requires the issuing operator X-Wever-Operator-Key and Idempotency-Key. Reserve one work_order unit and approve this exact action for at most 300 seconds. An agent cannot issue its own grant.",
- "properties": {
- "mode": {
- "const": "issue_action_grant"
- },
- "request": {
- "$ref": "#/$defs/grantRequest"
- },
- "signed_mandate": {
- "$ref": "#/$defs/signedMandate"
- }
- },
- "required": [
- "mode",
- "signed_mandate",
- "request"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Requires the target agent X-Wever-Agent-Key. Consume the signed grant once to create its immutable work-order record. This does not execute the recorded work, deliver results or authorize payment. A pending or unknown result is not success; retry the same grant or inspect it, never substitute new authority.",
- "properties": {
- "action": {
- "$ref": "#/$defs/workOrderAction"
- },
- "mode": {
- "const": "execute_delegated_action"
- },
- "signed_action_grant": {
- "$ref": "#/$defs/signedActionGrant"
- }
- },
- "required": [
- "mode",
- "signed_action_grant",
- "action"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Requires the bound agent X-Wever-Agent-Key. Read durable grant state and any finalized result.",
- "properties": {
- "grant_id": {
- "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
- "type": "string"
- },
- "mode": {
- "const": "inspect_action_grant"
- }
- },
- "required": [
- "mode",
- "grant_id"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Requires the issuing operator X-Wever-Operator-Key. Revoke future authority. Revocation does not undo a committed work-order record or release an uncertain in-flight effect.",
- "properties": {
- "mandate_id": {
- "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
- "type": "string"
- },
- "mode": {
- "const": "revoke_mandate"
- }
- },
- "required": [
- "mode",
- "mandate_id"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Requires the bound agent X-Wever-Agent-Key. Read this mandate audit after the supplied cursor, default 0, with a default limit of 50.",
- "properties": {
- "after": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "limit": {
- "maximum": 100,
- "minimum": 1,
- "type": "integer"
- },
- "mandate_id": {
- "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
- "type": "string"
- },
- "mode": {
- "const": "read_audit"
- }
- },
- "required": [
- "mode",
- "mandate_id"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "description": "Read the public contract. This performs no authority issuance or downstream write.",
+ "properties": {
+ "mode": {
+ "const": "read_control_plane"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Validate a public unsigned_dev draft. It is not signed, persisted or executable. Expiry must follow not_before by no more than 30 days.",
+ "properties": {
+ "mandate": {
+ "$ref": "#/$defs/mandateInput"
+ },
+ "mode": {
+ "const": "draft_mandate"
+ }
+ },
+ "required": [
+ "mode",
+ "mandate"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Requires X-Wever-Operator-Key and Idempotency-Key. Issue one durable signed mandate for a configured agent. The active time window is limited to 30 days from issuance.",
+ "properties": {
+ "mandate": {
+ "$ref": "#/$defs/mandateInput"
+ },
+ "mode": {
+ "const": "issue_mandate"
+ }
+ },
+ "required": [
+ "mode",
+ "mandate"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Requires the issuing operator X-Wever-Operator-Key and Idempotency-Key. Reserve one work_order unit and approve this exact action for at most 300 seconds. An agent cannot issue its own grant.",
+ "properties": {
+ "mode": {
+ "const": "issue_action_grant"
+ },
+ "request": {
+ "$ref": "#/$defs/grantRequest"
+ },
+ "signed_mandate": {
+ "$ref": "#/$defs/signedMandate"
+ }
+ },
+ "required": [
+ "mode",
+ "signed_mandate",
+ "request"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Requires the target agent X-Wever-Agent-Key. Consume the signed grant once to create its immutable work-order record. This does not execute the recorded work, deliver results or authorize payment. A pending or unknown result is not success; retry the same grant or inspect it, never substitute new authority.",
+ "properties": {
+ "action": {
+ "$ref": "#/$defs/workOrderAction"
+ },
+ "mode": {
+ "const": "execute_delegated_action"
+ },
+ "signed_action_grant": {
+ "$ref": "#/$defs/signedActionGrant"
+ }
+ },
+ "required": [
+ "mode",
+ "signed_action_grant",
+ "action"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Requires the bound agent X-Wever-Agent-Key. Read durable grant state and any finalized result.",
+ "properties": {
+ "grant_id": {
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
+ "type": "string"
+ },
+ "mode": {
+ "const": "inspect_action_grant"
+ }
+ },
+ "required": [
+ "mode",
+ "grant_id"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Requires the issuing operator X-Wever-Operator-Key. Revoke future authority. Revocation does not undo a committed work-order record or release an uncertain in-flight effect.",
+ "properties": {
+ "mandate_id": {
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
+ "type": "string"
+ },
+ "mode": {
+ "const": "revoke_mandate"
+ }
+ },
+ "required": [
+ "mode",
+ "mandate_id"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Requires the bound agent X-Wever-Agent-Key. Read this mandate audit after the supplied cursor, default 0, with a default limit of 50.",
+ "properties": {
+ "after": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "limit": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "mandate_id": {
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
+ "type": "string"
+ },
+ "mode": {
+ "const": "read_audit"
+ }
+ },
+ "required": [
+ "mode",
+ "mandate_id"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "mandate": {
+ "additionalProperties": false,
+ "properties": {
+ "challenge_token": {
+ "maxLength": 16384,
+ "minLength": 1,
+ "type": "string"
+ },
+ "consent_digest": {
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])",
+ "type": "string"
+ },
+ "expires_at": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "holder_jwk": {
+ "additionalProperties": false,
+ "properties": {
+ "crv": {
+ "const": "secp256k1"
+ },
+ "kty": {
+ "const": "EC"
+ },
+ "x": {
+ "pattern": "^[A-Za-z0-9_-]{43}(?![\\s\\S])",
+ "type": "string"
+ },
+ "y": {
+ "pattern": "^[A-Za-z0-9_-]{43}(?![\\s\\S])",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kty",
+ "crv",
+ "x",
+ "y"
+ ],
+ "type": "object"
+ },
+ "profile": {
+ "const": "com.weverlabs.ap2.direct-checkout.1"
+ }
+ },
+ "required": [
+ "profile",
+ "challenge_token",
+ "holder_jwk",
+ "consent_digest",
+ "expires_at"
+ ],
+ "type": "object"
+ },
+ "mode": {
+ "const": "issue_mandate"
+ }
+ },
+ "required": [
+ "mode",
+ "mandate"
+ ],
+ "type": "object"
+ }
+]