From a58e3b8b27dc902667b6edec0e739f59e5c2cf09 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:33:22 +0000 Subject: [PATCH] SDK regeneration --- .fern/metadata.json | 4 +-- src/api/resources/agents/client/Client.ts | 8 ++--- ...SendParams.ts => AgentsMessageSendBody.ts} | 2 +- .../resources/agents/client/requests/index.ts | 2 +- src/api/resources/codes/client/Client.ts | 2 +- .../requests/TranscriptsCreateRequest.ts | 1 + src/api/types/CommonCodingSystemEnum.ts | 7 ++++ src/api/types/GuidedEphemeralDocument.ts | 2 +- src/api/types/StreamConfig.ts | 1 + src/api/types/StreamFormatting.ts | 18 ++++++++++ src/api/types/StreamFormattingDates.ts | 11 ++++++ src/api/types/StreamFormattingMeasurements.ts | 9 +++++ src/api/types/StreamFormattingNumbers.ts | 9 +++++ .../types/StreamFormattingNumericRanges.ts | 9 +++++ src/api/types/StreamFormattingOrdinals.ts | 9 +++++ src/api/types/StreamFormattingTimes.ts | 10 ++++++ src/api/types/TranscriptsFormatting.ts | 18 ++++++++++ src/api/types/TranscriptsFormattingDates.ts | 11 ++++++ .../TranscriptsFormattingMeasurements.ts | 9 +++++ src/api/types/TranscriptsFormattingNumbers.ts | 10 ++++++ .../TranscriptsFormattingNumericRanges.ts | 9 +++++ .../types/TranscriptsFormattingOrdinals.ts | 10 ++++++ src/api/types/TranscriptsFormattingTimes.ts | 10 ++++++ src/api/types/index.ts | 14 ++++++++ ...SendParams.ts => AgentsMessageSendBody.ts} | 8 ++--- .../resources/agents/client/requests/index.ts | 2 +- .../requests/TranscriptsCreateRequest.ts | 3 ++ .../types/CommonCodingSystemEnum.ts | 16 ++++++++- .../types/GuidedEphemeralDocument.ts | 4 +-- src/serialization/types/StreamConfig.ts | 3 ++ src/serialization/types/StreamFormatting.ts | 34 +++++++++++++++++++ .../types/StreamFormattingDates.ts | 14 ++++++++ .../types/StreamFormattingMeasurements.ts | 14 ++++++++ .../types/StreamFormattingNumbers.ts | 14 ++++++++ .../types/StreamFormattingNumericRanges.ts | 14 ++++++++ .../types/StreamFormattingOrdinals.ts | 14 ++++++++ .../types/StreamFormattingTimes.ts | 14 ++++++++ .../types/TranscriptsFormatting.ts | 34 +++++++++++++++++++ .../types/TranscriptsFormattingDates.ts | 14 ++++++++ .../TranscriptsFormattingMeasurements.ts | 14 ++++++++ .../types/TranscriptsFormattingNumbers.ts | 14 ++++++++ .../TranscriptsFormattingNumericRanges.ts | 14 ++++++++ .../types/TranscriptsFormattingOrdinals.ts | 14 ++++++++ .../types/TranscriptsFormattingTimes.ts | 14 ++++++++ src/serialization/types/index.ts | 14 ++++++++ tests/wire/documents.test.ts | 4 +-- 46 files changed, 465 insertions(+), 20 deletions(-) rename src/api/resources/agents/client/requests/{AgentsMessageSendParams.ts => AgentsMessageSendBody.ts} (93%) create mode 100644 src/api/types/StreamFormatting.ts create mode 100644 src/api/types/StreamFormattingDates.ts create mode 100644 src/api/types/StreamFormattingMeasurements.ts create mode 100644 src/api/types/StreamFormattingNumbers.ts create mode 100644 src/api/types/StreamFormattingNumericRanges.ts create mode 100644 src/api/types/StreamFormattingOrdinals.ts create mode 100644 src/api/types/StreamFormattingTimes.ts create mode 100644 src/api/types/TranscriptsFormatting.ts create mode 100644 src/api/types/TranscriptsFormattingDates.ts create mode 100644 src/api/types/TranscriptsFormattingMeasurements.ts create mode 100644 src/api/types/TranscriptsFormattingNumbers.ts create mode 100644 src/api/types/TranscriptsFormattingNumericRanges.ts create mode 100644 src/api/types/TranscriptsFormattingOrdinals.ts create mode 100644 src/api/types/TranscriptsFormattingTimes.ts rename src/serialization/resources/agents/client/requests/{AgentsMessageSendParams.ts => AgentsMessageSendBody.ts} (81%) create mode 100644 src/serialization/types/StreamFormatting.ts create mode 100644 src/serialization/types/StreamFormattingDates.ts create mode 100644 src/serialization/types/StreamFormattingMeasurements.ts create mode 100644 src/serialization/types/StreamFormattingNumbers.ts create mode 100644 src/serialization/types/StreamFormattingNumericRanges.ts create mode 100644 src/serialization/types/StreamFormattingOrdinals.ts create mode 100644 src/serialization/types/StreamFormattingTimes.ts create mode 100644 src/serialization/types/TranscriptsFormatting.ts create mode 100644 src/serialization/types/TranscriptsFormattingDates.ts create mode 100644 src/serialization/types/TranscriptsFormattingMeasurements.ts create mode 100644 src/serialization/types/TranscriptsFormattingNumbers.ts create mode 100644 src/serialization/types/TranscriptsFormattingNumericRanges.ts create mode 100644 src/serialization/types/TranscriptsFormattingOrdinals.ts create mode 100644 src/serialization/types/TranscriptsFormattingTimes.ts diff --git a/.fern/metadata.json b/.fern/metadata.json index ebb0cb8b..2ed7dd6b 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": "418437d033993691064c6a7e6da108081b2a419f", "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/resources/transcripts/client/requests/TranscriptsCreateRequest.ts b/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts index b1f96a29..4b41ea19 100644 --- a/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts +++ b/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts @@ -18,6 +18,7 @@ export interface TranscriptsCreateRequest { spokenPunctuation?: boolean; /** When true, automatically punctuates and capitalizes the transcript. Defaults to true. Overridden by `spokenPunctuation` when both are enabled. */ automaticPunctuation?: boolean; + formatting?: Corti.TranscriptsFormatting; /** **Deprecated** — replaced by `spokenPunctuation` and `automaticPunctuation`. Ignored when either of those fields is provided. When `true` and neither new field is provided, it is treated as `spokenPunctuation: true` (automatic punctuation off). No removal date is currently planned. */ isDictation?: boolean; /** If true, each audio channel is transcribed separately. */ 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/api/types/StreamConfig.ts b/src/api/types/StreamConfig.ts index 99bc74c5..1b987eef 100644 --- a/src/api/types/StreamConfig.ts +++ b/src/api/types/StreamConfig.ts @@ -8,6 +8,7 @@ export interface StreamConfig { /** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */ retentionPolicy?: Corti.StreamConfigRetentionPolicy; audioEvents?: Corti.StreamAudioEventsConfig; + formatting?: Corti.StreamFormatting; /** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */ audioFormat?: string; /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */ diff --git a/src/api/types/StreamFormatting.ts b/src/api/types/StreamFormatting.ts new file mode 100644 index 00000000..333001a7 --- /dev/null +++ b/src/api/types/StreamFormatting.ts @@ -0,0 +1,18 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../index.js"; + +export interface StreamFormatting { + /** Formatting for dates. */ + dates?: Corti.StreamFormattingDates; + /** Formatting for times. */ + times?: Corti.StreamFormattingTimes; + /** Formatting for numbers. */ + numbers?: Corti.StreamFormattingNumbers; + /** Formatting for measurements. */ + measurements?: Corti.StreamFormattingMeasurements; + /** Formatting for numeric ranges. */ + numericRanges?: Corti.StreamFormattingNumericRanges; + /** Formatting for ordinals. */ + ordinals?: Corti.StreamFormattingOrdinals; +} diff --git a/src/api/types/StreamFormattingDates.ts b/src/api/types/StreamFormattingDates.ts new file mode 100644 index 00000000..747edaa0 --- /dev/null +++ b/src/api/types/StreamFormattingDates.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for dates. */ +export const StreamFormattingDates = { + LocaleLong: "locale:long", + LocaleMedium: "locale:medium", + LocaleShort: "locale:short", + AsDictated: "as_dictated", + Iso: "iso", +} as const; +export type StreamFormattingDates = (typeof StreamFormattingDates)[keyof typeof StreamFormattingDates]; diff --git a/src/api/types/StreamFormattingMeasurements.ts b/src/api/types/StreamFormattingMeasurements.ts new file mode 100644 index 00000000..4a39ae48 --- /dev/null +++ b/src/api/types/StreamFormattingMeasurements.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for measurements. */ +export const StreamFormattingMeasurements = { + Abbreviated: "abbreviated", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingMeasurements = + (typeof StreamFormattingMeasurements)[keyof typeof StreamFormattingMeasurements]; diff --git a/src/api/types/StreamFormattingNumbers.ts b/src/api/types/StreamFormattingNumbers.ts new file mode 100644 index 00000000..5fb67b78 --- /dev/null +++ b/src/api/types/StreamFormattingNumbers.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numbers. */ +export const StreamFormattingNumbers = { + NumeralsAboveNine: "numerals_above_nine", + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingNumbers = (typeof StreamFormattingNumbers)[keyof typeof StreamFormattingNumbers]; diff --git a/src/api/types/StreamFormattingNumericRanges.ts b/src/api/types/StreamFormattingNumericRanges.ts new file mode 100644 index 00000000..ca7fbd72 --- /dev/null +++ b/src/api/types/StreamFormattingNumericRanges.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numeric ranges. */ +export const StreamFormattingNumericRanges = { + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingNumericRanges = + (typeof StreamFormattingNumericRanges)[keyof typeof StreamFormattingNumericRanges]; diff --git a/src/api/types/StreamFormattingOrdinals.ts b/src/api/types/StreamFormattingOrdinals.ts new file mode 100644 index 00000000..561fb6b0 --- /dev/null +++ b/src/api/types/StreamFormattingOrdinals.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for ordinals. */ +export const StreamFormattingOrdinals = { + NumeralsAboveNine: "numerals_above_nine", + AsDictated: "as_dictated", + Numerals: "numerals", +} as const; +export type StreamFormattingOrdinals = (typeof StreamFormattingOrdinals)[keyof typeof StreamFormattingOrdinals]; diff --git a/src/api/types/StreamFormattingTimes.ts b/src/api/types/StreamFormattingTimes.ts new file mode 100644 index 00000000..8761b4c2 --- /dev/null +++ b/src/api/types/StreamFormattingTimes.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for times. */ +export const StreamFormattingTimes = { + Locale: "locale", + H24: "h24", + H12: "h12", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingTimes = (typeof StreamFormattingTimes)[keyof typeof StreamFormattingTimes]; diff --git a/src/api/types/TranscriptsFormatting.ts b/src/api/types/TranscriptsFormatting.ts new file mode 100644 index 00000000..b9434af0 --- /dev/null +++ b/src/api/types/TranscriptsFormatting.ts @@ -0,0 +1,18 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../index.js"; + +export interface TranscriptsFormatting { + /** Formatting for dates. */ + dates?: Corti.TranscriptsFormattingDates; + /** Formatting for times. */ + times?: Corti.TranscriptsFormattingTimes; + /** Formatting for numbers. */ + numbers?: Corti.TranscriptsFormattingNumbers; + /** Formatting for measurements. */ + measurements?: Corti.TranscriptsFormattingMeasurements; + /** Formatting for numeric ranges. */ + numericRanges?: Corti.TranscriptsFormattingNumericRanges; + /** Formatting for ordinals. */ + ordinals?: Corti.TranscriptsFormattingOrdinals; +} diff --git a/src/api/types/TranscriptsFormattingDates.ts b/src/api/types/TranscriptsFormattingDates.ts new file mode 100644 index 00000000..a574a853 --- /dev/null +++ b/src/api/types/TranscriptsFormattingDates.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for dates. */ +export const TranscriptsFormattingDates = { + LocaleLong: "locale:long", + LocaleMedium: "locale:medium", + LocaleShort: "locale:short", + AsDictated: "as_dictated", + Iso: "iso", +} as const; +export type TranscriptsFormattingDates = (typeof TranscriptsFormattingDates)[keyof typeof TranscriptsFormattingDates]; diff --git a/src/api/types/TranscriptsFormattingMeasurements.ts b/src/api/types/TranscriptsFormattingMeasurements.ts new file mode 100644 index 00000000..ffb98a24 --- /dev/null +++ b/src/api/types/TranscriptsFormattingMeasurements.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for measurements. */ +export const TranscriptsFormattingMeasurements = { + Abbreviated: "abbreviated", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingMeasurements = + (typeof TranscriptsFormattingMeasurements)[keyof typeof TranscriptsFormattingMeasurements]; diff --git a/src/api/types/TranscriptsFormattingNumbers.ts b/src/api/types/TranscriptsFormattingNumbers.ts new file mode 100644 index 00000000..3911b813 --- /dev/null +++ b/src/api/types/TranscriptsFormattingNumbers.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numbers. */ +export const TranscriptsFormattingNumbers = { + NumeralsAboveNine: "numerals_above_nine", + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingNumbers = + (typeof TranscriptsFormattingNumbers)[keyof typeof TranscriptsFormattingNumbers]; diff --git a/src/api/types/TranscriptsFormattingNumericRanges.ts b/src/api/types/TranscriptsFormattingNumericRanges.ts new file mode 100644 index 00000000..facbeae9 --- /dev/null +++ b/src/api/types/TranscriptsFormattingNumericRanges.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numeric ranges. */ +export const TranscriptsFormattingNumericRanges = { + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingNumericRanges = + (typeof TranscriptsFormattingNumericRanges)[keyof typeof TranscriptsFormattingNumericRanges]; diff --git a/src/api/types/TranscriptsFormattingOrdinals.ts b/src/api/types/TranscriptsFormattingOrdinals.ts new file mode 100644 index 00000000..5c61b572 --- /dev/null +++ b/src/api/types/TranscriptsFormattingOrdinals.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for ordinals. */ +export const TranscriptsFormattingOrdinals = { + NumeralsAboveNine: "numerals_above_nine", + AsDictated: "as_dictated", + Numerals: "numerals", +} as const; +export type TranscriptsFormattingOrdinals = + (typeof TranscriptsFormattingOrdinals)[keyof typeof TranscriptsFormattingOrdinals]; diff --git a/src/api/types/TranscriptsFormattingTimes.ts b/src/api/types/TranscriptsFormattingTimes.ts new file mode 100644 index 00000000..a0ea16b2 --- /dev/null +++ b/src/api/types/TranscriptsFormattingTimes.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for times. */ +export const TranscriptsFormattingTimes = { + Locale: "locale", + H24: "h24", + H12: "h12", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingTimes = (typeof TranscriptsFormattingTimes)[keyof typeof TranscriptsFormattingTimes]; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 7ce73b9e..d63f1fa4 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -214,6 +214,13 @@ export * from "./StreamFact.js"; export * from "./StreamFactsMessage.js"; export * from "./StreamFlushedMessage.js"; export * from "./StreamFlushMessage.js"; +export * from "./StreamFormatting.js"; +export * from "./StreamFormattingDates.js"; +export * from "./StreamFormattingMeasurements.js"; +export * from "./StreamFormattingNumbers.js"; +export * from "./StreamFormattingNumericRanges.js"; +export * from "./StreamFormattingOrdinals.js"; +export * from "./StreamFormattingTimes.js"; export * from "./StreamParticipant.js"; export * from "./StreamSupportedLanguage.js"; export * from "./StreamTranscript.js"; @@ -265,6 +272,13 @@ export * from "./TranscribeTranscriptData.js"; export * from "./TranscribeTranscriptMessage.js"; export * from "./TranscribeUsageMessage.js"; export * from "./TranscriptsData.js"; +export * from "./TranscriptsFormatting.js"; +export * from "./TranscriptsFormattingDates.js"; +export * from "./TranscriptsFormattingMeasurements.js"; +export * from "./TranscriptsFormattingNumbers.js"; +export * from "./TranscriptsFormattingNumericRanges.js"; +export * from "./TranscriptsFormattingOrdinals.js"; +export * from "./TranscriptsFormattingTimes.js"; export * from "./TranscriptsListItem.js"; export * from "./TranscriptsListResponse.js"; export * from "./TranscriptsMetadata.js"; 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/resources/transcripts/client/requests/TranscriptsCreateRequest.ts b/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts index ad97965b..dcc9f2b6 100644 --- a/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts +++ b/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts @@ -3,6 +3,7 @@ import type * as Corti from "../../../../../api/index.js"; import * as core from "../../../../../core/index.js"; import type * as serializers from "../../../../index.js"; +import { TranscriptsFormatting } from "../../../../types/TranscriptsFormatting.js"; import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.js"; import { Uuid } from "../../../../types/Uuid.js"; import { TranscriptsCreateRequestKeyterms } from "../../types/TranscriptsCreateRequestKeyterms.js"; @@ -16,6 +17,7 @@ export const TranscriptsCreateRequest: core.serialization.Schema< primaryLanguage: core.serialization.string(), spokenPunctuation: core.serialization.boolean().optional(), automaticPunctuation: core.serialization.boolean().optional(), + formatting: TranscriptsFormatting.optional(), isDictation: core.serialization.boolean().optional(), isMultichannel: core.serialization.boolean().optional(), diarize: core.serialization.boolean().optional(), @@ -31,6 +33,7 @@ export declare namespace TranscriptsCreateRequest { primaryLanguage: string; spokenPunctuation?: boolean | null; automaticPunctuation?: boolean | null; + formatting?: TranscriptsFormatting.Raw | null; isDictation?: boolean | null; isMultichannel?: boolean | null; diarize?: boolean | null; 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/src/serialization/types/StreamConfig.ts b/src/serialization/types/StreamConfig.ts index 478194b8..839a8676 100644 --- a/src/serialization/types/StreamConfig.ts +++ b/src/serialization/types/StreamConfig.ts @@ -9,6 +9,7 @@ import { StreamConfigMode } from "./StreamConfigMode.js"; import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.js"; import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.js"; import { StreamConfigTranscription } from "./StreamConfigTranscription.js"; +import { StreamFormatting } from "./StreamFormatting.js"; export const StreamConfig: core.serialization.ObjectSchema = core.serialization.object({ @@ -16,6 +17,7 @@ export const StreamConfig: core.serialization.ObjectSchema = core.serialization.object({ + dates: StreamFormattingDates.optional(), + times: StreamFormattingTimes.optional(), + numbers: StreamFormattingNumbers.optional(), + measurements: StreamFormattingMeasurements.optional(), + numericRanges: StreamFormattingNumericRanges.optional(), + ordinals: StreamFormattingOrdinals.optional(), +}); + +export declare namespace StreamFormatting { + export interface Raw { + dates?: StreamFormattingDates.Raw | null; + times?: StreamFormattingTimes.Raw | null; + numbers?: StreamFormattingNumbers.Raw | null; + measurements?: StreamFormattingMeasurements.Raw | null; + numericRanges?: StreamFormattingNumericRanges.Raw | null; + ordinals?: StreamFormattingOrdinals.Raw | null; + } +} diff --git a/src/serialization/types/StreamFormattingDates.ts b/src/serialization/types/StreamFormattingDates.ts new file mode 100644 index 00000000..fb48b372 --- /dev/null +++ b/src/serialization/types/StreamFormattingDates.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingDates: core.serialization.Schema< + serializers.StreamFormattingDates.Raw, + Corti.StreamFormattingDates +> = core.serialization.enum_(["locale:long", "locale:medium", "locale:short", "as_dictated", "iso"]); + +export declare namespace StreamFormattingDates { + export type Raw = "locale:long" | "locale:medium" | "locale:short" | "as_dictated" | "iso"; +} diff --git a/src/serialization/types/StreamFormattingMeasurements.ts b/src/serialization/types/StreamFormattingMeasurements.ts new file mode 100644 index 00000000..39f1fda5 --- /dev/null +++ b/src/serialization/types/StreamFormattingMeasurements.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingMeasurements: core.serialization.Schema< + serializers.StreamFormattingMeasurements.Raw, + Corti.StreamFormattingMeasurements +> = core.serialization.enum_(["abbreviated", "as_dictated"]); + +export declare namespace StreamFormattingMeasurements { + export type Raw = "abbreviated" | "as_dictated"; +} diff --git a/src/serialization/types/StreamFormattingNumbers.ts b/src/serialization/types/StreamFormattingNumbers.ts new file mode 100644 index 00000000..efe836f3 --- /dev/null +++ b/src/serialization/types/StreamFormattingNumbers.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingNumbers: core.serialization.Schema< + serializers.StreamFormattingNumbers.Raw, + Corti.StreamFormattingNumbers +> = core.serialization.enum_(["numerals_above_nine", "numerals", "as_dictated"]); + +export declare namespace StreamFormattingNumbers { + export type Raw = "numerals_above_nine" | "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/StreamFormattingNumericRanges.ts b/src/serialization/types/StreamFormattingNumericRanges.ts new file mode 100644 index 00000000..b22352a6 --- /dev/null +++ b/src/serialization/types/StreamFormattingNumericRanges.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingNumericRanges: core.serialization.Schema< + serializers.StreamFormattingNumericRanges.Raw, + Corti.StreamFormattingNumericRanges +> = core.serialization.enum_(["numerals", "as_dictated"]); + +export declare namespace StreamFormattingNumericRanges { + export type Raw = "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/StreamFormattingOrdinals.ts b/src/serialization/types/StreamFormattingOrdinals.ts new file mode 100644 index 00000000..d17d3935 --- /dev/null +++ b/src/serialization/types/StreamFormattingOrdinals.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingOrdinals: core.serialization.Schema< + serializers.StreamFormattingOrdinals.Raw, + Corti.StreamFormattingOrdinals +> = core.serialization.enum_(["numerals_above_nine", "as_dictated", "numerals"]); + +export declare namespace StreamFormattingOrdinals { + export type Raw = "numerals_above_nine" | "as_dictated" | "numerals"; +} diff --git a/src/serialization/types/StreamFormattingTimes.ts b/src/serialization/types/StreamFormattingTimes.ts new file mode 100644 index 00000000..30e887eb --- /dev/null +++ b/src/serialization/types/StreamFormattingTimes.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingTimes: core.serialization.Schema< + serializers.StreamFormattingTimes.Raw, + Corti.StreamFormattingTimes +> = core.serialization.enum_(["locale", "h24", "h12", "as_dictated"]); + +export declare namespace StreamFormattingTimes { + export type Raw = "locale" | "h24" | "h12" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormatting.ts b/src/serialization/types/TranscriptsFormatting.ts new file mode 100644 index 00000000..2273c879 --- /dev/null +++ b/src/serialization/types/TranscriptsFormatting.ts @@ -0,0 +1,34 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; +import { TranscriptsFormattingDates } from "./TranscriptsFormattingDates.js"; +import { TranscriptsFormattingMeasurements } from "./TranscriptsFormattingMeasurements.js"; +import { TranscriptsFormattingNumbers } from "./TranscriptsFormattingNumbers.js"; +import { TranscriptsFormattingNumericRanges } from "./TranscriptsFormattingNumericRanges.js"; +import { TranscriptsFormattingOrdinals } from "./TranscriptsFormattingOrdinals.js"; +import { TranscriptsFormattingTimes } from "./TranscriptsFormattingTimes.js"; + +export const TranscriptsFormatting: core.serialization.ObjectSchema< + serializers.TranscriptsFormatting.Raw, + Corti.TranscriptsFormatting +> = core.serialization.object({ + dates: TranscriptsFormattingDates.optional(), + times: TranscriptsFormattingTimes.optional(), + numbers: TranscriptsFormattingNumbers.optional(), + measurements: TranscriptsFormattingMeasurements.optional(), + numericRanges: TranscriptsFormattingNumericRanges.optional(), + ordinals: TranscriptsFormattingOrdinals.optional(), +}); + +export declare namespace TranscriptsFormatting { + export interface Raw { + dates?: TranscriptsFormattingDates.Raw | null; + times?: TranscriptsFormattingTimes.Raw | null; + numbers?: TranscriptsFormattingNumbers.Raw | null; + measurements?: TranscriptsFormattingMeasurements.Raw | null; + numericRanges?: TranscriptsFormattingNumericRanges.Raw | null; + ordinals?: TranscriptsFormattingOrdinals.Raw | null; + } +} diff --git a/src/serialization/types/TranscriptsFormattingDates.ts b/src/serialization/types/TranscriptsFormattingDates.ts new file mode 100644 index 00000000..a1df49e0 --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingDates.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingDates: core.serialization.Schema< + serializers.TranscriptsFormattingDates.Raw, + Corti.TranscriptsFormattingDates +> = core.serialization.enum_(["locale:long", "locale:medium", "locale:short", "as_dictated", "iso"]); + +export declare namespace TranscriptsFormattingDates { + export type Raw = "locale:long" | "locale:medium" | "locale:short" | "as_dictated" | "iso"; +} diff --git a/src/serialization/types/TranscriptsFormattingMeasurements.ts b/src/serialization/types/TranscriptsFormattingMeasurements.ts new file mode 100644 index 00000000..839e6f9e --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingMeasurements.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingMeasurements: core.serialization.Schema< + serializers.TranscriptsFormattingMeasurements.Raw, + Corti.TranscriptsFormattingMeasurements +> = core.serialization.enum_(["abbreviated", "as_dictated"]); + +export declare namespace TranscriptsFormattingMeasurements { + export type Raw = "abbreviated" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingNumbers.ts b/src/serialization/types/TranscriptsFormattingNumbers.ts new file mode 100644 index 00000000..2880e87f --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingNumbers.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingNumbers: core.serialization.Schema< + serializers.TranscriptsFormattingNumbers.Raw, + Corti.TranscriptsFormattingNumbers +> = core.serialization.enum_(["numerals_above_nine", "numerals", "as_dictated"]); + +export declare namespace TranscriptsFormattingNumbers { + export type Raw = "numerals_above_nine" | "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingNumericRanges.ts b/src/serialization/types/TranscriptsFormattingNumericRanges.ts new file mode 100644 index 00000000..ea6c73ff --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingNumericRanges.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingNumericRanges: core.serialization.Schema< + serializers.TranscriptsFormattingNumericRanges.Raw, + Corti.TranscriptsFormattingNumericRanges +> = core.serialization.enum_(["numerals", "as_dictated"]); + +export declare namespace TranscriptsFormattingNumericRanges { + export type Raw = "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingOrdinals.ts b/src/serialization/types/TranscriptsFormattingOrdinals.ts new file mode 100644 index 00000000..44b379da --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingOrdinals.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingOrdinals: core.serialization.Schema< + serializers.TranscriptsFormattingOrdinals.Raw, + Corti.TranscriptsFormattingOrdinals +> = core.serialization.enum_(["numerals_above_nine", "as_dictated", "numerals"]); + +export declare namespace TranscriptsFormattingOrdinals { + export type Raw = "numerals_above_nine" | "as_dictated" | "numerals"; +} diff --git a/src/serialization/types/TranscriptsFormattingTimes.ts b/src/serialization/types/TranscriptsFormattingTimes.ts new file mode 100644 index 00000000..b4a33ad1 --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingTimes.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingTimes: core.serialization.Schema< + serializers.TranscriptsFormattingTimes.Raw, + Corti.TranscriptsFormattingTimes +> = core.serialization.enum_(["locale", "h24", "h12", "as_dictated"]); + +export declare namespace TranscriptsFormattingTimes { + export type Raw = "locale" | "h24" | "h12" | "as_dictated"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 7ce73b9e..d63f1fa4 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -214,6 +214,13 @@ export * from "./StreamFact.js"; export * from "./StreamFactsMessage.js"; export * from "./StreamFlushedMessage.js"; export * from "./StreamFlushMessage.js"; +export * from "./StreamFormatting.js"; +export * from "./StreamFormattingDates.js"; +export * from "./StreamFormattingMeasurements.js"; +export * from "./StreamFormattingNumbers.js"; +export * from "./StreamFormattingNumericRanges.js"; +export * from "./StreamFormattingOrdinals.js"; +export * from "./StreamFormattingTimes.js"; export * from "./StreamParticipant.js"; export * from "./StreamSupportedLanguage.js"; export * from "./StreamTranscript.js"; @@ -265,6 +272,13 @@ export * from "./TranscribeTranscriptData.js"; export * from "./TranscribeTranscriptMessage.js"; export * from "./TranscribeUsageMessage.js"; export * from "./TranscriptsData.js"; +export * from "./TranscriptsFormatting.js"; +export * from "./TranscriptsFormattingDates.js"; +export * from "./TranscriptsFormattingMeasurements.js"; +export * from "./TranscriptsFormattingNumbers.js"; +export * from "./TranscriptsFormattingNumericRanges.js"; +export * from "./TranscriptsFormattingOrdinals.js"; +export * from "./TranscriptsFormattingTimes.js"; export * from "./TranscriptsListItem.js"; export * from "./TranscriptsListResponse.js"; export * from "./TranscriptsMetadata.js"; 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",