@deepraxis/sdk 0.1.0-dev.449ac38 → 0.1.0-dev.4cbfc1f
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/METHODS.md +71 -1
- package/dist/core/client.d.ts +5 -1
- package/dist/core/client.js +3 -0
- package/dist/core/transport.d.ts +5 -0
- package/dist/core/transport.js +6 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +138 -24
- package/dist/generated/sdk.gen.js +331 -51
- package/dist/generated/types.gen.d.ts +4845 -2143
- package/dist/helpers/application-publish.d.ts +24 -4
- package/dist/helpers/application-publish.js +53 -3
- package/dist/helpers/database-count.d.ts +17 -0
- package/dist/helpers/database-count.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/operations.generated.d.ts +319 -21
- package/dist/operations.generated.js +395 -22
- package/dist/resources.generated.d.ts +567 -1
- package/dist/resources.generated.js +37 -0
- package/package.json +1 -1
|
@@ -132,6 +132,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
132
132
|
models?: {
|
|
133
133
|
allowed: Array<string>;
|
|
134
134
|
};
|
|
135
|
+
status: "active" | "archived";
|
|
135
136
|
}>;
|
|
136
137
|
create: (options: import("./core/transport.js").CallOptions<Types.AgentsCreateData>) => Promise<{
|
|
137
138
|
id: string;
|
|
@@ -262,7 +263,80 @@ export declare function createAgent(transport: Transport): {
|
|
|
262
263
|
models?: {
|
|
263
264
|
allowed: Array<string>;
|
|
264
265
|
};
|
|
266
|
+
status: "active" | "archived";
|
|
265
267
|
}>;
|
|
268
|
+
endUsers: {
|
|
269
|
+
block: {
|
|
270
|
+
create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
|
|
271
|
+
external_user_id: string;
|
|
272
|
+
first_seen_at: string | null;
|
|
273
|
+
last_active_at: string | null;
|
|
274
|
+
session_count: number;
|
|
275
|
+
cost_micro_usd: number;
|
|
276
|
+
blocked: boolean;
|
|
277
|
+
}>;
|
|
278
|
+
};
|
|
279
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
|
|
280
|
+
id: string;
|
|
281
|
+
status: "pending";
|
|
282
|
+
}>;
|
|
283
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
|
|
284
|
+
data: Array<{
|
|
285
|
+
external_user_id: string;
|
|
286
|
+
first_seen_at: string | null;
|
|
287
|
+
last_active_at: string | null;
|
|
288
|
+
session_count: number;
|
|
289
|
+
cost_micro_usd: number;
|
|
290
|
+
blocked: boolean;
|
|
291
|
+
}>;
|
|
292
|
+
next_page: string | null;
|
|
293
|
+
}>;
|
|
294
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
|
|
295
|
+
external_user_id: string;
|
|
296
|
+
first_seen_at: string | null;
|
|
297
|
+
last_active_at: string | null;
|
|
298
|
+
session_count: number;
|
|
299
|
+
cost_micro_usd: number;
|
|
300
|
+
blocked: boolean;
|
|
301
|
+
recent_sessions: Array<{
|
|
302
|
+
id: string;
|
|
303
|
+
title: string | null;
|
|
304
|
+
source: string | null;
|
|
305
|
+
created_at: string;
|
|
306
|
+
updated_at: string;
|
|
307
|
+
}>;
|
|
308
|
+
}>;
|
|
309
|
+
retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
|
|
310
|
+
id: string;
|
|
311
|
+
status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
|
|
312
|
+
counts: {
|
|
313
|
+
sessions?: number;
|
|
314
|
+
events?: number;
|
|
315
|
+
messages?: number;
|
|
316
|
+
d1_rows?: number;
|
|
317
|
+
attachments?: number;
|
|
318
|
+
};
|
|
319
|
+
snapshot_key?: string;
|
|
320
|
+
error?: string;
|
|
321
|
+
created_at: string;
|
|
322
|
+
updated_at: string;
|
|
323
|
+
}>;
|
|
324
|
+
revokeTokens: {
|
|
325
|
+
create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
|
|
326
|
+
revoked: number;
|
|
327
|
+
}>;
|
|
328
|
+
};
|
|
329
|
+
unblock: {
|
|
330
|
+
create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
|
|
331
|
+
external_user_id: string;
|
|
332
|
+
first_seen_at: string | null;
|
|
333
|
+
last_active_at: string | null;
|
|
334
|
+
session_count: number;
|
|
335
|
+
cost_micro_usd: number;
|
|
336
|
+
blocked: boolean;
|
|
337
|
+
}>;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
266
340
|
list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
|
|
267
341
|
data: Array<{
|
|
268
342
|
id: string;
|
|
@@ -393,6 +467,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
393
467
|
models?: {
|
|
394
468
|
allowed: Array<string>;
|
|
395
469
|
};
|
|
470
|
+
status: "active" | "archived";
|
|
396
471
|
}>;
|
|
397
472
|
next_page: string | null;
|
|
398
473
|
}>;
|
|
@@ -525,7 +600,343 @@ export declare function createAgent(transport: Transport): {
|
|
|
525
600
|
models?: {
|
|
526
601
|
allowed: Array<string>;
|
|
527
602
|
};
|
|
603
|
+
status: "active" | "archived";
|
|
528
604
|
}>;
|
|
605
|
+
unarchive: {
|
|
606
|
+
create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
|
|
607
|
+
id: string;
|
|
608
|
+
archived_at: null | string;
|
|
609
|
+
created_at: string;
|
|
610
|
+
description: null | string;
|
|
611
|
+
mcp_servers: Array<{
|
|
612
|
+
type: "url";
|
|
613
|
+
name: string;
|
|
614
|
+
url: string;
|
|
615
|
+
headers?: {
|
|
616
|
+
[key: string]: string;
|
|
617
|
+
};
|
|
618
|
+
timeout_ms?: number;
|
|
619
|
+
} | {
|
|
620
|
+
type: "sse";
|
|
621
|
+
name: string;
|
|
622
|
+
url: string;
|
|
623
|
+
headers?: {
|
|
624
|
+
[key: string]: string;
|
|
625
|
+
};
|
|
626
|
+
timeout_ms?: number;
|
|
627
|
+
} | {
|
|
628
|
+
type: "stdio";
|
|
629
|
+
name: string;
|
|
630
|
+
command: string;
|
|
631
|
+
args?: Array<string>;
|
|
632
|
+
env?: {
|
|
633
|
+
[key: string]: string;
|
|
634
|
+
};
|
|
635
|
+
timeout_ms?: number;
|
|
636
|
+
}>;
|
|
637
|
+
metadata: {
|
|
638
|
+
[key: string]: string;
|
|
639
|
+
};
|
|
640
|
+
model: {
|
|
641
|
+
id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
|
|
642
|
+
effort?: {
|
|
643
|
+
type: "low";
|
|
644
|
+
} | {
|
|
645
|
+
type: "medium";
|
|
646
|
+
} | {
|
|
647
|
+
type: "high";
|
|
648
|
+
} | {
|
|
649
|
+
type: "xhigh";
|
|
650
|
+
} | {
|
|
651
|
+
type: "max";
|
|
652
|
+
};
|
|
653
|
+
inference_geo?: string;
|
|
654
|
+
speed?: "standard" | "fast";
|
|
655
|
+
settings?: {
|
|
656
|
+
reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
multiagent: null | {
|
|
660
|
+
agents: Array<{
|
|
661
|
+
id: string;
|
|
662
|
+
type: "agent";
|
|
663
|
+
version: number;
|
|
664
|
+
} | {
|
|
665
|
+
model: string;
|
|
666
|
+
type: "advisor";
|
|
667
|
+
}>;
|
|
668
|
+
type: "coordinator";
|
|
669
|
+
};
|
|
670
|
+
name: string;
|
|
671
|
+
skills: Array<{
|
|
672
|
+
skill_id: string;
|
|
673
|
+
type: "anthropic";
|
|
674
|
+
version: string;
|
|
675
|
+
} | {
|
|
676
|
+
skill_id: string;
|
|
677
|
+
type: "custom";
|
|
678
|
+
version: string;
|
|
679
|
+
}>;
|
|
680
|
+
system: null | string;
|
|
681
|
+
tools: Array<{
|
|
682
|
+
configs: Array<{
|
|
683
|
+
enabled: boolean;
|
|
684
|
+
name: "bash";
|
|
685
|
+
permission_policy: {
|
|
686
|
+
type: "always_allow";
|
|
687
|
+
} | {
|
|
688
|
+
type: "always_ask";
|
|
689
|
+
} | {
|
|
690
|
+
type: "auto";
|
|
691
|
+
};
|
|
692
|
+
type: "bash";
|
|
693
|
+
} | {
|
|
694
|
+
enabled: boolean;
|
|
695
|
+
name: "edit";
|
|
696
|
+
permission_policy: {
|
|
697
|
+
type: "always_allow";
|
|
698
|
+
} | {
|
|
699
|
+
type: "always_ask";
|
|
700
|
+
} | {
|
|
701
|
+
type: "auto";
|
|
702
|
+
};
|
|
703
|
+
type: "edit";
|
|
704
|
+
} | {
|
|
705
|
+
enabled: boolean;
|
|
706
|
+
name: "read";
|
|
707
|
+
permission_policy: {
|
|
708
|
+
type: "always_allow";
|
|
709
|
+
} | {
|
|
710
|
+
type: "always_ask";
|
|
711
|
+
} | {
|
|
712
|
+
type: "auto";
|
|
713
|
+
};
|
|
714
|
+
type: "read";
|
|
715
|
+
} | {
|
|
716
|
+
enabled: boolean;
|
|
717
|
+
name: "write";
|
|
718
|
+
permission_policy: {
|
|
719
|
+
type: "always_allow";
|
|
720
|
+
} | {
|
|
721
|
+
type: "always_ask";
|
|
722
|
+
} | {
|
|
723
|
+
type: "auto";
|
|
724
|
+
};
|
|
725
|
+
type: "write";
|
|
726
|
+
} | {
|
|
727
|
+
enabled: boolean;
|
|
728
|
+
name: "glob";
|
|
729
|
+
permission_policy: {
|
|
730
|
+
type: "always_allow";
|
|
731
|
+
} | {
|
|
732
|
+
type: "always_ask";
|
|
733
|
+
} | {
|
|
734
|
+
type: "auto";
|
|
735
|
+
};
|
|
736
|
+
type: "glob";
|
|
737
|
+
} | {
|
|
738
|
+
enabled: boolean;
|
|
739
|
+
name: "grep";
|
|
740
|
+
permission_policy: {
|
|
741
|
+
type: "always_allow";
|
|
742
|
+
} | {
|
|
743
|
+
type: "always_ask";
|
|
744
|
+
} | {
|
|
745
|
+
type: "auto";
|
|
746
|
+
};
|
|
747
|
+
type: "grep";
|
|
748
|
+
} | {
|
|
749
|
+
enabled: boolean;
|
|
750
|
+
name: "web_fetch";
|
|
751
|
+
permission_policy: {
|
|
752
|
+
type: "always_allow";
|
|
753
|
+
} | {
|
|
754
|
+
type: "always_ask";
|
|
755
|
+
} | {
|
|
756
|
+
type: "auto";
|
|
757
|
+
};
|
|
758
|
+
type: "web_fetch";
|
|
759
|
+
allowed_domains?: Array<string>;
|
|
760
|
+
blocked_domains?: Array<string>;
|
|
761
|
+
max_content_tokens?: null | number;
|
|
762
|
+
} | {
|
|
763
|
+
enabled: boolean;
|
|
764
|
+
name: "web_search";
|
|
765
|
+
permission_policy: {
|
|
766
|
+
type: "always_allow";
|
|
767
|
+
} | {
|
|
768
|
+
type: "always_ask";
|
|
769
|
+
} | {
|
|
770
|
+
type: "auto";
|
|
771
|
+
};
|
|
772
|
+
type: "web_search";
|
|
773
|
+
allowed_domains?: Array<string>;
|
|
774
|
+
blocked_domains?: Array<string>;
|
|
775
|
+
user_location?: null | {
|
|
776
|
+
type: "approximate";
|
|
777
|
+
city?: null | string;
|
|
778
|
+
country?: null | string;
|
|
779
|
+
region?: null | string;
|
|
780
|
+
timezone?: null | string;
|
|
781
|
+
};
|
|
782
|
+
} | {
|
|
783
|
+
name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
|
|
784
|
+
enabled: boolean;
|
|
785
|
+
permission_policy: {
|
|
786
|
+
type: "always_allow" | "always_ask";
|
|
787
|
+
};
|
|
788
|
+
}>;
|
|
789
|
+
default_config: {
|
|
790
|
+
enabled: boolean;
|
|
791
|
+
permission_policy: {
|
|
792
|
+
type: "always_allow";
|
|
793
|
+
} | {
|
|
794
|
+
type: "always_ask";
|
|
795
|
+
} | {
|
|
796
|
+
type: "auto";
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
type: "agent_toolset_20260401";
|
|
800
|
+
} | {
|
|
801
|
+
type: "mcp_toolset";
|
|
802
|
+
mcp_server_name: string;
|
|
803
|
+
default_config?: {
|
|
804
|
+
enabled?: boolean | null;
|
|
805
|
+
permission_policy?: null | {
|
|
806
|
+
type: "always_allow" | "always_ask";
|
|
807
|
+
};
|
|
808
|
+
} | null;
|
|
809
|
+
configs?: Array<{
|
|
810
|
+
name: string;
|
|
811
|
+
enabled?: boolean | null;
|
|
812
|
+
permission_policy?: null | {
|
|
813
|
+
type: "always_allow" | "always_ask";
|
|
814
|
+
};
|
|
815
|
+
}> | null;
|
|
816
|
+
} | {
|
|
817
|
+
description: string;
|
|
818
|
+
input_schema: {
|
|
819
|
+
type: "object";
|
|
820
|
+
properties?: null | {
|
|
821
|
+
[key: string]: unknown;
|
|
822
|
+
};
|
|
823
|
+
required?: null | Array<string>;
|
|
824
|
+
[key: string]: unknown;
|
|
825
|
+
};
|
|
826
|
+
name: string;
|
|
827
|
+
type: "custom";
|
|
828
|
+
}>;
|
|
829
|
+
type: "agent";
|
|
830
|
+
updated_at: string;
|
|
831
|
+
version: number;
|
|
832
|
+
kind: "personal" | "service";
|
|
833
|
+
computer_id?: string;
|
|
834
|
+
subagent_model?: string | null;
|
|
835
|
+
subagents?: Array<{
|
|
836
|
+
name: string;
|
|
837
|
+
description: string;
|
|
838
|
+
prompt: string;
|
|
839
|
+
tools?: Array<string>;
|
|
840
|
+
disallowed_tools?: Array<string>;
|
|
841
|
+
model?: string;
|
|
842
|
+
}> | null;
|
|
843
|
+
commands?: Array<{
|
|
844
|
+
name: string;
|
|
845
|
+
description?: string;
|
|
846
|
+
argument_hint?: string;
|
|
847
|
+
prompt: string;
|
|
848
|
+
}> | null;
|
|
849
|
+
settings?: {
|
|
850
|
+
hooks?: {
|
|
851
|
+
SessionStart?: Array<{
|
|
852
|
+
matcher?: string;
|
|
853
|
+
hooks: Array<{
|
|
854
|
+
type: "command";
|
|
855
|
+
command: string;
|
|
856
|
+
timeout?: number;
|
|
857
|
+
async?: boolean;
|
|
858
|
+
enabled?: boolean;
|
|
859
|
+
}>;
|
|
860
|
+
}>;
|
|
861
|
+
UserPromptSubmit?: Array<{
|
|
862
|
+
matcher?: string;
|
|
863
|
+
hooks: Array<{
|
|
864
|
+
type: "command";
|
|
865
|
+
command: string;
|
|
866
|
+
timeout?: number;
|
|
867
|
+
async?: boolean;
|
|
868
|
+
enabled?: boolean;
|
|
869
|
+
}>;
|
|
870
|
+
}>;
|
|
871
|
+
PreToolUse?: Array<{
|
|
872
|
+
matcher?: string;
|
|
873
|
+
hooks: Array<{
|
|
874
|
+
type: "command";
|
|
875
|
+
command: string;
|
|
876
|
+
timeout?: number;
|
|
877
|
+
async?: boolean;
|
|
878
|
+
enabled?: boolean;
|
|
879
|
+
}>;
|
|
880
|
+
}>;
|
|
881
|
+
PermissionRequest?: Array<{
|
|
882
|
+
matcher?: string;
|
|
883
|
+
hooks: Array<{
|
|
884
|
+
type: "command";
|
|
885
|
+
command: string;
|
|
886
|
+
timeout?: number;
|
|
887
|
+
async?: boolean;
|
|
888
|
+
enabled?: boolean;
|
|
889
|
+
}>;
|
|
890
|
+
}>;
|
|
891
|
+
PostToolUse?: Array<{
|
|
892
|
+
matcher?: string;
|
|
893
|
+
hooks: Array<{
|
|
894
|
+
type: "command";
|
|
895
|
+
command: string;
|
|
896
|
+
timeout?: number;
|
|
897
|
+
async?: boolean;
|
|
898
|
+
enabled?: boolean;
|
|
899
|
+
}>;
|
|
900
|
+
}>;
|
|
901
|
+
PostToolUseFailure?: Array<{
|
|
902
|
+
matcher?: string;
|
|
903
|
+
hooks: Array<{
|
|
904
|
+
type: "command";
|
|
905
|
+
command: string;
|
|
906
|
+
timeout?: number;
|
|
907
|
+
async?: boolean;
|
|
908
|
+
enabled?: boolean;
|
|
909
|
+
}>;
|
|
910
|
+
}>;
|
|
911
|
+
Stop?: Array<{
|
|
912
|
+
matcher?: string;
|
|
913
|
+
hooks: Array<{
|
|
914
|
+
type: "command";
|
|
915
|
+
command: string;
|
|
916
|
+
timeout?: number;
|
|
917
|
+
async?: boolean;
|
|
918
|
+
enabled?: boolean;
|
|
919
|
+
}>;
|
|
920
|
+
}>;
|
|
921
|
+
};
|
|
922
|
+
allowManagedHooksOnly?: boolean;
|
|
923
|
+
allowManagedMcpServersOnly?: boolean;
|
|
924
|
+
allowManagedPermissionRulesOnly?: boolean;
|
|
925
|
+
autoMemoryEnabled?: boolean;
|
|
926
|
+
disabled?: {
|
|
927
|
+
subagents?: Array<string>;
|
|
928
|
+
commands?: Array<string>;
|
|
929
|
+
skills?: Array<string>;
|
|
930
|
+
mcpServers?: Array<string>;
|
|
931
|
+
hooks?: Array<string>;
|
|
932
|
+
};
|
|
933
|
+
} | null;
|
|
934
|
+
models?: {
|
|
935
|
+
allowed: Array<string>;
|
|
936
|
+
};
|
|
937
|
+
status: "active" | "archived";
|
|
938
|
+
}>;
|
|
939
|
+
};
|
|
529
940
|
update: (options: import("./core/transport.js").CallOptions<Types.AgentsUpdateData>) => Promise<{
|
|
530
941
|
id: string;
|
|
531
942
|
archived_at: null | string;
|
|
@@ -655,6 +1066,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
655
1066
|
models?: {
|
|
656
1067
|
allowed: Array<string>;
|
|
657
1068
|
};
|
|
1069
|
+
status: "active" | "archived";
|
|
658
1070
|
}>;
|
|
659
1071
|
versions: {
|
|
660
1072
|
list: (options: import("./core/transport.js").CallOptions<Types.AgentsVersionsListData>) => Promise<{
|
|
@@ -787,6 +1199,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
787
1199
|
models?: {
|
|
788
1200
|
allowed: Array<string>;
|
|
789
1201
|
};
|
|
1202
|
+
status: "active" | "archived";
|
|
790
1203
|
}>;
|
|
791
1204
|
next_page: string | null;
|
|
792
1205
|
}>;
|
|
@@ -798,6 +1211,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
798
1211
|
id: string;
|
|
799
1212
|
name: string;
|
|
800
1213
|
sandbox_id: string | null;
|
|
1214
|
+
machine_state: "not_started" | "provisioned";
|
|
801
1215
|
environment_id: string | null;
|
|
802
1216
|
status: "active" | "archived";
|
|
803
1217
|
created_at: string;
|
|
@@ -820,12 +1234,16 @@ export declare function createAgent(transport: Transport): {
|
|
|
820
1234
|
sandbox_id: string;
|
|
821
1235
|
envd_access_token: string;
|
|
822
1236
|
template_id: string;
|
|
1237
|
+
tier: "light" | "heavy";
|
|
1238
|
+
lease_id: string | null;
|
|
1239
|
+
lease_expires_at: string | null;
|
|
823
1240
|
}>;
|
|
824
1241
|
create: (options: import("./core/transport.js").CallOptions<Types.ComputersCreateData>) => Promise<{
|
|
825
1242
|
type: "computer";
|
|
826
1243
|
id: string;
|
|
827
1244
|
name: string;
|
|
828
1245
|
sandbox_id: string | null;
|
|
1246
|
+
machine_state: "not_started" | "provisioned";
|
|
829
1247
|
environment_id: string | null;
|
|
830
1248
|
status: "active" | "archived";
|
|
831
1249
|
created_at: string;
|
|
@@ -849,15 +1267,29 @@ export declare function createAgent(transport: Transport): {
|
|
|
849
1267
|
updated_at: string | null;
|
|
850
1268
|
}>;
|
|
851
1269
|
has_more: false;
|
|
1270
|
+
tier: "light" | "heavy";
|
|
852
1271
|
}>;
|
|
853
1272
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
|
|
854
1273
|
};
|
|
1274
|
+
leases: {
|
|
1275
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
|
|
1276
|
+
id: string;
|
|
1277
|
+
type: "computer_lease_released";
|
|
1278
|
+
}>;
|
|
1279
|
+
renew: {
|
|
1280
|
+
create: (options: import("./core/transport.js").CallOptions<Types.RenewComputerLeaseData>) => Promise<{
|
|
1281
|
+
lease_id: string;
|
|
1282
|
+
lease_expires_at: string;
|
|
1283
|
+
}>;
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
855
1286
|
list: (options?: import("./core/transport.js").CallOptions<Types.ComputersListData> | undefined) => Promise<{
|
|
856
1287
|
data: Array<{
|
|
857
1288
|
type: "computer";
|
|
858
1289
|
id: string;
|
|
859
1290
|
name: string;
|
|
860
1291
|
sandbox_id: string | null;
|
|
1292
|
+
machine_state: "not_started" | "provisioned";
|
|
861
1293
|
environment_id: string | null;
|
|
862
1294
|
status: "active" | "archived";
|
|
863
1295
|
created_at: string;
|
|
@@ -872,6 +1304,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
872
1304
|
id: string;
|
|
873
1305
|
name: string;
|
|
874
1306
|
sandbox_id: string | null;
|
|
1307
|
+
machine_state: "not_started" | "provisioned";
|
|
875
1308
|
environment_id: string | null;
|
|
876
1309
|
status: "active" | "archived";
|
|
877
1310
|
created_at: string;
|
|
@@ -880,12 +1313,14 @@ export declare function createAgent(transport: Transport): {
|
|
|
880
1313
|
implementation: "virtual" | "sandbox";
|
|
881
1314
|
storage_bytes: number;
|
|
882
1315
|
file_count: number;
|
|
1316
|
+
stats_complete: boolean;
|
|
883
1317
|
}>;
|
|
884
1318
|
update: (options: import("./core/transport.js").CallOptions<Types.ComputersUpdateData>) => Promise<{
|
|
885
1319
|
type: "computer";
|
|
886
1320
|
id: string;
|
|
887
1321
|
name: string;
|
|
888
1322
|
sandbox_id: string | null;
|
|
1323
|
+
machine_state: "not_started" | "provisioned";
|
|
889
1324
|
environment_id: string | null;
|
|
890
1325
|
status: "active" | "archived";
|
|
891
1326
|
created_at: string;
|
|
@@ -1169,8 +1604,68 @@ export declare function createAgent(transport: Transport): {
|
|
|
1169
1604
|
};
|
|
1170
1605
|
}>;
|
|
1171
1606
|
};
|
|
1607
|
+
embed: {
|
|
1608
|
+
exchange: {
|
|
1609
|
+
create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
|
|
1610
|
+
token: string;
|
|
1611
|
+
expires_at: string;
|
|
1612
|
+
}>;
|
|
1613
|
+
};
|
|
1614
|
+
retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
|
|
1615
|
+
agent?: {
|
|
1616
|
+
name?: string;
|
|
1617
|
+
avatar?: string;
|
|
1618
|
+
};
|
|
1619
|
+
layout?: "inline" | "sidebar" | "popup" | "modal";
|
|
1620
|
+
launcher?: {
|
|
1621
|
+
type: "none" | "bubble" | "mascot";
|
|
1622
|
+
image?: string;
|
|
1623
|
+
position?: "bottom-right" | "bottom-left";
|
|
1624
|
+
label?: string;
|
|
1625
|
+
};
|
|
1626
|
+
header?: {
|
|
1627
|
+
title?: string;
|
|
1628
|
+
subtitle?: string;
|
|
1629
|
+
icon?: string;
|
|
1630
|
+
};
|
|
1631
|
+
theme?: {
|
|
1632
|
+
colorScheme?: "light" | "dark" | "system";
|
|
1633
|
+
accent?: string;
|
|
1634
|
+
surface?: string;
|
|
1635
|
+
grayscale?: "neutral" | "warm" | "cool";
|
|
1636
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
1637
|
+
density?: "compact" | "normal" | "spacious";
|
|
1638
|
+
fontFamily?: string;
|
|
1639
|
+
fontSize?: number;
|
|
1640
|
+
};
|
|
1641
|
+
locale?: "zh" | "en";
|
|
1642
|
+
startScreen?: {
|
|
1643
|
+
greeting?: string;
|
|
1644
|
+
prompts?: Array<{
|
|
1645
|
+
label: string;
|
|
1646
|
+
prompt: string;
|
|
1647
|
+
}>;
|
|
1648
|
+
};
|
|
1649
|
+
composer?: {
|
|
1650
|
+
placeholder?: string;
|
|
1651
|
+
};
|
|
1652
|
+
disclaimer?: string;
|
|
1653
|
+
footer?: string;
|
|
1654
|
+
history?: {
|
|
1655
|
+
enabled?: boolean;
|
|
1656
|
+
};
|
|
1657
|
+
}>;
|
|
1658
|
+
};
|
|
1172
1659
|
embedTokens: {
|
|
1660
|
+
anonymous: {
|
|
1661
|
+
create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
|
|
1662
|
+
token: string;
|
|
1663
|
+
expires_at: string;
|
|
1664
|
+
visitor_secret?: string;
|
|
1665
|
+
}>;
|
|
1666
|
+
};
|
|
1173
1667
|
create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
|
|
1668
|
+
hosted_url?: string;
|
|
1174
1669
|
id: string;
|
|
1175
1670
|
token: string;
|
|
1176
1671
|
expires_at: string;
|
|
@@ -1401,6 +1896,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
1401
1896
|
readonly external_user_id: string | null;
|
|
1402
1897
|
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
1403
1898
|
}>;
|
|
1899
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.SessionsDeleteData>) => Promise<Types.AgentManaged184>;
|
|
1404
1900
|
events: {
|
|
1405
1901
|
list: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsListData>) => Promise<{
|
|
1406
1902
|
data: Array<{
|
|
@@ -1408,6 +1904,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
1408
1904
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
1409
1905
|
type: "user.message";
|
|
1410
1906
|
processed_at?: null | string;
|
|
1907
|
+
praxis_context?: {
|
|
1908
|
+
items: Array<{
|
|
1909
|
+
name: string;
|
|
1910
|
+
value: string;
|
|
1911
|
+
}>;
|
|
1912
|
+
};
|
|
1411
1913
|
message_id?: string;
|
|
1412
1914
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
1413
1915
|
id: string;
|
|
@@ -1588,7 +2090,18 @@ export declare function createAgent(transport: Transport): {
|
|
|
1588
2090
|
next_page: string | null;
|
|
1589
2091
|
}>;
|
|
1590
2092
|
send: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsSendData>) => Promise<{
|
|
1591
|
-
data?: Array<
|
|
2093
|
+
data?: Array<{
|
|
2094
|
+
id: string;
|
|
2095
|
+
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
2096
|
+
type: "user.message";
|
|
2097
|
+
processed_at?: null | string;
|
|
2098
|
+
praxis_context?: {
|
|
2099
|
+
items: Array<{
|
|
2100
|
+
name: string;
|
|
2101
|
+
value: string;
|
|
2102
|
+
}>;
|
|
2103
|
+
};
|
|
2104
|
+
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged238 | Types.AgentManaged243 | Types.AgentManaged247 | {
|
|
1592
2105
|
id: string;
|
|
1593
2106
|
type: "user.steer";
|
|
1594
2107
|
event_id: string;
|
|
@@ -1621,6 +2134,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1621
2134
|
type: "url";
|
|
1622
2135
|
name: string;
|
|
1623
2136
|
url: string;
|
|
2137
|
+
headers?: {
|
|
2138
|
+
[key: string]: string;
|
|
2139
|
+
};
|
|
2140
|
+
timeout_ms?: number;
|
|
2141
|
+
} | {
|
|
2142
|
+
type: "sse";
|
|
2143
|
+
name: string;
|
|
2144
|
+
url: string;
|
|
2145
|
+
headers?: {
|
|
2146
|
+
[key: string]: string;
|
|
2147
|
+
};
|
|
2148
|
+
timeout_ms?: number;
|
|
2149
|
+
} | {
|
|
2150
|
+
type: "stdio";
|
|
2151
|
+
name: string;
|
|
2152
|
+
command: string;
|
|
2153
|
+
args?: Array<string>;
|
|
2154
|
+
env?: {
|
|
2155
|
+
[key: string]: string;
|
|
2156
|
+
};
|
|
2157
|
+
timeout_ms?: number;
|
|
1624
2158
|
}>;
|
|
1625
2159
|
model: {
|
|
1626
2160
|
id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
|
|
@@ -1652,6 +2186,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1652
2186
|
type: "url";
|
|
1653
2187
|
name: string;
|
|
1654
2188
|
url: string;
|
|
2189
|
+
headers?: {
|
|
2190
|
+
[key: string]: string;
|
|
2191
|
+
};
|
|
2192
|
+
timeout_ms?: number;
|
|
2193
|
+
} | {
|
|
2194
|
+
type: "sse";
|
|
2195
|
+
name: string;
|
|
2196
|
+
url: string;
|
|
2197
|
+
headers?: {
|
|
2198
|
+
[key: string]: string;
|
|
2199
|
+
};
|
|
2200
|
+
timeout_ms?: number;
|
|
2201
|
+
} | {
|
|
2202
|
+
type: "stdio";
|
|
2203
|
+
name: string;
|
|
2204
|
+
command: string;
|
|
2205
|
+
args?: Array<string>;
|
|
2206
|
+
env?: {
|
|
2207
|
+
[key: string]: string;
|
|
2208
|
+
};
|
|
2209
|
+
timeout_ms?: number;
|
|
1655
2210
|
}>;
|
|
1656
2211
|
model: {
|
|
1657
2212
|
id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
|
|
@@ -2325,6 +2880,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
2325
2880
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
2326
2881
|
type: "user.message";
|
|
2327
2882
|
processed_at?: null | string;
|
|
2883
|
+
praxis_context?: {
|
|
2884
|
+
items: Array<{
|
|
2885
|
+
name: string;
|
|
2886
|
+
value: string;
|
|
2887
|
+
}>;
|
|
2888
|
+
};
|
|
2328
2889
|
message_id?: string;
|
|
2329
2890
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
2330
2891
|
id: string;
|
|
@@ -2636,6 +3197,11 @@ export declare function createApplication(transport: Transport): {
|
|
|
2636
3197
|
};
|
|
2637
3198
|
update: (options: import("./core/transport.js").CallOptions<Types.ApplicationUpdateWorkerData>) => Promise<Types.ApplicationWorker>;
|
|
2638
3199
|
versions: {
|
|
3200
|
+
assets: {
|
|
3201
|
+
retrieveManifest: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetVersionAssetManifestData>) => Promise<{
|
|
3202
|
+
manifest: Types.ApplicationAssetManifest;
|
|
3203
|
+
}>;
|
|
3204
|
+
};
|
|
2639
3205
|
create: (options: import("./core/transport.js").CallOptions<Types.ApplicationCreateVersionData>) => Promise<Types.ApplicationCreateVersionResult>;
|
|
2640
3206
|
list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListVersionsData>) => Promise<import("./automation.js").Page<Types.ApplicationVersion>>;
|
|
2641
3207
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetVersionData>) => Promise<Types.ApplicationVersion>;
|