@botpress/client 0.24.2 → 0.25.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 +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 +71 -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,13 +8119,17 @@ 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
|
/**
|
|
@@ -8148,6 +8154,58 @@ interface SearchFilesResponse {
|
|
|
8148
8154
|
}[];
|
|
8149
8155
|
}
|
|
8150
8156
|
|
|
8157
|
+
interface ListFilePassagesRequestHeaders {
|
|
8158
|
+
}
|
|
8159
|
+
interface ListFilePassagesRequestQuery {
|
|
8160
|
+
nextToken?: string;
|
|
8161
|
+
limit?: number;
|
|
8162
|
+
}
|
|
8163
|
+
interface ListFilePassagesRequestParams {
|
|
8164
|
+
fileId: string;
|
|
8165
|
+
}
|
|
8166
|
+
interface ListFilePassagesRequestBody {
|
|
8167
|
+
}
|
|
8168
|
+
type ListFilePassagesInput = ListFilePassagesRequestBody & ListFilePassagesRequestHeaders & ListFilePassagesRequestQuery & ListFilePassagesRequestParams;
|
|
8169
|
+
interface ListFilePassagesResponse {
|
|
8170
|
+
passages: {
|
|
8171
|
+
/**
|
|
8172
|
+
* Passage ID
|
|
8173
|
+
*/
|
|
8174
|
+
id: string;
|
|
8175
|
+
/**
|
|
8176
|
+
* The content of the passage.
|
|
8177
|
+
*/
|
|
8178
|
+
content: string;
|
|
8179
|
+
/**
|
|
8180
|
+
* The passage metadata.
|
|
8181
|
+
*/
|
|
8182
|
+
meta: {
|
|
8183
|
+
/**
|
|
8184
|
+
* The type of passage
|
|
8185
|
+
*/
|
|
8186
|
+
type?: "chunk";
|
|
8187
|
+
/**
|
|
8188
|
+
* The subtype of passage, if available.
|
|
8189
|
+
*/
|
|
8190
|
+
subtype?: "title" | "subtitle" | "paragraph" | "list" | "blockquote" | "table" | "code";
|
|
8191
|
+
/**
|
|
8192
|
+
* Page number the passage is located on. Only applicable if the passage was extracted from a PDF file.
|
|
8193
|
+
*/
|
|
8194
|
+
pageNumber?: number;
|
|
8195
|
+
/**
|
|
8196
|
+
* 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.
|
|
8197
|
+
*/
|
|
8198
|
+
position?: number;
|
|
8199
|
+
};
|
|
8200
|
+
}[];
|
|
8201
|
+
meta: {
|
|
8202
|
+
/**
|
|
8203
|
+
* 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.
|
|
8204
|
+
*/
|
|
8205
|
+
nextToken?: string;
|
|
8206
|
+
};
|
|
8207
|
+
}
|
|
8208
|
+
|
|
8151
8209
|
interface ListTablesRequestHeaders {
|
|
8152
8210
|
}
|
|
8153
8211
|
interface ListTablesRequestQuery {
|
|
@@ -8221,7 +8279,7 @@ interface ListTablesResponse {
|
|
|
8221
8279
|
/**
|
|
8222
8280
|
* Model to use when action is "ai"
|
|
8223
8281
|
*/
|
|
8224
|
-
model?:
|
|
8282
|
+
model?: string;
|
|
8225
8283
|
/**
|
|
8226
8284
|
* ID of Workflow to execute when action is "workflow"
|
|
8227
8285
|
*/
|
|
@@ -8337,7 +8395,7 @@ interface GetTableResponse {
|
|
|
8337
8395
|
/**
|
|
8338
8396
|
* Model to use when action is "ai"
|
|
8339
8397
|
*/
|
|
8340
|
-
model?:
|
|
8398
|
+
model?: string;
|
|
8341
8399
|
/**
|
|
8342
8400
|
* ID of Workflow to execute when action is "workflow"
|
|
8343
8401
|
*/
|
|
@@ -8489,7 +8547,7 @@ interface GetOrCreateTableResponse {
|
|
|
8489
8547
|
/**
|
|
8490
8548
|
* Model to use when action is "ai"
|
|
8491
8549
|
*/
|
|
8492
|
-
model?:
|
|
8550
|
+
model?: string;
|
|
8493
8551
|
/**
|
|
8494
8552
|
* ID of Workflow to execute when action is "workflow"
|
|
8495
8553
|
*/
|
|
@@ -8648,7 +8706,7 @@ interface CreateTableResponse {
|
|
|
8648
8706
|
/**
|
|
8649
8707
|
* Model to use when action is "ai"
|
|
8650
8708
|
*/
|
|
8651
|
-
model?:
|
|
8709
|
+
model?: string;
|
|
8652
8710
|
/**
|
|
8653
8711
|
* ID of Workflow to execute when action is "workflow"
|
|
8654
8712
|
*/
|
|
@@ -8773,7 +8831,7 @@ interface DuplicateTableResponse {
|
|
|
8773
8831
|
/**
|
|
8774
8832
|
* Model to use when action is "ai"
|
|
8775
8833
|
*/
|
|
8776
|
-
model?:
|
|
8834
|
+
model?: string;
|
|
8777
8835
|
/**
|
|
8778
8836
|
* ID of Workflow to execute when action is "workflow"
|
|
8779
8837
|
*/
|
|
@@ -8917,7 +8975,7 @@ interface UpdateTableResponse {
|
|
|
8917
8975
|
/**
|
|
8918
8976
|
* Model to use when action is "ai"
|
|
8919
8977
|
*/
|
|
8920
|
-
model?:
|
|
8978
|
+
model?: string;
|
|
8921
8979
|
/**
|
|
8922
8980
|
* ID of Workflow to execute when action is "workflow"
|
|
8923
8981
|
*/
|
|
@@ -9045,7 +9103,7 @@ interface RenameTableColumnResponse {
|
|
|
9045
9103
|
/**
|
|
9046
9104
|
* Model to use when action is "ai"
|
|
9047
9105
|
*/
|
|
9048
|
-
model?:
|
|
9106
|
+
model?: string;
|
|
9049
9107
|
/**
|
|
9050
9108
|
* ID of Workflow to execute when action is "workflow"
|
|
9051
9109
|
*/
|
|
@@ -10492,7 +10550,7 @@ interface Table {
|
|
|
10492
10550
|
/**
|
|
10493
10551
|
* Model to use when action is "ai"
|
|
10494
10552
|
*/
|
|
10495
|
-
model?:
|
|
10553
|
+
model?: string;
|
|
10496
10554
|
/**
|
|
10497
10555
|
* ID of Workflow to execute when action is "workflow"
|
|
10498
10556
|
*/
|
|
@@ -10570,7 +10628,7 @@ interface Column {
|
|
|
10570
10628
|
/**
|
|
10571
10629
|
* Model to use when action is "ai"
|
|
10572
10630
|
*/
|
|
10573
|
-
model?:
|
|
10631
|
+
model?: string;
|
|
10574
10632
|
/**
|
|
10575
10633
|
* ID of Workflow to execute when action is "workflow"
|
|
10576
10634
|
*/
|
|
@@ -10800,6 +10858,7 @@ declare class Client$1 {
|
|
|
10800
10858
|
readonly getFile: (input: GetFileInput) => Promise<GetFileResponse>;
|
|
10801
10859
|
readonly updateFileMetadata: (input: UpdateFileMetadataInput) => Promise<UpdateFileMetadataResponse>;
|
|
10802
10860
|
readonly searchFiles: (input: SearchFilesInput) => Promise<SearchFilesResponse>;
|
|
10861
|
+
readonly listFilePassages: (input: ListFilePassagesInput) => Promise<ListFilePassagesResponse>;
|
|
10803
10862
|
readonly listTables: (input: ListTablesInput) => Promise<ListTablesResponse>;
|
|
10804
10863
|
readonly getTable: (input: GetTableInput) => Promise<GetTableResponse>;
|
|
10805
10864
|
readonly getOrCreateTable: (input: GetOrCreateTableInput) => Promise<GetOrCreateTableResponse>;
|