@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
|
@@ -0,0 +1,34 @@
|
|
|
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 { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Test extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.v1.dataAnalyst.test.uploadImage();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
uploadImage(options?: RequestOptions): APIPromise<void> {
|
|
16
|
+
return this._client.post('/api/v1/data-analyst/test/image', {
|
|
17
|
+
...options,
|
|
18
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* await client.v1.dataAnalyst.test.uploadImageCitation();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
uploadImageCitation(options?: RequestOptions): APIPromise<void> {
|
|
29
|
+
return this._client.post('/api/v1/data-analyst/test/image-citation', {
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -13,6 +13,7 @@ export {
|
|
|
13
13
|
} from './audio-recaps/index';
|
|
14
14
|
export {
|
|
15
15
|
Chat,
|
|
16
|
+
type Interaction,
|
|
16
17
|
type ChatGetSessionParams,
|
|
17
18
|
type ChatSendMessageParams,
|
|
18
19
|
type ChatStreamParams,
|
|
@@ -27,6 +28,12 @@ export {
|
|
|
27
28
|
type ComponentListParams,
|
|
28
29
|
type ComponentGenerateEmbedParams,
|
|
29
30
|
} from './components';
|
|
31
|
+
export {
|
|
32
|
+
DataAnalyst,
|
|
33
|
+
type DataAnalystRetrieveSessionParams,
|
|
34
|
+
type DataAnalystSendMessageParams,
|
|
35
|
+
type DataAnalystStreamParams,
|
|
36
|
+
} from './data-analyst/index';
|
|
30
37
|
export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from './embed/index';
|
|
31
38
|
export { Explainers, type ExplainerCreateParams, type ExplainerHandleWebhookParams } from './explainers';
|
|
32
39
|
export {
|
|
@@ -43,11 +50,20 @@ export {
|
|
|
43
50
|
export { Folders, type FolderCreateParams, type FolderUpdateParams, type FolderListParams } from './folders';
|
|
44
51
|
export {
|
|
45
52
|
Materials,
|
|
53
|
+
type Content,
|
|
46
54
|
type Material,
|
|
47
55
|
type MaterialListResponse,
|
|
56
|
+
type MaterialBatchCreateResponse,
|
|
57
|
+
type MaterialDebugResponse,
|
|
58
|
+
type MaterialGetDownloadURLResponse,
|
|
59
|
+
type MaterialSearchResponse,
|
|
48
60
|
type MaterialCreateParams,
|
|
49
61
|
type MaterialListParams,
|
|
62
|
+
type MaterialBatchCreateParams,
|
|
63
|
+
type MaterialCreateAndProcessParams,
|
|
50
64
|
type MaterialGetDownloadURLParams,
|
|
65
|
+
type MaterialMoveParams,
|
|
66
|
+
type MaterialRenameParams,
|
|
51
67
|
type MaterialSearchParams,
|
|
52
68
|
} from './materials/index';
|
|
53
69
|
export {
|
|
@@ -2,20 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
6
5
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
6
|
|
|
8
7
|
export class Bulk extends APIResource {
|
|
9
8
|
/**
|
|
9
|
+
* Bulk move materials to a different folder
|
|
10
|
+
*
|
|
10
11
|
* @example
|
|
11
12
|
* ```ts
|
|
12
|
-
* await client.v1.materials.bulk.move(
|
|
13
|
+
* const response = await client.v1.materials.bulk.move({
|
|
14
|
+
* folderId: 'folderId',
|
|
15
|
+
* materialIds: ['string'],
|
|
16
|
+
* });
|
|
13
17
|
* ```
|
|
14
18
|
*/
|
|
15
|
-
move(options?: RequestOptions): APIPromise<
|
|
16
|
-
return this._client.post('/api/v1/materials/bulk/move', {
|
|
17
|
-
...options,
|
|
18
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
19
|
-
});
|
|
19
|
+
move(body: BulkMoveParams, options?: RequestOptions): APIPromise<BulkMoveResponse> {
|
|
20
|
+
return this._client.post('/api/v1/materials/bulk/move', { body, ...options });
|
|
20
21
|
}
|
|
21
22
|
}
|
|
23
|
+
|
|
24
|
+
export interface BulkMoveResponse {
|
|
25
|
+
/**
|
|
26
|
+
* Number of materials moved
|
|
27
|
+
*/
|
|
28
|
+
movedCount: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Operation success status
|
|
32
|
+
*/
|
|
33
|
+
success: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface BulkMoveParams {
|
|
37
|
+
/**
|
|
38
|
+
* Target folder ID (null for root)
|
|
39
|
+
*/
|
|
40
|
+
folderId: string | null;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Array of material IDs to move
|
|
44
|
+
*/
|
|
45
|
+
materialIds: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export declare namespace Bulk {
|
|
49
|
+
export { type BulkMoveResponse as BulkMoveResponse, type BulkMoveParams as BulkMoveParams };
|
|
50
|
+
}
|
|
@@ -1,14 +1,39 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Bulk } from './bulk';
|
|
3
|
+
export { Bulk, type BulkMoveResponse, type BulkMoveParams } from './bulk';
|
|
4
4
|
export {
|
|
5
5
|
Materials,
|
|
6
|
+
type Content,
|
|
6
7
|
type Material,
|
|
7
8
|
type MaterialListResponse,
|
|
9
|
+
type MaterialBatchCreateResponse,
|
|
10
|
+
type MaterialDebugResponse,
|
|
11
|
+
type MaterialGetDownloadURLResponse,
|
|
12
|
+
type MaterialSearchResponse,
|
|
8
13
|
type MaterialCreateParams,
|
|
9
14
|
type MaterialListParams,
|
|
15
|
+
type MaterialBatchCreateParams,
|
|
16
|
+
type MaterialCreateAndProcessParams,
|
|
10
17
|
type MaterialGetDownloadURLParams,
|
|
18
|
+
type MaterialMoveParams,
|
|
19
|
+
type MaterialRenameParams,
|
|
11
20
|
type MaterialSearchParams,
|
|
12
21
|
} from './materials';
|
|
13
|
-
export {
|
|
14
|
-
|
|
22
|
+
export {
|
|
23
|
+
Test,
|
|
24
|
+
type TestPerformOcrResponse,
|
|
25
|
+
type TestProcessEpubResponse,
|
|
26
|
+
type TestProcessImageResponse,
|
|
27
|
+
type TestProcessVideoResponse,
|
|
28
|
+
} from './test';
|
|
29
|
+
export {
|
|
30
|
+
Upload,
|
|
31
|
+
type Complete,
|
|
32
|
+
type UploadCreatePresignedURLResponse,
|
|
33
|
+
type UploadCompleteUploadParams,
|
|
34
|
+
type UploadCreatePresignedURLParams,
|
|
35
|
+
type UploadUploadFileParams,
|
|
36
|
+
type UploadUploadFileAndProcessParams,
|
|
37
|
+
type UploadUploadFromURLParams,
|
|
38
|
+
type UploadUploadURLAndProcessParams,
|
|
39
|
+
} from './upload';
|