Skip to content

Commit 1be8a30

Browse files
SDK regeneration
1 parent 1ce92da commit 1be8a30

86 files changed

Lines changed: 789 additions & 111 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "5.93.0",
2+
"cliVersion": "5.113.1",
33
"generatorName": "fernapi/fern-typescript-node-sdk",
44
"generatorVersion": "3.54.0",
55
"generatorConfig": {
@@ -34,6 +34,6 @@
3434
}
3535
}
3636
},
37-
"originGitCommit": "c993f464ca70e6cae3f0b9700d2b6e2109527ba4",
37+
"originGitCommit": "2c4b6c45053350e3b01ac13b31832f5799fe6a05",
3838
"sdkVersion": "0.0.0-dev"
3939
}

src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export interface AgenticAgentsCreateRequest {
6161
systemPrompt?: string;
6262
/** Tenant default if omitted. */
6363
model?: string;
64+
/** Caps the orchestrator's ReAct loop iterations per run. Server default 10 if omitted. */
65+
maxLoops?: number;
6466
visibility?: Corti.AgentsVisibility;
6567
lifecycle?: Corti.AgentsLifecycle;
6668
/** Connectors to attach at creation. Defaults to an empty array. */

src/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export interface AgenticAgentsPatchRequest {
2121
systemPrompt?: string | null;
2222
/** New model identifier; `null` falls back to the tenant default. */
2323
model?: string | null;
24+
/** New cap on the orchestrator's ReAct loop iterations per run. Omitted leaves the current value unchanged; there is no `null`-reset — send 10 to restore the default. */
25+
maxLoops?: number;
2426
visibility?: Corti.AgentsVisibility;
2527
lifecycle?: Corti.AgentsLifecycle;
2628
/** Replacement connector list; `null` clears connectors. */

src/api/resources/codes/client/Client.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ export class CodesClient {
5151
* text: "Patient presents with uncontrolled type 2 diabetes."
5252
* }],
5353
* filter: {
54-
* include: ["E11"],
55-
* exclude: ["exclude"]
54+
* include: [{
55+
* property: "code",
56+
* op: "is-a",
57+
* value: ["E11"]
58+
* }]
5659
* }
5760
* })
5861
*/

src/api/resources/codes/client/requests/CodesGeneralPredictRequest.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ import type * as Corti from "../../../../index.js";
2020
* text: "Patient presents with uncontrolled type 2 diabetes."
2121
* }],
2222
* filter: {
23-
* include: ["E11"],
24-
* exclude: ["exclude"]
23+
* include: [{
24+
* property: "code",
25+
* op: "is-a",
26+
* value: ["E11"]
27+
* }]
2528
* }
2629
* }
2730
*/

src/api/resources/documents/resources/classic/client/Client.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export class ClassicClient {
2727
*
2828
* List Documents
2929
*
30+
* <Note>
31+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
32+
* </Note>
33+
*
3034
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
3135
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
3236
*
@@ -129,6 +133,10 @@ export class ClassicClient {
129133
*
130134
* This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
131135
*
136+
* <Note>
137+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
138+
* </Note>
139+
*
132140
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
133141
* @param {Corti.DocumentsCreateRequest} request
134142
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -254,6 +262,10 @@ export class ClassicClient {
254262
*
255263
* Get Document.
256264
*
265+
* <Note>
266+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
267+
* </Note>
268+
*
257269
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
258270
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
259271
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -362,6 +374,10 @@ export class ClassicClient {
362374
/**
363375
* @deprecated
364376
*
377+
* <Note>
378+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
379+
* </Note>
380+
*
365381
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
366382
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
367383
* @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -461,6 +477,10 @@ export class ClassicClient {
461477
/**
462478
* @deprecated
463479
*
480+
* <Note>
481+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
482+
* </Note>
483+
*
464484
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
465485
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
466486
* @param {Corti.documents.DocumentsUpdateRequest} request

src/api/resources/templates/client/Client.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ export class TemplatesClient {
2323
}
2424

2525
/**
26+
* @deprecated
27+
*
2628
* Retrieves a list of template sections with optional filters for organization and language.
2729
*
30+
* <Note>
31+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
32+
* </Note>
33+
*
2834
* @param {Corti.TemplatesSectionListRequest} request
2935
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
3036
*
@@ -113,8 +119,14 @@ export class TemplatesClient {
113119
}
114120

115121
/**
122+
* @deprecated
123+
*
116124
* Retrieves a list of templates with optional filters for organization, language, and status.
117125
*
126+
* <Note>
127+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
128+
* </Note>
129+
*
118130
* @param {Corti.TemplatesListRequest} request
119131
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
120132
*
@@ -204,8 +216,14 @@ export class TemplatesClient {
204216
}
205217

206218
/**
219+
* @deprecated
220+
*
207221
* Retrieves template by key.
208222
*
223+
* <Note>
224+
* This endpoint is deprecated in favour of the corresponding GUIDED endpoint. See the [deprecation notice](/release-notes/changelog-upcoming#2026-08-21) for more details and migration guidance.
225+
* </Note>
226+
*
209227
* @param {string} key - The key of the template
210228
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
211229
*

src/api/resources/transcripts/client/Client.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class TranscriptsClient {
2323
}
2424

2525
/**
26-
* Retrieves a list of transcripts for a given interaction.
26+
* Retrieves a list of transcripts for a given interaction. Transcripts are ordered based on their creation time. Default ordering (desc) will return the most recent transcript first in the list. Use query parameter to define the order of the list (`asc` for ascending and `desc` for descending).
2727
*
2828
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
2929
* @param {Corti.TranscriptsListRequest} request
@@ -51,9 +51,16 @@ export class TranscriptsClient {
5151
request: Corti.TranscriptsListRequest = {},
5252
requestOptions?: TranscriptsClient.RequestOptions,
5353
): Promise<core.WithRawResponse<Corti.TranscriptsListResponse>> {
54-
const { full } = request;
54+
const { full, direction } = request;
5555
const _queryParams: Record<string, unknown> = {
5656
full,
57+
direction:
58+
direction != null
59+
? serializers.CommonSortingDirectionEnum.jsonOrThrow(direction, {
60+
unrecognizedObjectKeys: "strip",
61+
omitUndefined: true,
62+
})
63+
: undefined,
5764
};
5865
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
5966
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(

src/api/resources/transcripts/client/requests/TranscriptsCreateRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@ export interface TranscriptsCreateRequest {
1818
spokenPunctuation?: boolean;
1919
/** When true, automatically punctuates and capitalizes the transcript. Defaults to true. Overridden by `spokenPunctuation` when both are enabled. */
2020
automaticPunctuation?: boolean;
21+
formatting?: Corti.TranscriptsFormatting;
2122
/** **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. */
2223
isDictation?: boolean;
2324
/** If true, each audio channel is transcribed separately. */
2425
isMultichannel?: boolean;
2526
/** If true, separates speakers within an audio channel returning incrementing ids for transcript segments. */
2627
diarize?: boolean;
27-
/** An array of participants, each specifying a role and an assigned audio channel in the recording. Leave empty when shouldDiarize: true */
28+
/** An array of participants, each specifying a free-form role and an assigned audio channel in the recording. For raw PCM, the channel count must be defined; otherwise, the number of audio channels is resolved from the audio itself, not from the declared participants. Leave empty when diarize: true. See [audio formatting](https://docs.corti.ai/stt/audio) for full details. */
2829
participants?: Corti.TranscriptsParticipant[];
2930
/** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
3031
async?: boolean;
3132
/** 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. */
3233
replacements?: Corti.TranscriptsCreateRequestReplacementsItem[];
3334
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. */
3435
keyterms?: Corti.TranscriptsCreateRequestKeyterms;
36+
/** When enabled, the transcript is stored and returned at word level instead of phrase/utterance level. Fixed for the lifetime of the transcript once created. */
37+
wordLevel?: Corti.TranscriptsCreateRequestWordLevel;
3538
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3+
import type * as Corti from "../../../../index.js";
4+
35
/**
46
* @example
57
* {}
68
*/
79
export interface TranscriptsListRequest {
810
/** Display full transcripts in listing */
911
full?: boolean;
12+
/** Sorting order. Allowed values: [asc, desc]. Default is desc. */
13+
direction?: Corti.CommonSortingDirectionEnum;
1014
}

0 commit comments

Comments
 (0)