@examplary/sdk 0.0.1

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 (36) hide show
  1. package/README.md +25 -0
  2. package/dist/generated/client/client/client.gen.d.ts +2 -0
  3. package/dist/generated/client/client/client.gen.js +204 -0
  4. package/dist/generated/client/client/index.d.ts +8 -0
  5. package/dist/generated/client/client/index.js +16 -0
  6. package/dist/generated/client/client/types.gen.d.ts +88 -0
  7. package/dist/generated/client/client/types.gen.js +3 -0
  8. package/dist/generated/client/client/utils.gen.d.ts +14 -0
  9. package/dist/generated/client/client/utils.gen.js +326 -0
  10. package/dist/generated/client/client.gen.d.ts +12 -0
  11. package/dist/generated/client/client.gen.js +6 -0
  12. package/dist/generated/client/core/auth.gen.d.ts +18 -0
  13. package/dist/generated/client/core/auth.gen.js +69 -0
  14. package/dist/generated/client/core/bodySerializer.gen.d.ts +25 -0
  15. package/dist/generated/client/core/bodySerializer.gen.js +80 -0
  16. package/dist/generated/client/core/params.gen.d.ts +43 -0
  17. package/dist/generated/client/core/params.gen.js +191 -0
  18. package/dist/generated/client/core/pathSerializer.gen.d.ts +33 -0
  19. package/dist/generated/client/core/pathSerializer.gen.js +147 -0
  20. package/dist/generated/client/core/queryKeySerializer.gen.d.ts +18 -0
  21. package/dist/generated/client/core/queryKeySerializer.gen.js +140 -0
  22. package/dist/generated/client/core/serverSentEvents.gen.d.ts +71 -0
  23. package/dist/generated/client/core/serverSentEvents.gen.js +282 -0
  24. package/dist/generated/client/core/types.gen.d.ts +78 -0
  25. package/dist/generated/client/core/types.gen.js +3 -0
  26. package/dist/generated/client/core/utils.gen.d.ts +19 -0
  27. package/dist/generated/client/core/utils.gen.js +117 -0
  28. package/dist/generated/client/index.d.ts +2 -0
  29. package/dist/generated/client/index.js +31 -0
  30. package/dist/generated/client/sdk.gen.d.ts +685 -0
  31. package/dist/generated/client/sdk.gen.js +1295 -0
  32. package/dist/generated/client/types.gen.d.ts +1777 -0
  33. package/dist/generated/client/types.gen.js +3 -0
  34. package/dist/src/index.d.ts +14 -0
  35. package/dist/src/index.js +81 -0
  36. package/package.json +37 -0
@@ -0,0 +1,685 @@
1
+ import type { Client, Options as Options2, TDataShape } from './client';
2
+ import type { DeleteEmbedSessionsByIdData, DeleteExamsByIdData, DeleteExamsByIdSessionsBySessionIdData, DeleteFoldersByIdData, DeleteLibraryItemsByItemIdData, DeleteLibraryPublishersByPublisherIdData, DeleteOrgData, DeletePermissionsByResourceByActorData, DeletePermissionsByResourceByActorErrors, DeletePermissionsByResourceByActorResponses, DeletePracticeSpacesByIdData, DeleteQuestionBankByIdData, DeleteQuestionTypesByIdData, DeleteSourceMaterialsByIdData, DeleteTaxonomiesByIdData, DeleteUsersByIdData, GetApiKeysData, GetEmbedSessionsByIdData, GetEmbedSessionsByIdResponses, GetExamsByIdContextSuggestionsData, GetExamsByIdData, GetExamsByIdSessionsBySessionIdData, GetExamsByIdSessionsData, GetExamsData, GetFoldersData, GetLibraryItemsFeaturedData, GetLibraryPublishersByPublisherIdItemsData, GetLibraryPublishersData, GetLibraryPublishersFeaturedData, GetLibraryPublishersMineData, GetMeData, GetMediaUploadData, GetMediaUploadResponses, GetOauthAuthorizeData, GetOrgData, GetOrgsData, GetPermissionsByResourceByActorData, GetPermissionsByResourceByActorErrors, GetPermissionsByResourceByActorResponses, GetPermissionsByResourceData, GetPermissionsByResourceErrors, GetPermissionsByResourceResponses, GetPracticeSpacesByIdData, GetPracticeSpacesByIdQuestionsPreviewData, GetPracticeSpacesData, GetQuestionBankData, GetQuestionTypesByIdData, GetQuestionTypesByIdExportQti3PciData, GetQuestionTypesData, GetQuestionTypesPublicData, GetSourceMaterialsByIdData, GetSourceMaterialsByIdResponses, GetSourceMaterialsData, GetSourceMaterialsResponses, GetStudentLevelsData, GetTaxonomiesData, GetUsersData, PatchLibraryItemsByItemIdData, PatchLibraryPublishersByPublisherIdData, PatchMeData, PatchOrgData, PatchQuestionBankByIdData, PatchSourceMaterialsByIdData, PatchUsersByIdData, PostApiKeysResetData, PostEmbedSessionsData, PostEmbedSessionsResponses, PostExamsByIdData, PostExamsByIdDuplicateData, PostExamsByIdExportQti21ZipData, PostExamsByIdExportQti21ZipResponses, PostExamsByIdExportQti3ZipData, PostExamsByIdExportQti3ZipResponses, PostExamsByIdGenerateCancelData, PostExamsByIdGenerateData, PostExamsByIdPrintData, PostExamsByIdQuestionsByQuestionIdGenerateData, PostExamsByIdQuestionsGenerateData, PostExamsByIdQuestionsImportData, PostExamsByIdSessionsBySessionIdFeedbackData, PostExamsByIdSessionsBySessionIdGenerateOverallFeedbackData, PostExamsByIdSessionsBySessionIdOverallFeedbackData, PostExamsByIdSessionsBySessionIdSuggestionsAcceptAllData, PostExamsByIdSessionsBySessionIdSuggestionsByQuestionIdAcceptData, PostExamsByIdSessionsData, PostExamsByIdSessionsScanData, PostExamsData, PostExamsImportData, PostFoldersByIdData, PostFoldersData, PostLibraryPublishersByPublisherIdItemsData, PostLibraryPublishersData, PostOauthTokenData, PostOrgsData, PostPermissionsByResourceData, PostPermissionsByResourceErrors, PostPermissionsByResourceResponses, PostPracticeSpacesByIdData, PostPracticeSpacesData, PostQuestionBankData, PostQuestionTypesByIdDisableData, PostQuestionTypesByIdEnableData, PostQuestionTypesData, PostSourceMaterialsByIdSliceData, PostSourceMaterialsByIdSliceResponses, PostSourceMaterialsData, PostSourceMaterialsResponses, PostTaxonomiesByIdData, PostTaxonomiesData, PostUsersData } from './types.gen';
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: Record<string, unknown>;
15
+ };
16
+ declare class HeyApiClient {
17
+ protected client: Client;
18
+ constructor(args?: {
19
+ client?: Client;
20
+ });
21
+ }
22
+ declare class HeyApiRegistry<T> {
23
+ private readonly defaultKey;
24
+ private readonly instances;
25
+ get(key?: string): T;
26
+ set(value: T, key?: string): void;
27
+ }
28
+ export declare class QuestionTypes extends HeyApiClient {
29
+ /**
30
+ * List public question types
31
+ *
32
+ * Lists all public question types, which can be enabled in workspaces.
33
+ */
34
+ listPublic<ThrowOnError extends boolean = false>(options?: Options<GetQuestionTypesPublicData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
35
+ /**
36
+ * Delete question type
37
+ *
38
+ * Deletes a specific question type by its ID. Note that only the owner organization of the question type can delete it, and only if it has not been used in an exam.
39
+ */
40
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteQuestionTypesByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
41
+ /**
42
+ * Get question type
43
+ *
44
+ * Retrieves a specific question type by its ID.
45
+ */
46
+ get<ThrowOnError extends boolean = false>(options: Options<GetQuestionTypesByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
47
+ /**
48
+ * Get question type PCI module for QTI 3 export
49
+ *
50
+ * Get JS module for a question type PCI for QTI 3 export.
51
+ */
52
+ getQti3Pci<ThrowOnError extends boolean = false>(options: Options<GetQuestionTypesByIdExportQti3PciData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
53
+ /**
54
+ * List question types
55
+ *
56
+ * Lists all question types, either those available by default or those created within the user's organization.
57
+ */
58
+ list<ThrowOnError extends boolean = false>(options?: Options<GetQuestionTypesData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
59
+ /**
60
+ * Upsert question type
61
+ *
62
+ * Creates a new question type or updates an existing one. If the question type already exists, it will be updated; otherwise, a new one will be created.
63
+ */
64
+ upsert<ThrowOnError extends boolean = false>(options?: Options<PostQuestionTypesData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
65
+ /**
66
+ * Enable question type
67
+ *
68
+ * Enable a question type for the current workspace.
69
+ */
70
+ enable<ThrowOnError extends boolean = false>(options: Options<PostQuestionTypesByIdEnableData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
71
+ /**
72
+ * Disable question type
73
+ *
74
+ * Disable a question type for the current workspace.
75
+ */
76
+ disable<ThrowOnError extends boolean = false>(options: Options<PostQuestionTypesByIdDisableData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
77
+ }
78
+ export declare class Items extends HeyApiClient {
79
+ /**
80
+ * List items by publisher
81
+ *
82
+ * Lists all library items for the specified publisher profile.
83
+ */
84
+ list<ThrowOnError extends boolean = false>(options: Options<GetLibraryPublishersByPublisherIdItemsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
85
+ /**
86
+ * Create library item
87
+ *
88
+ * Adds an item to the library. Only the publisher owner can add items to their publisher profile.
89
+ */
90
+ create<ThrowOnError extends boolean = false>(options: Options<PostLibraryPublishersByPublisherIdItemsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
91
+ }
92
+ export declare class Publishers extends HeyApiClient {
93
+ /**
94
+ * List featured publishers
95
+ *
96
+ * Lists all library publishers that are marked as featured.
97
+ */
98
+ listFeatured<ThrowOnError extends boolean = false>(options?: Options<GetLibraryPublishersFeaturedData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
99
+ /**
100
+ * List all publishers
101
+ *
102
+ * Lists all library publisher profiles.
103
+ */
104
+ listAll<ThrowOnError extends boolean = false>(options?: Options<GetLibraryPublishersData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
105
+ /**
106
+ * Create publisher
107
+ *
108
+ * Creates a new library publisher profile.
109
+ */
110
+ create<ThrowOnError extends boolean = false>(options?: Options<PostLibraryPublishersData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
111
+ /**
112
+ * List my publishers
113
+ *
114
+ * Lists all library publisher profiles created by the authenticated user.
115
+ */
116
+ listMine<ThrowOnError extends boolean = false>(options?: Options<GetLibraryPublishersMineData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
117
+ /**
118
+ * Delete publisher
119
+ *
120
+ * Deletes a library publisher profile. Only the owner can delete their publisher profile.
121
+ */
122
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteLibraryPublishersByPublisherIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
123
+ /**
124
+ * Update publisher
125
+ *
126
+ * Updates a library publisher profile. Only the owner can update their publisher profile.
127
+ */
128
+ update<ThrowOnError extends boolean = false>(options: Options<PatchLibraryPublishersByPublisherIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
129
+ private _items?;
130
+ get items(): Items;
131
+ }
132
+ export declare class Items2 extends HeyApiClient {
133
+ /**
134
+ * List featured library items
135
+ *
136
+ * Lists all library items that are marked as featured.
137
+ */
138
+ listFeatured<ThrowOnError extends boolean = false>(options?: Options<GetLibraryItemsFeaturedData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
139
+ /**
140
+ * Delete library item
141
+ *
142
+ * Deletes a library item. Only the publisher owner can delete items from their publisher profile.
143
+ */
144
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteLibraryItemsByItemIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
145
+ /**
146
+ * Update library item
147
+ *
148
+ * Updates a library item. Only the publisher owner can update items in their publisher profile.
149
+ */
150
+ update<ThrowOnError extends boolean = false>(options: Options<PatchLibraryItemsByItemIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
151
+ }
152
+ export declare class Library extends HeyApiClient {
153
+ private _publishers?;
154
+ get publishers(): Publishers;
155
+ private _items?;
156
+ get items(): Items2;
157
+ }
158
+ export declare class Oauth extends HeyApiClient {
159
+ /**
160
+ * OAuth authorization endpoint
161
+ *
162
+ * Initiates OAuth authorization flow. Redirects to the frontend authorization UI where users can approve or deny access.
163
+ */
164
+ authorize<ThrowOnError extends boolean = false>(options: Options<GetOauthAuthorizeData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
165
+ /**
166
+ * OAuth token endpoint
167
+ *
168
+ * Exchange authorization code for access token, or refresh an existing token.
169
+ */
170
+ token<ThrowOnError extends boolean = false>(options?: Options<PostOauthTokenData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
171
+ }
172
+ export declare class EmbedSessions extends HeyApiClient {
173
+ /**
174
+ * Create embed session
175
+ *
176
+ * Create a new embed session. This allows you to embed the exam generation flow into your own application.
177
+ */
178
+ create<ThrowOnError extends boolean = false>(options?: Options<PostEmbedSessionsData, ThrowOnError>): import("./client").RequestResult<PostEmbedSessionsResponses, unknown, ThrowOnError>;
179
+ /**
180
+ * Revoke embed session
181
+ *
182
+ * Revoke access to an embed session by its ID.
183
+ */
184
+ revoke<ThrowOnError extends boolean = false>(options: Options<DeleteEmbedSessionsByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
185
+ /**
186
+ * Get embed session
187
+ *
188
+ * Retrieve an embed session by its ID.
189
+ */
190
+ get<ThrowOnError extends boolean = false>(options: Options<GetEmbedSessionsByIdData, ThrowOnError>): import("./client").RequestResult<GetEmbedSessionsByIdResponses, unknown, ThrowOnError>;
191
+ }
192
+ export declare class Me extends HeyApiClient {
193
+ /**
194
+ * Get me
195
+ *
196
+ * Get the current user's account details.
197
+ */
198
+ get<ThrowOnError extends boolean = false>(options?: Options<GetMeData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
199
+ /**
200
+ * Update me
201
+ *
202
+ * Update the current user's account details.
203
+ */
204
+ update<ThrowOnError extends boolean = false>(options?: Options<PatchMeData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
205
+ }
206
+ export declare class Media extends HeyApiClient {
207
+ /**
208
+ * Get file upload URL
209
+ *
210
+ * Returns a signed URL for uploading a file, and a public URL for accessing it afterwards.
211
+ */
212
+ upload<ThrowOnError extends boolean = false>(options?: Options<GetMediaUploadData, ThrowOnError>): import("./client").RequestResult<GetMediaUploadResponses, unknown, ThrowOnError>;
213
+ }
214
+ export declare class Org extends HeyApiClient {
215
+ /**
216
+ * Delete organization
217
+ */
218
+ delete<ThrowOnError extends boolean = false>(options?: Options<DeleteOrgData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
219
+ /**
220
+ * Get organization
221
+ */
222
+ get<ThrowOnError extends boolean = false>(options?: Options<GetOrgData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
223
+ /**
224
+ * Update organization
225
+ */
226
+ update<ThrowOnError extends boolean = false>(options?: Options<PatchOrgData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
227
+ }
228
+ export declare class Orgs extends HeyApiClient {
229
+ /**
230
+ * List all organizations
231
+ */
232
+ list<ThrowOnError extends boolean = false>(options?: Options<GetOrgsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
233
+ /**
234
+ * Create a new organization
235
+ *
236
+ * Create a new workspace to collaborate with others on exams.
237
+ */
238
+ create<ThrowOnError extends boolean = false>(options?: Options<PostOrgsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
239
+ }
240
+ export declare class ApiKeys extends HeyApiClient {
241
+ /**
242
+ * Get API key
243
+ *
244
+ * Get the API key for the current org/user combination. Creates one if none exists.
245
+ */
246
+ get<ThrowOnError extends boolean = false>(options?: Options<GetApiKeysData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
247
+ /**
248
+ * Reset API key
249
+ *
250
+ * Invalidate old API keys for this org/user and create a new one.
251
+ */
252
+ reset<ThrowOnError extends boolean = false>(options?: Options<PostApiKeysResetData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
253
+ }
254
+ export declare class Taxonomies extends HeyApiClient {
255
+ /**
256
+ * Get taxonomies
257
+ *
258
+ * Get a list available taxonomies, including defaults and taxonomies created in the current workspace.
259
+ */
260
+ list<ThrowOnError extends boolean = false>(options?: Options<GetTaxonomiesData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
261
+ /**
262
+ * Create taxonomy
263
+ *
264
+ * Save a new taxonomy in the current workspace.
265
+ */
266
+ create<ThrowOnError extends boolean = false>(options?: Options<PostTaxonomiesData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
267
+ /**
268
+ * Delete taxonomy
269
+ *
270
+ * Delete a taxonomy from the current workspace. This fails if there are any exams associated with the taxonomy.
271
+ */
272
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteTaxonomiesByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
273
+ /**
274
+ * Update taxonomy
275
+ *
276
+ * Update an existing taxonomy in the current workspace.
277
+ */
278
+ update<ThrowOnError extends boolean = false>(options: Options<PostTaxonomiesByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
279
+ }
280
+ export declare class Permissions extends HeyApiClient {
281
+ /**
282
+ * Get sharing permissions
283
+ *
284
+ * Get a list of users, groups and orgs that have access to a specific resource.
285
+ */
286
+ list<ThrowOnError extends boolean = false>(options: Options<GetPermissionsByResourceData, ThrowOnError>): import("./client").RequestResult<GetPermissionsByResourceResponses, GetPermissionsByResourceErrors, ThrowOnError>;
287
+ /**
288
+ * Create permission
289
+ *
290
+ * Create a new permission for a specific resource, or update the role of an existing actor.
291
+ */
292
+ assign<ThrowOnError extends boolean = false>(options: Options<PostPermissionsByResourceData, ThrowOnError>): import("./client").RequestResult<PostPermissionsByResourceResponses, PostPermissionsByResourceErrors, ThrowOnError>;
293
+ /**
294
+ * Remove permission
295
+ *
296
+ * Remove a permission for a specific actor on a specific resource.
297
+ */
298
+ delete<ThrowOnError extends boolean = false>(options: Options<DeletePermissionsByResourceByActorData, ThrowOnError>): import("./client").RequestResult<DeletePermissionsByResourceByActorResponses, DeletePermissionsByResourceByActorErrors, ThrowOnError>;
299
+ /**
300
+ * Get actor role
301
+ *
302
+ * Get the role of a specific actor for a specific resource.
303
+ */
304
+ getActorRole<ThrowOnError extends boolean = false>(options: Options<GetPermissionsByResourceByActorData, ThrowOnError>): import("./client").RequestResult<GetPermissionsByResourceByActorResponses, GetPermissionsByResourceByActorErrors, ThrowOnError>;
305
+ }
306
+ export declare class StudentLevels extends HeyApiClient {
307
+ /**
308
+ * List available student levels
309
+ *
310
+ * Get a list of available default student levels.
311
+ */
312
+ list<ThrowOnError extends boolean = false>(options?: Options<GetStudentLevelsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
313
+ }
314
+ export declare class Users extends HeyApiClient {
315
+ /**
316
+ * List users
317
+ *
318
+ * Get a list of all users in the workspace.
319
+ */
320
+ list<ThrowOnError extends boolean = false>(options?: Options<GetUsersData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
321
+ /**
322
+ * Create user
323
+ *
324
+ * Create a new user in the workspace.
325
+ */
326
+ create<ThrowOnError extends boolean = false>(options?: Options<PostUsersData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
327
+ /**
328
+ * Delete user
329
+ *
330
+ * Delete a user from the workspace.
331
+ */
332
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteUsersByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
333
+ /**
334
+ * Update user role
335
+ *
336
+ * Update a user's role within the workspace.
337
+ */
338
+ update<ThrowOnError extends boolean = false>(options: Options<PatchUsersByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
339
+ }
340
+ export declare class Sessions extends HeyApiClient {
341
+ /**
342
+ * List exam sessions
343
+ *
344
+ * Get a list of all student sessions for an exam, representing a set of answers from a student.
345
+ */
346
+ list<ThrowOnError extends boolean = false>(options: Options<GetExamsByIdSessionsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
347
+ /**
348
+ * Create session
349
+ *
350
+ * Manually create a session, possibly from uploaded data.
351
+ */
352
+ import<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdSessionsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
353
+ /**
354
+ * Get answers from scan
355
+ *
356
+ * Scan student answers from a document.
357
+ */
358
+ scan<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdSessionsScanData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
359
+ /**
360
+ * Delete exam session
361
+ *
362
+ * Remove an exam session.
363
+ */
364
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteExamsByIdSessionsBySessionIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
365
+ /**
366
+ * Get exam session
367
+ *
368
+ * Get a single exam session by its ID, representing a set of answers from a student.
369
+ */
370
+ get<ThrowOnError extends boolean = false>(options: Options<GetExamsByIdSessionsBySessionIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
371
+ /**
372
+ * Provide feedback
373
+ *
374
+ * Set teacher feedback and/or a grade for a specific question in an exam session.
375
+ */
376
+ saveFeedback<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdSessionsBySessionIdFeedbackData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
377
+ /**
378
+ * Provide overall feedback
379
+ *
380
+ * Set teacher feedback for the test as a whole in an exam session.
381
+ */
382
+ saveOverallFeedback<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdSessionsBySessionIdOverallFeedbackData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
383
+ /**
384
+ * Generate overall feedback
385
+ *
386
+ * Generate feedback for the test as a whole in an exam session.
387
+ */
388
+ generateOverallFeedback<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdSessionsBySessionIdGenerateOverallFeedbackData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
389
+ /**
390
+ * Accept AI grading suggestions
391
+ *
392
+ * Accept all AI-generated grading suggestions for the exam session.
393
+ */
394
+ acceptAllSuggestions<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdSessionsBySessionIdSuggestionsAcceptAllData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
395
+ /**
396
+ * Accept single AI grading suggestion
397
+ *
398
+ * Accept a single AI-generated grading suggestion for the exam session.
399
+ */
400
+ acceptSuggestion<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdSessionsBySessionIdSuggestionsByQuestionIdAcceptData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
401
+ }
402
+ export declare class Questions extends HeyApiClient {
403
+ /**
404
+ * Import questions
405
+ *
406
+ * Import questions into an exam from a file. Support Word, PDF, Moodle quiz XML and plain text files.
407
+ */
408
+ import<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdQuestionsImportData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
409
+ /**
410
+ * Generate question
411
+ *
412
+ * Generate a new question for the exam using an AI prompt.
413
+ */
414
+ generate<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdQuestionsGenerateData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
415
+ /**
416
+ * Regenerate question
417
+ *
418
+ * Update a question using an AI prompt.
419
+ */
420
+ regenerate<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdQuestionsByQuestionIdGenerateData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
421
+ }
422
+ export declare class Export extends HeyApiClient {
423
+ /**
424
+ * Export QTI 3 package
425
+ *
426
+ * Export an exam as a QTI 3 ZIP package.
427
+ */
428
+ qti3Zip<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdExportQti3ZipData, ThrowOnError>): import("./client").RequestResult<PostExamsByIdExportQti3ZipResponses, unknown, ThrowOnError>;
429
+ /**
430
+ * Export QTI 2.1 package
431
+ *
432
+ * Export an exam as a QTI 2.1 ZIP package.
433
+ */
434
+ qti21Zip<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdExportQti21ZipData, ThrowOnError>): import("./client").RequestResult<PostExamsByIdExportQti21ZipResponses, unknown, ThrowOnError>;
435
+ }
436
+ export declare class Exam extends HeyApiClient {
437
+ private _sessions?;
438
+ get sessions(): Sessions;
439
+ private _questions?;
440
+ get questions(): Questions;
441
+ private _export?;
442
+ get export(): Export;
443
+ }
444
+ export declare class Exams extends HeyApiClient {
445
+ /**
446
+ * List exams
447
+ *
448
+ * Get a list of all exams within your workspace.
449
+ */
450
+ list<ThrowOnError extends boolean = false>(options?: Options<GetExamsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
451
+ /**
452
+ * Create exam
453
+ *
454
+ * Create a new exam within your workspace.
455
+ */
456
+ create<ThrowOnError extends boolean = false>(options?: Options<PostExamsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
457
+ /**
458
+ * Import exam
459
+ *
460
+ * Create an exam by importing one or more source materials (e.g. an existing exam).
461
+ */
462
+ import<ThrowOnError extends boolean = false>(options?: Options<PostExamsImportData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
463
+ /**
464
+ * Delete exam
465
+ *
466
+ * Delete the exam.
467
+ */
468
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteExamsByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
469
+ /**
470
+ * Get exam
471
+ *
472
+ * Get a single exam by its ID.
473
+ */
474
+ get<ThrowOnError extends boolean = false>(options: Options<GetExamsByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
475
+ /**
476
+ * Update exam
477
+ *
478
+ * Update an existing exam.
479
+ */
480
+ update<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
481
+ /**
482
+ * Duplicate exam
483
+ *
484
+ * Duplicate the exam's questions and settings to a new exam.
485
+ */
486
+ duplicate<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdDuplicateData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
487
+ /**
488
+ * Print exam
489
+ *
490
+ * Export an exam to a PDF file or Word document.
491
+ */
492
+ print<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdPrintData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
493
+ /**
494
+ * Generate exam
495
+ *
496
+ * Initiate a job to generate new questions for the exam using AI, based on the source materials and metadata specified.
497
+ */
498
+ startGeneration<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdGenerateData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
499
+ /**
500
+ * Cancel exam generation
501
+ *
502
+ * Cancel an ongoing job to generate new questions for the exam using AI.
503
+ */
504
+ cancelGeneration<ThrowOnError extends boolean = false>(options: Options<PostExamsByIdGenerateCancelData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
505
+ /**
506
+ * Get exam context suggestions
507
+ *
508
+ * Get AI-generated suggestions for context/instructions to include in the exam generation prompt, based on the source materials linked to the exam.
509
+ */
510
+ getContextSuggestions<ThrowOnError extends boolean = false>(options: Options<GetExamsByIdContextSuggestionsData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
511
+ }
512
+ export declare class PracticeSpaces extends HeyApiClient {
513
+ /**
514
+ * List practice spaces
515
+ *
516
+ * Get a list of all practice spaces you have access to in this workspace.
517
+ */
518
+ list<ThrowOnError extends boolean = false>(options?: Options<GetPracticeSpacesData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
519
+ /**
520
+ * Create practice space
521
+ *
522
+ * Create a new practice space within your workspace.
523
+ */
524
+ create<ThrowOnError extends boolean = false>(options?: Options<PostPracticeSpacesData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
525
+ /**
526
+ * Delete practice space
527
+ *
528
+ * Delete the practice space.
529
+ */
530
+ delete<ThrowOnError extends boolean = false>(options: Options<DeletePracticeSpacesByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
531
+ /**
532
+ * Get practice space
533
+ *
534
+ * Get a single practice space by its ID.
535
+ */
536
+ get<ThrowOnError extends boolean = false>(options: Options<GetPracticeSpacesByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
537
+ /**
538
+ * Update practice space
539
+ *
540
+ * Update an existing practice space.
541
+ */
542
+ update<ThrowOnError extends boolean = false>(options: Options<PostPracticeSpacesByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
543
+ /**
544
+ * Preview top practice space questions
545
+ *
546
+ * Get a preview of the top practice space questions by quality score.
547
+ */
548
+ questionsPreview<ThrowOnError extends boolean = false>(options: Options<GetPracticeSpacesByIdQuestionsPreviewData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
549
+ }
550
+ export declare class SourceMaterials extends HeyApiClient {
551
+ /**
552
+ * List source materials in org
553
+ *
554
+ * Returns a list of source materials for the current organization.
555
+ */
556
+ list<ThrowOnError extends boolean = false>(options?: Options<GetSourceMaterialsData, ThrowOnError>): import("./client").RequestResult<GetSourceMaterialsResponses, unknown, ThrowOnError>;
557
+ /**
558
+ * Add source material
559
+ *
560
+ * Add a source material and start processing it for later use in an exam.
561
+ */
562
+ create<ThrowOnError extends boolean = false>(options?: Options<PostSourceMaterialsData, ThrowOnError>): import("./client").RequestResult<PostSourceMaterialsResponses, unknown, ThrowOnError>;
563
+ /**
564
+ * Delete source material
565
+ *
566
+ * Deletes the specified source material.
567
+ */
568
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSourceMaterialsByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
569
+ /**
570
+ * Get source material
571
+ *
572
+ * Returns the current status and facts extracted from the specified source material.
573
+ */
574
+ get<ThrowOnError extends boolean = false>(options: Options<GetSourceMaterialsByIdData, ThrowOnError>): import("./client").RequestResult<GetSourceMaterialsByIdResponses, unknown, ThrowOnError>;
575
+ /**
576
+ * Update source material
577
+ *
578
+ * Updates the specified source material.
579
+ */
580
+ update<ThrowOnError extends boolean = false>(options: Options<PatchSourceMaterialsByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
581
+ /**
582
+ * Create a source material slice
583
+ *
584
+ * Create a new source material based on a specific page range of an existing source material.
585
+ */
586
+ slice<ThrowOnError extends boolean = false>(options: Options<PostSourceMaterialsByIdSliceData, ThrowOnError>): import("./client").RequestResult<PostSourceMaterialsByIdSliceResponses, unknown, ThrowOnError>;
587
+ }
588
+ export declare class Folders extends HeyApiClient {
589
+ /**
590
+ * Get folders
591
+ *
592
+ * Get a list of folders for exam organisation that exist within the current workspace.
593
+ */
594
+ list<ThrowOnError extends boolean = false>(options?: Options<GetFoldersData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
595
+ /**
596
+ * Create folder
597
+ *
598
+ * Create a new folder in the current workspace.
599
+ */
600
+ create<ThrowOnError extends boolean = false>(options?: Options<PostFoldersData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
601
+ /**
602
+ * Delete folder
603
+ *
604
+ * Delete a folder from the current workspace. If there are any exams in the folder, they will be moved out of the folder.
605
+ */
606
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteFoldersByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
607
+ /**
608
+ * Update folder
609
+ *
610
+ * Update an existing folder in the current workspace.
611
+ */
612
+ update<ThrowOnError extends boolean = false>(options: Options<PostFoldersByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
613
+ }
614
+ export declare class QuestionBank extends HeyApiClient {
615
+ /**
616
+ * Get question bank items
617
+ *
618
+ * Get a list of question bank items that exist within the current workspace.
619
+ */
620
+ list<ThrowOnError extends boolean = false>(options?: Options<GetQuestionBankData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
621
+ /**
622
+ * Add question to question bank
623
+ *
624
+ * Add a question to the question bank in the current workspace.
625
+ */
626
+ create<ThrowOnError extends boolean = false>(options?: Options<PostQuestionBankData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
627
+ /**
628
+ * Delete question bank item
629
+ *
630
+ * Delete a question bank item from the current workspace.
631
+ */
632
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteQuestionBankByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
633
+ /**
634
+ * Update question bank item
635
+ *
636
+ * Update an existing question bank item in the current workspace.
637
+ */
638
+ update<ThrowOnError extends boolean = false>(options: Options<PatchQuestionBankByIdData, ThrowOnError>): import("./client").RequestResult<unknown, unknown, ThrowOnError>;
639
+ }
640
+ export declare class Examplary extends HeyApiClient {
641
+ static readonly __registry: HeyApiRegistry<Examplary>;
642
+ constructor(args?: {
643
+ client?: Client;
644
+ key?: string;
645
+ });
646
+ private _questionTypes?;
647
+ get questionTypes(): QuestionTypes;
648
+ private _library?;
649
+ get library(): Library;
650
+ private _oauth?;
651
+ get oauth(): Oauth;
652
+ private _embedSessions?;
653
+ get embedSessions(): EmbedSessions;
654
+ private _me?;
655
+ get me(): Me;
656
+ private _media?;
657
+ get media(): Media;
658
+ private _org?;
659
+ get org(): Org;
660
+ private _orgs?;
661
+ get orgs(): Orgs;
662
+ private _apiKeys?;
663
+ get apiKeys(): ApiKeys;
664
+ private _taxonomies?;
665
+ get taxonomies(): Taxonomies;
666
+ private _permissions?;
667
+ get permissions(): Permissions;
668
+ private _studentLevels?;
669
+ get studentLevels(): StudentLevels;
670
+ private _users?;
671
+ get users(): Users;
672
+ private _exam?;
673
+ get exam(): Exam;
674
+ private _exams?;
675
+ get exams(): Exams;
676
+ private _practiceSpaces?;
677
+ get practiceSpaces(): PracticeSpaces;
678
+ private _sourceMaterials?;
679
+ get sourceMaterials(): SourceMaterials;
680
+ private _folders?;
681
+ get folders(): Folders;
682
+ private _questionBank?;
683
+ get questionBank(): QuestionBank;
684
+ }
685
+ export {};