@deepraxis/sdk 0.1.1-dev.b0da55b → 0.1.1-dev.b191d44

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.
@@ -1136,6 +1136,15 @@ export declare function createAgent(transport: Transport): {
1136
1136
  max_files_per_session: number;
1137
1137
  };
1138
1138
  }>;
1139
+ retrieveEmbedPolicy: (options: import("./core/transport.js").CallOptions<Types.GetAgentEmbedPolicyData>) => Promise<{
1140
+ allowed_origins: Array<string>;
1141
+ allow_localhost: boolean;
1142
+ uploads: {
1143
+ enabled: boolean;
1144
+ max_file_bytes: number;
1145
+ max_files_per_session: number;
1146
+ };
1147
+ }>;
1139
1148
  unarchive: {
1140
1149
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
1141
1150
  id: string;
@@ -1690,6 +1699,15 @@ export declare function createAgent(transport: Transport): {
1690
1699
  keep_coding_instructions?: boolean;
1691
1700
  }> | null;
1692
1701
  }>;
1702
+ updateEmbedPolicy: (options: import("./core/transport.js").CallOptions<Types.UpdateAgentEmbedPolicyData>) => Promise<{
1703
+ allowed_origins: Array<string>;
1704
+ allow_localhost: boolean;
1705
+ uploads: {
1706
+ enabled: boolean;
1707
+ max_file_bytes: number;
1708
+ max_files_per_session: number;
1709
+ };
1710
+ }>;
1693
1711
  versions: {
1694
1712
  apply: (options: import("./core/transport.js").CallOptions<Types.ApplyAgentVersionData>) => Promise<{
1695
1713
  id: string;
@@ -2666,6 +2684,538 @@ export declare function createAgent(transport: Transport): {
2666
2684
  update: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsUpdateData>) => Promise<Types.AgentManaged138>;
2667
2685
  };
2668
2686
  sessions: {
2687
+ agentVersion: {
2688
+ create: (options: import("./core/transport.js").CallOptions<Types.UpdateSessionAgentVersionData>) => Promise<{
2689
+ id: string;
2690
+ agent: {
2691
+ id: string;
2692
+ description: null | string;
2693
+ mcp_servers: Array<{
2694
+ type: "url";
2695
+ name: string;
2696
+ url: string;
2697
+ headers?: {
2698
+ [key: string]: string;
2699
+ };
2700
+ timeout_ms?: number;
2701
+ } | {
2702
+ type: "sse";
2703
+ name: string;
2704
+ url: string;
2705
+ headers?: {
2706
+ [key: string]: string;
2707
+ };
2708
+ timeout_ms?: number;
2709
+ } | {
2710
+ type: "stdio";
2711
+ name: string;
2712
+ command: string;
2713
+ args?: Array<string>;
2714
+ env?: {
2715
+ [key: string]: string;
2716
+ };
2717
+ timeout_ms?: number;
2718
+ }>;
2719
+ model: {
2720
+ id: string;
2721
+ effort?: {
2722
+ type: "low";
2723
+ } | {
2724
+ type: "medium";
2725
+ } | {
2726
+ type: "high";
2727
+ } | {
2728
+ type: "xhigh";
2729
+ } | {
2730
+ type: "max";
2731
+ };
2732
+ inference_geo?: string;
2733
+ speed?: "standard" | "fast";
2734
+ settings?: {
2735
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2736
+ max_output_tokens?: number;
2737
+ };
2738
+ };
2739
+ multiagent: null | {
2740
+ agents: Array<{
2741
+ model: string;
2742
+ type: "advisor";
2743
+ } | {
2744
+ id: string;
2745
+ description: null | string;
2746
+ mcp_servers: Array<{
2747
+ type: "url";
2748
+ name: string;
2749
+ url: string;
2750
+ headers?: {
2751
+ [key: string]: string;
2752
+ };
2753
+ timeout_ms?: number;
2754
+ } | {
2755
+ type: "sse";
2756
+ name: string;
2757
+ url: string;
2758
+ headers?: {
2759
+ [key: string]: string;
2760
+ };
2761
+ timeout_ms?: number;
2762
+ } | {
2763
+ type: "stdio";
2764
+ name: string;
2765
+ command: string;
2766
+ args?: Array<string>;
2767
+ env?: {
2768
+ [key: string]: string;
2769
+ };
2770
+ timeout_ms?: number;
2771
+ }>;
2772
+ model: {
2773
+ id: string;
2774
+ effort?: {
2775
+ type: "low";
2776
+ } | {
2777
+ type: "medium";
2778
+ } | {
2779
+ type: "high";
2780
+ } | {
2781
+ type: "xhigh";
2782
+ } | {
2783
+ type: "max";
2784
+ };
2785
+ inference_geo?: string;
2786
+ speed?: "standard" | "fast";
2787
+ };
2788
+ name: string;
2789
+ skills: Array<{
2790
+ skill_id: string;
2791
+ type: "anthropic";
2792
+ version: string;
2793
+ } | {
2794
+ skill_id: string;
2795
+ type: "custom";
2796
+ version: string;
2797
+ }>;
2798
+ system: null | string;
2799
+ tools: Array<{
2800
+ configs: Array<{
2801
+ enabled: boolean;
2802
+ name: "bash";
2803
+ permission_policy: {
2804
+ type: "always_allow";
2805
+ } | {
2806
+ type: "always_ask";
2807
+ } | {
2808
+ type: "auto";
2809
+ };
2810
+ type: "bash";
2811
+ } | {
2812
+ enabled: boolean;
2813
+ name: "edit";
2814
+ permission_policy: {
2815
+ type: "always_allow";
2816
+ } | {
2817
+ type: "always_ask";
2818
+ } | {
2819
+ type: "auto";
2820
+ };
2821
+ type: "edit";
2822
+ } | {
2823
+ enabled: boolean;
2824
+ name: "read";
2825
+ permission_policy: {
2826
+ type: "always_allow";
2827
+ } | {
2828
+ type: "always_ask";
2829
+ } | {
2830
+ type: "auto";
2831
+ };
2832
+ type: "read";
2833
+ } | {
2834
+ enabled: boolean;
2835
+ name: "write";
2836
+ permission_policy: {
2837
+ type: "always_allow";
2838
+ } | {
2839
+ type: "always_ask";
2840
+ } | {
2841
+ type: "auto";
2842
+ };
2843
+ type: "write";
2844
+ } | {
2845
+ enabled: boolean;
2846
+ name: "glob";
2847
+ permission_policy: {
2848
+ type: "always_allow";
2849
+ } | {
2850
+ type: "always_ask";
2851
+ } | {
2852
+ type: "auto";
2853
+ };
2854
+ type: "glob";
2855
+ } | {
2856
+ enabled: boolean;
2857
+ name: "grep";
2858
+ permission_policy: {
2859
+ type: "always_allow";
2860
+ } | {
2861
+ type: "always_ask";
2862
+ } | {
2863
+ type: "auto";
2864
+ };
2865
+ type: "grep";
2866
+ } | {
2867
+ enabled: boolean;
2868
+ name: "web_fetch";
2869
+ permission_policy: {
2870
+ type: "always_allow";
2871
+ } | {
2872
+ type: "always_ask";
2873
+ } | {
2874
+ type: "auto";
2875
+ };
2876
+ type: "web_fetch";
2877
+ allowed_domains?: Array<string>;
2878
+ blocked_domains?: Array<string>;
2879
+ max_content_tokens?: null | number;
2880
+ } | {
2881
+ enabled: boolean;
2882
+ name: "web_search";
2883
+ permission_policy: {
2884
+ type: "always_allow";
2885
+ } | {
2886
+ type: "always_ask";
2887
+ } | {
2888
+ type: "auto";
2889
+ };
2890
+ type: "web_search";
2891
+ allowed_domains?: Array<string>;
2892
+ blocked_domains?: Array<string>;
2893
+ user_location?: null | {
2894
+ type: "approximate";
2895
+ city?: null | string;
2896
+ country?: null | string;
2897
+ region?: null | string;
2898
+ timezone?: null | string;
2899
+ };
2900
+ } | {
2901
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
2902
+ enabled: boolean;
2903
+ permission_policy: {
2904
+ type: "always_allow" | "always_ask";
2905
+ };
2906
+ }>;
2907
+ default_config: {
2908
+ enabled: boolean;
2909
+ permission_policy: {
2910
+ type: "always_allow";
2911
+ } | {
2912
+ type: "always_ask";
2913
+ } | {
2914
+ type: "auto";
2915
+ };
2916
+ };
2917
+ type: "agent_toolset_20260401";
2918
+ } | {
2919
+ type: "mcp_toolset";
2920
+ mcp_server_name: string;
2921
+ default_config?: {
2922
+ enabled?: boolean | null;
2923
+ permission_policy?: null | {
2924
+ type: "always_allow" | "always_ask";
2925
+ };
2926
+ } | null;
2927
+ configs?: Array<{
2928
+ name: string;
2929
+ enabled?: boolean | null;
2930
+ permission_policy?: null | {
2931
+ type: "always_allow" | "always_ask";
2932
+ };
2933
+ }> | null;
2934
+ } | {
2935
+ description: string;
2936
+ input_schema: {
2937
+ type: "object";
2938
+ properties?: null | {
2939
+ [key: string]: unknown;
2940
+ };
2941
+ required?: null | Array<string>;
2942
+ [key: string]: unknown;
2943
+ };
2944
+ name: string;
2945
+ type: "custom";
2946
+ }>;
2947
+ type: "agent";
2948
+ version: number;
2949
+ }>;
2950
+ type: "coordinator";
2951
+ };
2952
+ name: string;
2953
+ skills: Array<{
2954
+ skill_id: string;
2955
+ type: "anthropic";
2956
+ version: string;
2957
+ } | {
2958
+ skill_id: string;
2959
+ type: "custom";
2960
+ version: string;
2961
+ }>;
2962
+ system: null | string;
2963
+ tools: Array<{
2964
+ configs: Array<{
2965
+ enabled: boolean;
2966
+ name: "bash";
2967
+ permission_policy: {
2968
+ type: "always_allow";
2969
+ } | {
2970
+ type: "always_ask";
2971
+ } | {
2972
+ type: "auto";
2973
+ };
2974
+ type: "bash";
2975
+ } | {
2976
+ enabled: boolean;
2977
+ name: "edit";
2978
+ permission_policy: {
2979
+ type: "always_allow";
2980
+ } | {
2981
+ type: "always_ask";
2982
+ } | {
2983
+ type: "auto";
2984
+ };
2985
+ type: "edit";
2986
+ } | {
2987
+ enabled: boolean;
2988
+ name: "read";
2989
+ permission_policy: {
2990
+ type: "always_allow";
2991
+ } | {
2992
+ type: "always_ask";
2993
+ } | {
2994
+ type: "auto";
2995
+ };
2996
+ type: "read";
2997
+ } | {
2998
+ enabled: boolean;
2999
+ name: "write";
3000
+ permission_policy: {
3001
+ type: "always_allow";
3002
+ } | {
3003
+ type: "always_ask";
3004
+ } | {
3005
+ type: "auto";
3006
+ };
3007
+ type: "write";
3008
+ } | {
3009
+ enabled: boolean;
3010
+ name: "glob";
3011
+ permission_policy: {
3012
+ type: "always_allow";
3013
+ } | {
3014
+ type: "always_ask";
3015
+ } | {
3016
+ type: "auto";
3017
+ };
3018
+ type: "glob";
3019
+ } | {
3020
+ enabled: boolean;
3021
+ name: "grep";
3022
+ permission_policy: {
3023
+ type: "always_allow";
3024
+ } | {
3025
+ type: "always_ask";
3026
+ } | {
3027
+ type: "auto";
3028
+ };
3029
+ type: "grep";
3030
+ } | {
3031
+ enabled: boolean;
3032
+ name: "web_fetch";
3033
+ permission_policy: {
3034
+ type: "always_allow";
3035
+ } | {
3036
+ type: "always_ask";
3037
+ } | {
3038
+ type: "auto";
3039
+ };
3040
+ type: "web_fetch";
3041
+ allowed_domains?: Array<string>;
3042
+ blocked_domains?: Array<string>;
3043
+ max_content_tokens?: null | number;
3044
+ } | {
3045
+ enabled: boolean;
3046
+ name: "web_search";
3047
+ permission_policy: {
3048
+ type: "always_allow";
3049
+ } | {
3050
+ type: "always_ask";
3051
+ } | {
3052
+ type: "auto";
3053
+ };
3054
+ type: "web_search";
3055
+ allowed_domains?: Array<string>;
3056
+ blocked_domains?: Array<string>;
3057
+ user_location?: null | {
3058
+ type: "approximate";
3059
+ city?: null | string;
3060
+ country?: null | string;
3061
+ region?: null | string;
3062
+ timezone?: null | string;
3063
+ };
3064
+ } | {
3065
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
3066
+ enabled: boolean;
3067
+ permission_policy: {
3068
+ type: "always_allow" | "always_ask";
3069
+ };
3070
+ }>;
3071
+ default_config: {
3072
+ enabled: boolean;
3073
+ permission_policy: {
3074
+ type: "always_allow";
3075
+ } | {
3076
+ type: "always_ask";
3077
+ } | {
3078
+ type: "auto";
3079
+ };
3080
+ };
3081
+ type: "agent_toolset_20260401";
3082
+ } | {
3083
+ type: "mcp_toolset";
3084
+ mcp_server_name: string;
3085
+ default_config?: {
3086
+ enabled?: boolean | null;
3087
+ permission_policy?: null | {
3088
+ type: "always_allow" | "always_ask";
3089
+ };
3090
+ } | null;
3091
+ configs?: Array<{
3092
+ name: string;
3093
+ enabled?: boolean | null;
3094
+ permission_policy?: null | {
3095
+ type: "always_allow" | "always_ask";
3096
+ };
3097
+ }> | null;
3098
+ } | {
3099
+ description: string;
3100
+ input_schema: {
3101
+ type: "object";
3102
+ properties?: null | {
3103
+ [key: string]: unknown;
3104
+ };
3105
+ required?: null | Array<string>;
3106
+ [key: string]: unknown;
3107
+ };
3108
+ name: string;
3109
+ type: "custom";
3110
+ }>;
3111
+ type: "agent";
3112
+ version: number;
3113
+ };
3114
+ archived_at: null | string;
3115
+ budget: null | {
3116
+ max_list_cost: {
3117
+ amount: string;
3118
+ currency: "USD";
3119
+ };
3120
+ type: "limit";
3121
+ };
3122
+ created_at: string;
3123
+ environment_id?: string;
3124
+ metadata: {
3125
+ [key: string]: string;
3126
+ };
3127
+ outcome_evaluations: Array<{
3128
+ completed_at: null | string;
3129
+ description: string;
3130
+ explanation: null | string;
3131
+ iteration: number;
3132
+ outcome_id: string;
3133
+ result: string;
3134
+ type: "outcome_evaluation";
3135
+ }>;
3136
+ resources: Array<{
3137
+ id: string;
3138
+ created_at: string;
3139
+ mount_path: string;
3140
+ type: "github_repository";
3141
+ updated_at: string;
3142
+ url: string;
3143
+ checkout?: null | {
3144
+ name: string;
3145
+ type: "branch";
3146
+ } | {
3147
+ sha: string;
3148
+ type: "commit";
3149
+ };
3150
+ } | {
3151
+ id: string;
3152
+ created_at: string;
3153
+ file_id: string;
3154
+ mount_path: string;
3155
+ type: "file";
3156
+ updated_at: string;
3157
+ } | {
3158
+ memory_store_id: string;
3159
+ type: "memory_store";
3160
+ access?: null | "read_write" | "read_only";
3161
+ description?: string;
3162
+ instructions?: null | string;
3163
+ mount_path?: null | string;
3164
+ name?: null | string;
3165
+ }>;
3166
+ stats: {
3167
+ active_seconds?: number;
3168
+ duration_seconds?: number;
3169
+ };
3170
+ status: "rescheduling" | "running" | "idle" | "terminated";
3171
+ title: null | string;
3172
+ type: "session";
3173
+ updated_at: string;
3174
+ usage: {
3175
+ active_seconds?: number;
3176
+ cache_creation?: {
3177
+ ephemeral_1h_input_tokens?: number;
3178
+ ephemeral_5m_input_tokens?: number;
3179
+ };
3180
+ cache_read_input_tokens?: number;
3181
+ input_tokens?: number;
3182
+ list_cost?: null | {
3183
+ amount: string;
3184
+ currency: "USD";
3185
+ };
3186
+ output_tokens?: number;
3187
+ server_tool_use?: null | {
3188
+ web_fetch_requests?: number;
3189
+ web_search_requests?: number;
3190
+ };
3191
+ cost_by_product?: {
3192
+ [key: string]: string;
3193
+ };
3194
+ subagent_cost_micro_usd?: number;
3195
+ };
3196
+ vault_ids: Array<string>;
3197
+ deployment_id?: null | string;
3198
+ cwd: string;
3199
+ computer_id?: string;
3200
+ model?: {
3201
+ id: string;
3202
+ thinking: {
3203
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
3204
+ can_disable: boolean;
3205
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
3206
+ } | null;
3207
+ };
3208
+ thinking?: {
3209
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3210
+ } | null;
3211
+ forked_from?: {
3212
+ session_id: string;
3213
+ message_id: string;
3214
+ } | null;
3215
+ readonly external_user_id: string | null;
3216
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
3217
+ }>;
3218
+ };
2669
3219
  archive: (options: import("./core/transport.js").CallOptions<Types.SessionsArchiveData>) => Promise<{
2670
3220
  id: string;
2671
3221
  agent: {
@@ -5711,6 +6261,7 @@ export declare function createModel(transport: Transport): {
5711
6261
  unsigned_urls: Array<string>;
5712
6262
  usage?: {
5713
6263
  cost: number;
6264
+ billed_seconds?: number;
5714
6265
  };
5715
6266
  }>;
5716
6267
  delete: (options: import("./core/transport.js").CallOptions<Types.DeleteVideoData>) => Promise<{
@@ -5741,6 +6292,7 @@ export declare function createModel(transport: Transport): {
5741
6292
  unsigned_urls: Array<string>;
5742
6293
  usage?: {
5743
6294
  cost: number;
6295
+ billed_seconds?: number;
5744
6296
  };
5745
6297
  }>;
5746
6298
  has_more: boolean;
@@ -5769,6 +6321,7 @@ export declare function createModel(transport: Transport): {
5769
6321
  unsigned_urls: Array<string>;
5770
6322
  usage?: {
5771
6323
  cost: number;
6324
+ billed_seconds?: number;
5772
6325
  };
5773
6326
  }>;
5774
6327
  retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
@@ -39,10 +39,12 @@ export function createAgent(transport) {
39
39
  list: bind(transport, sdk.agentsList),
40
40
  retrieve: bind(transport, sdk.agentsRetrieve),
41
41
  retrieveAppearance: bind(transport, sdk.getAgentAppearance),
42
+ retrieveEmbedPolicy: bind(transport, sdk.getAgentEmbedPolicy),
42
43
  unarchive: {
43
44
  create: bind(transport, sdk.unarchiveAgent),
44
45
  },
45
46
  update: bind(transport, sdk.agentsUpdate),
47
+ updateEmbedPolicy: bind(transport, sdk.updateAgentEmbedPolicy),
46
48
  versions: {
47
49
  apply: bind(transport, sdk.applyAgentVersion),
48
50
  list: bind(transport, sdk.agentsVersionsList),
@@ -99,6 +101,9 @@ export function createAgent(transport) {
99
101
  update: bind(transport, sdk.environmentsUpdate),
100
102
  },
101
103
  sessions: {
104
+ agentVersion: {
105
+ create: bind(transport, sdk.updateSessionAgentVersion),
106
+ },
102
107
  archive: bind(transport, sdk.sessionsArchive),
103
108
  artifacts: {
104
109
  contentUrl: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.b0da55b",
3
+ "version": "0.1.1-dev.b191d44",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {