@studyfetch/sdk 1.23.0 → 1.25.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 +16 -0
- package/package.json +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- 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 +224 -29
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +224 -29
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +47 -44
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +49 -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 +66 -5
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +66 -5
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +21 -13
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +21 -13
- package/resources/v1/materials/upload.mjs.map +1 -1
- package/resources/v1/upload/component.d.mts +26 -47
- package/resources/v1/upload/component.d.mts.map +1 -1
- package/resources/v1/upload/component.d.ts +26 -47
- package/resources/v1/upload/component.d.ts.map +1 -1
- package/resources/v1/upload/component.js +11 -10
- package/resources/v1/upload/component.js.map +1 -1
- package/resources/v1/upload/component.mjs +11 -10
- package/resources/v1/upload/component.mjs.map +1 -1
- package/resources/v1/upload/index.d.mts +1 -1
- package/resources/v1/upload/index.d.mts.map +1 -1
- package/resources/v1/upload/index.d.ts +1 -1
- package/resources/v1/upload/index.d.ts.map +1 -1
- package/resources/v1/upload/index.js.map +1 -1
- package/resources/v1/upload/index.mjs.map +1 -1
- package/resources/v1/upload/upload.d.mts +2 -2
- package/resources/v1/upload/upload.d.mts.map +1 -1
- package/resources/v1/upload/upload.d.ts +2 -2
- package/resources/v1/upload/upload.d.ts.map +1 -1
- package/resources/v1/upload/upload.js.map +1 -1
- package/resources/v1/upload/upload.mjs.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/index.ts +7 -0
- package/src/resources/v1/materials/bulk.ts +36 -7
- package/src/resources/v1/materials/index.ts +23 -3
- package/src/resources/v1/materials/materials.ts +302 -58
- package/src/resources/v1/materials/test.ts +141 -25
- package/src/resources/v1/materials/upload.ts +86 -13
- package/src/resources/v1/upload/component.ts +26 -53
- package/src/resources/v1/upload/index.ts +1 -2
- package/src/resources/v1/upload/upload.ts +2 -4
- package/src/resources/v1/v1.ts +14 -0
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.25.0 (2025-07-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.24.0...v1.25.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.24.0...v1.25.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([101d05e](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/101d05e260c9e95937de3377476ea44b8436837c))
|
|
10
|
+
|
|
11
|
+
## 1.24.0 (2025-07-21)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.23.0...v1.24.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.23.0...v1.24.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([09b0dfc](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/09b0dfc4d822945ba7b249be4f94a987bbf90c6a))
|
|
18
|
+
|
|
3
19
|
## 1.23.0 (2025-07-21)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.22.0...v1.23.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.22.0...v1.23.0)
|
package/package.json
CHANGED
package/resources/v1/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from "./embed
|
|
|
6
6
|
export { Explainers, type ExplainerCreateParams, type ExplainerHandleWebhookParams } from "./explainers.mjs";
|
|
7
7
|
export { Flashcards, type FlashcardBatchProcessResponse, type FlashcardGetAlgorithmResponse, type FlashcardGetTypesResponse, type FlashcardBatchProcessParams, type FlashcardGetAllParams, type FlashcardGetDueParams, type FlashcardGetStatsParams, type FlashcardRateParams, } from "./flashcards.mjs";
|
|
8
8
|
export { Folders, type FolderCreateParams, type FolderUpdateParams, type FolderListParams } from "./folders.mjs";
|
|
9
|
-
export { Materials, type Material, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, type MaterialSearchParams, } from "./materials/index.mjs";
|
|
9
|
+
export { Materials, type Material, type MaterialListResponse, type MaterialBatchCreateResponse, type MaterialDebugResponse, type MaterialGetDownloadURLResponse, type MaterialSearchResponse, type MaterialCreateParams, type MaterialListParams, type MaterialBatchCreateParams, type MaterialGetDownloadURLParams, type MaterialMoveParams, type MaterialRenameParams, type MaterialSearchParams, } from "./materials/index.mjs";
|
|
10
10
|
export { Scenarios, type Scenario, type UpdateScenario, type ScenarioCreateParams, type ScenarioUpdateParams, type ScenarioSubmitAnswerParams, } from "./scenarios/index.mjs";
|
|
11
11
|
export { Tests, type TestCreateParams, type TestRetakeParams, type TestSubmitParams, type TestSubmitAnswerParams, } from "./tests/index.mjs";
|
|
12
12
|
export { Upload } from "./upload/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC;OACM,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC;OACM,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC3D,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,4BAA4B,EAAE;OAC7E,EACL,UAAU,EACV,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OACpF,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC;OACM,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC;OACM,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC3D,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,4BAA4B,EAAE;OAC7E,EACL,UAAU,EACV,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OACpF,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from "./embed
|
|
|
6
6
|
export { Explainers, type ExplainerCreateParams, type ExplainerHandleWebhookParams } from "./explainers.js";
|
|
7
7
|
export { Flashcards, type FlashcardBatchProcessResponse, type FlashcardGetAlgorithmResponse, type FlashcardGetTypesResponse, type FlashcardBatchProcessParams, type FlashcardGetAllParams, type FlashcardGetDueParams, type FlashcardGetStatsParams, type FlashcardRateParams, } from "./flashcards.js";
|
|
8
8
|
export { Folders, type FolderCreateParams, type FolderUpdateParams, type FolderListParams } from "./folders.js";
|
|
9
|
-
export { Materials, type Material, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, type MaterialSearchParams, } from "./materials/index.js";
|
|
9
|
+
export { Materials, type Material, type MaterialListResponse, type MaterialBatchCreateResponse, type MaterialDebugResponse, type MaterialGetDownloadURLResponse, type MaterialSearchResponse, type MaterialCreateParams, type MaterialListParams, type MaterialBatchCreateParams, type MaterialGetDownloadURLParams, type MaterialMoveParams, type MaterialRenameParams, type MaterialSearchParams, } from "./materials/index.js";
|
|
10
10
|
export { Scenarios, type Scenario, type UpdateScenario, type ScenarioCreateParams, type ScenarioUpdateParams, type ScenarioSubmitAnswerParams, } from "./scenarios/index.js";
|
|
11
11
|
export { Tests, type TestCreateParams, type TestRetakeParams, type TestSubmitParams, type TestSubmitAnswerParams, } from "./tests/index.js";
|
|
12
12
|
export { Upload } from "./upload/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC;OACM,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC;OACM,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC3D,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,4BAA4B,EAAE;OAC7E,EACL,UAAU,EACV,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OACpF,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC;OACM,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC;OACM,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC3D,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,4BAA4B,EAAE;OAC7E,EACL,UAAU,EACV,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OACpF,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAK6B;AAJ3B,qHAAA,gBAAgB,OAAA;AAKlB,iDAI8B;AAH5B,oGAAA,WAAW,OAAA;AAIb,yCAKsB;AAJpB,6FAAA,IAAI,OAAA;AAKN,8CASsB;AARpB,wGAAA,UAAU,OAAA;AASZ,0CAAwF;AAA/E,8FAAA,KAAK,OAAA;AACd,8CAAyG;AAAhG,wGAAA,UAAU,OAAA;AACnB,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,wCAA6G;AAApG,kGAAA,OAAO,OAAA;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAK6B;AAJ3B,qHAAA,gBAAgB,OAAA;AAKlB,iDAI8B;AAH5B,oGAAA,WAAW,OAAA;AAIb,yCAKsB;AAJpB,6FAAA,IAAI,OAAA;AAKN,8CASsB;AARpB,wGAAA,UAAU,OAAA;AASZ,0CAAwF;AAA/E,8FAAA,KAAK,OAAA;AACd,8CAAyG;AAAhG,wGAAA,UAAU,OAAA;AACnB,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,wCAA6G;AAApG,kGAAA,OAAO,OAAA;AAChB,8CAe2B;AAdzB,kGAAA,SAAS,OAAA;AAeX,8CAO2B;AANzB,kGAAA,SAAS,OAAA;AAOX,0CAMuB;AALrB,8FAAA,KAAK,OAAA;AAMP,2CAAwC;AAA/B,+FAAA,MAAM,OAAA;AACf,0CAKuB;AAJrB,8FAAA,KAAK,OAAA;AAKP,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gBAAgB,GAIjB;OACM,EACL,WAAW,GAGZ;OACM,EACL,IAAI,GAIL;OACM,EACL,UAAU,GAQX;OACM,EAAE,KAAK,EAAoD;OAC3D,EAAE,UAAU,EAAiE;OAC7E,EACL,UAAU,GASX;OACM,EAAE,OAAO,EAA2E;OACpF,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gBAAgB,GAIjB;OACM,EACL,WAAW,GAGZ;OACM,EACL,IAAI,GAIL;OACM,EACL,UAAU,GAQX;OACM,EAAE,KAAK,EAAoD;OAC3D,EAAE,UAAU,EAAiE;OAC7E,EACL,UAAU,GASX;OACM,EAAE,OAAO,EAA2E;OACpF,EACL,SAAS,GAcV;OACM,EACL,SAAS,GAMV;OACM,EACL,KAAK,GAKN;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,GAIN;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -3,11 +3,39 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class Bulk extends APIResource {
|
|
5
5
|
/**
|
|
6
|
+
* Bulk move materials to a different folder
|
|
7
|
+
*
|
|
6
8
|
* @example
|
|
7
9
|
* ```ts
|
|
8
|
-
* await client.v1.materials.bulk.move(
|
|
10
|
+
* const response = await client.v1.materials.bulk.move({
|
|
11
|
+
* folderId: 'folderId',
|
|
12
|
+
* materialIds: ['string'],
|
|
13
|
+
* });
|
|
9
14
|
* ```
|
|
10
15
|
*/
|
|
11
|
-
move(options?: RequestOptions): APIPromise<
|
|
16
|
+
move(body: BulkMoveParams, options?: RequestOptions): APIPromise<BulkMoveResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface BulkMoveResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Number of materials moved
|
|
21
|
+
*/
|
|
22
|
+
movedCount: number;
|
|
23
|
+
/**
|
|
24
|
+
* Operation success status
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface BulkMoveParams {
|
|
29
|
+
/**
|
|
30
|
+
* Target folder ID (null for root)
|
|
31
|
+
*/
|
|
32
|
+
folderId: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Array of material IDs to move
|
|
35
|
+
*/
|
|
36
|
+
materialIds: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Bulk {
|
|
39
|
+
export { type BulkMoveResponse as BulkMoveResponse, type BulkMoveParams as BulkMoveParams };
|
|
12
40
|
}
|
|
13
41
|
//# sourceMappingURL=bulk.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -3,11 +3,39 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
4
|
export declare class Bulk extends APIResource {
|
|
5
5
|
/**
|
|
6
|
+
* Bulk move materials to a different folder
|
|
7
|
+
*
|
|
6
8
|
* @example
|
|
7
9
|
* ```ts
|
|
8
|
-
* await client.v1.materials.bulk.move(
|
|
10
|
+
* const response = await client.v1.materials.bulk.move({
|
|
11
|
+
* folderId: 'folderId',
|
|
12
|
+
* materialIds: ['string'],
|
|
13
|
+
* });
|
|
9
14
|
* ```
|
|
10
15
|
*/
|
|
11
|
-
move(options?: RequestOptions): APIPromise<
|
|
16
|
+
move(body: BulkMoveParams, options?: RequestOptions): APIPromise<BulkMoveResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface BulkMoveResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Number of materials moved
|
|
21
|
+
*/
|
|
22
|
+
movedCount: number;
|
|
23
|
+
/**
|
|
24
|
+
* Operation success status
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface BulkMoveParams {
|
|
29
|
+
/**
|
|
30
|
+
* Target folder ID (null for root)
|
|
31
|
+
*/
|
|
32
|
+
folderId: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Array of material IDs to move
|
|
35
|
+
*/
|
|
36
|
+
materialIds: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Bulk {
|
|
39
|
+
export { type BulkMoveResponse as BulkMoveResponse, type BulkMoveParams as BulkMoveParams };
|
|
12
40
|
}
|
|
13
41
|
//# sourceMappingURL=bulk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -3,19 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Bulk = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
7
6
|
class Bulk extends resource_1.APIResource {
|
|
8
7
|
/**
|
|
8
|
+
* Bulk move materials to a different folder
|
|
9
|
+
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
11
|
-
* await client.v1.materials.bulk.move(
|
|
12
|
+
* const response = await client.v1.materials.bulk.move({
|
|
13
|
+
* folderId: 'folderId',
|
|
14
|
+
* materialIds: ['string'],
|
|
15
|
+
* });
|
|
12
16
|
* ```
|
|
13
17
|
*/
|
|
14
|
-
move(options) {
|
|
15
|
-
return this._client.post('/api/v1/materials/bulk/move', {
|
|
16
|
-
...options,
|
|
17
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
18
|
-
});
|
|
18
|
+
move(body, options) {
|
|
19
|
+
return this._client.post('/api/v1/materials/bulk/move', { body, ...options });
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
exports.Bulk = Bulk;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAfD,oBAeC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
3
|
export class Bulk extends APIResource {
|
|
5
4
|
/**
|
|
5
|
+
* Bulk move materials to a different folder
|
|
6
|
+
*
|
|
6
7
|
* @example
|
|
7
8
|
* ```ts
|
|
8
|
-
* await client.v1.materials.bulk.move(
|
|
9
|
+
* const response = await client.v1.materials.bulk.move({
|
|
10
|
+
* folderId: 'folderId',
|
|
11
|
+
* materialIds: ['string'],
|
|
12
|
+
* });
|
|
9
13
|
* ```
|
|
10
14
|
*/
|
|
11
|
-
move(options) {
|
|
12
|
-
return this._client.post('/api/v1/materials/bulk/move', {
|
|
13
|
-
...options,
|
|
14
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
15
|
-
});
|
|
15
|
+
move(body, options) {
|
|
16
|
+
return this._client.post('/api/v1/materials/bulk/move', { body, ...options });
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
//# sourceMappingURL=bulk.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Bulk } from "./bulk.mjs";
|
|
2
|
-
export { Materials, type Material, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, type MaterialSearchParams, } from "./materials.mjs";
|
|
3
|
-
export { Test } from "./test.mjs";
|
|
4
|
-
export { Upload, type UploadUploadFileParams, type UploadUploadFromURLParams } from "./upload.mjs";
|
|
1
|
+
export { Bulk, type BulkMoveResponse, type BulkMoveParams } from "./bulk.mjs";
|
|
2
|
+
export { Materials, type Material, type MaterialListResponse, type MaterialBatchCreateResponse, type MaterialDebugResponse, type MaterialGetDownloadURLResponse, type MaterialSearchResponse, type MaterialCreateParams, type MaterialListParams, type MaterialBatchCreateParams, type MaterialGetDownloadURLParams, type MaterialMoveParams, type MaterialRenameParams, type MaterialSearchParams, } from "./materials.mjs";
|
|
3
|
+
export { Test, type TestPerformOcrResponse, type TestProcessEpubResponse, type TestProcessImageResponse, type TestProcessVideoResponse, } from "./test.mjs";
|
|
4
|
+
export { Upload, type UploadCreatePresignedURLResponse, type UploadCompleteUploadParams, type UploadCreatePresignedURLParams, type UploadUploadFileParams, type UploadUploadFromURLParams, } from "./upload.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OACpD,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,IAAI,EACJ,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,MAAM,EACN,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Bulk } from "./bulk.js";
|
|
2
|
-
export { Materials, type Material, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, type MaterialSearchParams, } from "./materials.js";
|
|
3
|
-
export { Test } from "./test.js";
|
|
4
|
-
export { Upload, type UploadUploadFileParams, type UploadUploadFromURLParams } from "./upload.js";
|
|
1
|
+
export { Bulk, type BulkMoveResponse, type BulkMoveParams } from "./bulk.js";
|
|
2
|
+
export { Materials, type Material, type MaterialListResponse, type MaterialBatchCreateResponse, type MaterialDebugResponse, type MaterialGetDownloadURLResponse, type MaterialSearchResponse, type MaterialCreateParams, type MaterialListParams, type MaterialBatchCreateParams, type MaterialGetDownloadURLParams, type MaterialMoveParams, type MaterialRenameParams, type MaterialSearchParams, } from "./materials.js";
|
|
3
|
+
export { Test, type TestPerformOcrResponse, type TestProcessEpubResponse, type TestProcessImageResponse, type TestProcessVideoResponse, } from "./test.js";
|
|
4
|
+
export { Upload, type UploadCreatePresignedURLResponse, type UploadCompleteUploadParams, type UploadCreatePresignedURLParams, type UploadUploadFileParams, type UploadUploadFromURLParams, } from "./upload.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OACpD,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,IAAI,EACJ,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,MAAM,EACN,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA0E;AAAjE,4FAAA,IAAI,OAAA;AACb,4CAeqB;AAdnB,sGAAA,SAAS,OAAA;AAeX,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,sCAOkB;AANhB,gGAAA,MAAM,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Bulk } from "./bulk.mjs";
|
|
3
3
|
export { Materials, } from "./materials.mjs";
|
|
4
|
-
export { Test } from "./test.mjs";
|
|
5
|
-
export { Upload } from "./upload.mjs";
|
|
4
|
+
export { Test, } from "./test.mjs";
|
|
5
|
+
export { Upload, } from "./upload.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAA8C;OACpD,EACL,SAAS,GAcV;OACM,EACL,IAAI,GAKL;OACM,EACL,MAAM,GAMP"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as BulkAPI from "./bulk.mjs";
|
|
3
|
-
import { Bulk } from "./bulk.mjs";
|
|
3
|
+
import { Bulk, BulkMoveParams, BulkMoveResponse } from "./bulk.mjs";
|
|
4
4
|
import * as TestAPI from "./test.mjs";
|
|
5
|
-
import { Test } from "./test.mjs";
|
|
5
|
+
import { Test, TestPerformOcrResponse, TestProcessEpubResponse, TestProcessImageResponse, TestProcessVideoResponse } from "./test.mjs";
|
|
6
6
|
import * as UploadAPI from "./upload.mjs";
|
|
7
|
-
import { Upload, UploadUploadFileParams, UploadUploadFromURLParams } from "./upload.mjs";
|
|
7
|
+
import { Upload, UploadCompleteUploadParams, UploadCreatePresignedURLParams, UploadCreatePresignedURLResponse, UploadUploadFileParams, UploadUploadFromURLParams } from "./upload.mjs";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
9
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
10
|
export declare class Materials extends APIResource {
|
|
@@ -51,58 +51,84 @@ export declare class Materials extends APIResource {
|
|
|
51
51
|
*/
|
|
52
52
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
53
53
|
/**
|
|
54
|
+
* Create batch upload URLs for multiple materials
|
|
55
|
+
*
|
|
54
56
|
* @example
|
|
55
57
|
* ```ts
|
|
56
|
-
* await client.v1.materials.batchCreate(
|
|
58
|
+
* const response = await client.v1.materials.batchCreate({
|
|
59
|
+
* materials: [
|
|
60
|
+
* {
|
|
61
|
+
* contentType: 'application/pdf',
|
|
62
|
+
* filename: 'document.pdf',
|
|
63
|
+
* name: 'Chapter 1',
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* });
|
|
57
67
|
* ```
|
|
58
68
|
*/
|
|
59
|
-
batchCreate(options?: RequestOptions): APIPromise<
|
|
69
|
+
batchCreate(body: MaterialBatchCreateParams, options?: RequestOptions): APIPromise<MaterialBatchCreateResponse>;
|
|
60
70
|
/**
|
|
71
|
+
* Get debug information for a material including extracted content
|
|
72
|
+
*
|
|
61
73
|
* @example
|
|
62
74
|
* ```ts
|
|
63
|
-
* await client.v1.materials.debug('id');
|
|
75
|
+
* const response = await client.v1.materials.debug('id');
|
|
64
76
|
* ```
|
|
65
77
|
*/
|
|
66
|
-
debug(id: string, options?: RequestOptions): APIPromise<
|
|
78
|
+
debug(id: string, options?: RequestOptions): APIPromise<MaterialDebugResponse>;
|
|
67
79
|
/**
|
|
80
|
+
* Get temporary download URL for material
|
|
81
|
+
*
|
|
68
82
|
* @example
|
|
69
83
|
* ```ts
|
|
70
|
-
* await client.v1.materials.getDownloadURL(
|
|
71
|
-
*
|
|
72
|
-
*
|
|
84
|
+
* const response = await client.v1.materials.getDownloadURL(
|
|
85
|
+
* 'id',
|
|
86
|
+
* );
|
|
73
87
|
* ```
|
|
74
88
|
*/
|
|
75
|
-
getDownloadURL(id: string, query
|
|
89
|
+
getDownloadURL(id: string, query?: MaterialGetDownloadURLParams | null | undefined, options?: RequestOptions): APIPromise<MaterialGetDownloadURLResponse>;
|
|
76
90
|
/**
|
|
91
|
+
* Move material to a different folder
|
|
92
|
+
*
|
|
77
93
|
* @example
|
|
78
94
|
* ```ts
|
|
79
|
-
* await client.v1.materials.move('id'
|
|
95
|
+
* const material = await client.v1.materials.move('id', {
|
|
96
|
+
* folderId: 'folderId',
|
|
97
|
+
* });
|
|
80
98
|
* ```
|
|
81
99
|
*/
|
|
82
|
-
move(id: string, options?: RequestOptions): APIPromise<
|
|
100
|
+
move(id: string, body: MaterialMoveParams, options?: RequestOptions): APIPromise<Material>;
|
|
83
101
|
/**
|
|
102
|
+
* Rename a material
|
|
103
|
+
*
|
|
84
104
|
* @example
|
|
85
105
|
* ```ts
|
|
86
|
-
* await client.v1.materials.rename('id'
|
|
106
|
+
* const material = await client.v1.materials.rename('id', {
|
|
107
|
+
* name: 'New Material Name',
|
|
108
|
+
* });
|
|
87
109
|
* ```
|
|
88
110
|
*/
|
|
89
|
-
rename(id: string, options?: RequestOptions): APIPromise<
|
|
111
|
+
rename(id: string, body: MaterialRenameParams, options?: RequestOptions): APIPromise<Material>;
|
|
90
112
|
/**
|
|
113
|
+
* Reprocess material to regenerate embeddings and extract content
|
|
114
|
+
*
|
|
91
115
|
* @example
|
|
92
116
|
* ```ts
|
|
93
|
-
* await client.v1.materials.reprocess('id');
|
|
117
|
+
* const material = await client.v1.materials.reprocess('id');
|
|
94
118
|
* ```
|
|
95
119
|
*/
|
|
96
|
-
reprocess(id: string, options?: RequestOptions): APIPromise<
|
|
120
|
+
reprocess(id: string, options?: RequestOptions): APIPromise<Material>;
|
|
97
121
|
/**
|
|
98
|
-
* Search materials using RAG
|
|
122
|
+
* Search materials using RAG (Retrieval-Augmented Generation)
|
|
99
123
|
*
|
|
100
124
|
* @example
|
|
101
125
|
* ```ts
|
|
102
|
-
* await client.v1.materials.search({
|
|
126
|
+
* const response = await client.v1.materials.search({
|
|
127
|
+
* query: 'What is photosynthesis?',
|
|
128
|
+
* });
|
|
103
129
|
* ```
|
|
104
130
|
*/
|
|
105
|
-
search(body: MaterialSearchParams, options?: RequestOptions): APIPromise<
|
|
131
|
+
search(body: MaterialSearchParams, options?: RequestOptions): APIPromise<MaterialSearchResponse>;
|
|
106
132
|
}
|
|
107
133
|
export interface Material {
|
|
108
134
|
/**
|
|
@@ -165,6 +191,135 @@ export declare namespace Material {
|
|
|
165
191
|
}
|
|
166
192
|
}
|
|
167
193
|
export type MaterialListResponse = Array<Material>;
|
|
194
|
+
export type MaterialBatchCreateResponse = Array<MaterialBatchCreateResponse.MaterialBatchCreateResponseItem>;
|
|
195
|
+
export declare namespace MaterialBatchCreateResponse {
|
|
196
|
+
interface MaterialBatchCreateResponseItem {
|
|
197
|
+
/**
|
|
198
|
+
* Material ID
|
|
199
|
+
*/
|
|
200
|
+
materialId: string;
|
|
201
|
+
/**
|
|
202
|
+
* Material name
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
/**
|
|
206
|
+
* S3 key
|
|
207
|
+
*/
|
|
208
|
+
s3Key: string;
|
|
209
|
+
/**
|
|
210
|
+
* Presigned upload URL
|
|
211
|
+
*/
|
|
212
|
+
uploadUrl: string;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
export interface MaterialDebugResponse {
|
|
216
|
+
/**
|
|
217
|
+
* Content details
|
|
218
|
+
*/
|
|
219
|
+
content: unknown;
|
|
220
|
+
/**
|
|
221
|
+
* Content type
|
|
222
|
+
*/
|
|
223
|
+
contentType: string;
|
|
224
|
+
/**
|
|
225
|
+
* Processed images
|
|
226
|
+
*/
|
|
227
|
+
images: Array<MaterialDebugResponse.Image>;
|
|
228
|
+
/**
|
|
229
|
+
* Material ID
|
|
230
|
+
*/
|
|
231
|
+
materialId: string;
|
|
232
|
+
/**
|
|
233
|
+
* Material metadata
|
|
234
|
+
*/
|
|
235
|
+
metadata: unknown;
|
|
236
|
+
/**
|
|
237
|
+
* Material name
|
|
238
|
+
*/
|
|
239
|
+
name: string;
|
|
240
|
+
/**
|
|
241
|
+
* Processing status
|
|
242
|
+
*/
|
|
243
|
+
status: string;
|
|
244
|
+
/**
|
|
245
|
+
* Transcript structure for videos
|
|
246
|
+
*/
|
|
247
|
+
transcriptStructure: unknown | null;
|
|
248
|
+
}
|
|
249
|
+
export declare namespace MaterialDebugResponse {
|
|
250
|
+
interface Image {
|
|
251
|
+
id?: string;
|
|
252
|
+
description?: string;
|
|
253
|
+
pageIndex?: number;
|
|
254
|
+
s3Key?: string;
|
|
255
|
+
s3Url?: string;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
export interface MaterialGetDownloadURLResponse {
|
|
259
|
+
/**
|
|
260
|
+
* Temporary download URL
|
|
261
|
+
*/
|
|
262
|
+
downloadUrl: string;
|
|
263
|
+
}
|
|
264
|
+
export interface MaterialSearchResponse {
|
|
265
|
+
/**
|
|
266
|
+
* Whether results were filtered by scope
|
|
267
|
+
*/
|
|
268
|
+
filtered: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Original search query
|
|
271
|
+
*/
|
|
272
|
+
query: string;
|
|
273
|
+
/**
|
|
274
|
+
* Search results
|
|
275
|
+
*/
|
|
276
|
+
results: Array<MaterialSearchResponse.Result>;
|
|
277
|
+
/**
|
|
278
|
+
* Search scope
|
|
279
|
+
*/
|
|
280
|
+
scope: MaterialSearchResponse.Scope;
|
|
281
|
+
/**
|
|
282
|
+
* Total number of results
|
|
283
|
+
*/
|
|
284
|
+
totalResults: number;
|
|
285
|
+
}
|
|
286
|
+
export declare namespace MaterialSearchResponse {
|
|
287
|
+
interface Result {
|
|
288
|
+
/**
|
|
289
|
+
* Chunk index within the material
|
|
290
|
+
*/
|
|
291
|
+
chunkIndex: number;
|
|
292
|
+
/**
|
|
293
|
+
* Material information
|
|
294
|
+
*/
|
|
295
|
+
material: Result.Material | null;
|
|
296
|
+
/**
|
|
297
|
+
* Relevance score (0-1)
|
|
298
|
+
*/
|
|
299
|
+
score: number;
|
|
300
|
+
/**
|
|
301
|
+
* Matched text chunk
|
|
302
|
+
*/
|
|
303
|
+
text: string;
|
|
304
|
+
}
|
|
305
|
+
namespace Result {
|
|
306
|
+
/**
|
|
307
|
+
* Material information
|
|
308
|
+
*/
|
|
309
|
+
interface Material {
|
|
310
|
+
id?: string;
|
|
311
|
+
contentType?: string;
|
|
312
|
+
name?: string;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Search scope
|
|
317
|
+
*/
|
|
318
|
+
interface Scope {
|
|
319
|
+
folderIds?: Array<string>;
|
|
320
|
+
materialIds?: Array<string>;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
168
323
|
export interface MaterialCreateParams {
|
|
169
324
|
/**
|
|
170
325
|
* Content details
|
|
@@ -208,8 +363,49 @@ export interface MaterialListParams {
|
|
|
208
363
|
*/
|
|
209
364
|
folderId?: string;
|
|
210
365
|
}
|
|
366
|
+
export interface MaterialBatchCreateParams {
|
|
367
|
+
/**
|
|
368
|
+
* Array of materials to create
|
|
369
|
+
*/
|
|
370
|
+
materials: Array<MaterialBatchCreateParams.Material>;
|
|
371
|
+
}
|
|
372
|
+
export declare namespace MaterialBatchCreateParams {
|
|
373
|
+
interface Material {
|
|
374
|
+
/**
|
|
375
|
+
* MIME type
|
|
376
|
+
*/
|
|
377
|
+
contentType: string;
|
|
378
|
+
/**
|
|
379
|
+
* Filename
|
|
380
|
+
*/
|
|
381
|
+
filename: string;
|
|
382
|
+
/**
|
|
383
|
+
* Material name
|
|
384
|
+
*/
|
|
385
|
+
name: string;
|
|
386
|
+
/**
|
|
387
|
+
* Folder ID
|
|
388
|
+
*/
|
|
389
|
+
folderId?: string;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
211
392
|
export interface MaterialGetDownloadURLParams {
|
|
212
|
-
|
|
393
|
+
/**
|
|
394
|
+
* URL expiration time in seconds (default: 3600)
|
|
395
|
+
*/
|
|
396
|
+
expiresIn?: number;
|
|
397
|
+
}
|
|
398
|
+
export interface MaterialMoveParams {
|
|
399
|
+
/**
|
|
400
|
+
* Target folder ID (null for root)
|
|
401
|
+
*/
|
|
402
|
+
folderId: string | null;
|
|
403
|
+
}
|
|
404
|
+
export interface MaterialRenameParams {
|
|
405
|
+
/**
|
|
406
|
+
* New name for the material
|
|
407
|
+
*/
|
|
408
|
+
name: string;
|
|
213
409
|
}
|
|
214
410
|
export interface MaterialSearchParams {
|
|
215
411
|
/**
|
|
@@ -217,23 +413,22 @@ export interface MaterialSearchParams {
|
|
|
217
413
|
*/
|
|
218
414
|
query: string;
|
|
219
415
|
/**
|
|
220
|
-
*
|
|
221
|
-
* subfolders)
|
|
416
|
+
* Limit search to materials within specific folders (includes subfolders)
|
|
222
417
|
*/
|
|
223
418
|
folderIds?: Array<string>;
|
|
224
419
|
/**
|
|
225
|
-
*
|
|
420
|
+
* Limit search to specific material IDs
|
|
226
421
|
*/
|
|
227
422
|
materialIds?: Array<string>;
|
|
228
423
|
/**
|
|
229
|
-
* Number of results to return
|
|
424
|
+
* Number of results to return
|
|
230
425
|
*/
|
|
231
426
|
topK?: number;
|
|
232
427
|
}
|
|
233
428
|
export declare namespace Materials {
|
|
234
|
-
export { type Material as Material, type MaterialListResponse as MaterialListResponse, type MaterialCreateParams as MaterialCreateParams, type MaterialListParams as MaterialListParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, type MaterialSearchParams as MaterialSearchParams, };
|
|
235
|
-
export { Upload as Upload, type UploadUploadFileParams as UploadUploadFileParams, type UploadUploadFromURLParams as UploadUploadFromURLParams, };
|
|
236
|
-
export { Bulk as Bulk };
|
|
237
|
-
export { Test as Test };
|
|
429
|
+
export { 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 MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, type MaterialMoveParams as MaterialMoveParams, type MaterialRenameParams as MaterialRenameParams, type MaterialSearchParams as MaterialSearchParams, };
|
|
430
|
+
export { Upload as Upload, type UploadCreatePresignedURLResponse as UploadCreatePresignedURLResponse, type UploadCompleteUploadParams as UploadCompleteUploadParams, type UploadCreatePresignedURLParams as UploadCreatePresignedURLParams, type UploadUploadFileParams as UploadUploadFileParams, type UploadUploadFromURLParams as UploadUploadFromURLParams, };
|
|
431
|
+
export { Bulk as Bulk, type BulkMoveResponse as BulkMoveResponse, type BulkMoveParams as BulkMoveParams };
|
|
432
|
+
export { Test as Test, type TestPerformOcrResponse as TestPerformOcrResponse, type TestProcessEpubResponse as TestProcessEpubResponse, type TestProcessImageResponse as TestProcessImageResponse, type TestProcessVideoResponse as TestProcessVideoResponse, };
|
|
238
433
|
}
|
|
239
434
|
//# sourceMappingURL=materials.d.mts.map
|