@studyfetch/sdk 1.25.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/v1/assignment-grader.d.mts +34 -1
- package/resources/v1/assignment-grader.d.mts.map +1 -1
- package/resources/v1/assignment-grader.d.ts +34 -1
- package/resources/v1/assignment-grader.d.ts.map +1 -1
- package/resources/v1/assignment-grader.js +15 -0
- package/resources/v1/assignment-grader.js.map +1 -1
- package/resources/v1/assignment-grader.mjs +15 -0
- package/resources/v1/assignment-grader.mjs.map +1 -1
- package/resources/v1/components.d.mts +102 -4
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +102 -4
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/index.d.mts +1 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +9 -21
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -6
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/index.d.mts +2 -2
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +2 -2
- package/resources/v1/materials/index.d.ts.map +1 -1
- package/resources/v1/materials/index.js.map +1 -1
- package/resources/v1/materials/index.mjs.map +1 -1
- package/resources/v1/materials/materials.d.mts +59 -27
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +59 -27
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +17 -0
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +17 -0
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +96 -1
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +96 -1
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +32 -0
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +32 -0
- package/resources/v1/materials/upload.mjs.map +1 -1
- package/resources/v1/usage/analyst.d.mts +51 -6
- package/resources/v1/usage/analyst.d.mts.map +1 -1
- package/resources/v1/usage/analyst.d.ts +51 -6
- package/resources/v1/usage/analyst.d.ts.map +1 -1
- package/resources/v1/usage/analyst.js +8 -9
- package/resources/v1/usage/analyst.js.map +1 -1
- package/resources/v1/usage/analyst.mjs +8 -9
- package/resources/v1/usage/analyst.mjs.map +1 -1
- package/resources/v1/usage/index.d.mts +1 -1
- package/resources/v1/usage/index.d.mts.map +1 -1
- package/resources/v1/usage/index.d.ts +1 -1
- package/resources/v1/usage/index.d.ts.map +1 -1
- package/resources/v1/usage/index.js.map +1 -1
- package/resources/v1/usage/index.mjs +1 -1
- package/resources/v1/usage/index.mjs.map +1 -1
- package/resources/v1/usage/usage.d.mts +2 -2
- package/resources/v1/usage/usage.d.mts.map +1 -1
- package/resources/v1/usage/usage.d.ts +2 -2
- package/resources/v1/usage/usage.d.ts.map +1 -1
- package/resources/v1/usage/usage.js.map +1 -1
- package/resources/v1/usage/usage.mjs +1 -1
- package/resources/v1/usage/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +13 -26
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +13 -26
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +15 -24
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +15 -24
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/assignment-grader.ts +47 -1
- package/src/resources/v1/components.ts +125 -0
- package/src/resources/v1/index.ts +2 -38
- package/src/resources/v1/materials/index.ts +5 -0
- package/src/resources/v1/materials/materials.ts +76 -28
- package/src/resources/v1/materials/upload.ts +129 -0
- package/src/resources/v1/usage/analyst.ts +80 -10
- package/src/resources/v1/usage/index.ts +7 -1
- package/src/resources/v1/usage/usage.ts +14 -2
- package/src/resources/v1/v1.ts +22 -99
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/audio-recaps/audio-recaps.d.mts +0 -44
- package/resources/v1/audio-recaps/audio-recaps.d.mts.map +0 -1
- package/resources/v1/audio-recaps/audio-recaps.d.ts +0 -44
- package/resources/v1/audio-recaps/audio-recaps.d.ts.map +0 -1
- package/resources/v1/audio-recaps/audio-recaps.js +0 -63
- package/resources/v1/audio-recaps/audio-recaps.js.map +0 -1
- package/resources/v1/audio-recaps/audio-recaps.mjs +0 -58
- package/resources/v1/audio-recaps/audio-recaps.mjs.map +0 -1
- package/resources/v1/audio-recaps/index.d.mts +0 -3
- package/resources/v1/audio-recaps/index.d.mts.map +0 -1
- package/resources/v1/audio-recaps/index.d.ts +0 -3
- package/resources/v1/audio-recaps/index.d.ts.map +0 -1
- package/resources/v1/audio-recaps/index.js +0 -9
- package/resources/v1/audio-recaps/index.js.map +0 -1
- package/resources/v1/audio-recaps/index.mjs +0 -4
- package/resources/v1/audio-recaps/index.mjs.map +0 -1
- package/resources/v1/audio-recaps/sections.d.mts +0 -35
- package/resources/v1/audio-recaps/sections.d.mts.map +0 -1
- package/resources/v1/audio-recaps/sections.d.ts +0 -35
- package/resources/v1/audio-recaps/sections.d.ts.map +0 -1
- package/resources/v1/audio-recaps/sections.js +0 -42
- package/resources/v1/audio-recaps/sections.js.map +0 -1
- package/resources/v1/audio-recaps/sections.mjs +0 -38
- package/resources/v1/audio-recaps/sections.mjs.map +0 -1
- package/resources/v1/audio-recaps.d.mts +0 -2
- package/resources/v1/audio-recaps.d.mts.map +0 -1
- package/resources/v1/audio-recaps.d.ts +0 -2
- package/resources/v1/audio-recaps.d.ts.map +0 -1
- package/resources/v1/audio-recaps.js +0 -6
- package/resources/v1/audio-recaps.js.map +0 -1
- package/resources/v1/audio-recaps.mjs +0 -3
- package/resources/v1/audio-recaps.mjs.map +0 -1
- package/resources/v1/chat/chat.d.mts +0 -156
- package/resources/v1/chat/chat.d.mts.map +0 -1
- package/resources/v1/chat/chat.d.ts +0 -156
- package/resources/v1/chat/chat.d.ts.map +0 -1
- package/resources/v1/chat/chat.js +0 -99
- package/resources/v1/chat/chat.js.map +0 -1
- package/resources/v1/chat/chat.mjs +0 -94
- package/resources/v1/chat/chat.mjs.map +0 -1
- package/resources/v1/chat/index.d.mts +0 -4
- package/resources/v1/chat/index.d.mts.map +0 -1
- package/resources/v1/chat/index.d.ts +0 -4
- package/resources/v1/chat/index.d.ts.map +0 -1
- package/resources/v1/chat/index.js +0 -11
- package/resources/v1/chat/index.js.map +0 -1
- package/resources/v1/chat/index.mjs +0 -5
- package/resources/v1/chat/index.mjs.map +0 -1
- package/resources/v1/chat/sessions.d.mts +0 -28
- package/resources/v1/chat/sessions.d.mts.map +0 -1
- package/resources/v1/chat/sessions.d.ts +0 -28
- package/resources/v1/chat/sessions.d.ts.map +0 -1
- package/resources/v1/chat/sessions.js +0 -38
- package/resources/v1/chat/sessions.js.map +0 -1
- package/resources/v1/chat/sessions.mjs +0 -34
- package/resources/v1/chat/sessions.mjs.map +0 -1
- package/resources/v1/chat/test.d.mts +0 -20
- package/resources/v1/chat/test.d.mts.map +0 -1
- package/resources/v1/chat/test.d.ts +0 -20
- package/resources/v1/chat/test.d.ts.map +0 -1
- package/resources/v1/chat/test.js +0 -34
- package/resources/v1/chat/test.js.map +0 -1
- package/resources/v1/chat/test.mjs +0 -30
- package/resources/v1/chat/test.mjs.map +0 -1
- package/resources/v1/chat.d.mts +0 -2
- package/resources/v1/chat.d.mts.map +0 -1
- package/resources/v1/chat.d.ts +0 -2
- package/resources/v1/chat.d.ts.map +0 -1
- package/resources/v1/chat.js +0 -6
- package/resources/v1/chat.js.map +0 -1
- package/resources/v1/chat.mjs +0 -3
- package/resources/v1/chat.mjs.map +0 -1
- package/resources/v1/explainers.d.mts +0 -152
- package/resources/v1/explainers.d.mts.map +0 -1
- package/resources/v1/explainers.d.ts +0 -152
- package/resources/v1/explainers.d.ts.map +0 -1
- package/resources/v1/explainers.js +0 -64
- package/resources/v1/explainers.js.map +0 -1
- package/resources/v1/explainers.mjs +0 -60
- package/resources/v1/explainers.mjs.map +0 -1
- package/resources/v1/flashcards.d.mts +0 -256
- package/resources/v1/flashcards.d.mts.map +0 -1
- package/resources/v1/flashcards.d.ts +0 -256
- package/resources/v1/flashcards.d.ts.map +0 -1
- package/resources/v1/flashcards.js +0 -112
- package/resources/v1/flashcards.js.map +0 -1
- package/resources/v1/flashcards.mjs +0 -108
- package/resources/v1/flashcards.mjs.map +0 -1
- package/resources/v1/scenarios/component.d.mts +0 -84
- package/resources/v1/scenarios/component.d.mts.map +0 -1
- package/resources/v1/scenarios/component.d.ts +0 -84
- package/resources/v1/scenarios/component.d.ts.map +0 -1
- package/resources/v1/scenarios/component.js +0 -56
- package/resources/v1/scenarios/component.js.map +0 -1
- package/resources/v1/scenarios/component.mjs +0 -52
- package/resources/v1/scenarios/component.mjs.map +0 -1
- package/resources/v1/scenarios/index.d.mts +0 -5
- package/resources/v1/scenarios/index.d.mts.map +0 -1
- package/resources/v1/scenarios/index.d.ts +0 -5
- package/resources/v1/scenarios/index.d.ts.map +0 -1
- package/resources/v1/scenarios/index.js +0 -13
- package/resources/v1/scenarios/index.js.map +0 -1
- package/resources/v1/scenarios/index.mjs +0 -6
- package/resources/v1/scenarios/index.mjs.map +0 -1
- package/resources/v1/scenarios/scenarios.d.mts +0 -289
- package/resources/v1/scenarios/scenarios.d.mts.map +0 -1
- package/resources/v1/scenarios/scenarios.d.ts +0 -289
- package/resources/v1/scenarios/scenarios.d.ts.map +0 -1
- package/resources/v1/scenarios/scenarios.js +0 -131
- package/resources/v1/scenarios/scenarios.js.map +0 -1
- package/resources/v1/scenarios/scenarios.mjs +0 -126
- package/resources/v1/scenarios/scenarios.mjs.map +0 -1
- package/resources/v1/scenarios/sessions.d.mts +0 -20
- package/resources/v1/scenarios/sessions.d.mts.map +0 -1
- package/resources/v1/scenarios/sessions.d.ts +0 -20
- package/resources/v1/scenarios/sessions.d.ts.map +0 -1
- package/resources/v1/scenarios/sessions.js +0 -35
- package/resources/v1/scenarios/sessions.js.map +0 -1
- package/resources/v1/scenarios/sessions.mjs +0 -31
- package/resources/v1/scenarios/sessions.mjs.map +0 -1
- package/resources/v1/scenarios/submissions/index.d.mts +0 -3
- package/resources/v1/scenarios/submissions/index.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions/index.d.ts +0 -3
- package/resources/v1/scenarios/submissions/index.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions/index.js +0 -9
- package/resources/v1/scenarios/submissions/index.js.map +0 -1
- package/resources/v1/scenarios/submissions/index.mjs +0 -4
- package/resources/v1/scenarios/submissions/index.mjs.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.d.mts +0 -10
- package/resources/v1/scenarios/submissions/submissions.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.d.ts +0 -10
- package/resources/v1/scenarios/submissions/submissions.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.js +0 -17
- package/resources/v1/scenarios/submissions/submissions.js.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.mjs +0 -12
- package/resources/v1/scenarios/submissions/submissions.mjs.map +0 -1
- package/resources/v1/scenarios/submissions/user.d.mts +0 -22
- package/resources/v1/scenarios/submissions/user.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions/user.d.ts +0 -22
- package/resources/v1/scenarios/submissions/user.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions/user.js +0 -37
- package/resources/v1/scenarios/submissions/user.js.map +0 -1
- package/resources/v1/scenarios/submissions/user.mjs +0 -33
- package/resources/v1/scenarios/submissions/user.mjs.map +0 -1
- package/resources/v1/scenarios/submissions.d.mts +0 -2
- package/resources/v1/scenarios/submissions.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions.d.ts +0 -2
- package/resources/v1/scenarios/submissions.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions.js +0 -6
- package/resources/v1/scenarios/submissions.js.map +0 -1
- package/resources/v1/scenarios/submissions.mjs +0 -3
- package/resources/v1/scenarios/submissions.mjs.map +0 -1
- package/resources/v1/scenarios.d.mts +0 -2
- package/resources/v1/scenarios.d.mts.map +0 -1
- package/resources/v1/scenarios.d.ts +0 -2
- package/resources/v1/scenarios.d.ts.map +0 -1
- package/resources/v1/scenarios.js +0 -6
- package/resources/v1/scenarios.js.map +0 -1
- package/resources/v1/scenarios.mjs +0 -3
- package/resources/v1/scenarios.mjs.map +0 -1
- package/resources/v1/tests/component.d.mts +0 -13
- package/resources/v1/tests/component.d.mts.map +0 -1
- package/resources/v1/tests/component.d.ts +0 -13
- package/resources/v1/tests/component.d.ts.map +0 -1
- package/resources/v1/tests/component.js +0 -23
- package/resources/v1/tests/component.js.map +0 -1
- package/resources/v1/tests/component.mjs +0 -19
- package/resources/v1/tests/component.mjs.map +0 -1
- package/resources/v1/tests/index.d.mts +0 -3
- package/resources/v1/tests/index.d.mts.map +0 -1
- package/resources/v1/tests/index.d.ts +0 -3
- package/resources/v1/tests/index.d.ts.map +0 -1
- package/resources/v1/tests/index.js +0 -9
- package/resources/v1/tests/index.js.map +0 -1
- package/resources/v1/tests/index.mjs +0 -4
- package/resources/v1/tests/index.mjs.map +0 -1
- package/resources/v1/tests/tests.d.mts +0 -112
- package/resources/v1/tests/tests.d.mts.map +0 -1
- package/resources/v1/tests/tests.d.ts +0 -112
- package/resources/v1/tests/tests.d.ts.map +0 -1
- package/resources/v1/tests/tests.js +0 -112
- package/resources/v1/tests/tests.js.map +0 -1
- package/resources/v1/tests/tests.mjs +0 -107
- package/resources/v1/tests/tests.mjs.map +0 -1
- package/resources/v1/tests.d.mts +0 -2
- package/resources/v1/tests.d.mts.map +0 -1
- package/resources/v1/tests.d.ts +0 -2
- package/resources/v1/tests.d.ts.map +0 -1
- package/resources/v1/tests.js +0 -6
- package/resources/v1/tests.js.map +0 -1
- package/resources/v1/tests.mjs +0 -3
- package/resources/v1/tests.mjs.map +0 -1
- package/src/resources/v1/audio-recaps/audio-recaps.ts +0 -79
- package/src/resources/v1/audio-recaps/index.ts +0 -4
- package/src/resources/v1/audio-recaps/sections.ts +0 -53
- package/src/resources/v1/audio-recaps.ts +0 -3
- package/src/resources/v1/chat/chat.ts +0 -229
- package/src/resources/v1/chat/index.ts +0 -5
- package/src/resources/v1/chat/sessions.ts +0 -46
- package/src/resources/v1/chat/test.ts +0 -34
- package/src/resources/v1/chat.ts +0 -3
- package/src/resources/v1/explainers.ts +0 -203
- package/src/resources/v1/flashcards.ts +0 -353
- package/src/resources/v1/scenarios/component.ts +0 -118
- package/src/resources/v1/scenarios/index.ts +0 -13
- package/src/resources/v1/scenarios/scenarios.ts +0 -400
- package/src/resources/v1/scenarios/sessions.ts +0 -35
- package/src/resources/v1/scenarios/submissions/index.ts +0 -4
- package/src/resources/v1/scenarios/submissions/submissions.ts +0 -15
- package/src/resources/v1/scenarios/submissions/user.ts +0 -37
- package/src/resources/v1/scenarios/submissions.ts +0 -3
- package/src/resources/v1/scenarios.ts +0 -3
- package/src/resources/v1/tests/component.ts +0 -22
- package/src/resources/v1/tests/index.ts +0 -10
- package/src/resources/v1/tests/tests.ts +0 -173
- package/src/resources/v1/tests.ts +0 -3
|
@@ -7,33 +7,38 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
7
7
|
|
|
8
8
|
export class Analyst extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Get test results
|
|
10
|
+
* Get test results with full question data for user or group
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* await client.v1.usage.analyst.getTestQuestions();
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
getTestQuestions(
|
|
17
|
+
getTestQuestions(
|
|
18
|
+
query: AnalystGetTestQuestionsParams | null | undefined = {},
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): APIPromise<void> {
|
|
18
21
|
return this._client.get('/api/v1/usage-analyst/test-questions', {
|
|
22
|
+
query,
|
|
19
23
|
...options,
|
|
20
24
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
25
|
});
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
|
-
* Get chat messages
|
|
29
|
+
* Get all chat messages from sessions for user or group
|
|
26
30
|
*
|
|
27
31
|
* @example
|
|
28
32
|
* ```ts
|
|
29
|
-
*
|
|
33
|
+
* const response =
|
|
34
|
+
* await client.v1.usage.analyst.listChatMessages();
|
|
30
35
|
* ```
|
|
31
36
|
*/
|
|
32
|
-
listChatMessages(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
+
listChatMessages(
|
|
38
|
+
query: AnalystListChatMessagesParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<AnalystListChatMessagesResponse> {
|
|
41
|
+
return this._client.get('/api/v1/usage-analyst/chat-messages', { query, ...options });
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
/**
|
|
@@ -57,6 +62,56 @@ export class Analyst extends APIResource {
|
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
64
|
|
|
65
|
+
export interface AnalystListChatMessagesResponse {
|
|
66
|
+
messages?: Array<AnalystListChatMessagesResponse.Message>;
|
|
67
|
+
|
|
68
|
+
sessionCount?: number;
|
|
69
|
+
|
|
70
|
+
total?: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace AnalystListChatMessagesResponse {
|
|
74
|
+
export interface Message {
|
|
75
|
+
componentId?: string;
|
|
76
|
+
|
|
77
|
+
content?: string;
|
|
78
|
+
|
|
79
|
+
createdAt?: string;
|
|
80
|
+
|
|
81
|
+
metadata?: unknown;
|
|
82
|
+
|
|
83
|
+
role?: 'user' | 'assistant' | 'system';
|
|
84
|
+
|
|
85
|
+
sessionId?: string;
|
|
86
|
+
|
|
87
|
+
userId?: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface AnalystGetTestQuestionsParams {
|
|
92
|
+
/**
|
|
93
|
+
* Array of group IDs to filter
|
|
94
|
+
*/
|
|
95
|
+
groupIds?: Array<string>;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* User ID to get test results for
|
|
99
|
+
*/
|
|
100
|
+
userId?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface AnalystListChatMessagesParams {
|
|
104
|
+
/**
|
|
105
|
+
* Array of group IDs to filter
|
|
106
|
+
*/
|
|
107
|
+
groupIds?: Array<string>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* User ID to get chat messages for
|
|
111
|
+
*/
|
|
112
|
+
userId?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
60
115
|
export interface AnalystListEventsParams {
|
|
61
116
|
/**
|
|
62
117
|
* End date for filtering (ISO 8601)
|
|
@@ -95,8 +150,23 @@ export interface AnalystListEventsParams {
|
|
|
95
150
|
* Start date for filtering (ISO 8601)
|
|
96
151
|
*/
|
|
97
152
|
startDate: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Array of group IDs to filter
|
|
156
|
+
*/
|
|
157
|
+
groupIds?: Array<string>;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Array of user IDs to filter
|
|
161
|
+
*/
|
|
162
|
+
userIds?: Array<string>;
|
|
98
163
|
}
|
|
99
164
|
|
|
100
165
|
export declare namespace Analyst {
|
|
101
|
-
export {
|
|
166
|
+
export {
|
|
167
|
+
type AnalystListChatMessagesResponse as AnalystListChatMessagesResponse,
|
|
168
|
+
type AnalystGetTestQuestionsParams as AnalystGetTestQuestionsParams,
|
|
169
|
+
type AnalystListChatMessagesParams as AnalystListChatMessagesParams,
|
|
170
|
+
type AnalystListEventsParams as AnalystListEventsParams,
|
|
171
|
+
};
|
|
102
172
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Analyst,
|
|
5
|
+
type AnalystListChatMessagesResponse,
|
|
6
|
+
type AnalystGetTestQuestionsParams,
|
|
7
|
+
type AnalystListChatMessagesParams,
|
|
8
|
+
type AnalystListEventsParams,
|
|
9
|
+
} from './analyst';
|
|
4
10
|
export {
|
|
5
11
|
Usage,
|
|
6
12
|
type UsageGetStatsParams,
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as AnalystAPI from './analyst';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Analyst,
|
|
7
|
+
AnalystGetTestQuestionsParams,
|
|
8
|
+
AnalystListChatMessagesParams,
|
|
9
|
+
AnalystListChatMessagesResponse,
|
|
10
|
+
AnalystListEventsParams,
|
|
11
|
+
} from './analyst';
|
|
6
12
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
13
|
import { buildHeaders } from '../../../internal/headers';
|
|
8
14
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -184,5 +190,11 @@ export declare namespace Usage {
|
|
|
184
190
|
type UsageListEventsParams as UsageListEventsParams,
|
|
185
191
|
};
|
|
186
192
|
|
|
187
|
-
export {
|
|
193
|
+
export {
|
|
194
|
+
Analyst as Analyst,
|
|
195
|
+
type AnalystListChatMessagesResponse as AnalystListChatMessagesResponse,
|
|
196
|
+
type AnalystGetTestQuestionsParams as AnalystGetTestQuestionsParams,
|
|
197
|
+
type AnalystListChatMessagesParams as AnalystListChatMessagesParams,
|
|
198
|
+
type AnalystListEventsParams as AnalystListEventsParams,
|
|
199
|
+
};
|
|
188
200
|
}
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -19,37 +19,17 @@ import {
|
|
|
19
19
|
ComponentUpdateParams,
|
|
20
20
|
Components,
|
|
21
21
|
} from './components';
|
|
22
|
-
import * as ExplainersAPI from './explainers';
|
|
23
|
-
import { ExplainerCreateParams, ExplainerHandleWebhookParams, Explainers } from './explainers';
|
|
24
|
-
import * as FlashcardsAPI from './flashcards';
|
|
25
|
-
import {
|
|
26
|
-
FlashcardBatchProcessParams,
|
|
27
|
-
FlashcardBatchProcessResponse,
|
|
28
|
-
FlashcardGetAlgorithmResponse,
|
|
29
|
-
FlashcardGetAllParams,
|
|
30
|
-
FlashcardGetDueParams,
|
|
31
|
-
FlashcardGetStatsParams,
|
|
32
|
-
FlashcardGetTypesResponse,
|
|
33
|
-
FlashcardRateParams,
|
|
34
|
-
Flashcards,
|
|
35
|
-
} from './flashcards';
|
|
36
22
|
import * as FoldersAPI from './folders';
|
|
37
23
|
import { FolderCreateParams, FolderListParams, FolderUpdateParams, Folders } from './folders';
|
|
38
|
-
import * as AudioRecapsAPI from './audio-recaps/audio-recaps';
|
|
39
|
-
import {
|
|
40
|
-
AudioRecapAskQuestionParams,
|
|
41
|
-
AudioRecapCreateParams,
|
|
42
|
-
AudioRecaps,
|
|
43
|
-
} from './audio-recaps/audio-recaps';
|
|
44
|
-
import * as ChatAPI from './chat/chat';
|
|
45
|
-
import { Chat, ChatGetSessionParams, ChatSendMessageParams, ChatStreamParams } from './chat/chat';
|
|
46
24
|
import * as EmbedAPI from './embed/embed';
|
|
47
25
|
import { Embed, EmbedGetThemeParams, EmbedVerifyParams } from './embed/embed';
|
|
48
26
|
import * as MaterialsAPI from './materials/materials';
|
|
49
27
|
import {
|
|
28
|
+
Content,
|
|
50
29
|
Material,
|
|
51
30
|
MaterialBatchCreateParams,
|
|
52
31
|
MaterialBatchCreateResponse,
|
|
32
|
+
MaterialCreateAndProcessParams,
|
|
53
33
|
MaterialCreateParams,
|
|
54
34
|
MaterialDebugResponse,
|
|
55
35
|
MaterialGetDownloadURLParams,
|
|
@@ -62,27 +42,13 @@ import {
|
|
|
62
42
|
MaterialSearchResponse,
|
|
63
43
|
Materials,
|
|
64
44
|
} from './materials/materials';
|
|
65
|
-
import * as ScenariosAPI from './scenarios/scenarios';
|
|
66
|
-
import {
|
|
67
|
-
Scenario,
|
|
68
|
-
ScenarioCreateParams,
|
|
69
|
-
ScenarioSubmitAnswerParams,
|
|
70
|
-
ScenarioUpdateParams,
|
|
71
|
-
Scenarios,
|
|
72
|
-
UpdateScenario,
|
|
73
|
-
} from './scenarios/scenarios';
|
|
74
|
-
import * as TestsAPI from './tests/tests';
|
|
75
|
-
import {
|
|
76
|
-
TestCreateParams,
|
|
77
|
-
TestRetakeParams,
|
|
78
|
-
TestSubmitAnswerParams,
|
|
79
|
-
TestSubmitParams,
|
|
80
|
-
Tests,
|
|
81
|
-
} from './tests/tests';
|
|
82
45
|
import * as UploadAPI from './upload/upload';
|
|
83
46
|
import { Upload } from './upload/upload';
|
|
84
47
|
import * as UsageAPI from './usage/usage';
|
|
85
48
|
import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from './usage/usage';
|
|
49
|
+
import { APIPromise } from '../../core/api-promise';
|
|
50
|
+
import { buildHeaders } from '../../internal/headers';
|
|
51
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
86
52
|
|
|
87
53
|
export class V1 extends APIResource {
|
|
88
54
|
materials: MaterialsAPI.Materials = new MaterialsAPI.Materials(this._client);
|
|
@@ -90,16 +56,25 @@ export class V1 extends APIResource {
|
|
|
90
56
|
components: ComponentsAPI.Components = new ComponentsAPI.Components(this._client);
|
|
91
57
|
usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
|
|
92
58
|
embed: EmbedAPI.Embed = new EmbedAPI.Embed(this._client);
|
|
93
|
-
chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
|
|
94
|
-
tests: TestsAPI.Tests = new TestsAPI.Tests(this._client);
|
|
95
|
-
audioRecaps: AudioRecapsAPI.AudioRecaps = new AudioRecapsAPI.AudioRecaps(this._client);
|
|
96
|
-
flashcards: FlashcardsAPI.Flashcards = new FlashcardsAPI.Flashcards(this._client);
|
|
97
|
-
scenarios: ScenariosAPI.Scenarios = new ScenariosAPI.Scenarios(this._client);
|
|
98
|
-
explainers: ExplainersAPI.Explainers = new ExplainersAPI.Explainers(this._client);
|
|
99
59
|
upload: UploadAPI.Upload = new UploadAPI.Upload(this._client);
|
|
100
60
|
assignmentGrader: AssignmentGraderAPI.AssignmentGrader = new AssignmentGraderAPI.AssignmentGrader(
|
|
101
61
|
this._client,
|
|
102
62
|
);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Test MongoDB connection and get outbound IP
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* await client.v1.testMongoDB();
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
testMongoDB(options?: RequestOptions): APIPromise<void> {
|
|
73
|
+
return this._client.get('/api/v1/test-mongodb', {
|
|
74
|
+
...options,
|
|
75
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
103
78
|
}
|
|
104
79
|
|
|
105
80
|
V1.Materials = Materials;
|
|
@@ -107,18 +82,13 @@ V1.Folders = Folders;
|
|
|
107
82
|
V1.Components = Components;
|
|
108
83
|
V1.Usage = Usage;
|
|
109
84
|
V1.Embed = Embed;
|
|
110
|
-
V1.Chat = Chat;
|
|
111
|
-
V1.Tests = Tests;
|
|
112
|
-
V1.AudioRecaps = AudioRecaps;
|
|
113
|
-
V1.Flashcards = Flashcards;
|
|
114
|
-
V1.Scenarios = Scenarios;
|
|
115
|
-
V1.Explainers = Explainers;
|
|
116
85
|
V1.Upload = Upload;
|
|
117
86
|
V1.AssignmentGrader = AssignmentGrader;
|
|
118
87
|
|
|
119
88
|
export declare namespace V1 {
|
|
120
89
|
export {
|
|
121
90
|
Materials as Materials,
|
|
91
|
+
type Content as Content,
|
|
122
92
|
type Material as Material,
|
|
123
93
|
type MaterialListResponse as MaterialListResponse,
|
|
124
94
|
type MaterialBatchCreateResponse as MaterialBatchCreateResponse,
|
|
@@ -128,6 +98,7 @@ export declare namespace V1 {
|
|
|
128
98
|
type MaterialCreateParams as MaterialCreateParams,
|
|
129
99
|
type MaterialListParams as MaterialListParams,
|
|
130
100
|
type MaterialBatchCreateParams as MaterialBatchCreateParams,
|
|
101
|
+
type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
|
|
131
102
|
type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
|
|
132
103
|
type MaterialMoveParams as MaterialMoveParams,
|
|
133
104
|
type MaterialRenameParams as MaterialRenameParams,
|
|
@@ -165,54 +136,6 @@ export declare namespace V1 {
|
|
|
165
136
|
type EmbedVerifyParams as EmbedVerifyParams,
|
|
166
137
|
};
|
|
167
138
|
|
|
168
|
-
export {
|
|
169
|
-
Chat as Chat,
|
|
170
|
-
type ChatGetSessionParams as ChatGetSessionParams,
|
|
171
|
-
type ChatSendMessageParams as ChatSendMessageParams,
|
|
172
|
-
type ChatStreamParams as ChatStreamParams,
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export {
|
|
176
|
-
Tests as Tests,
|
|
177
|
-
type TestCreateParams as TestCreateParams,
|
|
178
|
-
type TestRetakeParams as TestRetakeParams,
|
|
179
|
-
type TestSubmitParams as TestSubmitParams,
|
|
180
|
-
type TestSubmitAnswerParams as TestSubmitAnswerParams,
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
export {
|
|
184
|
-
AudioRecaps as AudioRecaps,
|
|
185
|
-
type AudioRecapCreateParams as AudioRecapCreateParams,
|
|
186
|
-
type AudioRecapAskQuestionParams as AudioRecapAskQuestionParams,
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
export {
|
|
190
|
-
Flashcards as Flashcards,
|
|
191
|
-
type FlashcardBatchProcessResponse as FlashcardBatchProcessResponse,
|
|
192
|
-
type FlashcardGetAlgorithmResponse as FlashcardGetAlgorithmResponse,
|
|
193
|
-
type FlashcardGetTypesResponse as FlashcardGetTypesResponse,
|
|
194
|
-
type FlashcardBatchProcessParams as FlashcardBatchProcessParams,
|
|
195
|
-
type FlashcardGetAllParams as FlashcardGetAllParams,
|
|
196
|
-
type FlashcardGetDueParams as FlashcardGetDueParams,
|
|
197
|
-
type FlashcardGetStatsParams as FlashcardGetStatsParams,
|
|
198
|
-
type FlashcardRateParams as FlashcardRateParams,
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
export {
|
|
202
|
-
Scenarios as Scenarios,
|
|
203
|
-
type Scenario as Scenario,
|
|
204
|
-
type UpdateScenario as UpdateScenario,
|
|
205
|
-
type ScenarioCreateParams as ScenarioCreateParams,
|
|
206
|
-
type ScenarioUpdateParams as ScenarioUpdateParams,
|
|
207
|
-
type ScenarioSubmitAnswerParams as ScenarioSubmitAnswerParams,
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export {
|
|
211
|
-
Explainers as Explainers,
|
|
212
|
-
type ExplainerCreateParams as ExplainerCreateParams,
|
|
213
|
-
type ExplainerHandleWebhookParams as ExplainerHandleWebhookParams,
|
|
214
|
-
};
|
|
215
|
-
|
|
216
139
|
export { Upload as Upload };
|
|
217
140
|
|
|
218
141
|
export {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.27.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.27.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.27.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.27.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as SectionsAPI from "./sections.mjs";
|
|
3
|
-
import { SectionRetrieveParams, Sections } from "./sections.mjs";
|
|
4
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
|
-
export declare class AudioRecaps extends APIResource {
|
|
7
|
-
sections: SectionsAPI.Sections;
|
|
8
|
-
/**
|
|
9
|
-
* Create a new audio recap
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.audioRecaps.create();
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
create(body: AudioRecapCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Get audio recap by ID
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* await client.v1.audioRecaps.retrieve('recapId');
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
retrieve(recapID: string, options?: RequestOptions): APIPromise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Ask a question about the audio recap
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* await client.v1.audioRecaps.askQuestion('recapId');
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
askQuestion(recapID: string, body: AudioRecapAskQuestionParams, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
}
|
|
36
|
-
export interface AudioRecapCreateParams {
|
|
37
|
-
}
|
|
38
|
-
export interface AudioRecapAskQuestionParams {
|
|
39
|
-
}
|
|
40
|
-
export declare namespace AudioRecaps {
|
|
41
|
-
export { type AudioRecapCreateParams as AudioRecapCreateParams, type AudioRecapAskQuestionParams as AudioRecapAskQuestionParams, };
|
|
42
|
-
export { Sections as Sections, type SectionRetrieveParams as SectionRetrieveParams };
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=audio-recaps.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audio-recaps.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/audio-recaps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,qBAAqB,EAAE,QAAQ,EAAE;OACnC,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhF;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrE;;;;;;;OAOG;IACH,WAAW,CACT,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,2BAA2B;CAAG;AAI/C,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CACtF"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as SectionsAPI from "./sections.js";
|
|
3
|
-
import { SectionRetrieveParams, Sections } from "./sections.js";
|
|
4
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
-
export declare class AudioRecaps extends APIResource {
|
|
7
|
-
sections: SectionsAPI.Sections;
|
|
8
|
-
/**
|
|
9
|
-
* Create a new audio recap
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.audioRecaps.create();
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
create(body: AudioRecapCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Get audio recap by ID
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* await client.v1.audioRecaps.retrieve('recapId');
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
retrieve(recapID: string, options?: RequestOptions): APIPromise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Ask a question about the audio recap
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* await client.v1.audioRecaps.askQuestion('recapId');
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
askQuestion(recapID: string, body: AudioRecapAskQuestionParams, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
}
|
|
36
|
-
export interface AudioRecapCreateParams {
|
|
37
|
-
}
|
|
38
|
-
export interface AudioRecapAskQuestionParams {
|
|
39
|
-
}
|
|
40
|
-
export declare namespace AudioRecaps {
|
|
41
|
-
export { type AudioRecapCreateParams as AudioRecapCreateParams, type AudioRecapAskQuestionParams as AudioRecapAskQuestionParams, };
|
|
42
|
-
export { Sections as Sections, type SectionRetrieveParams as SectionRetrieveParams };
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=audio-recaps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audio-recaps.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/audio-recaps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,qBAAqB,EAAE,QAAQ,EAAE;OACnC,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhF;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrE;;;;;;;OAOG;IACH,WAAW,CACT,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,2BAA2B;CAAG;AAI/C,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CACtF"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AudioRecaps = void 0;
|
|
5
|
-
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const SectionsAPI = tslib_1.__importStar(require("./sections.js"));
|
|
8
|
-
const sections_1 = require("./sections.js");
|
|
9
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
10
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
11
|
-
class AudioRecaps extends resource_1.APIResource {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.sections = new SectionsAPI.Sections(this._client);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Create a new audio recap
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* await client.v1.audioRecaps.create();
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body, options) {
|
|
25
|
-
return this._client.post('/api/v1/audio-recaps/create', {
|
|
26
|
-
body,
|
|
27
|
-
...options,
|
|
28
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get audio recap by ID
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* await client.v1.audioRecaps.retrieve('recapId');
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
retrieve(recapID, options) {
|
|
40
|
-
return this._client.get((0, path_1.path) `/api/v1/audio-recaps/${recapID}/get`, {
|
|
41
|
-
...options,
|
|
42
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Ask a question about the audio recap
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* await client.v1.audioRecaps.askQuestion('recapId');
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
askQuestion(recapID, body, options) {
|
|
54
|
-
return this._client.post((0, path_1.path) `/api/v1/audio-recaps/${recapID}/ask-question`, {
|
|
55
|
-
body,
|
|
56
|
-
...options,
|
|
57
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.AudioRecaps = AudioRecaps;
|
|
62
|
-
AudioRecaps.Sections = sections_1.Sections;
|
|
63
|
-
//# sourceMappingURL=audio-recaps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audio-recaps.js","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/audio-recaps.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,mEAA0C;AAC1C,4CAA6D;AAE7D,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoD1E,CAAC;IAlDC;;;;;;;OAOG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,OAAO,MAAM,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CACT,OAAe,EACf,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,OAAO,eAAe,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AArDD,kCAqDC;AAMD,WAAW,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import * as SectionsAPI from "./sections.mjs";
|
|
4
|
-
import { Sections } from "./sections.mjs";
|
|
5
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
-
export class AudioRecaps extends APIResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.sections = new SectionsAPI.Sections(this._client);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Create a new audio recap
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* await client.v1.audioRecaps.create();
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(body, options) {
|
|
21
|
-
return this._client.post('/api/v1/audio-recaps/create', {
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get audio recap by ID
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* await client.v1.audioRecaps.retrieve('recapId');
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
retrieve(recapID, options) {
|
|
36
|
-
return this._client.get(path `/api/v1/audio-recaps/${recapID}/get`, {
|
|
37
|
-
...options,
|
|
38
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Ask a question about the audio recap
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* await client.v1.audioRecaps.askQuestion('recapId');
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
askQuestion(recapID, body, options) {
|
|
50
|
-
return this._client.post(path `/api/v1/audio-recaps/${recapID}/ask-question`, {
|
|
51
|
-
body,
|
|
52
|
-
...options,
|
|
53
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
AudioRecaps.Sections = Sections;
|
|
58
|
-
//# sourceMappingURL=audio-recaps.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audio-recaps.mjs","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/audio-recaps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAyB,QAAQ,EAAE;OAEnC,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoD1E,CAAC;IAlDC;;;;;;;OAOG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,OAAO,MAAM,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CACT,OAAe,EACf,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,OAAO,eAAe,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAMD,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,sBAAsB,EAAE,KAAK,2BAA2B,EAAE;OAC9E,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,sBAAsB,EAAE,KAAK,2BAA2B,EAAE;OAC9E,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Sections = exports.AudioRecaps = void 0;
|
|
5
|
-
var audio_recaps_1 = require("./audio-recaps.js");
|
|
6
|
-
Object.defineProperty(exports, "AudioRecaps", { enumerable: true, get: function () { return audio_recaps_1.AudioRecaps; } });
|
|
7
|
-
var sections_1 = require("./sections.js");
|
|
8
|
-
Object.defineProperty(exports, "Sections", { enumerable: true, get: function () { return sections_1.Sections; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA4G;AAAnG,2GAAA,WAAW,OAAA;AACpB,0CAAkE;AAAzD,oGAAA,QAAQ,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/audio-recaps/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAiE;OAC9E,EAAE,QAAQ,EAA8B"}
|