Overview
This is where we store Zod Schemas for our code base.
Update Vc Schemas from vc-schemas repo
Important: When updating ID3, we need to manually update types in the /compliance/providers/gbg folder that are derived from those because we customized them to handle unexpected non-array results.
Id Scan
npm run download-schema:IDScan
npm run generate-zod:IDScan
ID3
npm run download-schema:ID3
npm run generate-zod:ID3
ProofOfResidence
npm run download-schema:ProofOfResidence
npm run generate-zod:ProofOfResidence
IDScanSelfie
npm run download-schema:IDScanSelfie
npm run generate-zod:IDScanSelfie
IDScanPassport
npm run download-schema:IDScanPassport
npm run generate-zod:IDScanPassport
OPA Client
Opa client is automatically generated client for interacting with open-policy-agent API.
OPA api is very stable and not subject to many changes, so don't expect this to change often
Generate new API client
// TODO: remove deprecated docs
Q: I don't think this is only used for API anymore, is it? Where is this information suppsoed to be?
In case of changes, run pnpm run generate-typescript-client
. It uses publicly stored latest version of OPA API schema