@deepraxis/sdk 0.1.0-dev.449ac38 → 0.1.0-dev.67c7f3b
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 +58 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +101 -7
- package/dist/generated/sdk.gen.js +230 -6
- package/dist/generated/types.gen.d.ts +1661 -221
- package/dist/operations.generated.d.ts +237 -6
- package/dist/operations.generated.js +287 -6
- package/dist/resources.generated.d.ts +218 -1
- package/dist/resources.generated.js +30 -0
- package/package.json +1 -1
|
@@ -263,6 +263,78 @@ export declare function createAgent(transport: Transport): {
|
|
|
263
263
|
allowed: Array<string>;
|
|
264
264
|
};
|
|
265
265
|
}>;
|
|
266
|
+
endUsers: {
|
|
267
|
+
block: {
|
|
268
|
+
create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
|
|
269
|
+
external_user_id: string;
|
|
270
|
+
first_seen_at: string | null;
|
|
271
|
+
last_active_at: string | null;
|
|
272
|
+
session_count: number;
|
|
273
|
+
cost_micro_usd: number;
|
|
274
|
+
blocked: boolean;
|
|
275
|
+
}>;
|
|
276
|
+
};
|
|
277
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
|
|
278
|
+
id: string;
|
|
279
|
+
status: "pending";
|
|
280
|
+
}>;
|
|
281
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
|
|
282
|
+
data: Array<{
|
|
283
|
+
external_user_id: string;
|
|
284
|
+
first_seen_at: string | null;
|
|
285
|
+
last_active_at: string | null;
|
|
286
|
+
session_count: number;
|
|
287
|
+
cost_micro_usd: number;
|
|
288
|
+
blocked: boolean;
|
|
289
|
+
}>;
|
|
290
|
+
next_page: string | null;
|
|
291
|
+
}>;
|
|
292
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
|
|
293
|
+
external_user_id: string;
|
|
294
|
+
first_seen_at: string | null;
|
|
295
|
+
last_active_at: string | null;
|
|
296
|
+
session_count: number;
|
|
297
|
+
cost_micro_usd: number;
|
|
298
|
+
blocked: boolean;
|
|
299
|
+
recent_sessions: Array<{
|
|
300
|
+
id: string;
|
|
301
|
+
title: string | null;
|
|
302
|
+
source: string | null;
|
|
303
|
+
created_at: string;
|
|
304
|
+
updated_at: string;
|
|
305
|
+
}>;
|
|
306
|
+
}>;
|
|
307
|
+
retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
|
|
308
|
+
id: string;
|
|
309
|
+
status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
|
|
310
|
+
counts: {
|
|
311
|
+
sessions?: number;
|
|
312
|
+
events?: number;
|
|
313
|
+
messages?: number;
|
|
314
|
+
d1_rows?: number;
|
|
315
|
+
attachments?: number;
|
|
316
|
+
};
|
|
317
|
+
snapshot_key?: string;
|
|
318
|
+
error?: string;
|
|
319
|
+
created_at: string;
|
|
320
|
+
updated_at: string;
|
|
321
|
+
}>;
|
|
322
|
+
revokeTokens: {
|
|
323
|
+
create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
|
|
324
|
+
revoked: number;
|
|
325
|
+
}>;
|
|
326
|
+
};
|
|
327
|
+
unblock: {
|
|
328
|
+
create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
|
|
329
|
+
external_user_id: string;
|
|
330
|
+
first_seen_at: string | null;
|
|
331
|
+
last_active_at: string | null;
|
|
332
|
+
session_count: number;
|
|
333
|
+
cost_micro_usd: number;
|
|
334
|
+
blocked: boolean;
|
|
335
|
+
}>;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
266
338
|
list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
|
|
267
339
|
data: Array<{
|
|
268
340
|
id: string;
|
|
@@ -798,6 +870,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
798
870
|
id: string;
|
|
799
871
|
name: string;
|
|
800
872
|
sandbox_id: string | null;
|
|
873
|
+
machine_state: "not_started" | "provisioned";
|
|
801
874
|
environment_id: string | null;
|
|
802
875
|
status: "active" | "archived";
|
|
803
876
|
created_at: string;
|
|
@@ -820,12 +893,16 @@ export declare function createAgent(transport: Transport): {
|
|
|
820
893
|
sandbox_id: string;
|
|
821
894
|
envd_access_token: string;
|
|
822
895
|
template_id: string;
|
|
896
|
+
tier: "light" | "heavy";
|
|
897
|
+
lease_id: string | null;
|
|
898
|
+
lease_expires_at: string | null;
|
|
823
899
|
}>;
|
|
824
900
|
create: (options: import("./core/transport.js").CallOptions<Types.ComputersCreateData>) => Promise<{
|
|
825
901
|
type: "computer";
|
|
826
902
|
id: string;
|
|
827
903
|
name: string;
|
|
828
904
|
sandbox_id: string | null;
|
|
905
|
+
machine_state: "not_started" | "provisioned";
|
|
829
906
|
environment_id: string | null;
|
|
830
907
|
status: "active" | "archived";
|
|
831
908
|
created_at: string;
|
|
@@ -852,12 +929,25 @@ export declare function createAgent(transport: Transport): {
|
|
|
852
929
|
}>;
|
|
853
930
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
|
|
854
931
|
};
|
|
932
|
+
leases: {
|
|
933
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
|
|
934
|
+
id: string;
|
|
935
|
+
type: "computer_lease_released";
|
|
936
|
+
}>;
|
|
937
|
+
renew: {
|
|
938
|
+
create: (options: import("./core/transport.js").CallOptions<Types.RenewComputerLeaseData>) => Promise<{
|
|
939
|
+
lease_id: string;
|
|
940
|
+
lease_expires_at: string;
|
|
941
|
+
}>;
|
|
942
|
+
};
|
|
943
|
+
};
|
|
855
944
|
list: (options?: import("./core/transport.js").CallOptions<Types.ComputersListData> | undefined) => Promise<{
|
|
856
945
|
data: Array<{
|
|
857
946
|
type: "computer";
|
|
858
947
|
id: string;
|
|
859
948
|
name: string;
|
|
860
949
|
sandbox_id: string | null;
|
|
950
|
+
machine_state: "not_started" | "provisioned";
|
|
861
951
|
environment_id: string | null;
|
|
862
952
|
status: "active" | "archived";
|
|
863
953
|
created_at: string;
|
|
@@ -872,6 +962,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
872
962
|
id: string;
|
|
873
963
|
name: string;
|
|
874
964
|
sandbox_id: string | null;
|
|
965
|
+
machine_state: "not_started" | "provisioned";
|
|
875
966
|
environment_id: string | null;
|
|
876
967
|
status: "active" | "archived";
|
|
877
968
|
created_at: string;
|
|
@@ -886,6 +977,7 @@ export declare function createAgent(transport: Transport): {
|
|
|
886
977
|
id: string;
|
|
887
978
|
name: string;
|
|
888
979
|
sandbox_id: string | null;
|
|
980
|
+
machine_state: "not_started" | "provisioned";
|
|
889
981
|
environment_id: string | null;
|
|
890
982
|
status: "active" | "archived";
|
|
891
983
|
created_at: string;
|
|
@@ -1169,8 +1261,68 @@ export declare function createAgent(transport: Transport): {
|
|
|
1169
1261
|
};
|
|
1170
1262
|
}>;
|
|
1171
1263
|
};
|
|
1264
|
+
embed: {
|
|
1265
|
+
exchange: {
|
|
1266
|
+
create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
|
|
1267
|
+
token: string;
|
|
1268
|
+
expires_at: string;
|
|
1269
|
+
}>;
|
|
1270
|
+
};
|
|
1271
|
+
retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
|
|
1272
|
+
agent?: {
|
|
1273
|
+
name?: string;
|
|
1274
|
+
avatar?: string;
|
|
1275
|
+
};
|
|
1276
|
+
layout?: "inline" | "sidebar" | "popup" | "modal";
|
|
1277
|
+
launcher?: {
|
|
1278
|
+
type: "none" | "bubble" | "mascot";
|
|
1279
|
+
image?: string;
|
|
1280
|
+
position?: "bottom-right" | "bottom-left";
|
|
1281
|
+
label?: string;
|
|
1282
|
+
};
|
|
1283
|
+
header?: {
|
|
1284
|
+
title?: string;
|
|
1285
|
+
subtitle?: string;
|
|
1286
|
+
icon?: string;
|
|
1287
|
+
};
|
|
1288
|
+
theme?: {
|
|
1289
|
+
colorScheme?: "light" | "dark" | "system";
|
|
1290
|
+
accent?: string;
|
|
1291
|
+
surface?: string;
|
|
1292
|
+
grayscale?: "neutral" | "warm" | "cool";
|
|
1293
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
1294
|
+
density?: "compact" | "normal" | "spacious";
|
|
1295
|
+
fontFamily?: string;
|
|
1296
|
+
fontSize?: number;
|
|
1297
|
+
};
|
|
1298
|
+
locale?: "zh" | "en";
|
|
1299
|
+
startScreen?: {
|
|
1300
|
+
greeting?: string;
|
|
1301
|
+
prompts?: Array<{
|
|
1302
|
+
label: string;
|
|
1303
|
+
prompt: string;
|
|
1304
|
+
}>;
|
|
1305
|
+
};
|
|
1306
|
+
composer?: {
|
|
1307
|
+
placeholder?: string;
|
|
1308
|
+
};
|
|
1309
|
+
disclaimer?: string;
|
|
1310
|
+
footer?: string;
|
|
1311
|
+
history?: {
|
|
1312
|
+
enabled?: boolean;
|
|
1313
|
+
};
|
|
1314
|
+
}>;
|
|
1315
|
+
};
|
|
1172
1316
|
embedTokens: {
|
|
1317
|
+
anonymous: {
|
|
1318
|
+
create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
|
|
1319
|
+
token: string;
|
|
1320
|
+
expires_at: string;
|
|
1321
|
+
visitor_secret?: string;
|
|
1322
|
+
}>;
|
|
1323
|
+
};
|
|
1173
1324
|
create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
|
|
1325
|
+
hosted_url?: string;
|
|
1174
1326
|
id: string;
|
|
1175
1327
|
token: string;
|
|
1176
1328
|
expires_at: string;
|
|
@@ -1408,6 +1560,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
1408
1560
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
1409
1561
|
type: "user.message";
|
|
1410
1562
|
processed_at?: null | string;
|
|
1563
|
+
praxis_context?: {
|
|
1564
|
+
items: Array<{
|
|
1565
|
+
name: string;
|
|
1566
|
+
value: string;
|
|
1567
|
+
}>;
|
|
1568
|
+
};
|
|
1411
1569
|
message_id?: string;
|
|
1412
1570
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
1413
1571
|
id: string;
|
|
@@ -1588,7 +1746,18 @@ export declare function createAgent(transport: Transport): {
|
|
|
1588
1746
|
next_page: string | null;
|
|
1589
1747
|
}>;
|
|
1590
1748
|
send: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsSendData>) => Promise<{
|
|
1591
|
-
data?: Array<
|
|
1749
|
+
data?: Array<{
|
|
1750
|
+
id: string;
|
|
1751
|
+
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
1752
|
+
type: "user.message";
|
|
1753
|
+
processed_at?: null | string;
|
|
1754
|
+
praxis_context?: {
|
|
1755
|
+
items: Array<{
|
|
1756
|
+
name: string;
|
|
1757
|
+
value: string;
|
|
1758
|
+
}>;
|
|
1759
|
+
};
|
|
1760
|
+
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged238 | Types.AgentManaged243 | Types.AgentManaged247 | {
|
|
1592
1761
|
id: string;
|
|
1593
1762
|
type: "user.steer";
|
|
1594
1763
|
event_id: string;
|
|
@@ -1621,6 +1790,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1621
1790
|
type: "url";
|
|
1622
1791
|
name: string;
|
|
1623
1792
|
url: string;
|
|
1793
|
+
headers?: {
|
|
1794
|
+
[key: string]: string;
|
|
1795
|
+
};
|
|
1796
|
+
timeout_ms?: number;
|
|
1797
|
+
} | {
|
|
1798
|
+
type: "sse";
|
|
1799
|
+
name: string;
|
|
1800
|
+
url: string;
|
|
1801
|
+
headers?: {
|
|
1802
|
+
[key: string]: string;
|
|
1803
|
+
};
|
|
1804
|
+
timeout_ms?: number;
|
|
1805
|
+
} | {
|
|
1806
|
+
type: "stdio";
|
|
1807
|
+
name: string;
|
|
1808
|
+
command: string;
|
|
1809
|
+
args?: Array<string>;
|
|
1810
|
+
env?: {
|
|
1811
|
+
[key: string]: string;
|
|
1812
|
+
};
|
|
1813
|
+
timeout_ms?: number;
|
|
1624
1814
|
}>;
|
|
1625
1815
|
model: {
|
|
1626
1816
|
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 +1842,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1652
1842
|
type: "url";
|
|
1653
1843
|
name: string;
|
|
1654
1844
|
url: string;
|
|
1845
|
+
headers?: {
|
|
1846
|
+
[key: string]: string;
|
|
1847
|
+
};
|
|
1848
|
+
timeout_ms?: number;
|
|
1849
|
+
} | {
|
|
1850
|
+
type: "sse";
|
|
1851
|
+
name: string;
|
|
1852
|
+
url: string;
|
|
1853
|
+
headers?: {
|
|
1854
|
+
[key: string]: string;
|
|
1855
|
+
};
|
|
1856
|
+
timeout_ms?: number;
|
|
1857
|
+
} | {
|
|
1858
|
+
type: "stdio";
|
|
1859
|
+
name: string;
|
|
1860
|
+
command: string;
|
|
1861
|
+
args?: Array<string>;
|
|
1862
|
+
env?: {
|
|
1863
|
+
[key: string]: string;
|
|
1864
|
+
};
|
|
1865
|
+
timeout_ms?: number;
|
|
1655
1866
|
}>;
|
|
1656
1867
|
model: {
|
|
1657
1868
|
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 +2536,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
2325
2536
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
2326
2537
|
type: "user.message";
|
|
2327
2538
|
processed_at?: null | string;
|
|
2539
|
+
praxis_context?: {
|
|
2540
|
+
items: Array<{
|
|
2541
|
+
name: string;
|
|
2542
|
+
value: string;
|
|
2543
|
+
}>;
|
|
2544
|
+
};
|
|
2328
2545
|
message_id?: string;
|
|
2329
2546
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
2330
2547
|
id: string;
|
|
@@ -7,6 +7,21 @@ export function createAgent(transport) {
|
|
|
7
7
|
agents: {
|
|
8
8
|
archive: bind(transport, sdk.agentsArchive),
|
|
9
9
|
create: bind(transport, sdk.agentsCreate),
|
|
10
|
+
endUsers: {
|
|
11
|
+
block: {
|
|
12
|
+
create: bind(transport, sdk.blockEndUser),
|
|
13
|
+
},
|
|
14
|
+
delete: bind(transport, sdk.deleteEndUser),
|
|
15
|
+
list: bind(transport, sdk.listEndUsers),
|
|
16
|
+
retrieve: bind(transport, sdk.getEndUser),
|
|
17
|
+
retrieveDeletion: bind(transport, sdk.getEndUserDeletion),
|
|
18
|
+
revokeTokens: {
|
|
19
|
+
create: bind(transport, sdk.revokeEndUserTokens),
|
|
20
|
+
},
|
|
21
|
+
unblock: {
|
|
22
|
+
create: bind(transport, sdk.unblockEndUser),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
10
25
|
list: bind(transport, sdk.agentsList),
|
|
11
26
|
retrieve: bind(transport, sdk.agentsRetrieve),
|
|
12
27
|
update: bind(transport, sdk.agentsUpdate),
|
|
@@ -26,6 +41,12 @@ export function createAgent(transport) {
|
|
|
26
41
|
list: bind(transport, sdk.computersFilesList),
|
|
27
42
|
retrieveContent: bind(transport, sdk.computersFilesContent),
|
|
28
43
|
},
|
|
44
|
+
leases: {
|
|
45
|
+
delete: bind(transport, sdk.releaseComputerLease),
|
|
46
|
+
renew: {
|
|
47
|
+
create: bind(transport, sdk.renewComputerLease),
|
|
48
|
+
},
|
|
49
|
+
},
|
|
29
50
|
list: bind(transport, sdk.computersList),
|
|
30
51
|
retrieve: bind(transport, sdk.computersRetrieve),
|
|
31
52
|
update: bind(transport, sdk.computersUpdate),
|
|
@@ -48,7 +69,16 @@ export function createAgent(transport) {
|
|
|
48
69
|
},
|
|
49
70
|
update: bind(transport, sdk.deploymentsUpdate),
|
|
50
71
|
},
|
|
72
|
+
embed: {
|
|
73
|
+
exchange: {
|
|
74
|
+
create: bind(transport, sdk.exchangeEmbedCode),
|
|
75
|
+
},
|
|
76
|
+
retrieveAppearance: bind(transport, sdk.getEmbedAppearance),
|
|
77
|
+
},
|
|
51
78
|
embedTokens: {
|
|
79
|
+
anonymous: {
|
|
80
|
+
create: bind(transport, sdk.createAnonymousEmbedToken),
|
|
81
|
+
},
|
|
52
82
|
create: bind(transport, sdk.createEmbedToken),
|
|
53
83
|
list: bind(transport, sdk.listEmbedTokens),
|
|
54
84
|
revoke: {
|