@studyfetch/sdk 1.32.0 → 1.34.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 (154) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +1 -1
  3. package/package.json +4 -5
  4. package/resources/v1/assignment-grader/assignment-grader.d.mts +313 -0
  5. package/resources/v1/assignment-grader/assignment-grader.d.mts.map +1 -0
  6. package/resources/v1/assignment-grader/assignment-grader.d.ts +313 -0
  7. package/resources/v1/assignment-grader/assignment-grader.d.ts.map +1 -0
  8. package/resources/v1/assignment-grader/assignment-grader.js +87 -0
  9. package/resources/v1/assignment-grader/assignment-grader.js.map +1 -0
  10. package/resources/v1/assignment-grader/assignment-grader.mjs +82 -0
  11. package/resources/v1/assignment-grader/assignment-grader.mjs.map +1 -0
  12. package/resources/v1/assignment-grader/index.d.mts +3 -0
  13. package/resources/v1/assignment-grader/index.d.mts.map +1 -0
  14. package/resources/v1/assignment-grader/index.d.ts +3 -0
  15. package/resources/v1/assignment-grader/index.d.ts.map +1 -0
  16. package/resources/v1/assignment-grader/index.js +9 -0
  17. package/resources/v1/assignment-grader/index.js.map +1 -0
  18. package/resources/v1/assignment-grader/index.mjs +4 -0
  19. package/resources/v1/assignment-grader/index.mjs.map +1 -0
  20. package/resources/v1/assignment-grader/rubric-templates.d.mts +238 -0
  21. package/resources/v1/assignment-grader/rubric-templates.d.mts.map +1 -0
  22. package/resources/v1/assignment-grader/rubric-templates.d.ts +238 -0
  23. package/resources/v1/assignment-grader/rubric-templates.d.ts.map +1 -0
  24. package/resources/v1/assignment-grader/rubric-templates.js +68 -0
  25. package/resources/v1/assignment-grader/rubric-templates.js.map +1 -0
  26. package/resources/v1/assignment-grader/rubric-templates.mjs +64 -0
  27. package/resources/v1/assignment-grader/rubric-templates.mjs.map +1 -0
  28. package/resources/v1/assignment-grader.d.mts +1 -152
  29. package/resources/v1/assignment-grader.d.mts.map +1 -1
  30. package/resources/v1/assignment-grader.d.ts +1 -152
  31. package/resources/v1/assignment-grader.d.ts.map +1 -1
  32. package/resources/v1/assignment-grader.js +2 -62
  33. package/resources/v1/assignment-grader.js.map +1 -1
  34. package/resources/v1/assignment-grader.mjs +1 -60
  35. package/resources/v1/assignment-grader.mjs.map +1 -1
  36. package/resources/v1/chat-analytics.d.mts +316 -0
  37. package/resources/v1/chat-analytics.d.mts.map +1 -0
  38. package/resources/v1/chat-analytics.d.ts +316 -0
  39. package/resources/v1/chat-analytics.d.ts.map +1 -0
  40. package/resources/v1/chat-analytics.js +50 -0
  41. package/resources/v1/chat-analytics.js.map +1 -0
  42. package/resources/v1/chat-analytics.mjs +46 -0
  43. package/resources/v1/chat-analytics.mjs.map +1 -0
  44. package/resources/v1/components.d.mts +184 -10
  45. package/resources/v1/components.d.mts.map +1 -1
  46. package/resources/v1/components.d.ts +184 -10
  47. package/resources/v1/components.d.ts.map +1 -1
  48. package/resources/v1/components.js.map +1 -1
  49. package/resources/v1/components.mjs.map +1 -1
  50. package/resources/v1/index.d.mts +6 -4
  51. package/resources/v1/index.d.mts.map +1 -1
  52. package/resources/v1/index.d.ts +6 -4
  53. package/resources/v1/index.d.ts.map +1 -1
  54. package/resources/v1/index.js +13 -9
  55. package/resources/v1/index.js.map +1 -1
  56. package/resources/v1/index.mjs +4 -2
  57. package/resources/v1/index.mjs.map +1 -1
  58. package/resources/v1/materials/index.d.mts +3 -3
  59. package/resources/v1/materials/index.d.mts.map +1 -1
  60. package/resources/v1/materials/index.d.ts +3 -3
  61. package/resources/v1/materials/index.d.ts.map +1 -1
  62. package/resources/v1/materials/index.js.map +1 -1
  63. package/resources/v1/materials/index.mjs.map +1 -1
  64. package/resources/v1/materials/materials.d.mts +548 -92
  65. package/resources/v1/materials/materials.d.mts.map +1 -1
  66. package/resources/v1/materials/materials.d.ts +548 -92
  67. package/resources/v1/materials/materials.d.ts.map +1 -1
  68. package/resources/v1/materials/materials.js +36 -34
  69. package/resources/v1/materials/materials.js.map +1 -1
  70. package/resources/v1/materials/materials.mjs +36 -34
  71. package/resources/v1/materials/materials.mjs.map +1 -1
  72. package/resources/v1/materials/test.d.mts +29 -30
  73. package/resources/v1/materials/test.d.mts.map +1 -1
  74. package/resources/v1/materials/test.d.ts +29 -30
  75. package/resources/v1/materials/test.d.ts.map +1 -1
  76. package/resources/v1/materials/test.js +14 -15
  77. package/resources/v1/materials/test.js.map +1 -1
  78. package/resources/v1/materials/test.mjs +14 -15
  79. package/resources/v1/materials/test.mjs.map +1 -1
  80. package/resources/v1/materials/upload.d.mts +312 -23
  81. package/resources/v1/materials/upload.d.mts.map +1 -1
  82. package/resources/v1/materials/upload.d.ts +312 -23
  83. package/resources/v1/materials/upload.d.ts.map +1 -1
  84. package/resources/v1/materials/upload.js +9 -9
  85. package/resources/v1/materials/upload.js.map +1 -1
  86. package/resources/v1/materials/upload.mjs +9 -9
  87. package/resources/v1/materials/upload.mjs.map +1 -1
  88. package/resources/v1/usage-analyst.d.mts +99 -0
  89. package/resources/v1/usage-analyst.d.mts.map +1 -0
  90. package/resources/v1/usage-analyst.d.ts +99 -0
  91. package/resources/v1/usage-analyst.d.ts.map +1 -0
  92. package/resources/v1/{usage/analyst.js → usage-analyst.js} +9 -9
  93. package/resources/v1/usage-analyst.js.map +1 -0
  94. package/resources/v1/{usage/analyst.mjs → usage-analyst.mjs} +7 -7
  95. package/resources/v1/usage-analyst.mjs.map +1 -0
  96. package/resources/v1/usage.d.mts +109 -1
  97. package/resources/v1/usage.d.mts.map +1 -1
  98. package/resources/v1/usage.d.ts +109 -1
  99. package/resources/v1/usage.d.ts.map +1 -1
  100. package/resources/v1/usage.js +55 -2
  101. package/resources/v1/usage.js.map +1 -1
  102. package/resources/v1/usage.mjs +53 -1
  103. package/resources/v1/usage.mjs.map +1 -1
  104. package/resources/v1/v1.d.mts +18 -10
  105. package/resources/v1/v1.d.mts.map +1 -1
  106. package/resources/v1/v1.d.ts +18 -10
  107. package/resources/v1/v1.d.ts.map +1 -1
  108. package/resources/v1/v1.js +14 -6
  109. package/resources/v1/v1.js.map +1 -1
  110. package/resources/v1/v1.mjs +14 -6
  111. package/resources/v1/v1.mjs.map +1 -1
  112. package/src/resources/v1/assignment-grader/assignment-grader.ts +421 -0
  113. package/src/resources/v1/assignment-grader/index.ts +16 -0
  114. package/src/resources/v1/assignment-grader/rubric-templates.ts +305 -0
  115. package/src/resources/v1/assignment-grader.ts +1 -196
  116. package/src/resources/v1/chat-analytics.ts +413 -0
  117. package/src/resources/v1/components.ts +265 -10
  118. package/src/resources/v1/index.ts +34 -10
  119. package/src/resources/v1/materials/index.ts +23 -14
  120. package/src/resources/v1/materials/materials.ts +824 -216
  121. package/src/resources/v1/materials/test.ts +38 -39
  122. package/src/resources/v1/materials/upload.ts +411 -30
  123. package/src/resources/v1/{usage/analyst.ts → usage-analyst.ts} +24 -23
  124. package/src/resources/v1/usage.ts +179 -1
  125. package/src/resources/v1/v1.ts +84 -28
  126. package/src/version.ts +1 -1
  127. package/version.d.mts +1 -1
  128. package/version.d.ts +1 -1
  129. package/version.js +1 -1
  130. package/version.mjs +1 -1
  131. package/resources/v1/usage/analyst.d.mts +0 -99
  132. package/resources/v1/usage/analyst.d.mts.map +0 -1
  133. package/resources/v1/usage/analyst.d.ts +0 -99
  134. package/resources/v1/usage/analyst.d.ts.map +0 -1
  135. package/resources/v1/usage/analyst.js.map +0 -1
  136. package/resources/v1/usage/analyst.mjs.map +0 -1
  137. package/resources/v1/usage/index.d.mts +0 -3
  138. package/resources/v1/usage/index.d.mts.map +0 -1
  139. package/resources/v1/usage/index.d.ts +0 -3
  140. package/resources/v1/usage/index.d.ts.map +0 -1
  141. package/resources/v1/usage/index.js +0 -9
  142. package/resources/v1/usage/index.js.map +0 -1
  143. package/resources/v1/usage/index.mjs +0 -4
  144. package/resources/v1/usage/index.mjs.map +0 -1
  145. package/resources/v1/usage/usage.d.mts +0 -114
  146. package/resources/v1/usage/usage.d.mts.map +0 -1
  147. package/resources/v1/usage/usage.d.ts +0 -114
  148. package/resources/v1/usage/usage.d.ts.map +0 -1
  149. package/resources/v1/usage/usage.js +0 -67
  150. package/resources/v1/usage/usage.js.map +0 -1
  151. package/resources/v1/usage/usage.mjs +0 -62
  152. package/resources/v1/usage/usage.mjs.map +0 -1
  153. package/src/resources/v1/usage/index.ts +0 -15
  154. 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,80 @@
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
30
  import { FolderCreateParams, FolderListParams, FolderUpdateParams, Folders } from './folders';
31
+ import * as UsageAPI from './usage';
32
+ import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from './usage';
33
+ import * as UsageAnalystAPI from './usage-analyst';
34
+ import {
35
+ UsageAnalyst,
36
+ UsageAnalystGetTestQuestionsParams,
37
+ UsageAnalystListChatMessagesParams,
38
+ UsageAnalystListChatMessagesResponse,
39
+ UsageAnalystListEventsParams,
40
+ } from './usage-analyst';
41
+ import * as AssignmentGraderAPI from './assignment-grader/assignment-grader';
42
+ import {
43
+ AssignmentGrader,
44
+ AssignmentGraderCreateParams,
45
+ AssignmentGraderCreateResponse,
46
+ AssignmentGraderGetAllResponse,
47
+ AssignmentGraderGetByIDResponse,
48
+ } from './assignment-grader/assignment-grader';
26
49
  import * as EmbedAPI from './embed/embed';
27
50
  import { Embed, EmbedGetThemeParams, EmbedVerifyParams } from './embed/embed';
28
51
  import * as MaterialsAPI from './materials/materials';
29
52
  import {
30
- Content,
31
- GeneratedMaterial,
32
- Material,
33
- MaterialBatchCreateParams,
34
- MaterialBatchCreateResponse,
35
53
  MaterialCreateAndProcessParams,
54
+ MaterialCreateAndProcessResponse,
55
+ MaterialCreateBatchUploadURLsParams,
56
+ MaterialCreateBatchUploadURLsResponse,
36
57
  MaterialCreateParams,
37
- MaterialDebugResponse,
58
+ MaterialCreateResponse,
38
59
  MaterialGenerateAndProcessParams,
60
+ MaterialGenerateAndProcessResponse,
39
61
  MaterialGenerateParams,
62
+ MaterialGenerateResponse,
63
+ MaterialGetDebugInfoResponse,
40
64
  MaterialGetDownloadURLParams,
41
65
  MaterialGetDownloadURLResponse,
42
66
  MaterialListParams,
43
67
  MaterialListResponse,
44
68
  MaterialMoveParams,
69
+ MaterialMoveResponse,
45
70
  MaterialRenameParams,
71
+ MaterialRenameResponse,
72
+ MaterialReprocessResponse,
73
+ MaterialRetrieveResponse,
46
74
  MaterialSearchParams,
47
75
  MaterialSearchResponse,
48
76
  Materials,
49
77
  } from './materials/materials';
50
- import * as UsageAPI from './usage/usage';
51
- import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from './usage/usage';
52
78
  import { APIPromise } from '../../core/api-promise';
53
79
  import { buildHeaders } from '../../internal/headers';
54
80
  import { RequestOptions } from '../../internal/request-options';
@@ -58,11 +84,13 @@ export class V1 extends APIResource {
58
84
  folders: FoldersAPI.Folders = new FoldersAPI.Folders(this._client);
59
85
  components: ComponentsAPI.Components = new ComponentsAPI.Components(this._client);
60
86
  usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
87
+ usageAnalyst: UsageAnalystAPI.UsageAnalyst = new UsageAnalystAPI.UsageAnalyst(this._client);
61
88
  embed: EmbedAPI.Embed = new EmbedAPI.Embed(this._client);
89
+ chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
90
+ chatAnalytics: ChatAnalyticsAPI.ChatAnalytics = new ChatAnalyticsAPI.ChatAnalytics(this._client);
62
91
  assignmentGrader: AssignmentGraderAPI.AssignmentGrader = new AssignmentGraderAPI.AssignmentGrader(
63
92
  this._client,
64
93
  );
65
- chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
66
94
 
67
95
  /**
68
96
  * Test MongoDB connection and get outbound IP
@@ -84,25 +112,32 @@ V1.Materials = Materials;
84
112
  V1.Folders = Folders;
85
113
  V1.Components = Components;
86
114
  V1.Usage = Usage;
115
+ V1.UsageAnalyst = UsageAnalyst;
87
116
  V1.Embed = Embed;
88
- V1.AssignmentGrader = AssignmentGrader;
89
117
  V1.Chat = Chat;
118
+ V1.ChatAnalytics = ChatAnalytics;
119
+ V1.AssignmentGrader = AssignmentGrader;
90
120
 
91
121
  export declare namespace V1 {
92
122
  export {
93
123
  Materials as Materials,
94
- type Content as Content,
95
- type GeneratedMaterial as GeneratedMaterial,
96
- type Material as Material,
124
+ type MaterialCreateResponse as MaterialCreateResponse,
125
+ type MaterialRetrieveResponse as MaterialRetrieveResponse,
97
126
  type MaterialListResponse as MaterialListResponse,
98
- type MaterialBatchCreateResponse as MaterialBatchCreateResponse,
99
- type MaterialDebugResponse as MaterialDebugResponse,
127
+ type MaterialCreateAndProcessResponse as MaterialCreateAndProcessResponse,
128
+ type MaterialCreateBatchUploadURLsResponse as MaterialCreateBatchUploadURLsResponse,
129
+ type MaterialGenerateResponse as MaterialGenerateResponse,
130
+ type MaterialGenerateAndProcessResponse as MaterialGenerateAndProcessResponse,
131
+ type MaterialGetDebugInfoResponse as MaterialGetDebugInfoResponse,
100
132
  type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse,
133
+ type MaterialMoveResponse as MaterialMoveResponse,
134
+ type MaterialRenameResponse as MaterialRenameResponse,
135
+ type MaterialReprocessResponse as MaterialReprocessResponse,
101
136
  type MaterialSearchResponse as MaterialSearchResponse,
102
137
  type MaterialCreateParams as MaterialCreateParams,
103
138
  type MaterialListParams as MaterialListParams,
104
- type MaterialBatchCreateParams as MaterialBatchCreateParams,
105
139
  type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
140
+ type MaterialCreateBatchUploadURLsParams as MaterialCreateBatchUploadURLsParams,
106
141
  type MaterialGenerateParams as MaterialGenerateParams,
107
142
  type MaterialGenerateAndProcessParams as MaterialGenerateAndProcessParams,
108
143
  type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
@@ -120,7 +155,9 @@ export declare namespace V1 {
120
155
 
121
156
  export {
122
157
  Components as Components,
123
- type Component as Component,
158
+ type ComponentCreateResponse as ComponentCreateResponse,
159
+ type ComponentRetrieveResponse as ComponentRetrieveResponse,
160
+ type ComponentUpdateResponse as ComponentUpdateResponse,
124
161
  type ComponentListResponse as ComponentListResponse,
125
162
  type ComponentGenerateEmbedResponse as ComponentGenerateEmbedResponse,
126
163
  type ComponentCreateParams as ComponentCreateParams,
@@ -136,18 +173,37 @@ export declare namespace V1 {
136
173
  type UsageListEventsParams as UsageListEventsParams,
137
174
  };
138
175
 
176
+ export {
177
+ UsageAnalyst as UsageAnalyst,
178
+ type UsageAnalystListChatMessagesResponse as UsageAnalystListChatMessagesResponse,
179
+ type UsageAnalystGetTestQuestionsParams as UsageAnalystGetTestQuestionsParams,
180
+ type UsageAnalystListChatMessagesParams as UsageAnalystListChatMessagesParams,
181
+ type UsageAnalystListEventsParams as UsageAnalystListEventsParams,
182
+ };
183
+
139
184
  export {
140
185
  Embed as Embed,
141
186
  type EmbedGetThemeParams as EmbedGetThemeParams,
142
187
  type EmbedVerifyParams as EmbedVerifyParams,
143
188
  };
144
189
 
190
+ export { Chat as Chat, type ChatStreamParams as ChatStreamParams };
191
+
192
+ export {
193
+ ChatAnalytics as ChatAnalytics,
194
+ type ChatAnalyticAnalyzeResponse as ChatAnalyticAnalyzeResponse,
195
+ type ChatAnalyticExportResponse as ChatAnalyticExportResponse,
196
+ type ChatAnalyticGetComponentResponse as ChatAnalyticGetComponentResponse,
197
+ type ChatAnalyticAnalyzeParams as ChatAnalyticAnalyzeParams,
198
+ type ChatAnalyticExportParams as ChatAnalyticExportParams,
199
+ type ChatAnalyticGetComponentParams as ChatAnalyticGetComponentParams,
200
+ };
201
+
145
202
  export {
146
203
  AssignmentGrader as AssignmentGrader,
147
- type AssignmentGraderResponse as AssignmentGraderResponse,
204
+ type AssignmentGraderCreateResponse as AssignmentGraderCreateResponse,
148
205
  type AssignmentGraderGetAllResponse as AssignmentGraderGetAllResponse,
206
+ type AssignmentGraderGetByIDResponse as AssignmentGraderGetByIDResponse,
149
207
  type AssignmentGraderCreateParams as AssignmentGraderCreateParams,
150
208
  };
151
-
152
- export { Chat as Chat, type ChatStreamParams as ChatStreamParams };
153
209
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.32.0'; // x-release-please-version
1
+ export const VERSION = '1.34.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.32.0";
1
+ export declare const VERSION = "1.34.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.32.0";
1
+ export declare const VERSION = "1.34.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.32.0'; // x-release-please-version
4
+ exports.VERSION = '1.34.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.32.0'; // x-release-please-version
1
+ export const VERSION = '1.34.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"}