Raw schema
{
"type": "object",
"properties": {
"purchase": {
"anyOf": [
{
"type": "object",
"properties": {
"intent_id": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,128}$"
},
"draft_digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"customer_confirmed_digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"confirmed_at": {
"type": "string",
"format": "date-time"
},
"draft": {
"type": "object",
"properties": {
"input": {
"anyOf": [
{
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"model": {
"type": "string"
}
},
"required": [
"model"
],
"additionalProperties": false
}
]
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0
},
"unit": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"must_match": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"expected": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"required": [
"attribute",
"expected"
],
"additionalProperties": false
},
"maxItems": 5
},
"product_name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"model_or_reference": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"substitution_allowed": {
"type": "boolean"
}
},
"required": [
"input",
"quantity",
"unit",
"must_match",
"product_name",
"model_or_reference",
"substitution_allowed"
],
"additionalProperties": false
}
},
"required": [
"intent_id",
"draft_digest",
"customer_confirmed_digest",
"confirmed_at",
"draft"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"intent_id": {
"$ref": "#/properties/purchase/anyOf/0/properties/intent_id"
},
"draft_digest": {
"$ref": "#/properties/purchase/anyOf/0/properties/draft_digest"
},
"customer_confirmed_digest": {
"$ref": "#/properties/purchase/anyOf/0/properties/customer_confirmed_digest"
},
"confirmed_at": {
"$ref": "#/properties/purchase/anyOf/0/properties/confirmed_at"
},
"draft": {
"type": "object",
"properties": {
"qualification_policy": {
"type": "string",
"enum": [
"QUALIFIED_RFQ_CANDIDATE_AND_VERIFIED_SHORTAGE_V1",
"ACTIONABLE_RFQ_CANDIDATE_V2"
]
},
"selection_contract": {
"type": "string",
"enum": [
"SEEKAPI_CSC_SELECTION_TRANSPARENCY_AND_AGENT_TRUST_V1",
"CSC_PRODUCT_FIRST_FACTORY_TIER_SELECTION_V2"
]
},
"product_link": {
"type": "object",
"properties": {
"observation": {
"type": "object",
"properties": {
"schema_version": {
"type": "string",
"const": "csc.product-link.observation.v1"
},
"original_url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"resolved_url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"canonical_url": {
"anyOf": [
{
"type": "string",
"format": "uri",
"maxLength": 2048
},
{
"type": "null"
}
]
},
"observed_at": {
"type": "string",
"format": "date-time"
},
"title": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 200
},
{
"type": "null"
}
]
},
"provenance": {
"type": "string",
"enum": [
"SOURCE_OBSERVED",
"UNKNOWN"
]
},
"source": {
"type": "string",
"enum": [
"JSON_LD",
"OPEN_GRAPH",
"UNKNOWN"
]
}
},
"required": [
"value",
"provenance",
"source"
],
"additionalProperties": false
},
"brand": {
"$ref": "#/properties/purchase/anyOf/1/properties/draft/properties/product_link/properties/observation/properties/title"
},
"model": {
"$ref": "#/properties/purchase/anyOf/1/properties/draft/properties/product_link/properties/observation/properties/title"
},
"variant": {
"$ref": "#/properties/purchase/anyOf/1/properties/draft/properties/product_link/properties/observation/properties/title"
},
"specification": {
"$ref": "#/properties/purchase/anyOf/1/properties/draft/properties/product_link/properties/observation/properties/title"
},
"image_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"identity_claim": {
"type": "string",
"const": "PUBLIC_PAGE_METADATA_NOT_VERIFIED_IDENTITY"
}
},
"required": [
"schema_version",
"original_url",
"resolved_url",
"canonical_url",
"observed_at",
"title",
"brand",
"model",
"variant",
"specification",
"image_sha256",
"identity_claim"
],
"additionalProperties": false
},
"confirmed_title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"buyer_confirmed": {
"type": "boolean",
"const": true
},
"buyer_notes": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"required": [
"observation",
"confirmed_title",
"buyer_confirmed"
],
"additionalProperties": false
},
"schema_version": {
"type": "string",
"const": "csc.image-first.prepare.v1"
},
"product_id": {
"type": "string",
"const": "china_supply_check_v0"
},
"price_version": {
"type": "string",
"const": "csc-agent-usdc-base-v1-299"
},
"input_version": {
"type": "integer",
"exclusiveMinimum": 0
},
"input_digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"reference_image": {
"type": "object",
"properties": {
"provenance": {
"type": "string",
"const": "SOURCE_OBSERVED"
},
"digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"mime": {
"type": "string",
"const": "image/png"
},
"width": {
"type": "integer",
"exclusiveMinimum": 0
},
"height": {
"type": "integer",
"exclusiveMinimum": 0
},
"bytes": {
"type": "integer",
"exclusiveMinimum": 0
},
"identity_claim": {
"type": "string",
"const": "REFERENCE_BYTES_ONLY_NOT_PRODUCT_IDENTITY"
}
},
"required": [
"provenance",
"digest",
"mime",
"width",
"height",
"bytes",
"identity_claim"
],
"additionalProperties": false
},
"buyer_stated": {
"type": "object",
"properties": {
"provenance": {
"type": "string",
"const": "BUYER_STATED"
},
"quantity": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0
},
{
"type": "null"
}
]
},
"unit": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 32
},
{
"type": "null"
}
]
},
"must_match": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"expected": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"provenance": {
"type": "string",
"const": "BUYER_STATED"
}
},
"required": [
"attribute",
"expected",
"provenance"
],
"additionalProperties": false
},
"maxItems": 5
},
"substitution_policy": {
"type": "string",
"enum": [
"EXACT_ONLY",
"SIMILAR_IF_MUST_MATCH"
]
},
"destination": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"provenance",
"quantity",
"unit",
"must_match",
"substitution_policy",
"destination"
],
"additionalProperties": false
},
"derived": {
"type": "object",
"properties": {
"provenance": {
"type": "string",
"const": "DERIVED"
},
"product_title": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 200
},
{
"type": "null"
}
]
},
"product_family": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 200
},
{
"type": "null"
}
]
},
"confidence": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 1
},
{
"type": "null"
}
]
},
"hard_requirement": {
"type": "boolean",
"const": false
}
},
"required": [
"provenance",
"product_title",
"product_family",
"confidence",
"hard_requirement"
],
"additionalProperties": false
},
"unknown": {
"type": "object",
"properties": {
"provenance": {
"type": "string",
"const": "UNKNOWN"
},
"fields": {
"type": "array",
"items": {
"type": "string",
"enum": [
"product_title",
"product_family",
"destination",
"quantity",
"unit"
]
}
},
"blocks_confirmation": {
"type": "boolean",
"const": false
}
},
"required": [
"provenance",
"fields",
"blocks_confirmation"
],
"additionalProperties": false
},
"customer_chinese_required": {
"type": "boolean",
"const": false
},
"requires_confirmation": {
"type": "boolean",
"const": true
},
"payment_effects": {
"type": "number",
"const": 0
},
"provider_effects": {
"type": "number",
"const": 0
},
"draft_digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
}
},
"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"
],
"additionalProperties": false
},
"source_receipt": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$"
},
"image_base64": {
"type": "string",
"minLength": 1,
"maxLength": 27962028
},
"confirmation": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "HUMAN"
},
"acknowledgement": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"mode",
"acknowledgement"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "DELEGATED_AGENT"
},
"delegated_authority": {
"type": "object",
"properties": {
"schema_version": {
"type": "string",
"const": "csc.delegated-confirmation-authority.v1"
},
"delegation_id": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,128}$"
},
"agent_id": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"principal_id": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"issuer_address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"intent_id": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,128}$"
},
"scope": {
"type": "string",
"const": "CONFIRM_CHINA_SUPPLY_CHECK"
},
"input_version": {
"type": "integer",
"exclusiveMinimum": 0
},
"input_digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"draft_digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"issued_at": {
"type": "string",
"format": "date-time"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"authority_digest": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"issuer_signature": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{130}$"
}
},
"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"
],
"additionalProperties": false
}
},
"required": [
"mode",
"delegated_authority"
],
"additionalProperties": false
}
]
}
},
"required": [
"intent_id",
"draft_digest",
"customer_confirmed_digest",
"confirmed_at",
"draft",
"confirmation"
],
"additionalProperties": false
}
]
}
},
"required": [
"purchase"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}