@deepraxis/sdk 0.1.1-dev.c64b603 → 0.1.1-dev.d775f1e

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.
@@ -449,90 +449,6 @@ export declare function createAgent(transport: Transport): {
449
449
  }>;
450
450
  };
451
451
  };
452
- endUsers: {
453
- block: {
454
- create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
455
- external_user_id: string;
456
- first_seen_at: string | null;
457
- last_active_at: string | null;
458
- session_count: number;
459
- cost: {
460
- amount: string;
461
- currency: "USD";
462
- };
463
- blocked: boolean;
464
- }>;
465
- };
466
- delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
467
- id: string;
468
- status: "pending";
469
- }>;
470
- list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
471
- data: Array<{
472
- external_user_id: string;
473
- first_seen_at: string | null;
474
- last_active_at: string | null;
475
- session_count: number;
476
- cost: {
477
- amount: string;
478
- currency: "USD";
479
- };
480
- blocked: boolean;
481
- }>;
482
- next_page: string | null;
483
- }>;
484
- retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
485
- external_user_id: string;
486
- first_seen_at: string | null;
487
- last_active_at: string | null;
488
- session_count: number;
489
- cost: {
490
- amount: string;
491
- currency: "USD";
492
- };
493
- blocked: boolean;
494
- recent_sessions: Array<{
495
- id: string;
496
- title: string | null;
497
- source: string | null;
498
- created_at: string;
499
- updated_at: string;
500
- }>;
501
- }>;
502
- retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
503
- id: string;
504
- status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
505
- counts: {
506
- sessions?: number;
507
- events?: number;
508
- messages?: number;
509
- d1_rows?: number;
510
- attachments?: number;
511
- };
512
- snapshot_key?: string;
513
- error?: string;
514
- created_at: string;
515
- updated_at: string;
516
- }>;
517
- revokeTokens: {
518
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
519
- revoked: number;
520
- }>;
521
- };
522
- unblock: {
523
- create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
524
- external_user_id: string;
525
- first_seen_at: string | null;
526
- last_active_at: string | null;
527
- session_count: number;
528
- cost: {
529
- amount: string;
530
- currency: "USD";
531
- };
532
- blocked: boolean;
533
- }>;
534
- };
535
- };
536
452
  list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
537
453
  data: Array<{
538
454
  id: string;
@@ -719,6 +635,7 @@ export declare function createAgent(transport: Transport): {
719
635
  type: "agent";
720
636
  updated_at: string;
721
637
  version: number;
638
+ latest_version?: number;
722
639
  active_version: number;
723
640
  created_by: {
724
641
  type: "user";
@@ -1299,6 +1216,7 @@ export declare function createAgent(transport: Transport): {
1299
1216
  type: "agent";
1300
1217
  updated_at: string;
1301
1218
  version: number;
1219
+ latest_version?: number;
1302
1220
  active_version: number;
1303
1221
  created_by: {
1304
1222
  type: "user";
@@ -1440,227 +1358,26 @@ export declare function createAgent(transport: Transport): {
1440
1358
  archived_at: null | string;
1441
1359
  created_at: string;
1442
1360
  description: null | string;
1443
- mcp_servers: Array<{
1444
- type: "url";
1445
- name: string;
1446
- url: string;
1447
- headers?: {
1448
- [key: string]: string;
1449
- };
1450
- timeout_ms?: number;
1451
- } | {
1452
- type: "sse";
1453
- name: string;
1454
- url: string;
1455
- headers?: {
1456
- [key: string]: string;
1457
- };
1458
- timeout_ms?: number;
1459
- } | {
1460
- type: "stdio";
1461
- name: string;
1462
- command: string;
1463
- args?: Array<string>;
1464
- env?: {
1465
- [key: string]: string;
1466
- };
1467
- timeout_ms?: number;
1468
- }>;
1469
- metadata: {
1470
- [key: string]: string;
1471
- };
1361
+ mcp_servers: Array<Types.AgentManaged36>;
1362
+ metadata: Types.AgentManaged37;
1472
1363
  model: {
1473
1364
  id: string;
1474
- effort?: {
1475
- type: "low";
1476
- } | {
1477
- type: "medium";
1478
- } | {
1479
- type: "high";
1480
- } | {
1481
- type: "xhigh";
1482
- } | {
1483
- type: "max";
1484
- };
1365
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1485
1366
  inference_geo?: string;
1486
1367
  speed?: "standard" | "fast";
1487
1368
  settings?: {
1488
1369
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1489
1370
  };
1490
1371
  };
1491
- multiagent: null | {
1492
- agents: Array<{
1493
- id: string;
1494
- type: "agent";
1495
- version: number;
1496
- } | {
1497
- model: string;
1498
- type: "advisor";
1499
- }>;
1500
- type: "coordinator";
1501
- };
1372
+ multiagent: null | Types.AgentManaged39;
1502
1373
  name: string;
1503
- skills: Array<{
1504
- skill_id: string;
1505
- type: "anthropic";
1506
- version: string;
1507
- } | {
1508
- skill_id: string;
1509
- type: "custom";
1510
- version: string;
1511
- }>;
1374
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1512
1375
  system: null | string;
1513
- tools: Array<{
1514
- configs: Array<{
1515
- enabled: boolean;
1516
- name: "bash";
1517
- permission_policy: {
1518
- type: "always_allow";
1519
- } | {
1520
- type: "always_ask";
1521
- } | {
1522
- type: "auto";
1523
- };
1524
- type: "bash";
1525
- } | {
1526
- enabled: boolean;
1527
- name: "edit";
1528
- permission_policy: {
1529
- type: "always_allow";
1530
- } | {
1531
- type: "always_ask";
1532
- } | {
1533
- type: "auto";
1534
- };
1535
- type: "edit";
1536
- } | {
1537
- enabled: boolean;
1538
- name: "read";
1539
- permission_policy: {
1540
- type: "always_allow";
1541
- } | {
1542
- type: "always_ask";
1543
- } | {
1544
- type: "auto";
1545
- };
1546
- type: "read";
1547
- } | {
1548
- enabled: boolean;
1549
- name: "write";
1550
- permission_policy: {
1551
- type: "always_allow";
1552
- } | {
1553
- type: "always_ask";
1554
- } | {
1555
- type: "auto";
1556
- };
1557
- type: "write";
1558
- } | {
1559
- enabled: boolean;
1560
- name: "glob";
1561
- permission_policy: {
1562
- type: "always_allow";
1563
- } | {
1564
- type: "always_ask";
1565
- } | {
1566
- type: "auto";
1567
- };
1568
- type: "glob";
1569
- } | {
1570
- enabled: boolean;
1571
- name: "grep";
1572
- permission_policy: {
1573
- type: "always_allow";
1574
- } | {
1575
- type: "always_ask";
1576
- } | {
1577
- type: "auto";
1578
- };
1579
- type: "grep";
1580
- } | {
1581
- enabled: boolean;
1582
- name: "web_fetch";
1583
- permission_policy: {
1584
- type: "always_allow";
1585
- } | {
1586
- type: "always_ask";
1587
- } | {
1588
- type: "auto";
1589
- };
1590
- type: "web_fetch";
1591
- allowed_domains?: Array<string>;
1592
- blocked_domains?: Array<string>;
1593
- max_content_tokens?: null | number;
1594
- } | {
1595
- enabled: boolean;
1596
- name: "web_search";
1597
- permission_policy: {
1598
- type: "always_allow";
1599
- } | {
1600
- type: "always_ask";
1601
- } | {
1602
- type: "auto";
1603
- };
1604
- type: "web_search";
1605
- allowed_domains?: Array<string>;
1606
- blocked_domains?: Array<string>;
1607
- user_location?: null | {
1608
- type: "approximate";
1609
- city?: null | string;
1610
- country?: null | string;
1611
- region?: null | string;
1612
- timezone?: null | string;
1613
- };
1614
- } | {
1615
- name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
1616
- enabled: boolean;
1617
- permission_policy: {
1618
- type: "always_allow" | "always_ask";
1619
- };
1620
- }>;
1621
- default_config: {
1622
- enabled: boolean;
1623
- permission_policy: {
1624
- type: "always_allow";
1625
- } | {
1626
- type: "always_ask";
1627
- } | {
1628
- type: "auto";
1629
- };
1630
- };
1631
- type: "agent_toolset_20260401";
1632
- } | {
1633
- type: "mcp_toolset";
1634
- mcp_server_name: string;
1635
- default_config?: {
1636
- enabled?: boolean | null;
1637
- permission_policy?: null | {
1638
- type: "always_allow" | "always_ask";
1639
- };
1640
- } | null;
1641
- configs?: Array<{
1642
- name: string;
1643
- enabled?: boolean | null;
1644
- permission_policy?: null | {
1645
- type: "always_allow" | "always_ask";
1646
- };
1647
- }> | null;
1648
- } | {
1649
- description: string;
1650
- input_schema: {
1651
- type: "object";
1652
- properties?: null | {
1653
- [key: string]: unknown;
1654
- };
1655
- required?: null | Array<string>;
1656
- [key: string]: unknown;
1657
- };
1658
- name: string;
1659
- type: "custom";
1660
- }>;
1376
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1661
1377
  type: "agent";
1662
1378
  updated_at: string;
1663
1379
  version: number;
1380
+ latest_version?: number;
1664
1381
  active_version: number;
1665
1382
  created_by: {
1666
1383
  type: "user";
@@ -2360,122 +2077,6 @@ export declare function createAgent(transport: Transport): {
2360
2077
  };
2361
2078
  }>;
2362
2079
  };
2363
- embed: {
2364
- exchange: {
2365
- create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
2366
- token: string;
2367
- expires_at: string;
2368
- }>;
2369
- };
2370
- retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
2371
- agent?: {
2372
- name?: string;
2373
- avatar?: string;
2374
- };
2375
- layout?: "inline" | "sidebar" | "popup" | "modal";
2376
- launcher?: {
2377
- type: "none" | "bubble" | "mascot";
2378
- pack?: {
2379
- preset?: "mint" | "cat" | "bot";
2380
- images?: {
2381
- idle: string;
2382
- greet?: string;
2383
- listening?: string;
2384
- thinking?: string;
2385
- talking?: string;
2386
- "talking-2"?: string;
2387
- sorry?: string;
2388
- sleep?: string;
2389
- };
2390
- };
2391
- image?: string;
2392
- motion?: "float" | "none";
2393
- position?: "bottom-right" | "bottom-left";
2394
- label?: string;
2395
- };
2396
- header?: {
2397
- title?: string;
2398
- subtitle?: string;
2399
- icon?: string;
2400
- };
2401
- theme?: {
2402
- colorScheme?: "light" | "dark" | "system";
2403
- accent?: string;
2404
- surface?: string;
2405
- grayscale?: "neutral" | "warm" | "cool";
2406
- radius?: "none" | "sm" | "md" | "lg" | "full";
2407
- density?: "compact" | "normal" | "spacious";
2408
- fontFamily?: string;
2409
- fontSize?: number;
2410
- };
2411
- locale?: "zh" | "en";
2412
- startScreen?: {
2413
- greeting?: string;
2414
- prompts?: Array<{
2415
- label: string;
2416
- prompt: string;
2417
- }>;
2418
- };
2419
- composer?: {
2420
- placeholder?: string;
2421
- };
2422
- disclaimer?: string;
2423
- footer?: string;
2424
- history?: {
2425
- enabled?: boolean;
2426
- };
2427
- }>;
2428
- };
2429
- embedTokens: {
2430
- anonymous: {
2431
- create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
2432
- token: string;
2433
- expires_at: string;
2434
- visitor_secret?: string;
2435
- }>;
2436
- };
2437
- create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
2438
- hosted_url?: string;
2439
- id: string;
2440
- token: string;
2441
- expires_at: string;
2442
- }>;
2443
- list: (options?: import("./core/transport.js").CallOptions<Types.ListEmbedTokensData> | undefined) => Promise<{
2444
- data: Array<{
2445
- id: string;
2446
- type: "embed_token";
2447
- agent_id: string;
2448
- agent_version: number;
2449
- external_user_id: string;
2450
- created_at: string;
2451
- expires_at: string;
2452
- revoked_at: string | null;
2453
- host_origin: string | null;
2454
- issued_by: {
2455
- type: "user" | "api_key";
2456
- id: string;
2457
- };
2458
- }>;
2459
- next_page: string | null;
2460
- }>;
2461
- revoke: {
2462
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEmbedTokenData>) => Promise<{
2463
- id: string;
2464
- type: "embed_token";
2465
- agent_id: string;
2466
- agent_version: number;
2467
- external_user_id: string;
2468
- created_at: string;
2469
- expires_at: string;
2470
- revoked_at: string | null;
2471
- host_origin: string | null;
2472
- issued_by: {
2473
- type: "user" | "api_key";
2474
- id: string;
2475
- };
2476
- }>;
2477
- };
2478
- };
2479
2080
  environments: {
2480
2081
  archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2481
2082
  create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
@@ -34,21 +34,6 @@ export function createAgent(transport) {
34
34
  create: bind(transport, sdk.unblockCustomer),
35
35
  },
36
36
  },
37
- endUsers: {
38
- block: {
39
- create: bind(transport, sdk.blockEndUser),
40
- },
41
- delete: bind(transport, sdk.deleteEndUser),
42
- list: bind(transport, sdk.listEndUsers),
43
- retrieve: bind(transport, sdk.getEndUser),
44
- retrieveDeletion: bind(transport, sdk.getEndUserDeletion),
45
- revokeTokens: {
46
- create: bind(transport, sdk.revokeEndUserTokens),
47
- },
48
- unblock: {
49
- create: bind(transport, sdk.unblockEndUser),
50
- },
51
- },
52
37
  list: bind(transport, sdk.agentsList),
53
38
  retrieve: bind(transport, sdk.agentsRetrieve),
54
39
  retrieveAppearance: bind(transport, sdk.getAgentAppearance),
@@ -101,22 +86,6 @@ export function createAgent(transport) {
101
86
  },
102
87
  update: bind(transport, sdk.deploymentsUpdate),
103
88
  },
104
- embed: {
105
- exchange: {
106
- create: bind(transport, sdk.exchangeEmbedCode),
107
- },
108
- retrieveAppearance: bind(transport, sdk.getEmbedAppearance),
109
- },
110
- embedTokens: {
111
- anonymous: {
112
- create: bind(transport, sdk.createAnonymousEmbedToken),
113
- },
114
- create: bind(transport, sdk.createEmbedToken),
115
- list: bind(transport, sdk.listEmbedTokens),
116
- revoke: {
117
- create: bind(transport, sdk.revokeEmbedToken),
118
- },
119
- },
120
89
  environments: {
121
90
  archive: bind(transport, sdk.environmentsArchive),
122
91
  create: bind(transport, sdk.environmentsCreate),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.c64b603",
3
+ "version": "0.1.1-dev.d775f1e",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {