lua-cli 3.26.0 → 3.27.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.
@@ -851,6 +851,13 @@ export declare const Channels: ChannelsApi;
851
851
  * subject: 'Your order',
852
852
  * html: '<p>Thanks for your order!</p>',
853
853
  * });
854
+ *
855
+ * // Post into a Teams group chat the agent is already part of
856
+ * await Channels.send({
857
+ * channel: 'teams',
858
+ * to: { conversationId: '19:9495c339...@thread.v2' },
859
+ * text: 'Sample LOT-4471 is missing origin and cupping score.',
860
+ * });
854
861
  * ```
855
862
  */
856
863
  export declare interface ChannelsApi {
@@ -858,6 +865,11 @@ export declare interface ChannelsApi {
858
865
  * Send a text message on any supported channel.
859
866
  * Returns `ChannelSendOutput` — check `persisted` if memory durability matters.
860
867
  *
868
+ * Address a person with `userId` (any channel), `phoneNumber` (whatsapp/sms)
869
+ * or `email`. Address a shared conversation with `conversationId` (teams
870
+ * only) — everyone in it receives the message, and because there is no single
871
+ * recipient the send returns `persisted: false`.
872
+ *
861
873
  * @example
862
874
  * ```typescript
863
875
  * const result = await Channels.send({
@@ -957,6 +969,8 @@ export declare interface ChannelSendOptions {
957
969
  */
958
970
  export declare interface ChannelSendOutput {
959
971
  delivered: boolean;
972
+ /** False for conversation-scoped sends: a shared conversation has no single
973
+ * user to attribute the message to, so nothing is written to agent memory. */
960
974
  persisted: boolean;
961
975
  /**
962
976
  * True when the send was deferred to the WhatsApp message-request queue
@@ -975,11 +989,15 @@ export declare interface ChannelSendOutput {
975
989
 
976
990
  /** Recipient — exactly one of the fields must be set. userId works on every
977
991
  * channel (resolved via the user's channel history); raw identifiers only on
978
- * cold-start-capable channels (whatsapp/sms → phoneNumber, email → email). */
992
+ * cold-start-capable channels (whatsapp/sms → phoneNumber, email → email).
993
+ * `conversationId` addresses a shared conversation rather than a person —
994
+ * everyone in it receives the message. Teams only, and warm-only: the agent
995
+ * must already be part of that conversation. */
979
996
  export declare interface ChannelSendTarget {
980
997
  userId?: string;
981
998
  phoneNumber?: string;
982
999
  email?: string;
1000
+ conversationId?: string;
983
1001
  }
984
1002
 
985
1003
  /**
@@ -1059,6 +1077,13 @@ export declare interface ChatHistoryMessage {
1059
1077
  model?: string;
1060
1078
  /** True when the turn reached that model through the Auto selector. */
1061
1079
  autoModelRequested?: boolean;
1080
+ author?: {
1081
+ userId: string;
1082
+ };
1083
+ agent?: {
1084
+ agentId: string;
1085
+ name?: string;
1086
+ };
1062
1087
  /**
1063
1088
  * Permanent recording for a voice-note turn (Lua Desktop). Populated by the
1064
1089
  * admin threads history endpoint from the row's `content.metadata.audio` — a