From f17296da2b0c931f1978aedaf07f5606e15cc152 Mon Sep 17 00:00:00 2001 From: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:09:50 -0400 Subject: [PATCH 1/3] fix(typescript): hide Customizing Fetch Client README section when allowCustomFetcher is false (#13650) * fix(ts-sdk): hide 'Customizing Fetch Client' README section when allowCustomFetcher is false Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com> * refactor: make CUSTOM_FETCHER a separate feature gated on allowCustomFetcher - Create new CUSTOM_FETCHER feature in features.yml - Remove EJS conditional from RUNTIME_COMPATIBILITY description - Add buildCustomFetcherSnippets() that returns false when allowCustomFetcher=false - RUNTIME_COMPATIBILITY now always returns empty snippets (skipped) - Update unit tests and seed snapshots Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com> * fix: restore RUNTIME_COMPATIBILITY section by marking it as snippetsAreOptional Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- generators/typescript/sdk/features.yml | 11 +-- .../sdk/generator/src/SdkGenerator.ts | 1 + .../src/__test__/ReadmeConfigBuilder.test.ts | 15 ++++ .../src/__test__/ReadmeSnippetBuilder.test.ts | 75 +++++++++++++++++-- .../ReadmeConfigBuilder.test.ts.snap | 12 +-- .../ReadmeSnippetBuilder.test.ts.snap | 19 ++--- .../src/readme/ReadmeConfigBuilder.ts | 10 ++- .../src/readme/ReadmeSnippetBuilder.ts | 15 +++- generators/typescript/sdk/versions.yml | 11 +++ seed/ts-sdk/accept-header/README.md | 13 ---- seed/ts-sdk/alias-extends/README.md | 13 ---- seed/ts-sdk/alias/README.md | 13 ---- .../generate-endpoint-metadata/README.md | 13 ---- .../any-auth/no-custom-config/README.md | 13 ---- seed/ts-sdk/api-wide-base-path/README.md | 13 ---- .../audiences/no-custom-config/README.md | 13 ---- .../audiences/with-partner-audience/README.md | 13 ---- .../README.md | 13 ---- seed/ts-sdk/basic-auth/README.md | 13 ---- .../README.md | 13 ---- seed/ts-sdk/bytes-download/README.md | 13 ---- seed/ts-sdk/bytes-upload/README.md | 13 ---- seed/ts-sdk/client-side-params/README.md | 13 ---- seed/ts-sdk/content-type/README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../serde-layer/README.md | 13 ---- seed/ts-sdk/endpoint-security-auth/README.md | 13 ---- .../README.md | 13 ---- .../enum/forward-compatible-enums/README.md | 13 ---- seed/ts-sdk/enum/no-custom-config/README.md | 13 ---- seed/ts-sdk/enum/serde/README.md | 13 ---- .../error-property/no-custom-config/README.md | 13 ---- .../error-property/union-utils/README.md | 13 ---- seed/ts-sdk/errors/README.md | 13 ---- .../examples-with-api-reference/README.md | 13 ---- .../examples/retain-original-casing/README.md | 13 ---- .../exhaustive/allow-extra-fields/README.md | 13 ---- .../exhaustive/bigint-serde-layer/README.md | 13 ---- seed/ts-sdk/exhaustive/bigint/README.md | 13 ---- .../consolidate-type-files/README.md | 13 ---- .../export-all-requests-at-root/README.md | 13 ---- .../local-files-no-source/README.md | 13 ---- .../exhaustive/multiple-exports/README.md | 13 ---- .../exhaustive/never-throw-errors/README.md | 13 ---- .../exhaustive/no-custom-config/README.md | 13 ---- seed/ts-sdk/exhaustive/node-fetch/README.md | 13 ---- seed/ts-sdk/exhaustive/package-path/README.md | 13 ---- .../parameter-naming-camel-case/README.md | 13 ---- .../parameter-naming-original-name/README.md | 13 ---- .../parameter-naming-snake-case/README.md | 13 ---- .../parameter-naming-wire-value/README.md | 13 ---- .../retain-original-casing/README.md | 13 ---- seed/ts-sdk/exhaustive/serde-layer/README.md | 13 ---- seed/ts-sdk/exhaustive/use-jest/README.md | 13 ---- .../exhaustive/web-stream-wrapper/README.md | 13 ---- seed/ts-sdk/extends/README.md | 13 ---- seed/ts-sdk/extra-properties/README.md | 13 ---- .../file-download-response-headers/README.md | 13 ---- .../file-download/no-custom-config/README.md | 13 ---- .../file-download/stream-wrapper/README.md | 13 ---- seed/ts-sdk/file-upload-openapi/README.md | 13 ---- .../file-upload/form-data-node16/README.md | 13 ---- seed/ts-sdk/file-upload/inline/README.md | 13 ---- .../file-upload/no-custom-config/README.md | 13 ---- seed/ts-sdk/file-upload/serde/README.md | 13 ---- seed/ts-sdk/file-upload/use-jest/README.md | 13 ---- seed/ts-sdk/file-upload/wrapper/README.md | 13 ---- seed/ts-sdk/folders/README.md | 13 ---- .../README.md | 13 ---- seed/ts-sdk/header-auth/README.md | 13 ---- seed/ts-sdk/http-head/README.md | 13 ---- seed/ts-sdk/idempotency-headers/README.md | 13 ---- .../imdb/branded-string-aliases/README.md | 13 ---- seed/ts-sdk/imdb/no-custom-config/README.md | 13 ---- seed/ts-sdk/imdb/omit-undefined/README.md | 13 ---- seed/ts-sdk/inferred-auth-explicit/README.md | 13 ---- .../inferred-auth-implicit-api-key/README.md | 13 ---- .../README.md | 13 ---- seed/ts-sdk/inferred-auth-implicit/README.md | 13 ---- seed/ts-sdk/license/README.md | 13 ---- seed/ts-sdk/literal/README.md | 13 ---- .../mixed-case/no-custom-config/README.md | 13 ---- .../retain-original-casing/README.md | 13 ---- seed/ts-sdk/mixed-file-directory/README.md | 13 ---- seed/ts-sdk/multi-line-docs/README.md | 13 ---- .../README.md | 13 ---- seed/ts-sdk/multi-url-environment/README.md | 13 ---- seed/ts-sdk/multiple-request-bodies/README.md | 13 ---- seed/ts-sdk/no-environment/README.md | 13 ---- seed/ts-sdk/no-retries/README.md | 13 ---- seed/ts-sdk/nullable-allof-extends/README.md | 13 ---- seed/ts-sdk/nullable-optional/README.md | 13 ---- seed/ts-sdk/nullable-request-body/README.md | 13 ---- seed/ts-sdk/nullable/README.md | 13 ---- .../oauth-client-credentials-custom/README.md | 13 ---- .../README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../never-throw-errors/README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../README.md | 13 ---- .../README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../oauth-client-credentials/serde/README.md | 13 ---- seed/ts-sdk/optional/README.md | 13 ---- seed/ts-sdk/package-yml/README.md | 13 ---- seed/ts-sdk/pagination-custom/README.md | 13 ---- seed/ts-sdk/pagination-uri-path/README.md | 13 ---- .../pagination/no-custom-config/README.md | 13 ---- .../pagination/page-index-semantics/README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../README.md | 13 ---- .../no-inline-path-parameters-serde/README.md | 13 ---- .../no-inline-path-parameters/README.md | 13 ---- .../parameter-naming-camel-case/README.md | 13 ---- .../parameter-naming-original-name/README.md | 13 ---- .../parameter-naming-snake-case/README.md | 13 ---- .../parameter-naming-wire-value/README.md | 13 ---- .../retain-original-casing/README.md | 13 ---- seed/ts-sdk/plain-text/README.md | 13 ---- .../generate-read-write-only-types/README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../README.md | 13 ---- .../ts-sdk/query-parameters-openapi/README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../parameter-naming-camel-case/README.md | 13 ---- .../parameter-naming-original-name/README.md | 13 ---- .../parameter-naming-snake-case/README.md | 13 ---- .../parameter-naming-wire-value/README.md | 13 ---- seed/ts-sdk/query-parameters/serde/README.md | 13 ---- .../flatten-request-parameters/README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../README.md | 13 ---- .../README.md | 13 ---- seed/ts-sdk/required-nullable/README.md | 13 ---- seed/ts-sdk/reserved-keywords/README.md | 13 ---- seed/ts-sdk/response-property/README.md | 13 ---- .../server-sent-event-examples/README.md | 13 ---- seed/ts-sdk/server-sent-events/README.md | 13 ---- seed/ts-sdk/server-url-templating/README.md | 13 ---- .../simple-api/allow-custom-fetcher/README.md | 28 +++---- .../simple-api/allow-extra-fields/README.md | 13 ---- seed/ts-sdk/simple-api/bundle/README.md | 13 ---- .../simple-api/custom-package-json/README.md | 13 ---- seed/ts-sdk/simple-api/jsr/README.md | 13 ---- .../simple-api/legacy-exports/README.md | 13 ---- .../simple-api/naming-shorthand/README.md | 13 ---- seed/ts-sdk/simple-api/naming/README.md | 13 ---- .../simple-api/no-custom-config/README.md | 13 ---- .../no-linter-and-formatter/README.md | 13 ---- seed/ts-sdk/simple-api/no-scripts/README.md | 13 ---- seed/ts-sdk/simple-api/oidc-token/README.md | 13 ---- .../simple-api/omit-fern-headers/README.md | 13 ---- seed/ts-sdk/simple-api/use-oxc/README.md | 14 ---- seed/ts-sdk/simple-api/use-oxfmt/README.md | 14 ---- seed/ts-sdk/simple-api/use-oxlint/README.md | 13 ---- .../use-prettier-no-linter/README.md | 14 ---- seed/ts-sdk/simple-api/use-prettier/README.md | 14 ---- seed/ts-sdk/simple-api/use-yarn/README.md | 13 ---- seed/ts-sdk/simple-api/use-yarn/package.json | 10 +-- seed/ts-sdk/simple-fhir/README.md | 13 ---- .../single-url-environment-default/README.md | 13 ---- .../README.md | 13 ---- seed/ts-sdk/streaming-parameter/README.md | 13 ---- .../streaming/no-custom-config/README.md | 13 ---- seed/ts-sdk/streaming/serde-layer/README.md | 13 ---- seed/ts-sdk/streaming/wrapper/README.md | 13 ---- seed/ts-sdk/trace/exhaustive/README.md | 13 ---- seed/ts-sdk/trace/no-custom-config/README.md | 13 ---- seed/ts-sdk/trace/serde-no-throwing/README.md | 13 ---- seed/ts-sdk/trace/serde/README.md | 13 ---- seed/ts-sdk/ts-express-casing/README.md | 13 ---- seed/ts-sdk/ts-extra-properties/README.md | 13 ---- seed/ts-sdk/ts-inline-types/inline/README.md | 13 ---- .../ts-inline-types/no-inline/README.md | 13 ---- .../README.md | 13 ---- .../no-custom-config/README.md | 13 ---- .../skip-response-validation/README.md | 13 ---- seed/ts-sdk/unions-with-local-date/README.md | 13 ---- seed/ts-sdk/unions/README.md | 13 ---- .../ts-sdk/unknown/no-custom-config/README.md | 13 ---- seed/ts-sdk/unknown/unknown-as-any/README.md | 13 ---- seed/ts-sdk/url-form-encoded/README.md | 13 ---- seed/ts-sdk/validation/README.md | 13 ---- seed/ts-sdk/variables/README.md | 13 ---- seed/ts-sdk/version-no-default/README.md | 13 ---- seed/ts-sdk/version/README.md | 13 ---- .../websockets/README.md | 13 ---- 188 files changed, 155 insertions(+), 2357 deletions(-) diff --git a/generators/typescript/sdk/features.yml b/generators/typescript/sdk/features.yml index 102cf06da885..c117e0797ade 100644 --- a/generators/typescript/sdk/features.yml +++ b/generators/typescript/sdk/features.yml @@ -166,6 +166,12 @@ features: benefiting from SDK-level configuration like authentication, retries, timeouts, and logging. This is useful for calling API endpoints not yet supported in the SDK. + - id: CUSTOM_FETCHER + advanced: true + description: | + The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an + unsupported environment, this provides a way for you to break glass and ensure the SDK works. + - id: RUNTIME_COMPATIBILITY advanced: true description: | @@ -183,8 +189,3 @@ features: - Deno v1.25+ - Bun 1.0+ - React Native - - ### Customizing Fetch Client - - The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an - unsupported environment, this provides a way for you to break glass and ensure the SDK works. diff --git a/generators/typescript/sdk/generator/src/SdkGenerator.ts b/generators/typescript/sdk/generator/src/SdkGenerator.ts index 67b64018840a..737d1e0c7bac 100644 --- a/generators/typescript/sdk/generator/src/SdkGenerator.ts +++ b/generators/typescript/sdk/generator/src/SdkGenerator.ts @@ -560,6 +560,7 @@ export class SdkGenerator { endpointSnippets: this.endpointSnippets, fileResponseType: config.fileResponseType, fetchSupport: config.fetchSupport, + allowCustomFetcher: config.allowCustomFetcher, generateSubpackageExports: config.generateSubpackageExports }), ir: intermediateRepresentation diff --git a/generators/typescript/sdk/generator/src/__test__/ReadmeConfigBuilder.test.ts b/generators/typescript/sdk/generator/src/__test__/ReadmeConfigBuilder.test.ts index de2b5fc439df..445f5768a07a 100644 --- a/generators/typescript/sdk/generator/src/__test__/ReadmeConfigBuilder.test.ts +++ b/generators/typescript/sdk/generator/src/__test__/ReadmeConfigBuilder.test.ts @@ -203,6 +203,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -239,6 +240,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -279,6 +281,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -310,6 +313,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -335,6 +339,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -368,6 +373,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -393,6 +399,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -430,6 +437,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -461,6 +469,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -492,6 +501,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "node-fetch", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -523,6 +533,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -573,6 +584,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -602,6 +614,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -636,6 +649,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); @@ -679,6 +693,7 @@ describe("ReadmeConfigBuilder", () => { endpointSnippets: [endpointSnippet], fileResponseType: "stream", fetchSupport: "native", + allowCustomFetcher: false, generateSubpackageExports: false }); diff --git a/generators/typescript/sdk/generator/src/__test__/ReadmeSnippetBuilder.test.ts b/generators/typescript/sdk/generator/src/__test__/ReadmeSnippetBuilder.test.ts index ef260f208a60..c3663aa2f184 100644 --- a/generators/typescript/sdk/generator/src/__test__/ReadmeSnippetBuilder.test.ts +++ b/generators/typescript/sdk/generator/src/__test__/ReadmeSnippetBuilder.test.ts @@ -173,6 +173,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -201,6 +202,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -225,6 +227,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -248,6 +251,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -275,6 +279,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -306,6 +311,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -334,6 +340,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -360,6 +367,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -387,6 +395,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -398,9 +407,9 @@ describe("ReadmeSnippetBuilder", () => { }); }); - // ── Runtime compatibility ────────────────────────────────────────── - describe("runtime compatibility snippets", () => { - it("generates custom fetcher snippet", () => { + // ── Custom fetcher ────────────────────────────────────────────────── + describe("custom fetcher snippets", () => { + it("generates custom fetcher snippet when allowCustomFetcher is true", () => { const endpoint = createEndpoint("ep1", "createUser"); const service = createService("svc1", createFernFilepath([]), [endpoint]); const endpointSnippet = createEndpointSnippet("ep1", "POST", "await client.createUser();"); @@ -413,15 +422,37 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); const snippets = builder.buildReadmeSnippets(); - const runtimeSnippets = snippets.RUNTIME_COMPATIBILITY; - assert(Array.isArray(runtimeSnippets)); - expect(runtimeSnippets).toHaveLength(1); - expect(runtimeSnippets[0]).toContain("fetcher:"); - expect(runtimeSnippets[0]).toContain("provide your implementation here"); + const fetcherSnippets = snippets.CUSTOM_FETCHER; + assert(Array.isArray(fetcherSnippets)); + expect(fetcherSnippets).toHaveLength(1); + expect(fetcherSnippets[0]).toContain("fetcher:"); + expect(fetcherSnippets[0]).toContain("provide your implementation here"); + }); + + it("returns false for custom fetcher snippets when allowCustomFetcher is false", () => { + const endpoint = createEndpoint("ep1", "createUser"); + const service = createService("svc1", createFernFilepath([]), [endpoint]); + const endpointSnippet = createEndpointSnippet("ep1", "POST", "await client.createUser();"); + + const context = createMockSdkContext({ + services: { svc1: service }, + packageName: "@acme/sdk" + }); + const builder = new ReadmeSnippetBuilder({ + context, + endpointSnippets: [endpointSnippet], + fileResponseType: "stream", + allowCustomFetcher: false, + generateSubpackageExports: false + }); + + const snippets = builder.buildReadmeSnippets(); + expect(snippets.CUSTOM_FETCHER).toBe(false); }); }); @@ -440,6 +471,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -475,6 +507,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -506,6 +539,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -548,6 +582,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -584,6 +619,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -607,6 +643,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -644,6 +681,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -668,6 +706,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -707,6 +746,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: true }); @@ -747,6 +787,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -783,6 +824,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: true }); @@ -813,6 +855,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -866,6 +909,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -889,6 +933,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -924,6 +969,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "binary-response", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -961,6 +1007,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -983,6 +1030,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "binary-response", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1016,6 +1064,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1056,6 +1105,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1076,6 +1126,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1099,6 +1150,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1122,6 +1174,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1144,6 +1197,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [endpointSnippet], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1182,6 +1236,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [snippet1, snippet2], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1206,6 +1261,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [snippetGet, snippetPost], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1247,6 +1303,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [snippet1, snippet2], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1284,6 +1341,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [snippet1, snippet2], fileResponseType: "stream", + allowCustomFetcher: true, generateSubpackageExports: false }); @@ -1362,6 +1420,7 @@ describe("ReadmeSnippetBuilder", () => { context, endpointSnippets: [snippet1, snippet2, snippet3], fileResponseType: "binary-response", + allowCustomFetcher: true, generateSubpackageExports: true }); diff --git a/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeConfigBuilder.test.ts.snap b/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeConfigBuilder.test.ts.snap index d8b0fd50431c..2c02c6aa39cf 100644 --- a/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeConfigBuilder.test.ts.snap +++ b/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeConfigBuilder.test.ts.snap @@ -91,16 +91,8 @@ const client = new MySDKClient({ "advanced": false, "description": undefined, "id": "RUNTIME_COMPATIBILITY", - "snippets": [ - "import { MySDKClient } from "@acme/sdk"; - -const client = new MySDKClient({ - ... - fetcher: // provide your implementation here -}); -", - ], - "snippetsAreOptional": false, + "snippets": [], + "snippetsAreOptional": true, }, ], "introduction": "Welcome to Acme SDK", diff --git a/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeSnippetBuilder.test.ts.snap b/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeSnippetBuilder.test.ts.snap index d5417c4adebd..c53b7539f744 100644 --- a/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeSnippetBuilder.test.ts.snap +++ b/generators/typescript/sdk/generator/src/__test__/__snapshots__/ReadmeSnippetBuilder.test.ts.snap @@ -52,6 +52,15 @@ const response = await client.createUser(..., { }); const data = await response.json(); +", + ], + "CUSTOM_FETCHER": [ + "import { MySDKClient } from "@acme/sdk"; + +const client = new MySDKClient({ + ... + fetcher: // provide your implementation here +}); ", ], "EXCEPTION_HANDLING": [ @@ -100,15 +109,7 @@ const request: AcmeSdk.CreateUserRequest = { }); ", ], - "RUNTIME_COMPATIBILITY": [ - "import { MySDKClient } from "@acme/sdk"; - -const client = new MySDKClient({ - ... - fetcher: // provide your implementation here -}); -", - ], + "RUNTIME_COMPATIBILITY": [], "STREAMING_RESPONSE": [ "const stream = await client.streamEvents();", ], diff --git a/generators/typescript/sdk/generator/src/readme/ReadmeConfigBuilder.ts b/generators/typescript/sdk/generator/src/readme/ReadmeConfigBuilder.ts index 1c1339f18a25..900d2c365c38 100644 --- a/generators/typescript/sdk/generator/src/readme/ReadmeConfigBuilder.ts +++ b/generators/typescript/sdk/generator/src/readme/ReadmeConfigBuilder.ts @@ -14,22 +14,26 @@ export class ReadmeConfigBuilder { private readonly endpointSnippets: FernGeneratorExec.Endpoint[]; private readonly fileResponseType: "stream" | "binary-response"; private readonly fetchSupport: "node-fetch" | "native"; + private readonly allowCustomFetcher: boolean; private readonly generateSubpackageExports: boolean; constructor({ endpointSnippets, fileResponseType, fetchSupport, + allowCustomFetcher, generateSubpackageExports }: { endpointSnippets: FernGeneratorExec.Endpoint[]; fileResponseType: "stream" | "binary-response"; fetchSupport: "node-fetch" | "native"; + allowCustomFetcher: boolean; generateSubpackageExports: boolean; }) { this.endpointSnippets = endpointSnippets; this.fileResponseType = fileResponseType; this.fetchSupport = fetchSupport; + this.allowCustomFetcher = allowCustomFetcher; this.generateSubpackageExports = generateSubpackageExports; } @@ -46,6 +50,7 @@ export class ReadmeConfigBuilder { context, endpointSnippets: this.endpointSnippets, fileResponseType: this.fileResponseType, + allowCustomFetcher: this.allowCustomFetcher, generateSubpackageExports: this.generateSubpackageExports }); const snippets = readmeSnippetBuilder.buildReadmeSnippets(); @@ -81,13 +86,16 @@ export class ReadmeConfigBuilder { description = authenticationDescription; } + // Features with description-only content (no code snippets) should still be rendered + const isDescriptionOnlyFeature = feature.id === "RUNTIME_COMPATIBILITY"; + features.push({ id: feature.id, advanced: feature.advanced, description, snippets: snippetForFeature === false ? [] : (snippetForFeature ?? []), addendum: feature.addendum ? this.processTemplateText(feature.addendum) : undefined, - snippetsAreOptional: isAuthenticationWithDescription + snippetsAreOptional: isAuthenticationWithDescription || isDescriptionOnlyFeature }); } return { diff --git a/generators/typescript/sdk/generator/src/readme/ReadmeSnippetBuilder.ts b/generators/typescript/sdk/generator/src/readme/ReadmeSnippetBuilder.ts index 95377663a26a..c0324f914cf4 100644 --- a/generators/typescript/sdk/generator/src/readme/ReadmeSnippetBuilder.ts +++ b/generators/typescript/sdk/generator/src/readme/ReadmeSnippetBuilder.ts @@ -38,9 +38,11 @@ export class ReadmeSnippetBuilder extends AbstractReadmeSnippetBuilder { public static readonly STREAMING_RESPONSE_FEATURE_ID: FernGeneratorCli.FeatureId = "STREAMING_RESPONSE"; public static readonly LOGGING_FEATURE_ID: FernGeneratorCli.FeatureId = "LOGGING"; private static readonly CUSTOM_FETCH_FEATURE_ID: FernGeneratorCli.FeatureId = "CUSTOM_FETCH"; + private static readonly CUSTOM_FETCHER_FEATURE_ID: FernGeneratorCli.FeatureId = "CUSTOM_FETCHER"; private readonly context: SdkContext; private readonly isPaginationEnabled: boolean; + private readonly allowCustomFetcher: boolean; private readonly generateSubpackageExports: boolean; private readonly endpoints: Record = {}; private readonly snippets: Record = {}; @@ -55,17 +57,20 @@ export class ReadmeSnippetBuilder extends AbstractReadmeSnippetBuilder { context, endpointSnippets, fileResponseType, + allowCustomFetcher, generateSubpackageExports }: { context: SdkContext; endpointSnippets: FernGeneratorExec.Endpoint[]; fileResponseType: "stream" | "binary-response"; + allowCustomFetcher: boolean; generateSubpackageExports: boolean; }) { super({ endpointSnippets }); this.context = context; this.fileResponseType = fileResponseType; this.isPaginationEnabled = context.config.generatePaginatedClients ?? false; + this.allowCustomFetcher = allowCustomFetcher; this.generateSubpackageExports = generateSubpackageExports; this.endpoints = this.buildEndpoints(); @@ -99,6 +104,7 @@ export class ReadmeSnippetBuilder extends AbstractReadmeSnippetBuilder { this.buildAdditionalQueryStringParametersSnippets(); snippets[ReadmeSnippetBuilder.LOGGING_FEATURE_ID] = this.buildLoggingSnippets(); snippets[ReadmeSnippetBuilder.CUSTOM_FETCH_FEATURE_ID] = this.buildCustomFetchSnippets(); + snippets[ReadmeSnippetBuilder.CUSTOM_FETCHER_FEATURE_ID] = this.buildCustomFetcherSnippets(); if (this.isPaginationEnabled) { const paginationSnippets = this.buildPaginationSnippets(); @@ -540,7 +546,10 @@ const data = await response.json(); ); } - private buildRuntimeCompatibilitySnippets(): string[] { + private buildCustomFetcherSnippets(): string[] | false { + if (!this.allowCustomFetcher) { + return false; + } const snippet = this.writeCode( code` import { ${this.rootClientConstructorName} } from "${this.rootPackageName}"; @@ -554,6 +563,10 @@ const ${this.clientVariableName} = new ${this.rootClientConstructorName}({ return [snippet]; } + private buildRuntimeCompatibilitySnippets(): string[] { + return []; + } + private getEndpointsForFeature(featureId: FernIr.FeatureId): EndpointWithFilepath[] { const endpointIds = this.getEndpointIdsForFeature(featureId); return endpointIds != null ? this.getEndpoints(endpointIds) : this.getEndpoints([this.defaultEndpointId]); diff --git a/generators/typescript/sdk/versions.yml b/generators/typescript/sdk/versions.yml index 57c6ba59a081..8224d072999f 100644 --- a/generators/typescript/sdk/versions.yml +++ b/generators/typescript/sdk/versions.yml @@ -1,4 +1,15 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 3.59.1 + changelogEntry: + - summary: | + Fix generated README.md including the "Customizing Fetch Client" section + under "Runtime Compatibility" even when `allowCustomFetcher` is `false`. + The section and its code snippet are now conditionally omitted when the + custom fetcher option is disabled. + type: fix + createdAt: "2026-03-17" + irVersion: 65 + - version: 3.59.0 changelogEntry: - summary: | diff --git a/seed/ts-sdk/accept-header/README.md b/seed/ts-sdk/accept-header/README.md index 59f5405285b2..52a74d9520a8 100644 --- a/seed/ts-sdk/accept-header/README.md +++ b/seed/ts-sdk/accept-header/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedAcceptClient } from "@fern/accept-header"; - -const client = new SeedAcceptClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/alias-extends/README.md b/seed/ts-sdk/alias-extends/README.md index 159656cc7c7e..2f114ed61565 100644 --- a/seed/ts-sdk/alias-extends/README.md +++ b/seed/ts-sdk/alias-extends/README.md @@ -267,19 +267,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedAliasExtendsClient } from "@fern/alias-extends"; - -const client = new SeedAliasExtendsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/alias/README.md b/seed/ts-sdk/alias/README.md index 227401640523..dd3514492b31 100644 --- a/seed/ts-sdk/alias/README.md +++ b/seed/ts-sdk/alias/README.md @@ -250,19 +250,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedAliasClient } from "@fern/alias"; - -const client = new SeedAliasClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/any-auth/generate-endpoint-metadata/README.md b/seed/ts-sdk/any-auth/generate-endpoint-metadata/README.md index d191c1fd69ec..752ecb78f001 100644 --- a/seed/ts-sdk/any-auth/generate-endpoint-metadata/README.md +++ b/seed/ts-sdk/any-auth/generate-endpoint-metadata/README.md @@ -310,19 +310,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedAnyAuthClient } from "@fern/any-auth"; - -const client = new SeedAnyAuthClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/any-auth/no-custom-config/README.md b/seed/ts-sdk/any-auth/no-custom-config/README.md index d191c1fd69ec..752ecb78f001 100644 --- a/seed/ts-sdk/any-auth/no-custom-config/README.md +++ b/seed/ts-sdk/any-auth/no-custom-config/README.md @@ -310,19 +310,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedAnyAuthClient } from "@fern/any-auth"; - -const client = new SeedAnyAuthClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/api-wide-base-path/README.md b/seed/ts-sdk/api-wide-base-path/README.md index ba47a330b1a0..4c267557991a 100644 --- a/seed/ts-sdk/api-wide-base-path/README.md +++ b/seed/ts-sdk/api-wide-base-path/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiWideBasePathClient } from "@fern/api-wide-base-path"; - -const client = new SeedApiWideBasePathClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/audiences/no-custom-config/README.md b/seed/ts-sdk/audiences/no-custom-config/README.md index 8eba131a10f9..6dfa23e0d91b 100644 --- a/seed/ts-sdk/audiences/no-custom-config/README.md +++ b/seed/ts-sdk/audiences/no-custom-config/README.md @@ -279,19 +279,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedAudiencesClient } from "@fern/audiences"; - -const client = new SeedAudiencesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/audiences/with-partner-audience/README.md b/seed/ts-sdk/audiences/with-partner-audience/README.md index fd3ed1f11cf4..7140f17136bc 100644 --- a/seed/ts-sdk/audiences/with-partner-audience/README.md +++ b/seed/ts-sdk/audiences/with-partner-audience/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedAudiencesClient } from "@fern/audiences"; - -const client = new SeedAudiencesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/basic-auth-environment-variables/README.md b/seed/ts-sdk/basic-auth-environment-variables/README.md index 8a2de1571fe9..cb2e2d0d4f38 100644 --- a/seed/ts-sdk/basic-auth-environment-variables/README.md +++ b/seed/ts-sdk/basic-auth-environment-variables/README.md @@ -263,19 +263,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedBasicAuthEnvironmentVariablesClient } from "@fern/basic-auth-environment-variables"; - -const client = new SeedBasicAuthEnvironmentVariablesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/basic-auth/README.md b/seed/ts-sdk/basic-auth/README.md index 0e2f96b57414..93615652e373 100644 --- a/seed/ts-sdk/basic-auth/README.md +++ b/seed/ts-sdk/basic-auth/README.md @@ -263,19 +263,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedBasicAuthClient } from "@fern/basic-auth"; - -const client = new SeedBasicAuthClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/bearer-token-environment-variable/README.md b/seed/ts-sdk/bearer-token-environment-variable/README.md index 9398cbcf6aac..5ad452b2e962 100644 --- a/seed/ts-sdk/bearer-token-environment-variable/README.md +++ b/seed/ts-sdk/bearer-token-environment-variable/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedBearerTokenEnvironmentVariableClient } from "@fern/bearer-token-environment-variable"; - -const client = new SeedBearerTokenEnvironmentVariableClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/bytes-download/README.md b/seed/ts-sdk/bytes-download/README.md index 48bfdfcbc892..70bdbd875faf 100644 --- a/seed/ts-sdk/bytes-download/README.md +++ b/seed/ts-sdk/bytes-download/README.md @@ -651,19 +651,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedBytesDownloadClient } from "@fern/bytes-download"; - -const client = new SeedBytesDownloadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/bytes-upload/README.md b/seed/ts-sdk/bytes-upload/README.md index ad53c1a746d1..4e1cbc929dc5 100644 --- a/seed/ts-sdk/bytes-upload/README.md +++ b/seed/ts-sdk/bytes-upload/README.md @@ -308,19 +308,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedBytesUploadClient } from "@fern/bytes-upload"; - -const client = new SeedBytesUploadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/client-side-params/README.md b/seed/ts-sdk/client-side-params/README.md index da10164b3be5..a46242b4c700 100644 --- a/seed/ts-sdk/client-side-params/README.md +++ b/seed/ts-sdk/client-side-params/README.md @@ -284,19 +284,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedClientSideParamsClient } from "@fern/client-side-params"; - -const client = new SeedClientSideParamsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/content-type/README.md b/seed/ts-sdk/content-type/README.md index caf8c37aaf90..74d7b1e5068d 100644 --- a/seed/ts-sdk/content-type/README.md +++ b/seed/ts-sdk/content-type/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedContentTypesClient } from "@fern/content-type"; - -const client = new SeedContentTypesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/cross-package-type-names/no-custom-config/README.md b/seed/ts-sdk/cross-package-type-names/no-custom-config/README.md index 847e78994972..27bf99c866fd 100644 --- a/seed/ts-sdk/cross-package-type-names/no-custom-config/README.md +++ b/seed/ts-sdk/cross-package-type-names/no-custom-config/README.md @@ -279,19 +279,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedCrossPackageTypeNamesClient } from "@fern/cross-package-type-names"; - -const client = new SeedCrossPackageTypeNamesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/cross-package-type-names/serde-layer/README.md b/seed/ts-sdk/cross-package-type-names/serde-layer/README.md index 847e78994972..27bf99c866fd 100644 --- a/seed/ts-sdk/cross-package-type-names/serde-layer/README.md +++ b/seed/ts-sdk/cross-package-type-names/serde-layer/README.md @@ -279,19 +279,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedCrossPackageTypeNamesClient } from "@fern/cross-package-type-names"; - -const client = new SeedCrossPackageTypeNamesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/endpoint-security-auth/README.md b/seed/ts-sdk/endpoint-security-auth/README.md index 289902df4614..c12f41c0e696 100644 --- a/seed/ts-sdk/endpoint-security-auth/README.md +++ b/seed/ts-sdk/endpoint-security-auth/README.md @@ -310,19 +310,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedEndpointSecurityAuthClient } from "@fern/endpoint-security-auth"; - -const client = new SeedEndpointSecurityAuthClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/enum/forward-compatible-enums-with-serde/README.md b/seed/ts-sdk/enum/forward-compatible-enums-with-serde/README.md index d685daf6704f..c016f6c2a213 100644 --- a/seed/ts-sdk/enum/forward-compatible-enums-with-serde/README.md +++ b/seed/ts-sdk/enum/forward-compatible-enums-with-serde/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedEnumClient } from "@fern/enum"; - -const client = new SeedEnumClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/enum/forward-compatible-enums/README.md b/seed/ts-sdk/enum/forward-compatible-enums/README.md index d685daf6704f..c016f6c2a213 100644 --- a/seed/ts-sdk/enum/forward-compatible-enums/README.md +++ b/seed/ts-sdk/enum/forward-compatible-enums/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedEnumClient } from "@fern/enum"; - -const client = new SeedEnumClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/enum/no-custom-config/README.md b/seed/ts-sdk/enum/no-custom-config/README.md index d685daf6704f..c016f6c2a213 100644 --- a/seed/ts-sdk/enum/no-custom-config/README.md +++ b/seed/ts-sdk/enum/no-custom-config/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedEnumClient } from "@fern/enum"; - -const client = new SeedEnumClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/enum/serde/README.md b/seed/ts-sdk/enum/serde/README.md index d685daf6704f..c016f6c2a213 100644 --- a/seed/ts-sdk/enum/serde/README.md +++ b/seed/ts-sdk/enum/serde/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedEnumClient } from "@fern/enum"; - -const client = new SeedEnumClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/error-property/no-custom-config/README.md b/seed/ts-sdk/error-property/no-custom-config/README.md index a9c35831ba30..bfecc3c7efb6 100644 --- a/seed/ts-sdk/error-property/no-custom-config/README.md +++ b/seed/ts-sdk/error-property/no-custom-config/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedErrorPropertyClient } from "@fern/error-property"; - -const client = new SeedErrorPropertyClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/error-property/union-utils/README.md b/seed/ts-sdk/error-property/union-utils/README.md index a9c35831ba30..bfecc3c7efb6 100644 --- a/seed/ts-sdk/error-property/union-utils/README.md +++ b/seed/ts-sdk/error-property/union-utils/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedErrorPropertyClient } from "@fern/error-property"; - -const client = new SeedErrorPropertyClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/errors/README.md b/seed/ts-sdk/errors/README.md index 37b20983186f..b3a91cf0f97e 100644 --- a/seed/ts-sdk/errors/README.md +++ b/seed/ts-sdk/errors/README.md @@ -263,19 +263,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedErrorsClient } from "@fern/errors"; - -const client = new SeedErrorsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/examples/examples-with-api-reference/README.md b/seed/ts-sdk/examples/examples-with-api-reference/README.md index 3dae87146109..66fef6bc8681 100644 --- a/seed/ts-sdk/examples/examples-with-api-reference/README.md +++ b/seed/ts-sdk/examples/examples-with-api-reference/README.md @@ -323,17 +323,4 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExamplesClient } from "@fern/examples"; - -const client = new SeedExamplesClient({ - ... - fetcher: // provide your implementation here -}); -``` diff --git a/seed/ts-sdk/examples/retain-original-casing/README.md b/seed/ts-sdk/examples/retain-original-casing/README.md index f0608d9cc9cf..c4977144b9dd 100644 --- a/seed/ts-sdk/examples/retain-original-casing/README.md +++ b/seed/ts-sdk/examples/retain-original-casing/README.md @@ -275,19 +275,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExamplesClient } from "@fern/examples"; - -const client = new SeedExamplesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/README.md b/seed/ts-sdk/exhaustive/allow-extra-fields/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/README.md +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/bigint-serde-layer/README.md b/seed/ts-sdk/exhaustive/bigint-serde-layer/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/bigint-serde-layer/README.md +++ b/seed/ts-sdk/exhaustive/bigint-serde-layer/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/bigint/README.md b/seed/ts-sdk/exhaustive/bigint/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/bigint/README.md +++ b/seed/ts-sdk/exhaustive/bigint/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/consolidate-type-files/README.md b/seed/ts-sdk/exhaustive/consolidate-type-files/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/consolidate-type-files/README.md +++ b/seed/ts-sdk/exhaustive/consolidate-type-files/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/export-all-requests-at-root/README.md b/seed/ts-sdk/exhaustive/export-all-requests-at-root/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/export-all-requests-at-root/README.md +++ b/seed/ts-sdk/exhaustive/export-all-requests-at-root/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/local-files-no-source/README.md b/seed/ts-sdk/exhaustive/local-files-no-source/README.md index e1f19a9dc1ea..f214b199c4b5 100644 --- a/seed/ts-sdk/exhaustive/local-files-no-source/README.md +++ b/seed/ts-sdk/exhaustive/local-files-no-source/README.md @@ -343,19 +343,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "SeedExhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/multiple-exports/README.md b/seed/ts-sdk/exhaustive/multiple-exports/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/multiple-exports/README.md +++ b/seed/ts-sdk/exhaustive/multiple-exports/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/never-throw-errors/README.md b/seed/ts-sdk/exhaustive/never-throw-errors/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/never-throw-errors/README.md +++ b/seed/ts-sdk/exhaustive/never-throw-errors/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/no-custom-config/README.md b/seed/ts-sdk/exhaustive/no-custom-config/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/README.md +++ b/seed/ts-sdk/exhaustive/no-custom-config/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/node-fetch/README.md b/seed/ts-sdk/exhaustive/node-fetch/README.md index 663f4be83d2c..4384c361ebcf 100644 --- a/seed/ts-sdk/exhaustive/node-fetch/README.md +++ b/seed/ts-sdk/exhaustive/node-fetch/README.md @@ -352,19 +352,6 @@ runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/package-path/README.md b/seed/ts-sdk/exhaustive/package-path/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/package-path/README.md +++ b/seed/ts-sdk/exhaustive/package-path/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/parameter-naming-camel-case/README.md b/seed/ts-sdk/exhaustive/parameter-naming-camel-case/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/parameter-naming-camel-case/README.md +++ b/seed/ts-sdk/exhaustive/parameter-naming-camel-case/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/parameter-naming-original-name/README.md b/seed/ts-sdk/exhaustive/parameter-naming-original-name/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/parameter-naming-original-name/README.md +++ b/seed/ts-sdk/exhaustive/parameter-naming-original-name/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/parameter-naming-snake-case/README.md b/seed/ts-sdk/exhaustive/parameter-naming-snake-case/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/parameter-naming-snake-case/README.md +++ b/seed/ts-sdk/exhaustive/parameter-naming-snake-case/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/parameter-naming-wire-value/README.md b/seed/ts-sdk/exhaustive/parameter-naming-wire-value/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/parameter-naming-wire-value/README.md +++ b/seed/ts-sdk/exhaustive/parameter-naming-wire-value/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/README.md b/seed/ts-sdk/exhaustive/retain-original-casing/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/README.md +++ b/seed/ts-sdk/exhaustive/retain-original-casing/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/serde-layer/README.md b/seed/ts-sdk/exhaustive/serde-layer/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/serde-layer/README.md +++ b/seed/ts-sdk/exhaustive/serde-layer/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/use-jest/README.md b/seed/ts-sdk/exhaustive/use-jest/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/use-jest/README.md +++ b/seed/ts-sdk/exhaustive/use-jest/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/exhaustive/web-stream-wrapper/README.md b/seed/ts-sdk/exhaustive/web-stream-wrapper/README.md index c67cbe54dc4b..c5bd7f8f668c 100644 --- a/seed/ts-sdk/exhaustive/web-stream-wrapper/README.md +++ b/seed/ts-sdk/exhaustive/web-stream-wrapper/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExhaustiveClient } from "@fern/exhaustive"; - -const client = new SeedExhaustiveClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/extends/README.md b/seed/ts-sdk/extends/README.md index 76b17716f949..e76c298a1a9c 100644 --- a/seed/ts-sdk/extends/README.md +++ b/seed/ts-sdk/extends/README.md @@ -268,19 +268,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExtendsClient } from "@fern/extends"; - -const client = new SeedExtendsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/extra-properties/README.md b/seed/ts-sdk/extra-properties/README.md index 3dd323b6abae..90beda6de867 100644 --- a/seed/ts-sdk/extra-properties/README.md +++ b/seed/ts-sdk/extra-properties/README.md @@ -279,19 +279,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedExtraPropertiesClient } from "@fern/extra-properties"; - -const client = new SeedExtraPropertiesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-download/file-download-response-headers/README.md b/seed/ts-sdk/file-download/file-download-response-headers/README.md index 7553fbbf5113..2de41be721b9 100644 --- a/seed/ts-sdk/file-download/file-download-response-headers/README.md +++ b/seed/ts-sdk/file-download/file-download-response-headers/README.md @@ -651,19 +651,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileDownloadClient } from "@fern/file-download"; - -const client = new SeedFileDownloadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-download/no-custom-config/README.md b/seed/ts-sdk/file-download/no-custom-config/README.md index 7553fbbf5113..2de41be721b9 100644 --- a/seed/ts-sdk/file-download/no-custom-config/README.md +++ b/seed/ts-sdk/file-download/no-custom-config/README.md @@ -651,19 +651,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileDownloadClient } from "@fern/file-download"; - -const client = new SeedFileDownloadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-download/stream-wrapper/README.md b/seed/ts-sdk/file-download/stream-wrapper/README.md index fc624676c994..e65c55d6a2b6 100644 --- a/seed/ts-sdk/file-download/stream-wrapper/README.md +++ b/seed/ts-sdk/file-download/stream-wrapper/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileDownloadClient } from "@fern/file-download"; - -const client = new SeedFileDownloadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-upload-openapi/README.md b/seed/ts-sdk/file-upload-openapi/README.md index 3402c1d12c1d..f94958cba81e 100644 --- a/seed/ts-sdk/file-upload-openapi/README.md +++ b/seed/ts-sdk/file-upload-openapi/README.md @@ -322,19 +322,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/file-upload-openapi"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-upload/form-data-node16/README.md b/seed/ts-sdk/file-upload/form-data-node16/README.md index 216b9fcb5e3a..6b5f6f46f37b 100644 --- a/seed/ts-sdk/file-upload/form-data-node16/README.md +++ b/seed/ts-sdk/file-upload/form-data-node16/README.md @@ -324,19 +324,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileUploadClient } from "@fern/file-upload"; - -const client = new SeedFileUploadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-upload/inline/README.md b/seed/ts-sdk/file-upload/inline/README.md index 216b9fcb5e3a..6b5f6f46f37b 100644 --- a/seed/ts-sdk/file-upload/inline/README.md +++ b/seed/ts-sdk/file-upload/inline/README.md @@ -324,19 +324,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileUploadClient } from "@fern/file-upload"; - -const client = new SeedFileUploadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-upload/no-custom-config/README.md b/seed/ts-sdk/file-upload/no-custom-config/README.md index 216b9fcb5e3a..6b5f6f46f37b 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/README.md +++ b/seed/ts-sdk/file-upload/no-custom-config/README.md @@ -324,19 +324,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileUploadClient } from "@fern/file-upload"; - -const client = new SeedFileUploadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-upload/serde/README.md b/seed/ts-sdk/file-upload/serde/README.md index 216b9fcb5e3a..6b5f6f46f37b 100644 --- a/seed/ts-sdk/file-upload/serde/README.md +++ b/seed/ts-sdk/file-upload/serde/README.md @@ -324,19 +324,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileUploadClient } from "@fern/file-upload"; - -const client = new SeedFileUploadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-upload/use-jest/README.md b/seed/ts-sdk/file-upload/use-jest/README.md index 216b9fcb5e3a..6b5f6f46f37b 100644 --- a/seed/ts-sdk/file-upload/use-jest/README.md +++ b/seed/ts-sdk/file-upload/use-jest/README.md @@ -324,19 +324,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileUploadClient } from "@fern/file-upload"; - -const client = new SeedFileUploadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/file-upload/wrapper/README.md b/seed/ts-sdk/file-upload/wrapper/README.md index 216b9fcb5e3a..6b5f6f46f37b 100644 --- a/seed/ts-sdk/file-upload/wrapper/README.md +++ b/seed/ts-sdk/file-upload/wrapper/README.md @@ -324,19 +324,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedFileUploadClient } from "@fern/file-upload"; - -const client = new SeedFileUploadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/folders/README.md b/seed/ts-sdk/folders/README.md index b3beaad3ff3b..568e90e105da 100644 --- a/seed/ts-sdk/folders/README.md +++ b/seed/ts-sdk/folders/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/folders"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/header-auth-environment-variable/README.md b/seed/ts-sdk/header-auth-environment-variable/README.md index 86b56f0c5a11..da3299726300 100644 --- a/seed/ts-sdk/header-auth-environment-variable/README.md +++ b/seed/ts-sdk/header-auth-environment-variable/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedHeaderTokenEnvironmentVariableClient } from "@fern/header-auth-environment-variable"; - -const client = new SeedHeaderTokenEnvironmentVariableClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/header-auth/README.md b/seed/ts-sdk/header-auth/README.md index d3b24503222b..346d6999b338 100644 --- a/seed/ts-sdk/header-auth/README.md +++ b/seed/ts-sdk/header-auth/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedHeaderTokenClient } from "@fern/header-auth"; - -const client = new SeedHeaderTokenClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/http-head/README.md b/seed/ts-sdk/http-head/README.md index eef50cdaf95f..d5bd03ecd015 100644 --- a/seed/ts-sdk/http-head/README.md +++ b/seed/ts-sdk/http-head/README.md @@ -275,19 +275,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedHttpHeadClient } from "@fern/http-head"; - -const client = new SeedHttpHeadClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/idempotency-headers/README.md b/seed/ts-sdk/idempotency-headers/README.md index fe5f6cf717e2..fb4fd565bab1 100644 --- a/seed/ts-sdk/idempotency-headers/README.md +++ b/seed/ts-sdk/idempotency-headers/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedIdempotencyHeadersClient } from "@fern/idempotency-headers"; - -const client = new SeedIdempotencyHeadersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/imdb/branded-string-aliases/README.md b/seed/ts-sdk/imdb/branded-string-aliases/README.md index 3c1c6fa4ba03..d21a9badd0c4 100644 --- a/seed/ts-sdk/imdb/branded-string-aliases/README.md +++ b/seed/ts-sdk/imdb/branded-string-aliases/README.md @@ -264,19 +264,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/imdb"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/imdb/no-custom-config/README.md b/seed/ts-sdk/imdb/no-custom-config/README.md index 3c1c6fa4ba03..d21a9badd0c4 100644 --- a/seed/ts-sdk/imdb/no-custom-config/README.md +++ b/seed/ts-sdk/imdb/no-custom-config/README.md @@ -264,19 +264,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/imdb"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/imdb/omit-undefined/README.md b/seed/ts-sdk/imdb/omit-undefined/README.md index 3c1c6fa4ba03..d21a9badd0c4 100644 --- a/seed/ts-sdk/imdb/omit-undefined/README.md +++ b/seed/ts-sdk/imdb/omit-undefined/README.md @@ -264,19 +264,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/imdb"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/inferred-auth-explicit/README.md b/seed/ts-sdk/inferred-auth-explicit/README.md index cd3dee809098..c361101b2ed1 100644 --- a/seed/ts-sdk/inferred-auth-explicit/README.md +++ b/seed/ts-sdk/inferred-auth-explicit/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedInferredAuthExplicitClient } from "@fern/inferred-auth-explicit"; - -const client = new SeedInferredAuthExplicitClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/inferred-auth-implicit-api-key/README.md b/seed/ts-sdk/inferred-auth-implicit-api-key/README.md index b4127acf992a..e10c2288e68b 100644 --- a/seed/ts-sdk/inferred-auth-implicit-api-key/README.md +++ b/seed/ts-sdk/inferred-auth-implicit-api-key/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedInferredAuthImplicitApiKeyClient } from "@fern/inferred-auth-implicit-api-key"; - -const client = new SeedInferredAuthImplicitApiKeyClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/inferred-auth-implicit-no-expiry/README.md b/seed/ts-sdk/inferred-auth-implicit-no-expiry/README.md index e1c70654f4e4..6469e9e5e5ff 100644 --- a/seed/ts-sdk/inferred-auth-implicit-no-expiry/README.md +++ b/seed/ts-sdk/inferred-auth-implicit-no-expiry/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedInferredAuthImplicitNoExpiryClient } from "@fern/inferred-auth-implicit-no-expiry"; - -const client = new SeedInferredAuthImplicitNoExpiryClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/inferred-auth-implicit/README.md b/seed/ts-sdk/inferred-auth-implicit/README.md index 86f7ad551556..5eaa855f59a6 100644 --- a/seed/ts-sdk/inferred-auth-implicit/README.md +++ b/seed/ts-sdk/inferred-auth-implicit/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedInferredAuthImplicitClient } from "@fern/inferred-auth-implicit"; - -const client = new SeedInferredAuthImplicitClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/license/README.md b/seed/ts-sdk/license/README.md index 10f4f45d4df6..c8e5620854e7 100644 --- a/seed/ts-sdk/license/README.md +++ b/seed/ts-sdk/license/README.md @@ -250,19 +250,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedLicenseClient } from "@fern/license"; - -const client = new SeedLicenseClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/literal/README.md b/seed/ts-sdk/literal/README.md index c85cc7b53bb1..0fd37bc19409 100644 --- a/seed/ts-sdk/literal/README.md +++ b/seed/ts-sdk/literal/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedLiteralClient } from "@fern/literal"; - -const client = new SeedLiteralClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/mixed-case/no-custom-config/README.md b/seed/ts-sdk/mixed-case/no-custom-config/README.md index a7230bb1006d..dfa758e95861 100644 --- a/seed/ts-sdk/mixed-case/no-custom-config/README.md +++ b/seed/ts-sdk/mixed-case/no-custom-config/README.md @@ -275,19 +275,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedMixedCaseClient } from "@fern/mixed-case"; - -const client = new SeedMixedCaseClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/mixed-case/retain-original-casing/README.md b/seed/ts-sdk/mixed-case/retain-original-casing/README.md index a7230bb1006d..dfa758e95861 100644 --- a/seed/ts-sdk/mixed-case/retain-original-casing/README.md +++ b/seed/ts-sdk/mixed-case/retain-original-casing/README.md @@ -275,19 +275,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedMixedCaseClient } from "@fern/mixed-case"; - -const client = new SeedMixedCaseClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/mixed-file-directory/README.md b/seed/ts-sdk/mixed-file-directory/README.md index 50c7fe70c19e..7c8e69735a29 100644 --- a/seed/ts-sdk/mixed-file-directory/README.md +++ b/seed/ts-sdk/mixed-file-directory/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedMixedFileDirectoryClient } from "@fern/mixed-file-directory"; - -const client = new SeedMixedFileDirectoryClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/multi-line-docs/README.md b/seed/ts-sdk/multi-line-docs/README.md index 88974f7c8b38..0155fd812a7c 100644 --- a/seed/ts-sdk/multi-line-docs/README.md +++ b/seed/ts-sdk/multi-line-docs/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedMultiLineDocsClient } from "@fern/multi-line-docs"; - -const client = new SeedMultiLineDocsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/multi-url-environment-no-default/README.md b/seed/ts-sdk/multi-url-environment-no-default/README.md index 15c1a14cbac7..1d0be7628504 100644 --- a/seed/ts-sdk/multi-url-environment-no-default/README.md +++ b/seed/ts-sdk/multi-url-environment-no-default/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedMultiUrlEnvironmentNoDefaultClient } from "@fern/multi-url-environment-no-default"; - -const client = new SeedMultiUrlEnvironmentNoDefaultClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/multi-url-environment/README.md b/seed/ts-sdk/multi-url-environment/README.md index 45363ccf10da..e4d8049db41a 100644 --- a/seed/ts-sdk/multi-url-environment/README.md +++ b/seed/ts-sdk/multi-url-environment/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedMultiUrlEnvironmentClient } from "@fern/multi-url-environment"; - -const client = new SeedMultiUrlEnvironmentClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/multiple-request-bodies/README.md b/seed/ts-sdk/multiple-request-bodies/README.md index 8c17c5173779..85794c1c4032 100644 --- a/seed/ts-sdk/multiple-request-bodies/README.md +++ b/seed/ts-sdk/multiple-request-bodies/README.md @@ -310,19 +310,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/multiple-request-bodies"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/no-environment/README.md b/seed/ts-sdk/no-environment/README.md index d1957a3610f0..bb49206381fe 100644 --- a/seed/ts-sdk/no-environment/README.md +++ b/seed/ts-sdk/no-environment/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedNoEnvironmentClient } from "@fern/no-environment"; - -const client = new SeedNoEnvironmentClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/no-retries/README.md b/seed/ts-sdk/no-retries/README.md index 7f8fb742cf28..8eb4977cfe88 100644 --- a/seed/ts-sdk/no-retries/README.md +++ b/seed/ts-sdk/no-retries/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedNoRetriesClient } from "@fern/no-retries"; - -const client = new SeedNoRetriesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/nullable-allof-extends/README.md b/seed/ts-sdk/nullable-allof-extends/README.md index 86ccf6cd7e5c..05978a0080d9 100644 --- a/seed/ts-sdk/nullable-allof-extends/README.md +++ b/seed/ts-sdk/nullable-allof-extends/README.md @@ -250,19 +250,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/nullable-allof-extends"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/nullable-optional/README.md b/seed/ts-sdk/nullable-optional/README.md index 6a75e6f0555b..9338b2b33cf5 100644 --- a/seed/ts-sdk/nullable-optional/README.md +++ b/seed/ts-sdk/nullable-optional/README.md @@ -288,19 +288,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedNullableOptionalClient } from "@fern/nullable-optional"; - -const client = new SeedNullableOptionalClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/nullable-request-body/README.md b/seed/ts-sdk/nullable-request-body/README.md index 112e30479ff2..530e01836d09 100644 --- a/seed/ts-sdk/nullable-request-body/README.md +++ b/seed/ts-sdk/nullable-request-body/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/nullable-request-body"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/nullable/README.md b/seed/ts-sdk/nullable/README.md index 8b092f5755fa..bfa9f95e3cd2 100644 --- a/seed/ts-sdk/nullable/README.md +++ b/seed/ts-sdk/nullable/README.md @@ -291,19 +291,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedNullableClient } from "@fern/nullable"; - -const client = new SeedNullableClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-custom/README.md b/seed/ts-sdk/oauth-client-credentials-custom/README.md index d12f4ea0fae4..b61089777ba4 100644 --- a/seed/ts-sdk/oauth-client-credentials-custom/README.md +++ b/seed/ts-sdk/oauth-client-credentials-custom/README.md @@ -313,19 +313,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsClient } from "@fern/oauth-client-credentials-custom"; - -const client = new SeedOauthClientCredentialsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-default/README.md b/seed/ts-sdk/oauth-client-credentials-default/README.md index 5b5d9e1ef90b..2410981ffedb 100644 --- a/seed/ts-sdk/oauth-client-credentials-default/README.md +++ b/seed/ts-sdk/oauth-client-credentials-default/README.md @@ -310,19 +310,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsDefaultClient } from "@fern/oauth-client-credentials-default"; - -const client = new SeedOauthClientCredentialsDefaultClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-environment-variables/no-custom-config/README.md b/seed/ts-sdk/oauth-client-credentials-environment-variables/no-custom-config/README.md index 98ce3ca16e6d..b7c935f6941d 100644 --- a/seed/ts-sdk/oauth-client-credentials-environment-variables/no-custom-config/README.md +++ b/seed/ts-sdk/oauth-client-credentials-environment-variables/no-custom-config/README.md @@ -311,19 +311,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsEnvironmentVariablesClient } from "@fern/oauth-client-credentials-environment-variables"; - -const client = new SeedOauthClientCredentialsEnvironmentVariablesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-mandatory-auth/no-custom-config/README.md b/seed/ts-sdk/oauth-client-credentials-mandatory-auth/no-custom-config/README.md index 9971e740a3a0..21dfe4919541 100644 --- a/seed/ts-sdk/oauth-client-credentials-mandatory-auth/no-custom-config/README.md +++ b/seed/ts-sdk/oauth-client-credentials-mandatory-auth/no-custom-config/README.md @@ -311,19 +311,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsMandatoryAuthClient } from "@fern/oauth-client-credentials-mandatory-auth"; - -const client = new SeedOauthClientCredentialsMandatoryAuthClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md index 146f8890dc55..a5765f172466 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md @@ -311,19 +311,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsClient } from "@fern/oauth-client-credentials-nested-root"; - -const client = new SeedOauthClientCredentialsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md index 146f8890dc55..a5765f172466 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md @@ -311,19 +311,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsClient } from "@fern/oauth-client-credentials-nested-root"; - -const client = new SeedOauthClientCredentialsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-reference/README.md b/seed/ts-sdk/oauth-client-credentials-reference/README.md index 1be0e2603251..46506ec16412 100644 --- a/seed/ts-sdk/oauth-client-credentials-reference/README.md +++ b/seed/ts-sdk/oauth-client-credentials-reference/README.md @@ -296,19 +296,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsReferenceClient } from "@fern/oauth-client-credentials-reference"; - -const client = new SeedOauthClientCredentialsReferenceClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials-with-variables/README.md b/seed/ts-sdk/oauth-client-credentials-with-variables/README.md index b2956dc82f00..6b2b7c6a1d01 100644 --- a/seed/ts-sdk/oauth-client-credentials-with-variables/README.md +++ b/seed/ts-sdk/oauth-client-credentials-with-variables/README.md @@ -311,19 +311,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsWithVariablesClient } from "@fern/oauth-client-credentials-with-variables"; - -const client = new SeedOauthClientCredentialsWithVariablesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials/no-custom-config/README.md b/seed/ts-sdk/oauth-client-credentials/no-custom-config/README.md index 5d5c6f3a43b4..d3078e0c3c79 100644 --- a/seed/ts-sdk/oauth-client-credentials/no-custom-config/README.md +++ b/seed/ts-sdk/oauth-client-credentials/no-custom-config/README.md @@ -311,19 +311,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsClient } from "@fern/oauth-client-credentials"; - -const client = new SeedOauthClientCredentialsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/oauth-client-credentials/serde/README.md b/seed/ts-sdk/oauth-client-credentials/serde/README.md index da8cef2718fb..85e2112031a2 100644 --- a/seed/ts-sdk/oauth-client-credentials/serde/README.md +++ b/seed/ts-sdk/oauth-client-credentials/serde/README.md @@ -311,19 +311,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedOauthClientCredentialsClient } from "@fern/oauth-client-credentials"; - -const client = new SeedOauthClientCredentialsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/optional/README.md b/seed/ts-sdk/optional/README.md index 4064088e439b..86bf9b54d5fb 100644 --- a/seed/ts-sdk/optional/README.md +++ b/seed/ts-sdk/optional/README.md @@ -265,19 +265,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedObjectsWithImportsClient } from "@fern/optional"; - -const client = new SeedObjectsWithImportsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/package-yml/README.md b/seed/ts-sdk/package-yml/README.md index c65b0f3e9bf6..7d9d3a2e0f48 100644 --- a/seed/ts-sdk/package-yml/README.md +++ b/seed/ts-sdk/package-yml/README.md @@ -264,19 +264,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPackageYmlClient } from "@fern/package-yml"; - -const client = new SeedPackageYmlClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/pagination-custom/README.md b/seed/ts-sdk/pagination-custom/README.md index 4c6a4630882f..757ef4672cbd 100644 --- a/seed/ts-sdk/pagination-custom/README.md +++ b/seed/ts-sdk/pagination-custom/README.md @@ -319,19 +319,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPaginationClient } from "@fern/pagination-custom"; - -const client = new SeedPaginationClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/pagination-uri-path/README.md b/seed/ts-sdk/pagination-uri-path/README.md index 22992578194c..94fc68bff31c 100644 --- a/seed/ts-sdk/pagination-uri-path/README.md +++ b/seed/ts-sdk/pagination-uri-path/README.md @@ -297,19 +297,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPaginationUriPathClient } from "@fern/pagination-uri-path"; - -const client = new SeedPaginationUriPathClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/pagination/no-custom-config/README.md b/seed/ts-sdk/pagination/no-custom-config/README.md index bb935601adff..909fe135e6ca 100644 --- a/seed/ts-sdk/pagination/no-custom-config/README.md +++ b/seed/ts-sdk/pagination/no-custom-config/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPaginationClient } from "@fern/pagination"; - -const client = new SeedPaginationClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/pagination/page-index-semantics/README.md b/seed/ts-sdk/pagination/page-index-semantics/README.md index bb935601adff..909fe135e6ca 100644 --- a/seed/ts-sdk/pagination/page-index-semantics/README.md +++ b/seed/ts-sdk/pagination/page-index-semantics/README.md @@ -351,19 +351,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPaginationClient } from "@fern/pagination"; - -const client = new SeedPaginationClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/no-custom-config/README.md b/seed/ts-sdk/path-parameters/no-custom-config/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/no-custom-config/README.md +++ b/seed/ts-sdk/path-parameters/no-custom-config/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/no-inline-path-parameters-retain-original-casing/README.md b/seed/ts-sdk/path-parameters/no-inline-path-parameters-retain-original-casing/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/no-inline-path-parameters-retain-original-casing/README.md +++ b/seed/ts-sdk/path-parameters/no-inline-path-parameters-retain-original-casing/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/no-inline-path-parameters-serde/README.md b/seed/ts-sdk/path-parameters/no-inline-path-parameters-serde/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/no-inline-path-parameters-serde/README.md +++ b/seed/ts-sdk/path-parameters/no-inline-path-parameters-serde/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/no-inline-path-parameters/README.md b/seed/ts-sdk/path-parameters/no-inline-path-parameters/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/no-inline-path-parameters/README.md +++ b/seed/ts-sdk/path-parameters/no-inline-path-parameters/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/parameter-naming-camel-case/README.md b/seed/ts-sdk/path-parameters/parameter-naming-camel-case/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/parameter-naming-camel-case/README.md +++ b/seed/ts-sdk/path-parameters/parameter-naming-camel-case/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/parameter-naming-original-name/README.md b/seed/ts-sdk/path-parameters/parameter-naming-original-name/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/parameter-naming-original-name/README.md +++ b/seed/ts-sdk/path-parameters/parameter-naming-original-name/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/parameter-naming-snake-case/README.md b/seed/ts-sdk/path-parameters/parameter-naming-snake-case/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/parameter-naming-snake-case/README.md +++ b/seed/ts-sdk/path-parameters/parameter-naming-snake-case/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/parameter-naming-wire-value/README.md b/seed/ts-sdk/path-parameters/parameter-naming-wire-value/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/parameter-naming-wire-value/README.md +++ b/seed/ts-sdk/path-parameters/parameter-naming-wire-value/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/path-parameters/retain-original-casing/README.md b/seed/ts-sdk/path-parameters/retain-original-casing/README.md index 05512626f0b5..858e8f152788 100644 --- a/seed/ts-sdk/path-parameters/retain-original-casing/README.md +++ b/seed/ts-sdk/path-parameters/retain-original-casing/README.md @@ -278,19 +278,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPathParametersClient } from "@fern/path-parameters"; - -const client = new SeedPathParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/plain-text/README.md b/seed/ts-sdk/plain-text/README.md index 7e8451293189..c972f805ef29 100644 --- a/seed/ts-sdk/plain-text/README.md +++ b/seed/ts-sdk/plain-text/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPlainTextClient } from "@fern/plain-text"; - -const client = new SeedPlainTextClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/property-access/generate-read-write-only-types/README.md b/seed/ts-sdk/property-access/generate-read-write-only-types/README.md index 6a7664574632..d8c2eec56728 100644 --- a/seed/ts-sdk/property-access/generate-read-write-only-types/README.md +++ b/seed/ts-sdk/property-access/generate-read-write-only-types/README.md @@ -257,19 +257,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPropertyAccessClient } from "@fern/property-access"; - -const client = new SeedPropertyAccessClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/property-access/no-custom-config/README.md b/seed/ts-sdk/property-access/no-custom-config/README.md index f3abdf97146f..248bb59d85d4 100644 --- a/seed/ts-sdk/property-access/no-custom-config/README.md +++ b/seed/ts-sdk/property-access/no-custom-config/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedPropertyAccessClient } from "@fern/property-access"; - -const client = new SeedPropertyAccessClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters-openapi-as-objects/README.md b/seed/ts-sdk/query-parameters-openapi-as-objects/README.md index eaec410f33f8..5b06a27b6403 100644 --- a/seed/ts-sdk/query-parameters-openapi-as-objects/README.md +++ b/seed/ts-sdk/query-parameters-openapi-as-objects/README.md @@ -309,19 +309,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/query-parameters-openapi-as-objects"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters-openapi/README.md b/seed/ts-sdk/query-parameters-openapi/README.md index 3a3a257c34e1..641099ec4e02 100644 --- a/seed/ts-sdk/query-parameters-openapi/README.md +++ b/seed/ts-sdk/query-parameters-openapi/README.md @@ -309,19 +309,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/query-parameters-openapi"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters/no-custom-config/README.md b/seed/ts-sdk/query-parameters/no-custom-config/README.md index 39f70da30a9d..76f46a2b34d0 100644 --- a/seed/ts-sdk/query-parameters/no-custom-config/README.md +++ b/seed/ts-sdk/query-parameters/no-custom-config/README.md @@ -313,19 +313,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedQueryParametersClient } from "@fern/query-parameters"; - -const client = new SeedQueryParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters/parameter-naming-camel-case/README.md b/seed/ts-sdk/query-parameters/parameter-naming-camel-case/README.md index 39f70da30a9d..76f46a2b34d0 100644 --- a/seed/ts-sdk/query-parameters/parameter-naming-camel-case/README.md +++ b/seed/ts-sdk/query-parameters/parameter-naming-camel-case/README.md @@ -313,19 +313,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedQueryParametersClient } from "@fern/query-parameters"; - -const client = new SeedQueryParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters/parameter-naming-original-name/README.md b/seed/ts-sdk/query-parameters/parameter-naming-original-name/README.md index 39f70da30a9d..76f46a2b34d0 100644 --- a/seed/ts-sdk/query-parameters/parameter-naming-original-name/README.md +++ b/seed/ts-sdk/query-parameters/parameter-naming-original-name/README.md @@ -313,19 +313,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedQueryParametersClient } from "@fern/query-parameters"; - -const client = new SeedQueryParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters/parameter-naming-snake-case/README.md b/seed/ts-sdk/query-parameters/parameter-naming-snake-case/README.md index bdcfb0c26dae..de54d7709700 100644 --- a/seed/ts-sdk/query-parameters/parameter-naming-snake-case/README.md +++ b/seed/ts-sdk/query-parameters/parameter-naming-snake-case/README.md @@ -313,19 +313,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedQueryParametersClient } from "@fern/query-parameters"; - -const client = new SeedQueryParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters/parameter-naming-wire-value/README.md b/seed/ts-sdk/query-parameters/parameter-naming-wire-value/README.md index 39f70da30a9d..76f46a2b34d0 100644 --- a/seed/ts-sdk/query-parameters/parameter-naming-wire-value/README.md +++ b/seed/ts-sdk/query-parameters/parameter-naming-wire-value/README.md @@ -313,19 +313,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedQueryParametersClient } from "@fern/query-parameters"; - -const client = new SeedQueryParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/query-parameters/serde/README.md b/seed/ts-sdk/query-parameters/serde/README.md index 4524c49688bb..5ad6347254e0 100644 --- a/seed/ts-sdk/query-parameters/serde/README.md +++ b/seed/ts-sdk/query-parameters/serde/README.md @@ -313,19 +313,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedQueryParametersClient } from "@fern/query-parameters"; - -const client = new SeedQueryParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/request-parameters/flatten-request-parameters/README.md b/seed/ts-sdk/request-parameters/flatten-request-parameters/README.md index 5301673a6a0b..8a9d3ee3821a 100644 --- a/seed/ts-sdk/request-parameters/flatten-request-parameters/README.md +++ b/seed/ts-sdk/request-parameters/flatten-request-parameters/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedRequestParametersClient } from "@fern/request-parameters"; - -const client = new SeedRequestParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/request-parameters/no-custom-config/README.md b/seed/ts-sdk/request-parameters/no-custom-config/README.md index 5301673a6a0b..8a9d3ee3821a 100644 --- a/seed/ts-sdk/request-parameters/no-custom-config/README.md +++ b/seed/ts-sdk/request-parameters/no-custom-config/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedRequestParametersClient } from "@fern/request-parameters"; - -const client = new SeedRequestParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/request-parameters/use-big-int-and-default-request-parameter-values/README.md b/seed/ts-sdk/request-parameters/use-big-int-and-default-request-parameter-values/README.md index 5301673a6a0b..8a9d3ee3821a 100644 --- a/seed/ts-sdk/request-parameters/use-big-int-and-default-request-parameter-values/README.md +++ b/seed/ts-sdk/request-parameters/use-big-int-and-default-request-parameter-values/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedRequestParametersClient } from "@fern/request-parameters"; - -const client = new SeedRequestParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/request-parameters/use-default-request-parameter-values/README.md b/seed/ts-sdk/request-parameters/use-default-request-parameter-values/README.md index 5301673a6a0b..8a9d3ee3821a 100644 --- a/seed/ts-sdk/request-parameters/use-default-request-parameter-values/README.md +++ b/seed/ts-sdk/request-parameters/use-default-request-parameter-values/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedRequestParametersClient } from "@fern/request-parameters"; - -const client = new SeedRequestParametersClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/required-nullable/README.md b/seed/ts-sdk/required-nullable/README.md index 0f2cb6b27cf5..ccebdfb354d2 100644 --- a/seed/ts-sdk/required-nullable/README.md +++ b/seed/ts-sdk/required-nullable/README.md @@ -267,19 +267,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/required-nullable"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/reserved-keywords/README.md b/seed/ts-sdk/reserved-keywords/README.md index af9f2dffc4d9..03906fce4c7b 100644 --- a/seed/ts-sdk/reserved-keywords/README.md +++ b/seed/ts-sdk/reserved-keywords/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedNurseryApiClient } from "@fern/reserved-keywords"; - -const client = new SeedNurseryApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/response-property/README.md b/seed/ts-sdk/response-property/README.md index f1ecc417842f..bc688d79746d 100644 --- a/seed/ts-sdk/response-property/README.md +++ b/seed/ts-sdk/response-property/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedResponsePropertyClient } from "@fern/response-property"; - -const client = new SeedResponsePropertyClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/server-sent-event-examples/README.md b/seed/ts-sdk/server-sent-event-examples/README.md index 89ca4a499ca5..7ae567b8ca8e 100644 --- a/seed/ts-sdk/server-sent-event-examples/README.md +++ b/seed/ts-sdk/server-sent-event-examples/README.md @@ -298,19 +298,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedServerSentEventsClient } from "@fern/server-sent-event-examples"; - -const client = new SeedServerSentEventsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/server-sent-events/README.md b/seed/ts-sdk/server-sent-events/README.md index 31a804a28ff5..cdb2178eaf6b 100644 --- a/seed/ts-sdk/server-sent-events/README.md +++ b/seed/ts-sdk/server-sent-events/README.md @@ -298,19 +298,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedServerSentEventsClient } from "@fern/server-sent-events"; - -const client = new SeedServerSentEventsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/server-url-templating/README.md b/seed/ts-sdk/server-url-templating/README.md index 46163274a080..0389c52c9fbb 100644 --- a/seed/ts-sdk/server-url-templating/README.md +++ b/seed/ts-sdk/server-url-templating/README.md @@ -267,19 +267,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/server-url-templating"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/allow-custom-fetcher/README.md b/seed/ts-sdk/simple-api/allow-custom-fetcher/README.md index 8eeb812f2f7f..8cf9f2fca9b0 100644 --- a/seed/ts-sdk/simple-api/allow-custom-fetcher/README.md +++ b/seed/ts-sdk/simple-api/allow-custom-fetcher/README.md @@ -21,6 +21,7 @@ The Seed TypeScript library provides convenient access to the Seed APIs from Typ - [Access Raw Response Data](#access-raw-response-data) - [Logging](#logging) - [Custom Fetch](#custom-fetch) + - [Custom Fetcher](#custom-fetcher) - [Runtime Compatibility](#runtime-compatibility) - [Contributing](#contributing) @@ -247,6 +248,20 @@ const response = await client.fetch("/v1/custom/endpoint", { const data = await response.json(); ``` +### Custom Fetcher + +The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an +unsupported environment, this provides a way for you to break glass and ensure the SDK works. + +```typescript +import { SeedSimpleApiClient } from "@fern/simple-api"; + +const client = new SeedSimpleApiClient({ + ... + fetcher: // provide your implementation here +}); +``` + ### Runtime Compatibility @@ -261,19 +276,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/allow-extra-fields/README.md b/seed/ts-sdk/simple-api/allow-extra-fields/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/allow-extra-fields/README.md +++ b/seed/ts-sdk/simple-api/allow-extra-fields/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/bundle/README.md b/seed/ts-sdk/simple-api/bundle/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/bundle/README.md +++ b/seed/ts-sdk/simple-api/bundle/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/custom-package-json/README.md b/seed/ts-sdk/simple-api/custom-package-json/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/custom-package-json/README.md +++ b/seed/ts-sdk/simple-api/custom-package-json/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/jsr/README.md b/seed/ts-sdk/simple-api/jsr/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/jsr/README.md +++ b/seed/ts-sdk/simple-api/jsr/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/legacy-exports/README.md b/seed/ts-sdk/simple-api/legacy-exports/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/legacy-exports/README.md +++ b/seed/ts-sdk/simple-api/legacy-exports/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/naming-shorthand/README.md b/seed/ts-sdk/simple-api/naming-shorthand/README.md index b4698c2fc585..3a2c1dcd6f82 100644 --- a/seed/ts-sdk/simple-api/naming-shorthand/README.md +++ b/seed/ts-sdk/simple-api/naming-shorthand/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { AcmeClient } from "@fern/simple-api"; - -const client = new AcmeClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/naming/README.md b/seed/ts-sdk/simple-api/naming/README.md index 8026d60b2391..921e9f14270d 100644 --- a/seed/ts-sdk/simple-api/naming/README.md +++ b/seed/ts-sdk/simple-api/naming/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { AcmeSdkClient } from "@fern/simple-api"; - -const client = new AcmeSdkClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/no-custom-config/README.md b/seed/ts-sdk/simple-api/no-custom-config/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/no-custom-config/README.md +++ b/seed/ts-sdk/simple-api/no-custom-config/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/no-linter-and-formatter/README.md b/seed/ts-sdk/simple-api/no-linter-and-formatter/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/no-linter-and-formatter/README.md +++ b/seed/ts-sdk/simple-api/no-linter-and-formatter/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/no-scripts/README.md b/seed/ts-sdk/simple-api/no-scripts/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/no-scripts/README.md +++ b/seed/ts-sdk/simple-api/no-scripts/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/oidc-token/README.md b/seed/ts-sdk/simple-api/oidc-token/README.md index 92a20a65de42..3651da1f17e0 100644 --- a/seed/ts-sdk/simple-api/oidc-token/README.md +++ b/seed/ts-sdk/simple-api/oidc-token/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern-api/dummy"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/omit-fern-headers/README.md b/seed/ts-sdk/simple-api/omit-fern-headers/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/omit-fern-headers/README.md +++ b/seed/ts-sdk/simple-api/omit-fern-headers/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/use-oxc/README.md b/seed/ts-sdk/simple-api/use-oxc/README.md index c35a8ad0b98a..15f5e544f7fe 100644 --- a/seed/ts-sdk/simple-api/use-oxc/README.md +++ b/seed/ts-sdk/simple-api/use-oxc/README.md @@ -266,20 +266,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` - ## Contributing While we value open-source contributions to this SDK, this library is generated programmatically. diff --git a/seed/ts-sdk/simple-api/use-oxfmt/README.md b/seed/ts-sdk/simple-api/use-oxfmt/README.md index c35a8ad0b98a..15f5e544f7fe 100644 --- a/seed/ts-sdk/simple-api/use-oxfmt/README.md +++ b/seed/ts-sdk/simple-api/use-oxfmt/README.md @@ -266,20 +266,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` - ## Contributing While we value open-source contributions to this SDK, this library is generated programmatically. diff --git a/seed/ts-sdk/simple-api/use-oxlint/README.md b/seed/ts-sdk/simple-api/use-oxlint/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/use-oxlint/README.md +++ b/seed/ts-sdk/simple-api/use-oxlint/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/use-prettier-no-linter/README.md b/seed/ts-sdk/simple-api/use-prettier-no-linter/README.md index c35a8ad0b98a..15f5e544f7fe 100644 --- a/seed/ts-sdk/simple-api/use-prettier-no-linter/README.md +++ b/seed/ts-sdk/simple-api/use-prettier-no-linter/README.md @@ -266,20 +266,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` - ## Contributing While we value open-source contributions to this SDK, this library is generated programmatically. diff --git a/seed/ts-sdk/simple-api/use-prettier/README.md b/seed/ts-sdk/simple-api/use-prettier/README.md index c35a8ad0b98a..15f5e544f7fe 100644 --- a/seed/ts-sdk/simple-api/use-prettier/README.md +++ b/seed/ts-sdk/simple-api/use-prettier/README.md @@ -266,20 +266,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` - ## Contributing While we value open-source contributions to this SDK, this library is generated programmatically. diff --git a/seed/ts-sdk/simple-api/use-yarn/README.md b/seed/ts-sdk/simple-api/use-yarn/README.md index 8eeb812f2f7f..d7f61dbd40bf 100644 --- a/seed/ts-sdk/simple-api/use-yarn/README.md +++ b/seed/ts-sdk/simple-api/use-yarn/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSimpleApiClient } from "@fern/simple-api"; - -const client = new SeedSimpleApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/simple-api/use-yarn/package.json b/seed/ts-sdk/simple-api/use-yarn/package.json index d861a6f9e342..ee83d22b0f77 100644 --- a/seed/ts-sdk/simple-api/use-yarn/package.json +++ b/seed/ts-sdk/simple-api/use-yarn/package.json @@ -57,13 +57,13 @@ }, "dependencies": {}, "devDependencies": { - "webpack": "^5.97.1", - "ts-loader": "^9.5.1", - "vitest": "^3.2.4", - "msw": "2.11.2", + "@biomejs/biome": "2.4.3", "@types/node": "^18.19.70", + "msw": "2.11.2", + "ts-loader": "^9.5.1", "typescript": "~5.7.2", - "@biomejs/biome": "2.4.3" + "vitest": "^3.2.4", + "webpack": "^5.97.1" }, "browser": { "fs": false, diff --git a/seed/ts-sdk/simple-fhir/README.md b/seed/ts-sdk/simple-fhir/README.md index 9442833ce1b4..37cb3f849d89 100644 --- a/seed/ts-sdk/simple-fhir/README.md +++ b/seed/ts-sdk/simple-fhir/README.md @@ -250,19 +250,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/simple-fhir"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/single-url-environment-default/README.md b/seed/ts-sdk/single-url-environment-default/README.md index 752786d9a132..b7ae24eabe5c 100644 --- a/seed/ts-sdk/single-url-environment-default/README.md +++ b/seed/ts-sdk/single-url-environment-default/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSingleUrlEnvironmentDefaultClient } from "@fern/single-url-environment-default"; - -const client = new SeedSingleUrlEnvironmentDefaultClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/single-url-environment-no-default/README.md b/seed/ts-sdk/single-url-environment-no-default/README.md index f647b401ee0c..196777a3f45c 100644 --- a/seed/ts-sdk/single-url-environment-no-default/README.md +++ b/seed/ts-sdk/single-url-environment-no-default/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedSingleUrlEnvironmentNoDefaultClient } from "@fern/single-url-environment-no-default"; - -const client = new SeedSingleUrlEnvironmentNoDefaultClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/streaming-parameter/README.md b/seed/ts-sdk/streaming-parameter/README.md index 6026b5dd0a6e..419d63b14fa7 100644 --- a/seed/ts-sdk/streaming-parameter/README.md +++ b/seed/ts-sdk/streaming-parameter/README.md @@ -281,19 +281,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedStreamingClient } from "@fern/streaming-parameter"; - -const client = new SeedStreamingClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/streaming/no-custom-config/README.md b/seed/ts-sdk/streaming/no-custom-config/README.md index b697dfc3f62e..360e59e00924 100644 --- a/seed/ts-sdk/streaming/no-custom-config/README.md +++ b/seed/ts-sdk/streaming/no-custom-config/README.md @@ -298,19 +298,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedStreamingClient } from "@fern/streaming"; - -const client = new SeedStreamingClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/streaming/serde-layer/README.md b/seed/ts-sdk/streaming/serde-layer/README.md index 9799cd571e20..2599aeefbee1 100644 --- a/seed/ts-sdk/streaming/serde-layer/README.md +++ b/seed/ts-sdk/streaming/serde-layer/README.md @@ -298,19 +298,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedStreamingClient } from "@fern/streaming"; - -const client = new SeedStreamingClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/streaming/wrapper/README.md b/seed/ts-sdk/streaming/wrapper/README.md index b697dfc3f62e..360e59e00924 100644 --- a/seed/ts-sdk/streaming/wrapper/README.md +++ b/seed/ts-sdk/streaming/wrapper/README.md @@ -298,19 +298,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedStreamingClient } from "@fern/streaming"; - -const client = new SeedStreamingClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/trace/exhaustive/README.md b/seed/ts-sdk/trace/exhaustive/README.md index d7354266b09e..2c837d4c919f 100644 --- a/seed/ts-sdk/trace/exhaustive/README.md +++ b/seed/ts-sdk/trace/exhaustive/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedTraceClient } from "@fern/trace"; - -const client = new SeedTraceClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/trace/no-custom-config/README.md b/seed/ts-sdk/trace/no-custom-config/README.md index dca090266b4a..7b4f4e528fa0 100644 --- a/seed/ts-sdk/trace/no-custom-config/README.md +++ b/seed/ts-sdk/trace/no-custom-config/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedTraceClient } from "@fern/trace"; - -const client = new SeedTraceClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/trace/serde-no-throwing/README.md b/seed/ts-sdk/trace/serde-no-throwing/README.md index dca090266b4a..7b4f4e528fa0 100644 --- a/seed/ts-sdk/trace/serde-no-throwing/README.md +++ b/seed/ts-sdk/trace/serde-no-throwing/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedTraceClient } from "@fern/trace"; - -const client = new SeedTraceClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/trace/serde/README.md b/seed/ts-sdk/trace/serde/README.md index dca090266b4a..7b4f4e528fa0 100644 --- a/seed/ts-sdk/trace/serde/README.md +++ b/seed/ts-sdk/trace/serde/README.md @@ -277,19 +277,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedTraceClient } from "@fern/trace"; - -const client = new SeedTraceClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/ts-express-casing/README.md b/seed/ts-sdk/ts-express-casing/README.md index e2deea445380..773946f4ec46 100644 --- a/seed/ts-sdk/ts-express-casing/README.md +++ b/seed/ts-sdk/ts-express-casing/README.md @@ -279,19 +279,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/ts-express-casing"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/ts-extra-properties/README.md b/seed/ts-sdk/ts-extra-properties/README.md index ba56d5645989..8ecbfdaccef4 100644 --- a/seed/ts-sdk/ts-extra-properties/README.md +++ b/seed/ts-sdk/ts-extra-properties/README.md @@ -266,19 +266,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/ts-extra-properties"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/ts-inline-types/inline/README.md b/seed/ts-sdk/ts-inline-types/inline/README.md index 978d25e3a642..82eb5eba2f13 100644 --- a/seed/ts-sdk/ts-inline-types/inline/README.md +++ b/seed/ts-sdk/ts-inline-types/inline/README.md @@ -269,19 +269,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedObjectClient } from "@fern/ts-inline-types"; - -const client = new SeedObjectClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/ts-inline-types/no-inline/README.md b/seed/ts-sdk/ts-inline-types/no-inline/README.md index 978d25e3a642..82eb5eba2f13 100644 --- a/seed/ts-sdk/ts-inline-types/no-inline/README.md +++ b/seed/ts-sdk/ts-inline-types/no-inline/README.md @@ -269,19 +269,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedObjectClient } from "@fern/ts-inline-types"; - -const client = new SeedObjectClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/undiscriminated-union-with-response-property/README.md b/seed/ts-sdk/undiscriminated-union-with-response-property/README.md index d3c9be41cde4..41b5c83e241b 100644 --- a/seed/ts-sdk/undiscriminated-union-with-response-property/README.md +++ b/seed/ts-sdk/undiscriminated-union-with-response-property/README.md @@ -250,19 +250,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedUndiscriminatedUnionWithResponsePropertyClient } from "@fern/undiscriminated-union-with-response-property"; - -const client = new SeedUndiscriminatedUnionWithResponsePropertyClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md b/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md index ecbd2c31015a..a24b3e4f86a1 100644 --- a/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md +++ b/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md @@ -275,19 +275,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedUndiscriminatedUnionsClient } from "@fern/undiscriminated-unions"; - -const client = new SeedUndiscriminatedUnionsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md index ecbd2c31015a..a24b3e4f86a1 100644 --- a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md +++ b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md @@ -275,19 +275,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedUndiscriminatedUnionsClient } from "@fern/undiscriminated-unions"; - -const client = new SeedUndiscriminatedUnionsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/unions-with-local-date/README.md b/seed/ts-sdk/unions-with-local-date/README.md index b8393f69a129..916ce7cea0a2 100644 --- a/seed/ts-sdk/unions-with-local-date/README.md +++ b/seed/ts-sdk/unions-with-local-date/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedUnionsClient } from "@fern/unions-with-local-date"; - -const client = new SeedUnionsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/unions/README.md b/seed/ts-sdk/unions/README.md index 64701cbbe877..d94bd7d8dca5 100644 --- a/seed/ts-sdk/unions/README.md +++ b/seed/ts-sdk/unions/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedUnionsClient } from "@fern/unions"; - -const client = new SeedUnionsClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/unknown/no-custom-config/README.md b/seed/ts-sdk/unknown/no-custom-config/README.md index 1b81ec44c3da..243415582b40 100644 --- a/seed/ts-sdk/unknown/no-custom-config/README.md +++ b/seed/ts-sdk/unknown/no-custom-config/README.md @@ -263,19 +263,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedUnknownAsAnyClient } from "@fern/unknown"; - -const client = new SeedUnknownAsAnyClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/unknown/unknown-as-any/README.md b/seed/ts-sdk/unknown/unknown-as-any/README.md index 1b81ec44c3da..243415582b40 100644 --- a/seed/ts-sdk/unknown/unknown-as-any/README.md +++ b/seed/ts-sdk/unknown/unknown-as-any/README.md @@ -263,19 +263,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedUnknownAsAnyClient } from "@fern/unknown"; - -const client = new SeedUnknownAsAnyClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/url-form-encoded/README.md b/seed/ts-sdk/url-form-encoded/README.md index d34742e07e34..7d5f81cc80e2 100644 --- a/seed/ts-sdk/url-form-encoded/README.md +++ b/seed/ts-sdk/url-form-encoded/README.md @@ -267,19 +267,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedApiClient } from "@fern/url-form-encoded"; - -const client = new SeedApiClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/validation/README.md b/seed/ts-sdk/validation/README.md index 1aec3fa0b510..de7422b6e4a8 100644 --- a/seed/ts-sdk/validation/README.md +++ b/seed/ts-sdk/validation/README.md @@ -269,19 +269,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedValidationClient } from "@fern/validation"; - -const client = new SeedValidationClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/variables/README.md b/seed/ts-sdk/variables/README.md index c0b894fc1215..b576bc8e6942 100644 --- a/seed/ts-sdk/variables/README.md +++ b/seed/ts-sdk/variables/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedVariablesClient } from "@fern/variables"; - -const client = new SeedVariablesClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/version-no-default/README.md b/seed/ts-sdk/version-no-default/README.md index c2a8b2606661..11d3f1d5ef6e 100644 --- a/seed/ts-sdk/version-no-default/README.md +++ b/seed/ts-sdk/version-no-default/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedVersionClient } from "@fern/version-no-default"; - -const client = new SeedVersionClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/version/README.md b/seed/ts-sdk/version/README.md index ad4550cdfed3..0c68f25a4eb5 100644 --- a/seed/ts-sdk/version/README.md +++ b/seed/ts-sdk/version/README.md @@ -261,19 +261,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedVersionClient } from "@fern/version"; - -const client = new SeedVersionClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing diff --git a/seed/ts-sdk/websocket-inferred-auth/websockets/README.md b/seed/ts-sdk/websocket-inferred-auth/websockets/README.md index 14056b1c18df..369417b62e5c 100644 --- a/seed/ts-sdk/websocket-inferred-auth/websockets/README.md +++ b/seed/ts-sdk/websocket-inferred-auth/websockets/README.md @@ -280,19 +280,6 @@ The SDK works in the following runtimes: - Bun 1.0+ - React Native -### Customizing Fetch Client - -The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an -unsupported environment, this provides a way for you to break glass and ensure the SDK works. - -```typescript -import { SeedWebsocketAuthClient } from "@fern/websocket-inferred-auth"; - -const client = new SeedWebsocketAuthClient({ - ... - fetcher: // provide your implementation here -}); -``` ## Contributing From 0b3cc48b1bb0507a982cb3ffb031c64c72f60295 Mon Sep 17 00:00:00 2001 From: Fern Support <126544928+fern-support@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:22:21 -0400 Subject: [PATCH 2/3] chore(typescript): update ts-sdk seed (#13651) Co-authored-by: fern-support --- seed/ts-sdk/simple-api/use-yarn/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/seed/ts-sdk/simple-api/use-yarn/package.json b/seed/ts-sdk/simple-api/use-yarn/package.json index ee83d22b0f77..d861a6f9e342 100644 --- a/seed/ts-sdk/simple-api/use-yarn/package.json +++ b/seed/ts-sdk/simple-api/use-yarn/package.json @@ -57,13 +57,13 @@ }, "dependencies": {}, "devDependencies": { - "@biomejs/biome": "2.4.3", - "@types/node": "^18.19.70", - "msw": "2.11.2", + "webpack": "^5.97.1", "ts-loader": "^9.5.1", - "typescript": "~5.7.2", "vitest": "^3.2.4", - "webpack": "^5.97.1" + "msw": "2.11.2", + "@types/node": "^18.19.70", + "typescript": "~5.7.2", + "@biomejs/biome": "2.4.3" }, "browser": { "fs": false, From f27ae0da03f4bc25bf31d58c4993f65de3da4037 Mon Sep 17 00:00:00 2001 From: patrick thornton <70873350+patrickthornton@users.noreply.github.com> Date: Tue, 17 Mar 2026 22:26:18 -0400 Subject: [PATCH 3/3] feat(parser): `coerce-consts-to: enums-coerceable-to-literal` aligns with past behavior (#13652) * enums transitive * release 4.33.0 * clearer name --- .../openapi/openapi-ir-parser/src/options.ts | 9 +- .../src/schema/convertSchemas.ts | 11 +- .../openapi-ir-in-memory/anyOf.json | 2 +- .../application-json.json | 2 +- .../openapi-ir-in-memory/availability.json | 2 +- .../openapi-ir-in-memory/const.json | 2 +- .../openapi-ir-in-memory/dates.json | 2 +- .../inline-schema-reference.json | 2 +- .../preserve-single-schema-oneof.json | 2 +- .../openapi-ir-in-memory/url-reference.json | 2 +- ...h-coerce-enums-coerceable-to-literals.json | 262 ++++++++++++++++++ ...h-coerce-enums-coerceable-to-literals.json | 139 ++++++++++ .../fern/generators.yml | 7 + .../openapi.yml | 57 ++++ packages/cli/cli/versions.yml | 12 + .../schemas/settings/BaseApiSettingsSchema.ts | 7 +- .../generators-yml/GeneratorsConfiguration.ts | 2 +- .../generators/types/BaseApiSettingsSchema.ts | 5 +- .../generators/types/CoerceConstsTo.ts | 1 + .../generators/types/CoerceConstsTo.ts | 4 +- .../src/openapi/BaseOpenAPIWorkspace.ts | 6 +- 21 files changed, 511 insertions(+), 27 deletions(-) create mode 100644 packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/const-with-coerce-enums-coerceable-to-literals.json create mode 100644 packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi/const-with-coerce-enums-coerceable-to-literals.json create mode 100644 packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/fern/generators.yml create mode 100644 packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/openapi.yml diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts index 4d301fce03a4..7d3f4b062e3e 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts @@ -120,10 +120,11 @@ export interface ParseOpenAPIOptions { /** * Controls how `const` values in OpenAPI specs are represented. * - `literals`: Convert const values directly to literals with defaults. - * - `enums`: Convert const values to single-element enums (current behavior). - * Defaults to `enums`. + * - `enums`: Convert const values to single-element enums; blocks transitive coercion via `coerce-enums-to-literals`. + * - `enums-coerceable-to-literals`: Convert const values to single-element enums, but allow `coerce-enums-to-literals` to coerce them transitively. + * Defaults to `enums-coerceable-to-literals`. */ - coerceConstsTo: "literals" | "enums"; + coerceConstsTo: "literals" | "enums" | "enums-coerceable-to-literals"; /** * If true, treat OpenAPI `type: string, format: byte` as a base64/bytes primitive @@ -167,7 +168,7 @@ export const DEFAULT_PARSE_OPENAPI_SETTINGS: ParseOpenAPIOptions = { pathParameterOrder: generatorsYml.PathParameterOrder.UrlOrder, resolveSchemaCollisions: false, inferForwardCompatible: false, - coerceConstsTo: "enums", + coerceConstsTo: "enums-coerceable-to-literals", respectByteFormat: false }; diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts index 0bc72e47d2f7..fdc0b4db17d3 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts @@ -466,8 +466,11 @@ export function convertSchemaObject( // const // NOTE(patrickthornton): This is an attribute of OpenAPIV3_1.SchemaObject; // at some point we should probably migrate to that object altogether. - const isFromConst = "const" in schema; - if (isFromConst) { + const hasConst = "const" in schema; + // When coerceConstsTo is "enums", block the coerceEnumsToLiterals path + // so const-derived enums stay as enums. "enums-coerceable-to-literals" allows it. + const blockConstCoercionToLiteral = hasConst && context.options.coerceConstsTo === "enums"; + if (hasConst) { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- `const` is an OpenAPI 3.1 attribute not in the V3 types const constValue = (schema as Record).const; if (context.options.coerceConstsTo === "literals") { @@ -487,7 +490,7 @@ export function convertSchemaObject( }); } } - // Default: coerce to enum (current behavior) + // "enums" and "enums-coerceable-to-literals": coerce to enum schema.enum = [constValue]; } @@ -527,7 +530,7 @@ export function convertSchemaObject( if ( context.options.coerceEnumsToLiterals && - !isFromConst && + !blockConstCoercionToLiteral && schema.enum.length === 1 && schema.enum[0] != null && fernEnum == null diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/anyOf.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/anyOf.json index 3ab5b79bedb8..e357d10d55be 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/anyOf.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/anyOf.json @@ -106,7 +106,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/application-json.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/application-json.json index c45552e2e7fb..87c5369a2fef 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/application-json.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/application-json.json @@ -86,7 +86,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/availability.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/availability.json index b9e17c10a559..aa57f26a64d0 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/availability.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/availability.json @@ -321,7 +321,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/const.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/const.json index aab780c38691..5ea8c1438ea8 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/const.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/const.json @@ -120,7 +120,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/dates.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/dates.json index 15fc4552bbc9..e2d6ceebd2b4 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/dates.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/dates.json @@ -130,7 +130,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/inline-schema-reference.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/inline-schema-reference.json index a3da2edae812..5b20700d2dd7 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/inline-schema-reference.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/inline-schema-reference.json @@ -118,7 +118,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/preserve-single-schema-oneof.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/preserve-single-schema-oneof.json index 447cfce0ca6b..de76abf5b8b9 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/preserve-single-schema-oneof.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/preserve-single-schema-oneof.json @@ -85,7 +85,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/url-reference.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/url-reference.json index ddbceeb5bc85..d45d72504e56 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/url-reference.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir-in-memory/url-reference.json @@ -73,7 +73,7 @@ "pathParameterOrder": "url-order", "resolveSchemaCollisions": false, "inferForwardCompatible": false, - "coerceConstsTo": "enums", + "coerceConstsTo": "enums-coerceable-to-literals", "respectByteFormat": false } } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/const-with-coerce-enums-coerceable-to-literals.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/const-with-coerce-enums-coerceable-to-literals.json new file mode 100644 index 000000000000..28010438c7e8 --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/const-with-coerce-enums-coerceable-to-literals.json @@ -0,0 +1,262 @@ +{ + "title": "Pet Store API", + "servers": [], + "websocketServers": [], + "tags": { + "tagsById": {} + }, + "hasEndpointsMarkedInternal": false, + "endpoints": [ + { + "summary": "Create a new pet", + "audiences": [], + "tags": [], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "PostPetsRequest", + "request": { + "schema": { + "generatedName": "PostPetsRequest", + "schema": "CreatePetRequest", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Pet created successfully", + "schema": { + "generatedName": "PostPetsResponse", + "schema": "Pet", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "statusCode": 201, + "type": "json" + }, + "errors": {}, + "servers": [], + "authed": false, + "method": "POST", + "path": "/pets", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "type": { + "value": { + "value": "pet", + "type": "string" + }, + "type": "literal" + }, + "name": { + "value": { + "value": "Fluffy", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": 123, + "type": "int" + }, + "type": "primitive" + }, + "type": { + "value": { + "value": "pet", + "type": "string" + }, + "type": "literal" + }, + "name": { + "value": { + "value": "Fluffy", + "type": "string" + }, + "type": "primitive" + }, + "status": { + "value": { + "value": "active", + "type": "string" + }, + "type": "literal" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "webhooks": [], + "channels": {}, + "groupedSchemas": { + "rootSchemas": { + "CreatePetRequest": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "createPetRequestType", + "key": "type", + "schema": { + "value": { + "value": "pet", + "type": "string" + }, + "generatedName": "CreatePetRequestType", + "groupName": [], + "type": "literal" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "createPetRequestName", + "key": "name", + "schema": { + "schema": { + "example": "Fluffy", + "type": "string" + }, + "generatedName": "CreatePetRequestName", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "CreatePetRequest", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Pet": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "petId", + "key": "id", + "schema": { + "schema": { + "example": 123, + "type": "int" + }, + "generatedName": "PetId", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "petType", + "key": "type", + "schema": { + "value": { + "value": "pet", + "type": "string" + }, + "generatedName": "PetType", + "groupName": [], + "type": "literal" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "petName", + "key": "name", + "schema": { + "schema": { + "example": "Fluffy", + "type": "string" + }, + "generatedName": "PetName", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "petStatus", + "key": "status", + "schema": { + "value": { + "value": "active", + "type": "string" + }, + "generatedName": "PetStatus", + "groupName": [], + "type": "literal" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Pet", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + } + }, + "namespacedSchemas": {} + }, + "variables": {}, + "nonRequestReferencedSchemas": {}, + "securitySchemes": {}, + "globalHeaders": [], + "idempotencyHeaders": [], + "groups": {} +} \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi/const-with-coerce-enums-coerceable-to-literals.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi/const-with-coerce-enums-coerceable-to-literals.json new file mode 100644 index 000000000000..8f63fe00d7f0 --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi/const-with-coerce-enums-coerceable-to-literals.json @@ -0,0 +1,139 @@ +{ + "absoluteFilePath": "/DUMMY_PATH", + "importedDefinitions": {}, + "namedDefinitionFiles": { + "__package__.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "service": { + "auth": false, + "base-path": "", + "endpoints": { + "createANewPet": { + "auth": undefined, + "display-name": "Create a new pet", + "docs": undefined, + "examples": [ + { + "request": { + "name": "Fluffy", + "type": "pet", + }, + "response": { + "body": { + "id": 123, + "name": "Fluffy", + "status": "active", + "type": "pet", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/pets", + "request": { + "body": { + "properties": { + "name": "string", + "type": "literal<"pet">", + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "CreatePetRequest", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Pet created successfully", + "status-code": 201, + "type": "Pet", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "types": { + "Pet": { + "docs": undefined, + "inline": undefined, + "properties": { + "id": "integer", + "name": "string", + "status": "literal<"active">", + "type": "literal<"pet">", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + }, + "rawContents": "service: + auth: false + base-path: '' + endpoints: + createANewPet: + path: /pets + method: POST + source: + openapi: ../openapi.yml + display-name: Create a new pet + request: + name: CreatePetRequest + body: + properties: + type: literal<"pet"> + name: string + content-type: application/json + response: + docs: Pet created successfully + type: Pet + status-code: 201 + examples: + - request: + type: pet + name: Fluffy + response: + body: + id: 123 + type: pet + name: Fluffy + status: active + source: + openapi: ../openapi.yml +types: + Pet: + properties: + id: integer + type: literal<"pet"> + name: string + status: literal<"active"> + source: + openapi: ../openapi.yml +", + }, + }, + "packageMarkers": {}, + "rootApiFile": { + "contents": { + "display-name": "Pet Store API", + "error-discrimination": { + "strategy": "status-code", + }, + "name": "api", + }, + "defaultUrl": undefined, + "rawContents": "name: api +error-discrimination: + strategy: status-code +display-name: Pet Store API +", + }, +} \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/fern/generators.yml b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/fern/generators.yml new file mode 100644 index 000000000000..ff080fcf043f --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/fern/generators.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json +api: + specs: + - openapi: ../openapi.yml + settings: + coerce-enums-to-literals: true + coerce-consts-to: enums-coerceable-to-literals diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/openapi.yml b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/openapi.yml new file mode 100644 index 000000000000..8932b15417ea --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/const-with-coerce-enums-coerceable-to-literals/openapi.yml @@ -0,0 +1,57 @@ +openapi: 3.1.0 +info: + title: Pet Store API + version: 1.0.0 + +paths: + /pets: + post: + summary: Create a new pet + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/CreatePetRequest" + responses: + "201": + description: Pet created successfully + content: + application/json: + schema: + $ref: "#/components/schemas/Pet" + +components: + schemas: + CreatePetRequest: + type: object + required: + - type + - name + properties: + type: + const: "pet" + name: + type: string + example: "Fluffy" + + Pet: + type: object + required: + - id + - type + - name + - status + properties: + id: + type: integer + example: 123 + type: + const: "pet" + name: + type: string + example: "Fluffy" + status: + type: string + enum: + - active diff --git a/packages/cli/cli/versions.yml b/packages/cli/cli/versions.yml index 1cf448524478..1572412f80c9 100644 --- a/packages/cli/cli/versions.yml +++ b/packages/cli/cli/versions.yml @@ -1,4 +1,16 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 4.33.0 + changelogEntry: + - summary: | + Add `enums-coerceable-to-literals` option for `coerce-consts-to`, and make + it the new default. This behaves like `enums` (const values become + single-element enums) but allows `coerce-enums-to-literals` to transitively + coerce them to literals, which is consistent with past default behavior. The + existing `enums` option continues to block this transitive coercion. + type: feat + createdAt: "2026-03-17" + irVersion: 65 + - version: 4.32.2 changelogEntry: - summary: | diff --git a/packages/cli/config/src/schemas/settings/BaseApiSettingsSchema.ts b/packages/cli/config/src/schemas/settings/BaseApiSettingsSchema.ts index ac963c1142c7..186382fd96ad 100644 --- a/packages/cli/config/src/schemas/settings/BaseApiSettingsSchema.ts +++ b/packages/cli/config/src/schemas/settings/BaseApiSettingsSchema.ts @@ -65,10 +65,11 @@ export const BaseApiSettingsSchema = z.object({ /** * Controls how `const` values in OpenAPI specs are represented. * - `literals`: Convert const values directly to literals with defaults. - * - `enums`: Convert const values to single-element enums (current behavior). - * Defaults to `enums`. + * - `enums`: Convert const values to single-element enums; blocks transitive coercion via `coerce-enums-to-literals`. + * - `enums-coerceable-to-literals`: Convert const values to single-element enums, but allow `coerce-enums-to-literals` to coerce them transitively. + * Defaults to `enums-coerceable-to-literals`. */ - coerceConstsTo: z.enum(["literals", "enums"]).optional() + coerceConstsTo: z.enum(["literals", "enums", "enums-coerceable-to-literals"]).optional() }); export type BaseApiSettingsSchema = z.infer; diff --git a/packages/cli/configuration/src/generators-yml/GeneratorsConfiguration.ts b/packages/cli/configuration/src/generators-yml/GeneratorsConfiguration.ts index 8d1566330289..dfffbb4ab3b9 100644 --- a/packages/cli/configuration/src/generators-yml/GeneratorsConfiguration.ts +++ b/packages/cli/configuration/src/generators-yml/GeneratorsConfiguration.ts @@ -94,7 +94,7 @@ export interface APIDefinitionSettings { defaultIntegerFormat: generatorsYml.DefaultIntegerFormat | undefined; resolveSchemaCollisions: boolean | undefined; inferForwardCompatible: boolean | undefined; - coerceConstsTo: "literals" | "enums" | undefined; + coerceConstsTo: "literals" | "enums" | "enums-coerceable-to-literals" | undefined; } export interface APIDefinitionLocation { diff --git a/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/BaseApiSettingsSchema.ts b/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/BaseApiSettingsSchema.ts index 0e474b580fc8..964eb20df5a6 100644 --- a/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/BaseApiSettingsSchema.ts +++ b/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/BaseApiSettingsSchema.ts @@ -56,8 +56,9 @@ export interface BaseApiSettingsSchema { /** * Controls how `const` values in OpenAPI specs are represented. * - `literals`: Convert const values directly to literals with defaults. - * - `enums`: Convert const values to single-element enums (current behavior). - * Defaults to `enums`. + * - `enums`: Convert const values to single-element enums; blocks transitive coercion via `coerce-enums-to-literals`. + * - `enums-coerceable-to-literals`: Convert const values to single-element enums, but allow `coerce-enums-to-literals` to coerce them transitively. + * Defaults to `enums-coerceable-to-literals`. */ "coerce-consts-to"?: GeneratorsYml.CoerceConstsTo; } diff --git a/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/CoerceConstsTo.ts b/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/CoerceConstsTo.ts index 9801a3fa5bc3..3a390df2decd 100644 --- a/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/CoerceConstsTo.ts +++ b/packages/cli/configuration/src/generators-yml/schemas/api/resources/generators/types/CoerceConstsTo.ts @@ -4,5 +4,6 @@ export const CoerceConstsTo = { Literals: "literals", Enums: "enums", + EnumsCoerceableToLiterals: "enums-coerceable-to-literals", } as const; export type CoerceConstsTo = (typeof CoerceConstsTo)[keyof typeof CoerceConstsTo]; diff --git a/packages/cli/configuration/src/generators-yml/schemas/serialization/resources/generators/types/CoerceConstsTo.ts b/packages/cli/configuration/src/generators-yml/schemas/serialization/resources/generators/types/CoerceConstsTo.ts index 11cf45779449..28f5fe09412c 100644 --- a/packages/cli/configuration/src/generators-yml/schemas/serialization/resources/generators/types/CoerceConstsTo.ts +++ b/packages/cli/configuration/src/generators-yml/schemas/serialization/resources/generators/types/CoerceConstsTo.ts @@ -7,8 +7,8 @@ import type * as serializers from "../../../index.js"; export const CoerceConstsTo: core.serialization.Schema< serializers.CoerceConstsTo.Raw, GeneratorsYml.CoerceConstsTo -> = core.serialization.enum_(["literals", "enums"]); +> = core.serialization.enum_(["literals", "enums", "enums-coerceable-to-literals"]); export declare namespace CoerceConstsTo { - export type Raw = "literals" | "enums"; + export type Raw = "literals" | "enums" | "enums-coerceable-to-literals"; } diff --git a/packages/commons/api-workspace-commons/src/openapi/BaseOpenAPIWorkspace.ts b/packages/commons/api-workspace-commons/src/openapi/BaseOpenAPIWorkspace.ts index c846b1c228e4..59f9e3d62a42 100644 --- a/packages/commons/api-workspace-commons/src/openapi/BaseOpenAPIWorkspace.ts +++ b/packages/commons/api-workspace-commons/src/openapi/BaseOpenAPIWorkspace.ts @@ -25,7 +25,7 @@ export declare namespace BaseOpenAPIWorkspace { removeDiscriminantsFromSchemas: generatorsYml.RemoveDiscriminantsFromSchemas | undefined; defaultIntegerFormat: generatorsYml.DefaultIntegerFormat | undefined; pathParameterOrder: generatorsYml.PathParameterOrder | undefined; - coerceConstsTo: "literals" | "enums" | undefined; + coerceConstsTo: "literals" | "enums" | "enums-coerceable-to-literals" | undefined; } export type Settings = Partial; @@ -49,7 +49,7 @@ export abstract class BaseOpenAPIWorkspace extends AbstractAPIWorkspace