@studyfetch/sdk 1.36.0 → 1.38.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +6 -6
  3. package/client.js +1 -1
  4. package/client.js.map +1 -1
  5. package/client.mjs +1 -1
  6. package/client.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/resources/v1/assignment-grader/assignment-grader.d.mts +178 -155
  9. package/resources/v1/assignment-grader/assignment-grader.d.mts.map +1 -1
  10. package/resources/v1/assignment-grader/assignment-grader.d.ts +178 -155
  11. package/resources/v1/assignment-grader/assignment-grader.d.ts.map +1 -1
  12. package/resources/v1/assignment-grader/assignment-grader.js +9 -11
  13. package/resources/v1/assignment-grader/assignment-grader.js.map +1 -1
  14. package/resources/v1/assignment-grader/assignment-grader.mjs +9 -11
  15. package/resources/v1/assignment-grader/assignment-grader.mjs.map +1 -1
  16. package/resources/v1/assignment-grader/index.d.mts +2 -2
  17. package/resources/v1/assignment-grader/index.d.mts.map +1 -1
  18. package/resources/v1/assignment-grader/index.d.ts +2 -2
  19. package/resources/v1/assignment-grader/index.d.ts.map +1 -1
  20. package/resources/v1/assignment-grader/index.js.map +1 -1
  21. package/resources/v1/assignment-grader/index.mjs.map +1 -1
  22. package/resources/v1/assignment-grader/rubric-templates.d.mts +16 -136
  23. package/resources/v1/assignment-grader/rubric-templates.d.mts.map +1 -1
  24. package/resources/v1/assignment-grader/rubric-templates.d.ts +16 -136
  25. package/resources/v1/assignment-grader/rubric-templates.d.ts.map +1 -1
  26. package/resources/v1/assignment-grader/rubric-templates.js +3 -3
  27. package/resources/v1/assignment-grader/rubric-templates.js.map +1 -1
  28. package/resources/v1/assignment-grader/rubric-templates.mjs +3 -3
  29. package/resources/v1/assignment-grader/rubric-templates.mjs.map +1 -1
  30. package/resources/v1/chat-analytics.d.mts +11 -106
  31. package/resources/v1/chat-analytics.d.mts.map +1 -1
  32. package/resources/v1/chat-analytics.d.ts +11 -106
  33. package/resources/v1/chat-analytics.d.ts.map +1 -1
  34. package/resources/v1/chat-analytics.js +4 -4
  35. package/resources/v1/chat-analytics.js.map +1 -1
  36. package/resources/v1/chat-analytics.mjs +4 -4
  37. package/resources/v1/chat-analytics.mjs.map +1 -1
  38. package/resources/v1/components.d.mts +20 -154
  39. package/resources/v1/components.d.mts.map +1 -1
  40. package/resources/v1/components.d.ts +20 -154
  41. package/resources/v1/components.d.ts.map +1 -1
  42. package/resources/v1/components.js +14 -8
  43. package/resources/v1/components.js.map +1 -1
  44. package/resources/v1/components.mjs +14 -8
  45. package/resources/v1/components.mjs.map +1 -1
  46. package/resources/v1/folders.d.mts +45 -232
  47. package/resources/v1/folders.d.mts.map +1 -1
  48. package/resources/v1/folders.d.ts +45 -232
  49. package/resources/v1/folders.d.ts.map +1 -1
  50. package/resources/v1/folders.js.map +1 -1
  51. package/resources/v1/folders.mjs.map +1 -1
  52. package/resources/v1/index.d.mts +5 -5
  53. package/resources/v1/index.d.mts.map +1 -1
  54. package/resources/v1/index.d.ts +5 -5
  55. package/resources/v1/index.d.ts.map +1 -1
  56. package/resources/v1/index.js.map +1 -1
  57. package/resources/v1/index.mjs.map +1 -1
  58. package/resources/v1/materials/index.d.mts +2 -3
  59. package/resources/v1/materials/index.d.mts.map +1 -1
  60. package/resources/v1/materials/index.d.ts +2 -3
  61. package/resources/v1/materials/index.d.ts.map +1 -1
  62. package/resources/v1/materials/index.js +1 -3
  63. package/resources/v1/materials/index.js.map +1 -1
  64. package/resources/v1/materials/index.mjs +0 -1
  65. package/resources/v1/materials/index.mjs.map +1 -1
  66. package/resources/v1/materials/materials.d.mts +66 -469
  67. package/resources/v1/materials/materials.d.mts.map +1 -1
  68. package/resources/v1/materials/materials.d.ts +66 -469
  69. package/resources/v1/materials/materials.d.ts.map +1 -1
  70. package/resources/v1/materials/materials.js +24 -23
  71. package/resources/v1/materials/materials.js.map +1 -1
  72. package/resources/v1/materials/materials.mjs +24 -23
  73. package/resources/v1/materials/materials.mjs.map +1 -1
  74. package/resources/v1/materials/upload.d.mts +12 -311
  75. package/resources/v1/materials/upload.d.mts.map +1 -1
  76. package/resources/v1/materials/upload.d.ts +12 -311
  77. package/resources/v1/materials/upload.d.ts.map +1 -1
  78. package/resources/v1/materials/upload.js +5 -5
  79. package/resources/v1/materials/upload.js.map +1 -1
  80. package/resources/v1/materials/upload.mjs +5 -5
  81. package/resources/v1/materials/upload.mjs.map +1 -1
  82. package/resources/v1/v1.d.mts +10 -10
  83. package/resources/v1/v1.d.mts.map +1 -1
  84. package/resources/v1/v1.d.ts +10 -10
  85. package/resources/v1/v1.d.ts.map +1 -1
  86. package/resources/v1/v1.js.map +1 -1
  87. package/resources/v1/v1.mjs.map +1 -1
  88. package/src/client.ts +1 -1
  89. package/src/resources/v1/assignment-grader/assignment-grader.ts +206 -180
  90. package/src/resources/v1/assignment-grader/index.ts +4 -3
  91. package/src/resources/v1/assignment-grader/rubric-templates.ts +17 -165
  92. package/src/resources/v1/chat-analytics.ts +11 -128
  93. package/src/resources/v1/components.ts +20 -223
  94. package/src/resources/v1/folders.ts +52 -276
  95. package/src/resources/v1/index.ts +8 -14
  96. package/src/resources/v1/materials/index.ts +3 -20
  97. package/src/resources/v1/materials/materials.ts +194 -743
  98. package/src/resources/v1/materials/upload.ts +14 -405
  99. package/src/resources/v1/v1.ts +16 -28
  100. package/src/version.ts +1 -1
  101. package/version.d.mts +1 -1
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
  104. package/version.mjs +1 -1
  105. package/resources/v1/materials/test.d.mts +0 -136
  106. package/resources/v1/materials/test.d.mts.map +0 -1
  107. package/resources/v1/materials/test.d.ts +0 -136
  108. package/resources/v1/materials/test.d.ts.map +0 -1
  109. package/resources/v1/materials/test.js +0 -56
  110. package/resources/v1/materials/test.js.map +0 -1
  111. package/resources/v1/materials/test.mjs +0 -52
  112. package/resources/v1/materials/test.mjs.map +0 -1
  113. package/src/resources/v1/materials/test.ts +0 -175
@@ -12,17 +12,14 @@ export class RubricTemplates extends APIResource {
12
12
  *
13
13
  * @example
14
14
  * ```ts
15
- * const rubricTemplate =
15
+ * const rubricTemplateResponse =
16
16
  * await client.v1.assignmentGrader.rubricTemplates.create({
17
17
  * criteria: [{ pointsPossible: 0, title: 'title' }],
18
18
  * name: 'name',
19
19
  * });
20
20
  * ```
21
21
  */
22
- create(
23
- body: RubricTemplateCreateParams,
24
- options?: RequestOptions,
25
- ): APIPromise<RubricTemplateCreateResponse> {
22
+ create(body: RubricTemplateCreateParams, options?: RequestOptions): APIPromise<RubricTemplateResponse> {
26
23
  return this._client.post('/api/v1/assignment-grader/rubric-templates', { body, ...options });
27
24
  }
28
25
 
@@ -31,7 +28,7 @@ export class RubricTemplates extends APIResource {
31
28
  *
32
29
  * @example
33
30
  * ```ts
34
- * const rubricTemplates =
31
+ * const rubricTemplateResponses =
35
32
  * await client.v1.assignmentGrader.rubricTemplates.list();
36
33
  * ```
37
34
  */
@@ -61,144 +58,35 @@ export class RubricTemplates extends APIResource {
61
58
  *
62
59
  * @example
63
60
  * ```ts
64
- * const response =
61
+ * const rubricTemplateResponse =
65
62
  * await client.v1.assignmentGrader.rubricTemplates.getByID(
66
63
  * 'id',
67
64
  * );
68
65
  * ```
69
66
  */
70
- getByID(id: string, options?: RequestOptions): APIPromise<RubricTemplateGetByIDResponse> {
67
+ getByID(id: string, options?: RequestOptions): APIPromise<RubricTemplateResponse> {
71
68
  return this._client.get(path`/api/v1/assignment-grader/rubric-templates/${id}`, options);
72
69
  }
73
70
  }
74
71
 
75
- export interface RubricTemplateCreateResponse {
72
+ export interface RubricCriterion {
76
73
  /**
77
- * Template ID
74
+ * Points possible for this criterion
78
75
  */
79
- _id: string;
76
+ pointsPossible: number;
80
77
 
81
78
  /**
82
- * Creation timestamp
79
+ * Title of the criterion
83
80
  */
84
- createdAt: string;
81
+ title: string;
85
82
 
86
83
  /**
87
- * Created by user ID
88
- */
89
- createdBy: string;
90
-
91
- /**
92
- * Grading criteria
93
- */
94
- criteria: Array<RubricTemplateCreateResponse.Criterion>;
95
-
96
- /**
97
- * Template name
98
- */
99
- name: string;
100
-
101
- /**
102
- * Organization ID
103
- */
104
- organizationId: string;
105
-
106
- /**
107
- * Update timestamp
108
- */
109
- updatedAt: string;
110
-
111
- /**
112
- * Template description
84
+ * Description of the criterion
113
85
  */
114
86
  description?: string;
115
87
  }
116
88
 
117
- export namespace RubricTemplateCreateResponse {
118
- export interface Criterion {
119
- /**
120
- * Points possible for this criterion
121
- */
122
- pointsPossible: number;
123
-
124
- /**
125
- * Title of the criterion
126
- */
127
- title: string;
128
-
129
- /**
130
- * Description of the criterion
131
- */
132
- description?: string;
133
- }
134
- }
135
-
136
- export type RubricTemplateListResponse = Array<RubricTemplateListResponse.RubricTemplateListResponseItem>;
137
-
138
- export namespace RubricTemplateListResponse {
139
- export interface RubricTemplateListResponseItem {
140
- /**
141
- * Template ID
142
- */
143
- _id: string;
144
-
145
- /**
146
- * Creation timestamp
147
- */
148
- createdAt: string;
149
-
150
- /**
151
- * Created by user ID
152
- */
153
- createdBy: string;
154
-
155
- /**
156
- * Grading criteria
157
- */
158
- criteria: Array<RubricTemplateListResponseItem.Criterion>;
159
-
160
- /**
161
- * Template name
162
- */
163
- name: string;
164
-
165
- /**
166
- * Organization ID
167
- */
168
- organizationId: string;
169
-
170
- /**
171
- * Update timestamp
172
- */
173
- updatedAt: string;
174
-
175
- /**
176
- * Template description
177
- */
178
- description?: string;
179
- }
180
-
181
- export namespace RubricTemplateListResponseItem {
182
- export interface Criterion {
183
- /**
184
- * Points possible for this criterion
185
- */
186
- pointsPossible: number;
187
-
188
- /**
189
- * Title of the criterion
190
- */
191
- title: string;
192
-
193
- /**
194
- * Description of the criterion
195
- */
196
- description?: string;
197
- }
198
- }
199
- }
200
-
201
- export interface RubricTemplateGetByIDResponse {
89
+ export interface RubricTemplateResponse {
202
90
  /**
203
91
  * Template ID
204
92
  */
@@ -217,7 +105,7 @@ export interface RubricTemplateGetByIDResponse {
217
105
  /**
218
106
  * Grading criteria
219
107
  */
220
- criteria: Array<RubricTemplateGetByIDResponse.Criterion>;
108
+ criteria: Array<RubricCriterion>;
221
109
 
222
110
  /**
223
111
  * Template name
@@ -240,30 +128,13 @@ export interface RubricTemplateGetByIDResponse {
240
128
  description?: string;
241
129
  }
242
130
 
243
- export namespace RubricTemplateGetByIDResponse {
244
- export interface Criterion {
245
- /**
246
- * Points possible for this criterion
247
- */
248
- pointsPossible: number;
249
-
250
- /**
251
- * Title of the criterion
252
- */
253
- title: string;
254
-
255
- /**
256
- * Description of the criterion
257
- */
258
- description?: string;
259
- }
260
- }
131
+ export type RubricTemplateListResponse = Array<RubricTemplateResponse>;
261
132
 
262
133
  export interface RubricTemplateCreateParams {
263
134
  /**
264
135
  * Grading criteria
265
136
  */
266
- criteria: Array<RubricTemplateCreateParams.Criterion>;
137
+ criteria: Array<RubricCriterion>;
267
138
 
268
139
  /**
269
140
  * Name of the rubric template
@@ -276,30 +147,11 @@ export interface RubricTemplateCreateParams {
276
147
  description?: string;
277
148
  }
278
149
 
279
- export namespace RubricTemplateCreateParams {
280
- export interface Criterion {
281
- /**
282
- * Points possible for this criterion
283
- */
284
- pointsPossible: number;
285
-
286
- /**
287
- * Title of the criterion
288
- */
289
- title: string;
290
-
291
- /**
292
- * Description of the criterion
293
- */
294
- description?: string;
295
- }
296
- }
297
-
298
150
  export declare namespace RubricTemplates {
299
151
  export {
300
- type RubricTemplateCreateResponse as RubricTemplateCreateResponse,
152
+ type RubricCriterion as RubricCriterion,
153
+ type RubricTemplateResponse as RubricTemplateResponse,
301
154
  type RubricTemplateListResponse as RubricTemplateListResponse,
302
- type RubricTemplateGetByIDResponse as RubricTemplateGetByIDResponse,
303
155
  type RubricTemplateCreateParams as RubricTemplateCreateParams,
304
156
  };
305
157
  }
@@ -13,13 +13,14 @@ export class ChatAnalytics extends APIResource {
13
13
  *
14
14
  * @example
15
15
  * ```ts
16
- * const response = await client.v1.chatAnalytics.analyze();
16
+ * const chatAnalyticsResponse =
17
+ * await client.v1.chatAnalytics.analyze();
17
18
  * ```
18
19
  */
19
20
  analyze(
20
21
  query: ChatAnalyticAnalyzeParams | null | undefined = {},
21
22
  options?: RequestOptions,
22
- ): APIPromise<ChatAnalyticAnalyzeResponse> {
23
+ ): APIPromise<ChatAnalyticsResponse> {
23
24
  return this._client.get('/api/v1/chat-analytics/analyze', { query, ...options });
24
25
  }
25
26
 
@@ -47,21 +48,20 @@ export class ChatAnalytics extends APIResource {
47
48
  *
48
49
  * @example
49
50
  * ```ts
50
- * const response = await client.v1.chatAnalytics.getComponent(
51
- * 'componentId',
52
- * );
51
+ * const chatAnalyticsResponse =
52
+ * await client.v1.chatAnalytics.getComponent('componentId');
53
53
  * ```
54
54
  */
55
55
  getComponent(
56
56
  componentID: string,
57
57
  query: ChatAnalyticGetComponentParams | null | undefined = {},
58
58
  options?: RequestOptions,
59
- ): APIPromise<ChatAnalyticGetComponentResponse> {
59
+ ): APIPromise<ChatAnalyticsResponse> {
60
60
  return this._client.get(path`/api/v1/chat-analytics/component/${componentID}`, { query, ...options });
61
61
  }
62
62
  }
63
63
 
64
- export interface ChatAnalyticAnalyzeResponse {
64
+ export interface ChatAnalyticsResponse {
65
65
  /**
66
66
  * Date when analytics were generated
67
67
  */
@@ -70,15 +70,15 @@ export interface ChatAnalyticAnalyzeResponse {
70
70
  /**
71
71
  * Analytics summary
72
72
  */
73
- summary: ChatAnalyticAnalyzeResponse.Summary;
73
+ summary: ChatAnalyticsResponse.Summary;
74
74
 
75
75
  /**
76
76
  * User statistics
77
77
  */
78
- userStats: Array<ChatAnalyticAnalyzeResponse.UserStat>;
78
+ userStats: Array<ChatAnalyticsResponse.UserStat>;
79
79
  }
80
80
 
81
- export namespace ChatAnalyticAnalyzeResponse {
81
+ export namespace ChatAnalyticsResponse {
82
82
  /**
83
83
  * Analytics summary
84
84
  */
@@ -179,122 +179,6 @@ export namespace ChatAnalyticAnalyzeResponse {
179
179
 
180
180
  export type ChatAnalyticExportResponse = Uploadable;
181
181
 
182
- export interface ChatAnalyticGetComponentResponse {
183
- /**
184
- * Date when analytics were generated
185
- */
186
- generatedAt: string;
187
-
188
- /**
189
- * Analytics summary
190
- */
191
- summary: ChatAnalyticGetComponentResponse.Summary;
192
-
193
- /**
194
- * User statistics
195
- */
196
- userStats: Array<ChatAnalyticGetComponentResponse.UserStat>;
197
- }
198
-
199
- export namespace ChatAnalyticGetComponentResponse {
200
- /**
201
- * Analytics summary
202
- */
203
- export interface Summary {
204
- /**
205
- * Average messages per user
206
- */
207
- averageMessagesPerUser: number;
208
-
209
- /**
210
- * Engagement metrics
211
- */
212
- engagement: unknown;
213
-
214
- /**
215
- * Natural language summary of chat usage
216
- */
217
- summary: string;
218
-
219
- /**
220
- * Top topics discussed
221
- */
222
- topTopics: Array<string>;
223
-
224
- /**
225
- * Total messages
226
- */
227
- totalMessages: number;
228
-
229
- /**
230
- * Total chat sessions
231
- */
232
- totalSessions: number;
233
-
234
- /**
235
- * Total unique users
236
- */
237
- totalUsers: number;
238
- }
239
-
240
- export interface UserStat {
241
- /**
242
- * Average messages per session
243
- */
244
- averageMessagesPerSession: number;
245
-
246
- /**
247
- * Average session duration in minutes
248
- */
249
- averageSessionDuration: number;
250
-
251
- /**
252
- * First active date
253
- */
254
- firstActive: string;
255
-
256
- /**
257
- * Last active date
258
- */
259
- lastActive: string;
260
-
261
- /**
262
- * Top topics discussed
263
- */
264
- topTopics: Array<string>;
265
-
266
- /**
267
- * Total messages sent by user
268
- */
269
- totalMessages: number;
270
-
271
- /**
272
- * Total chat sessions
273
- */
274
- totalSessions: number;
275
-
276
- /**
277
- * User ID
278
- */
279
- userId: string;
280
-
281
- /**
282
- * User email
283
- */
284
- email?: string;
285
-
286
- /**
287
- * Group IDs associated with the user
288
- */
289
- groupIds?: Array<string>;
290
-
291
- /**
292
- * User name
293
- */
294
- name?: string;
295
- }
296
- }
297
-
298
182
  export interface ChatAnalyticAnalyzeParams {
299
183
  /**
300
184
  * Component ID to analyze
@@ -403,9 +287,8 @@ export interface ChatAnalyticGetComponentParams {
403
287
 
404
288
  export declare namespace ChatAnalytics {
405
289
  export {
406
- type ChatAnalyticAnalyzeResponse as ChatAnalyticAnalyzeResponse,
290
+ type ChatAnalyticsResponse as ChatAnalyticsResponse,
407
291
  type ChatAnalyticExportResponse as ChatAnalyticExportResponse,
408
- type ChatAnalyticGetComponentResponse as ChatAnalyticGetComponentResponse,
409
292
  type ChatAnalyticAnalyzeParams as ChatAnalyticAnalyzeParams,
410
293
  type ChatAnalyticExportParams as ChatAnalyticExportParams,
411
294
  type ChatAnalyticGetComponentParams as ChatAnalyticGetComponentParams,