@studyfetch/sdk 1.29.0 → 1.31.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +1 -1
  3. package/resources/v1/chat.d.mts +8 -2
  4. package/resources/v1/chat.d.mts.map +1 -1
  5. package/resources/v1/chat.d.ts +8 -2
  6. package/resources/v1/chat.d.ts.map +1 -1
  7. package/resources/v1/index.d.mts +1 -2
  8. package/resources/v1/index.d.mts.map +1 -1
  9. package/resources/v1/index.d.ts +1 -2
  10. package/resources/v1/index.d.ts.map +1 -1
  11. package/resources/v1/index.js +3 -5
  12. package/resources/v1/index.js.map +1 -1
  13. package/resources/v1/index.mjs +0 -1
  14. package/resources/v1/index.mjs.map +1 -1
  15. package/resources/v1/materials/index.d.mts +1 -1
  16. package/resources/v1/materials/index.d.mts.map +1 -1
  17. package/resources/v1/materials/index.d.ts +1 -1
  18. package/resources/v1/materials/index.d.ts.map +1 -1
  19. package/resources/v1/materials/index.js.map +1 -1
  20. package/resources/v1/materials/index.mjs.map +1 -1
  21. package/resources/v1/materials/materials.d.mts +112 -67
  22. package/resources/v1/materials/materials.d.mts.map +1 -1
  23. package/resources/v1/materials/materials.d.ts +112 -67
  24. package/resources/v1/materials/materials.d.ts.map +1 -1
  25. package/resources/v1/materials/materials.js +18 -1
  26. package/resources/v1/materials/materials.js.map +1 -1
  27. package/resources/v1/materials/materials.mjs +18 -1
  28. package/resources/v1/materials/materials.mjs.map +1 -1
  29. package/resources/v1/materials/upload.d.mts +6 -16
  30. package/resources/v1/materials/upload.d.mts.map +1 -1
  31. package/resources/v1/materials/upload.d.ts +6 -16
  32. package/resources/v1/materials/upload.d.ts.map +1 -1
  33. package/resources/v1/materials/upload.js +2 -4
  34. package/resources/v1/materials/upload.js.map +1 -1
  35. package/resources/v1/materials/upload.mjs +2 -4
  36. package/resources/v1/materials/upload.mjs.map +1 -1
  37. package/resources/v1/v1.d.mts +2 -6
  38. package/resources/v1/v1.d.mts.map +1 -1
  39. package/resources/v1/v1.d.ts +2 -6
  40. package/resources/v1/v1.d.ts.map +1 -1
  41. package/resources/v1/v1.js +0 -4
  42. package/resources/v1/v1.js.map +1 -1
  43. package/resources/v1/v1.mjs +0 -4
  44. package/resources/v1/v1.mjs.map +1 -1
  45. package/src/resources/v1/chat.ts +8 -2
  46. package/src/resources/v1/index.ts +2 -2
  47. package/src/resources/v1/materials/index.ts +2 -1
  48. package/src/resources/v1/materials/materials.ts +142 -86
  49. package/src/resources/v1/materials/upload.ts +6 -18
  50. package/src/resources/v1/v1.ts +4 -8
  51. package/src/version.ts +1 -1
  52. package/version.d.mts +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.js +1 -1
  55. package/version.mjs +1 -1
  56. package/resources/v1/upload/component.d.mts +0 -191
  57. package/resources/v1/upload/component.d.mts.map +0 -1
  58. package/resources/v1/upload/component.d.ts +0 -191
  59. package/resources/v1/upload/component.d.ts.map +0 -1
  60. package/resources/v1/upload/component.js +0 -93
  61. package/resources/v1/upload/component.js.map +0 -1
  62. package/resources/v1/upload/component.mjs +0 -89
  63. package/resources/v1/upload/component.mjs.map +0 -1
  64. package/resources/v1/upload/index.d.mts +0 -3
  65. package/resources/v1/upload/index.d.mts.map +0 -1
  66. package/resources/v1/upload/index.d.ts +0 -3
  67. package/resources/v1/upload/index.d.ts.map +0 -1
  68. package/resources/v1/upload/index.js +0 -9
  69. package/resources/v1/upload/index.js.map +0 -1
  70. package/resources/v1/upload/index.mjs +0 -4
  71. package/resources/v1/upload/index.mjs.map +0 -1
  72. package/resources/v1/upload/upload.d.mts +0 -10
  73. package/resources/v1/upload/upload.d.mts.map +0 -1
  74. package/resources/v1/upload/upload.d.ts +0 -10
  75. package/resources/v1/upload/upload.d.ts.map +0 -1
  76. package/resources/v1/upload/upload.js +0 -17
  77. package/resources/v1/upload/upload.js.map +0 -1
  78. package/resources/v1/upload/upload.mjs +0 -12
  79. package/resources/v1/upload/upload.mjs.map +0 -1
  80. package/resources/v1/upload.d.mts +0 -2
  81. package/resources/v1/upload.d.mts.map +0 -1
  82. package/resources/v1/upload.d.ts +0 -2
  83. package/resources/v1/upload.d.ts.map +0 -1
  84. package/resources/v1/upload.js +0 -6
  85. package/resources/v1/upload.js.map +0 -1
  86. package/resources/v1/upload.mjs +0 -3
  87. package/resources/v1/upload.mjs.map +0 -1
  88. package/src/resources/v1/upload/component.ts +0 -261
  89. package/src/resources/v1/upload/index.ts +0 -13
  90. package/src/resources/v1/upload/upload.ts +0 -33
  91. package/src/resources/v1/upload.ts +0 -3
@@ -10,9 +10,7 @@ import { FolderCreateParams, FolderListParams, FolderUpdateParams, Folders } fro
10
10
  import * as EmbedAPI from "./embed/embed.js";
11
11
  import { Embed, EmbedGetThemeParams, EmbedVerifyParams } from "./embed/embed.js";
12
12
  import * as MaterialsAPI from "./materials/materials.js";
13
- import { Content, Material, MaterialBatchCreateParams, MaterialBatchCreateResponse, MaterialCreateAndProcessParams, MaterialCreateParams, MaterialDebugResponse, MaterialGenerateAndProcessParams, MaterialGenerateAndProcessResponse, MaterialGetDownloadURLParams, MaterialGetDownloadURLResponse, MaterialListParams, MaterialListResponse, MaterialMoveParams, MaterialRenameParams, MaterialSearchParams, MaterialSearchResponse, Materials } from "./materials/materials.js";
14
- import * as UploadAPI from "./upload/upload.js";
15
- import { Upload } from "./upload/upload.js";
13
+ import { Content, GeneratedMaterial, Material, MaterialBatchCreateParams, MaterialBatchCreateResponse, MaterialCreateAndProcessParams, MaterialCreateParams, MaterialDebugResponse, MaterialGenerateAndProcessParams, MaterialGenerateParams, MaterialGetDownloadURLParams, MaterialGetDownloadURLResponse, MaterialListParams, MaterialListResponse, MaterialMoveParams, MaterialRenameParams, MaterialSearchParams, MaterialSearchResponse, Materials } from "./materials/materials.js";
16
14
  import * as UsageAPI from "./usage/usage.js";
17
15
  import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from "./usage/usage.js";
18
16
  import { APIPromise } from "../../core/api-promise.js";
@@ -23,7 +21,6 @@ export declare class V1 extends APIResource {
23
21
  components: ComponentsAPI.Components;
24
22
  usage: UsageAPI.Usage;
25
23
  embed: EmbedAPI.Embed;
26
- upload: UploadAPI.Upload;
27
24
  assignmentGrader: AssignmentGraderAPI.AssignmentGrader;
28
25
  chat: ChatAPI.Chat;
29
26
  /**
@@ -37,12 +34,11 @@ export declare class V1 extends APIResource {
37
34
  testMongoDB(options?: RequestOptions): APIPromise<void>;
38
35
  }
39
36
  export declare namespace V1 {
40
- export { Materials as Materials, type Content as Content, type Material as Material, type MaterialListResponse as MaterialListResponse, type MaterialBatchCreateResponse as MaterialBatchCreateResponse, type MaterialDebugResponse as MaterialDebugResponse, type MaterialGenerateAndProcessResponse as MaterialGenerateAndProcessResponse, type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse, type MaterialSearchResponse as MaterialSearchResponse, type MaterialCreateParams as MaterialCreateParams, type MaterialListParams as MaterialListParams, type MaterialBatchCreateParams as MaterialBatchCreateParams, type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams, type MaterialGenerateAndProcessParams as MaterialGenerateAndProcessParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, type MaterialMoveParams as MaterialMoveParams, type MaterialRenameParams as MaterialRenameParams, type MaterialSearchParams as MaterialSearchParams, };
37
+ export { Materials as Materials, type Content as Content, type GeneratedMaterial as GeneratedMaterial, type Material as Material, type MaterialListResponse as MaterialListResponse, type MaterialBatchCreateResponse as MaterialBatchCreateResponse, type MaterialDebugResponse as MaterialDebugResponse, type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse, type MaterialSearchResponse as MaterialSearchResponse, type MaterialCreateParams as MaterialCreateParams, type MaterialListParams as MaterialListParams, type MaterialBatchCreateParams as MaterialBatchCreateParams, type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams, type MaterialGenerateParams as MaterialGenerateParams, type MaterialGenerateAndProcessParams as MaterialGenerateAndProcessParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, type MaterialMoveParams as MaterialMoveParams, type MaterialRenameParams as MaterialRenameParams, type MaterialSearchParams as MaterialSearchParams, };
41
38
  export { Folders as Folders, type FolderCreateParams as FolderCreateParams, type FolderUpdateParams as FolderUpdateParams, type FolderListParams as FolderListParams, };
42
39
  export { Components as Components, type Component as Component, type ComponentListResponse as ComponentListResponse, type ComponentGenerateEmbedResponse as ComponentGenerateEmbedResponse, type ComponentCreateParams as ComponentCreateParams, type ComponentUpdateParams as ComponentUpdateParams, type ComponentListParams as ComponentListParams, type ComponentGenerateEmbedParams as ComponentGenerateEmbedParams, };
43
40
  export { Usage as Usage, type UsageGetStatsParams as UsageGetStatsParams, type UsageGetSummaryParams as UsageGetSummaryParams, type UsageListEventsParams as UsageListEventsParams, };
44
41
  export { Embed as Embed, type EmbedGetThemeParams as EmbedGetThemeParams, type EmbedVerifyParams as EmbedVerifyParams, };
45
- export { Upload as Upload };
46
42
  export { AssignmentGrader as AssignmentGrader, type AssignmentGraderResponse as AssignmentGraderResponse, type AssignmentGraderGetAllResponse as AssignmentGraderGetAllResponse, type AssignmentGraderCreateParams as AssignmentGraderCreateParams, };
47
43
  export { Chat as Chat, type ChatStreamParams as ChatStreamParams };
48
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,8BAA8B,EAC9B,wBAAwB,EACzB;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,gBAAgB,EAAE;OAC1B,KAAK,aAAa;OAClB,EACL,SAAS,EACT,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,UAAU,EACX;OACM,KAAK,UAAU;OACf,EAAE,kBAAkB,E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ClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACpE"}
@@ -16,8 +16,6 @@ const EmbedAPI = tslib_1.__importStar(require("./embed/embed.js"));
16
16
  const embed_1 = require("./embed/embed.js");
17
17
  const MaterialsAPI = tslib_1.__importStar(require("./materials/materials.js"));
18
18
  const materials_1 = require("./materials/materials.js");
19
- const UploadAPI = tslib_1.__importStar(require("./upload/upload.js"));
20
- const upload_1 = require("./upload/upload.js");
21
19
  const UsageAPI = tslib_1.__importStar(require("./usage/usage.js"));
22
20
  const usage_1 = require("./usage/usage.js");
23
21
  const headers_1 = require("../../internal/headers.js");
@@ -29,7 +27,6 @@ class V1 extends resource_1.APIResource {
29
27
  this.components = new ComponentsAPI.Components(this._client);
30
28
  this.usage = new UsageAPI.Usage(this._client);
31
29
  this.embed = new EmbedAPI.Embed(this._client);
32
- this.upload = new UploadAPI.Upload(this._client);
33
30
  this.assignmentGrader = new AssignmentGraderAPI.AssignmentGrader(this._client);
34
31
  this.chat = new ChatAPI.Chat(this._client);
35
32
  }
@@ -54,7 +51,6 @@ V1.Folders = folders_1.Folders;
54
51
  V1.Components = components_1.Components;
55
52
  V1.Usage = usage_1.Usage;
56
53
  V1.Embed = embed_1.Embed;
57
- V1.Upload = upload_1.Upload;
58
54
  V1.AssignmentGrader = assignment_grader_1.AssignmentGrader;
59
55
  V1.Chat = chat_1.Chat;
60
56
  //# sourceMappingURL=v1.js.map
@@ -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,2DAAkC;AAClC,oCAAgD;AAChD,uEAA8C;AAC9C,gDASsB;AACtB,iEAAwC;AACxC,0CAA8F;AAC9F,mEAA0C;AAC1C,4CAA8E;AAC9E,+EAAsD;AACtD,wDAmB+B;AAC/B,sEAA6C;AAC7C,+CAAyC;AACzC,mEAA0C;AAC1C,4CAAyG;AAEzG,uDAAsD;AAGtD,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,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E,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AACvC,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC"}
@@ -12,8 +12,6 @@ import * as EmbedAPI from "./embed/embed.mjs";
12
12
  import { Embed } from "./embed/embed.mjs";
13
13
  import * as MaterialsAPI from "./materials/materials.mjs";
14
14
  import { Materials, } from "./materials/materials.mjs";
15
- import * as UploadAPI from "./upload/upload.mjs";
16
- import { Upload } from "./upload/upload.mjs";
17
15
  import * as UsageAPI from "./usage/usage.mjs";
18
16
  import { Usage } from "./usage/usage.mjs";
19
17
  import { buildHeaders } from "../../internal/headers.mjs";
@@ -25,7 +23,6 @@ export class V1 extends APIResource {
25
23
  this.components = new ComponentsAPI.Components(this._client);
26
24
  this.usage = new UsageAPI.Usage(this._client);
27
25
  this.embed = new EmbedAPI.Embed(this._client);
28
- this.upload = new UploadAPI.Upload(this._client);
29
26
  this.assignmentGrader = new AssignmentGraderAPI.AssignmentGrader(this._client);
30
27
  this.chat = new ChatAPI.Chat(this._client);
31
28
  }
@@ -49,7 +46,6 @@ V1.Folders = Folders;
49
46
  V1.Components = Components;
50
47
  V1.Usage = Usage;
51
48
  V1.Embed = Embed;
52
- V1.Upload = Upload;
53
49
  V1.AssignmentGrader = AssignmentGrader;
54
50
  V1.Chat = Chat;
55
51
  //# sourceMappingURL=v1.mjs.map
@@ -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,OAAO;OACZ,EAAE,IAAI,EAAoB;OAC1B,KAAK,aAAa;OAClB,EAQL,UAAU,GACX;OACM,KAAK,UAAU;OACf,EAA4D,OAAO,EAAE;OACrE,KAAK,QAAQ;OACb,EAAE,KAAK,EAA0C;OACjD,KAAK,YAAY;OACjB,EAkBL,SAAS,GACV;OACM,KAAK,SAA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AC;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,gBAAgB,GAAG,gBAAgB,CAAC;AACvC,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC"}
@@ -117,9 +117,15 @@ export namespace ChatStreamParams {
117
117
  }
118
118
 
119
119
  export interface Message {
120
- content?: string;
120
+ /**
121
+ * Content of the message - can be string or array of content parts
122
+ */
123
+ content: unknown;
121
124
 
122
- role?: string;
125
+ /**
126
+ * Role of the message sender
127
+ */
128
+ role: 'user' | 'assistant' | 'system';
123
129
  }
124
130
  }
125
131
 
@@ -22,24 +22,24 @@ export { Folders, type FolderCreateParams, type FolderUpdateParams, type FolderL
22
22
  export {
23
23
  Materials,
24
24
  type Content,
25
+ type GeneratedMaterial,
25
26
  type Material,
26
27
  type MaterialListResponse,
27
28
  type MaterialBatchCreateResponse,
28
29
  type MaterialDebugResponse,
29
- type MaterialGenerateAndProcessResponse,
30
30
  type MaterialGetDownloadURLResponse,
31
31
  type MaterialSearchResponse,
32
32
  type MaterialCreateParams,
33
33
  type MaterialListParams,
34
34
  type MaterialBatchCreateParams,
35
35
  type MaterialCreateAndProcessParams,
36
+ type MaterialGenerateParams,
36
37
  type MaterialGenerateAndProcessParams,
37
38
  type MaterialGetDownloadURLParams,
38
39
  type MaterialMoveParams,
39
40
  type MaterialRenameParams,
40
41
  type MaterialSearchParams,
41
42
  } from './materials/index';
42
- export { Upload } from './upload/index';
43
43
  export {
44
44
  Usage,
45
45
  type UsageGetStatsParams,
@@ -4,17 +4,18 @@ export { Bulk, type BulkMoveResponse, type BulkMoveParams } from './bulk';
4
4
  export {
5
5
  Materials,
6
6
  type Content,
7
+ type GeneratedMaterial,
7
8
  type Material,
8
9
  type MaterialListResponse,
9
10
  type MaterialBatchCreateResponse,
10
11
  type MaterialDebugResponse,
11
- type MaterialGenerateAndProcessResponse,
12
12
  type MaterialGetDownloadURLResponse,
13
13
  type MaterialSearchResponse,
14
14
  type MaterialCreateParams,
15
15
  type MaterialListParams,
16
16
  type MaterialBatchCreateParams,
17
17
  type MaterialCreateAndProcessParams,
18
+ type MaterialGenerateParams,
18
19
  type MaterialGenerateAndProcessParams,
19
20
  type MaterialGetDownloadURLParams,
20
21
  type MaterialMoveParams,
@@ -143,13 +143,31 @@ export class Materials extends APIResource {
143
143
  return this._client.get(path`/api/v1/materials/${id}/debug`, options);
144
144
  }
145
145
 
146
+ /**
147
+ * Uses AI to generate study materials like outlines, notes, summaries, etc. from a
148
+ * given topic. Returns immediately without waiting for processing.
149
+ *
150
+ * @example
151
+ * ```ts
152
+ * const generatedMaterial =
153
+ * await client.v1.materials.generate({
154
+ * name: 'Photosynthesis Study Plan',
155
+ * topic: 'Photosynthesis in plants',
156
+ * type: 'notes',
157
+ * });
158
+ * ```
159
+ */
160
+ generate(body: MaterialGenerateParams, options?: RequestOptions): APIPromise<GeneratedMaterial> {
161
+ return this._client.post('/api/v1/materials/generate', { body, ...options });
162
+ }
163
+
146
164
  /**
147
165
  * Uses AI to generate study materials like outlines, notes, summaries, etc. from a
148
166
  * given topic and waits for processing to complete
149
167
  *
150
168
  * @example
151
169
  * ```ts
152
- * const response =
170
+ * const generatedMaterial =
153
171
  * await client.v1.materials.generateAndProcess({
154
172
  * name: 'Photosynthesis Study Plan',
155
173
  * topic: 'Photosynthesis in plants',
@@ -160,7 +178,7 @@ export class Materials extends APIResource {
160
178
  generateAndProcess(
161
179
  body: MaterialGenerateAndProcessParams,
162
180
  options?: RequestOptions,
163
- ): APIPromise<MaterialGenerateAndProcessResponse> {
181
+ ): APIPromise<GeneratedMaterial> {
164
182
  return this._client.post('/api/v1/materials/generate-and-process', { body, ...options });
165
183
  }
166
184
 
@@ -259,6 +277,89 @@ export interface Content {
259
277
  url?: string;
260
278
  }
261
279
 
280
+ export interface GeneratedMaterial {
281
+ /**
282
+ * Material ID
283
+ */
284
+ _id: string;
285
+
286
+ /**
287
+ * Material content
288
+ */
289
+ content: GeneratedMaterial.Content;
290
+
291
+ /**
292
+ * Content type
293
+ */
294
+ contentType: 'text' | 'pdf' | 'video' | 'audio' | 'image' | 'epub';
295
+
296
+ /**
297
+ * Creation timestamp
298
+ */
299
+ createdAt: string;
300
+
301
+ /**
302
+ * Folder ID
303
+ */
304
+ folderId: string | null;
305
+
306
+ /**
307
+ * Material name
308
+ */
309
+ name: string;
310
+
311
+ /**
312
+ * Organization ID
313
+ */
314
+ organizationId: string;
315
+
316
+ /**
317
+ * Material status
318
+ */
319
+ status: 'active' | 'processing' | 'pending_upload' | 'error' | 'deleted';
320
+
321
+ /**
322
+ * Last update timestamp
323
+ */
324
+ updatedAt: string;
325
+
326
+ /**
327
+ * Generation metadata
328
+ */
329
+ generationMetadata?: unknown;
330
+
331
+ /**
332
+ * Material metadata
333
+ */
334
+ metadata?: unknown;
335
+
336
+ /**
337
+ * Usage information
338
+ */
339
+ usage?: unknown;
340
+ }
341
+
342
+ export namespace GeneratedMaterial {
343
+ /**
344
+ * Material content
345
+ */
346
+ export interface Content {
347
+ filename?: string;
348
+
349
+ fileSize?: number;
350
+
351
+ mimeType?: string;
352
+
353
+ s3Key?: string;
354
+
355
+ s3Url?: string;
356
+
357
+ text?: string;
358
+
359
+ url?: string;
360
+ }
361
+ }
362
+
262
363
  export interface Material {
263
364
  /**
264
365
  * Material ID
@@ -421,89 +522,6 @@ export namespace MaterialDebugResponse {
421
522
  }
422
523
  }
423
524
 
424
- export interface MaterialGenerateAndProcessResponse {
425
- /**
426
- * Material ID
427
- */
428
- _id: string;
429
-
430
- /**
431
- * Material content
432
- */
433
- content: MaterialGenerateAndProcessResponse.Content;
434
-
435
- /**
436
- * Content type
437
- */
438
- contentType: 'text' | 'pdf' | 'video' | 'audio' | 'image' | 'epub';
439
-
440
- /**
441
- * Creation timestamp
442
- */
443
- createdAt: string;
444
-
445
- /**
446
- * Folder ID
447
- */
448
- folderId: string | null;
449
-
450
- /**
451
- * Material name
452
- */
453
- name: string;
454
-
455
- /**
456
- * Organization ID
457
- */
458
- organizationId: string;
459
-
460
- /**
461
- * Material status
462
- */
463
- status: 'active' | 'processing' | 'pending_upload' | 'error' | 'deleted';
464
-
465
- /**
466
- * Last update timestamp
467
- */
468
- updatedAt: string;
469
-
470
- /**
471
- * Generation metadata
472
- */
473
- generationMetadata?: unknown;
474
-
475
- /**
476
- * Material metadata
477
- */
478
- metadata?: unknown;
479
-
480
- /**
481
- * Usage information
482
- */
483
- usage?: unknown;
484
- }
485
-
486
- export namespace MaterialGenerateAndProcessResponse {
487
- /**
488
- * Material content
489
- */
490
- export interface Content {
491
- filename?: string;
492
-
493
- fileSize?: number;
494
-
495
- mimeType?: string;
496
-
497
- s3Key?: string;
498
-
499
- s3Url?: string;
500
-
501
- text?: string;
502
-
503
- url?: string;
504
- }
505
- }
506
-
507
525
  export interface MaterialGetDownloadURLResponse {
508
526
  /**
509
527
  * Temporary download URL
@@ -666,6 +684,43 @@ export interface MaterialCreateAndProcessParams {
666
684
  timeoutMs?: number;
667
685
  }
668
686
 
687
+ export interface MaterialGenerateParams {
688
+ /**
689
+ * Name for the generated material
690
+ */
691
+ name: string;
692
+
693
+ /**
694
+ * Topic or context to generate material from
695
+ */
696
+ topic: string;
697
+
698
+ /**
699
+ * Type of material to generate
700
+ */
701
+ type: 'outline' | 'overview' | 'notes' | 'summary';
702
+
703
+ /**
704
+ * Additional context or details about the topic
705
+ */
706
+ context?: string;
707
+
708
+ /**
709
+ * Target folder ID
710
+ */
711
+ folderId?: string;
712
+
713
+ /**
714
+ * Length of the generated content
715
+ */
716
+ length?: 'short' | 'medium' | 'long';
717
+
718
+ /**
719
+ * Target education level
720
+ */
721
+ level?: 'high_school' | 'college' | 'professional';
722
+ }
723
+
669
724
  export interface MaterialGenerateAndProcessParams {
670
725
  /**
671
726
  * Name for the generated material
@@ -763,17 +818,18 @@ Materials.Test = Test;
763
818
  export declare namespace Materials {
764
819
  export {
765
820
  type Content as Content,
821
+ type GeneratedMaterial as GeneratedMaterial,
766
822
  type Material as Material,
767
823
  type MaterialListResponse as MaterialListResponse,
768
824
  type MaterialBatchCreateResponse as MaterialBatchCreateResponse,
769
825
  type MaterialDebugResponse as MaterialDebugResponse,
770
- type MaterialGenerateAndProcessResponse as MaterialGenerateAndProcessResponse,
771
826
  type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse,
772
827
  type MaterialSearchResponse as MaterialSearchResponse,
773
828
  type MaterialCreateParams as MaterialCreateParams,
774
829
  type MaterialListParams as MaterialListParams,
775
830
  type MaterialBatchCreateParams as MaterialBatchCreateParams,
776
831
  type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
832
+ type MaterialGenerateParams as MaterialGenerateParams,
777
833
  type MaterialGenerateAndProcessParams as MaterialGenerateAndProcessParams,
778
834
  type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
779
835
  type MaterialMoveParams as MaterialMoveParams,
@@ -15,10 +15,8 @@ export class Upload extends APIResource {
15
15
  * ```ts
16
16
  * const material =
17
17
  * await client.v1.materials.upload.completeUpload({
18
- * materialId: '507f1f77bcf86cd799439013',
19
- * organizationId: '507f1f77bcf86cd799439011',
20
- * s3Key:
21
- * 'organizations/507f1f77bcf86cd799439011/materials/document.pdf',
18
+ * materialId: 'materialId',
19
+ * s3Key: 's3Key',
22
20
  * });
23
21
  * ```
24
22
  */
@@ -133,17 +131,12 @@ export class Upload extends APIResource {
133
131
 
134
132
  export interface Complete {
135
133
  /**
136
- * The ID of the material that was uploaded
134
+ * Material ID from presigned URL response
137
135
  */
138
136
  materialId: string;
139
137
 
140
138
  /**
141
- * The ID of the organization
142
- */
143
- organizationId: string;
144
-
145
- /**
146
- * The S3 key of the uploaded file
139
+ * S3 key from presigned URL response
147
140
  */
148
141
  s3Key: string;
149
142
  }
@@ -167,17 +160,12 @@ export interface UploadCreatePresignedURLResponse {
167
160
 
168
161
  export interface UploadCompleteUploadParams {
169
162
  /**
170
- * The ID of the material that was uploaded
163
+ * Material ID from presigned URL response
171
164
  */
172
165
  materialId: string;
173
166
 
174
167
  /**
175
- * The ID of the organization
176
- */
177
- organizationId: string;
178
-
179
- /**
180
- * The S3 key of the uploaded file
168
+ * S3 key from presigned URL response
181
169
  */
182
170
  s3Key: string;
183
171
  }
@@ -28,6 +28,7 @@ import { Embed, EmbedGetThemeParams, EmbedVerifyParams } from './embed/embed';
28
28
  import * as MaterialsAPI from './materials/materials';
29
29
  import {
30
30
  Content,
31
+ GeneratedMaterial,
31
32
  Material,
32
33
  MaterialBatchCreateParams,
33
34
  MaterialBatchCreateResponse,
@@ -35,7 +36,7 @@ import {
35
36
  MaterialCreateParams,
36
37
  MaterialDebugResponse,
37
38
  MaterialGenerateAndProcessParams,
38
- MaterialGenerateAndProcessResponse,
39
+ MaterialGenerateParams,
39
40
  MaterialGetDownloadURLParams,
40
41
  MaterialGetDownloadURLResponse,
41
42
  MaterialListParams,
@@ -46,8 +47,6 @@ import {
46
47
  MaterialSearchResponse,
47
48
  Materials,
48
49
  } from './materials/materials';
49
- import * as UploadAPI from './upload/upload';
50
- import { Upload } from './upload/upload';
51
50
  import * as UsageAPI from './usage/usage';
52
51
  import { Usage, UsageGetStatsParams, UsageGetSummaryParams, UsageListEventsParams } from './usage/usage';
53
52
  import { APIPromise } from '../../core/api-promise';
@@ -60,7 +59,6 @@ export class V1 extends APIResource {
60
59
  components: ComponentsAPI.Components = new ComponentsAPI.Components(this._client);
61
60
  usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
62
61
  embed: EmbedAPI.Embed = new EmbedAPI.Embed(this._client);
63
- upload: UploadAPI.Upload = new UploadAPI.Upload(this._client);
64
62
  assignmentGrader: AssignmentGraderAPI.AssignmentGrader = new AssignmentGraderAPI.AssignmentGrader(
65
63
  this._client,
66
64
  );
@@ -87,7 +85,6 @@ V1.Folders = Folders;
87
85
  V1.Components = Components;
88
86
  V1.Usage = Usage;
89
87
  V1.Embed = Embed;
90
- V1.Upload = Upload;
91
88
  V1.AssignmentGrader = AssignmentGrader;
92
89
  V1.Chat = Chat;
93
90
 
@@ -95,17 +92,18 @@ export declare namespace V1 {
95
92
  export {
96
93
  Materials as Materials,
97
94
  type Content as Content,
95
+ type GeneratedMaterial as GeneratedMaterial,
98
96
  type Material as Material,
99
97
  type MaterialListResponse as MaterialListResponse,
100
98
  type MaterialBatchCreateResponse as MaterialBatchCreateResponse,
101
99
  type MaterialDebugResponse as MaterialDebugResponse,
102
- type MaterialGenerateAndProcessResponse as MaterialGenerateAndProcessResponse,
103
100
  type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse,
104
101
  type MaterialSearchResponse as MaterialSearchResponse,
105
102
  type MaterialCreateParams as MaterialCreateParams,
106
103
  type MaterialListParams as MaterialListParams,
107
104
  type MaterialBatchCreateParams as MaterialBatchCreateParams,
108
105
  type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
106
+ type MaterialGenerateParams as MaterialGenerateParams,
109
107
  type MaterialGenerateAndProcessParams as MaterialGenerateAndProcessParams,
110
108
  type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
111
109
  type MaterialMoveParams as MaterialMoveParams,
@@ -144,8 +142,6 @@ export declare namespace V1 {
144
142
  type EmbedVerifyParams as EmbedVerifyParams,
145
143
  };
146
144
 
147
- export { Upload as Upload };
148
-
149
145
  export {
150
146
  AssignmentGrader as AssignmentGrader,
151
147
  type AssignmentGraderResponse as AssignmentGraderResponse,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.29.0'; // x-release-please-version
1
+ export const VERSION = '1.31.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.29.0";
1
+ export declare const VERSION = "1.31.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.29.0";
1
+ export declare const VERSION = "1.31.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.29.0'; // x-release-please-version
4
+ exports.VERSION = '1.31.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.29.0'; // x-release-please-version
1
+ export const VERSION = '1.31.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map