@botpress/cognitive 0.1.11 → 0.1.12

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.11 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.1.12 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.11 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.1.12 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 10399ms
14
- DTS dist/index.d.ts 520.39 KB
13
+ DTS ⚡️ Build success in 11385ms
14
+ DTS dist/index.d.ts 521.56 KB
15
15
 
16
- > @botpress/cognitive@0.1.11 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.1.12 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
@@ -15470,6 +15470,28 @@ declare class Client extends Client$1 implements IClient {
15470
15470
  sourceUrl?: string;
15471
15471
  };
15472
15472
  }>;
15473
+ usageActivity: (props: {
15474
+ type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive";
15475
+ id: string;
15476
+ timestampFrom?: string | undefined;
15477
+ timestampUntil?: string | undefined;
15478
+ }) => AsyncCollection<{
15479
+ timestamp: string;
15480
+ value: number;
15481
+ period: string;
15482
+ metadata: {
15483
+ [k: string]: any | null;
15484
+ };
15485
+ }>;
15486
+ usageActivityDaily: (props: {
15487
+ type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive";
15488
+ id: string;
15489
+ dateFrom?: string | undefined;
15490
+ dateUntil?: string | undefined;
15491
+ }) => AsyncCollection<{
15492
+ date: string;
15493
+ value: number;
15494
+ }>;
15473
15495
  };
15474
15496
  /**
15475
15497
  * 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.11",
3
+ "version": "0.1.12",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",