@deepraxis/sdk 0.1.0-dev.722c0d4 → 0.1.0-dev.95813a3
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 +73 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +131 -7
- package/dist/generated/sdk.gen.js +324 -6
- package/dist/generated/types.gen.d.ts +2616 -444
- package/dist/operations.generated.d.ts +367 -6
- package/dist/operations.generated.js +449 -6
- package/dist/resources.generated.d.ts +364 -1
- package/dist/resources.generated.js +39 -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;
|
|
@@ -880,12 +971,14 @@ export declare function createAgent(transport: Transport): {
|
|
|
880
971
|
implementation: "virtual" | "sandbox";
|
|
881
972
|
storage_bytes: number;
|
|
882
973
|
file_count: number;
|
|
974
|
+
stats_complete: boolean;
|
|
883
975
|
}>;
|
|
884
976
|
update: (options: import("./core/transport.js").CallOptions<Types.ComputersUpdateData>) => Promise<{
|
|
885
977
|
type: "computer";
|
|
886
978
|
id: string;
|
|
887
979
|
name: string;
|
|
888
980
|
sandbox_id: string | null;
|
|
981
|
+
machine_state: "not_started" | "provisioned";
|
|
889
982
|
environment_id: string | null;
|
|
890
983
|
status: "active" | "archived";
|
|
891
984
|
created_at: string;
|
|
@@ -1169,8 +1262,68 @@ export declare function createAgent(transport: Transport): {
|
|
|
1169
1262
|
};
|
|
1170
1263
|
}>;
|
|
1171
1264
|
};
|
|
1265
|
+
embed: {
|
|
1266
|
+
exchange: {
|
|
1267
|
+
create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
|
|
1268
|
+
token: string;
|
|
1269
|
+
expires_at: string;
|
|
1270
|
+
}>;
|
|
1271
|
+
};
|
|
1272
|
+
retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
|
|
1273
|
+
agent?: {
|
|
1274
|
+
name?: string;
|
|
1275
|
+
avatar?: string;
|
|
1276
|
+
};
|
|
1277
|
+
layout?: "inline" | "sidebar" | "popup" | "modal";
|
|
1278
|
+
launcher?: {
|
|
1279
|
+
type: "none" | "bubble" | "mascot";
|
|
1280
|
+
image?: string;
|
|
1281
|
+
position?: "bottom-right" | "bottom-left";
|
|
1282
|
+
label?: string;
|
|
1283
|
+
};
|
|
1284
|
+
header?: {
|
|
1285
|
+
title?: string;
|
|
1286
|
+
subtitle?: string;
|
|
1287
|
+
icon?: string;
|
|
1288
|
+
};
|
|
1289
|
+
theme?: {
|
|
1290
|
+
colorScheme?: "light" | "dark" | "system";
|
|
1291
|
+
accent?: string;
|
|
1292
|
+
surface?: string;
|
|
1293
|
+
grayscale?: "neutral" | "warm" | "cool";
|
|
1294
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
1295
|
+
density?: "compact" | "normal" | "spacious";
|
|
1296
|
+
fontFamily?: string;
|
|
1297
|
+
fontSize?: number;
|
|
1298
|
+
};
|
|
1299
|
+
locale?: "zh" | "en";
|
|
1300
|
+
startScreen?: {
|
|
1301
|
+
greeting?: string;
|
|
1302
|
+
prompts?: Array<{
|
|
1303
|
+
label: string;
|
|
1304
|
+
prompt: string;
|
|
1305
|
+
}>;
|
|
1306
|
+
};
|
|
1307
|
+
composer?: {
|
|
1308
|
+
placeholder?: string;
|
|
1309
|
+
};
|
|
1310
|
+
disclaimer?: string;
|
|
1311
|
+
footer?: string;
|
|
1312
|
+
history?: {
|
|
1313
|
+
enabled?: boolean;
|
|
1314
|
+
};
|
|
1315
|
+
}>;
|
|
1316
|
+
};
|
|
1172
1317
|
embedTokens: {
|
|
1318
|
+
anonymous: {
|
|
1319
|
+
create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
|
|
1320
|
+
token: string;
|
|
1321
|
+
expires_at: string;
|
|
1322
|
+
visitor_secret?: string;
|
|
1323
|
+
}>;
|
|
1324
|
+
};
|
|
1173
1325
|
create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
|
|
1326
|
+
hosted_url?: string;
|
|
1174
1327
|
id: string;
|
|
1175
1328
|
token: string;
|
|
1176
1329
|
expires_at: string;
|
|
@@ -1277,6 +1430,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
1277
1430
|
session_id: string;
|
|
1278
1431
|
message_id: string;
|
|
1279
1432
|
} | null;
|
|
1433
|
+
readonly external_user_id: string | null;
|
|
1434
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
1280
1435
|
}>;
|
|
1281
1436
|
backgroundTasks: {
|
|
1282
1437
|
list: (options: import("./core/transport.js").CallOptions<Types.ListSessionBackgroundTasksData>) => Promise<{
|
|
@@ -1396,6 +1551,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
1396
1551
|
session_id: string;
|
|
1397
1552
|
message_id: string;
|
|
1398
1553
|
} | null;
|
|
1554
|
+
readonly external_user_id: string | null;
|
|
1555
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
1399
1556
|
}>;
|
|
1400
1557
|
events: {
|
|
1401
1558
|
list: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsListData>) => Promise<{
|
|
@@ -1404,6 +1561,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
1404
1561
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
1405
1562
|
type: "user.message";
|
|
1406
1563
|
processed_at?: null | string;
|
|
1564
|
+
praxis_context?: {
|
|
1565
|
+
items: Array<{
|
|
1566
|
+
name: string;
|
|
1567
|
+
value: string;
|
|
1568
|
+
}>;
|
|
1569
|
+
};
|
|
1407
1570
|
message_id?: string;
|
|
1408
1571
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
1409
1572
|
id: string;
|
|
@@ -1584,7 +1747,18 @@ export declare function createAgent(transport: Transport): {
|
|
|
1584
1747
|
next_page: string | null;
|
|
1585
1748
|
}>;
|
|
1586
1749
|
send: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsSendData>) => Promise<{
|
|
1587
|
-
data?: Array<
|
|
1750
|
+
data?: Array<{
|
|
1751
|
+
id: string;
|
|
1752
|
+
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
1753
|
+
type: "user.message";
|
|
1754
|
+
processed_at?: null | string;
|
|
1755
|
+
praxis_context?: {
|
|
1756
|
+
items: Array<{
|
|
1757
|
+
name: string;
|
|
1758
|
+
value: string;
|
|
1759
|
+
}>;
|
|
1760
|
+
};
|
|
1761
|
+
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged238 | Types.AgentManaged243 | Types.AgentManaged247 | {
|
|
1588
1762
|
id: string;
|
|
1589
1763
|
type: "user.steer";
|
|
1590
1764
|
event_id: string;
|
|
@@ -1617,6 +1791,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1617
1791
|
type: "url";
|
|
1618
1792
|
name: string;
|
|
1619
1793
|
url: string;
|
|
1794
|
+
headers?: {
|
|
1795
|
+
[key: string]: string;
|
|
1796
|
+
};
|
|
1797
|
+
timeout_ms?: number;
|
|
1798
|
+
} | {
|
|
1799
|
+
type: "sse";
|
|
1800
|
+
name: string;
|
|
1801
|
+
url: string;
|
|
1802
|
+
headers?: {
|
|
1803
|
+
[key: string]: string;
|
|
1804
|
+
};
|
|
1805
|
+
timeout_ms?: number;
|
|
1806
|
+
} | {
|
|
1807
|
+
type: "stdio";
|
|
1808
|
+
name: string;
|
|
1809
|
+
command: string;
|
|
1810
|
+
args?: Array<string>;
|
|
1811
|
+
env?: {
|
|
1812
|
+
[key: string]: string;
|
|
1813
|
+
};
|
|
1814
|
+
timeout_ms?: number;
|
|
1620
1815
|
}>;
|
|
1621
1816
|
model: {
|
|
1622
1817
|
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;
|
|
@@ -1648,6 +1843,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1648
1843
|
type: "url";
|
|
1649
1844
|
name: string;
|
|
1650
1845
|
url: string;
|
|
1846
|
+
headers?: {
|
|
1847
|
+
[key: string]: string;
|
|
1848
|
+
};
|
|
1849
|
+
timeout_ms?: number;
|
|
1850
|
+
} | {
|
|
1851
|
+
type: "sse";
|
|
1852
|
+
name: string;
|
|
1853
|
+
url: string;
|
|
1854
|
+
headers?: {
|
|
1855
|
+
[key: string]: string;
|
|
1856
|
+
};
|
|
1857
|
+
timeout_ms?: number;
|
|
1858
|
+
} | {
|
|
1859
|
+
type: "stdio";
|
|
1860
|
+
name: string;
|
|
1861
|
+
command: string;
|
|
1862
|
+
args?: Array<string>;
|
|
1863
|
+
env?: {
|
|
1864
|
+
[key: string]: string;
|
|
1865
|
+
};
|
|
1866
|
+
timeout_ms?: number;
|
|
1651
1867
|
}>;
|
|
1652
1868
|
model: {
|
|
1653
1869
|
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;
|
|
@@ -2088,6 +2304,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2088
2304
|
session_id: string;
|
|
2089
2305
|
message_id: string;
|
|
2090
2306
|
} | null;
|
|
2307
|
+
readonly external_user_id: string | null;
|
|
2308
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2091
2309
|
}>;
|
|
2092
2310
|
list: (options?: import("./core/transport.js").CallOptions<Types.SessionsListData> | undefined) => Promise<{
|
|
2093
2311
|
data: Array<{
|
|
@@ -2145,6 +2363,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2145
2363
|
session_id: string;
|
|
2146
2364
|
message_id: string;
|
|
2147
2365
|
} | null;
|
|
2366
|
+
readonly external_user_id: string | null;
|
|
2367
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2148
2368
|
}>;
|
|
2149
2369
|
next_page: string | null;
|
|
2150
2370
|
}>;
|
|
@@ -2220,6 +2440,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2220
2440
|
session_id: string;
|
|
2221
2441
|
message_id: string;
|
|
2222
2442
|
} | null;
|
|
2443
|
+
readonly external_user_id: string | null;
|
|
2444
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2223
2445
|
}>;
|
|
2224
2446
|
retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
|
|
2225
2447
|
type: "session_compaction";
|
|
@@ -2315,6 +2537,12 @@ export declare function createAgent(transport: Transport): {
|
|
|
2315
2537
|
content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
|
|
2316
2538
|
type: "user.message";
|
|
2317
2539
|
processed_at?: null | string;
|
|
2540
|
+
praxis_context?: {
|
|
2541
|
+
items: Array<{
|
|
2542
|
+
name: string;
|
|
2543
|
+
value: string;
|
|
2544
|
+
}>;
|
|
2545
|
+
};
|
|
2318
2546
|
message_id?: string;
|
|
2319
2547
|
} | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
|
|
2320
2548
|
id: string;
|
|
@@ -2550,6 +2778,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2550
2778
|
session_id: string;
|
|
2551
2779
|
message_id: string;
|
|
2552
2780
|
} | null;
|
|
2781
|
+
readonly external_user_id: string | null;
|
|
2782
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2553
2783
|
}>;
|
|
2554
2784
|
};
|
|
2555
2785
|
toolsets: {
|
|
@@ -3579,9 +3809,142 @@ export declare function createOrganization(transport: Transport): {
|
|
|
3579
3809
|
}>;
|
|
3580
3810
|
};
|
|
3581
3811
|
feedback: {
|
|
3812
|
+
counts: {
|
|
3813
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.GetOrganizationFeedbackCountsData> | undefined) => Promise<{
|
|
3814
|
+
object: "feedback.counts";
|
|
3815
|
+
open: number;
|
|
3816
|
+
awaiting_customer: number;
|
|
3817
|
+
in_progress: number;
|
|
3818
|
+
resolved: number;
|
|
3819
|
+
closed: number;
|
|
3820
|
+
total: number;
|
|
3821
|
+
}>;
|
|
3822
|
+
};
|
|
3582
3823
|
create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationFeedbackData>) => Promise<{
|
|
3583
3824
|
id: string;
|
|
3584
3825
|
}>;
|
|
3826
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationFeedbackData> | undefined) => Promise<{
|
|
3827
|
+
object: "page";
|
|
3828
|
+
data: Array<{
|
|
3829
|
+
object: "feedback";
|
|
3830
|
+
id: string;
|
|
3831
|
+
title?: string | null;
|
|
3832
|
+
type?: string | null;
|
|
3833
|
+
message: string;
|
|
3834
|
+
phase: "open" | "awaiting_customer" | "in_progress" | "resolved" | "closed";
|
|
3835
|
+
status: "unresolved" | "resolved" | "ignored";
|
|
3836
|
+
source: "console" | "api" | "codemode";
|
|
3837
|
+
url?: string | null;
|
|
3838
|
+
first_response_due_time?: string | null;
|
|
3839
|
+
first_response_time?: string | null;
|
|
3840
|
+
last_message_time: string;
|
|
3841
|
+
unread: boolean;
|
|
3842
|
+
create_time: string;
|
|
3843
|
+
update_time: string;
|
|
3844
|
+
reporter?: {
|
|
3845
|
+
type?: "user" | "api_key" | "agent_session";
|
|
3846
|
+
};
|
|
3847
|
+
last_message_preview?: {
|
|
3848
|
+
author_kind?: "customer" | "staff" | "system";
|
|
3849
|
+
body?: string;
|
|
3850
|
+
create_time?: string;
|
|
3851
|
+
} | null;
|
|
3852
|
+
attachments: Array<{
|
|
3853
|
+
id?: string;
|
|
3854
|
+
name?: string;
|
|
3855
|
+
content_type?: string;
|
|
3856
|
+
size?: number;
|
|
3857
|
+
create_time?: string;
|
|
3858
|
+
}>;
|
|
3859
|
+
}>;
|
|
3860
|
+
has_more: boolean;
|
|
3861
|
+
next_page: string | null;
|
|
3862
|
+
}>;
|
|
3863
|
+
messages: {
|
|
3864
|
+
create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationFeedbackMessageData>) => Promise<{
|
|
3865
|
+
object: "feedback.message";
|
|
3866
|
+
id: string;
|
|
3867
|
+
feedback_id: string;
|
|
3868
|
+
author: {
|
|
3869
|
+
kind?: "customer" | "staff" | "system";
|
|
3870
|
+
name?: string;
|
|
3871
|
+
};
|
|
3872
|
+
body: string;
|
|
3873
|
+
event?: {
|
|
3874
|
+
type?: "phase_changed" | "assigned";
|
|
3875
|
+
from?: string | null;
|
|
3876
|
+
to?: string | null;
|
|
3877
|
+
} | null;
|
|
3878
|
+
attachments: Array<{
|
|
3879
|
+
id?: string;
|
|
3880
|
+
name?: string;
|
|
3881
|
+
content_type?: string;
|
|
3882
|
+
size?: number;
|
|
3883
|
+
create_time?: string;
|
|
3884
|
+
}>;
|
|
3885
|
+
create_time: string;
|
|
3886
|
+
}>;
|
|
3887
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationFeedbackMessagesData>) => Promise<{
|
|
3888
|
+
object: "page";
|
|
3889
|
+
data: Array<{
|
|
3890
|
+
object: "feedback.message";
|
|
3891
|
+
id: string;
|
|
3892
|
+
feedback_id: string;
|
|
3893
|
+
author: {
|
|
3894
|
+
kind?: "customer" | "staff" | "system";
|
|
3895
|
+
name?: string;
|
|
3896
|
+
};
|
|
3897
|
+
body: string;
|
|
3898
|
+
event?: {
|
|
3899
|
+
type?: "phase_changed" | "assigned";
|
|
3900
|
+
from?: string | null;
|
|
3901
|
+
to?: string | null;
|
|
3902
|
+
} | null;
|
|
3903
|
+
attachments: Array<{
|
|
3904
|
+
id?: string;
|
|
3905
|
+
name?: string;
|
|
3906
|
+
content_type?: string;
|
|
3907
|
+
size?: number;
|
|
3908
|
+
create_time?: string;
|
|
3909
|
+
}>;
|
|
3910
|
+
create_time: string;
|
|
3911
|
+
}>;
|
|
3912
|
+
has_more: boolean;
|
|
3913
|
+
next_page: string | null;
|
|
3914
|
+
}>;
|
|
3915
|
+
};
|
|
3916
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationFeedbackData>) => Promise<{
|
|
3917
|
+
object: "feedback";
|
|
3918
|
+
id: string;
|
|
3919
|
+
title?: string | null;
|
|
3920
|
+
type?: string | null;
|
|
3921
|
+
message: string;
|
|
3922
|
+
phase: "open" | "awaiting_customer" | "in_progress" | "resolved" | "closed";
|
|
3923
|
+
status: "unresolved" | "resolved" | "ignored";
|
|
3924
|
+
source: "console" | "api" | "codemode";
|
|
3925
|
+
url?: string | null;
|
|
3926
|
+
first_response_due_time?: string | null;
|
|
3927
|
+
first_response_time?: string | null;
|
|
3928
|
+
last_message_time: string;
|
|
3929
|
+
unread: boolean;
|
|
3930
|
+
create_time: string;
|
|
3931
|
+
update_time: string;
|
|
3932
|
+
reporter?: {
|
|
3933
|
+
type?: "user" | "api_key" | "agent_session";
|
|
3934
|
+
};
|
|
3935
|
+
last_message_preview?: {
|
|
3936
|
+
author_kind?: "customer" | "staff" | "system";
|
|
3937
|
+
body?: string;
|
|
3938
|
+
create_time?: string;
|
|
3939
|
+
} | null;
|
|
3940
|
+
attachments: Array<{
|
|
3941
|
+
id?: string;
|
|
3942
|
+
name?: string;
|
|
3943
|
+
content_type?: string;
|
|
3944
|
+
size?: number;
|
|
3945
|
+
create_time?: string;
|
|
3946
|
+
}>;
|
|
3947
|
+
}>;
|
|
3585
3948
|
};
|
|
3586
3949
|
usage: {
|
|
3587
3950
|
list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationUsageData>) => Promise<{
|
|
@@ -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: {
|
|
@@ -570,7 +600,16 @@ export function createOrganization(transport) {
|
|
|
570
600
|
retrieve: bind(transport, sdk.getOrganizationEvent),
|
|
571
601
|
},
|
|
572
602
|
feedback: {
|
|
603
|
+
counts: {
|
|
604
|
+
list: bind(transport, sdk.getOrganizationFeedbackCounts),
|
|
605
|
+
},
|
|
573
606
|
create: bind(transport, sdk.createOrganizationFeedback),
|
|
607
|
+
list: bind(transport, sdk.listOrganizationFeedback),
|
|
608
|
+
messages: {
|
|
609
|
+
create: bind(transport, sdk.createOrganizationFeedbackMessage),
|
|
610
|
+
list: bind(transport, sdk.listOrganizationFeedbackMessages),
|
|
611
|
+
},
|
|
612
|
+
retrieve: bind(transport, sdk.getOrganizationFeedback),
|
|
574
613
|
},
|
|
575
614
|
usage: {
|
|
576
615
|
list: bind(transport, sdk.listOrganizationUsage),
|