Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "5.93.0",
"cliVersion": "5.101.2",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.54.0",
"generatorConfig": {
Expand Down Expand Up @@ -34,6 +34,6 @@
}
}
},
"originGitCommit": "c993f464ca70e6cae3f0b9700d2b6e2109527ba4",
"originGitCommit": "3568b4cdca68b8adeee9ce7a9d642b7a57a0d893",
"sdkVersion": "0.0.0-dev"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
7 changes: 5 additions & 2 deletions src/api/resources/codes/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
* }]
* }
* })
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
* }]
* }
* }
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ export interface TranscriptsCreateRequest {
recordingId: Corti.Uuid;
/** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
primaryLanguage: string;
/** Controls how recognized transcript text is processed before it is returned. `standard` (default) applies Corti's standard transcript processing and configured transcript features. `raw` returns the core speech recognition result without transcript transformations or enhancements, which can reduce latency and processing cost but may reduce transcript accuracy. When `raw` is defined, features that transform transcript text (such as formatting or replacements) are not available; features that describe the recognition result (such as timestamps, word-level output, diarization, and audio events) remain supported where applicable. The `text` and `rawTranscriptText` fields contain the same core recognition result. */
transcriptProcessing?: Corti.TranscriptsCreateRequestTranscriptProcessing;
/** When true, converts spoken punctuation such as 'period' or 'slash' into symbols (e.g., '.', '/'). When enabled, automatic punctuation is turned off. Takes precedence over `automaticPunctuation` when both are enabled. */
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. */
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This file was auto-generated by Fern from our API Definition.

/** Controls how recognized transcript text is processed before it is returned. `standard` (default) applies Corti's standard transcript processing and configured transcript features. `raw` returns the core speech recognition result without transcript transformations or enhancements, which can reduce latency and processing cost but may reduce transcript accuracy. When `raw` is defined, features that transform transcript text (such as formatting or replacements) are not available; features that describe the recognition result (such as timestamps, word-level output, diarization, and audio events) remain supported where applicable. The `text` and `rawTranscriptText` fields contain the same core recognition result. */
export const TranscriptsCreateRequestTranscriptProcessing = {
Standard: "standard",
Raw: "raw",
} as const;
export type TranscriptsCreateRequestTranscriptProcessing =
(typeof TranscriptsCreateRequestTranscriptProcessing)[keyof typeof TranscriptsCreateRequestTranscriptProcessing];
1 change: 1 addition & 0 deletions src/api/resources/transcripts/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "./TranscriptsCreateRequestKeyterms.js";
export * from "./TranscriptsCreateRequestKeytermsTermsItem.js";
export * from "./TranscriptsCreateRequestReplacementsItem.js";
export * from "./TranscriptsCreateRequestTranscriptProcessing.js";
4 changes: 4 additions & 0 deletions src/api/types/AgenticAgentsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`. */
Expand All @@ -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;
}
12 changes: 6 additions & 6 deletions src/api/types/CodesFilter.ts
Original file line number Diff line number Diff line change
@@ -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[];
}
15 changes: 15 additions & 0 deletions src/api/types/CodesFilterCondition.ts
Original file line number Diff line number Diff line change
@@ -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;
}
11 changes: 11 additions & 0 deletions src/api/types/CodesFilterConditionOp.ts
Original file line number Diff line number Diff line change
@@ -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];
6 changes: 6 additions & 0 deletions src/api/types/CodesFilterConditionValue.ts
Original file line number Diff line number Diff line change
@@ -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[];
2 changes: 2 additions & 0 deletions src/api/types/GuidedArrayNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 2 additions & 1 deletion src/api/types/GuidedAssemblySectionRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions src/api/types/GuidedObjectNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 1 addition & 2 deletions src/api/types/GuidedSectionOverride.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
17 changes: 17 additions & 0 deletions src/api/types/GuidedSectionOverridePatch.ts
Original file line number Diff line number Diff line change
@@ -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;
}
9 changes: 7 additions & 2 deletions src/api/types/GuidedTemplateOverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}
13 changes: 13 additions & 0 deletions src/api/types/GuidedTemplateOverridesGeneration.ts
Original file line number Diff line number Diff line change
@@ -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[];
}
1 change: 1 addition & 0 deletions src/api/types/StreamConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/StreamConfigTranscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type * as Corti from "../index.js";
export interface StreamConfigTranscription {
/** Primary spoken language for transcription */
primaryLanguage: Corti.StreamSupportedLanguage;
/** Controls how recognized transcript text is processed before it is returned. `standard` (default) applies Corti's standard transcript processing and configured transcript features. `raw` returns the core speech recognition result without transcript transformations or enhancements, which can reduce latency and processing cost but may reduce transcript accuracy. When `raw` is defined, features that transform transcript text (such as formatting or replacements) are not available; features that describe the recognition result (such as timestamps, word-level output, diarization, and audio events) remain supported where applicable. The `text` and `rawTranscriptText` fields contain the same core recognition result. */
transcriptProcessing?: Corti.StreamConfigTranscriptionTranscriptProcessing;
/** Enable speaker diarization. */
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. */
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This file was auto-generated by Fern from our API Definition.

/** Controls how recognized transcript text is processed before it is returned. `standard` (default) applies Corti's standard transcript processing and configured transcript features. `raw` returns the core speech recognition result without transcript transformations or enhancements, which can reduce latency and processing cost but may reduce transcript accuracy. When `raw` is defined, features that transform transcript text (such as formatting or replacements) are not available; features that describe the recognition result (such as timestamps, word-level output, diarization, and audio events) remain supported where applicable. The `text` and `rawTranscriptText` fields contain the same core recognition result. */
export const StreamConfigTranscriptionTranscriptProcessing = {
Standard: "standard",
Raw: "raw",
} as const;
export type StreamConfigTranscriptionTranscriptProcessing =
(typeof StreamConfigTranscriptionTranscriptProcessing)[keyof typeof StreamConfigTranscriptionTranscriptProcessing];
18 changes: 18 additions & 0 deletions src/api/types/StreamFormatting.ts
Original file line number Diff line number Diff line change
@@ -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;
}
11 changes: 11 additions & 0 deletions src/api/types/StreamFormattingDates.ts
Original file line number Diff line number Diff line change
@@ -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];
9 changes: 9 additions & 0 deletions src/api/types/StreamFormattingMeasurements.ts
Original file line number Diff line number Diff line change
@@ -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];
9 changes: 9 additions & 0 deletions src/api/types/StreamFormattingNumbers.ts
Original file line number Diff line number Diff line change
@@ -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];
9 changes: 9 additions & 0 deletions src/api/types/StreamFormattingNumericRanges.ts
Original file line number Diff line number Diff line change
@@ -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];
9 changes: 9 additions & 0 deletions src/api/types/StreamFormattingOrdinals.ts
Original file line number Diff line number Diff line change
@@ -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];
Loading
Loading