@mixedbread/sdk 0.11.1 → 0.13.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 +27 -0
- package/README.md +0 -31
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +9 -5
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +9 -5
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +16 -2
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +16 -2
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/data-sources/connectors.d.mts +106 -5
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +106 -5
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/data-sources/connectors.js +1 -2
- package/resources/data-sources/connectors.js.map +1 -1
- package/resources/data-sources/connectors.mjs +1 -2
- package/resources/data-sources/connectors.mjs.map +1 -1
- package/resources/data-sources/data-sources.d.mts +108 -7
- package/resources/data-sources/data-sources.d.mts.map +1 -1
- package/resources/data-sources/data-sources.d.ts +108 -7
- package/resources/data-sources/data-sources.d.ts.map +1 -1
- package/resources/data-sources/data-sources.js +1 -2
- package/resources/data-sources/data-sources.js.map +1 -1
- package/resources/data-sources/data-sources.mjs +1 -2
- package/resources/data-sources/data-sources.mjs.map +1 -1
- package/resources/data-sources/index.d.mts +2 -2
- package/resources/data-sources/index.d.mts.map +1 -1
- package/resources/data-sources/index.d.ts +2 -2
- package/resources/data-sources/index.d.ts.map +1 -1
- package/resources/files.d.mts +107 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +107 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +1 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +1 -2
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/parsing/index.d.mts +1 -1
- package/resources/parsing/index.d.mts.map +1 -1
- package/resources/parsing/index.d.ts +1 -1
- package/resources/parsing/index.d.ts.map +1 -1
- package/resources/parsing/index.js.map +1 -1
- package/resources/parsing/index.mjs.map +1 -1
- package/resources/parsing/jobs.d.mts +134 -29
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +134 -29
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js +1 -2
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs +1 -2
- package/resources/parsing/jobs.mjs.map +1 -1
- package/resources/parsing/parsing.d.mts +2 -2
- package/resources/parsing/parsing.d.mts.map +1 -1
- package/resources/parsing/parsing.d.ts +2 -2
- package/resources/parsing/parsing.d.ts.map +1 -1
- package/resources/parsing/parsing.js.map +1 -1
- package/resources/parsing/parsing.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +103 -5
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +103 -5
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +1 -2
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +1 -2
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.mts +2 -2
- package/resources/vector-stores/index.d.mts.map +1 -1
- package/resources/vector-stores/index.d.ts +2 -2
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +105 -7
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +105 -7
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +1 -2
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +1 -2
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/client.ts +6 -6
- package/src/core/pagination.ts +29 -8
- package/src/resources/data-sources/connectors.ts +118 -11
- package/src/resources/data-sources/data-sources.ts +120 -9
- package/src/resources/data-sources/index.ts +2 -2
- package/src/resources/files.ts +120 -7
- package/src/resources/index.ts +3 -3
- package/src/resources/parsing/index.ts +0 -1
- package/src/resources/parsing/jobs.ts +146 -34
- package/src/resources/parsing/parsing.ts +0 -2
- package/src/resources/vector-stores/files.ts +115 -11
- package/src/resources/vector-stores/index.ts +2 -2
- package/src/resources/vector-stores/vector-stores.ts +117 -9
- 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/index.d.mts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
export * from "./shared.mjs";
|
2
2
|
export { APIKeys, type APIKey, type APIKeyCreated, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyListParams, type APIKeysLimitOffset, } from "./api-keys.mjs";
|
3
3
|
export { Chat, type ChatCreateCompletionResponse } from "./chat.mjs";
|
4
|
-
export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams,
|
4
|
+
export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceListResponse, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, } from "./data-sources/data-sources.mjs";
|
5
5
|
export { Embeddings, type EncodingFormat, type ObjectType, type EmbeddingCreateParams } from "./embeddings.mjs";
|
6
6
|
export { Extractions } from "./extractions/extractions.mjs";
|
7
|
-
export { Files, type FileObject, type PaginationWithTotal, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams,
|
7
|
+
export { Files, type FileObject, type PaginationWithTotal, type FileListResponse, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, } from "./files.mjs";
|
8
8
|
export { Parsing } from "./parsing/parsing.mjs";
|
9
|
-
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams,
|
9
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreListResponse, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, } from "./vector-stores/vector-stores.mjs";
|
10
10
|
export { type Embedding, type EmbeddingCreateResponse, type MultiEncodingEmbedding, type InfoResponse, type RerankResponse, type EmbedParams, type RerankParams, } from "./top-level.mjs";
|
11
11
|
//# sourceMappingURL=index.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB;OACM,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE;OAC3C,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB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C,EACvC,KAAK,uBAAuB,GAC7B;OACM,EACL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB"}
|
package/resources/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
export * from "./shared.js";
|
2
2
|
export { APIKeys, type APIKey, type APIKeyCreated, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyListParams, type APIKeysLimitOffset, } from "./api-keys.js";
|
3
3
|
export { Chat, type ChatCreateCompletionResponse } from "./chat.js";
|
4
|
-
export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams,
|
4
|
+
export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceListResponse, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, } from "./data-sources/data-sources.js";
|
5
5
|
export { Embeddings, type EncodingFormat, type ObjectType, type EmbeddingCreateParams } from "./embeddings.js";
|
6
6
|
export { Extractions } from "./extractions/extractions.js";
|
7
|
-
export { Files, type FileObject, type PaginationWithTotal, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams,
|
7
|
+
export { Files, type FileObject, type PaginationWithTotal, type FileListResponse, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, } from "./files.js";
|
8
8
|
export { Parsing } from "./parsing/parsing.js";
|
9
|
-
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams,
|
9
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreListResponse, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, } from "./vector-stores/vector-stores.js";
|
10
10
|
export { type Embedding, type EmbeddingCreateResponse, type MultiEncodingEmbedding, type InfoResponse, type RerankResponse, type EmbedParams, type RerankParams, } from "./top-level.js";
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB;OACM,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE;OAC3C,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB;OACM,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE;OAC3C,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,qBAAqB,EAAE;OAChF,EAAE,WAAW,EAAE;OACf,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB;OACM,EAAE,OAAO,EAAE;OACX,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,GAC7B;OACM,EACL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams,
|
1
|
+
export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams, } from "./jobs.mjs";
|
2
2
|
export { Parsing } from "./parsing.mjs";
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EAAE,OAAO,EAAE"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams,
|
1
|
+
export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams, } from "./jobs.js";
|
2
2
|
export { Parsing } from "./parsing.js";
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EAAE,OAAO,EAAE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAWgB;AAVd,4FAAA,IAAI,OAAA;AAWN,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAUL;OACM,EAAE,OAAO,EAAE"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
2
2
|
import * as JobsAPI from "./jobs.mjs";
|
3
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
4
|
-
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
5
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
6
5
|
import { Uploadable } from "../../core/uploads.mjs";
|
7
6
|
export declare class Jobs extends APIResource {
|
@@ -28,7 +27,7 @@ export declare class Jobs extends APIResource {
|
|
28
27
|
*
|
29
28
|
* Returns: List of parsing jobs with pagination.
|
30
29
|
*/
|
31
|
-
list(query?: JobListParams | null | undefined, options?: RequestOptions):
|
30
|
+
list(query?: JobListParams | null | undefined, options?: RequestOptions): APIPromise<JobListResponse>;
|
32
31
|
/**
|
33
32
|
* Delete a specific parse job.
|
34
33
|
*
|
@@ -87,7 +86,6 @@ export declare class Jobs extends APIResource {
|
|
87
86
|
*/
|
88
87
|
uploadAndPoll(file: Uploadable, body?: Omit<JobCreateParams, 'file_id'>, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<ParsingJob>;
|
89
88
|
}
|
90
|
-
export type JobListResponsesCursor = Cursor<JobListResponse>;
|
91
89
|
/**
|
92
90
|
* Strategy used for chunking document content.
|
93
91
|
*/
|
@@ -224,41 +222,126 @@ export declare namespace ParsingJob {
|
|
224
222
|
*/
|
225
223
|
export type ReturnFormat = 'html' | 'markdown' | 'plain';
|
226
224
|
/**
|
227
|
-
* A
|
225
|
+
* A list of parsing jobs with pagination.
|
228
226
|
*/
|
229
227
|
export interface JobListResponse {
|
230
228
|
/**
|
231
|
-
*
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
*
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
*
|
229
|
+
* Response model for cursor-based pagination.
|
230
|
+
*
|
231
|
+
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
232
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
233
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
234
|
+
*
|
235
|
+
* Final page response:
|
236
|
+
* {
|
237
|
+
* "has_more": false,
|
238
|
+
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
239
|
+
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
240
|
+
* "total": 42
|
241
|
+
* }
|
242
|
+
*
|
243
|
+
* Empty results:
|
244
|
+
* {
|
245
|
+
* "has_more": false,
|
246
|
+
* "first_cursor": null,
|
247
|
+
* "last_cursor": null,
|
248
|
+
* "total": 0
|
249
|
+
* }
|
240
250
|
*/
|
241
|
-
|
251
|
+
pagination: JobListResponse.Pagination;
|
242
252
|
/**
|
243
|
-
* The
|
253
|
+
* The list of parsing jobs
|
244
254
|
*/
|
245
|
-
|
255
|
+
data: Array<JobListResponse.Data>;
|
246
256
|
/**
|
247
|
-
* The
|
257
|
+
* The object type of the response
|
248
258
|
*/
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
*/
|
253
|
-
created_at?: string;
|
259
|
+
object?: 'list';
|
260
|
+
}
|
261
|
+
export declare namespace JobListResponse {
|
254
262
|
/**
|
255
|
-
*
|
256
|
-
|
257
|
-
|
263
|
+
* Response model for cursor-based pagination.
|
264
|
+
*
|
265
|
+
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
266
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
267
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
268
|
+
*
|
269
|
+
* Final page response:
|
270
|
+
* {
|
271
|
+
* "has_more": false,
|
272
|
+
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
273
|
+
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
274
|
+
* "total": 42
|
275
|
+
* }
|
276
|
+
*
|
277
|
+
* Empty results:
|
278
|
+
* {
|
279
|
+
* "has_more": false,
|
280
|
+
* "first_cursor": null,
|
281
|
+
* "last_cursor": null,
|
282
|
+
* "total": 0
|
283
|
+
* }
|
284
|
+
*/
|
285
|
+
interface Pagination {
|
286
|
+
/**
|
287
|
+
* Contextual direction-aware flag: True if more items exist in the requested
|
288
|
+
* pagination direction. For 'after': more items after this page. For 'before':
|
289
|
+
* more items before this page.
|
290
|
+
*/
|
291
|
+
has_more: boolean;
|
292
|
+
/**
|
293
|
+
* Cursor of the first item in this page. Use for backward pagination. None if page
|
294
|
+
* is empty.
|
295
|
+
*/
|
296
|
+
first_cursor: string | null;
|
297
|
+
/**
|
298
|
+
* Cursor of the last item in this page. Use for forward pagination. None if page
|
299
|
+
* is empty.
|
300
|
+
*/
|
301
|
+
last_cursor: string | null;
|
302
|
+
/**
|
303
|
+
* Total number of items available across all pages. Only included when
|
304
|
+
* include_total=true was requested. Expensive operation - use sparingly.
|
305
|
+
*/
|
306
|
+
total?: number | null;
|
307
|
+
}
|
258
308
|
/**
|
259
|
-
*
|
309
|
+
* A parsing job item for list responses, omitting result and error fields.
|
260
310
|
*/
|
261
|
-
|
311
|
+
interface Data {
|
312
|
+
/**
|
313
|
+
* The ID of the job
|
314
|
+
*/
|
315
|
+
id: string;
|
316
|
+
/**
|
317
|
+
* The ID of the file to parse
|
318
|
+
*/
|
319
|
+
file_id: string;
|
320
|
+
/**
|
321
|
+
* The status of the job
|
322
|
+
*/
|
323
|
+
status: JobsAPI.ParsingJobStatus;
|
324
|
+
/**
|
325
|
+
* The started time of the job
|
326
|
+
*/
|
327
|
+
started_at?: string | null;
|
328
|
+
/**
|
329
|
+
* The finished time of the job
|
330
|
+
*/
|
331
|
+
finished_at?: string | null;
|
332
|
+
/**
|
333
|
+
* The creation time of the job
|
334
|
+
*/
|
335
|
+
created_at?: string;
|
336
|
+
/**
|
337
|
+
* The updated time of the job
|
338
|
+
*/
|
339
|
+
updated_at?: string | null;
|
340
|
+
/**
|
341
|
+
* The type of the object
|
342
|
+
*/
|
343
|
+
object?: 'parsing_job';
|
344
|
+
}
|
262
345
|
}
|
263
346
|
/**
|
264
347
|
* A deleted parsing job.
|
@@ -299,9 +382,31 @@ export interface JobCreateParams {
|
|
299
382
|
*/
|
300
383
|
mode?: 'fast' | 'high_quality';
|
301
384
|
}
|
302
|
-
export interface JobListParams
|
385
|
+
export interface JobListParams {
|
386
|
+
/**
|
387
|
+
* Maximum number of items to return per page (1-100)
|
388
|
+
*/
|
389
|
+
limit?: number;
|
390
|
+
/**
|
391
|
+
* Cursor for forward pagination - get items after this position. Use last_cursor
|
392
|
+
* from previous response.
|
393
|
+
*/
|
394
|
+
after?: string | null;
|
395
|
+
/**
|
396
|
+
* Cursor for backward pagination - get items before this position. Use
|
397
|
+
* first_cursor from previous response.
|
398
|
+
*/
|
399
|
+
before?: string | null;
|
400
|
+
/**
|
401
|
+
* Whether to include total count in response (expensive operation)
|
402
|
+
*/
|
403
|
+
include_total?: boolean;
|
404
|
+
/**
|
405
|
+
* Status to filter by
|
406
|
+
*/
|
407
|
+
statuses?: Array<ParsingJobStatus> | null;
|
303
408
|
}
|
304
409
|
export declare namespace Jobs {
|
305
|
-
export { type ChunkingStrategy as ChunkingStrategy, type ElementType as ElementType, type ParsingJobStatus as ParsingJobStatus, type ParsingJob as ParsingJob, type ReturnFormat as ReturnFormat, type JobListResponse as JobListResponse, type JobDeleteResponse as JobDeleteResponse, type
|
410
|
+
export { type ChunkingStrategy as ChunkingStrategy, type ElementType as ElementType, type ParsingJobStatus as ParsingJobStatus, type ParsingJob as ParsingJob, type ReturnFormat as ReturnFormat, type JobListResponse as JobListResponse, type JobDeleteResponse as JobDeleteResponse, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, };
|
306
411
|
}
|
307
412
|
//# sourceMappingURL=jobs.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jobs.d.mts","sourceRoot":"","sources":["../../src/resources/parsing/jobs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,
|
1
|
+
{"version":3,"file":"jobs.d.mts","sourceRoot":"","sources":["../../src/resources/parsing/jobs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;OAGlB,EAAE,UAAU,EAAE;AAErB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI/E;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIzE;;;;;;OAMG;IACH,IAAI,CAAC,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIzG;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI9E;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIvE;;;;;;;;OAQG;IACG,IAAI,CACR,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,MAAM,EACvB,aAAa,CAAC,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC;IAatB;;;;;;;;OAQG;IACG,aAAa,CACjB,IAAI,EAAE,eAAe,EACrB,cAAc,CAAC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,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAE1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
2
2
|
import * as JobsAPI from "./jobs.js";
|
3
3
|
import { APIPromise } from "../../core/api-promise.js";
|
4
|
-
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
5
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
6
5
|
import { Uploadable } from "../../core/uploads.js";
|
7
6
|
export declare class Jobs extends APIResource {
|
@@ -28,7 +27,7 @@ export declare class Jobs extends APIResource {
|
|
28
27
|
*
|
29
28
|
* Returns: List of parsing jobs with pagination.
|
30
29
|
*/
|
31
|
-
list(query?: JobListParams | null | undefined, options?: RequestOptions):
|
30
|
+
list(query?: JobListParams | null | undefined, options?: RequestOptions): APIPromise<JobListResponse>;
|
32
31
|
/**
|
33
32
|
* Delete a specific parse job.
|
34
33
|
*
|
@@ -87,7 +86,6 @@ export declare class Jobs extends APIResource {
|
|
87
86
|
*/
|
88
87
|
uploadAndPoll(file: Uploadable, body?: Omit<JobCreateParams, 'file_id'>, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<ParsingJob>;
|
89
88
|
}
|
90
|
-
export type JobListResponsesCursor = Cursor<JobListResponse>;
|
91
89
|
/**
|
92
90
|
* Strategy used for chunking document content.
|
93
91
|
*/
|
@@ -224,41 +222,126 @@ export declare namespace ParsingJob {
|
|
224
222
|
*/
|
225
223
|
export type ReturnFormat = 'html' | 'markdown' | 'plain';
|
226
224
|
/**
|
227
|
-
* A
|
225
|
+
* A list of parsing jobs with pagination.
|
228
226
|
*/
|
229
227
|
export interface JobListResponse {
|
230
228
|
/**
|
231
|
-
*
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
*
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
*
|
229
|
+
* Response model for cursor-based pagination.
|
230
|
+
*
|
231
|
+
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
232
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
233
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
234
|
+
*
|
235
|
+
* Final page response:
|
236
|
+
* {
|
237
|
+
* "has_more": false,
|
238
|
+
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
239
|
+
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
240
|
+
* "total": 42
|
241
|
+
* }
|
242
|
+
*
|
243
|
+
* Empty results:
|
244
|
+
* {
|
245
|
+
* "has_more": false,
|
246
|
+
* "first_cursor": null,
|
247
|
+
* "last_cursor": null,
|
248
|
+
* "total": 0
|
249
|
+
* }
|
240
250
|
*/
|
241
|
-
|
251
|
+
pagination: JobListResponse.Pagination;
|
242
252
|
/**
|
243
|
-
* The
|
253
|
+
* The list of parsing jobs
|
244
254
|
*/
|
245
|
-
|
255
|
+
data: Array<JobListResponse.Data>;
|
246
256
|
/**
|
247
|
-
* The
|
257
|
+
* The object type of the response
|
248
258
|
*/
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
*/
|
253
|
-
created_at?: string;
|
259
|
+
object?: 'list';
|
260
|
+
}
|
261
|
+
export declare namespace JobListResponse {
|
254
262
|
/**
|
255
|
-
*
|
256
|
-
|
257
|
-
|
263
|
+
* Response model for cursor-based pagination.
|
264
|
+
*
|
265
|
+
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
266
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
267
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
268
|
+
*
|
269
|
+
* Final page response:
|
270
|
+
* {
|
271
|
+
* "has_more": false,
|
272
|
+
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
273
|
+
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
274
|
+
* "total": 42
|
275
|
+
* }
|
276
|
+
*
|
277
|
+
* Empty results:
|
278
|
+
* {
|
279
|
+
* "has_more": false,
|
280
|
+
* "first_cursor": null,
|
281
|
+
* "last_cursor": null,
|
282
|
+
* "total": 0
|
283
|
+
* }
|
284
|
+
*/
|
285
|
+
interface Pagination {
|
286
|
+
/**
|
287
|
+
* Contextual direction-aware flag: True if more items exist in the requested
|
288
|
+
* pagination direction. For 'after': more items after this page. For 'before':
|
289
|
+
* more items before this page.
|
290
|
+
*/
|
291
|
+
has_more: boolean;
|
292
|
+
/**
|
293
|
+
* Cursor of the first item in this page. Use for backward pagination. None if page
|
294
|
+
* is empty.
|
295
|
+
*/
|
296
|
+
first_cursor: string | null;
|
297
|
+
/**
|
298
|
+
* Cursor of the last item in this page. Use for forward pagination. None if page
|
299
|
+
* is empty.
|
300
|
+
*/
|
301
|
+
last_cursor: string | null;
|
302
|
+
/**
|
303
|
+
* Total number of items available across all pages. Only included when
|
304
|
+
* include_total=true was requested. Expensive operation - use sparingly.
|
305
|
+
*/
|
306
|
+
total?: number | null;
|
307
|
+
}
|
258
308
|
/**
|
259
|
-
*
|
309
|
+
* A parsing job item for list responses, omitting result and error fields.
|
260
310
|
*/
|
261
|
-
|
311
|
+
interface Data {
|
312
|
+
/**
|
313
|
+
* The ID of the job
|
314
|
+
*/
|
315
|
+
id: string;
|
316
|
+
/**
|
317
|
+
* The ID of the file to parse
|
318
|
+
*/
|
319
|
+
file_id: string;
|
320
|
+
/**
|
321
|
+
* The status of the job
|
322
|
+
*/
|
323
|
+
status: JobsAPI.ParsingJobStatus;
|
324
|
+
/**
|
325
|
+
* The started time of the job
|
326
|
+
*/
|
327
|
+
started_at?: string | null;
|
328
|
+
/**
|
329
|
+
* The finished time of the job
|
330
|
+
*/
|
331
|
+
finished_at?: string | null;
|
332
|
+
/**
|
333
|
+
* The creation time of the job
|
334
|
+
*/
|
335
|
+
created_at?: string;
|
336
|
+
/**
|
337
|
+
* The updated time of the job
|
338
|
+
*/
|
339
|
+
updated_at?: string | null;
|
340
|
+
/**
|
341
|
+
* The type of the object
|
342
|
+
*/
|
343
|
+
object?: 'parsing_job';
|
344
|
+
}
|
262
345
|
}
|
263
346
|
/**
|
264
347
|
* A deleted parsing job.
|
@@ -299,9 +382,31 @@ export interface JobCreateParams {
|
|
299
382
|
*/
|
300
383
|
mode?: 'fast' | 'high_quality';
|
301
384
|
}
|
302
|
-
export interface JobListParams
|
385
|
+
export interface JobListParams {
|
386
|
+
/**
|
387
|
+
* Maximum number of items to return per page (1-100)
|
388
|
+
*/
|
389
|
+
limit?: number;
|
390
|
+
/**
|
391
|
+
* Cursor for forward pagination - get items after this position. Use last_cursor
|
392
|
+
* from previous response.
|
393
|
+
*/
|
394
|
+
after?: string | null;
|
395
|
+
/**
|
396
|
+
* Cursor for backward pagination - get items before this position. Use
|
397
|
+
* first_cursor from previous response.
|
398
|
+
*/
|
399
|
+
before?: string | null;
|
400
|
+
/**
|
401
|
+
* Whether to include total count in response (expensive operation)
|
402
|
+
*/
|
403
|
+
include_total?: boolean;
|
404
|
+
/**
|
405
|
+
* Status to filter by
|
406
|
+
*/
|
407
|
+
statuses?: Array<ParsingJobStatus> | null;
|
303
408
|
}
|
304
409
|
export declare namespace Jobs {
|
305
|
-
export { type ChunkingStrategy as ChunkingStrategy, type ElementType as ElementType, type ParsingJobStatus as ParsingJobStatus, type ParsingJob as ParsingJob, type ReturnFormat as ReturnFormat, type JobListResponse as JobListResponse, type JobDeleteResponse as JobDeleteResponse, type
|
410
|
+
export { type ChunkingStrategy as ChunkingStrategy, type ElementType as ElementType, type ParsingJobStatus as ParsingJobStatus, type ParsingJob as ParsingJob, type ReturnFormat as ReturnFormat, type JobListResponse as JobListResponse, type JobDeleteResponse as JobDeleteResponse, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, };
|
306
411
|
}
|
307
412
|
//# sourceMappingURL=jobs.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/parsing/jobs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/parsing/jobs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;OAGlB,EAAE,UAAU,EAAE;AAErB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI/E;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIzE;;;;;;OAMG;IACH,IAAI,CAAC,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIzG;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI9E;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIvE;;;;;;;;OAQG;IACG,IAAI,CACR,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,MAAM,EACvB,aAAa,CAAC,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC;IAatB;;;;;;;;OAQG;IACG,aAAa,CACjB,IAAI,EAAE,eAAe,EACrB,cAAc,CAAC,EAAE,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CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAE1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Jobs = void 0;
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
7
|
-
const pagination_1 = require("../../core/pagination.js");
|
8
7
|
const path_1 = require("../../internal/utils/path.js");
|
9
8
|
const polling = tslib_1.__importStar(require("../../lib/polling.js"));
|
10
9
|
class Jobs extends resource_1.APIResource {
|
@@ -36,7 +35,7 @@ class Jobs extends resource_1.APIResource {
|
|
36
35
|
* Returns: List of parsing jobs with pagination.
|
37
36
|
*/
|
38
37
|
list(query = {}, options) {
|
39
|
-
return this._client.
|
38
|
+
return this._client.get('/v1/parsing/jobs', { query, ...options });
|
40
39
|
}
|
41
40
|
/**
|
42
41
|
* Delete a specific parse job.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/parsing/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/parsing/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AACjD,sEAA6C;AAG7C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;OAMG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,KAAa,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,QAA0C,EAAE,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC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C,MAAM,CACV,IAAgB,EAChB,IAAuC,EACvC,OAAwB;QAExB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,MAAM,CAChB;YACE,OAAO,EAAE,kBAAkB,CAAC,EAAE;YAC9B,GAAG,IAAI;SACR,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,aAAa,CACjB,IAAgB,EAChB,IAAuC,EACvC,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAnJD,oBAmJC"}
|
@@ -1,6 +1,5 @@
|
|
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 { Cursor } from "../../core/pagination.mjs";
|
4
3
|
import { path } from "../../internal/utils/path.mjs";
|
5
4
|
import * as polling from "../../lib/polling.mjs";
|
6
5
|
export class Jobs extends APIResource {
|
@@ -32,7 +31,7 @@ export class Jobs extends APIResource {
|
|
32
31
|
* Returns: List of parsing jobs with pagination.
|
33
32
|
*/
|
34
33
|
list(query = {}, options) {
|
35
|
-
return this._client.
|
34
|
+
return this._client.get('/v1/parsing/jobs', { query, ...options });
|
36
35
|
}
|
37
36
|
/**
|
38
37
|
* Delete a specific parse job.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/parsing/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAA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