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.114.1",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.54.0",
"generatorConfig": {
Expand Down Expand Up @@ -34,6 +34,6 @@
}
}
},
"originGitCommit": "c993f464ca70e6cae3f0b9700d2b6e2109527ba4",
"originGitCommit": "bd066621d9826e656ead12401560351c68565d74",
"sdkVersion": "0.0.0-dev"
}
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 @@ -18,6 +18,7 @@ export interface TranscriptsCreateRequest {
spokenPunctuation?: boolean;
/** When true, automatically punctuates and capitalizes the transcript. Defaults to true. Overridden by `spokenPunctuation` when both are enabled. */
automaticPunctuation?: boolean;
formatting?: Corti.TranscriptsFormatting;
/** **Deprecated** — replaced by `spokenPunctuation` and `automaticPunctuation`. Ignored when either of those fields is provided. When `true` and neither new field is provided, it is treated as `spokenPunctuation: true` (automatic punctuation off). No removal date is currently planned. */
isDictation?: boolean;
/** If true, each audio channel is transcribed separately. */
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/AgenticAgentsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,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
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];
10 changes: 10 additions & 0 deletions src/api/types/StreamFormattingTimes.ts
Original file line number Diff line number Diff line change
@@ -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];
18 changes: 18 additions & 0 deletions src/api/types/TranscriptsFormatting.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 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;
}
11 changes: 11 additions & 0 deletions src/api/types/TranscriptsFormattingDates.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 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];
9 changes: 9 additions & 0 deletions src/api/types/TranscriptsFormattingMeasurements.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 TranscriptsFormattingMeasurements = {
Abbreviated: "abbreviated",
AsDictated: "as_dictated",
} as const;
export type TranscriptsFormattingMeasurements =
(typeof TranscriptsFormattingMeasurements)[keyof typeof TranscriptsFormattingMeasurements];
10 changes: 10 additions & 0 deletions src/api/types/TranscriptsFormattingNumbers.ts
Original file line number Diff line number Diff line change
@@ -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];
9 changes: 9 additions & 0 deletions src/api/types/TranscriptsFormattingNumericRanges.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 TranscriptsFormattingNumericRanges = {
Numerals: "numerals",
AsDictated: "as_dictated",
} as const;
export type TranscriptsFormattingNumericRanges =
(typeof TranscriptsFormattingNumericRanges)[keyof typeof TranscriptsFormattingNumericRanges];
10 changes: 10 additions & 0 deletions src/api/types/TranscriptsFormattingOrdinals.ts
Original file line number Diff line number Diff line change
@@ -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];
10 changes: 10 additions & 0 deletions src/api/types/TranscriptsFormattingTimes.ts
Original file line number Diff line number Diff line change
@@ -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];
Loading
Loading