@botpress/cognitive 0.1.35 → 0.1.36

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.
@@ -1,19 +1,19 @@
1
1
 
2
- > @botpress/cognitive@0.1.35 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.1.36 build /home/runner/work/botpress/botpress/packages/cognitive
3
3
  > pnpm build:type && pnpm build:neutral && size-limit
4
4
 
5
5
 
6
- > @botpress/cognitive@0.1.35 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.1.36 build:type /home/runner/work/botpress/botpress/packages/cognitive
7
7
  > tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
8
8
 
9
9
  CLI Building entry: ./src/index.ts
10
10
  CLI Using tsconfig: tsconfig.build.json
11
11
  CLI tsup v8.0.2
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 16845ms
14
- DTS dist/index.d.ts 616.42 KB
13
+ DTS ⚡️ Build success in 14921ms
14
+ DTS dist/index.d.ts 618.55 KB
15
15
 
16
- > @botpress/cognitive@0.1.35 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.1.36 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
17
17
  > ts-node -T ./build.ts --neutral
18
18
 
19
19
  Done
package/dist/index.d.ts CHANGED
@@ -1297,6 +1297,10 @@ interface UpsertFileResponse$1 {
1297
1297
  */
1298
1298
  name?: string;
1299
1299
  };
1300
+ /**
1301
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
1302
+ */
1303
+ indexingStack?: "v1" | "v2";
1300
1304
  /**
1301
1305
  * URL to upload the file content. File content needs to be sent to this URL via a PUT request.
1302
1306
  */
@@ -1842,6 +1846,10 @@ interface CreateEventRequestBody {
1842
1846
  * ID of the [User](#schema_user) to link the event to.
1843
1847
  */
1844
1848
  userId?: string;
1849
+ /**
1850
+ * ID of the [Workflow](#schema_workflow) to link the event to.
1851
+ */
1852
+ workflowId?: string;
1845
1853
  /**
1846
1854
  * ID of the [Message](#schema_message) to link the event to.
1847
1855
  */
@@ -1952,6 +1960,7 @@ interface ListEventsRequestQuery {
1952
1960
  conversationId?: string;
1953
1961
  userId?: string;
1954
1962
  messageId?: string;
1963
+ workflowId?: string;
1955
1964
  status?: "pending" | "ignored" | "processed" | "failed" | "scheduled";
1956
1965
  }
1957
1966
  interface ListEventsRequestParams {
@@ -6491,7 +6500,7 @@ interface CreateBotResponse {
6491
6500
  */
6492
6501
  signingSecret: string;
6493
6502
  /**
6494
- * A mapping of integrations to their configuration
6503
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
6495
6504
  */
6496
6505
  integrations: {
6497
6506
  [k: string]: {
@@ -7122,7 +7131,7 @@ interface UpdateBotResponse {
7122
7131
  */
7123
7132
  signingSecret: string;
7124
7133
  /**
7125
- * A mapping of integrations to their configuration
7134
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
7126
7135
  */
7127
7136
  integrations: {
7128
7137
  [k: string]: {
@@ -7585,7 +7594,7 @@ interface GetBotResponse {
7585
7594
  */
7586
7595
  signingSecret: string;
7587
7596
  /**
7588
- * A mapping of integrations to their configuration
7597
+ * A mapping of integrations to their configuration. If the `x-multiple-integrations` header is present, this object is keyed by integration aliases. Otherwise, this object is keyed by integration ids.
7589
7598
  */
7590
7599
  integrations: {
7591
7600
  [k: string]: {
@@ -15352,6 +15361,10 @@ interface UpsertFileResponse {
15352
15361
  */
15353
15362
  name?: string;
15354
15363
  };
15364
+ /**
15365
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
15366
+ */
15367
+ indexingStack?: "v1" | "v2";
15355
15368
  /**
15356
15369
  * URL to upload the file content. File content needs to be sent to this URL via a PUT request.
15357
15370
  */
@@ -15474,6 +15487,10 @@ interface ListFilesResponse {
15474
15487
  */
15475
15488
  name?: string;
15476
15489
  };
15490
+ /**
15491
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
15492
+ */
15493
+ indexingStack?: "v1" | "v2";
15477
15494
  }[];
15478
15495
  meta: {
15479
15496
  /**
@@ -15578,6 +15595,10 @@ interface GetFileResponse {
15578
15595
  */
15579
15596
  name?: string;
15580
15597
  };
15598
+ /**
15599
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
15600
+ */
15601
+ indexingStack?: "v1" | "v2";
15581
15602
  };
15582
15603
  }
15583
15604
 
@@ -15696,6 +15717,10 @@ interface UpdateFileMetadataResponse {
15696
15717
  */
15697
15718
  name?: string;
15698
15719
  };
15720
+ /**
15721
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
15722
+ */
15723
+ indexingStack?: "v1" | "v2";
15699
15724
  };
15700
15725
  }
15701
15726
 
@@ -15802,6 +15827,10 @@ interface CopyFileResponse {
15802
15827
  */
15803
15828
  name?: string;
15804
15829
  };
15830
+ /**
15831
+ * Indicates the indexing stack used to index this file. Present only when file has been successfully indexed. A value of "v2" denotes the latest stack, "v1" denotes the legacy stack.
15832
+ */
15833
+ indexingStack?: "v1" | "v2";
15805
15834
  };
15806
15835
  }
15807
15836
 
@@ -18019,6 +18048,7 @@ declare class Client extends Client$1 implements IClient {
18019
18048
  type?: string | undefined;
18020
18049
  userId?: string | undefined;
18021
18050
  conversationId?: string | undefined;
18051
+ workflowId?: string | undefined;
18022
18052
  messageId?: string | undefined;
18023
18053
  status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
18024
18054
  }) => AsyncCollection<{
@@ -18323,6 +18353,7 @@ declare class Client extends Client$1 implements IClient {
18323
18353
  id?: string;
18324
18354
  name?: string;
18325
18355
  };
18356
+ indexingStack?: "v1" | "v2";
18326
18357
  }>;
18327
18358
  filePassages: (props: {
18328
18359
  id: string;
@@ -0,0 +1,13 @@
1
+ import rootConfig from '../../eslint.config.mjs'
2
+
3
+ export default [
4
+ ...rootConfig,
5
+ {
6
+ languageOptions: {
7
+ parserOptions: {
8
+ project: ['./tsconfig.json'],
9
+ tsconfigRootDir: import.meta.dirname,
10
+ },
11
+ },
12
+ },
13
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",