@studyfetch/sdk 1.24.0 → 1.26.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 +18 -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/chat/chat.d.mts +62 -1
- package/resources/v1/chat/chat.d.mts.map +1 -1
- package/resources/v1/chat/chat.d.ts +62 -1
- package/resources/v1/chat/chat.d.ts.map +1 -1
- package/resources/v1/chat/chat.js.map +1 -1
- package/resources/v1/chat/chat.mjs.map +1 -1
- package/resources/v1/chat/index.d.mts +1 -1
- package/resources/v1/chat/index.d.mts.map +1 -1
- package/resources/v1/chat/index.d.ts +1 -1
- package/resources/v1/chat/index.d.ts.map +1 -1
- package/resources/v1/chat/index.js.map +1 -1
- package/resources/v1/chat/index.mjs +1 -1
- package/resources/v1/chat/index.mjs.map +1 -1
- package/resources/v1/components.d.mts +62 -4
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +62 -4
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/data-analyst/data-analyst.d.mts +156 -0
- package/resources/v1/data-analyst/data-analyst.d.mts.map +1 -0
- package/resources/v1/data-analyst/data-analyst.d.ts +156 -0
- package/resources/v1/data-analyst/data-analyst.d.ts.map +1 -0
- package/resources/v1/data-analyst/data-analyst.js +99 -0
- package/resources/v1/data-analyst/data-analyst.js.map +1 -0
- package/resources/v1/data-analyst/data-analyst.mjs +94 -0
- package/resources/v1/data-analyst/data-analyst.mjs.map +1 -0
- package/resources/v1/data-analyst/index.d.mts +4 -0
- package/resources/v1/data-analyst/index.d.mts.map +1 -0
- package/resources/v1/data-analyst/index.d.ts +4 -0
- package/resources/v1/data-analyst/index.d.ts.map +1 -0
- package/resources/v1/data-analyst/index.js +11 -0
- package/resources/v1/data-analyst/index.js.map +1 -0
- package/resources/v1/data-analyst/index.mjs +5 -0
- package/resources/v1/data-analyst/index.mjs.map +1 -0
- package/resources/v1/data-analyst/sessions.d.mts +28 -0
- package/resources/v1/data-analyst/sessions.d.mts.map +1 -0
- package/resources/v1/data-analyst/sessions.d.ts +28 -0
- package/resources/v1/data-analyst/sessions.d.ts.map +1 -0
- package/resources/v1/data-analyst/sessions.js +38 -0
- package/resources/v1/data-analyst/sessions.js.map +1 -0
- package/resources/v1/data-analyst/sessions.mjs +34 -0
- package/resources/v1/data-analyst/sessions.mjs.map +1 -0
- package/resources/v1/data-analyst/test.d.mts +20 -0
- package/resources/v1/data-analyst/test.d.mts.map +1 -0
- package/resources/v1/data-analyst/test.d.ts +20 -0
- package/resources/v1/data-analyst/test.d.ts.map +1 -0
- package/resources/v1/data-analyst/test.js +34 -0
- package/resources/v1/data-analyst/test.js.map +1 -0
- package/resources/v1/data-analyst/test.mjs +30 -0
- package/resources/v1/data-analyst/test.mjs.map +1 -0
- package/resources/v1/data-analyst.d.mts +2 -0
- package/resources/v1/data-analyst.d.mts.map +1 -0
- package/resources/v1/data-analyst.d.ts +2 -0
- package/resources/v1/data-analyst.d.ts.map +1 -0
- package/resources/v1/data-analyst.js +6 -0
- package/resources/v1/data-analyst.js.map +1 -0
- package/resources/v1/data-analyst.mjs +3 -0
- package/resources/v1/data-analyst.mjs.map +1 -0
- package/resources/v1/index.d.mts +3 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +15 -13
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/bulk.d.mts +30 -2
- package/resources/v1/materials/bulk.d.mts.map +1 -1
- package/resources/v1/materials/bulk.d.ts +30 -2
- package/resources/v1/materials/bulk.d.ts.map +1 -1
- package/resources/v1/materials/bulk.js +8 -7
- package/resources/v1/materials/bulk.js.map +1 -1
- package/resources/v1/materials/bulk.mjs +8 -7
- package/resources/v1/materials/bulk.mjs.map +1 -1
- package/resources/v1/materials/index.d.mts +4 -4
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +4 -4
- 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 +2 -2
- package/resources/v1/materials/index.mjs.map +1 -1
- package/resources/v1/materials/materials.d.mts +270 -43
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +270 -43
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +64 -44
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +66 -46
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/materials/test.d.mts +111 -8
- package/resources/v1/materials/test.d.mts.map +1 -1
- package/resources/v1/materials/test.d.ts +111 -8
- package/resources/v1/materials/test.d.ts.map +1 -1
- package/resources/v1/materials/test.js +20 -21
- package/resources/v1/materials/test.js.map +1 -1
- package/resources/v1/materials/test.mjs +20 -21
- package/resources/v1/materials/test.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +149 -5
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +149 -5
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +53 -13
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +53 -13
- 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 +19 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +19 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +19 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +20 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/assignment-grader.ts +47 -1
- package/src/resources/v1/chat/chat.ts +74 -0
- package/src/resources/v1/chat/index.ts +7 -1
- package/src/resources/v1/components.ts +76 -0
- package/src/resources/v1/data-analyst/data-analyst.ts +233 -0
- package/src/resources/v1/data-analyst/index.ts +10 -0
- package/src/resources/v1/data-analyst/sessions.ts +46 -0
- package/src/resources/v1/data-analyst/test.ts +34 -0
- package/src/resources/v1/data-analyst.ts +3 -0
- package/src/resources/v1/index.ts +16 -0
- package/src/resources/v1/materials/bulk.ts +36 -7
- package/src/resources/v1/materials/index.ts +28 -3
- package/src/resources/v1/materials/materials.ts +364 -72
- package/src/resources/v1/materials/test.ts +141 -25
- package/src/resources/v1/materials/upload.ts +200 -13
- 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 +60 -1
- 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/v1.js
CHANGED
|
@@ -18,6 +18,8 @@ const AudioRecapsAPI = tslib_1.__importStar(require("./audio-recaps/audio-recaps
|
|
|
18
18
|
const audio_recaps_1 = require("./audio-recaps/audio-recaps.js");
|
|
19
19
|
const ChatAPI = tslib_1.__importStar(require("./chat/chat.js"));
|
|
20
20
|
const chat_1 = require("./chat/chat.js");
|
|
21
|
+
const DataAnalystAPI = tslib_1.__importStar(require("./data-analyst/data-analyst.js"));
|
|
22
|
+
const data_analyst_1 = require("./data-analyst/data-analyst.js");
|
|
21
23
|
const EmbedAPI = tslib_1.__importStar(require("./embed/embed.js"));
|
|
22
24
|
const embed_1 = require("./embed/embed.js");
|
|
23
25
|
const MaterialsAPI = tslib_1.__importStar(require("./materials/materials.js"));
|
|
@@ -30,6 +32,7 @@ const UploadAPI = tslib_1.__importStar(require("./upload/upload.js"));
|
|
|
30
32
|
const upload_1 = require("./upload/upload.js");
|
|
31
33
|
const UsageAPI = tslib_1.__importStar(require("./usage/usage.js"));
|
|
32
34
|
const usage_1 = require("./usage/usage.js");
|
|
35
|
+
const headers_1 = require("../../internal/headers.js");
|
|
33
36
|
class V1 extends resource_1.APIResource {
|
|
34
37
|
constructor() {
|
|
35
38
|
super(...arguments);
|
|
@@ -46,6 +49,21 @@ class V1 extends resource_1.APIResource {
|
|
|
46
49
|
this.explainers = new ExplainersAPI.Explainers(this._client);
|
|
47
50
|
this.upload = new UploadAPI.Upload(this._client);
|
|
48
51
|
this.assignmentGrader = new AssignmentGraderAPI.AssignmentGrader(this._client);
|
|
52
|
+
this.dataAnalyst = new DataAnalystAPI.DataAnalyst(this._client);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Test MongoDB connection and get outbound IP
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* await client.v1.testMongoDB();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
testMongoDB(options) {
|
|
63
|
+
return this._client.get('/api/v1/test-mongodb', {
|
|
64
|
+
...options,
|
|
65
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
66
|
+
});
|
|
49
67
|
}
|
|
50
68
|
}
|
|
51
69
|
exports.V1 = V1;
|
|
@@ -62,4 +80,5 @@ V1.Scenarios = scenarios_1.Scenarios;
|
|
|
62
80
|
V1.Explainers = explainers_1.Explainers;
|
|
63
81
|
V1.Upload = upload_1.Upload;
|
|
64
82
|
V1.AssignmentGrader = assignment_grader_1.AssignmentGrader;
|
|
83
|
+
V1.DataAnalyst = data_analyst_1.DataAnalyst;
|
|
65
84
|
//# sourceMappingURL=v1.js.map
|
package/resources/v1/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,oFAA2D;AAC3D,8DAK6B;AAC7B,uEAA8C;AAC9C,gDASsB;AACtB,uEAA8C;AAC9C,gDAA+F;AAC/F,uEAA8C;AAC9C,gDAUsB;AACtB,iEAAwC;AACxC,0CAA8F;AAC9F,uFAA8D;AAC9D,iEAIqC;AACrC,gEAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,oFAA2D;AAC3D,8DAK6B;AAC7B,uEAA8C;AAC9C,gDASsB;AACtB,uEAA8C;AAC9C,gDAA+F;AAC/F,uEAA8C;AAC9C,gDAUsB;A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|
|
13
13
|
import * as AudioRecapsAPI from "./audio-recaps/audio-recaps.mjs";
|
|
14
14
|
import { AudioRecaps, } from "./audio-recaps/audio-recaps.mjs";
|
|
15
15
|
import * as ChatAPI from "./chat/chat.mjs";
|
|
16
|
-
import { Chat } from "./chat/chat.mjs";
|
|
16
|
+
import { Chat, } from "./chat/chat.mjs";
|
|
17
|
+
import * as DataAnalystAPI from "./data-analyst/data-analyst.mjs";
|
|
18
|
+
import { DataAnalyst, } from "./data-analyst/data-analyst.mjs";
|
|
17
19
|
import * as EmbedAPI from "./embed/embed.mjs";
|
|
18
20
|
import { Embed } from "./embed/embed.mjs";
|
|
19
21
|
import * as MaterialsAPI from "./materials/materials.mjs";
|
|
@@ -26,6 +28,7 @@ import * as UploadAPI from "./upload/upload.mjs";
|
|
|
26
28
|
import { Upload } from "./upload/upload.mjs";
|
|
27
29
|
import * as UsageAPI from "./usage/usage.mjs";
|
|
28
30
|
import { Usage } from "./usage/usage.mjs";
|
|
31
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
29
32
|
export class V1 extends APIResource {
|
|
30
33
|
constructor() {
|
|
31
34
|
super(...arguments);
|
|
@@ -42,6 +45,21 @@ export class V1 extends APIResource {
|
|
|
42
45
|
this.explainers = new ExplainersAPI.Explainers(this._client);
|
|
43
46
|
this.upload = new UploadAPI.Upload(this._client);
|
|
44
47
|
this.assignmentGrader = new AssignmentGraderAPI.AssignmentGrader(this._client);
|
|
48
|
+
this.dataAnalyst = new DataAnalystAPI.DataAnalyst(this._client);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Test MongoDB connection and get outbound IP
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* await client.v1.testMongoDB();
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
testMongoDB(options) {
|
|
59
|
+
return this._client.get('/api/v1/test-mongodb', {
|
|
60
|
+
...options,
|
|
61
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
62
|
+
});
|
|
45
63
|
}
|
|
46
64
|
}
|
|
47
65
|
V1.Materials = Materials;
|
|
@@ -57,4 +75,5 @@ V1.Scenarios = Scenarios;
|
|
|
57
75
|
V1.Explainers = Explainers;
|
|
58
76
|
V1.Upload = Upload;
|
|
59
77
|
V1.AssignmentGrader = AssignmentGrader;
|
|
78
|
+
V1.DataAnalyst = DataAnalyst;
|
|
60
79
|
//# sourceMappingURL=v1.mjs.map
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,GAIjB;OACM,KAAK,aAAa;OAClB,EAQL,UAAU,GACX;OACM,KAAK,aAAa;OAClB,EAAuD,UAAU,EAAE;OACnE,KAAK,aAAa;OAClB,EASL,UAAU,GACX;OACM,KAAK,UAAU;OACf,EAA4D,OAAO,EAAE;OACrE,KAAK,cAAc;OACnB,EAGL,WAAW,GACZ;OACM,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,GAIjB;OACM,KAAK,aAAa;OAClB,EAQL,UAAU,GACX;OACM,KAAK,aAAa;OAClB,EAAuD,UAAU,EAAE;OACnE,KAAK,aAAa;OAClB,EASL,UAAU,GACX;OACM,KAAK,UAAU;OACf,EAA4D,OAAO,EAAE;OACrE,KAAK,cAAc;OACnB,EAGL,WAAW,GACZ;OACM,KAAK,OAAO;OACZ,EACL,IAAI,GAKL;OACM,KAAK,cAAc;OACnB,EACL,WAAW,GAIZ;OACM,KAAK,QAAQ;OACb,EAAE,KA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O,CAAC,CAAC;QAC9D,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBzF,CAAC;IAdC;;;;;;;OAOG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,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;AAED,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC;AAC7B,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AACvC,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
5
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
7
|
import { path } from '../../internal/utils/path';
|
|
7
8
|
|
|
@@ -24,6 +25,21 @@ export class AssignmentGrader extends APIResource {
|
|
|
24
25
|
return this._client.post('/api/v1/assignment-grader/create', { body, ...options });
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Delete an assignment grader by ID
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* await client.v1.assignmentGrader.delete('id');
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
37
|
+
return this._client.delete(path`/api/v1/assignment-grader/delete/${id}`, {
|
|
38
|
+
...options,
|
|
39
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
27
43
|
/**
|
|
28
44
|
* Get all assignment graders
|
|
29
45
|
*
|
|
@@ -52,10 +68,15 @@ export class AssignmentGrader extends APIResource {
|
|
|
52
68
|
}
|
|
53
69
|
|
|
54
70
|
export interface AssignmentGraderResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Version key
|
|
73
|
+
*/
|
|
74
|
+
__v: number;
|
|
75
|
+
|
|
55
76
|
/**
|
|
56
77
|
* Assignment grader ID
|
|
57
78
|
*/
|
|
58
|
-
|
|
79
|
+
_id: string;
|
|
59
80
|
|
|
60
81
|
/**
|
|
61
82
|
* Creation timestamp
|
|
@@ -67,6 +88,11 @@ export interface AssignmentGraderResponse {
|
|
|
67
88
|
*/
|
|
68
89
|
grade: number;
|
|
69
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Organization ID
|
|
93
|
+
*/
|
|
94
|
+
organizationId: string;
|
|
95
|
+
|
|
70
96
|
/**
|
|
71
97
|
* Grading results
|
|
72
98
|
*/
|
|
@@ -76,6 +102,26 @@ export interface AssignmentGraderResponse {
|
|
|
76
102
|
* Assignment title
|
|
77
103
|
*/
|
|
78
104
|
title: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Update timestamp
|
|
108
|
+
*/
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Material ID
|
|
113
|
+
*/
|
|
114
|
+
materialId?: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Text that was graded
|
|
118
|
+
*/
|
|
119
|
+
textToGrade?: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* User ID
|
|
123
|
+
*/
|
|
124
|
+
userId?: string;
|
|
79
125
|
}
|
|
80
126
|
|
|
81
127
|
export type AssignmentGraderGetAllResponse = Array<AssignmentGraderResponse>;
|
|
@@ -96,6 +96,79 @@ export class Chat extends APIResource {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
export interface Interaction {
|
|
100
|
+
/**
|
|
101
|
+
* Component ID for context
|
|
102
|
+
*/
|
|
103
|
+
componentId: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Chat message content
|
|
107
|
+
*/
|
|
108
|
+
message: Interaction.Message;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Additional context data
|
|
112
|
+
*/
|
|
113
|
+
context?: unknown;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Group IDs for collaboration
|
|
117
|
+
*/
|
|
118
|
+
groupIds?: Array<string>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Session ID for conversation continuity
|
|
122
|
+
*/
|
|
123
|
+
sessionId?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* User ID for tracking
|
|
127
|
+
*/
|
|
128
|
+
userId?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace Interaction {
|
|
132
|
+
/**
|
|
133
|
+
* Chat message content
|
|
134
|
+
*/
|
|
135
|
+
export interface Message {
|
|
136
|
+
/**
|
|
137
|
+
* Images attached to the message
|
|
138
|
+
*/
|
|
139
|
+
images?: Array<Message.Image>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Text content of the message
|
|
143
|
+
*/
|
|
144
|
+
text?: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export namespace Message {
|
|
148
|
+
export interface Image {
|
|
149
|
+
/**
|
|
150
|
+
* Base64 encoded image data
|
|
151
|
+
*/
|
|
152
|
+
base64?: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Caption for the image
|
|
156
|
+
*/
|
|
157
|
+
caption?: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* MIME type of the image
|
|
161
|
+
*/
|
|
162
|
+
mimeType?: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* URL of the image
|
|
166
|
+
*/
|
|
167
|
+
url?: string;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
99
172
|
export interface ChatGetSessionParams {
|
|
100
173
|
userId: string;
|
|
101
174
|
}
|
|
@@ -218,6 +291,7 @@ Chat.Test = Test;
|
|
|
218
291
|
|
|
219
292
|
export declare namespace Chat {
|
|
220
293
|
export {
|
|
294
|
+
type Interaction as Interaction,
|
|
221
295
|
type ChatGetSessionParams as ChatGetSessionParams,
|
|
222
296
|
type ChatSendMessageParams as ChatSendMessageParams,
|
|
223
297
|
type ChatStreamParams as ChatStreamParams,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Chat,
|
|
5
|
+
type Interaction,
|
|
6
|
+
type ChatGetSessionParams,
|
|
7
|
+
type ChatSendMessageParams,
|
|
8
|
+
type ChatStreamParams,
|
|
9
|
+
} from './chat';
|
|
4
10
|
export { Sessions, type SessionRetrieveParams } from './sessions';
|
|
5
11
|
export { Test } from './test';
|
|
@@ -176,6 +176,7 @@ export interface Component {
|
|
|
176
176
|
*/
|
|
177
177
|
type:
|
|
178
178
|
| 'chat'
|
|
179
|
+
| 'data_analyst'
|
|
179
180
|
| 'flashcards'
|
|
180
181
|
| 'scenarios'
|
|
181
182
|
| 'practice_test'
|
|
@@ -257,6 +258,7 @@ export interface ComponentCreateParams {
|
|
|
257
258
|
*/
|
|
258
259
|
config:
|
|
259
260
|
| ComponentCreateParams.ChatConfigDto
|
|
261
|
+
| ComponentCreateParams.DataAnalystConfigDto
|
|
260
262
|
| ComponentCreateParams.FlashcardsConfigDto
|
|
261
263
|
| ComponentCreateParams.ScenariosConfigDto
|
|
262
264
|
| ComponentCreateParams.PracticeTestConfigDto
|
|
@@ -275,6 +277,7 @@ export interface ComponentCreateParams {
|
|
|
275
277
|
*/
|
|
276
278
|
type:
|
|
277
279
|
| 'chat'
|
|
280
|
+
| 'data_analyst'
|
|
278
281
|
| 'flashcards'
|
|
279
282
|
| 'scenarios'
|
|
280
283
|
| 'practice_test'
|
|
@@ -362,6 +365,78 @@ export namespace ComponentCreateParams {
|
|
|
362
365
|
temperature?: number;
|
|
363
366
|
}
|
|
364
367
|
|
|
368
|
+
export interface DataAnalystConfigDto {
|
|
369
|
+
/**
|
|
370
|
+
* AI model to use
|
|
371
|
+
*/
|
|
372
|
+
model: string;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Enable component creation
|
|
376
|
+
*/
|
|
377
|
+
enableComponentCreation?: boolean;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Enable follow-up questions
|
|
381
|
+
*/
|
|
382
|
+
enableFollowUps?: boolean;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Enable conversation history
|
|
386
|
+
*/
|
|
387
|
+
enableHistory?: boolean;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Enable RAG search
|
|
391
|
+
*/
|
|
392
|
+
enableRAGSearch?: boolean;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Enable voice interactions
|
|
396
|
+
*/
|
|
397
|
+
enableVoice?: boolean;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Enable web search
|
|
401
|
+
*/
|
|
402
|
+
enableWebSearch?: boolean;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Folder IDs
|
|
406
|
+
*/
|
|
407
|
+
folders?: Array<string>;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Group IDs to filter data
|
|
411
|
+
*/
|
|
412
|
+
groupIds?: Array<string>;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Material IDs
|
|
416
|
+
*/
|
|
417
|
+
materials?: Array<string>;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Maximum steps for multi-step tool calls
|
|
421
|
+
*/
|
|
422
|
+
maxSteps?: number;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Maximum tokens for response
|
|
426
|
+
*/
|
|
427
|
+
maxTokens?: number;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* System prompt for the data analyst
|
|
431
|
+
*/
|
|
432
|
+
systemPrompt?: string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Temperature for response generation
|
|
436
|
+
*/
|
|
437
|
+
temperature?: number;
|
|
438
|
+
}
|
|
439
|
+
|
|
365
440
|
export interface FlashcardsConfigDto {
|
|
366
441
|
/**
|
|
367
442
|
* Types of flashcards
|
|
@@ -818,6 +893,7 @@ export interface ComponentListParams {
|
|
|
818
893
|
*/
|
|
819
894
|
type?:
|
|
820
895
|
| 'chat'
|
|
896
|
+
| 'data_analyst'
|
|
821
897
|
| 'flashcards'
|
|
822
898
|
| 'scenarios'
|
|
823
899
|
| 'practice_test'
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as SessionsAPI from './sessions';
|
|
5
|
+
import { SessionRetrieveParams, Sessions } from './sessions';
|
|
6
|
+
import * as TestAPI from './test';
|
|
7
|
+
import { Test } from './test';
|
|
8
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
9
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
10
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
11
|
+
import { path } from '../../../internal/utils/path';
|
|
12
|
+
|
|
13
|
+
export class DataAnalyst extends APIResource {
|
|
14
|
+
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
15
|
+
test: TestAPI.Test = new TestAPI.Test(this._client);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* await client.v1.dataAnalyst.getHistory();
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
getHistory(options?: RequestOptions): APIPromise<void> {
|
|
24
|
+
return this._client.post('/api/v1/data-analyst/history', {
|
|
25
|
+
...options,
|
|
26
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* await client.v1.dataAnalyst.retrieveSession('sessionId', {
|
|
34
|
+
* userId: 'userId',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieveSession(
|
|
39
|
+
sessionID: string,
|
|
40
|
+
query: DataAnalystRetrieveSessionParams,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<void> {
|
|
43
|
+
return this._client.get(path`/api/v1/data-analyst/session/${sessionID}`, {
|
|
44
|
+
query,
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* await client.v1.dataAnalyst.sendFollowups();
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
sendFollowups(options?: RequestOptions): APIPromise<void> {
|
|
57
|
+
return this._client.post('/api/v1/data-analyst/followups', {
|
|
58
|
+
...options,
|
|
59
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* await client.v1.dataAnalyst.sendMessage({
|
|
67
|
+
* componentId: 'componentId',
|
|
68
|
+
* message: {},
|
|
69
|
+
* 'x-component-id': 'x-component-id',
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
sendMessage(params: DataAnalystSendMessageParams, options?: RequestOptions): APIPromise<void> {
|
|
74
|
+
const { 'x-component-id': xComponentID, ...body } = params;
|
|
75
|
+
return this._client.post('/api/v1/data-analyst/message', {
|
|
76
|
+
body,
|
|
77
|
+
...options,
|
|
78
|
+
headers: buildHeaders([{ Accept: '*/*', 'x-component-id': xComponentID }, options?.headers]),
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Stream chat responses
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* await client.v1.dataAnalyst.stream();
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
stream(params: DataAnalystStreamParams, options?: RequestOptions): APIPromise<void> {
|
|
91
|
+
const { 'x-component-id': xComponentID, ...body } = params;
|
|
92
|
+
return this._client.post('/api/v1/data-analyst/stream', {
|
|
93
|
+
body,
|
|
94
|
+
...options,
|
|
95
|
+
headers: buildHeaders([
|
|
96
|
+
{ Accept: '*/*', ...(xComponentID != null ? { 'x-component-id': xComponentID } : undefined) },
|
|
97
|
+
options?.headers,
|
|
98
|
+
]),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface DataAnalystRetrieveSessionParams {
|
|
104
|
+
userId: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface DataAnalystSendMessageParams {
|
|
108
|
+
/**
|
|
109
|
+
* Body param: Component ID for context
|
|
110
|
+
*/
|
|
111
|
+
componentId: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Body param: Chat message content
|
|
115
|
+
*/
|
|
116
|
+
message: DataAnalystSendMessageParams.Message;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Header param:
|
|
120
|
+
*/
|
|
121
|
+
'x-component-id': string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Body param: Additional context data
|
|
125
|
+
*/
|
|
126
|
+
context?: unknown;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Body param: Group IDs for collaboration
|
|
130
|
+
*/
|
|
131
|
+
groupIds?: Array<string>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Body param: Session ID for conversation continuity
|
|
135
|
+
*/
|
|
136
|
+
sessionId?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Body param: User ID for tracking
|
|
140
|
+
*/
|
|
141
|
+
userId?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export namespace DataAnalystSendMessageParams {
|
|
145
|
+
/**
|
|
146
|
+
* Chat message content
|
|
147
|
+
*/
|
|
148
|
+
export interface Message {
|
|
149
|
+
/**
|
|
150
|
+
* Images attached to the message
|
|
151
|
+
*/
|
|
152
|
+
images?: Array<Message.Image>;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Text content of the message
|
|
156
|
+
*/
|
|
157
|
+
text?: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export namespace Message {
|
|
161
|
+
export interface Image {
|
|
162
|
+
/**
|
|
163
|
+
* Base64 encoded image data
|
|
164
|
+
*/
|
|
165
|
+
base64?: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Caption for the image
|
|
169
|
+
*/
|
|
170
|
+
caption?: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* MIME type of the image
|
|
174
|
+
*/
|
|
175
|
+
mimeType?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* URL of the image
|
|
179
|
+
*/
|
|
180
|
+
url?: string;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface DataAnalystStreamParams {
|
|
186
|
+
/**
|
|
187
|
+
* Body param:
|
|
188
|
+
*/
|
|
189
|
+
context?: unknown;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Body param:
|
|
193
|
+
*/
|
|
194
|
+
groupId?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Body param:
|
|
198
|
+
*/
|
|
199
|
+
messages?: Array<DataAnalystStreamParams.Message>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Body param:
|
|
203
|
+
*/
|
|
204
|
+
userId?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Header param: Component ID for context
|
|
208
|
+
*/
|
|
209
|
+
'x-component-id'?: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export namespace DataAnalystStreamParams {
|
|
213
|
+
export interface Message {
|
|
214
|
+
content?: string;
|
|
215
|
+
|
|
216
|
+
role?: 'user' | 'assistant' | 'system';
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
DataAnalyst.Sessions = Sessions;
|
|
221
|
+
DataAnalyst.Test = Test;
|
|
222
|
+
|
|
223
|
+
export declare namespace DataAnalyst {
|
|
224
|
+
export {
|
|
225
|
+
type DataAnalystRetrieveSessionParams as DataAnalystRetrieveSessionParams,
|
|
226
|
+
type DataAnalystSendMessageParams as DataAnalystSendMessageParams,
|
|
227
|
+
type DataAnalystStreamParams as DataAnalystStreamParams,
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export { Sessions as Sessions, type SessionRetrieveParams as SessionRetrieveParams };
|
|
231
|
+
|
|
232
|
+
export { Test as Test };
|
|
233
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
DataAnalyst,
|
|
5
|
+
type DataAnalystRetrieveSessionParams,
|
|
6
|
+
type DataAnalystSendMessageParams,
|
|
7
|
+
type DataAnalystStreamParams,
|
|
8
|
+
} from './data-analyst';
|
|
9
|
+
export { Sessions, type SessionRetrieveParams } from './sessions';
|
|
10
|
+
export { Test } from './test';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Sessions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.dataAnalyst.sessions.create();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(options?: RequestOptions): APIPromise<void> {
|
|
17
|
+
return this._client.post('/api/v1/data-analyst/sessions/create', {
|
|
18
|
+
...options,
|
|
19
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* await client.v1.dataAnalyst.sessions.retrieve('userId', {
|
|
27
|
+
* limit: 'limit',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
retrieve(userID: string, query: SessionRetrieveParams, options?: RequestOptions): APIPromise<void> {
|
|
32
|
+
return this._client.get(path`/api/v1/data-analyst/sessions/${userID}`, {
|
|
33
|
+
query,
|
|
34
|
+
...options,
|
|
35
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface SessionRetrieveParams {
|
|
41
|
+
limit: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export declare namespace Sessions {
|
|
45
|
+
export { type SessionRetrieveParams as SessionRetrieveParams };
|
|
46
|
+
}
|