@studyfetch/sdk 1.33.0 → 1.35.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 (168) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts.map +1 -1
  5. package/client.js.map +1 -1
  6. package/client.mjs.map +1 -1
  7. package/package.json +4 -5
  8. package/resources/v1/assignment-grader/assignment-grader.d.mts +313 -0
  9. package/resources/v1/assignment-grader/assignment-grader.d.mts.map +1 -0
  10. package/resources/v1/assignment-grader/assignment-grader.d.ts +313 -0
  11. package/resources/v1/assignment-grader/assignment-grader.d.ts.map +1 -0
  12. package/resources/v1/assignment-grader/assignment-grader.js +87 -0
  13. package/resources/v1/assignment-grader/assignment-grader.js.map +1 -0
  14. package/resources/v1/assignment-grader/assignment-grader.mjs +82 -0
  15. package/resources/v1/assignment-grader/assignment-grader.mjs.map +1 -0
  16. package/resources/v1/assignment-grader/index.d.mts +3 -0
  17. package/resources/v1/assignment-grader/index.d.mts.map +1 -0
  18. package/resources/v1/assignment-grader/index.d.ts +3 -0
  19. package/resources/v1/assignment-grader/index.d.ts.map +1 -0
  20. package/resources/v1/assignment-grader/index.js +9 -0
  21. package/resources/v1/assignment-grader/index.js.map +1 -0
  22. package/resources/v1/assignment-grader/index.mjs +4 -0
  23. package/resources/v1/assignment-grader/index.mjs.map +1 -0
  24. package/resources/v1/assignment-grader/rubric-templates.d.mts +238 -0
  25. package/resources/v1/assignment-grader/rubric-templates.d.mts.map +1 -0
  26. package/resources/v1/assignment-grader/rubric-templates.d.ts +238 -0
  27. package/resources/v1/assignment-grader/rubric-templates.d.ts.map +1 -0
  28. package/resources/v1/assignment-grader/rubric-templates.js +68 -0
  29. package/resources/v1/assignment-grader/rubric-templates.js.map +1 -0
  30. package/resources/v1/assignment-grader/rubric-templates.mjs +64 -0
  31. package/resources/v1/assignment-grader/rubric-templates.mjs.map +1 -0
  32. package/resources/v1/assignment-grader.d.mts +1 -152
  33. package/resources/v1/assignment-grader.d.mts.map +1 -1
  34. package/resources/v1/assignment-grader.d.ts +1 -152
  35. package/resources/v1/assignment-grader.d.ts.map +1 -1
  36. package/resources/v1/assignment-grader.js +2 -62
  37. package/resources/v1/assignment-grader.js.map +1 -1
  38. package/resources/v1/assignment-grader.mjs +1 -60
  39. package/resources/v1/assignment-grader.mjs.map +1 -1
  40. package/resources/v1/chat-analytics.d.mts +316 -0
  41. package/resources/v1/chat-analytics.d.mts.map +1 -0
  42. package/resources/v1/chat-analytics.d.ts +316 -0
  43. package/resources/v1/chat-analytics.d.ts.map +1 -0
  44. package/resources/v1/chat-analytics.js +50 -0
  45. package/resources/v1/chat-analytics.js.map +1 -0
  46. package/resources/v1/chat-analytics.mjs +46 -0
  47. package/resources/v1/chat-analytics.mjs.map +1 -0
  48. package/resources/v1/components.d.mts +184 -10
  49. package/resources/v1/components.d.mts.map +1 -1
  50. package/resources/v1/components.d.ts +184 -10
  51. package/resources/v1/components.d.ts.map +1 -1
  52. package/resources/v1/components.js.map +1 -1
  53. package/resources/v1/components.mjs.map +1 -1
  54. package/resources/v1/folders.d.mts +528 -21
  55. package/resources/v1/folders.d.mts.map +1 -1
  56. package/resources/v1/folders.d.ts +528 -21
  57. package/resources/v1/folders.d.ts.map +1 -1
  58. package/resources/v1/folders.js +25 -39
  59. package/resources/v1/folders.js.map +1 -1
  60. package/resources/v1/folders.mjs +25 -39
  61. package/resources/v1/folders.mjs.map +1 -1
  62. package/resources/v1/index.d.mts +7 -5
  63. package/resources/v1/index.d.mts.map +1 -1
  64. package/resources/v1/index.d.ts +7 -5
  65. package/resources/v1/index.d.ts.map +1 -1
  66. package/resources/v1/index.js +13 -9
  67. package/resources/v1/index.js.map +1 -1
  68. package/resources/v1/index.mjs +5 -3
  69. package/resources/v1/index.mjs.map +1 -1
  70. package/resources/v1/materials/index.d.mts +3 -3
  71. package/resources/v1/materials/index.d.mts.map +1 -1
  72. package/resources/v1/materials/index.d.ts +3 -3
  73. package/resources/v1/materials/index.d.ts.map +1 -1
  74. package/resources/v1/materials/index.js.map +1 -1
  75. package/resources/v1/materials/index.mjs.map +1 -1
  76. package/resources/v1/materials/materials.d.mts +548 -92
  77. package/resources/v1/materials/materials.d.mts.map +1 -1
  78. package/resources/v1/materials/materials.d.ts +548 -92
  79. package/resources/v1/materials/materials.d.ts.map +1 -1
  80. package/resources/v1/materials/materials.js +36 -34
  81. package/resources/v1/materials/materials.js.map +1 -1
  82. package/resources/v1/materials/materials.mjs +36 -34
  83. package/resources/v1/materials/materials.mjs.map +1 -1
  84. package/resources/v1/materials/test.d.mts +29 -30
  85. package/resources/v1/materials/test.d.mts.map +1 -1
  86. package/resources/v1/materials/test.d.ts +29 -30
  87. package/resources/v1/materials/test.d.ts.map +1 -1
  88. package/resources/v1/materials/test.js +14 -15
  89. package/resources/v1/materials/test.js.map +1 -1
  90. package/resources/v1/materials/test.mjs +14 -15
  91. package/resources/v1/materials/test.mjs.map +1 -1
  92. package/resources/v1/materials/upload.d.mts +312 -23
  93. package/resources/v1/materials/upload.d.mts.map +1 -1
  94. package/resources/v1/materials/upload.d.ts +312 -23
  95. package/resources/v1/materials/upload.d.ts.map +1 -1
  96. package/resources/v1/materials/upload.js +9 -9
  97. package/resources/v1/materials/upload.js.map +1 -1
  98. package/resources/v1/materials/upload.mjs +9 -9
  99. package/resources/v1/materials/upload.mjs.map +1 -1
  100. package/resources/v1/usage-analyst.d.mts +99 -0
  101. package/resources/v1/usage-analyst.d.mts.map +1 -0
  102. package/resources/v1/usage-analyst.d.ts +99 -0
  103. package/resources/v1/usage-analyst.d.ts.map +1 -0
  104. package/resources/v1/{usage/analyst.js → usage-analyst.js} +9 -9
  105. package/resources/v1/usage-analyst.js.map +1 -0
  106. package/resources/v1/{usage/analyst.mjs → usage-analyst.mjs} +7 -7
  107. package/resources/v1/usage-analyst.mjs.map +1 -0
  108. package/resources/v1/usage.d.mts +109 -1
  109. package/resources/v1/usage.d.mts.map +1 -1
  110. package/resources/v1/usage.d.ts +109 -1
  111. package/resources/v1/usage.d.ts.map +1 -1
  112. package/resources/v1/usage.js +55 -2
  113. package/resources/v1/usage.js.map +1 -1
  114. package/resources/v1/usage.mjs +53 -1
  115. package/resources/v1/usage.mjs.map +1 -1
  116. package/resources/v1/v1.d.mts +20 -12
  117. package/resources/v1/v1.d.mts.map +1 -1
  118. package/resources/v1/v1.d.ts +20 -12
  119. package/resources/v1/v1.d.ts.map +1 -1
  120. package/resources/v1/v1.js +14 -6
  121. package/resources/v1/v1.js.map +1 -1
  122. package/resources/v1/v1.mjs +15 -7
  123. package/resources/v1/v1.mjs.map +1 -1
  124. package/src/client.ts +2 -0
  125. package/src/resources/v1/assignment-grader/assignment-grader.ts +421 -0
  126. package/src/resources/v1/assignment-grader/index.ts +16 -0
  127. package/src/resources/v1/assignment-grader/rubric-templates.ts +305 -0
  128. package/src/resources/v1/assignment-grader.ts +1 -196
  129. package/src/resources/v1/chat-analytics.ts +413 -0
  130. package/src/resources/v1/components.ts +265 -10
  131. package/src/resources/v1/folders.ts +659 -51
  132. package/src/resources/v1/index.ts +48 -11
  133. package/src/resources/v1/materials/index.ts +23 -14
  134. package/src/resources/v1/materials/materials.ts +824 -216
  135. package/src/resources/v1/materials/test.ts +38 -39
  136. package/src/resources/v1/materials/upload.ts +411 -30
  137. package/src/resources/v1/{usage/analyst.ts → usage-analyst.ts} +24 -23
  138. package/src/resources/v1/usage.ts +179 -1
  139. package/src/resources/v1/v1.ts +106 -29
  140. package/src/version.ts +1 -1
  141. package/version.d.mts +1 -1
  142. package/version.d.ts +1 -1
  143. package/version.js +1 -1
  144. package/version.mjs +1 -1
  145. package/resources/v1/usage/analyst.d.mts +0 -99
  146. package/resources/v1/usage/analyst.d.mts.map +0 -1
  147. package/resources/v1/usage/analyst.d.ts +0 -99
  148. package/resources/v1/usage/analyst.d.ts.map +0 -1
  149. package/resources/v1/usage/analyst.js.map +0 -1
  150. package/resources/v1/usage/analyst.mjs.map +0 -1
  151. package/resources/v1/usage/index.d.mts +0 -3
  152. package/resources/v1/usage/index.d.mts.map +0 -1
  153. package/resources/v1/usage/index.d.ts +0 -3
  154. package/resources/v1/usage/index.d.ts.map +0 -1
  155. package/resources/v1/usage/index.js +0 -9
  156. package/resources/v1/usage/index.js.map +0 -1
  157. package/resources/v1/usage/index.mjs +0 -4
  158. package/resources/v1/usage/index.mjs.map +0 -1
  159. package/resources/v1/usage/usage.d.mts +0 -114
  160. package/resources/v1/usage/usage.d.mts.map +0 -1
  161. package/resources/v1/usage/usage.d.ts +0 -114
  162. package/resources/v1/usage/usage.d.ts.map +0 -1
  163. package/resources/v1/usage/usage.js +0 -67
  164. package/resources/v1/usage/usage.js.map +0 -1
  165. package/resources/v1/usage/usage.mjs +0 -62
  166. package/resources/v1/usage/usage.mjs.map +0 -1
  167. package/src/resources/v1/usage/index.ts +0 -15
  168. package/src/resources/v1/usage/usage.ts +0 -200
@@ -1,21 +1,21 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
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';
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
7
 
8
- export class Analyst extends APIResource {
8
+ export class UsageAnalyst extends APIResource {
9
9
  /**
10
10
  * Get test results with full question data for user or group
11
11
  *
12
12
  * @example
13
13
  * ```ts
14
- * await client.v1.usage.analyst.getTestQuestions();
14
+ * await client.v1.usageAnalyst.getTestQuestions();
15
15
  * ```
16
16
  */
17
17
  getTestQuestions(
18
- query: AnalystGetTestQuestionsParams | null | undefined = {},
18
+ query: UsageAnalystGetTestQuestionsParams | null | undefined = {},
19
19
  options?: RequestOptions,
20
20
  ): APIPromise<void> {
21
21
  return this._client.get('/api/v1/usage-analyst/test-questions', {
@@ -31,13 +31,13 @@ export class Analyst extends APIResource {
31
31
  * @example
32
32
  * ```ts
33
33
  * const response =
34
- * await client.v1.usage.analyst.listChatMessages();
34
+ * await client.v1.usageAnalyst.listChatMessages();
35
35
  * ```
36
36
  */
37
37
  listChatMessages(
38
- query: AnalystListChatMessagesParams | null | undefined = {},
38
+ query: UsageAnalystListChatMessagesParams | null | undefined = {},
39
39
  options?: RequestOptions,
40
- ): APIPromise<AnalystListChatMessagesResponse> {
40
+ ): APIPromise<UsageAnalystListChatMessagesResponse> {
41
41
  return this._client.get('/api/v1/usage-analyst/chat-messages', { query, ...options });
42
42
  }
43
43
 
@@ -46,14 +46,14 @@ export class Analyst extends APIResource {
46
46
  *
47
47
  * @example
48
48
  * ```ts
49
- * await client.v1.usage.analyst.listEvents({
49
+ * await client.v1.usageAnalyst.listEvents({
50
50
  * endDate: 'endDate',
51
51
  * eventType: 'material_created',
52
52
  * startDate: 'startDate',
53
53
  * });
54
54
  * ```
55
55
  */
56
- listEvents(query: AnalystListEventsParams, options?: RequestOptions): APIPromise<void> {
56
+ listEvents(query: UsageAnalystListEventsParams, options?: RequestOptions): APIPromise<void> {
57
57
  return this._client.get('/api/v1/usage-analyst/events', {
58
58
  query,
59
59
  ...options,
@@ -62,15 +62,15 @@ export class Analyst extends APIResource {
62
62
  }
63
63
  }
64
64
 
65
- export interface AnalystListChatMessagesResponse {
66
- messages?: Array<AnalystListChatMessagesResponse.Message>;
65
+ export interface UsageAnalystListChatMessagesResponse {
66
+ messages?: Array<UsageAnalystListChatMessagesResponse.Message>;
67
67
 
68
68
  sessionCount?: number;
69
69
 
70
70
  total?: number;
71
71
  }
72
72
 
73
- export namespace AnalystListChatMessagesResponse {
73
+ export namespace UsageAnalystListChatMessagesResponse {
74
74
  export interface Message {
75
75
  componentId?: string;
76
76
 
@@ -88,7 +88,7 @@ export namespace AnalystListChatMessagesResponse {
88
88
  }
89
89
  }
90
90
 
91
- export interface AnalystGetTestQuestionsParams {
91
+ export interface UsageAnalystGetTestQuestionsParams {
92
92
  /**
93
93
  * Array of group IDs to filter
94
94
  */
@@ -100,7 +100,7 @@ export interface AnalystGetTestQuestionsParams {
100
100
  userId?: string;
101
101
  }
102
102
 
103
- export interface AnalystListChatMessagesParams {
103
+ export interface UsageAnalystListChatMessagesParams {
104
104
  /**
105
105
  * Array of group IDs to filter
106
106
  */
@@ -112,7 +112,7 @@ export interface AnalystListChatMessagesParams {
112
112
  userId?: string;
113
113
  }
114
114
 
115
- export interface AnalystListEventsParams {
115
+ export interface UsageAnalystListEventsParams {
116
116
  /**
117
117
  * End date for filtering (ISO 8601)
118
118
  */
@@ -133,6 +133,7 @@ export interface AnalystListEventsParams {
133
133
  | 'chat_message_sent'
134
134
  | 'chat_session_started'
135
135
  | 'chat_session_ended'
136
+ | 'chat_feedback'
136
137
  | 'test_created'
137
138
  | 'test_started'
138
139
  | 'test_completed'
@@ -162,11 +163,11 @@ export interface AnalystListEventsParams {
162
163
  userIds?: Array<string>;
163
164
  }
164
165
 
165
- export declare namespace Analyst {
166
+ export declare namespace UsageAnalyst {
166
167
  export {
167
- type AnalystListChatMessagesResponse as AnalystListChatMessagesResponse,
168
- type AnalystGetTestQuestionsParams as AnalystGetTestQuestionsParams,
169
- type AnalystListChatMessagesParams as AnalystListChatMessagesParams,
170
- type AnalystListEventsParams as AnalystListEventsParams,
168
+ type UsageAnalystListChatMessagesResponse as UsageAnalystListChatMessagesResponse,
169
+ type UsageAnalystGetTestQuestionsParams as UsageAnalystGetTestQuestionsParams,
170
+ type UsageAnalystListChatMessagesParams as UsageAnalystListChatMessagesParams,
171
+ type UsageAnalystListEventsParams as UsageAnalystListEventsParams,
171
172
  };
172
173
  }
@@ -1,3 +1,181 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export * from './usage/index';
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 Usage extends APIResource {
9
+ /**
10
+ * Get usage statistics
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * await client.v1.usage.getStats();
15
+ * ```
16
+ */
17
+ getStats(query: UsageGetStatsParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
18
+ return this._client.get('/api/v1/usage/stats', {
19
+ query,
20
+ ...options,
21
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
22
+ });
23
+ }
24
+
25
+ /**
26
+ * Get usage summary
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * await client.v1.usage.getSummary({
31
+ * endDate: 'endDate',
32
+ * period: 'hourly',
33
+ * startDate: 'startDate',
34
+ * });
35
+ * ```
36
+ */
37
+ getSummary(query: UsageGetSummaryParams, options?: RequestOptions): APIPromise<void> {
38
+ return this._client.get('/api/v1/usage/summary', {
39
+ query,
40
+ ...options,
41
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
42
+ });
43
+ }
44
+
45
+ /**
46
+ * Get usage events
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * await client.v1.usage.listEvents();
51
+ * ```
52
+ */
53
+ listEvents(
54
+ query: UsageListEventsParams | null | undefined = {},
55
+ options?: RequestOptions,
56
+ ): APIPromise<void> {
57
+ return this._client.get('/api/v1/usage/events', {
58
+ query,
59
+ ...options,
60
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
61
+ });
62
+ }
63
+ }
64
+
65
+ export interface UsageGetStatsParams {
66
+ /**
67
+ * End date for stats (ISO 8601)
68
+ */
69
+ endDate?: string;
70
+
71
+ /**
72
+ * Filter by group ID
73
+ */
74
+ groupId?: string;
75
+
76
+ /**
77
+ * Start date for stats (ISO 8601)
78
+ */
79
+ startDate?: string;
80
+
81
+ /**
82
+ * Filter by user ID
83
+ */
84
+ userId?: string;
85
+ }
86
+
87
+ export interface UsageGetSummaryParams {
88
+ /**
89
+ * End date for summary (ISO 8601)
90
+ */
91
+ endDate: string;
92
+
93
+ /**
94
+ * Summary period
95
+ */
96
+ period: 'hourly' | 'daily' | 'monthly';
97
+
98
+ /**
99
+ * Start date for summary (ISO 8601)
100
+ */
101
+ startDate: string;
102
+
103
+ /**
104
+ * Group results by
105
+ */
106
+ groupBy?: 'user' | 'group' | 'model' | 'endpoint';
107
+ }
108
+
109
+ export interface UsageListEventsParams {
110
+ /**
111
+ * End date for filtering (ISO 8601)
112
+ */
113
+ endDate?: string;
114
+
115
+ /**
116
+ * Filter by event type
117
+ */
118
+ eventType?:
119
+ | 'material_created'
120
+ | 'material_uploaded'
121
+ | 'material_processed'
122
+ | 'material_deleted'
123
+ | 'component_created'
124
+ | 'component_accessed'
125
+ | 'component_deleted'
126
+ | 'component_usage'
127
+ | 'chat_message_sent'
128
+ | 'chat_session_started'
129
+ | 'chat_session_ended'
130
+ | 'chat_feedback'
131
+ | 'test_created'
132
+ | 'test_started'
133
+ | 'test_completed'
134
+ | 'test_question_answered'
135
+ | 'test_retaken'
136
+ | 'audio_recap_create'
137
+ | 'assignment_grader_create'
138
+ | 'api_call'
139
+ | 'cache_hit'
140
+ | 'sso_login'
141
+ | 'sso_logout'
142
+ | 'student_performance';
143
+
144
+ /**
145
+ * Filter by group ID
146
+ */
147
+ groupId?: string;
148
+
149
+ /**
150
+ * Number of results to return
151
+ */
152
+ limit?: number;
153
+
154
+ /**
155
+ * Offset for pagination
156
+ */
157
+ offset?: number;
158
+
159
+ /**
160
+ * Filter by resource ID
161
+ */
162
+ resourceId?: string;
163
+
164
+ /**
165
+ * Start date for filtering (ISO 8601)
166
+ */
167
+ startDate?: string;
168
+
169
+ /**
170
+ * Filter by user ID
171
+ */
172
+ userId?: string;
173
+ }
174
+
175
+ export declare namespace Usage {
176
+ export {
177
+ type UsageGetStatsParams as UsageGetStatsParams,
178
+ type UsageGetSummaryParams as UsageGetSummaryParams,
179
+ type UsageListEventsParams as UsageListEventsParams,
180
+ };
181
+ }
@@ -1,54 +1,93 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
- import * as AssignmentGraderAPI from './assignment-grader';
5
- import {
6
- AssignmentGrader,
7
- AssignmentGraderCreateParams,
8
- AssignmentGraderGetAllResponse,
9
- AssignmentGraderResponse,
10
- } from './assignment-grader';
11
4
  import * as ChatAPI from './chat';
12
5
  import { Chat, ChatStreamParams } from './chat';
6
+ import * as ChatAnalyticsAPI from './chat-analytics';
7
+ import {
8
+ ChatAnalyticAnalyzeParams,
9
+ ChatAnalyticAnalyzeResponse,
10
+ ChatAnalyticExportParams,
11
+ ChatAnalyticExportResponse,
12
+ ChatAnalyticGetComponentParams,
13
+ ChatAnalyticGetComponentResponse,
14
+ ChatAnalytics,
15
+ } from './chat-analytics';
13
16
  import * as ComponentsAPI from './components';
14
17
  import {
15
- Component,
16
18
  ComponentCreateParams,
19
+ ComponentCreateResponse,
17
20
  ComponentGenerateEmbedParams,
18
21
  ComponentGenerateEmbedResponse,
19
22
  ComponentListParams,
20
23
  ComponentListResponse,
24
+ ComponentRetrieveResponse,
21
25
  ComponentUpdateParams,
26
+ ComponentUpdateResponse,
22
27
  Components,
23
28
  } from './components';
24
29
  import * as FoldersAPI from './folders';
25
- import { FolderCreateParams, FolderListParams, FolderUpdateParams, Folders } from './folders';
30
+ import {
31
+ FolderCreateParams,
32
+ FolderCreateResponse,
33
+ FolderGetTreeResponse,
34
+ FolderListMaterialsResponse,
35
+ FolderListParams,
36
+ FolderListResponse,
37
+ FolderMoveParams,
38
+ FolderMoveResponse,
39
+ FolderRetrieveResponse,
40
+ FolderUpdateParams,
41
+ FolderUpdateResponse,
42
+ Folders,
43
+ } from './folders';
44
+ import * as UsageAPI from './usage';
45
+ import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from './usage';
46
+ import * as UsageAnalystAPI from './usage-analyst';
47
+ import {
48
+ UsageAnalyst,
49
+ UsageAnalystGetTestQuestionsParams,
50
+ UsageAnalystListChatMessagesParams,
51
+ UsageAnalystListChatMessagesResponse,
52
+ UsageAnalystListEventsParams,
53
+ } from './usage-analyst';
54
+ import * as AssignmentGraderAPI from './assignment-grader/assignment-grader';
55
+ import {
56
+ AssignmentGrader,
57
+ AssignmentGraderCreateParams,
58
+ AssignmentGraderCreateResponse,
59
+ AssignmentGraderGetAllResponse,
60
+ AssignmentGraderGetByIDResponse,
61
+ } from './assignment-grader/assignment-grader';
26
62
  import * as EmbedAPI from './embed/embed';
27
63
  import { Embed, EmbedGetThemeParams, EmbedVerifyParams } from './embed/embed';
28
64
  import * as MaterialsAPI from './materials/materials';
29
65
  import {
30
- Content,
31
- GeneratedMaterial,
32
- Material,
33
- MaterialBatchCreateParams,
34
- MaterialBatchCreateResponse,
35
66
  MaterialCreateAndProcessParams,
67
+ MaterialCreateAndProcessResponse,
68
+ MaterialCreateBatchUploadURLsParams,
69
+ MaterialCreateBatchUploadURLsResponse,
36
70
  MaterialCreateParams,
37
- MaterialDebugResponse,
71
+ MaterialCreateResponse,
38
72
  MaterialGenerateAndProcessParams,
73
+ MaterialGenerateAndProcessResponse,
39
74
  MaterialGenerateParams,
75
+ MaterialGenerateResponse,
76
+ MaterialGetDebugInfoResponse,
40
77
  MaterialGetDownloadURLParams,
41
78
  MaterialGetDownloadURLResponse,
42
79
  MaterialListParams,
43
80
  MaterialListResponse,
44
81
  MaterialMoveParams,
82
+ MaterialMoveResponse,
45
83
  MaterialRenameParams,
84
+ MaterialRenameResponse,
85
+ MaterialReprocessResponse,
86
+ MaterialRetrieveResponse,
46
87
  MaterialSearchParams,
47
88
  MaterialSearchResponse,
48
89
  Materials,
49
90
  } from './materials/materials';
50
- import * as UsageAPI from './usage/usage';
51
- import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from './usage/usage';
52
91
  import { APIPromise } from '../../core/api-promise';
53
92
  import { buildHeaders } from '../../internal/headers';
54
93
  import { RequestOptions } from '../../internal/request-options';
@@ -58,11 +97,13 @@ export class V1 extends APIResource {
58
97
  folders: FoldersAPI.Folders = new FoldersAPI.Folders(this._client);
59
98
  components: ComponentsAPI.Components = new ComponentsAPI.Components(this._client);
60
99
  usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
100
+ usageAnalyst: UsageAnalystAPI.UsageAnalyst = new UsageAnalystAPI.UsageAnalyst(this._client);
61
101
  embed: EmbedAPI.Embed = new EmbedAPI.Embed(this._client);
102
+ chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
103
+ chatAnalytics: ChatAnalyticsAPI.ChatAnalytics = new ChatAnalyticsAPI.ChatAnalytics(this._client);
62
104
  assignmentGrader: AssignmentGraderAPI.AssignmentGrader = new AssignmentGraderAPI.AssignmentGrader(
63
105
  this._client,
64
106
  );
65
- chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
66
107
 
67
108
  /**
68
109
  * Test MongoDB connection and get outbound IP
@@ -84,25 +125,32 @@ V1.Materials = Materials;
84
125
  V1.Folders = Folders;
85
126
  V1.Components = Components;
86
127
  V1.Usage = Usage;
128
+ V1.UsageAnalyst = UsageAnalyst;
87
129
  V1.Embed = Embed;
88
- V1.AssignmentGrader = AssignmentGrader;
89
130
  V1.Chat = Chat;
131
+ V1.ChatAnalytics = ChatAnalytics;
132
+ V1.AssignmentGrader = AssignmentGrader;
90
133
 
91
134
  export declare namespace V1 {
92
135
  export {
93
136
  Materials as Materials,
94
- type Content as Content,
95
- type GeneratedMaterial as GeneratedMaterial,
96
- type Material as Material,
137
+ type MaterialCreateResponse as MaterialCreateResponse,
138
+ type MaterialRetrieveResponse as MaterialRetrieveResponse,
97
139
  type MaterialListResponse as MaterialListResponse,
98
- type MaterialBatchCreateResponse as MaterialBatchCreateResponse,
99
- type MaterialDebugResponse as MaterialDebugResponse,
140
+ type MaterialCreateAndProcessResponse as MaterialCreateAndProcessResponse,
141
+ type MaterialCreateBatchUploadURLsResponse as MaterialCreateBatchUploadURLsResponse,
142
+ type MaterialGenerateResponse as MaterialGenerateResponse,
143
+ type MaterialGenerateAndProcessResponse as MaterialGenerateAndProcessResponse,
144
+ type MaterialGetDebugInfoResponse as MaterialGetDebugInfoResponse,
100
145
  type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse,
146
+ type MaterialMoveResponse as MaterialMoveResponse,
147
+ type MaterialRenameResponse as MaterialRenameResponse,
148
+ type MaterialReprocessResponse as MaterialReprocessResponse,
101
149
  type MaterialSearchResponse as MaterialSearchResponse,
102
150
  type MaterialCreateParams as MaterialCreateParams,
103
151
  type MaterialListParams as MaterialListParams,
104
- type MaterialBatchCreateParams as MaterialBatchCreateParams,
105
152
  type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
153
+ type MaterialCreateBatchUploadURLsParams as MaterialCreateBatchUploadURLsParams,
106
154
  type MaterialGenerateParams as MaterialGenerateParams,
107
155
  type MaterialGenerateAndProcessParams as MaterialGenerateAndProcessParams,
108
156
  type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
@@ -113,14 +161,24 @@ export declare namespace V1 {
113
161
 
114
162
  export {
115
163
  Folders as Folders,
164
+ type FolderCreateResponse as FolderCreateResponse,
165
+ type FolderRetrieveResponse as FolderRetrieveResponse,
166
+ type FolderUpdateResponse as FolderUpdateResponse,
167
+ type FolderListResponse as FolderListResponse,
168
+ type FolderGetTreeResponse as FolderGetTreeResponse,
169
+ type FolderListMaterialsResponse as FolderListMaterialsResponse,
170
+ type FolderMoveResponse as FolderMoveResponse,
116
171
  type FolderCreateParams as FolderCreateParams,
117
172
  type FolderUpdateParams as FolderUpdateParams,
118
173
  type FolderListParams as FolderListParams,
174
+ type FolderMoveParams as FolderMoveParams,
119
175
  };
120
176
 
121
177
  export {
122
178
  Components as Components,
123
- type Component as Component,
179
+ type ComponentCreateResponse as ComponentCreateResponse,
180
+ type ComponentRetrieveResponse as ComponentRetrieveResponse,
181
+ type ComponentUpdateResponse as ComponentUpdateResponse,
124
182
  type ComponentListResponse as ComponentListResponse,
125
183
  type ComponentGenerateEmbedResponse as ComponentGenerateEmbedResponse,
126
184
  type ComponentCreateParams as ComponentCreateParams,
@@ -136,18 +194,37 @@ export declare namespace V1 {
136
194
  type UsageListEventsParams as UsageListEventsParams,
137
195
  };
138
196
 
197
+ export {
198
+ UsageAnalyst as UsageAnalyst,
199
+ type UsageAnalystListChatMessagesResponse as UsageAnalystListChatMessagesResponse,
200
+ type UsageAnalystGetTestQuestionsParams as UsageAnalystGetTestQuestionsParams,
201
+ type UsageAnalystListChatMessagesParams as UsageAnalystListChatMessagesParams,
202
+ type UsageAnalystListEventsParams as UsageAnalystListEventsParams,
203
+ };
204
+
139
205
  export {
140
206
  Embed as Embed,
141
207
  type EmbedGetThemeParams as EmbedGetThemeParams,
142
208
  type EmbedVerifyParams as EmbedVerifyParams,
143
209
  };
144
210
 
211
+ export { Chat as Chat, type ChatStreamParams as ChatStreamParams };
212
+
213
+ export {
214
+ ChatAnalytics as ChatAnalytics,
215
+ type ChatAnalyticAnalyzeResponse as ChatAnalyticAnalyzeResponse,
216
+ type ChatAnalyticExportResponse as ChatAnalyticExportResponse,
217
+ type ChatAnalyticGetComponentResponse as ChatAnalyticGetComponentResponse,
218
+ type ChatAnalyticAnalyzeParams as ChatAnalyticAnalyzeParams,
219
+ type ChatAnalyticExportParams as ChatAnalyticExportParams,
220
+ type ChatAnalyticGetComponentParams as ChatAnalyticGetComponentParams,
221
+ };
222
+
145
223
  export {
146
224
  AssignmentGrader as AssignmentGrader,
147
- type AssignmentGraderResponse as AssignmentGraderResponse,
225
+ type AssignmentGraderCreateResponse as AssignmentGraderCreateResponse,
148
226
  type AssignmentGraderGetAllResponse as AssignmentGraderGetAllResponse,
227
+ type AssignmentGraderGetByIDResponse as AssignmentGraderGetByIDResponse,
149
228
  type AssignmentGraderCreateParams as AssignmentGraderCreateParams,
150
229
  };
151
-
152
- export { Chat as Chat, type ChatStreamParams as ChatStreamParams };
153
230
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.33.0'; // x-release-please-version
1
+ export const VERSION = '1.35.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.33.0";
1
+ export declare const VERSION = "1.35.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.33.0";
1
+ export declare const VERSION = "1.35.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.33.0'; // x-release-please-version
4
+ exports.VERSION = '1.35.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.33.0'; // x-release-please-version
1
+ export const VERSION = '1.35.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,99 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../../internal/request-options.mjs";
4
- export declare class Analyst extends APIResource {
5
- /**
6
- * Get test results with full question data for user or group
7
- *
8
- * @example
9
- * ```ts
10
- * await client.v1.usage.analyst.getTestQuestions();
11
- * ```
12
- */
13
- getTestQuestions(query?: AnalystGetTestQuestionsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
14
- /**
15
- * Get all chat messages from sessions for user or group
16
- *
17
- * @example
18
- * ```ts
19
- * const response =
20
- * await client.v1.usage.analyst.listChatMessages();
21
- * ```
22
- */
23
- listChatMessages(query?: AnalystListChatMessagesParams | null | undefined, options?: RequestOptions): APIPromise<AnalystListChatMessagesResponse>;
24
- /**
25
- * Get all events based on filters
26
- *
27
- * @example
28
- * ```ts
29
- * await client.v1.usage.analyst.listEvents({
30
- * endDate: 'endDate',
31
- * eventType: 'material_created',
32
- * startDate: 'startDate',
33
- * });
34
- * ```
35
- */
36
- listEvents(query: AnalystListEventsParams, options?: RequestOptions): APIPromise<void>;
37
- }
38
- export interface AnalystListChatMessagesResponse {
39
- messages?: Array<AnalystListChatMessagesResponse.Message>;
40
- sessionCount?: number;
41
- total?: number;
42
- }
43
- export declare namespace AnalystListChatMessagesResponse {
44
- interface Message {
45
- componentId?: string;
46
- content?: string;
47
- createdAt?: string;
48
- metadata?: unknown;
49
- role?: 'user' | 'assistant' | 'system';
50
- sessionId?: string;
51
- userId?: string;
52
- }
53
- }
54
- export interface AnalystGetTestQuestionsParams {
55
- /**
56
- * Array of group IDs to filter
57
- */
58
- groupIds?: Array<string>;
59
- /**
60
- * User ID to get test results for
61
- */
62
- userId?: string;
63
- }
64
- export interface AnalystListChatMessagesParams {
65
- /**
66
- * Array of group IDs to filter
67
- */
68
- groupIds?: Array<string>;
69
- /**
70
- * User ID to get chat messages for
71
- */
72
- userId?: string;
73
- }
74
- export interface AnalystListEventsParams {
75
- /**
76
- * End date for filtering (ISO 8601)
77
- */
78
- endDate: string;
79
- /**
80
- * Type of usage event to filter
81
- */
82
- eventType: 'material_created' | 'material_uploaded' | 'material_processed' | 'material_deleted' | 'component_created' | 'component_accessed' | 'component_deleted' | 'component_usage' | 'chat_message_sent' | 'chat_session_started' | 'chat_session_ended' | 'test_created' | 'test_started' | 'test_completed' | 'test_question_answered' | 'test_retaken' | 'audio_recap_create' | 'assignment_grader_create' | 'api_call' | 'cache_hit' | 'sso_login' | 'sso_logout' | 'student_performance';
83
- /**
84
- * Start date for filtering (ISO 8601)
85
- */
86
- startDate: string;
87
- /**
88
- * Array of group IDs to filter
89
- */
90
- groupIds?: Array<string>;
91
- /**
92
- * Array of user IDs to filter
93
- */
94
- userIds?: Array<string>;
95
- }
96
- export declare namespace Analyst {
97
- export { type AnalystListChatMessagesResponse as AnalystListChatMessagesResponse, type AnalystGetTestQuestionsParams as AnalystGetTestQuestionsParams, type AnalystListChatMessagesParams as AnalystListChatMessagesParams, type AnalystListEventsParams as AnalystListEventsParams, };
98
- }
99
- //# sourceMappingURL=analyst.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyst.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/usage/analyst.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;OAOG;IACH,gBAAgB,CACd,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;;;;;;;OAQG;IACH,gBAAgB,CACd,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,KAAK,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOvF;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAE1D,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,OAAO;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;QAEvC,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EACL,kBAAkB,GAClB,mBAAmB,GACnB,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,wBAAwB,GACxB,cAAc,GACd,oBAAoB,GACpB,0BAA0B,GAC1B,UAAU,GACV,WAAW,GACX,WAAW,GACX,YAAY,GACZ,qBAAqB,CAAC;IAE1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}