@shadowob/shared 1.1.4 → 1.1.6-dev.311
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/{chunk-DMUZB4WV.js → chunk-J34E7LGB.js} +12 -2
- package/dist/constants/index.cjs +12 -2
- package/dist/constants/index.d.cts +10 -0
- package/dist/constants/index.d.ts +10 -0
- package/dist/constants/index.js +1 -1
- package/dist/index.cjs +12 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{message.types-Ca8col0f.d.cts → message.types-TGJmaffM.d.cts} +2 -0
- package/dist/{message.types-Ca8col0f.d.ts → message.types-TGJmaffM.d.ts} +2 -0
- package/dist/types/index.d.cts +56 -2
- package/dist/types/index.d.ts +56 -2
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,12 @@ var CLIENT_EVENTS = {
|
|
|
4
4
|
CHANNEL_LEAVE: "channel:leave",
|
|
5
5
|
MESSAGE_SEND: "message:send",
|
|
6
6
|
MESSAGE_TYPING: "message:typing",
|
|
7
|
-
PRESENCE_UPDATE: "presence:update"
|
|
7
|
+
PRESENCE_UPDATE: "presence:update",
|
|
8
|
+
VOICE_JOIN: "voice:join",
|
|
9
|
+
VOICE_LEAVE: "voice:leave",
|
|
10
|
+
VOICE_STATE_UPDATE: "voice:state:update",
|
|
11
|
+
VOICE_TOKEN_RENEW: "voice:token:renew",
|
|
12
|
+
VOICE_HEARTBEAT: "voice:heartbeat"
|
|
8
13
|
};
|
|
9
14
|
var SERVER_EVENTS = {
|
|
10
15
|
MESSAGE_NEW: "message:new",
|
|
@@ -16,7 +21,12 @@ var SERVER_EVENTS = {
|
|
|
16
21
|
PRESENCE_CHANGE: "presence:change",
|
|
17
22
|
REACTION_ADD: "reaction:add",
|
|
18
23
|
REACTION_REMOVE: "reaction:remove",
|
|
19
|
-
NOTIFICATION_NEW: "notification:new"
|
|
24
|
+
NOTIFICATION_NEW: "notification:new",
|
|
25
|
+
VOICE_STATE: "voice:state",
|
|
26
|
+
VOICE_PARTICIPANT_JOINED: "voice:participant-joined",
|
|
27
|
+
VOICE_PARTICIPANT_LEFT: "voice:participant-left",
|
|
28
|
+
VOICE_PARTICIPANT_UPDATED: "voice:participant-updated",
|
|
29
|
+
VOICE_POLICY_UPDATED: "voice:policy-updated"
|
|
20
30
|
};
|
|
21
31
|
|
|
22
32
|
// src/constants/limits.ts
|
package/dist/constants/index.cjs
CHANGED
|
@@ -32,7 +32,12 @@ var CLIENT_EVENTS = {
|
|
|
32
32
|
CHANNEL_LEAVE: "channel:leave",
|
|
33
33
|
MESSAGE_SEND: "message:send",
|
|
34
34
|
MESSAGE_TYPING: "message:typing",
|
|
35
|
-
PRESENCE_UPDATE: "presence:update"
|
|
35
|
+
PRESENCE_UPDATE: "presence:update",
|
|
36
|
+
VOICE_JOIN: "voice:join",
|
|
37
|
+
VOICE_LEAVE: "voice:leave",
|
|
38
|
+
VOICE_STATE_UPDATE: "voice:state:update",
|
|
39
|
+
VOICE_TOKEN_RENEW: "voice:token:renew",
|
|
40
|
+
VOICE_HEARTBEAT: "voice:heartbeat"
|
|
36
41
|
};
|
|
37
42
|
var SERVER_EVENTS = {
|
|
38
43
|
MESSAGE_NEW: "message:new",
|
|
@@ -44,7 +49,12 @@ var SERVER_EVENTS = {
|
|
|
44
49
|
PRESENCE_CHANGE: "presence:change",
|
|
45
50
|
REACTION_ADD: "reaction:add",
|
|
46
51
|
REACTION_REMOVE: "reaction:remove",
|
|
47
|
-
NOTIFICATION_NEW: "notification:new"
|
|
52
|
+
NOTIFICATION_NEW: "notification:new",
|
|
53
|
+
VOICE_STATE: "voice:state",
|
|
54
|
+
VOICE_PARTICIPANT_JOINED: "voice:participant-joined",
|
|
55
|
+
VOICE_PARTICIPANT_LEFT: "voice:participant-left",
|
|
56
|
+
VOICE_PARTICIPANT_UPDATED: "voice:participant-updated",
|
|
57
|
+
VOICE_POLICY_UPDATED: "voice:policy-updated"
|
|
48
58
|
};
|
|
49
59
|
|
|
50
60
|
// src/constants/limits.ts
|
|
@@ -4,6 +4,11 @@ declare const CLIENT_EVENTS: {
|
|
|
4
4
|
readonly MESSAGE_SEND: "message:send";
|
|
5
5
|
readonly MESSAGE_TYPING: "message:typing";
|
|
6
6
|
readonly PRESENCE_UPDATE: "presence:update";
|
|
7
|
+
readonly VOICE_JOIN: "voice:join";
|
|
8
|
+
readonly VOICE_LEAVE: "voice:leave";
|
|
9
|
+
readonly VOICE_STATE_UPDATE: "voice:state:update";
|
|
10
|
+
readonly VOICE_TOKEN_RENEW: "voice:token:renew";
|
|
11
|
+
readonly VOICE_HEARTBEAT: "voice:heartbeat";
|
|
7
12
|
};
|
|
8
13
|
declare const SERVER_EVENTS: {
|
|
9
14
|
readonly MESSAGE_NEW: "message:new";
|
|
@@ -16,6 +21,11 @@ declare const SERVER_EVENTS: {
|
|
|
16
21
|
readonly REACTION_ADD: "reaction:add";
|
|
17
22
|
readonly REACTION_REMOVE: "reaction:remove";
|
|
18
23
|
readonly NOTIFICATION_NEW: "notification:new";
|
|
24
|
+
readonly VOICE_STATE: "voice:state";
|
|
25
|
+
readonly VOICE_PARTICIPANT_JOINED: "voice:participant-joined";
|
|
26
|
+
readonly VOICE_PARTICIPANT_LEFT: "voice:participant-left";
|
|
27
|
+
readonly VOICE_PARTICIPANT_UPDATED: "voice:participant-updated";
|
|
28
|
+
readonly VOICE_POLICY_UPDATED: "voice:policy-updated";
|
|
19
29
|
};
|
|
20
30
|
type ClientEvent = (typeof CLIENT_EVENTS)[keyof typeof CLIENT_EVENTS];
|
|
21
31
|
type ServerEvent = (typeof SERVER_EVENTS)[keyof typeof SERVER_EVENTS];
|
|
@@ -4,6 +4,11 @@ declare const CLIENT_EVENTS: {
|
|
|
4
4
|
readonly MESSAGE_SEND: "message:send";
|
|
5
5
|
readonly MESSAGE_TYPING: "message:typing";
|
|
6
6
|
readonly PRESENCE_UPDATE: "presence:update";
|
|
7
|
+
readonly VOICE_JOIN: "voice:join";
|
|
8
|
+
readonly VOICE_LEAVE: "voice:leave";
|
|
9
|
+
readonly VOICE_STATE_UPDATE: "voice:state:update";
|
|
10
|
+
readonly VOICE_TOKEN_RENEW: "voice:token:renew";
|
|
11
|
+
readonly VOICE_HEARTBEAT: "voice:heartbeat";
|
|
7
12
|
};
|
|
8
13
|
declare const SERVER_EVENTS: {
|
|
9
14
|
readonly MESSAGE_NEW: "message:new";
|
|
@@ -16,6 +21,11 @@ declare const SERVER_EVENTS: {
|
|
|
16
21
|
readonly REACTION_ADD: "reaction:add";
|
|
17
22
|
readonly REACTION_REMOVE: "reaction:remove";
|
|
18
23
|
readonly NOTIFICATION_NEW: "notification:new";
|
|
24
|
+
readonly VOICE_STATE: "voice:state";
|
|
25
|
+
readonly VOICE_PARTICIPANT_JOINED: "voice:participant-joined";
|
|
26
|
+
readonly VOICE_PARTICIPANT_LEFT: "voice:participant-left";
|
|
27
|
+
readonly VOICE_PARTICIPANT_UPDATED: "voice:participant-updated";
|
|
28
|
+
readonly VOICE_POLICY_UPDATED: "voice:policy-updated";
|
|
19
29
|
};
|
|
20
30
|
type ClientEvent = (typeof CLIENT_EVENTS)[keyof typeof CLIENT_EVENTS];
|
|
21
31
|
type ServerEvent = (typeof SERVER_EVENTS)[keyof typeof SERVER_EVENTS];
|
package/dist/constants/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -57,7 +57,12 @@ var CLIENT_EVENTS = {
|
|
|
57
57
|
CHANNEL_LEAVE: "channel:leave",
|
|
58
58
|
MESSAGE_SEND: "message:send",
|
|
59
59
|
MESSAGE_TYPING: "message:typing",
|
|
60
|
-
PRESENCE_UPDATE: "presence:update"
|
|
60
|
+
PRESENCE_UPDATE: "presence:update",
|
|
61
|
+
VOICE_JOIN: "voice:join",
|
|
62
|
+
VOICE_LEAVE: "voice:leave",
|
|
63
|
+
VOICE_STATE_UPDATE: "voice:state:update",
|
|
64
|
+
VOICE_TOKEN_RENEW: "voice:token:renew",
|
|
65
|
+
VOICE_HEARTBEAT: "voice:heartbeat"
|
|
61
66
|
};
|
|
62
67
|
var SERVER_EVENTS = {
|
|
63
68
|
MESSAGE_NEW: "message:new",
|
|
@@ -69,7 +74,12 @@ var SERVER_EVENTS = {
|
|
|
69
74
|
PRESENCE_CHANGE: "presence:change",
|
|
70
75
|
REACTION_ADD: "reaction:add",
|
|
71
76
|
REACTION_REMOVE: "reaction:remove",
|
|
72
|
-
NOTIFICATION_NEW: "notification:new"
|
|
77
|
+
NOTIFICATION_NEW: "notification:new",
|
|
78
|
+
VOICE_STATE: "voice:state",
|
|
79
|
+
VOICE_PARTICIPANT_JOINED: "voice:participant-joined",
|
|
80
|
+
VOICE_PARTICIPANT_LEFT: "voice:participant-left",
|
|
81
|
+
VOICE_PARTICIPANT_UPDATED: "voice:participant-updated",
|
|
82
|
+
VOICE_POLICY_UPDATED: "voice:policy-updated"
|
|
73
83
|
};
|
|
74
84
|
|
|
75
85
|
// src/constants/limits.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CLIENT_EVENTS, ClientEvent, LIMITS, SERVER_EVENTS, ServerEvent } from './constants/index.cjs';
|
|
2
2
|
export { DEFAULT_HOMEPLAY_CATALOG, SHADOW_PLAY_SERVER_TEMPLATE, ShadowHomePlayCatalogItem, ShadowPlayAction, ShadowPlayAvailability, ShadowPlayServerTemplate, getDefaultHomePlay, getPlayBuddyEmail, getPlayBuddyUsername } from './play-catalog/index.cjs';
|
|
3
|
-
export { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus } from './types/index.cjs';
|
|
4
|
-
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from './message.types-
|
|
3
|
+
export { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus, VoiceChannelCredentials, VoiceChannelJoinResult, VoiceChannelLeaveResult, VoiceChannelPolicy, VoiceChannelState, VoiceParticipant } from './types/index.cjs';
|
|
4
|
+
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from './message.types-TGJmaffM.cjs';
|
|
5
5
|
export { BgPattern, CAT_AVATAR_COUNT, CatConfig, CatDecoration, CatExpression, CatPattern, MessageMentionTextSegment, assignMentionRanges, buildMentionMarkdownLinks, canonicalMentionToken, canonicalizeMentionContent, escapeMarkdownLinkLabel, formatDate, generateInviteCode, generateRandomCatConfig, getAllCatAvatars, getCatAvatar, getCatAvatarByUserId, getCatSvgString, isCanonicalMentionToken, isValidEmail, mentionDisplayText, parseCanonicalMentionToken, renderCatSvg, segmentTextByMentions, slugify } from './utils/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CLIENT_EVENTS, ClientEvent, LIMITS, SERVER_EVENTS, ServerEvent } from './constants/index.js';
|
|
2
2
|
export { DEFAULT_HOMEPLAY_CATALOG, SHADOW_PLAY_SERVER_TEMPLATE, ShadowHomePlayCatalogItem, ShadowPlayAction, ShadowPlayAvailability, ShadowPlayServerTemplate, getDefaultHomePlay, getPlayBuddyEmail, getPlayBuddyUsername } from './play-catalog/index.js';
|
|
3
|
-
export { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus } from './types/index.js';
|
|
4
|
-
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from './message.types-
|
|
3
|
+
export { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus, VoiceChannelCredentials, VoiceChannelJoinResult, VoiceChannelLeaveResult, VoiceChannelPolicy, VoiceChannelState, VoiceParticipant } from './types/index.js';
|
|
4
|
+
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from './message.types-TGJmaffM.js';
|
|
5
5
|
export { BgPattern, CAT_AVATAR_COUNT, CatConfig, CatDecoration, CatExpression, CatPattern, MessageMentionTextSegment, assignMentionRanges, buildMentionMarkdownLinks, canonicalMentionToken, canonicalizeMentionContent, escapeMarkdownLinkLabel, formatDate, generateInviteCode, generateRandomCatConfig, getAllCatAvatars, getCatAvatar, getCatAvatarByUserId, getCatSvgString, isCanonicalMentionToken, isValidEmail, mentionDisplayText, parseCanonicalMentionToken, renderCatSvg, segmentTextByMentions, slugify } from './utils/index.js';
|
package/dist/index.js
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from '../message.types-
|
|
1
|
+
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from '../message.types-TGJmaffM.cjs';
|
|
2
2
|
|
|
3
3
|
type AgentStatus = 'running' | 'stopped' | 'error';
|
|
4
4
|
type AgentKernelType = 'claude-code' | 'cursor' | 'mcp-server' | 'custom';
|
|
@@ -64,6 +64,60 @@ interface ChannelSortOptions {
|
|
|
64
64
|
by: ChannelSortBy;
|
|
65
65
|
direction: ChannelSortDirection;
|
|
66
66
|
}
|
|
67
|
+
interface VoiceParticipant {
|
|
68
|
+
id: string;
|
|
69
|
+
channelId: string;
|
|
70
|
+
userId: string;
|
|
71
|
+
uid: number;
|
|
72
|
+
screenUid: number;
|
|
73
|
+
username: string;
|
|
74
|
+
displayName: string | null;
|
|
75
|
+
avatarUrl: string | null;
|
|
76
|
+
isBot: boolean;
|
|
77
|
+
isMuted: boolean;
|
|
78
|
+
isDeafened: boolean;
|
|
79
|
+
isSpeaking: boolean;
|
|
80
|
+
isScreenSharing: boolean;
|
|
81
|
+
joinedAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
clientId: string | null;
|
|
84
|
+
}
|
|
85
|
+
interface VoiceChannelCredentials {
|
|
86
|
+
appId: string;
|
|
87
|
+
channelId: string;
|
|
88
|
+
agoraChannelName: string;
|
|
89
|
+
uid: number;
|
|
90
|
+
screenUid: number;
|
|
91
|
+
token: string | null;
|
|
92
|
+
screenToken: string | null;
|
|
93
|
+
expiresAt: string | null;
|
|
94
|
+
}
|
|
95
|
+
interface VoiceChannelState {
|
|
96
|
+
channelId: string;
|
|
97
|
+
agoraChannelName: string;
|
|
98
|
+
participants: VoiceParticipant[];
|
|
99
|
+
participantCount: number;
|
|
100
|
+
emptySince: string | null;
|
|
101
|
+
graceEndsAt: string | null;
|
|
102
|
+
}
|
|
103
|
+
interface VoiceChannelJoinResult {
|
|
104
|
+
credentials: VoiceChannelCredentials;
|
|
105
|
+
participant: VoiceParticipant;
|
|
106
|
+
state: VoiceChannelState;
|
|
107
|
+
}
|
|
108
|
+
interface VoiceChannelLeaveResult {
|
|
109
|
+
participant: VoiceParticipant | null;
|
|
110
|
+
state: VoiceChannelState;
|
|
111
|
+
}
|
|
112
|
+
interface VoiceChannelPolicy {
|
|
113
|
+
agentId: string;
|
|
114
|
+
channelId: string;
|
|
115
|
+
listen: boolean;
|
|
116
|
+
autoJoin: boolean;
|
|
117
|
+
consumeAudio: boolean;
|
|
118
|
+
consumeScreenShare: boolean;
|
|
119
|
+
screenshotIntervalSeconds: number | null;
|
|
120
|
+
}
|
|
67
121
|
|
|
68
122
|
type FriendshipStatus = 'pending' | 'accepted' | 'blocked';
|
|
69
123
|
interface Friendship {
|
|
@@ -178,4 +232,4 @@ interface UserMembership {
|
|
|
178
232
|
capabilities: string[];
|
|
179
233
|
}
|
|
180
234
|
|
|
181
|
-
export type { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus };
|
|
235
|
+
export type { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus, VoiceChannelCredentials, VoiceChannelJoinResult, VoiceChannelLeaveResult, VoiceChannelPolicy, VoiceChannelState, VoiceParticipant };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from '../message.types-
|
|
1
|
+
export { A as Attachment, C as CommerceMessageCard, a as CommerceOfferCardInput, b as CommerceProductCard, M as MentionSuggestion, c as MentionSuggestionTrigger, d as Message, e as MessageMention, f as MessageMentionKind, g as MessageMentionRange, h as MessageMetadata, N as Notification, i as NotificationType, O as OAuthLinkCard, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from '../message.types-TGJmaffM.js';
|
|
2
2
|
|
|
3
3
|
type AgentStatus = 'running' | 'stopped' | 'error';
|
|
4
4
|
type AgentKernelType = 'claude-code' | 'cursor' | 'mcp-server' | 'custom';
|
|
@@ -64,6 +64,60 @@ interface ChannelSortOptions {
|
|
|
64
64
|
by: ChannelSortBy;
|
|
65
65
|
direction: ChannelSortDirection;
|
|
66
66
|
}
|
|
67
|
+
interface VoiceParticipant {
|
|
68
|
+
id: string;
|
|
69
|
+
channelId: string;
|
|
70
|
+
userId: string;
|
|
71
|
+
uid: number;
|
|
72
|
+
screenUid: number;
|
|
73
|
+
username: string;
|
|
74
|
+
displayName: string | null;
|
|
75
|
+
avatarUrl: string | null;
|
|
76
|
+
isBot: boolean;
|
|
77
|
+
isMuted: boolean;
|
|
78
|
+
isDeafened: boolean;
|
|
79
|
+
isSpeaking: boolean;
|
|
80
|
+
isScreenSharing: boolean;
|
|
81
|
+
joinedAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
clientId: string | null;
|
|
84
|
+
}
|
|
85
|
+
interface VoiceChannelCredentials {
|
|
86
|
+
appId: string;
|
|
87
|
+
channelId: string;
|
|
88
|
+
agoraChannelName: string;
|
|
89
|
+
uid: number;
|
|
90
|
+
screenUid: number;
|
|
91
|
+
token: string | null;
|
|
92
|
+
screenToken: string | null;
|
|
93
|
+
expiresAt: string | null;
|
|
94
|
+
}
|
|
95
|
+
interface VoiceChannelState {
|
|
96
|
+
channelId: string;
|
|
97
|
+
agoraChannelName: string;
|
|
98
|
+
participants: VoiceParticipant[];
|
|
99
|
+
participantCount: number;
|
|
100
|
+
emptySince: string | null;
|
|
101
|
+
graceEndsAt: string | null;
|
|
102
|
+
}
|
|
103
|
+
interface VoiceChannelJoinResult {
|
|
104
|
+
credentials: VoiceChannelCredentials;
|
|
105
|
+
participant: VoiceParticipant;
|
|
106
|
+
state: VoiceChannelState;
|
|
107
|
+
}
|
|
108
|
+
interface VoiceChannelLeaveResult {
|
|
109
|
+
participant: VoiceParticipant | null;
|
|
110
|
+
state: VoiceChannelState;
|
|
111
|
+
}
|
|
112
|
+
interface VoiceChannelPolicy {
|
|
113
|
+
agentId: string;
|
|
114
|
+
channelId: string;
|
|
115
|
+
listen: boolean;
|
|
116
|
+
autoJoin: boolean;
|
|
117
|
+
consumeAudio: boolean;
|
|
118
|
+
consumeScreenShare: boolean;
|
|
119
|
+
screenshotIntervalSeconds: number | null;
|
|
120
|
+
}
|
|
67
121
|
|
|
68
122
|
type FriendshipStatus = 'pending' | 'accepted' | 'blocked';
|
|
69
123
|
interface Friendship {
|
|
@@ -178,4 +232,4 @@ interface UserMembership {
|
|
|
178
232
|
capabilities: string[];
|
|
179
233
|
}
|
|
180
234
|
|
|
181
|
-
export type { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus };
|
|
235
|
+
export type { Agent, AgentCapability, AgentInfo, AgentKernelType, AgentStatus, AuthResponse, Channel, ChannelSortBy, ChannelSortDirection, ChannelSortOptions, ChannelType, CreateAgentRequest, CreateChannelRequest, CreateServerRequest, FriendEntry, FriendSource, Friendship, FriendshipStatus, LoginRequest, Member, MemberRole, RegisterRequest, Server, UpdateChannelRequest, UpdateServerRequest, User, UserMembership, UserMembershipTier, UserProfile, UserStatus, VoiceChannelCredentials, VoiceChannelJoinResult, VoiceChannelLeaveResult, VoiceChannelPolicy, VoiceChannelState, VoiceParticipant };
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as MessageMentionRange, e as MessageMention } from '../message.types-
|
|
1
|
+
import { g as MessageMentionRange, e as MessageMention } from '../message.types-TGJmaffM.cjs';
|
|
2
2
|
|
|
3
3
|
type CatPattern = 'none' | 'tabby' | 'tuxedo' | 'siamese' | 'calico' | 'bicolor';
|
|
4
4
|
type CatExpression = 'smile' | 'open' | 'flat' | 'sad' | 'surprised' | 'kawaii' | 'winking' | 'smirk';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as MessageMentionRange, e as MessageMention } from '../message.types-
|
|
1
|
+
import { g as MessageMentionRange, e as MessageMention } from '../message.types-TGJmaffM.js';
|
|
2
2
|
|
|
3
3
|
type CatPattern = 'none' | 'tabby' | 'tuxedo' | 'siamese' | 'calico' | 'bicolor';
|
|
4
4
|
type CatExpression = 'smile' | 'open' | 'flat' | 'sad' | 'surprised' | 'kawaii' | 'winking' | 'smirk';
|