From 20fb40ca957c2f1aa6870c79d68492a76666083e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 14:02:20 +0000 Subject: [PATCH] SDK regeneration --- .fern/metadata.json | 4 ++-- src/api/resources/agents/client/Client.ts | 8 ++++---- ...ageSendParams.ts => AgentsMessageSendBody.ts} | 2 +- .../resources/agents/client/requests/index.ts | 2 +- src/api/resources/codes/client/Client.ts | 2 +- src/api/types/CommonCodingSystemEnum.ts | 7 +++++++ src/api/types/GuidedEphemeralDocument.ts | 2 +- ...ageSendParams.ts => AgentsMessageSendBody.ts} | 8 ++++---- .../resources/agents/client/requests/index.ts | 2 +- .../types/CommonCodingSystemEnum.ts | 16 +++++++++++++++- .../types/GuidedEphemeralDocument.ts | 4 ++-- tests/wire/documents.test.ts | 4 ++-- 12 files changed, 41 insertions(+), 20 deletions(-) rename src/api/resources/agents/client/requests/{AgentsMessageSendParams.ts => AgentsMessageSendBody.ts} (93%) rename src/serialization/resources/agents/client/requests/{AgentsMessageSendParams.ts => AgentsMessageSendBody.ts} (81%) diff --git a/.fern/metadata.json b/.fern/metadata.json index ebb0cb8b..02bac092 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.75.1", + "cliVersion": "5.80.2", "generatorName": "fernapi/fern-typescript-node-sdk", "generatorVersion": "3.54.0", "generatorConfig": { @@ -34,6 +34,6 @@ } } }, - "originGitCommit": "94a714862b705ee097af1b7ef3c5d9affa7fc382", + "originGitCommit": "f9f316d6867d3aff7cb76ee5566aae1d0862974c", "sdkVersion": "0.0.0-dev" } diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts index c9b40606..89823e89 100644 --- a/src/api/resources/agents/client/Client.ts +++ b/src/api/resources/agents/client/Client.ts @@ -516,7 +516,7 @@ export class AgentsClient { * This endpoint sends a message to the specified agent to start or continue a task. The agent processes the message and returns a response. If the message contains a task ID that matches an ongoing task, the agent will continue that task; otherwise, it will start a new task. * * @param {string} id - The identifier of the agent associated with the context. - * @param {Corti.AgentsMessageSendParams} request + * @param {Corti.AgentsMessageSendBody} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} @@ -540,7 +540,7 @@ export class AgentsClient { */ public messageSend( id: string, - request: Corti.AgentsMessageSendParams, + request: Corti.AgentsMessageSendBody, requestOptions?: AgentsClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__messageSend(id, request, requestOptions)); @@ -548,7 +548,7 @@ export class AgentsClient { private async __messageSend( id: string, - request: Corti.AgentsMessageSendParams, + request: Corti.AgentsMessageSendBody, requestOptions?: AgentsClient.RequestOptions, ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); @@ -569,7 +569,7 @@ export class AgentsClient { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.AgentsMessageSendParams.jsonOrThrow(request, { + body: serializers.AgentsMessageSendBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), diff --git a/src/api/resources/agents/client/requests/AgentsMessageSendParams.ts b/src/api/resources/agents/client/requests/AgentsMessageSendBody.ts similarity index 93% rename from src/api/resources/agents/client/requests/AgentsMessageSendParams.ts rename to src/api/resources/agents/client/requests/AgentsMessageSendBody.ts index 53f9cf2e..922b0bda 100644 --- a/src/api/resources/agents/client/requests/AgentsMessageSendParams.ts +++ b/src/api/resources/agents/client/requests/AgentsMessageSendBody.ts @@ -16,7 +16,7 @@ import type * as Corti from "../../../../index.js"; * } * } */ -export interface AgentsMessageSendParams { +export interface AgentsMessageSendBody { message: Corti.AgentsMessage; configuration?: Corti.AgentsMessageSendConfiguration; /** Optional metadata that will be associated with the message. */ diff --git a/src/api/resources/agents/client/requests/index.ts b/src/api/resources/agents/client/requests/index.ts index e43b0bbc..dbc8bcb0 100644 --- a/src/api/resources/agents/client/requests/index.ts +++ b/src/api/resources/agents/client/requests/index.ts @@ -3,5 +3,5 @@ export type { AgentsGetContextRequest } from "./AgentsGetContextRequest.js"; export type { AgentsGetRegistryExpertsRequest } from "./AgentsGetRegistryExpertsRequest.js"; export type { AgentsGetTaskRequest } from "./AgentsGetTaskRequest.js"; export type { AgentsListRequest } from "./AgentsListRequest.js"; -export type { AgentsMessageSendParams } from "./AgentsMessageSendParams.js"; +export type { AgentsMessageSendBody } from "./AgentsMessageSendBody.js"; export type { AgentsUpdateAgent } from "./AgentsUpdateAgent.js"; diff --git a/src/api/resources/codes/client/Client.ts b/src/api/resources/codes/client/Client.ts index fc372036..04fb9f36 100644 --- a/src/api/resources/codes/client/Client.ts +++ b/src/api/resources/codes/client/Client.ts @@ -23,7 +23,7 @@ export class CodesClient { } /** - * Predict medical codes from provided context.
This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.

More than one code system may be defined in a single request.

Code prediction requests have two possible values for context:
- `text`: One set of code prediction results will be returned based on all input text defined.
- `documentId`: Code prediction will be based on that defined document only.

The response includes two sets of results:
- `Codes`: Codes predicted by the model.
- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.

All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).
+ * Predict medical codes from provided context.
This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT and SNOMED CT codes based on input text string or documentId.

More than one code system may be defined in a single request.

Code prediction requests have two possible values for context:
- `text`: One set of code prediction results will be returned based on all input text defined.
- `documentId`: Code prediction will be based on that defined document only.

The response includes two sets of results:
- `Codes`: Codes predicted by the model.
- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.

All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).
* * @param {Corti.CodesGeneralPredictRequest} request * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration. diff --git a/src/api/types/CommonCodingSystemEnum.ts b/src/api/types/CommonCodingSystemEnum.ts index 3088eee2..35b845db 100644 --- a/src/api/types/CommonCodingSystemEnum.ts +++ b/src/api/types/CommonCodingSystemEnum.ts @@ -17,5 +17,12 @@ export const CommonCodingSystemEnum = { Ops: "ops", Ccam: "ccam", Snomedctint: "snomedctint", + Snomedctde: "snomedctde", + Snomedctfr: "snomedctfr", + Snomedctuk: "snomedctuk", + Snomedctes: "snomedctes", + Snomedctdk: "snomedctdk", + Snomedctse: "snomedctse", + Snomedctus: "snomedctus", } as const; export type CommonCodingSystemEnum = (typeof CommonCodingSystemEnum)[keyof typeof CommonCodingSystemEnum]; diff --git a/src/api/types/GuidedEphemeralDocument.ts b/src/api/types/GuidedEphemeralDocument.ts index 5b42d461..f0a96122 100644 --- a/src/api/types/GuidedEphemeralDocument.ts +++ b/src/api/types/GuidedEphemeralDocument.ts @@ -10,7 +10,7 @@ export interface GuidedEphemeralDocument { templateId: string; templateVersionId: string; /** The BCP 47 language tag of the generated output. */ - language: string; + outputLanguage: string; /** The interaction whose context was used to generate this document, if supplied. */ interactionId?: string | null; stringDocument: Record; diff --git a/src/serialization/resources/agents/client/requests/AgentsMessageSendParams.ts b/src/serialization/resources/agents/client/requests/AgentsMessageSendBody.ts similarity index 81% rename from src/serialization/resources/agents/client/requests/AgentsMessageSendParams.ts rename to src/serialization/resources/agents/client/requests/AgentsMessageSendBody.ts index 24247fb7..0fc3860b 100644 --- a/src/serialization/resources/agents/client/requests/AgentsMessageSendParams.ts +++ b/src/serialization/resources/agents/client/requests/AgentsMessageSendBody.ts @@ -6,16 +6,16 @@ import type * as serializers from "../../../../index.js"; import { AgentsMessage } from "../../../../types/AgentsMessage.js"; import { AgentsMessageSendConfiguration } from "../../../../types/AgentsMessageSendConfiguration.js"; -export const AgentsMessageSendParams: core.serialization.Schema< - serializers.AgentsMessageSendParams.Raw, - Corti.AgentsMessageSendParams +export const AgentsMessageSendBody: core.serialization.Schema< + serializers.AgentsMessageSendBody.Raw, + Corti.AgentsMessageSendBody > = core.serialization.object({ message: AgentsMessage, configuration: AgentsMessageSendConfiguration.optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), }); -export declare namespace AgentsMessageSendParams { +export declare namespace AgentsMessageSendBody { export interface Raw { message: AgentsMessage.Raw; configuration?: AgentsMessageSendConfiguration.Raw | null; diff --git a/src/serialization/resources/agents/client/requests/index.ts b/src/serialization/resources/agents/client/requests/index.ts index 36d03a60..2ec1ca0a 100644 --- a/src/serialization/resources/agents/client/requests/index.ts +++ b/src/serialization/resources/agents/client/requests/index.ts @@ -1,3 +1,3 @@ export { AgentsCreateAgent } from "./AgentsCreateAgent.js"; -export { AgentsMessageSendParams } from "./AgentsMessageSendParams.js"; +export { AgentsMessageSendBody } from "./AgentsMessageSendBody.js"; export { AgentsUpdateAgent } from "./AgentsUpdateAgent.js"; diff --git a/src/serialization/types/CommonCodingSystemEnum.ts b/src/serialization/types/CommonCodingSystemEnum.ts index e72a9e43..898122a9 100644 --- a/src/serialization/types/CommonCodingSystemEnum.ts +++ b/src/serialization/types/CommonCodingSystemEnum.ts @@ -24,6 +24,13 @@ export const CommonCodingSystemEnum: core.serialization.Schema< "ops", "ccam", "snomedctint", + "snomedctde", + "snomedctfr", + "snomedctuk", + "snomedctes", + "snomedctdk", + "snomedctse", + "snomedctus", ]); export declare namespace CommonCodingSystemEnum { @@ -43,5 +50,12 @@ export declare namespace CommonCodingSystemEnum { | "opcs4" | "ops" | "ccam" - | "snomedctint"; + | "snomedctint" + | "snomedctde" + | "snomedctfr" + | "snomedctuk" + | "snomedctes" + | "snomedctdk" + | "snomedctse" + | "snomedctus"; } diff --git a/src/serialization/types/GuidedEphemeralDocument.ts b/src/serialization/types/GuidedEphemeralDocument.ts index 516b6235..98fe685f 100644 --- a/src/serialization/types/GuidedEphemeralDocument.ts +++ b/src/serialization/types/GuidedEphemeralDocument.ts @@ -12,7 +12,7 @@ export const GuidedEphemeralDocument: core.serialization.ObjectSchema< name: core.serialization.string(), templateId: core.serialization.string(), templateVersionId: core.serialization.string(), - language: core.serialization.string(), + outputLanguage: core.serialization.string(), interactionId: core.serialization.string().optionalNullable(), stringDocument: core.serialization.record(core.serialization.string(), core.serialization.string()), structuredDocument: core.serialization @@ -26,7 +26,7 @@ export declare namespace GuidedEphemeralDocument { name: string; templateId: string; templateVersionId: string; - language: string; + outputLanguage: string; interactionId?: (string | null | undefined) | null; stringDocument: Record; structuredDocument?: (Record | null | undefined) | null; diff --git a/tests/wire/documents.test.ts b/tests/wire/documents.test.ts index 1f3e4b3e..70544566 100644 --- a/tests/wire/documents.test.ts +++ b/tests/wire/documents.test.ts @@ -1030,7 +1030,7 @@ describe("DocumentsClient", () => { name: "name", templateId: "templateId", templateVersionId: "templateVersionId", - language: "language", + outputLanguage: "outputLanguage", interactionId: "interactionId", stringDocument: { key: "value" }, structuredDocument: { key: "value" }, @@ -1059,7 +1059,7 @@ describe("DocumentsClient", () => { name: "name", templateId: "templateId", templateVersionId: "templateVersionId", - language: "language", + outputLanguage: "outputLanguage", interactionId: "interactionId", stringDocument: { key: "value",