{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractOfferMessage",
	"title": "DataspaceProtocolContractOfferMessage",
	"description": "Interface for the Dataspace Protocol contract offer message.",
	"type": "object",
	"properties": {
		"@context": {
			"$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
			"description": "The JSON-LD context."
		},
		"@type": {
			"const": "ContractOfferMessage",
			"description": "The type of the message."
		},
		"providerPid": {
			"type": "string",
			"description": "The provider id for the contract."
		},
		"consumerPid": {
			"type": "string",
			"description": "The consumer id for the contract."
		},
		"offer": {
			"$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferBase",
			"description": "The offer being requested."
		},
		"callbackAddress": {
			"type": "string",
			"description": "The base callback address for the provider to update the consumer on the state of the negotiation."
		}
	},
	"required": ["@context", "@type", "providerPid", "offer"]
}
