diff --git a/fern/apis/fdr/generators.yml b/fern/apis/fdr/generators.yml index ff1c6fc868..cb29babb4c 100644 --- a/fern/apis/fdr/generators.yml +++ b/fern/apis/fdr/generators.yml @@ -14,7 +14,7 @@ groups: noOptionalProperties: true useBrandedStringAliases: true - name: fernapi/fern-typescript-node-sdk - version: 0.40.5 + version: 0.42.7 output: location: local-file-system path: ../../../packages/fdr-sdk/src/client/generated @@ -27,7 +27,7 @@ groups: neverThrowErrors: true timeoutInSeconds: infinity - name: fernapi/fern-typescript-node-sdk - version: 0.40.5 + version: 0.42.7 output: location: local-file-system path: ../../../packages/parsers/src/client/generated diff --git a/packages/fdr-sdk/src/client/generated/Client.ts b/packages/fdr-sdk/src/client/generated/Client.ts index f758e62ab6..d0a001be8b 100644 --- a/packages/fdr-sdk/src/client/generated/Client.ts +++ b/packages/fdr-sdk/src/client/generated/Client.ts @@ -29,6 +29,8 @@ export declare namespace FernRegistryClient { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/client/Client.ts index 7979ba9a24..e9c2fb734a 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/client/Client.ts @@ -19,6 +19,8 @@ export declare namespace Api { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/client/Client.ts index 057c18ed27..eb45a32244 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace V1 { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/read/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/read/client/Client.ts index 9eb0de79f0..3a0955ee55 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/read/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/read/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Read { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -48,6 +50,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/register/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/register/client/Client.ts index c89cdea059..7752d24312 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/register/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/register/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Register { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -558,6 +560,7 @@ export class Register { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/diff/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/diff/client/Client.ts index 5a96962c67..982deee7d2 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/diff/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/diff/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Diff { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -55,6 +57,7 @@ export class Diff { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/client/Client.ts index 5b95377074..7792b4704a 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Docs { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/client/Client.ts index f464ecc561..c2bf4d6eef 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace V1 { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.ts index 7d53f6d9c6..270e86bc5c 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Read { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -53,6 +55,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -109,6 +112,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/client/Client.ts index 1c5ef567dc..272d624b68 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Write { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -57,6 +59,7 @@ export class Write { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -432,6 +435,7 @@ export class Write { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/client/Client.ts index 841cd22fc1..893943eac2 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace V2 { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/read/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/read/client/Client.ts index edfbda233b..96dd198b06 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/read/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/read/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Read { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -50,6 +52,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -107,6 +110,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -167,6 +171,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -228,6 +233,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -307,6 +313,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -367,6 +374,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -426,6 +434,7 @@ export class Read { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/write/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/write/client/Client.ts index 7c43bc7c6b..6f79369d80 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/write/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v2/resources/write/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Write { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -69,6 +71,7 @@ export class Write { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -147,6 +150,7 @@ export class Write { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -535,6 +539,7 @@ export class Write { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -592,6 +597,7 @@ export class Write { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -649,6 +655,7 @@ export class Write { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docsCache/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/docsCache/client/Client.ts index 4cdc13432f..417fbc59a3 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docsCache/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docsCache/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace DocsCache { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -50,6 +52,7 @@ export class DocsCache { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/generators/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/generators/client/Client.ts index ddc6ec48e0..cfc012c0d1 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/generators/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/generators/client/Client.ts @@ -22,6 +22,8 @@ export declare namespace Generators { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -77,6 +79,7 @@ export class Generators { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -129,6 +132,7 @@ export class Generators { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -176,6 +180,7 @@ export class Generators { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -218,6 +223,7 @@ export class Generators { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/cli/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/cli/client/Client.ts index 16b824dcf2..6562c643a4 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/cli/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/cli/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Cli { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -58,6 +60,7 @@ export class Cli { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -124,6 +127,7 @@ export class Cli { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -169,6 +173,7 @@ export class Cli { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -256,6 +261,7 @@ export class Cli { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -301,6 +307,7 @@ export class Cli { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -373,6 +380,7 @@ export class Cli { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, diff --git a/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/versions/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/versions/client/Client.ts index b0c67b5392..17a5d6b541 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/versions/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/generators/resources/versions/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Versions { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -64,6 +66,7 @@ export class Versions { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -135,6 +138,7 @@ export class Versions { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -216,6 +220,7 @@ export class Versions { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -278,6 +283,7 @@ export class Versions { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -352,6 +358,7 @@ export class Versions { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, diff --git a/packages/fdr-sdk/src/client/generated/api/resources/git/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/git/client/Client.ts index 23b26d0bf9..a4b373dc3d 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/git/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/git/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Git { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -57,6 +59,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -107,6 +110,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -179,6 +183,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -228,6 +233,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -278,6 +284,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -330,6 +337,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -412,6 +420,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -463,6 +472,7 @@ export class Git { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/sdks/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/sdks/client/Client.ts index 52f09c170f..b30cfebb43 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/sdks/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/sdks/client/Client.ts @@ -19,6 +19,8 @@ export declare namespace Sdks { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/sdks/resources/versions/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/sdks/resources/versions/client/Client.ts index 68f376ec0e..78c2be463c 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/sdks/resources/versions/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/sdks/resources/versions/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Versions { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -62,6 +64,7 @@ export class Versions { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/snippets/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/snippets/client/Client.ts index 60f1651ea4..8c21d9f777 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/snippets/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/snippets/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Snippets { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -55,6 +57,7 @@ export class Snippets { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -130,6 +133,7 @@ export class Snippets { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, diff --git a/packages/fdr-sdk/src/client/generated/api/resources/snippetsFactory/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/snippetsFactory/client/Client.ts index 4a7666bcb9..4c9476bf14 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/snippetsFactory/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/snippetsFactory/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace SnippetsFactory { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -71,6 +73,7 @@ export class SnippetsFactory { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/templates/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/templates/client/Client.ts index 0e4aceee70..19f09a08c3 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/templates/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/templates/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Templates { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -102,6 +104,7 @@ export class Templates { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -199,6 +202,7 @@ export class Templates { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -257,6 +261,7 @@ export class Templates { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/api/resources/tokens/client/Client.ts b/packages/fdr-sdk/src/client/generated/api/resources/tokens/client/Client.ts index b347bd98f9..bc123d31ad 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/tokens/client/Client.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/tokens/client/Client.ts @@ -20,6 +20,8 @@ export declare namespace Tokens { maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; + /** Additional headers to include in the request. */ + headers?: Record; } } @@ -53,6 +55,7 @@ export class Tokens { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -101,6 +104,7 @@ export class Tokens { "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", diff --git a/packages/fdr-sdk/src/client/generated/core/fetcher/Fetcher.ts b/packages/fdr-sdk/src/client/generated/core/fetcher/Fetcher.ts index d67bc04210..b8f23717b6 100644 --- a/packages/fdr-sdk/src/client/generated/core/fetcher/Fetcher.ts +++ b/packages/fdr-sdk/src/client/generated/core/fetcher/Fetcher.ts @@ -21,7 +21,7 @@ export declare namespace Fetcher { withCredentials?: boolean; abortSignal?: AbortSignal; requestType?: "json" | "file" | "bytes"; - responseType?: "json" | "blob" | "sse" | "streaming" | "text"; + responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer"; duplex?: "half"; } diff --git a/packages/fdr-sdk/src/client/generated/core/fetcher/requestWithRetries.ts b/packages/fdr-sdk/src/client/generated/core/fetcher/requestWithRetries.ts index ff5dc3bbab..8d5af9d5a8 100644 --- a/packages/fdr-sdk/src/client/generated/core/fetcher/requestWithRetries.ts +++ b/packages/fdr-sdk/src/client/generated/core/fetcher/requestWithRetries.ts @@ -1,6 +1,13 @@ -const INITIAL_RETRY_DELAY = 1; -const MAX_RETRY_DELAY = 60; +const INITIAL_RETRY_DELAY = 1000; // in milliseconds +const MAX_RETRY_DELAY = 60000; // in milliseconds const DEFAULT_MAX_RETRIES = 2; +const JITTER_FACTOR = 0.2; // 20% random jitter + +function addJitter(delay: number): number { + // Generate a random value between -JITTER_FACTOR and +JITTER_FACTOR + const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR; + return delay * jitterMultiplier; +} export async function requestWithRetries( requestFn: () => Promise, @@ -10,8 +17,13 @@ export async function requestWithRetries( for (let i = 0; i < maxRetries; ++i) { if ([408, 409, 429].includes(response.status) || response.status >= 500) { - const delay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY); - await new Promise((resolve) => setTimeout(resolve, delay)); + // Calculate base delay using exponential backoff (in milliseconds) + const baseDelay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY); + + // Add jitter to the delay + const delayWithJitter = addJitter(baseDelay); + + await new Promise((resolve) => setTimeout(resolve, delayWithJitter)); response = await requestFn(); } else { break; diff --git a/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/StringOrStringList.ts b/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/StringOrStringList.ts new file mode 100644 index 0000000000..889dcc09ae --- /dev/null +++ b/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/StringOrStringList.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type StringOrStringList = string | string[]; diff --git a/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/WithMetadataConfig.ts b/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/WithMetadataConfig.ts index c3003f1cc1..2fcc58fe74 100644 --- a/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/WithMetadataConfig.ts +++ b/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/WithMetadataConfig.ts @@ -23,4 +23,5 @@ export interface WithMetadataConfig { "twitter:card": FernRegistry.docs.latest.TwitterCardSetting | undefined; noindex: boolean | undefined; nofollow: boolean | undefined; + keywords: FernRegistry.docs.latest.StringOrStringList | undefined; } diff --git a/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/index.ts b/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/index.ts index 94b0b71bca..5018117b38 100644 --- a/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/index.ts +++ b/packages/parsers/src/client/generated/api/resources/docs/resources/latest/resources/seo/types/index.ts @@ -1,4 +1,5 @@ export * from "./WithMetadataConfig"; +export * from "./StringOrStringList"; export * from "./WithJsonLdBreadcrumbs"; export * from "./JsonLdBreadcrumbListElement"; export * from "./JsonLdBreadcrumbList"; diff --git a/packages/ui/fern-docs-search-server/package.json b/packages/ui/fern-docs-search-server/package.json index d8c0777b07..d269fbdaf0 100644 --- a/packages/ui/fern-docs-search-server/package.json +++ b/packages/ui/fern-docs-search-server/package.json @@ -68,7 +68,6 @@ "eslint": "^8.56.0", "organize-imports-cli": "^0.10.0", "prettier": "^3.3.2", - "server-only": "^0.0.1", "stylelint": "^16.1.0", "typescript": "5.4.3", "vitest": "^2.1.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7a0e2e5047..997cf51a96 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2417,9 +2417,6 @@ importers: prettier: specifier: ^3.3.2 version: 3.3.2 - server-only: - specifier: ^0.0.1 - version: 0.0.1 stylelint: specifier: ^16.1.0 version: 16.5.0(typescript@5.4.3)