@botpress/client 0.36.2 → 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 +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +176 -105
- package/dist/index.mjs +3 -3
- 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
|
*/
|
|
@@ -13325,7 +13434,7 @@ interface Table {
|
|
|
13325
13434
|
*/
|
|
13326
13435
|
frozen?: boolean;
|
|
13327
13436
|
schema: {
|
|
13328
|
-
$schema
|
|
13437
|
+
$schema?: string;
|
|
13329
13438
|
/**
|
|
13330
13439
|
* List of keys/columns in the table.
|
|
13331
13440
|
*/
|
|
@@ -13738,6 +13847,9 @@ declare class Client$1 {
|
|
|
13738
13847
|
readonly getOrCreateTable: (input: GetOrCreateTableInput) => Promise<GetOrCreateTableResponse>;
|
|
13739
13848
|
readonly createTable: (input: CreateTableInput) => Promise<CreateTableResponse>;
|
|
13740
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>;
|
|
13741
13853
|
readonly updateTable: (input: UpdateTableInput) => Promise<UpdateTableResponse>;
|
|
13742
13854
|
readonly renameTableColumn: (input: RenameTableColumnInput) => Promise<RenameTableColumnResponse>;
|
|
13743
13855
|
readonly deleteTable: (input: DeleteTableInput) => Promise<DeleteTableResponse>;
|
|
@@ -14009,51 +14121,9 @@ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenErro
|
|
|
14009
14121
|
declare const errorFrom: (err: unknown) => ApiError;
|
|
14010
14122
|
|
|
14011
14123
|
declare class UploadFileError extends Error {
|
|
14012
|
-
readonly innerError?: AxiosError
|
|
14013
|
-
readonly file?:
|
|
14014
|
-
|
|
14015
|
-
botId: string;
|
|
14016
|
-
key: string;
|
|
14017
|
-
url: string;
|
|
14018
|
-
size: number | null;
|
|
14019
|
-
contentType: string;
|
|
14020
|
-
tags: {
|
|
14021
|
-
[k: string]: string;
|
|
14022
|
-
};
|
|
14023
|
-
metadata: {
|
|
14024
|
-
[k: string]: any;
|
|
14025
|
-
};
|
|
14026
|
-
createdAt: string;
|
|
14027
|
-
updatedAt: string;
|
|
14028
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
14029
|
-
index: boolean;
|
|
14030
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
14031
|
-
failedStatusReason?: string | undefined;
|
|
14032
|
-
expiresAt?: string | undefined;
|
|
14033
|
-
uploadUrl: string;
|
|
14034
|
-
} | undefined;
|
|
14035
|
-
constructor(message: string, innerError?: AxiosError<unknown, any> | undefined, file?: {
|
|
14036
|
-
id: string;
|
|
14037
|
-
botId: string;
|
|
14038
|
-
key: string;
|
|
14039
|
-
url: string;
|
|
14040
|
-
size: number | null;
|
|
14041
|
-
contentType: string;
|
|
14042
|
-
tags: {
|
|
14043
|
-
[k: string]: string;
|
|
14044
|
-
};
|
|
14045
|
-
metadata: {
|
|
14046
|
-
[k: string]: any;
|
|
14047
|
-
};
|
|
14048
|
-
createdAt: string;
|
|
14049
|
-
updatedAt: string;
|
|
14050
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
14051
|
-
index: boolean;
|
|
14052
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
14053
|
-
failedStatusReason?: string | undefined;
|
|
14054
|
-
expiresAt?: string | undefined;
|
|
14055
|
-
uploadUrl: string;
|
|
14056
|
-
} | undefined);
|
|
14124
|
+
readonly innerError?: AxiosError | undefined;
|
|
14125
|
+
readonly file?: UpsertFileResponse["file"] | undefined;
|
|
14126
|
+
constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
|
|
14057
14127
|
}
|
|
14058
14128
|
|
|
14059
14129
|
type ListOperation = keyof {
|
|
@@ -14083,10 +14153,10 @@ declare class AsyncCollection<T> {
|
|
|
14083
14153
|
declare class Lister {
|
|
14084
14154
|
private _client;
|
|
14085
14155
|
constructor(_client: Client$1);
|
|
14086
|
-
readonly conversations: (props: ListInputs[
|
|
14156
|
+
readonly conversations: (props: ListInputs["listConversations"]) => AsyncCollection<{
|
|
14087
14157
|
id: string;
|
|
14088
|
-
currentTaskId?: string
|
|
14089
|
-
currentWorkflowId?: string
|
|
14158
|
+
currentTaskId?: string;
|
|
14159
|
+
currentWorkflowId?: string;
|
|
14090
14160
|
createdAt: string;
|
|
14091
14161
|
updatedAt: string;
|
|
14092
14162
|
channel: string;
|
|
@@ -14095,30 +14165,30 @@ declare class Lister {
|
|
|
14095
14165
|
[k: string]: string;
|
|
14096
14166
|
};
|
|
14097
14167
|
}>;
|
|
14098
|
-
readonly participants: (props: ListInputs[
|
|
14168
|
+
readonly participants: (props: ListInputs["listParticipants"]) => AsyncCollection<{
|
|
14099
14169
|
id: string;
|
|
14100
14170
|
createdAt: string;
|
|
14101
14171
|
updatedAt: string;
|
|
14102
14172
|
tags: {
|
|
14103
14173
|
[k: string]: string;
|
|
14104
14174
|
};
|
|
14105
|
-
name?: string
|
|
14106
|
-
pictureUrl?: string
|
|
14175
|
+
name?: string;
|
|
14176
|
+
pictureUrl?: string;
|
|
14107
14177
|
}>;
|
|
14108
|
-
readonly events: (props: ListInputs[
|
|
14178
|
+
readonly events: (props: ListInputs["listEvents"]) => AsyncCollection<{
|
|
14109
14179
|
id: string;
|
|
14110
14180
|
createdAt: string;
|
|
14111
14181
|
type: string;
|
|
14112
14182
|
payload: {
|
|
14113
14183
|
[k: string]: any;
|
|
14114
14184
|
};
|
|
14115
|
-
conversationId?: string
|
|
14116
|
-
userId?: string
|
|
14117
|
-
messageId?: string
|
|
14185
|
+
conversationId?: string;
|
|
14186
|
+
userId?: string;
|
|
14187
|
+
messageId?: string;
|
|
14118
14188
|
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
14119
14189
|
failureReason: string | null;
|
|
14120
14190
|
}>;
|
|
14121
|
-
readonly messages: (props: ListInputs[
|
|
14191
|
+
readonly messages: (props: ListInputs["listMessages"]) => AsyncCollection<{
|
|
14122
14192
|
id: string;
|
|
14123
14193
|
createdAt: string;
|
|
14124
14194
|
type: string;
|
|
@@ -14132,17 +14202,17 @@ declare class Lister {
|
|
|
14132
14202
|
[k: string]: string;
|
|
14133
14203
|
};
|
|
14134
14204
|
}>;
|
|
14135
|
-
readonly users: (props: ListInputs[
|
|
14205
|
+
readonly users: (props: ListInputs["listUsers"]) => AsyncCollection<{
|
|
14136
14206
|
id: string;
|
|
14137
14207
|
createdAt: string;
|
|
14138
14208
|
updatedAt: string;
|
|
14139
14209
|
tags: {
|
|
14140
14210
|
[k: string]: string;
|
|
14141
14211
|
};
|
|
14142
|
-
name?: string
|
|
14143
|
-
pictureUrl?: string
|
|
14212
|
+
name?: string;
|
|
14213
|
+
pictureUrl?: string;
|
|
14144
14214
|
}>;
|
|
14145
|
-
readonly tasks: (props: ListInputs[
|
|
14215
|
+
readonly tasks: (props: ListInputs["listTasks"]) => AsyncCollection<{
|
|
14146
14216
|
id: string;
|
|
14147
14217
|
title: string;
|
|
14148
14218
|
description: string;
|
|
@@ -14150,19 +14220,19 @@ declare class Lister {
|
|
|
14150
14220
|
data: {
|
|
14151
14221
|
[k: string]: any;
|
|
14152
14222
|
};
|
|
14153
|
-
status: "pending" | "
|
|
14154
|
-
parentTaskId?: string
|
|
14155
|
-
conversationId?: string
|
|
14156
|
-
userId?: string
|
|
14223
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
|
|
14224
|
+
parentTaskId?: string;
|
|
14225
|
+
conversationId?: string;
|
|
14226
|
+
userId?: string;
|
|
14157
14227
|
timeoutAt: string;
|
|
14158
14228
|
createdAt: string;
|
|
14159
14229
|
updatedAt: string;
|
|
14160
|
-
failureReason?: string
|
|
14230
|
+
failureReason?: string;
|
|
14161
14231
|
tags: {
|
|
14162
14232
|
[k: string]: string;
|
|
14163
14233
|
};
|
|
14164
14234
|
}>;
|
|
14165
|
-
readonly publicIntegrations: (props: ListInputs[
|
|
14235
|
+
readonly publicIntegrations: (props: ListInputs["listPublicIntegrations"]) => AsyncCollection<{
|
|
14166
14236
|
id: string;
|
|
14167
14237
|
name: string;
|
|
14168
14238
|
version: string;
|
|
@@ -14172,7 +14242,7 @@ declare class Lister {
|
|
|
14172
14242
|
description: string;
|
|
14173
14243
|
iconUrl: string;
|
|
14174
14244
|
public: boolean;
|
|
14175
|
-
verificationStatus: "
|
|
14245
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
14176
14246
|
ownerWorkspace: {
|
|
14177
14247
|
id: string;
|
|
14178
14248
|
handle: string | null;
|
|
@@ -14183,14 +14253,14 @@ declare class Lister {
|
|
|
14183
14253
|
views: number;
|
|
14184
14254
|
};
|
|
14185
14255
|
}>;
|
|
14186
|
-
readonly bots: (props: ListInputs[
|
|
14256
|
+
readonly bots: (props: ListInputs["listBots"]) => AsyncCollection<{
|
|
14187
14257
|
id: string;
|
|
14188
14258
|
createdAt: string;
|
|
14189
14259
|
updatedAt: string;
|
|
14190
14260
|
name: string;
|
|
14191
|
-
deployedAt?: string
|
|
14261
|
+
deployedAt?: string;
|
|
14192
14262
|
}>;
|
|
14193
|
-
readonly botIssues: (props: ListInputs[
|
|
14263
|
+
readonly botIssues: (props: ListInputs["listBotIssues"]) => AsyncCollection<{
|
|
14194
14264
|
id: string;
|
|
14195
14265
|
code: string;
|
|
14196
14266
|
createdAt: string;
|
|
@@ -14200,25 +14270,25 @@ declare class Lister {
|
|
|
14200
14270
|
groupedData: {
|
|
14201
14271
|
[k: string]: {
|
|
14202
14272
|
raw: string;
|
|
14203
|
-
pretty?: string
|
|
14273
|
+
pretty?: string;
|
|
14204
14274
|
};
|
|
14205
14275
|
};
|
|
14206
14276
|
eventsCount: number;
|
|
14207
|
-
category: "
|
|
14277
|
+
category: "user_code" | "limits" | "configuration" | "other";
|
|
14208
14278
|
resolutionLink: string | null;
|
|
14209
14279
|
}>;
|
|
14210
|
-
readonly workspaces: (props: ListInputs[
|
|
14211
|
-
readonly publicWorkspaces: (props: ListInputs[
|
|
14212
|
-
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<{
|
|
14213
14283
|
id: string;
|
|
14214
|
-
userId?: string
|
|
14284
|
+
userId?: string;
|
|
14215
14285
|
email: string;
|
|
14216
14286
|
createdAt: string;
|
|
14217
14287
|
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
14218
|
-
profilePicture?: string
|
|
14219
|
-
displayName?: string
|
|
14288
|
+
profilePicture?: string;
|
|
14289
|
+
displayName?: string;
|
|
14220
14290
|
}>;
|
|
14221
|
-
readonly integrations: (props: ListInputs[
|
|
14291
|
+
readonly integrations: (props: ListInputs["listIntegrations"]) => AsyncCollection<{
|
|
14222
14292
|
id: string;
|
|
14223
14293
|
name: string;
|
|
14224
14294
|
version: string;
|
|
@@ -14228,16 +14298,16 @@ declare class Lister {
|
|
|
14228
14298
|
description: string;
|
|
14229
14299
|
iconUrl: string;
|
|
14230
14300
|
public: boolean;
|
|
14231
|
-
verificationStatus: "
|
|
14301
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
14232
14302
|
}>;
|
|
14233
|
-
readonly interfaces: (props: ListInputs[
|
|
14303
|
+
readonly interfaces: (props: ListInputs["listInterfaces"]) => AsyncCollection<{
|
|
14234
14304
|
id: string;
|
|
14235
14305
|
createdAt: string;
|
|
14236
14306
|
updatedAt: string;
|
|
14237
14307
|
name: string;
|
|
14238
14308
|
version: string;
|
|
14239
14309
|
}>;
|
|
14240
|
-
readonly activities: (props: ListInputs[
|
|
14310
|
+
readonly activities: (props: ListInputs["listActivities"]) => AsyncCollection<{
|
|
14241
14311
|
id: string;
|
|
14242
14312
|
description: string;
|
|
14243
14313
|
taskId: string;
|
|
@@ -14247,7 +14317,7 @@ declare class Lister {
|
|
|
14247
14317
|
};
|
|
14248
14318
|
createdAt: string;
|
|
14249
14319
|
}>;
|
|
14250
|
-
readonly files: (props: ListInputs[
|
|
14320
|
+
readonly files: (props: ListInputs["listFiles"]) => AsyncCollection<{
|
|
14251
14321
|
id: string;
|
|
14252
14322
|
botId: string;
|
|
14253
14323
|
key: string;
|
|
@@ -14258,24 +14328,25 @@ declare class Lister {
|
|
|
14258
14328
|
[k: string]: string;
|
|
14259
14329
|
};
|
|
14260
14330
|
metadata: {
|
|
14261
|
-
[k: string]: any;
|
|
14331
|
+
[k: string]: any | null;
|
|
14262
14332
|
};
|
|
14263
14333
|
createdAt: string;
|
|
14264
14334
|
updatedAt: string;
|
|
14265
14335
|
accessPolicies: ("integrations" | "public_content")[];
|
|
14266
14336
|
index: boolean;
|
|
14267
14337
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
14268
|
-
failedStatusReason?: string
|
|
14269
|
-
expiresAt?: string
|
|
14338
|
+
failedStatusReason?: string;
|
|
14339
|
+
expiresAt?: string;
|
|
14270
14340
|
}>;
|
|
14271
|
-
readonly filePassages: (props: ListInputs[
|
|
14341
|
+
readonly filePassages: (props: ListInputs["listFilePassages"]) => AsyncCollection<{
|
|
14272
14342
|
id: string;
|
|
14273
14343
|
content: string;
|
|
14274
14344
|
meta: {
|
|
14275
|
-
type?: "chunk" | "summary" | "consolidated" |
|
|
14276
|
-
subtype?: "
|
|
14277
|
-
pageNumber?: number
|
|
14278
|
-
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;
|
|
14279
14350
|
};
|
|
14280
14351
|
}>;
|
|
14281
14352
|
}
|
|
@@ -14287,7 +14358,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
14287
14358
|
/**
|
|
14288
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.
|
|
14289
14360
|
*/
|
|
14290
|
-
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, indexing, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs[
|
|
14361
|
+
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, indexing, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs["uploadFile"]) => Promise<ClientOutputs["uploadFile"]>;
|
|
14291
14362
|
}
|
|
14292
14363
|
|
|
14293
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 };
|