@studyfetch/sdk 1.38.0 → 1.40.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 +32 -0
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/assignment-grader/assignment-grader.d.mts +21 -39
- package/resources/v1/assignment-grader/assignment-grader.d.mts.map +1 -1
- package/resources/v1/assignment-grader/assignment-grader.d.ts +21 -39
- package/resources/v1/assignment-grader/assignment-grader.d.ts.map +1 -1
- package/resources/v1/assignment-grader/assignment-grader.js.map +1 -1
- package/resources/v1/assignment-grader/assignment-grader.mjs.map +1 -1
- package/resources/v1/assignment-grader/index.d.mts +1 -1
- package/resources/v1/assignment-grader/index.d.mts.map +1 -1
- package/resources/v1/assignment-grader/index.d.ts +1 -1
- package/resources/v1/assignment-grader/index.d.ts.map +1 -1
- package/resources/v1/assignment-grader/index.js.map +1 -1
- package/resources/v1/assignment-grader/index.mjs.map +1 -1
- package/resources/v1/chat-analytics.d.mts +44 -8
- package/resources/v1/chat-analytics.d.mts.map +1 -1
- package/resources/v1/chat-analytics.d.ts +44 -8
- package/resources/v1/chat-analytics.d.ts.map +1 -1
- package/resources/v1/chat-analytics.js.map +1 -1
- package/resources/v1/chat-analytics.mjs.map +1 -1
- package/resources/v1/components.d.mts +20 -0
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +20 -0
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/index.d.mts +1 -1
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +1 -1
- 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 +22 -1
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +22 -1
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +13 -0
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +13 -0
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/v1.d.mts +6 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +1 -1
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/v1/assignment-grader/assignment-grader.ts +25 -46
- package/src/resources/v1/assignment-grader/index.ts +1 -0
- package/src/resources/v1/chat-analytics.ts +56 -11
- package/src/resources/v1/components.ts +25 -0
- package/src/resources/v1/index.ts +6 -4
- package/src/resources/v1/materials/index.ts +1 -0
- package/src/resources/v1/materials/materials.ts +27 -0
- package/src/resources/v1/v1.ts +12 -8
- 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
|
@@ -18,7 +18,7 @@ export class ChatAnalytics extends APIResource {
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
analyze(
|
|
21
|
-
query:
|
|
21
|
+
query: ChatAnalyticsAnalyzeParams | null | undefined = {},
|
|
22
22
|
options?: RequestOptions,
|
|
23
23
|
): APIPromise<ChatAnalyticsResponse> {
|
|
24
24
|
return this._client.get('/api/v1/chat-analytics/analyze', { query, ...options });
|
|
@@ -33,7 +33,7 @@ export class ChatAnalytics extends APIResource {
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export(
|
|
36
|
-
query:
|
|
36
|
+
query: ChatAnalyticsExportParams | null | undefined = {},
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<string> {
|
|
39
39
|
return this._client.get('/api/v1/chat-analytics/export', {
|
|
@@ -54,7 +54,7 @@ export class ChatAnalytics extends APIResource {
|
|
|
54
54
|
*/
|
|
55
55
|
getComponent(
|
|
56
56
|
componentID: string,
|
|
57
|
-
query:
|
|
57
|
+
query: ChatAnalyticsGetComponentParams | null | undefined = {},
|
|
58
58
|
options?: RequestOptions,
|
|
59
59
|
): APIPromise<ChatAnalyticsResponse> {
|
|
60
60
|
return this._client.get(path`/api/v1/chat-analytics/component/${componentID}`, { query, ...options });
|
|
@@ -117,6 +117,26 @@ export namespace ChatAnalyticsResponse {
|
|
|
117
117
|
* Total unique users
|
|
118
118
|
*/
|
|
119
119
|
totalUsers: number;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Overall average prompting score (1-4 scale)
|
|
123
|
+
*/
|
|
124
|
+
overallAveragePromptingScore?: number;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Overall average responsibility score (1-4 scale)
|
|
128
|
+
*/
|
|
129
|
+
overallAverageResponsibilityScore?: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Overall prompting score distribution
|
|
133
|
+
*/
|
|
134
|
+
overallPromptingDistribution?: unknown;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Overall responsibility score distribution
|
|
138
|
+
*/
|
|
139
|
+
overallResponsibilityDistribution?: unknown;
|
|
120
140
|
}
|
|
121
141
|
|
|
122
142
|
export interface UserStat {
|
|
@@ -160,6 +180,16 @@ export namespace ChatAnalyticsResponse {
|
|
|
160
180
|
*/
|
|
161
181
|
userId: string;
|
|
162
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Average prompting score (1-4 scale)
|
|
185
|
+
*/
|
|
186
|
+
averagePromptingScore?: number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Average responsibility score (1-4 scale)
|
|
190
|
+
*/
|
|
191
|
+
averageResponsibilityScore?: number;
|
|
192
|
+
|
|
163
193
|
/**
|
|
164
194
|
* User email
|
|
165
195
|
*/
|
|
@@ -174,12 +204,27 @@ export namespace ChatAnalyticsResponse {
|
|
|
174
204
|
* User name
|
|
175
205
|
*/
|
|
176
206
|
name?: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Prompting score distribution
|
|
210
|
+
*/
|
|
211
|
+
promptingDistribution?: unknown;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Responsibility score distribution
|
|
215
|
+
*/
|
|
216
|
+
responsibilityDistribution?: unknown;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Total messages graded
|
|
220
|
+
*/
|
|
221
|
+
totalGradedMessages?: number;
|
|
177
222
|
}
|
|
178
223
|
}
|
|
179
224
|
|
|
180
|
-
export type
|
|
225
|
+
export type ChatAnalyticsExportResponse = Uploadable;
|
|
181
226
|
|
|
182
|
-
export interface
|
|
227
|
+
export interface ChatAnalyticsAnalyzeParams {
|
|
183
228
|
/**
|
|
184
229
|
* Component ID to analyze
|
|
185
230
|
*/
|
|
@@ -216,7 +261,7 @@ export interface ChatAnalyticAnalyzeParams {
|
|
|
216
261
|
userId?: string;
|
|
217
262
|
}
|
|
218
263
|
|
|
219
|
-
export interface
|
|
264
|
+
export interface ChatAnalyticsExportParams {
|
|
220
265
|
/**
|
|
221
266
|
* Component ID to analyze
|
|
222
267
|
*/
|
|
@@ -253,7 +298,7 @@ export interface ChatAnalyticExportParams {
|
|
|
253
298
|
userId?: string;
|
|
254
299
|
}
|
|
255
300
|
|
|
256
|
-
export interface
|
|
301
|
+
export interface ChatAnalyticsGetComponentParams {
|
|
257
302
|
/**
|
|
258
303
|
* End date for analysis
|
|
259
304
|
*/
|
|
@@ -288,9 +333,9 @@ export interface ChatAnalyticGetComponentParams {
|
|
|
288
333
|
export declare namespace ChatAnalytics {
|
|
289
334
|
export {
|
|
290
335
|
type ChatAnalyticsResponse as ChatAnalyticsResponse,
|
|
291
|
-
type
|
|
292
|
-
type
|
|
293
|
-
type
|
|
294
|
-
type
|
|
336
|
+
type ChatAnalyticsExportResponse as ChatAnalyticsExportResponse,
|
|
337
|
+
type ChatAnalyticsAnalyzeParams as ChatAnalyticsAnalyzeParams,
|
|
338
|
+
type ChatAnalyticsExportParams as ChatAnalyticsExportParams,
|
|
339
|
+
type ChatAnalyticsGetComponentParams as ChatAnalyticsGetComponentParams,
|
|
295
340
|
};
|
|
296
341
|
}
|
|
@@ -333,11 +333,21 @@ export namespace ComponentCreateParams {
|
|
|
333
333
|
*/
|
|
334
334
|
enableHistory?: boolean;
|
|
335
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Enable message grading for prompt improvement suggestions
|
|
338
|
+
*/
|
|
339
|
+
enableMessageGrading?: boolean;
|
|
340
|
+
|
|
336
341
|
/**
|
|
337
342
|
* Enable RAG search
|
|
338
343
|
*/
|
|
339
344
|
enableRAGSearch?: boolean;
|
|
340
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Enable reference mode - show references instead of source content
|
|
348
|
+
*/
|
|
349
|
+
enableReferenceMode?: boolean;
|
|
350
|
+
|
|
341
351
|
/**
|
|
342
352
|
* Enable voice interactions
|
|
343
353
|
*/
|
|
@@ -1076,6 +1086,21 @@ export namespace ComponentGenerateEmbedParams {
|
|
|
1076
1086
|
*/
|
|
1077
1087
|
enableOutline?: boolean;
|
|
1078
1088
|
|
|
1089
|
+
/**
|
|
1090
|
+
* Enable prompting quality score
|
|
1091
|
+
*/
|
|
1092
|
+
enablePromptingScore?: boolean;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Enable reference mode - show references instead of source content
|
|
1096
|
+
*/
|
|
1097
|
+
enableReferenceMode?: boolean;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* Enable learning responsibility score
|
|
1101
|
+
*/
|
|
1102
|
+
enableResponsibilityScore?: boolean;
|
|
1103
|
+
|
|
1079
1104
|
/**
|
|
1080
1105
|
* Enable transcript
|
|
1081
1106
|
*/
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export {
|
|
4
4
|
AssignmentGrader,
|
|
5
5
|
type AssignmentGraderResponse,
|
|
6
|
+
type PerformanceItem,
|
|
6
7
|
type AssignmentGraderCreateResponse,
|
|
7
8
|
type AssignmentGraderGenerateReportResponse,
|
|
8
9
|
type AssignmentGraderGetAllResponse,
|
|
@@ -12,10 +13,10 @@ export { Chat, type ChatStreamParams } from './chat';
|
|
|
12
13
|
export {
|
|
13
14
|
ChatAnalytics,
|
|
14
15
|
type ChatAnalyticsResponse,
|
|
15
|
-
type
|
|
16
|
-
type
|
|
17
|
-
type
|
|
18
|
-
type
|
|
16
|
+
type ChatAnalyticsExportResponse,
|
|
17
|
+
type ChatAnalyticsAnalyzeParams,
|
|
18
|
+
type ChatAnalyticsExportParams,
|
|
19
|
+
type ChatAnalyticsGetComponentParams,
|
|
19
20
|
} from './chat-analytics';
|
|
20
21
|
export {
|
|
21
22
|
Components,
|
|
@@ -55,6 +56,7 @@ export {
|
|
|
55
56
|
type MaterialGetDownloadURLResponse,
|
|
56
57
|
type MaterialSearchResponse,
|
|
57
58
|
type MaterialCreateParams,
|
|
59
|
+
type MaterialUpdateParams,
|
|
58
60
|
type MaterialListParams,
|
|
59
61
|
type MaterialCreateAndProcessParams,
|
|
60
62
|
type MaterialCreateBatchUploadURLsParams,
|
|
@@ -52,6 +52,20 @@ export class Materials extends APIResource {
|
|
|
52
52
|
return this._client.get(path`/api/v1/materials/${id}`, options);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Update material reference information
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const materialResponse = await client.v1.materials.update(
|
|
61
|
+
* 'id',
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
update(id: string, body: MaterialUpdateParams, options?: RequestOptions): APIPromise<MaterialResponse> {
|
|
66
|
+
return this._client.patch(path`/api/v1/materials/${id}`, { body, ...options });
|
|
67
|
+
}
|
|
68
|
+
|
|
55
69
|
/**
|
|
56
70
|
* Get all materials for organization
|
|
57
71
|
*
|
|
@@ -628,6 +642,18 @@ export interface MaterialCreateParams {
|
|
|
628
642
|
folderId?: string;
|
|
629
643
|
}
|
|
630
644
|
|
|
645
|
+
export interface MaterialUpdateParams {
|
|
646
|
+
/**
|
|
647
|
+
* Reference title
|
|
648
|
+
*/
|
|
649
|
+
referenceTitle?: string;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Reference URL
|
|
653
|
+
*/
|
|
654
|
+
referenceUrl?: string;
|
|
655
|
+
}
|
|
656
|
+
|
|
631
657
|
export interface MaterialListParams {
|
|
632
658
|
/**
|
|
633
659
|
* Filter by folder ID
|
|
@@ -849,6 +875,7 @@ export declare namespace Materials {
|
|
|
849
875
|
type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse,
|
|
850
876
|
type MaterialSearchResponse as MaterialSearchResponse,
|
|
851
877
|
type MaterialCreateParams as MaterialCreateParams,
|
|
878
|
+
type MaterialUpdateParams as MaterialUpdateParams,
|
|
852
879
|
type MaterialListParams as MaterialListParams,
|
|
853
880
|
type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
|
|
854
881
|
type MaterialCreateBatchUploadURLsParams as MaterialCreateBatchUploadURLsParams,
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -5,11 +5,11 @@ import * as ChatAPI from './chat';
|
|
|
5
5
|
import { Chat, ChatStreamParams } from './chat';
|
|
6
6
|
import * as ChatAnalyticsAPI from './chat-analytics';
|
|
7
7
|
import {
|
|
8
|
-
ChatAnalyticAnalyzeParams,
|
|
9
|
-
ChatAnalyticExportParams,
|
|
10
|
-
ChatAnalyticExportResponse,
|
|
11
|
-
ChatAnalyticGetComponentParams,
|
|
12
8
|
ChatAnalytics,
|
|
9
|
+
ChatAnalyticsAnalyzeParams,
|
|
10
|
+
ChatAnalyticsExportParams,
|
|
11
|
+
ChatAnalyticsExportResponse,
|
|
12
|
+
ChatAnalyticsGetComponentParams,
|
|
13
13
|
ChatAnalyticsResponse,
|
|
14
14
|
} from './chat-analytics';
|
|
15
15
|
import * as ComponentsAPI from './components';
|
|
@@ -58,6 +58,7 @@ import {
|
|
|
58
58
|
AssignmentGraderGenerateReportResponse,
|
|
59
59
|
AssignmentGraderGetAllResponse,
|
|
60
60
|
AssignmentGraderResponse,
|
|
61
|
+
PerformanceItem,
|
|
61
62
|
} from './assignment-grader/assignment-grader';
|
|
62
63
|
import * as EmbedAPI from './embed/embed';
|
|
63
64
|
import { Embed, EmbedGetThemeParams, EmbedVerifyParams } from './embed/embed';
|
|
@@ -81,6 +82,7 @@ import {
|
|
|
81
82
|
MaterialResponse,
|
|
82
83
|
MaterialSearchParams,
|
|
83
84
|
MaterialSearchResponse,
|
|
85
|
+
MaterialUpdateParams,
|
|
84
86
|
Materials,
|
|
85
87
|
} from './materials/materials';
|
|
86
88
|
import { APIPromise } from '../../core/api-promise';
|
|
@@ -138,6 +140,7 @@ export declare namespace V1 {
|
|
|
138
140
|
type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse,
|
|
139
141
|
type MaterialSearchResponse as MaterialSearchResponse,
|
|
140
142
|
type MaterialCreateParams as MaterialCreateParams,
|
|
143
|
+
type MaterialUpdateParams as MaterialUpdateParams,
|
|
141
144
|
type MaterialListParams as MaterialListParams,
|
|
142
145
|
type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
|
|
143
146
|
type MaterialCreateBatchUploadURLsParams as MaterialCreateBatchUploadURLsParams,
|
|
@@ -203,15 +206,16 @@ export declare namespace V1 {
|
|
|
203
206
|
export {
|
|
204
207
|
ChatAnalytics as ChatAnalytics,
|
|
205
208
|
type ChatAnalyticsResponse as ChatAnalyticsResponse,
|
|
206
|
-
type
|
|
207
|
-
type
|
|
208
|
-
type
|
|
209
|
-
type
|
|
209
|
+
type ChatAnalyticsExportResponse as ChatAnalyticsExportResponse,
|
|
210
|
+
type ChatAnalyticsAnalyzeParams as ChatAnalyticsAnalyzeParams,
|
|
211
|
+
type ChatAnalyticsExportParams as ChatAnalyticsExportParams,
|
|
212
|
+
type ChatAnalyticsGetComponentParams as ChatAnalyticsGetComponentParams,
|
|
210
213
|
};
|
|
211
214
|
|
|
212
215
|
export {
|
|
213
216
|
AssignmentGrader as AssignmentGrader,
|
|
214
217
|
type AssignmentGraderResponse as AssignmentGraderResponse,
|
|
218
|
+
type PerformanceItem as PerformanceItem,
|
|
215
219
|
type AssignmentGraderCreateResponse as AssignmentGraderCreateResponse,
|
|
216
220
|
type AssignmentGraderGenerateReportResponse as AssignmentGraderGenerateReportResponse,
|
|
217
221
|
type AssignmentGraderGetAllResponse as AssignmentGraderGetAllResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.40.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.40.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.40.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.40.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|