Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"generatorName": "fernapi/fern-typescript-sdk",
"generatorVersion": "3.28.11",
"generatorConfig": {
"noSerdeLayer": false
"noSerdeLayer": true
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const client = new FernAutopilotTestApiClient({ environment: "YOUR_BASE_URL" });
await client.imdb.createMovie({
title: "title",
rating: 1.1,
moreMetadata: 1,
more_metadata: 1,
rank: 1
});
```
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.2 - 2026-01-29
* SDK regeneration
* Unable to analyze changes with AI, incrementing PATCH version.

## 2.0.1 - 2026-01-29
* SDK regeneration
* Unable to analyze changes with AI, incrementing PATCH version.
Expand Down
14 changes: 1 addition & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "",
"version": "2.0.1",
"version": "2.0.2",
"private": false,
"repository": "github:fern-demo/autopilot-typescript-sdk",
"type": "commonjs",
Expand All @@ -20,18 +20,6 @@
},
"default": "./dist/cjs/index.js"
},
"./serialization": {
"types": "./dist/cjs/serialization/index.d.ts",
"import": {
"types": "./dist/esm/serialization/index.d.mts",
"default": "./dist/esm/serialization/index.mjs"
},
"require": {
"types": "./dist/cjs/serialization/index.d.ts",
"default": "./dist/cjs/serialization/index.js"
},
"default": "./dist/cjs/serialization/index.js"
},
"./package.json": "./package.json"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add a movie to the database
await client.imdb.createMovie({
title: "title",
rating: 1.1,
moreMetadata: 1,
more_metadata: 1,
rank: 1
});

Expand Down
4 changes: 2 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export class FernAutopilotTestApiClient {
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "2.0.1",
"User-Agent": "/2.0.1",
"X-Fern-SDK-Version": "2.0.2",
"User-Agent": "/2.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
40 changes: 6 additions & 34 deletions src/api/resources/imdb/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
import { mergeHeaders } from "../../../../core/headers.js";
import * as core from "../../../../core/index.js";
import * as errors from "../../../../errors/index.js";
import * as serializers from "../../../../serialization/index.js";
import * as FernAutopilotTestApi from "../../../index.js";

export declare namespace Imdb {
Expand All @@ -30,7 +29,7 @@ export class Imdb {
* await client.imdb.createMovie({
* title: "title",
* rating: 1.1,
* moreMetadata: 1,
* more_metadata: 1,
* rank: 1
* })
*/
Expand All @@ -57,27 +56,15 @@ export class Imdb {
contentType: "application/json",
queryParameters: requestOptions?.queryParams,
requestType: "json",
body: serializers.CreateMovieRequest.jsonOrThrow(request, {
unrecognizedObjectKeys: "strip",
omitUndefined: true,
}),
body: request,
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
abortSignal: requestOptions?.abortSignal,
fetchFn: this._options?.fetch,
logging: this._options.logging,
});
if (_response.ok) {
return {
data: serializers.MovieId.parseOrThrow(_response.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
skipValidation: true,
breadcrumbsPrefix: ["response"],
}),
rawResponse: _response.rawResponse,
};
return { data: _response.body as FernAutopilotTestApi.MovieId, rawResponse: _response.rawResponse };
}

if (_response.error.reason === "status-code") {
Expand Down Expand Up @@ -137,7 +124,7 @@ export class Imdb {
url: core.url.join(
(await core.Supplier.get(this._options.baseUrl)) ??
(await core.Supplier.get(this._options.environment)),
`/movies/${core.url.encodePathParam(serializers.MovieId.jsonOrThrow(id, { omitUndefined: true }))}`,
`/movies/${core.url.encodePathParam(id)}`,
),
method: "GET",
headers: _headers,
Expand All @@ -149,29 +136,14 @@ export class Imdb {
logging: this._options.logging,
});
if (_response.ok) {
return {
data: serializers.Movie.parseOrThrow(_response.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
skipValidation: true,
breadcrumbsPrefix: ["response"],
}),
rawResponse: _response.rawResponse,
};
return { data: _response.body as FernAutopilotTestApi.Movie, rawResponse: _response.rawResponse };
}

if (_response.error.reason === "status-code") {
switch (_response.error.statusCode) {
case 404:
throw new FernAutopilotTestApi.MovieDoesNotExistError(
serializers.MovieId.parseOrThrow(_response.error.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
skipValidation: true,
breadcrumbsPrefix: ["response"],
}),
_response.error.body as FernAutopilotTestApi.MovieId,
_response.rawResponse,
);
default:
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/imdb/types/CreateMovieRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
export interface CreateMovieRequest {
title: string;
rating: number;
moreMetadata: number;
more_metadata: number;
rank: number;
}
1 change: 0 additions & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from "./fetcher/index.js";
export * as logging from "./logging/index.js";
export * from "./runtime/index.js";
export * as serialization from "./schemas/index.js";
export * as url from "./url/index.js";
103 changes: 0 additions & 103 deletions src/core/schemas/Schema.ts

This file was deleted.

55 changes: 0 additions & 55 deletions src/core/schemas/builders/bigint/bigint.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/core/schemas/builders/bigint/index.ts

This file was deleted.

Loading