diff --git a/.fern/metadata.json b/.fern/metadata.json index ea2c333a..369ee285 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.93.0", + "cliVersion": "5.101.2", "generatorName": "fernapi/fern-typescript-node-sdk", "generatorVersion": "3.54.0", "generatorConfig": { @@ -34,6 +34,6 @@ } } }, - "originGitCommit": "c993f464ca70e6cae3f0b9700d2b6e2109527ba4", + "originGitCommit": "3568b4cdca68b8adeee9ce7a9d642b7a57a0d893", "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/transcripts/client/requests/TranscriptsCreateRequest.ts b/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts index b1f96a29..c62b54e9 100644 --- a/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts +++ b/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts @@ -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. */ diff --git a/src/api/resources/transcripts/types/TranscriptsCreateRequestTranscriptProcessing.ts b/src/api/resources/transcripts/types/TranscriptsCreateRequestTranscriptProcessing.ts new file mode 100644 index 00000000..699a7d8e --- /dev/null +++ b/src/api/resources/transcripts/types/TranscriptsCreateRequestTranscriptProcessing.ts @@ -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]; diff --git a/src/api/resources/transcripts/types/index.ts b/src/api/resources/transcripts/types/index.ts index 1d8e0239..de101f84 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 "./TranscriptsCreateRequestTranscriptProcessing.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/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/StreamConfigTranscription.ts b/src/api/types/StreamConfigTranscription.ts index 38395783..9e3d1b3e 100644 --- a/src/api/types/StreamConfigTranscription.ts +++ b/src/api/types/StreamConfigTranscription.ts @@ -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. */ diff --git a/src/api/types/StreamConfigTranscriptionTranscriptProcessing.ts b/src/api/types/StreamConfigTranscriptionTranscriptProcessing.ts new file mode 100644 index 00000000..5c31ef29 --- /dev/null +++ b/src/api/types/StreamConfigTranscriptionTranscriptProcessing.ts @@ -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]; 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/TranscribeConfig.ts b/src/api/types/TranscribeConfig.ts index 56eaa6f1..ae7d6365 100644 --- a/src/api/types/TranscribeConfig.ts +++ b/src/api/types/TranscribeConfig.ts @@ -5,6 +5,8 @@ import type * as Corti from "../index.js"; export interface TranscribeConfig { /** The locale of the primary spoken language. */ primaryLanguage: Corti.TranscribeSupportedLanguage; + /** 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.TranscribeConfigTranscriptProcessing; /** When true, returns interim (preview) transcript results (`isFinal=false`) for reduced latency than final transcripts. Defaults to false. */ interimResults?: boolean; /** When true, converts spoken punctuation such as 'period' or 'slash' into '.' or '/'. Defaults to false. Overrides automaticPunctuation when both are enabled. */ diff --git a/src/api/types/TranscribeConfigTranscriptProcessing.ts b/src/api/types/TranscribeConfigTranscriptProcessing.ts new file mode 100644 index 00000000..171e7bda --- /dev/null +++ b/src/api/types/TranscribeConfigTranscriptProcessing.ts @@ -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 TranscribeConfigTranscriptProcessing = { + Standard: "standard", + Raw: "raw", +} as const; +export type TranscribeConfigTranscriptProcessing = + (typeof TranscribeConfigTranscriptProcessing)[keyof typeof TranscribeConfigTranscriptProcessing]; diff --git a/src/api/types/TranscriptsFormatting.ts b/src/api/types/TranscriptsFormatting.ts new file mode 100644 index 00000000..b9434af0 --- /dev/null +++ b/src/api/types/TranscriptsFormatting.ts @@ -0,0 +1,18 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../index.js"; + +export interface TranscriptsFormatting { + /** Formatting for dates. */ + dates?: Corti.TranscriptsFormattingDates; + /** Formatting for times. */ + times?: Corti.TranscriptsFormattingTimes; + /** Formatting for numbers. */ + numbers?: Corti.TranscriptsFormattingNumbers; + /** Formatting for measurements. */ + measurements?: Corti.TranscriptsFormattingMeasurements; + /** Formatting for numeric ranges. */ + numericRanges?: Corti.TranscriptsFormattingNumericRanges; + /** Formatting for ordinals. */ + ordinals?: Corti.TranscriptsFormattingOrdinals; +} diff --git a/src/api/types/TranscriptsFormattingDates.ts b/src/api/types/TranscriptsFormattingDates.ts new file mode 100644 index 00000000..a574a853 --- /dev/null +++ b/src/api/types/TranscriptsFormattingDates.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for dates. */ +export const TranscriptsFormattingDates = { + LocaleLong: "locale:long", + LocaleMedium: "locale:medium", + LocaleShort: "locale:short", + AsDictated: "as_dictated", + Iso: "iso", +} as const; +export type TranscriptsFormattingDates = (typeof TranscriptsFormattingDates)[keyof typeof TranscriptsFormattingDates]; diff --git a/src/api/types/TranscriptsFormattingMeasurements.ts b/src/api/types/TranscriptsFormattingMeasurements.ts new file mode 100644 index 00000000..ffb98a24 --- /dev/null +++ b/src/api/types/TranscriptsFormattingMeasurements.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for measurements. */ +export const TranscriptsFormattingMeasurements = { + Abbreviated: "abbreviated", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingMeasurements = + (typeof TranscriptsFormattingMeasurements)[keyof typeof TranscriptsFormattingMeasurements]; diff --git a/src/api/types/TranscriptsFormattingNumbers.ts b/src/api/types/TranscriptsFormattingNumbers.ts new file mode 100644 index 00000000..3911b813 --- /dev/null +++ b/src/api/types/TranscriptsFormattingNumbers.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numbers. */ +export const TranscriptsFormattingNumbers = { + NumeralsAboveNine: "numerals_above_nine", + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingNumbers = + (typeof TranscriptsFormattingNumbers)[keyof typeof TranscriptsFormattingNumbers]; diff --git a/src/api/types/TranscriptsFormattingNumericRanges.ts b/src/api/types/TranscriptsFormattingNumericRanges.ts new file mode 100644 index 00000000..facbeae9 --- /dev/null +++ b/src/api/types/TranscriptsFormattingNumericRanges.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numeric ranges. */ +export const TranscriptsFormattingNumericRanges = { + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingNumericRanges = + (typeof TranscriptsFormattingNumericRanges)[keyof typeof TranscriptsFormattingNumericRanges]; diff --git a/src/api/types/TranscriptsFormattingOrdinals.ts b/src/api/types/TranscriptsFormattingOrdinals.ts new file mode 100644 index 00000000..5c61b572 --- /dev/null +++ b/src/api/types/TranscriptsFormattingOrdinals.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for ordinals. */ +export const TranscriptsFormattingOrdinals = { + NumeralsAboveNine: "numerals_above_nine", + AsDictated: "as_dictated", + Numerals: "numerals", +} as const; +export type TranscriptsFormattingOrdinals = + (typeof TranscriptsFormattingOrdinals)[keyof typeof TranscriptsFormattingOrdinals]; diff --git a/src/api/types/TranscriptsFormattingTimes.ts b/src/api/types/TranscriptsFormattingTimes.ts new file mode 100644 index 00000000..a0ea16b2 --- /dev/null +++ b/src/api/types/TranscriptsFormattingTimes.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for times. */ +export const TranscriptsFormattingTimes = { + Locale: "locale", + H24: "h24", + H12: "h12", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingTimes = (typeof TranscriptsFormattingTimes)[keyof typeof TranscriptsFormattingTimes]; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 23aafdae..0e5b3537 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"; @@ -292,6 +297,7 @@ export * from "./StreamConfigRetentionPolicy.js"; export * from "./StreamConfigStatusMessage.js"; export * from "./StreamConfigStatusMessageType.js"; export * from "./StreamConfigTranscription.js"; +export * from "./StreamConfigTranscriptionTranscriptProcessing.js"; export * from "./StreamDeltaUsageMessage.js"; export * from "./StreamEndedMessage.js"; export * from "./StreamEndMessage.js"; @@ -301,6 +307,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"; @@ -333,6 +346,7 @@ export * from "./TranscribeConfigMessage.js"; export * from "./TranscribeConfigReplacementsItem.js"; export * from "./TranscribeConfigStatusMessage.js"; export * from "./TranscribeConfigStatusMessageType.js"; +export * from "./TranscribeConfigTranscriptProcessing.js"; export * from "./TranscribeDeltaUsageMessage.js"; export * from "./TranscribeEndedMessage.js"; export * from "./TranscribeEndMessage.js"; @@ -352,6 +366,13 @@ export * from "./TranscribeTranscriptData.js"; export * from "./TranscribeTranscriptMessage.js"; export * from "./TranscribeUsageMessage.js"; export * from "./TranscriptsData.js"; +export * from "./TranscriptsFormatting.js"; +export * from "./TranscriptsFormattingDates.js"; +export * from "./TranscriptsFormattingMeasurements.js"; +export * from "./TranscriptsFormattingNumbers.js"; +export * from "./TranscriptsFormattingNumericRanges.js"; +export * from "./TranscriptsFormattingOrdinals.js"; +export * from "./TranscriptsFormattingTimes.js"; export * from "./TranscriptsListItem.js"; export * from "./TranscriptsListResponse.js"; export * from "./TranscriptsMetadata.js"; diff --git a/src/serialization/resources/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..a5fc2b9f 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 { TranscriptsCreateRequestTranscriptProcessing } from "../../types/TranscriptsCreateRequestTranscriptProcessing.js"; export const TranscriptsCreateRequest: core.serialization.Schema< serializers.TranscriptsCreateRequest.Raw, @@ -14,8 +16,10 @@ export const TranscriptsCreateRequest: core.serialization.Schema< > = core.serialization.object({ recordingId: Uuid, primaryLanguage: core.serialization.string(), + transcriptProcessing: TranscriptsCreateRequestTranscriptProcessing.optional(), 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(), @@ -29,8 +33,10 @@ export declare namespace TranscriptsCreateRequest { export interface Raw { recordingId: Uuid.Raw; primaryLanguage: string; + transcriptProcessing?: TranscriptsCreateRequestTranscriptProcessing.Raw | null; spokenPunctuation?: boolean | null; automaticPunctuation?: boolean | null; + formatting?: TranscriptsFormatting.Raw | null; isDictation?: boolean | null; isMultichannel?: boolean | null; diarize?: boolean | null; diff --git a/src/serialization/resources/transcripts/types/TranscriptsCreateRequestTranscriptProcessing.ts b/src/serialization/resources/transcripts/types/TranscriptsCreateRequestTranscriptProcessing.ts new file mode 100644 index 00000000..26b98517 --- /dev/null +++ b/src/serialization/resources/transcripts/types/TranscriptsCreateRequestTranscriptProcessing.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 TranscriptsCreateRequestTranscriptProcessing: core.serialization.Schema< + serializers.TranscriptsCreateRequestTranscriptProcessing.Raw, + Corti.TranscriptsCreateRequestTranscriptProcessing +> = core.serialization.enum_(["standard", "raw"]); + +export declare namespace TranscriptsCreateRequestTranscriptProcessing { + export type Raw = "standard" | "raw"; +} diff --git a/src/serialization/resources/transcripts/types/index.ts b/src/serialization/resources/transcripts/types/index.ts index 1d8e0239..de101f84 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 "./TranscriptsCreateRequestTranscriptProcessing.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({ primaryLanguage: StreamSupportedLanguage, + transcriptProcessing: StreamConfigTranscriptionTranscriptProcessing.optional(), diarize: core.serialization.boolean().optional(), isDiarization: core.serialization.boolean().optional(), isMultichannel: core.serialization.boolean().optional(), @@ -20,6 +22,7 @@ export const StreamConfigTranscription: core.serialization.ObjectSchema< export declare namespace StreamConfigTranscription { export interface Raw { primaryLanguage: StreamSupportedLanguage.Raw; + transcriptProcessing?: StreamConfigTranscriptionTranscriptProcessing.Raw | null; diarize?: boolean | null; isDiarization?: boolean | null; isMultichannel?: boolean | null; diff --git a/src/serialization/types/StreamConfigTranscriptionTranscriptProcessing.ts b/src/serialization/types/StreamConfigTranscriptionTranscriptProcessing.ts new file mode 100644 index 00000000..87eca653 --- /dev/null +++ b/src/serialization/types/StreamConfigTranscriptionTranscriptProcessing.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 StreamConfigTranscriptionTranscriptProcessing: core.serialization.Schema< + serializers.StreamConfigTranscriptionTranscriptProcessing.Raw, + Corti.StreamConfigTranscriptionTranscriptProcessing +> = core.serialization.enum_(["standard", "raw"]); + +export declare namespace StreamConfigTranscriptionTranscriptProcessing { + export type Raw = "standard" | "raw"; +} 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/TranscribeConfig.ts b/src/serialization/types/TranscribeConfig.ts index e6fbaa14..3f5d31cb 100644 --- a/src/serialization/types/TranscribeConfig.ts +++ b/src/serialization/types/TranscribeConfig.ts @@ -7,6 +7,7 @@ import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.js"; import { TranscribeCommand } from "./TranscribeCommand.js"; import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.js"; import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.js"; +import { TranscribeConfigTranscriptProcessing } from "./TranscribeConfigTranscriptProcessing.js"; import { TranscribeFormatting } from "./TranscribeFormatting.js"; import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.js"; @@ -15,6 +16,7 @@ export const TranscribeConfig: core.serialization.ObjectSchema< Corti.TranscribeConfig > = core.serialization.object({ primaryLanguage: TranscribeSupportedLanguage, + transcriptProcessing: TranscribeConfigTranscriptProcessing.optional(), interimResults: core.serialization.boolean().optional(), spokenPunctuation: core.serialization.boolean().optional(), automaticPunctuation: core.serialization.boolean().optional(), @@ -29,6 +31,7 @@ export const TranscribeConfig: core.serialization.ObjectSchema< export declare namespace TranscribeConfig { export interface Raw { primaryLanguage: TranscribeSupportedLanguage.Raw; + transcriptProcessing?: TranscribeConfigTranscriptProcessing.Raw | null; interimResults?: boolean | null; spokenPunctuation?: boolean | null; automaticPunctuation?: boolean | null; diff --git a/src/serialization/types/TranscribeConfigTranscriptProcessing.ts b/src/serialization/types/TranscribeConfigTranscriptProcessing.ts new file mode 100644 index 00000000..75291431 --- /dev/null +++ b/src/serialization/types/TranscribeConfigTranscriptProcessing.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 TranscribeConfigTranscriptProcessing: core.serialization.Schema< + serializers.TranscribeConfigTranscriptProcessing.Raw, + Corti.TranscribeConfigTranscriptProcessing +> = core.serialization.enum_(["standard", "raw"]); + +export declare namespace TranscribeConfigTranscriptProcessing { + export type Raw = "standard" | "raw"; +} diff --git a/src/serialization/types/TranscriptsFormatting.ts b/src/serialization/types/TranscriptsFormatting.ts new file mode 100644 index 00000000..2273c879 --- /dev/null +++ b/src/serialization/types/TranscriptsFormatting.ts @@ -0,0 +1,34 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; +import { TranscriptsFormattingDates } from "./TranscriptsFormattingDates.js"; +import { TranscriptsFormattingMeasurements } from "./TranscriptsFormattingMeasurements.js"; +import { TranscriptsFormattingNumbers } from "./TranscriptsFormattingNumbers.js"; +import { TranscriptsFormattingNumericRanges } from "./TranscriptsFormattingNumericRanges.js"; +import { TranscriptsFormattingOrdinals } from "./TranscriptsFormattingOrdinals.js"; +import { TranscriptsFormattingTimes } from "./TranscriptsFormattingTimes.js"; + +export const TranscriptsFormatting: core.serialization.ObjectSchema< + serializers.TranscriptsFormatting.Raw, + Corti.TranscriptsFormatting +> = core.serialization.object({ + dates: TranscriptsFormattingDates.optional(), + times: TranscriptsFormattingTimes.optional(), + numbers: TranscriptsFormattingNumbers.optional(), + measurements: TranscriptsFormattingMeasurements.optional(), + numericRanges: TranscriptsFormattingNumericRanges.optional(), + ordinals: TranscriptsFormattingOrdinals.optional(), +}); + +export declare namespace TranscriptsFormatting { + export interface Raw { + dates?: TranscriptsFormattingDates.Raw | null; + times?: TranscriptsFormattingTimes.Raw | null; + numbers?: TranscriptsFormattingNumbers.Raw | null; + measurements?: TranscriptsFormattingMeasurements.Raw | null; + numericRanges?: TranscriptsFormattingNumericRanges.Raw | null; + ordinals?: TranscriptsFormattingOrdinals.Raw | null; + } +} diff --git a/src/serialization/types/TranscriptsFormattingDates.ts b/src/serialization/types/TranscriptsFormattingDates.ts new file mode 100644 index 00000000..a1df49e0 --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingDates.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingDates: core.serialization.Schema< + serializers.TranscriptsFormattingDates.Raw, + Corti.TranscriptsFormattingDates +> = core.serialization.enum_(["locale:long", "locale:medium", "locale:short", "as_dictated", "iso"]); + +export declare namespace TranscriptsFormattingDates { + export type Raw = "locale:long" | "locale:medium" | "locale:short" | "as_dictated" | "iso"; +} diff --git a/src/serialization/types/TranscriptsFormattingMeasurements.ts b/src/serialization/types/TranscriptsFormattingMeasurements.ts new file mode 100644 index 00000000..839e6f9e --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingMeasurements.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingMeasurements: core.serialization.Schema< + serializers.TranscriptsFormattingMeasurements.Raw, + Corti.TranscriptsFormattingMeasurements +> = core.serialization.enum_(["abbreviated", "as_dictated"]); + +export declare namespace TranscriptsFormattingMeasurements { + export type Raw = "abbreviated" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingNumbers.ts b/src/serialization/types/TranscriptsFormattingNumbers.ts new file mode 100644 index 00000000..2880e87f --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingNumbers.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingNumbers: core.serialization.Schema< + serializers.TranscriptsFormattingNumbers.Raw, + Corti.TranscriptsFormattingNumbers +> = core.serialization.enum_(["numerals_above_nine", "numerals", "as_dictated"]); + +export declare namespace TranscriptsFormattingNumbers { + export type Raw = "numerals_above_nine" | "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingNumericRanges.ts b/src/serialization/types/TranscriptsFormattingNumericRanges.ts new file mode 100644 index 00000000..ea6c73ff --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingNumericRanges.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingNumericRanges: core.serialization.Schema< + serializers.TranscriptsFormattingNumericRanges.Raw, + Corti.TranscriptsFormattingNumericRanges +> = core.serialization.enum_(["numerals", "as_dictated"]); + +export declare namespace TranscriptsFormattingNumericRanges { + export type Raw = "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingOrdinals.ts b/src/serialization/types/TranscriptsFormattingOrdinals.ts new file mode 100644 index 00000000..44b379da --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingOrdinals.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingOrdinals: core.serialization.Schema< + serializers.TranscriptsFormattingOrdinals.Raw, + Corti.TranscriptsFormattingOrdinals +> = core.serialization.enum_(["numerals_above_nine", "as_dictated", "numerals"]); + +export declare namespace TranscriptsFormattingOrdinals { + export type Raw = "numerals_above_nine" | "as_dictated" | "numerals"; +} diff --git a/src/serialization/types/TranscriptsFormattingTimes.ts b/src/serialization/types/TranscriptsFormattingTimes.ts new file mode 100644 index 00000000..b4a33ad1 --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingTimes.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingTimes: core.serialization.Schema< + serializers.TranscriptsFormattingTimes.Raw, + Corti.TranscriptsFormattingTimes +> = core.serialization.enum_(["locale", "h24", "h12", "as_dictated"]); + +export declare namespace TranscriptsFormattingTimes { + export type Raw = "locale" | "h24" | "h12" | "as_dictated"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 23aafdae..0e5b3537 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"; @@ -292,6 +297,7 @@ export * from "./StreamConfigRetentionPolicy.js"; export * from "./StreamConfigStatusMessage.js"; export * from "./StreamConfigStatusMessageType.js"; export * from "./StreamConfigTranscription.js"; +export * from "./StreamConfigTranscriptionTranscriptProcessing.js"; export * from "./StreamDeltaUsageMessage.js"; export * from "./StreamEndedMessage.js"; export * from "./StreamEndMessage.js"; @@ -301,6 +307,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"; @@ -333,6 +346,7 @@ export * from "./TranscribeConfigMessage.js"; export * from "./TranscribeConfigReplacementsItem.js"; export * from "./TranscribeConfigStatusMessage.js"; export * from "./TranscribeConfigStatusMessageType.js"; +export * from "./TranscribeConfigTranscriptProcessing.js"; export * from "./TranscribeDeltaUsageMessage.js"; export * from "./TranscribeEndedMessage.js"; export * from "./TranscribeEndMessage.js"; @@ -352,6 +366,13 @@ export * from "./TranscribeTranscriptData.js"; export * from "./TranscribeTranscriptMessage.js"; export * from "./TranscribeUsageMessage.js"; export * from "./TranscriptsData.js"; +export * from "./TranscriptsFormatting.js"; +export * from "./TranscriptsFormattingDates.js"; +export * from "./TranscriptsFormattingMeasurements.js"; +export * from "./TranscriptsFormattingNumbers.js"; +export * from "./TranscriptsFormattingNumericRanges.js"; +export * from "./TranscriptsFormattingOrdinals.js"; +export * from "./TranscriptsFormattingTimes.js"; export * from "./TranscriptsListItem.js"; export * from "./TranscriptsListResponse.js"; export * from "./TranscriptsMetadata.js"; diff --git a/tests/wire/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({