@prismer/sdk 1.8.0 → 1.8.2

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.mts CHANGED
@@ -672,14 +672,27 @@ interface IMWorkspaceInitOptions {
672
672
  workspaceId: string;
673
673
  userId: string;
674
674
  userDisplayName: string;
675
+ agentName?: string;
676
+ agentDisplayName?: string;
677
+ agentType?: string;
678
+ agentCapabilities?: string[];
679
+ force?: boolean;
675
680
  }
676
681
  interface IMWorkspaceInitGroupOptions {
677
682
  workspaceId: string;
678
683
  title: string;
679
- users: Array<{
684
+ description?: string;
685
+ users?: Array<{
680
686
  userId: string;
681
687
  displayName: string;
682
688
  }>;
689
+ agents?: Array<{
690
+ name: string;
691
+ displayName?: string;
692
+ type?: string;
693
+ capabilities?: string[];
694
+ }>;
695
+ force?: boolean;
683
696
  }
684
697
  interface IMAutocompleteResult {
685
698
  userId: string;
@@ -700,9 +713,11 @@ interface IMCreateBindingOptions {
700
713
  channelId?: string;
701
714
  }
702
715
  interface IMSendOptions {
703
- type?: 'text' | 'markdown' | 'code' | 'image' | 'file' | 'tool_call' | 'tool_result' | 'system_event' | 'thinking';
716
+ type?: 'text' | 'markdown' | 'code' | 'image' | 'file' | 'voice' | 'location' | 'artifact' | 'tool_call' | 'tool_result' | 'system_event' | 'system' | 'thinking';
704
717
  metadata?: Record<string, any>;
705
718
  parentId?: string;
719
+ /** Quote-reply reference (v1.8.2). Distinct from parentId threading. */
720
+ quotedMessageId?: string;
706
721
  /** Override auto-signing for this message (e.g., skip signing for system_event) */
707
722
  skipSigning?: boolean;
708
723
  }
@@ -829,7 +844,7 @@ interface OfflineConfig {
829
844
  warningThreshold?: number;
830
845
  };
831
846
  }
832
- type TaskStatus = 'pending' | 'assigned' | 'running' | 'completed' | 'failed' | 'cancelled';
847
+ type TaskStatus = 'pending' | 'assigned' | 'running' | 'review' | 'completed' | 'failed' | 'cancelled';
833
848
  type ScheduleType = 'once' | 'interval' | 'cron';
834
849
  interface IMCreateTaskOptions {
835
850
  title: string;
@@ -851,8 +866,12 @@ interface IMCreateTaskOptions {
851
866
  metadata?: Record<string, unknown>;
852
867
  }
853
868
  interface IMUpdateTaskOptions {
854
- assigneeId?: string;
869
+ title?: string;
870
+ description?: string;
855
871
  status?: TaskStatus;
872
+ progress?: number;
873
+ statusMessage?: string;
874
+ assigneeId?: string;
856
875
  metadata?: Record<string, unknown>;
857
876
  }
858
877
  interface IMTaskListOptions {
@@ -879,6 +898,15 @@ interface IMTask {
879
898
  creatorId: string;
880
899
  assigneeId: string | null;
881
900
  status: TaskStatus;
901
+ progress: number | null;
902
+ statusMessage: string | null;
903
+ conversationId: string | null;
904
+ completedAt: string | null;
905
+ ownerId: string;
906
+ ownerType: string | null;
907
+ ownerName: string | null;
908
+ assigneeType: string | null;
909
+ assigneeName: string | null;
882
910
  scheduleType: ScheduleType | null;
883
911
  scheduleCron: string | null;
884
912
  intervalMs: number | null;
@@ -1313,6 +1341,16 @@ interface MessageDeletedPayload {
1313
1341
  id: string;
1314
1342
  conversationId: string;
1315
1343
  }
1344
+ /** v1.8.2 — dedicated reaction event. Distinct from message.edit (which signals content change). */
1345
+ interface MessageReactionPayload {
1346
+ messageId: string;
1347
+ conversationId: string;
1348
+ emoji: string;
1349
+ userId: string;
1350
+ action: 'add' | 'remove';
1351
+ /** Full reaction snapshot after the change: `{ "👍": ["userId-a", ...], ... }` */
1352
+ reactions: Record<string, string[]>;
1353
+ }
1316
1354
  interface TypingIndicatorPayload {
1317
1355
  conversationId: string;
1318
1356
  userId: string;
@@ -1340,6 +1378,7 @@ interface RealtimeEventMap {
1340
1378
  'authenticated': AuthenticatedPayload;
1341
1379
  'message.new': MessageNewPayload;
1342
1380
  'message.edit': MessageEditPayload;
1381
+ 'message.reaction': MessageReactionPayload;
1343
1382
  'message.deleted': MessageDeletedPayload;
1344
1383
  'typing.indicator': TypingIndicatorPayload;
1345
1384
  'presence.changed': PresenceChangedPayload;
@@ -2558,6 +2597,16 @@ declare class MessagesClient {
2558
2597
  delete(conversationId: string, messageId: string): Promise<IMResult<void>>;
2559
2598
  /** Mark messages as delivered */
2560
2599
  markDelivered(conversationId: string, messageIds: string[]): Promise<IMResult<void>>;
2600
+ /**
2601
+ * Add or remove an emoji reaction on a message (v1.8.2).
2602
+ * Idempotent — adding an existing reaction or removing a non-existent one is a no-op.
2603
+ * Returns the full reactions snapshot: `{ "👍": ["userId-a", ...], ... }`.
2604
+ */
2605
+ react(conversationId: string, messageId: string, emoji: string, options?: {
2606
+ remove?: boolean;
2607
+ }): Promise<IMResult<{
2608
+ reactions: Record<string, string[]>;
2609
+ }>>;
2561
2610
  }
2562
2611
  /** Contacts and agent discovery */
2563
2612
  declare class ContactsClient {
@@ -2670,6 +2719,12 @@ declare class TasksClient {
2670
2719
  complete(taskId: string, options?: IMCompleteTaskOptions): Promise<IMResult<IMTask>>;
2671
2720
  /** Fail a task with error */
2672
2721
  fail(taskId: string, error: string, metadata?: Record<string, unknown>): Promise<IMResult<IMTask>>;
2722
+ /** Approve a completed task */
2723
+ approve(taskId: string): Promise<IMResult<IMTask>>;
2724
+ /** Reject a task with reason */
2725
+ reject(taskId: string, reason: string): Promise<IMResult<IMTask>>;
2726
+ /** Cancel a task */
2727
+ cancel(taskId: string): Promise<IMResult<IMTask>>;
2673
2728
  }
2674
2729
  /** Memory management: files, compaction, session load */
2675
2730
  declare class MemoryClient {
@@ -3135,4 +3190,4 @@ declare class PrismerClient {
3135
3190
 
3136
3191
  declare function createClient(config: PrismerConfig): PrismerClient;
3137
3192
 
3138
- export { AccountClient, AttachmentQueue, type AuthenticatedPayload, type BatchSummary, type BatchUrlCost, BindingsClient, type CacheManager, type CommandResult, CommunityHub, type CommunityHubConfig, ContactsClient, type ControlCommand, ConversationsClient, CreditsClient, type DaemonControlPlane, type DecryptResult, type DerivationMode, DirectClient, type DisconnectedPayload, E2EEncryption, ENVIRONMENTS, type EncryptedContextResult, type EncryptedFileResult, type EncryptedMessage, type Environment, type ErrorPayload, EvolutionCache, EvolutionClient, EvolutionRuntime, type EvolutionRuntimeConfig, type EvolutionSession, type EvolutionSyncDelta, type EvolutionSyncSnapshot, type ExecutionContext, type ExecutionPolicy, type FileInput, FilesClient, type GeneCategory, type GeneSelectionResult, type GeneVisibility, GroupsClient, type IMAgentCard, type IMAgentPersonality, type IMAgentSkillRecord, type IMAnalyzeOptions, type IMAnalyzeResult, type IMAutocompleteResult, type IMBinding, type IMBindingData, type IMBlockedUser, type IMCapsule, IMClient, type IMCompactOptions, type IMCompactionSummary, type IMCompleteTaskOptions, type IMConfirmResult, type IMContact, type IMConversation, type IMConversationsOptions, type IMCreateBindingOptions, type IMCreateGeneOptions, type IMCreateGroupOptions, type IMCreateMemoryFileOptions, type IMCreateTaskOptions, type IMCreditsData, type IMDiscoverAgent, type IMDiscoverOptions, type IMEvolutionEdge, type IMEvolutionStats, type IMFileQuota, type IMForkGeneOptions, type IMFriendRequest, type IMGene, type IMGeneListOptions, type IMGroupData, type IMGroupMember, type IMIdentityKey, type IMKeyAuditEntry, type IMKeyVerifyResult, type IMKnowledgeLink, type IMMeData, type IMMemoryFile, type IMMemoryFileDetail, type IMMemoryKnowledgeLinks, type IMMemoryLoadResult, type IMMessage, type IMMessageData, type IMMultipartInitResult, type IMPaginationOptions, type IMPresignOptions, type IMPresignResult, IMRealtimeClient, type IMRecordOutcomeOptions, type IMRegisterData, type IMRegisterKeyOptions, type IMRegisterOptions, type IMResult, type IMRouting, type IMSendOptions, type IMSkillContent, type IMSkillInfo, type IMSkillInstallResult, type IMTask, type IMTaskDetail, type IMTaskListOptions, type IMTaskLog, type IMTokenData, type IMTransaction, type IMUpdateMemoryFileOptions, type IMUpdateTaskOptions, type IMUser, type IMUserProfile, type IMWorkspaceData, type IMWorkspaceInitGroupOptions, type IMWorkspaceInitOptions, IdentityClient, IndexedDBStorage, type KeyManager, KnowledgeLinkClient, type KnowledgeLinkSource, type KnowledgeLinkType, type LLMBackend, type LLMDispatcher, type LLMResult, type LLMTask, type LoadOptions, type LoadResult, type LoadResultItem, MemoryClient, MemoryStorage, type MessageDeletedPayload, type MessageEditPayload, type MessageNewPayload, MessagesClient, type NotificationSink, type OfflineConfig, type OfflineEventMap, type OfflineEventType, OfflineManager, type OutboxOperation, type ParseCost, type ParseCostBreakdown, type ParseDocument, type ParseDocumentImage, type ParseOptions, type ParseResult, type ParseUsage, type PongPayload, type PresenceChangedPayload, PrismerClient, type PrismerConfig, type PrismerEvent, type QueryCost, type QuerySummary, type QueuedAttachment, type QueuedTask, type RankingFactors, type RealtimeCommand, type RealtimeConfig, type RealtimeEventMap, type RealtimeEventType, RealtimeSSEClient, type RealtimeState, RealtimeWSClient, type ReconnectingPayload, type RequestFn, SQLiteStorage, type SaveBatchOptions, type SaveOptions, type SaveResult, type ScheduleType, SecurityClient, type SendFileOptions, type SendFileResult, type SessionMetrics, type SignalEnrichmentConfig, type SignalTag, type SingleUrlCost, type StorageAdapter, type StoredContact, type StoredConversation, type StoredMessage, type Suggestion, type SyncEvent, type SyncResult, TabCoordinator, type TaskExecutor, type TaskStatus, TasksClient, type TypingIndicatorPayload, type UploadOptions, type UploadResult, WorkspaceClient, createClient, createEnrichedExtractor, decryptContext, decryptFile, decryptMessages, decryptOnReceive, PrismerClient as default, encryptContext, encryptFile, encryptForSend, extractSignals, guessMimeType, safeSlug };
3193
+ export { AccountClient, AttachmentQueue, type AuthenticatedPayload, type BatchSummary, type BatchUrlCost, BindingsClient, type CacheManager, type CommandResult, CommunityHub, type CommunityHubConfig, ContactsClient, type ControlCommand, ConversationsClient, CreditsClient, type DaemonControlPlane, type DecryptResult, type DerivationMode, DirectClient, type DisconnectedPayload, E2EEncryption, ENVIRONMENTS, type EncryptedContextResult, type EncryptedFileResult, type EncryptedMessage, type Environment, type ErrorPayload, EvolutionCache, EvolutionClient, EvolutionRuntime, type EvolutionRuntimeConfig, type EvolutionSession, type EvolutionSyncDelta, type EvolutionSyncSnapshot, type ExecutionContext, type ExecutionPolicy, type FileInput, FilesClient, type GeneCategory, type GeneSelectionResult, type GeneVisibility, GroupsClient, type IMAgentCard, type IMAgentPersonality, type IMAgentSkillRecord, type IMAnalyzeOptions, type IMAnalyzeResult, type IMAutocompleteResult, type IMBinding, type IMBindingData, type IMBlockedUser, type IMCapsule, IMClient, type IMCompactOptions, type IMCompactionSummary, type IMCompleteTaskOptions, type IMConfirmResult, type IMContact, type IMConversation, type IMConversationsOptions, type IMCreateBindingOptions, type IMCreateGeneOptions, type IMCreateGroupOptions, type IMCreateMemoryFileOptions, type IMCreateTaskOptions, type IMCreditsData, type IMDiscoverAgent, type IMDiscoverOptions, type IMEvolutionEdge, type IMEvolutionStats, type IMFileQuota, type IMForkGeneOptions, type IMFriendRequest, type IMGene, type IMGeneListOptions, type IMGroupData, type IMGroupMember, type IMIdentityKey, type IMKeyAuditEntry, type IMKeyVerifyResult, type IMKnowledgeLink, type IMMeData, type IMMemoryFile, type IMMemoryFileDetail, type IMMemoryKnowledgeLinks, type IMMemoryLoadResult, type IMMessage, type IMMessageData, type IMMultipartInitResult, type IMPaginationOptions, type IMPresignOptions, type IMPresignResult, IMRealtimeClient, type IMRecordOutcomeOptions, type IMRegisterData, type IMRegisterKeyOptions, type IMRegisterOptions, type IMResult, type IMRouting, type IMSendOptions, type IMSkillContent, type IMSkillInfo, type IMSkillInstallResult, type IMTask, type IMTaskDetail, type IMTaskListOptions, type IMTaskLog, type IMTokenData, type IMTransaction, type IMUpdateMemoryFileOptions, type IMUpdateTaskOptions, type IMUser, type IMUserProfile, type IMWorkspaceData, type IMWorkspaceInitGroupOptions, type IMWorkspaceInitOptions, IdentityClient, IndexedDBStorage, type KeyManager, KnowledgeLinkClient, type KnowledgeLinkSource, type KnowledgeLinkType, type LLMBackend, type LLMDispatcher, type LLMResult, type LLMTask, type LoadOptions, type LoadResult, type LoadResultItem, MemoryClient, MemoryStorage, type MessageDeletedPayload, type MessageEditPayload, type MessageNewPayload, type MessageReactionPayload, MessagesClient, type NotificationSink, type OfflineConfig, type OfflineEventMap, type OfflineEventType, OfflineManager, type OutboxOperation, type ParseCost, type ParseCostBreakdown, type ParseDocument, type ParseDocumentImage, type ParseOptions, type ParseResult, type ParseUsage, type PongPayload, type PresenceChangedPayload, PrismerClient, type PrismerConfig, type PrismerEvent, type QueryCost, type QuerySummary, type QueuedAttachment, type QueuedTask, type RankingFactors, type RealtimeCommand, type RealtimeConfig, type RealtimeEventMap, type RealtimeEventType, RealtimeSSEClient, type RealtimeState, RealtimeWSClient, type ReconnectingPayload, type RequestFn, SQLiteStorage, type SaveBatchOptions, type SaveOptions, type SaveResult, type ScheduleType, SecurityClient, type SendFileOptions, type SendFileResult, type SessionMetrics, type SignalEnrichmentConfig, type SignalTag, type SingleUrlCost, type StorageAdapter, type StoredContact, type StoredConversation, type StoredMessage, type Suggestion, type SyncEvent, type SyncResult, TabCoordinator, type TaskExecutor, type TaskStatus, TasksClient, type TypingIndicatorPayload, type UploadOptions, type UploadResult, WorkspaceClient, createClient, createEnrichedExtractor, decryptContext, decryptFile, decryptMessages, decryptOnReceive, PrismerClient as default, encryptContext, encryptFile, encryptForSend, extractSignals, guessMimeType, safeSlug };
package/dist/index.d.ts CHANGED
@@ -672,14 +672,27 @@ interface IMWorkspaceInitOptions {
672
672
  workspaceId: string;
673
673
  userId: string;
674
674
  userDisplayName: string;
675
+ agentName?: string;
676
+ agentDisplayName?: string;
677
+ agentType?: string;
678
+ agentCapabilities?: string[];
679
+ force?: boolean;
675
680
  }
676
681
  interface IMWorkspaceInitGroupOptions {
677
682
  workspaceId: string;
678
683
  title: string;
679
- users: Array<{
684
+ description?: string;
685
+ users?: Array<{
680
686
  userId: string;
681
687
  displayName: string;
682
688
  }>;
689
+ agents?: Array<{
690
+ name: string;
691
+ displayName?: string;
692
+ type?: string;
693
+ capabilities?: string[];
694
+ }>;
695
+ force?: boolean;
683
696
  }
684
697
  interface IMAutocompleteResult {
685
698
  userId: string;
@@ -700,9 +713,11 @@ interface IMCreateBindingOptions {
700
713
  channelId?: string;
701
714
  }
702
715
  interface IMSendOptions {
703
- type?: 'text' | 'markdown' | 'code' | 'image' | 'file' | 'tool_call' | 'tool_result' | 'system_event' | 'thinking';
716
+ type?: 'text' | 'markdown' | 'code' | 'image' | 'file' | 'voice' | 'location' | 'artifact' | 'tool_call' | 'tool_result' | 'system_event' | 'system' | 'thinking';
704
717
  metadata?: Record<string, any>;
705
718
  parentId?: string;
719
+ /** Quote-reply reference (v1.8.2). Distinct from parentId threading. */
720
+ quotedMessageId?: string;
706
721
  /** Override auto-signing for this message (e.g., skip signing for system_event) */
707
722
  skipSigning?: boolean;
708
723
  }
@@ -829,7 +844,7 @@ interface OfflineConfig {
829
844
  warningThreshold?: number;
830
845
  };
831
846
  }
832
- type TaskStatus = 'pending' | 'assigned' | 'running' | 'completed' | 'failed' | 'cancelled';
847
+ type TaskStatus = 'pending' | 'assigned' | 'running' | 'review' | 'completed' | 'failed' | 'cancelled';
833
848
  type ScheduleType = 'once' | 'interval' | 'cron';
834
849
  interface IMCreateTaskOptions {
835
850
  title: string;
@@ -851,8 +866,12 @@ interface IMCreateTaskOptions {
851
866
  metadata?: Record<string, unknown>;
852
867
  }
853
868
  interface IMUpdateTaskOptions {
854
- assigneeId?: string;
869
+ title?: string;
870
+ description?: string;
855
871
  status?: TaskStatus;
872
+ progress?: number;
873
+ statusMessage?: string;
874
+ assigneeId?: string;
856
875
  metadata?: Record<string, unknown>;
857
876
  }
858
877
  interface IMTaskListOptions {
@@ -879,6 +898,15 @@ interface IMTask {
879
898
  creatorId: string;
880
899
  assigneeId: string | null;
881
900
  status: TaskStatus;
901
+ progress: number | null;
902
+ statusMessage: string | null;
903
+ conversationId: string | null;
904
+ completedAt: string | null;
905
+ ownerId: string;
906
+ ownerType: string | null;
907
+ ownerName: string | null;
908
+ assigneeType: string | null;
909
+ assigneeName: string | null;
882
910
  scheduleType: ScheduleType | null;
883
911
  scheduleCron: string | null;
884
912
  intervalMs: number | null;
@@ -1313,6 +1341,16 @@ interface MessageDeletedPayload {
1313
1341
  id: string;
1314
1342
  conversationId: string;
1315
1343
  }
1344
+ /** v1.8.2 — dedicated reaction event. Distinct from message.edit (which signals content change). */
1345
+ interface MessageReactionPayload {
1346
+ messageId: string;
1347
+ conversationId: string;
1348
+ emoji: string;
1349
+ userId: string;
1350
+ action: 'add' | 'remove';
1351
+ /** Full reaction snapshot after the change: `{ "👍": ["userId-a", ...], ... }` */
1352
+ reactions: Record<string, string[]>;
1353
+ }
1316
1354
  interface TypingIndicatorPayload {
1317
1355
  conversationId: string;
1318
1356
  userId: string;
@@ -1340,6 +1378,7 @@ interface RealtimeEventMap {
1340
1378
  'authenticated': AuthenticatedPayload;
1341
1379
  'message.new': MessageNewPayload;
1342
1380
  'message.edit': MessageEditPayload;
1381
+ 'message.reaction': MessageReactionPayload;
1343
1382
  'message.deleted': MessageDeletedPayload;
1344
1383
  'typing.indicator': TypingIndicatorPayload;
1345
1384
  'presence.changed': PresenceChangedPayload;
@@ -2558,6 +2597,16 @@ declare class MessagesClient {
2558
2597
  delete(conversationId: string, messageId: string): Promise<IMResult<void>>;
2559
2598
  /** Mark messages as delivered */
2560
2599
  markDelivered(conversationId: string, messageIds: string[]): Promise<IMResult<void>>;
2600
+ /**
2601
+ * Add or remove an emoji reaction on a message (v1.8.2).
2602
+ * Idempotent — adding an existing reaction or removing a non-existent one is a no-op.
2603
+ * Returns the full reactions snapshot: `{ "👍": ["userId-a", ...], ... }`.
2604
+ */
2605
+ react(conversationId: string, messageId: string, emoji: string, options?: {
2606
+ remove?: boolean;
2607
+ }): Promise<IMResult<{
2608
+ reactions: Record<string, string[]>;
2609
+ }>>;
2561
2610
  }
2562
2611
  /** Contacts and agent discovery */
2563
2612
  declare class ContactsClient {
@@ -2670,6 +2719,12 @@ declare class TasksClient {
2670
2719
  complete(taskId: string, options?: IMCompleteTaskOptions): Promise<IMResult<IMTask>>;
2671
2720
  /** Fail a task with error */
2672
2721
  fail(taskId: string, error: string, metadata?: Record<string, unknown>): Promise<IMResult<IMTask>>;
2722
+ /** Approve a completed task */
2723
+ approve(taskId: string): Promise<IMResult<IMTask>>;
2724
+ /** Reject a task with reason */
2725
+ reject(taskId: string, reason: string): Promise<IMResult<IMTask>>;
2726
+ /** Cancel a task */
2727
+ cancel(taskId: string): Promise<IMResult<IMTask>>;
2673
2728
  }
2674
2729
  /** Memory management: files, compaction, session load */
2675
2730
  declare class MemoryClient {
@@ -3135,4 +3190,4 @@ declare class PrismerClient {
3135
3190
 
3136
3191
  declare function createClient(config: PrismerConfig): PrismerClient;
3137
3192
 
3138
- export { AccountClient, AttachmentQueue, type AuthenticatedPayload, type BatchSummary, type BatchUrlCost, BindingsClient, type CacheManager, type CommandResult, CommunityHub, type CommunityHubConfig, ContactsClient, type ControlCommand, ConversationsClient, CreditsClient, type DaemonControlPlane, type DecryptResult, type DerivationMode, DirectClient, type DisconnectedPayload, E2EEncryption, ENVIRONMENTS, type EncryptedContextResult, type EncryptedFileResult, type EncryptedMessage, type Environment, type ErrorPayload, EvolutionCache, EvolutionClient, EvolutionRuntime, type EvolutionRuntimeConfig, type EvolutionSession, type EvolutionSyncDelta, type EvolutionSyncSnapshot, type ExecutionContext, type ExecutionPolicy, type FileInput, FilesClient, type GeneCategory, type GeneSelectionResult, type GeneVisibility, GroupsClient, type IMAgentCard, type IMAgentPersonality, type IMAgentSkillRecord, type IMAnalyzeOptions, type IMAnalyzeResult, type IMAutocompleteResult, type IMBinding, type IMBindingData, type IMBlockedUser, type IMCapsule, IMClient, type IMCompactOptions, type IMCompactionSummary, type IMCompleteTaskOptions, type IMConfirmResult, type IMContact, type IMConversation, type IMConversationsOptions, type IMCreateBindingOptions, type IMCreateGeneOptions, type IMCreateGroupOptions, type IMCreateMemoryFileOptions, type IMCreateTaskOptions, type IMCreditsData, type IMDiscoverAgent, type IMDiscoverOptions, type IMEvolutionEdge, type IMEvolutionStats, type IMFileQuota, type IMForkGeneOptions, type IMFriendRequest, type IMGene, type IMGeneListOptions, type IMGroupData, type IMGroupMember, type IMIdentityKey, type IMKeyAuditEntry, type IMKeyVerifyResult, type IMKnowledgeLink, type IMMeData, type IMMemoryFile, type IMMemoryFileDetail, type IMMemoryKnowledgeLinks, type IMMemoryLoadResult, type IMMessage, type IMMessageData, type IMMultipartInitResult, type IMPaginationOptions, type IMPresignOptions, type IMPresignResult, IMRealtimeClient, type IMRecordOutcomeOptions, type IMRegisterData, type IMRegisterKeyOptions, type IMRegisterOptions, type IMResult, type IMRouting, type IMSendOptions, type IMSkillContent, type IMSkillInfo, type IMSkillInstallResult, type IMTask, type IMTaskDetail, type IMTaskListOptions, type IMTaskLog, type IMTokenData, type IMTransaction, type IMUpdateMemoryFileOptions, type IMUpdateTaskOptions, type IMUser, type IMUserProfile, type IMWorkspaceData, type IMWorkspaceInitGroupOptions, type IMWorkspaceInitOptions, IdentityClient, IndexedDBStorage, type KeyManager, KnowledgeLinkClient, type KnowledgeLinkSource, type KnowledgeLinkType, type LLMBackend, type LLMDispatcher, type LLMResult, type LLMTask, type LoadOptions, type LoadResult, type LoadResultItem, MemoryClient, MemoryStorage, type MessageDeletedPayload, type MessageEditPayload, type MessageNewPayload, MessagesClient, type NotificationSink, type OfflineConfig, type OfflineEventMap, type OfflineEventType, OfflineManager, type OutboxOperation, type ParseCost, type ParseCostBreakdown, type ParseDocument, type ParseDocumentImage, type ParseOptions, type ParseResult, type ParseUsage, type PongPayload, type PresenceChangedPayload, PrismerClient, type PrismerConfig, type PrismerEvent, type QueryCost, type QuerySummary, type QueuedAttachment, type QueuedTask, type RankingFactors, type RealtimeCommand, type RealtimeConfig, type RealtimeEventMap, type RealtimeEventType, RealtimeSSEClient, type RealtimeState, RealtimeWSClient, type ReconnectingPayload, type RequestFn, SQLiteStorage, type SaveBatchOptions, type SaveOptions, type SaveResult, type ScheduleType, SecurityClient, type SendFileOptions, type SendFileResult, type SessionMetrics, type SignalEnrichmentConfig, type SignalTag, type SingleUrlCost, type StorageAdapter, type StoredContact, type StoredConversation, type StoredMessage, type Suggestion, type SyncEvent, type SyncResult, TabCoordinator, type TaskExecutor, type TaskStatus, TasksClient, type TypingIndicatorPayload, type UploadOptions, type UploadResult, WorkspaceClient, createClient, createEnrichedExtractor, decryptContext, decryptFile, decryptMessages, decryptOnReceive, PrismerClient as default, encryptContext, encryptFile, encryptForSend, extractSignals, guessMimeType, safeSlug };
3193
+ export { AccountClient, AttachmentQueue, type AuthenticatedPayload, type BatchSummary, type BatchUrlCost, BindingsClient, type CacheManager, type CommandResult, CommunityHub, type CommunityHubConfig, ContactsClient, type ControlCommand, ConversationsClient, CreditsClient, type DaemonControlPlane, type DecryptResult, type DerivationMode, DirectClient, type DisconnectedPayload, E2EEncryption, ENVIRONMENTS, type EncryptedContextResult, type EncryptedFileResult, type EncryptedMessage, type Environment, type ErrorPayload, EvolutionCache, EvolutionClient, EvolutionRuntime, type EvolutionRuntimeConfig, type EvolutionSession, type EvolutionSyncDelta, type EvolutionSyncSnapshot, type ExecutionContext, type ExecutionPolicy, type FileInput, FilesClient, type GeneCategory, type GeneSelectionResult, type GeneVisibility, GroupsClient, type IMAgentCard, type IMAgentPersonality, type IMAgentSkillRecord, type IMAnalyzeOptions, type IMAnalyzeResult, type IMAutocompleteResult, type IMBinding, type IMBindingData, type IMBlockedUser, type IMCapsule, IMClient, type IMCompactOptions, type IMCompactionSummary, type IMCompleteTaskOptions, type IMConfirmResult, type IMContact, type IMConversation, type IMConversationsOptions, type IMCreateBindingOptions, type IMCreateGeneOptions, type IMCreateGroupOptions, type IMCreateMemoryFileOptions, type IMCreateTaskOptions, type IMCreditsData, type IMDiscoverAgent, type IMDiscoverOptions, type IMEvolutionEdge, type IMEvolutionStats, type IMFileQuota, type IMForkGeneOptions, type IMFriendRequest, type IMGene, type IMGeneListOptions, type IMGroupData, type IMGroupMember, type IMIdentityKey, type IMKeyAuditEntry, type IMKeyVerifyResult, type IMKnowledgeLink, type IMMeData, type IMMemoryFile, type IMMemoryFileDetail, type IMMemoryKnowledgeLinks, type IMMemoryLoadResult, type IMMessage, type IMMessageData, type IMMultipartInitResult, type IMPaginationOptions, type IMPresignOptions, type IMPresignResult, IMRealtimeClient, type IMRecordOutcomeOptions, type IMRegisterData, type IMRegisterKeyOptions, type IMRegisterOptions, type IMResult, type IMRouting, type IMSendOptions, type IMSkillContent, type IMSkillInfo, type IMSkillInstallResult, type IMTask, type IMTaskDetail, type IMTaskListOptions, type IMTaskLog, type IMTokenData, type IMTransaction, type IMUpdateMemoryFileOptions, type IMUpdateTaskOptions, type IMUser, type IMUserProfile, type IMWorkspaceData, type IMWorkspaceInitGroupOptions, type IMWorkspaceInitOptions, IdentityClient, IndexedDBStorage, type KeyManager, KnowledgeLinkClient, type KnowledgeLinkSource, type KnowledgeLinkType, type LLMBackend, type LLMDispatcher, type LLMResult, type LLMTask, type LoadOptions, type LoadResult, type LoadResultItem, MemoryClient, MemoryStorage, type MessageDeletedPayload, type MessageEditPayload, type MessageNewPayload, type MessageReactionPayload, MessagesClient, type NotificationSink, type OfflineConfig, type OfflineEventMap, type OfflineEventType, OfflineManager, type OutboxOperation, type ParseCost, type ParseCostBreakdown, type ParseDocument, type ParseDocumentImage, type ParseOptions, type ParseResult, type ParseUsage, type PongPayload, type PresenceChangedPayload, PrismerClient, type PrismerConfig, type PrismerEvent, type QueryCost, type QuerySummary, type QueuedAttachment, type QueuedTask, type RankingFactors, type RealtimeCommand, type RealtimeConfig, type RealtimeEventMap, type RealtimeEventType, RealtimeSSEClient, type RealtimeState, RealtimeWSClient, type ReconnectingPayload, type RequestFn, SQLiteStorage, type SaveBatchOptions, type SaveOptions, type SaveResult, type ScheduleType, SecurityClient, type SendFileOptions, type SendFileResult, type SessionMetrics, type SignalEnrichmentConfig, type SignalTag, type SingleUrlCost, type StorageAdapter, type StoredContact, type StoredConversation, type StoredMessage, type Suggestion, type SyncEvent, type SyncResult, TabCoordinator, type TaskExecutor, type TaskStatus, TasksClient, type TypingIndicatorPayload, type UploadOptions, type UploadResult, WorkspaceClient, createClient, createEnrichedExtractor, decryptContext, decryptFile, decryptMessages, decryptOnReceive, PrismerClient as default, encryptContext, encryptFile, encryptForSend, extractSignals, guessMimeType, safeSlug };
package/dist/index.js CHANGED
@@ -3341,7 +3341,8 @@ var DirectClient = class {
3341
3341
  content,
3342
3342
  type: options?.type ?? "text",
3343
3343
  metadata: options?.metadata,
3344
- parentId: options?.parentId
3344
+ parentId: options?.parentId,
3345
+ quotedMessageId: options?.quotedMessageId
3345
3346
  });
3346
3347
  }
3347
3348
  /** Get direct message history with a user */
@@ -3374,7 +3375,8 @@ var GroupsClient = class {
3374
3375
  content,
3375
3376
  type: options?.type ?? "text",
3376
3377
  metadata: options?.metadata,
3377
- parentId: options?.parentId
3378
+ parentId: options?.parentId,
3379
+ quotedMessageId: options?.quotedMessageId
3378
3380
  });
3379
3381
  }
3380
3382
  /** Get group message history */
@@ -3451,7 +3453,8 @@ var MessagesClient = class {
3451
3453
  content,
3452
3454
  type: options?.type ?? "text",
3453
3455
  metadata: options?.metadata,
3454
- parentId: options?.parentId
3456
+ parentId: options?.parentId,
3457
+ quotedMessageId: options?.quotedMessageId
3455
3458
  });
3456
3459
  }
3457
3460
  /** Get message history for a conversation */
@@ -3473,6 +3476,17 @@ var MessagesClient = class {
3473
3476
  async markDelivered(conversationId, messageIds) {
3474
3477
  return this._r("POST", "/api/im/messages/delivered", { conversationId, messageIds });
3475
3478
  }
3479
+ /**
3480
+ * Add or remove an emoji reaction on a message (v1.8.2).
3481
+ * Idempotent — adding an existing reaction or removing a non-existent one is a no-op.
3482
+ * Returns the full reactions snapshot: `{ "👍": ["userId-a", ...], ... }`.
3483
+ */
3484
+ async react(conversationId, messageId, emoji, options) {
3485
+ return this._r("POST", `/api/im/messages/${conversationId}/${messageId}/reactions`, {
3486
+ emoji,
3487
+ ...options?.remove ? { remove: true } : {}
3488
+ });
3489
+ }
3476
3490
  };
3477
3491
  var ContactsClient = class {
3478
3492
  constructor(_r) {
@@ -3671,6 +3685,18 @@ var TasksClient = class {
3671
3685
  async fail(taskId, error, metadata) {
3672
3686
  return this._r("POST", `/api/im/tasks/${taskId}/fail`, { error, metadata });
3673
3687
  }
3688
+ /** Approve a completed task */
3689
+ async approve(taskId) {
3690
+ return this._r("POST", `/api/im/tasks/${taskId}/approve`);
3691
+ }
3692
+ /** Reject a task with reason */
3693
+ async reject(taskId, reason) {
3694
+ return this._r("POST", `/api/im/tasks/${taskId}/reject`, { reason });
3695
+ }
3696
+ /** Cancel a task */
3697
+ async cancel(taskId) {
3698
+ return this._r("DELETE", `/api/im/tasks/${taskId}`);
3699
+ }
3674
3700
  };
3675
3701
  var MemoryClient = class {
3676
3702
  constructor(_r) {
@@ -4789,3 +4815,6 @@ function createClient(config) {
4789
4815
  guessMimeType,
4790
4816
  safeSlug
4791
4817
  });
4818
+ ype,
4819
+ safeSlug
4820
+ });