@llamaindex/llama-cloud 2.4.1 → 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 +84 -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.map +1 -1
- package/resources/beta/agent-data.d.ts.map +1 -1
- 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 +12 -0
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +12 -0
- 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 +3 -0
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +3 -0
- 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/beta.ts +94 -0
- 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 +41 -0
- 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
|
@@ -9,25 +9,21 @@ const uploads_1 = require("../../../internal/uploads.js");
|
|
|
9
9
|
const path_1 = require("../../../internal/utils/path.js");
|
|
10
10
|
class Files extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Update file metadata
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* Note: This endpoint uses directory_file_id (the internal ID). If you're trying
|
|
17
|
-
* to update a file by its unique_id, use the list endpoint with a filter to find
|
|
18
|
-
* the directory_file_id first.
|
|
12
|
+
* Update directory-file metadata by `directory_file_id`; set `directory_id` to
|
|
13
|
+
* move the file to a different directory. To resolve from `unique_id`, list with a
|
|
14
|
+
* filter first.
|
|
19
15
|
*
|
|
20
16
|
* @example
|
|
21
17
|
* ```ts
|
|
22
18
|
* const file = await client.beta.directories.files.update(
|
|
23
19
|
* 'directory_file_id',
|
|
24
|
-
* {
|
|
20
|
+
* { directory_id: 'directory_id' },
|
|
25
21
|
* );
|
|
26
22
|
* ```
|
|
27
23
|
*/
|
|
28
24
|
update(directoryFileID, params, options) {
|
|
29
|
-
const {
|
|
30
|
-
return this._client.patch((0, path_1.path) `/api/v1/beta/directories/${
|
|
25
|
+
const { directory_id, organization_id, project_id, ...body } = params;
|
|
26
|
+
return this._client.patch((0, path_1.path) `/api/v1/beta/directories/${directory_id}/files/${directoryFileID}`, {
|
|
31
27
|
query: { organization_id, project_id },
|
|
32
28
|
body,
|
|
33
29
|
...options,
|
|
@@ -51,11 +47,8 @@ class Files extends resource_1.APIResource {
|
|
|
51
47
|
return this._client.getAPIList((0, path_1.path) `/api/v1/beta/directories/${directoryID}/files`, (pagination_1.PaginatedCursor), { query, ...options });
|
|
52
48
|
}
|
|
53
49
|
/**
|
|
54
|
-
* Delete a file
|
|
55
|
-
*
|
|
56
|
-
* Note: This endpoint uses directory_file_id (the internal ID). If you're trying
|
|
57
|
-
* to delete a file by its unique_id, use the list endpoint with a filter to find
|
|
58
|
-
* the directory_file_id first.
|
|
50
|
+
* Delete a directory file by `directory_file_id`; to resolve from `unique_id`,
|
|
51
|
+
* list with a filter first.
|
|
59
52
|
*
|
|
60
53
|
* @example
|
|
61
54
|
* ```ts
|
|
@@ -74,10 +67,8 @@ class Files extends resource_1.APIResource {
|
|
|
74
67
|
});
|
|
75
68
|
}
|
|
76
69
|
/**
|
|
77
|
-
* Create a new file within the specified directory
|
|
78
|
-
*
|
|
79
|
-
* The directory must exist and belong to the project passed in. The file_id must
|
|
80
|
-
* be provided and exist in the project.
|
|
70
|
+
* Create a new file within the specified directory; the directory must exist in
|
|
71
|
+
* the project and `file_id` must reference an existing file.
|
|
81
72
|
*
|
|
82
73
|
* @example
|
|
83
74
|
* ```ts
|
|
@@ -96,9 +87,8 @@ class Files extends resource_1.APIResource {
|
|
|
96
87
|
});
|
|
97
88
|
}
|
|
98
89
|
/**
|
|
99
|
-
* Get a file by
|
|
100
|
-
*
|
|
101
|
-
* instead.
|
|
90
|
+
* Get a directory file by `directory_file_id`; to look up by `unique_id`, use the
|
|
91
|
+
* list endpoint with a filter.
|
|
102
92
|
*
|
|
103
93
|
* @example
|
|
104
94
|
* ```ts
|
|
@@ -116,11 +106,8 @@ class Files extends resource_1.APIResource {
|
|
|
116
106
|
});
|
|
117
107
|
}
|
|
118
108
|
/**
|
|
119
|
-
* Upload a file
|
|
120
|
-
*
|
|
121
|
-
* Uploads a file and creates a directory file entry in a single operation. If
|
|
122
|
-
* unique_id or display_name are not provided, they will be derived from the file
|
|
123
|
-
* metadata.
|
|
109
|
+
* Upload a file and create its directory entry in one call; `unique_id` /
|
|
110
|
+
* `display_name` default to values derived from file metadata.
|
|
124
111
|
*
|
|
125
112
|
* @example
|
|
126
113
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/resources/beta/directories/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/resources/beta/directories/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAAoG;AAEpG,0DAAyD;AAEzD,0DAAwE;AACxE,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,eAAuB,EACvB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,UAAU,eAAe,EAAE,EAAE;YACjG,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,WAAmB,EACnB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,4BAA4B,WAAW,QAAQ,EACnD,CAAA,4BAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OA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,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,4BAA4B,WAAW,eAAe,EAC1D,IAAA,qCAA2B,EAAC,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACxG,CAAC;IACJ,CAAC;CACF;AA1ID,sBA0IC"}
|
|
@@ -6,25 +6,21 @@ import { multipartFormRequestOptions } from "../../../internal/uploads.mjs";
|
|
|
6
6
|
import { path } from "../../../internal/utils/path.mjs";
|
|
7
7
|
export class Files extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Update file metadata
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Note: This endpoint uses directory_file_id (the internal ID). If you're trying
|
|
14
|
-
* to update a file by its unique_id, use the list endpoint with a filter to find
|
|
15
|
-
* the directory_file_id first.
|
|
9
|
+
* Update directory-file metadata by `directory_file_id`; set `directory_id` to
|
|
10
|
+
* move the file to a different directory. To resolve from `unique_id`, list with a
|
|
11
|
+
* filter first.
|
|
16
12
|
*
|
|
17
13
|
* @example
|
|
18
14
|
* ```ts
|
|
19
15
|
* const file = await client.beta.directories.files.update(
|
|
20
16
|
* 'directory_file_id',
|
|
21
|
-
* {
|
|
17
|
+
* { directory_id: 'directory_id' },
|
|
22
18
|
* );
|
|
23
19
|
* ```
|
|
24
20
|
*/
|
|
25
21
|
update(directoryFileID, params, options) {
|
|
26
|
-
const {
|
|
27
|
-
return this._client.patch(path `/api/v1/beta/directories/${
|
|
22
|
+
const { directory_id, organization_id, project_id, ...body } = params;
|
|
23
|
+
return this._client.patch(path `/api/v1/beta/directories/${directory_id}/files/${directoryFileID}`, {
|
|
28
24
|
query: { organization_id, project_id },
|
|
29
25
|
body,
|
|
30
26
|
...options,
|
|
@@ -48,11 +44,8 @@ export class Files extends APIResource {
|
|
|
48
44
|
return this._client.getAPIList(path `/api/v1/beta/directories/${directoryID}/files`, (PaginatedCursor), { query, ...options });
|
|
49
45
|
}
|
|
50
46
|
/**
|
|
51
|
-
* Delete a file
|
|
52
|
-
*
|
|
53
|
-
* Note: This endpoint uses directory_file_id (the internal ID). If you're trying
|
|
54
|
-
* to delete a file by its unique_id, use the list endpoint with a filter to find
|
|
55
|
-
* the directory_file_id first.
|
|
47
|
+
* Delete a directory file by `directory_file_id`; to resolve from `unique_id`,
|
|
48
|
+
* list with a filter first.
|
|
56
49
|
*
|
|
57
50
|
* @example
|
|
58
51
|
* ```ts
|
|
@@ -71,10 +64,8 @@ export class Files extends APIResource {
|
|
|
71
64
|
});
|
|
72
65
|
}
|
|
73
66
|
/**
|
|
74
|
-
* Create a new file within the specified directory
|
|
75
|
-
*
|
|
76
|
-
* The directory must exist and belong to the project passed in. The file_id must
|
|
77
|
-
* be provided and exist in the project.
|
|
67
|
+
* Create a new file within the specified directory; the directory must exist in
|
|
68
|
+
* the project and `file_id` must reference an existing file.
|
|
78
69
|
*
|
|
79
70
|
* @example
|
|
80
71
|
* ```ts
|
|
@@ -93,9 +84,8 @@ export class Files extends APIResource {
|
|
|
93
84
|
});
|
|
94
85
|
}
|
|
95
86
|
/**
|
|
96
|
-
* Get a file by
|
|
97
|
-
*
|
|
98
|
-
* instead.
|
|
87
|
+
* Get a directory file by `directory_file_id`; to look up by `unique_id`, use the
|
|
88
|
+
* list endpoint with a filter.
|
|
99
89
|
*
|
|
100
90
|
* @example
|
|
101
91
|
* ```ts
|
|
@@ -113,11 +103,8 @@ export class Files extends APIResource {
|
|
|
113
103
|
});
|
|
114
104
|
}
|
|
115
105
|
/**
|
|
116
|
-
* Upload a file
|
|
117
|
-
*
|
|
118
|
-
* Uploads a file and creates a directory file entry in a single operation. If
|
|
119
|
-
* unique_id or display_name are not provided, they will be derived from the file
|
|
120
|
-
* metadata.
|
|
106
|
+
* Upload a file and create its directory entry in one call; `unique_id` /
|
|
107
|
+
* `display_name` default to values derived from file metadata.
|
|
121
108
|
*
|
|
122
109
|
* @example
|
|
123
110
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../../src/resources/beta/directories/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../../src/resources/beta/directories/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAe,eAAe,EAA8B,qCAAiC;AAEpG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,2BAA2B,EAAE,sCAAkC;AACxE,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,eAAuB,EACvB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,4BAA4B,YAAY,UAAU,eAAe,EAAE,EAAE;YACjG,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,WAAmB,EACnB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,4BAA4B,WAAW,QAAQ,EACnD,CAAA,eAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,eAAuB,EAAE,MAAwB,EAAE,OAAwB;QAChF,M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,eAAe,EAC1D,2BAA2B,CAAC,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACxG,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/directories/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/directories/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,qCAAqC,GAC3C,0BAAsB;AACvB,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gCAAgC,GACtC,oBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/directories/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/directories/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,qCAAqC,GAC3C,yBAAsB;AACvB,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gCAAgC,GACtC,mBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/directories/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/directories/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAWZ,0BAAsB;AACvB,OAAO,EACL,KAAK,GAaN,oBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directories.d.mts","sourceRoot":"","sources":["../../src/resources/beta/directories.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"directories.d.mts","sourceRoot":"","sources":["../../src/resources/beta/directories.ts"],"names":[],"mappings":"AAEA,wCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directories.d.ts","sourceRoot":"","sources":["../../src/resources/beta/directories.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"directories.d.ts","sourceRoot":"","sources":["../../src/resources/beta/directories.ts"],"names":[],"mappings":"AAEA,uCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directories.mjs","sourceRoot":"","sources":["../../src/resources/beta/directories.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"directories.mjs","sourceRoot":"","sources":["../../src/resources/beta/directories.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,wCAAoC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { AgentData, type AgentDataDeleteResponse, type AgentDataAggregateResponse, type AgentDataDeleteByQueryResponse, type AgentDataCreateParams, type AgentDataUpdateParams, type AgentDataDeleteParams, type AgentDataAggregateParams, type AgentDataDeleteByQueryParams, type AgentDataGetParams, type AgentDataSearchParams, type AgentDataAggregateResponsesPaginatedCursorPost, type AgentDataPaginatedCursorPost, } from "./agent-data.mjs";
|
|
2
2
|
export { Batch, type BatchCreateResponse, type BatchListResponse, type BatchCancelResponse, type BatchGetStatusResponse, type BatchCreateParams, type BatchListParams, type BatchCancelParams, type BatchGetStatusParams, type BatchListResponsesPaginatedBatchItems, } from "./batch/index.mjs";
|
|
3
3
|
export { Beta } from "./beta.mjs";
|
|
4
|
+
export { Chat, type ChatCreateResponse, type ChatRetrieveResponse, type ChatListResponse, type ChatGetSummaryResponse, type ChatStreamResponse, type ChatCreateParams, type ChatRetrieveParams, type ChatListParams, type ChatDeleteParams, type ChatGetSummaryParams, type ChatStreamParams, type ChatListResponsesPaginatedCursor, } from "./chat.mjs";
|
|
4
5
|
export { Directories, type DirectoryCreateResponse, type DirectoryUpdateResponse, type DirectoryListResponse, type DirectoryGetResponse, type DirectoryCreateParams, type DirectoryUpdateParams, type DirectoryListParams, type DirectoryDeleteParams, type DirectoryGetParams, type DirectoryListResponsesPaginatedCursor, } from "./directories/index.mjs";
|
|
6
|
+
export { Indexes, type IndexCreateResponse, type IndexListResponse, type IndexGetResponse, type IndexSyncResponse, type IndexCreateParams, type IndexListParams, type IndexDeleteParams, type IndexGetParams, type IndexSyncParams, type IndexListResponsesPaginatedCursor, } from "./indexes.mjs";
|
|
7
|
+
export { Retrieval, type RetrievalRetrieveResponse, type RetrievalFindResponse, type RetrievalGrepResponse, type RetrievalReadResponse, type RetrievalRetrieveParams, type RetrievalFindParams, type RetrievalGrepParams, type RetrievalReadParams, type RetrievalFindResponsesPaginatedCursorPost, type RetrievalGrepResponsesPaginatedCursorPost, } from "./retrieval.mjs";
|
|
5
8
|
export { Sheets, type SheetsJob, type SheetsParsingConfig, type SheetDeleteJobResponse, type SheetCreateParams, type SheetListParams, type SheetDeleteJobParams, type SheetGetParams, type SheetGetResultTableParams, type SheetsJobsPaginatedCursor, } from "./sheets.mjs";
|
|
6
9
|
export { Split, type SplitCategory, type SplitDocumentInput, type SplitResultResponse, type SplitSegmentResponse, type SplitCreateResponse, type SplitListResponse, type SplitGetResponse, type SplitCreateParams, type SplitListParams, type SplitGetParams, type SplitListResponsesPaginatedCursor, } from "./split.mjs";
|
|
7
10
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8CAA8C,EACnD,KAAK,4BAA4B,GAClC,yBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,qCAAqC,GAC3C,0BAAsB;AACvB,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,IAAI,EACJ,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,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iCAAiC,GACvC,oBAAgB"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { AgentData, type AgentDataDeleteResponse, type AgentDataAggregateResponse, type AgentDataDeleteByQueryResponse, type AgentDataCreateParams, type AgentDataUpdateParams, type AgentDataDeleteParams, type AgentDataAggregateParams, type AgentDataDeleteByQueryParams, type AgentDataGetParams, type AgentDataSearchParams, type AgentDataAggregateResponsesPaginatedCursorPost, type AgentDataPaginatedCursorPost, } from "./agent-data.js";
|
|
2
2
|
export { Batch, type BatchCreateResponse, type BatchListResponse, type BatchCancelResponse, type BatchGetStatusResponse, type BatchCreateParams, type BatchListParams, type BatchCancelParams, type BatchGetStatusParams, type BatchListResponsesPaginatedBatchItems, } from "./batch/index.js";
|
|
3
3
|
export { Beta } from "./beta.js";
|
|
4
|
+
export { Chat, type ChatCreateResponse, type ChatRetrieveResponse, type ChatListResponse, type ChatGetSummaryResponse, type ChatStreamResponse, type ChatCreateParams, type ChatRetrieveParams, type ChatListParams, type ChatDeleteParams, type ChatGetSummaryParams, type ChatStreamParams, type ChatListResponsesPaginatedCursor, } from "./chat.js";
|
|
4
5
|
export { Directories, type DirectoryCreateResponse, type DirectoryUpdateResponse, type DirectoryListResponse, type DirectoryGetResponse, type DirectoryCreateParams, type DirectoryUpdateParams, type DirectoryListParams, type DirectoryDeleteParams, type DirectoryGetParams, type DirectoryListResponsesPaginatedCursor, } from "./directories/index.js";
|
|
6
|
+
export { Indexes, type IndexCreateResponse, type IndexListResponse, type IndexGetResponse, type IndexSyncResponse, type IndexCreateParams, type IndexListParams, type IndexDeleteParams, type IndexGetParams, type IndexSyncParams, type IndexListResponsesPaginatedCursor, } from "./indexes.js";
|
|
7
|
+
export { Retrieval, type RetrievalRetrieveResponse, type RetrievalFindResponse, type RetrievalGrepResponse, type RetrievalReadResponse, type RetrievalRetrieveParams, type RetrievalFindParams, type RetrievalGrepParams, type RetrievalReadParams, type RetrievalFindResponsesPaginatedCursorPost, type RetrievalGrepResponsesPaginatedCursorPost, } from "./retrieval.js";
|
|
5
8
|
export { Sheets, type SheetsJob, type SheetsParsingConfig, type SheetDeleteJobResponse, type SheetCreateParams, type SheetListParams, type SheetDeleteJobParams, type SheetGetParams, type SheetGetResultTableParams, type SheetsJobsPaginatedCursor, } from "./sheets.js";
|
|
6
9
|
export { Split, type SplitCategory, type SplitDocumentInput, type SplitResultResponse, type SplitSegmentResponse, type SplitCreateResponse, type SplitListResponse, type SplitGetResponse, type SplitCreateParams, type SplitListParams, type SplitGetParams, type SplitListResponsesPaginatedCursor, } from "./split.js";
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8CAA8C,EACnD,KAAK,4BAA4B,GAClC,wBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAA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AAoB,EACzB,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,oBAAiB;AAClB,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iCAAiC,GACvC,mBAAgB"}
|
package/resources/beta/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Split = exports.Sheets = exports.Directories = exports.Beta = exports.Batch = exports.AgentData = void 0;
|
|
4
|
+
exports.Split = exports.Sheets = exports.Retrieval = exports.Indexes = exports.Directories = exports.Chat = exports.Beta = exports.Batch = exports.AgentData = void 0;
|
|
5
5
|
var agent_data_1 = require("./agent-data.js");
|
|
6
6
|
Object.defineProperty(exports, "AgentData", { enumerable: true, get: function () { return agent_data_1.AgentData; } });
|
|
7
7
|
var index_1 = require("./batch/index.js");
|
|
8
8
|
Object.defineProperty(exports, "Batch", { enumerable: true, get: function () { return index_1.Batch; } });
|
|
9
9
|
var beta_1 = require("./beta.js");
|
|
10
10
|
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
|
|
11
|
+
var chat_1 = require("./chat.js");
|
|
12
|
+
Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } });
|
|
11
13
|
var index_2 = require("./directories/index.js");
|
|
12
14
|
Object.defineProperty(exports, "Directories", { enumerable: true, get: function () { return index_2.Directories; } });
|
|
15
|
+
var indexes_1 = require("./indexes.js");
|
|
16
|
+
Object.defineProperty(exports, "Indexes", { enumerable: true, get: function () { return indexes_1.Indexes; } });
|
|
17
|
+
var retrieval_1 = require("./retrieval.js");
|
|
18
|
+
Object.defineProperty(exports, "Retrieval", { enumerable: true, get: function () { return retrieval_1.Retrieval; } });
|
|
13
19
|
var sheets_1 = require("./sheets.js");
|
|
14
20
|
Object.defineProperty(exports, "Sheets", { enumerable: true, get: function () { return sheets_1.Sheets; } });
|
|
15
21
|
var split_1 = require("./split.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAcsB;AAbpB,uGAAA,SAAS,OAAA;AAcX,0CAWuB;AAVrB,8FAAA,KAAK,OAAA;AAWP,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,gDAY6B;AAX3B,oGAAA,WAAW,OAAA;AAYb,sCAWkB;AAVhB,gGAAA,MAAM,OAAA;AAWR,oCAaiB;AAZf,8FAAA,KAAK,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAcsB;AAbpB,uGAAA,SAAS,OAAA;AAcX,0CAWuB;AAVrB,8FAAA,KAAK,OAAA;AAWP,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,kCAcgB;AAbd,4FAAA,IAAI,OAAA;AAcN,gDAY6B;AAX3B,oGAAA,WAAW,OAAA;AAYb,wCAYmB;AAXjB,kGAAA,OAAO,OAAA;AAYT,4CAYqB;AAXnB,sGAAA,SAAS,OAAA;AAYX,sCAWkB;AAVhB,gGAAA,MAAM,OAAA;AAWR,oCAaiB;AAZf,8FAAA,KAAK,OAAA"}
|
package/resources/beta/index.mjs
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
export { AgentData, } from "./agent-data.mjs";
|
|
3
3
|
export { Batch, } from "./batch/index.mjs";
|
|
4
4
|
export { Beta } from "./beta.mjs";
|
|
5
|
+
export { Chat, } from "./chat.mjs";
|
|
5
6
|
export { Directories, } from "./directories/index.mjs";
|
|
7
|
+
export { Indexes, } from "./indexes.mjs";
|
|
8
|
+
export { Retrieval, } from "./retrieval.mjs";
|
|
6
9
|
export { Sheets, } from "./sheets.mjs";
|
|
7
10
|
export { Split, } from "./split.mjs";
|
|
8
11
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAaV,yBAAqB;AACtB,OAAO,EACL,KAAK,GAUN,0BAAsB;AACvB,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,IAAI,GAaL,mBAAe;AAChB,OAAO,EACL,WAAW,GAWZ,gCAA4B;AAC7B,OAAO,EACL,OAAO,GAWR,sBAAkB;AACnB,OAAO,EACL,SAAS,GAWV,wBAAoB;AACrB,OAAO,EACL,MAAM,GAUP,qBAAiB;AAClB,OAAO,EACL,KAAK,GAYN,oBAAgB"}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Indexes extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a searchable index over a source directory.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const index = await client.beta.indexes.create({
|
|
12
|
+
* source_directory_id: 'dir-abc123',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(params: IndexCreateParams, options?: RequestOptions): APIPromise<IndexCreateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* List indexes for the current project.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const indexListResponse of client.beta.indexes.list()) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(query?: IndexListParams | null | undefined, options?: RequestOptions): PagePromise<IndexListResponsesPaginatedCursor, IndexListResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete an index.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.beta.indexes.delete('index_id');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
delete(indexID: string, params?: IndexDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Get an index by ID.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const index = await client.beta.indexes.get('index_id');
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
get(indexID: string, query?: IndexGetParams | null | undefined, options?: RequestOptions): APIPromise<IndexGetResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Trigger a sync and export for an existing index, re-parsing changed files and
|
|
49
|
+
* exporting updated chunks.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response = await client.beta.indexes.sync('index_id');
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
sync(indexID: string, params?: IndexSyncParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
57
|
+
}
|
|
58
|
+
export type IndexListResponsesPaginatedCursor = PaginatedCursor<IndexListResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* A searchable index over a directory of documents.
|
|
61
|
+
*/
|
|
62
|
+
export interface IndexCreateResponse {
|
|
63
|
+
/**
|
|
64
|
+
* Unique identifier
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
/**
|
|
68
|
+
* ID of the export configuration.
|
|
69
|
+
*/
|
|
70
|
+
export_config_id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Index name.
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* Project this index belongs to.
|
|
77
|
+
*/
|
|
78
|
+
project_id: string;
|
|
79
|
+
/**
|
|
80
|
+
* ID of the source directory.
|
|
81
|
+
*/
|
|
82
|
+
source_directory_id: string;
|
|
83
|
+
/**
|
|
84
|
+
* ID of the sync configuration.
|
|
85
|
+
*/
|
|
86
|
+
sync_config_id: string;
|
|
87
|
+
/**
|
|
88
|
+
* Creation datetime
|
|
89
|
+
*/
|
|
90
|
+
created_at?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Index description.
|
|
93
|
+
*/
|
|
94
|
+
description?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Last export time.
|
|
97
|
+
*/
|
|
98
|
+
last_exported_at?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Last sync time.
|
|
101
|
+
*/
|
|
102
|
+
last_synced_at?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Build state and diagnostic info.
|
|
105
|
+
*/
|
|
106
|
+
metadata?: {
|
|
107
|
+
[key: string]: unknown;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Update datetime
|
|
111
|
+
*/
|
|
112
|
+
updated_at?: string | null;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* A searchable index over a directory of documents.
|
|
116
|
+
*/
|
|
117
|
+
export interface IndexListResponse {
|
|
118
|
+
/**
|
|
119
|
+
* Unique identifier
|
|
120
|
+
*/
|
|
121
|
+
id: string;
|
|
122
|
+
/**
|
|
123
|
+
* ID of the export configuration.
|
|
124
|
+
*/
|
|
125
|
+
export_config_id: string;
|
|
126
|
+
/**
|
|
127
|
+
* Index name.
|
|
128
|
+
*/
|
|
129
|
+
name: string;
|
|
130
|
+
/**
|
|
131
|
+
* Project this index belongs to.
|
|
132
|
+
*/
|
|
133
|
+
project_id: string;
|
|
134
|
+
/**
|
|
135
|
+
* ID of the source directory.
|
|
136
|
+
*/
|
|
137
|
+
source_directory_id: string;
|
|
138
|
+
/**
|
|
139
|
+
* ID of the sync configuration.
|
|
140
|
+
*/
|
|
141
|
+
sync_config_id: string;
|
|
142
|
+
/**
|
|
143
|
+
* Creation datetime
|
|
144
|
+
*/
|
|
145
|
+
created_at?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Index description.
|
|
148
|
+
*/
|
|
149
|
+
description?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* Last export time.
|
|
152
|
+
*/
|
|
153
|
+
last_exported_at?: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* Last sync time.
|
|
156
|
+
*/
|
|
157
|
+
last_synced_at?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* Build state and diagnostic info.
|
|
160
|
+
*/
|
|
161
|
+
metadata?: {
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Update datetime
|
|
166
|
+
*/
|
|
167
|
+
updated_at?: string | null;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* A searchable index over a directory of documents.
|
|
171
|
+
*/
|
|
172
|
+
export interface IndexGetResponse {
|
|
173
|
+
/**
|
|
174
|
+
* Unique identifier
|
|
175
|
+
*/
|
|
176
|
+
id: string;
|
|
177
|
+
/**
|
|
178
|
+
* ID of the export configuration.
|
|
179
|
+
*/
|
|
180
|
+
export_config_id: string;
|
|
181
|
+
/**
|
|
182
|
+
* Index name.
|
|
183
|
+
*/
|
|
184
|
+
name: string;
|
|
185
|
+
/**
|
|
186
|
+
* Project this index belongs to.
|
|
187
|
+
*/
|
|
188
|
+
project_id: string;
|
|
189
|
+
/**
|
|
190
|
+
* ID of the source directory.
|
|
191
|
+
*/
|
|
192
|
+
source_directory_id: string;
|
|
193
|
+
/**
|
|
194
|
+
* ID of the sync configuration.
|
|
195
|
+
*/
|
|
196
|
+
sync_config_id: string;
|
|
197
|
+
/**
|
|
198
|
+
* Creation datetime
|
|
199
|
+
*/
|
|
200
|
+
created_at?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Index description.
|
|
203
|
+
*/
|
|
204
|
+
description?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Last export time.
|
|
207
|
+
*/
|
|
208
|
+
last_exported_at?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Last sync time.
|
|
211
|
+
*/
|
|
212
|
+
last_synced_at?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Build state and diagnostic info.
|
|
215
|
+
*/
|
|
216
|
+
metadata?: {
|
|
217
|
+
[key: string]: unknown;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Update datetime
|
|
221
|
+
*/
|
|
222
|
+
updated_at?: string | null;
|
|
223
|
+
}
|
|
224
|
+
export type IndexSyncResponse = unknown;
|
|
225
|
+
export interface IndexCreateParams {
|
|
226
|
+
/**
|
|
227
|
+
* Body param: ID of the source directory containing your documents.
|
|
228
|
+
*/
|
|
229
|
+
source_directory_id: string;
|
|
230
|
+
/**
|
|
231
|
+
* Query param
|
|
232
|
+
*/
|
|
233
|
+
organization_id?: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* Query param
|
|
236
|
+
*/
|
|
237
|
+
project_id?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Body param: Optional description of the index.
|
|
240
|
+
*/
|
|
241
|
+
description?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Body param: Optional display name for the index. If omitted, the index is named
|
|
244
|
+
* after the source directory.
|
|
245
|
+
*/
|
|
246
|
+
name?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Body param: Product configurations for syncing. Omit to use a default parse
|
|
249
|
+
* configuration. Include an explicit entry per product type (e.g. parse, extract)
|
|
250
|
+
* to override the default.
|
|
251
|
+
*/
|
|
252
|
+
products?: Array<IndexCreateParams.Product> | null;
|
|
253
|
+
/**
|
|
254
|
+
* Body param: Attachment kinds to store alongside parsed output. Each entry must
|
|
255
|
+
* be one of: screenshots, items. For example, ['screenshots'] renders and stores
|
|
256
|
+
* per-page screenshots; ['items'] stores structured items with bounding boxes.
|
|
257
|
+
* Omit or pass an empty list to skip attachments.
|
|
258
|
+
*/
|
|
259
|
+
store_attachments?: Array<string> | null;
|
|
260
|
+
/**
|
|
261
|
+
* Body param: How often to re-run the sync. One of: manual, daily,
|
|
262
|
+
* on_source_change. Defaults to manual.
|
|
263
|
+
*/
|
|
264
|
+
sync_frequency?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Body param: Vector export destination for the index. 'DEFAULT' exports to the
|
|
267
|
+
* managed vector DB destination resolved from configuration. 'DISABLED' skips
|
|
268
|
+
* vector export — the export destination falls back to 'Download'.
|
|
269
|
+
*/
|
|
270
|
+
vector_target?: 'DEFAULT' | 'DISABLED';
|
|
271
|
+
}
|
|
272
|
+
export declare namespace IndexCreateParams {
|
|
273
|
+
/**
|
|
274
|
+
* A product configuration to include in an index's sync.
|
|
275
|
+
*
|
|
276
|
+
* Structurally mirrors `directory_sync.SyncProductEntryRequest` but is a distinct
|
|
277
|
+
* class so the Index API surface stays SDK-gen-isolated from directory-sync
|
|
278
|
+
* internals. Translation between the two happens in `index/api_utils.py`.
|
|
279
|
+
*/
|
|
280
|
+
interface Product {
|
|
281
|
+
/**
|
|
282
|
+
* ID of the product configuration.
|
|
283
|
+
*/
|
|
284
|
+
product_config_id: string;
|
|
285
|
+
/**
|
|
286
|
+
* Product type. One of: parse, extract.
|
|
287
|
+
*/
|
|
288
|
+
product_type: string;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
export interface IndexListParams extends PaginatedCursorParams {
|
|
292
|
+
organization_id?: string | null;
|
|
293
|
+
project_id?: string | null;
|
|
294
|
+
source_directory_id?: string | null;
|
|
295
|
+
}
|
|
296
|
+
export interface IndexDeleteParams {
|
|
297
|
+
organization_id?: string | null;
|
|
298
|
+
project_id?: string | null;
|
|
299
|
+
}
|
|
300
|
+
export interface IndexGetParams {
|
|
301
|
+
organization_id?: string | null;
|
|
302
|
+
project_id?: string | null;
|
|
303
|
+
}
|
|
304
|
+
export interface IndexSyncParams {
|
|
305
|
+
organization_id?: string | null;
|
|
306
|
+
project_id?: string | null;
|
|
307
|
+
}
|
|
308
|
+
export declare namespace Indexes {
|
|
309
|
+
export { type IndexCreateResponse as IndexCreateResponse, type IndexListResponse as IndexListResponse, type IndexGetResponse as IndexGetResponse, type IndexSyncResponse as IndexSyncResponse, type IndexListResponsesPaginatedCursor as IndexListResponsesPaginatedCursor, type IndexCreateParams as IndexCreateParams, type IndexListParams as IndexListParams, type IndexDeleteParams as IndexDeleteParams, type IndexGetParams as IndexGetParams, type IndexSyncParams as IndexSyncParams, };
|
|
310
|
+
}
|
|
311
|
+
//# sourceMappingURL=indexes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexes.d.mts","sourceRoot":"","sources":["../../src/resources/beta/indexes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,kCAA8B;AAEjG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAK5F;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG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