@studyfetch/sdk 1.37.0 → 1.39.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 +38 -0
- package/client.js +2 -2
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- 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 +164 -5
- package/resources/v1/assignment-grader/assignment-grader.d.mts.map +1 -1
- package/resources/v1/assignment-grader/assignment-grader.d.ts +164 -5
- package/resources/v1/assignment-grader/assignment-grader.d.ts.map +1 -1
- package/resources/v1/assignment-grader/assignment-grader.js +5 -7
- package/resources/v1/assignment-grader/assignment-grader.js.map +1 -1
- package/resources/v1/assignment-grader/assignment-grader.mjs +5 -7
- 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 +2 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -2
- 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/v1.d.mts +4 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -4
- 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 +2 -2
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/v1/assignment-grader/assignment-grader.ts +202 -8
- 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 +5 -4
- package/src/resources/v1/v1.ts +10 -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
|
*/
|
|
@@ -4,6 +4,7 @@ export {
|
|
|
4
4
|
AssignmentGrader,
|
|
5
5
|
type AssignmentGraderResponse,
|
|
6
6
|
type AssignmentGraderCreateResponse,
|
|
7
|
+
type AssignmentGraderGenerateReportResponse,
|
|
7
8
|
type AssignmentGraderGetAllResponse,
|
|
8
9
|
type AssignmentGraderCreateParams,
|
|
9
10
|
} from './assignment-grader/index';
|
|
@@ -11,10 +12,10 @@ export { Chat, type ChatStreamParams } from './chat';
|
|
|
11
12
|
export {
|
|
12
13
|
ChatAnalytics,
|
|
13
14
|
type ChatAnalyticsResponse,
|
|
14
|
-
type
|
|
15
|
-
type
|
|
16
|
-
type
|
|
17
|
-
type
|
|
15
|
+
type ChatAnalyticsExportResponse,
|
|
16
|
+
type ChatAnalyticsAnalyzeParams,
|
|
17
|
+
type ChatAnalyticsExportParams,
|
|
18
|
+
type ChatAnalyticsGetComponentParams,
|
|
18
19
|
} from './chat-analytics';
|
|
19
20
|
export {
|
|
20
21
|
Components,
|
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';
|
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
AssignmentGrader,
|
|
56
56
|
AssignmentGraderCreateParams,
|
|
57
57
|
AssignmentGraderCreateResponse,
|
|
58
|
+
AssignmentGraderGenerateReportResponse,
|
|
58
59
|
AssignmentGraderGetAllResponse,
|
|
59
60
|
AssignmentGraderResponse,
|
|
60
61
|
} from './assignment-grader/assignment-grader';
|
|
@@ -202,16 +203,17 @@ export declare namespace V1 {
|
|
|
202
203
|
export {
|
|
203
204
|
ChatAnalytics as ChatAnalytics,
|
|
204
205
|
type ChatAnalyticsResponse as ChatAnalyticsResponse,
|
|
205
|
-
type
|
|
206
|
-
type
|
|
207
|
-
type
|
|
208
|
-
type
|
|
206
|
+
type ChatAnalyticsExportResponse as ChatAnalyticsExportResponse,
|
|
207
|
+
type ChatAnalyticsAnalyzeParams as ChatAnalyticsAnalyzeParams,
|
|
208
|
+
type ChatAnalyticsExportParams as ChatAnalyticsExportParams,
|
|
209
|
+
type ChatAnalyticsGetComponentParams as ChatAnalyticsGetComponentParams,
|
|
209
210
|
};
|
|
210
211
|
|
|
211
212
|
export {
|
|
212
213
|
AssignmentGrader as AssignmentGrader,
|
|
213
214
|
type AssignmentGraderResponse as AssignmentGraderResponse,
|
|
214
215
|
type AssignmentGraderCreateResponse as AssignmentGraderCreateResponse,
|
|
216
|
+
type AssignmentGraderGenerateReportResponse as AssignmentGraderGenerateReportResponse,
|
|
215
217
|
type AssignmentGraderGetAllResponse as AssignmentGraderGetAllResponse,
|
|
216
218
|
type AssignmentGraderCreateParams as AssignmentGraderCreateParams,
|
|
217
219
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.39.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.39.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.39.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.39.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|