@deepraxis/sdk 0.1.1-dev.680e69b → 0.1.1-dev.68987ec

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.
@@ -40,6 +40,7 @@ export declare function createAgent(transport: Transport): {
40
40
  id: string;
41
41
  } | null;
42
42
  note: string | null;
43
+ deployments_behind: number | null;
43
44
  bindings: Array<{
44
45
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
45
46
  id: string;
@@ -225,6 +226,7 @@ export declare function createAgent(transport: Transport): {
225
226
  id: string;
226
227
  } | null;
227
228
  note: string | null;
229
+ deployments_behind: number | null;
228
230
  bindings: Array<{
229
231
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
230
232
  id: string;
@@ -610,6 +612,8 @@ export declare function createAgent(transport: Transport): {
610
612
  processed_at: string;
611
613
  forked_from_session_id: string;
612
614
  forked_from_message_id: string;
615
+ message_id?: string;
616
+ session_thread_id?: string | null;
613
617
  } | {
614
618
  id: string;
615
619
  type: "session.goal_changed";
@@ -640,6 +644,8 @@ export declare function createAgent(transport: Transport): {
640
644
  created_at: number;
641
645
  updated_at: number;
642
646
  } | null;
647
+ message_id?: string;
648
+ session_thread_id?: string | null;
643
649
  } | {
644
650
  id: string;
645
651
  type: "session.goal_verification";
@@ -654,11 +660,179 @@ export declare function createAgent(transport: Transport): {
654
660
  reason: string;
655
661
  next_action?: string;
656
662
  };
663
+ message_id?: string;
664
+ session_thread_id?: string | null;
657
665
  } | {
658
666
  id: string;
659
667
  type: "user.steer";
660
668
  event_id: string;
661
669
  processed_at: string;
670
+ message_id?: string;
671
+ session_thread_id?: string | null;
672
+ } | {
673
+ id: string;
674
+ type: "cognition.surfaced";
675
+ processed_at: string;
676
+ worker_session_id: string;
677
+ name: string;
678
+ state: "done" | "waiting" | "failed" | "archived";
679
+ experience_id?: string;
680
+ result?: {
681
+ message?: string;
682
+ links?: Array<string>;
683
+ files?: Array<{
684
+ name?: string;
685
+ href?: string;
686
+ }>;
687
+ held?: Array<{
688
+ id?: string;
689
+ summary?: string;
690
+ effect?: string;
691
+ method?: string;
692
+ path?: string;
693
+ expires_at?: string;
694
+ }>;
695
+ };
696
+ } | {
697
+ id: string;
698
+ type: "cognition.intention_woken";
699
+ processed_at: string;
700
+ node_id: string;
701
+ reason: "open_engram" | "assignment";
702
+ } | {
703
+ id: string;
704
+ type: "agent.operation_approval_requested";
705
+ processed_at: string;
706
+ approval_id: string;
707
+ operation_id: string;
708
+ effect: "outward" | "irreversible";
709
+ method: string;
710
+ path: string;
711
+ summary: string;
712
+ expires_at: string;
713
+ worker_session_id?: string;
714
+ worker_name?: string;
715
+ } | {
716
+ id: string;
717
+ type: "agent.operation_approval_decided";
718
+ processed_at: string;
719
+ approval_id: string;
720
+ status: "approved" | "refused" | "expired";
721
+ } | {
722
+ id: string;
723
+ type: "session.prompt_configuration_mismatch";
724
+ processed_at: string;
725
+ pinned_revision_id: string;
726
+ current_revision_id: string;
727
+ } | {
728
+ id: string;
729
+ type: "session.prompt_rev_changed";
730
+ processed_at: string;
731
+ config_revision_id: string;
732
+ changed: Array<{
733
+ name: string;
734
+ rev: string | null;
735
+ }>;
736
+ } | {
737
+ id: string;
738
+ type: "session.computer_tier";
739
+ processed_at: string;
740
+ action: "escalating" | "escalated" | "escalate_failed" | "rerun" | "status";
741
+ tier: "light" | "heavy";
742
+ duration_ms: number;
743
+ error_code?: string;
744
+ status?: {
745
+ kind?: "light_idle" | "light_busy" | "escalating" | "heavy_burst" | "heavy_resident" | "releasing" | "heavy_parked" | "cooldown";
746
+ step?: "prepare" | "scan" | "sync" | "switch" | "drain" | "pull" | "verify" | "pause";
747
+ percent?: number;
748
+ files_done?: number;
749
+ files_total?: number;
750
+ idle_release_at?: number;
751
+ retry_at?: number;
752
+ epoch?: number;
753
+ heavy_instance?: string | null;
754
+ heavy_paused?: boolean;
755
+ };
756
+ } | {
757
+ id: string;
758
+ type: "agent.artifact_delivered";
759
+ processed_at: string;
760
+ artifact: {
761
+ object: "artifact";
762
+ id: string;
763
+ session_id: string;
764
+ run_id: string | null;
765
+ name: string;
766
+ version: number;
767
+ parts: Array<{
768
+ [key: string]: unknown;
769
+ }>;
770
+ source_hrefs: Array<string>;
771
+ create_time: string;
772
+ update_time: string;
773
+ };
774
+ } | {
775
+ id: string;
776
+ type: "agent.image_generation";
777
+ processed_at: string;
778
+ tool_use_id: string;
779
+ index: number;
780
+ total: number;
781
+ status: string;
782
+ mode?: string;
783
+ aspect?: string;
784
+ prompt?: string;
785
+ model?: string;
786
+ file_id?: string;
787
+ label?: string;
788
+ width?: number;
789
+ height?: number;
790
+ revised_prompt?: string;
791
+ source_labels?: Array<string>;
792
+ caption?: string;
793
+ slot?: number | null;
794
+ replaces?: string;
795
+ version?: number;
796
+ failure?: {
797
+ reason?: string;
798
+ };
799
+ } | {
800
+ id: string;
801
+ type: "session.image_labeled";
802
+ processed_at: string;
803
+ label: string;
804
+ file_id: string;
805
+ origin: "generated" | "uploaded";
806
+ filename: string;
807
+ tool_use_id?: string;
808
+ version?: number;
809
+ replaced_file_id?: string;
810
+ } | {
811
+ id: string;
812
+ type: "session.image_set_planned";
813
+ processed_at: string;
814
+ tool_use_id: string;
815
+ items: Array<unknown>;
816
+ title?: string;
817
+ } | {
818
+ id: string;
819
+ type: "session.project_attached";
820
+ processed_at: string;
821
+ project: {
822
+ id: string;
823
+ name: string;
824
+ path: string;
825
+ };
826
+ message_id?: string;
827
+ session_thread_id?: string | null;
828
+ } | {
829
+ id: string;
830
+ type: "session.project_detached";
831
+ processed_at: string;
832
+ project_id: string;
833
+ reason?: "project_removed";
834
+ message_id?: string;
835
+ session_thread_id?: string | null;
662
836
  }>;
663
837
  next_page: string | null;
664
838
  }>;
@@ -679,6 +853,8 @@ export declare function createAgent(transport: Transport): {
679
853
  type: "user.steer";
680
854
  event_id: string;
681
855
  processed_at: string;
856
+ message_id?: string;
857
+ session_thread_id?: string | null;
682
858
  }>;
683
859
  }>;
684
860
  stream: (options: import("./core/transport.js").StreamOptions<Types.StreamAgentEventsData>) => AsyncIterable<Types.AgentSseEvent>;
@@ -733,6 +909,7 @@ export declare function createAgent(transport: Transport): {
733
909
  id: string;
734
910
  } | null;
735
911
  note: string | null;
912
+ deployments_behind: number | null;
736
913
  bindings: Array<{
737
914
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
738
915
  id: string;
@@ -940,6 +1117,7 @@ export declare function createAgent(transport: Transport): {
940
1117
  id: string;
941
1118
  } | null;
942
1119
  note: string | null;
1120
+ deployments_behind: number | null;
943
1121
  bindings: Array<{
944
1122
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
945
1123
  id: string;
@@ -1398,6 +1576,7 @@ export declare function createAgent(transport: Transport): {
1398
1576
  id: string;
1399
1577
  } | null;
1400
1578
  note: string | null;
1579
+ deployments_behind: number | null;
1401
1580
  bindings: Array<{
1402
1581
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
1403
1582
  id: string;
@@ -1576,6 +1755,7 @@ export declare function createAgent(transport: Transport): {
1576
1755
  id: string;
1577
1756
  } | null;
1578
1757
  note: string | null;
1758
+ deployments_behind: number | null;
1579
1759
  bindings: Array<{
1580
1760
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
1581
1761
  id: string;
@@ -1971,6 +2151,7 @@ export declare function createAgent(transport: Transport): {
1971
2151
  id: string;
1972
2152
  } | null;
1973
2153
  note: string | null;
2154
+ deployments_behind: number | null;
1974
2155
  bindings: Array<{
1975
2156
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
1976
2157
  id: string;
@@ -2457,6 +2638,8 @@ export declare function createAgent(transport: Transport): {
2457
2638
  id: string;
2458
2639
  type: "agent";
2459
2640
  version: number;
2641
+ pinned_version?: number | null;
2642
+ active_version?: number | null;
2460
2643
  } | {
2461
2644
  id: string;
2462
2645
  type: "agent_with_overrides";
@@ -2494,6 +2677,8 @@ export declare function createAgent(transport: Transport): {
2494
2677
  id: string;
2495
2678
  type: "agent";
2496
2679
  version: number;
2680
+ pinned_version?: number | null;
2681
+ active_version?: number | null;
2497
2682
  } | {
2498
2683
  id: string;
2499
2684
  type: "agent_with_overrides";
@@ -2532,6 +2717,8 @@ export declare function createAgent(transport: Transport): {
2532
2717
  id: string;
2533
2718
  type: "agent";
2534
2719
  version: number;
2720
+ pinned_version?: number | null;
2721
+ active_version?: number | null;
2535
2722
  } | {
2536
2723
  id: string;
2537
2724
  type: "agent_with_overrides";
@@ -2571,6 +2758,8 @@ export declare function createAgent(transport: Transport): {
2571
2758
  id: string;
2572
2759
  type: "agent";
2573
2760
  version: number;
2761
+ pinned_version?: number | null;
2762
+ active_version?: number | null;
2574
2763
  } | {
2575
2764
  id: string;
2576
2765
  type: "agent_with_overrides";
@@ -2608,6 +2797,8 @@ export declare function createAgent(transport: Transport): {
2608
2797
  id: string;
2609
2798
  type: "agent";
2610
2799
  version: number;
2800
+ pinned_version?: number | null;
2801
+ active_version?: number | null;
2611
2802
  } | {
2612
2803
  id: string;
2613
2804
  type: "agent_with_overrides";
@@ -2649,6 +2840,8 @@ export declare function createAgent(transport: Transport): {
2649
2840
  id: string;
2650
2841
  type: "agent";
2651
2842
  version: number;
2843
+ pinned_version?: number | null;
2844
+ active_version?: number | null;
2652
2845
  } | {
2653
2846
  id: string;
2654
2847
  type: "agent_with_overrides";
@@ -2687,6 +2880,8 @@ export declare function createAgent(transport: Transport): {
2687
2880
  id: string;
2688
2881
  type: "agent";
2689
2882
  version: number;
2883
+ pinned_version?: number | null;
2884
+ active_version?: number | null;
2690
2885
  } | {
2691
2886
  id: string;
2692
2887
  type: "agent_with_overrides";
@@ -2729,6 +2924,31 @@ export declare function createAgent(transport: Transport): {
2729
2924
  retrieve: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsRetrieveData>) => Promise<Types.AgentManaged138>;
2730
2925
  update: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsUpdateData>) => Promise<Types.AgentManaged138>;
2731
2926
  };
2927
+ loginIntents: {
2928
+ create: (options?: import("./core/transport.js").CallOptions<Types.CreateAgentLoginIntentData> | undefined) => Promise<{
2929
+ data: Array<{
2930
+ type: string;
2931
+ plugin: {
2932
+ name: string;
2933
+ version: string;
2934
+ };
2935
+ description: string;
2936
+ environment: string;
2937
+ tools: Array<{
2938
+ name: string;
2939
+ description: string;
2940
+ input_schema: {
2941
+ [key: string]: unknown;
2942
+ };
2943
+ read_only: boolean;
2944
+ default_permission_policy: "always_allow" | "always_ask";
2945
+ mod: string;
2946
+ configurable: boolean;
2947
+ }>;
2948
+ }>;
2949
+ next_page: null;
2950
+ }>;
2951
+ };
2732
2952
  sessions: {
2733
2953
  agentVersion: {
2734
2954
  create: (options: import("./core/transport.js").CallOptions<Types.UpdateSessionAgentVersionData>) => Promise<{
@@ -3499,6 +3719,13 @@ export declare function createAgent(transport: Transport): {
3499
3719
  readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
3500
3720
  }>;
3501
3721
  delete: (options: import("./core/transport.js").CallOptions<Types.SessionsDeleteData>) => Promise<Types.AgentManaged184>;
3722
+ dictations: {
3723
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateSessionDictationData>) => Promise<{
3724
+ id: string;
3725
+ push_url: string;
3726
+ expires_at: string;
3727
+ }>;
3728
+ };
3502
3729
  events: {
3503
3730
  list: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsListData>) => Promise<{
3504
3731
  data: Array<{
@@ -3651,6 +3878,8 @@ export declare function createAgent(transport: Transport): {
3651
3878
  processed_at: string;
3652
3879
  forked_from_session_id: string;
3653
3880
  forked_from_message_id: string;
3881
+ message_id?: string;
3882
+ session_thread_id?: string | null;
3654
3883
  } | {
3655
3884
  id: string;
3656
3885
  type: "session.goal_changed";
@@ -3681,6 +3910,8 @@ export declare function createAgent(transport: Transport): {
3681
3910
  created_at: number;
3682
3911
  updated_at: number;
3683
3912
  } | null;
3913
+ message_id?: string;
3914
+ session_thread_id?: string | null;
3684
3915
  } | {
3685
3916
  id: string;
3686
3917
  type: "session.goal_verification";
@@ -3695,11 +3926,179 @@ export declare function createAgent(transport: Transport): {
3695
3926
  reason: string;
3696
3927
  next_action?: string;
3697
3928
  };
3929
+ message_id?: string;
3930
+ session_thread_id?: string | null;
3698
3931
  } | {
3699
3932
  id: string;
3700
3933
  type: "user.steer";
3701
3934
  event_id: string;
3702
3935
  processed_at: string;
3936
+ message_id?: string;
3937
+ session_thread_id?: string | null;
3938
+ } | {
3939
+ id: string;
3940
+ type: "cognition.surfaced";
3941
+ processed_at: string;
3942
+ worker_session_id: string;
3943
+ name: string;
3944
+ state: "done" | "waiting" | "failed" | "archived";
3945
+ experience_id?: string;
3946
+ result?: {
3947
+ message?: string;
3948
+ links?: Array<string>;
3949
+ files?: Array<{
3950
+ name?: string;
3951
+ href?: string;
3952
+ }>;
3953
+ held?: Array<{
3954
+ id?: string;
3955
+ summary?: string;
3956
+ effect?: string;
3957
+ method?: string;
3958
+ path?: string;
3959
+ expires_at?: string;
3960
+ }>;
3961
+ };
3962
+ } | {
3963
+ id: string;
3964
+ type: "cognition.intention_woken";
3965
+ processed_at: string;
3966
+ node_id: string;
3967
+ reason: "open_engram" | "assignment";
3968
+ } | {
3969
+ id: string;
3970
+ type: "agent.operation_approval_requested";
3971
+ processed_at: string;
3972
+ approval_id: string;
3973
+ operation_id: string;
3974
+ effect: "outward" | "irreversible";
3975
+ method: string;
3976
+ path: string;
3977
+ summary: string;
3978
+ expires_at: string;
3979
+ worker_session_id?: string;
3980
+ worker_name?: string;
3981
+ } | {
3982
+ id: string;
3983
+ type: "agent.operation_approval_decided";
3984
+ processed_at: string;
3985
+ approval_id: string;
3986
+ status: "approved" | "refused" | "expired";
3987
+ } | {
3988
+ id: string;
3989
+ type: "session.prompt_configuration_mismatch";
3990
+ processed_at: string;
3991
+ pinned_revision_id: string;
3992
+ current_revision_id: string;
3993
+ } | {
3994
+ id: string;
3995
+ type: "session.prompt_rev_changed";
3996
+ processed_at: string;
3997
+ config_revision_id: string;
3998
+ changed: Array<{
3999
+ name: string;
4000
+ rev: string | null;
4001
+ }>;
4002
+ } | {
4003
+ id: string;
4004
+ type: "session.computer_tier";
4005
+ processed_at: string;
4006
+ action: "escalating" | "escalated" | "escalate_failed" | "rerun" | "status";
4007
+ tier: "light" | "heavy";
4008
+ duration_ms: number;
4009
+ error_code?: string;
4010
+ status?: {
4011
+ kind?: "light_idle" | "light_busy" | "escalating" | "heavy_burst" | "heavy_resident" | "releasing" | "heavy_parked" | "cooldown";
4012
+ step?: "prepare" | "scan" | "sync" | "switch" | "drain" | "pull" | "verify" | "pause";
4013
+ percent?: number;
4014
+ files_done?: number;
4015
+ files_total?: number;
4016
+ idle_release_at?: number;
4017
+ retry_at?: number;
4018
+ epoch?: number;
4019
+ heavy_instance?: string | null;
4020
+ heavy_paused?: boolean;
4021
+ };
4022
+ } | {
4023
+ id: string;
4024
+ type: "agent.artifact_delivered";
4025
+ processed_at: string;
4026
+ artifact: {
4027
+ object: "artifact";
4028
+ id: string;
4029
+ session_id: string;
4030
+ run_id: string | null;
4031
+ name: string;
4032
+ version: number;
4033
+ parts: Array<{
4034
+ [key: string]: unknown;
4035
+ }>;
4036
+ source_hrefs: Array<string>;
4037
+ create_time: string;
4038
+ update_time: string;
4039
+ };
4040
+ } | {
4041
+ id: string;
4042
+ type: "agent.image_generation";
4043
+ processed_at: string;
4044
+ tool_use_id: string;
4045
+ index: number;
4046
+ total: number;
4047
+ status: string;
4048
+ mode?: string;
4049
+ aspect?: string;
4050
+ prompt?: string;
4051
+ model?: string;
4052
+ file_id?: string;
4053
+ label?: string;
4054
+ width?: number;
4055
+ height?: number;
4056
+ revised_prompt?: string;
4057
+ source_labels?: Array<string>;
4058
+ caption?: string;
4059
+ slot?: number | null;
4060
+ replaces?: string;
4061
+ version?: number;
4062
+ failure?: {
4063
+ reason?: string;
4064
+ };
4065
+ } | {
4066
+ id: string;
4067
+ type: "session.image_labeled";
4068
+ processed_at: string;
4069
+ label: string;
4070
+ file_id: string;
4071
+ origin: "generated" | "uploaded";
4072
+ filename: string;
4073
+ tool_use_id?: string;
4074
+ version?: number;
4075
+ replaced_file_id?: string;
4076
+ } | {
4077
+ id: string;
4078
+ type: "session.image_set_planned";
4079
+ processed_at: string;
4080
+ tool_use_id: string;
4081
+ items: Array<unknown>;
4082
+ title?: string;
4083
+ } | {
4084
+ id: string;
4085
+ type: "session.project_attached";
4086
+ processed_at: string;
4087
+ project: {
4088
+ id: string;
4089
+ name: string;
4090
+ path: string;
4091
+ };
4092
+ message_id?: string;
4093
+ session_thread_id?: string | null;
4094
+ } | {
4095
+ id: string;
4096
+ type: "session.project_detached";
4097
+ processed_at: string;
4098
+ project_id: string;
4099
+ reason?: "project_removed";
4100
+ message_id?: string;
4101
+ session_thread_id?: string | null;
3703
4102
  }>;
3704
4103
  next_page: string | null;
3705
4104
  }>;
@@ -3720,6 +4119,8 @@ export declare function createAgent(transport: Transport): {
3720
4119
  type: "user.steer";
3721
4120
  event_id: string;
3722
4121
  processed_at: string;
4122
+ message_id?: string;
4123
+ session_thread_id?: string | null;
3723
4124
  }>;
3724
4125
  }>;
3725
4126
  stream: (options: import("./core/transport.js").StreamOptions<Types.SessionsEventsStreamData>) => AsyncIterable<Types.AgentSseEvent>;
@@ -5021,6 +5422,16 @@ export declare function createAgent(transport: Transport): {
5021
5422
  };
5022
5423
  measured_at: string | null;
5023
5424
  }>;
5425
+ retrievePromptRevs: (options: import("./core/transport.js").CallOptions<Types.GetSessionPromptRevsData>) => Promise<{
5426
+ run_id: string | null;
5427
+ config_revision_id: string;
5428
+ config_version: number | null;
5429
+ platform: {
5430
+ [key: string]: string;
5431
+ };
5432
+ at: number;
5433
+ reaped_turns: number;
5434
+ }>;
5024
5435
  runs: {
5025
5436
  deleteFeedback: (options: import("./core/transport.js").CallOptions<Types.DeleteRunFeedbackData>) => Promise<void>;
5026
5437
  feedback: {
@@ -5197,6 +5608,8 @@ export declare function createAgent(transport: Transport): {
5197
5608
  processed_at: string;
5198
5609
  forked_from_session_id: string;
5199
5610
  forked_from_message_id: string;
5611
+ message_id?: string;
5612
+ session_thread_id?: string | null;
5200
5613
  } | {
5201
5614
  id: string;
5202
5615
  type: "session.goal_changed";
@@ -5227,6 +5640,8 @@ export declare function createAgent(transport: Transport): {
5227
5640
  created_at: number;
5228
5641
  updated_at: number;
5229
5642
  } | null;
5643
+ message_id?: string;
5644
+ session_thread_id?: string | null;
5230
5645
  } | {
5231
5646
  id: string;
5232
5647
  type: "session.goal_verification";
@@ -5241,11 +5656,179 @@ export declare function createAgent(transport: Transport): {
5241
5656
  reason: string;
5242
5657
  next_action?: string;
5243
5658
  };
5659
+ message_id?: string;
5660
+ session_thread_id?: string | null;
5244
5661
  } | {
5245
5662
  id: string;
5246
5663
  type: "user.steer";
5247
5664
  event_id: string;
5248
5665
  processed_at: string;
5666
+ message_id?: string;
5667
+ session_thread_id?: string | null;
5668
+ } | {
5669
+ id: string;
5670
+ type: "cognition.surfaced";
5671
+ processed_at: string;
5672
+ worker_session_id: string;
5673
+ name: string;
5674
+ state: "done" | "waiting" | "failed" | "archived";
5675
+ experience_id?: string;
5676
+ result?: {
5677
+ message?: string;
5678
+ links?: Array<string>;
5679
+ files?: Array<{
5680
+ name?: string;
5681
+ href?: string;
5682
+ }>;
5683
+ held?: Array<{
5684
+ id?: string;
5685
+ summary?: string;
5686
+ effect?: string;
5687
+ method?: string;
5688
+ path?: string;
5689
+ expires_at?: string;
5690
+ }>;
5691
+ };
5692
+ } | {
5693
+ id: string;
5694
+ type: "cognition.intention_woken";
5695
+ processed_at: string;
5696
+ node_id: string;
5697
+ reason: "open_engram" | "assignment";
5698
+ } | {
5699
+ id: string;
5700
+ type: "agent.operation_approval_requested";
5701
+ processed_at: string;
5702
+ approval_id: string;
5703
+ operation_id: string;
5704
+ effect: "outward" | "irreversible";
5705
+ method: string;
5706
+ path: string;
5707
+ summary: string;
5708
+ expires_at: string;
5709
+ worker_session_id?: string;
5710
+ worker_name?: string;
5711
+ } | {
5712
+ id: string;
5713
+ type: "agent.operation_approval_decided";
5714
+ processed_at: string;
5715
+ approval_id: string;
5716
+ status: "approved" | "refused" | "expired";
5717
+ } | {
5718
+ id: string;
5719
+ type: "session.prompt_configuration_mismatch";
5720
+ processed_at: string;
5721
+ pinned_revision_id: string;
5722
+ current_revision_id: string;
5723
+ } | {
5724
+ id: string;
5725
+ type: "session.prompt_rev_changed";
5726
+ processed_at: string;
5727
+ config_revision_id: string;
5728
+ changed: Array<{
5729
+ name: string;
5730
+ rev: string | null;
5731
+ }>;
5732
+ } | {
5733
+ id: string;
5734
+ type: "session.computer_tier";
5735
+ processed_at: string;
5736
+ action: "escalating" | "escalated" | "escalate_failed" | "rerun" | "status";
5737
+ tier: "light" | "heavy";
5738
+ duration_ms: number;
5739
+ error_code?: string;
5740
+ status?: {
5741
+ kind?: "light_idle" | "light_busy" | "escalating" | "heavy_burst" | "heavy_resident" | "releasing" | "heavy_parked" | "cooldown";
5742
+ step?: "prepare" | "scan" | "sync" | "switch" | "drain" | "pull" | "verify" | "pause";
5743
+ percent?: number;
5744
+ files_done?: number;
5745
+ files_total?: number;
5746
+ idle_release_at?: number;
5747
+ retry_at?: number;
5748
+ epoch?: number;
5749
+ heavy_instance?: string | null;
5750
+ heavy_paused?: boolean;
5751
+ };
5752
+ } | {
5753
+ id: string;
5754
+ type: "agent.artifact_delivered";
5755
+ processed_at: string;
5756
+ artifact: {
5757
+ object: "artifact";
5758
+ id: string;
5759
+ session_id: string;
5760
+ run_id: string | null;
5761
+ name: string;
5762
+ version: number;
5763
+ parts: Array<{
5764
+ [key: string]: unknown;
5765
+ }>;
5766
+ source_hrefs: Array<string>;
5767
+ create_time: string;
5768
+ update_time: string;
5769
+ };
5770
+ } | {
5771
+ id: string;
5772
+ type: "agent.image_generation";
5773
+ processed_at: string;
5774
+ tool_use_id: string;
5775
+ index: number;
5776
+ total: number;
5777
+ status: string;
5778
+ mode?: string;
5779
+ aspect?: string;
5780
+ prompt?: string;
5781
+ model?: string;
5782
+ file_id?: string;
5783
+ label?: string;
5784
+ width?: number;
5785
+ height?: number;
5786
+ revised_prompt?: string;
5787
+ source_labels?: Array<string>;
5788
+ caption?: string;
5789
+ slot?: number | null;
5790
+ replaces?: string;
5791
+ version?: number;
5792
+ failure?: {
5793
+ reason?: string;
5794
+ };
5795
+ } | {
5796
+ id: string;
5797
+ type: "session.image_labeled";
5798
+ processed_at: string;
5799
+ label: string;
5800
+ file_id: string;
5801
+ origin: "generated" | "uploaded";
5802
+ filename: string;
5803
+ tool_use_id?: string;
5804
+ version?: number;
5805
+ replaced_file_id?: string;
5806
+ } | {
5807
+ id: string;
5808
+ type: "session.image_set_planned";
5809
+ processed_at: string;
5810
+ tool_use_id: string;
5811
+ items: Array<unknown>;
5812
+ title?: string;
5813
+ } | {
5814
+ id: string;
5815
+ type: "session.project_attached";
5816
+ processed_at: string;
5817
+ project: {
5818
+ id: string;
5819
+ name: string;
5820
+ path: string;
5821
+ };
5822
+ message_id?: string;
5823
+ session_thread_id?: string | null;
5824
+ } | {
5825
+ id: string;
5826
+ type: "session.project_detached";
5827
+ processed_at: string;
5828
+ project_id: string;
5829
+ reason?: "project_removed";
5830
+ message_id?: string;
5831
+ session_thread_id?: string | null;
5249
5832
  }>;
5250
5833
  next_page: string | null;
5251
5834
  }>;
@@ -5768,10 +6351,18 @@ export declare function createCanvas(transport: Transport): {
5768
6351
  images: {
5769
6352
  list: (options: import("./core/transport.js").CallOptions<Types.CanvasListImagesData>) => Promise<Types.CanvasImagesResult>;
5770
6353
  };
6354
+ imports: {
6355
+ create: (options: import("./core/transport.js").CallOptions<Types.CanvasSetImportData>) => Promise<Types.CanvasSetImportResult>;
6356
+ delete: (options: import("./core/transport.js").CallOptions<Types.CanvasDeleteImportData>) => Promise<Types.CanvasDeleteImportResult>;
6357
+ };
6358
+ libraryVersions: {
6359
+ list: (options: import("./core/transport.js").CallOptions<Types.CanvasListLibraryVersionsData>) => Promise<Types.CanvasLibraryVersionPage>;
6360
+ };
5771
6361
  list: (options?: import("./core/transport.js").CallOptions<Types.CanvasListCanvasesData> | undefined) => Promise<import("./automation.js").Page<Types.CanvasCanvas>>;
5772
6362
  nodes: {
5773
6363
  list: (options: import("./core/transport.js").CallOptions<Types.CanvasListNodesData>) => Promise<Types.CanvasNodesResult>;
5774
6364
  };
6365
+ publish: (options: import("./core/transport.js").CallOptions<Types.CanvasPublishLibraryData>) => Promise<Types.CanvasPublishLibraryResult>;
5775
6366
  restore: (options: import("./core/transport.js").CallOptions<Types.CanvasRestoreCanvasData>) => Promise<Types.CanvasRestoreResult>;
5776
6367
  retrieve: (options: import("./core/transport.js").CallOptions<Types.CanvasRetrieveCanvasData>) => Promise<Types.CanvasCanvasDetail>;
5777
6368
  update: (options: import("./core/transport.js").CallOptions<Types.CanvasUpdateCanvasData>) => Promise<Types.CanvasCanvas>;
@@ -5786,6 +6377,9 @@ export declare function createCanvas(transport: Transport): {
5786
6377
  retrieve: (options: import("./core/transport.js").CallOptions<Types.CanvasRetrieveCollectionData>) => Promise<Types.CanvasCollection>;
5787
6378
  update: (options: import("./core/transport.js").CallOptions<Types.CanvasUpdateCollectionData>) => Promise<Types.CanvasCollection>;
5788
6379
  };
6380
+ libraries: {
6381
+ list: (options?: import("./core/transport.js").CallOptions<Types.CanvasListLibrariesData> | undefined) => Promise<import("./automation.js").Page<Types.CanvasLibrarySummary>>;
6382
+ };
5789
6383
  };
5790
6384
  export declare function createContent(transport: Transport): {
5791
6385
  contents: {
@@ -5886,6 +6480,7 @@ export declare function createCustomer(transport: Transport): {
5886
6480
  create: (options: import("./core/transport.js").CallOptions<Types.CustomerCreatePublishableKeyData>) => Promise<Types.CustomerPublishableKey>;
5887
6481
  delete: (options: import("./core/transport.js").CallOptions<Types.CustomerDeletePublishableKeyData>) => Promise<Types.CustomerPublishableKeyDeleted>;
5888
6482
  list: (options?: import("./core/transport.js").CallOptions<Types.CustomerListPublishableKeysData> | undefined) => Promise<Types.CustomerPublishableKeyPage>;
6483
+ update: (options: import("./core/transport.js").CallOptions<Types.CustomerUpdatePublishableKeyData>) => Promise<Types.CustomerPublishableKey>;
5889
6484
  };
5890
6485
  usage: {
5891
6486
  retrieve: (options: import("./core/transport.js").CallOptions<Types.CustomerGetUsageData>) => Promise<Types.CustomerCustomerUsage>;
@@ -6468,9 +7063,49 @@ export declare function createMedia(transport: Transport): {
6468
7063
  };
6469
7064
  };
6470
7065
  };
7066
+ pipelines: {
7067
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateMediaPipelineData>) => Promise<Types.MediaPipeline>;
7068
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteMediaPipelineData>) => Promise<Types.MediaPipelineDeleted>;
7069
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListMediaPipelinesData> | undefined) => Promise<Types.MediaPipelineList>;
7070
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetMediaPipelineData>) => Promise<Types.MediaPipeline>;
7071
+ update: (options: import("./core/transport.js").CallOptions<Types.UpdateMediaPipelineData>) => Promise<Types.MediaPipeline>;
7072
+ };
6471
7073
  speech: {
6472
7074
  create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
6473
7075
  };
7076
+ streams: {
7077
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateMediaStreamData>) => Promise<Types.MediaStreamWithPush>;
7078
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteMediaStreamData>) => Promise<Types.MediaStreamDeleted>;
7079
+ disable: {
7080
+ create: (options: import("./core/transport.js").CallOptions<Types.DisableMediaStreamData>) => Promise<Types.MediaStream>;
7081
+ };
7082
+ enable: {
7083
+ create: (options: import("./core/transport.js").CallOptions<Types.EnableMediaStreamData>) => Promise<Types.MediaStream>;
7084
+ };
7085
+ events: {
7086
+ list: (options: import("./core/transport.js").CallOptions<Types.ListMediaStreamEventsData>) => Promise<Types.MediaStreamEventList>;
7087
+ };
7088
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListMediaStreamsData> | undefined) => Promise<Types.MediaStreamList>;
7089
+ outputs: {
7090
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateMediaStreamOutputData>) => Promise<Types.MediaStreamOutput>;
7091
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteMediaStreamOutputData>) => Promise<Types.MediaStreamOutputDeleted>;
7092
+ list: (options: import("./core/transport.js").CallOptions<Types.ListMediaStreamOutputsData>) => Promise<Types.MediaStreamOutputList>;
7093
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetMediaStreamOutputData>) => Promise<Types.MediaStreamOutput>;
7094
+ update: (options: import("./core/transport.js").CallOptions<Types.UpdateMediaStreamOutputData>) => Promise<Types.MediaStreamOutput>;
7095
+ };
7096
+ playbackToken: {
7097
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateMediaStreamPlaybackData>) => Promise<Types.MediaStreamPlayback>;
7098
+ };
7099
+ resetToken: {
7100
+ create: (options: import("./core/transport.js").CallOptions<Types.ResetMediaStreamTokenData>) => Promise<Types.MediaStreamWithPush>;
7101
+ };
7102
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetMediaStreamData>) => Promise<Types.MediaStream>;
7103
+ retrievePlaylist: (options: import("./core/transport.js").CallOptions<Types.GetMediaStreamLivePlaylistData>) => Promise<string>;
7104
+ subscribeToken: {
7105
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateMediaStreamSubscriptionData>) => Promise<Types.MediaStreamSubscription>;
7106
+ };
7107
+ update: (options: import("./core/transport.js").CallOptions<Types.UpdateMediaStreamData>) => Promise<Types.MediaStream>;
7108
+ };
6474
7109
  videos: {
6475
7110
  generate: (options: import("./core/transport.js").CallOptions<Types.MediaGenerateVideoData>) => Promise<Types.MediaJob>;
6476
7111
  };
@@ -7351,6 +7986,9 @@ export declare function createOrganization(transport: Transport): {
7351
7986
  }>;
7352
7987
  };
7353
7988
  letters: {
7989
+ archive: (options: import("./core/transport.js").CallOptions<Types.ArchiveOrganizationNotificationLetterData>) => Promise<{
7990
+ unread: number;
7991
+ }>;
7354
7992
  list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationNotificationLettersData> | undefined) => Promise<{
7355
7993
  letters: Array<{
7356
7994
  id: string;
@@ -7366,10 +8004,17 @@ export declare function createOrganization(transport: Transport): {
7366
8004
  deliveredAt: string;
7367
8005
  createTime: string;
7368
8006
  reason: string;
8007
+ archived: boolean;
7369
8008
  }>;
7370
8009
  nextCursor: string;
7371
8010
  unread: number;
7372
8011
  }>;
8012
+ read: (options: import("./core/transport.js").CallOptions<Types.ReadOrganizationNotificationLetterData>) => Promise<{
8013
+ unread: number;
8014
+ }>;
8015
+ readAll: (options?: import("./core/transport.js").CallOptions<Types.ReadAllOrganizationNotificationLettersData> | undefined) => Promise<{
8016
+ unread: number;
8017
+ }>;
7373
8018
  };
7374
8019
  organizationDefault: {
7375
8020
  create: (options: import("./core/transport.js").CallOptions<Types.UpdateOrganizationNotificationDefaultsData>) => Promise<{
@@ -7392,6 +8037,7 @@ export declare function createOrganization(transport: Transport): {
7392
8037
  group: string;
7393
8038
  title: string;
7394
8039
  description?: string;
8040
+ severity: "high" | "medium" | "low" | "none";
7395
8041
  critical: boolean;
7396
8042
  channels: Array<string>;
7397
8043
  }>;
@@ -8141,7 +8787,8 @@ export declare function createWorkforce(transport: Transport): {
8141
8787
  list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationDepartmentsData> | undefined) => Promise<Types.OrganizationDepartmentList>;
8142
8788
  retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationDepartmentData>) => Promise<Types.OrganizationDepartment>;
8143
8789
  update: (options: import("./core/transport.js").CallOptions<Types.ReorganizeOrganizationDepartmentData>) => Promise<Types.OrganizationDepartment>;
8144
- updateCharter: (options: import("./core/transport.js").CallOptions<Types.AmendOrganizationDepartmentCharterData>) => Promise<Types.OrganizationDepartment>;
8790
+ /** @deprecated use PUT /workforce/v1/specs/department/{id} instead; this path stops working on 2026-11-28. */
8791
+ updateCharter: (options: import("./core/transport.js").CallOptions<Types.AmendOrganizationDepartmentCharterData>) => Promise<unknown>;
8145
8792
  };
8146
8793
  effectiveSpec: {
8147
8794
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.GetOrganizationEffectiveSpecData> | undefined) => Promise<Types.OrganizationEffectiveSpec>;