@limai.io/cli 0.4.3 → 0.4.5
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/dist/cli.js +42 -42
- package/dist/index.d.ts +22 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,16 @@ type JobStatus = {
|
|
|
57
57
|
confidenceStageStatus?: StageStatus;
|
|
58
58
|
bboxStageStatus?: StageStatus;
|
|
59
59
|
};
|
|
60
|
-
type IncludeOption = "confidence" | "boundingBoxes" | "validations";
|
|
60
|
+
type IncludeOption = "confidence" | "boundingBoxes" | "grounding" | "validations";
|
|
61
|
+
type CellGroundingStatus = "EXACT" | "NORMALIZED" | "OTHER_PART" | "AMBIGUOUS" | "NOT_FOUND" | "NOT_APPLICABLE" | "STALE";
|
|
62
|
+
type CellGrounding = {
|
|
63
|
+
status: CellGroundingStatus;
|
|
64
|
+
part: number | null;
|
|
65
|
+
partName: string | null;
|
|
66
|
+
span: [number, number] | null;
|
|
67
|
+
valueSpan: [number, number] | null;
|
|
68
|
+
text: string | null;
|
|
69
|
+
};
|
|
61
70
|
type CellConfidence = {
|
|
62
71
|
overall: number | null;
|
|
63
72
|
llm: number | null;
|
|
@@ -109,6 +118,7 @@ type CellValue = {
|
|
|
109
118
|
};
|
|
110
119
|
confidence?: CellConfidence;
|
|
111
120
|
boundingBoxes?: CellBoundingBox[] | null;
|
|
121
|
+
grounding?: CellGrounding | null;
|
|
112
122
|
validations?: CellValidation[];
|
|
113
123
|
};
|
|
114
124
|
type Row = {
|
|
@@ -241,6 +251,7 @@ type FlatCellData = {
|
|
|
241
251
|
value: string | number | boolean | null;
|
|
242
252
|
confidence?: number | null;
|
|
243
253
|
boundingBoxes?: CellBoundingBox[] | null;
|
|
254
|
+
grounding?: CellGrounding | null;
|
|
244
255
|
validations?: FlatCellValidation[];
|
|
245
256
|
};
|
|
246
257
|
type FlatRow = {
|
|
@@ -314,13 +325,16 @@ type Deployment = {
|
|
|
314
325
|
type DeploymentConfig = {
|
|
315
326
|
id: string;
|
|
316
327
|
modelName?: string;
|
|
328
|
+
/** @deprecated Ignored by the API; responses always echo 1. */
|
|
317
329
|
temperature?: number;
|
|
318
330
|
thinkingBudget?: number | null;
|
|
331
|
+
reasoningLevel?: "LOW" | "MEDIUM" | "HIGH";
|
|
319
332
|
instructions?: string;
|
|
320
333
|
writeMode?: string;
|
|
321
334
|
bigTableExtraction?: string;
|
|
322
335
|
useDynamicMapping?: boolean;
|
|
323
|
-
|
|
336
|
+
nestedExtraction?: "PER_PARENT_ROW" | "ONE_SHOT";
|
|
337
|
+
bboxTier?: "OFF" | "TEXT" | "FAST" | "BALANCED" | "PRO";
|
|
324
338
|
parsePdf?: boolean;
|
|
325
339
|
markdownConversionType?: "BASIC" | "PRO";
|
|
326
340
|
excelConversionMode?: "MARKDOWN_ONLY" | "PDF_ONLY" | "MARKDOWN_AND_PDF";
|
|
@@ -333,6 +347,8 @@ type DeploymentConfig = {
|
|
|
333
347
|
extractionRunsCount?: number;
|
|
334
348
|
maxPagesToProcess?: number | null;
|
|
335
349
|
enableFilenameInExtraction?: boolean;
|
|
350
|
+
emailBodySplit?: boolean;
|
|
351
|
+
emailNestedExtraction?: "PER_PARENT_ROW" | "ONE_SHOT" | null;
|
|
336
352
|
useExamples?: boolean;
|
|
337
353
|
numberOfExamples?: number;
|
|
338
354
|
includeExampleDiff?: boolean;
|
|
@@ -341,6 +357,7 @@ type DeploymentConfig = {
|
|
|
341
357
|
setAllCorrectionsAsExamples?: boolean;
|
|
342
358
|
updatedAt?: string;
|
|
343
359
|
};
|
|
360
|
+
type DeploymentConfigUpdate = Partial<Omit<DeploymentConfig, "temperature">>;
|
|
344
361
|
type DeploymentConfigurationColumn = {
|
|
345
362
|
id: string;
|
|
346
363
|
name: string;
|
|
@@ -869,7 +886,7 @@ declare class DeploymentsResource {
|
|
|
869
886
|
list(projectId: string, opts?: ListDeploymentsOpts): Promise<Deployment[]>;
|
|
870
887
|
create(projectId: string, body: CreateDeploymentBody): Promise<Deployment>;
|
|
871
888
|
getConfig(deploymentId: string): Promise<DeploymentConfig>;
|
|
872
|
-
updateConfig(deploymentId: string, body:
|
|
889
|
+
updateConfig(deploymentId: string, body: DeploymentConfigUpdate): Promise<void>;
|
|
873
890
|
listDocuments(deploymentId: string, opts?: ListDocumentsOpts): Promise<OffsetPaginatedResponse<Document>>;
|
|
874
891
|
getDocument(deploymentId: string, fileId: string): Promise<Document>;
|
|
875
892
|
deleteDocument(deploymentId: string, fileId: string): Promise<void>;
|
|
@@ -1024,7 +1041,7 @@ declare class SchemaResource {
|
|
|
1024
1041
|
private http;
|
|
1025
1042
|
constructor(http: HttpClient);
|
|
1026
1043
|
get(deploymentId: string): Promise<DeploymentConfiguration>;
|
|
1027
|
-
update(deploymentId: string, body:
|
|
1044
|
+
update(deploymentId: string, body: DeploymentConfigUpdate): Promise<DeploymentConfig>;
|
|
1028
1045
|
getAllData(deploymentId: string): Promise<unknown>;
|
|
1029
1046
|
}
|
|
1030
1047
|
|
|
@@ -1697,4 +1714,4 @@ declare class UploadError extends LimaiError {
|
|
|
1697
1714
|
}
|
|
1698
1715
|
declare function mapHttpError(status: number, message: string, details?: unknown): LimaiError;
|
|
1699
1716
|
|
|
1700
|
-
export { type Agent, type AgentDeploymentRoute, type AgentDetail, type AgentFile, type AgentIntegrationConfig, type AgentRole, type AgentRowData, type AgentRun, type AgentRunConversation, type AgentRunDetail, type AgentRunInferenceLog, type AgentRunInferenceLogSummary, type AgentRunInferenceLogs, type AgentRunStatus, type AgentSkill, type AgentSkillLinkedFile, type AgentStatus, type AgentStep, type AgentStepType, type AgentSubmission, type AgentTriggerType, AuthError, type Bucket, type BucketFile, type BulkFileResult, type BulkFlatDocumentDataResponse, type BulkGetFilesDataResponse, type BulkProcessResponse, type BulkProcessResult, type BulkUploadFileStatus, type BulkUploadResult, type CellBoundingBox, type CellConfidence, type CellValidation, type CellValue, type ClassificationAsyncResponse, type ClassificationResult, type ClassificationStatus, type Column, type ColumnInput, type ColumnLabel, type ColumnUnit, type ColumnUpdateInput, ConflictError, type CreateRowInput, type CreateRowsRequest, type CreateRowsResponse, type DeleteRowsRequest, type DeleteRowsResponse, type Deployment, type DeploymentConfig, type DeploymentConfiguration, type DeploymentConfigurationColumn, type DeploymentConfigurationTable, type DeploymentStatus, type DeploymentType, type Document, type ExtractionRow, type ExtractionsResponse, type FileData, type FileStatus, type FileValidationCheck, type FileValidations, type FlatCellData, type FlatCellValidation, type FlatDocumentDataResponse, type FlatDocumentEntry, type FlatFileValidations, type FlatRow, ForbiddenError, type GetUrlResponse, HttpClient, type IncludeOption, type JobContext, type JobContextColumn, type JobContextTable, JobPoller, type JobStatus, type JobStatusValue, LimaiClient, type LimaiClientConfig, type LimaiConfig, LimaiError, NotFoundError, type OffsetPaginatedResponse, type OffsetPagination, type PagePaginatedResponse, type PagePagination, type PaginationOptions, type PollOptions, type ProcessFileAsyncResponse, type ProcessOptions, type Project, RateLimitError, type Row, SSEClient, ServerError, type SplitAsyncResponse, type SplitResult, type SplitSegment, type SplitStatus, type StageStatus, type Table, type TableData, TimeoutError, type UpdateStatusRequest, type UpdateStatusResponse, UploadError, type UploadResult, ValidationError, type ValidationResult, collectAll, getDeploymentId, getFileId, getJobId, loadConfig, loadJobContext, mapHttpError, paginateOffset, paginatePage, requireConfig, saveConfig, validateSubmission };
|
|
1717
|
+
export { type Agent, type AgentDeploymentRoute, type AgentDetail, type AgentFile, type AgentIntegrationConfig, type AgentRole, type AgentRowData, type AgentRun, type AgentRunConversation, type AgentRunDetail, type AgentRunInferenceLog, type AgentRunInferenceLogSummary, type AgentRunInferenceLogs, type AgentRunStatus, type AgentSkill, type AgentSkillLinkedFile, type AgentStatus, type AgentStep, type AgentStepType, type AgentSubmission, type AgentTriggerType, AuthError, type Bucket, type BucketFile, type BulkFileResult, type BulkFlatDocumentDataResponse, type BulkGetFilesDataResponse, type BulkProcessResponse, type BulkProcessResult, type BulkUploadFileStatus, type BulkUploadResult, type CellBoundingBox, type CellConfidence, type CellGrounding, type CellGroundingStatus, type CellValidation, type CellValue, type ClassificationAsyncResponse, type ClassificationResult, type ClassificationStatus, type Column, type ColumnInput, type ColumnLabel, type ColumnUnit, type ColumnUpdateInput, ConflictError, type CreateRowInput, type CreateRowsRequest, type CreateRowsResponse, type DeleteRowsRequest, type DeleteRowsResponse, type Deployment, type DeploymentConfig, type DeploymentConfigUpdate, type DeploymentConfiguration, type DeploymentConfigurationColumn, type DeploymentConfigurationTable, type DeploymentStatus, type DeploymentType, type Document, type ExtractionRow, type ExtractionsResponse, type FileData, type FileStatus, type FileValidationCheck, type FileValidations, type FlatCellData, type FlatCellValidation, type FlatDocumentDataResponse, type FlatDocumentEntry, type FlatFileValidations, type FlatRow, ForbiddenError, type GetUrlResponse, HttpClient, type IncludeOption, type JobContext, type JobContextColumn, type JobContextTable, JobPoller, type JobStatus, type JobStatusValue, LimaiClient, type LimaiClientConfig, type LimaiConfig, LimaiError, NotFoundError, type OffsetPaginatedResponse, type OffsetPagination, type PagePaginatedResponse, type PagePagination, type PaginationOptions, type PollOptions, type ProcessFileAsyncResponse, type ProcessOptions, type Project, RateLimitError, type Row, SSEClient, ServerError, type SplitAsyncResponse, type SplitResult, type SplitSegment, type SplitStatus, type StageStatus, type Table, type TableData, TimeoutError, type UpdateStatusRequest, type UpdateStatusResponse, UploadError, type UploadResult, ValidationError, type ValidationResult, collectAll, getDeploymentId, getFileId, getJobId, loadConfig, loadJobContext, mapHttpError, paginateOffset, paginatePage, requireConfig, saveConfig, validateSubmission };
|