diff --git a/LICENSE b/LICENSE index f7993cfd..f5596cff 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Corti. +Copyright (c) 2026 Corti. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 2376f56a..d2baab7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@corti/sdk", - "version": "0.8.0", + "version": "0.9.0-rc", "private": false, "repository": "github:corticph/corti-sdk-javascript", "license": "MIT", diff --git a/src/Client.ts b/src/Client.ts index 1d4da5d3..21d00959 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -65,8 +65,8 @@ export class CortiClient { "Tenant-Name": _options?.tenantName, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@corti/sdk", - "X-Fern-SDK-Version": "0.8.0", - "User-Agent": "@corti/sdk/0.8.0", + "X-Fern-SDK-Version": "0.9.0-rc", + "User-Agent": "@corti/sdk/0.9.0-rc", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/facts/client/Client.ts b/src/api/resources/facts/client/Client.ts index 55b9f98d..d023b2ad 100644 --- a/src/api/resources/facts/client/Client.ts +++ b/src/api/resources/facts/client/Client.ts @@ -344,7 +344,7 @@ export class Facts { * @example * await client.facts.batchUpdate("f47ac10b-58cc-4372-a567-0e02b2c3d479", { * facts: [{ - * factId: "f47ac10b-58cc-4372-a567-0e02b2c3d479" + * factId: "3c9d8a12-7f44-4b3e-9e6f-9271c2bbfa08" * }] * }) */ @@ -442,18 +442,18 @@ export class Facts { * Updates an existing fact associated with a specific interaction. * * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID. - * @param {Corti.Uuid} factId - The unique identifier of the fact to update. Must be a valid UUID. + * @param {string} factId - The unique identifier of the fact to update. Must be a valid UUID. * @param {Corti.FactsUpdateRequest} request * @param {Facts.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.GatewayTimeoutError} * * @example - * await client.facts.update("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479") + * await client.facts.update("f47ac10b-58cc-4372-a567-0e02b2c3d479", "3c9d8a12-7f44-4b3e-9e6f-9271c2bbfa08") */ public update( id: Corti.Uuid, - factId: Corti.Uuid, + factId: string, request: Corti.FactsUpdateRequest = {}, requestOptions?: Facts.RequestOptions, ): core.HttpResponsePromise { @@ -462,7 +462,7 @@ export class Facts { private async __update( id: Corti.Uuid, - factId: Corti.Uuid, + factId: string, request: Corti.FactsUpdateRequest = {}, requestOptions?: Facts.RequestOptions, ): Promise> { @@ -470,7 +470,7 @@ export class Facts { url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)).base, - `interactions/${encodeURIComponent(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/facts/${encodeURIComponent(serializers.Uuid.jsonOrThrow(factId, { omitUndefined: true }))}`, + `interactions/${encodeURIComponent(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/facts/${encodeURIComponent(factId)}`, ), method: "PATCH", headers: mergeHeaders( diff --git a/src/api/resources/facts/client/requests/FactsBatchUpdateRequest.ts b/src/api/resources/facts/client/requests/FactsBatchUpdateRequest.ts index 38bd5fd8..4e1d1097 100644 --- a/src/api/resources/facts/client/requests/FactsBatchUpdateRequest.ts +++ b/src/api/resources/facts/client/requests/FactsBatchUpdateRequest.ts @@ -8,7 +8,7 @@ import * as Corti from "../../../../index.js"; * @example * { * facts: [{ - * factId: "f47ac10b-58cc-4372-a567-0e02b2c3d479" + * factId: "3c9d8a12-7f44-4b3e-9e6f-9271c2bbfa08" * }] * } */ diff --git a/src/api/resources/facts/client/requests/FactsUpdateRequest.ts b/src/api/resources/facts/client/requests/FactsUpdateRequest.ts index 2c792157..63196a68 100644 --- a/src/api/resources/facts/client/requests/FactsUpdateRequest.ts +++ b/src/api/resources/facts/client/requests/FactsUpdateRequest.ts @@ -13,7 +13,7 @@ export interface FactsUpdateRequest { text?: string; /** The updated group key for the fact. */ group?: string; - /** The updated origin of the fact. Set to 'USER' to indicate a change by an end-user. */ + /** To track the updated source of the fact. Set to 'user' to indicate a change by an end-user. */ source?: Corti.CommonSourceEnum; /** Set this to true if discarded by an end-user, then filter out from the document generation request. */ isDiscarded?: boolean; diff --git a/src/api/types/DocumentsCreateRequest.ts b/src/api/types/DocumentsCreateRequest.ts index 57ce95be..e61c566b 100644 --- a/src/api/types/DocumentsCreateRequest.ts +++ b/src/api/types/DocumentsCreateRequest.ts @@ -9,5 +9,5 @@ export type DocumentsCreateRequest = * Standard method for document generation: Use template key to generate document based on pre-defined template. */ | Corti.DocumentsCreateRequestWithTemplateKey /** - * Advanced method for document generation: Define sectionKeys in the request to build a template dynamically. See a detailed example [here](/templates/documents-advanced#assemble-a-template-with-extra-instructions). */ + * Advanced method for document generation: Define Sections in the request to build a template dynamically. See a detailed example [here](/templates/documents-advanced#assemble-a-template-with-extra-instructions). */ | Corti.DocumentsCreateRequestWithTemplate; diff --git a/src/api/types/DocumentsCreateRequestWithTemplate.ts b/src/api/types/DocumentsCreateRequestWithTemplate.ts index 25a39a24..b52285c5 100644 --- a/src/api/types/DocumentsCreateRequestWithTemplate.ts +++ b/src/api/types/DocumentsCreateRequestWithTemplate.ts @@ -15,4 +15,5 @@ export interface DocumentsCreateRequestWithTemplate { outputLanguage: string; /** Set to true to disable guardrails during document generation, default is false. */ disableGuardrails?: boolean; + documentationMode?: Corti.TemplatesDocumentationModeEnum; } diff --git a/src/api/types/DocumentsCreateRequestWithTemplateKey.ts b/src/api/types/DocumentsCreateRequestWithTemplateKey.ts index f912fad6..2a1275b3 100644 --- a/src/api/types/DocumentsCreateRequestWithTemplateKey.ts +++ b/src/api/types/DocumentsCreateRequestWithTemplateKey.ts @@ -15,4 +15,5 @@ export interface DocumentsCreateRequestWithTemplateKey { outputLanguage: string; /** Set to true to disable guardrails during document generation, default is false. */ disableGuardrails?: boolean; + documentationMode?: Corti.TemplatesDocumentationModeEnum; } diff --git a/src/api/types/DocumentsSectionOverride.ts b/src/api/types/DocumentsSectionOverride.ts new file mode 100644 index 00000000..259097fc --- /dev/null +++ b/src/api/types/DocumentsSectionOverride.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DocumentsSectionOverride { + /** The key that references the section to use for document generation. */ + key: string; + /** Overrides the section name used in document generation and response. */ + nameOverride?: string; + /** Overrides the section's default writing style with your custom prompt. */ + writingStyleOverride?: string; + /** Overrides the section's default format rule with your custom prompt. */ + formatRuleOverride?: string; + /** Overrides and sets the section-level additional instructions with your custom prompt. */ + additionalInstructionsOverride?: string; + /** Overrides the section's content prompt used for input assignment with documentationMode: routed_parallel, and section generation. */ + contentOverride?: string; +} diff --git a/src/api/types/DocumentsTemplate.ts b/src/api/types/DocumentsTemplate.ts index 9531b8be..af732607 100644 --- a/src/api/types/DocumentsTemplate.ts +++ b/src/api/types/DocumentsTemplate.ts @@ -4,4 +4,10 @@ import * as Corti from "../index.js"; -export type DocumentsTemplate = Corti.DocumentsTemplateWithSectionKeys; +export type DocumentsTemplate = + /** + * Flexible sections to be used in document generation. */ + | Corti.DocumentsTemplateWithSections + /** + * Section keys to be used in document generation, without overrides. */ + | Corti.DocumentsTemplateWithSectionKeys; diff --git a/src/api/types/DocumentsTemplateWithSections.ts b/src/api/types/DocumentsTemplateWithSections.ts new file mode 100644 index 00000000..2718aad0 --- /dev/null +++ b/src/api/types/DocumentsTemplateWithSections.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Corti from "../index.js"; + +export interface DocumentsTemplateWithSections { + sections: Corti.DocumentsSectionOverride[]; + /** A brief description of the document that can help give the LLM some context. */ + description?: string; + /** Overrides and sets template-level additional instructions. */ + additionalInstructionsOverride?: string; +} diff --git a/src/api/types/FactsBatchUpdateInput.ts b/src/api/types/FactsBatchUpdateInput.ts index c9df2cef..53340cdf 100644 --- a/src/api/types/FactsBatchUpdateInput.ts +++ b/src/api/types/FactsBatchUpdateInput.ts @@ -2,11 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Corti from "../index.js"; - export interface FactsBatchUpdateInput { /** The unique identifier of the fact to be updated. */ - factId: Corti.Uuid; + factId: string; /** Set this to true for facts discarded by an end-user, then filter those out from the document generation request. */ isDiscarded?: boolean; /** The updated text content of the fact. */ diff --git a/src/api/types/FactsBatchUpdateItem.ts b/src/api/types/FactsBatchUpdateItem.ts index dc60f436..dd1beaca 100644 --- a/src/api/types/FactsBatchUpdateItem.ts +++ b/src/api/types/FactsBatchUpdateItem.ts @@ -6,7 +6,7 @@ import * as Corti from "../index.js"; export interface FactsBatchUpdateItem { /** The unique identifier of the updated fact. */ - id: Corti.Uuid; + id: string; /** The updated text content of the fact. */ text: string; /** The updated group key to which the fact belongs. */ diff --git a/src/api/types/FactsContext.ts b/src/api/types/FactsContext.ts index 1f348a25..dc3d11bc 100644 --- a/src/api/types/FactsContext.ts +++ b/src/api/types/FactsContext.ts @@ -9,6 +9,6 @@ export interface FactsContext { text: string; /** The group to which the fact belongs. */ group?: string; - /** The source of the fact. 'USER' refers to facts provided by the user, while 'SYSTEM' refers to system-generated facts (e.g., EHR). */ + /** Source 'core' indicates facts generated by the LLM, 'user' for facts added by the user, 'system' for system-derived facts (e.g. EHR). */ source: Corti.CommonSourceEnum; } diff --git a/src/api/types/FactsCreateInput.ts b/src/api/types/FactsCreateInput.ts index 056c11ba..7ab1ebb2 100644 --- a/src/api/types/FactsCreateInput.ts +++ b/src/api/types/FactsCreateInput.ts @@ -9,6 +9,6 @@ export interface FactsCreateInput { text: string; /** The key identifying the group to which the fact belongs. */ group: string; - /** The origin of the fact, such as 'USER' or 'SYSTEM'. */ + /** To track the source of a fact. Set 'user' for an end-user, 'system' for EHR-derived facts. 'core' is used for facts generated by the LLM. */ source?: Corti.CommonSourceEnum; } diff --git a/src/api/types/FactsCreateItem.ts b/src/api/types/FactsCreateItem.ts index c20b3ba0..aeb96891 100644 --- a/src/api/types/FactsCreateItem.ts +++ b/src/api/types/FactsCreateItem.ts @@ -6,14 +6,14 @@ import * as Corti from "../index.js"; export interface FactsCreateItem { /** The unique identifier of the newly created fact. */ - id?: Corti.Uuid; + id?: string; /** The textual content of the created fact. */ text?: string; /** The group key categorizing the fact. */ group?: string; /** The unique identifier of the group to which the fact belongs. */ groupId?: Corti.Uuid; - /** The origin of the fact, such as 'USER' or 'SYSTEM'. */ + /** To track the source of a fact. Set 'user' for an end-user, 'system' for EHR-derived facts. 'core' is used for facts generated by the LLM. */ source?: Corti.CommonSourceEnum; /** Indicates whether the fact has been marked as discarded by an end-user. */ isDiscarded?: boolean; diff --git a/src/api/types/FactsListItem.ts b/src/api/types/FactsListItem.ts index 72f01129..c5f87db8 100644 --- a/src/api/types/FactsListItem.ts +++ b/src/api/types/FactsListItem.ts @@ -6,7 +6,7 @@ import * as Corti from "../index.js"; export interface FactsListItem { /** The unique identifier of the fact. */ - id?: Corti.Uuid; + id?: string; /** The text content of the fact. */ text?: string; /** The key identifying the group to which the fact belongs. */ @@ -15,7 +15,7 @@ export interface FactsListItem { groupId?: Corti.Uuid; /** Indicates whether the fact has been marked as discarded by an end-user. */ isDiscarded?: boolean; - /** The origin of the fact. */ + /** Source 'core' indicates facts generated by the LLM, 'user' for facts added by the user, 'system' for system-derived facts (e.g. EHR). */ source?: Corti.CommonSourceEnum; /** The timestamp when the fact was created. */ createdAt?: Date; diff --git a/src/api/types/FactsUpdateResponse.ts b/src/api/types/FactsUpdateResponse.ts index 9188051d..a0920962 100644 --- a/src/api/types/FactsUpdateResponse.ts +++ b/src/api/types/FactsUpdateResponse.ts @@ -6,7 +6,7 @@ import * as Corti from "../index.js"; export interface FactsUpdateResponse { /** The unique identifier of the fact. */ - id: Corti.Uuid; + id: string; /** The updated text content of the fact. */ text: string; /** The updated group key to which the fact belongs. */ diff --git a/src/api/types/TemplatesDocumentationModeEnum.ts b/src/api/types/TemplatesDocumentationModeEnum.ts new file mode 100644 index 00000000..b62e6407 --- /dev/null +++ b/src/api/types/TemplatesDocumentationModeEnum.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Configures the approach and underlying system prompt that govern how the LLM generates documentation. + */ +export type TemplatesDocumentationModeEnum = "global_sequential" | "routed_parallel"; +export const TemplatesDocumentationModeEnum = { + GlobalSequential: "global_sequential", + RoutedParallel: "routed_parallel", +} as const; diff --git a/src/api/types/TemplatesFormatRule.ts b/src/api/types/TemplatesFormatRule.ts new file mode 100644 index 00000000..cb8a07f9 --- /dev/null +++ b/src/api/types/TemplatesFormatRule.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface TemplatesFormatRule { + /** Name of the format rule. */ + name?: string | null; +} diff --git a/src/api/types/TemplatesItem.ts b/src/api/types/TemplatesItem.ts index 51605a16..8b3b8680 100644 --- a/src/api/types/TemplatesItem.ts +++ b/src/api/types/TemplatesItem.ts @@ -6,17 +6,20 @@ import * as Corti from "../index.js"; export interface TemplatesItem { /** The timestamp when the template was updated. */ - dateUpdated?: Date | null; - /** Name of the template */ + updatedAt?: Date | null; + /** Name of the template. */ name: string; - /** Description of the template */ + /** Description of the template. */ description: string; - /** Unique key for the template */ + /** Instructions or context for all template sections. */ + additionalInstructions?: string | null; + /** Unique key for the template. */ key: string; /** Status of the template. */ status: string; - /** List of sections included in the template */ + documentationMode?: Corti.TemplatesDocumentationModeEnum; + /** List of sections included in the template. */ templateSections: Corti.TemplatesSectionSorted[]; - /** Available translations for the template */ + /** Available translations for the template. */ translations: Corti.TemplatesTranslation[]; } diff --git a/src/api/types/TemplatesSection.ts b/src/api/types/TemplatesSection.ts index 89e76543..2c65e619 100644 --- a/src/api/types/TemplatesSection.ts +++ b/src/api/types/TemplatesSection.ts @@ -6,19 +6,26 @@ import * as Corti from "../index.js"; export interface TemplatesSection { /** The timestamp when the section was updated. */ - dateUpdated?: Date | null; - /** Name of the section */ + updatedAt?: Date | null; + /** Name of the section. */ name: string; - /** Alternate names for the section */ - alternateNames?: string[] | null; - /** Unique key for the section */ + /** Alternate name for the section. Not used by LLM response. */ + alternateName?: string; + /** Unique key for the section. */ key: string; - /** Description of the section */ + /** Description of the section. */ description: string; - /** Default writing style for the section */ + /** Default writing style for the section. */ defaultWritingStyle: Corti.TemplatesWritingStyle; - /** Type of section */ - sectionType: string; - /** Available translations for the section */ + /** Default format rule for the section. */ + defaultFormatRule?: Corti.TemplatesFormatRule; + /** Additional instructions or context for the section. */ + additionalInstructions?: string; + /** Used to guide input assignment in documentationMode: routed_parallel, and for section generation. */ + content?: string; + documentationMode?: Corti.TemplatesDocumentationModeEnum; + /** Type of section. */ + type: string; + /** Available translations for the section. */ translations: Corti.TemplatesSectionTranslation[]; } diff --git a/src/api/types/TemplatesSectionSorted.ts b/src/api/types/TemplatesSectionSorted.ts index c33923e6..e99b4771 100644 --- a/src/api/types/TemplatesSectionSorted.ts +++ b/src/api/types/TemplatesSectionSorted.ts @@ -5,8 +5,8 @@ import * as Corti from "../index.js"; export interface TemplatesSectionSorted { - /** Sort order of the section within the template */ + /** Sort order of the section within the template. */ sort: number; - /** The section details */ - sectionsId: Corti.TemplatesSection; + /** The section details. */ + section: Corti.TemplatesSection; } diff --git a/src/api/types/TemplatesSectionTranslation.ts b/src/api/types/TemplatesSectionTranslation.ts index 74b428e3..6a364605 100644 --- a/src/api/types/TemplatesSectionTranslation.ts +++ b/src/api/types/TemplatesSectionTranslation.ts @@ -3,10 +3,10 @@ */ export interface TemplatesSectionTranslation { - /** Language identifier */ - languagesId: string; - /** Localized name */ + /** Language code. */ + languageId: string; + /** Localized name. */ name?: string | null; - /** Localized description */ + /** Localized description. */ description?: string | null; } diff --git a/src/api/types/TemplatesTranslation.ts b/src/api/types/TemplatesTranslation.ts index 74ba3752..d50ea0c5 100644 --- a/src/api/types/TemplatesTranslation.ts +++ b/src/api/types/TemplatesTranslation.ts @@ -3,10 +3,10 @@ */ export interface TemplatesTranslation { - /** Language identifier */ - languagesId: string; - /** Localized name */ + /** Language code. */ + languageId: string; + /** Localized name. */ name?: string; - /** Localized description */ + /** Localized description. */ description?: string; } diff --git a/src/api/types/TemplatesWritingStyle.ts b/src/api/types/TemplatesWritingStyle.ts index 515ef98b..b962ad5d 100644 --- a/src/api/types/TemplatesWritingStyle.ts +++ b/src/api/types/TemplatesWritingStyle.ts @@ -3,6 +3,6 @@ */ export interface TemplatesWritingStyle { - /** Name of the writing style */ + /** Name of the writing style. */ name: string; } diff --git a/src/api/types/TranscribeConfig.ts b/src/api/types/TranscribeConfig.ts index 6ceb3a6b..6d96b492 100644 --- a/src/api/types/TranscribeConfig.ts +++ b/src/api/types/TranscribeConfig.ts @@ -15,4 +15,6 @@ export interface TranscribeConfig { automaticPunctuation?: boolean; /** Commands that should be registered and detected */ commands?: Corti.TranscribeCommand[]; + /** Formatting preferences */ + formatting?: Corti.TranscribeFormatting[]; } diff --git a/src/api/types/TranscribeFormatting.ts b/src/api/types/TranscribeFormatting.ts new file mode 100644 index 00000000..1dea11e8 --- /dev/null +++ b/src/api/types/TranscribeFormatting.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Corti from "../index.js"; + +export interface TranscribeFormatting { + /** Formatting for dates. */ + dates?: Corti.TranscribeFormattingDates; + /** Formatting for times. */ + times?: Corti.TranscribeFormattingTimes; + /** Formatting for numbers. */ + numbers?: Corti.TranscribeFormattingNumbers; + /** Formatting for measurements. */ + measurements?: Corti.TranscribeFormattingMeasurements; + /** Formatting for numeric ranges. */ + numericRanges?: Corti.TranscribeFormattingNumericRanges; + /** Formatting for ordinals. */ + ordinals?: Corti.TranscribeFormattingOrdinals; +} diff --git a/src/api/types/TranscribeFormattingDates.ts b/src/api/types/TranscribeFormattingDates.ts new file mode 100644 index 00000000..73af2aaa --- /dev/null +++ b/src/api/types/TranscribeFormattingDates.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Formatting for dates. + */ +export type TranscribeFormattingDates = "as_dictated" | "eu_slash" | "iso_compact" | "long_text" | "us_slash"; +export const TranscribeFormattingDates = { + AsDictated: "as_dictated", + EuSlash: "eu_slash", + IsoCompact: "iso_compact", + LongText: "long_text", + UsSlash: "us_slash", +} as const; diff --git a/src/api/types/TranscribeFormattingMeasurements.ts b/src/api/types/TranscribeFormattingMeasurements.ts new file mode 100644 index 00000000..351f5de8 --- /dev/null +++ b/src/api/types/TranscribeFormattingMeasurements.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Formatting for measurements. + */ +export type TranscribeFormattingMeasurements = "abbreviated" | "as_dictated"; +export const TranscribeFormattingMeasurements = { + Abbreviated: "abbreviated", + AsDictated: "as_dictated", +} as const; diff --git a/src/api/types/TranscribeFormattingNumbers.ts b/src/api/types/TranscribeFormattingNumbers.ts new file mode 100644 index 00000000..110b0934 --- /dev/null +++ b/src/api/types/TranscribeFormattingNumbers.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Formatting for numbers. + */ +export type TranscribeFormattingNumbers = "as_dictated" | "numerals" | "numerals_above_nine"; +export const TranscribeFormattingNumbers = { + AsDictated: "as_dictated", + Numerals: "numerals", + NumeralsAboveNine: "numerals_above_nine", +} as const; diff --git a/src/api/types/TranscribeFormattingNumericRanges.ts b/src/api/types/TranscribeFormattingNumericRanges.ts new file mode 100644 index 00000000..917fe792 --- /dev/null +++ b/src/api/types/TranscribeFormattingNumericRanges.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Formatting for numeric ranges. + */ +export type TranscribeFormattingNumericRanges = "as_dictated" | "numerals"; +export const TranscribeFormattingNumericRanges = { + AsDictated: "as_dictated", + Numerals: "numerals", +} as const; diff --git a/src/api/types/TranscribeFormattingOrdinals.ts b/src/api/types/TranscribeFormattingOrdinals.ts new file mode 100644 index 00000000..be5557e4 --- /dev/null +++ b/src/api/types/TranscribeFormattingOrdinals.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Formatting for ordinals. + */ +export type TranscribeFormattingOrdinals = "as_dictated" | "numerals"; +export const TranscribeFormattingOrdinals = { + AsDictated: "as_dictated", + Numerals: "numerals", +} as const; diff --git a/src/api/types/TranscribeFormattingTimes.ts b/src/api/types/TranscribeFormattingTimes.ts new file mode 100644 index 00000000..0a8aaa78 --- /dev/null +++ b/src/api/types/TranscribeFormattingTimes.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Formatting for times. + */ +export type TranscribeFormattingTimes = "as_dictated" | "h12" | "h24"; +export const TranscribeFormattingTimes = { + AsDictated: "as_dictated", + H12: "h12", + H24: "h24", +} as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index a8ae8f54..62fdd5b2 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -3,8 +3,10 @@ export * from "./DocumentsContextWithFacts.js"; export * from "./DocumentsContextWithTranscript.js"; export * from "./DocumentsContextWithString.js"; export * from "./DocumentsSection.js"; +export * from "./DocumentsSectionOverride.js"; export * from "./DocumentsTemplate.js"; export * from "./DocumentsTemplateWithSectionKeys.js"; +export * from "./DocumentsTemplateWithSections.js"; export * from "./InteractionsEncounterCreateRequest.js"; export * from "./InteractionsEncounterUpdateRequest.js"; export * from "./InteractionsEncounterResponse.js"; @@ -49,6 +51,7 @@ export * from "./TranscriptsListItem.js"; export * from "./TranscriptsData.js"; export * from "./TemplatesSection.js"; export * from "./CommonSortingDirectionEnum.js"; +export * from "./TemplatesDocumentationModeEnum.js"; export * from "./TemplatesItem.js"; export * from "./TemplatesSectionSorted.js"; export * from "./CommonTranscriptRequest.js"; @@ -61,6 +64,7 @@ export * from "./InteractionsGenderEnum.js"; export * from "./CommonSourceEnum.js"; export * from "./TranscriptsParticipantRoleEnum.js"; export * from "./TemplatesWritingStyle.js"; +export * from "./TemplatesFormatRule.js"; export * from "./TemplatesSectionTranslation.js"; export * from "./TemplatesTranslation.js"; export * from "./StreamConfigMessage.js"; @@ -104,6 +108,13 @@ export * from "./TranscribeTranscriptData.js"; export * from "./TranscribeCommandData.js"; export * from "./TranscribeTranscriptMessage.js"; export * from "./TranscribeCommandMessage.js"; +export * from "./TranscribeFormattingDates.js"; +export * from "./TranscribeFormattingTimes.js"; +export * from "./TranscribeFormattingNumbers.js"; +export * from "./TranscribeFormattingMeasurements.js"; +export * from "./TranscribeFormattingNumericRanges.js"; +export * from "./TranscribeFormattingOrdinals.js"; +export * from "./TranscribeFormatting.js"; export * from "./AgentsTaskStatusState.js"; export * from "./AgentsTaskStatus.js"; export * from "./AgentsTextPart.js"; diff --git a/src/serialization/types/DocumentsCreateRequestWithTemplate.ts b/src/serialization/types/DocumentsCreateRequestWithTemplate.ts index eb5aace2..9de28248 100644 --- a/src/serialization/types/DocumentsCreateRequestWithTemplate.ts +++ b/src/serialization/types/DocumentsCreateRequestWithTemplate.ts @@ -7,6 +7,7 @@ import * as Corti from "../../api/index.js"; import * as core from "../../core/index.js"; import { DocumentsContext } from "./DocumentsContext.js"; import { DocumentsTemplate } from "./DocumentsTemplate.js"; +import { TemplatesDocumentationModeEnum } from "./TemplatesDocumentationModeEnum.js"; export const DocumentsCreateRequestWithTemplate: core.serialization.ObjectSchema< serializers.DocumentsCreateRequestWithTemplate.Raw, @@ -17,6 +18,7 @@ export const DocumentsCreateRequestWithTemplate: core.serialization.ObjectSchema name: core.serialization.string().optional(), outputLanguage: core.serialization.string(), disableGuardrails: core.serialization.boolean().optional(), + documentationMode: TemplatesDocumentationModeEnum.optional(), }); export declare namespace DocumentsCreateRequestWithTemplate { @@ -26,5 +28,6 @@ export declare namespace DocumentsCreateRequestWithTemplate { name?: string | null; outputLanguage: string; disableGuardrails?: boolean | null; + documentationMode?: TemplatesDocumentationModeEnum.Raw | null; } } diff --git a/src/serialization/types/DocumentsCreateRequestWithTemplateKey.ts b/src/serialization/types/DocumentsCreateRequestWithTemplateKey.ts index 6be0e3f3..38b27598 100644 --- a/src/serialization/types/DocumentsCreateRequestWithTemplateKey.ts +++ b/src/serialization/types/DocumentsCreateRequestWithTemplateKey.ts @@ -6,6 +6,7 @@ import * as serializers from "../index.js"; import * as Corti from "../../api/index.js"; import * as core from "../../core/index.js"; import { DocumentsContext } from "./DocumentsContext.js"; +import { TemplatesDocumentationModeEnum } from "./TemplatesDocumentationModeEnum.js"; export const DocumentsCreateRequestWithTemplateKey: core.serialization.ObjectSchema< serializers.DocumentsCreateRequestWithTemplateKey.Raw, @@ -16,6 +17,7 @@ export const DocumentsCreateRequestWithTemplateKey: core.serialization.ObjectSch name: core.serialization.string().optional(), outputLanguage: core.serialization.string(), disableGuardrails: core.serialization.boolean().optional(), + documentationMode: TemplatesDocumentationModeEnum.optional(), }); export declare namespace DocumentsCreateRequestWithTemplateKey { @@ -25,5 +27,6 @@ export declare namespace DocumentsCreateRequestWithTemplateKey { name?: string | null; outputLanguage: string; disableGuardrails?: boolean | null; + documentationMode?: TemplatesDocumentationModeEnum.Raw | null; } } diff --git a/src/serialization/types/DocumentsSectionOverride.ts b/src/serialization/types/DocumentsSectionOverride.ts new file mode 100644 index 00000000..54f079ff --- /dev/null +++ b/src/serialization/types/DocumentsSectionOverride.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const DocumentsSectionOverride: core.serialization.ObjectSchema< + serializers.DocumentsSectionOverride.Raw, + Corti.DocumentsSectionOverride +> = core.serialization.object({ + key: core.serialization.string(), + nameOverride: core.serialization.string().optional(), + writingStyleOverride: core.serialization.string().optional(), + formatRuleOverride: core.serialization.string().optional(), + additionalInstructionsOverride: core.serialization.string().optional(), + contentOverride: core.serialization.string().optional(), +}); + +export declare namespace DocumentsSectionOverride { + export interface Raw { + key: string; + nameOverride?: string | null; + writingStyleOverride?: string | null; + formatRuleOverride?: string | null; + additionalInstructionsOverride?: string | null; + contentOverride?: string | null; + } +} diff --git a/src/serialization/types/DocumentsTemplate.ts b/src/serialization/types/DocumentsTemplate.ts index ec097bcc..ebd6c6ab 100644 --- a/src/serialization/types/DocumentsTemplate.ts +++ b/src/serialization/types/DocumentsTemplate.ts @@ -5,13 +5,12 @@ import * as serializers from "../index.js"; import * as Corti from "../../api/index.js"; import * as core from "../../core/index.js"; +import { DocumentsTemplateWithSections } from "./DocumentsTemplateWithSections.js"; import { DocumentsTemplateWithSectionKeys } from "./DocumentsTemplateWithSectionKeys.js"; -export const DocumentsTemplate: core.serialization.ObjectSchema< - serializers.DocumentsTemplate.Raw, - Corti.DocumentsTemplate -> = DocumentsTemplateWithSectionKeys; +export const DocumentsTemplate: core.serialization.Schema = + core.serialization.undiscriminatedUnion([DocumentsTemplateWithSections, DocumentsTemplateWithSectionKeys]); export declare namespace DocumentsTemplate { - export type Raw = DocumentsTemplateWithSectionKeys.Raw; + export type Raw = DocumentsTemplateWithSections.Raw | DocumentsTemplateWithSectionKeys.Raw; } diff --git a/src/serialization/types/DocumentsTemplateWithSections.ts b/src/serialization/types/DocumentsTemplateWithSections.ts new file mode 100644 index 00000000..48fe22b3 --- /dev/null +++ b/src/serialization/types/DocumentsTemplateWithSections.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import { DocumentsSectionOverride } from "./DocumentsSectionOverride.js"; + +export const DocumentsTemplateWithSections: core.serialization.ObjectSchema< + serializers.DocumentsTemplateWithSections.Raw, + Corti.DocumentsTemplateWithSections +> = core.serialization.object({ + sections: core.serialization.list(DocumentsSectionOverride), + description: core.serialization.string().optional(), + additionalInstructionsOverride: core.serialization.string().optional(), +}); + +export declare namespace DocumentsTemplateWithSections { + export interface Raw { + sections: DocumentsSectionOverride.Raw[]; + description?: string | null; + additionalInstructionsOverride?: string | null; + } +} diff --git a/src/serialization/types/FactsBatchUpdateInput.ts b/src/serialization/types/FactsBatchUpdateInput.ts index 19586567..fc30a5fc 100644 --- a/src/serialization/types/FactsBatchUpdateInput.ts +++ b/src/serialization/types/FactsBatchUpdateInput.ts @@ -5,13 +5,12 @@ import * as serializers from "../index.js"; import * as Corti from "../../api/index.js"; import * as core from "../../core/index.js"; -import { Uuid } from "./Uuid.js"; export const FactsBatchUpdateInput: core.serialization.ObjectSchema< serializers.FactsBatchUpdateInput.Raw, Corti.FactsBatchUpdateInput > = core.serialization.object({ - factId: Uuid, + factId: core.serialization.string(), isDiscarded: core.serialization.boolean().optional(), text: core.serialization.string().optional(), group: core.serialization.string().optional(), @@ -19,7 +18,7 @@ export const FactsBatchUpdateInput: core.serialization.ObjectSchema< export declare namespace FactsBatchUpdateInput { export interface Raw { - factId: Uuid.Raw; + factId: string; isDiscarded?: boolean | null; text?: string | null; group?: string | null; diff --git a/src/serialization/types/FactsBatchUpdateItem.ts b/src/serialization/types/FactsBatchUpdateItem.ts index 036635b8..bd339a35 100644 --- a/src/serialization/types/FactsBatchUpdateItem.ts +++ b/src/serialization/types/FactsBatchUpdateItem.ts @@ -12,7 +12,7 @@ export const FactsBatchUpdateItem: core.serialization.ObjectSchema< serializers.FactsBatchUpdateItem.Raw, Corti.FactsBatchUpdateItem > = core.serialization.object({ - id: Uuid, + id: core.serialization.string(), text: core.serialization.string(), group: core.serialization.string(), groupId: Uuid, @@ -24,7 +24,7 @@ export const FactsBatchUpdateItem: core.serialization.ObjectSchema< export declare namespace FactsBatchUpdateItem { export interface Raw { - id: Uuid.Raw; + id: string; text: string; group: string; groupId: Uuid.Raw; diff --git a/src/serialization/types/FactsCreateItem.ts b/src/serialization/types/FactsCreateItem.ts index 619cb583..a9c750c2 100644 --- a/src/serialization/types/FactsCreateItem.ts +++ b/src/serialization/types/FactsCreateItem.ts @@ -10,7 +10,7 @@ import { CommonSourceEnum } from "./CommonSourceEnum.js"; export const FactsCreateItem: core.serialization.ObjectSchema = core.serialization.object({ - id: Uuid.optional(), + id: core.serialization.string().optional(), text: core.serialization.string().optional(), group: core.serialization.string().optional(), groupId: Uuid.optional(), @@ -21,7 +21,7 @@ export const FactsCreateItem: core.serialization.ObjectSchema = core.serialization.object({ - id: Uuid.optional(), + id: core.serialization.string().optional(), text: core.serialization.string().optional(), group: core.serialization.string().optional(), groupId: Uuid.optional(), @@ -24,7 +24,7 @@ export const FactsListItem: core.serialization.ObjectSchema = core.serialization.object({ - id: Uuid, + id: core.serialization.string(), text: core.serialization.string(), group: core.serialization.string(), groupId: Uuid, @@ -24,7 +24,7 @@ export const FactsUpdateResponse: core.serialization.ObjectSchema< export declare namespace FactsUpdateResponse { export interface Raw { - id: Uuid.Raw; + id: string; text: string; group: string; groupId: Uuid.Raw; diff --git a/src/serialization/types/TemplatesDocumentationModeEnum.ts b/src/serialization/types/TemplatesDocumentationModeEnum.ts new file mode 100644 index 00000000..653866ae --- /dev/null +++ b/src/serialization/types/TemplatesDocumentationModeEnum.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TemplatesDocumentationModeEnum: core.serialization.Schema< + serializers.TemplatesDocumentationModeEnum.Raw, + Corti.TemplatesDocumentationModeEnum +> = core.serialization.enum_(["global_sequential", "routed_parallel"]); + +export declare namespace TemplatesDocumentationModeEnum { + export type Raw = "global_sequential" | "routed_parallel"; +} diff --git a/src/serialization/types/TemplatesFormatRule.ts b/src/serialization/types/TemplatesFormatRule.ts new file mode 100644 index 00000000..492c972b --- /dev/null +++ b/src/serialization/types/TemplatesFormatRule.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TemplatesFormatRule: core.serialization.ObjectSchema< + serializers.TemplatesFormatRule.Raw, + Corti.TemplatesFormatRule +> = core.serialization.object({ + name: core.serialization.string().optionalNullable(), +}); + +export declare namespace TemplatesFormatRule { + export interface Raw { + name?: (string | null) | null; + } +} diff --git a/src/serialization/types/TemplatesItem.ts b/src/serialization/types/TemplatesItem.ts index 35e6350d..7c84b2f9 100644 --- a/src/serialization/types/TemplatesItem.ts +++ b/src/serialization/types/TemplatesItem.ts @@ -5,31 +5,33 @@ import * as serializers from "../index.js"; import * as Corti from "../../api/index.js"; import * as core from "../../core/index.js"; +import { TemplatesDocumentationModeEnum } from "./TemplatesDocumentationModeEnum.js"; import { TemplatesSectionSorted } from "./TemplatesSectionSorted.js"; import { TemplatesTranslation } from "./TemplatesTranslation.js"; export const TemplatesItem: core.serialization.ObjectSchema = core.serialization.object({ - dateUpdated: core.serialization.property("date_updated", core.serialization.date().optionalNullable()), + updatedAt: core.serialization.date().optionalNullable(), name: core.serialization.string(), description: core.serialization.string(), + additionalInstructions: core.serialization.string().optionalNullable(), key: core.serialization.string(), status: core.serialization.string(), - templateSections: core.serialization.property( - "template_sections", - core.serialization.list(TemplatesSectionSorted), - ), + documentationMode: TemplatesDocumentationModeEnum.optional(), + templateSections: core.serialization.list(TemplatesSectionSorted), translations: core.serialization.list(TemplatesTranslation), }); export declare namespace TemplatesItem { export interface Raw { - date_updated?: (string | null) | null; + updatedAt?: (string | null) | null; name: string; description: string; + additionalInstructions?: (string | null) | null; key: string; status: string; - template_sections: TemplatesSectionSorted.Raw[]; + documentationMode?: TemplatesDocumentationModeEnum.Raw | null; + templateSections: TemplatesSectionSorted.Raw[]; translations: TemplatesTranslation.Raw[]; } } diff --git a/src/serialization/types/TemplatesSection.ts b/src/serialization/types/TemplatesSection.ts index 1958c052..31581ea3 100644 --- a/src/serialization/types/TemplatesSection.ts +++ b/src/serialization/types/TemplatesSection.ts @@ -6,34 +6,41 @@ import * as serializers from "../index.js"; import * as Corti from "../../api/index.js"; import * as core from "../../core/index.js"; import { TemplatesWritingStyle } from "./TemplatesWritingStyle.js"; +import { TemplatesFormatRule } from "./TemplatesFormatRule.js"; +import { TemplatesDocumentationModeEnum } from "./TemplatesDocumentationModeEnum.js"; import { TemplatesSectionTranslation } from "./TemplatesSectionTranslation.js"; export const TemplatesSection: core.serialization.ObjectSchema< serializers.TemplatesSection.Raw, Corti.TemplatesSection > = core.serialization.object({ - dateUpdated: core.serialization.property("date_updated", core.serialization.date().optionalNullable()), + updatedAt: core.serialization.date().optionalNullable(), name: core.serialization.string(), - alternateNames: core.serialization.property( - "alternate_names", - core.serialization.list(core.serialization.string()).optionalNullable(), - ), + alternateName: core.serialization.string().optional(), key: core.serialization.string(), description: core.serialization.string(), - defaultWritingStyle: core.serialization.property("default_writing_style", TemplatesWritingStyle), - sectionType: core.serialization.property("section_type", core.serialization.string()), + defaultWritingStyle: TemplatesWritingStyle, + defaultFormatRule: TemplatesFormatRule.optional(), + additionalInstructions: core.serialization.string().optional(), + content: core.serialization.string().optional(), + documentationMode: TemplatesDocumentationModeEnum.optional(), + type: core.serialization.string(), translations: core.serialization.list(TemplatesSectionTranslation), }); export declare namespace TemplatesSection { export interface Raw { - date_updated?: (string | null) | null; + updatedAt?: (string | null) | null; name: string; - alternate_names?: (string[] | null) | null; + alternateName?: string | null; key: string; description: string; - default_writing_style: TemplatesWritingStyle.Raw; - section_type: string; + defaultWritingStyle: TemplatesWritingStyle.Raw; + defaultFormatRule?: TemplatesFormatRule.Raw | null; + additionalInstructions?: string | null; + content?: string | null; + documentationMode?: TemplatesDocumentationModeEnum.Raw | null; + type: string; translations: TemplatesSectionTranslation.Raw[]; } } diff --git a/src/serialization/types/TemplatesSectionSorted.ts b/src/serialization/types/TemplatesSectionSorted.ts index 4cdc91cb..baadf8eb 100644 --- a/src/serialization/types/TemplatesSectionSorted.ts +++ b/src/serialization/types/TemplatesSectionSorted.ts @@ -12,12 +12,12 @@ export const TemplatesSectionSorted: core.serialization.ObjectSchema< Corti.TemplatesSectionSorted > = core.serialization.object({ sort: core.serialization.number(), - sectionsId: core.serialization.property("sections_id", TemplatesSection), + section: TemplatesSection, }); export declare namespace TemplatesSectionSorted { export interface Raw { sort: number; - sections_id: TemplatesSection.Raw; + section: TemplatesSection.Raw; } } diff --git a/src/serialization/types/TemplatesSectionTranslation.ts b/src/serialization/types/TemplatesSectionTranslation.ts index b8c92725..d06b1b29 100644 --- a/src/serialization/types/TemplatesSectionTranslation.ts +++ b/src/serialization/types/TemplatesSectionTranslation.ts @@ -10,14 +10,14 @@ export const TemplatesSectionTranslation: core.serialization.ObjectSchema< serializers.TemplatesSectionTranslation.Raw, Corti.TemplatesSectionTranslation > = core.serialization.object({ - languagesId: core.serialization.property("languages_id", core.serialization.string()), + languageId: core.serialization.string(), name: core.serialization.string().optionalNullable(), description: core.serialization.string().optionalNullable(), }); export declare namespace TemplatesSectionTranslation { export interface Raw { - languages_id: string; + languageId: string; name?: (string | null) | null; description?: (string | null) | null; } diff --git a/src/serialization/types/TemplatesTranslation.ts b/src/serialization/types/TemplatesTranslation.ts index 777549b6..4ff66118 100644 --- a/src/serialization/types/TemplatesTranslation.ts +++ b/src/serialization/types/TemplatesTranslation.ts @@ -10,14 +10,14 @@ export const TemplatesTranslation: core.serialization.ObjectSchema< serializers.TemplatesTranslation.Raw, Corti.TemplatesTranslation > = core.serialization.object({ - languagesId: core.serialization.property("languages_id", core.serialization.string()), + languageId: core.serialization.string(), name: core.serialization.string().optional(), description: core.serialization.string().optional(), }); export declare namespace TemplatesTranslation { export interface Raw { - languages_id: string; + languageId: string; name?: string | null; description?: string | null; } diff --git a/src/serialization/types/TranscribeConfig.ts b/src/serialization/types/TranscribeConfig.ts index f446aa86..ec68cc5e 100644 --- a/src/serialization/types/TranscribeConfig.ts +++ b/src/serialization/types/TranscribeConfig.ts @@ -7,6 +7,7 @@ import * as Corti from "../../api/index.js"; import * as core from "../../core/index.js"; import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.js"; import { TranscribeCommand } from "./TranscribeCommand.js"; +import { TranscribeFormatting } from "./TranscribeFormatting.js"; export const TranscribeConfig: core.serialization.ObjectSchema< serializers.TranscribeConfig.Raw, @@ -17,6 +18,7 @@ export const TranscribeConfig: core.serialization.ObjectSchema< spokenPunctuation: core.serialization.boolean().optional(), automaticPunctuation: core.serialization.boolean().optional(), commands: core.serialization.list(TranscribeCommand).optional(), + formatting: core.serialization.list(TranscribeFormatting).optional(), }); export declare namespace TranscribeConfig { @@ -26,5 +28,6 @@ export declare namespace TranscribeConfig { spokenPunctuation?: boolean | null; automaticPunctuation?: boolean | null; commands?: TranscribeCommand.Raw[] | null; + formatting?: TranscribeFormatting.Raw[] | null; } } diff --git a/src/serialization/types/TranscribeFormatting.ts b/src/serialization/types/TranscribeFormatting.ts new file mode 100644 index 00000000..5eb4737b --- /dev/null +++ b/src/serialization/types/TranscribeFormatting.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; +import { TranscribeFormattingDates } from "./TranscribeFormattingDates.js"; +import { TranscribeFormattingTimes } from "./TranscribeFormattingTimes.js"; +import { TranscribeFormattingNumbers } from "./TranscribeFormattingNumbers.js"; +import { TranscribeFormattingMeasurements } from "./TranscribeFormattingMeasurements.js"; +import { TranscribeFormattingNumericRanges } from "./TranscribeFormattingNumericRanges.js"; +import { TranscribeFormattingOrdinals } from "./TranscribeFormattingOrdinals.js"; + +export const TranscribeFormatting: core.serialization.ObjectSchema< + serializers.TranscribeFormatting.Raw, + Corti.TranscribeFormatting +> = core.serialization.object({ + dates: TranscribeFormattingDates.optional(), + times: TranscribeFormattingTimes.optional(), + numbers: TranscribeFormattingNumbers.optional(), + measurements: TranscribeFormattingMeasurements.optional(), + numericRanges: TranscribeFormattingNumericRanges.optional(), + ordinals: TranscribeFormattingOrdinals.optional(), +}); + +export declare namespace TranscribeFormatting { + export interface Raw { + dates?: TranscribeFormattingDates.Raw | null; + times?: TranscribeFormattingTimes.Raw | null; + numbers?: TranscribeFormattingNumbers.Raw | null; + measurements?: TranscribeFormattingMeasurements.Raw | null; + numericRanges?: TranscribeFormattingNumericRanges.Raw | null; + ordinals?: TranscribeFormattingOrdinals.Raw | null; + } +} diff --git a/src/serialization/types/TranscribeFormattingDates.ts b/src/serialization/types/TranscribeFormattingDates.ts new file mode 100644 index 00000000..3fb4e071 --- /dev/null +++ b/src/serialization/types/TranscribeFormattingDates.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TranscribeFormattingDates: core.serialization.Schema< + serializers.TranscribeFormattingDates.Raw, + Corti.TranscribeFormattingDates +> = core.serialization.enum_(["as_dictated", "eu_slash", "iso_compact", "long_text", "us_slash"]); + +export declare namespace TranscribeFormattingDates { + export type Raw = "as_dictated" | "eu_slash" | "iso_compact" | "long_text" | "us_slash"; +} diff --git a/src/serialization/types/TranscribeFormattingMeasurements.ts b/src/serialization/types/TranscribeFormattingMeasurements.ts new file mode 100644 index 00000000..697745a3 --- /dev/null +++ b/src/serialization/types/TranscribeFormattingMeasurements.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TranscribeFormattingMeasurements: core.serialization.Schema< + serializers.TranscribeFormattingMeasurements.Raw, + Corti.TranscribeFormattingMeasurements +> = core.serialization.enum_(["abbreviated", "as_dictated"]); + +export declare namespace TranscribeFormattingMeasurements { + export type Raw = "abbreviated" | "as_dictated"; +} diff --git a/src/serialization/types/TranscribeFormattingNumbers.ts b/src/serialization/types/TranscribeFormattingNumbers.ts new file mode 100644 index 00000000..5731907c --- /dev/null +++ b/src/serialization/types/TranscribeFormattingNumbers.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TranscribeFormattingNumbers: core.serialization.Schema< + serializers.TranscribeFormattingNumbers.Raw, + Corti.TranscribeFormattingNumbers +> = core.serialization.enum_(["as_dictated", "numerals", "numerals_above_nine"]); + +export declare namespace TranscribeFormattingNumbers { + export type Raw = "as_dictated" | "numerals" | "numerals_above_nine"; +} diff --git a/src/serialization/types/TranscribeFormattingNumericRanges.ts b/src/serialization/types/TranscribeFormattingNumericRanges.ts new file mode 100644 index 00000000..01f59346 --- /dev/null +++ b/src/serialization/types/TranscribeFormattingNumericRanges.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TranscribeFormattingNumericRanges: core.serialization.Schema< + serializers.TranscribeFormattingNumericRanges.Raw, + Corti.TranscribeFormattingNumericRanges +> = core.serialization.enum_(["as_dictated", "numerals"]); + +export declare namespace TranscribeFormattingNumericRanges { + export type Raw = "as_dictated" | "numerals"; +} diff --git a/src/serialization/types/TranscribeFormattingOrdinals.ts b/src/serialization/types/TranscribeFormattingOrdinals.ts new file mode 100644 index 00000000..a2077405 --- /dev/null +++ b/src/serialization/types/TranscribeFormattingOrdinals.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TranscribeFormattingOrdinals: core.serialization.Schema< + serializers.TranscribeFormattingOrdinals.Raw, + Corti.TranscribeFormattingOrdinals +> = core.serialization.enum_(["as_dictated", "numerals"]); + +export declare namespace TranscribeFormattingOrdinals { + export type Raw = "as_dictated" | "numerals"; +} diff --git a/src/serialization/types/TranscribeFormattingTimes.ts b/src/serialization/types/TranscribeFormattingTimes.ts new file mode 100644 index 00000000..76f56cac --- /dev/null +++ b/src/serialization/types/TranscribeFormattingTimes.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Corti from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TranscribeFormattingTimes: core.serialization.Schema< + serializers.TranscribeFormattingTimes.Raw, + Corti.TranscribeFormattingTimes +> = core.serialization.enum_(["as_dictated", "h12", "h24"]); + +export declare namespace TranscribeFormattingTimes { + export type Raw = "as_dictated" | "h12" | "h24"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index a8ae8f54..62fdd5b2 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -3,8 +3,10 @@ export * from "./DocumentsContextWithFacts.js"; export * from "./DocumentsContextWithTranscript.js"; export * from "./DocumentsContextWithString.js"; export * from "./DocumentsSection.js"; +export * from "./DocumentsSectionOverride.js"; export * from "./DocumentsTemplate.js"; export * from "./DocumentsTemplateWithSectionKeys.js"; +export * from "./DocumentsTemplateWithSections.js"; export * from "./InteractionsEncounterCreateRequest.js"; export * from "./InteractionsEncounterUpdateRequest.js"; export * from "./InteractionsEncounterResponse.js"; @@ -49,6 +51,7 @@ export * from "./TranscriptsListItem.js"; export * from "./TranscriptsData.js"; export * from "./TemplatesSection.js"; export * from "./CommonSortingDirectionEnum.js"; +export * from "./TemplatesDocumentationModeEnum.js"; export * from "./TemplatesItem.js"; export * from "./TemplatesSectionSorted.js"; export * from "./CommonTranscriptRequest.js"; @@ -61,6 +64,7 @@ export * from "./InteractionsGenderEnum.js"; export * from "./CommonSourceEnum.js"; export * from "./TranscriptsParticipantRoleEnum.js"; export * from "./TemplatesWritingStyle.js"; +export * from "./TemplatesFormatRule.js"; export * from "./TemplatesSectionTranslation.js"; export * from "./TemplatesTranslation.js"; export * from "./StreamConfigMessage.js"; @@ -104,6 +108,13 @@ export * from "./TranscribeTranscriptData.js"; export * from "./TranscribeCommandData.js"; export * from "./TranscribeTranscriptMessage.js"; export * from "./TranscribeCommandMessage.js"; +export * from "./TranscribeFormattingDates.js"; +export * from "./TranscribeFormattingTimes.js"; +export * from "./TranscribeFormattingNumbers.js"; +export * from "./TranscribeFormattingMeasurements.js"; +export * from "./TranscribeFormattingNumericRanges.js"; +export * from "./TranscribeFormattingOrdinals.js"; +export * from "./TranscribeFormatting.js"; export * from "./AgentsTaskStatusState.js"; export * from "./AgentsTaskStatus.js"; export * from "./AgentsTextPart.js"; diff --git a/src/version.ts b/src/version.ts index 5bcdffc5..7a2591ce 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.8.0"; +export const SDK_VERSION = "0.9.0-rc"; diff --git a/tests/custom/testUtils.ts b/tests/custom/testUtils.ts index ec7ef108..bf295a5b 100644 --- a/tests/custom/testUtils.ts +++ b/tests/custom/testUtils.ts @@ -128,7 +128,7 @@ export async function getValidTemplateKeyAndLanguage( throw new Error("No templates available for testing"); } - const outputLanguage = first.translations?.[0]?.languagesId || "en"; + const outputLanguage = first.translations?.[0]?.languageId || "en"; return { templateKey: first.key, outputLanguage }; } diff --git a/yarn.lock b/yarn.lock index ba965023..88d177dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1071,9 +1071,9 @@ balanced-match@^1.0.0: integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== baseline-browser-mapping@^2.9.0: - version "2.9.8" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.8.tgz#04fb5c10ff9c7a1b04ac08cfdfc3b10942a8ac72" - integrity sha512-Y1fOuNDowLfgKOypdc9SPABfoWXuZHBOyCS4cD52IeZBhr4Md6CLLs6atcxVrzRmQ06E7hSlm5bHHApPKR/byA== + version "2.9.13" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.13.tgz#e1d39147f6a7492438131476026e705d816b10cb" + integrity sha512-WhtvB2NG2wjr04+h77sg3klAIwrgOqnjS49GGudnUPGFFgg7G17y7Qecqp+2Dr5kUDxNRBca0SK7cG8JwzkWDQ== brace-expansion@^1.1.7: version "1.1.12" @@ -1144,9 +1144,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001759: - version "1.0.30001760" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001760.tgz#bdd1960fafedf8d5f04ff16e81460506ff9b798f" - integrity sha512-7AAMPcueWELt1p3mi13HR/LHH0TJLT11cnwDJEs3xA4+CK/PLKeO9Kl1oru24htkyUKtkGCvAx4ohB0Ttry8Dw== + version "1.0.30001763" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001763.tgz#9397446dd110b1aeadb0df249c41b2ece7f90f09" + integrity sha512-mh/dGtq56uN98LlNX9qdbKnzINhX0QzhiWBFEkFfsFO4QyCvL8YegrJAazCwXIeqkIob8BlZPGM3xdnY+sgmvQ== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1300,9 +1300,9 @@ decimal.js@^10.4.2: integrity sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg== dedent@^1.0.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.7.0.tgz#c1f9445335f0175a96587be245a282ff451446ca" - integrity sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ== + version "1.7.1" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.7.1.tgz#364661eea3d73f3faba7089214420ec2f8f13e15" + integrity sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg== deepmerge@^4.2.2: version "4.3.1" @@ -2403,9 +2403,9 @@ ms@^2.1.3: integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== msw@^2.8.4: - version "2.12.4" - resolved "https://registry.yarnpkg.com/msw/-/msw-2.12.4.tgz#9a7045a6ef831826f57f4050552ca41dd21fe0d4" - integrity sha512-rHNiVfTyKhzc0EjoXUBVGteNKBevdjOlVC6GlIRXpy+/3LHEIGRovnB5WPjcvmNODVQ1TNFnoa7wsGbd0V3epg== + version "2.12.7" + resolved "https://registry.yarnpkg.com/msw/-/msw-2.12.7.tgz#755fa4a0df51133bf76ebc9b7d4bdcc4355f0c8e" + integrity sha512-retd5i3xCZDVWMYjHEVuKTmhqY8lSsxujjVrZiGbbdoxxIBg5S7rCuYy/YQpfrTYIxpd/o0Kyb/3H+1udBMoYg== dependencies: "@inquirer/confirm" "^5.0.0" "@mswjs/interceptors" "^0.40.0" @@ -3072,9 +3072,9 @@ walker@^1.0.8: makeerror "1.0.12" watchpack@^2.4.4: - version "2.4.4" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.4.tgz#473bda72f0850453da6425081ea46fc0d7602947" - integrity sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA== + version "2.5.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.5.0.tgz#fa115d5ccaa4bf3aa594f586257c0bc4768939fd" + integrity sha512-e6vZvY6xboSwLz2GD36c16+O/2Z6fKvIf4pOXptw2rY9MVwE/TXc6RGqxD3I3x0a28lwBY7DE+76uTPSsBrrCA== dependencies: glob-to-regexp "^0.4.1" graceful-fs "^4.1.2" @@ -3090,9 +3090,9 @@ webpack-sources@^3.3.3: integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== webpack@^5.97.1: - version "5.104.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.104.0.tgz#2b919a4f2526cdc42731142ae295019264fcfb76" - integrity sha512-5DeICTX8BVgNp6afSPYXAFjskIgWGlygQH58bcozPOXgo2r/6xx39Y1+cULZ3gTxUYQP88jmwLj2anu4Xaq84g== + version "5.104.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.104.1.tgz#94bd41eb5dbf06e93be165ba8be41b8260d4fb1a" + integrity sha512-Qphch25abbMNtekmEGJmeRUhLDbe+QfiWTiqpKYkpCOWY64v9eyl+KRRLmqOFA2AvKPpc9DC6+u2n76tQLBoaA== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -3184,9 +3184,9 @@ write-file-atomic@^4.0.2: signal-exit "^3.0.7" ws@^8.11.0, ws@^8.16.0: - version "8.18.3" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.3.tgz#b56b88abffde62791c639170400c93dcb0c95472" - integrity sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg== + version "8.19.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.19.0.tgz#ddc2bdfa5b9ad860204f5a72a4863a8895fd8c8b" + integrity sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg== xml-name-validator@^4.0.0: version "4.0.0"