Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "4.86.1",
"cliVersion": "4.107.0",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.54.0",
"generatorConfig": {
Expand All @@ -15,7 +15,9 @@
},
"packageJson": {
"scripts": {
"test:integration": "vitest --config vitest.integration.config.mts"
"test:integration": "pnpm test:integration:main && pnpm test:integration:empty-state",
"test:integration:main": "vitest run --config vitest.integration.config.mts --project integration",
"test:integration:empty-state": "vitest run --config vitest.integration.config.mts --project integration-empty-state"
},
"exports": {
"./utils": {
Expand All @@ -32,6 +34,6 @@
}
}
},
"originGitCommit": "23bce53307f0836f2dcd50e82ef0aba136e7ec2f",
"originGitCommit": "123fb59ee8ebe34e1243105961afa7b935978cab",
"sdkVersion": "0.0.0-dev"
}
4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type BaseClientOptions = {
/** Specify a custom URL to connect the client to. */
baseUrl?: core.Supplier<string>;
/** Override the Tenant-Name header */
tenantName: core.Supplier<string>;
tenantName?: core.Supplier<string | undefined>;
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
/** The default maximum time to wait for a response in seconds. */
Expand All @@ -31,7 +31,7 @@ export interface BaseRequestOptions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Tenant-Name header */
tenantName?: string;
tenantName?: string | undefined;
/** Additional query string parameters to include in the request. */
queryParams?: Record<string, unknown>;
/** Additional headers to include in the request. */
Expand Down
24 changes: 24 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// This file was auto-generated by Fern from our API Definition.

import { AgentsClient } from "./api/resources/agents/client/Client.js";
import { AlphaSectionsClient } from "./api/resources/alphaSections/client/Client.js";
import { AlphaSectionVersionsClient } from "./api/resources/alphaSectionVersions/client/Client.js";
import { AlphaTemplatesClient } from "./api/resources/alphaTemplates/client/Client.js";
import { AlphaTemplateVersionsClient } from "./api/resources/alphaTemplateVersions/client/Client.js";
import { AuthClient } from "./api/resources/auth/client/Client.js";
import { CodesClient } from "./api/resources/codes/client/Client.js";
import { DocumentsClient } from "./api/resources/documents/client/Client.js";
Expand Down Expand Up @@ -30,6 +34,10 @@ export class CortiClient {
protected _documents: DocumentsClient | undefined;
protected _templates: TemplatesClient | undefined;
protected _codes: CodesClient | undefined;
protected _alphaTemplates: AlphaTemplatesClient | undefined;
protected _alphaTemplateVersions: AlphaTemplateVersionsClient | undefined;
protected _alphaSections: AlphaSectionsClient | undefined;
protected _alphaSectionVersions: AlphaSectionVersionsClient | undefined;
protected _agents: AgentsClient | undefined;
protected _stream: StreamClient | undefined;
protected _transcribe: TranscribeClient | undefined;
Expand Down Expand Up @@ -70,6 +78,22 @@ export class CortiClient {
return (this._codes ??= new CodesClient(this._options));
}

public get alphaTemplates(): AlphaTemplatesClient {
return (this._alphaTemplates ??= new AlphaTemplatesClient(this._options));
}

public get alphaTemplateVersions(): AlphaTemplateVersionsClient {
return (this._alphaTemplateVersions ??= new AlphaTemplateVersionsClient(this._options));
}

public get alphaSections(): AlphaSectionsClient {
return (this._alphaSections ??= new AlphaSectionsClient(this._options));
}

public get alphaSectionVersions(): AlphaSectionVersionsClient {
return (this._alphaSectionVersions ??= new AlphaSectionVersionsClient(this._options));
}

public get agents(): AgentsClient {
return (this._agents ??= new AgentsClient(this._options));
}
Expand Down
Loading
Loading