changedInput schema / properties / purchase / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "confirmed_at": {
- "format": "date-time",
- "type": "string"
- },
- "customer_confirmed_digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "input": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "model": {
- "type": "string"
- }
- },
- "required": [
- "model"
- ],
- "type": "object"
- }
- ]
- },
- "model_or_reference": {
- "anyOf": [
- {
- "maxLength": 200,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "must_match": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "attribute": {
- "maxLength": 100,
- "minLength": 1,
- "type": "string"
- },
- "expected": {
- "maxLength": 100,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "attribute",
- "expected"
- ],
- "type": "object"
- },
- "maxItems": 5,
- "type": "array"
- },
- "product_name": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "quantity": {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "substitution_allowed": {
- "type": "boolean"
- },
- "unit": {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "input",
- "quantity",
- "unit",
- "must_match",
- "product_name",
- "model_or_reference",
- "substitution_allowed"
- ],
- "type": "object"
- },
- "draft_digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "intent_id": {
- "pattern": "^[A-Za-z0-9._:-]{1,128}$",
- "type": "string"
- }
- },
- "required": [
- "intent_id",
- "draft_digest",
- "customer_confirmed_digest",
- "confirmed_at",
- "draft"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "confirmation": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "acknowledgement": {
- "maxLength": 512,
- "minLength": 1,
- "type": "string"
- },
- "mode": {
- "const": "HUMAN",
- "type": "string"
- }
- },
- "required": [
- "mode",
- "acknowledgement"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "delegated_authority": {
- "additionalProperties": false,
- "properties": {
- "agent_id": {
- "pattern": "^0x[0-9a-fA-F]{40}$",
- "type": "string"
- },
- "authority_digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "delegation_id": {
- "pattern": "^[A-Za-z0-9._:-]{1,128}$",
- "type": "string"
- },
- "draft_digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "expires_at": {
- "format": "date-time",
- "type": "string"
- },
- "input_digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "input_version": {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "intent_id": {
- "pattern": "^[A-Za-z0-9._:-]{1,128}$",
- "type": "string"
- },
- "issued_at": {
- "format": "date-time",
- "type": "string"
- },
- "issuer_address": {
- "pattern": "^0x[0-9a-fA-F]{40}$",
- "type": "string"
- },
- "issuer_signature": {
- "pattern": "^0x[0-9a-fA-F]{130}$",
- "type": "string"
- },
- "principal_id": {
- "pattern": "^0x[0-9a-fA-F]{40}$",
- "type": "string"
- },
- "schema_version": {
- "const": "csc.delegated-confirmation-authority.v1",
- "type": "string"
- },
- "scope": {
- "const": "CONFIRM_CHINA_SUPPLY_CHECK",
- "type": "string"
- }
- },
- "required": [
- "schema_version",
- "delegation_id",
- "agent_id",
- "principal_id",
- "issuer_address",
- "intent_id",
- "scope",
- "input_version",
- "input_digest",
- "draft_digest",
- "issued_at",
- "expires_at",
- "authority_digest",
- "issuer_signature"
- ],
- "type": "object"
- },
- "mode": {
- "const": "DELEGATED_AGENT",
- "type": "string"
- }
- },
- "required": [
- "mode",
- "delegated_authority"
- ],
- "type": "object"
- }
- ]
- },
- "confirmed_at": {
- "$ref": "#/properties/purchase/anyOf/0/properties/confirmed_at"
- },
- "customer_confirmed_digest": {
- "$ref": "#/properties/purchase/anyOf/0/properties/customer_confirmed_digest"
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "buyer_stated": {
- "additionalProperties": false,
- "properties": {
- "destination": {
- "anyOf": [
- {
- "maxLength": 100,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "must_match": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "attribute": {
- "maxLength": 100,
- "minLength": 1,
- "type": "string"
- },
- "expected": {
- "maxLength": 100,
- "minLength": 1,
- "type": "string"
- },
- "provenance": {
- "const": "BUYER_STATED",
- "type": "string"
- }
- },
- "required": [
- "attribute",
- "expected",
- "provenance"
- ],
- "type": "object"
- },
- "maxItems": 5,
- "type": "array"
- },
- "provenance": {
- "const": "BUYER_STATED",
- "type": "string"
- },
- "quantity": {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "substitution_policy": {
- "enum": [
- "EXACT_ONLY",
- "SIMILAR_IF_MUST_MATCH"
- ],
- "type": "string"
- },
- "unit": {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "provenance",
- "quantity",
- "unit",
- "must_match",
- "substitution_policy",
- "destination"
- ],
- "type": "object"
- },
- "customer_chinese_required": {
- "const": false,
- "type": "boolean"
- },
- "derived": {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "anyOf": [
- {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "hard_requirement": {
- "const": false,
- "type": "boolean"
- },
- "product_family": {
- "anyOf": [
- {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "product_title": {
- "anyOf": [
- {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "provenance": {
- "const": "DERIVED",
- "type": "string"
- }
- },
- "required": [
- "provenance",
- "product_title",
- "product_family",
- "confidence",
- "hard_requirement"
- ],
- "type": "object"
- },
- "draft_digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "input_digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "input_version": {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "payment_effects": {
- "const": 0,
- "type": "number"
- },
- "price_version": {
- "const": "csc-agent-usdc-base-v1-299",
- "type": "string"
- },
- "product_id": {
- "const": "china_supply_check_v0",
- "type": "string"
- },
- "provider_effects": {
- "const": 0,
- "type": "number"
- },
- "reference_image": {
- "additionalProperties": false,
- "properties": {
- "bytes": {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "digest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "height": {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "identity_claim": {
- "const": "REFERENCE_BYTES_ONLY_NOT_PRODUCT_IDENTITY",
- "type": "string"
- },
- "mime": {
- "const": "image/png",
- "type": "string"
- },
- "provenance": {
- "const": "SOURCE_OBSERVED",
- "type": "string"
- },
- "width": {
- "exclusiveMinimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "provenance",
- "digest",
- "mime",
- "width",
- "height",
- "bytes",
- "identity_claim"
- ],
- "type": "object"
- },
- "requires_confirmation": {
- "const": true,
- "type": "boolean"
- },
- "schema_version": {
- "const": "csc.image-first.prepare.v1",
- "type": "string"
- },
- "unknown": {
- "additionalProperties": false,
- "properties": {
- "blocks_confirmation": {
- "const": false,
- "type": "boolean"
- },
- "fields": {
- "items": {
- "enum": [
- "product_title",
- "product_family",
- "destination"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "provenance": {
- "const": "UNKNOWN",
- "type": "string"
- }
- },
- "required": [
- "provenance",
- "fields",
- "blocks_confirmation"
- ],
- "type": "object"
- }
- },
- "required": [
- "schema_version",
- "product_id",
- "price_version",
- "input_version",
- "input_digest",
- "reference_image",
- "buyer_stated",
- "derived",
- "unknown",
- "customer_chinese_required",
- "requires_confirmation",
- "payment_effects",
- "provider_effects",
- "draft_digest"
- ],
- "type": "object"
- },
- "draft_digest": {
- "$ref": "#/properties/purchase/anyOf/0/properties/draft_digest"
- },
- "image_base64": {
- "maxLength": 27962028,
- "minLength": 1,
- "type": "string"
- },
- "intent_id": {
- "$ref": "#/properties/purchase/anyOf/0/properties/intent_id"
- }
- },
- "required": [
- "intent_id",
- "draft_digest",
- "customer_confirmed_digest",
- "confirmed_at",
- "draft",
- "confirmation"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confirmed_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "customer_confirmed_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "input": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "model": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "model"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "model_or_reference": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "must_match": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attribute": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "expected": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "attribute",
+ "expected"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "product_name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "quantity": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "substitution_allowed": {
+ "type": "boolean"
+ },
+ "unit": {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "input",
+ "quantity",
+ "unit",
+ "must_match",
+ "product_name",
+ "model_or_reference",
+ "substitution_allowed"
+ ],
+ "type": "object"
+ },
+ "draft_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "intent_id": {
+ "pattern": "^[A-Za-z0-9._:-]{1,128}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "intent_id",
+ "draft_digest",
+ "customer_confirmed_digest",
+ "confirmed_at",
+ "draft"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confirmation": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "acknowledgement": {
+ "maxLength": 512,
+ "minLength": 1,
+ "type": "string"
+ },
+ "mode": {
+ "const": "HUMAN",
+ "type": "string"
+ }
+ },
+ "required": [
+ "mode",
+ "acknowledgement"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "delegated_authority": {
+ "additionalProperties": false,
+ "properties": {
+ "agent_id": {
+ "pattern": "^0x[0-9a-fA-F]{40}$",
+ "type": "string"
+ },
+ "authority_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "delegation_id": {
+ "pattern": "^[A-Za-z0-9._:-]{1,128}$",
+ "type": "string"
+ },
+ "draft_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "expires_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "input_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "input_version": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "intent_id": {
+ "pattern": "^[A-Za-z0-9._:-]{1,128}$",
+ "type": "string"
+ },
+ "issued_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "issuer_address": {
+ "pattern": "^0x[0-9a-fA-F]{40}$",
+ "type": "string"
+ },
+ "issuer_signature": {
+ "pattern": "^0x[0-9a-fA-F]{130}$",
+ "type": "string"
+ },
+ "principal_id": {
+ "pattern": "^0x[0-9a-fA-F]{40}$",
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "csc.delegated-confirmation-authority.v1",
+ "type": "string"
+ },
+ "scope": {
+ "const": "CONFIRM_CHINA_SUPPLY_CHECK",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema_version",
+ "delegation_id",
+ "agent_id",
+ "principal_id",
+ "issuer_address",
+ "intent_id",
+ "scope",
+ "input_version",
+ "input_digest",
+ "draft_digest",
+ "issued_at",
+ "expires_at",
+ "authority_digest",
+ "issuer_signature"
+ ],
+ "type": "object"
+ },
+ "mode": {
+ "const": "DELEGATED_AGENT",
+ "type": "string"
+ }
+ },
+ "required": [
+ "mode",
+ "delegated_authority"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "confirmed_at": {
+ "$ref": "#/properties/purchase/anyOf/0/properties/confirmed_at"
+ },
+ "customer_confirmed_digest": {
+ "$ref": "#/properties/purchase/anyOf/0/properties/customer_confirmed_digest"
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "buyer_stated": {
+ "additionalProperties": false,
+ "properties": {
+ "destination": {
+ "anyOf": [
+ {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "must_match": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attribute": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "expected": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "provenance": {
+ "const": "BUYER_STATED",
+ "type": "string"
+ }
+ },
+ "required": [
+ "attribute",
+ "expected",
+ "provenance"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "provenance": {
+ "const": "BUYER_STATED",
+ "type": "string"
+ },
+ "quantity": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "substitution_policy": {
+ "enum": [
+ "EXACT_ONLY",
+ "SIMILAR_IF_MUST_MATCH"
+ ],
+ "type": "string"
+ },
+ "unit": {
+ "anyOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "provenance",
+ "quantity",
+ "unit",
+ "must_match",
+ "substitution_policy",
+ "destination"
+ ],
+ "type": "object"
+ },
+ "customer_chinese_required": {
+ "const": false,
+ "type": "boolean"
+ },
+ "derived": {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hard_requirement": {
+ "const": false,
+ "type": "boolean"
+ },
+ "product_family": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "product_title": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provenance": {
+ "const": "DERIVED",
+ "type": "string"
+ }
+ },
+ "required": [
+ "provenance",
+ "product_title",
+ "product_family",
+ "confidence",
+ "hard_requirement"
+ ],
+ "type": "object"
+ },
+ "draft_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "input_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "input_version": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "payment_effects": {
+ "const": 0,
+ "type": "number"
+ },
+ "price_version": {
+ "const": "csc-agent-usdc-base-v1-299",
+ "type": "string"
+ },
+ "product_id": {
+ "const": "china_supply_check_v0",
+ "type": "string"
+ },
+ "provider_effects": {
+ "const": 0,
+ "type": "number"
+ },
+ "reference_image": {
+ "additionalProperties": false,
+ "properties": {
+ "bytes": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "height": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "identity_claim": {
+ "const": "REFERENCE_BYTES_ONLY_NOT_PRODUCT_IDENTITY",
+ "type": "string"
+ },
+ "mime": {
+ "const": "image/png",
+ "type": "string"
+ },
+ "provenance": {
+ "const": "SOURCE_OBSERVED",
+ "type": "string"
+ },
+ "width": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "provenance",
+ "digest",
+ "mime",
+ "width",
+ "height",
+ "bytes",
+ "identity_claim"
+ ],
+ "type": "object"
+ },
+ "requires_confirmation": {
+ "const": true,
+ "type": "boolean"
+ },
+ "schema_version": {
+ "const": "csc.image-first.prepare.v1",
+ "type": "string"
+ },
+ "unknown": {
+ "additionalProperties": false,
+ "properties": {
+ "blocks_confirmation": {
+ "const": false,
+ "type": "boolean"
+ },
+ "fields": {
+ "items": {
+ "enum": [
+ "product_title",
+ "product_family",
+ "destination",
+ "quantity",
+ "unit"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "const": "UNKNOWN",
+ "type": "string"
+ }
+ },
+ "required": [
+ "provenance",
+ "fields",
+ "blocks_confirmation"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "schema_version",
+ "product_id",
+ "price_version",
+ "input_version",
+ "input_digest",
+ "reference_image",
+ "buyer_stated",
+ "derived",
+ "unknown",
+ "customer_chinese_required",
+ "requires_confirmation",
+ "payment_effects",
+ "provider_effects",
+ "draft_digest"
+ ],
+ "type": "object"
+ },
+ "draft_digest": {
+ "$ref": "#/properties/purchase/anyOf/0/properties/draft_digest"
+ },
+ "image_base64": {
+ "maxLength": 27962028,
+ "minLength": 1,
+ "type": "string"
+ },
+ "intent_id": {
+ "$ref": "#/properties/purchase/anyOf/0/properties/intent_id"
+ }
+ },
+ "required": [
+ "intent_id",
+ "draft_digest",
+ "customer_confirmed_digest",
+ "confirmed_at",
+ "draft",
+ "confirmation"
+ ],
+ "type": "object"
+ }
+]