@playdrop/playdrop-cli 0.16.11 → 0.16.16

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.
@@ -1,7 +1,8 @@
1
- export declare const CHAT_CHANNEL_SLUGS: readonly ["new-content", "published-content", "new-user", "game-review", "purchases", "credit-transactions", "prod-alert", "content-report", "user-report", "comment-report", "improvement-loop", "bot-test"];
1
+ export declare const CHAT_CHANNEL_SLUGS: readonly ["new-content", "published-content", "new-user", "game-review", "purchases", "credit-transactions", "subscription-transactions", "prod-alert", "content-report", "user-report", "comment-report", "message-report", "improvement-loop", "bot-test"];
2
2
  export type ChatChannelSlug = (typeof CHAT_CHANNEL_SLUGS)[number];
3
+ export type ChatConversationType = "INTERNAL_CHANNEL" | "COMMUNITY_CHANNEL" | "DIRECT";
3
4
  export type ChatChannelReadPolicy = "ADMIN_ONLY" | "PUBLIC";
4
- export type ChatUserKind = "HUMAN" | "BOT" | "AGENT";
5
+ export type ChatUserKind = "REAL" | "TEST" | "HUMAN" | "BOT" | "AGENT";
5
6
  export type ChatAttachmentKind = "LINK" | "IMAGE" | "VIDEO" | "JSON" | "MARKDOWN";
6
7
  export type ChatAuthor = {
7
8
  id: number;
@@ -16,7 +17,7 @@ export type ChatReaction = {
16
17
  reactedByViewer: boolean;
17
18
  };
18
19
  export type ChatAttachment = {
19
- id: number;
20
+ id: string;
20
21
  kind: ChatAttachmentKind;
21
22
  url: string;
22
23
  fileName: string | null;
@@ -30,29 +31,89 @@ export type ChatAttachment = {
30
31
  siteName: string | null;
31
32
  } | null;
32
33
  };
34
+ export type ChatMessageQuote = {
35
+ id: string;
36
+ sequence: string;
37
+ body: string;
38
+ deleted: boolean;
39
+ author: Pick<ChatAuthor, "id" | "username" | "displayName"> | null;
40
+ };
33
41
  export type ChatMessage = {
34
- id: number;
35
- channelSlug: string;
36
- parentMessageId: number | null;
42
+ id: string;
43
+ conversationId: string;
44
+ sequence: string;
45
+ channelSlug: string | null;
46
+ parentMessageId: string | null;
47
+ replyToMessageId: string | null;
48
+ threadRootMessageId: string | null;
49
+ quote: ChatMessageQuote | null;
37
50
  body: string;
51
+ deleted: boolean;
52
+ deletedAt: string | null;
38
53
  eventType: string | null;
39
54
  eventData: unknown | null;
55
+ clientMessageId: string | null;
40
56
  clientKey: string | null;
41
57
  editedAt: string | null;
42
58
  createdAt: string;
43
59
  updatedAt: string;
44
- author: ChatAuthor;
60
+ author: ChatAuthor | null;
45
61
  attachments: ChatAttachment[];
62
+ mentions: Array<{
63
+ id: number;
64
+ username: string;
65
+ }>;
46
66
  reactions: ChatReaction[];
47
67
  replyCount: number;
48
68
  };
69
+ export type ChatConversationCapabilities = {
70
+ canRead: boolean;
71
+ canWrite: boolean;
72
+ canReact: boolean;
73
+ canUpload: boolean;
74
+ canThread: boolean;
75
+ canModerate: boolean;
76
+ frozenReason: "archived" | "friendship_required" | "blocked" | "account_read_only" | null;
77
+ };
78
+ export type ChatConversation = {
79
+ id: string;
80
+ type: ChatConversationType;
81
+ channel: {
82
+ slug: string;
83
+ displayName: string;
84
+ position: number;
85
+ archivedAt: string | null;
86
+ } | null;
87
+ peer: ChatAuthor | null;
88
+ participants?: ChatAuthor[];
89
+ capabilities: ChatConversationCapabilities;
90
+ latestMessage: ChatMessage | null;
91
+ eventVersion: string;
92
+ hasUnread: boolean;
93
+ unreadCount: number;
94
+ unreadCountCapped: boolean;
95
+ mutedUntil: string | null;
96
+ archivedAt: string | null;
97
+ lastMessageAt: string | null;
98
+ };
99
+ export type ChatConversationsResponse = {
100
+ conversations: ChatConversation[];
101
+ hasMore: boolean;
102
+ nextCursor: string | null;
103
+ };
104
+ export type ChatConversationResponse = {
105
+ conversation: ChatConversation;
106
+ };
49
107
  export type ChatChannel = {
108
+ id: string;
50
109
  slug: string;
51
110
  displayName: string;
52
111
  position: number;
53
112
  readPolicy: ChatChannelReadPolicy;
54
113
  canWrite: boolean;
55
114
  unreadCount: number;
115
+ unreadCountCapped: boolean;
116
+ hasUnread: boolean;
56
117
  };
57
118
  export type ChatChannelsResponse = {
58
119
  channels: ChatChannel[];
@@ -60,34 +121,26 @@ export type ChatChannelsResponse = {
60
121
  export type ChatMessagesResponse = {
61
122
  messages: ChatMessage[];
62
123
  hasMore: boolean;
63
- nextBeforeId: number | null;
64
- readThroughMessageId: number | null;
65
- firstUnreadRootMessageId: number | null;
124
+ hasMoreBefore: boolean;
125
+ hasMoreAfter: boolean;
126
+ nextBefore: string | null;
127
+ nextAfter: string | null;
128
+ nextBeforeId: string | null;
129
+ readThroughMessageId: string | null;
130
+ firstUnreadRootMessageId: string | null;
66
131
  };
67
132
  export type MarkChatChannelReadRequest = {
68
- lastReadMessageId: number | null;
69
- };
70
- export type ChatAttachmentInput = {
71
- kind: ChatAttachmentKind;
72
- url?: string;
73
- fileName?: string;
74
- contentType?: string;
75
- sizeBytes?: number;
76
- storageKey?: string;
133
+ lastReadMessageId: string | null;
77
134
  };
78
135
  export type CreateChatMessageRequest = {
136
+ clientMessageId: string;
79
137
  body?: string;
80
- attachments?: ChatAttachmentInput[];
81
- clientKey?: string;
82
- eventType?: string;
83
- eventData?: unknown;
84
- asSystem?: boolean;
138
+ attachmentUploadIds?: string[];
139
+ replyToMessageId?: string;
140
+ threadRootMessageId?: string;
85
141
  };
86
142
  export type EditChatMessageRequest = {
87
- body?: string;
88
- attachments?: ChatAttachmentInput[];
89
- eventType?: string | null;
90
- eventData?: unknown | null;
143
+ body: string;
91
144
  };
92
145
  export type ChatMessageResponse = {
93
146
  message: ChatMessage;
@@ -98,8 +151,93 @@ export type ChatChannelAccessResponse = {
98
151
  canWrite: boolean;
99
152
  };
100
153
  export type ChatChannelReadResponse = {
101
- channel: string;
102
- lastReadMessageId: number | null;
103
- unreadCount: 0;
154
+ conversationId: string;
155
+ channel: string | null;
156
+ lastReadMessageId: string | null;
157
+ unreadCount: number;
158
+ unreadCountCapped: boolean;
159
+ hasUnread: boolean;
160
+ };
161
+ export type ChatAttachmentUploadSession = {
162
+ id: string;
163
+ conversationId: string;
164
+ uploadUrl: string;
165
+ uploadMethod: "PUT";
166
+ uploadHeaders: Record<string, string>;
167
+ expiresAt: string;
168
+ };
169
+ export type ChatNotificationPreferences = {
170
+ directPushEnabled: boolean;
171
+ communityPushEnabled: boolean;
172
+ };
173
+ export declare const CHAT_REALTIME_HEARTBEAT_INTERVAL_MS = 25000;
174
+ export type ChatRealtimeAuthFrame = {
175
+ type: "auth";
176
+ token: string;
177
+ };
178
+ export type ChatRealtimeSubscribeFrame = {
179
+ type: "subscribe";
180
+ conversationId: string;
181
+ lastEventVersion: string | null;
182
+ };
183
+ export type ChatRealtimeUnsubscribeFrame = {
184
+ type: "unsubscribe";
185
+ conversationId: string;
186
+ };
187
+ export type ChatRealtimeTypingFrame = {
188
+ type: "typing";
189
+ conversationId: string;
190
+ active: boolean;
191
+ };
192
+ export type ChatRealtimeClientFrame = ChatRealtimeAuthFrame | ChatRealtimeSubscribeFrame | ChatRealtimeUnsubscribeFrame | ChatRealtimeTypingFrame;
193
+ export type ChatRealtimeMessageEvent = {
194
+ id: string;
195
+ version: string;
196
+ kind: "message.created" | "message.updated" | "message.deleted";
197
+ conversationId: string;
198
+ message: ChatMessage;
199
+ };
200
+ export type ChatRealtimeReadEvent = {
201
+ id: string;
202
+ version: string;
203
+ kind: "read.updated";
204
+ conversationId: string;
205
+ userId: number;
206
+ lastReadMessageId: string | null;
207
+ };
208
+ export type ChatRealtimeConversationEvent = {
209
+ id: string;
210
+ version: string;
211
+ kind: "conversation.updated";
212
+ conversationId: string;
213
+ };
214
+ export type ChatRealtimeEvent = ChatRealtimeMessageEvent | ChatRealtimeReadEvent | ChatRealtimeConversationEvent;
215
+ export type ChatRealtimeErrorCode = "chat_realtime_invalid_frame" | "chat_realtime_unauthorized" | "chat_realtime_forbidden" | "chat_realtime_rate_limited" | "chat_realtime_backpressure" | "chat_realtime_unavailable";
216
+ export type ChatRealtimeServerFrame = {
217
+ type: "ready";
218
+ heartbeatIntervalMs: typeof CHAT_REALTIME_HEARTBEAT_INTERVAL_MS;
219
+ } | {
220
+ type: "subscribed";
221
+ conversationId: string;
222
+ eventVersion: string;
223
+ } | {
224
+ type: "conversation.event";
225
+ event: ChatRealtimeEvent;
226
+ } | {
227
+ type: "inbox.updated";
228
+ conversationId: string;
229
+ } | {
230
+ type: "typing.updated";
231
+ conversationId: string;
232
+ userId: number;
233
+ active: boolean;
234
+ expiresAt: string;
235
+ } | {
236
+ type: "resync_required";
237
+ conversationId: string;
238
+ } | {
239
+ type: "error";
240
+ code: ChatRealtimeErrorCode;
241
+ conversationId?: string;
104
242
  };
105
243
  //# sourceMappingURL=chat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,+MAarB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AACrD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;AAElF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI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M,MAAM,iBAAiB,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,6BAA6B,CAAC;AAEjH,MAAM,MAAM,qBAAqB,GAC7B,6BAA6B,GAC7B,4BAA4B,GAC5B,yBAAyB,GACzB,4BAA4B,GAC5B,4BAA4B,GAC5B,2BAA2B,CAAC;AAEhC,MAAM,MAAM,uBAAuB,GAC/B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,mBAAmB,EAAE,OAAO,mCAAmC,CAAA;CAAE,GAClF;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GACpE;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACtG;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,qBAAqB,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -17,7 +17,8 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var chat_exports = {};
19
19
  __export(chat_exports, {
20
- CHAT_CHANNEL_SLUGS: () => CHAT_CHANNEL_SLUGS
20
+ CHAT_CHANNEL_SLUGS: () => CHAT_CHANNEL_SLUGS,
21
+ CHAT_REALTIME_HEARTBEAT_INTERVAL_MS: () => CHAT_REALTIME_HEARTBEAT_INTERVAL_MS
21
22
  });
22
23
  module.exports = __toCommonJS(chat_exports);
23
24
  const CHAT_CHANNEL_SLUGS = [
@@ -27,14 +28,18 @@ const CHAT_CHANNEL_SLUGS = [
27
28
  "game-review",
28
29
  "purchases",
29
30
  "credit-transactions",
31
+ "subscription-transactions",
30
32
  "prod-alert",
31
33
  "content-report",
32
34
  "user-report",
33
35
  "comment-report",
36
+ "message-report",
34
37
  "improvement-loop",
35
38
  "bot-test"
36
39
  ];
40
+ const CHAT_REALTIME_HEARTBEAT_INTERVAL_MS = 25e3;
37
41
  // Annotate the CommonJS export names for ESM import in node:
38
42
  0 && (module.exports = {
39
- CHAT_CHANNEL_SLUGS
43
+ CHAT_CHANNEL_SLUGS,
44
+ CHAT_REALTIME_HEARTBEAT_INTERVAL_MS
40
45
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playdrop/playdrop-cli",
3
- "version": "0.16.11",
3
+ "version": "0.16.16",
4
4
  "description": "Official Playdrop CLI for publishing browser games, creator apps, and AI-generated game assets on playdrop.ai",
5
5
  "homepage": "https://www.playdrop.ai",
6
6
  "repository": {