@botpress/cognitive 0.2.0 → 0.2.1

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.2.0 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.2.1 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.2.0 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.2.1 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 4145ms
14
- DTS dist/index.d.ts 631.81 KB
13
+ DTS ⚡️ Build success in 4315ms
14
+ DTS dist/index.d.ts 632.56 KB
15
15
 
16
- > @botpress/cognitive@0.2.0 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.2.1 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
@@ -1896,7 +1896,7 @@ interface CreateEventResponse {
1896
1896
  * ID of the [Message](#schema_message) to link the event to.
1897
1897
  */
1898
1898
  messageId?: string;
1899
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
1899
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
1900
1900
  /**
1901
1901
  * Reason why the event failed to be processed
1902
1902
  */
@@ -1949,7 +1949,7 @@ interface GetEventResponse {
1949
1949
  * ID of the [Message](#schema_message) to link the event to.
1950
1950
  */
1951
1951
  messageId?: string;
1952
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
1952
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
1953
1953
  /**
1954
1954
  * Reason why the event failed to be processed
1955
1955
  */
@@ -2005,7 +2005,7 @@ interface ListEventsResponse {
2005
2005
  * ID of the [Message](#schema_message) to link the event to.
2006
2006
  */
2007
2007
  messageId?: string;
2008
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
2008
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
2009
2009
  /**
2010
2010
  * Reason why the event failed to be processed
2011
2011
  */
@@ -2019,6 +2019,19 @@ interface ListEventsResponse {
2019
2019
  };
2020
2020
  }
2021
2021
 
2022
+ interface CancelScheduledEventRequestHeaders {
2023
+ }
2024
+ interface CancelScheduledEventRequestQuery {
2025
+ }
2026
+ interface CancelScheduledEventRequestParams {
2027
+ id: string;
2028
+ }
2029
+ interface CancelScheduledEventRequestBody {
2030
+ }
2031
+ type CancelScheduledEventInput = CancelScheduledEventRequestBody & CancelScheduledEventRequestHeaders & CancelScheduledEventRequestQuery & CancelScheduledEventRequestParams;
2032
+ interface CancelScheduledEventResponse {
2033
+ }
2034
+
2022
2035
  interface CreateMessageRequestHeaders {
2023
2036
  }
2024
2037
  interface CreateMessageRequestQuery {
@@ -15987,6 +16000,12 @@ interface SearchFilesResponse {
15987
16000
  * MIME type of the file's content
15988
16001
  */
15989
16002
  contentType: string;
16003
+ /**
16004
+ * Metadata of the file as an object of key-value pairs.
16005
+ */
16006
+ metadata: {
16007
+ [k: string]: any | null;
16008
+ };
15990
16009
  /**
15991
16010
  * The tags of the file as an object of key-value pairs.
15992
16011
  */
@@ -17916,6 +17935,7 @@ declare class Client$1 {
17916
17935
  readonly createEvent: (input: CreateEventInput) => Promise<CreateEventResponse>;
17917
17936
  readonly getEvent: (input: GetEventInput) => Promise<GetEventResponse>;
17918
17937
  readonly listEvents: (input: ListEventsInput) => Promise<ListEventsResponse>;
17938
+ readonly cancelScheduledEvent: (input: CancelScheduledEventInput) => Promise<CancelScheduledEventResponse>;
17919
17939
  readonly createMessage: (input: CreateMessageInput) => Promise<CreateMessageResponse>;
17920
17940
  readonly getOrCreateMessage: (input: GetOrCreateMessageInput) => Promise<GetOrCreateMessageResponse>;
17921
17941
  readonly getMessage: (input: GetMessageInput) => Promise<GetMessageResponse>;
@@ -18155,7 +18175,7 @@ declare class Client extends Client$1 implements IClient {
18155
18175
  conversationId?: string;
18156
18176
  userId?: string;
18157
18177
  messageId?: string;
18158
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
18178
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
18159
18179
  failureReason: string | null;
18160
18180
  }>;
18161
18181
  messages: (props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",