@butlerbot/sdk 0.0.43 → 0.0.44
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.
|
@@ -21,4 +21,12 @@ export type DiscordAddress = {
|
|
|
21
21
|
platform: "discord";
|
|
22
22
|
channelId: string;
|
|
23
23
|
threadId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The message the conversation was last held at — the user's most recent message in it.
|
|
26
|
+
*
|
|
27
|
+
* Anything Alfred says on the conversation outside a turn is posted as a reply to it, so a
|
|
28
|
+
* background task reporting back an hour later still says what it is answering, in a
|
|
29
|
+
* channel that has moved on since.
|
|
30
|
+
*/
|
|
31
|
+
messageId?: string;
|
|
24
32
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ConversationAddress } from "../conversation/address";
|
|
1
2
|
/**
|
|
2
3
|
* Outreach: what Alfred has told or asked this user outside a chat, and their answers.
|
|
3
4
|
*
|
|
@@ -18,8 +19,13 @@ export type DeliverySurfaceStatus = typeof DELIVERY_SURFACE_STATUSES[number];
|
|
|
18
19
|
export type DeliverySurface = {
|
|
19
20
|
surface: DeliverySurfaceName;
|
|
20
21
|
status: DeliverySurfaceStatus;
|
|
21
|
-
/**
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Where on the surface it was addressed, whole, as the conversation named it.
|
|
24
|
+
*
|
|
25
|
+
* Null when the conversation named none, in which case it went wherever the surface
|
|
26
|
+
* reaches its user by default: on Discord, their direct messages.
|
|
27
|
+
*/
|
|
28
|
+
address?: ConversationAddress | null;
|
|
23
29
|
/** What the channel called the message it sent. */
|
|
24
30
|
messageId?: string | null;
|
|
25
31
|
/** Why the last attempt failed. */
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DELIVERY_SOURCES = exports.DELIVERY_CLOSED_REASONS = exports.DELIVERY_ANSWER_VIA = exports.DELIVERY_SURFACE_STATUSES = exports.DELIVERY_SURFACES = exports.ANSWERABLE_DELIVERY_INTENTS = exports.DELIVERY_INTENTS = void 0;
|
|
4
|
+
exports.isDeliveryOpen = isDeliveryOpen;
|
|
2
5
|
/**
|
|
3
6
|
* Outreach: what Alfred has told or asked this user outside a chat, and their answers.
|
|
4
7
|
*
|
|
@@ -6,9 +9,6 @@
|
|
|
6
9
|
* notification about one. Answering closes it, and when it belongs to a job the answer is put
|
|
7
10
|
* on that job's inbox.
|
|
8
11
|
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.DELIVERY_SOURCES = exports.DELIVERY_CLOSED_REASONS = exports.DELIVERY_ANSWER_VIA = exports.DELIVERY_SURFACE_STATUSES = exports.DELIVERY_SURFACES = exports.ANSWERABLE_DELIVERY_INTENTS = exports.DELIVERY_INTENTS = void 0;
|
|
11
|
-
exports.isDeliveryOpen = isDeliveryOpen;
|
|
12
12
|
exports.DELIVERY_INTENTS = ["question", "update", "approval", "statement"];
|
|
13
13
|
/** The intents that leave something outstanding until the user answers. */
|
|
14
14
|
exports.ANSWERABLE_DELIVERY_INTENTS = ["question", "approval"];
|