@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
|
@@ -1,94 +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 SessionsAPI from "./sessions.mjs";
|
|
4
|
-
import { Sessions } from "./sessions.mjs";
|
|
5
|
-
import * as TestAPI from "./test.mjs";
|
|
6
|
-
import { Test } from "./test.mjs";
|
|
7
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
8
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
9
|
-
export class Chat extends APIResource {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.sessions = new SessionsAPI.Sessions(this._client);
|
|
13
|
-
this.test = new TestAPI.Test(this._client);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* await client.v1.chat.getHistory();
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
getHistory(options) {
|
|
22
|
-
return this._client.post('/api/v1/chat/history', {
|
|
23
|
-
...options,
|
|
24
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* await client.v1.chat.getSession('sessionId', {
|
|
31
|
-
* userId: 'userId',
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
getSession(sessionID, query, options) {
|
|
36
|
-
return this._client.get(path `/api/v1/chat/session/${sessionID}`, {
|
|
37
|
-
query,
|
|
38
|
-
...options,
|
|
39
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* await client.v1.chat.sendFollowups();
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
sendFollowups(options) {
|
|
49
|
-
return this._client.post('/api/v1/chat/followups', {
|
|
50
|
-
...options,
|
|
51
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await client.v1.chat.sendMessage({
|
|
58
|
-
* componentId: 'componentId',
|
|
59
|
-
* message: {},
|
|
60
|
-
* 'x-component-id': 'x-component-id',
|
|
61
|
-
* });
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
sendMessage(params, options) {
|
|
65
|
-
const { 'x-component-id': xComponentID, ...body } = params;
|
|
66
|
-
return this._client.post('/api/v1/chat/message', {
|
|
67
|
-
body,
|
|
68
|
-
...options,
|
|
69
|
-
headers: buildHeaders([{ Accept: '*/*', 'x-component-id': xComponentID }, options?.headers]),
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Stream chat responses
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* await client.v1.chat.stream();
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
stream(params, options) {
|
|
81
|
-
const { 'x-component-id': xComponentID, ...body } = params;
|
|
82
|
-
return this._client.post('/api/v1/chat/stream', {
|
|
83
|
-
body,
|
|
84
|
-
...options,
|
|
85
|
-
headers: buildHeaders([
|
|
86
|
-
{ Accept: '*/*', ...(xComponentID != null ? { 'x-component-id': xComponentID } : undefined) },
|
|
87
|
-
options?.headers,
|
|
88
|
-
]),
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
Chat.Sessions = Sessions;
|
|
93
|
-
Chat.Test = Test;
|
|
94
|
-
//# sourceMappingURL=chat.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../../src/resources/v1/chat/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAyB,QAAQ,EAAE;OACnC,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OAER,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkFtD,CAAC;IAhFC;;;;;OAKG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,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,UAAU,CAAC,SAAiB,EAAE,KAA2B,EAAE,OAAwB;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,SAAS,EAAE,EAAE;YAC/D,KAAK;YACL,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;;;;;OAKG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,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;;;;;;;;;OASG;IACH,WAAW,CAAC,MAA6B,EAAE,OAAwB;QACjE,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7F,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAwB,EAAE,OAAwB;QACvD,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC7F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAuHD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE;OACtF,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE;OACxC,EAAE,IAAI,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE;OACtF,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE;OACxC,EAAE,IAAI,EAAE"}
|
|
@@ -1,11 +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.Test = exports.Sessions = exports.Chat = void 0;
|
|
5
|
-
var chat_1 = require("./chat.js");
|
|
6
|
-
Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } });
|
|
7
|
-
var sessions_1 = require("./sessions.js");
|
|
8
|
-
Object.defineProperty(exports, "Sessions", { enumerable: true, get: function () { return sessions_1.Sessions; } });
|
|
9
|
-
var test_1 = require("./test.js");
|
|
10
|
-
Object.defineProperty(exports, "Test", { enumerable: true, get: function () { return test_1.Test; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA4G;AAAnG,4FAAA,IAAI,OAAA;AACb,0CAAkE;AAAzD,oGAAA,QAAQ,OAAA;AACjB,kCAA8B;AAArB,4FAAA,IAAI,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAgF;OACtF,EAAE,QAAQ,EAA8B;OACxC,EAAE,IAAI,EAAE"}
|
|
@@ -1,28 +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 Sessions extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.chat.sessions.create();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
create(options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.chat.sessions.retrieve('userId', {
|
|
16
|
-
* limit: 'limit',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
retrieve(userID: string, query: SessionRetrieveParams, options?: RequestOptions): APIPromise<void>;
|
|
21
|
-
}
|
|
22
|
-
export interface SessionRetrieveParams {
|
|
23
|
-
limit: string;
|
|
24
|
-
}
|
|
25
|
-
export declare namespace Sessions {
|
|
26
|
-
export { type SessionRetrieveParams as SessionRetrieveParams };
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=sessions.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/chat/sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlD;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOnG;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
|
|
@@ -1,28 +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 Sessions extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.chat.sessions.create();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
create(options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.chat.sessions.retrieve('userId', {
|
|
16
|
-
* limit: 'limit',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
retrieve(userID: string, query: SessionRetrieveParams, options?: RequestOptions): APIPromise<void>;
|
|
21
|
-
}
|
|
22
|
-
export interface SessionRetrieveParams {
|
|
23
|
-
limit: string;
|
|
24
|
-
}
|
|
25
|
-
export declare namespace Sessions {
|
|
26
|
-
export { type SessionRetrieveParams as SessionRetrieveParams };
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/chat/sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlD;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOnG;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
|
|
@@ -1,38 +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.Sessions = 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 Sessions extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* await client.v1.chat.sessions.create();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
create(options) {
|
|
16
|
-
return this._client.post('/api/v1/chat/sessions/create', {
|
|
17
|
-
...options,
|
|
18
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* await client.v1.chat.sessions.retrieve('userId', {
|
|
25
|
-
* limit: 'limit',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
retrieve(userID, query, options) {
|
|
30
|
-
return this._client.get((0, path_1.path) `/api/v1/chat/sessions/${userID}`, {
|
|
31
|
-
query,
|
|
32
|
-
...options,
|
|
33
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.Sessions = Sessions;
|
|
38
|
-
//# sourceMappingURL=sessions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/resources/v1/chat/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;OAKG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE;YACvD,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,MAAc,EAAE,KAA4B,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,MAAM,EAAE,EAAE;YAC7D,KAAK;YACL,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;AA7BD,4BA6BC"}
|
|
@@ -1,34 +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 Sessions extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* await client.v1.chat.sessions.create();
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
create(options) {
|
|
13
|
-
return this._client.post('/api/v1/chat/sessions/create', {
|
|
14
|
-
...options,
|
|
15
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* await client.v1.chat.sessions.retrieve('userId', {
|
|
22
|
-
* limit: 'limit',
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
retrieve(userID, query, options) {
|
|
27
|
-
return this._client.get(path `/api/v1/chat/sessions/${userID}`, {
|
|
28
|
-
query,
|
|
29
|
-
...options,
|
|
30
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=sessions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../../src/resources/v1/chat/sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE;YACvD,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,MAAc,EAAE,KAA4B,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,MAAM,EAAE,EAAE;YAC7D,KAAK;YACL,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,20 +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 Test extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.chat.test.citeImage();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
citeImage(options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.chat.test.uploadImage();
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
uploadImage(options?: RequestOptions): APIPromise<void>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=test.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/chat/test.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;OAKG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrD;;;;;OAKG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxD"}
|
|
@@ -1,20 +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 Test extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.chat.test.citeImage();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
citeImage(options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.chat.test.uploadImage();
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
uploadImage(options?: RequestOptions): APIPromise<void>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/chat/test.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;OAKG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrD;;;;;OAKG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxD"}
|
|
@@ -1,34 +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.Test = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
-
class Test extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* await client.v1.chat.test.citeImage();
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
citeImage(options) {
|
|
15
|
-
return this._client.post('/api/v1/chat/test/image-citation', {
|
|
16
|
-
...options,
|
|
17
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* await client.v1.chat.test.uploadImage();
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
uploadImage(options) {
|
|
27
|
-
return this._client.post('/api/v1/chat/test/image', {
|
|
28
|
-
...options,
|
|
29
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Test = Test;
|
|
34
|
-
//# sourceMappingURL=test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/resources/v1/chat/test.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;OAKG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,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;;;;;OAKG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAClD,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;AA1BD,oBA0BC"}
|
|
@@ -1,30 +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
|
-
export class Test extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.chat.test.citeImage();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
citeImage(options) {
|
|
12
|
-
return this._client.post('/api/v1/chat/test/image-citation', {
|
|
13
|
-
...options,
|
|
14
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* await client.v1.chat.test.uploadImage();
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
uploadImage(options) {
|
|
24
|
-
return this._client.post('/api/v1/chat/test/image', {
|
|
25
|
-
...options,
|
|
26
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.mjs","sourceRoot":"","sources":["../../../src/resources/v1/chat/test.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;OAKG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,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;;;;;OAKG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAClD,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"}
|
package/resources/v1/chat.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../src/resources/v1/chat.ts"],"names":[],"mappings":""}
|
package/resources/v1/chat.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/v1/chat.ts"],"names":[],"mappings":""}
|
package/resources/v1/chat.js
DELETED
|
@@ -1,6 +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
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./chat/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=chat.js.map
|
package/resources/v1/chat.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/v1/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
|
package/resources/v1/chat.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/v1/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,152 +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 Explainers extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create explainers component
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* await client.v1.explainers.create({
|
|
11
|
-
* componentId: 'componentId',
|
|
12
|
-
* folderIds: ['string'],
|
|
13
|
-
* materialIds: ['string'],
|
|
14
|
-
* targetLength: 15,
|
|
15
|
-
* title: 'title',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(body: ExplainerCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Get explainer video by component ID
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* await client.v1.explainers.retrieve('componentId');
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
retrieve(componentID: string, options?: RequestOptions): APIPromise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Handle explainer video webhook events
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* await client.v1.explainers.handleWebhook({
|
|
35
|
-
* event: 'video.completed',
|
|
36
|
-
* video: { id: 'id' },
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
handleWebhook(body: ExplainerHandleWebhookParams, options?: RequestOptions): APIPromise<void>;
|
|
41
|
-
}
|
|
42
|
-
export interface ExplainerCreateParams {
|
|
43
|
-
/**
|
|
44
|
-
* Component ID
|
|
45
|
-
*/
|
|
46
|
-
componentId: string;
|
|
47
|
-
/**
|
|
48
|
-
* Folder IDs to include
|
|
49
|
-
*/
|
|
50
|
-
folderIds: Array<string>;
|
|
51
|
-
/**
|
|
52
|
-
* Material IDs to include
|
|
53
|
-
*/
|
|
54
|
-
materialIds: Array<string>;
|
|
55
|
-
/**
|
|
56
|
-
* Target video length in seconds
|
|
57
|
-
*/
|
|
58
|
-
targetLength: number;
|
|
59
|
-
/**
|
|
60
|
-
* Title for the explainer video
|
|
61
|
-
*/
|
|
62
|
-
title: string;
|
|
63
|
-
/**
|
|
64
|
-
* Enable image search for visuals
|
|
65
|
-
*/
|
|
66
|
-
imageSearch?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* AI model to use
|
|
69
|
-
*/
|
|
70
|
-
model?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Video style
|
|
73
|
-
*/
|
|
74
|
-
style?: string;
|
|
75
|
-
/**
|
|
76
|
-
* User ID
|
|
77
|
-
*/
|
|
78
|
-
userId?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Create vertical video format (9:16)
|
|
81
|
-
*/
|
|
82
|
-
verticalVideo?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Enable web search for additional content
|
|
85
|
-
*/
|
|
86
|
-
webSearch?: boolean;
|
|
87
|
-
}
|
|
88
|
-
export interface ExplainerHandleWebhookParams {
|
|
89
|
-
/**
|
|
90
|
-
* Webhook event type
|
|
91
|
-
*/
|
|
92
|
-
event: 'video.completed' | 'video.progress' | 'video.failed';
|
|
93
|
-
/**
|
|
94
|
-
* Video data
|
|
95
|
-
*/
|
|
96
|
-
video: ExplainerHandleWebhookParams.Video;
|
|
97
|
-
}
|
|
98
|
-
export declare namespace ExplainerHandleWebhookParams {
|
|
99
|
-
/**
|
|
100
|
-
* Video data
|
|
101
|
-
*/
|
|
102
|
-
interface Video {
|
|
103
|
-
/**
|
|
104
|
-
* Video ID
|
|
105
|
-
*/
|
|
106
|
-
id: string;
|
|
107
|
-
/**
|
|
108
|
-
* Image sources
|
|
109
|
-
*/
|
|
110
|
-
imageSources?: unknown;
|
|
111
|
-
/**
|
|
112
|
-
* Progress percentage
|
|
113
|
-
*/
|
|
114
|
-
progress?: number;
|
|
115
|
-
/**
|
|
116
|
-
* Video sections
|
|
117
|
-
*/
|
|
118
|
-
sections?: Array<string>;
|
|
119
|
-
/**
|
|
120
|
-
* Stream ID
|
|
121
|
-
*/
|
|
122
|
-
streamId?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Stream URL
|
|
125
|
-
*/
|
|
126
|
-
streamUrl?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Thumbnail URL
|
|
129
|
-
*/
|
|
130
|
-
thumbnailUrl?: string;
|
|
131
|
-
/**
|
|
132
|
-
* Video transcript
|
|
133
|
-
*/
|
|
134
|
-
transcript?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Video URL
|
|
137
|
-
*/
|
|
138
|
-
videoUrl?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Web search results
|
|
141
|
-
*/
|
|
142
|
-
webSearchResults?: unknown;
|
|
143
|
-
/**
|
|
144
|
-
* Web search sources
|
|
145
|
-
*/
|
|
146
|
-
webSearchSources?: unknown;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
export declare namespace Explainers {
|
|
150
|
-
export { type ExplainerCreateParams as ExplainerCreateParams, type ExplainerHandleWebhookParams as ExplainerHandleWebhookParams, };
|
|
151
|
-
}
|
|
152
|
-
//# sourceMappingURL=explainers.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"explainers.d.mts","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,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO9F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,KAAK,EAAE,iBAAiB,GAAG,gBAAgB,GAAG,cAAc,CAAC;IAE7D;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC;QAEvB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEzB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,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"}
|