@llamaindex/llama-cloud 1.8.0 → 2.1.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 +72 -0
- package/README.md +10 -8
- package/client.d.mts +4 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -6
- package/client.d.ts.map +1 -1
- package/client.js +7 -6
- package/client.js.map +1 -1
- package/client.mjs +7 -6
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +0 -23
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -23
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -32
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -30
- package/core/pagination.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/beta/batch/batch.d.mts +55 -30
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts +55 -30
- package/resources/beta/batch/batch.d.ts.map +1 -1
- package/resources/beta/batch/batch.js +14 -11
- package/resources/beta/batch/batch.js.map +1 -1
- package/resources/beta/batch/batch.mjs +14 -11
- package/resources/beta/batch/batch.mjs.map +1 -1
- package/resources/beta/batch/job-items.d.mts +36 -13
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts +36 -13
- package/resources/beta/batch/job-items.d.ts.map +1 -1
- package/resources/beta/batch/job-items.js +6 -8
- package/resources/beta/batch/job-items.js.map +1 -1
- package/resources/beta/batch/job-items.mjs +6 -8
- package/resources/beta/batch/job-items.mjs.map +1 -1
- package/resources/beta/parse-configurations.d.mts +7 -9
- package/resources/beta/parse-configurations.d.mts.map +1 -1
- package/resources/beta/parse-configurations.d.ts +7 -9
- package/resources/beta/parse-configurations.d.ts.map +1 -1
- package/resources/beta/parse-configurations.js +7 -9
- package/resources/beta/parse-configurations.js.map +1 -1
- package/resources/beta/parse-configurations.mjs +7 -9
- package/resources/beta/parse-configurations.mjs.map +1 -1
- package/resources/beta/sheets.d.mts +16 -0
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +16 -0
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/split.d.mts +60 -16
- package/resources/beta/split.d.mts.map +1 -1
- package/resources/beta/split.d.ts +60 -16
- package/resources/beta/split.d.ts.map +1 -1
- package/resources/beta/split.js.map +1 -1
- package/resources/beta/split.mjs.map +1 -1
- package/resources/classifier/jobs.d.mts +12 -3
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +12 -3
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classify.d.mts +93 -38
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +93 -38
- package/resources/classify.d.ts.map +1 -1
- package/resources/classify.js +19 -2
- package/resources/classify.js.map +1 -1
- package/resources/classify.mjs +19 -2
- package/resources/classify.mjs.map +1 -1
- package/resources/extract.d.mts +1593 -0
- package/resources/extract.d.mts.map +1 -0
- package/resources/extract.d.ts +1593 -0
- package/resources/extract.d.ts.map +1 -0
- package/resources/extract.js +215 -0
- package/resources/extract.js.map +1 -0
- package/resources/extract.mjs +211 -0
- package/resources/extract.mjs.map +1 -0
- package/resources/files.d.mts +53 -39
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +53 -39
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +11 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +11 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/parsing.d.mts +292 -138
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +292 -138
- package/resources/parsing.d.ts.map +1 -1
- package/resources/parsing.js +30 -4
- package/resources/parsing.js.map +1 -1
- package/resources/parsing.mjs +30 -4
- package/resources/parsing.mjs.map +1 -1
- package/resources/pipelines/pipelines.d.mts +59 -13
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts +59 -13
- package/resources/pipelines/pipelines.d.ts.map +1 -1
- package/resources/pipelines/pipelines.js +24 -9
- package/resources/pipelines/pipelines.js.map +1 -1
- package/resources/pipelines/pipelines.mjs +24 -9
- package/resources/pipelines/pipelines.mjs.map +1 -1
- package/resources/pipelines/sync.d.mts +5 -3
- package/resources/pipelines/sync.d.mts.map +1 -1
- package/resources/pipelines/sync.d.ts +5 -3
- package/resources/pipelines/sync.d.ts.map +1 -1
- package/resources/pipelines/sync.js +5 -3
- package/resources/pipelines/sync.js.map +1 -1
- package/resources/pipelines/sync.mjs +5 -3
- package/resources/pipelines/sync.mjs.map +1 -1
- package/src/client.ts +50 -15
- package/src/core/pagination.ts +0 -71
- package/src/resources/beta/batch/batch.ts +75 -30
- package/src/resources/beta/batch/job-items.ts +56 -13
- package/src/resources/beta/parse-configurations.ts +7 -9
- package/src/resources/beta/sheets.ts +20 -0
- package/src/resources/beta/split.ts +70 -17
- package/src/resources/classifier/jobs.ts +12 -3
- package/src/resources/classify.ts +101 -38
- package/src/resources/extract.ts +2055 -0
- package/src/resources/files.ts +53 -39
- package/src/resources/index.ts +22 -1
- package/src/resources/parsing.ts +327 -136
- package/src/resources/pipelines/pipelines.ts +80 -14
- package/src/resources/pipelines/sync.ts +5 -3
- 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/extraction/extraction-agents/extraction-agents.d.mts +0 -126
- package/resources/extraction/extraction-agents/extraction-agents.d.mts.map +0 -1
- package/resources/extraction/extraction-agents/extraction-agents.d.ts +0 -126
- package/resources/extraction/extraction-agents/extraction-agents.d.ts.map +0 -1
- package/resources/extraction/extraction-agents/extraction-agents.js +0 -56
- package/resources/extraction/extraction-agents/extraction-agents.js.map +0 -1
- package/resources/extraction/extraction-agents/extraction-agents.mjs +0 -51
- package/resources/extraction/extraction-agents/extraction-agents.mjs.map +0 -1
- package/resources/extraction/extraction-agents/index.d.mts +0 -3
- package/resources/extraction/extraction-agents/index.d.mts.map +0 -1
- package/resources/extraction/extraction-agents/index.d.ts +0 -3
- package/resources/extraction/extraction-agents/index.d.ts.map +0 -1
- package/resources/extraction/extraction-agents/index.js +0 -9
- package/resources/extraction/extraction-agents/index.js.map +0 -1
- package/resources/extraction/extraction-agents/index.mjs +0 -4
- package/resources/extraction/extraction-agents/index.mjs.map +0 -1
- package/resources/extraction/extraction-agents/schema.d.mts +0 -75
- package/resources/extraction/extraction-agents/schema.d.mts.map +0 -1
- package/resources/extraction/extraction-agents/schema.d.ts +0 -75
- package/resources/extraction/extraction-agents/schema.d.ts.map +0 -1
- package/resources/extraction/extraction-agents/schema.js +0 -28
- package/resources/extraction/extraction-agents/schema.js.map +0 -1
- package/resources/extraction/extraction-agents/schema.mjs +0 -24
- package/resources/extraction/extraction-agents/schema.mjs.map +0 -1
- package/resources/extraction/extraction-agents.d.mts +0 -2
- package/resources/extraction/extraction-agents.d.mts.map +0 -1
- package/resources/extraction/extraction-agents.d.ts +0 -2
- package/resources/extraction/extraction-agents.d.ts.map +0 -1
- package/resources/extraction/extraction-agents.js +0 -6
- package/resources/extraction/extraction-agents.js.map +0 -1
- package/resources/extraction/extraction-agents.mjs +0 -3
- package/resources/extraction/extraction-agents.mjs.map +0 -1
- package/resources/extraction/extraction.d.mts +0 -118
- package/resources/extraction/extraction.d.mts.map +0 -1
- package/resources/extraction/extraction.d.ts +0 -118
- package/resources/extraction/extraction.d.ts.map +0 -1
- package/resources/extraction/extraction.js +0 -91
- package/resources/extraction/extraction.js.map +0 -1
- package/resources/extraction/extraction.mjs +0 -86
- package/resources/extraction/extraction.mjs.map +0 -1
- package/resources/extraction/index.d.mts +0 -5
- package/resources/extraction/index.d.mts.map +0 -1
- package/resources/extraction/index.d.ts +0 -5
- package/resources/extraction/index.d.ts.map +0 -1
- package/resources/extraction/index.js +0 -13
- package/resources/extraction/index.js.map +0 -1
- package/resources/extraction/index.mjs +0 -6
- package/resources/extraction/index.mjs.map +0 -1
- package/resources/extraction/jobs.d.mts +0 -280
- package/resources/extraction/jobs.d.mts.map +0 -1
- package/resources/extraction/jobs.d.ts +0 -280
- package/resources/extraction/jobs.d.ts.map +0 -1
- package/resources/extraction/jobs.js +0 -179
- package/resources/extraction/jobs.js.map +0 -1
- package/resources/extraction/jobs.mjs +0 -175
- package/resources/extraction/jobs.mjs.map +0 -1
- package/resources/extraction/runs.d.mts +0 -198
- package/resources/extraction/runs.d.mts.map +0 -1
- package/resources/extraction/runs.d.ts +0 -198
- package/resources/extraction/runs.d.ts.map +0 -1
- package/resources/extraction/runs.js +0 -42
- package/resources/extraction/runs.js.map +0 -1
- package/resources/extraction/runs.mjs +0 -38
- package/resources/extraction/runs.mjs.map +0 -1
- package/resources/extraction.d.mts +0 -2
- package/resources/extraction.d.mts.map +0 -1
- package/resources/extraction.d.ts +0 -2
- package/resources/extraction.d.ts.map +0 -1
- package/resources/extraction.js +0 -6
- package/resources/extraction.js.map +0 -1
- package/resources/extraction.mjs +0 -3
- package/resources/extraction.mjs.map +0 -1
- package/src/resources/extraction/extraction-agents/extraction-agents.ts +0 -196
- package/src/resources/extraction/extraction-agents/index.ts +0 -18
- package/src/resources/extraction/extraction-agents/schema.ts +0 -100
- package/src/resources/extraction/extraction-agents.ts +0 -3
- package/src/resources/extraction/extraction.ts +0 -224
- package/src/resources/extraction/index.ts +0 -34
- package/src/resources/extraction/jobs.ts +0 -414
- package/src/resources/extraction/runs.ts +0 -315
- package/src/resources/extraction.ts +0 -3
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as FilesAPI from "../files.mjs";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
-
import { PagePromise, PaginatedExtractRuns, type PaginatedExtractRunsParams } from "../../core/pagination.mjs";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
-
export declare class Runs extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* List Extract Runs
|
|
9
|
-
*/
|
|
10
|
-
list(query: RunListParams, options?: RequestOptions): PagePromise<ExtractRunsPaginatedExtractRuns, ExtractRun>;
|
|
11
|
-
/**
|
|
12
|
-
* Delete Extraction Run
|
|
13
|
-
*/
|
|
14
|
-
delete(runID: string, params?: RunDeleteParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
15
|
-
/**
|
|
16
|
-
* Get Run
|
|
17
|
-
*/
|
|
18
|
-
get(runID: string, query?: RunGetParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
|
|
19
|
-
/**
|
|
20
|
-
* Get Run By Job Id
|
|
21
|
-
*/
|
|
22
|
-
getByJob(jobID: string, query?: RunGetByJobParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
|
|
23
|
-
}
|
|
24
|
-
export type ExtractRunsPaginatedExtractRuns = PaginatedExtractRuns<ExtractRun>;
|
|
25
|
-
/**
|
|
26
|
-
* Configuration parameters for the extraction agent.
|
|
27
|
-
*/
|
|
28
|
-
export interface ExtractConfig {
|
|
29
|
-
/**
|
|
30
|
-
* The mode to use for chunking the document.
|
|
31
|
-
*/
|
|
32
|
-
chunk_mode?: 'PAGE' | 'SECTION';
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Whether to fetch citation bounding boxes for the extraction. Only
|
|
35
|
-
* available in PREMIUM mode. Deprecated: this is now synonymous with cite_sources.
|
|
36
|
-
*/
|
|
37
|
-
citation_bbox?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Whether to cite sources for the extraction.
|
|
40
|
-
*/
|
|
41
|
-
cite_sources?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Whether to fetch confidence scores for the extraction.
|
|
44
|
-
*/
|
|
45
|
-
confidence_scores?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The extract model to use for data extraction. If not provided, uses the default
|
|
48
|
-
* for the extraction mode.
|
|
49
|
-
*/
|
|
50
|
-
extract_model?: 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'gemini-2.0-flash' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.5-pro' | 'openai-gpt-4o' | 'openai-gpt-4o-mini' | (string & {}) | null;
|
|
51
|
-
/**
|
|
52
|
-
* The extraction mode specified (FAST, BALANCED, MULTIMODAL, PREMIUM).
|
|
53
|
-
*/
|
|
54
|
-
extraction_mode?: 'FAST' | 'BALANCED' | 'PREMIUM' | 'MULTIMODAL';
|
|
55
|
-
/**
|
|
56
|
-
* The extraction target specified.
|
|
57
|
-
*/
|
|
58
|
-
extraction_target?: 'PER_DOC' | 'PER_PAGE' | 'PER_TABLE_ROW';
|
|
59
|
-
/**
|
|
60
|
-
* Whether to use high resolution mode for the extraction.
|
|
61
|
-
*/
|
|
62
|
-
high_resolution_mode?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether to invalidate the cache for the extraction.
|
|
65
|
-
*/
|
|
66
|
-
invalidate_cache?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* DEPRECATED: Whether to use fast mode for multimodal extraction.
|
|
69
|
-
*/
|
|
70
|
-
multimodal_fast_mode?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Number of pages to pass as context on long document extraction.
|
|
73
|
-
*/
|
|
74
|
-
num_pages_context?: number | null;
|
|
75
|
-
/**
|
|
76
|
-
* Comma-separated list of page numbers or ranges to extract from (1-based, e.g.,
|
|
77
|
-
* '1,3,5-7,9' or '1-3,8-10').
|
|
78
|
-
*/
|
|
79
|
-
page_range?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
* Public model names.
|
|
82
|
-
*/
|
|
83
|
-
parse_model?: 'openai-gpt-4o' | 'openai-gpt-4o-mini' | 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'openai-gpt-5-nano' | 'openai-text-embedding-3-large' | 'openai-text-embedding-3-small' | 'openai-whisper-1' | 'anthropic-sonnet-3.5' | 'anthropic-sonnet-3.5-v2' | 'anthropic-sonnet-3.7' | 'anthropic-sonnet-4.0' | 'anthropic-sonnet-4.5' | 'anthropic-haiku-3.5' | 'anthropic-haiku-4.5' | 'gemini-2.5-flash' | 'gemini-3.0-pro' | 'gemini-2.5-pro' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash-lite' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | null;
|
|
84
|
-
/**
|
|
85
|
-
* The priority for the request. This field may be ignored or overwritten depending
|
|
86
|
-
* on the organization tier.
|
|
87
|
-
*/
|
|
88
|
-
priority?: 'low' | 'medium' | 'high' | 'critical' | null;
|
|
89
|
-
/**
|
|
90
|
-
* The system prompt to use for the extraction.
|
|
91
|
-
*/
|
|
92
|
-
system_prompt?: string | null;
|
|
93
|
-
/**
|
|
94
|
-
* Whether to use reasoning for the extraction.
|
|
95
|
-
*/
|
|
96
|
-
use_reasoning?: boolean;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Schema for an extraction run.
|
|
100
|
-
*/
|
|
101
|
-
export interface ExtractRun {
|
|
102
|
-
/**
|
|
103
|
-
* The id of the extraction run
|
|
104
|
-
*/
|
|
105
|
-
id: string;
|
|
106
|
-
/**
|
|
107
|
-
* The config used for extraction
|
|
108
|
-
*/
|
|
109
|
-
config: ExtractConfig;
|
|
110
|
-
/**
|
|
111
|
-
* The schema used for extraction
|
|
112
|
-
*/
|
|
113
|
-
data_schema: {
|
|
114
|
-
[key: string]: {
|
|
115
|
-
[key: string]: unknown;
|
|
116
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* The id of the extraction agent
|
|
120
|
-
*/
|
|
121
|
-
extraction_agent_id: string;
|
|
122
|
-
/**
|
|
123
|
-
* Whether this extraction run was triggered from the UI
|
|
124
|
-
*/
|
|
125
|
-
from_ui: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* The id of the project that the extraction run belongs to
|
|
128
|
-
*/
|
|
129
|
-
project_id: string;
|
|
130
|
-
/**
|
|
131
|
-
* The status of the extraction run
|
|
132
|
-
*/
|
|
133
|
-
status: 'CREATED' | 'PENDING' | 'SUCCESS' | 'ERROR';
|
|
134
|
-
/**
|
|
135
|
-
* Creation datetime
|
|
136
|
-
*/
|
|
137
|
-
created_at?: string | null;
|
|
138
|
-
/**
|
|
139
|
-
* The data extracted from the file
|
|
140
|
-
*/
|
|
141
|
-
data?: {
|
|
142
|
-
[key: string]: {
|
|
143
|
-
[key: string]: unknown;
|
|
144
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
145
|
-
} | Array<{
|
|
146
|
-
[key: string]: {
|
|
147
|
-
[key: string]: unknown;
|
|
148
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
149
|
-
}> | null;
|
|
150
|
-
/**
|
|
151
|
-
* The error that occurred during extraction
|
|
152
|
-
*/
|
|
153
|
-
error?: string | null;
|
|
154
|
-
/**
|
|
155
|
-
* The metadata extracted from the file
|
|
156
|
-
*/
|
|
157
|
-
extraction_metadata?: {
|
|
158
|
-
[key: string]: {
|
|
159
|
-
[key: string]: unknown;
|
|
160
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
161
|
-
} | null;
|
|
162
|
-
/**
|
|
163
|
-
* @deprecated Schema for a file.
|
|
164
|
-
*/
|
|
165
|
-
file?: FilesAPI.File | null;
|
|
166
|
-
/**
|
|
167
|
-
* The id of the file that the extract was extracted from
|
|
168
|
-
*/
|
|
169
|
-
file_id?: string | null;
|
|
170
|
-
/**
|
|
171
|
-
* The id of the job that the extraction run belongs to
|
|
172
|
-
*/
|
|
173
|
-
job_id?: string | null;
|
|
174
|
-
/**
|
|
175
|
-
* Update datetime
|
|
176
|
-
*/
|
|
177
|
-
updated_at?: string | null;
|
|
178
|
-
}
|
|
179
|
-
export type RunDeleteResponse = unknown;
|
|
180
|
-
export interface RunListParams extends PaginatedExtractRunsParams {
|
|
181
|
-
extraction_agent_id: string;
|
|
182
|
-
}
|
|
183
|
-
export interface RunDeleteParams {
|
|
184
|
-
organization_id?: string | null;
|
|
185
|
-
project_id?: string | null;
|
|
186
|
-
}
|
|
187
|
-
export interface RunGetParams {
|
|
188
|
-
organization_id?: string | null;
|
|
189
|
-
project_id?: string | null;
|
|
190
|
-
}
|
|
191
|
-
export interface RunGetByJobParams {
|
|
192
|
-
organization_id?: string | null;
|
|
193
|
-
project_id?: string | null;
|
|
194
|
-
}
|
|
195
|
-
export declare namespace Runs {
|
|
196
|
-
export { type ExtractConfig as ExtractConfig, type ExtractRun as ExtractRun, type RunDeleteResponse as RunDeleteResponse, type ExtractRunsPaginatedExtractRuns as ExtractRunsPaginatedExtractRuns, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunGetParams as RunGetParams, type RunGetByJobParams as RunGetByJobParams, };
|
|
197
|
-
}
|
|
198
|
-
//# sourceMappingURL=runs.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE;OACtE,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,aAAa,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,UAAU,CAAC;IAO3D;;OAEG;IACH,MAAM,CACJ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,iBAAiB,GAAG,OAAO,CAAC;AAExC,MAAM,WAAW,aAAc,SAAQ,0BAA0B;IAC/D,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as FilesAPI from "../files.js";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
-
import { PagePromise, PaginatedExtractRuns, type PaginatedExtractRunsParams } from "../../core/pagination.js";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
-
export declare class Runs extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* List Extract Runs
|
|
9
|
-
*/
|
|
10
|
-
list(query: RunListParams, options?: RequestOptions): PagePromise<ExtractRunsPaginatedExtractRuns, ExtractRun>;
|
|
11
|
-
/**
|
|
12
|
-
* Delete Extraction Run
|
|
13
|
-
*/
|
|
14
|
-
delete(runID: string, params?: RunDeleteParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
15
|
-
/**
|
|
16
|
-
* Get Run
|
|
17
|
-
*/
|
|
18
|
-
get(runID: string, query?: RunGetParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
|
|
19
|
-
/**
|
|
20
|
-
* Get Run By Job Id
|
|
21
|
-
*/
|
|
22
|
-
getByJob(jobID: string, query?: RunGetByJobParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
|
|
23
|
-
}
|
|
24
|
-
export type ExtractRunsPaginatedExtractRuns = PaginatedExtractRuns<ExtractRun>;
|
|
25
|
-
/**
|
|
26
|
-
* Configuration parameters for the extraction agent.
|
|
27
|
-
*/
|
|
28
|
-
export interface ExtractConfig {
|
|
29
|
-
/**
|
|
30
|
-
* The mode to use for chunking the document.
|
|
31
|
-
*/
|
|
32
|
-
chunk_mode?: 'PAGE' | 'SECTION';
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Whether to fetch citation bounding boxes for the extraction. Only
|
|
35
|
-
* available in PREMIUM mode. Deprecated: this is now synonymous with cite_sources.
|
|
36
|
-
*/
|
|
37
|
-
citation_bbox?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Whether to cite sources for the extraction.
|
|
40
|
-
*/
|
|
41
|
-
cite_sources?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Whether to fetch confidence scores for the extraction.
|
|
44
|
-
*/
|
|
45
|
-
confidence_scores?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The extract model to use for data extraction. If not provided, uses the default
|
|
48
|
-
* for the extraction mode.
|
|
49
|
-
*/
|
|
50
|
-
extract_model?: 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'gemini-2.0-flash' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.5-pro' | 'openai-gpt-4o' | 'openai-gpt-4o-mini' | (string & {}) | null;
|
|
51
|
-
/**
|
|
52
|
-
* The extraction mode specified (FAST, BALANCED, MULTIMODAL, PREMIUM).
|
|
53
|
-
*/
|
|
54
|
-
extraction_mode?: 'FAST' | 'BALANCED' | 'PREMIUM' | 'MULTIMODAL';
|
|
55
|
-
/**
|
|
56
|
-
* The extraction target specified.
|
|
57
|
-
*/
|
|
58
|
-
extraction_target?: 'PER_DOC' | 'PER_PAGE' | 'PER_TABLE_ROW';
|
|
59
|
-
/**
|
|
60
|
-
* Whether to use high resolution mode for the extraction.
|
|
61
|
-
*/
|
|
62
|
-
high_resolution_mode?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether to invalidate the cache for the extraction.
|
|
65
|
-
*/
|
|
66
|
-
invalidate_cache?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* DEPRECATED: Whether to use fast mode for multimodal extraction.
|
|
69
|
-
*/
|
|
70
|
-
multimodal_fast_mode?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Number of pages to pass as context on long document extraction.
|
|
73
|
-
*/
|
|
74
|
-
num_pages_context?: number | null;
|
|
75
|
-
/**
|
|
76
|
-
* Comma-separated list of page numbers or ranges to extract from (1-based, e.g.,
|
|
77
|
-
* '1,3,5-7,9' or '1-3,8-10').
|
|
78
|
-
*/
|
|
79
|
-
page_range?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
* Public model names.
|
|
82
|
-
*/
|
|
83
|
-
parse_model?: 'openai-gpt-4o' | 'openai-gpt-4o-mini' | 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'openai-gpt-5-nano' | 'openai-text-embedding-3-large' | 'openai-text-embedding-3-small' | 'openai-whisper-1' | 'anthropic-sonnet-3.5' | 'anthropic-sonnet-3.5-v2' | 'anthropic-sonnet-3.7' | 'anthropic-sonnet-4.0' | 'anthropic-sonnet-4.5' | 'anthropic-haiku-3.5' | 'anthropic-haiku-4.5' | 'gemini-2.5-flash' | 'gemini-3.0-pro' | 'gemini-2.5-pro' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash-lite' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | null;
|
|
84
|
-
/**
|
|
85
|
-
* The priority for the request. This field may be ignored or overwritten depending
|
|
86
|
-
* on the organization tier.
|
|
87
|
-
*/
|
|
88
|
-
priority?: 'low' | 'medium' | 'high' | 'critical' | null;
|
|
89
|
-
/**
|
|
90
|
-
* The system prompt to use for the extraction.
|
|
91
|
-
*/
|
|
92
|
-
system_prompt?: string | null;
|
|
93
|
-
/**
|
|
94
|
-
* Whether to use reasoning for the extraction.
|
|
95
|
-
*/
|
|
96
|
-
use_reasoning?: boolean;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Schema for an extraction run.
|
|
100
|
-
*/
|
|
101
|
-
export interface ExtractRun {
|
|
102
|
-
/**
|
|
103
|
-
* The id of the extraction run
|
|
104
|
-
*/
|
|
105
|
-
id: string;
|
|
106
|
-
/**
|
|
107
|
-
* The config used for extraction
|
|
108
|
-
*/
|
|
109
|
-
config: ExtractConfig;
|
|
110
|
-
/**
|
|
111
|
-
* The schema used for extraction
|
|
112
|
-
*/
|
|
113
|
-
data_schema: {
|
|
114
|
-
[key: string]: {
|
|
115
|
-
[key: string]: unknown;
|
|
116
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* The id of the extraction agent
|
|
120
|
-
*/
|
|
121
|
-
extraction_agent_id: string;
|
|
122
|
-
/**
|
|
123
|
-
* Whether this extraction run was triggered from the UI
|
|
124
|
-
*/
|
|
125
|
-
from_ui: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* The id of the project that the extraction run belongs to
|
|
128
|
-
*/
|
|
129
|
-
project_id: string;
|
|
130
|
-
/**
|
|
131
|
-
* The status of the extraction run
|
|
132
|
-
*/
|
|
133
|
-
status: 'CREATED' | 'PENDING' | 'SUCCESS' | 'ERROR';
|
|
134
|
-
/**
|
|
135
|
-
* Creation datetime
|
|
136
|
-
*/
|
|
137
|
-
created_at?: string | null;
|
|
138
|
-
/**
|
|
139
|
-
* The data extracted from the file
|
|
140
|
-
*/
|
|
141
|
-
data?: {
|
|
142
|
-
[key: string]: {
|
|
143
|
-
[key: string]: unknown;
|
|
144
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
145
|
-
} | Array<{
|
|
146
|
-
[key: string]: {
|
|
147
|
-
[key: string]: unknown;
|
|
148
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
149
|
-
}> | null;
|
|
150
|
-
/**
|
|
151
|
-
* The error that occurred during extraction
|
|
152
|
-
*/
|
|
153
|
-
error?: string | null;
|
|
154
|
-
/**
|
|
155
|
-
* The metadata extracted from the file
|
|
156
|
-
*/
|
|
157
|
-
extraction_metadata?: {
|
|
158
|
-
[key: string]: {
|
|
159
|
-
[key: string]: unknown;
|
|
160
|
-
} | Array<unknown> | string | number | boolean | null;
|
|
161
|
-
} | null;
|
|
162
|
-
/**
|
|
163
|
-
* @deprecated Schema for a file.
|
|
164
|
-
*/
|
|
165
|
-
file?: FilesAPI.File | null;
|
|
166
|
-
/**
|
|
167
|
-
* The id of the file that the extract was extracted from
|
|
168
|
-
*/
|
|
169
|
-
file_id?: string | null;
|
|
170
|
-
/**
|
|
171
|
-
* The id of the job that the extraction run belongs to
|
|
172
|
-
*/
|
|
173
|
-
job_id?: string | null;
|
|
174
|
-
/**
|
|
175
|
-
* Update datetime
|
|
176
|
-
*/
|
|
177
|
-
updated_at?: string | null;
|
|
178
|
-
}
|
|
179
|
-
export type RunDeleteResponse = unknown;
|
|
180
|
-
export interface RunListParams extends PaginatedExtractRunsParams {
|
|
181
|
-
extraction_agent_id: string;
|
|
182
|
-
}
|
|
183
|
-
export interface RunDeleteParams {
|
|
184
|
-
organization_id?: string | null;
|
|
185
|
-
project_id?: string | null;
|
|
186
|
-
}
|
|
187
|
-
export interface RunGetParams {
|
|
188
|
-
organization_id?: string | null;
|
|
189
|
-
project_id?: string | null;
|
|
190
|
-
}
|
|
191
|
-
export interface RunGetByJobParams {
|
|
192
|
-
organization_id?: string | null;
|
|
193
|
-
project_id?: string | null;
|
|
194
|
-
}
|
|
195
|
-
export declare namespace Runs {
|
|
196
|
-
export { type ExtractConfig as ExtractConfig, type ExtractRun as ExtractRun, type RunDeleteResponse as RunDeleteResponse, type ExtractRunsPaginatedExtractRuns as ExtractRunsPaginatedExtractRuns, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunGetParams as RunGetParams, type RunGetByJobParams as RunGetByJobParams, };
|
|
197
|
-
}
|
|
198
|
-
//# sourceMappingURL=runs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE;OACtE,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,aAAa,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,UAAU,CAAC;IAO3D;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAQtB;;OAEG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,YAAY,GAAG,IAAI,GAAG,SAAc,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAA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Ae,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Runs = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
-
class Runs extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* List Extract Runs
|
|
11
|
-
*/
|
|
12
|
-
list(query, options) {
|
|
13
|
-
return this._client.getAPIList('/api/v1/extraction/runs', (pagination_1.PaginatedExtractRuns), {
|
|
14
|
-
query,
|
|
15
|
-
...options,
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Delete Extraction Run
|
|
20
|
-
*/
|
|
21
|
-
delete(runID, params = {}, options) {
|
|
22
|
-
const { organization_id, project_id } = params ?? {};
|
|
23
|
-
return this._client.delete((0, path_1.path) `/api/v1/extraction/runs/${runID}`, {
|
|
24
|
-
query: { organization_id, project_id },
|
|
25
|
-
...options,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get Run
|
|
30
|
-
*/
|
|
31
|
-
get(runID, query = {}, options) {
|
|
32
|
-
return this._client.get((0, path_1.path) `/api/v1/extraction/runs/${runID}`, { query, ...options });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Get Run By Job Id
|
|
36
|
-
*/
|
|
37
|
-
getByJob(jobID, query = {}, options) {
|
|
38
|
-
return this._client.get((0, path_1.path) `/api/v1/extraction/runs/by-job/${jobID}`, { query, ...options });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.Runs = Runs;
|
|
42
|
-
//# sourceMappingURL=runs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA2G;AAE3G,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAoB,EACpB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,iCAAgC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,KAAK,EAAE,EAAE;YACjE,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CACD,KAAa,EACb,QAAyC,EAAE,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAlDD,oBAkDC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { PaginatedExtractRuns } from "../../core/pagination.mjs";
|
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
-
export class Runs extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* List Extract Runs
|
|
8
|
-
*/
|
|
9
|
-
list(query, options) {
|
|
10
|
-
return this._client.getAPIList('/api/v1/extraction/runs', (PaginatedExtractRuns), {
|
|
11
|
-
query,
|
|
12
|
-
...options,
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Delete Extraction Run
|
|
17
|
-
*/
|
|
18
|
-
delete(runID, params = {}, options) {
|
|
19
|
-
const { organization_id, project_id } = params ?? {};
|
|
20
|
-
return this._client.delete(path `/api/v1/extraction/runs/${runID}`, {
|
|
21
|
-
query: { organization_id, project_id },
|
|
22
|
-
...options,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Get Run
|
|
27
|
-
*/
|
|
28
|
-
get(runID, query = {}, options) {
|
|
29
|
-
return this._client.get(path `/api/v1/extraction/runs/${runID}`, { query, ...options });
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get Run By Job Id
|
|
33
|
-
*/
|
|
34
|
-
getByJob(jobID, query = {}, options) {
|
|
35
|
-
return this._client.get(path `/api/v1/extraction/runs/by-job/${jobID}`, { query, ...options });
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=runs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAe,oBAAoB,EAAmC;OAEtE,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAoB,EACpB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,oBAAgC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,KAAK,EAAE,EAAE;YACjE,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CACD,KAAa,EACb,QAAyC,EAAE,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extraction.d.mts","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":""}
|
package/resources/extraction.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./extraction/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=extraction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extraction.js","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
|
package/resources/extraction.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extraction.mjs","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|