spectrum-ts 1.9.2 → 1.11.3

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ContentBuilder, U as User, M as Message, b as ContentInput, O as OutboundMessage, c as Content, d as ProviderMessage, E as EventProducer, e as CreateClientContext, f as Store, a as PlatformDef, P as Platform, g as PlatformProviderConfig, h as SpectrumLike, i as CustomEventStreams, j as Space, I as InboundMessage } from './types-lUyzRurY.js';
2
- export { A as AnyPlatformDef, B as Broadcaster, k as InboundPlatformMessage, l as ManagedStream, m as PlatformInstance, n as PlatformMessage, o as PlatformRuntime, p as PlatformSpace, q as PlatformUser, S as SchemaMessage, r as broadcast, s as mergeStreams, t as stream } from './types-lUyzRurY.js';
1
+ import { C as ContentBuilder, U as User, M as Message, b as Space, c as ContentInput, d as Content, e as ProviderMessage, E as EventProducer, f as SpaceActionFn, g as MessageActionFn, h as CreateClientContext, i as Store, a as PlatformDef, P as Platform, j as PlatformProviderConfig, k as SpectrumLike, l as CustomEventStreams, A as AgentSender } from './types-Dd3RC_60.js';
2
+ export { m as AnyPlatformDef, B as Broadcaster, n as ManagedStream, o as PlatformInstance, p as PlatformMessage, q as PlatformRuntime, r as PlatformSpace, s as PlatformUser, S as SchemaMessage, t as broadcast, u as mergeStreams, v as stream } from './types-Dd3RC_60.js';
3
3
  import vCard from 'vcf';
4
4
  import z__default from 'zod';
5
5
  import 'hotscript';
@@ -211,10 +211,10 @@ declare const editSchema: z__default.ZodObject<{
211
211
  } | {
212
212
  type: "reaction";
213
213
  emoji: string;
214
- target: Message;
214
+ target: Message<string, User, Space<unknown>>;
215
215
  } | {
216
216
  type: "group";
217
- items: Message[];
217
+ items: Message<string, User, Space<unknown>>[];
218
218
  } | {
219
219
  type: "poll";
220
220
  title: string;
@@ -329,10 +329,10 @@ declare const editSchema: z__default.ZodObject<{
329
329
  } | {
330
330
  type: "reaction";
331
331
  emoji: string;
332
- target: Message;
332
+ target: Message<string, User, Space<unknown>>;
333
333
  } | {
334
334
  type: "group";
335
- items: Message[];
335
+ items: Message<string, User, Space<unknown>>[];
336
336
  } | {
337
337
  type: "poll";
338
338
  title: string;
@@ -371,18 +371,17 @@ declare const editSchema: z__default.ZodObject<{
371
371
  type: "typing";
372
372
  state: "start" | "stop";
373
373
  }>;
374
- target: z__default.ZodCustom<Message, Message>;
374
+ target: z__default.ZodCustom<Message<string, User, Space<unknown>>, Message<string, User, Space<unknown>>>;
375
375
  }, z__default.core.$strip>;
376
376
  type Edit = z__default.infer<typeof editSchema>;
377
377
  /**
378
378
  * Construct an `edit` content value rewriting `target`'s content.
379
379
  *
380
- * `target` is typed as `OutboundMessage` because only messages you sent can
381
- * be edited; the schema field stays loose at `Message` (matching
382
- * reply/reaction) so providers receive the same shape regardless of
383
- * direction.
380
+ * Only outbound messages (those sent by the agent) can be edited; calling
381
+ * this with an inbound target throws at build time so the misuse surfaces
382
+ * before the send pipeline runs.
384
383
  */
385
- declare function edit(content: ContentInput, target: OutboundMessage): ContentBuilder;
384
+ declare function edit(content: ContentInput, target: Message): ContentBuilder;
386
385
 
387
386
  /**
388
387
  * A `group` bundles multiple messages into one logical unit (e.g. an album
@@ -395,7 +394,7 @@ declare function edit(content: ContentInput, target: OutboundMessage): ContentBu
395
394
  */
396
395
  declare const groupSchema: z__default.ZodObject<{
397
396
  type: z__default.ZodLiteral<"group">;
398
- items: z__default.ZodArray<z__default.ZodCustom<Message, Message>>;
397
+ items: z__default.ZodArray<z__default.ZodCustom<Message<string, User, Space<unknown>>, Message<string, User, Space<unknown>>>>;
399
398
  }, z__default.core.$strip>;
400
399
  type Group = z__default.infer<typeof groupSchema>;
401
400
  declare function group(...items: [ContentInput, ContentInput, ...ContentInput[]]): ContentBuilder;
@@ -438,15 +437,15 @@ declare function poll(title: string, ...options: PollChoiceInput[]): ContentBuil
438
437
  declare const reactionSchema: z__default.ZodObject<{
439
438
  type: z__default.ZodLiteral<"reaction">;
440
439
  emoji: z__default.ZodString;
441
- target: z__default.ZodCustom<Message, Message>;
440
+ target: z__default.ZodCustom<Message<string, User, Space<unknown>>, Message<string, User, Space<unknown>>>;
442
441
  }, z__default.core.$strip>;
443
442
  type Reaction = z__default.infer<typeof reactionSchema>;
444
443
  /**
445
444
  * Construct a `reaction` content value targeting the given message.
446
445
  *
447
446
  * `space.send(reaction(emoji, message))` is sugar for `message.react(emoji)`.
448
- * Reactions are fire-and-forget — the returned `OutboundMessage` will be
449
- * `undefined` because platforms do not surface a message id for reactions.
447
+ * Reactions are fire-and-forget — the returned `Message` will be `undefined`
448
+ * because platforms do not surface a message id for reactions.
450
449
  *
451
450
  * To react to a message known only by id, resolve it first via
452
451
  * `space.getMessage(id)`.
@@ -541,10 +540,10 @@ declare const replySchema: z__default.ZodObject<{
541
540
  } | {
542
541
  type: "reaction";
543
542
  emoji: string;
544
- target: Message;
543
+ target: Message<string, User, Space<unknown>>;
545
544
  } | {
546
545
  type: "group";
547
- items: Message[];
546
+ items: Message<string, User, Space<unknown>>[];
548
547
  } | {
549
548
  type: "poll";
550
549
  title: string;
@@ -659,10 +658,10 @@ declare const replySchema: z__default.ZodObject<{
659
658
  } | {
660
659
  type: "reaction";
661
660
  emoji: string;
662
- target: Message;
661
+ target: Message<string, User, Space<unknown>>;
663
662
  } | {
664
663
  type: "group";
665
- items: Message[];
664
+ items: Message<string, User, Space<unknown>>[];
666
665
  } | {
667
666
  type: "poll";
668
667
  title: string;
@@ -701,7 +700,7 @@ declare const replySchema: z__default.ZodObject<{
701
700
  type: "typing";
702
701
  state: "start" | "stop";
703
702
  }>;
704
- target: z__default.ZodCustom<Message, Message>;
703
+ target: z__default.ZodCustom<Message<string, User, Space<unknown>>, Message<string, User, Space<unknown>>>;
705
704
  }, z__default.core.$strip>;
706
705
  type Reply = z__default.infer<typeof replySchema>;
707
706
  declare function reply(content: ContentInput, target: Message): ContentBuilder;
@@ -2698,7 +2697,7 @@ declare function definePlatform<_Name extends string, _ConfigSchema extends z__d
2698
2697
  id: string;
2699
2698
  }, _MessageSchema extends z__default.ZodType<object> | undefined = undefined, _MessageType extends ProviderMessage<_ResolvedUser, _ResolvedSpace, _MessageSchema extends z__default.ZodType<object> ? z__default.infer<_MessageSchema> : Record<never, never>> = ProviderMessage<_ResolvedUser, _ResolvedSpace, _MessageSchema extends z__default.ZodType<object> ? z__default.infer<_MessageSchema> : Record<never, never>>, _Events extends (Record<string, EventProducer<unknown, _Client, z__default.infer<_ConfigSchema>>> & {
2700
2699
  messages?: never;
2701
- }) | undefined = undefined, _Static extends Record<string, unknown> = Record<never, never>>(name: _Name, def: {
2700
+ }) | undefined = undefined, _Static extends Record<string, unknown> = Record<never, never>, _SpaceActions extends Record<string, SpaceActionFn> = Record<never, never>, _MessageActions extends Record<string, MessageActionFn> = Record<never, never>>(name: _Name, def: {
2702
2701
  lifecycle: {
2703
2702
  createClient: (ctx: CreateClientContext<_ConfigSchema>) => Promise<_Client>;
2704
2703
  destroyClient?: (ctx: {
@@ -2706,16 +2705,16 @@ declare function definePlatform<_Name extends string, _ConfigSchema extends z__d
2706
2705
  store: Store;
2707
2706
  }) => Promise<void>;
2708
2707
  };
2709
- } & Omit<PlatformDef<_Name, _ConfigSchema, _UserSchema, _SpaceSchema, _SpaceParamsSchema, _Client, _ResolvedUser, _ResolvedSpace, _MessageSchema, _MessageType, _Events>, "lifecycle" | "name"> & {
2708
+ } & Omit<PlatformDef<_Name, _ConfigSchema, _UserSchema, _SpaceSchema, _SpaceParamsSchema, _Client, _ResolvedUser, _ResolvedSpace, _MessageSchema, _MessageType, _Events, _SpaceActions, _MessageActions>, "lifecycle" | "name"> & {
2710
2709
  static?: _Static;
2711
- }): Platform<PlatformDef<_Name, _ConfigSchema, _UserSchema, _SpaceSchema, _SpaceParamsSchema, _Client, _ResolvedUser, _ResolvedSpace, _MessageSchema, _MessageType, _Events>> & Readonly<_Static>;
2710
+ }): Platform<PlatformDef<_Name, _ConfigSchema, _UserSchema, _SpaceSchema, _SpaceParamsSchema, _Client, _ResolvedUser, _ResolvedSpace, _MessageSchema, _MessageType, _Events, _SpaceActions, _MessageActions>> & Readonly<_Static>;
2712
2711
 
2713
2712
  type SpectrumInstance<Providers extends PlatformProviderConfig[] = PlatformProviderConfig[]> = SpectrumLike<Providers> & CustomEventStreams<Providers> & {
2714
- readonly messages: AsyncIterable<[Space, InboundMessage]>;
2713
+ readonly messages: AsyncIterable<[Space, Message]>;
2715
2714
  stop(): Promise<void>;
2716
- send(space: Space, content: ContentInput): Promise<OutboundMessage | undefined>;
2717
- send(space: Space, ...content: [ContentInput, ContentInput, ...ContentInput[]]): Promise<OutboundMessage[]>;
2718
- edit(message: OutboundMessage, newContent: ContentInput): Promise<void>;
2715
+ send(space: Space, content: ContentInput): Promise<Message<string, AgentSender> | undefined>;
2716
+ send(space: Space, ...content: [ContentInput, ContentInput, ...ContentInput[]]): Promise<Message<string, AgentSender>[]>;
2717
+ edit(message: Message, newContent: ContentInput): Promise<void>;
2719
2718
  responding<T>(space: Space, fn: () => T | Promise<T>): Promise<T>;
2720
2719
  };
2721
2720
  /**
@@ -2765,7 +2764,7 @@ interface DedicatedTokenData {
2765
2764
  type: "dedicated";
2766
2765
  }
2767
2766
  type TokenData = SharedTokenData | DedicatedTokenData;
2768
- type CloudPlatform = "imessage" | "whatsapp_business";
2767
+ type CloudPlatform = "imessage" | "whatsapp_business" | "slack";
2769
2768
  interface PlatformStatus {
2770
2769
  enabled: boolean;
2771
2770
  }
@@ -2778,6 +2777,17 @@ interface WhatsappBusinessTokenData {
2778
2777
  expiresIn: number;
2779
2778
  numbers: Record<string, string | null>;
2780
2779
  }
2780
+ interface SlackTeamMeta {
2781
+ appId: string;
2782
+ botUserId: string;
2783
+ grantedScopes: string[];
2784
+ teamName: string;
2785
+ }
2786
+ interface SlackTokenData {
2787
+ auth: Record<string, string>;
2788
+ expiresIn: number;
2789
+ teams: Record<string, SlackTeamMeta>;
2790
+ }
2781
2791
  declare class SpectrumCloudError extends Error {
2782
2792
  readonly status: number;
2783
2793
  readonly code: string;
@@ -2788,6 +2798,7 @@ declare const cloud: {
2788
2798
  issueImessageTokens: (projectId: string, projectSecret: string) => Promise<TokenData>;
2789
2799
  getImessageInfo: (projectId: string) => Promise<ImessageInfoData>;
2790
2800
  issueWhatsappBusinessTokens: (projectId: string, projectSecret: string) => Promise<WhatsappBusinessTokenData>;
2801
+ issueSlackTokens: (projectId: string, projectSecret: string) => Promise<SlackTokenData>;
2791
2802
  getPlatforms: (projectId: string) => Promise<PlatformsData>;
2792
2803
  togglePlatform: (projectId: string, projectSecret: string, platform: CloudPlatform, enabled: boolean) => Promise<PlatformsData>;
2793
2804
  };
@@ -2815,4 +2826,4 @@ declare class UnsupportedError extends Error {
2815
2826
  declare const fromVCard: (vcf: string) => ContactInput;
2816
2827
  declare const toVCard: (contact: Contact) => Promise<string>;
2817
2828
 
2818
- export { type CloudPlatform, type Contact, type ContactAddress, type ContactDetails, type ContactEmail, type ContactInput, type ContactName, type ContactOrg, type ContactPhone, Content, ContentBuilder, ContentInput, type DedicatedTokenData, type Edit, Emoji, type EmojiKey, EventProducer, type Group, type ImessageInfoData, Message, Platform, PlatformDef, PlatformProviderConfig, type PlatformStatus, type PlatformsData, type Poll, type PollChoice, type PollChoiceInput, type PollOption, type Reaction, type Reply, type Richlink, type SharedTokenData, Space, Spectrum, SpectrumCloudError, type SpectrumInstance, type SubscriptionData, type SubscriptionStatus, type TokenData, type Typing, UnsupportedError, type UnsupportedKind, User, type Voice, attachment, cloud, contact, custom, definePlatform, edit, fromVCard, group, option, poll, reaction, reply, resolveContents, richlink, text, toVCard, typing, voice };
2829
+ export { AgentSender, type CloudPlatform, type Contact, type ContactAddress, type ContactDetails, type ContactEmail, type ContactInput, type ContactName, type ContactOrg, type ContactPhone, Content, ContentBuilder, ContentInput, type DedicatedTokenData, type Edit, Emoji, type EmojiKey, EventProducer, type Group, type ImessageInfoData, Message, Platform, PlatformDef, PlatformProviderConfig, type PlatformStatus, type PlatformsData, type Poll, type PollChoice, type PollChoiceInput, type PollOption, type Reaction, type Reply, type Richlink, type SharedTokenData, type SlackTeamMeta, type SlackTokenData, Space, Spectrum, SpectrumCloudError, type SpectrumInstance, type SubscriptionData, type SubscriptionStatus, type TokenData, type Typing, UnsupportedError, type UnsupportedKind, User, type Voice, attachment, cloud, contact, custom, definePlatform, edit, fromVCard, group, option, poll, reaction, reply, resolveContents, richlink, text, toVCard, typing, voice };
package/dist/index.js CHANGED
@@ -1,38 +1,42 @@
1
1
  import {
2
2
  group,
3
3
  richlink
4
- } from "./chunk-5NHNMN4H.js";
4
+ } from "./chunk-YM4OAVPX.js";
5
5
  import {
6
6
  voice
7
- } from "./chunk-TN54TDTQ.js";
7
+ } from "./chunk-EW5XWI3Y.js";
8
+ import {
9
+ option,
10
+ poll
11
+ } from "./chunk-KO67KDBD.js";
8
12
  import {
9
13
  SpectrumCloudError,
10
14
  broadcast,
11
15
  cloud,
12
16
  mergeStreams,
13
- option,
14
- poll,
15
17
  stream
16
- } from "./chunk-HWADNTQF.js";
18
+ } from "./chunk-YKWKZ2PZ.js";
19
+ import {
20
+ contact,
21
+ fromVCard,
22
+ toVCard
23
+ } from "./chunk-LCJMR75R.js";
17
24
  import {
18
25
  UnsupportedError,
19
26
  attachment,
20
27
  buildSpace,
21
- contact,
22
28
  contentAttrs,
23
29
  custom,
24
30
  definePlatform,
25
31
  edit,
26
- fromVCard,
27
32
  reaction,
28
33
  reply,
29
34
  resolveContents,
30
35
  senderAttrs,
31
36
  text,
32
- toVCard,
33
37
  typing,
34
38
  wrapProviderMessage
35
- } from "./chunk-XZSBR26X.js";
39
+ } from "./chunk-3BTOWGQL.js";
36
40
 
37
41
  // src/emoji/generated.ts
38
42
  var GeneratedEmoji = {
@@ -1,4 +1,4 @@
1
- import { C as ContentBuilder, b as ContentInput, S as SchemaMessage, P as Platform, a as PlatformDef } from '../../types-lUyzRurY.js';
1
+ import { C as ContentBuilder, c as ContentInput, M as Message, S as SchemaMessage, P as Platform, a as PlatformDef, b as Space } from '../../types-Dd3RC_60.js';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
3
  import * as z from 'zod';
4
4
  import z__default from 'zod';
@@ -37,6 +37,26 @@ declare function background(input: string | Buffer, options?: {
37
37
  type IMessageMessageEffect = MessageEffect;
38
38
  declare function effect(input: ContentInput, messageEffect: IMessageMessageEffect): ContentBuilder;
39
39
 
40
+ /**
41
+ * Mark the chat containing `target` as read. iMessage-only, remote-only.
42
+ *
43
+ * Implemented via `chats.markRead(chatGuid)`, which marks **every unread
44
+ * message in the chat** as read — there is no per-message read receipt in
45
+ * the SDK. `target` is used only to identify the chat (and to give
46
+ * `message.read()` something to pass), so passing any message from a chat
47
+ * marks the whole chat as read.
48
+ *
49
+ * `space.send(read(message))` is the canonical form; `space.read(message)`
50
+ * and `message.read()` are sugar attached via the iMessage platform's
51
+ * `space.actions` / `message.actions` slots.
52
+ *
53
+ * `Read` is intentionally not a member of the universal `Content` union —
54
+ * the `as unknown as Content` cast keeps the builder shape compatible with
55
+ * the framework's `ContentBuilder.build(): Promise<Content>` signature. The
56
+ * framework treats it as a fire-and-forget control signal at runtime.
57
+ */
58
+ declare function read(target: Message): ContentBuilder;
59
+
40
60
  interface RemoteClient {
41
61
  client: AdvancedIMessage;
42
62
  phone: string;
@@ -91,7 +111,14 @@ declare const imessage: Platform<PlatformDef<"iMessage", z.ZodUnion<readonly [z.
91
111
  }, z.ZodObject<{
92
112
  partIndex: z.ZodOptional<z.ZodNumber>;
93
113
  parentId: z.ZodOptional<z.ZodString>;
94
- }, zod_v4_core.$strip>, IMessageMessage, undefined>> & Readonly<{
114
+ }, zod_v4_core.$strip>, IMessageMessage, undefined, {
115
+ background: (space: Space, input: BackgroundInput, opts?: {
116
+ mimeType?: string;
117
+ }) => Promise<void>;
118
+ read: (space: Space, message: Message) => Promise<void>;
119
+ }, {
120
+ read: (message: Message) => Promise<void>;
121
+ }>> & Readonly<{
95
122
  effect: {
96
123
  message: {
97
124
  readonly slam: "com.apple.MobileSMS.expressivesend.impact";
@@ -111,4 +138,4 @@ declare const imessage: Platform<PlatformDef<"iMessage", z.ZodUnion<readonly [z.
111
138
  };
112
139
  }>;
113
140
 
114
- export { type BackgroundInput, type IMessageMessageEffect, background, effect, imessage };
141
+ export { type BackgroundInput, type IMessageMessageEffect, background, effect, imessage, read };
@@ -1,13 +1,17 @@
1
1
  import {
2
2
  background,
3
3
  effect,
4
- imessage
5
- } from "../../chunk-7O5BCLGQ.js";
6
- import "../../chunk-5NHNMN4H.js";
7
- import "../../chunk-HWADNTQF.js";
8
- import "../../chunk-XZSBR26X.js";
4
+ imessage,
5
+ read
6
+ } from "../../chunk-G7TWBZUE.js";
7
+ import "../../chunk-YM4OAVPX.js";
8
+ import "../../chunk-KO67KDBD.js";
9
+ import "../../chunk-YKWKZ2PZ.js";
10
+ import "../../chunk-LCJMR75R.js";
11
+ import "../../chunk-3BTOWGQL.js";
9
12
  export {
10
13
  background,
11
14
  effect,
12
- imessage
15
+ imessage,
16
+ read
13
17
  };
@@ -1,12 +1,14 @@
1
1
  export { imessage } from './imessage/index.js';
2
+ export { slack } from './slack/index.js';
2
3
  export { terminal } from './terminal/index.js';
3
4
  export { whatsappBusiness } from './whatsapp-business/index.js';
4
- import '../types-lUyzRurY.js';
5
+ import '../types-Dd3RC_60.js';
5
6
  import 'hotscript';
6
7
  import 'zod';
7
8
  import 'zod/v4/core';
8
9
  import '@photon-ai/advanced-imessage';
9
10
  import '@photon-ai/imessage-kit';
11
+ import '@photon-ai/slack';
10
12
  import 'node:child_process';
11
13
  import 'node:net';
12
14
  import '@photon-ai/whatsapp-business';
@@ -1,18 +1,24 @@
1
1
  import {
2
2
  imessage
3
- } from "../chunk-7O5BCLGQ.js";
4
- import "../chunk-5NHNMN4H.js";
3
+ } from "../chunk-G7TWBZUE.js";
4
+ import "../chunk-YM4OAVPX.js";
5
+ import {
6
+ slack
7
+ } from "../chunk-T2TBVX6C.js";
5
8
  import {
6
9
  terminal
7
- } from "../chunk-N3ZKMTSG.js";
8
- import "../chunk-TN54TDTQ.js";
10
+ } from "../chunk-AYB6DT76.js";
11
+ import "../chunk-EW5XWI3Y.js";
9
12
  import {
10
13
  whatsappBusiness
11
- } from "../chunk-OR3VGVML.js";
12
- import "../chunk-HWADNTQF.js";
13
- import "../chunk-XZSBR26X.js";
14
+ } from "../chunk-PUMFTTA4.js";
15
+ import "../chunk-KO67KDBD.js";
16
+ import "../chunk-YKWKZ2PZ.js";
17
+ import "../chunk-LCJMR75R.js";
18
+ import "../chunk-3BTOWGQL.js";
14
19
  export {
15
20
  imessage,
21
+ slack,
16
22
  terminal,
17
23
  whatsappBusiness
18
24
  };
@@ -0,0 +1,47 @@
1
+ import { S as SchemaMessage, P as Platform, a as PlatformDef } from '../../types-Dd3RC_60.js';
2
+ import * as z from 'zod';
3
+ import z__default from 'zod';
4
+ import * as _photon_ai_slack from '@photon-ai/slack';
5
+ import * as zod_v4_core from 'zod/v4/core';
6
+ import 'hotscript';
7
+
8
+ declare const userSchema: z__default.ZodObject<{}, z__default.core.$strip>;
9
+ declare const spaceSchema: z__default.ZodObject<{
10
+ id: z__default.ZodString;
11
+ teamId: z__default.ZodString;
12
+ }, z__default.core.$strip>;
13
+ type SlackMessage = SchemaMessage<typeof userSchema, typeof spaceSchema> & {
14
+ isFromMe: boolean;
15
+ subtype?: string;
16
+ threadTs?: string;
17
+ ts?: string;
18
+ };
19
+
20
+ declare const slack: Platform<PlatformDef<"Slack", z.ZodUnion<readonly [z.ZodObject<{
21
+ endpoint: z.ZodOptional<z.ZodString>;
22
+ teams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
23
+ appId: z.ZodString;
24
+ botUserId: z.ZodString;
25
+ grantedScopes: z.ZodArray<z.ZodString>;
26
+ teamName: z.ZodString;
27
+ }, zod_v4_core.$strip>>>;
28
+ tokens: z.ZodRecord<z.ZodString, z.ZodString>;
29
+ }, zod_v4_core.$strip>, z.ZodObject<{}, zod_v4_core.$strict>]>, z.ZodObject<{}, zod_v4_core.$strip>, z.ZodObject<{
30
+ id: z.ZodString;
31
+ teamId: z.ZodString;
32
+ }, zod_v4_core.$strip>, z.ZodObject<{
33
+ channel: z.ZodOptional<z.ZodString>;
34
+ teamId: z.ZodString;
35
+ }, zod_v4_core.$strip>, _photon_ai_slack.SlackClient, {
36
+ id: string;
37
+ }, {
38
+ id: string;
39
+ teamId: string;
40
+ }, z.ZodObject<{
41
+ isFromMe: z.ZodBoolean;
42
+ subtype: z.ZodOptional<z.ZodString>;
43
+ threadTs: z.ZodOptional<z.ZodString>;
44
+ ts: z.ZodOptional<z.ZodString>;
45
+ }, zod_v4_core.$strip>, SlackMessage, undefined, Record<never, never>, Record<never, never>>> & Readonly<Record<never, never>>;
46
+
47
+ export { slack };
@@ -0,0 +1,8 @@
1
+ import {
2
+ slack
3
+ } from "../../chunk-T2TBVX6C.js";
4
+ import "../../chunk-YKWKZ2PZ.js";
5
+ import "../../chunk-3BTOWGQL.js";
6
+ export {
7
+ slack
8
+ };
@@ -1,4 +1,4 @@
1
- import { P as Platform, a as PlatformDef, M as Message } from '../../types-lUyzRurY.js';
1
+ import { P as Platform, a as PlatformDef, M as Message, U as User, b as Space } from '../../types-Dd3RC_60.js';
2
2
  import { ChildProcess } from 'node:child_process';
3
3
  import z__default from 'zod';
4
4
  import { Socket } from 'node:net';
@@ -183,10 +183,10 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
183
183
  } | {
184
184
  type: "reaction";
185
185
  emoji: string;
186
- target: Message;
186
+ target: Message<string, User, Space<unknown>>;
187
187
  } | {
188
188
  type: "group";
189
- items: Message[];
189
+ items: Message<string, User, Space<unknown>>[];
190
190
  } | {
191
191
  type: "poll";
192
192
  title: string;
@@ -303,10 +303,10 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
303
303
  } | {
304
304
  type: "reaction";
305
305
  emoji: string;
306
- target: Message;
306
+ target: Message<string, User, Space<unknown>>;
307
307
  } | {
308
308
  type: "group";
309
- items: Message[];
309
+ items: Message<string, User, Space<unknown>>[];
310
310
  } | {
311
311
  type: "poll";
312
312
  title: string;
@@ -345,7 +345,7 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
345
345
  type: "typing";
346
346
  state: "start" | "stop";
347
347
  };
348
- target: Message;
348
+ target: Message<string, User, Space<unknown>>;
349
349
  } | {
350
350
  type: "edit";
351
351
  content: {
@@ -425,10 +425,10 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
425
425
  } | {
426
426
  type: "reaction";
427
427
  emoji: string;
428
- target: Message;
428
+ target: Message<string, User, Space<unknown>>;
429
429
  } | {
430
430
  type: "group";
431
- items: Message[];
431
+ items: Message<string, User, Space<unknown>>[];
432
432
  } | {
433
433
  type: "poll";
434
434
  title: string;
@@ -467,7 +467,7 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
467
467
  type: "typing";
468
468
  state: "start" | "stop";
469
469
  };
470
- target: Message;
470
+ target: Message<string, User, Space<unknown>>;
471
471
  };
472
472
  sender: {
473
473
  id: string;
@@ -476,6 +476,6 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
476
476
  id: string;
477
477
  };
478
478
  timestamp: Date;
479
- }, undefined>> & Readonly<Record<never, never>>;
479
+ }, undefined, Record<never, never>, Record<never, never>>> & Readonly<Record<never, never>>;
480
480
 
481
481
  export { terminal };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  terminal
3
- } from "../../chunk-N3ZKMTSG.js";
4
- import "../../chunk-TN54TDTQ.js";
5
- import "../../chunk-XZSBR26X.js";
3
+ } from "../../chunk-AYB6DT76.js";
4
+ import "../../chunk-EW5XWI3Y.js";
5
+ import "../../chunk-LCJMR75R.js";
6
+ import "../../chunk-3BTOWGQL.js";
6
7
  export {
7
8
  terminal
8
9
  };
@@ -1,4 +1,4 @@
1
- import { S as SchemaMessage, P as Platform, a as PlatformDef } from '../../types-lUyzRurY.js';
1
+ import { S as SchemaMessage, P as Platform, a as PlatformDef } from '../../types-Dd3RC_60.js';
2
2
  import { WhatsAppClient } from '@photon-ai/whatsapp-business';
3
3
  import * as z from 'zod';
4
4
  import z__default from 'zod';
@@ -22,6 +22,6 @@ declare const whatsappBusiness: Platform<PlatformDef<"WhatsApp Business", z.ZodU
22
22
  id: string;
23
23
  }, {
24
24
  id: string;
25
- }, undefined, WhatsAppMessage, undefined>> & Readonly<Record<never, never>>;
25
+ }, undefined, WhatsAppMessage, undefined, Record<never, never>, Record<never, never>>> & Readonly<Record<never, never>>;
26
26
 
27
27
  export { whatsappBusiness };
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  whatsappBusiness
3
- } from "../../chunk-OR3VGVML.js";
4
- import "../../chunk-HWADNTQF.js";
5
- import "../../chunk-XZSBR26X.js";
3
+ } from "../../chunk-PUMFTTA4.js";
4
+ import "../../chunk-KO67KDBD.js";
5
+ import "../../chunk-YKWKZ2PZ.js";
6
+ import "../../chunk-LCJMR75R.js";
7
+ import "../../chunk-3BTOWGQL.js";
6
8
  export {
7
9
  whatsappBusiness
8
10
  };