@nexeraprotocol/smart-wallet-schemas
v1.8.108
Published
This is where we store Zod Schemas for our code base.
Downloads
2
Readme
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
In case of changes, run pnpm run generate-typescript-client
. It uses publicly stored latest version of OPA API schema
From mono-repo, run pnpm run generate-api-client
.
Adding Entrypoints
If you need to add entrypoints to expose additional schemas in new files, use:
pnpm preconstruct dev