@deepraxis/sdk 0.2.0-dev.cedf11d → 0.2.0-dev.d4f85b0

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.
@@ -54307,6 +54307,86 @@ export type ListAgentInboxLettersResponses = {
54307
54307
  };
54308
54308
  };
54309
54309
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54310
+ export type ListAgentDeviceLocalSessionsData = {
54311
+ body?: never;
54312
+ path: {
54313
+ /**
54314
+ * The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
54315
+ */
54316
+ agent_id: string;
54317
+ /**
54318
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54319
+ */
54320
+ device_id: string;
54321
+ };
54322
+ query: {
54323
+ /**
54324
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54325
+ */
54326
+ cwd: string;
54327
+ /**
54328
+ * The next_cursor of the previous page; leave it out for the first page.
54329
+ */
54330
+ cursor?: string;
54331
+ };
54332
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54333
+ };
54334
+ export type ListAgentDeviceLocalSessionsErrors = {
54335
+ /**
54336
+ * INVALID_PARAMS: cwd is missing, not absolute or not bound to this agent on that device, the device is not one you paired, or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not a BYOA agent.
54337
+ */
54338
+ 400: unknown;
54339
+ /**
54340
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54341
+ */
54342
+ 401: unknown;
54343
+ /**
54344
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
54345
+ */
54346
+ 403: AgentError;
54347
+ /**
54348
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54349
+ */
54350
+ 404: unknown;
54351
+ /**
54352
+ * DEVICE_NOT_READY: the device is offline; retry once it is connected. DEVICE_TIMEOUT (504) means it is connected but did not answer in time.
54353
+ */
54354
+ 503: unknown;
54355
+ };
54356
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54357
+ export type ListAgentDeviceLocalSessionsResponses = {
54358
+ /**
54359
+ * One page of the device's sessions for that directory, newest first.
54360
+ */
54361
+ 200: {
54362
+ /**
54363
+ * The sessions of this page; empty when the directory has none.
54364
+ */
54365
+ data: Array<{
54366
+ /**
54367
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54368
+ */
54369
+ id: string;
54370
+ /**
54371
+ * The session's title as Claude Code shows it; empty when it has none.
54372
+ */
54373
+ title: string;
54374
+ /**
54375
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54376
+ */
54377
+ updated_at: string | null;
54378
+ /**
54379
+ * The directory the session ran in on the device.
54380
+ */
54381
+ cwd: string | null;
54382
+ }>;
54383
+ /**
54384
+ * Pass as cursor for the next page; null on the last page.
54385
+ */
54386
+ next_cursor: string | null;
54387
+ };
54388
+ };
54389
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54310
54390
  export type CreateAgentLoginIntentData = {
54311
54391
  body?: never;
54312
54392
  path?: never;
@@ -55207,6 +55287,15 @@ export type ApplyAgentVersionResponses = {
55207
55287
  name: string;
55208
55288
  }>;
55209
55289
  };
55290
+ /**
55291
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
55292
+ */
55293
+ browser?: {
55294
+ /**
55295
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55296
+ */
55297
+ byob: string;
55298
+ } | null;
55210
55299
  /**
55211
55300
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
55212
55301
  */
@@ -56458,6 +56547,15 @@ export type UnarchiveAgentResponses = {
56458
56547
  name: string;
56459
56548
  }>;
56460
56549
  };
56550
+ /**
56551
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
56552
+ */
56553
+ browser?: {
56554
+ /**
56555
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56556
+ */
56557
+ byob: string;
56558
+ } | null;
56461
56559
  /**
56462
56560
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
56463
56561
  */
@@ -84304,6 +84402,15 @@ export type AgentsListResponses = {
84304
84402
  name: string;
84305
84403
  }>;
84306
84404
  };
84405
+ /**
84406
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
84407
+ */
84408
+ browser?: {
84409
+ /**
84410
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84411
+ */
84412
+ byob: string;
84413
+ } | null;
84307
84414
  /**
84308
84415
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
84309
84416
  */
@@ -85253,6 +85360,15 @@ export type AgentsCreateData = {
85253
85360
  name: string;
85254
85361
  }>;
85255
85362
  };
85363
+ /**
85364
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
85365
+ */
85366
+ browser?: {
85367
+ /**
85368
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85369
+ */
85370
+ byob: string;
85371
+ } | null;
85256
85372
  /**
85257
85373
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
85258
85374
  */
@@ -85508,6 +85624,15 @@ export type AgentsCreateResponses = {
85508
85624
  name: string;
85509
85625
  }>;
85510
85626
  };
85627
+ /**
85628
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
85629
+ */
85630
+ browser?: {
85631
+ /**
85632
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85633
+ */
85634
+ byob: string;
85635
+ } | null;
85511
85636
  /**
85512
85637
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
85513
85638
  */
@@ -86170,6 +86295,15 @@ export type AgentsRetrieveResponses = {
86170
86295
  name: string;
86171
86296
  }>;
86172
86297
  };
86298
+ /**
86299
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
86300
+ */
86301
+ browser?: {
86302
+ /**
86303
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86304
+ */
86305
+ byob: string;
86306
+ } | null;
86173
86307
  /**
86174
86308
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
86175
86309
  */
@@ -87128,6 +87262,15 @@ export type AgentsUpdateData = {
87128
87262
  name: string;
87129
87263
  }>;
87130
87264
  };
87265
+ /**
87266
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
87267
+ */
87268
+ browser?: {
87269
+ /**
87270
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87271
+ */
87272
+ byob: string;
87273
+ } | null;
87131
87274
  /**
87132
87275
  * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
87133
87276
  */
@@ -87396,6 +87539,15 @@ export type AgentsUpdateResponses = {
87396
87539
  name: string;
87397
87540
  }>;
87398
87541
  };
87542
+ /**
87543
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
87544
+ */
87545
+ browser?: {
87546
+ /**
87547
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87548
+ */
87549
+ byob: string;
87550
+ } | null;
87399
87551
  /**
87400
87552
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
87401
87553
  */
@@ -88684,6 +88836,15 @@ export type AgentsVersionsListResponses = {
88684
88836
  name: string;
88685
88837
  }>;
88686
88838
  };
88839
+ /**
88840
+ * ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
88841
+ */
88842
+ browser?: {
88843
+ /**
88844
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88845
+ */
88846
+ byob: string;
88847
+ } | null;
88687
88848
  /**
88688
88849
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
88689
88850
  */
@@ -215,6 +215,12 @@ export const operations = [
215
215
  "required": false,
216
216
  "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
217
217
  },
218
+ {
219
+ "name": "browser",
220
+ "type": "object",
221
+ "required": false,
222
+ "description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
223
+ },
218
224
  {
219
225
  "name": "preset",
220
226
  "type": "string",
@@ -443,6 +449,12 @@ export const operations = [
443
449
  "required": false,
444
450
  "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
445
451
  },
452
+ {
453
+ "name": "browser",
454
+ "type": "object",
455
+ "required": false,
456
+ "description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
457
+ },
446
458
  {
447
459
  "name": "preset",
448
460
  "type": "string",
@@ -776,6 +788,42 @@ export const operations = [
776
788
  ],
777
789
  "query": []
778
790
  },
791
+ {
792
+ "resource": "agent.agents.devices.localSessions",
793
+ "method": "list",
794
+ "summary": "List the Claude Code sessions already on a device",
795
+ "description": "List the Claude Code sessions that already exist on a person's paired machine for a directory bound to this BYOA agent (started in a terminal, not on the platform), newest first, so one can be continued from the platform: pick an id and create a session with runtime.resume_session_id set to it (runtime.type device, the same device_id and cwd). Only the person who paired the device may ask. cwd is required and must be the directory exactly as the device registered it and bound it to this agent. Pass next_cursor back as cursor for the next page; null means the last page.",
796
+ "http": "GET",
797
+ "path": "/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions",
798
+ "streaming": "no",
799
+ "pagination": true,
800
+ "pathParams": [
801
+ {
802
+ "name": "agent_id",
803
+ "sdkName": "agent_id",
804
+ "description": "The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
805
+ },
806
+ {
807
+ "name": "device_id",
808
+ "sdkName": "device_id",
809
+ "description": "The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it."
810
+ }
811
+ ],
812
+ "query": [
813
+ {
814
+ "name": "cwd",
815
+ "type": "string",
816
+ "required": true,
817
+ "description": "The absolute directory on the device, exactly as the device registered it and bound it to this agent."
818
+ },
819
+ {
820
+ "name": "cursor",
821
+ "type": "string",
822
+ "required": false,
823
+ "description": "The next_cursor of the previous page; leave it out for the first page."
824
+ }
825
+ ]
826
+ },
779
827
  {
780
828
  "resource": "agent.agents",
781
829
  "method": "retrieveEmbedPolicy",
@@ -248,6 +248,9 @@ export declare function createAgent(transport: Transport): {
248
248
  name: string;
249
249
  }>;
250
250
  };
251
+ browser?: {
252
+ byob: string;
253
+ } | null;
251
254
  computer_id?: string;
252
255
  subagent_model?: string | null;
253
256
  subagents?: Array<{
@@ -460,6 +463,16 @@ export declare function createAgent(transport: Transport): {
460
463
  }>;
461
464
  };
462
465
  };
466
+ devices: {
467
+ localSessions: {
468
+ list: (options: import("./core/transport.js").CallOptions<Types.ListAgentDeviceLocalSessionsData>) => Promise<import("./automation.js").Page<{
469
+ id: string;
470
+ title: string;
471
+ updated_at: string | null;
472
+ cwd: string | null;
473
+ }>>;
474
+ };
475
+ };
463
476
  events: {
464
477
  list: (options: import("./core/transport.js").CallOptions<Types.ListAgentEventsData>) => Promise<{
465
478
  data: Array<{
@@ -938,6 +951,9 @@ export declare function createAgent(transport: Transport): {
938
951
  name: string;
939
952
  }>;
940
953
  };
954
+ browser?: {
955
+ byob: string;
956
+ } | null;
941
957
  computer_id?: string;
942
958
  subagent_model?: string | null;
943
959
  subagents?: Array<{
@@ -1146,6 +1162,9 @@ export declare function createAgent(transport: Transport): {
1146
1162
  name: string;
1147
1163
  }>;
1148
1164
  };
1165
+ browser?: {
1166
+ byob: string;
1167
+ } | null;
1149
1168
  computer_id?: string;
1150
1169
  subagent_model?: string | null;
1151
1170
  subagents?: Array<{
@@ -1605,6 +1624,9 @@ export declare function createAgent(transport: Transport): {
1605
1624
  name: string;
1606
1625
  }>;
1607
1626
  };
1627
+ browser?: {
1628
+ byob: string;
1629
+ } | null;
1608
1630
  computer_id?: string;
1609
1631
  subagent_model?: string | null;
1610
1632
  subagents?: Array<{
@@ -1784,6 +1806,9 @@ export declare function createAgent(transport: Transport): {
1784
1806
  name: string;
1785
1807
  }>;
1786
1808
  };
1809
+ browser?: {
1810
+ byob: string;
1811
+ } | null;
1787
1812
  computer_id?: string;
1788
1813
  subagent_model?: string | null;
1789
1814
  subagents?: Array<{
@@ -2180,6 +2205,9 @@ export declare function createAgent(transport: Transport): {
2180
2205
  name: string;
2181
2206
  }>;
2182
2207
  };
2208
+ browser?: {
2209
+ byob: string;
2210
+ } | null;
2183
2211
  computer_id?: string;
2184
2212
  subagent_model?: string | null;
2185
2213
  subagents?: Array<{
@@ -2358,6 +2386,9 @@ export declare function createAgent(transport: Transport): {
2358
2386
  name: string;
2359
2387
  }>;
2360
2388
  };
2389
+ browser?: {
2390
+ byob: string;
2391
+ } | null;
2361
2392
  computer_id?: string;
2362
2393
  subagent_model?: string | null;
2363
2394
  subagents?: Array<{
@@ -141,6 +141,11 @@ export function createAgent(transport) {
141
141
  create: bind(transport, sdk.unblockCustomer),
142
142
  },
143
143
  },
144
+ devices: {
145
+ localSessions: {
146
+ list: bindPage(transport, sdk.listAgentDeviceLocalSessions),
147
+ },
148
+ },
144
149
  events: {
145
150
  list: bind(transport, sdk.listAgentEvents),
146
151
  send: bind(transport, sdk.sendAgentEvents),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.2.0-dev.cedf11d",
3
+ "version": "0.2.0-dev.d4f85b0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {