@llamaindex/llama-cloud 2.4.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +93 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +14 -0
- package/client.js.map +1 -1
- package/client.mjs +14 -0
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +2 -2
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/batches.d.mts +492 -0
- package/resources/batches.d.mts.map +1 -0
- package/resources/batches.d.ts +492 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +61 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +57 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/beta/agent-data.d.mts +33 -27
- package/resources/beta/agent-data.d.mts.map +1 -1
- package/resources/beta/agent-data.d.ts +33 -27
- package/resources/beta/agent-data.d.ts.map +1 -1
- package/resources/beta/agent-data.js +27 -19
- package/resources/beta/agent-data.js.map +1 -1
- package/resources/beta/agent-data.mjs +27 -19
- package/resources/beta/agent-data.mjs.map +1 -1
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts.map +1 -1
- package/resources/beta/batch/batch.mjs.map +1 -1
- package/resources/beta/batch/index.d.mts.map +1 -1
- package/resources/beta/batch/index.d.ts.map +1 -1
- package/resources/beta/batch/index.mjs.map +1 -1
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts.map +1 -1
- package/resources/beta/batch/job-items.mjs.map +1 -1
- package/resources/beta/batch.d.mts.map +1 -1
- package/resources/beta/batch.d.ts.map +1 -1
- package/resources/beta/batch.mjs.map +1 -1
- package/resources/beta/beta.d.mts +14 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +14 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +12 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +12 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chat.d.mts +357 -0
- package/resources/beta/chat.d.mts.map +1 -0
- package/resources/beta/chat.d.ts +357 -0
- package/resources/beta/chat.d.ts.map +1 -0
- package/resources/beta/chat.js +101 -0
- package/resources/beta/chat.js.map +1 -0
- package/resources/beta/chat.mjs +97 -0
- package/resources/beta/chat.mjs.map +1 -0
- package/resources/beta/directories/directories.d.mts +72 -24
- package/resources/beta/directories/directories.d.mts.map +1 -1
- package/resources/beta/directories/directories.d.ts +72 -24
- package/resources/beta/directories/directories.d.ts.map +1 -1
- package/resources/beta/directories/directories.js +0 -3
- package/resources/beta/directories/directories.js.map +1 -1
- package/resources/beta/directories/directories.mjs +0 -3
- package/resources/beta/directories/directories.mjs.map +1 -1
- package/resources/beta/directories/files.d.mts +65 -57
- package/resources/beta/directories/files.d.mts.map +1 -1
- package/resources/beta/directories/files.d.ts +65 -57
- package/resources/beta/directories/files.d.ts.map +1 -1
- package/resources/beta/directories/files.js +14 -27
- package/resources/beta/directories/files.js.map +1 -1
- package/resources/beta/directories/files.mjs +14 -27
- package/resources/beta/directories/files.mjs.map +1 -1
- package/resources/beta/directories/index.d.mts.map +1 -1
- package/resources/beta/directories/index.d.ts.map +1 -1
- package/resources/beta/directories/index.mjs.map +1 -1
- package/resources/beta/directories.d.mts.map +1 -1
- package/resources/beta/directories.d.ts.map +1 -1
- package/resources/beta/directories.mjs.map +1 -1
- package/resources/beta/index.d.mts +4 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +4 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +7 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +3 -0
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/indexes.d.mts +311 -0
- package/resources/beta/indexes.d.mts.map +1 -0
- package/resources/beta/indexes.d.ts +311 -0
- package/resources/beta/indexes.d.ts.map +1 -0
- package/resources/beta/indexes.js +86 -0
- package/resources/beta/indexes.js.map +1 -0
- package/resources/beta/indexes.mjs +82 -0
- package/resources/beta/indexes.mjs.map +1 -0
- package/resources/beta/retrieval.d.mts +368 -0
- package/resources/beta/retrieval.d.mts.map +1 -0
- package/resources/beta/retrieval.d.ts +368 -0
- package/resources/beta/retrieval.d.ts.map +1 -0
- package/resources/beta/retrieval.js +87 -0
- package/resources/beta/retrieval.js.map +1 -0
- package/resources/beta/retrieval.mjs +83 -0
- package/resources/beta/retrieval.mjs.map +1 -0
- package/resources/beta/sheets.d.mts +10 -17
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +10 -17
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/sheets.js +10 -17
- package/resources/beta/sheets.js.map +1 -1
- package/resources/beta/sheets.mjs +10 -17
- package/resources/beta/sheets.mjs.map +1 -1
- package/resources/beta/split.d.mts.map +1 -1
- package/resources/beta/split.d.ts.map +1 -1
- package/resources/beta/split.mjs.map +1 -1
- package/resources/beta.d.mts.map +1 -1
- package/resources/beta.d.ts.map +1 -1
- package/resources/beta.mjs.map +1 -1
- package/resources/classifier/classifier.d.mts.map +1 -1
- package/resources/classifier/classifier.d.ts.map +1 -1
- package/resources/classifier/classifier.mjs.map +1 -1
- package/resources/classifier/index.d.mts.map +1 -1
- package/resources/classifier/index.d.ts.map +1 -1
- package/resources/classifier/index.mjs.map +1 -1
- package/resources/classifier/jobs.d.mts +5 -8
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +5 -8
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classifier/jobs.js +5 -8
- package/resources/classifier/jobs.js.map +1 -1
- package/resources/classifier/jobs.mjs +5 -8
- package/resources/classifier/jobs.mjs.map +1 -1
- package/resources/classifier.d.mts.map +1 -1
- package/resources/classifier.d.ts.map +1 -1
- package/resources/classifier.mjs.map +1 -1
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts.map +1 -1
- package/resources/classify.mjs.map +1 -1
- package/resources/configurations.d.mts +27 -10
- package/resources/configurations.d.mts.map +1 -1
- package/resources/configurations.d.ts +27 -10
- package/resources/configurations.d.ts.map +1 -1
- package/resources/configurations.js +2 -4
- package/resources/configurations.js.map +1 -1
- package/resources/configurations.mjs +2 -4
- package/resources/configurations.mjs.map +1 -1
- package/resources/data-sinks.d.mts.map +1 -1
- package/resources/data-sinks.d.ts.map +1 -1
- package/resources/data-sinks.mjs.map +1 -1
- package/resources/data-sources.d.mts.map +1 -1
- package/resources/data-sources.d.ts.map +1 -1
- package/resources/data-sources.mjs.map +1 -1
- package/resources/extract.d.mts +2 -9
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +2 -9
- package/resources/extract.d.ts.map +1 -1
- package/resources/extract.mjs.map +1 -1
- package/resources/files.d.mts +19 -56
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +19 -56
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +1 -8
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +1 -8
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/parsing.d.mts +31 -8
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +31 -8
- package/resources/parsing.d.ts.map +1 -1
- package/resources/parsing.mjs.map +1 -1
- package/resources/pipelines/data-sources.d.mts +2 -2
- package/resources/pipelines/data-sources.d.mts.map +1 -1
- package/resources/pipelines/data-sources.d.ts +2 -2
- package/resources/pipelines/data-sources.d.ts.map +1 -1
- package/resources/pipelines/data-sources.js +2 -2
- package/resources/pipelines/data-sources.mjs +2 -2
- package/resources/pipelines/data-sources.mjs.map +1 -1
- package/resources/pipelines/documents.d.mts +2 -4
- package/resources/pipelines/documents.d.mts.map +1 -1
- package/resources/pipelines/documents.d.ts +2 -4
- package/resources/pipelines/documents.d.ts.map +1 -1
- package/resources/pipelines/documents.js +2 -4
- package/resources/pipelines/documents.js.map +1 -1
- package/resources/pipelines/documents.mjs +2 -4
- package/resources/pipelines/documents.mjs.map +1 -1
- package/resources/pipelines/files.d.mts.map +1 -1
- package/resources/pipelines/files.d.ts.map +1 -1
- package/resources/pipelines/files.mjs.map +1 -1
- package/resources/pipelines/images.d.mts.map +1 -1
- package/resources/pipelines/images.d.ts.map +1 -1
- package/resources/pipelines/images.mjs.map +1 -1
- package/resources/pipelines/index.d.mts.map +1 -1
- package/resources/pipelines/index.d.ts.map +1 -1
- package/resources/pipelines/index.mjs.map +1 -1
- package/resources/pipelines/metadata.d.mts.map +1 -1
- package/resources/pipelines/metadata.d.ts.map +1 -1
- package/resources/pipelines/metadata.mjs.map +1 -1
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts.map +1 -1
- package/resources/pipelines/pipelines.mjs.map +1 -1
- package/resources/pipelines/sync.d.mts.map +1 -1
- package/resources/pipelines/sync.d.ts.map +1 -1
- package/resources/pipelines/sync.mjs.map +1 -1
- package/resources/pipelines.d.mts.map +1 -1
- package/resources/pipelines.d.ts.map +1 -1
- package/resources/pipelines.mjs.map +1 -1
- package/resources/projects.d.mts +0 -1
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +0 -1
- package/resources/projects.d.ts.map +1 -1
- package/resources/projects.mjs.map +1 -1
- package/resources/retrievers/index.d.mts.map +1 -1
- package/resources/retrievers/index.d.ts.map +1 -1
- package/resources/retrievers/index.mjs.map +1 -1
- package/resources/retrievers/retriever.d.mts.map +1 -1
- package/resources/retrievers/retriever.d.ts.map +1 -1
- package/resources/retrievers/retriever.mjs.map +1 -1
- package/resources/retrievers/retrievers.d.mts.map +1 -1
- package/resources/retrievers/retrievers.d.ts.map +1 -1
- package/resources/retrievers/retrievers.mjs.map +1 -1
- package/resources/retrievers.d.mts.map +1 -1
- package/resources/retrievers.d.ts.map +1 -1
- package/resources/retrievers.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +35 -2
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/batches.ts +588 -0
- package/src/resources/beta/agent-data.ts +45 -36
- package/src/resources/beta/beta.ts +96 -2
- package/src/resources/beta/chat.ts +523 -0
- package/src/resources/beta/directories/directories.ts +77 -29
- package/src/resources/beta/directories/files.ts +73 -60
- package/src/resources/beta/index.ts +42 -1
- package/src/resources/beta/indexes.ts +421 -0
- package/src/resources/beta/retrieval.ts +483 -0
- package/src/resources/beta/sheets.ts +10 -17
- package/src/resources/classifier/jobs.ts +5 -8
- package/src/resources/configurations.ts +29 -92
- package/src/resources/extract.ts +2 -11
- package/src/resources/files.ts +22 -60
- package/src/resources/index.ts +10 -1
- package/src/resources/parsing.ts +37 -90
- package/src/resources/pipelines/data-sources.ts +2 -2
- package/src/resources/pipelines/documents.ts +2 -4
- package/src/resources/projects.ts +0 -2
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Chat extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create a chat session, optionally bound to indexes (locked after the first
|
|
13
|
+
* message).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const chat = await client.beta.chat.create();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(
|
|
21
|
+
params: ChatCreateParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): APIPromise<ChatCreateResponse> {
|
|
24
|
+
const { organization_id, project_id, ...body } = params ?? {};
|
|
25
|
+
return this._client.post('/api/v1/chat', { query: { organization_id, project_id }, body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a full session by ID, including its event history.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const chat = await client.beta.chat.retrieve('session_id');
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(
|
|
37
|
+
sessionID: string,
|
|
38
|
+
query: ChatRetrieveParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<ChatRetrieveResponse> {
|
|
41
|
+
return this._client.get(path`/api/v1/chat/${sessionID}`, { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* List all chat sessions for the current project.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const chatListResponse of client.beta.chat.list()) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
list(
|
|
56
|
+
query: ChatListParams | null | undefined = {},
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): PagePromise<ChatListResponsesPaginatedCursor, ChatListResponse> {
|
|
59
|
+
return this._client.getAPIList('/api/v1/chat', PaginatedCursor<ChatListResponse>, { query, ...options });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Delete a session.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* await client.beta.chat.delete('session_id');
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
delete(
|
|
71
|
+
sessionID: string,
|
|
72
|
+
params: ChatDeleteParams | null | undefined = {},
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): APIPromise<void> {
|
|
75
|
+
const { organization_id, project_id } = params ?? {};
|
|
76
|
+
return this._client.delete(path`/api/v1/chat/${sessionID}`, {
|
|
77
|
+
query: { organization_id, project_id },
|
|
78
|
+
...options,
|
|
79
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Retrieve a session summary by ID.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const response = await client.beta.chat.getSummary(
|
|
89
|
+
* 'session_id',
|
|
90
|
+
* );
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
getSummary(
|
|
94
|
+
sessionID: string,
|
|
95
|
+
query: ChatGetSummaryParams | null | undefined = {},
|
|
96
|
+
options?: RequestOptions,
|
|
97
|
+
): APIPromise<ChatGetSummaryResponse> {
|
|
98
|
+
return this._client.get(path`/api/v1/chat/${sessionID}/summary`, { query, ...options });
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Stream agent events for a chat turn as Server-Sent Events.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const response = await client.beta.chat.stream(
|
|
107
|
+
* 'session_id',
|
|
108
|
+
* {
|
|
109
|
+
* index_ids: ['idx-abc123', 'idx-def456'],
|
|
110
|
+
* prompt: 'What were the main findings in Q3?',
|
|
111
|
+
* },
|
|
112
|
+
* );
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
stream(sessionID: string, params: ChatStreamParams, options?: RequestOptions): APIPromise<unknown> {
|
|
116
|
+
const { organization_id, project_id, ...body } = params;
|
|
117
|
+
return this._client.post(path`/api/v1/chat/${sessionID}/messages/stream`, {
|
|
118
|
+
query: { organization_id, project_id },
|
|
119
|
+
body,
|
|
120
|
+
...options,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type ChatListResponsesPaginatedCursor = PaginatedCursor<ChatListResponse>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Summary of a chat session, including its title and last run metadata.
|
|
129
|
+
*/
|
|
130
|
+
export interface ChatCreateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
133
|
+
*/
|
|
134
|
+
last_updated_at: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Unique session identifier.
|
|
138
|
+
*/
|
|
139
|
+
session_id: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Auto-generated title derived from the first user message.
|
|
143
|
+
*/
|
|
144
|
+
generated_title?: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
148
|
+
*/
|
|
149
|
+
index_ids?: Array<string> | null;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
153
|
+
* been run yet.
|
|
154
|
+
*/
|
|
155
|
+
job_metadata?: ChatCreateResponse.JobMetadata | null;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export namespace ChatCreateResponse {
|
|
159
|
+
/**
|
|
160
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
161
|
+
* been run yet.
|
|
162
|
+
*/
|
|
163
|
+
export interface JobMetadata {
|
|
164
|
+
duration_ms?: number;
|
|
165
|
+
|
|
166
|
+
error?: string | null;
|
|
167
|
+
|
|
168
|
+
export_config_ids?: Array<string> | null;
|
|
169
|
+
|
|
170
|
+
is_error?: boolean;
|
|
171
|
+
|
|
172
|
+
total_input_tokens?: number | null;
|
|
173
|
+
|
|
174
|
+
total_output_tokens?: number | null;
|
|
175
|
+
|
|
176
|
+
turns?: number;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Full chat session including its complete event history.
|
|
182
|
+
*/
|
|
183
|
+
export interface ChatRetrieveResponse {
|
|
184
|
+
/**
|
|
185
|
+
* Ordered list of events that make up the conversation history.
|
|
186
|
+
*/
|
|
187
|
+
events: Array<
|
|
188
|
+
| ChatRetrieveResponse.ThinkingDeltaEvent
|
|
189
|
+
| ChatRetrieveResponse.TextDeltaEvent
|
|
190
|
+
| ChatRetrieveResponse.ThinkingEvent
|
|
191
|
+
| ChatRetrieveResponse.TextEvent
|
|
192
|
+
| ChatRetrieveResponse.ToolCallEvent
|
|
193
|
+
| ChatRetrieveResponse.ToolResultEvent
|
|
194
|
+
| ChatRetrieveResponse.StopEvent
|
|
195
|
+
| ChatRetrieveResponse.UserInputEvent
|
|
196
|
+
>;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
200
|
+
*/
|
|
201
|
+
last_updated_at: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Unique session identifier.
|
|
205
|
+
*/
|
|
206
|
+
session_id: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Auto-generated title derived from the first user message.
|
|
210
|
+
*/
|
|
211
|
+
generated_title?: string | null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
215
|
+
*/
|
|
216
|
+
index_ids?: Array<string> | null;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
220
|
+
* been run yet.
|
|
221
|
+
*/
|
|
222
|
+
job_metadata?: ChatRetrieveResponse.JobMetadata | null;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export namespace ChatRetrieveResponse {
|
|
226
|
+
export interface ThinkingDeltaEvent {
|
|
227
|
+
content: string;
|
|
228
|
+
|
|
229
|
+
type?: 'thinking_delta';
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface TextDeltaEvent {
|
|
233
|
+
content: string;
|
|
234
|
+
|
|
235
|
+
type?: 'text_delta';
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface ThinkingEvent {
|
|
239
|
+
content: string;
|
|
240
|
+
|
|
241
|
+
type?: 'thinking';
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface TextEvent {
|
|
245
|
+
content: string;
|
|
246
|
+
|
|
247
|
+
type?: 'text';
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface ToolCallEvent {
|
|
251
|
+
arguments: { [key: string]: unknown };
|
|
252
|
+
|
|
253
|
+
call_id: string;
|
|
254
|
+
|
|
255
|
+
name: string;
|
|
256
|
+
|
|
257
|
+
type?: 'tool_call';
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface ToolResultEvent {
|
|
261
|
+
call_id: string;
|
|
262
|
+
|
|
263
|
+
name: string;
|
|
264
|
+
|
|
265
|
+
result: unknown;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Coordinates for lazily resolving a page screenshot presigned URL.
|
|
269
|
+
*/
|
|
270
|
+
image_attachment?: ToolResultEvent.ImageAttachment | null;
|
|
271
|
+
|
|
272
|
+
type?: 'tool_result';
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export namespace ToolResultEvent {
|
|
276
|
+
/**
|
|
277
|
+
* Coordinates for lazily resolving a page screenshot presigned URL.
|
|
278
|
+
*/
|
|
279
|
+
export interface ImageAttachment {
|
|
280
|
+
attachment_name: string;
|
|
281
|
+
|
|
282
|
+
source_id: string;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface StopEvent {
|
|
287
|
+
error: string | null;
|
|
288
|
+
|
|
289
|
+
is_error: boolean;
|
|
290
|
+
|
|
291
|
+
usage: StopEvent.Usage;
|
|
292
|
+
|
|
293
|
+
type?: 'stop';
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export namespace StopEvent {
|
|
297
|
+
export interface Usage {
|
|
298
|
+
duration_ms?: number;
|
|
299
|
+
|
|
300
|
+
total_input_tokens?: number | null;
|
|
301
|
+
|
|
302
|
+
total_output_tokens?: number | null;
|
|
303
|
+
|
|
304
|
+
turns?: number;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface UserInputEvent {
|
|
309
|
+
content: string;
|
|
310
|
+
|
|
311
|
+
type?: 'user_input';
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
316
|
+
* been run yet.
|
|
317
|
+
*/
|
|
318
|
+
export interface JobMetadata {
|
|
319
|
+
duration_ms?: number;
|
|
320
|
+
|
|
321
|
+
error?: string | null;
|
|
322
|
+
|
|
323
|
+
export_config_ids?: Array<string> | null;
|
|
324
|
+
|
|
325
|
+
is_error?: boolean;
|
|
326
|
+
|
|
327
|
+
total_input_tokens?: number | null;
|
|
328
|
+
|
|
329
|
+
total_output_tokens?: number | null;
|
|
330
|
+
|
|
331
|
+
turns?: number;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Summary of a chat session, including its title and last run metadata.
|
|
337
|
+
*/
|
|
338
|
+
export interface ChatListResponse {
|
|
339
|
+
/**
|
|
340
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
341
|
+
*/
|
|
342
|
+
last_updated_at: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Unique session identifier.
|
|
346
|
+
*/
|
|
347
|
+
session_id: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Auto-generated title derived from the first user message.
|
|
351
|
+
*/
|
|
352
|
+
generated_title?: string | null;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
356
|
+
*/
|
|
357
|
+
index_ids?: Array<string> | null;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
361
|
+
* been run yet.
|
|
362
|
+
*/
|
|
363
|
+
job_metadata?: ChatListResponse.JobMetadata | null;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export namespace ChatListResponse {
|
|
367
|
+
/**
|
|
368
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
369
|
+
* been run yet.
|
|
370
|
+
*/
|
|
371
|
+
export interface JobMetadata {
|
|
372
|
+
duration_ms?: number;
|
|
373
|
+
|
|
374
|
+
error?: string | null;
|
|
375
|
+
|
|
376
|
+
export_config_ids?: Array<string> | null;
|
|
377
|
+
|
|
378
|
+
is_error?: boolean;
|
|
379
|
+
|
|
380
|
+
total_input_tokens?: number | null;
|
|
381
|
+
|
|
382
|
+
total_output_tokens?: number | null;
|
|
383
|
+
|
|
384
|
+
turns?: number;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Summary of a chat session, including its title and last run metadata.
|
|
390
|
+
*/
|
|
391
|
+
export interface ChatGetSummaryResponse {
|
|
392
|
+
/**
|
|
393
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
394
|
+
*/
|
|
395
|
+
last_updated_at: string;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Unique session identifier.
|
|
399
|
+
*/
|
|
400
|
+
session_id: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Auto-generated title derived from the first user message.
|
|
404
|
+
*/
|
|
405
|
+
generated_title?: string | null;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
409
|
+
*/
|
|
410
|
+
index_ids?: Array<string> | null;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
414
|
+
* been run yet.
|
|
415
|
+
*/
|
|
416
|
+
job_metadata?: ChatGetSummaryResponse.JobMetadata | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export namespace ChatGetSummaryResponse {
|
|
420
|
+
/**
|
|
421
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
422
|
+
* been run yet.
|
|
423
|
+
*/
|
|
424
|
+
export interface JobMetadata {
|
|
425
|
+
duration_ms?: number;
|
|
426
|
+
|
|
427
|
+
error?: string | null;
|
|
428
|
+
|
|
429
|
+
export_config_ids?: Array<string> | null;
|
|
430
|
+
|
|
431
|
+
is_error?: boolean;
|
|
432
|
+
|
|
433
|
+
total_input_tokens?: number | null;
|
|
434
|
+
|
|
435
|
+
total_output_tokens?: number | null;
|
|
436
|
+
|
|
437
|
+
turns?: number;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export type ChatStreamResponse = unknown;
|
|
442
|
+
|
|
443
|
+
export interface ChatCreateParams {
|
|
444
|
+
/**
|
|
445
|
+
* Query param
|
|
446
|
+
*/
|
|
447
|
+
organization_id?: string | null;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Query param
|
|
451
|
+
*/
|
|
452
|
+
project_id?: string | null;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Body param: Indexes this session will retrieve from. Once set and the first
|
|
456
|
+
* message has been sent, the source set is locked for the session's lifetime.
|
|
457
|
+
* Leave null to create an unbound session.
|
|
458
|
+
*/
|
|
459
|
+
index_ids?: Array<string> | null;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export interface ChatRetrieveParams {
|
|
463
|
+
organization_id?: string | null;
|
|
464
|
+
|
|
465
|
+
project_id?: string | null;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export interface ChatListParams extends PaginatedCursorParams {
|
|
469
|
+
organization_id?: string | null;
|
|
470
|
+
|
|
471
|
+
project_id?: string | null;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export interface ChatDeleteParams {
|
|
475
|
+
organization_id?: string | null;
|
|
476
|
+
|
|
477
|
+
project_id?: string | null;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export interface ChatGetSummaryParams {
|
|
481
|
+
organization_id?: string | null;
|
|
482
|
+
|
|
483
|
+
project_id?: string | null;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export interface ChatStreamParams {
|
|
487
|
+
/**
|
|
488
|
+
* Body param: Indexes to retrieve data from.
|
|
489
|
+
*/
|
|
490
|
+
index_ids: Array<string>;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Body param: User message for this chat turn.
|
|
494
|
+
*/
|
|
495
|
+
prompt: string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Query param
|
|
499
|
+
*/
|
|
500
|
+
organization_id?: string | null;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Query param
|
|
504
|
+
*/
|
|
505
|
+
project_id?: string | null;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export declare namespace Chat {
|
|
509
|
+
export {
|
|
510
|
+
type ChatCreateResponse as ChatCreateResponse,
|
|
511
|
+
type ChatRetrieveResponse as ChatRetrieveResponse,
|
|
512
|
+
type ChatListResponse as ChatListResponse,
|
|
513
|
+
type ChatGetSummaryResponse as ChatGetSummaryResponse,
|
|
514
|
+
type ChatStreamResponse as ChatStreamResponse,
|
|
515
|
+
type ChatListResponsesPaginatedCursor as ChatListResponsesPaginatedCursor,
|
|
516
|
+
type ChatCreateParams as ChatCreateParams,
|
|
517
|
+
type ChatRetrieveParams as ChatRetrieveParams,
|
|
518
|
+
type ChatListParams as ChatListParams,
|
|
519
|
+
type ChatDeleteParams as ChatDeleteParams,
|
|
520
|
+
type ChatGetSummaryParams as ChatGetSummaryParams,
|
|
521
|
+
type ChatStreamParams as ChatStreamParams,
|
|
522
|
+
};
|
|
523
|
+
}
|
|
@@ -29,9 +29,6 @@ export class Directories extends APIResource {
|
|
|
29
29
|
/**
|
|
30
30
|
* Create a new directory within the specified project.
|
|
31
31
|
*
|
|
32
|
-
* If data_source_id is provided, validates that the data source exists and belongs
|
|
33
|
-
* to the same project.
|
|
34
|
-
*
|
|
35
32
|
* @example
|
|
36
33
|
* ```ts
|
|
37
34
|
* const directory = await client.beta.directories.create({
|
|
@@ -158,11 +155,6 @@ export interface DirectoryCreateResponse {
|
|
|
158
155
|
*/
|
|
159
156
|
created_at?: string | null;
|
|
160
157
|
|
|
161
|
-
/**
|
|
162
|
-
* Optional data source id the directory syncs from. Null if just manual uploads.
|
|
163
|
-
*/
|
|
164
|
-
data_source_id?: string | null;
|
|
165
|
-
|
|
166
158
|
/**
|
|
167
159
|
* Optional timestamp of when the directory was deleted. Null if not deleted.
|
|
168
160
|
*/
|
|
@@ -173,6 +165,21 @@ export interface DirectoryCreateResponse {
|
|
|
173
165
|
*/
|
|
174
166
|
description?: string | null;
|
|
175
167
|
|
|
168
|
+
/**
|
|
169
|
+
* When this directory expires and is eligible for cleanup.
|
|
170
|
+
*/
|
|
171
|
+
expires_at?: string | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Reserved system-managed metadata.
|
|
175
|
+
*/
|
|
176
|
+
system_metadata?: { [key: string]: unknown } | null;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'.
|
|
180
|
+
*/
|
|
181
|
+
type?: 'user' | 'index' | 'ephemeral' | 'system_ephemeral' | null;
|
|
182
|
+
|
|
176
183
|
/**
|
|
177
184
|
* Update datetime
|
|
178
185
|
*/
|
|
@@ -203,11 +210,6 @@ export interface DirectoryUpdateResponse {
|
|
|
203
210
|
*/
|
|
204
211
|
created_at?: string | null;
|
|
205
212
|
|
|
206
|
-
/**
|
|
207
|
-
* Optional data source id the directory syncs from. Null if just manual uploads.
|
|
208
|
-
*/
|
|
209
|
-
data_source_id?: string | null;
|
|
210
|
-
|
|
211
213
|
/**
|
|
212
214
|
* Optional timestamp of when the directory was deleted. Null if not deleted.
|
|
213
215
|
*/
|
|
@@ -218,6 +220,21 @@ export interface DirectoryUpdateResponse {
|
|
|
218
220
|
*/
|
|
219
221
|
description?: string | null;
|
|
220
222
|
|
|
223
|
+
/**
|
|
224
|
+
* When this directory expires and is eligible for cleanup.
|
|
225
|
+
*/
|
|
226
|
+
expires_at?: string | null;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Reserved system-managed metadata.
|
|
230
|
+
*/
|
|
231
|
+
system_metadata?: { [key: string]: unknown } | null;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'.
|
|
235
|
+
*/
|
|
236
|
+
type?: 'user' | 'index' | 'ephemeral' | 'system_ephemeral' | null;
|
|
237
|
+
|
|
221
238
|
/**
|
|
222
239
|
* Update datetime
|
|
223
240
|
*/
|
|
@@ -248,11 +265,6 @@ export interface DirectoryListResponse {
|
|
|
248
265
|
*/
|
|
249
266
|
created_at?: string | null;
|
|
250
267
|
|
|
251
|
-
/**
|
|
252
|
-
* Optional data source id the directory syncs from. Null if just manual uploads.
|
|
253
|
-
*/
|
|
254
|
-
data_source_id?: string | null;
|
|
255
|
-
|
|
256
268
|
/**
|
|
257
269
|
* Optional timestamp of when the directory was deleted. Null if not deleted.
|
|
258
270
|
*/
|
|
@@ -263,6 +275,21 @@ export interface DirectoryListResponse {
|
|
|
263
275
|
*/
|
|
264
276
|
description?: string | null;
|
|
265
277
|
|
|
278
|
+
/**
|
|
279
|
+
* When this directory expires and is eligible for cleanup.
|
|
280
|
+
*/
|
|
281
|
+
expires_at?: string | null;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Reserved system-managed metadata.
|
|
285
|
+
*/
|
|
286
|
+
system_metadata?: { [key: string]: unknown } | null;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'.
|
|
290
|
+
*/
|
|
291
|
+
type?: 'user' | 'index' | 'ephemeral' | 'system_ephemeral' | null;
|
|
292
|
+
|
|
266
293
|
/**
|
|
267
294
|
* Update datetime
|
|
268
295
|
*/
|
|
@@ -293,11 +320,6 @@ export interface DirectoryGetResponse {
|
|
|
293
320
|
*/
|
|
294
321
|
created_at?: string | null;
|
|
295
322
|
|
|
296
|
-
/**
|
|
297
|
-
* Optional data source id the directory syncs from. Null if just manual uploads.
|
|
298
|
-
*/
|
|
299
|
-
data_source_id?: string | null;
|
|
300
|
-
|
|
301
323
|
/**
|
|
302
324
|
* Optional timestamp of when the directory was deleted. Null if not deleted.
|
|
303
325
|
*/
|
|
@@ -308,6 +330,21 @@ export interface DirectoryGetResponse {
|
|
|
308
330
|
*/
|
|
309
331
|
description?: string | null;
|
|
310
332
|
|
|
333
|
+
/**
|
|
334
|
+
* When this directory expires and is eligible for cleanup.
|
|
335
|
+
*/
|
|
336
|
+
expires_at?: string | null;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Reserved system-managed metadata.
|
|
340
|
+
*/
|
|
341
|
+
system_metadata?: { [key: string]: unknown } | null;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'.
|
|
345
|
+
*/
|
|
346
|
+
type?: 'user' | 'index' | 'ephemeral' | 'system_ephemeral' | null;
|
|
347
|
+
|
|
311
348
|
/**
|
|
312
349
|
* Update datetime
|
|
313
350
|
*/
|
|
@@ -331,14 +368,25 @@ export interface DirectoryCreateParams {
|
|
|
331
368
|
project_id?: string | null;
|
|
332
369
|
|
|
333
370
|
/**
|
|
334
|
-
* Body param: Optional
|
|
371
|
+
* Body param: Optional description shown to users.
|
|
335
372
|
*/
|
|
336
|
-
|
|
373
|
+
description?: string | null;
|
|
337
374
|
|
|
338
375
|
/**
|
|
339
|
-
* Body param:
|
|
376
|
+
* Body param: When this directory expires. Required for ephemeral directories.
|
|
340
377
|
*/
|
|
341
|
-
|
|
378
|
+
expires_at?: string | null;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Body param: Reserved system-managed metadata.
|
|
382
|
+
*/
|
|
383
|
+
system_metadata?: { [key: string]: unknown } | null;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Body param: Directory type. Use 'ephemeral' for batch processing with automatic
|
|
387
|
+
* cleanup.
|
|
388
|
+
*/
|
|
389
|
+
type?: 'user' | 'ephemeral';
|
|
342
390
|
}
|
|
343
391
|
|
|
344
392
|
export interface DirectoryUpdateParams {
|
|
@@ -364,8 +412,6 @@ export interface DirectoryUpdateParams {
|
|
|
364
412
|
}
|
|
365
413
|
|
|
366
414
|
export interface DirectoryListParams extends PaginatedCursorParams {
|
|
367
|
-
data_source_id?: string | null;
|
|
368
|
-
|
|
369
415
|
include_deleted?: boolean;
|
|
370
416
|
|
|
371
417
|
name?: string | null;
|
|
@@ -373,6 +419,8 @@ export interface DirectoryListParams extends PaginatedCursorParams {
|
|
|
373
419
|
organization_id?: string | null;
|
|
374
420
|
|
|
375
421
|
project_id?: string | null;
|
|
422
|
+
|
|
423
|
+
type?: 'user' | 'index' | 'ephemeral' | null;
|
|
376
424
|
}
|
|
377
425
|
|
|
378
426
|
export interface DirectoryDeleteParams {
|