Skip to content

Commit c0748be

Browse files
0.76 hey-api
1 parent d0df911 commit c0748be

File tree

5 files changed

+12
-118
lines changed

5 files changed

+12
-118
lines changed

packages/engine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"devDependencies": {
2626
"@biomejs/biome": "2.0.4",
27-
"@hey-api/openapi-ts": "0.77.0",
27+
"@hey-api/openapi-ts": "0.76.0",
2828
"rimraf": "6.0.1",
2929
"tslib": "^2.8.1"
3030
},

packages/engine/src/client/client/client.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ export const createClient = (config: Config = {}): Client => {
4646
});
4747
}
4848

49-
if (opts.requestValidator) {
50-
await opts.requestValidator(opts);
51-
}
52-
5349
if (opts.body && opts.bodySerializer) {
5450
opts.body = opts.bodySerializer(opts.body);
5551
}

packages/engine/src/client/core/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ 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>;
9387
/**
9488
* A function transforming response data before it's returned. This is useful
9589
* for post-processing data, e.g. converting ISO strings into Date objects.

packages/engine/src/client/types.gen.ts

Lines changed: 6 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ export type BatchResultItemEncodeResultSuccessItemEngineError =
121121
type: "RPC_CONFIG_ERROR";
122122
}
123123
| {
124-
contract_address?: null | AddressDef;
124+
contractAddress?: null | AddressDef;
125125
/**
126126
* Chain ID
127127
*/
128-
chain_id: number;
128+
chainId: number;
129129
/**
130130
* Human-readable error message
131131
*/
@@ -204,11 +204,11 @@ export type BatchResultItemReadResultSuccessItemEngineError =
204204
type: "RPC_CONFIG_ERROR";
205205
}
206206
| {
207-
contract_address?: null | AddressDef;
207+
contractAddress?: null | AddressDef;
208208
/**
209209
* Chain ID
210210
*/
211-
chain_id: number;
211+
chainId: number;
212212
/**
213213
* Human-readable error message
214214
*/
@@ -296,11 +296,11 @@ export type BatchResultItemSignResultDataEngineError =
296296
type: "RPC_CONFIG_ERROR";
297297
}
298298
| {
299-
contract_address?: null | AddressDef;
299+
contractAddress?: null | AddressDef;
300300
/**
301301
* Chain ID
302302
*/
303-
chain_id: number;
303+
chainId: number;
304304
/**
305305
* Human-readable error message
306306
*/
@@ -967,18 +967,6 @@ export type WriteContractData = {
967967
*/
968968
body: WriteContractRequest;
969969
headers?: {
970-
/**
971-
* Thirdweb client ID, passed along with the service key
972-
*/
973-
"x-thirdweb-client-id"?: string | null;
974-
/**
975-
* Thirdweb service key, passed when using the client ID
976-
*/
977-
"x-thirdweb-service-key"?: string | null;
978-
/**
979-
* Thirdweb secret key, passed standalone
980-
*/
981-
"x-thirdweb-secret-key"?: string | null;
982970
/**
983971
* Vault access token
984972
*/
@@ -1005,18 +993,6 @@ export type SendTransactionData = {
1005993
*/
1006994
body: SendTransactionRequest;
1007995
headers?: {
1008-
/**
1009-
* Thirdweb client ID, passed along with the service key
1010-
*/
1011-
"x-thirdweb-client-id"?: string | null;
1012-
/**
1013-
* Thirdweb service key, passed when using the client ID
1014-
*/
1015-
"x-thirdweb-service-key"?: string | null;
1016-
/**
1017-
* Thirdweb secret key, passed standalone
1018-
*/
1019-
"x-thirdweb-secret-key"?: string | null;
1020996
/**
1021997
* Vault access token
1022998
*/
@@ -1043,18 +1019,6 @@ export type SignMessageData = {
10431019
*/
10441020
body: SignMessageRequest;
10451021
headers?: {
1046-
/**
1047-
* Thirdweb client ID, passed along with the service key
1048-
*/
1049-
"x-thirdweb-client-id"?: string | null;
1050-
/**
1051-
* Thirdweb service key, passed when using the client ID
1052-
*/
1053-
"x-thirdweb-service-key"?: string | null;
1054-
/**
1055-
* Thirdweb secret key, passed standalone
1056-
*/
1057-
"x-thirdweb-secret-key"?: string | null;
10581022
/**
10591023
* Vault access token
10601024
*/
@@ -1081,18 +1045,6 @@ export type SignTypedDataData = {
10811045
*/
10821046
body: SignTypedDataRequest;
10831047
headers?: {
1084-
/**
1085-
* Thirdweb client ID, passed along with the service key
1086-
*/
1087-
"x-thirdweb-client-id"?: string | null;
1088-
/**
1089-
* Thirdweb service key, passed when using the client ID
1090-
*/
1091-
"x-thirdweb-service-key"?: string | null;
1092-
/**
1093-
* Thirdweb secret key, passed standalone
1094-
*/
1095-
"x-thirdweb-secret-key"?: string | null;
10961048
/**
10971049
* Vault access token
10981050
*/
@@ -1118,20 +1070,6 @@ export type ReadContractData = {
11181070
* Read contract request
11191071
*/
11201072
body: ReadRequest;
1121-
headers?: {
1122-
/**
1123-
* Thirdweb client ID, passed along with the service key
1124-
*/
1125-
"x-thirdweb-client-id"?: string | null;
1126-
/**
1127-
* Thirdweb service key, passed when using the client ID
1128-
*/
1129-
"x-thirdweb-service-key"?: string | null;
1130-
/**
1131-
* Thirdweb secret key, passed standalone
1132-
*/
1133-
"x-thirdweb-secret-key"?: string | null;
1134-
};
11351073
path?: never;
11361074
query?: never;
11371075
url: "/v1/read/contract";
@@ -1152,20 +1090,6 @@ export type EncodeContractData = {
11521090
* Encode contract request
11531091
*/
11541092
body: EncodeRequest;
1155-
headers?: {
1156-
/**
1157-
* Thirdweb client ID, passed along with the service key
1158-
*/
1159-
"x-thirdweb-client-id"?: string | null;
1160-
/**
1161-
* Thirdweb service key, passed when using the client ID
1162-
*/
1163-
"x-thirdweb-service-key"?: string | null;
1164-
/**
1165-
* Thirdweb secret key, passed standalone
1166-
*/
1167-
"x-thirdweb-secret-key"?: string | null;
1168-
};
11691093
path?: never;
11701094
query?: never;
11711095
url: "/v1/encode/contract";

pnpm-lock.yaml

Lines changed: 5 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)