@deepraxis/sdk 0.1.0-dev.d939e0f → 0.1.0-dev.ed6ad1b
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 +46 -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 +98 -24
- package/dist/generated/sdk.gen.js +231 -51
- package/dist/generated/types.gen.d.ts +4055 -1817
- 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 +222 -21
- package/dist/operations.generated.js +275 -22
- package/dist/resources.generated.d.ts +472 -1
- package/dist/resources.generated.js +24 -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,6 +263,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
262
263
|
models?: {
|
|
263
264
|
allowed: Array<string>;
|
|
264
265
|
};
|
|
266
|
+
status: "active" | "archived";
|
|
265
267
|
}>;
|
|
266
268
|
endUsers: {
|
|
267
269
|
block: {
|
|
@@ -274,6 +276,10 @@ export declare function createAgent(transport: Transport): {
|
|
|
274
276
|
blocked: boolean;
|
|
275
277
|
}>;
|
|
276
278
|
};
|
|
279
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
|
|
280
|
+
id: string;
|
|
281
|
+
status: "pending";
|
|
282
|
+
}>;
|
|
277
283
|
list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
|
|
278
284
|
data: Array<{
|
|
279
285
|
external_user_id: string;
|
|
@@ -300,6 +306,21 @@ export declare function createAgent(transport: Transport): {
|
|
|
300
306
|
updated_at: string;
|
|
301
307
|
}>;
|
|
302
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
|
+
}>;
|
|
303
324
|
revokeTokens: {
|
|
304
325
|
create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
|
|
305
326
|
revoked: number;
|
|
@@ -446,6 +467,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
446
467
|
models?: {
|
|
447
468
|
allowed: Array<string>;
|
|
448
469
|
};
|
|
470
|
+
status: "active" | "archived";
|
|
449
471
|
}>;
|
|
450
472
|
next_page: string | null;
|
|
451
473
|
}>;
|
|
@@ -578,7 +600,343 @@ export declare function createAgent(transport: Transport): {
|
|
|
578
600
|
models?: {
|
|
579
601
|
allowed: Array<string>;
|
|
580
602
|
};
|
|
603
|
+
status: "active" | "archived";
|
|
581
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
|
+
};
|
|
582
940
|
update: (options: import("./core/transport.js").CallOptions<Types.AgentsUpdateData>) => Promise<{
|
|
583
941
|
id: string;
|
|
584
942
|
archived_at: null | string;
|
|
@@ -708,6 +1066,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
708
1066
|
models?: {
|
|
709
1067
|
allowed: Array<string>;
|
|
710
1068
|
};
|
|
1069
|
+
status: "active" | "archived";
|
|
711
1070
|
}>;
|
|
712
1071
|
versions: {
|
|
713
1072
|
list: (options: import("./core/transport.js").CallOptions<Types.AgentsVersionsListData>) => Promise<{
|
|
@@ -840,6 +1199,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
840
1199
|
models?: {
|
|
841
1200
|
allowed: Array<string>;
|
|
842
1201
|
};
|
|
1202
|
+
status: "active" | "archived";
|
|
843
1203
|
}>;
|
|
844
1204
|
next_page: string | null;
|
|
845
1205
|
}>;
|
|
@@ -851,6 +1211,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
851
1211
|
id: string;
|
|
852
1212
|
name: string;
|
|
853
1213
|
sandbox_id: string | null;
|
|
1214
|
+
machine_state: "not_started" | "provisioned";
|
|
854
1215
|
environment_id: string | null;
|
|
855
1216
|
status: "active" | "archived";
|
|
856
1217
|
created_at: string;
|
|
@@ -873,12 +1234,16 @@ export declare function createAgent(transport: Transport): {
|
|
|
873
1234
|
sandbox_id: string;
|
|
874
1235
|
envd_access_token: string;
|
|
875
1236
|
template_id: string;
|
|
1237
|
+
tier: "light" | "heavy";
|
|
1238
|
+
lease_id: string | null;
|
|
1239
|
+
lease_expires_at: string | null;
|
|
876
1240
|
}>;
|
|
877
1241
|
create: (options: import("./core/transport.js").CallOptions<Types.ComputersCreateData>) => Promise<{
|
|
878
1242
|
type: "computer";
|
|
879
1243
|
id: string;
|
|
880
1244
|
name: string;
|
|
881
1245
|
sandbox_id: string | null;
|
|
1246
|
+
machine_state: "not_started" | "provisioned";
|
|
882
1247
|
environment_id: string | null;
|
|
883
1248
|
status: "active" | "archived";
|
|
884
1249
|
created_at: string;
|
|
@@ -902,15 +1267,29 @@ export declare function createAgent(transport: Transport): {
|
|
|
902
1267
|
updated_at: string | null;
|
|
903
1268
|
}>;
|
|
904
1269
|
has_more: false;
|
|
1270
|
+
tier: "light" | "heavy";
|
|
905
1271
|
}>;
|
|
906
1272
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
|
|
907
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
|
+
};
|
|
908
1286
|
list: (options?: import("./core/transport.js").CallOptions<Types.ComputersListData> | undefined) => Promise<{
|
|
909
1287
|
data: Array<{
|
|
910
1288
|
type: "computer";
|
|
911
1289
|
id: string;
|
|
912
1290
|
name: string;
|
|
913
1291
|
sandbox_id: string | null;
|
|
1292
|
+
machine_state: "not_started" | "provisioned";
|
|
914
1293
|
environment_id: string | null;
|
|
915
1294
|
status: "active" | "archived";
|
|
916
1295
|
created_at: string;
|
|
@@ -925,6 +1304,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
925
1304
|
id: string;
|
|
926
1305
|
name: string;
|
|
927
1306
|
sandbox_id: string | null;
|
|
1307
|
+
machine_state: "not_started" | "provisioned";
|
|
928
1308
|
environment_id: string | null;
|
|
929
1309
|
status: "active" | "archived";
|
|
930
1310
|
created_at: string;
|
|
@@ -933,12 +1313,14 @@ export declare function createAgent(transport: Transport): {
|
|
|
933
1313
|
implementation: "virtual" | "sandbox";
|
|
934
1314
|
storage_bytes: number;
|
|
935
1315
|
file_count: number;
|
|
1316
|
+
stats_complete: boolean;
|
|
936
1317
|
}>;
|
|
937
1318
|
update: (options: import("./core/transport.js").CallOptions<Types.ComputersUpdateData>) => Promise<{
|
|
938
1319
|
type: "computer";
|
|
939
1320
|
id: string;
|
|
940
1321
|
name: string;
|
|
941
1322
|
sandbox_id: string | null;
|
|
1323
|
+
machine_state: "not_started" | "provisioned";
|
|
942
1324
|
environment_id: string | null;
|
|
943
1325
|
status: "active" | "archived";
|
|
944
1326
|
created_at: string;
|
|
@@ -1222,8 +1604,68 @@ export declare function createAgent(transport: Transport): {
|
|
|
1222
1604
|
};
|
|
1223
1605
|
}>;
|
|
1224
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
|
+
};
|
|
1225
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
|
+
};
|
|
1226
1667
|
create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
|
|
1668
|
+
hosted_url?: string;
|
|
1227
1669
|
id: string;
|
|
1228
1670
|
token: string;
|
|
1229
1671
|
expires_at: string;
|
|
@@ -1454,6 +1896,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
1454
1896
|
readonly external_user_id: string | null;
|
|
1455
1897
|
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
1456
1898
|
}>;
|
|
1899
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.SessionsDeleteData>) => Promise<Types.AgentManaged184>;
|
|
1457
1900
|
events: {
|
|
1458
1901
|
list: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsListData>) => Promise<{
|
|
1459
1902
|
data: Array<{
|
|
@@ -1461,6 +1904,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
1461
1904
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
1462
1905
|
type: "user.message";
|
|
1463
1906
|
processed_at?: null | string;
|
|
1907
|
+
praxis_context?: {
|
|
1908
|
+
items: Array<{
|
|
1909
|
+
name: string;
|
|
1910
|
+
value: string;
|
|
1911
|
+
}>;
|
|
1912
|
+
};
|
|
1464
1913
|
message_id?: string;
|
|
1465
1914
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
1466
1915
|
id: string;
|
|
@@ -1641,7 +2090,18 @@ export declare function createAgent(transport: Transport): {
|
|
|
1641
2090
|
next_page: string | null;
|
|
1642
2091
|
}>;
|
|
1643
2092
|
send: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsSendData>) => Promise<{
|
|
1644
|
-
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 | {
|
|
1645
2105
|
id: string;
|
|
1646
2106
|
type: "user.steer";
|
|
1647
2107
|
event_id: string;
|
|
@@ -2420,6 +2880,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
2420
2880
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
2421
2881
|
type: "user.message";
|
|
2422
2882
|
processed_at?: null | string;
|
|
2883
|
+
praxis_context?: {
|
|
2884
|
+
items: Array<{
|
|
2885
|
+
name: string;
|
|
2886
|
+
value: string;
|
|
2887
|
+
}>;
|
|
2888
|
+
};
|
|
2423
2889
|
message_id?: string;
|
|
2424
2890
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
2425
2891
|
id: string;
|
|
@@ -2731,6 +3197,11 @@ export declare function createApplication(transport: Transport): {
|
|
|
2731
3197
|
};
|
|
2732
3198
|
update: (options: import("./core/transport.js").CallOptions<Types.ApplicationUpdateWorkerData>) => Promise<Types.ApplicationWorker>;
|
|
2733
3199
|
versions: {
|
|
3200
|
+
assets: {
|
|
3201
|
+
retrieveManifest: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetVersionAssetManifestData>) => Promise<{
|
|
3202
|
+
manifest: Types.ApplicationAssetManifest;
|
|
3203
|
+
}>;
|
|
3204
|
+
};
|
|
2734
3205
|
create: (options: import("./core/transport.js").CallOptions<Types.ApplicationCreateVersionData>) => Promise<Types.ApplicationCreateVersionResult>;
|
|
2735
3206
|
list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListVersionsData>) => Promise<import("./automation.js").Page<Types.ApplicationVersion>>;
|
|
2736
3207
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetVersionData>) => Promise<Types.ApplicationVersion>;
|
|
@@ -11,8 +11,10 @@ export function createAgent(transport) {
|
|
|
11
11
|
block: {
|
|
12
12
|
create: bind(transport, sdk.blockEndUser),
|
|
13
13
|
},
|
|
14
|
+
delete: bind(transport, sdk.deleteEndUser),
|
|
14
15
|
list: bind(transport, sdk.listEndUsers),
|
|
15
16
|
retrieve: bind(transport, sdk.getEndUser),
|
|
17
|
+
retrieveDeletion: bind(transport, sdk.getEndUserDeletion),
|
|
16
18
|
revokeTokens: {
|
|
17
19
|
create: bind(transport, sdk.revokeEndUserTokens),
|
|
18
20
|
},
|
|
@@ -22,6 +24,9 @@ export function createAgent(transport) {
|
|
|
22
24
|
},
|
|
23
25
|
list: bind(transport, sdk.agentsList),
|
|
24
26
|
retrieve: bind(transport, sdk.agentsRetrieve),
|
|
27
|
+
unarchive: {
|
|
28
|
+
create: bind(transport, sdk.unarchiveAgent),
|
|
29
|
+
},
|
|
25
30
|
update: bind(transport, sdk.agentsUpdate),
|
|
26
31
|
versions: {
|
|
27
32
|
list: bind(transport, sdk.agentsVersionsList),
|
|
@@ -39,6 +44,12 @@ export function createAgent(transport) {
|
|
|
39
44
|
list: bind(transport, sdk.computersFilesList),
|
|
40
45
|
retrieveContent: bind(transport, sdk.computersFilesContent),
|
|
41
46
|
},
|
|
47
|
+
leases: {
|
|
48
|
+
delete: bind(transport, sdk.releaseComputerLease),
|
|
49
|
+
renew: {
|
|
50
|
+
create: bind(transport, sdk.renewComputerLease),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
42
53
|
list: bind(transport, sdk.computersList),
|
|
43
54
|
retrieve: bind(transport, sdk.computersRetrieve),
|
|
44
55
|
update: bind(transport, sdk.computersUpdate),
|
|
@@ -61,7 +72,16 @@ export function createAgent(transport) {
|
|
|
61
72
|
},
|
|
62
73
|
update: bind(transport, sdk.deploymentsUpdate),
|
|
63
74
|
},
|
|
75
|
+
embed: {
|
|
76
|
+
exchange: {
|
|
77
|
+
create: bind(transport, sdk.exchangeEmbedCode),
|
|
78
|
+
},
|
|
79
|
+
retrieveAppearance: bind(transport, sdk.getEmbedAppearance),
|
|
80
|
+
},
|
|
64
81
|
embedTokens: {
|
|
82
|
+
anonymous: {
|
|
83
|
+
create: bind(transport, sdk.createAnonymousEmbedToken),
|
|
84
|
+
},
|
|
65
85
|
create: bind(transport, sdk.createEmbedToken),
|
|
66
86
|
list: bind(transport, sdk.listEmbedTokens),
|
|
67
87
|
revoke: {
|
|
@@ -87,6 +107,7 @@ export function createAgent(transport) {
|
|
|
87
107
|
list: bind(transport, sdk.listSessionCompactions),
|
|
88
108
|
},
|
|
89
109
|
create: bind(transport, sdk.sessionsCreate),
|
|
110
|
+
delete: bind(transport, sdk.sessionsDelete),
|
|
90
111
|
events: {
|
|
91
112
|
list: bind(transport, sdk.sessionsEventsList),
|
|
92
113
|
send: bind(transport, sdk.sessionsEventsSend),
|
|
@@ -168,6 +189,9 @@ export function createApplication(transport) {
|
|
|
168
189
|
},
|
|
169
190
|
update: bind(transport, sdk.applicationUpdateWorker),
|
|
170
191
|
versions: {
|
|
192
|
+
assets: {
|
|
193
|
+
retrieveManifest: bind(transport, sdk.applicationGetVersionAssetManifest),
|
|
194
|
+
},
|
|
171
195
|
create: bind(transport, sdk.applicationCreateVersion),
|
|
172
196
|
list: bindPage(transport, sdk.applicationListVersions),
|
|
173
197
|
retrieve: bind(transport, sdk.applicationGetVersion),
|