diff --git a/.fern/metadata.json b/.fern/metadata.json index ea2c333a..c1ccad37 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.93.0", + "cliVersion": "5.114.1", "generatorName": "fernapi/fern-typescript-node-sdk", "generatorVersion": "3.54.0", "generatorConfig": { @@ -34,6 +34,6 @@ } } }, - "originGitCommit": "c993f464ca70e6cae3f0b9700d2b6e2109527ba4", + "originGitCommit": "bd066621d9826e656ead12401560351c68565d74", "sdkVersion": "0.0.0-dev" } 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..4b41ea19 100644 --- a/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts +++ b/src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts @@ -18,6 +18,7 @@ export interface TranscriptsCreateRequest { spokenPunctuation?: boolean; /** When true, automatically punctuates and capitalizes the transcript. Defaults to true. Overridden by `spokenPunctuation` when both are enabled. */ automaticPunctuation?: boolean; + formatting?: Corti.TranscriptsFormatting; /** **Deprecated** — replaced by `spokenPunctuation` and `automaticPunctuation`. Ignored when either of those fields is provided. When `true` and neither new field is provided, it is treated as `spokenPunctuation: true` (automatic punctuation off). No removal date is currently planned. */ isDictation?: boolean; /** If true, each audio channel is transcribed separately. */ diff --git a/src/api/types/AgenticAgentsResponse.ts b/src/api/types/AgenticAgentsResponse.ts index 9c1eba98..a210b9b4 100644 --- a/src/api/types/AgenticAgentsResponse.ts +++ b/src/api/types/AgenticAgentsResponse.ts @@ -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; } 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/StreamFormatting.ts b/src/api/types/StreamFormatting.ts new file mode 100644 index 00000000..333001a7 --- /dev/null +++ b/src/api/types/StreamFormatting.ts @@ -0,0 +1,18 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../index.js"; + +export interface StreamFormatting { + /** Formatting for dates. */ + dates?: Corti.StreamFormattingDates; + /** Formatting for times. */ + times?: Corti.StreamFormattingTimes; + /** Formatting for numbers. */ + numbers?: Corti.StreamFormattingNumbers; + /** Formatting for measurements. */ + measurements?: Corti.StreamFormattingMeasurements; + /** Formatting for numeric ranges. */ + numericRanges?: Corti.StreamFormattingNumericRanges; + /** Formatting for ordinals. */ + ordinals?: Corti.StreamFormattingOrdinals; +} diff --git a/src/api/types/StreamFormattingDates.ts b/src/api/types/StreamFormattingDates.ts new file mode 100644 index 00000000..747edaa0 --- /dev/null +++ b/src/api/types/StreamFormattingDates.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for dates. */ +export const StreamFormattingDates = { + LocaleLong: "locale:long", + LocaleMedium: "locale:medium", + LocaleShort: "locale:short", + AsDictated: "as_dictated", + Iso: "iso", +} as const; +export type StreamFormattingDates = (typeof StreamFormattingDates)[keyof typeof StreamFormattingDates]; diff --git a/src/api/types/StreamFormattingMeasurements.ts b/src/api/types/StreamFormattingMeasurements.ts new file mode 100644 index 00000000..4a39ae48 --- /dev/null +++ b/src/api/types/StreamFormattingMeasurements.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for measurements. */ +export const StreamFormattingMeasurements = { + Abbreviated: "abbreviated", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingMeasurements = + (typeof StreamFormattingMeasurements)[keyof typeof StreamFormattingMeasurements]; diff --git a/src/api/types/StreamFormattingNumbers.ts b/src/api/types/StreamFormattingNumbers.ts new file mode 100644 index 00000000..5fb67b78 --- /dev/null +++ b/src/api/types/StreamFormattingNumbers.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numbers. */ +export const StreamFormattingNumbers = { + NumeralsAboveNine: "numerals_above_nine", + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingNumbers = (typeof StreamFormattingNumbers)[keyof typeof StreamFormattingNumbers]; diff --git a/src/api/types/StreamFormattingNumericRanges.ts b/src/api/types/StreamFormattingNumericRanges.ts new file mode 100644 index 00000000..ca7fbd72 --- /dev/null +++ b/src/api/types/StreamFormattingNumericRanges.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numeric ranges. */ +export const StreamFormattingNumericRanges = { + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingNumericRanges = + (typeof StreamFormattingNumericRanges)[keyof typeof StreamFormattingNumericRanges]; diff --git a/src/api/types/StreamFormattingOrdinals.ts b/src/api/types/StreamFormattingOrdinals.ts new file mode 100644 index 00000000..561fb6b0 --- /dev/null +++ b/src/api/types/StreamFormattingOrdinals.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for ordinals. */ +export const StreamFormattingOrdinals = { + NumeralsAboveNine: "numerals_above_nine", + AsDictated: "as_dictated", + Numerals: "numerals", +} as const; +export type StreamFormattingOrdinals = (typeof StreamFormattingOrdinals)[keyof typeof StreamFormattingOrdinals]; diff --git a/src/api/types/StreamFormattingTimes.ts b/src/api/types/StreamFormattingTimes.ts new file mode 100644 index 00000000..8761b4c2 --- /dev/null +++ b/src/api/types/StreamFormattingTimes.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for times. */ +export const StreamFormattingTimes = { + Locale: "locale", + H24: "h24", + H12: "h12", + AsDictated: "as_dictated", +} as const; +export type StreamFormattingTimes = (typeof StreamFormattingTimes)[keyof typeof StreamFormattingTimes]; diff --git a/src/api/types/TranscriptsFormatting.ts b/src/api/types/TranscriptsFormatting.ts new file mode 100644 index 00000000..b9434af0 --- /dev/null +++ b/src/api/types/TranscriptsFormatting.ts @@ -0,0 +1,18 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../index.js"; + +export interface TranscriptsFormatting { + /** Formatting for dates. */ + dates?: Corti.TranscriptsFormattingDates; + /** Formatting for times. */ + times?: Corti.TranscriptsFormattingTimes; + /** Formatting for numbers. */ + numbers?: Corti.TranscriptsFormattingNumbers; + /** Formatting for measurements. */ + measurements?: Corti.TranscriptsFormattingMeasurements; + /** Formatting for numeric ranges. */ + numericRanges?: Corti.TranscriptsFormattingNumericRanges; + /** Formatting for ordinals. */ + ordinals?: Corti.TranscriptsFormattingOrdinals; +} diff --git a/src/api/types/TranscriptsFormattingDates.ts b/src/api/types/TranscriptsFormattingDates.ts new file mode 100644 index 00000000..a574a853 --- /dev/null +++ b/src/api/types/TranscriptsFormattingDates.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for dates. */ +export const TranscriptsFormattingDates = { + LocaleLong: "locale:long", + LocaleMedium: "locale:medium", + LocaleShort: "locale:short", + AsDictated: "as_dictated", + Iso: "iso", +} as const; +export type TranscriptsFormattingDates = (typeof TranscriptsFormattingDates)[keyof typeof TranscriptsFormattingDates]; diff --git a/src/api/types/TranscriptsFormattingMeasurements.ts b/src/api/types/TranscriptsFormattingMeasurements.ts new file mode 100644 index 00000000..ffb98a24 --- /dev/null +++ b/src/api/types/TranscriptsFormattingMeasurements.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for measurements. */ +export const TranscriptsFormattingMeasurements = { + Abbreviated: "abbreviated", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingMeasurements = + (typeof TranscriptsFormattingMeasurements)[keyof typeof TranscriptsFormattingMeasurements]; diff --git a/src/api/types/TranscriptsFormattingNumbers.ts b/src/api/types/TranscriptsFormattingNumbers.ts new file mode 100644 index 00000000..3911b813 --- /dev/null +++ b/src/api/types/TranscriptsFormattingNumbers.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numbers. */ +export const TranscriptsFormattingNumbers = { + NumeralsAboveNine: "numerals_above_nine", + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingNumbers = + (typeof TranscriptsFormattingNumbers)[keyof typeof TranscriptsFormattingNumbers]; diff --git a/src/api/types/TranscriptsFormattingNumericRanges.ts b/src/api/types/TranscriptsFormattingNumericRanges.ts new file mode 100644 index 00000000..facbeae9 --- /dev/null +++ b/src/api/types/TranscriptsFormattingNumericRanges.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for numeric ranges. */ +export const TranscriptsFormattingNumericRanges = { + Numerals: "numerals", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingNumericRanges = + (typeof TranscriptsFormattingNumericRanges)[keyof typeof TranscriptsFormattingNumericRanges]; diff --git a/src/api/types/TranscriptsFormattingOrdinals.ts b/src/api/types/TranscriptsFormattingOrdinals.ts new file mode 100644 index 00000000..5c61b572 --- /dev/null +++ b/src/api/types/TranscriptsFormattingOrdinals.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for ordinals. */ +export const TranscriptsFormattingOrdinals = { + NumeralsAboveNine: "numerals_above_nine", + AsDictated: "as_dictated", + Numerals: "numerals", +} as const; +export type TranscriptsFormattingOrdinals = + (typeof TranscriptsFormattingOrdinals)[keyof typeof TranscriptsFormattingOrdinals]; diff --git a/src/api/types/TranscriptsFormattingTimes.ts b/src/api/types/TranscriptsFormattingTimes.ts new file mode 100644 index 00000000..a0ea16b2 --- /dev/null +++ b/src/api/types/TranscriptsFormattingTimes.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Formatting for times. */ +export const TranscriptsFormattingTimes = { + Locale: "locale", + H24: "h24", + H12: "h12", + AsDictated: "as_dictated", +} as const; +export type TranscriptsFormattingTimes = (typeof TranscriptsFormattingTimes)[keyof typeof TranscriptsFormattingTimes]; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 23aafdae..16ea8893 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"; @@ -301,6 +306,13 @@ export * from "./StreamFact.js"; export * from "./StreamFactsMessage.js"; export * from "./StreamFlushedMessage.js"; export * from "./StreamFlushMessage.js"; +export * from "./StreamFormatting.js"; +export * from "./StreamFormattingDates.js"; +export * from "./StreamFormattingMeasurements.js"; +export * from "./StreamFormattingNumbers.js"; +export * from "./StreamFormattingNumericRanges.js"; +export * from "./StreamFormattingOrdinals.js"; +export * from "./StreamFormattingTimes.js"; export * from "./StreamParticipant.js"; export * from "./StreamSupportedLanguage.js"; export * from "./StreamTranscript.js"; @@ -352,6 +364,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/transcripts/client/requests/TranscriptsCreateRequest.ts b/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts index ad97965b..dcc9f2b6 100644 --- a/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts +++ b/src/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.ts @@ -3,6 +3,7 @@ import type * as Corti from "../../../../../api/index.js"; import * as core from "../../../../../core/index.js"; import type * as serializers from "../../../../index.js"; +import { TranscriptsFormatting } from "../../../../types/TranscriptsFormatting.js"; import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.js"; import { Uuid } from "../../../../types/Uuid.js"; import { TranscriptsCreateRequestKeyterms } from "../../types/TranscriptsCreateRequestKeyterms.js"; @@ -16,6 +17,7 @@ export const TranscriptsCreateRequest: core.serialization.Schema< primaryLanguage: core.serialization.string(), spokenPunctuation: core.serialization.boolean().optional(), automaticPunctuation: core.serialization.boolean().optional(), + formatting: TranscriptsFormatting.optional(), isDictation: core.serialization.boolean().optional(), isMultichannel: core.serialization.boolean().optional(), diarize: core.serialization.boolean().optional(), @@ -31,6 +33,7 @@ export declare namespace TranscriptsCreateRequest { primaryLanguage: string; spokenPunctuation?: boolean | null; automaticPunctuation?: boolean | null; + formatting?: TranscriptsFormatting.Raw | null; isDictation?: boolean | null; isMultichannel?: boolean | null; diarize?: boolean | null; diff --git a/src/serialization/types/AgenticAgentsResponse.ts b/src/serialization/types/AgenticAgentsResponse.ts index 3dbd92ad..8291c27d 100644 --- a/src/serialization/types/AgenticAgentsResponse.ts +++ b/src/serialization/types/AgenticAgentsResponse.ts @@ -26,6 +26,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 { @@ -42,5 +43,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({ + dates: StreamFormattingDates.optional(), + times: StreamFormattingTimes.optional(), + numbers: StreamFormattingNumbers.optional(), + measurements: StreamFormattingMeasurements.optional(), + numericRanges: StreamFormattingNumericRanges.optional(), + ordinals: StreamFormattingOrdinals.optional(), +}); + +export declare namespace StreamFormatting { + export interface Raw { + dates?: StreamFormattingDates.Raw | null; + times?: StreamFormattingTimes.Raw | null; + numbers?: StreamFormattingNumbers.Raw | null; + measurements?: StreamFormattingMeasurements.Raw | null; + numericRanges?: StreamFormattingNumericRanges.Raw | null; + ordinals?: StreamFormattingOrdinals.Raw | null; + } +} diff --git a/src/serialization/types/StreamFormattingDates.ts b/src/serialization/types/StreamFormattingDates.ts new file mode 100644 index 00000000..fb48b372 --- /dev/null +++ b/src/serialization/types/StreamFormattingDates.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingDates: core.serialization.Schema< + serializers.StreamFormattingDates.Raw, + Corti.StreamFormattingDates +> = core.serialization.enum_(["locale:long", "locale:medium", "locale:short", "as_dictated", "iso"]); + +export declare namespace StreamFormattingDates { + export type Raw = "locale:long" | "locale:medium" | "locale:short" | "as_dictated" | "iso"; +} diff --git a/src/serialization/types/StreamFormattingMeasurements.ts b/src/serialization/types/StreamFormattingMeasurements.ts new file mode 100644 index 00000000..39f1fda5 --- /dev/null +++ b/src/serialization/types/StreamFormattingMeasurements.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingMeasurements: core.serialization.Schema< + serializers.StreamFormattingMeasurements.Raw, + Corti.StreamFormattingMeasurements +> = core.serialization.enum_(["abbreviated", "as_dictated"]); + +export declare namespace StreamFormattingMeasurements { + export type Raw = "abbreviated" | "as_dictated"; +} diff --git a/src/serialization/types/StreamFormattingNumbers.ts b/src/serialization/types/StreamFormattingNumbers.ts new file mode 100644 index 00000000..efe836f3 --- /dev/null +++ b/src/serialization/types/StreamFormattingNumbers.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingNumbers: core.serialization.Schema< + serializers.StreamFormattingNumbers.Raw, + Corti.StreamFormattingNumbers +> = core.serialization.enum_(["numerals_above_nine", "numerals", "as_dictated"]); + +export declare namespace StreamFormattingNumbers { + export type Raw = "numerals_above_nine" | "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/StreamFormattingNumericRanges.ts b/src/serialization/types/StreamFormattingNumericRanges.ts new file mode 100644 index 00000000..b22352a6 --- /dev/null +++ b/src/serialization/types/StreamFormattingNumericRanges.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingNumericRanges: core.serialization.Schema< + serializers.StreamFormattingNumericRanges.Raw, + Corti.StreamFormattingNumericRanges +> = core.serialization.enum_(["numerals", "as_dictated"]); + +export declare namespace StreamFormattingNumericRanges { + export type Raw = "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/StreamFormattingOrdinals.ts b/src/serialization/types/StreamFormattingOrdinals.ts new file mode 100644 index 00000000..d17d3935 --- /dev/null +++ b/src/serialization/types/StreamFormattingOrdinals.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingOrdinals: core.serialization.Schema< + serializers.StreamFormattingOrdinals.Raw, + Corti.StreamFormattingOrdinals +> = core.serialization.enum_(["numerals_above_nine", "as_dictated", "numerals"]); + +export declare namespace StreamFormattingOrdinals { + export type Raw = "numerals_above_nine" | "as_dictated" | "numerals"; +} diff --git a/src/serialization/types/StreamFormattingTimes.ts b/src/serialization/types/StreamFormattingTimes.ts new file mode 100644 index 00000000..30e887eb --- /dev/null +++ b/src/serialization/types/StreamFormattingTimes.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const StreamFormattingTimes: core.serialization.Schema< + serializers.StreamFormattingTimes.Raw, + Corti.StreamFormattingTimes +> = core.serialization.enum_(["locale", "h24", "h12", "as_dictated"]); + +export declare namespace StreamFormattingTimes { + export type Raw = "locale" | "h24" | "h12" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormatting.ts b/src/serialization/types/TranscriptsFormatting.ts new file mode 100644 index 00000000..2273c879 --- /dev/null +++ b/src/serialization/types/TranscriptsFormatting.ts @@ -0,0 +1,34 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; +import { TranscriptsFormattingDates } from "./TranscriptsFormattingDates.js"; +import { TranscriptsFormattingMeasurements } from "./TranscriptsFormattingMeasurements.js"; +import { TranscriptsFormattingNumbers } from "./TranscriptsFormattingNumbers.js"; +import { TranscriptsFormattingNumericRanges } from "./TranscriptsFormattingNumericRanges.js"; +import { TranscriptsFormattingOrdinals } from "./TranscriptsFormattingOrdinals.js"; +import { TranscriptsFormattingTimes } from "./TranscriptsFormattingTimes.js"; + +export const TranscriptsFormatting: core.serialization.ObjectSchema< + serializers.TranscriptsFormatting.Raw, + Corti.TranscriptsFormatting +> = core.serialization.object({ + dates: TranscriptsFormattingDates.optional(), + times: TranscriptsFormattingTimes.optional(), + numbers: TranscriptsFormattingNumbers.optional(), + measurements: TranscriptsFormattingMeasurements.optional(), + numericRanges: TranscriptsFormattingNumericRanges.optional(), + ordinals: TranscriptsFormattingOrdinals.optional(), +}); + +export declare namespace TranscriptsFormatting { + export interface Raw { + dates?: TranscriptsFormattingDates.Raw | null; + times?: TranscriptsFormattingTimes.Raw | null; + numbers?: TranscriptsFormattingNumbers.Raw | null; + measurements?: TranscriptsFormattingMeasurements.Raw | null; + numericRanges?: TranscriptsFormattingNumericRanges.Raw | null; + ordinals?: TranscriptsFormattingOrdinals.Raw | null; + } +} diff --git a/src/serialization/types/TranscriptsFormattingDates.ts b/src/serialization/types/TranscriptsFormattingDates.ts new file mode 100644 index 00000000..a1df49e0 --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingDates.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingDates: core.serialization.Schema< + serializers.TranscriptsFormattingDates.Raw, + Corti.TranscriptsFormattingDates +> = core.serialization.enum_(["locale:long", "locale:medium", "locale:short", "as_dictated", "iso"]); + +export declare namespace TranscriptsFormattingDates { + export type Raw = "locale:long" | "locale:medium" | "locale:short" | "as_dictated" | "iso"; +} diff --git a/src/serialization/types/TranscriptsFormattingMeasurements.ts b/src/serialization/types/TranscriptsFormattingMeasurements.ts new file mode 100644 index 00000000..839e6f9e --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingMeasurements.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingMeasurements: core.serialization.Schema< + serializers.TranscriptsFormattingMeasurements.Raw, + Corti.TranscriptsFormattingMeasurements +> = core.serialization.enum_(["abbreviated", "as_dictated"]); + +export declare namespace TranscriptsFormattingMeasurements { + export type Raw = "abbreviated" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingNumbers.ts b/src/serialization/types/TranscriptsFormattingNumbers.ts new file mode 100644 index 00000000..2880e87f --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingNumbers.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingNumbers: core.serialization.Schema< + serializers.TranscriptsFormattingNumbers.Raw, + Corti.TranscriptsFormattingNumbers +> = core.serialization.enum_(["numerals_above_nine", "numerals", "as_dictated"]); + +export declare namespace TranscriptsFormattingNumbers { + export type Raw = "numerals_above_nine" | "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingNumericRanges.ts b/src/serialization/types/TranscriptsFormattingNumericRanges.ts new file mode 100644 index 00000000..ea6c73ff --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingNumericRanges.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingNumericRanges: core.serialization.Schema< + serializers.TranscriptsFormattingNumericRanges.Raw, + Corti.TranscriptsFormattingNumericRanges +> = core.serialization.enum_(["numerals", "as_dictated"]); + +export declare namespace TranscriptsFormattingNumericRanges { + export type Raw = "numerals" | "as_dictated"; +} diff --git a/src/serialization/types/TranscriptsFormattingOrdinals.ts b/src/serialization/types/TranscriptsFormattingOrdinals.ts new file mode 100644 index 00000000..44b379da --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingOrdinals.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingOrdinals: core.serialization.Schema< + serializers.TranscriptsFormattingOrdinals.Raw, + Corti.TranscriptsFormattingOrdinals +> = core.serialization.enum_(["numerals_above_nine", "as_dictated", "numerals"]); + +export declare namespace TranscriptsFormattingOrdinals { + export type Raw = "numerals_above_nine" | "as_dictated" | "numerals"; +} diff --git a/src/serialization/types/TranscriptsFormattingTimes.ts b/src/serialization/types/TranscriptsFormattingTimes.ts new file mode 100644 index 00000000..b4a33ad1 --- /dev/null +++ b/src/serialization/types/TranscriptsFormattingTimes.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const TranscriptsFormattingTimes: core.serialization.Schema< + serializers.TranscriptsFormattingTimes.Raw, + Corti.TranscriptsFormattingTimes +> = core.serialization.enum_(["locale", "h24", "h12", "as_dictated"]); + +export declare namespace TranscriptsFormattingTimes { + export type Raw = "locale" | "h24" | "h12" | "as_dictated"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 23aafdae..16ea8893 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"; @@ -301,6 +306,13 @@ export * from "./StreamFact.js"; export * from "./StreamFactsMessage.js"; export * from "./StreamFlushedMessage.js"; export * from "./StreamFlushMessage.js"; +export * from "./StreamFormatting.js"; +export * from "./StreamFormattingDates.js"; +export * from "./StreamFormattingMeasurements.js"; +export * from "./StreamFormattingNumbers.js"; +export * from "./StreamFormattingNumericRanges.js"; +export * from "./StreamFormattingOrdinals.js"; +export * from "./StreamFormattingTimes.js"; export * from "./StreamParticipant.js"; export * from "./StreamSupportedLanguage.js"; export * from "./StreamTranscript.js"; @@ -352,6 +364,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..00a0b31f 100644 --- a/tests/wire/agentic/agents.test.ts +++ b/tests/wire/agentic/agents.test.ts @@ -35,6 +35,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", @@ -72,6 +73,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", 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({