@botpress/client 0.24.2 → 0.25.1
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 +11 -11
- 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 +79 -12
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/package.json +3 -4
- package/tests/e2e/node.ts +1 -1
- package/tests/e2e/browser/index.ts +0 -71
- package/tests/e2e/browser/script.ts +0 -34
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,8 @@ interface ListConversationsRequestHeaders {
|
|
|
132
132
|
}
|
|
133
133
|
interface ListConversationsRequestQuery {
|
|
134
134
|
nextToken?: string;
|
|
135
|
+
sortField?: "createdAt" | "updatedAt";
|
|
136
|
+
sortDirection?: "asc" | "desc";
|
|
135
137
|
tags?: {
|
|
136
138
|
[k: string]: string;
|
|
137
139
|
};
|
|
@@ -8109,7 +8111,7 @@ interface SearchFilesResponse {
|
|
|
8109
8111
|
*/
|
|
8110
8112
|
score: number;
|
|
8111
8113
|
/**
|
|
8112
|
-
* The passage metadata
|
|
8114
|
+
* The passage metadata.
|
|
8113
8115
|
*/
|
|
8114
8116
|
meta: {
|
|
8115
8117
|
/**
|
|
@@ -8117,19 +8119,31 @@ interface SearchFilesResponse {
|
|
|
8117
8119
|
*/
|
|
8118
8120
|
type?: "chunk";
|
|
8119
8121
|
/**
|
|
8120
|
-
* The subtype of passage, if
|
|
8122
|
+
* The subtype of passage, if available.
|
|
8121
8123
|
*/
|
|
8122
|
-
subtype?: "title" | "subtitle" | "paragraph" | "list" | "
|
|
8124
|
+
subtype?: "title" | "subtitle" | "paragraph" | "list" | "blockquote" | "table" | "code";
|
|
8123
8125
|
/**
|
|
8124
8126
|
* Page number the passage is located on. Only applicable if the passage was extracted from a PDF file.
|
|
8125
8127
|
*/
|
|
8126
8128
|
pageNumber?: number;
|
|
8129
|
+
/**
|
|
8130
|
+
* 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.
|
|
8131
|
+
*/
|
|
8132
|
+
position?: number;
|
|
8127
8133
|
};
|
|
8128
8134
|
file: {
|
|
8129
8135
|
/**
|
|
8130
8136
|
* File ID
|
|
8131
8137
|
*/
|
|
8132
8138
|
id: string;
|
|
8139
|
+
/**
|
|
8140
|
+
* Unique key for the file. Must be unique across the bot (and the integration, when applicable).
|
|
8141
|
+
*/
|
|
8142
|
+
key: string;
|
|
8143
|
+
/**
|
|
8144
|
+
* MIME type of the file's content
|
|
8145
|
+
*/
|
|
8146
|
+
contentType: string;
|
|
8133
8147
|
/**
|
|
8134
8148
|
* The tags of the file as an object of key-value pairs.
|
|
8135
8149
|
*/
|
|
@@ -8148,6 +8162,58 @@ interface SearchFilesResponse {
|
|
|
8148
8162
|
}[];
|
|
8149
8163
|
}
|
|
8150
8164
|
|
|
8165
|
+
interface ListFilePassagesRequestHeaders {
|
|
8166
|
+
}
|
|
8167
|
+
interface ListFilePassagesRequestQuery {
|
|
8168
|
+
nextToken?: string;
|
|
8169
|
+
limit?: number;
|
|
8170
|
+
}
|
|
8171
|
+
interface ListFilePassagesRequestParams {
|
|
8172
|
+
fileId: string;
|
|
8173
|
+
}
|
|
8174
|
+
interface ListFilePassagesRequestBody {
|
|
8175
|
+
}
|
|
8176
|
+
type ListFilePassagesInput = ListFilePassagesRequestBody & ListFilePassagesRequestHeaders & ListFilePassagesRequestQuery & ListFilePassagesRequestParams;
|
|
8177
|
+
interface ListFilePassagesResponse {
|
|
8178
|
+
passages: {
|
|
8179
|
+
/**
|
|
8180
|
+
* Passage ID
|
|
8181
|
+
*/
|
|
8182
|
+
id: string;
|
|
8183
|
+
/**
|
|
8184
|
+
* The content of the passage.
|
|
8185
|
+
*/
|
|
8186
|
+
content: string;
|
|
8187
|
+
/**
|
|
8188
|
+
* The passage metadata.
|
|
8189
|
+
*/
|
|
8190
|
+
meta: {
|
|
8191
|
+
/**
|
|
8192
|
+
* The type of passage
|
|
8193
|
+
*/
|
|
8194
|
+
type?: "chunk";
|
|
8195
|
+
/**
|
|
8196
|
+
* The subtype of passage, if available.
|
|
8197
|
+
*/
|
|
8198
|
+
subtype?: "title" | "subtitle" | "paragraph" | "list" | "blockquote" | "table" | "code";
|
|
8199
|
+
/**
|
|
8200
|
+
* Page number the passage is located on. Only applicable if the passage was extracted from a PDF file.
|
|
8201
|
+
*/
|
|
8202
|
+
pageNumber?: number;
|
|
8203
|
+
/**
|
|
8204
|
+
* 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.
|
|
8205
|
+
*/
|
|
8206
|
+
position?: number;
|
|
8207
|
+
};
|
|
8208
|
+
}[];
|
|
8209
|
+
meta: {
|
|
8210
|
+
/**
|
|
8211
|
+
* The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
|
|
8212
|
+
*/
|
|
8213
|
+
nextToken?: string;
|
|
8214
|
+
};
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8151
8217
|
interface ListTablesRequestHeaders {
|
|
8152
8218
|
}
|
|
8153
8219
|
interface ListTablesRequestQuery {
|
|
@@ -8221,7 +8287,7 @@ interface ListTablesResponse {
|
|
|
8221
8287
|
/**
|
|
8222
8288
|
* Model to use when action is "ai"
|
|
8223
8289
|
*/
|
|
8224
|
-
model?:
|
|
8290
|
+
model?: string;
|
|
8225
8291
|
/**
|
|
8226
8292
|
* ID of Workflow to execute when action is "workflow"
|
|
8227
8293
|
*/
|
|
@@ -8337,7 +8403,7 @@ interface GetTableResponse {
|
|
|
8337
8403
|
/**
|
|
8338
8404
|
* Model to use when action is "ai"
|
|
8339
8405
|
*/
|
|
8340
|
-
model?:
|
|
8406
|
+
model?: string;
|
|
8341
8407
|
/**
|
|
8342
8408
|
* ID of Workflow to execute when action is "workflow"
|
|
8343
8409
|
*/
|
|
@@ -8489,7 +8555,7 @@ interface GetOrCreateTableResponse {
|
|
|
8489
8555
|
/**
|
|
8490
8556
|
* Model to use when action is "ai"
|
|
8491
8557
|
*/
|
|
8492
|
-
model?:
|
|
8558
|
+
model?: string;
|
|
8493
8559
|
/**
|
|
8494
8560
|
* ID of Workflow to execute when action is "workflow"
|
|
8495
8561
|
*/
|
|
@@ -8648,7 +8714,7 @@ interface CreateTableResponse {
|
|
|
8648
8714
|
/**
|
|
8649
8715
|
* Model to use when action is "ai"
|
|
8650
8716
|
*/
|
|
8651
|
-
model?:
|
|
8717
|
+
model?: string;
|
|
8652
8718
|
/**
|
|
8653
8719
|
* ID of Workflow to execute when action is "workflow"
|
|
8654
8720
|
*/
|
|
@@ -8773,7 +8839,7 @@ interface DuplicateTableResponse {
|
|
|
8773
8839
|
/**
|
|
8774
8840
|
* Model to use when action is "ai"
|
|
8775
8841
|
*/
|
|
8776
|
-
model?:
|
|
8842
|
+
model?: string;
|
|
8777
8843
|
/**
|
|
8778
8844
|
* ID of Workflow to execute when action is "workflow"
|
|
8779
8845
|
*/
|
|
@@ -8917,7 +8983,7 @@ interface UpdateTableResponse {
|
|
|
8917
8983
|
/**
|
|
8918
8984
|
* Model to use when action is "ai"
|
|
8919
8985
|
*/
|
|
8920
|
-
model?:
|
|
8986
|
+
model?: string;
|
|
8921
8987
|
/**
|
|
8922
8988
|
* ID of Workflow to execute when action is "workflow"
|
|
8923
8989
|
*/
|
|
@@ -9045,7 +9111,7 @@ interface RenameTableColumnResponse {
|
|
|
9045
9111
|
/**
|
|
9046
9112
|
* Model to use when action is "ai"
|
|
9047
9113
|
*/
|
|
9048
|
-
model?:
|
|
9114
|
+
model?: string;
|
|
9049
9115
|
/**
|
|
9050
9116
|
* ID of Workflow to execute when action is "workflow"
|
|
9051
9117
|
*/
|
|
@@ -10492,7 +10558,7 @@ interface Table {
|
|
|
10492
10558
|
/**
|
|
10493
10559
|
* Model to use when action is "ai"
|
|
10494
10560
|
*/
|
|
10495
|
-
model?:
|
|
10561
|
+
model?: string;
|
|
10496
10562
|
/**
|
|
10497
10563
|
* ID of Workflow to execute when action is "workflow"
|
|
10498
10564
|
*/
|
|
@@ -10570,7 +10636,7 @@ interface Column {
|
|
|
10570
10636
|
/**
|
|
10571
10637
|
* Model to use when action is "ai"
|
|
10572
10638
|
*/
|
|
10573
|
-
model?:
|
|
10639
|
+
model?: string;
|
|
10574
10640
|
/**
|
|
10575
10641
|
* ID of Workflow to execute when action is "workflow"
|
|
10576
10642
|
*/
|
|
@@ -10800,6 +10866,7 @@ declare class Client$1 {
|
|
|
10800
10866
|
readonly getFile: (input: GetFileInput) => Promise<GetFileResponse>;
|
|
10801
10867
|
readonly updateFileMetadata: (input: UpdateFileMetadataInput) => Promise<UpdateFileMetadataResponse>;
|
|
10802
10868
|
readonly searchFiles: (input: SearchFilesInput) => Promise<SearchFilesResponse>;
|
|
10869
|
+
readonly listFilePassages: (input: ListFilePassagesInput) => Promise<ListFilePassagesResponse>;
|
|
10803
10870
|
readonly listTables: (input: ListTablesInput) => Promise<ListTablesResponse>;
|
|
10804
10871
|
readonly getTable: (input: GetTableInput) => Promise<GetTableResponse>;
|
|
10805
10872
|
readonly getOrCreateTable: (input: GetOrCreateTableInput) => Promise<GetOrCreateTableResponse>;
|