@desplega.ai/slack-mock 0.2.0 → 0.4.0

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.
package/dist/server.d.ts CHANGED
@@ -60,9 +60,10 @@ export interface SlackMockOptions extends StoreOptions {
60
60
  */
61
61
  publicUi?: boolean;
62
62
  /**
63
- * "user:password" that may only post messages (`POST /mock/messages`) and check its role
64
- * (`GET /mock/presenter`). With `publicUi` the HTML composer shows a sign-in for it, so a presenter
65
- * can drive a public-read workspace without the admin credential. `adminAuth` always implies it.
63
+ * "user:password" that may post messages (`POST /mock/messages`), mutate reactions
64
+ * (`POST /mock/reactions`), and check its role (`GET /mock/presenter`). With `publicUi` the HTML
65
+ * composer shows a sign-in for it, so a presenter can drive a public-read workspace without the
66
+ * admin credential. `adminAuth` always implies it.
66
67
  */
67
68
  presenterAuth?: string;
68
69
  log?: boolean | ((msg: string) => void);
@@ -133,7 +134,7 @@ export declare class SlackMock {
133
134
  /** Base URL for links generated while serving `req`: publicUrl, else the request's own host. */
134
135
  private publicBase;
135
136
  private authorizedAdmin;
136
- /** `presenterAuth` (or `adminAuth`) may post messages and read its role, nothing else. */
137
+ /** `presenterAuth` (or `adminAuth`) may post messages, mutate reactions, and read its role. */
137
138
  private authorizedPresenter;
138
139
  /** Visitors can read the UI but posting needs a credential: the composer shows a sign-in. */
139
140
  private get writeGated();
@@ -210,6 +211,12 @@ export declare class SlackMock {
210
211
  name: string;
211
212
  user?: string;
212
213
  }): Promise<void>;
214
+ removeReaction(input: {
215
+ channel: string;
216
+ ts: string;
217
+ name: string;
218
+ user?: string;
219
+ }): Promise<void>;
213
220
  private issueResponseUrl;
214
221
  private issueTriggerId;
215
222
  /** A human runs a slash command. Resolves with the app's ack payload and any message it produced. */
package/dist/store.d.ts CHANGED
@@ -25,6 +25,8 @@ export interface AddUserInput {
25
25
  name: string;
26
26
  real_name?: string;
27
27
  email?: string;
28
+ title?: string;
29
+ status?: string;
28
30
  is_admin?: boolean;
29
31
  is_bot?: boolean;
30
32
  tz?: string;
package/dist/types.d.ts CHANGED
@@ -16,6 +16,8 @@ export interface SlackUser {
16
16
  email?: string;
17
17
  image_72?: string;
18
18
  team: string;
19
+ title?: string;
20
+ status_text?: string;
19
21
  };
20
22
  }
21
23
  export interface SlackChannel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desplega.ai/slack-mock",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Mock Slack server (Web API + Socket Mode) for end-to-end testing Slack bots",
5
5
  "type": "module",
6
6
  "license": "MIT",