@botpress/sdk 6.3.2 → 6.4.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,20 +1,20 @@
1
1
 
2
- > @botpress/sdk@6.3.2 build /home/runner/work/botpress/botpress/packages/sdk
2
+ > @botpress/sdk@6.4.1 build /home/runner/work/botpress/botpress/packages/sdk
3
3
  > pnpm build:type && pnpm build:node && pnpm build:browser
4
4
 
5
5
 
6
- > @botpress/sdk@6.3.2 build:type /home/runner/work/botpress/botpress/packages/sdk
6
+ > @botpress/sdk@6.4.1 build:type /home/runner/work/botpress/botpress/packages/sdk
7
7
  > tsc -p ./tsconfig.package.json --emitDeclarationOnly --declaration
8
8
 
9
9
 
10
- > @botpress/sdk@6.3.2 build:node /home/runner/work/botpress/botpress/packages/sdk
10
+ > @botpress/sdk@6.4.1 build:node /home/runner/work/botpress/botpress/packages/sdk
11
11
  > ts-node -T ./build.ts --node
12
12
 
13
13
  Done
14
14
 
15
- > @botpress/sdk@6.3.2 build:browser /home/runner/work/botpress/botpress/packages/sdk
15
+ > @botpress/sdk@6.4.1 build:browser /home/runner/work/botpress/botpress/packages/sdk
16
16
  > ts-node -T ./build.ts --browser
17
17
 
18
- (node:3371) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
18
+ (node:3404) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
19
19
  (Use `node --trace-deprecation ...` to show where the warning was created)
20
20
  Done
@@ -27,7 +27,6 @@ export declare class BotSpecificClient<TBot extends common.BaseBot> implements t
27
27
  getEvent: types.GetEvent<TBot>;
28
28
  listEvents: types.ListEvents<TBot>;
29
29
  createMessage: types.CreateMessage<TBot>;
30
- getOrCreateMessage: types.GetOrCreateMessage<TBot>;
31
30
  getMessage: types.GetMessage<TBot>;
32
31
  updateMessage: types.UpdateMessage<TBot>;
33
32
  listMessages: types.ListMessages<TBot>;
@@ -19,14 +19,6 @@ type MessageResponse<TBot extends common.BaseBot, TMessage extends keyof common.
19
19
  }>;
20
20
  }>;
21
21
  };
22
- type GetOrCreateMessageResponse<TBot extends common.BaseBot, TMessage extends keyof common.GetMessages<TBot> = keyof common.GetMessages<TBot>> = utils.Merge<Awaited<Res<client.Client['getOrCreateMessage']>>, {
23
- message: utils.ValueOf<{
24
- [K in keyof common.GetMessages<TBot> as K extends TMessage ? K : never]: utils.Merge<Awaited<Res<client.Client['getOrCreateMessage']>>['message'], {
25
- type: K;
26
- payload: common.GetMessages<TBot>[K];
27
- }>;
28
- }>;
29
- }>;
30
22
  type StateResponse<TBot extends common.BaseBot, TState extends keyof TBot['states'] = keyof TBot['states']> = utils.Merge<Awaited<Res<client.Client['getState']>>, {
31
23
  state: utils.Merge<Awaited<Res<client.Client['getState']>>['state'], {
32
24
  type: utils.Cast<TBot['states'][TState]['type'], string>;
@@ -53,10 +45,6 @@ export type CreateMessage<TBot extends common.BaseBot> = <TMessage extends keyof
53
45
  type: utils.Cast<TMessage, string>;
54
46
  payload: utils.Cast<common.GetMessages<TBot>[TMessage], Record<string, any>>;
55
47
  }>) => Promise<MessageResponse<TBot, TMessage>>;
56
- export type GetOrCreateMessage<TBot extends common.BaseBot> = <TMessage extends keyof common.GetMessages<TBot>>(x: utils.Merge<Arg<client.Client['getOrCreateMessage']>, {
57
- type: utils.Cast<TMessage, string>;
58
- payload?: utils.Cast<common.GetMessages<TBot>[TMessage], Record<string, any>>;
59
- }>) => Promise<GetOrCreateMessageResponse<TBot, TMessage>>;
60
48
  export type GetMessage<TBot extends common.BaseBot> = (x: Arg<client.Client['getMessage']>) => Promise<MessageResponse<TBot>>;
61
49
  export type UpdateMessage<TBot extends common.BaseBot> = (x: Arg<client.Client['updateMessage']>) => Promise<MessageResponse<TBot>>;
62
50
  export type ListMessages<_TBot extends common.BaseBot> = client.Client['listMessages'];
@@ -219,7 +207,6 @@ export type ClientOperations<TBot extends common.BaseBot> = {
219
207
  createEvent: CreateEvent<TBot>;
220
208
  listEvents: ListEvents<TBot>;
221
209
  createMessage: CreateMessage<TBot>;
222
- getOrCreateMessage: GetOrCreateMessage<TBot>;
223
210
  getMessage: GetMessage<TBot>;
224
211
  updateMessage: UpdateMessage<TBot>;
225
212
  listMessages: ListMessages<TBot>;