@shadowob/shared 1.1.3-dev.251 → 1.1.3-dev.271
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.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{message.types-lG4qBSus.d.cts → message.types-Cyp3tmIX.d.cts} +26 -1
- package/dist/{message.types-lG4qBSus.d.ts → message.types-Cyp3tmIX.d.ts} +26 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
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
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, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from './message.types-
|
|
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-Cyp3tmIX.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
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, P as PaidFileCard, R as ReactionGroup, S as SendMessageRequest, T as Thread, U as UpdateMessageRequest } from './message.types-
|
|
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-Cyp3tmIX.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';
|
|
@@ -57,6 +57,7 @@ interface MessageMetadata {
|
|
|
57
57
|
interactiveState?: Record<string, unknown>;
|
|
58
58
|
commerceCards?: CommerceMessageCard[];
|
|
59
59
|
paidFileCards?: PaidFileCard[];
|
|
60
|
+
oauthLinkCards?: OAuthLinkCard[];
|
|
60
61
|
[key: string]: unknown;
|
|
61
62
|
}
|
|
62
63
|
interface CommerceOfferCardInput {
|
|
@@ -110,6 +111,30 @@ interface PaidFileCard {
|
|
|
110
111
|
mode: 'open_paid_file';
|
|
111
112
|
};
|
|
112
113
|
}
|
|
114
|
+
interface OAuthLinkCard {
|
|
115
|
+
id: string;
|
|
116
|
+
kind: 'oauth_link';
|
|
117
|
+
appId: string;
|
|
118
|
+
clientId?: string | null;
|
|
119
|
+
title: string;
|
|
120
|
+
description?: string | null;
|
|
121
|
+
iconUrl?: string | null;
|
|
122
|
+
meta?: {
|
|
123
|
+
appName?: string | null;
|
|
124
|
+
avatarUrl?: string | null;
|
|
125
|
+
iconUrl?: string | null;
|
|
126
|
+
coverUrl?: string | null;
|
|
127
|
+
homepageUrl?: string | null;
|
|
128
|
+
origin?: string | null;
|
|
129
|
+
};
|
|
130
|
+
url: string;
|
|
131
|
+
embedUrl?: string | null;
|
|
132
|
+
fallbackUrl?: string | null;
|
|
133
|
+
scopes?: string[];
|
|
134
|
+
action: {
|
|
135
|
+
mode: 'open_iframe' | 'open_external';
|
|
136
|
+
};
|
|
137
|
+
}
|
|
113
138
|
type MentionSuggestionTrigger = '@' | '#';
|
|
114
139
|
interface MentionSuggestion {
|
|
115
140
|
id: string;
|
|
@@ -179,4 +204,4 @@ interface Notification {
|
|
|
179
204
|
createdAt: string;
|
|
180
205
|
}
|
|
181
206
|
|
|
182
|
-
export type { Attachment as A, CommerceMessageCard as C, MentionSuggestion as M, Notification as N, PaidFileCard as P, ReactionGroup as R, SendMessageRequest as S, Thread as T, UpdateMessageRequest as U, CommerceOfferCardInput as a, CommerceProductCard as b, MentionSuggestionTrigger as c, Message as d, MessageMention as e, MessageMentionKind as f, MessageMentionRange as g, MessageMetadata as h, NotificationType as i };
|
|
207
|
+
export type { Attachment as A, CommerceMessageCard as C, MentionSuggestion as M, Notification as N, OAuthLinkCard as O, PaidFileCard as P, ReactionGroup as R, SendMessageRequest as S, Thread as T, UpdateMessageRequest as U, CommerceOfferCardInput as a, CommerceProductCard as b, MentionSuggestionTrigger as c, Message as d, MessageMention as e, MessageMentionKind as f, MessageMentionRange as g, MessageMetadata as h, NotificationType as i };
|
|
@@ -57,6 +57,7 @@ interface MessageMetadata {
|
|
|
57
57
|
interactiveState?: Record<string, unknown>;
|
|
58
58
|
commerceCards?: CommerceMessageCard[];
|
|
59
59
|
paidFileCards?: PaidFileCard[];
|
|
60
|
+
oauthLinkCards?: OAuthLinkCard[];
|
|
60
61
|
[key: string]: unknown;
|
|
61
62
|
}
|
|
62
63
|
interface CommerceOfferCardInput {
|
|
@@ -110,6 +111,30 @@ interface PaidFileCard {
|
|
|
110
111
|
mode: 'open_paid_file';
|
|
111
112
|
};
|
|
112
113
|
}
|
|
114
|
+
interface OAuthLinkCard {
|
|
115
|
+
id: string;
|
|
116
|
+
kind: 'oauth_link';
|
|
117
|
+
appId: string;
|
|
118
|
+
clientId?: string | null;
|
|
119
|
+
title: string;
|
|
120
|
+
description?: string | null;
|
|
121
|
+
iconUrl?: string | null;
|
|
122
|
+
meta?: {
|
|
123
|
+
appName?: string | null;
|
|
124
|
+
avatarUrl?: string | null;
|
|
125
|
+
iconUrl?: string | null;
|
|
126
|
+
coverUrl?: string | null;
|
|
127
|
+
homepageUrl?: string | null;
|
|
128
|
+
origin?: string | null;
|
|
129
|
+
};
|
|
130
|
+
url: string;
|
|
131
|
+
embedUrl?: string | null;
|
|
132
|
+
fallbackUrl?: string | null;
|
|
133
|
+
scopes?: string[];
|
|
134
|
+
action: {
|
|
135
|
+
mode: 'open_iframe' | 'open_external';
|
|
136
|
+
};
|
|
137
|
+
}
|
|
113
138
|
type MentionSuggestionTrigger = '@' | '#';
|
|
114
139
|
interface MentionSuggestion {
|
|
115
140
|
id: string;
|
|
@@ -179,4 +204,4 @@ interface Notification {
|
|
|
179
204
|
createdAt: string;
|
|
180
205
|
}
|
|
181
206
|
|
|
182
|
-
export type { Attachment as A, CommerceMessageCard as C, MentionSuggestion as M, Notification as N, PaidFileCard as P, ReactionGroup as R, SendMessageRequest as S, Thread as T, UpdateMessageRequest as U, CommerceOfferCardInput as a, CommerceProductCard as b, MentionSuggestionTrigger as c, Message as d, MessageMention as e, MessageMentionKind as f, MessageMentionRange as g, MessageMetadata as h, NotificationType as i };
|
|
207
|
+
export type { Attachment as A, CommerceMessageCard as C, MentionSuggestion as M, Notification as N, OAuthLinkCard as O, PaidFileCard as P, ReactionGroup as R, SendMessageRequest as S, Thread as T, UpdateMessageRequest as U, CommerceOfferCardInput as a, CommerceProductCard as b, MentionSuggestionTrigger as c, Message as d, MessageMention as e, MessageMentionKind as f, MessageMentionRange as g, MessageMetadata as h, NotificationType as i };
|
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, 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-Cyp3tmIX.cjs';
|
|
2
2
|
|
|
3
3
|
type AgentStatus = 'running' | 'stopped' | 'error';
|
|
4
4
|
type AgentKernelType = 'claude-code' | 'cursor' | 'mcp-server' | 'custom';
|
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, 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-Cyp3tmIX.js';
|
|
2
2
|
|
|
3
3
|
type AgentStatus = 'running' | 'stopped' | 'error';
|
|
4
4
|
type AgentKernelType = 'claude-code' | 'cursor' | 'mcp-server' | 'custom';
|
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-Cyp3tmIX.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-Cyp3tmIX.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';
|