diff --git a/packages/cli/cli/src/commands/generate-ir/generateIrForFernWorkspace.ts b/packages/cli/cli/src/commands/generate-ir/generateIrForFernWorkspace.ts index 4aff85d8502..a2aa45e40b4 100644 --- a/packages/cli/cli/src/commands/generate-ir/generateIrForFernWorkspace.ts +++ b/packages/cli/cli/src/commands/generate-ir/generateIrForFernWorkspace.ts @@ -32,6 +32,8 @@ export async function generateIrForFernWorkspace({ smartCasing, disableExamples, audiences, - readme + readme, + version: undefined, + packageName: undefined }); } diff --git a/packages/cli/cli/src/commands/mock/mockServer.ts b/packages/cli/cli/src/commands/mock/mockServer.ts index 01fa72785c8..ab798dcdee0 100644 --- a/packages/cli/cli/src/commands/mock/mockServer.ts +++ b/packages/cli/cli/src/commands/mock/mockServer.ts @@ -42,7 +42,9 @@ export async function mockServer({ keywords: undefined, smartCasing: false, disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); const mockServer = new MockServer({ diff --git a/packages/cli/cli/src/commands/test/testOutput.ts b/packages/cli/cli/src/commands/test/testOutput.ts index 203fafb0311..4dddf25d7dc 100644 --- a/packages/cli/cli/src/commands/test/testOutput.ts +++ b/packages/cli/cli/src/commands/test/testOutput.ts @@ -50,7 +50,9 @@ export async function testOutput({ keywords: undefined, smartCasing: false, disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); const mockServer = new MockServer({ diff --git a/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts b/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts index 7787fa641a0..fe812bdfe72 100644 --- a/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts +++ b/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts @@ -369,7 +369,9 @@ export class DocsDefinitionResolver { keywords: undefined, smartCasing: false, disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); const apiDefinitionId = await this.registerApi({ ir, snippetsConfig }); const api = convertIrToApiDefinition(ir, apiDefinitionId); diff --git a/packages/cli/docs-resolver/src/__test__/api-resolver.test.ts b/packages/cli/docs-resolver/src/__test__/api-resolver.test.ts index 840e6dea28c..0dd8a10cefb 100644 --- a/packages/cli/docs-resolver/src/__test__/api-resolver.test.ts +++ b/packages/cli/docs-resolver/src/__test__/api-resolver.test.ts @@ -61,7 +61,9 @@ it("converts to api reference node", async () => { keywords: undefined, smartCasing: false, disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); const apiDefinition = convertIrToApiDefinition(ir, apiDefinitionId); diff --git a/packages/cli/docs-resolver/src/__test__/stream.test.ts b/packages/cli/docs-resolver/src/__test__/stream.test.ts index c9b5d5ebfaf..3069d43c219 100644 --- a/packages/cli/docs-resolver/src/__test__/stream.test.ts +++ b/packages/cli/docs-resolver/src/__test__/stream.test.ts @@ -65,7 +65,9 @@ it("converts to api reference node", async () => { keywords: undefined, smartCasing: false, disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); const apiDefinition = convertIrToApiDefinition(ir, apiDefinitionId); diff --git a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap index d61732aaaff..7e0edd9a31a 100644 --- a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap @@ -850,10 +850,11 @@ exports[`dependencies correctly incorporates dependencies 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" `; -exports[`dependencies file dependencies 1`] = `3033661`; +exports[`dependencies file dependencies 1`] = `3033692`; diff --git a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap index bc1ab095154..0947efbe5ff 100644 --- a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap @@ -139,7 +139,8 @@ exports[`ir {"name":"auth-header-prefix"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -1336,7 +1337,8 @@ exports[`ir {"name":"extended-examples"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -1868,7 +1870,8 @@ exports[`ir {"name":"file-upload"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -8639,7 +8642,8 @@ exports[`ir {"name":"multiple-environment-urls"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -8938,7 +8942,8 @@ exports[`ir {"name":"navigation-points-to"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -11058,7 +11063,8 @@ exports[`ir {"name":"nested-example-reference"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -12249,7 +12255,8 @@ exports[`ir {"name":"packages"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -13773,7 +13780,8 @@ exports[`ir {"name":"response-property"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -15451,7 +15459,8 @@ exports[`ir {"name":"simple","audiences":["internal"]} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -19494,7 +19503,8 @@ exports[`ir {"name":"simple","audiences":["test"]} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -34582,7 +34592,8 @@ exports[`ir {"name":"simple"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -35220,7 +35231,8 @@ exports[`ir {"name":"streaming"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -36416,7 +36428,8 @@ exports[`ir {"name":"variables"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" @@ -36721,7 +36734,8 @@ exports[`ir {"name":"webhooks"} 1`] = ` "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } }" diff --git a/packages/cli/generation/ir-generator/src/__test__/generateAndSnapshotIR.ts b/packages/cli/generation/ir-generator/src/__test__/generateAndSnapshotIR.ts index 034fbf886db..0464e88ae1e 100644 --- a/packages/cli/generation/ir-generator/src/__test__/generateAndSnapshotIR.ts +++ b/packages/cli/generation/ir-generator/src/__test__/generateAndSnapshotIR.ts @@ -54,7 +54,9 @@ export async function generateAndSnapshotIR({ keywords: undefined, smartCasing: true, disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); const intermediateRepresentationJson = await IrSerialization.IntermediateRepresentation.jsonOrThrow( diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json b/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json index 221f28d641c..c276d0105c4 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json @@ -1508,7 +1508,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json index fdd36eac7da..a05f6815a56 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json @@ -4664,7 +4664,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/fhir.json b/packages/cli/generation/ir-generator/src/__test__/irs/fhir.json index bc961e94410..47e37cb0cda 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/fhir.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/fhir.json @@ -1264378,7 +1264378,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json index 102edf55e17..b79ed1793af 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json @@ -1958,7 +1958,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json index ed2787fe0eb..f23d3c81b7a 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json @@ -1513,7 +1513,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json index 2f6c81f154b..732b3eb01ad 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json @@ -1079,7 +1079,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json index 5c28db0f33a..a7bbe7adebb 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json @@ -3545,7 +3545,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json index 2e6fcbec216..2a979cd3be2 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json @@ -1219,7 +1219,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json index 8f13b471422..6bf19e8999d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json @@ -1163,7 +1163,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json index bf93a03cdf2..21ef83d2cc3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json @@ -762,7 +762,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json index bbcb3958f09..455c77ab6a9 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json @@ -3810,7 +3810,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json index 5c6ca204d18..f0edba3d648 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json @@ -653,7 +653,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json index ca9023e1a27..13cb5a8b76e 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json @@ -1454,7 +1454,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json index 5cec9e97f50..e07d58742f7 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json @@ -1454,7 +1454,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json index e22cbab2104..5c1d639f0e5 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json @@ -359,7 +359,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json index 47166d50783..85a733f3164 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json @@ -339,7 +339,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json index 09e5c23a14b..3bac33b9378 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json @@ -2025,7 +2025,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json index abb17ecc4f3..6bf2aaad10b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json @@ -1646,7 +1646,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/code-samples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/code-samples.json index 7da06061bac..cde9b8f3b59 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/code-samples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/code-samples.json @@ -1433,7 +1433,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json index 05043f73b26..9d7cd06bd62 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json @@ -1449,7 +1449,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json index 4c9761604c5..2d14b5ce49a 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json @@ -5374,7 +5374,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json index f1643ee66a4..7ad60171cd9 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json @@ -892,7 +892,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json index d5e56904cc9..3e40f47deae 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json @@ -34032,7 +34032,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json index f057fd778aa..7cd71cd9cf5 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json @@ -66060,7 +66060,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json index 976ab4d5a81..cb214b5f803 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json @@ -1804,7 +1804,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json index 19c0502e570..2d7543e9f24 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json @@ -1089,7 +1089,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json index 5a5068f53dd..823b5692545 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json @@ -320,7 +320,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json index 300ed530d2e..76238d2afb9 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json @@ -1727,7 +1727,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json index 3297458ad17..c0cdefb1be2 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json @@ -2300,7 +2300,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc.json index f7919bc49f5..84e278bc0ee 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc.json @@ -4712,7 +4712,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json index 27a5a29e727..c213ebf7c15 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json @@ -1141,7 +1141,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json index 087df1f8b97..185bcf4044e 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json @@ -2786,7 +2786,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json index f4fb6d86a68..44fcb9ac3b3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json @@ -8414,7 +8414,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json index cb66c121c39..8cda5858c51 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json @@ -6315,7 +6315,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json index 48d8e11d7fc..e4726b63216 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json @@ -1664,7 +1664,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json index a20529c66be..f28062fe782 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json @@ -1011,7 +1011,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json index 9cda912374c..66c8b4aa4a6 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json @@ -1011,7 +1011,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json index 3239e2a696c..6f770018190 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json @@ -359,7 +359,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json index f08c1182791..fb8b83159ec 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json @@ -1289,7 +1289,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json index 04d0ab8a15d..0dcb0935636 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json @@ -2786,7 +2786,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json index 5c64050c83c..e71f9784fe3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json @@ -1685,7 +1685,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json index 6aaff26c002..65bfd3bcda5 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json @@ -2786,7 +2786,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json index 70f1e1a5f07..66867640b91 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json @@ -3414,7 +3414,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json index 42e0fe66c0a..d6429122146 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json @@ -9392,7 +9392,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json index fc1fcdb0819..bd80d1d7f87 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json @@ -506,7 +506,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json index 888a6a19cf7..cffe8e8e299 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json @@ -1446,7 +1446,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json index 21663ecbb26..7c6dff9ecb6 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json @@ -13055,7 +13055,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json index f19bc1b87bb..7a1be93cac6 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json @@ -320,7 +320,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json index ce20eb35f3e..7a3241a4aac 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json @@ -4470,7 +4470,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json index 20998978eba..9715348f34d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json @@ -787,7 +787,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json index 37b4f1830ad..debb074f7cb 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json @@ -3901,7 +3901,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json index abfd8f3a98c..c8b8c1a5989 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json @@ -2015,7 +2015,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json index b73ed37a2e8..eacd813fd70 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json @@ -1324,7 +1324,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json index 11c86409eea..a381c0f431d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json @@ -414,7 +414,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json index 0ba01139512..d1e607cde32 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json @@ -414,7 +414,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json index 6ceeee01cfe..4b9583655da 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json @@ -1780,7 +1780,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json index 0bb15916324..ac813e29ec8 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json @@ -2506,7 +2506,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json index 53a4876dfc2..1bc4710d479 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json @@ -142900,7 +142900,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json index 0870600a2ca..14454c9825c 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json @@ -3519,7 +3519,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json index 8b5c5b3d843..df8591ac524 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json @@ -5138,7 +5138,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json index 0e25318ba82..cba9783dec2 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json @@ -992,7 +992,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json index 3df9e792961..fbbd0d43e74 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json @@ -2834,7 +2834,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json index a5363b3b54a..a8f57b2b085 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json @@ -457,7 +457,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json index 424087efd02..0412dd0e627 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json @@ -1484,7 +1484,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json index f434717f2f2..810b67fbf56 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json @@ -1509,7 +1509,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json index 1cb405f14cd..5ef8ddd9014 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json @@ -591,7 +591,8 @@ "platformHeaders": { "language": "X-Fern-Language", "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" + "sdkVersion": "X-Fern-SDK-Version", + "userAgent": null } } } \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts index 71b650cc258..ede3b29badb 100644 --- a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts +++ b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts @@ -56,7 +56,9 @@ export async function generateIntermediateRepresentation({ smartCasing, disableExamples, audiences, - readme + readme, + packageName, + version }: { fdrApiDefinitionId?: string; workspace: FernWorkspace; @@ -66,6 +68,8 @@ export async function generateIntermediateRepresentation({ disableExamples: boolean; audiences: Audiences; readme: generatorsYml.ReadmeSchema | undefined; + packageName: string | undefined; + version: string | undefined; }): Promise { const casingsGenerator = constructCasingsGenerator({ generationLanguage, keywords, smartCasing }); @@ -452,7 +456,14 @@ export async function generateIntermediateRepresentation({ platformHeaders: { language: "X-Fern-Language", sdkName: "X-Fern-SDK-Name", - sdkVersion: "X-Fern-SDK-Version" + sdkVersion: "X-Fern-SDK-Version", + userAgent: + version != null && packageName != null + ? { + header: "User-Agent", + value: `${packageName}/${version}` + } + : undefined } }, readmeConfig diff --git a/packages/cli/generation/ir-migrations/src/__test__/utils/getIrForApi.ts b/packages/cli/generation/ir-migrations/src/__test__/utils/getIrForApi.ts index d09af60b15a..a4bec5d91a1 100644 --- a/packages/cli/generation/ir-migrations/src/__test__/utils/getIrForApi.ts +++ b/packages/cli/generation/ir-migrations/src/__test__/utils/getIrForApi.ts @@ -23,6 +23,8 @@ export async function getIrForApi(absolutePathToWorkspace: AbsoluteFilePath): Pr keywords: undefined, smartCasing: true, // Verify the special casing convention in tests. disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); } diff --git a/packages/cli/generation/local-generation/local-workspace-runner/src/getIntermediateRepresentation.ts b/packages/cli/generation/local-generation/local-workspace-runner/src/getIntermediateRepresentation.ts index 6aaac2d8632..0384e42fc0a 100644 --- a/packages/cli/generation/local-generation/local-workspace-runner/src/getIntermediateRepresentation.ts +++ b/packages/cli/generation/local-generation/local-workspace-runner/src/getIntermediateRepresentation.ts @@ -27,7 +27,9 @@ export async function getIntermediateRepresentation({ keywords: generatorInvocation.keywords, smartCasing: generatorInvocation.smartCasing, disableExamples: generatorInvocation.disableExamples, - readme: generatorInvocation.readme + readme: generatorInvocation.readme, + version: undefined, + packageName: undefined }); context.logger.debug("Generated IR"); const migratedIntermediateRepresentation = diff --git a/packages/cli/generation/remote-generation/remote-workspace-runner/src/runRemoteGenerationForGenerator.ts b/packages/cli/generation/remote-generation/remote-workspace-runner/src/runRemoteGenerationForGenerator.ts index 37b89d3a19b..84b5b5dee9f 100644 --- a/packages/cli/generation/remote-generation/remote-workspace-runner/src/runRemoteGenerationForGenerator.ts +++ b/packages/cli/generation/remote-generation/remote-workspace-runner/src/runRemoteGenerationForGenerator.ts @@ -1,6 +1,7 @@ import { FernToken } from "@fern-api/auth"; import { Audiences, fernConfigJson, generatorsYml } from "@fern-api/configuration"; import { createFdrService } from "@fern-api/core"; +import { FdrAPI, FdrClient } from "@fern-api/fdr-sdk"; import { AbsoluteFilePath } from "@fern-api/fs-utils"; import { generateIntermediateRepresentation } from "@fern-api/ir-generator"; import { convertIrToFdrApi } from "@fern-api/register"; @@ -40,6 +41,10 @@ export async function runRemoteGenerationForGenerator({ absolutePathToPreview: AbsoluteFilePath | undefined; readme: generatorsYml.ReadmeSchema | undefined; }): Promise { + const fdr = createFdrService({ token: token.value }); + + const packageName = getPackageName({ generatorInvocation }); + const ir = await generateIntermediateRepresentation({ workspace, generationLanguage: generatorInvocation.language, @@ -47,10 +52,11 @@ export async function runRemoteGenerationForGenerator({ smartCasing: generatorInvocation.smartCasing, disableExamples: generatorInvocation.disableExamples, audiences, - readme + readme, + packageName, + version: version ?? (await computeSemanticVersion({ fdr, packageName, generatorInvocation })) }); - const fdr = createFdrService({ token: token.value }); const apiDefinition = convertIrToFdrApi({ ir, snippetsConfig: {} }); const response = await fdr.api.v1.register.registerApiDefinition({ orgId: organization, @@ -103,3 +109,88 @@ export async function runRemoteGenerationForGenerator({ context: interactiveTaskContext }); } + +async function computeSemanticVersion({ + fdr, + packageName, + generatorInvocation +}: { + fdr: FdrClient; + packageName: string | undefined; + generatorInvocation: generatorsYml.GeneratorInvocation; +}): Promise { + if (generatorInvocation.language == null) { + return undefined; + } + let language: FdrAPI.sdks.Language; + switch (generatorInvocation.language) { + case "csharp": + language = "Csharp"; + break; + case "go": + language = "Go"; + break; + case "java": + language = "Java"; + break; + case "python": + language = "Python"; + break; + case "ruby": + language = "Ruby"; + break; + case "typescript": + language = "TypeScript"; + break; + default: + return undefined; + } + if (packageName == null) { + return undefined; + } + const response = await fdr.sdks.versions.computeSemanticVersion({ + githubRepository: + generatorInvocation.outputMode.type === "githubV2" + ? `${generatorInvocation.outputMode.githubV2.owner}/${generatorInvocation.outputMode.githubV2.repo}` + : undefined, + language, + package: packageName + }); + if (!response.ok) { + return undefined; + } + return response.body.version; +} + +function getPackageName({ + generatorInvocation +}: { + generatorInvocation: generatorsYml.GeneratorInvocation; +}): string | undefined { + return generatorInvocation.outputMode._visit({ + downloadFiles: () => undefined, + github: (val) => + val.publishInfo?._visit({ + maven: (val) => val.coordinate, + npm: (val) => val.packageName, + pypi: (val) => val.packageName, + postman: () => undefined, + rubygems: (val) => val.packageName, + nuget: (val) => val.packageName, + _other: () => undefined + }), + githubV2: (val) => + val.publishInfo?._visit({ + maven: (val) => val.coordinate, + npm: (val) => val.packageName, + pypi: (val) => val.packageName, + postman: () => undefined, + rubygems: (val) => val.packageName, + nuget: (val) => val.packageName, + _other: () => undefined + }), + publish: () => undefined, + publishV2: () => undefined, + _other: () => undefined + }); +} diff --git a/packages/cli/register/src/registerApi.ts b/packages/cli/register/src/registerApi.ts index 9cfb1df083b..420311b63e2 100644 --- a/packages/cli/register/src/registerApi.ts +++ b/packages/cli/register/src/registerApi.ts @@ -30,7 +30,9 @@ export async function registerApi({ keywords: undefined, smartCasing: false, disableExamples: false, - readme: undefined + readme: undefined, + version: undefined, + packageName: undefined }); const fdrService = createFdrService({ diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/VERSION b/packages/ir-sdk/fern/apis/ir-types-latest/VERSION index b3abeadafcc..1fa183ec2ed 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/VERSION +++ b/packages/ir-sdk/fern/apis/ir-types-latest/VERSION @@ -1 +1 @@ -53.3.0 +53.4.0 diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md b/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md index 5d1f307f9d1..07d967467b0 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md +++ b/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v53.4.0] - 2024-08-05 \*\* (TODO: Make required in next major) + +- Feature: Add `User-Agent` header so that SDK generators can start sending the user agent. + ## [v53.3.0] - 2024-08-05 - Feature: Add gRPC/Protobuf types (defined in `proto.yml`) to generate gRPC/Protobuf mappers. diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml index 5654c9bb98b..adfd2d3dafb 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml @@ -110,6 +110,16 @@ types: language: string sdkName: string sdkVersion: string + userAgent: optional + UserAgent: + properties: + header: + type: literal<"User-Agent"> + docs: The user agent header for ease of access to generators. + value: + type: string + docs: Formatted as "/" + ApiVersionScheme: docs: | The available set of versions for the API. This is used to generate a special diff --git a/packages/ir-sdk/src/sdk/api/resources/ir/types/PlatformHeaders.ts b/packages/ir-sdk/src/sdk/api/resources/ir/types/PlatformHeaders.ts index 9a1e1ee5c57..d0d8a1dd503 100644 --- a/packages/ir-sdk/src/sdk/api/resources/ir/types/PlatformHeaders.ts +++ b/packages/ir-sdk/src/sdk/api/resources/ir/types/PlatformHeaders.ts @@ -2,8 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as FernIr from "../../.."; + export interface PlatformHeaders { language: string; sdkName: string; sdkVersion: string; + userAgent: FernIr.UserAgent | undefined; } diff --git a/packages/ir-sdk/src/sdk/api/resources/ir/types/UserAgent.ts b/packages/ir-sdk/src/sdk/api/resources/ir/types/UserAgent.ts new file mode 100644 index 00000000000..7f5950af0a1 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/ir/types/UserAgent.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UserAgent { + /** The user agent header for ease of access to generators. */ + header: "User-Agent"; + /** Formatted as "/" */ + value: string; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/ir/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/ir/types/index.ts index c2ff8a5817d..17947bff65f 100644 --- a/packages/ir-sdk/src/sdk/api/resources/ir/types/index.ts +++ b/packages/ir-sdk/src/sdk/api/resources/ir/types/index.ts @@ -6,6 +6,7 @@ export * from "./ApiDefinitionSource"; export * from "./ProtoSource"; export * from "./SdkConfig"; export * from "./PlatformHeaders"; +export * from "./UserAgent"; export * from "./ApiVersionScheme"; export * from "./HeaderApiVersionScheme"; export * from "./ErrorDiscriminationStrategy"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/ir/types/PlatformHeaders.ts b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/PlatformHeaders.ts index e32a5b3f1d4..e583b90a8b7 100644 --- a/packages/ir-sdk/src/sdk/serialization/resources/ir/types/PlatformHeaders.ts +++ b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/PlatformHeaders.ts @@ -11,6 +11,7 @@ export const PlatformHeaders: core.serialization.ObjectSchema (await import("../../..")).UserAgent).optional(), }); export declare namespace PlatformHeaders { @@ -18,5 +19,6 @@ export declare namespace PlatformHeaders { language: string; sdkName: string; sdkVersion: string; + userAgent?: serializers.UserAgent.Raw | null; } } diff --git a/packages/ir-sdk/src/sdk/serialization/resources/ir/types/UserAgent.ts b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/UserAgent.ts new file mode 100644 index 00000000000..b1d347ed2e9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/UserAgent.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as FernIr from "../../../../api"; +import * as core from "../../../../core"; + +export const UserAgent: core.serialization.ObjectSchema = + core.serialization.objectWithoutOptionalProperties({ + header: core.serialization.stringLiteral("User-Agent"), + value: core.serialization.string(), + }); + +export declare namespace UserAgent { + interface Raw { + header: "User-Agent"; + value: string; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/ir/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/index.ts index c2ff8a5817d..17947bff65f 100644 --- a/packages/ir-sdk/src/sdk/serialization/resources/ir/types/index.ts +++ b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/index.ts @@ -6,6 +6,7 @@ export * from "./ApiDefinitionSource"; export * from "./ProtoSource"; export * from "./SdkConfig"; export * from "./PlatformHeaders"; +export * from "./UserAgent"; export * from "./ApiVersionScheme"; export * from "./HeaderApiVersionScheme"; export * from "./ErrorDiscriminationStrategy";