@studyfetch/sdk 1.26.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 +12 -0
- package/package.json +1 -1
- package/resources/v1/components.d.mts +40 -0
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +40 -0
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/index.d.mts +0 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +0 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +9 -23
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -7
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +12 -0
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +12 -0
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/v1.d.mts +0 -28
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +0 -28
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +0 -28
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +0 -28
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/components.ts +49 -0
- package/src/resources/v1/index.ts +0 -45
- package/src/resources/v1/materials/upload.ts +15 -0
- package/src/resources/v1/v1.ts +0 -122
- 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 -217
- package/resources/v1/chat/chat.d.mts.map +0 -1
- package/resources/v1/chat/chat.d.ts +0 -217
- 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/data-analyst/data-analyst.d.mts +0 -156
- package/resources/v1/data-analyst/data-analyst.d.mts.map +0 -1
- package/resources/v1/data-analyst/data-analyst.d.ts +0 -156
- package/resources/v1/data-analyst/data-analyst.d.ts.map +0 -1
- package/resources/v1/data-analyst/data-analyst.js +0 -99
- package/resources/v1/data-analyst/data-analyst.js.map +0 -1
- package/resources/v1/data-analyst/data-analyst.mjs +0 -94
- package/resources/v1/data-analyst/data-analyst.mjs.map +0 -1
- package/resources/v1/data-analyst/index.d.mts +0 -4
- package/resources/v1/data-analyst/index.d.mts.map +0 -1
- package/resources/v1/data-analyst/index.d.ts +0 -4
- package/resources/v1/data-analyst/index.d.ts.map +0 -1
- package/resources/v1/data-analyst/index.js +0 -11
- package/resources/v1/data-analyst/index.js.map +0 -1
- package/resources/v1/data-analyst/index.mjs +0 -5
- package/resources/v1/data-analyst/index.mjs.map +0 -1
- package/resources/v1/data-analyst/sessions.d.mts +0 -28
- package/resources/v1/data-analyst/sessions.d.mts.map +0 -1
- package/resources/v1/data-analyst/sessions.d.ts +0 -28
- package/resources/v1/data-analyst/sessions.d.ts.map +0 -1
- package/resources/v1/data-analyst/sessions.js +0 -38
- package/resources/v1/data-analyst/sessions.js.map +0 -1
- package/resources/v1/data-analyst/sessions.mjs +0 -34
- package/resources/v1/data-analyst/sessions.mjs.map +0 -1
- package/resources/v1/data-analyst/test.d.mts +0 -20
- package/resources/v1/data-analyst/test.d.mts.map +0 -1
- package/resources/v1/data-analyst/test.d.ts +0 -20
- package/resources/v1/data-analyst/test.d.ts.map +0 -1
- package/resources/v1/data-analyst/test.js +0 -34
- package/resources/v1/data-analyst/test.js.map +0 -1
- package/resources/v1/data-analyst/test.mjs +0 -30
- package/resources/v1/data-analyst/test.mjs.map +0 -1
- package/resources/v1/data-analyst.d.mts +0 -2
- package/resources/v1/data-analyst.d.mts.map +0 -1
- package/resources/v1/data-analyst.d.ts +0 -2
- package/resources/v1/data-analyst.d.ts.map +0 -1
- package/resources/v1/data-analyst.js +0 -6
- package/resources/v1/data-analyst.js.map +0 -1
- package/resources/v1/data-analyst.mjs +0 -3
- package/resources/v1/data-analyst.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 -303
- package/src/resources/v1/chat/index.ts +0 -11
- 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/data-analyst/data-analyst.ts +0 -233
- package/src/resources/v1/data-analyst/index.ts +0 -10
- package/src/resources/v1/data-analyst/sessions.ts +0 -46
- package/src/resources/v1/data-analyst/test.ts +0 -34
- package/src/resources/v1/data-analyst.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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"explainers.d.ts","sourceRoot":"","sources":["../../src/resources/v1/explainers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ/E;;;;;;;OAOG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOzE;;;;;;;;;;OAUG;IACH,aAAa,CAAC,IAAI,EAAE,4BAA4B,EAAE,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UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAE3B;;WAEG;QACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,64 +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.Explainers = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
-
class Explainers extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create explainers component
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* await client.v1.explainers.create({
|
|
15
|
-
* componentId: 'componentId',
|
|
16
|
-
* folderIds: ['string'],
|
|
17
|
-
* materialIds: ['string'],
|
|
18
|
-
* targetLength: 15,
|
|
19
|
-
* title: 'title',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
create(body, options) {
|
|
24
|
-
return this._client.post('/api/v1/explainers/create', {
|
|
25
|
-
body,
|
|
26
|
-
...options,
|
|
27
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Get explainer video by component ID
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* await client.v1.explainers.retrieve('componentId');
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
retrieve(componentID, options) {
|
|
39
|
-
return this._client.get((0, path_1.path) `/api/v1/explainers/component/${componentID}`, {
|
|
40
|
-
...options,
|
|
41
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Handle explainer video webhook events
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* await client.v1.explainers.handleWebhook({
|
|
50
|
-
* event: 'video.completed',
|
|
51
|
-
* video: { id: 'id' },
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
handleWebhook(body, options) {
|
|
56
|
-
return this._client.post('/api/v1/explainers/webhook', {
|
|
57
|
-
body,
|
|
58
|
-
...options,
|
|
59
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.Explainers = Explainers;
|
|
64
|
-
//# sourceMappingURL=explainers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"explainers.js","sourceRoot":"","sources":["../../src/resources/v1/explainers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,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,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gCAAgC,WAAW,EAAE,EAAE;YACzE,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;;;;;;;;;;OAUG;IACH,aAAa,CAAC,IAAkC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACrD,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;AAxDD,gCAwDC"}
|
|
@@ -1,60 +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 { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
-
export class Explainers extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create explainers component
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* await client.v1.explainers.create({
|
|
12
|
-
* componentId: 'componentId',
|
|
13
|
-
* folderIds: ['string'],
|
|
14
|
-
* materialIds: ['string'],
|
|
15
|
-
* targetLength: 15,
|
|
16
|
-
* title: 'title',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(body, options) {
|
|
21
|
-
return this._client.post('/api/v1/explainers/create', {
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get explainer video by component ID
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* await client.v1.explainers.retrieve('componentId');
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
retrieve(componentID, options) {
|
|
36
|
-
return this._client.get(path `/api/v1/explainers/component/${componentID}`, {
|
|
37
|
-
...options,
|
|
38
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Handle explainer video webhook events
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* await client.v1.explainers.handleWebhook({
|
|
47
|
-
* event: 'video.completed',
|
|
48
|
-
* video: { id: 'id' },
|
|
49
|
-
* });
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
handleWebhook(body, options) {
|
|
53
|
-
return this._client.post('/api/v1/explainers/webhook', {
|
|
54
|
-
body,
|
|
55
|
-
...options,
|
|
56
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=explainers.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"explainers.mjs","sourceRoot":"","sources":["../../src/resources/v1/explainers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,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,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,WAAW,EAAE,EAAE;YACzE,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;;;;;;;;;;OAUG;IACH,aAAa,CAAC,IAAkC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACrD,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"}
|
|
@@ -1,256 +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 Flashcards extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Process multiple flashcard operations
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const response = await client.v1.flashcards.batchProcess(
|
|
11
|
-
* 'componentId',
|
|
12
|
-
* { operations: [{ action: 'rate', cardId: 'cardId' }] },
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
batchProcess(componentID: string, body: FlashcardBatchProcessParams, options?: RequestOptions): APIPromise<FlashcardBatchProcessResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Get spaced repetition algorithm info
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const response = await client.v1.flashcards.getAlgorithm();
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
getAlgorithm(options?: RequestOptions): APIPromise<FlashcardGetAlgorithmResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Get all flashcards for component
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* await client.v1.flashcards.getAll('componentId');
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
getAll(componentID: string, query?: FlashcardGetAllParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Get due flashcards for review
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* await client.v1.flashcards.getDue('componentId', {
|
|
41
|
-
* groupIds: 'groupIds',
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
getDue(componentID: string, query: FlashcardGetDueParams, options?: RequestOptions): APIPromise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Get flashcard statistics
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* await client.v1.flashcards.getStats('componentId');
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
getStats(componentID: string, query?: FlashcardGetStatsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Get available flashcard types
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const response = await client.v1.flashcards.getTypes();
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
getTypes(options?: RequestOptions): APIPromise<FlashcardGetTypesResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* Rate a flashcard
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* await client.v1.flashcards.rate('componentId', {
|
|
70
|
-
* cardId: 'cardId',
|
|
71
|
-
* rating: 0,
|
|
72
|
-
* });
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
rate(componentID: string, body: FlashcardRateParams, options?: RequestOptions): APIPromise<void>;
|
|
76
|
-
}
|
|
77
|
-
export interface FlashcardBatchProcessResponse {
|
|
78
|
-
/**
|
|
79
|
-
* Failed operations
|
|
80
|
-
*/
|
|
81
|
-
failed?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Total operations processed
|
|
84
|
-
*/
|
|
85
|
-
processed?: number;
|
|
86
|
-
results?: Array<FlashcardBatchProcessResponse.Result>;
|
|
87
|
-
/**
|
|
88
|
-
* Overall success
|
|
89
|
-
*/
|
|
90
|
-
success?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Successful operations
|
|
93
|
-
*/
|
|
94
|
-
successful?: number;
|
|
95
|
-
}
|
|
96
|
-
export declare namespace FlashcardBatchProcessResponse {
|
|
97
|
-
interface Result {
|
|
98
|
-
/**
|
|
99
|
-
* Flashcard ID
|
|
100
|
-
*/
|
|
101
|
-
cardId: string;
|
|
102
|
-
/**
|
|
103
|
-
* Operation success
|
|
104
|
-
*/
|
|
105
|
-
success: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Error message if failed
|
|
108
|
-
*/
|
|
109
|
-
error?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Operation result
|
|
112
|
-
*/
|
|
113
|
-
result?: unknown;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
export interface FlashcardGetAlgorithmResponse {
|
|
117
|
-
/**
|
|
118
|
-
* Algorithm name
|
|
119
|
-
*/
|
|
120
|
-
algorithm?: string;
|
|
121
|
-
intervals?: FlashcardGetAlgorithmResponse.Intervals;
|
|
122
|
-
phases?: {
|
|
123
|
-
[key: string]: string;
|
|
124
|
-
};
|
|
125
|
-
ratings?: {
|
|
126
|
-
[key: string]: FlashcardGetAlgorithmResponse.Ratings;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
export declare namespace FlashcardGetAlgorithmResponse {
|
|
130
|
-
interface Intervals {
|
|
131
|
-
/**
|
|
132
|
-
* Description of graduated intervals
|
|
133
|
-
*/
|
|
134
|
-
graduated?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Description of lapse intervals
|
|
137
|
-
*/
|
|
138
|
-
lapse?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Learning intervals in minutes
|
|
141
|
-
*/
|
|
142
|
-
learning?: Array<number>;
|
|
143
|
-
}
|
|
144
|
-
interface Ratings {
|
|
145
|
-
/**
|
|
146
|
-
* Rating description
|
|
147
|
-
*/
|
|
148
|
-
description: string;
|
|
149
|
-
/**
|
|
150
|
-
* Rating name
|
|
151
|
-
*/
|
|
152
|
-
name: string;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
export interface FlashcardGetTypesResponse {
|
|
156
|
-
descriptions?: {
|
|
157
|
-
[key: string]: string;
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* List of flashcard types
|
|
161
|
-
*/
|
|
162
|
-
types?: Array<string>;
|
|
163
|
-
}
|
|
164
|
-
export interface FlashcardBatchProcessParams {
|
|
165
|
-
operations: Array<FlashcardBatchProcessParams.Operation>;
|
|
166
|
-
/**
|
|
167
|
-
* Group ID (optional)
|
|
168
|
-
*/
|
|
169
|
-
groupId?: string;
|
|
170
|
-
/**
|
|
171
|
-
* User ID (optional)
|
|
172
|
-
*/
|
|
173
|
-
userId?: string;
|
|
174
|
-
}
|
|
175
|
-
export declare namespace FlashcardBatchProcessParams {
|
|
176
|
-
interface Operation {
|
|
177
|
-
action: 'rate' | 'get_due' | 'get_all' | 'get_stats';
|
|
178
|
-
/**
|
|
179
|
-
* Flashcard ID
|
|
180
|
-
*/
|
|
181
|
-
cardId: string;
|
|
182
|
-
/**
|
|
183
|
-
* Group ID (optional)
|
|
184
|
-
*/
|
|
185
|
-
groupId?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Rating for rate action (0-3)
|
|
188
|
-
*/
|
|
189
|
-
rating?: number;
|
|
190
|
-
/**
|
|
191
|
-
* User ID (optional)
|
|
192
|
-
*/
|
|
193
|
-
userId?: string;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
export interface FlashcardGetAllParams {
|
|
197
|
-
/**
|
|
198
|
-
* Group IDs (comma-separated)
|
|
199
|
-
*/
|
|
200
|
-
groupIds?: string;
|
|
201
|
-
/**
|
|
202
|
-
* Max number of cards
|
|
203
|
-
*/
|
|
204
|
-
limit?: number;
|
|
205
|
-
/**
|
|
206
|
-
* Offset
|
|
207
|
-
*/
|
|
208
|
-
offset?: number;
|
|
209
|
-
/**
|
|
210
|
-
* User ID
|
|
211
|
-
*/
|
|
212
|
-
userId?: string;
|
|
213
|
-
}
|
|
214
|
-
export interface FlashcardGetDueParams {
|
|
215
|
-
groupIds: string;
|
|
216
|
-
/**
|
|
217
|
-
* Max number of cards
|
|
218
|
-
*/
|
|
219
|
-
limit?: number;
|
|
220
|
-
/**
|
|
221
|
-
* User ID
|
|
222
|
-
*/
|
|
223
|
-
userId?: string;
|
|
224
|
-
}
|
|
225
|
-
export interface FlashcardGetStatsParams {
|
|
226
|
-
/**
|
|
227
|
-
* Group IDs (comma-separated)
|
|
228
|
-
*/
|
|
229
|
-
groupIds?: string;
|
|
230
|
-
/**
|
|
231
|
-
* User ID
|
|
232
|
-
*/
|
|
233
|
-
userId?: string;
|
|
234
|
-
}
|
|
235
|
-
export interface FlashcardRateParams {
|
|
236
|
-
/**
|
|
237
|
-
* Flashcard ID
|
|
238
|
-
*/
|
|
239
|
-
cardId: string;
|
|
240
|
-
/**
|
|
241
|
-
* Rating (0-3)
|
|
242
|
-
*/
|
|
243
|
-
rating: number;
|
|
244
|
-
/**
|
|
245
|
-
* Group ID (optional)
|
|
246
|
-
*/
|
|
247
|
-
groupId?: string;
|
|
248
|
-
/**
|
|
249
|
-
* User ID (optional)
|
|
250
|
-
*/
|
|
251
|
-
userId?: string;
|
|
252
|
-
}
|
|
253
|
-
export declare namespace Flashcards {
|
|
254
|
-
export { type FlashcardBatchProcessResponse as FlashcardBatchProcessResponse, type FlashcardGetAlgorithmResponse as FlashcardGetAlgorithmResponse, type FlashcardGetTypesResponse as FlashcardGetTypesResponse, type FlashcardBatchProcessParams as FlashcardBatchProcessParams, type FlashcardGetAllParams as FlashcardGetAllParams, type FlashcardGetDueParams as FlashcardGetDueParams, type FlashcardGetStatsParams as FlashcardGetStatsParams, type FlashcardRateParams as FlashcardRateParams, };
|
|
255
|
-
}
|
|
256
|
-
//# sourceMappingURL=flashcards.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flashcards.d.mts","sourceRoot":"","sources":["../../src/resources/v1/flashcards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIjF;;;;;;;OAOG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,U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AAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
export declare class Flashcards extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Process multiple flashcard operations
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const response = await client.v1.flashcards.batchProcess(
|
|
11
|
-
* 'componentId',
|
|
12
|
-
* { operations: [{ action: 'rate', cardId: 'cardId' }] },
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
batchProcess(componentID: string, body: FlashcardBatchProcessParams, options?: RequestOptions): APIPromise<FlashcardBatchProcessResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Get spaced repetition algorithm info
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const response = await client.v1.flashcards.getAlgorithm();
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
getAlgorithm(options?: RequestOptions): APIPromise<FlashcardGetAlgorithmResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Get all flashcards for component
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* await client.v1.flashcards.getAll('componentId');
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
getAll(componentID: string, query?: FlashcardGetAllParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Get due flashcards for review
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* await client.v1.flashcards.getDue('componentId', {
|
|
41
|
-
* groupIds: 'groupIds',
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
getDue(componentID: string, query: FlashcardGetDueParams, options?: RequestOptions): APIPromise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Get flashcard statistics
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* await client.v1.flashcards.getStats('componentId');
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
getStats(componentID: string, query?: FlashcardGetStatsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Get available flashcard types
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const response = await client.v1.flashcards.getTypes();
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
getTypes(options?: RequestOptions): APIPromise<FlashcardGetTypesResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* Rate a flashcard
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* await client.v1.flashcards.rate('componentId', {
|
|
70
|
-
* cardId: 'cardId',
|
|
71
|
-
* rating: 0,
|
|
72
|
-
* });
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
rate(componentID: string, body: FlashcardRateParams, options?: RequestOptions): APIPromise<void>;
|
|
76
|
-
}
|
|
77
|
-
export interface FlashcardBatchProcessResponse {
|
|
78
|
-
/**
|
|
79
|
-
* Failed operations
|
|
80
|
-
*/
|
|
81
|
-
failed?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Total operations processed
|
|
84
|
-
*/
|
|
85
|
-
processed?: number;
|
|
86
|
-
results?: Array<FlashcardBatchProcessResponse.Result>;
|
|
87
|
-
/**
|
|
88
|
-
* Overall success
|
|
89
|
-
*/
|
|
90
|
-
success?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Successful operations
|
|
93
|
-
*/
|
|
94
|
-
successful?: number;
|
|
95
|
-
}
|
|
96
|
-
export declare namespace FlashcardBatchProcessResponse {
|
|
97
|
-
interface Result {
|
|
98
|
-
/**
|
|
99
|
-
* Flashcard ID
|
|
100
|
-
*/
|
|
101
|
-
cardId: string;
|
|
102
|
-
/**
|
|
103
|
-
* Operation success
|
|
104
|
-
*/
|
|
105
|
-
success: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Error message if failed
|
|
108
|
-
*/
|
|
109
|
-
error?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Operation result
|
|
112
|
-
*/
|
|
113
|
-
result?: unknown;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
export interface FlashcardGetAlgorithmResponse {
|
|
117
|
-
/**
|
|
118
|
-
* Algorithm name
|
|
119
|
-
*/
|
|
120
|
-
algorithm?: string;
|
|
121
|
-
intervals?: FlashcardGetAlgorithmResponse.Intervals;
|
|
122
|
-
phases?: {
|
|
123
|
-
[key: string]: string;
|
|
124
|
-
};
|
|
125
|
-
ratings?: {
|
|
126
|
-
[key: string]: FlashcardGetAlgorithmResponse.Ratings;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
export declare namespace FlashcardGetAlgorithmResponse {
|
|
130
|
-
interface Intervals {
|
|
131
|
-
/**
|
|
132
|
-
* Description of graduated intervals
|
|
133
|
-
*/
|
|
134
|
-
graduated?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Description of lapse intervals
|
|
137
|
-
*/
|
|
138
|
-
lapse?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Learning intervals in minutes
|
|
141
|
-
*/
|
|
142
|
-
learning?: Array<number>;
|
|
143
|
-
}
|
|
144
|
-
interface Ratings {
|
|
145
|
-
/**
|
|
146
|
-
* Rating description
|
|
147
|
-
*/
|
|
148
|
-
description: string;
|
|
149
|
-
/**
|
|
150
|
-
* Rating name
|
|
151
|
-
*/
|
|
152
|
-
name: string;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
export interface FlashcardGetTypesResponse {
|
|
156
|
-
descriptions?: {
|
|
157
|
-
[key: string]: string;
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* List of flashcard types
|
|
161
|
-
*/
|
|
162
|
-
types?: Array<string>;
|
|
163
|
-
}
|
|
164
|
-
export interface FlashcardBatchProcessParams {
|
|
165
|
-
operations: Array<FlashcardBatchProcessParams.Operation>;
|
|
166
|
-
/**
|
|
167
|
-
* Group ID (optional)
|
|
168
|
-
*/
|
|
169
|
-
groupId?: string;
|
|
170
|
-
/**
|
|
171
|
-
* User ID (optional)
|
|
172
|
-
*/
|
|
173
|
-
userId?: string;
|
|
174
|
-
}
|
|
175
|
-
export declare namespace FlashcardBatchProcessParams {
|
|
176
|
-
interface Operation {
|
|
177
|
-
action: 'rate' | 'get_due' | 'get_all' | 'get_stats';
|
|
178
|
-
/**
|
|
179
|
-
* Flashcard ID
|
|
180
|
-
*/
|
|
181
|
-
cardId: string;
|
|
182
|
-
/**
|
|
183
|
-
* Group ID (optional)
|
|
184
|
-
*/
|
|
185
|
-
groupId?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Rating for rate action (0-3)
|
|
188
|
-
*/
|
|
189
|
-
rating?: number;
|
|
190
|
-
/**
|
|
191
|
-
* User ID (optional)
|
|
192
|
-
*/
|
|
193
|
-
userId?: string;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
export interface FlashcardGetAllParams {
|
|
197
|
-
/**
|
|
198
|
-
* Group IDs (comma-separated)
|
|
199
|
-
*/
|
|
200
|
-
groupIds?: string;
|
|
201
|
-
/**
|
|
202
|
-
* Max number of cards
|
|
203
|
-
*/
|
|
204
|
-
limit?: number;
|
|
205
|
-
/**
|
|
206
|
-
* Offset
|
|
207
|
-
*/
|
|
208
|
-
offset?: number;
|
|
209
|
-
/**
|
|
210
|
-
* User ID
|
|
211
|
-
*/
|
|
212
|
-
userId?: string;
|
|
213
|
-
}
|
|
214
|
-
export interface FlashcardGetDueParams {
|
|
215
|
-
groupIds: string;
|
|
216
|
-
/**
|
|
217
|
-
* Max number of cards
|
|
218
|
-
*/
|
|
219
|
-
limit?: number;
|
|
220
|
-
/**
|
|
221
|
-
* User ID
|
|
222
|
-
*/
|
|
223
|
-
userId?: string;
|
|
224
|
-
}
|
|
225
|
-
export interface FlashcardGetStatsParams {
|
|
226
|
-
/**
|
|
227
|
-
* Group IDs (comma-separated)
|
|
228
|
-
*/
|
|
229
|
-
groupIds?: string;
|
|
230
|
-
/**
|
|
231
|
-
* User ID
|
|
232
|
-
*/
|
|
233
|
-
userId?: string;
|
|
234
|
-
}
|
|
235
|
-
export interface FlashcardRateParams {
|
|
236
|
-
/**
|
|
237
|
-
* Flashcard ID
|
|
238
|
-
*/
|
|
239
|
-
cardId: string;
|
|
240
|
-
/**
|
|
241
|
-
* Rating (0-3)
|
|
242
|
-
*/
|
|
243
|
-
rating: number;
|
|
244
|
-
/**
|
|
245
|
-
* Group ID (optional)
|
|
246
|
-
*/
|
|
247
|
-
groupId?: string;
|
|
248
|
-
/**
|
|
249
|
-
* User ID (optional)
|
|
250
|
-
*/
|
|
251
|
-
userId?: string;
|
|
252
|
-
}
|
|
253
|
-
export declare namespace Flashcards {
|
|
254
|
-
export { type FlashcardBatchProcessResponse as FlashcardBatchProcessResponse, type FlashcardGetAlgorithmResponse as FlashcardGetAlgorithmResponse, type FlashcardGetTypesResponse as FlashcardGetTypesResponse, type FlashcardBatchProcessParams as FlashcardBatchProcessParams, type FlashcardGetAllParams as FlashcardGetAllParams, type FlashcardGetDueParams as FlashcardGetDueParams, type FlashcardGetStatsParams as FlashcardGetStatsParams, type FlashcardRateParams as FlashcardRateParams, };
|
|
255
|
-
}
|
|
256
|
-
//# sourceMappingURL=flashcards.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flashcards.d.ts","sourceRoot":"","sources":["../../src/resources/v1/flashcards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIjF;;;;;;;OAOG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG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