@parall/sdk 1.15.1 → 1.17.0

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/src/types.ts CHANGED
@@ -35,6 +35,10 @@ export interface Chat {
35
35
  creator_id: string;
36
36
  created_at: string;
37
37
  updated_at: string;
38
+ archived_at?: string | null;
39
+ deleted_at?: string | null;
40
+ pinned: boolean;
41
+ my_notification_level?: NotificationLevel;
38
42
  }
39
43
 
40
44
  export type ChatMemberRole = 'owner' | 'admin' | 'member';
@@ -71,9 +75,20 @@ export interface ChatMember {
71
75
  user?: User;
72
76
  }
73
77
 
78
+ export interface UpdateChatMemberRequest {
79
+ role?: ChatMemberRole;
80
+ pinned?: boolean;
81
+ notification_level?: NotificationLevel;
82
+ }
83
+
84
+ export interface UnreadEntry {
85
+ count: number;
86
+ mentions: number;
87
+ }
88
+
74
89
  export type MessageType =
75
90
  | 'text'
76
- | 'file'
91
+ | 'file' // deprecated: attachments are now schema-level on Message
77
92
  | 'tool_call' // deprecated: use AgentStep
78
93
  | 'tool_result' // deprecated: use AgentStep
79
94
  | 'approval_card' // deprecated: use 'card' with card_type='approval'
@@ -103,6 +118,9 @@ export interface TextContent {
103
118
  link_previews?: LinkPreview[];
104
119
  }
105
120
 
121
+ /**
122
+ * @deprecated Attachments are now schema-level on Message. Use message.attachments instead.
123
+ */
106
124
  export interface MediaContent {
107
125
  attachment_id: string;
108
126
  file_name: string;
@@ -181,7 +199,6 @@ export interface SystemContent {
181
199
 
182
200
  export type MessageContent =
183
201
  | TextContent
184
- | MediaContent
185
202
  | ToolCallContent
186
203
  | ToolResultContent
187
204
  | ApprovalCardContent
@@ -206,6 +223,7 @@ export interface Message {
206
223
  idempotency_key: string | null;
207
224
  agent_step_id?: string | null;
208
225
  hints?: MessageHints | null;
226
+ attachments?: Attachment[];
209
227
  }
210
228
 
211
229
  export interface Attachment {
@@ -215,11 +233,9 @@ export interface Attachment {
215
233
  file_name: string;
216
234
  file_size: number;
217
235
  mime_type: string;
218
- storage_key: string;
219
236
  status: 'pending' | 'uploaded';
220
237
  width: number | null;
221
238
  height: number | null;
222
- thumbnail_key: string | null;
223
239
  created_at: string;
224
240
  }
225
241
 
@@ -259,7 +275,7 @@ export interface OrgMember {
259
275
 
260
276
  // Invitation
261
277
 
262
- export type InvitationStatus = 'pending' | 'accepted' | 'declined';
278
+ export type InvitationStatus = 'pending' | 'accepted' | 'declined' | 'revoked';
263
279
 
264
280
  export interface OrgInvitation {
265
281
  id: string;
@@ -383,6 +399,7 @@ export interface MessageHints {
383
399
  export interface SendMessageRequest {
384
400
  message_type: MessageType;
385
401
  content: MessageContent;
402
+ attachment_ids?: string[];
386
403
  thread_root_id?: string;
387
404
  idempotency_key?: string;
388
405
  agent_step_id?: string;
@@ -393,6 +410,7 @@ export interface SendDirectMessageRequest {
393
410
  user_id: string;
394
411
  message_type: MessageType;
395
412
  content: MessageContent;
413
+ attachment_ids?: string[];
396
414
  thread_root_id?: string;
397
415
  idempotency_key?: string;
398
416
  agent_step_id?: string;
@@ -486,6 +504,9 @@ export interface FileUrlResponse {
486
504
  expires_in: number;
487
505
  width?: number;
488
506
  height?: number;
507
+ file_name: string;
508
+ file_size: number;
509
+ mime_type: string;
489
510
  }
490
511
 
491
512
  // ============================================================
@@ -518,6 +539,15 @@ export interface Task {
518
539
  started_at: string | null;
519
540
  completed_at: string | null;
520
541
  canceled_at: string | null;
542
+ archived_at?: string | null;
543
+ deleted_at?: string | null;
544
+ }
545
+
546
+ export interface TaskWatcher {
547
+ task_id: string;
548
+ user_id: string;
549
+ created_at: string;
550
+ user?: User;
521
551
  }
522
552
 
523
553
  /** Content shape for system messages that project issue operations into chat. */
@@ -950,6 +980,7 @@ export interface MessageNewData {
950
980
  idempotency_key?: string | null;
951
981
  agent_step_id?: string | null;
952
982
  hints?: MessageHints | null;
983
+ attachments?: Attachment[];
953
984
  }
954
985
 
955
986
  export interface MessagePatchData {
@@ -983,7 +1014,7 @@ export interface ChatCreatedData extends Chat {}
983
1014
 
984
1015
  export interface ChatUpdateData {
985
1016
  chat_id: string;
986
- changes: Partial<Pick<Chat, 'name' | 'avatar_url' | 'description' | 'agent_routing_mode' | 'last_message_at' | 'last_message_preview' | 'last_message_sender'>>;
1017
+ changes: Partial<Pick<Chat, 'name' | 'avatar_url' | 'description' | 'agent_routing_mode' | 'last_message_at' | 'last_message_preview' | 'last_message_sender' | 'archived_at' | 'deleted_at'>>;
987
1018
  }
988
1019
 
989
1020
  export interface ChatDeletedData {
@@ -1146,6 +1177,41 @@ export interface AgentStepNewData extends AgentStep {}
1146
1177
  export type WikiChangesetCreatedData = WikiChangeset & { org_id: string };
1147
1178
  export type WikiChangesetUpdatedData = WikiChangeset & { org_id: string };
1148
1179
 
1180
+ // Wiki Comment
1181
+
1182
+ // Unified Comment (replaces TaskComment and WikiComment)
1183
+
1184
+ export interface Comment {
1185
+ id: string;
1186
+ org_id: string;
1187
+ target_uri: string;
1188
+ parent_id?: string | null;
1189
+ author_id: string;
1190
+ body: string;
1191
+ mentions?: Mention[];
1192
+ agent_step_id?: string | null;
1193
+ created_at: string;
1194
+ updated_at: string;
1195
+ author?: User;
1196
+ }
1197
+
1198
+ export interface CreateCommentRequest {
1199
+ target_uri: string;
1200
+ body: string;
1201
+ }
1202
+
1203
+ export interface UpdateCommentRequest {
1204
+ body: string;
1205
+ }
1206
+
1207
+ export type CommentCreatedData = Comment;
1208
+ export type CommentUpdatedData = Comment;
1209
+ export interface CommentDeletedData {
1210
+ comment_id: string;
1211
+ target_uri: string;
1212
+ org_id: string;
1213
+ }
1214
+
1149
1215
  // ============================================================
1150
1216
  // Inbox Types
1151
1217
  // ============================================================
@@ -1262,10 +1328,14 @@ export type WsEventMap = {
1262
1328
  'invitation.new': InvitationNewEventData;
1263
1329
  'invitation.accepted': InvitationAcceptedEventData;
1264
1330
  'invitation.declined': InvitationDeclinedEventData;
1331
+ 'invitation.revoked': InvitationRevokedEventData;
1265
1332
  'agent_config.update': AgentConfigUpdateData;
1266
1333
  'presence.update': PresenceUpdateData;
1267
1334
  'wiki.changeset.created': WikiChangesetCreatedData;
1268
1335
  'wiki.changeset.updated': WikiChangesetUpdatedData;
1336
+ 'comment.created': CommentCreatedData;
1337
+ 'comment.updated': CommentUpdatedData;
1338
+ 'comment.deleted': CommentDeletedData;
1269
1339
  'notification.alert': NotificationAlertData;
1270
1340
  'inbox.new': InboxNewData;
1271
1341
  'inbox.update': InboxUpdateData;
@@ -1298,6 +1368,11 @@ export interface InvitationDeclinedEventData {
1298
1368
  email: string;
1299
1369
  }
1300
1370
 
1371
+ export interface InvitationRevokedEventData {
1372
+ invitation_id: string;
1373
+ org_id: string;
1374
+ }
1375
+
1301
1376
  // ============================================================
1302
1377
  // Platform Config Types
1303
1378
  // ============================================================
@@ -1363,10 +1438,11 @@ export interface ResolvedRef {
1363
1438
  heading_path?: string[];
1364
1439
  symbol_name?: string;
1365
1440
 
1366
- // Task comment fields
1441
+ // Comment fields (unified + legacy task comment)
1367
1442
  comment_author?: string;
1368
1443
  comment_body?: string;
1369
1444
  task_id?: string;
1445
+ target_uri?: string;
1370
1446
  }
1371
1447
 
1372
1448
  export interface ResolveRefsResponse {
@@ -1404,3 +1480,40 @@ export interface BrokenRefsResponse {
1404
1480
  broken_refs: BrokenRefItem[];
1405
1481
  total: number;
1406
1482
  }
1483
+
1484
+ // Runtime auth — OAuth login flow for hosted non-openclaw agents (today: Claude).
1485
+ export type RuntimeAuthMethod = 'claude_login';
1486
+ export type RuntimeAuthStatus = 'pending' | 'completed' | 'failed' | 'expired';
1487
+
1488
+ export interface RuntimeAuthSession {
1489
+ id: string;
1490
+ agent_id: string;
1491
+ machine_id: string;
1492
+ runtime_type: string;
1493
+ method: RuntimeAuthMethod;
1494
+ status: RuntimeAuthStatus;
1495
+ login_url: string;
1496
+ verification_code?: string | null;
1497
+ connected_email?: string | null;
1498
+ error?: string | null;
1499
+ expires_at: string;
1500
+ created_at: string;
1501
+ updated_at: string;
1502
+ }
1503
+
1504
+ export type RuntimeAuthConnectedState =
1505
+ | { status: 'disconnected' }
1506
+ | {
1507
+ status: 'connected';
1508
+ connected_email?: string | null;
1509
+ connected_at: string;
1510
+ session_id: string;
1511
+ };
1512
+
1513
+ export interface StartRuntimeAuthSessionRequest {
1514
+ method?: RuntimeAuthMethod;
1515
+ }
1516
+
1517
+ export interface CompleteRuntimeAuthSessionRequest {
1518
+ code: string;
1519
+ }