@parall/sdk 1.49.0 → 1.50.1

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/types.d.ts CHANGED
@@ -108,6 +108,20 @@ export interface ThreadUnreadEntry {
108
108
  }
109
109
  export type MessageType = 'text' | 'file' | 'tool_call' | 'tool_result' | 'approval_card' | 'state_delta' | 'card' | 'system';
110
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;
111
125
  export interface Mention {
112
126
  user_id: string;
113
127
  offset: number;
@@ -328,8 +342,35 @@ export interface OrgMember {
328
342
  user_id: string;
329
343
  role: OrgMemberRole;
330
344
  joined_at: string;
345
+ title: string;
346
+ description: string;
347
+ profile_version: number;
331
348
  user?: User;
332
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
+ }
333
374
  export interface Team {
334
375
  id: string;
335
376
  org_id: string;
@@ -454,6 +495,140 @@ export interface WsTicketResponse {
454
495
  export interface FeatureFlagsResponse {
455
496
  flags: Record<string, boolean | string | number>;
456
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
+ }
457
632
  export interface RegisterRequest {
458
633
  email: string;
459
634
  password: string;
@@ -574,6 +749,8 @@ export interface CreateAgentRequest {
574
749
  thinking_effort?: string;
575
750
  agent_permissions?: string[];
576
751
  runtime_type?: string;
752
+ instructions?: string;
753
+ /** @deprecated Same-value alias of `instructions`; loses when both are set. */
577
754
  description?: string;
578
755
  machine_type?: string;
579
756
  machine_label?: string;
@@ -664,6 +841,8 @@ export interface UpdateAgentRequest {
664
841
  agent_model?: string;
665
842
  model_management?: string;
666
843
  agent_permissions?: string[];
844
+ instructions?: string;
845
+ /** @deprecated Same-value alias of `instructions`; loses when both are set. */
667
846
  description?: string;
668
847
  thinking_effort?: string;
669
848
  }
@@ -762,7 +941,16 @@ export interface AgentProfile {
762
941
  machine_id: string | null;
763
942
  hosting_mode?: 'hosted' | 'self_hosted' | 'platform_runtime';
764
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
+ */
765
949
  description: string | null;
950
+ instructions?: string | null;
951
+ instructions_version?: number;
952
+ instructions_updated_at?: string | null;
953
+ instructions_updated_by?: string | null;
766
954
  thinking_effort: string | null;
767
955
  run_config?: RunConfig;
768
956
  created_by: string;
@@ -776,6 +964,7 @@ export interface AgentPresence {
776
964
  }
777
965
  export interface AgentWithRuntime extends User {
778
966
  agent_profile?: AgentProfile | null;
967
+ public_profile?: MemberProfile | null;
779
968
  machine?: Machine | null;
780
969
  presence?: AgentPresence | null;
781
970
  }
@@ -876,6 +1065,14 @@ export interface MachineBrowserProfileViewerData {
876
1065
  credential?: string;
877
1066
  };
878
1067
  }
1068
+ /** Daemon reply body for one machine.browser_profile.viewer request. */
1069
+ export interface MachineBrowserProfileViewerResponse {
1070
+ result?: Record<string, unknown>;
1071
+ error?: {
1072
+ code?: string;
1073
+ message: string;
1074
+ };
1075
+ }
879
1076
  export interface AgentNewSessionData {
880
1077
  previous_session_id?: string;
881
1078
  }