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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "5.75.1",
"cliVersion": "5.77.0",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.54.0",
"generatorConfig": {
Expand Down Expand Up @@ -34,6 +34,6 @@
}
}
},
"originGitCommit": "94a714862b705ee097af1b7ef3c5d9affa7fc382",
"originGitCommit": "e051149eeb3680e201b74bc59dac5132de3df262",
"sdkVersion": "0.0.0-dev"
}
3 changes: 1 addition & 2 deletions src/api/errors/ConflictError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

import type * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";
import type * as Corti from "../index.js";

export class ConflictError extends errors.CortiError {
constructor(body: Corti.ErrorResponse, rawResponse?: core.RawResponse) {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
super({
message: "ConflictError",
statusCode: 409,
Expand Down
33 changes: 29 additions & 4 deletions src/api/resources/agents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
export interface RequestOptions extends BaseRequestOptions {}
}

/**
* Create, read, update, and delete agents.
*/
export class AgentsClient {
protected readonly _options: NormalizedClientOptionsWithAuth<AgentsClient.Options>;

Expand All @@ -23,6 +26,8 @@
}

/**
* @deprecated
*
* This endpoint retrieves a list of all agents that can be called by the Corti Agent Framework.
*
* @param {Corti.AgentsListRequest} request
Expand Down Expand Up @@ -105,6 +110,8 @@
}

/**
* @deprecated
*
* This endpoint allows the creation of a new agent that can be utilized in the `POST /agents/{id}/v1/message:send` endpoint.
*
* @param {Corti.AgentsCreateAgent} request
Expand Down Expand Up @@ -197,6 +204,8 @@
}

/**
* @deprecated
*
* This endpoint retrieves an agent by its identifier. The agent contains information about its capabilities and the experts it can call.
*
* @param {string} id - The identifier of the agent associated with the context.
Expand Down Expand Up @@ -276,6 +285,8 @@
}

/**
* @deprecated
*
* This endpoint deletes an agent by its identifier. Once deleted, the agent can no longer be used in threads.
*
* @param {string} id - The identifier of the agent associated with the context.
Expand Down Expand Up @@ -343,6 +354,8 @@
}

/**
* @deprecated
*
* This endpoint updates an existing agent. Only the fields provided in the request body will be updated; other fields will remain unchanged.
*
* @param {string} id - The identifier of the agent associated with the context.
Expand Down Expand Up @@ -434,6 +447,8 @@
}

/**
* @deprecated
*
* This endpoint retrieves the agent card in JSON format, which provides metadata about the agent, including its name, description, and the experts it can call.
*
* @param {string} id - The identifier of the agent associated with the context.
Expand Down Expand Up @@ -513,10 +528,12 @@
}

/**
* @deprecated
*
* This endpoint sends a message to the specified agent to start or continue a task. The agent processes the message and returns a response. If the message contains a task ID that matches an ongoing task, the agent will continue that task; otherwise, it will start a new task.
*
* @param {string} id - The identifier of the agent associated with the context.
* @param {Corti.AgentsMessageSendParams} request
* @param {Corti.AgentsMessageSendBody} request
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Corti.BadRequestError}
Expand All @@ -540,15 +557,15 @@
*/
public messageSend(
id: string,
request: Corti.AgentsMessageSendParams,
request: Corti.AgentsMessageSendBody,
requestOptions?: AgentsClient.RequestOptions,
): core.HttpResponsePromise<Corti.AgentsMessageSendResponse> {
return core.HttpResponsePromise.fromPromise(this.__messageSend(id, request, requestOptions));
}

private async __messageSend(
id: string,
request: Corti.AgentsMessageSendParams,
request: Corti.AgentsMessageSendBody,
requestOptions?: AgentsClient.RequestOptions,
): Promise<core.WithRawResponse<Corti.AgentsMessageSendResponse>> {
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
Expand All @@ -569,7 +586,7 @@
contentType: "application/json",
queryParameters: requestOptions?.queryParams,
requestType: "json",
body: serializers.AgentsMessageSendParams.jsonOrThrow(request, {
body: serializers.AgentsMessageSendBody.jsonOrThrow(request, {
unrecognizedObjectKeys: "strip",
omitUndefined: true,
}),
Expand Down Expand Up @@ -617,6 +634,8 @@
}

/**
* @deprecated
*
* This endpoint retrieves the status and details of a specific task associated with the given agent. It provides information about the task's current state, history, and any artifacts produced during its execution.
*
* @param {string} id - The identifier of the agent associated with the context.
Expand Down Expand Up @@ -714,6 +733,8 @@
}

/**
* @deprecated
*
* This endpoint retrieves all tasks and top-level messages associated with a specific context for the given agent.
*
* @param {string} id - The identifier of the agent associated with the context.
Expand Down Expand Up @@ -792,7 +813,7 @@
case 404:
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
default:
throw new errors.CortiError({

Check failure on line 816 in src/api/resources/agents/client/Client.ts

View workflow job for this annotation

GitHub Actions / integration-main

tests/custom/agents.getContext.integration.ts > cortiClient.agents.getContext > should retrieve context with optional parameters > should retrieve context with all optional parameters without errors or warnings

CortiError: Status code: 403 ❯ CustomAgents.__getContext src/api/resources/agents/client/Client.ts:816:27 ❯ tests/custom/agents.getContext.integration.ts:90:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, body: undefined, rawResponse: { headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, redirected: false, status: 403, statusText: 'Forbidden', type: 'basic', url: 'https://api.eu.corti.app/agents/bc4663db-760f-4ea9-b8f4-7582527b9f49/v1/contexts/019fae7d-0250-75ac-930e-dbfb02422d6d?limit=45&offset=90' } }

Check failure on line 816 in src/api/resources/agents/client/Client.ts

View workflow job for this annotation

GitHub Actions / integration-main

tests/custom/agents.getContext.integration.ts > cortiClient.agents.getContext > should retrieve context with optional parameters > should retrieve context with offset parameter without errors or warnings

CortiError: Status code: 403 ❯ CustomAgents.__getContext src/api/resources/agents/client/Client.ts:816:27 ❯ tests/custom/agents.getContext.integration.ts:71:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, body: undefined, rawResponse: { headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, redirected: false, status: 403, statusText: 'Forbidden', type: 'basic', url: 'https://api.eu.corti.app/agents/808b2855-dcb0-41f8-b8d9-29673822ab3d/v1/contexts/019fae7c-f0cd-7e37-91ff-f5413ab182ed?offset=21' } }

Check failure on line 816 in src/api/resources/agents/client/Client.ts

View workflow job for this annotation

GitHub Actions / integration-main

tests/custom/agents.getContext.integration.ts > cortiClient.agents.getContext > should retrieve context with optional parameters > should retrieve context with limit parameter without errors or warnings

CortiError: Status code: 403 ❯ CustomAgents.__getContext src/api/resources/agents/client/Client.ts:816:27 ❯ tests/custom/agents.getContext.integration.ts:52:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, body: undefined, rawResponse: { headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, redirected: false, status: 403, statusText: 'Forbidden', type: 'basic', url: 'https://api.eu.corti.app/agents/f1ac8d63-fe00-490a-aba1-c4d41d426d8e/v1/contexts/019fae7c-e0e7-7a49-9c20-2ea70e372b6e?limit=78' } }

Check failure on line 816 in src/api/resources/agents/client/Client.ts

View workflow job for this annotation

GitHub Actions / integration-main

tests/custom/agents.getContext.integration.ts > cortiClient.agents.getContext > should retrieve context with only required values > should successfully retrieve a context without errors or warnings

CortiError: Status code: 403 ❯ CustomAgents.__getContext src/api/resources/agents/client/Client.ts:816:27 ❯ tests/custom/agents.getContext.integration.ts:33:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, body: undefined, rawResponse: { headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, redirected: false, status: 403, statusText: 'Forbidden', type: 'basic', url: 'https://api.eu.corti.app/agents/be13c570-a1da-4158-892b-0b33fd17f4d2/v1/contexts/019fae7c-cb4a-71f1-bfff-22de81350939' } }
statusCode: _response.error.statusCode,
body: _response.error.body,
rawResponse: _response.rawResponse,
Expand All @@ -809,6 +830,8 @@
}

/**
* @deprecated
*
* This endpoint deletes a context (thread) and scrubs all associated data including messages, memories, and memory chunks for the given agent. Thread and task metadata is soft-deleted for audit purposes, while content columns are irreversibly overwritten.
*
* @param {string} id - The identifier of the agent associated with the context.
Expand Down Expand Up @@ -870,7 +893,7 @@
case 404:
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
default:
throw new errors.CortiError({

Check failure on line 896 in src/api/resources/agents/client/Client.ts

View workflow job for this annotation

GitHub Actions / integration-main

tests/custom/agents.deleteContext.integration.ts > cortiClient.agents.deleteContext > should delete context with only required values > should successfully delete an existing context without errors or warnings

CortiError: Status code: 403 ❯ CustomAgents.__deleteContext src/api/resources/agents/client/Client.ts:896:27 ❯ tests/custom/agents.deleteContext.integration.ts:33:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, body: undefined, rawResponse: { headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, redirected: false, status: 403, statusText: 'Forbidden', type: 'basic', url: 'https://api.eu.corti.app/agents/bc06e7f1-b216-43e7-bfec-7635f171afb6/v1/contexts/019fae7d-d916-77a0-9a47-88a9108849fa' } }
statusCode: _response.error.statusCode,
body: _response.error.body,
rawResponse: _response.rawResponse,
Expand All @@ -887,6 +910,8 @@
}

/**
* @deprecated
*
* This endpoint retrieves the experts registry, which contains information about all available experts that can be referenced when creating agents through the AgentsCreateExpertReference schema.
*
* @param {Corti.AgentsGetRegistryExpertsRequest} request
Expand Down Expand Up @@ -962,7 +987,7 @@
case 422:
throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
default:
throw new errors.CortiError({

Check failure on line 990 in src/api/resources/agents/client/Client.ts

View workflow job for this annotation

GitHub Actions / integration-main

tests/custom/agents.create.integration.ts > cortiClient.agents.create > should create agent with experts > should create agent with an expert reference by name without errors or warnings

CortiError: Status code: 403 ❯ CustomAgents.__getRegistryExperts src/api/resources/agents/client/Client.ts:990:27 ❯ tests/custom/agents.create.integration.ts:122:30 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, body: undefined, rawResponse: { headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, redirected: false, status: 403, statusText: 'Forbidden', type: 'basic', url: 'https://api.eu.corti.app/agents/registry/experts?limit=1' } }
statusCode: _response.error.statusCode,
body: _response.error.body,
rawResponse: _response.rawResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type * as Corti from "../../../../index.js";
* }
* }
*/
export interface AgentsMessageSendParams {
export interface AgentsMessageSendBody {
message: Corti.AgentsMessage;
configuration?: Corti.AgentsMessageSendConfiguration;
/** Optional metadata that will be associated with the message. */
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/agents/client/requests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export type { AgentsGetContextRequest } from "./AgentsGetContextRequest.js";
export type { AgentsGetRegistryExpertsRequest } from "./AgentsGetRegistryExpertsRequest.js";
export type { AgentsGetTaskRequest } from "./AgentsGetTaskRequest.js";
export type { AgentsListRequest } from "./AgentsListRequest.js";
export type { AgentsMessageSendParams } from "./AgentsMessageSendParams.js";
export type { AgentsMessageSendBody } from "./AgentsMessageSendBody.js";
export type { AgentsUpdateAgent } from "./AgentsUpdateAgent.js";
8 changes: 4 additions & 4 deletions src/api/resources/auth/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class AuthClient {
* authorization_code (with client_secret), authorization_code with PKCE (code_verifier), password (ROPC), or refresh_token. Use the returned access_token in the Authorization header when calling the Corti API.
*
* @param {string} tenantName
* @param {Corti.AuthTokenRequestBody} request
* @param {Corti.AuthTokenRequest} request
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Corti.BadRequestError}
Expand All @@ -113,15 +113,15 @@ export class AuthClient {
*/
public token(
tenantName: string,
request: Corti.AuthTokenRequestBody,
request: Corti.AuthTokenRequest,
requestOptions?: AuthClient.RequestOptions,
): core.HttpResponsePromise<Corti.AuthTokenResponse> {
return core.HttpResponsePromise.fromPromise(this.__token(tenantName, request, requestOptions));
}

private async __token(
tenantName: string,
request: Corti.AuthTokenRequestBody,
request: Corti.AuthTokenRequest,
requestOptions?: AuthClient.RequestOptions,
): Promise<core.WithRawResponse<Corti.AuthTokenResponse>> {
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
Expand All @@ -142,7 +142,7 @@ export class AuthClient {
contentType: "application/x-www-form-urlencoded",
queryParameters: requestOptions?.queryParams,
requestType: "form",
body: serializers.AuthTokenRequestBody.jsonOrThrow(request, {
body: serializers.AuthTokenRequest.jsonOrThrow(request, {
unrecognizedObjectKeys: "strip",
omitUndefined: true,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import type * as Corti from "../../../index.js";

export type AuthTokenRequestBody =
export type AuthTokenRequest =
| Corti.AuthTokenRequestClientCredentials
| Corti.AuthTokenRequestAuthorizationCode
| Corti.AuthTokenRequestAuthorizationPkce
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/auth/types/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./AuthTokenRequestBody.js";
export * from "./AuthTokenRequest.js";
54 changes: 33 additions & 21 deletions src/api/resources/documents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class DocumentsClient {
* This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
*
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
* @param {Corti.DocumentsCreateRequest} request
* @param {Corti.CreateDocumentsRequest} request
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Corti.BadRequestError}
Expand All @@ -152,34 +152,40 @@ export class DocumentsClient {
*
* @example
* await client.documents.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", {
* context: [{
* type: "facts",
* data: [{
* text: "text"
* }]
* }],
* templateKey: "templateKey",
* outputLanguage: "outputLanguage"
* body: {
* context: [{
* type: "facts",
* data: [{
* text: "text"
* }]
* }],
* templateKey: "templateKey",
* outputLanguage: "outputLanguage"
* }
* })
*/
public create(
id: Corti.Uuid,
request: Corti.DocumentsCreateRequest,
request: Corti.CreateDocumentsRequest,
requestOptions?: DocumentsClient.RequestOptions,
): core.HttpResponsePromise<Corti.DocumentsGetResponse> {
return core.HttpResponsePromise.fromPromise(this.__create(id, request, requestOptions));
}

private async __create(
id: Corti.Uuid,
request: Corti.DocumentsCreateRequest,
request: Corti.CreateDocumentsRequest,
requestOptions?: DocumentsClient.RequestOptions,
): Promise<core.WithRawResponse<Corti.DocumentsGetResponse>> {
const { cortiRetentionPolicy, body: _body } = request;
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Tenant-Name": requestOptions?.tenantName ?? this._options?.tenantName }),
mergeOnlyDefinedHeaders({
"X-Corti-Retention-Policy": cortiRetentionPolicy,
"Tenant-Name": requestOptions?.tenantName ?? this._options?.tenantName,
}),
requestOptions?.headers,
);
const _response = await core.fetcher({
Expand All @@ -193,7 +199,7 @@ export class DocumentsClient {
contentType: "application/json",
queryParameters: requestOptions?.queryParams,
requestType: "json",
body: serializers.DocumentsCreateRequest.jsonOrThrow(request, {
body: serializers.DocumentsCreateRequest.jsonOrThrow(_body, {
unrecognizedObjectKeys: "strip",
omitUndefined: true,
}),
Expand Down Expand Up @@ -592,7 +598,7 @@ export class DocumentsClient {
* Context can combine different types or reference an interactionId to automatically fetch existing context to pass to the LLM. Note that discarded facts are not passed to the LLM.
* With the exception of the plain `templateRef` path (no overrides), every call creates a new auto-generated template aggregate that snapshots the resolved prompts as a drift-proof receipt, persisted for 30 days.
*
* @param {Corti.GuidedDocumentsGenerateRequest} request
* @param {Corti.GenerateDocumentsRequest} request
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Corti.BadRequestError}
Expand All @@ -602,28 +608,34 @@ export class DocumentsClient {
*
* @example
* await client.documents.generate({
* outputLanguage: "outputLanguage",
* templateRef: {
* templateId: "templateId"
* body: {
* outputLanguage: "outputLanguage",
* templateRef: {
* templateId: "templateId"
* }
* }
* })
*/
public generate(
request: Corti.GuidedDocumentsGenerateRequest,
request: Corti.GenerateDocumentsRequest,
requestOptions?: DocumentsClient.RequestOptions,
): core.HttpResponsePromise<Corti.GuidedDocumentsCreateEphemeralResponse> {
return core.HttpResponsePromise.fromPromise(this.__generate(request, requestOptions));
}

private async __generate(
request: Corti.GuidedDocumentsGenerateRequest,
request: Corti.GenerateDocumentsRequest,
requestOptions?: DocumentsClient.RequestOptions,
): Promise<core.WithRawResponse<Corti.GuidedDocumentsCreateEphemeralResponse>> {
const { cortiRetentionPolicy, body: _body } = request;
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Tenant-Name": requestOptions?.tenantName ?? this._options?.tenantName }),
mergeOnlyDefinedHeaders({
"X-Corti-Retention-Policy": cortiRetentionPolicy,
"Tenant-Name": requestOptions?.tenantName ?? this._options?.tenantName,
}),
requestOptions?.headers,
);
const _response = await core.fetcher({
Expand All @@ -637,7 +649,7 @@ export class DocumentsClient {
contentType: "application/json",
queryParameters: requestOptions?.queryParams,
requestType: "json",
body: serializers.GuidedDocumentsGenerateRequest.jsonOrThrow(request, {
body: serializers.GuidedDocumentsGenerateRequest.jsonOrThrow(_body, {
unrecognizedObjectKeys: "strip",
omitUndefined: true,
}),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../../../../index.js";

/**
* @example
* {
* body: {
* context: [{
* type: "facts",
* data: [{
* text: "text"
* }]
* }],
* templateKey: "templateKey",
* outputLanguage: "outputLanguage"
* }
* }
*/
export interface CreateDocumentsRequest {
/** With the optional header `X-Corti-Retention-Policy:none` the API will generate and return the document as expected, but the generated document will not be saved to the database. The response will include the header `X-Corti-Retention-Policy:acknowledged` to confirm that your retention preference was respected. If the header is omitted or set to any other value, the default retention policy will apply, and the document will be stored in the database. */
cortiRetentionPolicy?: Corti.CreateDocumentsRequestXCortiRetentionPolicy;
body: Corti.DocumentsCreateRequest;
}
Loading
Loading