@multi-agent-protocol/sdk 0.0.6 → 0.0.8
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-BQXp4_rd.d.cts → index-BVvyY2kb.d.cts} +794 -3
- package/dist/{index-BQXp4_rd.d.ts → index-BVvyY2kb.d.ts} +794 -3
- package/dist/index.cjs +500 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +499 -5
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +392 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +392 -1
- package/dist/testing.js.map +1 -1
- package/package.json +3 -7
|
@@ -32,6 +32,12 @@ type MessageId = string;
|
|
|
32
32
|
type SubscriptionId = string;
|
|
33
33
|
/** Identifier for correlating related messages */
|
|
34
34
|
type CorrelationId = string;
|
|
35
|
+
/** Unique identifier for a conversation (format: 'conv-{ulid}') */
|
|
36
|
+
type ConversationId = string;
|
|
37
|
+
/** Unique identifier for a turn within a conversation (format: 'turn-{ulid}') */
|
|
38
|
+
type TurnId = string;
|
|
39
|
+
/** Unique identifier for a thread within a conversation (format: 'thread-{ulid}') */
|
|
40
|
+
type ThreadId = string;
|
|
35
41
|
/** JSON-RPC request ID */
|
|
36
42
|
type RequestId = string | number;
|
|
37
43
|
/** MAP protocol version */
|
|
@@ -94,6 +100,21 @@ interface ParticipantCapabilities {
|
|
|
94
100
|
/** Can connect to and route to federated systems */
|
|
95
101
|
canFederate?: boolean;
|
|
96
102
|
};
|
|
103
|
+
/** Mail protocol capabilities for conversation/turn tracking */
|
|
104
|
+
mail?: {
|
|
105
|
+
/** Whether mail is enabled (server response only) */
|
|
106
|
+
enabled?: boolean;
|
|
107
|
+
/** Can create new conversations */
|
|
108
|
+
canCreate?: boolean;
|
|
109
|
+
/** Can join existing conversations */
|
|
110
|
+
canJoin?: boolean;
|
|
111
|
+
/** Can invite participants to conversations */
|
|
112
|
+
canInvite?: boolean;
|
|
113
|
+
/** Can view conversation history */
|
|
114
|
+
canViewHistory?: boolean;
|
|
115
|
+
/** Can create threads within conversations */
|
|
116
|
+
canCreateThreads?: boolean;
|
|
117
|
+
};
|
|
97
118
|
/** Streaming/backpressure capabilities */
|
|
98
119
|
streaming?: StreamingCapabilities;
|
|
99
120
|
/**
|
|
@@ -438,6 +459,12 @@ interface MessageMeta {
|
|
|
438
459
|
* Used to identify the protocol of the payload.
|
|
439
460
|
*/
|
|
440
461
|
protocol?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Mail turn tracking metadata.
|
|
464
|
+
* When present on map/send, the server records a turn in the specified
|
|
465
|
+
* conversation in addition to routing the message.
|
|
466
|
+
*/
|
|
467
|
+
mail?: MailMessageMeta;
|
|
441
468
|
_meta?: Meta;
|
|
442
469
|
}
|
|
443
470
|
/** A message in the multi-agent system */
|
|
@@ -497,6 +524,14 @@ declare const EVENT_TYPES: {
|
|
|
497
524
|
readonly SYSTEM_ERROR: "system_error";
|
|
498
525
|
readonly FEDERATION_CONNECTED: "federation_connected";
|
|
499
526
|
readonly FEDERATION_DISCONNECTED: "federation_disconnected";
|
|
527
|
+
readonly MAIL_CREATED: "mail.created";
|
|
528
|
+
readonly MAIL_CLOSED: "mail.closed";
|
|
529
|
+
readonly MAIL_PARTICIPANT_JOINED: "mail.participant.joined";
|
|
530
|
+
readonly MAIL_PARTICIPANT_LEFT: "mail.participant.left";
|
|
531
|
+
readonly MAIL_TURN_ADDED: "mail.turn.added";
|
|
532
|
+
readonly MAIL_TURN_UPDATED: "mail.turn.updated";
|
|
533
|
+
readonly MAIL_THREAD_CREATED: "mail.thread.created";
|
|
534
|
+
readonly MAIL_SUMMARY_GENERATED: "mail.summary.generated";
|
|
500
535
|
};
|
|
501
536
|
/** Type of system event (derived from EVENT_TYPES) */
|
|
502
537
|
type EventType = (typeof EVENT_TYPES)[keyof typeof EVENT_TYPES];
|
|
@@ -611,6 +646,12 @@ interface SubscriptionFilter {
|
|
|
611
646
|
* Checks event.data.metadata for matching values.
|
|
612
647
|
*/
|
|
613
648
|
metadataMatch?: Record<string, unknown>;
|
|
649
|
+
/**
|
|
650
|
+
* Mail-specific filter for conversation events.
|
|
651
|
+
* Matches mail events related to a specific conversation, thread,
|
|
652
|
+
* participant, or content type.
|
|
653
|
+
*/
|
|
654
|
+
mail?: MailSubscriptionFilter;
|
|
614
655
|
_meta?: Meta;
|
|
615
656
|
}
|
|
616
657
|
/** Options for subscriptions */
|
|
@@ -688,7 +729,7 @@ interface MessageFailedEventData {
|
|
|
688
729
|
code?: number;
|
|
689
730
|
}
|
|
690
731
|
/** Category of error for handling decisions */
|
|
691
|
-
type ErrorCategory = 'protocol' | 'auth' | 'routing' | 'agent' | 'resource' | 'federation' | 'internal';
|
|
732
|
+
type ErrorCategory = 'protocol' | 'auth' | 'routing' | 'agent' | 'resource' | 'federation' | 'mail' | 'internal';
|
|
692
733
|
/** Structured error data */
|
|
693
734
|
interface MAPErrorData {
|
|
694
735
|
category?: ErrorCategory;
|
|
@@ -1623,6 +1664,480 @@ interface FederationRouteResponseResult {
|
|
|
1623
1664
|
messageId?: MessageId;
|
|
1624
1665
|
_meta?: Meta;
|
|
1625
1666
|
}
|
|
1667
|
+
/**
|
|
1668
|
+
* Type of conversation.
|
|
1669
|
+
*/
|
|
1670
|
+
type ConversationType = 'user-session' | 'agent-task' | 'multi-agent' | 'mixed';
|
|
1671
|
+
/**
|
|
1672
|
+
* Status of a conversation.
|
|
1673
|
+
*/
|
|
1674
|
+
type ConversationStatus = 'active' | 'paused' | 'completed' | 'failed' | 'archived';
|
|
1675
|
+
/**
|
|
1676
|
+
* A conversation - a container for tracking related interactions.
|
|
1677
|
+
*/
|
|
1678
|
+
interface Conversation {
|
|
1679
|
+
id: ConversationId;
|
|
1680
|
+
type: ConversationType;
|
|
1681
|
+
status: ConversationStatus;
|
|
1682
|
+
subject?: string;
|
|
1683
|
+
participantCount: number;
|
|
1684
|
+
parentConversationId?: ConversationId;
|
|
1685
|
+
parentTurnId?: TurnId;
|
|
1686
|
+
createdAt: Timestamp;
|
|
1687
|
+
updatedAt: Timestamp;
|
|
1688
|
+
closedAt?: Timestamp;
|
|
1689
|
+
createdBy: ParticipantId;
|
|
1690
|
+
metadata?: Record<string, unknown>;
|
|
1691
|
+
_meta?: Meta;
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* Role of a participant within a conversation.
|
|
1695
|
+
*/
|
|
1696
|
+
type ParticipantRole = 'initiator' | 'assistant' | 'worker' | 'observer' | 'moderator';
|
|
1697
|
+
/**
|
|
1698
|
+
* Permissions for a participant within a conversation.
|
|
1699
|
+
*/
|
|
1700
|
+
interface ConversationPermissions {
|
|
1701
|
+
canSend: boolean;
|
|
1702
|
+
canObserve: boolean;
|
|
1703
|
+
canInvite: boolean;
|
|
1704
|
+
canRemove: boolean;
|
|
1705
|
+
canCreateThreads: boolean;
|
|
1706
|
+
historyAccess: 'none' | 'from-join' | 'full';
|
|
1707
|
+
canSeeInternal: boolean;
|
|
1708
|
+
_meta?: Meta;
|
|
1709
|
+
}
|
|
1710
|
+
/**
|
|
1711
|
+
* A participant in a conversation with role and permissions.
|
|
1712
|
+
*/
|
|
1713
|
+
interface ConversationParticipant {
|
|
1714
|
+
id: ParticipantId;
|
|
1715
|
+
type: 'user' | 'agent' | 'system';
|
|
1716
|
+
role: ParticipantRole;
|
|
1717
|
+
joinedAt: Timestamp;
|
|
1718
|
+
leftAt?: Timestamp;
|
|
1719
|
+
permissions: ConversationPermissions;
|
|
1720
|
+
agentInfo?: {
|
|
1721
|
+
agentId: AgentId;
|
|
1722
|
+
name?: string;
|
|
1723
|
+
role?: string;
|
|
1724
|
+
};
|
|
1725
|
+
_meta?: Meta;
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* A thread within a conversation for focused discussion.
|
|
1729
|
+
*/
|
|
1730
|
+
interface Thread {
|
|
1731
|
+
id: ThreadId;
|
|
1732
|
+
conversationId: ConversationId;
|
|
1733
|
+
parentThreadId?: ThreadId;
|
|
1734
|
+
subject?: string;
|
|
1735
|
+
rootTurnId: TurnId;
|
|
1736
|
+
turnCount: number;
|
|
1737
|
+
participantCount: number;
|
|
1738
|
+
createdAt: Timestamp;
|
|
1739
|
+
updatedAt: Timestamp;
|
|
1740
|
+
createdBy: ParticipantId;
|
|
1741
|
+
_meta?: Meta;
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* How a turn was created.
|
|
1745
|
+
* - 'explicit': Created directly via mail/turn call
|
|
1746
|
+
* - 'intercepted': Auto-recorded from map/send with mail meta
|
|
1747
|
+
*/
|
|
1748
|
+
type TurnSource = {
|
|
1749
|
+
type: 'explicit';
|
|
1750
|
+
method: 'mail/turn';
|
|
1751
|
+
} | {
|
|
1752
|
+
type: 'intercepted';
|
|
1753
|
+
messageId: MessageId;
|
|
1754
|
+
};
|
|
1755
|
+
/**
|
|
1756
|
+
* Visibility of a turn within a conversation.
|
|
1757
|
+
*/
|
|
1758
|
+
type TurnVisibility = {
|
|
1759
|
+
type: 'all';
|
|
1760
|
+
} | {
|
|
1761
|
+
type: 'participants';
|
|
1762
|
+
ids: ParticipantId[];
|
|
1763
|
+
} | {
|
|
1764
|
+
type: 'role';
|
|
1765
|
+
roles: ParticipantRole[];
|
|
1766
|
+
} | {
|
|
1767
|
+
type: 'private';
|
|
1768
|
+
};
|
|
1769
|
+
/**
|
|
1770
|
+
* Status of a turn's content lifecycle.
|
|
1771
|
+
*/
|
|
1772
|
+
type TurnStatus = 'pending' | 'streaming' | 'complete' | 'failed';
|
|
1773
|
+
/**
|
|
1774
|
+
* A turn - the atomic unit of conversation.
|
|
1775
|
+
* Records what a participant intentionally communicates.
|
|
1776
|
+
*
|
|
1777
|
+
* Content uses a generic model:
|
|
1778
|
+
* - Well-known types: 'text', 'data', 'event', 'reference'
|
|
1779
|
+
* - Custom types use 'x-' prefix (e.g., 'x-tool-call')
|
|
1780
|
+
*/
|
|
1781
|
+
interface Turn {
|
|
1782
|
+
id: TurnId;
|
|
1783
|
+
conversationId: ConversationId;
|
|
1784
|
+
participant: ParticipantId;
|
|
1785
|
+
timestamp: Timestamp;
|
|
1786
|
+
/** Content type - well-known ('text', 'data', 'event', 'reference') or custom ('x-*') */
|
|
1787
|
+
contentType: string;
|
|
1788
|
+
/** Content payload - shape determined by contentType */
|
|
1789
|
+
content: unknown;
|
|
1790
|
+
/** Thread this turn belongs to */
|
|
1791
|
+
threadId?: ThreadId;
|
|
1792
|
+
/** Turn this is in reply to */
|
|
1793
|
+
inReplyTo?: TurnId;
|
|
1794
|
+
/** How this turn was created */
|
|
1795
|
+
source: TurnSource;
|
|
1796
|
+
/** Who can see this turn */
|
|
1797
|
+
visibility?: TurnVisibility;
|
|
1798
|
+
/** Status of the turn content */
|
|
1799
|
+
status?: TurnStatus;
|
|
1800
|
+
metadata?: Record<string, unknown>;
|
|
1801
|
+
_meta?: Meta;
|
|
1802
|
+
}
|
|
1803
|
+
/**
|
|
1804
|
+
* Mail metadata for map/send turn tracking.
|
|
1805
|
+
* Include in MessageMeta.mail to route AND record a turn.
|
|
1806
|
+
*/
|
|
1807
|
+
interface MailMessageMeta {
|
|
1808
|
+
conversationId: ConversationId;
|
|
1809
|
+
threadId?: ThreadId;
|
|
1810
|
+
inReplyTo?: TurnId;
|
|
1811
|
+
visibility?: TurnVisibility;
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Mail-specific subscription filter.
|
|
1815
|
+
* Used in SubscriptionFilter.mail for filtering mail events.
|
|
1816
|
+
*/
|
|
1817
|
+
interface MailSubscriptionFilter {
|
|
1818
|
+
conversationId?: ConversationId;
|
|
1819
|
+
threadId?: ThreadId;
|
|
1820
|
+
participantId?: ParticipantId;
|
|
1821
|
+
contentType?: string;
|
|
1822
|
+
}
|
|
1823
|
+
/** Data for mail.created events */
|
|
1824
|
+
interface MailCreatedEventData {
|
|
1825
|
+
conversationId: ConversationId;
|
|
1826
|
+
type: ConversationType;
|
|
1827
|
+
subject?: string;
|
|
1828
|
+
createdBy: ParticipantId;
|
|
1829
|
+
}
|
|
1830
|
+
/** Data for mail.closed events */
|
|
1831
|
+
interface MailClosedEventData {
|
|
1832
|
+
conversationId: ConversationId;
|
|
1833
|
+
closedBy: ParticipantId;
|
|
1834
|
+
reason?: string;
|
|
1835
|
+
}
|
|
1836
|
+
/** Data for mail.participant.joined events */
|
|
1837
|
+
interface MailParticipantJoinedEventData {
|
|
1838
|
+
conversationId: ConversationId;
|
|
1839
|
+
participant: ConversationParticipant;
|
|
1840
|
+
}
|
|
1841
|
+
/** Data for mail.participant.left events */
|
|
1842
|
+
interface MailParticipantLeftEventData {
|
|
1843
|
+
conversationId: ConversationId;
|
|
1844
|
+
participantId: ParticipantId;
|
|
1845
|
+
reason?: string;
|
|
1846
|
+
}
|
|
1847
|
+
/** Data for mail.turn.added events */
|
|
1848
|
+
interface MailTurnAddedEventData {
|
|
1849
|
+
conversationId: ConversationId;
|
|
1850
|
+
turn: Turn;
|
|
1851
|
+
}
|
|
1852
|
+
/** Data for mail.turn.updated events */
|
|
1853
|
+
interface MailTurnUpdatedEventData {
|
|
1854
|
+
conversationId: ConversationId;
|
|
1855
|
+
turnId: TurnId;
|
|
1856
|
+
status?: TurnStatus;
|
|
1857
|
+
}
|
|
1858
|
+
/** Data for mail.thread.created events */
|
|
1859
|
+
interface MailThreadCreatedEventData {
|
|
1860
|
+
conversationId: ConversationId;
|
|
1861
|
+
thread: Thread;
|
|
1862
|
+
}
|
|
1863
|
+
/** Data for mail.summary.generated events */
|
|
1864
|
+
interface MailSummaryGeneratedEventData {
|
|
1865
|
+
conversationId: ConversationId;
|
|
1866
|
+
summary: string;
|
|
1867
|
+
}
|
|
1868
|
+
interface MailCreateRequestParams {
|
|
1869
|
+
type?: ConversationType;
|
|
1870
|
+
subject?: string;
|
|
1871
|
+
parentConversationId?: ConversationId;
|
|
1872
|
+
parentTurnId?: TurnId;
|
|
1873
|
+
initialParticipants?: Array<{
|
|
1874
|
+
id: ParticipantId;
|
|
1875
|
+
role?: ParticipantRole;
|
|
1876
|
+
permissions?: Partial<ConversationPermissions>;
|
|
1877
|
+
}>;
|
|
1878
|
+
initialTurn?: {
|
|
1879
|
+
contentType: string;
|
|
1880
|
+
content: unknown;
|
|
1881
|
+
visibility?: TurnVisibility;
|
|
1882
|
+
};
|
|
1883
|
+
metadata?: Record<string, unknown>;
|
|
1884
|
+
_meta?: Meta;
|
|
1885
|
+
}
|
|
1886
|
+
interface MailCreateRequest extends MAPRequestBase<MailCreateRequestParams> {
|
|
1887
|
+
method: 'mail/create';
|
|
1888
|
+
params: MailCreateRequestParams;
|
|
1889
|
+
}
|
|
1890
|
+
interface MailCreateResponseResult {
|
|
1891
|
+
conversation: Conversation;
|
|
1892
|
+
participant: ConversationParticipant;
|
|
1893
|
+
initialTurn?: Turn;
|
|
1894
|
+
_meta?: Meta;
|
|
1895
|
+
}
|
|
1896
|
+
interface MailGetRequestParams {
|
|
1897
|
+
conversationId: ConversationId;
|
|
1898
|
+
include?: {
|
|
1899
|
+
participants?: boolean;
|
|
1900
|
+
threads?: boolean;
|
|
1901
|
+
recentTurns?: number;
|
|
1902
|
+
stats?: boolean;
|
|
1903
|
+
};
|
|
1904
|
+
_meta?: Meta;
|
|
1905
|
+
}
|
|
1906
|
+
interface MailGetRequest extends MAPRequestBase<MailGetRequestParams> {
|
|
1907
|
+
method: 'mail/get';
|
|
1908
|
+
params: MailGetRequestParams;
|
|
1909
|
+
}
|
|
1910
|
+
interface MailGetResponseResult {
|
|
1911
|
+
conversation: Conversation;
|
|
1912
|
+
participants?: ConversationParticipant[];
|
|
1913
|
+
threads?: Thread[];
|
|
1914
|
+
recentTurns?: Turn[];
|
|
1915
|
+
stats?: {
|
|
1916
|
+
totalTurns: number;
|
|
1917
|
+
turnsByContentType: Record<string, number>;
|
|
1918
|
+
activeParticipants: number;
|
|
1919
|
+
threadCount: number;
|
|
1920
|
+
};
|
|
1921
|
+
_meta?: Meta;
|
|
1922
|
+
}
|
|
1923
|
+
interface MailListRequestParams {
|
|
1924
|
+
filter?: {
|
|
1925
|
+
type?: ConversationType[];
|
|
1926
|
+
status?: ConversationStatus[];
|
|
1927
|
+
participantId?: ParticipantId;
|
|
1928
|
+
createdAfter?: Timestamp;
|
|
1929
|
+
createdBefore?: Timestamp;
|
|
1930
|
+
parentConversationId?: ConversationId;
|
|
1931
|
+
};
|
|
1932
|
+
limit?: number;
|
|
1933
|
+
cursor?: string;
|
|
1934
|
+
_meta?: Meta;
|
|
1935
|
+
}
|
|
1936
|
+
interface MailListRequest extends MAPRequestBase<MailListRequestParams> {
|
|
1937
|
+
method: 'mail/list';
|
|
1938
|
+
params?: MailListRequestParams;
|
|
1939
|
+
}
|
|
1940
|
+
interface MailListResponseResult {
|
|
1941
|
+
conversations: Conversation[];
|
|
1942
|
+
nextCursor?: string;
|
|
1943
|
+
hasMore: boolean;
|
|
1944
|
+
_meta?: Meta;
|
|
1945
|
+
}
|
|
1946
|
+
interface MailCloseRequestParams {
|
|
1947
|
+
conversationId: ConversationId;
|
|
1948
|
+
reason?: string;
|
|
1949
|
+
_meta?: Meta;
|
|
1950
|
+
}
|
|
1951
|
+
interface MailCloseRequest extends MAPRequestBase<MailCloseRequestParams> {
|
|
1952
|
+
method: 'mail/close';
|
|
1953
|
+
params: MailCloseRequestParams;
|
|
1954
|
+
}
|
|
1955
|
+
interface MailCloseResponseResult {
|
|
1956
|
+
conversation: Conversation;
|
|
1957
|
+
_meta?: Meta;
|
|
1958
|
+
}
|
|
1959
|
+
interface MailJoinRequestParams {
|
|
1960
|
+
conversationId: ConversationId;
|
|
1961
|
+
role?: ParticipantRole;
|
|
1962
|
+
catchUp?: {
|
|
1963
|
+
from: string | number;
|
|
1964
|
+
limit?: number;
|
|
1965
|
+
includeSummary?: boolean;
|
|
1966
|
+
};
|
|
1967
|
+
_meta?: Meta;
|
|
1968
|
+
}
|
|
1969
|
+
interface MailJoinRequest extends MAPRequestBase<MailJoinRequestParams> {
|
|
1970
|
+
method: 'mail/join';
|
|
1971
|
+
params: MailJoinRequestParams;
|
|
1972
|
+
}
|
|
1973
|
+
interface MailJoinResponseResult {
|
|
1974
|
+
conversation: Conversation;
|
|
1975
|
+
participant: ConversationParticipant;
|
|
1976
|
+
history?: Turn[];
|
|
1977
|
+
historyCursor?: string;
|
|
1978
|
+
summary?: string;
|
|
1979
|
+
_meta?: Meta;
|
|
1980
|
+
}
|
|
1981
|
+
interface MailLeaveRequestParams {
|
|
1982
|
+
conversationId: ConversationId;
|
|
1983
|
+
reason?: string;
|
|
1984
|
+
_meta?: Meta;
|
|
1985
|
+
}
|
|
1986
|
+
interface MailLeaveRequest extends MAPRequestBase<MailLeaveRequestParams> {
|
|
1987
|
+
method: 'mail/leave';
|
|
1988
|
+
params: MailLeaveRequestParams;
|
|
1989
|
+
}
|
|
1990
|
+
interface MailLeaveResponseResult {
|
|
1991
|
+
success: boolean;
|
|
1992
|
+
leftAt: Timestamp;
|
|
1993
|
+
_meta?: Meta;
|
|
1994
|
+
}
|
|
1995
|
+
interface MailInviteRequestParams {
|
|
1996
|
+
conversationId: ConversationId;
|
|
1997
|
+
participant: {
|
|
1998
|
+
id: ParticipantId;
|
|
1999
|
+
role?: ParticipantRole;
|
|
2000
|
+
permissions?: Partial<ConversationPermissions>;
|
|
2001
|
+
};
|
|
2002
|
+
message?: string;
|
|
2003
|
+
_meta?: Meta;
|
|
2004
|
+
}
|
|
2005
|
+
interface MailInviteRequest extends MAPRequestBase<MailInviteRequestParams> {
|
|
2006
|
+
method: 'mail/invite';
|
|
2007
|
+
params: MailInviteRequestParams;
|
|
2008
|
+
}
|
|
2009
|
+
interface MailInviteResponseResult {
|
|
2010
|
+
invited: boolean;
|
|
2011
|
+
participant?: ConversationParticipant;
|
|
2012
|
+
invitationId?: string;
|
|
2013
|
+
pending?: boolean;
|
|
2014
|
+
_meta?: Meta;
|
|
2015
|
+
}
|
|
2016
|
+
interface MailTurnRequestParams {
|
|
2017
|
+
conversationId: ConversationId;
|
|
2018
|
+
contentType: string;
|
|
2019
|
+
content: unknown;
|
|
2020
|
+
threadId?: ThreadId;
|
|
2021
|
+
inReplyTo?: TurnId;
|
|
2022
|
+
visibility?: TurnVisibility;
|
|
2023
|
+
metadata?: Record<string, unknown>;
|
|
2024
|
+
_meta?: Meta;
|
|
2025
|
+
}
|
|
2026
|
+
interface MailTurnRequest extends MAPRequestBase<MailTurnRequestParams> {
|
|
2027
|
+
method: 'mail/turn';
|
|
2028
|
+
params: MailTurnRequestParams;
|
|
2029
|
+
}
|
|
2030
|
+
interface MailTurnResponseResult {
|
|
2031
|
+
turn: Turn;
|
|
2032
|
+
_meta?: Meta;
|
|
2033
|
+
}
|
|
2034
|
+
interface MailTurnsListRequestParams {
|
|
2035
|
+
conversationId: ConversationId;
|
|
2036
|
+
filter?: {
|
|
2037
|
+
threadId?: ThreadId;
|
|
2038
|
+
includeAllThreads?: boolean;
|
|
2039
|
+
contentTypes?: string[];
|
|
2040
|
+
participantId?: ParticipantId;
|
|
2041
|
+
afterTurnId?: TurnId;
|
|
2042
|
+
beforeTurnId?: TurnId;
|
|
2043
|
+
afterTimestamp?: Timestamp;
|
|
2044
|
+
beforeTimestamp?: Timestamp;
|
|
2045
|
+
};
|
|
2046
|
+
limit?: number;
|
|
2047
|
+
order?: 'asc' | 'desc';
|
|
2048
|
+
_meta?: Meta;
|
|
2049
|
+
}
|
|
2050
|
+
interface MailTurnsListRequest extends MAPRequestBase<MailTurnsListRequestParams> {
|
|
2051
|
+
method: 'mail/turns/list';
|
|
2052
|
+
params: MailTurnsListRequestParams;
|
|
2053
|
+
}
|
|
2054
|
+
interface MailTurnsListResponseResult {
|
|
2055
|
+
turns: Turn[];
|
|
2056
|
+
hasMore: boolean;
|
|
2057
|
+
nextCursor?: string;
|
|
2058
|
+
_meta?: Meta;
|
|
2059
|
+
}
|
|
2060
|
+
interface MailThreadCreateRequestParams {
|
|
2061
|
+
conversationId: ConversationId;
|
|
2062
|
+
rootTurnId: TurnId;
|
|
2063
|
+
subject?: string;
|
|
2064
|
+
parentThreadId?: ThreadId;
|
|
2065
|
+
_meta?: Meta;
|
|
2066
|
+
}
|
|
2067
|
+
interface MailThreadCreateRequest extends MAPRequestBase<MailThreadCreateRequestParams> {
|
|
2068
|
+
method: 'mail/thread/create';
|
|
2069
|
+
params: MailThreadCreateRequestParams;
|
|
2070
|
+
}
|
|
2071
|
+
interface MailThreadCreateResponseResult {
|
|
2072
|
+
thread: Thread;
|
|
2073
|
+
_meta?: Meta;
|
|
2074
|
+
}
|
|
2075
|
+
interface MailThreadListRequestParams {
|
|
2076
|
+
conversationId: ConversationId;
|
|
2077
|
+
parentThreadId?: ThreadId;
|
|
2078
|
+
limit?: number;
|
|
2079
|
+
cursor?: string;
|
|
2080
|
+
_meta?: Meta;
|
|
2081
|
+
}
|
|
2082
|
+
interface MailThreadListRequest extends MAPRequestBase<MailThreadListRequestParams> {
|
|
2083
|
+
method: 'mail/thread/list';
|
|
2084
|
+
params?: MailThreadListRequestParams;
|
|
2085
|
+
}
|
|
2086
|
+
interface MailThreadListResponseResult {
|
|
2087
|
+
threads: Thread[];
|
|
2088
|
+
hasMore: boolean;
|
|
2089
|
+
nextCursor?: string;
|
|
2090
|
+
_meta?: Meta;
|
|
2091
|
+
}
|
|
2092
|
+
interface MailSummaryRequestParams {
|
|
2093
|
+
conversationId: ConversationId;
|
|
2094
|
+
scope?: {
|
|
2095
|
+
fromTurnId?: TurnId;
|
|
2096
|
+
toTurnId?: TurnId;
|
|
2097
|
+
threadId?: ThreadId;
|
|
2098
|
+
};
|
|
2099
|
+
regenerate?: boolean;
|
|
2100
|
+
include?: {
|
|
2101
|
+
keyPoints?: boolean;
|
|
2102
|
+
keyDecisions?: boolean;
|
|
2103
|
+
openQuestions?: boolean;
|
|
2104
|
+
participants?: boolean;
|
|
2105
|
+
};
|
|
2106
|
+
_meta?: Meta;
|
|
2107
|
+
}
|
|
2108
|
+
interface MailSummaryRequest extends MAPRequestBase<MailSummaryRequestParams> {
|
|
2109
|
+
method: 'mail/summary';
|
|
2110
|
+
params: MailSummaryRequestParams;
|
|
2111
|
+
}
|
|
2112
|
+
interface MailSummaryResponseResult {
|
|
2113
|
+
summary: string;
|
|
2114
|
+
keyPoints?: string[];
|
|
2115
|
+
keyDecisions?: string[];
|
|
2116
|
+
openQuestions?: string[];
|
|
2117
|
+
generated: boolean;
|
|
2118
|
+
cachedAt?: Timestamp;
|
|
2119
|
+
_meta?: Meta;
|
|
2120
|
+
}
|
|
2121
|
+
interface MailReplayRequestParams {
|
|
2122
|
+
conversationId: ConversationId;
|
|
2123
|
+
fromTurnId?: TurnId;
|
|
2124
|
+
fromTimestamp?: Timestamp;
|
|
2125
|
+
threadId?: ThreadId;
|
|
2126
|
+
limit?: number;
|
|
2127
|
+
contentTypes?: string[];
|
|
2128
|
+
_meta?: Meta;
|
|
2129
|
+
}
|
|
2130
|
+
interface MailReplayRequest extends MAPRequestBase<MailReplayRequestParams> {
|
|
2131
|
+
method: 'mail/replay';
|
|
2132
|
+
params: MailReplayRequestParams;
|
|
2133
|
+
}
|
|
2134
|
+
interface MailReplayResponseResult {
|
|
2135
|
+
turns: Turn[];
|
|
2136
|
+
hasMore: boolean;
|
|
2137
|
+
nextCursor?: string;
|
|
2138
|
+
missedCount: number;
|
|
2139
|
+
_meta?: Meta;
|
|
2140
|
+
}
|
|
1626
2141
|
/**
|
|
1627
2142
|
* Parameters for event notifications delivered to subscribers.
|
|
1628
2143
|
*
|
|
@@ -1683,7 +2198,7 @@ interface MessageNotification extends MAPNotificationBase<MessageNotificationPar
|
|
|
1683
2198
|
params: MessageNotificationParams;
|
|
1684
2199
|
}
|
|
1685
2200
|
/** All MAP request types */
|
|
1686
|
-
type MAPRequest = ConnectRequest | DisconnectRequest | SessionListRequest | SessionLoadRequest | SessionCloseRequest | AgentsListRequest | AgentsGetRequest | SendRequest | SubscribeRequest | UnsubscribeRequest | ReplayRequest | AuthRefreshRequest | AgentsRegisterRequest | AgentsSpawnRequest | AgentsUnregisterRequest | AgentsUpdateRequest | AgentsStopRequest | AgentsSuspendRequest | AgentsResumeRequest | StructureGraphRequest | ScopesListRequest | ScopesGetRequest | ScopesCreateRequest | ScopesDeleteRequest | ScopesJoinRequest | ScopesLeaveRequest | ScopesMembersRequest | PermissionsUpdateRequest | InjectRequest | FederationConnectRequest | FederationRouteRequest;
|
|
2201
|
+
type MAPRequest = ConnectRequest | DisconnectRequest | SessionListRequest | SessionLoadRequest | SessionCloseRequest | AgentsListRequest | AgentsGetRequest | SendRequest | SubscribeRequest | UnsubscribeRequest | ReplayRequest | AuthRefreshRequest | AgentsRegisterRequest | AgentsSpawnRequest | AgentsUnregisterRequest | AgentsUpdateRequest | AgentsStopRequest | AgentsSuspendRequest | AgentsResumeRequest | StructureGraphRequest | ScopesListRequest | ScopesGetRequest | ScopesCreateRequest | ScopesDeleteRequest | ScopesJoinRequest | ScopesLeaveRequest | ScopesMembersRequest | PermissionsUpdateRequest | InjectRequest | FederationConnectRequest | FederationRouteRequest | MailCreateRequest | MailGetRequest | MailListRequest | MailCloseRequest | MailJoinRequest | MailLeaveRequest | MailInviteRequest | MailTurnRequest | MailTurnsListRequest | MailThreadCreateRequest | MailThreadListRequest | MailSummaryRequest | MailReplayRequest;
|
|
1687
2202
|
/** All MAP notification types */
|
|
1688
2203
|
type MAPNotification = EventNotification | MessageNotification | SubscriptionAckNotification;
|
|
1689
2204
|
/** Core methods - All implementations must support */
|
|
@@ -1748,6 +2263,22 @@ declare const FEDERATION_METHODS: {
|
|
|
1748
2263
|
readonly FEDERATION_CONNECT: "map/federation/connect";
|
|
1749
2264
|
readonly FEDERATION_ROUTE: "map/federation/route";
|
|
1750
2265
|
};
|
|
2266
|
+
/** Mail methods - Conversation and turn management */
|
|
2267
|
+
declare const MAIL_METHODS: {
|
|
2268
|
+
readonly MAIL_CREATE: "mail/create";
|
|
2269
|
+
readonly MAIL_GET: "mail/get";
|
|
2270
|
+
readonly MAIL_LIST: "mail/list";
|
|
2271
|
+
readonly MAIL_CLOSE: "mail/close";
|
|
2272
|
+
readonly MAIL_JOIN: "mail/join";
|
|
2273
|
+
readonly MAIL_LEAVE: "mail/leave";
|
|
2274
|
+
readonly MAIL_INVITE: "mail/invite";
|
|
2275
|
+
readonly MAIL_TURN: "mail/turn";
|
|
2276
|
+
readonly MAIL_TURNS_LIST: "mail/turns/list";
|
|
2277
|
+
readonly MAIL_THREAD_CREATE: "mail/thread/create";
|
|
2278
|
+
readonly MAIL_THREAD_LIST: "mail/thread/list";
|
|
2279
|
+
readonly MAIL_SUMMARY: "mail/summary";
|
|
2280
|
+
readonly MAIL_REPLAY: "mail/replay";
|
|
2281
|
+
};
|
|
1751
2282
|
/** Notification methods */
|
|
1752
2283
|
declare const NOTIFICATION_METHODS: {
|
|
1753
2284
|
readonly EVENT: "map/event";
|
|
@@ -1759,6 +2290,19 @@ declare const NOTIFICATION_METHODS: {
|
|
|
1759
2290
|
};
|
|
1760
2291
|
/** All MAP methods */
|
|
1761
2292
|
declare const MAP_METHODS: {
|
|
2293
|
+
readonly MAIL_CREATE: "mail/create";
|
|
2294
|
+
readonly MAIL_GET: "mail/get";
|
|
2295
|
+
readonly MAIL_LIST: "mail/list";
|
|
2296
|
+
readonly MAIL_CLOSE: "mail/close";
|
|
2297
|
+
readonly MAIL_JOIN: "mail/join";
|
|
2298
|
+
readonly MAIL_LEAVE: "mail/leave";
|
|
2299
|
+
readonly MAIL_INVITE: "mail/invite";
|
|
2300
|
+
readonly MAIL_TURN: "mail/turn";
|
|
2301
|
+
readonly MAIL_TURNS_LIST: "mail/turns/list";
|
|
2302
|
+
readonly MAIL_THREAD_CREATE: "mail/thread/create";
|
|
2303
|
+
readonly MAIL_THREAD_LIST: "mail/thread/list";
|
|
2304
|
+
readonly MAIL_SUMMARY: "mail/summary";
|
|
2305
|
+
readonly MAIL_REPLAY: "mail/replay";
|
|
1762
2306
|
readonly FEDERATION_CONNECT: "map/federation/connect";
|
|
1763
2307
|
readonly FEDERATION_ROUTE: "map/federation/route";
|
|
1764
2308
|
readonly PERMISSIONS_UPDATE: "map/permissions/update";
|
|
@@ -1862,8 +2406,33 @@ declare const FEDERATION_ERROR_CODES: {
|
|
|
1862
2406
|
/** Message exceeded maximum hop count */
|
|
1863
2407
|
readonly FEDERATION_MAX_HOPS_EXCEEDED: 5011;
|
|
1864
2408
|
};
|
|
2409
|
+
/** Mail error codes - prefixed to avoid collision with PERMISSION_DENIED */
|
|
2410
|
+
declare const MAIL_ERROR_CODES: {
|
|
2411
|
+
readonly MAIL_CONVERSATION_NOT_FOUND: 10000;
|
|
2412
|
+
readonly MAIL_CONVERSATION_CLOSED: 10001;
|
|
2413
|
+
readonly MAIL_NOT_A_PARTICIPANT: 10002;
|
|
2414
|
+
readonly MAIL_PERMISSION_DENIED: 10003;
|
|
2415
|
+
readonly MAIL_TURN_NOT_FOUND: 10004;
|
|
2416
|
+
readonly MAIL_THREAD_NOT_FOUND: 10005;
|
|
2417
|
+
readonly MAIL_INVALID_TURN_CONTENT: 10006;
|
|
2418
|
+
readonly MAIL_PARTICIPANT_ALREADY_JOINED: 10007;
|
|
2419
|
+
readonly MAIL_INVITATION_REQUIRED: 10008;
|
|
2420
|
+
readonly MAIL_HISTORY_ACCESS_DENIED: 10009;
|
|
2421
|
+
readonly MAIL_PARENT_CONVERSATION_NOT_FOUND: 10010;
|
|
2422
|
+
};
|
|
1865
2423
|
/** All error codes */
|
|
1866
2424
|
declare const ERROR_CODES: {
|
|
2425
|
+
readonly MAIL_CONVERSATION_NOT_FOUND: 10000;
|
|
2426
|
+
readonly MAIL_CONVERSATION_CLOSED: 10001;
|
|
2427
|
+
readonly MAIL_NOT_A_PARTICIPANT: 10002;
|
|
2428
|
+
readonly MAIL_PERMISSION_DENIED: 10003;
|
|
2429
|
+
readonly MAIL_TURN_NOT_FOUND: 10004;
|
|
2430
|
+
readonly MAIL_THREAD_NOT_FOUND: 10005;
|
|
2431
|
+
readonly MAIL_INVALID_TURN_CONTENT: 10006;
|
|
2432
|
+
readonly MAIL_PARTICIPANT_ALREADY_JOINED: 10007;
|
|
2433
|
+
readonly MAIL_INVITATION_REQUIRED: 10008;
|
|
2434
|
+
readonly MAIL_HISTORY_ACCESS_DENIED: 10009;
|
|
2435
|
+
readonly MAIL_PARENT_CONVERSATION_NOT_FOUND: 10010;
|
|
1867
2436
|
readonly FEDERATION_UNAVAILABLE: 5000;
|
|
1868
2437
|
readonly FEDERATION_SYSTEM_NOT_FOUND: 5001;
|
|
1869
2438
|
readonly FEDERATION_AUTH_FAILED: 5002;
|
|
@@ -4051,6 +4620,117 @@ declare class ClientConnection {
|
|
|
4051
4620
|
resumed: boolean;
|
|
4052
4621
|
agent?: Agent;
|
|
4053
4622
|
}>;
|
|
4623
|
+
/**
|
|
4624
|
+
* Create a new mail conversation.
|
|
4625
|
+
*
|
|
4626
|
+
* @param params - Conversation creation parameters
|
|
4627
|
+
* @returns Created conversation and participant info
|
|
4628
|
+
*/
|
|
4629
|
+
createConversation(params?: Omit<MailCreateRequestParams, '_meta'>): Promise<MailCreateResponseResult>;
|
|
4630
|
+
/**
|
|
4631
|
+
* Get a conversation by ID with optional includes.
|
|
4632
|
+
*
|
|
4633
|
+
* @param conversationId - ID of the conversation to retrieve
|
|
4634
|
+
* @param include - Optional fields to include (participants, threads, recentTurns, stats)
|
|
4635
|
+
* @returns Conversation details with requested includes
|
|
4636
|
+
*/
|
|
4637
|
+
getConversation(conversationId: ConversationId, include?: MailGetRequestParams['include']): Promise<MailGetResponseResult>;
|
|
4638
|
+
/**
|
|
4639
|
+
* List conversations with optional filters.
|
|
4640
|
+
*
|
|
4641
|
+
* @param params - Optional filter, limit, and cursor parameters
|
|
4642
|
+
* @returns Paginated list of conversations
|
|
4643
|
+
*/
|
|
4644
|
+
listConversations(params?: Omit<MailListRequestParams, '_meta'>): Promise<MailListResponseResult>;
|
|
4645
|
+
/**
|
|
4646
|
+
* Close a conversation.
|
|
4647
|
+
*
|
|
4648
|
+
* @param conversationId - ID of the conversation to close
|
|
4649
|
+
* @param reason - Optional reason for closing
|
|
4650
|
+
* @returns The closed conversation
|
|
4651
|
+
*/
|
|
4652
|
+
closeConversation(conversationId: ConversationId, reason?: string): Promise<MailCloseResponseResult>;
|
|
4653
|
+
/**
|
|
4654
|
+
* Join an existing conversation.
|
|
4655
|
+
*
|
|
4656
|
+
* @param params - Join parameters including conversationId and optional catch-up config
|
|
4657
|
+
* @returns Conversation, participant, and optional history
|
|
4658
|
+
*/
|
|
4659
|
+
joinConversation(params: Omit<MailJoinRequestParams, '_meta'>): Promise<MailJoinResponseResult>;
|
|
4660
|
+
/**
|
|
4661
|
+
* Leave a conversation.
|
|
4662
|
+
*
|
|
4663
|
+
* @param conversationId - ID of the conversation to leave
|
|
4664
|
+
* @param reason - Optional reason for leaving
|
|
4665
|
+
* @returns Leave confirmation with timestamp
|
|
4666
|
+
*/
|
|
4667
|
+
leaveConversation(conversationId: ConversationId, reason?: string): Promise<MailLeaveResponseResult>;
|
|
4668
|
+
/**
|
|
4669
|
+
* Invite a participant to a conversation.
|
|
4670
|
+
*
|
|
4671
|
+
* @param params - Invite parameters including conversationId and participant info
|
|
4672
|
+
* @returns Invite result
|
|
4673
|
+
*/
|
|
4674
|
+
inviteToConversation(params: Omit<MailInviteRequestParams, '_meta'>): Promise<MailInviteResponseResult>;
|
|
4675
|
+
/**
|
|
4676
|
+
* Record a turn (message) in a conversation.
|
|
4677
|
+
*
|
|
4678
|
+
* @param params - Turn parameters including conversationId, contentType, and content
|
|
4679
|
+
* @returns The created turn
|
|
4680
|
+
*/
|
|
4681
|
+
recordTurn(params: Omit<MailTurnRequestParams, '_meta'>): Promise<MailTurnResponseResult>;
|
|
4682
|
+
/**
|
|
4683
|
+
* List turns in a conversation with optional filters.
|
|
4684
|
+
*
|
|
4685
|
+
* @param params - List parameters including conversationId and optional filters
|
|
4686
|
+
* @returns Paginated list of turns
|
|
4687
|
+
*/
|
|
4688
|
+
listTurns(params: Omit<MailTurnsListRequestParams, '_meta'>): Promise<MailTurnsListResponseResult>;
|
|
4689
|
+
/**
|
|
4690
|
+
* Create a thread in a conversation.
|
|
4691
|
+
*
|
|
4692
|
+
* @param params - Thread creation parameters including conversationId and rootTurnId
|
|
4693
|
+
* @returns The created thread
|
|
4694
|
+
*/
|
|
4695
|
+
createThread(params: Omit<MailThreadCreateRequestParams, '_meta'>): Promise<MailThreadCreateResponseResult>;
|
|
4696
|
+
/**
|
|
4697
|
+
* List threads in a conversation.
|
|
4698
|
+
*
|
|
4699
|
+
* @param params - List parameters including conversationId
|
|
4700
|
+
* @returns Paginated list of threads
|
|
4701
|
+
*/
|
|
4702
|
+
listThreads(params: Omit<MailThreadListRequestParams, '_meta'>): Promise<MailThreadListResponseResult>;
|
|
4703
|
+
/**
|
|
4704
|
+
* Get a summary of a conversation.
|
|
4705
|
+
*
|
|
4706
|
+
* @param params - Summary parameters including conversationId and optional scope/includes
|
|
4707
|
+
* @returns Generated summary with optional key points, decisions, and questions
|
|
4708
|
+
*/
|
|
4709
|
+
getConversationSummary(params: Omit<MailSummaryRequestParams, '_meta'>): Promise<MailSummaryResponseResult>;
|
|
4710
|
+
/**
|
|
4711
|
+
* Replay turns from a conversation, optionally from a specific point.
|
|
4712
|
+
*
|
|
4713
|
+
* @param params - Replay parameters including conversationId and optional starting point
|
|
4714
|
+
* @returns Replayed turns with pagination info
|
|
4715
|
+
*/
|
|
4716
|
+
replayConversation(params: Omit<MailReplayRequestParams, '_meta'>): Promise<MailReplayResponseResult>;
|
|
4717
|
+
/**
|
|
4718
|
+
* Send a message to an address with mail context attached.
|
|
4719
|
+
*
|
|
4720
|
+
* Wraps the standard `send()` method, automatically attaching `meta.mail`
|
|
4721
|
+
* with the specified conversationId so the message is recorded as a turn
|
|
4722
|
+
* in the conversation.
|
|
4723
|
+
*
|
|
4724
|
+
* @param to - Target address
|
|
4725
|
+
* @param payload - Message payload
|
|
4726
|
+
* @param conversationId - Conversation to associate with
|
|
4727
|
+
* @param options - Optional threadId and additional message meta
|
|
4728
|
+
* @returns Send result
|
|
4729
|
+
*/
|
|
4730
|
+
sendWithMail(to: Address, payload: unknown, conversationId: ConversationId, options?: {
|
|
4731
|
+
threadId?: ThreadId;
|
|
4732
|
+
meta?: MessageMeta;
|
|
4733
|
+
}): Promise<SendResponseResult>;
|
|
4054
4734
|
/**
|
|
4055
4735
|
* Current connection state
|
|
4056
4736
|
*/
|
|
@@ -4524,6 +5204,117 @@ declare class AgentConnection {
|
|
|
4524
5204
|
* @returns Unsubscribe function to remove the handler
|
|
4525
5205
|
*/
|
|
4526
5206
|
onStateChange(handler: (newState: ConnectionState, oldState: ConnectionState) => void): () => void;
|
|
5207
|
+
/**
|
|
5208
|
+
* Create a new mail conversation.
|
|
5209
|
+
*
|
|
5210
|
+
* @param params - Conversation creation parameters
|
|
5211
|
+
* @returns Created conversation and participant info
|
|
5212
|
+
*/
|
|
5213
|
+
createConversation(params?: Omit<MailCreateRequestParams, '_meta'>): Promise<MailCreateResponseResult>;
|
|
5214
|
+
/**
|
|
5215
|
+
* Get a conversation by ID with optional includes.
|
|
5216
|
+
*
|
|
5217
|
+
* @param conversationId - ID of the conversation to retrieve
|
|
5218
|
+
* @param include - Optional fields to include (participants, threads, recentTurns, stats)
|
|
5219
|
+
* @returns Conversation details with requested includes
|
|
5220
|
+
*/
|
|
5221
|
+
getConversation(conversationId: ConversationId, include?: MailGetRequestParams['include']): Promise<MailGetResponseResult>;
|
|
5222
|
+
/**
|
|
5223
|
+
* List conversations with optional filters.
|
|
5224
|
+
*
|
|
5225
|
+
* @param params - Optional filter, limit, and cursor parameters
|
|
5226
|
+
* @returns Paginated list of conversations
|
|
5227
|
+
*/
|
|
5228
|
+
listConversations(params?: Omit<MailListRequestParams, '_meta'>): Promise<MailListResponseResult>;
|
|
5229
|
+
/**
|
|
5230
|
+
* Close a conversation.
|
|
5231
|
+
*
|
|
5232
|
+
* @param conversationId - ID of the conversation to close
|
|
5233
|
+
* @param reason - Optional reason for closing
|
|
5234
|
+
* @returns The closed conversation
|
|
5235
|
+
*/
|
|
5236
|
+
closeConversation(conversationId: ConversationId, reason?: string): Promise<MailCloseResponseResult>;
|
|
5237
|
+
/**
|
|
5238
|
+
* Join an existing conversation.
|
|
5239
|
+
*
|
|
5240
|
+
* @param params - Join parameters including conversationId and optional catch-up config
|
|
5241
|
+
* @returns Conversation, participant, and optional history
|
|
5242
|
+
*/
|
|
5243
|
+
joinConversation(params: Omit<MailJoinRequestParams, '_meta'>): Promise<MailJoinResponseResult>;
|
|
5244
|
+
/**
|
|
5245
|
+
* Leave a conversation.
|
|
5246
|
+
*
|
|
5247
|
+
* @param conversationId - ID of the conversation to leave
|
|
5248
|
+
* @param reason - Optional reason for leaving
|
|
5249
|
+
* @returns Leave confirmation with timestamp
|
|
5250
|
+
*/
|
|
5251
|
+
leaveConversation(conversationId: ConversationId, reason?: string): Promise<MailLeaveResponseResult>;
|
|
5252
|
+
/**
|
|
5253
|
+
* Invite a participant to a conversation.
|
|
5254
|
+
*
|
|
5255
|
+
* @param params - Invite parameters including conversationId and participant info
|
|
5256
|
+
* @returns Invite result
|
|
5257
|
+
*/
|
|
5258
|
+
inviteToConversation(params: Omit<MailInviteRequestParams, '_meta'>): Promise<MailInviteResponseResult>;
|
|
5259
|
+
/**
|
|
5260
|
+
* Record a turn (message) in a conversation.
|
|
5261
|
+
*
|
|
5262
|
+
* @param params - Turn parameters including conversationId, contentType, and content
|
|
5263
|
+
* @returns The created turn
|
|
5264
|
+
*/
|
|
5265
|
+
recordTurn(params: Omit<MailTurnRequestParams, '_meta'>): Promise<MailTurnResponseResult>;
|
|
5266
|
+
/**
|
|
5267
|
+
* List turns in a conversation with optional filters.
|
|
5268
|
+
*
|
|
5269
|
+
* @param params - List parameters including conversationId and optional filters
|
|
5270
|
+
* @returns Paginated list of turns
|
|
5271
|
+
*/
|
|
5272
|
+
listTurns(params: Omit<MailTurnsListRequestParams, '_meta'>): Promise<MailTurnsListResponseResult>;
|
|
5273
|
+
/**
|
|
5274
|
+
* Create a thread in a conversation.
|
|
5275
|
+
*
|
|
5276
|
+
* @param params - Thread creation parameters including conversationId and rootTurnId
|
|
5277
|
+
* @returns The created thread
|
|
5278
|
+
*/
|
|
5279
|
+
createThread(params: Omit<MailThreadCreateRequestParams, '_meta'>): Promise<MailThreadCreateResponseResult>;
|
|
5280
|
+
/**
|
|
5281
|
+
* List threads in a conversation.
|
|
5282
|
+
*
|
|
5283
|
+
* @param params - List parameters including conversationId
|
|
5284
|
+
* @returns Paginated list of threads
|
|
5285
|
+
*/
|
|
5286
|
+
listThreads(params: Omit<MailThreadListRequestParams, '_meta'>): Promise<MailThreadListResponseResult>;
|
|
5287
|
+
/**
|
|
5288
|
+
* Get a summary of a conversation.
|
|
5289
|
+
*
|
|
5290
|
+
* @param params - Summary parameters including conversationId and optional scope/includes
|
|
5291
|
+
* @returns Generated summary with optional key points, decisions, and questions
|
|
5292
|
+
*/
|
|
5293
|
+
getConversationSummary(params: Omit<MailSummaryRequestParams, '_meta'>): Promise<MailSummaryResponseResult>;
|
|
5294
|
+
/**
|
|
5295
|
+
* Replay turns from a conversation, optionally from a specific point.
|
|
5296
|
+
*
|
|
5297
|
+
* @param params - Replay parameters including conversationId and optional starting point
|
|
5298
|
+
* @returns Replayed turns with pagination info
|
|
5299
|
+
*/
|
|
5300
|
+
replayConversation(params: Omit<MailReplayRequestParams, '_meta'>): Promise<MailReplayResponseResult>;
|
|
5301
|
+
/**
|
|
5302
|
+
* Send a message to an agent with mail context attached.
|
|
5303
|
+
*
|
|
5304
|
+
* Wraps the standard `send()` method, automatically attaching `meta.mail`
|
|
5305
|
+
* with the specified conversationId so the message is recorded as a turn
|
|
5306
|
+
* in the conversation.
|
|
5307
|
+
*
|
|
5308
|
+
* @param to - Target address
|
|
5309
|
+
* @param payload - Message payload
|
|
5310
|
+
* @param conversationId - Conversation to associate with
|
|
5311
|
+
* @param options - Optional threadId and additional message meta
|
|
5312
|
+
* @returns Send result
|
|
5313
|
+
*/
|
|
5314
|
+
sendWithMail(to: Address, payload: unknown, conversationId: ConversationId, options?: {
|
|
5315
|
+
threadId?: ThreadId;
|
|
5316
|
+
meta?: MessageMeta;
|
|
5317
|
+
}): Promise<SendResponseResult>;
|
|
4527
5318
|
}
|
|
4528
5319
|
|
|
4529
5320
|
/**
|
|
@@ -4933,4 +5724,4 @@ declare function canAgentMessageAgent(senderAgent: Agent, targetAgentId: AgentId
|
|
|
4933
5724
|
sharedScopes?: ScopeId[];
|
|
4934
5725
|
}, config?: AgentPermissionConfig): boolean;
|
|
4935
5726
|
|
|
4936
|
-
export { type ACPReadTextFileRequest as $, type AgentId as A, type BaseConnectionOptions as B, type ConnectResponseResult as C, type DisconnectResponseResult as D, type ErrorCategory as E, type FederationBufferConfig as F, type ScopesJoinResponseResult as G, type ScopesLeaveResponseResult as H, type ScopesListResponseResult as I, type MessageId as J, type SendResponseResult as K, type SubscriptionId as L, type MAPError as M, type SubscribeResponseResult as N, type AgentVisibility as O, type ParticipantCapabilities as P, type ScopeVisibility as Q, type RequestId as R, type Stream as S, type AgentState as T, type UnsubscribeResponseResult as U, type MessageMeta as V, AgentConnection as W, type ACPAgentHandler as X, type ACPSessionNotification as Y, type ACPRequestPermissionRequest as Z, type ACPRequestPermissionResponse as _, type MAPErrorData as a, type ACPPlan as a$, type ACPReadTextFileResponse as a0, type ACPWriteTextFileRequest as a1, type ACPWriteTextFileResponse as a2, type ACPCreateTerminalRequest as a3, type ACPCreateTerminalResponse as a4, type ACPTerminalOutputRequest as a5, type ACPTerminalOutputResponse as a6, type ACPReleaseTerminalRequest as a7, type ACPReleaseTerminalResponse as a8, type ACPWaitForTerminalExitRequest as a9, type ACPEnvVariable as aA, type ACPEnvelope as aB, ACPError as aC, type ACPErrorCode as aD, type ACPErrorObject as aE, type ACPErrorResponse as aF, type ACPFileSystemCapability as aG, type ACPHttpHeader as aH, type ACPImageContent as aI, type ACPImplementation as aJ, type ACPInitializeRequest as aK, type ACPInitializeResponse as aL, type ACPLoadSessionRequest as aM, type ACPLoadSessionResponse as aN, type ACPMcpCapabilities as aO, type ACPMcpServer as aP, type ACPMcpServerHttp as aQ, type ACPMcpServerSse as aR, type ACPMcpServerStdio as aS, type ACPMessage as aT, type ACPMeta as aU, type ACPNewSessionRequest as aV, type ACPNewSessionResponse as aW, type ACPNotification as aX, type ACPPermissionOption as aY, type ACPPermissionOptionId as aZ, type ACPPermissionOptionKind as a_, type ACPWaitForTerminalExitResponse as aa, type ACPKillTerminalCommandRequest as ab, type ACPKillTerminalCommandResponse as ac, type ACPSessionId as ad, type ACPAgentCapabilities as ae, type ACPAgentContext as af, type ACPAnnotations as ag, type ACPAudioContent as ah, type ACPAuthMethod as ai, type ACPAuthenticateRequest as aj, type ACPAuthenticateResponse as ak, type ACPAvailableCommand as al, type ACPAvailableCommandsUpdate as am, type ACPBlobResourceContents as an, type ACPCancelNotification as ao, type ACPCancelledPermissionOutcome as ap, type ACPCapability as aq, type ACPClientCapabilities as ar, type ACPClientHandlers as as, type ACPContent as at, type ACPContentBlock as au, type ACPContentChunk as av, type ACPContext as aw, type ACPCurrentModeUpdate as ax, type ACPDiff as ay, type ACPEmbeddedResource as az, type FederationEnvelope as b, type AgentsListFilter as b$, type ACPPlanEntry as b0, type ACPPlanEntryPriority as b1, type ACPPlanEntryStatus as b2, type ACPPromptCapabilities as b3, type ACPPromptRequest as b4, type ACPPromptResponse as b5, type ACPProtocolVersion as b6, type ACPRequest as b7, type ACPRequestId as b8, type ACPRequestPermissionOutcome as b9, type ACPToolCallUpdate as bA, type ACPToolKind as bB, ACP_ERROR_CODES as bC, ACP_METHODS as bD, ACP_PROTOCOL_VERSION as bE, AGENT_ERROR_CODES as bF, AUTH_ERROR_CODES as bG, AUTH_METHODS as bH, type AcceptanceContext as bI, type AgentAcceptanceRule as bJ, type AgentConnectOptions as bK, type AgentConnectionOptions as bL, type AgentIncludeOptions as bM, type AgentLifecycle as bN, type AgentMeshConnectOptions as bO, type AgentMessagingRule as bP, type AgentPermissionConfig as bQ, type AgentPermissions as bR, type AgentReconnectionEventHandler as bS, type AgentReconnectionEventType as bT, type AgentReconnectionOptions as bU, type AgentRelationship as bV, type AgentRelationshipType as bW, type AgentVisibilityRule as bX, type AgenticMeshStreamConfig as bY, type AgentsGetRequest as bZ, type AgentsGetRequestParams as b_, type ACPResourceLink as ba, type ACPResponse as bb, type ACPRole as bc, type ACPSelectedPermissionOutcome as bd, type ACPSessionCapabilities as be, type ACPSessionInfoUpdate as bf, type ACPSessionMode as bg, type ACPSessionModeId as bh, type ACPSessionModeState as bi, type ACPSessionUpdate as bj, type ACPSetSessionModeRequest as bk, type ACPSetSessionModeResponse as bl, type ACPStopReason as bm, ACPStreamConnection as bn, type ACPStreamEvents as bo, type ACPStreamOptions as bp, type ACPSuccessResponse as bq, type ACPTerminal as br, type ACPTerminalExitStatus as bs, type ACPTextContent as bt, type ACPTextResourceContents as bu, type ACPToolCall as bv, type ACPToolCallContent as bw, type ACPToolCallId as bx, type ACPToolCallLocation as by, type ACPToolCallStatus as bz, type Message as c, type FederationRouteRequest as c$, type AgentsListRequest as c0, type AgentsListRequestParams as c1, type AgentsRegisterRequest as c2, type AgentsRegisterRequestParams as c3, type AgentsResumeRequest as c4, type AgentsResumeRequestParams as c5, type AgentsResumeResponseResult as c6, type AgentsSpawnRequest as c7, type AgentsSpawnRequestParams as c8, type AgentsStopRequest as c9, type ClientAcceptanceRule as cA, type ClientConnectOptions as cB, ClientConnection as cC, type ClientConnectionOptions as cD, type ConnectRequest as cE, type ConnectRequestParams as cF, type CorrelationId as cG, DEFAULT_AGENT_PERMISSION_CONFIG as cH, type DeliverySemantics as cI, type DirectAddress as cJ, type DisconnectPolicy as cK, type DisconnectRequest as cL, type DisconnectRequestParams as cM, ERROR_CODES as cN, EVENT_TYPES as cO, EXTENSION_METHODS as cP, type EventInput as cQ, type EventNotification as cR, type EventNotificationParams as cS, FEDERATION_ERROR_CODES as cT, FEDERATION_METHODS as cU, type FederatedAddress as cV, type FederationAuth as cW, type FederationConnectRequest as cX, type FederationConnectRequestParams as cY, type FederationMetadata as cZ, type FederationReplayConfig as c_, type AgentsStopRequestParams as ca, type AgentsStopResponseResult as cb, type AgentsSuspendRequest as cc, type AgentsSuspendRequestParams as cd, type AgentsSuspendResponseResult as ce, type AgentsUnregisterRequest as cf, type AgentsUnregisterRequestParams as cg, type AgentsUpdateRequest as ch, type AgentsUpdateRequestParams as ci, type AnyMessage as cj, type AuthCredentials as ck, type AuthError as cl, type AuthErrorCode as cm, type AuthMethod as cn, type AuthPrincipal as co, type AuthRefreshRequest as cp, type AuthRefreshRequestParams as cq, type AuthRefreshResponseResult as cr, type AuthResult as cs, type AuthenticateRequest as ct, type AuthenticateRequestParams as cu, type AuthenticateResponseResult as cv, BaseConnection as cw, type BroadcastAddress as cx, CAPABILITY_REQUIREMENTS as cy, CORE_METHODS as cz, type FederationRoutingConfig as d, type ReplayRequest as d$, type FederationRouteRequestParams as d0, type GatewayReconnectionEvent as d1, type GatewayReconnectionEventHandler as d2, type GatewayReconnectionEventType as d3, type GatewayReconnectionOptions as d4, type GraphEdge as d5, type HierarchicalAddress as d6, type InjectDelivery as d7, type InjectDeliveryResult as d8, type InjectRequest as d9, type Meta as dA, type MultiAddress as dB, NOTIFICATION_METHODS as dC, type NotificationHandler as dD, OBSERVATION_METHODS as dE, type OverflowHandler as dF, type OverflowInfo as dG, PERMISSION_METHODS as dH, PROTOCOL_ERROR_CODES as dI, PROTOCOL_VERSION as dJ, type Participant as dK, type ParticipantAddress as dL, type PermissionAction as dM, type PermissionContext as dN, type PermissionParticipant as dO, type PermissionResult as dP, type PermissionSystemConfig as dQ, type PermissionsAgentUpdatedEventData as dR, type PermissionsClientUpdatedEventData as dS, type PermissionsUpdateRequest as dT, type PermissionsUpdateRequestParams as dU, type PermissionsUpdateResponseResult as dV, RESOURCE_ERROR_CODES as dW, ROUTING_ERROR_CODES as dX, type ReconnectionEventHandler as dY, type ReconnectionEventType as dZ, type ReconnectionOptions as d_, type InjectRequestParams as da, type InjectResponseResult as db, JSONRPC_VERSION as dc, type JoinPolicy as dd, LIFECYCLE_METHODS as de, type MAPNotification as df, type MAPNotificationBase as dg, type MAPRequest as dh, type MAPRequestBase as di, type MAPResponse as dj, type MAPResponseError as dk, type MAPResponseSuccess as dl, MAP_METHODS as dm, type MeshConnectOptions as dn, type MeshPeerEndpoint as dp, type MeshTransportAdapter as dq, type MessageDeliveredEventData as dr, type MessageFailedEventData as ds, type MessageHandler as dt, type MessageNotification as du, type MessageNotificationParams as dv, type MessagePriority as dw, type MessageRelationship as dx, type MessageSentEventData as dy, type MessageVisibility as dz, type EventType as e, agenticMeshStream as e$, type ReplayRequestParams as e0, type ReplayResponseResult as e1, type ReplayedEvent as e2, type RequestHandler as e3, type RoleAddress as e4, SCOPE_METHODS as e5, SESSION_METHODS as e6, STATE_METHODS as e7, STEERING_METHODS as e8, STRUCTURE_METHODS as e9, type SessionCloseResponseResult as eA, type SessionListRequest as eB, type SessionListRequestParams as eC, type SessionListResponseResult as eD, type SessionLoadRequest as eE, type SessionLoadRequestParams as eF, type SessionLoadResponseResult as eG, type StandardAuthMethod as eH, type StateChangeHandler as eI, type StreamingCapabilities as eJ, type StructureGraphRequest as eK, type StructureGraphRequestParams as eL, type StructureGraphResponseResult as eM, type StructureVisibilityRule as eN, type SubscribeRequest as eO, type SubscribeRequestParams as eP, Subscription as eQ, type SubscriptionAckNotification as eR, type SubscriptionAckParams as eS, type SubscriptionOptions$1 as eT, type SubscriptionState as eU, type SystemAcceptanceRule as eV, type SystemAddress as eW, type Timestamp as eX, type TransportType as eY, type UnsubscribeRequest as eZ, type UnsubscribeRequestParams as e_, type ScopeAddress as ea, type ScopeMessagingRule as eb, type ScopeVisibilityRule as ec, type ScopesCreateRequest as ed, type ScopesCreateRequestParams as ee, type ScopesDeleteRequest as ef, type ScopesDeleteRequestParams as eg, type ScopesDeleteResponseResult as eh, type ScopesGetRequest as ei, type ScopesGetRequestParams as ej, type ScopesGetResponseResult as ek, type ScopesJoinRequest as el, type ScopesJoinRequestParams as em, type ScopesLeaveRequest as en, type ScopesLeaveRequestParams as eo, type ScopesListRequest as ep, type ScopesListRequestParams as eq, type ScopesMembersRequest as er, type ScopesMembersRequestParams as es, type ScopesMembersResponseResult as et, type SendPolicy as eu, type SendRequest as ev, type SendRequestParams as ew, type ServerAuthCapabilities as ex, type SessionCloseRequest as ey, type SessionCloseRequestParams as ez, type SessionId as f, canAgentAcceptMessage as f0, canAgentMessageAgent as f1, canAgentSeeAgent as f2, canControlAgent as f3, canJoinScope as f4, canMessageAgent as f5, canPerformAction as f6, canPerformMethod as f7, canSeeAgent as f8, canSeeScope as f9, ndJsonStream as fA, resolveAgentPermissions as fB, waitForOpen as fC, websocketStream as fD, type SystemExposure as fE, canSendToScope as fa, createACPStream as fb, createEvent as fc, createStreamPair as fd, createSubscription as fe, deepMergePermissions as ff, filterVisibleAgents as fg, filterVisibleEvents as fh, filterVisibleScopes as fi, hasCapability as fj, isACPEnvelope as fk, isACPErrorResponse as fl, isACPNotification as fm, isACPRequest as fn, isACPResponse as fo, isACPSuccessResponse as fp, isAgentExposed as fq, isBroadcastAddress as fr, isDirectAddress as fs, isEventTypeExposed as ft, isFederatedAddress as fu, isHierarchicalAddress as fv, isOrphanedAgent as fw, isScopeExposed as fx, isSuccessResponse as fy, mapVisibilityToRule as fz, type FederationConnectResponseResult as g, type FederationRouteResponseResult as h, type ConnectionState as i, type ParticipantId as j, type ParticipantType as k, type ScopeId as l, type Agent as m, type Scope as n, type Address as o, type SubscriptionFilter as p, type Event as q, type AgentsGetResponseResult as r, type AgentsListResponseResult as s, type AgentsRegisterResponseResult as t, type AgentsSpawnResponseResult as u, type AgentsUnregisterResponseResult as v, type AgentsUpdateResponseResult as w, type ProtocolVersion as x, type SessionInfo as y, type ScopesCreateResponseResult as z };
|
|
5727
|
+
export { type ACPReadTextFileRequest as $, type AgentId as A, type BaseConnectionOptions as B, type ConnectResponseResult as C, type DisconnectResponseResult as D, type ErrorCategory as E, type FederationBufferConfig as F, type ScopesJoinResponseResult as G, type ScopesLeaveResponseResult as H, type ScopesListResponseResult as I, type MessageId as J, type SendResponseResult as K, type SubscriptionId as L, type MAPError as M, type SubscribeResponseResult as N, type AgentVisibility as O, type ParticipantCapabilities as P, type ScopeVisibility as Q, type RequestId as R, type Stream as S, type AgentState as T, type UnsubscribeResponseResult as U, type MessageMeta as V, AgentConnection as W, type ACPAgentHandler as X, type ACPSessionNotification as Y, type ACPRequestPermissionRequest as Z, type ACPRequestPermissionResponse as _, type MAPErrorData as a, type ACPPlan as a$, type ACPReadTextFileResponse as a0, type ACPWriteTextFileRequest as a1, type ACPWriteTextFileResponse as a2, type ACPCreateTerminalRequest as a3, type ACPCreateTerminalResponse as a4, type ACPTerminalOutputRequest as a5, type ACPTerminalOutputResponse as a6, type ACPReleaseTerminalRequest as a7, type ACPReleaseTerminalResponse as a8, type ACPWaitForTerminalExitRequest as a9, type ACPEnvVariable as aA, type ACPEnvelope as aB, ACPError as aC, type ACPErrorCode as aD, type ACPErrorObject as aE, type ACPErrorResponse as aF, type ACPFileSystemCapability as aG, type ACPHttpHeader as aH, type ACPImageContent as aI, type ACPImplementation as aJ, type ACPInitializeRequest as aK, type ACPInitializeResponse as aL, type ACPLoadSessionRequest as aM, type ACPLoadSessionResponse as aN, type ACPMcpCapabilities as aO, type ACPMcpServer as aP, type ACPMcpServerHttp as aQ, type ACPMcpServerSse as aR, type ACPMcpServerStdio as aS, type ACPMessage as aT, type ACPMeta as aU, type ACPNewSessionRequest as aV, type ACPNewSessionResponse as aW, type ACPNotification as aX, type ACPPermissionOption as aY, type ACPPermissionOptionId as aZ, type ACPPermissionOptionKind as a_, type ACPWaitForTerminalExitResponse as aa, type ACPKillTerminalCommandRequest as ab, type ACPKillTerminalCommandResponse as ac, type ACPSessionId as ad, type ACPAgentCapabilities as ae, type ACPAgentContext as af, type ACPAnnotations as ag, type ACPAudioContent as ah, type ACPAuthMethod as ai, type ACPAuthenticateRequest as aj, type ACPAuthenticateResponse as ak, type ACPAvailableCommand as al, type ACPAvailableCommandsUpdate as am, type ACPBlobResourceContents as an, type ACPCancelNotification as ao, type ACPCancelledPermissionOutcome as ap, type ACPCapability as aq, type ACPClientCapabilities as ar, type ACPClientHandlers as as, type ACPContent as at, type ACPContentBlock as au, type ACPContentChunk as av, type ACPContext as aw, type ACPCurrentModeUpdate as ax, type ACPDiff as ay, type ACPEmbeddedResource as az, type FederationEnvelope as b, type AgentsListFilter as b$, type ACPPlanEntry as b0, type ACPPlanEntryPriority as b1, type ACPPlanEntryStatus as b2, type ACPPromptCapabilities as b3, type ACPPromptRequest as b4, type ACPPromptResponse as b5, type ACPProtocolVersion as b6, type ACPRequest as b7, type ACPRequestId as b8, type ACPRequestPermissionOutcome as b9, type ACPToolCallUpdate as bA, type ACPToolKind as bB, ACP_ERROR_CODES as bC, ACP_METHODS as bD, ACP_PROTOCOL_VERSION as bE, AGENT_ERROR_CODES as bF, AUTH_ERROR_CODES as bG, AUTH_METHODS as bH, type AcceptanceContext as bI, type AgentAcceptanceRule as bJ, type AgentConnectOptions as bK, type AgentConnectionOptions as bL, type AgentIncludeOptions as bM, type AgentLifecycle as bN, type AgentMeshConnectOptions as bO, type AgentMessagingRule as bP, type AgentPermissionConfig as bQ, type AgentPermissions as bR, type AgentReconnectionEventHandler as bS, type AgentReconnectionEventType as bT, type AgentReconnectionOptions as bU, type AgentRelationship as bV, type AgentRelationshipType as bW, type AgentVisibilityRule as bX, type AgenticMeshStreamConfig as bY, type AgentsGetRequest as bZ, type AgentsGetRequestParams as b_, type ACPResourceLink as ba, type ACPResponse as bb, type ACPRole as bc, type ACPSelectedPermissionOutcome as bd, type ACPSessionCapabilities as be, type ACPSessionInfoUpdate as bf, type ACPSessionMode as bg, type ACPSessionModeId as bh, type ACPSessionModeState as bi, type ACPSessionUpdate as bj, type ACPSetSessionModeRequest as bk, type ACPSetSessionModeResponse as bl, type ACPStopReason as bm, ACPStreamConnection as bn, type ACPStreamEvents as bo, type ACPStreamOptions as bp, type ACPSuccessResponse as bq, type ACPTerminal as br, type ACPTerminalExitStatus as bs, type ACPTextContent as bt, type ACPTextResourceContents as bu, type ACPToolCall as bv, type ACPToolCallContent as bw, type ACPToolCallId as bx, type ACPToolCallLocation as by, type ACPToolCallStatus as bz, type Message as c, type FederatedAddress as c$, type AgentsListRequest as c0, type AgentsListRequestParams as c1, type AgentsRegisterRequest as c2, type AgentsRegisterRequestParams as c3, type AgentsResumeRequest as c4, type AgentsResumeRequestParams as c5, type AgentsResumeResponseResult as c6, type AgentsSpawnRequest as c7, type AgentsSpawnRequestParams as c8, type AgentsStopRequest as c9, type ClientAcceptanceRule as cA, type ClientConnectOptions as cB, ClientConnection as cC, type ClientConnectionOptions as cD, type ConnectRequest as cE, type ConnectRequestParams as cF, type Conversation as cG, type ConversationId as cH, type ConversationParticipant as cI, type ConversationPermissions as cJ, type ConversationStatus as cK, type ConversationType as cL, type CorrelationId as cM, DEFAULT_AGENT_PERMISSION_CONFIG as cN, type DeliverySemantics as cO, type DirectAddress as cP, type DisconnectPolicy as cQ, type DisconnectRequest as cR, type DisconnectRequestParams as cS, ERROR_CODES as cT, EVENT_TYPES as cU, EXTENSION_METHODS as cV, type EventInput as cW, type EventNotification as cX, type EventNotificationParams as cY, FEDERATION_ERROR_CODES as cZ, FEDERATION_METHODS as c_, type AgentsStopRequestParams as ca, type AgentsStopResponseResult as cb, type AgentsSuspendRequest as cc, type AgentsSuspendRequestParams as cd, type AgentsSuspendResponseResult as ce, type AgentsUnregisterRequest as cf, type AgentsUnregisterRequestParams as cg, type AgentsUpdateRequest as ch, type AgentsUpdateRequestParams as ci, type AnyMessage as cj, type AuthCredentials as ck, type AuthError as cl, type AuthErrorCode as cm, type AuthMethod as cn, type AuthPrincipal as co, type AuthRefreshRequest as cp, type AuthRefreshRequestParams as cq, type AuthRefreshResponseResult as cr, type AuthResult as cs, type AuthenticateRequest as ct, type AuthenticateRequestParams as cu, type AuthenticateResponseResult as cv, BaseConnection as cw, type BroadcastAddress as cx, CAPABILITY_REQUIREMENTS as cy, CORE_METHODS as cz, type FederationRoutingConfig as d, type MailSummaryRequest as d$, type FederationAuth as d0, type FederationConnectRequest as d1, type FederationConnectRequestParams as d2, type FederationMetadata as d3, type FederationReplayConfig as d4, type FederationRouteRequest as d5, type FederationRouteRequestParams as d6, type GatewayReconnectionEvent as d7, type GatewayReconnectionEventHandler as d8, type GatewayReconnectionEventType as d9, type MailCreateRequest as dA, type MailCreateRequestParams as dB, type MailCreateResponseResult as dC, type MailCreatedEventData as dD, type MailGetRequest as dE, type MailGetRequestParams as dF, type MailGetResponseResult as dG, type MailInviteRequest as dH, type MailInviteRequestParams as dI, type MailInviteResponseResult as dJ, type MailJoinRequest as dK, type MailJoinRequestParams as dL, type MailJoinResponseResult as dM, type MailLeaveRequest as dN, type MailLeaveRequestParams as dO, type MailLeaveResponseResult as dP, type MailListRequest as dQ, type MailListRequestParams as dR, type MailListResponseResult as dS, type MailMessageMeta as dT, type MailParticipantJoinedEventData as dU, type MailParticipantLeftEventData as dV, type MailReplayRequest as dW, type MailReplayRequestParams as dX, type MailReplayResponseResult as dY, type MailSubscriptionFilter as dZ, type MailSummaryGeneratedEventData as d_, type GatewayReconnectionOptions as da, type GraphEdge as db, type HierarchicalAddress as dc, type InjectDelivery as dd, type InjectDeliveryResult as de, type InjectRequest as df, type InjectRequestParams as dg, type InjectResponseResult as dh, JSONRPC_VERSION as di, type JoinPolicy as dj, LIFECYCLE_METHODS as dk, MAIL_ERROR_CODES as dl, MAIL_METHODS as dm, type MAPNotification as dn, type MAPNotificationBase as dp, type MAPRequest as dq, type MAPRequestBase as dr, type MAPResponse as ds, type MAPResponseError as dt, type MAPResponseSuccess as du, MAP_METHODS as dv, type MailCloseRequest as dw, type MailCloseRequestParams as dx, type MailCloseResponseResult as dy, type MailClosedEventData as dz, type EventType as e, SCOPE_METHODS as e$, type MailSummaryRequestParams as e0, type MailSummaryResponseResult as e1, type MailThreadCreateRequest as e2, type MailThreadCreateRequestParams as e3, type MailThreadCreateResponseResult as e4, type MailThreadCreatedEventData as e5, type MailThreadListRequest as e6, type MailThreadListRequestParams as e7, type MailThreadListResponseResult as e8, type MailTurnAddedEventData as e9, PERMISSION_METHODS as eA, PROTOCOL_ERROR_CODES as eB, PROTOCOL_VERSION as eC, type Participant as eD, type ParticipantAddress as eE, type ParticipantRole as eF, type PermissionAction as eG, type PermissionContext as eH, type PermissionParticipant as eI, type PermissionResult as eJ, type PermissionSystemConfig as eK, type PermissionsAgentUpdatedEventData as eL, type PermissionsClientUpdatedEventData as eM, type PermissionsUpdateRequest as eN, type PermissionsUpdateRequestParams as eO, type PermissionsUpdateResponseResult as eP, RESOURCE_ERROR_CODES as eQ, ROUTING_ERROR_CODES as eR, type ReconnectionEventHandler as eS, type ReconnectionEventType as eT, type ReconnectionOptions as eU, type ReplayRequest as eV, type ReplayRequestParams as eW, type ReplayResponseResult as eX, type ReplayedEvent as eY, type RequestHandler as eZ, type RoleAddress as e_, type MailTurnRequest as ea, type MailTurnRequestParams as eb, type MailTurnResponseResult as ec, type MailTurnUpdatedEventData as ed, type MailTurnsListRequest as ee, type MailTurnsListRequestParams as ef, type MailTurnsListResponseResult as eg, type MeshConnectOptions as eh, type MeshPeerEndpoint as ei, type MeshTransportAdapter as ej, type MessageDeliveredEventData as ek, type MessageFailedEventData as el, type MessageHandler as em, type MessageNotification as en, type MessageNotificationParams as eo, type MessagePriority as ep, type MessageRelationship as eq, type MessageSentEventData as er, type MessageVisibility as es, type Meta as et, type MultiAddress as eu, NOTIFICATION_METHODS as ev, type NotificationHandler as ew, OBSERVATION_METHODS as ex, type OverflowHandler as ey, type OverflowInfo as ez, type SessionId as f, type UnsubscribeRequestParams as f$, SESSION_METHODS as f0, STATE_METHODS as f1, STEERING_METHODS as f2, STRUCTURE_METHODS as f3, type ScopeAddress as f4, type ScopeMessagingRule as f5, type ScopeVisibilityRule as f6, type ScopesCreateRequest as f7, type ScopesCreateRequestParams as f8, type ScopesDeleteRequest as f9, type SessionLoadResponseResult as fA, type StandardAuthMethod as fB, type StateChangeHandler as fC, type StreamingCapabilities as fD, type StructureGraphRequest as fE, type StructureGraphRequestParams as fF, type StructureGraphResponseResult as fG, type StructureVisibilityRule as fH, type SubscribeRequest as fI, type SubscribeRequestParams as fJ, Subscription as fK, type SubscriptionAckNotification as fL, type SubscriptionAckParams as fM, type SubscriptionOptions$1 as fN, type SubscriptionState as fO, type SystemAcceptanceRule as fP, type SystemAddress as fQ, type Thread as fR, type ThreadId as fS, type Timestamp as fT, type TransportType as fU, type Turn as fV, type TurnId as fW, type TurnSource as fX, type TurnStatus as fY, type TurnVisibility as fZ, type UnsubscribeRequest as f_, type ScopesDeleteRequestParams as fa, type ScopesDeleteResponseResult as fb, type ScopesGetRequest as fc, type ScopesGetRequestParams as fd, type ScopesGetResponseResult as fe, type ScopesJoinRequest as ff, type ScopesJoinRequestParams as fg, type ScopesLeaveRequest as fh, type ScopesLeaveRequestParams as fi, type ScopesListRequest as fj, type ScopesListRequestParams as fk, type ScopesMembersRequest as fl, type ScopesMembersRequestParams as fm, type ScopesMembersResponseResult as fn, type SendPolicy as fo, type SendRequest as fp, type SendRequestParams as fq, type ServerAuthCapabilities as fr, type SessionCloseRequest as fs, type SessionCloseRequestParams as ft, type SessionCloseResponseResult as fu, type SessionListRequest as fv, type SessionListRequestParams as fw, type SessionListResponseResult as fx, type SessionLoadRequest as fy, type SessionLoadRequestParams as fz, type FederationConnectResponseResult as g, agenticMeshStream as g0, canAgentAcceptMessage as g1, canAgentMessageAgent as g2, canAgentSeeAgent as g3, canControlAgent as g4, canJoinScope as g5, canMessageAgent as g6, canPerformAction as g7, canPerformMethod as g8, canSeeAgent as g9, mapVisibilityToRule as gA, ndJsonStream as gB, resolveAgentPermissions as gC, waitForOpen as gD, websocketStream as gE, type SystemExposure as gF, canSeeScope as ga, canSendToScope as gb, createACPStream as gc, createEvent as gd, createStreamPair as ge, createSubscription as gf, deepMergePermissions as gg, filterVisibleAgents as gh, filterVisibleEvents as gi, filterVisibleScopes as gj, hasCapability as gk, isACPEnvelope as gl, isACPErrorResponse as gm, isACPNotification as gn, isACPRequest as go, isACPResponse as gp, isACPSuccessResponse as gq, isAgentExposed as gr, isBroadcastAddress as gs, isDirectAddress as gt, isEventTypeExposed as gu, isFederatedAddress as gv, isHierarchicalAddress as gw, isOrphanedAgent as gx, isScopeExposed as gy, isSuccessResponse as gz, type FederationRouteResponseResult as h, type ConnectionState as i, type ParticipantId as j, type ParticipantType as k, type ScopeId as l, type Agent as m, type Scope as n, type Address as o, type SubscriptionFilter as p, type Event as q, type AgentsGetResponseResult as r, type AgentsListResponseResult as s, type AgentsRegisterResponseResult as t, type AgentsSpawnResponseResult as u, type AgentsUnregisterResponseResult as v, type AgentsUpdateResponseResult as w, type ProtocolVersion as x, type SessionInfo as y, type ScopesCreateResponseResult as z };
|