Add v1 schema examples for offer entitlement and issuer manifest
This commit is contained in:
parent
4e5c7d7077
commit
b3b18a2602
@ -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
|
||||
```
|
||||
|
||||
|
||||
18
docs/schemas/examples/entitlement.v1.example.json
Normal file
18
docs/schemas/examples/entitlement.v1.example.json
Normal file
@ -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"
|
||||
}
|
||||
20
docs/schemas/examples/issuer-manifest.v1.example.json
Normal file
20
docs/schemas/examples/issuer-manifest.v1.example.json
Normal file
@ -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"
|
||||
}
|
||||
32
docs/schemas/examples/offer.v1.example.json
Normal file
32
docs/schemas/examples/offer.v1.example.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user