@botpress/client 1.10.0 → 1.11.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/dist/index.d.ts CHANGED
@@ -13980,6 +13980,33 @@ interface ListFilePassagesResponse$1 {
13980
13980
  };
13981
13981
  }
13982
13982
 
13983
+ interface SetFilePassagesRequestHeaders$1 {
13984
+ }
13985
+ interface SetFilePassagesRequestQuery$1 {
13986
+ }
13987
+ interface SetFilePassagesRequestParams$1 {
13988
+ id: string;
13989
+ }
13990
+ interface SetFilePassagesRequestBody$1 {
13991
+ /**
13992
+ * Note: The passages should appear in the array in the same order as they appear in the original document.
13993
+ */
13994
+ passages: {
13995
+ /**
13996
+ * The content of the passage, supports Markdown formatting.
13997
+ */
13998
+ content: string;
13999
+ /**
14000
+ * The type should match the Markdown format used for the passage content.
14001
+ */
14002
+ type?: "title" | "subtitle" | "paragraph" | "blockquote" | "list" | "table" | "code" | "image";
14003
+ pageNumber?: number;
14004
+ }[];
14005
+ }
14006
+ type SetFilePassagesInput$1 = SetFilePassagesRequestBody$1 & SetFilePassagesRequestHeaders$1 & SetFilePassagesRequestQuery$1 & SetFilePassagesRequestParams$1;
14007
+ interface SetFilePassagesResponse$1 {
14008
+ }
14009
+
13983
14010
  interface ListFileTagsRequestHeaders$1 {
13984
14011
  }
13985
14012
  interface ListFileTagsRequestQuery$1 {
@@ -14136,6 +14163,7 @@ declare class Client$5 {
14136
14163
  readonly copyFile: (input: CopyFileInput$1) => Promise<CopyFileResponse$1>;
14137
14164
  readonly searchFiles: (input: SearchFilesInput$1) => Promise<SearchFilesResponse$1>;
14138
14165
  readonly listFilePassages: (input: ListFilePassagesInput$1) => Promise<ListFilePassagesResponse$1>;
14166
+ readonly setFilePassages: (input: SetFilePassagesInput$1) => Promise<SetFilePassagesResponse$1>;
14139
14167
  readonly listFileTags: (input: ListFileTagsInput$1) => Promise<ListFileTagsResponse$1>;
14140
14168
  readonly listFileTagValues: (input: ListFileTagValuesInput$1) => Promise<ListFileTagValuesResponse$1>;
14141
14169
  readonly createKnowledgeBase: (input: CreateKnowledgeBaseInput$1) => Promise<CreateKnowledgeBaseResponse$1>;
@@ -29294,6 +29322,33 @@ interface ListFilePassagesResponse {
29294
29322
  };
29295
29323
  }
29296
29324
 
29325
+ interface SetFilePassagesRequestHeaders {
29326
+ }
29327
+ interface SetFilePassagesRequestQuery {
29328
+ }
29329
+ interface SetFilePassagesRequestParams {
29330
+ id: string;
29331
+ }
29332
+ interface SetFilePassagesRequestBody {
29333
+ /**
29334
+ * Note: The passages should appear in the array in the same order as they appear in the original document.
29335
+ */
29336
+ passages: {
29337
+ /**
29338
+ * The content of the passage, supports Markdown formatting.
29339
+ */
29340
+ content: string;
29341
+ /**
29342
+ * The type should match the Markdown format used for the passage content.
29343
+ */
29344
+ type?: "title" | "subtitle" | "paragraph" | "blockquote" | "list" | "table" | "code" | "image";
29345
+ pageNumber?: number;
29346
+ }[];
29347
+ }
29348
+ type SetFilePassagesInput = SetFilePassagesRequestBody & SetFilePassagesRequestHeaders & SetFilePassagesRequestQuery & SetFilePassagesRequestParams;
29349
+ interface SetFilePassagesResponse {
29350
+ }
29351
+
29297
29352
  interface ListFileTagsRequestHeaders {
29298
29353
  }
29299
29354
  interface ListFileTagsRequestQuery {
@@ -32966,6 +33021,7 @@ declare class Client$1 {
32966
33021
  readonly copyFile: (input: CopyFileInput) => Promise<CopyFileResponse>;
32967
33022
  readonly searchFiles: (input: SearchFilesInput) => Promise<SearchFilesResponse>;
32968
33023
  readonly listFilePassages: (input: ListFilePassagesInput) => Promise<ListFilePassagesResponse>;
33024
+ readonly setFilePassages: (input: SetFilePassagesInput) => Promise<SetFilePassagesResponse>;
32969
33025
  readonly listFileTags: (input: ListFileTagsInput) => Promise<ListFileTagsResponse>;
32970
33026
  readonly listFileTagValues: (input: ListFileTagValuesInput) => Promise<ListFileTagValuesResponse>;
32971
33027
  readonly createKnowledgeBase: (input: CreateKnowledgeBaseInput) => Promise<CreateKnowledgeBaseResponse>;