{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://machinerealms.com/schemas/machine-offer.schema.json","title":"Machine Realms Machine Offer","type":"object","required":["version","offer_id","provider_entity_id","name","status","pricing","inputs","outputs","authorization","fulfillment","handoff"],"properties":{"version":{"const":"1"},"offer_id":{"type":"string","pattern":"^[a-z0-9][a-z0-9:._-]{2,191}$"},"provider_entity_id":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"status":{"enum":["active","planned","unavailable","unknown"]},"pricing":{"type":"object","required":["currency","variants"],"properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"variants":{"type":"array","minItems":1,"items":{"type":"object","required":["id","amount_minor","billing_period"],"properties":{"id":{"type":"string"},"amount_minor":{"type":"integer","minimum":0},"billing_period":{"enum":["one_time","month","year","usage"]}},"additionalProperties":false}},"pricing_source":{"type":["string","null"],"format":"uri"},"observed_at":{"type":["string","null"],"format":"date-time"}},"additionalProperties":false},"inputs":{"type":"array","items":{"type":"string"}},"outputs":{"type":"array","items":{"type":"string"}},"authorization":{"type":"object","required":["human_confirmation_required","machine_realms_can_commit"],"properties":{"human_confirmation_required":{"type":"boolean"},"machine_realms_can_commit":{"const":false},"provider_authentication":{"type":["string","null"]}},"additionalProperties":false},"fulfillment":{"type":"object","required":["provider","delivery_state_observed_by_machine_realms"],"properties":{"provider":{"type":"string"},"delivery_state_observed_by_machine_realms":{"const":false}},"additionalProperties":false},"handoff":{"type":"object","required":["url","machine_realms_role","settlement_observed_by_machine_realms","wallet_signing_enabled","payout_capability_enabled"],"properties":{"url":{"type":"string","format":"uri"},"provider_url":{"type":"string","format":"uri"},"attribution_endpoint":{"type":"string","format":"uri"},"attribution_state":{"enum":["initiation_only"]},"external_navigation_observed":{"const":false},"tracking_parameters_appended":{"const":false},"machine_realms_role":{"const":"discovery_and_handoff_only"},"settlement_observed_by_machine_realms":{"const":false},"wallet_signing_enabled":{"const":false},"payout_capability_enabled":{"const":false},"payment_processor":{"type":["string","null"]}},"additionalProperties":false},"terms_url":{"type":["string","null"],"format":"uri"}},"additionalProperties":false}