Creates an offchain Claim. Consider pairing this with createTriple for onchain Claim creation. The Intuition Portal user journey for creating a Claim combines both of these interactions.
POSThttps://api.intuition.systems/claims
awaitfetch(`${apiUrl}/claims`, { method:'POST',"headers": {"Content-Type":"application/json","x-api-key": <API_KEY> },"body": {"subject":"bxxxxxxx-6xxx-4xxx-8xxx-3xxxxxxxxxxx",// id of the subject Identity"predicate":"bxxxxxxx-6xxx-4xxx-8xxx-3xxxxxxxxxxx",// id of the predicate Identity"object":"bxxxxxxx-6xxx-4xxx-8xxx-3xxxxxxxxxxx",// id of the object Identity"creator":"0x...81",// Ethereum address of the Claim creator } })
// if using Zod, you can directly infer:exporttypeClaim=z.infer<typeof ClaimSchema>// used in another interface:interfaceOffChainClaimFetcherData { success:'success'|'error' claim:Claim}// if not using Zod, here's an example of the Claim type:typeClaim= { claim_id:string; vault_id:string; created_at:string; updated_at:string; };}