@botpress/client 0.34.1 → 0.36.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 +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +10 -10
- package/dist/bundle.cjs.map +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +204 -86
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -2955,6 +2955,10 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
2955
2955
|
* Name of the interface
|
|
2956
2956
|
*/
|
|
2957
2957
|
name: string;
|
|
2958
|
+
/**
|
|
2959
|
+
* Version of the interface
|
|
2960
|
+
*/
|
|
2961
|
+
version: string;
|
|
2958
2962
|
entities: {
|
|
2959
2963
|
[k: string]: {
|
|
2960
2964
|
name: string;
|
|
@@ -3326,6 +3330,10 @@ interface GetPublicIntegrationResponse {
|
|
|
3326
3330
|
* Name of the interface
|
|
3327
3331
|
*/
|
|
3328
3332
|
name: string;
|
|
3333
|
+
/**
|
|
3334
|
+
* Version of the interface
|
|
3335
|
+
*/
|
|
3336
|
+
version: string;
|
|
3329
3337
|
entities: {
|
|
3330
3338
|
[k: string]: {
|
|
3331
3339
|
name: string;
|
|
@@ -6277,6 +6285,10 @@ interface CreateIntegrationResponse {
|
|
|
6277
6285
|
* Name of the interface
|
|
6278
6286
|
*/
|
|
6279
6287
|
name: string;
|
|
6288
|
+
/**
|
|
6289
|
+
* Version of the interface
|
|
6290
|
+
*/
|
|
6291
|
+
version: string;
|
|
6280
6292
|
entities: {
|
|
6281
6293
|
[k: string]: {
|
|
6282
6294
|
name: string;
|
|
@@ -6931,6 +6943,10 @@ interface UpdateIntegrationResponse {
|
|
|
6931
6943
|
* Name of the interface
|
|
6932
6944
|
*/
|
|
6933
6945
|
name: string;
|
|
6946
|
+
/**
|
|
6947
|
+
* Version of the interface
|
|
6948
|
+
*/
|
|
6949
|
+
version: string;
|
|
6934
6950
|
entities: {
|
|
6935
6951
|
[k: string]: {
|
|
6936
6952
|
name: string;
|
|
@@ -7356,6 +7372,10 @@ interface GetIntegrationResponse {
|
|
|
7356
7372
|
* Name of the interface
|
|
7357
7373
|
*/
|
|
7358
7374
|
name: string;
|
|
7375
|
+
/**
|
|
7376
|
+
* Version of the interface
|
|
7377
|
+
*/
|
|
7378
|
+
version: string;
|
|
7359
7379
|
entities: {
|
|
7360
7380
|
[k: string]: {
|
|
7361
7381
|
name: string;
|
|
@@ -7740,6 +7760,10 @@ interface GetIntegrationByNameResponse {
|
|
|
7740
7760
|
* Name of the interface
|
|
7741
7761
|
*/
|
|
7742
7762
|
name: string;
|
|
7763
|
+
/**
|
|
7764
|
+
* Version of the interface
|
|
7765
|
+
*/
|
|
7766
|
+
version: string;
|
|
7743
7767
|
entities: {
|
|
7744
7768
|
[k: string]: {
|
|
7745
7769
|
name: string;
|
|
@@ -8785,6 +8809,7 @@ interface ListInterfacesRequestHeaders {
|
|
|
8785
8809
|
}
|
|
8786
8810
|
interface ListInterfacesRequestQuery {
|
|
8787
8811
|
nextToken?: string;
|
|
8812
|
+
name?: string;
|
|
8788
8813
|
}
|
|
8789
8814
|
interface ListInterfacesRequestParams {
|
|
8790
8815
|
}
|
|
@@ -9046,6 +9071,86 @@ interface UpsertFileRequestBody {
|
|
|
9046
9071
|
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
9047
9072
|
*/
|
|
9048
9073
|
index?: boolean;
|
|
9074
|
+
indexing?: {
|
|
9075
|
+
/**
|
|
9076
|
+
* Configuration to use for indexing the file, will be stored in the file's metadata for reference.
|
|
9077
|
+
*/
|
|
9078
|
+
configuration: {
|
|
9079
|
+
parsing?: {
|
|
9080
|
+
/**
|
|
9081
|
+
* The minimum length a standalone paragraph should have. If a paragraph is shorter than this, it will be merged with the next immediate paragraph.
|
|
9082
|
+
*/
|
|
9083
|
+
minimumParagraphLength?: number;
|
|
9084
|
+
/**
|
|
9085
|
+
* (Team/Enterprise plan only, charged as AI Spend) Enabling this will use a lightweight/inexpensive LLM to clean up the extracted content of PDF files before indexing them to increase the quality of the stored vectors, as PDFs often store raw text in unusual ways which when extracted may result in formatting issues (e.g. broken sentences/paragraphs, unexpected headings, garbled characters, etc.) that can affect retrieval performance for certain user queries if left untouched.
|
|
9086
|
+
*
|
|
9087
|
+
* Notes:
|
|
9088
|
+
* - This feature is only available in Team and Enterprise plans.
|
|
9089
|
+
* - 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.
|
|
9090
|
+
* - We recommend using this feature for PDFs that have custom layouts or design. For simple text-based PDFs like documents and books, this feature is usually not necessary.
|
|
9091
|
+
* - The smart cleanup takes some time to perform due to the LLM calls involved, so enabling it will increase the total time it takes to index the file.
|
|
9092
|
+
* - We take steps to prevent the original text from being fundamentally changed but due to the nature of LLMs this could theoretically still happen so it's recommended to review the passages generated for the file after indexing to ensure the content is still accurate.
|
|
9093
|
+
* - This feature is limited to the first 30 pages or 20 KB of text in the PDF file (whichever comes first). If the file has more content than these limits then the rest of the file will be indexed as-is without any cleanup. If you need to clean up the content of the entire file, consider splitting it into smaller files.
|
|
9094
|
+
*/
|
|
9095
|
+
smartCleanup?: boolean;
|
|
9096
|
+
};
|
|
9097
|
+
chunking?: {
|
|
9098
|
+
/**
|
|
9099
|
+
* The maximum length of a chunk in characters.
|
|
9100
|
+
*/
|
|
9101
|
+
maximumChunkLength?: number;
|
|
9102
|
+
/**
|
|
9103
|
+
* The number of surrounding context levels to include in the vector embedding of the chunk.
|
|
9104
|
+
*/
|
|
9105
|
+
embeddedContextLevels?: number;
|
|
9106
|
+
/**
|
|
9107
|
+
* Include the breadcrumb of the chunk in the vector embedding.
|
|
9108
|
+
*/
|
|
9109
|
+
embedBreadcrumb?: boolean;
|
|
9110
|
+
};
|
|
9111
|
+
summarization?: {
|
|
9112
|
+
/**
|
|
9113
|
+
* (Team/Enterprise plan only, charged as AI Spend) Create summaries for this file and index them as standalone vectors. Enabling this option will incur in AI Spend cost (charged to the workspace of the bot) to generate the summaries based on the amount of content in the file and the summarization model used.
|
|
9114
|
+
*
|
|
9115
|
+
* Please note that this feature is only available in Team and Enterprise plans.
|
|
9116
|
+
*/
|
|
9117
|
+
enable?: boolean;
|
|
9118
|
+
/**
|
|
9119
|
+
* The model type to use for summarization.
|
|
9120
|
+
*/
|
|
9121
|
+
modelType?: "inexpensive" | "balanced" | "accurate";
|
|
9122
|
+
/**
|
|
9123
|
+
* The minimum length a section of the file should have to create a summary of it.
|
|
9124
|
+
*/
|
|
9125
|
+
minimumInputLength?: number;
|
|
9126
|
+
/**
|
|
9127
|
+
* The maximum length of a summary (in tokens).
|
|
9128
|
+
*/
|
|
9129
|
+
outputTokenLimit?: number;
|
|
9130
|
+
/**
|
|
9131
|
+
* Generate a summary of the entire file and index it as a standalone vector.
|
|
9132
|
+
*/
|
|
9133
|
+
generateMasterSummary?: boolean;
|
|
9134
|
+
};
|
|
9135
|
+
vision?: {
|
|
9136
|
+
/**
|
|
9137
|
+
* (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 transcribe each page of the PDF as standalone vectors and index them.
|
|
9138
|
+
*
|
|
9139
|
+
* This feature is useful when a PDF file contains custom designs or layouts, or when your document has many infographics, which require visual processing in order to index the file effectively, as the default text-based indexing may not be enough to allow your bot to correctly understand the content in your PDFs.
|
|
9140
|
+
*
|
|
9141
|
+
* Notes:
|
|
9142
|
+
* - This feature is only available in Team and Enterprise plans.
|
|
9143
|
+
* - Enabling this feature will incurr in AI Spend cost to use a vision-enabled LLM to index the PDF pages.
|
|
9144
|
+
* - 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.
|
|
9145
|
+
* - Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.
|
|
9146
|
+
* - 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.
|
|
9147
|
+
*/
|
|
9148
|
+
transcribePages?: {
|
|
9149
|
+
[k: string]: any;
|
|
9150
|
+
};
|
|
9151
|
+
};
|
|
9152
|
+
};
|
|
9153
|
+
};
|
|
9049
9154
|
/**
|
|
9050
9155
|
* File access policies. Add "public_content" to allow public access to the file content. Add "integrations" to allow read, search and list operations for any integration installed in the bot.
|
|
9051
9156
|
*/
|
|
@@ -9064,6 +9169,12 @@ interface UpsertFileRequestBody {
|
|
|
9064
9169
|
* If set to `true`, the `x-amz-tagging` HTTP header with a value of `public=true` will need to be sent in the HTTP PUT request to the `uploadUrl` in order for the upload request to work.
|
|
9065
9170
|
*/
|
|
9066
9171
|
publicContentImmediatelyAccessible?: boolean;
|
|
9172
|
+
/**
|
|
9173
|
+
* Custom metadata for the file expressed as an object of key-value pairs. The values can be of any type.
|
|
9174
|
+
*/
|
|
9175
|
+
metadata?: {
|
|
9176
|
+
[k: string]: any;
|
|
9177
|
+
};
|
|
9067
9178
|
}
|
|
9068
9179
|
type UpsertFileInput = UpsertFileRequestBody & UpsertFileRequestHeaders & UpsertFileRequestQuery & UpsertFileRequestParams;
|
|
9069
9180
|
interface UpsertFileResponse {
|
|
@@ -9100,6 +9211,12 @@ interface UpsertFileResponse {
|
|
|
9100
9211
|
tags: {
|
|
9101
9212
|
[k: string]: string;
|
|
9102
9213
|
};
|
|
9214
|
+
/**
|
|
9215
|
+
* Metadata of the file as an object of key/value pairs. The values can be of any type.
|
|
9216
|
+
*/
|
|
9217
|
+
metadata: {
|
|
9218
|
+
[k: string]: any;
|
|
9219
|
+
};
|
|
9103
9220
|
/**
|
|
9104
9221
|
* File creation timestamp in ISO 8601 format
|
|
9105
9222
|
*/
|
|
@@ -9203,6 +9320,12 @@ interface ListFilesResponse {
|
|
|
9203
9320
|
tags: {
|
|
9204
9321
|
[k: string]: string;
|
|
9205
9322
|
};
|
|
9323
|
+
/**
|
|
9324
|
+
* Metadata of the file as an object of key/value pairs. The values can be of any type.
|
|
9325
|
+
*/
|
|
9326
|
+
metadata: {
|
|
9327
|
+
[k: string]: any | null;
|
|
9328
|
+
};
|
|
9206
9329
|
/**
|
|
9207
9330
|
* File creation timestamp in ISO 8601 format
|
|
9208
9331
|
*/
|
|
@@ -9290,6 +9413,12 @@ interface GetFileResponse {
|
|
|
9290
9413
|
tags: {
|
|
9291
9414
|
[k: string]: string;
|
|
9292
9415
|
};
|
|
9416
|
+
/**
|
|
9417
|
+
* Metadata of the file as an object of key/value pairs. The values can be of any type.
|
|
9418
|
+
*/
|
|
9419
|
+
metadata: {
|
|
9420
|
+
[k: string]: any;
|
|
9421
|
+
};
|
|
9293
9422
|
/**
|
|
9294
9423
|
* File creation timestamp in ISO 8601 format
|
|
9295
9424
|
*/
|
|
@@ -9335,6 +9464,12 @@ interface UpdateFileMetadataRequestParams {
|
|
|
9335
9464
|
id: string;
|
|
9336
9465
|
}
|
|
9337
9466
|
interface UpdateFileMetadataRequestBody {
|
|
9467
|
+
/**
|
|
9468
|
+
* Custom metadata for the file expressed as an object of key-value pairs. Omit to keep existing metadata intact. Any existing metadata keys not included will be preserved. New keys will be added. To delete a metadata key, set its value to `null`.
|
|
9469
|
+
*/
|
|
9470
|
+
metadata?: {
|
|
9471
|
+
[k: string]: any;
|
|
9472
|
+
};
|
|
9338
9473
|
/**
|
|
9339
9474
|
* The file tags to update as an object of key-value pairs with `string` (text) values. Omit to keep existing tags intact. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`.
|
|
9340
9475
|
*/
|
|
@@ -9385,6 +9520,12 @@ interface UpdateFileMetadataResponse {
|
|
|
9385
9520
|
tags: {
|
|
9386
9521
|
[k: string]: string;
|
|
9387
9522
|
};
|
|
9523
|
+
/**
|
|
9524
|
+
* Metadata of the file as an object of key/value pairs. The values can be of any type.
|
|
9525
|
+
*/
|
|
9526
|
+
metadata: {
|
|
9527
|
+
[k: string]: any;
|
|
9528
|
+
};
|
|
9388
9529
|
/**
|
|
9389
9530
|
* File creation timestamp in ISO 8601 format
|
|
9390
9531
|
*/
|
|
@@ -9506,7 +9647,7 @@ interface ListFilePassagesRequestQuery {
|
|
|
9506
9647
|
limit?: number;
|
|
9507
9648
|
}
|
|
9508
9649
|
interface ListFilePassagesRequestParams {
|
|
9509
|
-
|
|
9650
|
+
id: string;
|
|
9510
9651
|
}
|
|
9511
9652
|
interface ListFilePassagesRequestBody {
|
|
9512
9653
|
}
|
|
@@ -11438,6 +11579,10 @@ interface Integration {
|
|
|
11438
11579
|
* Name of the interface
|
|
11439
11580
|
*/
|
|
11440
11581
|
name: string;
|
|
11582
|
+
/**
|
|
11583
|
+
* Version of the interface
|
|
11584
|
+
*/
|
|
11585
|
+
version: string;
|
|
11441
11586
|
entities: {
|
|
11442
11587
|
[k: string]: {
|
|
11443
11588
|
name: string;
|
|
@@ -12447,6 +12592,12 @@ interface File {
|
|
|
12447
12592
|
tags: {
|
|
12448
12593
|
[k: string]: string;
|
|
12449
12594
|
};
|
|
12595
|
+
/**
|
|
12596
|
+
* Metadata of the file as an object of key/value pairs. The values can be of any type.
|
|
12597
|
+
*/
|
|
12598
|
+
metadata: {
|
|
12599
|
+
[k: string]: any;
|
|
12600
|
+
};
|
|
12450
12601
|
/**
|
|
12451
12602
|
* File creation timestamp in ISO 8601 format
|
|
12452
12603
|
*/
|
|
@@ -12891,45 +13042,9 @@ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenErro
|
|
|
12891
13042
|
declare const errorFrom: (err: unknown) => ApiError;
|
|
12892
13043
|
|
|
12893
13044
|
declare class UploadFileError extends Error {
|
|
12894
|
-
readonly innerError?: AxiosError
|
|
12895
|
-
readonly file?:
|
|
12896
|
-
|
|
12897
|
-
botId: string;
|
|
12898
|
-
key: string;
|
|
12899
|
-
url: string;
|
|
12900
|
-
size: number | null;
|
|
12901
|
-
contentType: string;
|
|
12902
|
-
tags: {
|
|
12903
|
-
[k: string]: string;
|
|
12904
|
-
};
|
|
12905
|
-
createdAt: string;
|
|
12906
|
-
updatedAt: string;
|
|
12907
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
12908
|
-
index: boolean;
|
|
12909
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
12910
|
-
failedStatusReason?: string | undefined;
|
|
12911
|
-
expiresAt?: string | undefined;
|
|
12912
|
-
uploadUrl: string;
|
|
12913
|
-
} | undefined;
|
|
12914
|
-
constructor(message: string, innerError?: AxiosError<unknown, any> | undefined, file?: {
|
|
12915
|
-
id: string;
|
|
12916
|
-
botId: string;
|
|
12917
|
-
key: string;
|
|
12918
|
-
url: string;
|
|
12919
|
-
size: number | null;
|
|
12920
|
-
contentType: string;
|
|
12921
|
-
tags: {
|
|
12922
|
-
[k: string]: string;
|
|
12923
|
-
};
|
|
12924
|
-
createdAt: string;
|
|
12925
|
-
updatedAt: string;
|
|
12926
|
-
accessPolicies: ("integrations" | "public_content")[];
|
|
12927
|
-
index: boolean;
|
|
12928
|
-
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
12929
|
-
failedStatusReason?: string | undefined;
|
|
12930
|
-
expiresAt?: string | undefined;
|
|
12931
|
-
uploadUrl: string;
|
|
12932
|
-
} | undefined);
|
|
13045
|
+
readonly innerError?: AxiosError | undefined;
|
|
13046
|
+
readonly file?: UpsertFileResponse["file"] | undefined;
|
|
13047
|
+
constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
|
|
12933
13048
|
}
|
|
12934
13049
|
|
|
12935
13050
|
type ListOperation = keyof {
|
|
@@ -12959,10 +13074,10 @@ declare class AsyncCollection<T> {
|
|
|
12959
13074
|
declare class Lister {
|
|
12960
13075
|
private _client;
|
|
12961
13076
|
constructor(_client: Client$1);
|
|
12962
|
-
readonly conversations: (props: ListInputs[
|
|
13077
|
+
readonly conversations: (props: ListInputs["listConversations"]) => AsyncCollection<{
|
|
12963
13078
|
id: string;
|
|
12964
|
-
currentTaskId?: string
|
|
12965
|
-
currentWorkflowId?: string
|
|
13079
|
+
currentTaskId?: string;
|
|
13080
|
+
currentWorkflowId?: string;
|
|
12966
13081
|
createdAt: string;
|
|
12967
13082
|
updatedAt: string;
|
|
12968
13083
|
channel: string;
|
|
@@ -12971,30 +13086,30 @@ declare class Lister {
|
|
|
12971
13086
|
[k: string]: string;
|
|
12972
13087
|
};
|
|
12973
13088
|
}>;
|
|
12974
|
-
readonly participants: (props: ListInputs[
|
|
13089
|
+
readonly participants: (props: ListInputs["listParticipants"]) => AsyncCollection<{
|
|
12975
13090
|
id: string;
|
|
12976
13091
|
createdAt: string;
|
|
12977
13092
|
updatedAt: string;
|
|
12978
13093
|
tags: {
|
|
12979
13094
|
[k: string]: string;
|
|
12980
13095
|
};
|
|
12981
|
-
name?: string
|
|
12982
|
-
pictureUrl?: string
|
|
13096
|
+
name?: string;
|
|
13097
|
+
pictureUrl?: string;
|
|
12983
13098
|
}>;
|
|
12984
|
-
readonly events: (props: ListInputs[
|
|
13099
|
+
readonly events: (props: ListInputs["listEvents"]) => AsyncCollection<{
|
|
12985
13100
|
id: string;
|
|
12986
13101
|
createdAt: string;
|
|
12987
13102
|
type: string;
|
|
12988
13103
|
payload: {
|
|
12989
13104
|
[k: string]: any;
|
|
12990
13105
|
};
|
|
12991
|
-
conversationId?: string
|
|
12992
|
-
userId?: string
|
|
12993
|
-
messageId?: string
|
|
13106
|
+
conversationId?: string;
|
|
13107
|
+
userId?: string;
|
|
13108
|
+
messageId?: string;
|
|
12994
13109
|
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
12995
13110
|
failureReason: string | null;
|
|
12996
13111
|
}>;
|
|
12997
|
-
readonly messages: (props: ListInputs[
|
|
13112
|
+
readonly messages: (props: ListInputs["listMessages"]) => AsyncCollection<{
|
|
12998
13113
|
id: string;
|
|
12999
13114
|
createdAt: string;
|
|
13000
13115
|
type: string;
|
|
@@ -13008,17 +13123,17 @@ declare class Lister {
|
|
|
13008
13123
|
[k: string]: string;
|
|
13009
13124
|
};
|
|
13010
13125
|
}>;
|
|
13011
|
-
readonly users: (props: ListInputs[
|
|
13126
|
+
readonly users: (props: ListInputs["listUsers"]) => AsyncCollection<{
|
|
13012
13127
|
id: string;
|
|
13013
13128
|
createdAt: string;
|
|
13014
13129
|
updatedAt: string;
|
|
13015
13130
|
tags: {
|
|
13016
13131
|
[k: string]: string;
|
|
13017
13132
|
};
|
|
13018
|
-
name?: string
|
|
13019
|
-
pictureUrl?: string
|
|
13133
|
+
name?: string;
|
|
13134
|
+
pictureUrl?: string;
|
|
13020
13135
|
}>;
|
|
13021
|
-
readonly tasks: (props: ListInputs[
|
|
13136
|
+
readonly tasks: (props: ListInputs["listTasks"]) => AsyncCollection<{
|
|
13022
13137
|
id: string;
|
|
13023
13138
|
title: string;
|
|
13024
13139
|
description: string;
|
|
@@ -13026,19 +13141,19 @@ declare class Lister {
|
|
|
13026
13141
|
data: {
|
|
13027
13142
|
[k: string]: any;
|
|
13028
13143
|
};
|
|
13029
|
-
status: "pending" | "
|
|
13030
|
-
parentTaskId?: string
|
|
13031
|
-
conversationId?: string
|
|
13032
|
-
userId?: string
|
|
13144
|
+
status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
|
|
13145
|
+
parentTaskId?: string;
|
|
13146
|
+
conversationId?: string;
|
|
13147
|
+
userId?: string;
|
|
13033
13148
|
timeoutAt: string;
|
|
13034
13149
|
createdAt: string;
|
|
13035
13150
|
updatedAt: string;
|
|
13036
|
-
failureReason?: string
|
|
13151
|
+
failureReason?: string;
|
|
13037
13152
|
tags: {
|
|
13038
13153
|
[k: string]: string;
|
|
13039
13154
|
};
|
|
13040
13155
|
}>;
|
|
13041
|
-
readonly publicIntegrations: (props: ListInputs[
|
|
13156
|
+
readonly publicIntegrations: (props: ListInputs["listPublicIntegrations"]) => AsyncCollection<{
|
|
13042
13157
|
id: string;
|
|
13043
13158
|
name: string;
|
|
13044
13159
|
version: string;
|
|
@@ -13048,7 +13163,7 @@ declare class Lister {
|
|
|
13048
13163
|
description: string;
|
|
13049
13164
|
iconUrl: string;
|
|
13050
13165
|
public: boolean;
|
|
13051
|
-
verificationStatus: "
|
|
13166
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
13052
13167
|
ownerWorkspace: {
|
|
13053
13168
|
id: string;
|
|
13054
13169
|
handle: string | null;
|
|
@@ -13059,14 +13174,14 @@ declare class Lister {
|
|
|
13059
13174
|
views: number;
|
|
13060
13175
|
};
|
|
13061
13176
|
}>;
|
|
13062
|
-
readonly bots: (props: ListInputs[
|
|
13177
|
+
readonly bots: (props: ListInputs["listBots"]) => AsyncCollection<{
|
|
13063
13178
|
id: string;
|
|
13064
13179
|
createdAt: string;
|
|
13065
13180
|
updatedAt: string;
|
|
13066
13181
|
name: string;
|
|
13067
|
-
deployedAt?: string
|
|
13182
|
+
deployedAt?: string;
|
|
13068
13183
|
}>;
|
|
13069
|
-
readonly botIssues: (props: ListInputs[
|
|
13184
|
+
readonly botIssues: (props: ListInputs["listBotIssues"]) => AsyncCollection<{
|
|
13070
13185
|
id: string;
|
|
13071
13186
|
code: string;
|
|
13072
13187
|
createdAt: string;
|
|
@@ -13076,25 +13191,25 @@ declare class Lister {
|
|
|
13076
13191
|
groupedData: {
|
|
13077
13192
|
[k: string]: {
|
|
13078
13193
|
raw: string;
|
|
13079
|
-
pretty?: string
|
|
13194
|
+
pretty?: string;
|
|
13080
13195
|
};
|
|
13081
13196
|
};
|
|
13082
13197
|
eventsCount: number;
|
|
13083
|
-
category: "
|
|
13198
|
+
category: "user_code" | "limits" | "configuration" | "other";
|
|
13084
13199
|
resolutionLink: string | null;
|
|
13085
13200
|
}>;
|
|
13086
|
-
readonly workspaces: (props: ListInputs[
|
|
13087
|
-
readonly publicWorkspaces: (props: ListInputs[
|
|
13088
|
-
readonly workspaceMembers: (props: ListInputs[
|
|
13201
|
+
readonly workspaces: (props: ListInputs["listWorkspaces"]) => AsyncCollection<UpdateWorkspaceResponse>;
|
|
13202
|
+
readonly publicWorkspaces: (props: ListInputs["listPublicWorkspaces"]) => AsyncCollection<GetPublicWorkspaceResponse>;
|
|
13203
|
+
readonly workspaceMembers: (props: ListInputs["listWorkspaceMembers"]) => AsyncCollection<{
|
|
13089
13204
|
id: string;
|
|
13090
|
-
userId?: string
|
|
13205
|
+
userId?: string;
|
|
13091
13206
|
email: string;
|
|
13092
13207
|
createdAt: string;
|
|
13093
13208
|
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
13094
|
-
profilePicture?: string
|
|
13095
|
-
displayName?: string
|
|
13209
|
+
profilePicture?: string;
|
|
13210
|
+
displayName?: string;
|
|
13096
13211
|
}>;
|
|
13097
|
-
readonly integrations: (props: ListInputs[
|
|
13212
|
+
readonly integrations: (props: ListInputs["listIntegrations"]) => AsyncCollection<{
|
|
13098
13213
|
id: string;
|
|
13099
13214
|
name: string;
|
|
13100
13215
|
version: string;
|
|
@@ -13104,16 +13219,16 @@ declare class Lister {
|
|
|
13104
13219
|
description: string;
|
|
13105
13220
|
iconUrl: string;
|
|
13106
13221
|
public: boolean;
|
|
13107
|
-
verificationStatus: "
|
|
13222
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
13108
13223
|
}>;
|
|
13109
|
-
readonly interfaces: (props: ListInputs[
|
|
13224
|
+
readonly interfaces: (props: ListInputs["listInterfaces"]) => AsyncCollection<{
|
|
13110
13225
|
id: string;
|
|
13111
13226
|
createdAt: string;
|
|
13112
13227
|
updatedAt: string;
|
|
13113
13228
|
name: string;
|
|
13114
13229
|
version: string;
|
|
13115
13230
|
}>;
|
|
13116
|
-
readonly activities: (props: ListInputs[
|
|
13231
|
+
readonly activities: (props: ListInputs["listActivities"]) => AsyncCollection<{
|
|
13117
13232
|
id: string;
|
|
13118
13233
|
description: string;
|
|
13119
13234
|
taskId: string;
|
|
@@ -13123,7 +13238,7 @@ declare class Lister {
|
|
|
13123
13238
|
};
|
|
13124
13239
|
createdAt: string;
|
|
13125
13240
|
}>;
|
|
13126
|
-
readonly files: (props: ListInputs[
|
|
13241
|
+
readonly files: (props: ListInputs["listFiles"]) => AsyncCollection<{
|
|
13127
13242
|
id: string;
|
|
13128
13243
|
botId: string;
|
|
13129
13244
|
key: string;
|
|
@@ -13133,22 +13248,25 @@ declare class Lister {
|
|
|
13133
13248
|
tags: {
|
|
13134
13249
|
[k: string]: string;
|
|
13135
13250
|
};
|
|
13251
|
+
metadata: {
|
|
13252
|
+
[k: string]: any | null;
|
|
13253
|
+
};
|
|
13136
13254
|
createdAt: string;
|
|
13137
13255
|
updatedAt: string;
|
|
13138
13256
|
accessPolicies: ("integrations" | "public_content")[];
|
|
13139
13257
|
index: boolean;
|
|
13140
13258
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
13141
|
-
failedStatusReason?: string
|
|
13142
|
-
expiresAt?: string
|
|
13259
|
+
failedStatusReason?: string;
|
|
13260
|
+
expiresAt?: string;
|
|
13143
13261
|
}>;
|
|
13144
|
-
readonly filePassages: (props: ListInputs[
|
|
13262
|
+
readonly filePassages: (props: ListInputs["listFilePassages"]) => AsyncCollection<{
|
|
13145
13263
|
id: string;
|
|
13146
13264
|
content: string;
|
|
13147
13265
|
meta: {
|
|
13148
|
-
type?: "chunk" | "summary" | "consolidated"
|
|
13149
|
-
subtype?: "
|
|
13150
|
-
pageNumber?: number
|
|
13151
|
-
position?: number
|
|
13266
|
+
type?: "chunk" | "summary" | "consolidated";
|
|
13267
|
+
subtype?: "title" | "subtitle" | "paragraph" | "list" | "blockquote" | "table" | "code";
|
|
13268
|
+
pageNumber?: number;
|
|
13269
|
+
position?: number;
|
|
13152
13270
|
};
|
|
13153
13271
|
}>;
|
|
13154
13272
|
}
|
|
@@ -13160,7 +13278,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
13160
13278
|
/**
|
|
13161
13279
|
* Create/update and upload a file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
|
|
13162
13280
|
*/
|
|
13163
|
-
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs[
|
|
13281
|
+
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, expiresAt, publicContentImmediatelyAccessible, }: ClientInputs["uploadFile"]) => Promise<ClientOutputs["uploadFile"]>;
|
|
13164
13282
|
}
|
|
13165
13283
|
|
|
13166
13284
|
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 };
|