@botpress/client 0.36.1 → 0.37.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/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +12 -12
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +305 -106
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/package.json +3 -5
package/dist/index.d.ts
CHANGED
|
@@ -9973,7 +9973,7 @@ interface UpsertFileRequestBody {
|
|
|
9973
9973
|
*
|
|
9974
9974
|
* Notes:
|
|
9975
9975
|
* - This feature is only available in Team and Enterprise plans.
|
|
9976
|
-
* - Enabling this feature will
|
|
9976
|
+
* - Enabling this feature will incur in AI Spend cost to use a vision-enabled LLM to index the PDF pages.
|
|
9977
9977
|
* - This is limited to a maximum of 30 pages of the PDF. If the file has more pages then the rest of the pages will NOT be transcribed using this vision feature, and will be processed using the default text-based indexing instead. If you need to transcribe the entire file using vision, please split it into smaller files.
|
|
9978
9978
|
* - Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.
|
|
9979
9979
|
* - This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred.
|
|
@@ -9981,6 +9981,26 @@ interface UpsertFileRequestBody {
|
|
|
9981
9981
|
transcribePages?: {
|
|
9982
9982
|
[k: string]: any;
|
|
9983
9983
|
};
|
|
9984
|
+
/**
|
|
9985
|
+
* (Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to index each page of the PDF as a standalone image.
|
|
9986
|
+
*
|
|
9987
|
+
* Enabling this feature will allow Autonomous Nodes in your bot to answer visual or higher-level questions about the content in these pages that can usually not be answered correctly by the default text-based indexing or visual transcription.
|
|
9988
|
+
*
|
|
9989
|
+
* This feature is useful when a PDF has:
|
|
9990
|
+
* - Tables with complex layouts
|
|
9991
|
+
* - Charts, diagrams or infographics
|
|
9992
|
+
* - Photos or images that can be used to answer user queries
|
|
9993
|
+
*
|
|
9994
|
+
* Notes:
|
|
9995
|
+
* - This feature is only available in Team and Enterprise plans.
|
|
9996
|
+
* - Enabling this will incur in extra AI Spend cost and additional File Storage usage, in order to use a vision-enabled LLM to visually index the PDF pages and store them as standalone page images in the bot's file storage.
|
|
9997
|
+
* - Enabling this may increase the overall AI Spend cost of your bot as your bot may pass one or more indexed page images to a vision-enabled LLM for answering user queries.
|
|
9998
|
+
* - This is limited to the first 30 pages of the PDF. If the file has more pages then the rest of the pages will NOT be vision-indexed. If you need to visually index the entire file, please split it into smaller files.
|
|
9999
|
+
* - This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred.
|
|
10000
|
+
*/
|
|
10001
|
+
indexPages?: {
|
|
10002
|
+
[k: string]: any;
|
|
10003
|
+
};
|
|
9984
10004
|
};
|
|
9985
10005
|
};
|
|
9986
10006
|
};
|
|
@@ -10428,11 +10448,11 @@ interface SearchFilesResponse {
|
|
|
10428
10448
|
/**
|
|
10429
10449
|
* The type of passage
|
|
10430
10450
|
*/
|
|
10431
|
-
type?: "chunk" | "summary" | "consolidated";
|
|
10451
|
+
type?: "chunk" | "summary" | "consolidated" | "image";
|
|
10432
10452
|
/**
|
|
10433
10453
|
* The subtype of passage, if available.
|
|
10434
10454
|
*/
|
|
10435
|
-
subtype?: "title" | "subtitle" | "paragraph" | "
|
|
10455
|
+
subtype?: "title" | "subtitle" | "paragraph" | "blockquote" | "list" | "table" | "code" | "page";
|
|
10436
10456
|
/**
|
|
10437
10457
|
* Page number the passage is located on. Only applicable if the passage was extracted from a PDF file.
|
|
10438
10458
|
*/
|
|
@@ -10441,6 +10461,10 @@ interface SearchFilesResponse {
|
|
|
10441
10461
|
* Position number of the passage in the file relative to the other passages, if available. Can be used to know the order of passages within a file.
|
|
10442
10462
|
*/
|
|
10443
10463
|
position?: number;
|
|
10464
|
+
/**
|
|
10465
|
+
* The URL of the source file for the vector, if applicable (e.g. for image vectors).
|
|
10466
|
+
*/
|
|
10467
|
+
sourceUrl?: string;
|
|
10444
10468
|
};
|
|
10445
10469
|
file: {
|
|
10446
10470
|
/**
|
|
@@ -10502,11 +10526,11 @@ interface ListFilePassagesResponse {
|
|
|
10502
10526
|
/**
|
|
10503
10527
|
* The type of passage
|
|
10504
10528
|
*/
|
|
10505
|
-
type?: "chunk" | "summary" | "consolidated";
|
|
10529
|
+
type?: "chunk" | "summary" | "consolidated" | "image";
|
|
10506
10530
|
/**
|
|
10507
10531
|
* The subtype of passage, if available.
|
|
10508
10532
|
*/
|
|
10509
|
-
subtype?: "title" | "subtitle" | "paragraph" | "
|
|
10533
|
+
subtype?: "title" | "subtitle" | "paragraph" | "blockquote" | "list" | "table" | "code" | "page";
|
|
10510
10534
|
/**
|
|
10511
10535
|
* Page number the passage is located on. Only applicable if the passage was extracted from a PDF file.
|
|
10512
10536
|
*/
|
|
@@ -10515,6 +10539,10 @@ interface ListFilePassagesResponse {
|
|
|
10515
10539
|
* Position number of the passage in the file relative to the other passages, if available. Can be used to know the order of passages within a file.
|
|
10516
10540
|
*/
|
|
10517
10541
|
position?: number;
|
|
10542
|
+
/**
|
|
10543
|
+
* The URL of the source file for the vector, if applicable (e.g. for image vectors).
|
|
10544
|
+
*/
|
|
10545
|
+
sourceUrl?: string;
|
|
10518
10546
|
};
|
|
10519
10547
|
}[];
|
|
10520
10548
|
meta: {
|
|
@@ -10556,7 +10584,7 @@ interface ListTablesResponse {
|
|
|
10556
10584
|
*/
|
|
10557
10585
|
frozen?: boolean;
|
|
10558
10586
|
schema: {
|
|
10559
|
-
$schema
|
|
10587
|
+
$schema?: string;
|
|
10560
10588
|
/**
|
|
10561
10589
|
* List of keys/columns in the table.
|
|
10562
10590
|
*/
|
|
@@ -10701,7 +10729,7 @@ interface GetTableResponse {
|
|
|
10701
10729
|
*/
|
|
10702
10730
|
frozen?: boolean;
|
|
10703
10731
|
schema: {
|
|
10704
|
-
$schema
|
|
10732
|
+
$schema?: string;
|
|
10705
10733
|
/**
|
|
10706
10734
|
* List of keys/columns in the table.
|
|
10707
10735
|
*/
|
|
@@ -10882,7 +10910,7 @@ interface GetOrCreateTableResponse {
|
|
|
10882
10910
|
*/
|
|
10883
10911
|
frozen?: boolean;
|
|
10884
10912
|
schema: {
|
|
10885
|
-
$schema
|
|
10913
|
+
$schema?: string;
|
|
10886
10914
|
/**
|
|
10887
10915
|
* List of keys/columns in the table.
|
|
10888
10916
|
*/
|
|
@@ -11070,7 +11098,7 @@ interface CreateTableResponse {
|
|
|
11070
11098
|
*/
|
|
11071
11099
|
frozen?: boolean;
|
|
11072
11100
|
schema: {
|
|
11073
|
-
$schema
|
|
11101
|
+
$schema?: string;
|
|
11074
11102
|
/**
|
|
11075
11103
|
* List of keys/columns in the table.
|
|
11076
11104
|
*/
|
|
@@ -11224,7 +11252,7 @@ interface DuplicateTableResponse {
|
|
|
11224
11252
|
*/
|
|
11225
11253
|
frozen?: boolean;
|
|
11226
11254
|
schema: {
|
|
11227
|
-
$schema
|
|
11255
|
+
$schema?: string;
|
|
11228
11256
|
/**
|
|
11229
11257
|
* List of keys/columns in the table.
|
|
11230
11258
|
*/
|
|
@@ -11344,6 +11372,87 @@ interface DuplicateTableResponse {
|
|
|
11344
11372
|
rows: number;
|
|
11345
11373
|
}
|
|
11346
11374
|
|
|
11375
|
+
interface ExportTableRequestHeaders {
|
|
11376
|
+
}
|
|
11377
|
+
interface ExportTableRequestQuery {
|
|
11378
|
+
format?: "csv" | "json";
|
|
11379
|
+
compress?: boolean;
|
|
11380
|
+
}
|
|
11381
|
+
interface ExportTableRequestParams {
|
|
11382
|
+
table: string;
|
|
11383
|
+
}
|
|
11384
|
+
interface ExportTableRequestBody {
|
|
11385
|
+
}
|
|
11386
|
+
type ExportTableInput = ExportTableRequestBody & ExportTableRequestHeaders & ExportTableRequestQuery & ExportTableRequestParams;
|
|
11387
|
+
interface ExportTableResponse {
|
|
11388
|
+
job: {
|
|
11389
|
+
id: string;
|
|
11390
|
+
botId: string;
|
|
11391
|
+
tableId: string;
|
|
11392
|
+
type: "export" | "import";
|
|
11393
|
+
status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
|
|
11394
|
+
progress?: number;
|
|
11395
|
+
inputFileId: string | null;
|
|
11396
|
+
outputFileId: string | null;
|
|
11397
|
+
createdAt: string;
|
|
11398
|
+
updatedAt: string;
|
|
11399
|
+
};
|
|
11400
|
+
}
|
|
11401
|
+
|
|
11402
|
+
interface GetTableJobsRequestHeaders {
|
|
11403
|
+
}
|
|
11404
|
+
interface GetTableJobsRequestQuery {
|
|
11405
|
+
}
|
|
11406
|
+
interface GetTableJobsRequestParams {
|
|
11407
|
+
table: string;
|
|
11408
|
+
}
|
|
11409
|
+
interface GetTableJobsRequestBody {
|
|
11410
|
+
}
|
|
11411
|
+
type GetTableJobsInput = GetTableJobsRequestBody & GetTableJobsRequestHeaders & GetTableJobsRequestQuery & GetTableJobsRequestParams;
|
|
11412
|
+
interface GetTableJobsResponse {
|
|
11413
|
+
jobs: {
|
|
11414
|
+
id: string;
|
|
11415
|
+
botId: string;
|
|
11416
|
+
tableId: string;
|
|
11417
|
+
type: "export" | "import";
|
|
11418
|
+
status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
|
|
11419
|
+
progress?: number;
|
|
11420
|
+
inputFileId: string | null;
|
|
11421
|
+
outputFileId: string | null;
|
|
11422
|
+
createdAt: string;
|
|
11423
|
+
updatedAt: string;
|
|
11424
|
+
}[];
|
|
11425
|
+
}
|
|
11426
|
+
|
|
11427
|
+
interface ImportTableRequestHeaders {
|
|
11428
|
+
}
|
|
11429
|
+
interface ImportTableRequestQuery {
|
|
11430
|
+
}
|
|
11431
|
+
interface ImportTableRequestParams {
|
|
11432
|
+
table: string;
|
|
11433
|
+
}
|
|
11434
|
+
interface ImportTableRequestBody {
|
|
11435
|
+
/**
|
|
11436
|
+
* The file ID to import. It must have been uploaded to the Files API before. Supported formats: CSV, JSON (gzipped or not)
|
|
11437
|
+
*/
|
|
11438
|
+
fileId: string;
|
|
11439
|
+
}
|
|
11440
|
+
type ImportTableInput = ImportTableRequestBody & ImportTableRequestHeaders & ImportTableRequestQuery & ImportTableRequestParams;
|
|
11441
|
+
interface ImportTableResponse {
|
|
11442
|
+
job: {
|
|
11443
|
+
id: string;
|
|
11444
|
+
botId: string;
|
|
11445
|
+
tableId: string;
|
|
11446
|
+
type: "export" | "import";
|
|
11447
|
+
status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
|
|
11448
|
+
progress?: number;
|
|
11449
|
+
inputFileId: string | null;
|
|
11450
|
+
outputFileId: string | null;
|
|
11451
|
+
createdAt: string;
|
|
11452
|
+
updatedAt: string;
|
|
11453
|
+
};
|
|
11454
|
+
}
|
|
11455
|
+
|
|
11347
11456
|
interface UpdateTableRequestHeaders {
|
|
11348
11457
|
}
|
|
11349
11458
|
interface UpdateTableRequestQuery {
|
|
@@ -11397,7 +11506,7 @@ interface UpdateTableResponse {
|
|
|
11397
11506
|
*/
|
|
11398
11507
|
frozen?: boolean;
|
|
11399
11508
|
schema: {
|
|
11400
|
-
$schema
|
|
11509
|
+
$schema?: string;
|
|
11401
11510
|
/**
|
|
11402
11511
|
* List of keys/columns in the table.
|
|
11403
11512
|
*/
|
|
@@ -11554,7 +11663,7 @@ interface RenameTableColumnResponse {
|
|
|
11554
11663
|
*/
|
|
11555
11664
|
frozen?: boolean;
|
|
11556
11665
|
schema: {
|
|
11557
|
-
$schema
|
|
11666
|
+
$schema?: string;
|
|
11558
11667
|
/**
|
|
11559
11668
|
* List of keys/columns in the table.
|
|
11560
11669
|
*/
|
|
@@ -12830,6 +12939,134 @@ interface Interface {
|
|
|
12830
12939
|
language: string;
|
|
12831
12940
|
};
|
|
12832
12941
|
}
|
|
12942
|
+
/**
|
|
12943
|
+
* Plugin definition
|
|
12944
|
+
*/
|
|
12945
|
+
interface Plugin {
|
|
12946
|
+
/**
|
|
12947
|
+
* ID of the [Plugin](#schema_plugin)
|
|
12948
|
+
*/
|
|
12949
|
+
id: string;
|
|
12950
|
+
/**
|
|
12951
|
+
* Name of the [Plugin](#schema_plugin)
|
|
12952
|
+
*/
|
|
12953
|
+
name: string;
|
|
12954
|
+
/**
|
|
12955
|
+
* Version of the [Plugin](#schema_plugin)
|
|
12956
|
+
*/
|
|
12957
|
+
version: string;
|
|
12958
|
+
/**
|
|
12959
|
+
* Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
12960
|
+
*/
|
|
12961
|
+
createdAt: string;
|
|
12962
|
+
/**
|
|
12963
|
+
* Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
|
|
12964
|
+
*/
|
|
12965
|
+
updatedAt: string;
|
|
12966
|
+
/**
|
|
12967
|
+
* Configuration definition
|
|
12968
|
+
*/
|
|
12969
|
+
configuration: {
|
|
12970
|
+
/**
|
|
12971
|
+
* Title of the configuration
|
|
12972
|
+
*/
|
|
12973
|
+
title?: string;
|
|
12974
|
+
/**
|
|
12975
|
+
* Description of the configuration
|
|
12976
|
+
*/
|
|
12977
|
+
description?: string;
|
|
12978
|
+
/**
|
|
12979
|
+
* Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
|
|
12980
|
+
*/
|
|
12981
|
+
schema: {
|
|
12982
|
+
[k: string]: any;
|
|
12983
|
+
};
|
|
12984
|
+
};
|
|
12985
|
+
states: {
|
|
12986
|
+
[k: string]: {
|
|
12987
|
+
/**
|
|
12988
|
+
* Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
|
|
12989
|
+
*/
|
|
12990
|
+
type: "conversation" | "user" | "bot" | "task";
|
|
12991
|
+
/**
|
|
12992
|
+
* Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
|
|
12993
|
+
*/
|
|
12994
|
+
schema: {
|
|
12995
|
+
[k: string]: any;
|
|
12996
|
+
};
|
|
12997
|
+
/**
|
|
12998
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
12999
|
+
*/
|
|
13000
|
+
expiry?: number;
|
|
13001
|
+
};
|
|
13002
|
+
};
|
|
13003
|
+
events: {
|
|
13004
|
+
/**
|
|
13005
|
+
* Event Definition
|
|
13006
|
+
*/
|
|
13007
|
+
[k: string]: {
|
|
13008
|
+
/**
|
|
13009
|
+
* Title of the event
|
|
13010
|
+
*/
|
|
13011
|
+
title?: string;
|
|
13012
|
+
/**
|
|
13013
|
+
* Description of the event
|
|
13014
|
+
*/
|
|
13015
|
+
description?: string;
|
|
13016
|
+
schema: {
|
|
13017
|
+
[k: string]: any;
|
|
13018
|
+
};
|
|
13019
|
+
};
|
|
13020
|
+
};
|
|
13021
|
+
actions: {
|
|
13022
|
+
/**
|
|
13023
|
+
* Action definition
|
|
13024
|
+
*/
|
|
13025
|
+
[k: string]: {
|
|
13026
|
+
/**
|
|
13027
|
+
* Title of the action
|
|
13028
|
+
*/
|
|
13029
|
+
title?: string;
|
|
13030
|
+
/**
|
|
13031
|
+
* Description of the action
|
|
13032
|
+
*/
|
|
13033
|
+
description?: string;
|
|
13034
|
+
billable?: boolean;
|
|
13035
|
+
cacheable?: boolean;
|
|
13036
|
+
input: {
|
|
13037
|
+
schema: {
|
|
13038
|
+
[k: string]: any;
|
|
13039
|
+
};
|
|
13040
|
+
};
|
|
13041
|
+
output: {
|
|
13042
|
+
schema: {
|
|
13043
|
+
[k: string]: any;
|
|
13044
|
+
};
|
|
13045
|
+
};
|
|
13046
|
+
};
|
|
13047
|
+
};
|
|
13048
|
+
/**
|
|
13049
|
+
* User object configuration
|
|
13050
|
+
*/
|
|
13051
|
+
user: {
|
|
13052
|
+
tags: {
|
|
13053
|
+
/**
|
|
13054
|
+
* Definition of a tag that can be provided on the object
|
|
13055
|
+
*/
|
|
13056
|
+
[k: string]: {
|
|
13057
|
+
/**
|
|
13058
|
+
* Title of the tag
|
|
13059
|
+
*/
|
|
13060
|
+
title?: string;
|
|
13061
|
+
/**
|
|
13062
|
+
* Description of the tag
|
|
13063
|
+
*/
|
|
13064
|
+
description?: string;
|
|
13065
|
+
};
|
|
13066
|
+
};
|
|
13067
|
+
};
|
|
13068
|
+
code: string;
|
|
13069
|
+
}
|
|
12833
13070
|
interface Workspace {
|
|
12834
13071
|
id: string;
|
|
12835
13072
|
name: string;
|
|
@@ -13197,7 +13434,7 @@ interface Table {
|
|
|
13197
13434
|
*/
|
|
13198
13435
|
frozen?: boolean;
|
|
13199
13436
|
schema: {
|
|
13200
|
-
$schema
|
|
13437
|
+
$schema?: string;
|
|
13201
13438
|
/**
|
|
13202
13439
|
* List of keys/columns in the table.
|
|
13203
13440
|
*/
|
|
@@ -13610,6 +13847,9 @@ declare class Client$1 {
|
|
|
13610
13847
|
readonly getOrCreateTable: (input: GetOrCreateTableInput) => Promise<GetOrCreateTableResponse>;
|
|
13611
13848
|
readonly createTable: (input: CreateTableInput) => Promise<CreateTableResponse>;
|
|
13612
13849
|
readonly duplicateTable: (input: DuplicateTableInput) => Promise<DuplicateTableResponse>;
|
|
13850
|
+
readonly exportTable: (input: ExportTableInput) => Promise<ExportTableResponse>;
|
|
13851
|
+
readonly getTableJobs: (input: GetTableJobsInput) => Promise<GetTableJobsResponse>;
|
|
13852
|
+
readonly importTable: (input: ImportTableInput) => Promise<ImportTableResponse>;
|
|
13613
13853
|
readonly updateTable: (input: UpdateTableInput) => Promise<UpdateTableResponse>;
|
|
13614
13854
|
readonly renameTableColumn: (input: RenameTableColumnInput) => Promise<RenameTableColumnResponse>;
|
|
13615
13855
|
readonly deleteTable: (input: DeleteTableInput) => Promise<DeleteTableResponse>;
|
|
@@ -13881,51 +14121,9 @@ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenErro
|
|
|
13881
14121
|
declare const errorFrom: (err: unknown) => ApiError;
|
|
13882
14122
|
|
|
13883
14123
|
declare class UploadFileError extends Error {
|
|
13884
|
-
readonly innerError?: AxiosError
|
|
13885
|
-
readonly file?:
|
|
13886
|
-
|
|
13887
|
-
botId: string;
|
|
13888
|
-
key: string;
|
|
13889
|
-
url: string;
|
|
13890
|
-
size: number | null;
|
|
13891
|
-
contentType: string;
|
|
13892
|
-
tags: {
|
|
13893
|
-
[k: string]: string;
|
|
13894
|
-
};
|
|
13895
|
-
metadata: {
|
|
13896
|
-
[k: string]: any;
|
|
13897
|
-
};
|
|
13898
|
-
createdAt: string;
|
|
13899
|
-
updatedAt: string;
|
|
13900
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
13901
|
-
index: boolean;
|
|
13902
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
13903
|
-
failedStatusReason?: string | undefined;
|
|
13904
|
-
expiresAt?: string | undefined;
|
|
13905
|
-
uploadUrl: string;
|
|
13906
|
-
} | undefined;
|
|
13907
|
-
constructor(message: string, innerError?: AxiosError<unknown, any> | undefined, file?: {
|
|
13908
|
-
id: string;
|
|
13909
|
-
botId: string;
|
|
13910
|
-
key: string;
|
|
13911
|
-
url: string;
|
|
13912
|
-
size: number | null;
|
|
13913
|
-
contentType: string;
|
|
13914
|
-
tags: {
|
|
13915
|
-
[k: string]: string;
|
|
13916
|
-
};
|
|
13917
|
-
metadata: {
|
|
13918
|
-
[k: string]: any;
|
|
13919
|
-
};
|
|
13920
|
-
createdAt: string;
|
|
13921
|
-
updatedAt: string;
|
|
13922
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
13923
|
-
index: boolean;
|
|
13924
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
13925
|
-
failedStatusReason?: string | undefined;
|
|
13926
|
-
expiresAt?: string | undefined;
|
|
13927
|
-
uploadUrl: string;
|
|
13928
|
-
} | undefined);
|
|
14124
|
+
readonly innerError?: AxiosError | undefined;
|
|
14125
|
+
readonly file?: UpsertFileResponse["file"] | undefined;
|
|
14126
|
+
constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
|
|
13929
14127
|
}
|
|
13930
14128
|
|
|
13931
14129
|
type ListOperation = keyof {
|
|
@@ -13955,10 +14153,10 @@ declare class AsyncCollection<T> {
|
|
|
13955
14153
|
declare class Lister {
|
|
13956
14154
|
private _client;
|
|
13957
14155
|
constructor(_client: Client$1);
|
|
13958
|
-
readonly conversations: (props: ListInputs[
|
|
14156
|
+
readonly conversations: (props: ListInputs["listConversations"]) => AsyncCollection<{
|
|
13959
14157
|
id: string;
|
|
13960
|
-
currentTaskId?: string
|
|
13961
|
-
currentWorkflowId?: string
|
|
14158
|
+
currentTaskId?: string;
|
|
14159
|
+
currentWorkflowId?: string;
|
|
13962
14160
|
createdAt: string;
|
|
13963
14161
|
updatedAt: string;
|
|
13964
14162
|
channel: string;
|
|
@@ -13967,30 +14165,30 @@ declare class Lister {
|
|
|
13967
14165
|
[k: string]: string;
|
|
13968
14166
|
};
|
|
13969
14167
|
}>;
|
|
13970
|
-
readonly participants: (props: ListInputs[
|
|
14168
|
+
readonly participants: (props: ListInputs["listParticipants"]) => AsyncCollection<{
|
|
13971
14169
|
id: string;
|
|
13972
14170
|
createdAt: string;
|
|
13973
14171
|
updatedAt: string;
|
|
13974
14172
|
tags: {
|
|
13975
14173
|
[k: string]: string;
|
|
13976
14174
|
};
|
|
13977
|
-
name?: string
|
|
13978
|
-
pictureUrl?: string
|
|
14175
|
+
name?: string;
|
|
14176
|
+
pictureUrl?: string;
|
|
13979
14177
|
}>;
|
|
13980
|
-
readonly events: (props: ListInputs[
|
|
14178
|
+
readonly events: (props: ListInputs["listEvents"]) => AsyncCollection<{
|
|
13981
14179
|
id: string;
|
|
13982
14180
|
createdAt: string;
|
|
13983
14181
|
type: string;
|
|
13984
14182
|
payload: {
|
|
13985
14183
|
[k: string]: any;
|
|
13986
14184
|
};
|
|
13987
|
-
conversationId?: string
|
|
13988
|
-
userId?: string
|
|
13989
|
-
messageId?: string
|
|
14185
|
+
conversationId?: string;
|
|
14186
|
+
userId?: string;
|
|
14187
|
+
messageId?: string;
|
|
13990
14188
|
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
13991
14189
|
failureReason: string | null;
|
|
13992
14190
|
}>;
|
|
13993
|
-
readonly messages: (props: ListInputs[
|
|
14191
|
+
readonly messages: (props: ListInputs["listMessages"]) => AsyncCollection<{
|
|
13994
14192
|
id: string;
|
|
13995
14193
|
createdAt: string;
|
|
13996
14194
|
type: string;
|
|
@@ -14004,17 +14202,17 @@ declare class Lister {
|
|
|
14004
14202
|
[k: string]: string;
|
|
14005
14203
|
};
|
|
14006
14204
|
}>;
|
|
14007
|
-
readonly users: (props: ListInputs[
|
|
14205
|
+
readonly users: (props: ListInputs["listUsers"]) => AsyncCollection<{
|
|
14008
14206
|
id: string;
|
|
14009
14207
|
createdAt: string;
|
|
14010
14208
|
updatedAt: string;
|
|
14011
14209
|
tags: {
|
|
14012
14210
|
[k: string]: string;
|
|
14013
14211
|
};
|
|
14014
|
-
name?: string
|
|
14015
|
-
pictureUrl?: string
|
|
14212
|
+
name?: string;
|
|
14213
|
+
pictureUrl?: string;
|
|
14016
14214
|
}>;
|
|
14017
|
-
readonly tasks: (props: ListInputs[
|
|
14215
|
+
readonly tasks: (props: ListInputs["listTasks"]) => AsyncCollection<{
|
|
14018
14216
|
id: string;
|
|
14019
14217
|
title: string;
|
|
14020
14218
|
description: string;
|
|
@@ -14022,19 +14220,19 @@ declare class Lister {
|
|
|
14022
14220
|
data: {
|
|
14023
14221
|
[k: string]: any;
|
|
14024
14222
|
};
|
|
14025
|
-
status: "pending" | "
|
|
14026
|
-
parentTaskId?: string
|
|
14027
|
-
conversationId?: string
|
|
14028
|
-
userId?: string
|
|
14223
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
|
|
14224
|
+
parentTaskId?: string;
|
|
14225
|
+
conversationId?: string;
|
|
14226
|
+
userId?: string;
|
|
14029
14227
|
timeoutAt: string;
|
|
14030
14228
|
createdAt: string;
|
|
14031
14229
|
updatedAt: string;
|
|
14032
|
-
failureReason?: string
|
|
14230
|
+
failureReason?: string;
|
|
14033
14231
|
tags: {
|
|
14034
14232
|
[k: string]: string;
|
|
14035
14233
|
};
|
|
14036
14234
|
}>;
|
|
14037
|
-
readonly publicIntegrations: (props: ListInputs[
|
|
14235
|
+
readonly publicIntegrations: (props: ListInputs["listPublicIntegrations"]) => AsyncCollection<{
|
|
14038
14236
|
id: string;
|
|
14039
14237
|
name: string;
|
|
14040
14238
|
version: string;
|
|
@@ -14044,7 +14242,7 @@ declare class Lister {
|
|
|
14044
14242
|
description: string;
|
|
14045
14243
|
iconUrl: string;
|
|
14046
14244
|
public: boolean;
|
|
14047
|
-
verificationStatus: "
|
|
14245
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
14048
14246
|
ownerWorkspace: {
|
|
14049
14247
|
id: string;
|
|
14050
14248
|
handle: string | null;
|
|
@@ -14055,14 +14253,14 @@ declare class Lister {
|
|
|
14055
14253
|
views: number;
|
|
14056
14254
|
};
|
|
14057
14255
|
}>;
|
|
14058
|
-
readonly bots: (props: ListInputs[
|
|
14256
|
+
readonly bots: (props: ListInputs["listBots"]) => AsyncCollection<{
|
|
14059
14257
|
id: string;
|
|
14060
14258
|
createdAt: string;
|
|
14061
14259
|
updatedAt: string;
|
|
14062
14260
|
name: string;
|
|
14063
|
-
deployedAt?: string
|
|
14261
|
+
deployedAt?: string;
|
|
14064
14262
|
}>;
|
|
14065
|
-
readonly botIssues: (props: ListInputs[
|
|
14263
|
+
readonly botIssues: (props: ListInputs["listBotIssues"]) => AsyncCollection<{
|
|
14066
14264
|
id: string;
|
|
14067
14265
|
code: string;
|
|
14068
14266
|
createdAt: string;
|
|
@@ -14072,25 +14270,25 @@ declare class Lister {
|
|
|
14072
14270
|
groupedData: {
|
|
14073
14271
|
[k: string]: {
|
|
14074
14272
|
raw: string;
|
|
14075
|
-
pretty?: string
|
|
14273
|
+
pretty?: string;
|
|
14076
14274
|
};
|
|
14077
14275
|
};
|
|
14078
14276
|
eventsCount: number;
|
|
14079
|
-
category: "
|
|
14277
|
+
category: "user_code" | "limits" | "configuration" | "other";
|
|
14080
14278
|
resolutionLink: string | null;
|
|
14081
14279
|
}>;
|
|
14082
|
-
readonly workspaces: (props: ListInputs[
|
|
14083
|
-
readonly publicWorkspaces: (props: ListInputs[
|
|
14084
|
-
readonly workspaceMembers: (props: ListInputs[
|
|
14280
|
+
readonly workspaces: (props: ListInputs["listWorkspaces"]) => AsyncCollection<UpdateWorkspaceResponse>;
|
|
14281
|
+
readonly publicWorkspaces: (props: ListInputs["listPublicWorkspaces"]) => AsyncCollection<GetPublicWorkspaceResponse>;
|
|
14282
|
+
readonly workspaceMembers: (props: ListInputs["listWorkspaceMembers"]) => AsyncCollection<{
|
|
14085
14283
|
id: string;
|
|
14086
|
-
userId?: string
|
|
14284
|
+
userId?: string;
|
|
14087
14285
|
email: string;
|
|
14088
14286
|
createdAt: string;
|
|
14089
14287
|
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
14090
|
-
profilePicture?: string
|
|
14091
|
-
displayName?: string
|
|
14288
|
+
profilePicture?: string;
|
|
14289
|
+
displayName?: string;
|
|
14092
14290
|
}>;
|
|
14093
|
-
readonly integrations: (props: ListInputs[
|
|
14291
|
+
readonly integrations: (props: ListInputs["listIntegrations"]) => AsyncCollection<{
|
|
14094
14292
|
id: string;
|
|
14095
14293
|
name: string;
|
|
14096
14294
|
version: string;
|
|
@@ -14100,16 +14298,16 @@ declare class Lister {
|
|
|
14100
14298
|
description: string;
|
|
14101
14299
|
iconUrl: string;
|
|
14102
14300
|
public: boolean;
|
|
14103
|
-
verificationStatus: "
|
|
14301
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
14104
14302
|
}>;
|
|
14105
|
-
readonly interfaces: (props: ListInputs[
|
|
14303
|
+
readonly interfaces: (props: ListInputs["listInterfaces"]) => AsyncCollection<{
|
|
14106
14304
|
id: string;
|
|
14107
14305
|
createdAt: string;
|
|
14108
14306
|
updatedAt: string;
|
|
14109
14307
|
name: string;
|
|
14110
14308
|
version: string;
|
|
14111
14309
|
}>;
|
|
14112
|
-
readonly activities: (props: ListInputs[
|
|
14310
|
+
readonly activities: (props: ListInputs["listActivities"]) => AsyncCollection<{
|
|
14113
14311
|
id: string;
|
|
14114
14312
|
description: string;
|
|
14115
14313
|
taskId: string;
|
|
@@ -14119,7 +14317,7 @@ declare class Lister {
|
|
|
14119
14317
|
};
|
|
14120
14318
|
createdAt: string;
|
|
14121
14319
|
}>;
|
|
14122
|
-
readonly files: (props: ListInputs[
|
|
14320
|
+
readonly files: (props: ListInputs["listFiles"]) => AsyncCollection<{
|
|
14123
14321
|
id: string;
|
|
14124
14322
|
botId: string;
|
|
14125
14323
|
key: string;
|
|
@@ -14130,24 +14328,25 @@ declare class Lister {
|
|
|
14130
14328
|
[k: string]: string;
|
|
14131
14329
|
};
|
|
14132
14330
|
metadata: {
|
|
14133
|
-
[k: string]: any;
|
|
14331
|
+
[k: string]: any | null;
|
|
14134
14332
|
};
|
|
14135
14333
|
createdAt: string;
|
|
14136
14334
|
updatedAt: string;
|
|
14137
14335
|
accessPolicies: ("integrations" | "public_content")[];
|
|
14138
14336
|
index: boolean;
|
|
14139
14337
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
14140
|
-
failedStatusReason?: string
|
|
14141
|
-
expiresAt?: string
|
|
14338
|
+
failedStatusReason?: string;
|
|
14339
|
+
expiresAt?: string;
|
|
14142
14340
|
}>;
|
|
14143
|
-
readonly filePassages: (props: ListInputs[
|
|
14341
|
+
readonly filePassages: (props: ListInputs["listFilePassages"]) => AsyncCollection<{
|
|
14144
14342
|
id: string;
|
|
14145
14343
|
content: string;
|
|
14146
14344
|
meta: {
|
|
14147
|
-
type?: "chunk" | "summary" | "consolidated" |
|
|
14148
|
-
subtype?: "
|
|
14149
|
-
pageNumber?: number
|
|
14150
|
-
position?: number
|
|
14345
|
+
type?: "chunk" | "summary" | "consolidated" | "image";
|
|
14346
|
+
subtype?: "title" | "subtitle" | "paragraph" | "blockquote" | "list" | "table" | "code" | "page";
|
|
14347
|
+
pageNumber?: number;
|
|
14348
|
+
position?: number;
|
|
14349
|
+
sourceUrl?: string;
|
|
14151
14350
|
};
|
|
14152
14351
|
}>;
|
|
14153
14352
|
}
|
|
@@ -14159,7 +14358,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
14159
14358
|
/**
|
|
14160
14359
|
* Create/update and upload a file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
|
|
14161
14360
|
*/
|
|
14162
|
-
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs[
|
|
14361
|
+
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, indexing, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs["uploadFile"]) => Promise<ClientOutputs["uploadFile"]>;
|
|
14163
14362
|
}
|
|
14164
14363
|
|
|
14165
|
-
export { type Account, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientParams, type ClientProps, type ClientReturn, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type IClient, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, PayloadTooLargeError, PaymentRequiredError, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Workflow, type Workspace, type WorkspaceMember, errorFrom, isApiError };
|
|
14364
|
+
export { type Account, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientParams, type ClientProps, type ClientReturn, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type IClient, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, PayloadTooLargeError, PaymentRequiredError, type Plugin, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceLockedConflictError, ResourceNotFoundError, type RetryConfig, type Row, RuntimeError, type State, type Table, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Workflow, type Workspace, type WorkspaceMember, errorFrom, isApiError };
|