@studyfetch/sdk 1.25.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 +10 -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/index.d.mts +2 -2
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +2 -2
- 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.map +1 -1
- package/resources/v1/materials/materials.d.mts +59 -27
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +59 -27
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +17 -0
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +17 -0
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +84 -1
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +84 -1
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +32 -0
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +32 -0
- 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 +9 -0
- package/src/resources/v1/materials/index.ts +5 -0
- package/src/resources/v1/materials/materials.ts +76 -28
- package/src/resources/v1/materials/upload.ts +114 -0
- 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 +46 -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
|
@@ -68,6 +68,29 @@ export class Upload extends APIResource {
|
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Uploads a file and waits for processing to finish before returning. Useful for
|
|
73
|
+
* synchronous API usage.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const material =
|
|
78
|
+
* await client.v1.materials.upload.uploadFileAndProcess({
|
|
79
|
+
* file: fs.createReadStream('path/to/file'),
|
|
80
|
+
* name: 'name',
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
uploadFileAndProcess(
|
|
85
|
+
body: UploadUploadFileAndProcessParams,
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): APIPromise<MaterialsAPI.Material> {
|
|
88
|
+
return this._client.post(
|
|
89
|
+
'/api/v1/materials/upload/file-and-process',
|
|
90
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
71
94
|
/**
|
|
72
95
|
* Upload material from URL
|
|
73
96
|
*
|
|
@@ -86,6 +109,43 @@ export class Upload extends APIResource {
|
|
|
86
109
|
): APIPromise<MaterialsAPI.Material> {
|
|
87
110
|
return this._client.post('/api/v1/materials/upload/url', { body, ...options });
|
|
88
111
|
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Fetches content from URL and waits for processing to finish before returning.
|
|
115
|
+
* Useful for synchronous API usage.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const material =
|
|
120
|
+
* await client.v1.materials.upload.uploadURLAndProcess({
|
|
121
|
+
* name: 'My Document',
|
|
122
|
+
* url: 'https://example.com/document.pdf',
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
uploadURLAndProcess(
|
|
127
|
+
body: UploadUploadURLAndProcessParams,
|
|
128
|
+
options?: RequestOptions,
|
|
129
|
+
): APIPromise<MaterialsAPI.Material> {
|
|
130
|
+
return this._client.post('/api/v1/materials/upload/url-and-process', { body, ...options });
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface Complete {
|
|
135
|
+
/**
|
|
136
|
+
* The ID of the material that was uploaded
|
|
137
|
+
*/
|
|
138
|
+
materialId: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The ID of the organization
|
|
142
|
+
*/
|
|
143
|
+
organizationId: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The S3 key of the uploaded file
|
|
147
|
+
*/
|
|
148
|
+
s3Key: string;
|
|
89
149
|
}
|
|
90
150
|
|
|
91
151
|
export interface UploadCreatePresignedURLResponse {
|
|
@@ -158,6 +218,30 @@ export interface UploadUploadFileParams {
|
|
|
158
218
|
folderId?: string;
|
|
159
219
|
}
|
|
160
220
|
|
|
221
|
+
export interface UploadUploadFileAndProcessParams {
|
|
222
|
+
file: Uploadable;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Material name
|
|
226
|
+
*/
|
|
227
|
+
name: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Folder ID (optional)
|
|
231
|
+
*/
|
|
232
|
+
folderId?: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Polling interval in milliseconds (default: 2000)
|
|
236
|
+
*/
|
|
237
|
+
pollIntervalMs?: number;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Processing timeout in milliseconds (default: 300000)
|
|
241
|
+
*/
|
|
242
|
+
timeoutMs?: number;
|
|
243
|
+
}
|
|
244
|
+
|
|
161
245
|
export interface UploadUploadFromURLParams {
|
|
162
246
|
/**
|
|
163
247
|
* Material name
|
|
@@ -175,12 +259,42 @@ export interface UploadUploadFromURLParams {
|
|
|
175
259
|
folderId?: string;
|
|
176
260
|
}
|
|
177
261
|
|
|
262
|
+
export interface UploadUploadURLAndProcessParams {
|
|
263
|
+
/**
|
|
264
|
+
* Material name
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* URL to fetch content from
|
|
270
|
+
*/
|
|
271
|
+
url: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Folder ID (optional)
|
|
275
|
+
*/
|
|
276
|
+
folderId?: string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Polling interval in milliseconds (default: 2 seconds)
|
|
280
|
+
*/
|
|
281
|
+
pollIntervalMs?: number;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Maximum time to wait for processing in milliseconds (default: 5 minutes)
|
|
285
|
+
*/
|
|
286
|
+
timeoutMs?: number;
|
|
287
|
+
}
|
|
288
|
+
|
|
178
289
|
export declare namespace Upload {
|
|
179
290
|
export {
|
|
291
|
+
type Complete as Complete,
|
|
180
292
|
type UploadCreatePresignedURLResponse as UploadCreatePresignedURLResponse,
|
|
181
293
|
type UploadCompleteUploadParams as UploadCompleteUploadParams,
|
|
182
294
|
type UploadCreatePresignedURLParams as UploadCreatePresignedURLParams,
|
|
183
295
|
type UploadUploadFileParams as UploadUploadFileParams,
|
|
296
|
+
type UploadUploadFileAndProcessParams as UploadUploadFileAndProcessParams,
|
|
184
297
|
type UploadUploadFromURLParams as UploadUploadFromURLParams,
|
|
298
|
+
type UploadUploadURLAndProcessParams as UploadUploadURLAndProcessParams,
|
|
185
299
|
};
|
|
186
300
|
}
|
|
@@ -7,33 +7,38 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
7
7
|
|
|
8
8
|
export class Analyst extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Get test results
|
|
10
|
+
* Get test results with full question data for user or group
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* await client.v1.usage.analyst.getTestQuestions();
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
getTestQuestions(
|
|
17
|
+
getTestQuestions(
|
|
18
|
+
query: AnalystGetTestQuestionsParams | null | undefined = {},
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): APIPromise<void> {
|
|
18
21
|
return this._client.get('/api/v1/usage-analyst/test-questions', {
|
|
22
|
+
query,
|
|
19
23
|
...options,
|
|
20
24
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
25
|
});
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
|
-
* Get chat messages
|
|
29
|
+
* Get all chat messages from sessions for user or group
|
|
26
30
|
*
|
|
27
31
|
* @example
|
|
28
32
|
* ```ts
|
|
29
|
-
*
|
|
33
|
+
* const response =
|
|
34
|
+
* await client.v1.usage.analyst.listChatMessages();
|
|
30
35
|
* ```
|
|
31
36
|
*/
|
|
32
|
-
listChatMessages(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
+
listChatMessages(
|
|
38
|
+
query: AnalystListChatMessagesParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<AnalystListChatMessagesResponse> {
|
|
41
|
+
return this._client.get('/api/v1/usage-analyst/chat-messages', { query, ...options });
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
/**
|
|
@@ -57,6 +62,56 @@ export class Analyst extends APIResource {
|
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
64
|
|
|
65
|
+
export interface AnalystListChatMessagesResponse {
|
|
66
|
+
messages?: Array<AnalystListChatMessagesResponse.Message>;
|
|
67
|
+
|
|
68
|
+
sessionCount?: number;
|
|
69
|
+
|
|
70
|
+
total?: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace AnalystListChatMessagesResponse {
|
|
74
|
+
export interface Message {
|
|
75
|
+
componentId?: string;
|
|
76
|
+
|
|
77
|
+
content?: string;
|
|
78
|
+
|
|
79
|
+
createdAt?: string;
|
|
80
|
+
|
|
81
|
+
metadata?: unknown;
|
|
82
|
+
|
|
83
|
+
role?: 'user' | 'assistant' | 'system';
|
|
84
|
+
|
|
85
|
+
sessionId?: string;
|
|
86
|
+
|
|
87
|
+
userId?: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface AnalystGetTestQuestionsParams {
|
|
92
|
+
/**
|
|
93
|
+
* Array of group IDs to filter
|
|
94
|
+
*/
|
|
95
|
+
groupIds?: Array<string>;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* User ID to get test results for
|
|
99
|
+
*/
|
|
100
|
+
userId?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface AnalystListChatMessagesParams {
|
|
104
|
+
/**
|
|
105
|
+
* Array of group IDs to filter
|
|
106
|
+
*/
|
|
107
|
+
groupIds?: Array<string>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* User ID to get chat messages for
|
|
111
|
+
*/
|
|
112
|
+
userId?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
60
115
|
export interface AnalystListEventsParams {
|
|
61
116
|
/**
|
|
62
117
|
* End date for filtering (ISO 8601)
|
|
@@ -95,8 +150,23 @@ export interface AnalystListEventsParams {
|
|
|
95
150
|
* Start date for filtering (ISO 8601)
|
|
96
151
|
*/
|
|
97
152
|
startDate: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Array of group IDs to filter
|
|
156
|
+
*/
|
|
157
|
+
groupIds?: Array<string>;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Array of user IDs to filter
|
|
161
|
+
*/
|
|
162
|
+
userIds?: Array<string>;
|
|
98
163
|
}
|
|
99
164
|
|
|
100
165
|
export declare namespace Analyst {
|
|
101
|
-
export {
|
|
166
|
+
export {
|
|
167
|
+
type AnalystListChatMessagesResponse as AnalystListChatMessagesResponse,
|
|
168
|
+
type AnalystGetTestQuestionsParams as AnalystGetTestQuestionsParams,
|
|
169
|
+
type AnalystListChatMessagesParams as AnalystListChatMessagesParams,
|
|
170
|
+
type AnalystListEventsParams as AnalystListEventsParams,
|
|
171
|
+
};
|
|
102
172
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Analyst,
|
|
5
|
+
type AnalystListChatMessagesResponse,
|
|
6
|
+
type AnalystGetTestQuestionsParams,
|
|
7
|
+
type AnalystListChatMessagesParams,
|
|
8
|
+
type AnalystListEventsParams,
|
|
9
|
+
} from './analyst';
|
|
4
10
|
export {
|
|
5
11
|
Usage,
|
|
6
12
|
type UsageGetStatsParams,
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as AnalystAPI from './analyst';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Analyst,
|
|
7
|
+
AnalystGetTestQuestionsParams,
|
|
8
|
+
AnalystListChatMessagesParams,
|
|
9
|
+
AnalystListChatMessagesResponse,
|
|
10
|
+
AnalystListEventsParams,
|
|
11
|
+
} from './analyst';
|
|
6
12
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
13
|
import { buildHeaders } from '../../../internal/headers';
|
|
8
14
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -184,5 +190,11 @@ export declare namespace Usage {
|
|
|
184
190
|
type UsageListEventsParams as UsageListEventsParams,
|
|
185
191
|
};
|
|
186
192
|
|
|
187
|
-
export {
|
|
193
|
+
export {
|
|
194
|
+
Analyst as Analyst,
|
|
195
|
+
type AnalystListChatMessagesResponse as AnalystListChatMessagesResponse,
|
|
196
|
+
type AnalystGetTestQuestionsParams as AnalystGetTestQuestionsParams,
|
|
197
|
+
type AnalystListChatMessagesParams as AnalystListChatMessagesParams,
|
|
198
|
+
type AnalystListEventsParams as AnalystListEventsParams,
|
|
199
|
+
};
|
|
188
200
|
}
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -42,14 +42,29 @@ import {
|
|
|
42
42
|
AudioRecaps,
|
|
43
43
|
} from './audio-recaps/audio-recaps';
|
|
44
44
|
import * as ChatAPI from './chat/chat';
|
|
45
|
-
import {
|
|
45
|
+
import {
|
|
46
|
+
Chat,
|
|
47
|
+
ChatGetSessionParams,
|
|
48
|
+
ChatSendMessageParams,
|
|
49
|
+
ChatStreamParams,
|
|
50
|
+
Interaction,
|
|
51
|
+
} from './chat/chat';
|
|
52
|
+
import * as DataAnalystAPI from './data-analyst/data-analyst';
|
|
53
|
+
import {
|
|
54
|
+
DataAnalyst,
|
|
55
|
+
DataAnalystRetrieveSessionParams,
|
|
56
|
+
DataAnalystSendMessageParams,
|
|
57
|
+
DataAnalystStreamParams,
|
|
58
|
+
} from './data-analyst/data-analyst';
|
|
46
59
|
import * as EmbedAPI from './embed/embed';
|
|
47
60
|
import { Embed, EmbedGetThemeParams, EmbedVerifyParams } from './embed/embed';
|
|
48
61
|
import * as MaterialsAPI from './materials/materials';
|
|
49
62
|
import {
|
|
63
|
+
Content,
|
|
50
64
|
Material,
|
|
51
65
|
MaterialBatchCreateParams,
|
|
52
66
|
MaterialBatchCreateResponse,
|
|
67
|
+
MaterialCreateAndProcessParams,
|
|
53
68
|
MaterialCreateParams,
|
|
54
69
|
MaterialDebugResponse,
|
|
55
70
|
MaterialGetDownloadURLParams,
|
|
@@ -83,6 +98,9 @@ import * as UploadAPI from './upload/upload';
|
|
|
83
98
|
import { Upload } from './upload/upload';
|
|
84
99
|
import * as UsageAPI from './usage/usage';
|
|
85
100
|
import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from './usage/usage';
|
|
101
|
+
import { APIPromise } from '../../core/api-promise';
|
|
102
|
+
import { buildHeaders } from '../../internal/headers';
|
|
103
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
86
104
|
|
|
87
105
|
export class V1 extends APIResource {
|
|
88
106
|
materials: MaterialsAPI.Materials = new MaterialsAPI.Materials(this._client);
|
|
@@ -100,6 +118,22 @@ export class V1 extends APIResource {
|
|
|
100
118
|
assignmentGrader: AssignmentGraderAPI.AssignmentGrader = new AssignmentGraderAPI.AssignmentGrader(
|
|
101
119
|
this._client,
|
|
102
120
|
);
|
|
121
|
+
dataAnalyst: DataAnalystAPI.DataAnalyst = new DataAnalystAPI.DataAnalyst(this._client);
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Test MongoDB connection and get outbound IP
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* await client.v1.testMongoDB();
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
testMongoDB(options?: RequestOptions): APIPromise<void> {
|
|
132
|
+
return this._client.get('/api/v1/test-mongodb', {
|
|
133
|
+
...options,
|
|
134
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
135
|
+
});
|
|
136
|
+
}
|
|
103
137
|
}
|
|
104
138
|
|
|
105
139
|
V1.Materials = Materials;
|
|
@@ -115,10 +149,12 @@ V1.Scenarios = Scenarios;
|
|
|
115
149
|
V1.Explainers = Explainers;
|
|
116
150
|
V1.Upload = Upload;
|
|
117
151
|
V1.AssignmentGrader = AssignmentGrader;
|
|
152
|
+
V1.DataAnalyst = DataAnalyst;
|
|
118
153
|
|
|
119
154
|
export declare namespace V1 {
|
|
120
155
|
export {
|
|
121
156
|
Materials as Materials,
|
|
157
|
+
type Content as Content,
|
|
122
158
|
type Material as Material,
|
|
123
159
|
type MaterialListResponse as MaterialListResponse,
|
|
124
160
|
type MaterialBatchCreateResponse as MaterialBatchCreateResponse,
|
|
@@ -128,6 +164,7 @@ export declare namespace V1 {
|
|
|
128
164
|
type MaterialCreateParams as MaterialCreateParams,
|
|
129
165
|
type MaterialListParams as MaterialListParams,
|
|
130
166
|
type MaterialBatchCreateParams as MaterialBatchCreateParams,
|
|
167
|
+
type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
|
|
131
168
|
type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
|
|
132
169
|
type MaterialMoveParams as MaterialMoveParams,
|
|
133
170
|
type MaterialRenameParams as MaterialRenameParams,
|
|
@@ -167,6 +204,7 @@ export declare namespace V1 {
|
|
|
167
204
|
|
|
168
205
|
export {
|
|
169
206
|
Chat as Chat,
|
|
207
|
+
type Interaction as Interaction,
|
|
170
208
|
type ChatGetSessionParams as ChatGetSessionParams,
|
|
171
209
|
type ChatSendMessageParams as ChatSendMessageParams,
|
|
172
210
|
type ChatStreamParams as ChatStreamParams,
|
|
@@ -221,4 +259,11 @@ export declare namespace V1 {
|
|
|
221
259
|
type AssignmentGraderGetAllResponse as AssignmentGraderGetAllResponse,
|
|
222
260
|
type AssignmentGraderCreateParams as AssignmentGraderCreateParams,
|
|
223
261
|
};
|
|
262
|
+
|
|
263
|
+
export {
|
|
264
|
+
DataAnalyst as DataAnalyst,
|
|
265
|
+
type DataAnalystRetrieveSessionParams as DataAnalystRetrieveSessionParams,
|
|
266
|
+
type DataAnalystSendMessageParams as DataAnalystSendMessageParams,
|
|
267
|
+
type DataAnalystStreamParams as DataAnalystStreamParams,
|
|
268
|
+
};
|
|
224
269
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.26.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.26.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.26.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.26.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|