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

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.
@@ -49,7 +49,7 @@ export declare function createAgent(transport: Transport): {
49
49
  readonly verified?: boolean;
50
50
  enabled?: boolean;
51
51
  }>;
52
- kind: "personal" | "service";
52
+ kind: "general" | "personal" | "service";
53
53
  computer_id?: string;
54
54
  subagent_model?: string | null;
55
55
  image_model?: string | null;
@@ -151,6 +151,7 @@ export declare function createAgent(transport: Transport): {
151
151
  mcpServers?: Array<string>;
152
152
  hooks?: Array<string>;
153
153
  };
154
+ idleCompaction?: boolean;
154
155
  } | null;
155
156
  models?: {
156
157
  allowed: Array<string>;
@@ -208,7 +209,7 @@ export declare function createAgent(transport: Transport): {
208
209
  readonly verified?: boolean;
209
210
  enabled?: boolean;
210
211
  }>;
211
- kind: "personal" | "service";
212
+ kind: "general" | "personal" | "service";
212
213
  computer_id?: string;
213
214
  subagent_model?: string | null;
214
215
  image_model?: string | null;
@@ -310,6 +311,7 @@ export declare function createAgent(transport: Transport): {
310
311
  mcpServers?: Array<string>;
311
312
  hooks?: Array<string>;
312
313
  };
314
+ idleCompaction?: boolean;
313
315
  } | null;
314
316
  models?: {
315
317
  allowed: Array<string>;
@@ -496,7 +498,7 @@ export declare function createAgent(transport: Transport): {
496
498
  readonly verified?: boolean;
497
499
  enabled?: boolean;
498
500
  }>;
499
- kind: "personal" | "service";
501
+ kind: "general" | "personal" | "service";
500
502
  computer_id?: string;
501
503
  subagent_model?: string | null;
502
504
  image_model?: string | null;
@@ -598,6 +600,7 @@ export declare function createAgent(transport: Transport): {
598
600
  mcpServers?: Array<string>;
599
601
  hooks?: Array<string>;
600
602
  };
603
+ idleCompaction?: boolean;
601
604
  } | null;
602
605
  models?: {
603
606
  allowed: Array<string>;
@@ -658,7 +661,7 @@ export declare function createAgent(transport: Transport): {
658
661
  readonly verified?: boolean;
659
662
  enabled?: boolean;
660
663
  }>;
661
- kind: "personal" | "service";
664
+ kind: "general" | "personal" | "service";
662
665
  computer_id?: string;
663
666
  subagent_model?: string | null;
664
667
  image_model?: string | null;
@@ -760,6 +763,7 @@ export declare function createAgent(transport: Transport): {
760
763
  mcpServers?: Array<string>;
761
764
  hooks?: Array<string>;
762
765
  };
766
+ idleCompaction?: boolean;
763
767
  } | null;
764
768
  models?: {
765
769
  allowed: Array<string>;
@@ -1056,6 +1060,7 @@ export declare function createAgent(transport: Transport): {
1056
1060
  type: "agent";
1057
1061
  updated_at: string;
1058
1062
  version: number;
1063
+ latest_version?: number;
1059
1064
  active_version: number;
1060
1065
  created_by: {
1061
1066
  type: "user";
@@ -1078,7 +1083,7 @@ export declare function createAgent(transport: Transport): {
1078
1083
  readonly verified?: boolean;
1079
1084
  enabled?: boolean;
1080
1085
  }>;
1081
- kind: "personal" | "service";
1086
+ kind: "general" | "personal" | "service";
1082
1087
  computer_id?: string;
1083
1088
  subagent_model?: string | null;
1084
1089
  image_model?: string | null;
@@ -1180,6 +1185,7 @@ export declare function createAgent(transport: Transport): {
1180
1185
  mcpServers?: Array<string>;
1181
1186
  hooks?: Array<string>;
1182
1187
  };
1188
+ idleCompaction?: boolean;
1183
1189
  } | null;
1184
1190
  models?: {
1185
1191
  allowed: Array<string>;
@@ -1239,7 +1245,7 @@ export declare function createAgent(transport: Transport): {
1239
1245
  readonly verified?: boolean;
1240
1246
  enabled?: boolean;
1241
1247
  }>;
1242
- kind: "personal" | "service";
1248
+ kind: "general" | "personal" | "service";
1243
1249
  computer_id?: string;
1244
1250
  subagent_model?: string | null;
1245
1251
  image_model?: string | null;
@@ -1341,6 +1347,7 @@ export declare function createAgent(transport: Transport): {
1341
1347
  mcpServers?: Array<string>;
1342
1348
  hooks?: Array<string>;
1343
1349
  };
1350
+ idleCompaction?: boolean;
1344
1351
  } | null;
1345
1352
  models?: {
1346
1353
  allowed: Array<string>;
@@ -1400,7 +1407,7 @@ export declare function createAgent(transport: Transport): {
1400
1407
  readonly verified?: boolean;
1401
1408
  enabled?: boolean;
1402
1409
  }>;
1403
- kind: "personal" | "service";
1410
+ kind: "general" | "personal" | "service";
1404
1411
  computer_id?: string;
1405
1412
  subagent_model?: string | null;
1406
1413
  image_model?: string | null;
@@ -1502,6 +1509,7 @@ export declare function createAgent(transport: Transport): {
1502
1509
  mcpServers?: Array<string>;
1503
1510
  hooks?: Array<string>;
1504
1511
  };
1512
+ idleCompaction?: boolean;
1505
1513
  } | null;
1506
1514
  models?: {
1507
1515
  allowed: Array<string>;
@@ -1561,7 +1569,7 @@ export declare function createAgent(transport: Transport): {
1561
1569
  readonly verified?: boolean;
1562
1570
  enabled?: boolean;
1563
1571
  }>;
1564
- kind: "personal" | "service";
1572
+ kind: "general" | "personal" | "service";
1565
1573
  computer_id?: string;
1566
1574
  subagent_model?: string | null;
1567
1575
  image_model?: string | null;
@@ -1663,6 +1671,7 @@ export declare function createAgent(transport: Transport): {
1663
1671
  mcpServers?: Array<string>;
1664
1672
  hooks?: Array<string>;
1665
1673
  };
1674
+ idleCompaction?: boolean;
1666
1675
  } | null;
1667
1676
  models?: {
1668
1677
  allowed: Array<string>;
@@ -1818,7 +1827,7 @@ export declare function createAgent(transport: Transport): {
1818
1827
  } | {
1819
1828
  id: string;
1820
1829
  type: "agent_with_overrides";
1821
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1830
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1822
1831
  cwd?: string;
1823
1832
  model?: string | {
1824
1833
  id: string;
@@ -1855,7 +1864,7 @@ export declare function createAgent(transport: Transport): {
1855
1864
  } | {
1856
1865
  id: string;
1857
1866
  type: "agent_with_overrides";
1858
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1867
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1859
1868
  cwd?: string;
1860
1869
  model?: string | {
1861
1870
  id: string;
@@ -1893,7 +1902,7 @@ export declare function createAgent(transport: Transport): {
1893
1902
  } | {
1894
1903
  id: string;
1895
1904
  type: "agent_with_overrides";
1896
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1905
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1897
1906
  cwd?: string;
1898
1907
  model?: string | {
1899
1908
  id: string;
@@ -1932,7 +1941,7 @@ export declare function createAgent(transport: Transport): {
1932
1941
  } | {
1933
1942
  id: string;
1934
1943
  type: "agent_with_overrides";
1935
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1944
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1936
1945
  cwd?: string;
1937
1946
  model?: string | {
1938
1947
  id: string;
@@ -1969,7 +1978,7 @@ export declare function createAgent(transport: Transport): {
1969
1978
  } | {
1970
1979
  id: string;
1971
1980
  type: "agent_with_overrides";
1972
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1981
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1973
1982
  cwd?: string;
1974
1983
  model?: string | {
1975
1984
  id: string;
@@ -2010,7 +2019,7 @@ export declare function createAgent(transport: Transport): {
2010
2019
  } | {
2011
2020
  id: string;
2012
2021
  type: "agent_with_overrides";
2013
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2022
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2014
2023
  cwd?: string;
2015
2024
  model?: string | {
2016
2025
  id: string;
@@ -2048,7 +2057,7 @@ export declare function createAgent(transport: Transport): {
2048
2057
  } | {
2049
2058
  id: string;
2050
2059
  type: "agent_with_overrides";
2051
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2060
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2052
2061
  cwd?: string;
2053
2062
  model?: string | {
2054
2063
  id: string;
@@ -2183,21 +2192,27 @@ export declare function createAgent(transport: Transport): {
2183
2192
  compact: (options: import("./core/transport.js").CallOptions<Types.CompactSessionData>) => Promise<{
2184
2193
  type: "session_compaction";
2185
2194
  id: string;
2186
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
2195
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
2187
2196
  reason?: string;
2188
2197
  } | {
2189
2198
  type: "session_compaction";
2190
2199
  id: string;
2191
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
2200
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
2192
2201
  reason?: string;
2193
2202
  }>;
2194
2203
  compactions: {
2195
2204
  list: (options: import("./core/transport.js").CallOptions<Types.ListSessionCompactionsData>) => Promise<{
2205
+ active: {
2206
+ type: "session_compaction";
2207
+ id: string;
2208
+ status: "queued" | "running";
2209
+ trigger: "manual" | "auto" | "idle";
2210
+ } | null;
2196
2211
  data: Array<{
2197
2212
  type: "context_compaction";
2198
2213
  id: string;
2199
2214
  event_id: string | null;
2200
- trigger: "auto" | "manual" | "model_downshift";
2215
+ trigger: "auto" | "manual" | "model_downshift" | "idle";
2201
2216
  status: "succeeded" | "failed";
2202
2217
  model: string;
2203
2218
  compacted_message_count: number;
@@ -2308,6 +2323,7 @@ export declare function createAgent(transport: Transport): {
2308
2323
  run_id: string | null;
2309
2324
  message_id?: string;
2310
2325
  } | {
2326
+ full_access_available?: boolean;
2311
2327
  id: string;
2312
2328
  input: Types.AgentManaged197;
2313
2329
  mcp_server_name: string;
@@ -2330,6 +2346,17 @@ export declare function createAgent(transport: Transport): {
2330
2346
  };
2331
2347
  source?: "app" | "codemode";
2332
2348
  parent_tool_use_id?: string;
2349
+ user_once?: true;
2350
+ guarded_rule?: string;
2351
+ permission_suggestions?: Array<{
2352
+ type: "add_rules";
2353
+ behavior: "allow";
2354
+ destination: "agent" | "session";
2355
+ rules: Array<{
2356
+ tool_name: string;
2357
+ rule_content: string;
2358
+ }>;
2359
+ }>;
2333
2360
  title?: string;
2334
2361
  input_titles?: {
2335
2362
  [key: string]: string;
@@ -2348,6 +2375,7 @@ export declare function createAgent(transport: Transport): {
2348
2375
  };
2349
2376
  source?: "app" | "codemode";
2350
2377
  } | {
2378
+ full_access_available?: boolean;
2351
2379
  id: string;
2352
2380
  input: Types.AgentManaged206;
2353
2381
  name: string;
@@ -2357,6 +2385,17 @@ export declare function createAgent(transport: Transport): {
2357
2385
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2358
2386
  session_thread_id?: null | string;
2359
2387
  run_id: string | null;
2388
+ user_once?: true;
2389
+ guarded_rule?: string;
2390
+ permission_suggestions?: Array<{
2391
+ type: "add_rules";
2392
+ behavior: "allow";
2393
+ destination: "agent" | "session";
2394
+ rules: Array<{
2395
+ tool_name: string;
2396
+ rule_content: string;
2397
+ }>;
2398
+ }>;
2360
2399
  } | {
2361
2400
  id: string;
2362
2401
  processed_at: string;
@@ -2377,6 +2416,9 @@ export declare function createAgent(transport: Transport): {
2377
2416
  type: "session.status_idle";
2378
2417
  run_id: string | null;
2379
2418
  } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
2419
+ permission_mode_version?: number;
2420
+ previous_permission_mode?: string | null;
2421
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2380
2422
  id: string;
2381
2423
  processed_at: string;
2382
2424
  type: "session.updated";
@@ -2998,10 +3040,10 @@ export declare function createAgent(transport: Transport): {
2998
3040
  web_fetch_requests?: number;
2999
3041
  web_search_requests?: number;
3000
3042
  };
3001
- runtime_cost?: {
3002
- amount: string;
3003
- currency: "USD";
3043
+ cost_by_product?: {
3044
+ [key: string]: string;
3004
3045
  };
3046
+ subagent_cost_micro_usd?: number;
3005
3047
  };
3006
3048
  vault_ids: Array<string>;
3007
3049
  deployment_id?: null | string;
@@ -3164,7 +3206,7 @@ export declare function createAgent(transport: Transport): {
3164
3206
  retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
3165
3207
  type: "session_compaction";
3166
3208
  id: string;
3167
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
3209
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
3168
3210
  reason?: string;
3169
3211
  }>;
3170
3212
  retrieveContext: (options: import("./core/transport.js").CallOptions<Types.GetSessionContextData>) => Promise<{
@@ -3288,6 +3330,7 @@ export declare function createAgent(transport: Transport): {
3288
3330
  run_id: string | null;
3289
3331
  message_id?: string;
3290
3332
  } | {
3333
+ full_access_available?: boolean;
3291
3334
  id: string;
3292
3335
  input: Types.AgentManaged197;
3293
3336
  mcp_server_name: string;
@@ -3310,6 +3353,17 @@ export declare function createAgent(transport: Transport): {
3310
3353
  };
3311
3354
  };
3312
3355
  source?: "app" | "codemode";
3356
+ user_once?: true;
3357
+ guarded_rule?: string;
3358
+ permission_suggestions?: Array<{
3359
+ type: "add_rules";
3360
+ behavior: "allow";
3361
+ destination: "agent" | "session";
3362
+ rules: Array<{
3363
+ tool_name: string;
3364
+ rule_content: string;
3365
+ }>;
3366
+ }>;
3313
3367
  title?: string;
3314
3368
  input_titles?: {
3315
3369
  [key: string]: string;
@@ -3328,6 +3382,7 @@ export declare function createAgent(transport: Transport): {
3328
3382
  };
3329
3383
  source?: "app" | "codemode";
3330
3384
  } | {
3385
+ full_access_available?: boolean;
3331
3386
  id: string;
3332
3387
  input: Types.AgentManaged206;
3333
3388
  name: string;
@@ -3337,6 +3392,17 @@ export declare function createAgent(transport: Transport): {
3337
3392
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
3338
3393
  session_thread_id?: null | string;
3339
3394
  run_id: string | null;
3395
+ user_once?: true;
3396
+ guarded_rule?: string;
3397
+ permission_suggestions?: Array<{
3398
+ type: "add_rules";
3399
+ behavior: "allow";
3400
+ destination: "agent" | "session";
3401
+ rules: Array<{
3402
+ tool_name: string;
3403
+ rule_content: string;
3404
+ }>;
3405
+ }>;
3340
3406
  } | {
3341
3407
  id: string;
3342
3408
  processed_at: string;
@@ -3357,6 +3423,9 @@ export declare function createAgent(transport: Transport): {
3357
3423
  type: "session.status_idle";
3358
3424
  run_id: string | null;
3359
3425
  } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
3426
+ permission_mode_version?: number;
3427
+ previous_permission_mode?: string | null;
3428
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
3360
3429
  id: string;
3361
3430
  processed_at: string;
3362
3431
  type: "session.updated";
@@ -3625,6 +3694,13 @@ export declare function createAutomation(transport: Transport): {
3625
3694
  hooks: {
3626
3695
  send: (options: import("./core/transport.js").CallOptions<Types.AutomationHooksReceiveData>) => Promise<Types.AutomationFiring>;
3627
3696
  };
3697
+ humanTasks: {
3698
+ cancel: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksCancelData>) => Promise<Types.AutomationHumanTask>;
3699
+ delegate: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksDelegateData>) => Promise<Types.AutomationHumanTask>;
3700
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationHumanTask>>;
3701
+ respond: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksRespondData>) => Promise<Types.AutomationHumanTask>;
3702
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksGetData>) => Promise<Types.AutomationHumanTask>;
3703
+ };
3628
3704
  resolve: {
3629
3705
  retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationResolveResolveData>) => Promise<Types.AutomationResolveResult>;
3630
3706
  };
@@ -3958,6 +4034,20 @@ export declare function createMedia(transport: Transport): {
3958
4034
  };
3959
4035
  };
3960
4036
  export declare function createMeta(transport: Transport): {
4037
+ docs: {
4038
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MetaDocsRetrieveData>) => Promise<{
4039
+ path: string;
4040
+ title: string;
4041
+ url: string;
4042
+ markdown: string;
4043
+ }>;
4044
+ search: (options: import("./core/transport.js").CallOptions<Types.MetaDocsSearchData>) => Promise<{
4045
+ path: string;
4046
+ title: string;
4047
+ url: string;
4048
+ snippet: string;
4049
+ }[]>;
4050
+ };
3961
4051
  health: {
3962
4052
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.HealthCheckData> | undefined) => Promise<string>;
3963
4053
  };
@@ -236,6 +236,13 @@ export function createAutomation(transport) {
236
236
  hooks: {
237
237
  send: bind(transport, sdk.automationHooksReceive),
238
238
  },
239
+ humanTasks: {
240
+ cancel: bind(transport, sdk.automationHumanTasksCancel),
241
+ delegate: bind(transport, sdk.automationHumanTasksDelegate),
242
+ list: bindPage(transport, sdk.automationHumanTasksList),
243
+ respond: bind(transport, sdk.automationHumanTasksRespond),
244
+ retrieve: bind(transport, sdk.automationHumanTasksGet),
245
+ },
239
246
  resolve: {
240
247
  retrieve: bind(transport, sdk.automationResolveResolve),
241
248
  },
@@ -526,6 +533,10 @@ export function createMedia(transport) {
526
533
  }
527
534
  export function createMeta(transport) {
528
535
  return {
536
+ docs: {
537
+ retrieve: bind(transport, sdk.metaDocsRetrieve),
538
+ search: bind(transport, sdk.metaDocsSearch),
539
+ },
529
540
  health: {
530
541
  retrieve: bind(transport, sdk.healthCheck),
531
542
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.d775f1e",
3
+ "version": "0.1.1-dev.ea219e1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {