File tree Expand file tree Collapse file tree 5 files changed +323
-310
lines changed Expand file tree Collapse file tree 5 files changed +323
-310
lines changed Original file line number Diff line number Diff line change 2424 ],
2525 "devDependencies" : {
2626 "@biomejs/biome" : " 2.0.4" ,
27- "@hey-api/openapi-ts" : " 0.76 .0" ,
27+ "@hey-api/openapi-ts" : " 0.77 .0" ,
2828 "rimraf" : " 6.0.1" ,
2929 "tslib" : " ^2.8.1"
3030 },
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ export const createClient = (config: Config = {}): Client => {
4646 } ) ;
4747 }
4848
49+ if ( opts . requestValidator ) {
50+ await opts . requestValidator ( opts ) ;
51+ }
52+
4953 if ( opts . body && opts . bodySerializer ) {
5054 opts . body = opts . bodySerializer ( opts . body ) ;
5155 }
Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ export interface Config {
8484 * {@link https://swagger.io/docs/specification/serialization/#query View examples}
8585 */
8686 querySerializer ?: QuerySerializer | QuerySerializerOptions ;
87+ /**
88+ * A function validating request data. This is useful if you want to ensure
89+ * the request conforms to the desired shape, so it can be safely sent to
90+ * the server.
91+ */
92+ requestValidator ?: ( data : unknown ) => Promise < unknown > ;
8793 /**
8894 * A function transforming response data before it's returned. This is useful
8995 * for post-processing data, e.g. converting ISO strings into Date objects.
Original file line number Diff line number Diff line change @@ -819,7 +819,18 @@ export type SigningOptions =
819819 } )
820820 | ( Erc4337SigningOptions & {
821821 type : "ERC4337" ;
822- } ) ;
822+ } )
823+ | {
824+ type : "auto" ;
825+ /**
826+ * The address to sign from
827+ */
828+ from : string ;
829+ /**
830+ * The chain ID for the signing operation
831+ */
832+ chainId : number ;
833+ } ;
823834
824835/**
825836 * Execution Option Variants
You can’t perform that action at this time.
0 commit comments