diff --git a/README.md b/README.md index 28b117f..2d4dd32 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ docs/ offer.v1.schema.json entitlement.v1.schema.json issuer-manifest.v1.schema.json + examples/ + offer.v1.example.json + entitlement.v1.example.json + issuer-manifest.v1.example.json README.md ``` diff --git a/docs/schemas/examples/entitlement.v1.example.json b/docs/schemas/examples/entitlement.v1.example.json new file mode 100644 index 0000000..7665b95 --- /dev/null +++ b/docs/schemas/examples/entitlement.v1.example.json @@ -0,0 +1,18 @@ +{ + "schema_version": "entitlement.v1", + "entitlement_id": "ent:8453:0x3ea6cbf98d23e2cf7b6f4f9bb1fb4f50b710f2d5:000001", + "offer_id": "edut.crm.pro.annual", + "issuer_id": "edut.firstparty", + "wallet_address": "0x3ea6cbf98d23e2cf7b6f4f9bb1fb4f50b710f2d5", + "workspace_id": "workspace.work.acme", + "state": "active", + "purchase": { + "tx_hash": "0x1111111111111111111111111111111111111111111111111111111111111111", + "chain_id": 8453, + "currency": "USDC", + "amount_atomic": "199000000", + "policy_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "issued_at": "2026-02-17T00:02:12Z", + "updated_at": "2026-02-17T00:02:12Z" +} diff --git a/docs/schemas/examples/issuer-manifest.v1.example.json b/docs/schemas/examples/issuer-manifest.v1.example.json new file mode 100644 index 0000000..6433169 --- /dev/null +++ b/docs/schemas/examples/issuer-manifest.v1.example.json @@ -0,0 +1,20 @@ +{ + "schema_version": "issuer_manifest.v1", + "issuer_id": "edut.firstparty", + "display_name": "Edut First-Party", + "contact_email": "issuer@edut.ai", + "signing_keys": [ + { + "key_id": "edut-firstparty-signing-01", + "algorithm": "ed25519", + "public_key": "MCowBQYDK2VwAyEAeD3zvGSL4J49M5Ao8KrVx8z8tmXJwP3R8ndnQn5gK0Q=", + "status": "active" + } + ], + "capabilities": { + "can_publish_offers": true, + "can_issue_entitlements": true, + "requires_review": false + }, + "published_at": "2026-02-17T00:00:00Z" +} diff --git a/docs/schemas/examples/offer.v1.example.json b/docs/schemas/examples/offer.v1.example.json new file mode 100644 index 0000000..8ed05f2 --- /dev/null +++ b/docs/schemas/examples/offer.v1.example.json @@ -0,0 +1,32 @@ +{ + "schema_version": "offer.v1", + "offer_id": "edut.crm.pro.annual", + "issuer_id": "edut.firstparty", + "title": "EDUT CRM Pro", + "summary": "Workspace-bound CRM module entitlement with annual billing.", + "status": "active", + "pricing": { + "currency": "USDC", + "amount_atomic": "199000000", + "decimals": 6, + "chain_id": 8453 + }, + "policies": { + "member_only": true, + "workspace_bound": true, + "transferable": false, + "max_per_wallet": 5, + "requires_admin_approval": false + }, + "entitlement": { + "type": "module_license", + "scope": "workspace", + "runtime_policy_ref": "policy.crm.pro.v1" + }, + "created_at": "2026-02-17T00:00:00Z", + "updated_at": "2026-02-17T00:00:00Z", + "metadata": { + "category": "business", + "support_tier": "standard" + } +}