@studyfetch/sdk 1.24.0 → 1.26.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 +18 -0
- package/package.json +1 -1
- package/resources/v1/assignment-grader.d.mts +34 -1
- package/resources/v1/assignment-grader.d.mts.map +1 -1
- package/resources/v1/assignment-grader.d.ts +34 -1
- package/resources/v1/assignment-grader.d.ts.map +1 -1
- package/resources/v1/assignment-grader.js +15 -0
- package/resources/v1/assignment-grader.js.map +1 -1
- package/resources/v1/assignment-grader.mjs +15 -0
- package/resources/v1/assignment-grader.mjs.map +1 -1
- package/resources/v1/chat/chat.d.mts +62 -1
- package/resources/v1/chat/chat.d.mts.map +1 -1
- package/resources/v1/chat/chat.d.ts +62 -1
- package/resources/v1/chat/chat.d.ts.map +1 -1
- package/resources/v1/chat/chat.js.map +1 -1
- package/resources/v1/chat/chat.mjs.map +1 -1
- package/resources/v1/chat/index.d.mts +1 -1
- package/resources/v1/chat/index.d.mts.map +1 -1
- package/resources/v1/chat/index.d.ts +1 -1
- package/resources/v1/chat/index.d.ts.map +1 -1
- package/resources/v1/chat/index.js.map +1 -1
- package/resources/v1/chat/index.mjs +1 -1
- package/resources/v1/chat/index.mjs.map +1 -1
- package/resources/v1/components.d.mts +62 -4
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +62 -4
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/data-analyst/data-analyst.d.mts +156 -0
- package/resources/v1/data-analyst/data-analyst.d.mts.map +1 -0
- package/resources/v1/data-analyst/data-analyst.d.ts +156 -0
- package/resources/v1/data-analyst/data-analyst.d.ts.map +1 -0
- package/resources/v1/data-analyst/data-analyst.js +99 -0
- package/resources/v1/data-analyst/data-analyst.js.map +1 -0
- package/resources/v1/data-analyst/data-analyst.mjs +94 -0
- package/resources/v1/data-analyst/data-analyst.mjs.map +1 -0
- package/resources/v1/data-analyst/index.d.mts +4 -0
- package/resources/v1/data-analyst/index.d.mts.map +1 -0
- package/resources/v1/data-analyst/index.d.ts +4 -0
- package/resources/v1/data-analyst/index.d.ts.map +1 -0
- package/resources/v1/data-analyst/index.js +11 -0
- package/resources/v1/data-analyst/index.js.map +1 -0
- package/resources/v1/data-analyst/index.mjs +5 -0
- package/resources/v1/data-analyst/index.mjs.map +1 -0
- package/resources/v1/data-analyst/sessions.d.mts +28 -0
- package/resources/v1/data-analyst/sessions.d.mts.map +1 -0
- package/resources/v1/data-analyst/sessions.d.ts +28 -0
- package/resources/v1/data-analyst/sessions.d.ts.map +1 -0
- package/resources/v1/data-analyst/sessions.js +38 -0
- package/resources/v1/data-analyst/sessions.js.map +1 -0
- package/resources/v1/data-analyst/sessions.mjs +34 -0
- package/resources/v1/data-analyst/sessions.mjs.map +1 -0
- package/resources/v1/data-analyst/test.d.mts +20 -0
- package/resources/v1/data-analyst/test.d.mts.map +1 -0
- package/resources/v1/data-analyst/test.d.ts +20 -0
- package/resources/v1/data-analyst/test.d.ts.map +1 -0
- package/resources/v1/data-analyst/test.js +34 -0
- package/resources/v1/data-analyst/test.js.map +1 -0
- package/resources/v1/data-analyst/test.mjs +30 -0
- package/resources/v1/data-analyst/test.mjs.map +1 -0
- package/resources/v1/data-analyst.d.mts +2 -0
- package/resources/v1/data-analyst.d.mts.map +1 -0
- package/resources/v1/data-analyst.d.ts +2 -0
- package/resources/v1/data-analyst.d.ts.map +1 -0
- package/resources/v1/data-analyst.js +6 -0
- package/resources/v1/data-analyst.js.map +1 -0
- package/resources/v1/data-analyst.mjs +3 -0
- package/resources/v1/data-analyst.mjs.map +1 -0
- package/resources/v1/index.d.mts +3 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +15 -13
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/bulk.d.mts +30 -2
- package/resources/v1/materials/bulk.d.mts.map +1 -1
- package/resources/v1/materials/bulk.d.ts +30 -2
- package/resources/v1/materials/bulk.d.ts.map +1 -1
- package/resources/v1/materials/bulk.js +8 -7
- package/resources/v1/materials/bulk.js.map +1 -1
- package/resources/v1/materials/bulk.mjs +8 -7
- package/resources/v1/materials/bulk.mjs.map +1 -1
- package/resources/v1/materials/index.d.mts +4 -4
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +4 -4
- package/resources/v1/materials/index.d.ts.map +1 -1
- package/resources/v1/materials/index.js.map +1 -1
- package/resources/v1/materials/index.mjs +2 -2
- package/resources/v1/materials/index.mjs.map +1 -1
- package/resources/v1/materials/materials.d.mts +270 -43
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +270 -43
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +64 -44
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +66 -46
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/materials/test.d.mts +111 -8
- package/resources/v1/materials/test.d.mts.map +1 -1
- package/resources/v1/materials/test.d.ts +111 -8
- package/resources/v1/materials/test.d.ts.map +1 -1
- package/resources/v1/materials/test.js +20 -21
- package/resources/v1/materials/test.js.map +1 -1
- package/resources/v1/materials/test.mjs +20 -21
- package/resources/v1/materials/test.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +149 -5
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +149 -5
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +53 -13
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +53 -13
- package/resources/v1/materials/upload.mjs.map +1 -1
- package/resources/v1/usage/analyst.d.mts +51 -6
- package/resources/v1/usage/analyst.d.mts.map +1 -1
- package/resources/v1/usage/analyst.d.ts +51 -6
- package/resources/v1/usage/analyst.d.ts.map +1 -1
- package/resources/v1/usage/analyst.js +8 -9
- package/resources/v1/usage/analyst.js.map +1 -1
- package/resources/v1/usage/analyst.mjs +8 -9
- package/resources/v1/usage/analyst.mjs.map +1 -1
- package/resources/v1/usage/index.d.mts +1 -1
- package/resources/v1/usage/index.d.mts.map +1 -1
- package/resources/v1/usage/index.d.ts +1 -1
- package/resources/v1/usage/index.d.ts.map +1 -1
- package/resources/v1/usage/index.js.map +1 -1
- package/resources/v1/usage/index.mjs +1 -1
- package/resources/v1/usage/index.mjs.map +1 -1
- package/resources/v1/usage/usage.d.mts +2 -2
- package/resources/v1/usage/usage.d.mts.map +1 -1
- package/resources/v1/usage/usage.d.ts +2 -2
- package/resources/v1/usage/usage.d.ts.map +1 -1
- package/resources/v1/usage/usage.js.map +1 -1
- package/resources/v1/usage/usage.mjs +1 -1
- package/resources/v1/usage/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +19 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +19 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +19 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +20 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/assignment-grader.ts +47 -1
- package/src/resources/v1/chat/chat.ts +74 -0
- package/src/resources/v1/chat/index.ts +7 -1
- package/src/resources/v1/components.ts +76 -0
- package/src/resources/v1/data-analyst/data-analyst.ts +233 -0
- package/src/resources/v1/data-analyst/index.ts +10 -0
- package/src/resources/v1/data-analyst/sessions.ts +46 -0
- package/src/resources/v1/data-analyst/test.ts +34 -0
- package/src/resources/v1/data-analyst.ts +3 -0
- package/src/resources/v1/index.ts +16 -0
- package/src/resources/v1/materials/bulk.ts +36 -7
- package/src/resources/v1/materials/index.ts +28 -3
- package/src/resources/v1/materials/materials.ts +364 -72
- package/src/resources/v1/materials/test.ts +141 -25
- package/src/resources/v1/materials/upload.ts +200 -13
- package/src/resources/v1/usage/analyst.ts +80 -10
- package/src/resources/v1/usage/index.ts +7 -1
- package/src/resources/v1/usage/usage.ts +14 -2
- package/src/resources/v1/v1.ts +60 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,11 +3,39 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class Bulk extends APIResource {
|
|
5
5
|
/**
|
|
6
|
+
* Bulk move materials to a different folder
|
|
7
|
+
*
|
|
6
8
|
* @example
|
|
7
9
|
* ```ts
|
|
8
|
-
* await client.v1.materials.bulk.move(
|
|
10
|
+
* const response = await client.v1.materials.bulk.move({
|
|
11
|
+
* folderId: 'folderId',
|
|
12
|
+
* materialIds: ['string'],
|
|
13
|
+
* });
|
|
9
14
|
* ```
|
|
10
15
|
*/
|
|
11
|
-
move(options?: RequestOptions): APIPromise<
|
|
16
|
+
move(body: BulkMoveParams, options?: RequestOptions): APIPromise<BulkMoveResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface BulkMoveResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Number of materials moved
|
|
21
|
+
*/
|
|
22
|
+
movedCount: number;
|
|
23
|
+
/**
|
|
24
|
+
* Operation success status
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface BulkMoveParams {
|
|
29
|
+
/**
|
|
30
|
+
* Target folder ID (null for root)
|
|
31
|
+
*/
|
|
32
|
+
folderId: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Array of material IDs to move
|
|
35
|
+
*/
|
|
36
|
+
materialIds: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Bulk {
|
|
39
|
+
export { type BulkMoveResponse as BulkMoveResponse, type BulkMoveParams as BulkMoveParams };
|
|
12
40
|
}
|
|
13
41
|
//# sourceMappingURL=bulk.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -3,11 +3,39 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
4
|
export declare class Bulk extends APIResource {
|
|
5
5
|
/**
|
|
6
|
+
* Bulk move materials to a different folder
|
|
7
|
+
*
|
|
6
8
|
* @example
|
|
7
9
|
* ```ts
|
|
8
|
-
* await client.v1.materials.bulk.move(
|
|
10
|
+
* const response = await client.v1.materials.bulk.move({
|
|
11
|
+
* folderId: 'folderId',
|
|
12
|
+
* materialIds: ['string'],
|
|
13
|
+
* });
|
|
9
14
|
* ```
|
|
10
15
|
*/
|
|
11
|
-
move(options?: RequestOptions): APIPromise<
|
|
16
|
+
move(body: BulkMoveParams, options?: RequestOptions): APIPromise<BulkMoveResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface BulkMoveResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Number of materials moved
|
|
21
|
+
*/
|
|
22
|
+
movedCount: number;
|
|
23
|
+
/**
|
|
24
|
+
* Operation success status
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface BulkMoveParams {
|
|
29
|
+
/**
|
|
30
|
+
* Target folder ID (null for root)
|
|
31
|
+
*/
|
|
32
|
+
folderId: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Array of material IDs to move
|
|
35
|
+
*/
|
|
36
|
+
materialIds: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Bulk {
|
|
39
|
+
export { type BulkMoveResponse as BulkMoveResponse, type BulkMoveParams as BulkMoveParams };
|
|
12
40
|
}
|
|
13
41
|
//# sourceMappingURL=bulk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -3,19 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Bulk = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
7
6
|
class Bulk extends resource_1.APIResource {
|
|
8
7
|
/**
|
|
8
|
+
* Bulk move materials to a different folder
|
|
9
|
+
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
11
|
-
* await client.v1.materials.bulk.move(
|
|
12
|
+
* const response = await client.v1.materials.bulk.move({
|
|
13
|
+
* folderId: 'folderId',
|
|
14
|
+
* materialIds: ['string'],
|
|
15
|
+
* });
|
|
12
16
|
* ```
|
|
13
17
|
*/
|
|
14
|
-
move(options) {
|
|
15
|
-
return this._client.post('/api/v1/materials/bulk/move', {
|
|
16
|
-
...options,
|
|
17
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
18
|
-
});
|
|
18
|
+
move(body, options) {
|
|
19
|
+
return this._client.post('/api/v1/materials/bulk/move', { body, ...options });
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
exports.Bulk = Bulk;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAfD,oBAeC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
3
|
export class Bulk extends APIResource {
|
|
5
4
|
/**
|
|
5
|
+
* Bulk move materials to a different folder
|
|
6
|
+
*
|
|
6
7
|
* @example
|
|
7
8
|
* ```ts
|
|
8
|
-
* await client.v1.materials.bulk.move(
|
|
9
|
+
* const response = await client.v1.materials.bulk.move({
|
|
10
|
+
* folderId: 'folderId',
|
|
11
|
+
* materialIds: ['string'],
|
|
12
|
+
* });
|
|
9
13
|
* ```
|
|
10
14
|
*/
|
|
11
|
-
move(options) {
|
|
12
|
-
return this._client.post('/api/v1/materials/bulk/move', {
|
|
13
|
-
...options,
|
|
14
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
15
|
-
});
|
|
15
|
+
move(body, options) {
|
|
16
|
+
return this._client.post('/api/v1/materials/bulk/move', { body, ...options });
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
//# sourceMappingURL=bulk.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Bulk } from "./bulk.mjs";
|
|
2
|
-
export { Materials, type Material, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, type MaterialSearchParams, } from "./materials.mjs";
|
|
3
|
-
export { Test } from "./test.mjs";
|
|
4
|
-
export { Upload, type UploadUploadFileParams, type UploadUploadFromURLParams } from "./upload.mjs";
|
|
1
|
+
export { Bulk, type BulkMoveResponse, type BulkMoveParams } from "./bulk.mjs";
|
|
2
|
+
export { Materials, type Content, type Material, type MaterialListResponse, type MaterialBatchCreateResponse, type MaterialDebugResponse, type MaterialGetDownloadURLResponse, type MaterialSearchResponse, type MaterialCreateParams, type MaterialListParams, type MaterialBatchCreateParams, type MaterialCreateAndProcessParams, type MaterialGetDownloadURLParams, type MaterialMoveParams, type MaterialRenameParams, type MaterialSearchParams, } from "./materials.mjs";
|
|
3
|
+
export { Test, type TestPerformOcrResponse, type TestProcessEpubResponse, type TestProcessImageResponse, type TestProcessVideoResponse, } from "./test.mjs";
|
|
4
|
+
export { Upload, type Complete, type UploadCreatePresignedURLResponse, type UploadCompleteUploadParams, type UploadCreatePresignedURLParams, type UploadUploadFileParams, type UploadUploadFileAndProcessParams, type UploadUploadFromURLParams, type UploadUploadURLAndProcessParams, } from "./upload.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OACpD,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,IAAI,EACJ,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,MAAM,EACN,KAAK,QAAQ,EACb,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Bulk } from "./bulk.js";
|
|
2
|
-
export { Materials, type Material, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, type MaterialSearchParams, } from "./materials.js";
|
|
3
|
-
export { Test } from "./test.js";
|
|
4
|
-
export { Upload, type UploadUploadFileParams, type UploadUploadFromURLParams } from "./upload.js";
|
|
1
|
+
export { Bulk, type BulkMoveResponse, type BulkMoveParams } from "./bulk.js";
|
|
2
|
+
export { Materials, type Content, type Material, type MaterialListResponse, type MaterialBatchCreateResponse, type MaterialDebugResponse, type MaterialGetDownloadURLResponse, type MaterialSearchResponse, type MaterialCreateParams, type MaterialListParams, type MaterialBatchCreateParams, type MaterialCreateAndProcessParams, type MaterialGetDownloadURLParams, type MaterialMoveParams, type MaterialRenameParams, type MaterialSearchParams, } from "./materials.js";
|
|
3
|
+
export { Test, type TestPerformOcrResponse, type TestProcessEpubResponse, type TestProcessImageResponse, type TestProcessVideoResponse, } from "./test.js";
|
|
4
|
+
export { Upload, type Complete, type UploadCreatePresignedURLResponse, type UploadCompleteUploadParams, type UploadCreatePresignedURLParams, type UploadUploadFileParams, type UploadUploadFileAndProcessParams, type UploadUploadFromURLParams, type UploadUploadURLAndProcessParams, } from "./upload.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OACpD,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,IAAI,EACJ,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,MAAM,EACN,KAAK,QAAQ,EACb,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA0E;AAAjE,4FAAA,IAAI,OAAA;AACb,4CAiBqB;AAhBnB,sGAAA,SAAS,OAAA;AAiBX,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,sCAUkB;AAThB,gGAAA,MAAM,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Bulk } from "./bulk.mjs";
|
|
3
3
|
export { Materials, } from "./materials.mjs";
|
|
4
|
-
export { Test } from "./test.mjs";
|
|
5
|
-
export { Upload } from "./upload.mjs";
|
|
4
|
+
export { Test, } from "./test.mjs";
|
|
5
|
+
export { Upload, } from "./upload.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAA8C;OACpD,EACL,SAAS,GAgBV;OACM,EACL,IAAI,GAKL;OACM,EACL,MAAM,GASP"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as BulkAPI from "./bulk.mjs";
|
|
3
|
-
import { Bulk } from "./bulk.mjs";
|
|
3
|
+
import { Bulk, BulkMoveParams, BulkMoveResponse } from "./bulk.mjs";
|
|
4
4
|
import * as TestAPI from "./test.mjs";
|
|
5
|
-
import { Test } from "./test.mjs";
|
|
5
|
+
import { Test, TestPerformOcrResponse, TestProcessEpubResponse, TestProcessImageResponse, TestProcessVideoResponse } from "./test.mjs";
|
|
6
6
|
import * as UploadAPI from "./upload.mjs";
|
|
7
|
-
import { Upload, UploadUploadFileParams, UploadUploadFromURLParams } from "./upload.mjs";
|
|
7
|
+
import { Complete, Upload, UploadCompleteUploadParams, UploadCreatePresignedURLParams, UploadCreatePresignedURLResponse, UploadUploadFileAndProcessParams, UploadUploadFileParams, UploadUploadFromURLParams, UploadUploadURLAndProcessParams } from "./upload.mjs";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
9
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
10
|
export declare class Materials extends APIResource {
|
|
@@ -51,58 +51,117 @@ export declare class Materials extends APIResource {
|
|
|
51
51
|
*/
|
|
52
52
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
53
53
|
/**
|
|
54
|
+
* Create batch upload URLs for multiple materials
|
|
55
|
+
*
|
|
54
56
|
* @example
|
|
55
57
|
* ```ts
|
|
56
|
-
* await client.v1.materials.batchCreate(
|
|
58
|
+
* const response = await client.v1.materials.batchCreate({
|
|
59
|
+
* materials: [
|
|
60
|
+
* {
|
|
61
|
+
* contentType: 'application/pdf',
|
|
62
|
+
* filename: 'document.pdf',
|
|
63
|
+
* name: 'Chapter 1',
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* });
|
|
57
67
|
* ```
|
|
58
68
|
*/
|
|
59
|
-
batchCreate(options?: RequestOptions): APIPromise<
|
|
69
|
+
batchCreate(body: MaterialBatchCreateParams, options?: RequestOptions): APIPromise<MaterialBatchCreateResponse>;
|
|
60
70
|
/**
|
|
71
|
+
* Creates a material and waits for processing to finish before returning. Useful
|
|
72
|
+
* for synchronous API usage.
|
|
73
|
+
*
|
|
61
74
|
* @example
|
|
62
75
|
* ```ts
|
|
63
|
-
* await client.v1.materials.
|
|
76
|
+
* const material = await client.v1.materials.createAndProcess(
|
|
77
|
+
* {
|
|
78
|
+
* content: { type: 'text' },
|
|
79
|
+
* name: 'Chapter 1 - Introduction',
|
|
80
|
+
* },
|
|
81
|
+
* );
|
|
64
82
|
* ```
|
|
65
83
|
*/
|
|
66
|
-
|
|
84
|
+
createAndProcess(body: MaterialCreateAndProcessParams, options?: RequestOptions): APIPromise<Material>;
|
|
67
85
|
/**
|
|
86
|
+
* Get debug information for a material including extracted content
|
|
87
|
+
*
|
|
68
88
|
* @example
|
|
69
89
|
* ```ts
|
|
70
|
-
* await client.v1.materials.
|
|
71
|
-
* expiresIn: 'expiresIn',
|
|
72
|
-
* });
|
|
90
|
+
* const response = await client.v1.materials.debug('id');
|
|
73
91
|
* ```
|
|
74
92
|
*/
|
|
75
|
-
|
|
93
|
+
debug(id: string, options?: RequestOptions): APIPromise<MaterialDebugResponse>;
|
|
76
94
|
/**
|
|
95
|
+
* Get temporary download URL for material
|
|
96
|
+
*
|
|
77
97
|
* @example
|
|
78
98
|
* ```ts
|
|
79
|
-
* await client.v1.materials.
|
|
99
|
+
* const response = await client.v1.materials.getDownloadURL(
|
|
100
|
+
* 'id',
|
|
101
|
+
* );
|
|
80
102
|
* ```
|
|
81
103
|
*/
|
|
82
|
-
|
|
104
|
+
getDownloadURL(id: string, query?: MaterialGetDownloadURLParams | null | undefined, options?: RequestOptions): APIPromise<MaterialGetDownloadURLResponse>;
|
|
83
105
|
/**
|
|
106
|
+
* Move material to a different folder
|
|
107
|
+
*
|
|
84
108
|
* @example
|
|
85
109
|
* ```ts
|
|
86
|
-
* await client.v1.materials.
|
|
110
|
+
* const material = await client.v1.materials.move('id', {
|
|
111
|
+
* folderId: 'folderId',
|
|
112
|
+
* });
|
|
87
113
|
* ```
|
|
88
114
|
*/
|
|
89
|
-
|
|
115
|
+
move(id: string, body: MaterialMoveParams, options?: RequestOptions): APIPromise<Material>;
|
|
90
116
|
/**
|
|
117
|
+
* Rename a material
|
|
118
|
+
*
|
|
91
119
|
* @example
|
|
92
120
|
* ```ts
|
|
93
|
-
* await client.v1.materials.
|
|
121
|
+
* const material = await client.v1.materials.rename('id', {
|
|
122
|
+
* name: 'New Material Name',
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
rename(id: string, body: MaterialRenameParams, options?: RequestOptions): APIPromise<Material>;
|
|
127
|
+
/**
|
|
128
|
+
* Reprocess material to regenerate embeddings and extract content
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```ts
|
|
132
|
+
* const material = await client.v1.materials.reprocess('id');
|
|
94
133
|
* ```
|
|
95
134
|
*/
|
|
96
|
-
reprocess(id: string, options?: RequestOptions): APIPromise<
|
|
135
|
+
reprocess(id: string, options?: RequestOptions): APIPromise<Material>;
|
|
97
136
|
/**
|
|
98
|
-
* Search materials using RAG
|
|
137
|
+
* Search materials using RAG (Retrieval-Augmented Generation)
|
|
99
138
|
*
|
|
100
139
|
* @example
|
|
101
140
|
* ```ts
|
|
102
|
-
* await client.v1.materials.search({
|
|
141
|
+
* const response = await client.v1.materials.search({
|
|
142
|
+
* query: 'What is photosynthesis?',
|
|
143
|
+
* });
|
|
103
144
|
* ```
|
|
104
145
|
*/
|
|
105
|
-
search(body: MaterialSearchParams, options?: RequestOptions): APIPromise<
|
|
146
|
+
search(body: MaterialSearchParams, options?: RequestOptions): APIPromise<MaterialSearchResponse>;
|
|
147
|
+
}
|
|
148
|
+
export interface Content {
|
|
149
|
+
/**
|
|
150
|
+
* Type of content
|
|
151
|
+
*/
|
|
152
|
+
type: 'text' | 'pdf' | 'video' | 'audio' | 'url';
|
|
153
|
+
/**
|
|
154
|
+
* URL to fetch content from
|
|
155
|
+
*/
|
|
156
|
+
sourceUrl?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Text content (for text type)
|
|
159
|
+
*/
|
|
160
|
+
text?: string;
|
|
161
|
+
/**
|
|
162
|
+
* URL to the content (for url type)
|
|
163
|
+
*/
|
|
164
|
+
url?: string;
|
|
106
165
|
}
|
|
107
166
|
export interface Material {
|
|
108
167
|
/**
|
|
@@ -165,11 +224,140 @@ export declare namespace Material {
|
|
|
165
224
|
}
|
|
166
225
|
}
|
|
167
226
|
export type MaterialListResponse = Array<Material>;
|
|
227
|
+
export type MaterialBatchCreateResponse = Array<MaterialBatchCreateResponse.MaterialBatchCreateResponseItem>;
|
|
228
|
+
export declare namespace MaterialBatchCreateResponse {
|
|
229
|
+
interface MaterialBatchCreateResponseItem {
|
|
230
|
+
/**
|
|
231
|
+
* Material ID
|
|
232
|
+
*/
|
|
233
|
+
materialId: string;
|
|
234
|
+
/**
|
|
235
|
+
* Material name
|
|
236
|
+
*/
|
|
237
|
+
name: string;
|
|
238
|
+
/**
|
|
239
|
+
* S3 key
|
|
240
|
+
*/
|
|
241
|
+
s3Key: string;
|
|
242
|
+
/**
|
|
243
|
+
* Presigned upload URL
|
|
244
|
+
*/
|
|
245
|
+
uploadUrl: string;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
export interface MaterialDebugResponse {
|
|
249
|
+
/**
|
|
250
|
+
* Content details
|
|
251
|
+
*/
|
|
252
|
+
content: unknown;
|
|
253
|
+
/**
|
|
254
|
+
* Content type
|
|
255
|
+
*/
|
|
256
|
+
contentType: string;
|
|
257
|
+
/**
|
|
258
|
+
* Processed images
|
|
259
|
+
*/
|
|
260
|
+
images: Array<MaterialDebugResponse.Image>;
|
|
261
|
+
/**
|
|
262
|
+
* Material ID
|
|
263
|
+
*/
|
|
264
|
+
materialId: string;
|
|
265
|
+
/**
|
|
266
|
+
* Material metadata
|
|
267
|
+
*/
|
|
268
|
+
metadata: unknown;
|
|
269
|
+
/**
|
|
270
|
+
* Material name
|
|
271
|
+
*/
|
|
272
|
+
name: string;
|
|
273
|
+
/**
|
|
274
|
+
* Processing status
|
|
275
|
+
*/
|
|
276
|
+
status: string;
|
|
277
|
+
/**
|
|
278
|
+
* Transcript structure for videos
|
|
279
|
+
*/
|
|
280
|
+
transcriptStructure: unknown | null;
|
|
281
|
+
}
|
|
282
|
+
export declare namespace MaterialDebugResponse {
|
|
283
|
+
interface Image {
|
|
284
|
+
id?: string;
|
|
285
|
+
description?: string;
|
|
286
|
+
pageIndex?: number;
|
|
287
|
+
s3Key?: string;
|
|
288
|
+
s3Url?: string;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
export interface MaterialGetDownloadURLResponse {
|
|
292
|
+
/**
|
|
293
|
+
* Temporary download URL
|
|
294
|
+
*/
|
|
295
|
+
downloadUrl: string;
|
|
296
|
+
}
|
|
297
|
+
export interface MaterialSearchResponse {
|
|
298
|
+
/**
|
|
299
|
+
* Whether results were filtered by scope
|
|
300
|
+
*/
|
|
301
|
+
filtered: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Original search query
|
|
304
|
+
*/
|
|
305
|
+
query: string;
|
|
306
|
+
/**
|
|
307
|
+
* Search results
|
|
308
|
+
*/
|
|
309
|
+
results: Array<MaterialSearchResponse.Result>;
|
|
310
|
+
/**
|
|
311
|
+
* Search scope
|
|
312
|
+
*/
|
|
313
|
+
scope: MaterialSearchResponse.Scope;
|
|
314
|
+
/**
|
|
315
|
+
* Total number of results
|
|
316
|
+
*/
|
|
317
|
+
totalResults: number;
|
|
318
|
+
}
|
|
319
|
+
export declare namespace MaterialSearchResponse {
|
|
320
|
+
interface Result {
|
|
321
|
+
/**
|
|
322
|
+
* Chunk index within the material
|
|
323
|
+
*/
|
|
324
|
+
chunkIndex: number;
|
|
325
|
+
/**
|
|
326
|
+
* Material information
|
|
327
|
+
*/
|
|
328
|
+
material: Result.Material | null;
|
|
329
|
+
/**
|
|
330
|
+
* Relevance score (0-1)
|
|
331
|
+
*/
|
|
332
|
+
score: number;
|
|
333
|
+
/**
|
|
334
|
+
* Matched text chunk
|
|
335
|
+
*/
|
|
336
|
+
text: string;
|
|
337
|
+
}
|
|
338
|
+
namespace Result {
|
|
339
|
+
/**
|
|
340
|
+
* Material information
|
|
341
|
+
*/
|
|
342
|
+
interface Material {
|
|
343
|
+
id?: string;
|
|
344
|
+
contentType?: string;
|
|
345
|
+
name?: string;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Search scope
|
|
350
|
+
*/
|
|
351
|
+
interface Scope {
|
|
352
|
+
folderIds?: Array<string>;
|
|
353
|
+
materialIds?: Array<string>;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
168
356
|
export interface MaterialCreateParams {
|
|
169
357
|
/**
|
|
170
358
|
* Content details
|
|
171
359
|
*/
|
|
172
|
-
content:
|
|
360
|
+
content: Content;
|
|
173
361
|
/**
|
|
174
362
|
* Name of the material
|
|
175
363
|
*/
|
|
@@ -179,37 +367,77 @@ export interface MaterialCreateParams {
|
|
|
179
367
|
*/
|
|
180
368
|
folderId?: string;
|
|
181
369
|
}
|
|
182
|
-
export
|
|
370
|
+
export interface MaterialListParams {
|
|
183
371
|
/**
|
|
184
|
-
*
|
|
372
|
+
* Filter by folder ID
|
|
185
373
|
*/
|
|
186
|
-
|
|
374
|
+
folderId?: string;
|
|
375
|
+
}
|
|
376
|
+
export interface MaterialBatchCreateParams {
|
|
377
|
+
/**
|
|
378
|
+
* Array of materials to create
|
|
379
|
+
*/
|
|
380
|
+
materials: Array<MaterialBatchCreateParams.Material>;
|
|
381
|
+
}
|
|
382
|
+
export declare namespace MaterialBatchCreateParams {
|
|
383
|
+
interface Material {
|
|
187
384
|
/**
|
|
188
|
-
*
|
|
385
|
+
* MIME type
|
|
189
386
|
*/
|
|
190
|
-
|
|
387
|
+
contentType: string;
|
|
191
388
|
/**
|
|
192
|
-
*
|
|
389
|
+
* Filename
|
|
193
390
|
*/
|
|
194
|
-
|
|
391
|
+
filename: string;
|
|
195
392
|
/**
|
|
196
|
-
*
|
|
393
|
+
* Material name
|
|
197
394
|
*/
|
|
198
|
-
|
|
395
|
+
name: string;
|
|
199
396
|
/**
|
|
200
|
-
*
|
|
397
|
+
* Folder ID
|
|
201
398
|
*/
|
|
202
|
-
|
|
399
|
+
folderId?: string;
|
|
203
400
|
}
|
|
204
401
|
}
|
|
205
|
-
export interface
|
|
402
|
+
export interface MaterialCreateAndProcessParams {
|
|
206
403
|
/**
|
|
207
|
-
*
|
|
404
|
+
* Content details
|
|
405
|
+
*/
|
|
406
|
+
content: Content;
|
|
407
|
+
/**
|
|
408
|
+
* Name of the material
|
|
409
|
+
*/
|
|
410
|
+
name: string;
|
|
411
|
+
/**
|
|
412
|
+
* Folder ID to place the material in
|
|
208
413
|
*/
|
|
209
414
|
folderId?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Polling interval in milliseconds (default: 2 seconds)
|
|
417
|
+
*/
|
|
418
|
+
pollIntervalMs?: number;
|
|
419
|
+
/**
|
|
420
|
+
* Maximum time to wait for processing in milliseconds (default: 5 minutes)
|
|
421
|
+
*/
|
|
422
|
+
timeoutMs?: number;
|
|
210
423
|
}
|
|
211
424
|
export interface MaterialGetDownloadURLParams {
|
|
212
|
-
|
|
425
|
+
/**
|
|
426
|
+
* URL expiration time in seconds (default: 3600)
|
|
427
|
+
*/
|
|
428
|
+
expiresIn?: number;
|
|
429
|
+
}
|
|
430
|
+
export interface MaterialMoveParams {
|
|
431
|
+
/**
|
|
432
|
+
* Target folder ID (null for root)
|
|
433
|
+
*/
|
|
434
|
+
folderId: string | null;
|
|
435
|
+
}
|
|
436
|
+
export interface MaterialRenameParams {
|
|
437
|
+
/**
|
|
438
|
+
* New name for the material
|
|
439
|
+
*/
|
|
440
|
+
name: string;
|
|
213
441
|
}
|
|
214
442
|
export interface MaterialSearchParams {
|
|
215
443
|
/**
|
|
@@ -217,23 +445,22 @@ export interface MaterialSearchParams {
|
|
|
217
445
|
*/
|
|
218
446
|
query: string;
|
|
219
447
|
/**
|
|
220
|
-
*
|
|
221
|
-
* subfolders)
|
|
448
|
+
* Limit search to materials within specific folders (includes subfolders)
|
|
222
449
|
*/
|
|
223
450
|
folderIds?: Array<string>;
|
|
224
451
|
/**
|
|
225
|
-
*
|
|
452
|
+
* Limit search to specific material IDs
|
|
226
453
|
*/
|
|
227
454
|
materialIds?: Array<string>;
|
|
228
455
|
/**
|
|
229
|
-
* Number of results to return
|
|
456
|
+
* Number of results to return
|
|
230
457
|
*/
|
|
231
458
|
topK?: number;
|
|
232
459
|
}
|
|
233
460
|
export declare namespace Materials {
|
|
234
|
-
export { type Material as Material, type MaterialListResponse as MaterialListResponse, type MaterialCreateParams as MaterialCreateParams, type MaterialListParams as MaterialListParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, type MaterialSearchParams as MaterialSearchParams, };
|
|
235
|
-
export { Upload as Upload, type UploadUploadFileParams as UploadUploadFileParams, type UploadUploadFromURLParams as UploadUploadFromURLParams, };
|
|
236
|
-
export { Bulk as Bulk };
|
|
237
|
-
export { Test as Test };
|
|
461
|
+
export { type Content as Content, type Material as Material, type MaterialListResponse as MaterialListResponse, type MaterialBatchCreateResponse as MaterialBatchCreateResponse, type MaterialDebugResponse as MaterialDebugResponse, type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse, type MaterialSearchResponse as MaterialSearchResponse, type MaterialCreateParams as MaterialCreateParams, type MaterialListParams as MaterialListParams, type MaterialBatchCreateParams as MaterialBatchCreateParams, type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, type MaterialMoveParams as MaterialMoveParams, type MaterialRenameParams as MaterialRenameParams, type MaterialSearchParams as MaterialSearchParams, };
|
|
462
|
+
export { Upload as Upload, type Complete as Complete, type UploadCreatePresignedURLResponse as UploadCreatePresignedURLResponse, type UploadCompleteUploadParams as UploadCompleteUploadParams, type UploadCreatePresignedURLParams as UploadCreatePresignedURLParams, type UploadUploadFileParams as UploadUploadFileParams, type UploadUploadFileAndProcessParams as UploadUploadFileAndProcessParams, type UploadUploadFromURLParams as UploadUploadFromURLParams, type UploadUploadURLAndProcessParams as UploadUploadURLAndProcessParams, };
|
|
463
|
+
export { Bulk as Bulk, type BulkMoveResponse as BulkMoveResponse, type BulkMoveParams as BulkMoveParams };
|
|
464
|
+
export { Test as Test, type TestPerformOcrResponse as TestPerformOcrResponse, type TestProcessEpubResponse as TestProcessEpubResponse, type TestProcessImageResponse as TestProcessImageResponse, type TestProcessVideoResponse as TestProcessVideoResponse, };
|
|
238
465
|
}
|
|
239
466
|
//# sourceMappingURL=materials.d.mts.map
|