diff --git a/.fern/metadata.json b/.fern/metadata.json
index ea2c333a..ae750338 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -1,5 +1,5 @@
{
- "cliVersion": "5.93.0",
+ "cliVersion": "5.110.0",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.54.0",
"generatorConfig": {
@@ -34,6 +34,6 @@
}
}
},
- "originGitCommit": "c993f464ca70e6cae3f0b9700d2b6e2109527ba4",
+ "originGitCommit": "b955ac54dd45b5a72c6ebd051fb6ba0f1c6ff499",
"sdkVersion": "0.0.0-dev"
}
diff --git a/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts b/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts
index 8c72aa54..3cb72260 100644
--- a/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts
+++ b/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts
@@ -61,6 +61,8 @@ export interface AgenticAgentsCreateRequest {
systemPrompt?: string;
/** Tenant default if omitted. */
model?: string;
+ /** Caps the orchestrator's ReAct loop iterations per run. Server default 10 if omitted. */
+ maxLoops?: number;
visibility?: Corti.AgentsVisibility;
lifecycle?: Corti.AgentsLifecycle;
/** Connectors to attach at creation. Defaults to an empty array. */
diff --git a/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts b/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts
index fbfd16f0..74a53f80 100644
--- a/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts
+++ b/src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts
@@ -21,6 +21,8 @@ export interface AgenticAgentsPatchRequest {
systemPrompt?: string | null;
/** New model identifier; `null` falls back to the tenant default. */
model?: string | null;
+ /** New cap on the orchestrator's ReAct loop iterations per run. Omitted leaves the current value unchanged; there is no `null`-reset — send 10 to restore the default. */
+ maxLoops?: number;
visibility?: Corti.AgentsVisibility;
lifecycle?: Corti.AgentsLifecycle;
/** Replacement connector list; `null` clears connectors. */
diff --git a/src/api/resources/codes/client/Client.ts b/src/api/resources/codes/client/Client.ts
index 04fb9f36..a61b481d 100644
--- a/src/api/resources/codes/client/Client.ts
+++ b/src/api/resources/codes/client/Client.ts
@@ -51,8 +51,11 @@ export class CodesClient {
* text: "Patient presents with uncontrolled type 2 diabetes."
* }],
* filter: {
- * include: ["E11"],
- * exclude: ["exclude"]
+ * include: [{
+ * property: "code",
+ * op: "is-a",
+ * value: ["E11"]
+ * }]
* }
* })
*/
diff --git a/src/api/resources/codes/client/requests/CodesGeneralPredictRequest.ts b/src/api/resources/codes/client/requests/CodesGeneralPredictRequest.ts
index 26464004..86706fe4 100644
--- a/src/api/resources/codes/client/requests/CodesGeneralPredictRequest.ts
+++ b/src/api/resources/codes/client/requests/CodesGeneralPredictRequest.ts
@@ -20,8 +20,11 @@ import type * as Corti from "../../../../index.js";
* text: "Patient presents with uncontrolled type 2 diabetes."
* }],
* filter: {
- * include: ["E11"],
- * exclude: ["exclude"]
+ * include: [{
+ * property: "code",
+ * op: "is-a",
+ * value: ["E11"]
+ * }]
* }
* }
*/
diff --git a/src/api/resources/documents/resources/classic/client/Client.ts b/src/api/resources/documents/resources/classic/client/Client.ts
index b0659f9b..b46e4e28 100644
--- a/src/api/resources/documents/resources/classic/client/Client.ts
+++ b/src/api/resources/documents/resources/classic/client/Client.ts
@@ -27,6 +27,10 @@ export class ClassicClient {
*
* List Documents
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
*
@@ -129,6 +133,10 @@ export class ClassicClient {
*
* This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
* @param {Corti.DocumentsCreateRequest} request
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -254,6 +262,10 @@ export class ClassicClient {
*
* Get Document.
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -362,6 +374,10 @@ export class ClassicClient {
/**
* @deprecated
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -461,6 +477,10 @@ export class ClassicClient {
/**
* @deprecated
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
* @param {Corti.documents.DocumentsUpdateRequest} request
diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts
index 3a109232..1089d81d 100644
--- a/src/api/resources/templates/client/Client.ts
+++ b/src/api/resources/templates/client/Client.ts
@@ -23,8 +23,14 @@ export class TemplatesClient {
}
/**
+ * @deprecated
+ *
* Retrieves a list of template sections with optional filters for organization and language.
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {Corti.TemplatesSectionListRequest} request
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
*
@@ -113,8 +119,14 @@ export class TemplatesClient {
}
/**
+ * @deprecated
+ *
* Retrieves a list of templates with optional filters for organization, language, and status.
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {Corti.TemplatesListRequest} request
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
*
@@ -204,8 +216,14 @@ export class TemplatesClient {
}
/**
+ * @deprecated
+ *
* Retrieves template by key.
*
+ *
+ * This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
+ *
+ *
* @param {string} key - The key of the template
* @param {TemplatesClient.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..cbc68131 100644
--- a/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts
+++ b/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts
@@ -18,13 +18,14 @@ 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. */
isMultichannel?: boolean;
/** If true, separates speakers within an audio channel returning incrementing ids for transcript segments. */
diarize?: boolean;
- /** An array of participants, each specifying a role and an assigned audio channel in the recording. Leave empty when shouldDiarize: true */
+ /** An array of participants, each specifying a free-form role and an assigned audio channel in the recording. For raw PCM, the channel count must be defined; otherwise, the number of audio channels is resolved from the audio itself, not from the declared participants. Leave empty when diarize: true. See [audio formatting](https://docs.corti.ai/stt/audio) for full details. */
participants?: Corti.TranscriptsParticipant[];
/** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
async?: boolean;
@@ -32,4 +33,6 @@ export interface TranscriptsCreateRequest {
replacements?: Corti.TranscriptsCreateRequestReplacementsItem[];
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. */
keyterms?: Corti.TranscriptsCreateRequestKeyterms;
+ /** When enabled, the transcript is stored and returned at word level instead of phrase/utterance level. Fixed for the lifetime of the transcript once created. */
+ wordLevel?: Corti.TranscriptsCreateRequestWordLevel;
}
diff --git a/src/api/resources/transcripts/types/TranscriptsCreateRequestWordLevel.ts b/src/api/resources/transcripts/types/TranscriptsCreateRequestWordLevel.ts
new file mode 100644
index 00000000..62ffa051
--- /dev/null
+++ b/src/api/resources/transcripts/types/TranscriptsCreateRequestWordLevel.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * When enabled, the transcript is stored and returned at word level instead of phrase/utterance level. Fixed for the lifetime of the transcript once created.
+ */
+export interface TranscriptsCreateRequestWordLevel {
+ enabled?: boolean;
+}
diff --git a/src/api/resources/transcripts/types/index.ts b/src/api/resources/transcripts/types/index.ts
index 1d8e0239..5aff1f01 100644
--- a/src/api/resources/transcripts/types/index.ts
+++ b/src/api/resources/transcripts/types/index.ts
@@ -1,3 +1,4 @@
export * from "./TranscriptsCreateRequestKeyterms.js";
export * from "./TranscriptsCreateRequestKeytermsTermsItem.js";
export * from "./TranscriptsCreateRequestReplacementsItem.js";
+export * from "./TranscriptsCreateRequestWordLevel.js";
diff --git a/src/api/types/AgenticAgentsResponse.ts b/src/api/types/AgenticAgentsResponse.ts
index 9c1eba98..5d5ec202 100644
--- a/src/api/types/AgenticAgentsResponse.ts
+++ b/src/api/types/AgenticAgentsResponse.ts
@@ -18,6 +18,8 @@ export interface AgenticAgentsResponse {
* **Open question** — in the current implementation a model is configured per *expert*, not per *agent* (`Expert.modelName`), and an `Agent` has no model field at all. The desired end state is that there is **no distinction between an expert and an agent**, so `model` lives uniformly on this resource. Until that convergence lands, the precedence of an agent-level `model` over a connector/expert-level override is undecided and MUST be resolved before this field ships.
*/
model?: string | null;
+ /** Effective cap on the orchestrator's ReAct loop iterations per run. Always present: agents created without `maxLoops` report the server default (10). */
+ maxLoops: number;
visibility: Corti.AgentsVisibility;
lifecycle: Corti.AgentsLifecycle;
/** Connectors attached to the agent, discriminated by `type`. */
@@ -29,4 +31,6 @@ export interface AgenticAgentsResponse {
updatedAt?: Date;
/** Principal (user or service principal) that created the agent. */
createdBy?: Corti.AgentsUserIdValue;
+ /** When the agent expires; `null` means it does not expire. Ephemeral agents get a 24h expiry at creation time; persistent agents never expire. */
+ expiresAt?: Date | null;
}
diff --git a/src/api/types/CodesFilter.ts b/src/api/types/CodesFilter.ts
index 8d487037..d6380586 100644
--- a/src/api/types/CodesFilter.ts
+++ b/src/api/types/CodesFilter.ts
@@ -1,13 +1,13 @@
// This file was auto-generated by Fern from our API Definition.
+import type * as Corti from "../index.js";
+
/**
* Optional filter to restrict the set of codes the model can predict.
*/
export interface CodesFilter {
- /** Codes or categories to include. When empty, the full set of codes for the requested systems is used. */
- include?: string[];
- /** Codes or categories to subtract from the include set. */
- exclude?: string[];
- /** When true (default), category codes are expanded to their leaf codes. */
- expand?: boolean;
+ /** Condition objects to include. When empty, the full set of codes for the requested systems is used. */
+ include?: Corti.CodesFilterCondition[];
+ /** Condition objects to subtract from the include set. */
+ exclude?: Corti.CodesFilterCondition[];
}
diff --git a/src/api/types/CodesFilterCondition.ts b/src/api/types/CodesFilterCondition.ts
new file mode 100644
index 00000000..9a7124f6
--- /dev/null
+++ b/src/api/types/CodesFilterCondition.ts
@@ -0,0 +1,15 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Corti from "../index.js";
+
+/**
+ * Single property/op/value filter clause for attribute-based code filtering.
+ */
+export interface CodesFilterCondition {
+ /** The attribute to filter on. */
+ property: string;
+ /** Comparison operator: `=` (equal), `is-a` (code plus descendants), `descendent-of` (strict descendants), `exists` (`value: true`/`false` for set/unset), `in` (membership). */
+ op?: Corti.CodesFilterConditionOp;
+ /** Comparison value; type depends on `op`. */
+ value: Corti.CodesFilterConditionValue;
+}
diff --git a/src/api/types/CodesFilterConditionOp.ts b/src/api/types/CodesFilterConditionOp.ts
new file mode 100644
index 00000000..c04a4334
--- /dev/null
+++ b/src/api/types/CodesFilterConditionOp.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** Comparison operator: `=` (equal), `is-a` (code plus descendants), `descendent-of` (strict descendants), `exists` (`value: true`/`false` for set/unset), `in` (membership). */
+export const CodesFilterConditionOp = {
+ EqualTo: "=",
+ IsA: "is-a",
+ DescendentOf: "descendent-of",
+ Exists: "exists",
+ In: "in",
+} as const;
+export type CodesFilterConditionOp = (typeof CodesFilterConditionOp)[keyof typeof CodesFilterConditionOp];
diff --git a/src/api/types/CodesFilterConditionValue.ts b/src/api/types/CodesFilterConditionValue.ts
new file mode 100644
index 00000000..509d3aec
--- /dev/null
+++ b/src/api/types/CodesFilterConditionValue.ts
@@ -0,0 +1,6 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Comparison value; type depends on `op`.
+ */
+export type CodesFilterConditionValue = string | boolean | number | string[];
diff --git a/src/api/types/CommonTranscriptResponse.ts b/src/api/types/CommonTranscriptResponse.ts
index 9a18874f..f239c484 100644
--- a/src/api/types/CommonTranscriptResponse.ts
+++ b/src/api/types/CommonTranscriptResponse.ts
@@ -7,7 +7,7 @@ export interface CommonTranscriptResponse {
participant: number;
/** Id to tag an identified speaker. Auto-increments. */
speakerId: number;
- /** The spoken phrase or utterance extracted from the audio. */
+ /** The spoken phrase or utterance extracted from the audio. Will be a single word or entity if `wordLevel.enabled` was set to `true` when the transcript was created. */
text: string;
/** Start time in milliseconds for phrase/utterance. */
start: number;
diff --git a/src/api/types/GuidedArrayNode.ts b/src/api/types/GuidedArrayNode.ts
index 2282e31b..e1a2f8a1 100644
--- a/src/api/types/GuidedArrayNode.ts
+++ b/src/api/types/GuidedArrayNode.ts
@@ -14,4 +14,6 @@ export interface GuidedArrayNode {
minItems?: number | null;
/** Maximum number of array items to generate. */
maxItems?: number | null;
+ /** Text rendered in place of the array when no items have relevant input/output. */
+ fallbackString?: string | null;
}
diff --git a/src/api/types/GuidedAssemblySectionRef.ts b/src/api/types/GuidedAssemblySectionRef.ts
index 0628ca91..26401e05 100644
--- a/src/api/types/GuidedAssemblySectionRef.ts
+++ b/src/api/types/GuidedAssemblySectionRef.ts
@@ -9,5 +9,6 @@ export interface GuidedAssemblySectionRef {
sectionId: string;
/** Optional explicit section version. Defaults to the section's published version when omitted. */
sectionVersionId?: string | null;
- overrides?: Corti.GuidedSectionOverrides;
+ /** Runtime override patch for this section. `generation` is the canonical shape. The flat fields are deprecated. */
+ overrides?: Corti.GuidedSectionOverridePatch;
}
diff --git a/src/api/types/GuidedObjectNode.ts b/src/api/types/GuidedObjectNode.ts
index 19b9f256..4c0dd75b 100644
--- a/src/api/types/GuidedObjectNode.ts
+++ b/src/api/types/GuidedObjectNode.ts
@@ -18,4 +18,6 @@ export interface GuidedObjectNode {
fieldFormat?: string;
/** Define what fields are possible to return in the object. */
fields?: Corti.GuidedFieldDefinition[];
+ /** Text rendered in place of the object when no field has relevant input/output and no field-level `default` is set. */
+ fallbackString?: string | null;
}
diff --git a/src/api/types/GuidedSectionOverride.ts b/src/api/types/GuidedSectionOverride.ts
index b4c10698..062124e9 100644
--- a/src/api/types/GuidedSectionOverride.ts
+++ b/src/api/types/GuidedSectionOverride.ts
@@ -5,8 +5,7 @@ import type * as Corti from "../index.js";
/**
* Override patch applied to a section linked to the base template version. Override semantics are per-field for `instructions` (any field you omit is inherited from the parent's published version) and wholesale for `outputSchema` (whatever you submit fully replaces the parent schema — partial schemas are not merged). The same rule applies when a section is forked via `inheritFromId`.
*/
-export interface GuidedSectionOverride {
+export interface GuidedSectionOverride extends Corti.GuidedSectionOverridePatch {
/** The UUID of a section linked to the base template version. */
sectionId: string;
- generation?: Corti.GuidedSectionOverrides;
}
diff --git a/src/api/types/GuidedSectionOverridePatch.ts b/src/api/types/GuidedSectionOverridePatch.ts
new file mode 100644
index 00000000..f81aefce
--- /dev/null
+++ b/src/api/types/GuidedSectionOverridePatch.ts
@@ -0,0 +1,17 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Corti from "../index.js";
+
+/**
+ * Per-section override patch. `generation` is the canonical shape. The flat `heading`, `instructions`, and `outputSchema` fields are deprecated and remain for backward compatibility. Use `generation` instead. If a request sets both `generation` and a flat field for one section, the server rejects it with a 400. Override semantics are per-field for `instructions` and wholesale for `outputSchema`.
+ */
+export interface GuidedSectionOverridePatch {
+ /** The canonical override patch for this section. */
+ generation?: Corti.GuidedSectionOverrides;
+ /** **Deprecated** — use `generation.heading`. Replaces the section's heading for this call. */
+ heading?: string | null;
+ /** **Deprecated** — use `generation.instructions`. */
+ instructions?: Corti.GuidedSectionInstructionsOverride;
+ /** **Deprecated** — use `generation.outputSchema`. */
+ outputSchema?: Corti.GuidedOutputSchema;
+}
diff --git a/src/api/types/GuidedTemplateOverrides.ts b/src/api/types/GuidedTemplateOverrides.ts
index 83549a5f..5d957da4 100644
--- a/src/api/types/GuidedTemplateOverrides.ts
+++ b/src/api/types/GuidedTemplateOverrides.ts
@@ -2,9 +2,14 @@
import type * as Corti from "../index.js";
+/**
+ * Template-level override patch. `generation` is the canonical shape. The flat `instructions` and `sections` fields are deprecated and remain for backward compatibility. Use `generation` instead. If a request sets both `generation` and a flat field, the server rejects it with a 400.
+ */
export interface GuidedTemplateOverrides {
- /** Replaces the template-level instructions for this call. */
+ /** The canonical override wrapper for this template. */
+ generation?: Corti.GuidedTemplateOverridesGeneration;
+ /** **Deprecated** — use `generation.instructions`. Replaces the template-level instructions for this call. */
instructions?: Corti.GuidedTemplateInstructions;
- /** Per-section override patches. Each entry must reference a section already linked to the base template version. */
+ /** **Deprecated** — use `generation.sections`. Per-section override patches. Each entry must reference a section already linked to the base template version. */
sections?: Corti.GuidedSectionOverride[];
}
diff --git a/src/api/types/GuidedTemplateOverridesGeneration.ts b/src/api/types/GuidedTemplateOverridesGeneration.ts
new file mode 100644
index 00000000..ab7fbca1
--- /dev/null
+++ b/src/api/types/GuidedTemplateOverridesGeneration.ts
@@ -0,0 +1,13 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Corti from "../index.js";
+
+/**
+ * The canonical template-level override wrapper. Holds the template instructions and the per-section override patches.
+ */
+export interface GuidedTemplateOverridesGeneration {
+ /** Replaces the template-level instructions for this call. */
+ instructions?: Corti.GuidedTemplateInstructions;
+ /** Per-section override patches. Each entry must reference a section already linked to the base template version. */
+ sections?: Corti.GuidedSectionOverride[];
+}
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/StreamConfigParticipant.ts b/src/api/types/StreamConfigParticipant.ts
index 6df615c9..61c94726 100644
--- a/src/api/types/StreamConfigParticipant.ts
+++ b/src/api/types/StreamConfigParticipant.ts
@@ -1,10 +1,8 @@
// This file was auto-generated by Fern from our API Definition.
-import type * as Corti from "../index.js";
-
export interface StreamConfigParticipant {
/** Audio channel number (e.g. 0 or 1) */
channel: number;
- /** Role of the participant (e.g., doctor, patient, or multiple) */
- role: Corti.StreamConfigParticipantRole;
+ /** Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words. */
+ role: string;
}
diff --git a/src/api/types/StreamConfigParticipantRole.ts b/src/api/types/StreamConfigParticipantRole.ts
deleted file mode 100644
index 0491b35a..00000000
--- a/src/api/types/StreamConfigParticipantRole.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-/** Role of the participant (e.g., doctor, patient, or multiple) */
-export const StreamConfigParticipantRole = {
- Doctor: "doctor",
- Patient: "patient",
- Multiple: "multiple",
-} as const;
-export type StreamConfigParticipantRole =
- (typeof StreamConfigParticipantRole)[keyof typeof StreamConfigParticipantRole];
diff --git a/src/api/types/StreamConfigTranscription.ts b/src/api/types/StreamConfigTranscription.ts
index 38395783..9b1e1a31 100644
--- a/src/api/types/StreamConfigTranscription.ts
+++ b/src/api/types/StreamConfigTranscription.ts
@@ -9,8 +9,8 @@ export interface StreamConfigTranscription {
diarize?: boolean;
/** **Deprecated** — renamed to `diarize`. Still accepted for backward compatibility; `diarize` takes precedence when both are provided. `CONFIG_ACCEPTED` echoes both fields during the deprecation period. No removal date is currently planned. */
isDiarization?: boolean;
- /** Enable multi-channel audio processing */
+ /** Enable multi-channel audio processing. When false, all participants are collapsed to channel 0 and the audio is downmixed to mono. */
isMultichannel?: boolean;
- /** List of participants with roles assigned to a channel */
+ /** List of participants, each assigning a free-form role to a channel. For raw PCM, the channel count must be defined; otherwise, the number of audio channels is resolved from the audio itself, not from the declared participants. See [audio formatting](https://docs.corti.ai/stt/audio) for full details. When isMultichannel is false, all participants channels above 0 are collapsed to channel 0. */
participants: Corti.StreamConfigParticipant[];
}
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/TranscriptsParticipant.ts b/src/api/types/TranscriptsParticipant.ts
index 6cfa4654..5929674b 100644
--- a/src/api/types/TranscriptsParticipant.ts
+++ b/src/api/types/TranscriptsParticipant.ts
@@ -1,10 +1,8 @@
// This file was auto-generated by Fern from our API Definition.
-import type * as Corti from "../index.js";
-
export interface TranscriptsParticipant {
/** The audio channel to associate with a participant role. */
channel: number;
- /** The role of the participant (e.g., 'doctor', 'patient', use 'multiple' for single channel). */
- role: Corti.TranscriptsParticipantRoleEnum;
+ /** Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words. */
+ role: string;
}
diff --git a/src/api/types/TranscriptsParticipantRoleEnum.ts b/src/api/types/TranscriptsParticipantRoleEnum.ts
deleted file mode 100644
index 677b2305..00000000
--- a/src/api/types/TranscriptsParticipantRoleEnum.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-export const TranscriptsParticipantRoleEnum = {
- Doctor: "doctor",
- Patient: "patient",
- Multiple: "multiple",
-} as const;
-export type TranscriptsParticipantRoleEnum =
- (typeof TranscriptsParticipantRoleEnum)[keyof typeof TranscriptsParticipantRoleEnum];
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index 23aafdae..bf4e6657 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -105,6 +105,9 @@ export * from "./AuthTokenRequestRefresh.js";
export * from "./AuthTokenRequestRopc.js";
export * from "./AuthTokenResponse.js";
export * from "./CodesFilter.js";
+export * from "./CodesFilterCondition.js";
+export * from "./CodesFilterConditionOp.js";
+export * from "./CodesFilterConditionValue.js";
export * from "./CodesGeneralReadResponse.js";
export * from "./CodesGeneralReadResponseAlternativesItem.js";
export * from "./CodesGeneralReadResponseEvidencesItem.js";
@@ -231,6 +234,7 @@ export * from "./GuidedSectionInstructionsPartial.js";
export * from "./GuidedSectionListItem.js";
export * from "./GuidedSectionListItemSource.js";
export * from "./GuidedSectionOverride.js";
+export * from "./GuidedSectionOverridePatch.js";
export * from "./GuidedSectionOverrides.js";
export * from "./GuidedSectionsCreateBase.js";
export * from "./GuidedSectionsCreateFromInheritanceRequest.js";
@@ -248,6 +252,7 @@ export * from "./GuidedTemplateInstructionsPartial.js";
export * from "./GuidedTemplateListItem.js";
export * from "./GuidedTemplateListItemSource.js";
export * from "./GuidedTemplateOverrides.js";
+export * from "./GuidedTemplateOverridesGeneration.js";
export * from "./GuidedTemplateRef.js";
export * from "./GuidedTemplatesCreateBase.js";
export * from "./GuidedTemplatesCreateFromInheritanceRequest.js";
@@ -286,7 +291,6 @@ export * from "./StreamConfigMode.js";
export * from "./StreamConfigModeFactGenerationInterval.js";
export * from "./StreamConfigModeType.js";
export * from "./StreamConfigParticipant.js";
-export * from "./StreamConfigParticipantRole.js";
export * from "./StreamConfigReplacementsItem.js";
export * from "./StreamConfigRetentionPolicy.js";
export * from "./StreamConfigStatusMessage.js";
@@ -301,6 +305,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";
@@ -352,11 +363,17 @@ 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";
export * from "./TranscriptsParticipant.js";
-export * from "./TranscriptsParticipantRoleEnum.js";
export * from "./TranscriptsResponse.js";
export * from "./TranscriptsStatusEnum.js";
export * from "./TranscriptsStatusResponse.js";
diff --git a/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts b/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts
index f4bd7ad2..42e04359 100644
--- a/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts
+++ b/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts
@@ -16,6 +16,7 @@ export const AgenticAgentsCreateRequest: core.serialization.Schema<
description: core.serialization.string().optional(),
systemPrompt: core.serialization.string().optional(),
model: core.serialization.string().optional(),
+ maxLoops: core.serialization.number().optional(),
visibility: AgentsVisibility.optional(),
lifecycle: AgentsLifecycle.optional(),
connectors: core.serialization.list(CommonConnectorCreateRequest).optional(),
@@ -28,6 +29,7 @@ export declare namespace AgenticAgentsCreateRequest {
description?: string | null;
systemPrompt?: string | null;
model?: string | null;
+ maxLoops?: number | null;
visibility?: AgentsVisibility.Raw | null;
lifecycle?: AgentsLifecycle.Raw | null;
connectors?: CommonConnectorCreateRequest.Raw[] | null;
diff --git a/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts b/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts
index 00a5759b..3efe7cd5 100644
--- a/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts
+++ b/src/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts
@@ -15,6 +15,7 @@ export const AgenticAgentsPatchRequest: core.serialization.Schema<
description: core.serialization.string().optionalNullable(),
systemPrompt: core.serialization.string().optionalNullable(),
model: core.serialization.string().optionalNullable(),
+ maxLoops: core.serialization.number().optional(),
visibility: AgentsVisibility.optional(),
lifecycle: AgentsLifecycle.optional(),
connectors: core.serialization.list(CommonConnectorCreateRequest).optionalNullable(),
@@ -29,6 +30,7 @@ export declare namespace AgenticAgentsPatchRequest {
description?: (string | null | undefined) | null;
systemPrompt?: (string | null | undefined) | null;
model?: (string | null | undefined) | null;
+ maxLoops?: number | null;
visibility?: AgentsVisibility.Raw | null;
lifecycle?: AgentsLifecycle.Raw | null;
connectors?: (CommonConnectorCreateRequest.Raw[] | null | undefined) | null;
diff --git a/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts b/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts
index ad97965b..6d57616c 100644
--- a/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts
+++ b/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts
@@ -3,10 +3,12 @@
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";
import { TranscriptsCreateRequestReplacementsItem } from "../../types/TranscriptsCreateRequestReplacementsItem.js";
+import { TranscriptsCreateRequestWordLevel } from "../../types/TranscriptsCreateRequestWordLevel.js";
export const TranscriptsCreateRequest: core.serialization.Schema<
serializers.TranscriptsCreateRequest.Raw,
@@ -16,6 +18,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(),
@@ -23,6 +26,7 @@ export const TranscriptsCreateRequest: core.serialization.Schema<
async: core.serialization.boolean().optional(),
replacements: core.serialization.list(TranscriptsCreateRequestReplacementsItem).optional(),
keyterms: TranscriptsCreateRequestKeyterms.optional(),
+ wordLevel: TranscriptsCreateRequestWordLevel.optional(),
});
export declare namespace TranscriptsCreateRequest {
@@ -31,6 +35,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;
@@ -38,5 +43,6 @@ export declare namespace TranscriptsCreateRequest {
async?: boolean | null;
replacements?: TranscriptsCreateRequestReplacementsItem.Raw[] | null;
keyterms?: TranscriptsCreateRequestKeyterms.Raw | null;
+ wordLevel?: TranscriptsCreateRequestWordLevel.Raw | null;
}
}
diff --git a/src/serialization/resources/transcripts/types/TranscriptsCreateRequestWordLevel.ts b/src/serialization/resources/transcripts/types/TranscriptsCreateRequestWordLevel.ts
new file mode 100644
index 00000000..fe07e302
--- /dev/null
+++ b/src/serialization/resources/transcripts/types/TranscriptsCreateRequestWordLevel.ts
@@ -0,0 +1,18 @@
+// 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 TranscriptsCreateRequestWordLevel: core.serialization.ObjectSchema<
+ serializers.TranscriptsCreateRequestWordLevel.Raw,
+ Corti.TranscriptsCreateRequestWordLevel
+> = core.serialization.object({
+ enabled: core.serialization.boolean().optional(),
+});
+
+export declare namespace TranscriptsCreateRequestWordLevel {
+ export interface Raw {
+ enabled?: boolean | null;
+ }
+}
diff --git a/src/serialization/resources/transcripts/types/index.ts b/src/serialization/resources/transcripts/types/index.ts
index 1d8e0239..5aff1f01 100644
--- a/src/serialization/resources/transcripts/types/index.ts
+++ b/src/serialization/resources/transcripts/types/index.ts
@@ -1,3 +1,4 @@
export * from "./TranscriptsCreateRequestKeyterms.js";
export * from "./TranscriptsCreateRequestKeytermsTermsItem.js";
export * from "./TranscriptsCreateRequestReplacementsItem.js";
+export * from "./TranscriptsCreateRequestWordLevel.js";
diff --git a/src/serialization/types/AgenticAgentsResponse.ts b/src/serialization/types/AgenticAgentsResponse.ts
index 3dbd92ad..d77ee898 100644
--- a/src/serialization/types/AgenticAgentsResponse.ts
+++ b/src/serialization/types/AgenticAgentsResponse.ts
@@ -19,6 +19,7 @@ export const AgenticAgentsResponse: core.serialization.ObjectSchema<
description: core.serialization.string().optionalNullable(),
systemPrompt: core.serialization.string().optionalNullable(),
model: core.serialization.string().optionalNullable(),
+ maxLoops: core.serialization.number(),
visibility: AgentsVisibility,
lifecycle: AgentsLifecycle,
connectors: core.serialization.list(CommonConnectorResponse),
@@ -26,6 +27,7 @@ export const AgenticAgentsResponse: core.serialization.ObjectSchema<
createdAt: core.serialization.date().optional(),
updatedAt: core.serialization.date().optional(),
createdBy: AgentsUserIdValue.optional(),
+ expiresAt: core.serialization.date().optionalNullable(),
});
export declare namespace AgenticAgentsResponse {
@@ -35,6 +37,7 @@ export declare namespace AgenticAgentsResponse {
description?: (string | null | undefined) | null;
systemPrompt?: (string | null | undefined) | null;
model?: (string | null | undefined) | null;
+ maxLoops: number;
visibility: AgentsVisibility.Raw;
lifecycle: AgentsLifecycle.Raw;
connectors: CommonConnectorResponse.Raw[];
@@ -42,5 +45,6 @@ export declare namespace AgenticAgentsResponse {
createdAt?: string | null;
updatedAt?: string | null;
createdBy?: AgentsUserIdValue.Raw | null;
+ expiresAt?: (string | null | undefined) | null;
}
}
diff --git a/src/serialization/types/CodesFilter.ts b/src/serialization/types/CodesFilter.ts
index 538f6783..21ce3235 100644
--- a/src/serialization/types/CodesFilter.ts
+++ b/src/serialization/types/CodesFilter.ts
@@ -3,18 +3,17 @@
import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
+import { CodesFilterCondition } from "./CodesFilterCondition.js";
export const CodesFilter: core.serialization.ObjectSchema =
core.serialization.object({
- include: core.serialization.list(core.serialization.string()).optional(),
- exclude: core.serialization.list(core.serialization.string()).optional(),
- expand: core.serialization.boolean().optional(),
+ include: core.serialization.list(CodesFilterCondition).optional(),
+ exclude: core.serialization.list(CodesFilterCondition).optional(),
});
export declare namespace CodesFilter {
export interface Raw {
- include?: string[] | null;
- exclude?: string[] | null;
- expand?: boolean | null;
+ include?: CodesFilterCondition.Raw[] | null;
+ exclude?: CodesFilterCondition.Raw[] | null;
}
}
diff --git a/src/serialization/types/CodesFilterCondition.ts b/src/serialization/types/CodesFilterCondition.ts
new file mode 100644
index 00000000..9ec485f7
--- /dev/null
+++ b/src/serialization/types/CodesFilterCondition.ts
@@ -0,0 +1,24 @@
+// 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 { CodesFilterConditionOp } from "./CodesFilterConditionOp.js";
+import { CodesFilterConditionValue } from "./CodesFilterConditionValue.js";
+
+export const CodesFilterCondition: core.serialization.ObjectSchema<
+ serializers.CodesFilterCondition.Raw,
+ Corti.CodesFilterCondition
+> = core.serialization.object({
+ property: core.serialization.string(),
+ op: CodesFilterConditionOp.optional(),
+ value: CodesFilterConditionValue,
+});
+
+export declare namespace CodesFilterCondition {
+ export interface Raw {
+ property: string;
+ op?: CodesFilterConditionOp.Raw | null;
+ value: CodesFilterConditionValue.Raw;
+ }
+}
diff --git a/src/serialization/types/CodesFilterConditionOp.ts b/src/serialization/types/CodesFilterConditionOp.ts
new file mode 100644
index 00000000..cbec7d60
--- /dev/null
+++ b/src/serialization/types/CodesFilterConditionOp.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 CodesFilterConditionOp: core.serialization.Schema<
+ serializers.CodesFilterConditionOp.Raw,
+ Corti.CodesFilterConditionOp
+> = core.serialization.enum_(["=", "is-a", "descendent-of", "exists", "in"]);
+
+export declare namespace CodesFilterConditionOp {
+ export type Raw = "=" | "is-a" | "descendent-of" | "exists" | "in";
+}
diff --git a/src/serialization/types/CodesFilterConditionValue.ts b/src/serialization/types/CodesFilterConditionValue.ts
new file mode 100644
index 00000000..a9af59e9
--- /dev/null
+++ b/src/serialization/types/CodesFilterConditionValue.ts
@@ -0,0 +1,19 @@
+// 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 CodesFilterConditionValue: core.serialization.Schema<
+ serializers.CodesFilterConditionValue.Raw,
+ Corti.CodesFilterConditionValue
+> = core.serialization.undiscriminatedUnion([
+ core.serialization.string(),
+ core.serialization.boolean(),
+ core.serialization.number(),
+ core.serialization.list(core.serialization.string()),
+]);
+
+export declare namespace CodesFilterConditionValue {
+ export type Raw = string | boolean | number | string[];
+}
diff --git a/src/serialization/types/GuidedArrayNode.ts b/src/serialization/types/GuidedArrayNode.ts
index 5292558d..d1d14a8b 100644
--- a/src/serialization/types/GuidedArrayNode.ts
+++ b/src/serialization/types/GuidedArrayNode.ts
@@ -12,6 +12,7 @@ export const GuidedArrayNode: core.serialization.ObjectSchema = core.serialization.object({
sectionId: core.serialization.string(),
sectionVersionId: core.serialization.string().optionalNullable(),
- overrides: GuidedSectionOverrides.optional(),
+ overrides: GuidedSectionOverridePatch.optional(),
});
export declare namespace GuidedAssemblySectionRef {
export interface Raw {
sectionId: string;
sectionVersionId?: (string | null | undefined) | null;
- overrides?: GuidedSectionOverrides.Raw | null;
+ overrides?: GuidedSectionOverridePatch.Raw | null;
}
}
diff --git a/src/serialization/types/GuidedObjectNode.ts b/src/serialization/types/GuidedObjectNode.ts
index 191809de..2221ecbb 100644
--- a/src/serialization/types/GuidedObjectNode.ts
+++ b/src/serialization/types/GuidedObjectNode.ts
@@ -12,6 +12,7 @@ export const GuidedObjectNode: core.serialization.ObjectSchema<
description: core.serialization.string().optional(),
fieldFormat: core.serialization.string().optional(),
fields: core.serialization.list(core.serialization.lazyObject(() => serializers.GuidedFieldDefinition)).optional(),
+ fallbackString: core.serialization.string().optionalNullable(),
});
export declare namespace GuidedObjectNode {
@@ -20,5 +21,6 @@ export declare namespace GuidedObjectNode {
description?: string | null;
fieldFormat?: string | null;
fields?: serializers.GuidedFieldDefinition.Raw[] | null;
+ fallbackString?: (string | null | undefined) | null;
}
}
diff --git a/src/serialization/types/GuidedSectionOverride.ts b/src/serialization/types/GuidedSectionOverride.ts
index b8dd01c9..159c156e 100644
--- a/src/serialization/types/GuidedSectionOverride.ts
+++ b/src/serialization/types/GuidedSectionOverride.ts
@@ -3,19 +3,19 @@
import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
-import { GuidedSectionOverrides } from "./GuidedSectionOverrides.js";
+import { GuidedSectionOverridePatch } from "./GuidedSectionOverridePatch.js";
export const GuidedSectionOverride: core.serialization.ObjectSchema<
serializers.GuidedSectionOverride.Raw,
Corti.GuidedSectionOverride
-> = core.serialization.object({
- sectionId: core.serialization.string(),
- generation: GuidedSectionOverrides.optional(),
-});
+> = core.serialization
+ .object({
+ sectionId: core.serialization.string(),
+ })
+ .extend(GuidedSectionOverridePatch);
export declare namespace GuidedSectionOverride {
- export interface Raw {
+ export interface Raw extends GuidedSectionOverridePatch.Raw {
sectionId: string;
- generation?: GuidedSectionOverrides.Raw | null;
}
}
diff --git a/src/serialization/types/GuidedSectionOverridePatch.ts b/src/serialization/types/GuidedSectionOverridePatch.ts
new file mode 100644
index 00000000..e932f8bf
--- /dev/null
+++ b/src/serialization/types/GuidedSectionOverridePatch.ts
@@ -0,0 +1,26 @@
+// 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 * as serializers from "../index.js";
+import { GuidedSectionInstructionsOverride } from "./GuidedSectionInstructionsOverride.js";
+import { GuidedSectionOverrides } from "./GuidedSectionOverrides.js";
+
+export const GuidedSectionOverridePatch: core.serialization.ObjectSchema<
+ serializers.GuidedSectionOverridePatch.Raw,
+ Corti.GuidedSectionOverridePatch
+> = core.serialization.object({
+ generation: GuidedSectionOverrides.optional(),
+ heading: core.serialization.string().optionalNullable(),
+ instructions: GuidedSectionInstructionsOverride.optional(),
+ outputSchema: core.serialization.lazy(() => serializers.GuidedOutputSchema).optional(),
+});
+
+export declare namespace GuidedSectionOverridePatch {
+ export interface Raw {
+ generation?: GuidedSectionOverrides.Raw | null;
+ heading?: (string | null | undefined) | null;
+ instructions?: GuidedSectionInstructionsOverride.Raw | null;
+ outputSchema?: serializers.GuidedOutputSchema.Raw | null;
+ }
+}
diff --git a/src/serialization/types/GuidedTemplateOverrides.ts b/src/serialization/types/GuidedTemplateOverrides.ts
index 73335ad0..195e4856 100644
--- a/src/serialization/types/GuidedTemplateOverrides.ts
+++ b/src/serialization/types/GuidedTemplateOverrides.ts
@@ -5,17 +5,20 @@ import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
import { GuidedSectionOverride } from "./GuidedSectionOverride.js";
import { GuidedTemplateInstructions } from "./GuidedTemplateInstructions.js";
+import { GuidedTemplateOverridesGeneration } from "./GuidedTemplateOverridesGeneration.js";
export const GuidedTemplateOverrides: core.serialization.ObjectSchema<
serializers.GuidedTemplateOverrides.Raw,
Corti.GuidedTemplateOverrides
> = core.serialization.object({
+ generation: GuidedTemplateOverridesGeneration.optional(),
instructions: GuidedTemplateInstructions.optional(),
sections: core.serialization.list(GuidedSectionOverride).optional(),
});
export declare namespace GuidedTemplateOverrides {
export interface Raw {
+ generation?: GuidedTemplateOverridesGeneration.Raw | null;
instructions?: GuidedTemplateInstructions.Raw | null;
sections?: GuidedSectionOverride.Raw[] | null;
}
diff --git a/src/serialization/types/GuidedTemplateOverridesGeneration.ts b/src/serialization/types/GuidedTemplateOverridesGeneration.ts
new file mode 100644
index 00000000..3aa0afb2
--- /dev/null
+++ b/src/serialization/types/GuidedTemplateOverridesGeneration.ts
@@ -0,0 +1,22 @@
+// 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 { GuidedSectionOverride } from "./GuidedSectionOverride.js";
+import { GuidedTemplateInstructions } from "./GuidedTemplateInstructions.js";
+
+export const GuidedTemplateOverridesGeneration: core.serialization.ObjectSchema<
+ serializers.GuidedTemplateOverridesGeneration.Raw,
+ Corti.GuidedTemplateOverridesGeneration
+> = core.serialization.object({
+ instructions: GuidedTemplateInstructions.optional(),
+ sections: core.serialization.list(GuidedSectionOverride).optional(),
+});
+
+export declare namespace GuidedTemplateOverridesGeneration {
+ export interface Raw {
+ instructions?: GuidedTemplateInstructions.Raw | null;
+ sections?: GuidedSectionOverride.Raw[] | 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({
channel: core.serialization.number(),
- role: StreamConfigParticipantRole,
+ role: core.serialization.string(),
});
export declare namespace StreamConfigParticipant {
export interface Raw {
channel: number;
- role: StreamConfigParticipantRole.Raw;
+ role: string;
}
}
diff --git a/src/serialization/types/StreamConfigParticipantRole.ts b/src/serialization/types/StreamConfigParticipantRole.ts
deleted file mode 100644
index 5ba09d2d..00000000
--- a/src/serialization/types/StreamConfigParticipantRole.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-// 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 StreamConfigParticipantRole: core.serialization.Schema<
- serializers.StreamConfigParticipantRole.Raw,
- Corti.StreamConfigParticipantRole
-> = core.serialization.enum_(["doctor", "patient", "multiple"]);
-
-export declare namespace StreamConfigParticipantRole {
- export type Raw = "doctor" | "patient" | "multiple";
-}
diff --git a/src/serialization/types/StreamFormatting.ts b/src/serialization/types/StreamFormatting.ts
new file mode 100644
index 00000000..edab81a2
--- /dev/null
+++ b/src/serialization/types/StreamFormatting.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 { StreamFormattingDates } from "./StreamFormattingDates.js";
+import { StreamFormattingMeasurements } from "./StreamFormattingMeasurements.js";
+import { StreamFormattingNumbers } from "./StreamFormattingNumbers.js";
+import { StreamFormattingNumericRanges } from "./StreamFormattingNumericRanges.js";
+import { StreamFormattingOrdinals } from "./StreamFormattingOrdinals.js";
+import { StreamFormattingTimes } from "./StreamFormattingTimes.js";
+
+export const StreamFormatting: core.serialization.ObjectSchema<
+ serializers.StreamFormatting.Raw,
+ Corti.StreamFormatting
+> = 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/TranscriptsParticipant.ts b/src/serialization/types/TranscriptsParticipant.ts
index 0d75a19e..c58c20bb 100644
--- a/src/serialization/types/TranscriptsParticipant.ts
+++ b/src/serialization/types/TranscriptsParticipant.ts
@@ -3,19 +3,18 @@
import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
-import { TranscriptsParticipantRoleEnum } from "./TranscriptsParticipantRoleEnum.js";
export const TranscriptsParticipant: core.serialization.ObjectSchema<
serializers.TranscriptsParticipant.Raw,
Corti.TranscriptsParticipant
> = core.serialization.object({
channel: core.serialization.number(),
- role: TranscriptsParticipantRoleEnum,
+ role: core.serialization.string(),
});
export declare namespace TranscriptsParticipant {
export interface Raw {
channel: number;
- role: TranscriptsParticipantRoleEnum.Raw;
+ role: string;
}
}
diff --git a/src/serialization/types/TranscriptsParticipantRoleEnum.ts b/src/serialization/types/TranscriptsParticipantRoleEnum.ts
deleted file mode 100644
index 10e90f47..00000000
--- a/src/serialization/types/TranscriptsParticipantRoleEnum.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-// 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 TranscriptsParticipantRoleEnum: core.serialization.Schema<
- serializers.TranscriptsParticipantRoleEnum.Raw,
- Corti.TranscriptsParticipantRoleEnum
-> = core.serialization.enum_(["doctor", "patient", "multiple"]);
-
-export declare namespace TranscriptsParticipantRoleEnum {
- export type Raw = "doctor" | "patient" | "multiple";
-}
diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts
index 23aafdae..bf4e6657 100644
--- a/src/serialization/types/index.ts
+++ b/src/serialization/types/index.ts
@@ -105,6 +105,9 @@ export * from "./AuthTokenRequestRefresh.js";
export * from "./AuthTokenRequestRopc.js";
export * from "./AuthTokenResponse.js";
export * from "./CodesFilter.js";
+export * from "./CodesFilterCondition.js";
+export * from "./CodesFilterConditionOp.js";
+export * from "./CodesFilterConditionValue.js";
export * from "./CodesGeneralReadResponse.js";
export * from "./CodesGeneralReadResponseAlternativesItem.js";
export * from "./CodesGeneralReadResponseEvidencesItem.js";
@@ -231,6 +234,7 @@ export * from "./GuidedSectionInstructionsPartial.js";
export * from "./GuidedSectionListItem.js";
export * from "./GuidedSectionListItemSource.js";
export * from "./GuidedSectionOverride.js";
+export * from "./GuidedSectionOverridePatch.js";
export * from "./GuidedSectionOverrides.js";
export * from "./GuidedSectionsCreateBase.js";
export * from "./GuidedSectionsCreateFromInheritanceRequest.js";
@@ -248,6 +252,7 @@ export * from "./GuidedTemplateInstructionsPartial.js";
export * from "./GuidedTemplateListItem.js";
export * from "./GuidedTemplateListItemSource.js";
export * from "./GuidedTemplateOverrides.js";
+export * from "./GuidedTemplateOverridesGeneration.js";
export * from "./GuidedTemplateRef.js";
export * from "./GuidedTemplatesCreateBase.js";
export * from "./GuidedTemplatesCreateFromInheritanceRequest.js";
@@ -286,7 +291,6 @@ export * from "./StreamConfigMode.js";
export * from "./StreamConfigModeFactGenerationInterval.js";
export * from "./StreamConfigModeType.js";
export * from "./StreamConfigParticipant.js";
-export * from "./StreamConfigParticipantRole.js";
export * from "./StreamConfigReplacementsItem.js";
export * from "./StreamConfigRetentionPolicy.js";
export * from "./StreamConfigStatusMessage.js";
@@ -301,6 +305,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";
@@ -352,11 +363,17 @@ 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";
export * from "./TranscriptsParticipant.js";
-export * from "./TranscriptsParticipantRoleEnum.js";
export * from "./TranscriptsResponse.js";
export * from "./TranscriptsStatusEnum.js";
export * from "./TranscriptsStatusResponse.js";
diff --git a/tests/wire/agentic/agents.test.ts b/tests/wire/agentic/agents.test.ts
index a916407f..0912766b 100644
--- a/tests/wire/agentic/agents.test.ts
+++ b/tests/wire/agentic/agents.test.ts
@@ -26,6 +26,7 @@ describe("AgentsClient", () => {
description: "description",
systemPrompt: "systemPrompt",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
@@ -35,6 +36,7 @@ describe("AgentsClient", () => {
createdAt: "2026-05-19T12:00:00Z",
updatedAt: "2026-05-19T12:00:00Z",
createdBy: "usr.0192f4c8-8bc0-7194-8570-92e3ce81d0a6",
+ expiresAt: "2024-01-15T09:30:00Z",
},
],
nextPageToken: "nextPageToken",
@@ -57,6 +59,7 @@ describe("AgentsClient", () => {
description: "description",
systemPrompt: "systemPrompt",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
@@ -72,6 +75,7 @@ describe("AgentsClient", () => {
createdAt: new Date("2026-05-19T12:00:00.000Z"),
updatedAt: new Date("2026-05-19T12:00:00.000Z"),
createdBy: "usr.0192f4c8-8bc0-7194-8570-92e3ce81d0a6",
+ expiresAt: new Date("2024-01-15T09:30:00.000Z"),
},
],
nextPageToken: "nextPageToken",
@@ -183,6 +187,7 @@ describe("AgentsClient", () => {
description: "Returns ICD-10 codes for a clinical encounter.",
systemPrompt: "Respond with only the ICD-10 code.",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
@@ -264,6 +269,7 @@ describe("AgentsClient", () => {
description: "Returns ICD-10 codes for a clinical encounter.",
systemPrompt: "Respond with only the ICD-10 code.",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
@@ -455,6 +461,7 @@ describe("AgentsClient", () => {
description: "Returns ICD-10 codes for a clinical encounter.",
systemPrompt: "Respond with only the ICD-10 code.",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
@@ -487,6 +494,7 @@ describe("AgentsClient", () => {
description: "Returns ICD-10 codes for a clinical encounter.",
systemPrompt: "Respond with only the ICD-10 code.",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
@@ -713,6 +721,7 @@ describe("AgentsClient", () => {
description: "Returns ICD-10 codes for a clinical encounter.",
systemPrompt: "Respond with only the ICD-10 code.",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
@@ -754,6 +763,7 @@ describe("AgentsClient", () => {
description: "Returns ICD-10 codes for a clinical encounter.",
systemPrompt: "Respond with only the ICD-10 code.",
model: "corti-default",
+ maxLoops: 10,
visibility: "private",
lifecycle: "persistent",
connectors: [
diff --git a/tests/wire/codes.test.ts b/tests/wire/codes.test.ts
index d3909f46..f7231479 100644
--- a/tests/wire/codes.test.ts
+++ b/tests/wire/codes.test.ts
@@ -140,7 +140,7 @@ describe("CodesClient", () => {
const rawRequestBody = {
system: ["icd10cm-outpatient"],
context: [{ type: "text", text: "Patient presents with uncontrolled type 2 diabetes." }],
- filter: { include: ["E11"], exclude: ["exclude"] },
+ filter: { include: [{ property: "code", op: "is-a", value: ["E11"] }] },
};
const rawResponseBody = {
codes: [
@@ -190,8 +190,13 @@ describe("CodesClient", () => {
},
],
filter: {
- include: ["E11"],
- exclude: ["exclude"],
+ include: [
+ {
+ property: "code",
+ op: "is-a",
+ value: ["E11"],
+ },
+ ],
},
});
expect(response).toEqual({
diff --git a/tests/wire/transcripts.test.ts b/tests/wire/transcripts.test.ts
index ea5be3b4..73d95f88 100644
--- a/tests/wire/transcripts.test.ts
+++ b/tests/wire/transcripts.test.ts
@@ -212,7 +212,7 @@ describe("TranscriptsClient", () => {
const rawRequestBody = { recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479", primaryLanguage: "en" };
const rawResponseBody = {
id: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
- metadata: { participantsRoles: [{ channel: 1, role: "doctor" }] },
+ metadata: { participantsRoles: [{ channel: 1, role: "role" }] },
transcripts: [{ channel: 1, participant: 1, speakerId: 1, text: "text", start: 1, end: 1 }],
usageInfo: { creditsConsumed: 1.1 },
recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
@@ -238,7 +238,7 @@ describe("TranscriptsClient", () => {
participantsRoles: [
{
channel: 1,
- role: "doctor",
+ role: "role",
},
],
},
@@ -429,7 +429,7 @@ describe("TranscriptsClient", () => {
const rawResponseBody = {
id: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
- metadata: { participantsRoles: [{ channel: 1, role: "doctor" }] },
+ metadata: { participantsRoles: [{ channel: 1, role: "role" }] },
transcripts: [{ channel: 1, participant: 1, speakerId: 1, text: "text", start: 1, end: 1 }],
usageInfo: { creditsConsumed: 1.1 },
recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
@@ -454,7 +454,7 @@ describe("TranscriptsClient", () => {
participantsRoles: [
{
channel: 1,
- role: "doctor",
+ role: "role",
},
],
},