@studyfetch/sdk 1.26.0 → 1.28.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 +20 -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 +1 -8
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -8
- 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/index.d.mts +1 -1
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +1 -1
- 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 +110 -1
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +110 -1
- 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 +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 +2 -30
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -30
- 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 +2 -45
- package/src/resources/v1/materials/index.ts +2 -0
- package/src/resources/v1/materials/materials.ts +143 -0
- package/src/resources/v1/materials/upload.ts +15 -0
- package/src/resources/v1/v1.ts +4 -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,289 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as ComponentAPI from "./component.mjs";
|
|
3
|
-
import { Component, ComponentUpdateParams } from "./component.mjs";
|
|
4
|
-
import * as SessionsAPI from "./sessions.mjs";
|
|
5
|
-
import { Sessions } from "./sessions.mjs";
|
|
6
|
-
import * as SubmissionsAPI from "./submissions/submissions.mjs";
|
|
7
|
-
import { Submissions } from "./submissions/submissions.mjs";
|
|
8
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
|
-
export declare class Scenarios extends APIResource {
|
|
11
|
-
component: ComponentAPI.Component;
|
|
12
|
-
sessions: SessionsAPI.Sessions;
|
|
13
|
-
submissions: SubmissionsAPI.Submissions;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new scenario
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* await client.v1.scenarios.create({
|
|
20
|
-
* componentId: 'componentId',
|
|
21
|
-
* name: 'name',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
create(body: ScenarioCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Get scenario by ID
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* await client.v1.scenarios.retrieve('id');
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Update scenario
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* await client.v1.scenarios.update('id', { name: 'name' });
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
update(id: string, body: ScenarioUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* Get all scenarios
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* await client.v1.scenarios.list();
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
list(options?: RequestOptions): APIPromise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* Delete scenario
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* await client.v1.scenarios.delete('id');
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
62
|
-
/**
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* await client.v1.scenarios.getStats('id');
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
getStats(id: string, options?: RequestOptions): APIPromise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Submit scenario answer
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* await client.v1.scenarios.submitAnswer('id', {
|
|
75
|
-
* conversationHistory: [{}],
|
|
76
|
-
* });
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
submitAnswer(id: string, body: ScenarioSubmitAnswerParams, options?: RequestOptions): APIPromise<void>;
|
|
80
|
-
}
|
|
81
|
-
export interface Scenario {
|
|
82
|
-
/**
|
|
83
|
-
* Associated component ID
|
|
84
|
-
*/
|
|
85
|
-
componentId: string;
|
|
86
|
-
/**
|
|
87
|
-
* Scenario name
|
|
88
|
-
*/
|
|
89
|
-
name: string;
|
|
90
|
-
/**
|
|
91
|
-
* Scenario characters
|
|
92
|
-
*/
|
|
93
|
-
characters?: Array<unknown>;
|
|
94
|
-
/**
|
|
95
|
-
* Scenario context
|
|
96
|
-
*/
|
|
97
|
-
context?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Scenario description
|
|
100
|
-
*/
|
|
101
|
-
description?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Prompt for final answer
|
|
104
|
-
*/
|
|
105
|
-
finalAnswerPrompt?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Interaction format
|
|
108
|
-
*/
|
|
109
|
-
format?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Scenario goal
|
|
112
|
-
*/
|
|
113
|
-
goal?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Character ID for greeting
|
|
116
|
-
*/
|
|
117
|
-
greetingCharacterId?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Greeting message
|
|
120
|
-
*/
|
|
121
|
-
greetingMessage?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Whether scenario requires a final answer
|
|
124
|
-
*/
|
|
125
|
-
requiresFinalAnswer?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Available tools
|
|
128
|
-
*/
|
|
129
|
-
tools?: Array<unknown>;
|
|
130
|
-
}
|
|
131
|
-
export interface UpdateScenario {
|
|
132
|
-
/**
|
|
133
|
-
* Scenario name
|
|
134
|
-
*/
|
|
135
|
-
name: string;
|
|
136
|
-
/**
|
|
137
|
-
* Scenario characters
|
|
138
|
-
*/
|
|
139
|
-
characters?: Array<unknown>;
|
|
140
|
-
/**
|
|
141
|
-
* Scenario context
|
|
142
|
-
*/
|
|
143
|
-
context?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Scenario description
|
|
146
|
-
*/
|
|
147
|
-
description?: string;
|
|
148
|
-
/**
|
|
149
|
-
* Prompt for final answer
|
|
150
|
-
*/
|
|
151
|
-
finalAnswerPrompt?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Interaction format
|
|
154
|
-
*/
|
|
155
|
-
format?: string;
|
|
156
|
-
/**
|
|
157
|
-
* Scenario goal
|
|
158
|
-
*/
|
|
159
|
-
goal?: string;
|
|
160
|
-
/**
|
|
161
|
-
* Character ID for greeting
|
|
162
|
-
*/
|
|
163
|
-
greetingCharacterId?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Greeting message
|
|
166
|
-
*/
|
|
167
|
-
greetingMessage?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Whether scenario requires a final answer
|
|
170
|
-
*/
|
|
171
|
-
requiresFinalAnswer?: boolean;
|
|
172
|
-
/**
|
|
173
|
-
* Available tools
|
|
174
|
-
*/
|
|
175
|
-
tools?: Array<unknown>;
|
|
176
|
-
}
|
|
177
|
-
export interface ScenarioCreateParams {
|
|
178
|
-
/**
|
|
179
|
-
* Associated component ID
|
|
180
|
-
*/
|
|
181
|
-
componentId: string;
|
|
182
|
-
/**
|
|
183
|
-
* Scenario name
|
|
184
|
-
*/
|
|
185
|
-
name: string;
|
|
186
|
-
/**
|
|
187
|
-
* Scenario characters
|
|
188
|
-
*/
|
|
189
|
-
characters?: Array<unknown>;
|
|
190
|
-
/**
|
|
191
|
-
* Scenario context
|
|
192
|
-
*/
|
|
193
|
-
context?: string;
|
|
194
|
-
/**
|
|
195
|
-
* Scenario description
|
|
196
|
-
*/
|
|
197
|
-
description?: string;
|
|
198
|
-
/**
|
|
199
|
-
* Prompt for final answer
|
|
200
|
-
*/
|
|
201
|
-
finalAnswerPrompt?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Interaction format
|
|
204
|
-
*/
|
|
205
|
-
format?: string;
|
|
206
|
-
/**
|
|
207
|
-
* Scenario goal
|
|
208
|
-
*/
|
|
209
|
-
goal?: string;
|
|
210
|
-
/**
|
|
211
|
-
* Character ID for greeting
|
|
212
|
-
*/
|
|
213
|
-
greetingCharacterId?: string;
|
|
214
|
-
/**
|
|
215
|
-
* Greeting message
|
|
216
|
-
*/
|
|
217
|
-
greetingMessage?: string;
|
|
218
|
-
/**
|
|
219
|
-
* Whether scenario requires a final answer
|
|
220
|
-
*/
|
|
221
|
-
requiresFinalAnswer?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Available tools
|
|
224
|
-
*/
|
|
225
|
-
tools?: Array<unknown>;
|
|
226
|
-
}
|
|
227
|
-
export interface ScenarioUpdateParams {
|
|
228
|
-
/**
|
|
229
|
-
* Scenario name
|
|
230
|
-
*/
|
|
231
|
-
name: string;
|
|
232
|
-
/**
|
|
233
|
-
* Scenario characters
|
|
234
|
-
*/
|
|
235
|
-
characters?: Array<unknown>;
|
|
236
|
-
/**
|
|
237
|
-
* Scenario context
|
|
238
|
-
*/
|
|
239
|
-
context?: string;
|
|
240
|
-
/**
|
|
241
|
-
* Scenario description
|
|
242
|
-
*/
|
|
243
|
-
description?: string;
|
|
244
|
-
/**
|
|
245
|
-
* Prompt for final answer
|
|
246
|
-
*/
|
|
247
|
-
finalAnswerPrompt?: string;
|
|
248
|
-
/**
|
|
249
|
-
* Interaction format
|
|
250
|
-
*/
|
|
251
|
-
format?: string;
|
|
252
|
-
/**
|
|
253
|
-
* Scenario goal
|
|
254
|
-
*/
|
|
255
|
-
goal?: string;
|
|
256
|
-
/**
|
|
257
|
-
* Character ID for greeting
|
|
258
|
-
*/
|
|
259
|
-
greetingCharacterId?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Greeting message
|
|
262
|
-
*/
|
|
263
|
-
greetingMessage?: string;
|
|
264
|
-
/**
|
|
265
|
-
* Whether scenario requires a final answer
|
|
266
|
-
*/
|
|
267
|
-
requiresFinalAnswer?: boolean;
|
|
268
|
-
/**
|
|
269
|
-
* Available tools
|
|
270
|
-
*/
|
|
271
|
-
tools?: Array<unknown>;
|
|
272
|
-
}
|
|
273
|
-
export interface ScenarioSubmitAnswerParams {
|
|
274
|
-
/**
|
|
275
|
-
* Conversation history
|
|
276
|
-
*/
|
|
277
|
-
conversationHistory: Array<unknown>;
|
|
278
|
-
/**
|
|
279
|
-
* Final answer for the scenario
|
|
280
|
-
*/
|
|
281
|
-
finalAnswer?: string;
|
|
282
|
-
}
|
|
283
|
-
export declare namespace Scenarios {
|
|
284
|
-
export { type Scenario as Scenario, type UpdateScenario as UpdateScenario, type ScenarioCreateParams as ScenarioCreateParams, type ScenarioUpdateParams as ScenarioUpdateParams, type ScenarioSubmitAnswerParams as ScenarioSubmitAnswerParams, };
|
|
285
|
-
export { Component as Component, type ComponentUpdateParams as ComponentUpdateParams };
|
|
286
|
-
export { Sessions as Sessions };
|
|
287
|
-
export { Submissions as Submissions };
|
|
288
|
-
}
|
|
289
|
-
//# sourceMappingURL=scenarios.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scenarios.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/scenarios/scenarios.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,qBAAqB,EAAE;OACpC,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;OACZ,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ9E;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhE;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ1F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhD;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;;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,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,mBAAmB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;IAEvF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;IAEhC,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,CAAC;CACvC"}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as ComponentAPI from "./component.js";
|
|
3
|
-
import { Component, ComponentUpdateParams } from "./component.js";
|
|
4
|
-
import * as SessionsAPI from "./sessions.js";
|
|
5
|
-
import { Sessions } from "./sessions.js";
|
|
6
|
-
import * as SubmissionsAPI from "./submissions/submissions.js";
|
|
7
|
-
import { Submissions } from "./submissions/submissions.js";
|
|
8
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
9
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
10
|
-
export declare class Scenarios extends APIResource {
|
|
11
|
-
component: ComponentAPI.Component;
|
|
12
|
-
sessions: SessionsAPI.Sessions;
|
|
13
|
-
submissions: SubmissionsAPI.Submissions;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new scenario
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* await client.v1.scenarios.create({
|
|
20
|
-
* componentId: 'componentId',
|
|
21
|
-
* name: 'name',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
create(body: ScenarioCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Get scenario by ID
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* await client.v1.scenarios.retrieve('id');
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Update scenario
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* await client.v1.scenarios.update('id', { name: 'name' });
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
update(id: string, body: ScenarioUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* Get all scenarios
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* await client.v1.scenarios.list();
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
list(options?: RequestOptions): APIPromise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* Delete scenario
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* await client.v1.scenarios.delete('id');
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
62
|
-
/**
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* await client.v1.scenarios.getStats('id');
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
getStats(id: string, options?: RequestOptions): APIPromise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Submit scenario answer
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* await client.v1.scenarios.submitAnswer('id', {
|
|
75
|
-
* conversationHistory: [{}],
|
|
76
|
-
* });
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
submitAnswer(id: string, body: ScenarioSubmitAnswerParams, options?: RequestOptions): APIPromise<void>;
|
|
80
|
-
}
|
|
81
|
-
export interface Scenario {
|
|
82
|
-
/**
|
|
83
|
-
* Associated component ID
|
|
84
|
-
*/
|
|
85
|
-
componentId: string;
|
|
86
|
-
/**
|
|
87
|
-
* Scenario name
|
|
88
|
-
*/
|
|
89
|
-
name: string;
|
|
90
|
-
/**
|
|
91
|
-
* Scenario characters
|
|
92
|
-
*/
|
|
93
|
-
characters?: Array<unknown>;
|
|
94
|
-
/**
|
|
95
|
-
* Scenario context
|
|
96
|
-
*/
|
|
97
|
-
context?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Scenario description
|
|
100
|
-
*/
|
|
101
|
-
description?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Prompt for final answer
|
|
104
|
-
*/
|
|
105
|
-
finalAnswerPrompt?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Interaction format
|
|
108
|
-
*/
|
|
109
|
-
format?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Scenario goal
|
|
112
|
-
*/
|
|
113
|
-
goal?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Character ID for greeting
|
|
116
|
-
*/
|
|
117
|
-
greetingCharacterId?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Greeting message
|
|
120
|
-
*/
|
|
121
|
-
greetingMessage?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Whether scenario requires a final answer
|
|
124
|
-
*/
|
|
125
|
-
requiresFinalAnswer?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Available tools
|
|
128
|
-
*/
|
|
129
|
-
tools?: Array<unknown>;
|
|
130
|
-
}
|
|
131
|
-
export interface UpdateScenario {
|
|
132
|
-
/**
|
|
133
|
-
* Scenario name
|
|
134
|
-
*/
|
|
135
|
-
name: string;
|
|
136
|
-
/**
|
|
137
|
-
* Scenario characters
|
|
138
|
-
*/
|
|
139
|
-
characters?: Array<unknown>;
|
|
140
|
-
/**
|
|
141
|
-
* Scenario context
|
|
142
|
-
*/
|
|
143
|
-
context?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Scenario description
|
|
146
|
-
*/
|
|
147
|
-
description?: string;
|
|
148
|
-
/**
|
|
149
|
-
* Prompt for final answer
|
|
150
|
-
*/
|
|
151
|
-
finalAnswerPrompt?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Interaction format
|
|
154
|
-
*/
|
|
155
|
-
format?: string;
|
|
156
|
-
/**
|
|
157
|
-
* Scenario goal
|
|
158
|
-
*/
|
|
159
|
-
goal?: string;
|
|
160
|
-
/**
|
|
161
|
-
* Character ID for greeting
|
|
162
|
-
*/
|
|
163
|
-
greetingCharacterId?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Greeting message
|
|
166
|
-
*/
|
|
167
|
-
greetingMessage?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Whether scenario requires a final answer
|
|
170
|
-
*/
|
|
171
|
-
requiresFinalAnswer?: boolean;
|
|
172
|
-
/**
|
|
173
|
-
* Available tools
|
|
174
|
-
*/
|
|
175
|
-
tools?: Array<unknown>;
|
|
176
|
-
}
|
|
177
|
-
export interface ScenarioCreateParams {
|
|
178
|
-
/**
|
|
179
|
-
* Associated component ID
|
|
180
|
-
*/
|
|
181
|
-
componentId: string;
|
|
182
|
-
/**
|
|
183
|
-
* Scenario name
|
|
184
|
-
*/
|
|
185
|
-
name: string;
|
|
186
|
-
/**
|
|
187
|
-
* Scenario characters
|
|
188
|
-
*/
|
|
189
|
-
characters?: Array<unknown>;
|
|
190
|
-
/**
|
|
191
|
-
* Scenario context
|
|
192
|
-
*/
|
|
193
|
-
context?: string;
|
|
194
|
-
/**
|
|
195
|
-
* Scenario description
|
|
196
|
-
*/
|
|
197
|
-
description?: string;
|
|
198
|
-
/**
|
|
199
|
-
* Prompt for final answer
|
|
200
|
-
*/
|
|
201
|
-
finalAnswerPrompt?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Interaction format
|
|
204
|
-
*/
|
|
205
|
-
format?: string;
|
|
206
|
-
/**
|
|
207
|
-
* Scenario goal
|
|
208
|
-
*/
|
|
209
|
-
goal?: string;
|
|
210
|
-
/**
|
|
211
|
-
* Character ID for greeting
|
|
212
|
-
*/
|
|
213
|
-
greetingCharacterId?: string;
|
|
214
|
-
/**
|
|
215
|
-
* Greeting message
|
|
216
|
-
*/
|
|
217
|
-
greetingMessage?: string;
|
|
218
|
-
/**
|
|
219
|
-
* Whether scenario requires a final answer
|
|
220
|
-
*/
|
|
221
|
-
requiresFinalAnswer?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Available tools
|
|
224
|
-
*/
|
|
225
|
-
tools?: Array<unknown>;
|
|
226
|
-
}
|
|
227
|
-
export interface ScenarioUpdateParams {
|
|
228
|
-
/**
|
|
229
|
-
* Scenario name
|
|
230
|
-
*/
|
|
231
|
-
name: string;
|
|
232
|
-
/**
|
|
233
|
-
* Scenario characters
|
|
234
|
-
*/
|
|
235
|
-
characters?: Array<unknown>;
|
|
236
|
-
/**
|
|
237
|
-
* Scenario context
|
|
238
|
-
*/
|
|
239
|
-
context?: string;
|
|
240
|
-
/**
|
|
241
|
-
* Scenario description
|
|
242
|
-
*/
|
|
243
|
-
description?: string;
|
|
244
|
-
/**
|
|
245
|
-
* Prompt for final answer
|
|
246
|
-
*/
|
|
247
|
-
finalAnswerPrompt?: string;
|
|
248
|
-
/**
|
|
249
|
-
* Interaction format
|
|
250
|
-
*/
|
|
251
|
-
format?: string;
|
|
252
|
-
/**
|
|
253
|
-
* Scenario goal
|
|
254
|
-
*/
|
|
255
|
-
goal?: string;
|
|
256
|
-
/**
|
|
257
|
-
* Character ID for greeting
|
|
258
|
-
*/
|
|
259
|
-
greetingCharacterId?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Greeting message
|
|
262
|
-
*/
|
|
263
|
-
greetingMessage?: string;
|
|
264
|
-
/**
|
|
265
|
-
* Whether scenario requires a final answer
|
|
266
|
-
*/
|
|
267
|
-
requiresFinalAnswer?: boolean;
|
|
268
|
-
/**
|
|
269
|
-
* Available tools
|
|
270
|
-
*/
|
|
271
|
-
tools?: Array<unknown>;
|
|
272
|
-
}
|
|
273
|
-
export interface ScenarioSubmitAnswerParams {
|
|
274
|
-
/**
|
|
275
|
-
* Conversation history
|
|
276
|
-
*/
|
|
277
|
-
conversationHistory: Array<unknown>;
|
|
278
|
-
/**
|
|
279
|
-
* Final answer for the scenario
|
|
280
|
-
*/
|
|
281
|
-
finalAnswer?: string;
|
|
282
|
-
}
|
|
283
|
-
export declare namespace Scenarios {
|
|
284
|
-
export { type Scenario as Scenario, type UpdateScenario as UpdateScenario, type ScenarioCreateParams as ScenarioCreateParams, type ScenarioUpdateParams as ScenarioUpdateParams, type ScenarioSubmitAnswerParams as ScenarioSubmitAnswerParams, };
|
|
285
|
-
export { Component as Component, type ComponentUpdateParams as ComponentUpdateParams };
|
|
286
|
-
export { Sessions as Sessions };
|
|
287
|
-
export { Submissions as Submissions };
|
|
288
|
-
}
|
|
289
|
-
//# sourceMappingURL=scenarios.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/scenarios/scenarios.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,qBAAqB,EAAE;OACpC,K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