@botpress/cognitive 0.3.8 → 0.3.9

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.3.8 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.3.9 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.3.8 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.3.9 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 6505ms
14
- DTS dist/index.d.ts 664.36 KB
13
+ DTS ⚡️ Build success in 6954ms
14
+ DTS dist/index.d.ts 665.56 KB
15
15
 
16
- > @botpress/cognitive@0.3.8 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.3.9 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
@@ -4426,6 +4426,52 @@ type TrackAnalyticsInput = TrackAnalyticsRequestBody & TrackAnalyticsRequestHead
4426
4426
  interface TrackAnalyticsResponse {
4427
4427
  }
4428
4428
 
4429
+ interface CaptureObservationRequestHeaders {
4430
+ }
4431
+ interface CaptureObservationRequestQuery {
4432
+ }
4433
+ interface CaptureObservationRequestParams {
4434
+ }
4435
+ interface CaptureObservationRequestBody {
4436
+ /**
4437
+ * Name of the observation
4438
+ */
4439
+ name: string;
4440
+ /**
4441
+ * Data of the observation
4442
+ */
4443
+ data: {
4444
+ [k: string]: any;
4445
+ };
4446
+ /**
4447
+ * ID of the message associated with the observation
4448
+ */
4449
+ messageId?: string;
4450
+ /**
4451
+ * ID of the event associated with the observation
4452
+ */
4453
+ eventId?: string;
4454
+ /**
4455
+ * ID of the conversation associated with the observation
4456
+ */
4457
+ conversationId?: string;
4458
+ /**
4459
+ * ID of the user associated with the observation
4460
+ */
4461
+ userId?: string;
4462
+ /**
4463
+ * ID of the error associated with the observation
4464
+ */
4465
+ errorId?: string;
4466
+ /**
4467
+ * ID of the trace associated with the observation
4468
+ */
4469
+ traceId?: string;
4470
+ }
4471
+ type CaptureObservationInput = CaptureObservationRequestBody & CaptureObservationRequestHeaders & CaptureObservationRequestQuery & CaptureObservationRequestParams;
4472
+ interface CaptureObservationResponse {
4473
+ }
4474
+
4429
4475
  interface RunVrlRequestHeaders {
4430
4476
  }
4431
4477
  interface RunVrlRequestQuery {
@@ -18571,6 +18617,7 @@ declare class Client$1 {
18571
18617
  readonly getOrCreateWorkflow: (input: GetOrCreateWorkflowInput) => Promise<GetOrCreateWorkflowResponse>;
18572
18618
  readonly listTagValues: (input: ListTagValuesInput) => Promise<ListTagValuesResponse>;
18573
18619
  readonly trackAnalytics: (input: TrackAnalyticsInput) => Promise<TrackAnalyticsResponse>;
18620
+ readonly captureObservation: (input: CaptureObservationInput) => Promise<CaptureObservationResponse>;
18574
18621
  readonly runVrl: (input: RunVrlInput) => Promise<RunVrlResponse>;
18575
18622
  readonly getAccount: (input: GetAccountInput) => Promise<GetAccountResponse>;
18576
18623
  readonly updateAccount: (input: UpdateAccountInput) => Promise<UpdateAccountResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",