@botpress/cognitive 0.1.26 → 0.1.27

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.26 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.1.27 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.26 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.1.27 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 16044ms
14
- DTS dist/index.d.ts 586.94 KB
13
+ DTS ⚡️ Build success in 12914ms
14
+ DTS dist/index.d.ts 588.05 KB
15
15
 
16
- > @botpress/cognitive@0.1.26 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.1.27 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
@@ -17608,6 +17608,37 @@ declare class Client extends Client$1 implements IClient {
17608
17608
  source?: string;
17609
17609
  };
17610
17610
  }>;
17611
+ workflows: (props: {
17612
+ tags?: {
17613
+ [x: string]: string;
17614
+ } | undefined;
17615
+ userId?: string | undefined;
17616
+ conversationId?: string | undefined;
17617
+ name?: string | undefined;
17618
+ parentWorkflowId?: string | undefined;
17619
+ statuses?: ("pending" | "failed" | "in_progress" | "completed" | "paused" | "cancelled" | "listening" | "timedout")[] | undefined;
17620
+ }) => AsyncCollection<{
17621
+ id: string;
17622
+ name: string;
17623
+ status: "pending" | "in_progress" | "failed" | "completed" | "listening" | "paused" | "timedout" | "cancelled";
17624
+ input: {
17625
+ [k: string]: any;
17626
+ };
17627
+ output: {
17628
+ [k: string]: any;
17629
+ };
17630
+ parentWorkflowId?: string;
17631
+ conversationId?: string;
17632
+ userId?: string;
17633
+ createdAt: string;
17634
+ updatedAt: string;
17635
+ completedAt?: string;
17636
+ failureReason?: string;
17637
+ timeoutAt: string;
17638
+ tags: {
17639
+ [k: string]: string;
17640
+ };
17641
+ }>;
17611
17642
  };
17612
17643
  /**
17613
17644
  * Create/update and upload a file in a single step. Returns an object containing the file metadata and the URL to retrieve the file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",