Skip to content

Commit 126ec29

Browse files
SDK regeneration
Unable to analyze changes with AI, incrementing PATCH version.
1 parent 7c75412 commit 126ec29

107 files changed

Lines changed: 19 additions & 3616 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"generatorName": "fernapi/fern-typescript-sdk",
44
"generatorVersion": "3.28.11",
55
"generatorConfig": {
6-
"noSerdeLayer": false
6+
"noSerdeLayer": true
77
}
88
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const client = new FernAutopilotTestApiClient({ environment: "YOUR_BASE_URL" });
2626
await client.imdb.createMovie({
2727
title: "title",
2828
rating: 1.1,
29-
moreMetadata: 1,
29+
more_metadata: 1,
3030
rank: 1
3131
});
3232
```

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.2 - 2026-01-29
2+
* SDK regeneration
3+
* Unable to analyze changes with AI, incrementing PATCH version.
4+
15
## 2.0.1 - 2026-01-29
26
* SDK regeneration
37
* Unable to analyze changes with AI, incrementing PATCH version.

package.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"private": false,
55
"repository": "github:fern-demo/autopilot-typescript-sdk",
66
"type": "commonjs",
@@ -20,18 +20,6 @@
2020
},
2121
"default": "./dist/cjs/index.js"
2222
},
23-
"./serialization": {
24-
"types": "./dist/cjs/serialization/index.d.ts",
25-
"import": {
26-
"types": "./dist/esm/serialization/index.d.mts",
27-
"default": "./dist/esm/serialization/index.mjs"
28-
},
29-
"require": {
30-
"types": "./dist/cjs/serialization/index.d.ts",
31-
"default": "./dist/cjs/serialization/index.js"
32-
},
33-
"default": "./dist/cjs/serialization/index.js"
34-
},
3523
"./package.json": "./package.json"
3624
},
3725
"files": [

reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add a movie to the database
3030
await client.imdb.createMovie({
3131
title: "title",
3232
rating: 1.1,
33-
moreMetadata: 1,
33+
more_metadata: 1,
3434
rank: 1
3535
});
3636

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export class FernAutopilotTestApiClient {
2323
{
2424
"X-Fern-Language": "JavaScript",
2525
"X-Fern-SDK-Name": "",
26-
"X-Fern-SDK-Version": "2.0.1",
27-
"User-Agent": "/2.0.1",
26+
"X-Fern-SDK-Version": "2.0.2",
27+
"User-Agent": "/2.0.2",
2828
"X-Fern-Runtime": core.RUNTIME.type,
2929
"X-Fern-Runtime-Version": core.RUNTIME.version,
3030
},

src/api/resources/imdb/client/Client.ts

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
44
import { mergeHeaders } from "../../../../core/headers.js";
55
import * as core from "../../../../core/index.js";
66
import * as errors from "../../../../errors/index.js";
7-
import * as serializers from "../../../../serialization/index.js";
87
import * as FernAutopilotTestApi from "../../../index.js";
98

109
export declare namespace Imdb {
@@ -30,7 +29,7 @@ export class Imdb {
3029
* await client.imdb.createMovie({
3130
* title: "title",
3231
* rating: 1.1,
33-
* moreMetadata: 1,
32+
* more_metadata: 1,
3433
* rank: 1
3534
* })
3635
*/
@@ -57,27 +56,15 @@ export class Imdb {
5756
contentType: "application/json",
5857
queryParameters: requestOptions?.queryParams,
5958
requestType: "json",
60-
body: serializers.CreateMovieRequest.jsonOrThrow(request, {
61-
unrecognizedObjectKeys: "strip",
62-
omitUndefined: true,
63-
}),
59+
body: request,
6460
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
6561
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
6662
abortSignal: requestOptions?.abortSignal,
6763
fetchFn: this._options?.fetch,
6864
logging: this._options.logging,
6965
});
7066
if (_response.ok) {
71-
return {
72-
data: serializers.MovieId.parseOrThrow(_response.body, {
73-
unrecognizedObjectKeys: "passthrough",
74-
allowUnrecognizedUnionMembers: true,
75-
allowUnrecognizedEnumValues: true,
76-
skipValidation: true,
77-
breadcrumbsPrefix: ["response"],
78-
}),
79-
rawResponse: _response.rawResponse,
80-
};
67+
return { data: _response.body as FernAutopilotTestApi.MovieId, rawResponse: _response.rawResponse };
8168
}
8269

8370
if (_response.error.reason === "status-code") {
@@ -137,7 +124,7 @@ export class Imdb {
137124
url: core.url.join(
138125
(await core.Supplier.get(this._options.baseUrl)) ??
139126
(await core.Supplier.get(this._options.environment)),
140-
`/movies/${core.url.encodePathParam(serializers.MovieId.jsonOrThrow(id, { omitUndefined: true }))}`,
127+
`/movies/${core.url.encodePathParam(id)}`,
141128
),
142129
method: "GET",
143130
headers: _headers,
@@ -149,29 +136,14 @@ export class Imdb {
149136
logging: this._options.logging,
150137
});
151138
if (_response.ok) {
152-
return {
153-
data: serializers.Movie.parseOrThrow(_response.body, {
154-
unrecognizedObjectKeys: "passthrough",
155-
allowUnrecognizedUnionMembers: true,
156-
allowUnrecognizedEnumValues: true,
157-
skipValidation: true,
158-
breadcrumbsPrefix: ["response"],
159-
}),
160-
rawResponse: _response.rawResponse,
161-
};
139+
return { data: _response.body as FernAutopilotTestApi.Movie, rawResponse: _response.rawResponse };
162140
}
163141

164142
if (_response.error.reason === "status-code") {
165143
switch (_response.error.statusCode) {
166144
case 404:
167145
throw new FernAutopilotTestApi.MovieDoesNotExistError(
168-
serializers.MovieId.parseOrThrow(_response.error.body, {
169-
unrecognizedObjectKeys: "passthrough",
170-
allowUnrecognizedUnionMembers: true,
171-
allowUnrecognizedEnumValues: true,
172-
skipValidation: true,
173-
breadcrumbsPrefix: ["response"],
174-
}),
146+
_response.error.body as FernAutopilotTestApi.MovieId,
175147
_response.rawResponse,
176148
);
177149
default:

src/api/resources/imdb/types/CreateMovieRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
export interface CreateMovieRequest {
44
title: string;
55
rating: number;
6-
moreMetadata: number;
6+
more_metadata: number;
77
rank: number;
88
}

src/core/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from "./fetcher/index.js";
22
export * as logging from "./logging/index.js";
33
export * from "./runtime/index.js";
4-
export * as serialization from "./schemas/index.js";
54
export * as url from "./url/index.js";

src/core/schemas/Schema.ts

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)