@parall/sdk 1.48.0 → 1.50.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/dist/client.d.ts +80 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +125 -3
- package/dist/constants.d.ts +14 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +23 -0
- package/dist/types.d.ts +348 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +26 -0
- package/package.json +1 -1
- package/src/client.ts +233 -4
- package/src/constants.ts +32 -0
- package/src/types.ts +409 -0
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAGlC,eAAO,MAAM,SAAS,aAAa,CAAC;AAGpC,eAAO,MAAM,SAAS,aAAa,CAAC;AAMpC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmMlB,CAAC;AAIX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuEzB,CAAC;AAKX;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;CAIpC,CAAC;AAOX,wBAAgB,mCAAmC,CACjD,KAAK,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EA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M;8CAII,MAAM,UAAU,MAAM;uCAE7B,MAAM,UAAU,MAAM;sCAEvB,MAAM,UAAU,MAAM;wCAKpB,MAAM;uCACP,MAAM;0CACH,MAAM;CAC3B,CAAC;AAEX;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI/E;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjE;AAGD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFZ,CAAC;AA6DX,eAAO,MAAM,cAAc;4BACV,MAAM;+BACH,MAAM,UAAU,MAAM;gCACrB,MAAM,QAAQ,MAAM;mCAGjB,MAAM,QAAQ,MAAM,OAAO,MAAM,mBAAmB,MAAM,EAAE;qCAKxE,MAAM,QACR,MAAM,OACP,MAAM,aACA,MAAM,WACR,MAAM;qCAKO,MAAM,QAAQ,MAAM,OAAO,MAAM,SAAS,MAAM,OAAO,MAAM;CAE7E,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -362,6 +362,12 @@ export const ENDPOINTS = {
|
|
|
362
362
|
ORG_MEMBER: (orgId, userId) => `${API_BASE}/orgs/${orgId}/members/${userId}`,
|
|
363
363
|
ORG_MEMBER_CHATS: (orgId, memberId) => `${API_BASE}/orgs/${orgId}/members/${memberId}/chats`,
|
|
364
364
|
ORG_MEMBER_TASKS: (orgId, memberId) => `${API_BASE}/orgs/${orgId}/members/${memberId}/tasks`,
|
|
365
|
+
// Org-scoped public profile (title / description). GET readable by every
|
|
366
|
+
// active member; PATCH is CAS-guarded (expected_version).
|
|
367
|
+
ORG_MEMBER_PROFILE: (orgId, userId) => `${API_BASE}/orgs/${orgId}/members/${userId}/profile`,
|
|
368
|
+
// Private agent Instructions — visibility gated server-side
|
|
369
|
+
// (agent self + Human org admin/owner). Never cached.
|
|
370
|
+
AGENT_INSTRUCTIONS: (orgId, agentId) => `${API_BASE}/orgs/${orgId}/agents/${agentId}/instructions`,
|
|
365
371
|
REF_SEARCH: (orgId) => `${API_BASE}/orgs/${orgId}/refs/search`,
|
|
366
372
|
// Direct messages (org-scoped, atomic find-or-create + send)
|
|
367
373
|
DM: (orgId) => `${API_BASE}/orgs/${orgId}/dm`,
|
|
@@ -385,6 +391,8 @@ export const ENDPOINTS = {
|
|
|
385
391
|
MESSAGE_WATCH: (id) => `${API_BASE}/messages/${id}/watch`,
|
|
386
392
|
MESSAGE_WATCHERS: (id) => `${API_BASE}/messages/${id}/watchers`,
|
|
387
393
|
MESSAGE_WATCHING: (id) => `${API_BASE}/messages/${id}/watching`,
|
|
394
|
+
MESSAGE_REACTIONS: (id) => `${API_BASE}/messages/${id}/reactions`,
|
|
395
|
+
MESSAGE_REACTION: (id, emoji) => `${API_BASE}/messages/${id}/reactions/${encodeURIComponent(emoji)}`,
|
|
388
396
|
// Upload (org-scoped)
|
|
389
397
|
UPLOAD_PRESIGN: (orgId) => `${API_BASE}/orgs/${orgId}/upload/presign`,
|
|
390
398
|
UPLOAD_COMPLETE: (orgId) => `${API_BASE}/orgs/${orgId}/upload/complete`,
|
|
@@ -622,11 +630,13 @@ export const ENDPOINTS = {
|
|
|
622
630
|
UNREAD: `${API_BASE}/me/unread`,
|
|
623
631
|
ORG_UNREAD: (orgId) => `${API_BASE}/orgs/${orgId}/unread`,
|
|
624
632
|
CHAT_READ: (orgId, chatId) => `${API_BASE}/orgs/${orgId}/chats/${chatId}/read`,
|
|
633
|
+
CHAT_READ_ALL: (orgId, chatId) => `${API_BASE}/orgs/${orgId}/chats/${chatId}/read-all`,
|
|
625
634
|
THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
|
|
626
635
|
THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
|
|
627
636
|
// References (org-scoped)
|
|
628
637
|
REFS_RESOLVE: (orgId) => `${API_BASE}/orgs/${orgId}/refs/resolve`,
|
|
629
638
|
REFS_BACKLINKS: (orgId) => `${API_BASE}/orgs/${orgId}/refs/backlinks`,
|
|
639
|
+
REFS_OUTBOUND: (orgId) => `${API_BASE}/orgs/${orgId}/refs/outbound`,
|
|
630
640
|
REFS_GRAPH: (orgId) => `${API_BASE}/orgs/${orgId}/refs/graph`,
|
|
631
641
|
REFS_CHECK: (orgId) => `${API_BASE}/orgs/${orgId}/refs/check`,
|
|
632
642
|
// Platform config (agent-scoped, not org-scoped)
|
|
@@ -641,6 +651,11 @@ export const ENDPOINTS = {
|
|
|
641
651
|
SEARCH: (orgId) => `${API_BASE}/orgs/${orgId}/search`,
|
|
642
652
|
// Feature flags (org-scoped, server-evaluated)
|
|
643
653
|
FEATURE_FLAGS: (orgId) => `${API_BASE}/orgs/${orgId}/feature-flags`,
|
|
654
|
+
// Team templates (org-scoped, owner/admin only)
|
|
655
|
+
TEMPLATES: (orgId) => `${API_BASE}/orgs/${orgId}/templates`,
|
|
656
|
+
TEMPLATE: (orgId, templateId) => `${API_BASE}/orgs/${orgId}/templates/${templateId}`,
|
|
657
|
+
TEMPLATE_DEPLOYMENTS: (orgId) => `${API_BASE}/orgs/${orgId}/template-deployments`,
|
|
658
|
+
TEMPLATE_DEPLOYMENT: (orgId, deploymentId) => `${API_BASE}/orgs/${orgId}/template-deployments/${deploymentId}`,
|
|
644
659
|
// Billing & Credits (org-scoped)
|
|
645
660
|
BILLING: (orgId) => `${API_BASE}/orgs/${orgId}/billing`,
|
|
646
661
|
BILLING_TRANSACTIONS: (orgId) => `${API_BASE}/orgs/${orgId}/billing/transactions`,
|
|
@@ -690,7 +705,13 @@ export const ENDPOINTS = {
|
|
|
690
705
|
ORG_EDGE_DEVICE_UNREGISTER: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/unregister`,
|
|
691
706
|
ORG_EDGE_ONBOARDING: (orgId) => `/api/v1/orgs/${orgId}/edge/onboarding`,
|
|
692
707
|
ORG_EDGE_PROFILES: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles`,
|
|
708
|
+
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
709
|
+
ORG_EDGE_PROFILE_PROXY: (orgId, edgeId, profileName) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/proxy`,
|
|
693
710
|
ORG_EDGE_EXEC: (orgId) => `/api/v1/orgs/${orgId}/edge/exec`,
|
|
711
|
+
// Cloud Edge live viewer command (V1b) — api-server, gated on cap:edge-viewer.
|
|
712
|
+
// Same request/reply shape as the v2 browser-profile viewer, on the v3 edge
|
|
713
|
+
// pipe. Additive: does NOT replace BROWSER_PROFILE_VIEWER_COMMAND.
|
|
714
|
+
ORG_EDGE_VIEWER_COMMAND: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/viewer/command`,
|
|
694
715
|
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
695
716
|
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
|
|
696
717
|
// Clip registry (v3, org-scoped, served by api-server — `crg_` entries; the
|
|
@@ -748,6 +769,7 @@ export const WS_EVENTS = {
|
|
|
748
769
|
MESSAGE_PATCH: 'message.patch',
|
|
749
770
|
MESSAGE_EDIT: 'message.edit',
|
|
750
771
|
MESSAGE_DELETE: 'message.delete',
|
|
772
|
+
MESSAGE_REACTION_UPDATED: 'message.reaction.updated',
|
|
751
773
|
TYPING_UPDATE: 'typing.update',
|
|
752
774
|
CHAT_UPDATE: 'chat.update',
|
|
753
775
|
CHAT_DELETED: 'chat.deleted',
|
|
@@ -788,6 +810,7 @@ export const WS_EVENTS = {
|
|
|
788
810
|
INBOX_UPDATE: 'inbox.update',
|
|
789
811
|
INBOX_BULK_UPDATE: 'inbox.bulk_update',
|
|
790
812
|
READ_POSITION_UPDATED: 'read_position.updated',
|
|
813
|
+
THREAD_READ_POSITION_UPDATED: 'thread_read_position.updated',
|
|
791
814
|
DISPATCH_NEW: 'dispatch.new',
|
|
792
815
|
DISPATCH_RECEIVED: 'dispatch.received',
|
|
793
816
|
DISPATCH_RESOLVED: 'dispatch.resolved',
|
package/dist/types.d.ts
CHANGED
|
@@ -93,6 +93,12 @@ export interface TransferChatOwnershipRequest {
|
|
|
93
93
|
export interface UnreadEntry {
|
|
94
94
|
count: number;
|
|
95
95
|
mentions: number;
|
|
96
|
+
/** Share of `count` contributed by unread thread replies (only present when
|
|
97
|
+
* the unread fetch opted into `include_thread_replies`). Top-level timeline
|
|
98
|
+
* unread = count - (thread_count ?? 0). */
|
|
99
|
+
thread_count?: number;
|
|
100
|
+
/** Share of `mentions` contributed by unread thread replies. */
|
|
101
|
+
thread_mentions?: number;
|
|
96
102
|
since?: string;
|
|
97
103
|
}
|
|
98
104
|
export interface ThreadUnreadEntry {
|
|
@@ -102,6 +108,20 @@ export interface ThreadUnreadEntry {
|
|
|
102
108
|
}
|
|
103
109
|
export type MessageType = 'text' | 'file' | 'tool_call' | 'tool_result' | 'approval_card' | 'state_delta' | 'card' | 'system';
|
|
104
110
|
export declare const MENTION_ALL_USER_ID = "all";
|
|
111
|
+
/**
|
|
112
|
+
* Member-type-filtered variants of the @all broadcast mention (group chats
|
|
113
|
+
* only): identical notification semantics, recipient set limited to human /
|
|
114
|
+
* agent members respectively.
|
|
115
|
+
*/
|
|
116
|
+
export declare const MENTION_ALL_HUMANS_USER_ID = "allhuman";
|
|
117
|
+
export declare const MENTION_ALL_AGENTS_USER_ID = "allagent";
|
|
118
|
+
/** True when a mention user_id is a broadcast token rather than a usr_ id. */
|
|
119
|
+
export declare function isBroadcastMentionId(userId: string): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* True when a mention user_id addresses the given viewer — either their own
|
|
122
|
+
* usr_ id, @all, or the typed broadcast matching their user type.
|
|
123
|
+
*/
|
|
124
|
+
export declare function mentionTargetsUser(mentionUserId: string, userId: string, userType: UserType): boolean;
|
|
105
125
|
export interface Mention {
|
|
106
126
|
user_id: string;
|
|
107
127
|
offset: number;
|
|
@@ -211,6 +231,12 @@ export interface Message {
|
|
|
211
231
|
* absent from the stack. A reload re-derives it from the server's view.
|
|
212
232
|
*/
|
|
213
233
|
recent_repliers?: User[];
|
|
234
|
+
/**
|
|
235
|
+
* Per-viewer count of thread replies newer than the viewer's thread read
|
|
236
|
+
* cursor, excluding the viewer's own replies (root only). Populated on
|
|
237
|
+
* top-level list responses; omitted when zero.
|
|
238
|
+
*/
|
|
239
|
+
unread_reply_count?: number;
|
|
214
240
|
edited_at: string | null;
|
|
215
241
|
deleted_at: string | null;
|
|
216
242
|
created_at: string;
|
|
@@ -219,6 +245,25 @@ export interface Message {
|
|
|
219
245
|
agent_session_id?: string | null;
|
|
220
246
|
hints?: MessageHints | null;
|
|
221
247
|
attachments?: Attachment[];
|
|
248
|
+
reactions?: ReactionSummary[];
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Aggregated reactions for one emoji on a message.
|
|
252
|
+
*
|
|
253
|
+
* `has_reacted` is viewer-relative in REST responses. In
|
|
254
|
+
* `message.reaction.updated` WS broadcasts it is computed for the ACTOR who
|
|
255
|
+
* triggered the toggle — subscribers must recompute their own state from
|
|
256
|
+
* `user_ids` (see docs/engineering-design/ws-protocol.md).
|
|
257
|
+
*/
|
|
258
|
+
export interface ReactionSummary {
|
|
259
|
+
emoji: string;
|
|
260
|
+
count: number;
|
|
261
|
+
user_ids: string[];
|
|
262
|
+
has_reacted: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface ToggleReactionResponse {
|
|
265
|
+
added: boolean;
|
|
266
|
+
reactions: ReactionSummary[];
|
|
222
267
|
}
|
|
223
268
|
export interface Attachment {
|
|
224
269
|
id: string;
|
|
@@ -297,8 +342,35 @@ export interface OrgMember {
|
|
|
297
342
|
user_id: string;
|
|
298
343
|
role: OrgMemberRole;
|
|
299
344
|
joined_at: string;
|
|
345
|
+
title: string;
|
|
346
|
+
description: string;
|
|
347
|
+
profile_version: number;
|
|
300
348
|
user?: User;
|
|
301
349
|
}
|
|
350
|
+
export interface MemberProfile {
|
|
351
|
+
user_id: string;
|
|
352
|
+
display_name: string;
|
|
353
|
+
type: UserType;
|
|
354
|
+
title: string;
|
|
355
|
+
description: string;
|
|
356
|
+
profile_version: number;
|
|
357
|
+
}
|
|
358
|
+
export interface UpdateMemberProfileRequest {
|
|
359
|
+
title: string;
|
|
360
|
+
description: string;
|
|
361
|
+
expected_version: number;
|
|
362
|
+
}
|
|
363
|
+
export interface AgentInstructions {
|
|
364
|
+
agent_user_id: string;
|
|
365
|
+
instructions: string;
|
|
366
|
+
version: number;
|
|
367
|
+
updated_at?: string;
|
|
368
|
+
updated_by?: string;
|
|
369
|
+
}
|
|
370
|
+
export interface UpdateAgentInstructionsRequest {
|
|
371
|
+
instructions: string;
|
|
372
|
+
expected_version: number;
|
|
373
|
+
}
|
|
302
374
|
export interface Team {
|
|
303
375
|
id: string;
|
|
304
376
|
org_id: string;
|
|
@@ -423,6 +495,140 @@ export interface WsTicketResponse {
|
|
|
423
495
|
export interface FeatureFlagsResponse {
|
|
424
496
|
flags: Record<string, boolean | string | number>;
|
|
425
497
|
}
|
|
498
|
+
export type TemplateParameterInputType = 'text' | 'select' | 'multi';
|
|
499
|
+
export type TemplateParameterValue = string | string[];
|
|
500
|
+
export interface TemplateParameter {
|
|
501
|
+
key: string;
|
|
502
|
+
label: string;
|
|
503
|
+
input_type: TemplateParameterInputType;
|
|
504
|
+
options?: string[];
|
|
505
|
+
default?: TemplateParameterValue;
|
|
506
|
+
required?: boolean;
|
|
507
|
+
}
|
|
508
|
+
export interface TemplateDependency {
|
|
509
|
+
type: 'clip';
|
|
510
|
+
ref: string;
|
|
511
|
+
required?: boolean;
|
|
512
|
+
degraded_note?: string;
|
|
513
|
+
}
|
|
514
|
+
export interface TemplateAgentPublicProfile {
|
|
515
|
+
title: string;
|
|
516
|
+
description: string;
|
|
517
|
+
}
|
|
518
|
+
export interface TemplateAgentSpec {
|
|
519
|
+
key: string;
|
|
520
|
+
display_name: string;
|
|
521
|
+
public_profile: TemplateAgentPublicProfile;
|
|
522
|
+
instructions: string;
|
|
523
|
+
runtime_type?: string;
|
|
524
|
+
model?: string | null;
|
|
525
|
+
compute?: {
|
|
526
|
+
machine_type: 'cloud';
|
|
527
|
+
machine_label?: string;
|
|
528
|
+
} | null;
|
|
529
|
+
dependencies?: TemplateDependency[];
|
|
530
|
+
}
|
|
531
|
+
export interface TemplateWorkspaceScaffold {
|
|
532
|
+
channels: Array<{
|
|
533
|
+
purpose?: string;
|
|
534
|
+
name_pattern: string;
|
|
535
|
+
}>;
|
|
536
|
+
schedules?: Array<{
|
|
537
|
+
agent_key: string;
|
|
538
|
+
name: string;
|
|
539
|
+
cron: string;
|
|
540
|
+
description: string;
|
|
541
|
+
}>;
|
|
542
|
+
project?: {
|
|
543
|
+
name_pattern: string;
|
|
544
|
+
} | null;
|
|
545
|
+
}
|
|
546
|
+
export interface TemplateDefinition {
|
|
547
|
+
name: string;
|
|
548
|
+
mission: string;
|
|
549
|
+
scope_tags?: string[];
|
|
550
|
+
outcomes?: string[];
|
|
551
|
+
agents: TemplateAgentSpec[];
|
|
552
|
+
workspace_scaffold: TemplateWorkspaceScaffold;
|
|
553
|
+
parameters?: TemplateParameter[];
|
|
554
|
+
}
|
|
555
|
+
export interface TemplateCatalogAgentSpec {
|
|
556
|
+
key: string;
|
|
557
|
+
display_name: string;
|
|
558
|
+
public_profile: TemplateAgentPublicProfile;
|
|
559
|
+
dependencies?: Array<Pick<TemplateDependency, 'type' | 'ref' | 'required'>>;
|
|
560
|
+
}
|
|
561
|
+
export interface TemplateCatalogDefinition {
|
|
562
|
+
name: string;
|
|
563
|
+
mission: string;
|
|
564
|
+
scope_tags?: string[];
|
|
565
|
+
outcomes?: string[];
|
|
566
|
+
agents: TemplateCatalogAgentSpec[];
|
|
567
|
+
parameters?: TemplateParameter[];
|
|
568
|
+
}
|
|
569
|
+
export interface TemplateDependencyMetadata {
|
|
570
|
+
type: 'clip';
|
|
571
|
+
ref: string;
|
|
572
|
+
display_name: string;
|
|
573
|
+
}
|
|
574
|
+
export interface Template {
|
|
575
|
+
id: string;
|
|
576
|
+
version: string;
|
|
577
|
+
/** Opaque token pinning the version + exact definition shown to the user. */
|
|
578
|
+
revision: string;
|
|
579
|
+
name: string;
|
|
580
|
+
definition: TemplateCatalogDefinition;
|
|
581
|
+
dependency_metadata?: TemplateDependencyMetadata[];
|
|
582
|
+
status: 'active' | 'archived';
|
|
583
|
+
created_at: string;
|
|
584
|
+
updated_at: string;
|
|
585
|
+
}
|
|
586
|
+
export interface DeployTemplateRequest {
|
|
587
|
+
template_id: string;
|
|
588
|
+
template_revision: string;
|
|
589
|
+
parameter_values?: Record<string, TemplateParameterValue>;
|
|
590
|
+
}
|
|
591
|
+
export type TemplateDeploymentAgentState = 'up' | 'provisioning' | 'error';
|
|
592
|
+
export interface TemplateDeploymentReport {
|
|
593
|
+
deployment_id: string;
|
|
594
|
+
status: 'deployed';
|
|
595
|
+
team: {
|
|
596
|
+
name: string;
|
|
597
|
+
main_chat_id: string;
|
|
598
|
+
};
|
|
599
|
+
agents: Array<{
|
|
600
|
+
key: string;
|
|
601
|
+
agent_id: string;
|
|
602
|
+
display_name: string;
|
|
603
|
+
public_profile: TemplateAgentPublicProfile;
|
|
604
|
+
runtime: string;
|
|
605
|
+
state: TemplateDeploymentAgentState;
|
|
606
|
+
}>;
|
|
607
|
+
resources: {
|
|
608
|
+
chats: Array<{
|
|
609
|
+
id: string;
|
|
610
|
+
name: string;
|
|
611
|
+
}>;
|
|
612
|
+
schedules: Array<{
|
|
613
|
+
id: string;
|
|
614
|
+
name: string;
|
|
615
|
+
}>;
|
|
616
|
+
project_id?: string;
|
|
617
|
+
};
|
|
618
|
+
dependencies: Array<{
|
|
619
|
+
type: 'clip';
|
|
620
|
+
ref: string;
|
|
621
|
+
name?: string;
|
|
622
|
+
required: boolean;
|
|
623
|
+
connected: boolean;
|
|
624
|
+
declared_by: string[];
|
|
625
|
+
}>;
|
|
626
|
+
kickoff: {
|
|
627
|
+
sent: boolean;
|
|
628
|
+
message_id?: string;
|
|
629
|
+
error?: string;
|
|
630
|
+
};
|
|
631
|
+
}
|
|
426
632
|
export interface RegisterRequest {
|
|
427
633
|
email: string;
|
|
428
634
|
password: string;
|
|
@@ -543,6 +749,8 @@ export interface CreateAgentRequest {
|
|
|
543
749
|
thinking_effort?: string;
|
|
544
750
|
agent_permissions?: string[];
|
|
545
751
|
runtime_type?: string;
|
|
752
|
+
instructions?: string;
|
|
753
|
+
/** @deprecated Same-value alias of `instructions`; loses when both are set. */
|
|
546
754
|
description?: string;
|
|
547
755
|
machine_type?: string;
|
|
548
756
|
machine_label?: string;
|
|
@@ -633,6 +841,8 @@ export interface UpdateAgentRequest {
|
|
|
633
841
|
agent_model?: string;
|
|
634
842
|
model_management?: string;
|
|
635
843
|
agent_permissions?: string[];
|
|
844
|
+
instructions?: string;
|
|
845
|
+
/** @deprecated Same-value alias of `instructions`; loses when both are set. */
|
|
636
846
|
description?: string;
|
|
637
847
|
thinking_effort?: string;
|
|
638
848
|
}
|
|
@@ -731,7 +941,16 @@ export interface AgentProfile {
|
|
|
731
941
|
machine_id: string | null;
|
|
732
942
|
hosting_mode?: 'hosted' | 'self_hosted' | 'platform_runtime';
|
|
733
943
|
runtime_type: string;
|
|
944
|
+
/**
|
|
945
|
+
* @deprecated Alias of `instructions` kept for pre-rename readers; the
|
|
946
|
+
* server keeps both byte-identical. Use `instructions` (and the
|
|
947
|
+
* dedicated instructions endpoints) instead.
|
|
948
|
+
*/
|
|
734
949
|
description: string | null;
|
|
950
|
+
instructions?: string | null;
|
|
951
|
+
instructions_version?: number;
|
|
952
|
+
instructions_updated_at?: string | null;
|
|
953
|
+
instructions_updated_by?: string | null;
|
|
735
954
|
thinking_effort: string | null;
|
|
736
955
|
run_config?: RunConfig;
|
|
737
956
|
created_by: string;
|
|
@@ -745,6 +964,7 @@ export interface AgentPresence {
|
|
|
745
964
|
}
|
|
746
965
|
export interface AgentWithRuntime extends User {
|
|
747
966
|
agent_profile?: AgentProfile | null;
|
|
967
|
+
public_profile?: MemberProfile | null;
|
|
748
968
|
machine?: Machine | null;
|
|
749
969
|
presence?: AgentPresence | null;
|
|
750
970
|
}
|
|
@@ -913,6 +1133,13 @@ export interface Task {
|
|
|
913
1133
|
seq_number: number | null;
|
|
914
1134
|
identifier: string | null;
|
|
915
1135
|
sort_order: number;
|
|
1136
|
+
/**
|
|
1137
|
+
* Planned start date, YYYY-MM-DD (calendar date, timezone-free) — the
|
|
1138
|
+
* planned schedule's left edge, independent of started_at (when work
|
|
1139
|
+
* actually began). Absent on servers older than migration 145. When both
|
|
1140
|
+
* dates are set, planned_start_date <= due_date.
|
|
1141
|
+
*/
|
|
1142
|
+
planned_start_date?: string | null;
|
|
916
1143
|
/** Planned completion date, YYYY-MM-DD (calendar date, timezone-free). */
|
|
917
1144
|
due_date: string | null;
|
|
918
1145
|
assignee?: User;
|
|
@@ -992,6 +1219,8 @@ export interface CreateTaskRequest {
|
|
|
992
1219
|
project_id?: string;
|
|
993
1220
|
source_chat_id?: string;
|
|
994
1221
|
sort_order?: number;
|
|
1222
|
+
/** Planned start date, YYYY-MM-DD. Must be <= due_date when both are set. */
|
|
1223
|
+
planned_start_date?: string;
|
|
995
1224
|
/** Planned completion date, YYYY-MM-DD. */
|
|
996
1225
|
due_date?: string;
|
|
997
1226
|
}
|
|
@@ -1011,6 +1240,12 @@ export interface UpdateTaskRequest {
|
|
|
1011
1240
|
* full column. Mutually exclusive with sort_order.
|
|
1012
1241
|
*/
|
|
1013
1242
|
placement?: 'end';
|
|
1243
|
+
/**
|
|
1244
|
+
* Planned start date, YYYY-MM-DD; explicit null clears it. The post-patch
|
|
1245
|
+
* state must satisfy planned_start_date <= due_date when both are set
|
|
1246
|
+
* (400 INVALID_DATE_RANGE otherwise).
|
|
1247
|
+
*/
|
|
1248
|
+
planned_start_date?: string | null;
|
|
1014
1249
|
/** Planned completion date, YYYY-MM-DD; explicit null clears it. */
|
|
1015
1250
|
due_date?: string | null;
|
|
1016
1251
|
/**
|
|
@@ -1767,6 +2002,19 @@ export interface MessageDeleteData {
|
|
|
1767
2002
|
chat_id: string;
|
|
1768
2003
|
thread_root_id?: string;
|
|
1769
2004
|
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Payload of the `message.reaction.updated` WS broadcast. `reactions` is the
|
|
2007
|
+
* full aggregated snapshot for the message; its `has_reacted` flags are
|
|
2008
|
+
* actor-relative (see {@link ReactionSummary}) — recompute from `user_ids`.
|
|
2009
|
+
*/
|
|
2010
|
+
export interface ReactionUpdatedData {
|
|
2011
|
+
message_id: string;
|
|
2012
|
+
chat_id: string;
|
|
2013
|
+
emoji: string;
|
|
2014
|
+
user_id: string;
|
|
2015
|
+
added: boolean;
|
|
2016
|
+
reactions: ReactionSummary[];
|
|
2017
|
+
}
|
|
1770
2018
|
export interface TypingUpdateData {
|
|
1771
2019
|
chat_id: string;
|
|
1772
2020
|
thread_root_id: string | null;
|
|
@@ -2510,6 +2758,12 @@ export interface ReadPositionUpdateData {
|
|
|
2510
2758
|
chat_id: string;
|
|
2511
2759
|
last_read_message_id: string;
|
|
2512
2760
|
}
|
|
2761
|
+
/** Per-thread read cursor sync across the user's devices. */
|
|
2762
|
+
export interface ThreadReadPositionUpdateData {
|
|
2763
|
+
chat_id: string;
|
|
2764
|
+
thread_root_id: string;
|
|
2765
|
+
last_read_reply_id: string;
|
|
2766
|
+
}
|
|
2513
2767
|
export interface NotificationAlertData {
|
|
2514
2768
|
title: string;
|
|
2515
2769
|
body: string;
|
|
@@ -2523,6 +2777,7 @@ export type WsEventMap = {
|
|
|
2523
2777
|
'message.patch': MessagePatchData;
|
|
2524
2778
|
'message.edit': MessageEditData;
|
|
2525
2779
|
'message.delete': MessageDeleteData;
|
|
2780
|
+
'message.reaction.updated': ReactionUpdatedData;
|
|
2526
2781
|
'typing.update': TypingUpdateData;
|
|
2527
2782
|
'chat.created': ChatCreatedData;
|
|
2528
2783
|
'chat.update': ChatUpdateData;
|
|
@@ -2569,6 +2824,7 @@ export type WsEventMap = {
|
|
|
2569
2824
|
'inbox.update': InboxUpdateData;
|
|
2570
2825
|
'inbox.bulk_update': InboxBulkUpdateData;
|
|
2571
2826
|
'read_position.updated': ReadPositionUpdateData;
|
|
2827
|
+
'thread_read_position.updated': ThreadReadPositionUpdateData;
|
|
2572
2828
|
'dispatch.new': DispatchNewData;
|
|
2573
2829
|
'dispatch.received': DispatchReceivedData;
|
|
2574
2830
|
'dispatch.resolved': DispatchResolvedData;
|
|
@@ -2735,6 +2991,40 @@ export interface BacklinksResponse {
|
|
|
2735
2991
|
backlinks: BacklinkItem[];
|
|
2736
2992
|
next_cursor?: string;
|
|
2737
2993
|
}
|
|
2994
|
+
/**
|
|
2995
|
+
* Request for POST /orgs/{orgId}/refs/outbound — two mutually exclusive
|
|
2996
|
+
* forms, modeled as a union so an invalid mixed shape fails at compile time:
|
|
2997
|
+
* `thread_root_id` resolves a thread's message set server-side (root + ALL
|
|
2998
|
+
* non-deleted replies — the client's reply window may be partial), while
|
|
2999
|
+
* `source_type` + `source_ids` lists explicit sources (max 500; v1 accepts
|
|
3000
|
+
* only `message` sources).
|
|
3001
|
+
*/
|
|
3002
|
+
export type OutboundRefsRequest = {
|
|
3003
|
+
thread_root_id: string;
|
|
3004
|
+
source_type?: never;
|
|
3005
|
+
source_ids?: never;
|
|
3006
|
+
} | {
|
|
3007
|
+
source_type: string;
|
|
3008
|
+
source_ids: string[];
|
|
3009
|
+
thread_root_id?: never;
|
|
3010
|
+
};
|
|
3011
|
+
/** One raw ref_links row; dedupe/grouping is a client concern. */
|
|
3012
|
+
export interface OutboundRefItem {
|
|
3013
|
+
uri: string;
|
|
3014
|
+
target_type: string;
|
|
3015
|
+
target_id: string;
|
|
3016
|
+
target_path?: string;
|
|
3017
|
+
target_frag?: string;
|
|
3018
|
+
context?: string;
|
|
3019
|
+
source_type: string;
|
|
3020
|
+
source_id: string;
|
|
3021
|
+
position: number;
|
|
3022
|
+
}
|
|
3023
|
+
export interface OutboundRefsResponse {
|
|
3024
|
+
data: OutboundRefItem[];
|
|
3025
|
+
/** Set when the server-side sanity cap dropped the tail of the row set. */
|
|
3026
|
+
truncated?: boolean;
|
|
3027
|
+
}
|
|
2738
3028
|
/**
|
|
2739
3029
|
* One entity in a multi-hop ref-graph traversal (GET /refs/graph). `id`/`uri` are
|
|
2740
3030
|
* the ref_links endpoint identifier: a bare prll:// entity id for most nodes
|
|
@@ -3269,6 +3559,27 @@ export interface BrowserViewerCommandResponse {
|
|
|
3269
3559
|
*/
|
|
3270
3560
|
result: Record<string, unknown> | null;
|
|
3271
3561
|
}
|
|
3562
|
+
/**
|
|
3563
|
+
* Cloud Edge live viewer (V1b, design §6). Same request/reply shape as the v2
|
|
3564
|
+
* browser-profile viewer — the transport-agnostic `BrowserViewer` client drives
|
|
3565
|
+
* either — but a distinct type so the edge viewer surface never depends on the
|
|
3566
|
+
* v2 browser-profile viewer symbols.
|
|
3567
|
+
*/
|
|
3568
|
+
export interface EdgeViewerCommandRequest {
|
|
3569
|
+
/** Correlates a viewer session. Omit on `stream.start`; the server returns one. */
|
|
3570
|
+
session_id?: string;
|
|
3571
|
+
command: string;
|
|
3572
|
+
input?: Record<string, unknown>;
|
|
3573
|
+
}
|
|
3574
|
+
export interface EdgeViewerCommandResponse {
|
|
3575
|
+
session_id: string;
|
|
3576
|
+
/**
|
|
3577
|
+
* Command-specific result. For `stream.start`:
|
|
3578
|
+
* `{ offer_sdp, candidates, ice_servers, streamed_tab_id }`. May be `null` on
|
|
3579
|
+
* the wire (a nil Go result map serializes as JSON null); coalesce to `{}`.
|
|
3580
|
+
*/
|
|
3581
|
+
result: Record<string, unknown> | null;
|
|
3582
|
+
}
|
|
3272
3583
|
export interface GrantBrowserProfileConsentRequest {
|
|
3273
3584
|
clip_id: string;
|
|
3274
3585
|
}
|
|
@@ -3456,6 +3767,43 @@ export interface EdgeBrowserProfile {
|
|
|
3456
3767
|
is_default: boolean;
|
|
3457
3768
|
created_at: string;
|
|
3458
3769
|
updated_at: string;
|
|
3770
|
+
/**
|
|
3771
|
+
* True when the profile has a fixed egress proxy configured (hosted Cloud
|
|
3772
|
+
* Profiles). Presence flag only — endpoint/username/password are readable
|
|
3773
|
+
* exclusively by managers via the dedicated proxy endpoint, and the password
|
|
3774
|
+
* never leaves the server.
|
|
3775
|
+
*/
|
|
3776
|
+
proxy_configured?: boolean;
|
|
3777
|
+
}
|
|
3778
|
+
/**
|
|
3779
|
+
* Sanitized per-profile egress proxy status (hosted Cloud Profiles) — the GET
|
|
3780
|
+
* response and the PUT/DELETE result. NEVER carries the password; `password_set`
|
|
3781
|
+
* is the only trace of it.
|
|
3782
|
+
*/
|
|
3783
|
+
export interface EdgeProfileProxyStatus {
|
|
3784
|
+
configured: boolean;
|
|
3785
|
+
server?: string;
|
|
3786
|
+
username?: string;
|
|
3787
|
+
password_set: boolean;
|
|
3788
|
+
/** Opaque compare-and-swap token for conditional PUT/DELETE. */
|
|
3789
|
+
version: string;
|
|
3790
|
+
/** Authoritative mutation gate; false whenever a non-released lease exists. */
|
|
3791
|
+
can_mutate: boolean;
|
|
3792
|
+
/** Actual lease state blocking a mutation (never inferred from device status). */
|
|
3793
|
+
lease_status?: 'pending' | 'assigned' | 'active' | 'releasing' | 'repair';
|
|
3794
|
+
/** Suggested delay before re-reading authoritative state. */
|
|
3795
|
+
retry_after_seconds?: number;
|
|
3796
|
+
}
|
|
3797
|
+
/**
|
|
3798
|
+
* PUT body for a profile's egress proxy: the FULL triple every time (no
|
|
3799
|
+
* tri-state merge — the stored blob is encrypted, so replace always re-supplies
|
|
3800
|
+
* complete credentials). Clearing is DELETE, never an empty PUT. Username and
|
|
3801
|
+
* password go together or not at all.
|
|
3802
|
+
*/
|
|
3803
|
+
export interface SetEdgeProfileProxyRequest {
|
|
3804
|
+
server: string;
|
|
3805
|
+
username?: string;
|
|
3806
|
+
password?: string;
|
|
3459
3807
|
}
|
|
3460
3808
|
export interface ClipConnection {
|
|
3461
3809
|
id: string;
|