@deepraxis/sdk 0.2.0-dev.93f321b → 0.2.0-dev.ad00bde

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.
@@ -3609,7 +3609,7 @@ export type BrowserSessionCreateParams = {
3609
3609
  */
3610
3610
  projectId?: string;
3611
3611
  /**
3612
- * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。
3612
+ * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。
3613
3613
  */
3614
3614
  visibility?: 'private' | 'organization';
3615
3615
  /**
@@ -3696,9 +3696,37 @@ export type BrowserSessionCreateParams = {
3696
3696
  ignoreCertificateErrors?: boolean;
3697
3697
  };
3698
3698
  /**
3699
- * 仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。
3699
+ * 省略、false 或 [{type: 'none'}] 表示不用代理。一条 {type: 'external', server, username?, password? | password_secret?} 让会话在我们的 Chrome 容器里经这个 HTTP 代理出网(需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED);不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS。其它代理类型返回 501。
3700
3700
  */
3701
3701
  proxies?: boolean | Array<unknown>;
3702
+ /**
3703
+ * 选择浏览器后端。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带代理也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3704
+ */
3705
+ source?: {
3706
+ /**
3707
+ * Browser Run。
3708
+ */
3709
+ type: 'cloud';
3710
+ } | {
3711
+ /**
3712
+ * 自家 Chrome 容器。
3713
+ */
3714
+ type: 'container';
3715
+ } | {
3716
+ /**
3717
+ * 用户自己的浏览器。
3718
+ */
3719
+ type: 'byob';
3720
+ /**
3721
+ * 自带浏览器 ID,以 byb_ 开头。
3722
+ */
3723
+ browser: string;
3724
+ } | {
3725
+ /**
3726
+ * 自带浏览器 ID,type 为 byob 的简写。
3727
+ */
3728
+ byob: string;
3729
+ };
3702
3730
  /**
3703
3731
  * 接受但忽略;不能选择区域。
3704
3732
  */
@@ -3746,9 +3774,9 @@ export type BrowserSessionCreateResult = {
3746
3774
  */
3747
3775
  region: 'ap-southeast-1';
3748
3776
  /**
3749
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3777
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3750
3778
  */
3751
- proxyBytes: 0;
3779
+ proxyBytes: number;
3752
3780
  /**
3753
3781
  * 会话创建时刻,UTC ISO 8601 时间。
3754
3782
  */
@@ -3794,17 +3822,34 @@ export type BrowserSessionCreateResult = {
3794
3822
  */
3795
3823
  origin: 'api' | 'connect' | 'console';
3796
3824
  /**
3797
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
3825
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3798
3826
  */
3799
3827
  source: {
3800
3828
  /**
3801
3829
  * 云浏览器会话,固定为 cloud。
3802
3830
  */
3831
+ type: 'cloud';
3832
+ /**
3833
+ * 与 type 同值。
3834
+ */
3803
3835
  kind: 'cloud';
3836
+ } | {
3837
+ /**
3838
+ * 自家 Chrome 容器会话,固定为 container。
3839
+ */
3840
+ type: 'container';
3841
+ /**
3842
+ * 与 type 同值。
3843
+ */
3844
+ kind: 'container';
3804
3845
  } | {
3805
3846
  /**
3806
3847
  * 用户自己配对的浏览器会话,固定为 byob。
3807
3848
  */
3849
+ type: 'byob';
3850
+ /**
3851
+ * 与 type 同值。
3852
+ */
3808
3853
  kind: 'byob';
3809
3854
  /**
3810
3855
  * 自带浏览器 ID,以 byb_ 开头。
@@ -3886,7 +3931,7 @@ export type BrowserError = {
3886
3931
  statusCode: number;
3887
3932
  error: string;
3888
3933
  message: string;
3889
- code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_NOT_GRANTED' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3934
+ code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'BROWSER_OFFLINE' | 'BROWSER_REVOKED' | 'PAIRING_NOT_FOUND' | 'BROWSER_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
3890
3935
  };
3891
3936
  export type BrowserSession = {
3892
3937
  /**
@@ -3910,9 +3955,9 @@ export type BrowserSession = {
3910
3955
  */
3911
3956
  region: 'ap-southeast-1';
3912
3957
  /**
3913
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
3958
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3914
3959
  */
3915
- proxyBytes: 0;
3960
+ proxyBytes: number;
3916
3961
  /**
3917
3962
  * 会话创建时刻,UTC ISO 8601 时间。
3918
3963
  */
@@ -3958,17 +4003,34 @@ export type BrowserSession = {
3958
4003
  */
3959
4004
  origin: 'api' | 'connect' | 'console';
3960
4005
  /**
3961
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4006
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
3962
4007
  */
3963
4008
  source: {
3964
4009
  /**
3965
4010
  * 云浏览器会话,固定为 cloud。
3966
4011
  */
4012
+ type: 'cloud';
4013
+ /**
4014
+ * 与 type 同值。
4015
+ */
3967
4016
  kind: 'cloud';
4017
+ } | {
4018
+ /**
4019
+ * 自家 Chrome 容器会话,固定为 container。
4020
+ */
4021
+ type: 'container';
4022
+ /**
4023
+ * 与 type 同值。
4024
+ */
4025
+ kind: 'container';
3968
4026
  } | {
3969
4027
  /**
3970
4028
  * 用户自己配对的浏览器会话,固定为 byob。
3971
4029
  */
4030
+ type: 'byob';
4031
+ /**
4032
+ * 与 type 同值。
4033
+ */
3972
4034
  kind: 'byob';
3973
4035
  /**
3974
4036
  * 自带浏览器 ID,以 byb_ 开头。
@@ -4052,9 +4114,9 @@ export type BrowserSessionGetResult = {
4052
4114
  */
4053
4115
  region: 'ap-southeast-1';
4054
4116
  /**
4055
- * 兼容的代理流量字节数;当前未使用代理,固定返回 0。
4117
+ * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
4056
4118
  */
4057
- proxyBytes: 0;
4119
+ proxyBytes: number;
4058
4120
  /**
4059
4121
  * 会话创建时刻,UTC ISO 8601 时间。
4060
4122
  */
@@ -4100,17 +4162,34 @@ export type BrowserSessionGetResult = {
4100
4162
  */
4101
4163
  origin: 'api' | 'connect' | 'console';
4102
4164
  /**
4103
- * 会话的浏览器来源:cloud 是云浏览器,byob 是用户自己配对的浏览器(browser 为它的 ID)。
4165
+ * 会话实际使用的浏览器后端:cloud 是云浏览器(Browser Run),container 是我们自己的 Chrome 容器,byob 是用户自己配对的浏览器(browser 为它的 ID)。type 与 kind 同值,type 是公开名称,kind 为兼容旧读者保留。
4104
4166
  */
4105
4167
  source: {
4106
4168
  /**
4107
4169
  * 云浏览器会话,固定为 cloud。
4108
4170
  */
4171
+ type: 'cloud';
4172
+ /**
4173
+ * 与 type 同值。
4174
+ */
4109
4175
  kind: 'cloud';
4176
+ } | {
4177
+ /**
4178
+ * 自家 Chrome 容器会话,固定为 container。
4179
+ */
4180
+ type: 'container';
4181
+ /**
4182
+ * 与 type 同值。
4183
+ */
4184
+ kind: 'container';
4110
4185
  } | {
4111
4186
  /**
4112
4187
  * 用户自己配对的浏览器会话,固定为 byob。
4113
4188
  */
4189
+ type: 'byob';
4190
+ /**
4191
+ * 与 type 同值。
4192
+ */
4114
4193
  kind: 'byob';
4115
4194
  /**
4116
4195
  * 自带浏览器 ID,以 byb_ 开头。
@@ -4411,14 +4490,6 @@ export type BrowserByobBrowser = {
4411
4490
  * 配对用的扩展 ID。
4412
4491
  */
4413
4492
  extension_id: string;
4414
- /**
4415
- * 被授权驱动这个浏览器的智能体 ID 列表;智能体不在列表里时不能打开它的会话。空数组表示没有智能体被授权。
4416
- */
4417
- granted_agents: Array<string>;
4418
- /**
4419
- * 允许智能体访问的站点列表;空数组表示不限制 http(s) 站点。这是护栏,不是数据边界。
4420
- */
4421
- allowed_sites: Array<string>;
4422
4493
  /**
4423
4494
  * 扩展的连接当前是否在线;连接对象上线之前固定为 false。
4424
4495
  */
@@ -54307,6 +54378,86 @@ export type ListAgentInboxLettersResponses = {
54307
54378
  };
54308
54379
  };
54309
54380
  export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
54381
+ export type ListAgentDeviceLocalSessionsData = {
54382
+ body?: never;
54383
+ path: {
54384
+ /**
54385
+ * 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_….
54386
+ */
54387
+ agent_id: string;
54388
+ /**
54389
+ * The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it.
54390
+ */
54391
+ device_id: string;
54392
+ };
54393
+ query: {
54394
+ /**
54395
+ * The absolute directory on the device, exactly as the device registered it and bound it to this agent.
54396
+ */
54397
+ cwd: string;
54398
+ /**
54399
+ * The next_cursor of the previous page; leave it out for the first page.
54400
+ */
54401
+ cursor?: string;
54402
+ };
54403
+ url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions';
54404
+ };
54405
+ export type ListAgentDeviceLocalSessionsErrors = {
54406
+ /**
54407
+ * 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.
54408
+ */
54409
+ 400: unknown;
54410
+ /**
54411
+ * Authenticate with your own API key or a console session; an agent's or robot's credential cannot list a person's device.
54412
+ */
54413
+ 401: unknown;
54414
+ /**
54415
+ * 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.
54416
+ */
54417
+ 403: AgentError;
54418
+ /**
54419
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
54420
+ */
54421
+ 404: unknown;
54422
+ /**
54423
+ * 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.
54424
+ */
54425
+ 503: unknown;
54426
+ };
54427
+ export type ListAgentDeviceLocalSessionsError = ListAgentDeviceLocalSessionsErrors[keyof ListAgentDeviceLocalSessionsErrors];
54428
+ export type ListAgentDeviceLocalSessionsResponses = {
54429
+ /**
54430
+ * One page of the device's sessions for that directory, newest first.
54431
+ */
54432
+ 200: {
54433
+ /**
54434
+ * The sessions of this page; empty when the directory has none.
54435
+ */
54436
+ data: Array<{
54437
+ /**
54438
+ * The Claude Code session id on the device; pass it as runtime.resume_session_id when creating a session to continue it.
54439
+ */
54440
+ id: string;
54441
+ /**
54442
+ * The session's title as Claude Code shows it; empty when it has none.
54443
+ */
54444
+ title: string;
54445
+ /**
54446
+ * When the session was last written to, RFC 3339; sessions are ordered newest first.
54447
+ */
54448
+ updated_at: string | null;
54449
+ /**
54450
+ * The directory the session ran in on the device.
54451
+ */
54452
+ cwd: string | null;
54453
+ }>;
54454
+ /**
54455
+ * Pass as cursor for the next page; null on the last page.
54456
+ */
54457
+ next_cursor: string | null;
54458
+ };
54459
+ };
54460
+ export type ListAgentDeviceLocalSessionsResponse = ListAgentDeviceLocalSessionsResponses[keyof ListAgentDeviceLocalSessionsResponses];
54310
54461
  export type CreateAgentLoginIntentData = {
54311
54462
  body?: never;
54312
54463
  path?: never;
@@ -55207,6 +55358,15 @@ export type ApplyAgentVersionResponses = {
55207
55358
  name: string;
55208
55359
  }>;
55209
55360
  };
55361
+ /**
55362
+ * 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.
55363
+ */
55364
+ browser?: {
55365
+ /**
55366
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
55367
+ */
55368
+ byob: string;
55369
+ } | null;
55210
55370
  /**
55211
55371
  * 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
55372
  */
@@ -56458,6 +56618,15 @@ export type UnarchiveAgentResponses = {
56458
56618
  name: string;
56459
56619
  }>;
56460
56620
  };
56621
+ /**
56622
+ * 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.
56623
+ */
56624
+ browser?: {
56625
+ /**
56626
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
56627
+ */
56628
+ byob: string;
56629
+ } | null;
56461
56630
  /**
56462
56631
  * 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
56632
  */
@@ -69088,7 +69257,7 @@ export type BrowserListSessionsErrors = {
69088
69257
  */
69089
69258
  402: BrowserError;
69090
69259
  /**
69091
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69260
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69092
69261
  */
69093
69262
  403: BrowserError;
69094
69263
  /**
@@ -69169,7 +69338,7 @@ export type BrowserCreateSessionErrors = {
69169
69338
  */
69170
69339
  402: BrowserError;
69171
69340
  /**
69172
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69341
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69173
69342
  */
69174
69343
  403: BrowserError;
69175
69344
  /**
@@ -69255,7 +69424,7 @@ export type BrowserGetSessionErrors = {
69255
69424
  */
69256
69425
  402: BrowserError;
69257
69426
  /**
69258
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69427
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69259
69428
  */
69260
69429
  403: BrowserError;
69261
69430
  /**
@@ -69337,7 +69506,7 @@ export type BrowserCloseSessionErrors = {
69337
69506
  */
69338
69507
  402: BrowserError;
69339
69508
  /**
69340
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69509
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69341
69510
  */
69342
69511
  403: BrowserError;
69343
69512
  /**
@@ -69414,7 +69583,7 @@ export type BrowserGetDebugErrors = {
69414
69583
  */
69415
69584
  402: BrowserError;
69416
69585
  /**
69417
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69586
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69418
69587
  */
69419
69588
  403: BrowserError;
69420
69589
  /**
@@ -69504,7 +69673,7 @@ export type BrowserListEventsErrors = {
69504
69673
  */
69505
69674
  402: BrowserError;
69506
69675
  /**
69507
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69676
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69508
69677
  */
69509
69678
  403: BrowserError;
69510
69679
  /**
@@ -69787,7 +69956,7 @@ export type BrowserRunPageActionErrors = {
69787
69956
  */
69788
69957
  402: BrowserError;
69789
69958
  /**
69790
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69959
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69791
69960
  */
69792
69961
  403: BrowserError;
69793
69962
  /**
@@ -70009,7 +70178,7 @@ export type BrowserRequestHandoffErrors = {
70009
70178
  */
70010
70179
  402: BrowserError;
70011
70180
  /**
70012
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70181
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70013
70182
  */
70014
70183
  403: BrowserError;
70015
70184
  /**
@@ -70086,7 +70255,7 @@ export type BrowserCompleteHandoffErrors = {
70086
70255
  */
70087
70256
  402: BrowserError;
70088
70257
  /**
70089
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70258
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70090
70259
  */
70091
70260
  403: BrowserError;
70092
70261
  /**
@@ -70172,7 +70341,7 @@ export type BrowserViewerHeartbeatErrors = {
70172
70341
  */
70173
70342
  402: BrowserError;
70174
70343
  /**
70175
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70344
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70176
70345
  */
70177
70346
  403: BrowserError;
70178
70347
  /**
@@ -70254,7 +70423,7 @@ export type BrowserGetSessionFrameErrors = {
70254
70423
  */
70255
70424
  402: BrowserError;
70256
70425
  /**
70257
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70426
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70258
70427
  */
70259
70428
  403: BrowserError;
70260
70429
  /**
@@ -70339,7 +70508,7 @@ export type BrowserListContextsErrors = {
70339
70508
  */
70340
70509
  402: BrowserError;
70341
70510
  /**
70342
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70511
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70343
70512
  */
70344
70513
  403: BrowserError;
70345
70514
  /**
@@ -70435,7 +70604,7 @@ export type BrowserCreateContextErrors = {
70435
70604
  */
70436
70605
  402: BrowserError;
70437
70606
  /**
70438
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70607
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70439
70608
  */
70440
70609
  403: BrowserError;
70441
70610
  /**
@@ -70512,7 +70681,7 @@ export type BrowserDeleteContextErrors = {
70512
70681
  */
70513
70682
  402: BrowserError;
70514
70683
  /**
70515
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70684
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70516
70685
  */
70517
70686
  403: BrowserError;
70518
70687
  /**
@@ -70594,7 +70763,7 @@ export type BrowserGetContextErrors = {
70594
70763
  */
70595
70764
  402: BrowserError;
70596
70765
  /**
70597
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70766
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70598
70767
  */
70599
70768
  403: BrowserError;
70600
70769
  /**
@@ -70682,7 +70851,7 @@ export type BrowserUpdateContextErrors = {
70682
70851
  */
70683
70852
  402: BrowserError;
70684
70853
  /**
70685
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70854
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70686
70855
  */
70687
70856
  403: BrowserError;
70688
70857
  /**
@@ -70754,7 +70923,7 @@ export type BrowserCreateByobPairingErrors = {
70754
70923
  */
70755
70924
  402: BrowserError;
70756
70925
  /**
70757
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70926
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70758
70927
  */
70759
70928
  403: BrowserError;
70760
70929
  /**
@@ -70835,7 +71004,7 @@ export type BrowserListByobBrowsersErrors = {
70835
71004
  */
70836
71005
  402: BrowserError;
70837
71006
  /**
70838
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71007
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70839
71008
  */
70840
71009
  403: BrowserError;
70841
71010
  /**
@@ -70921,7 +71090,7 @@ export type BrowserGetByobBrowserErrors = {
70921
71090
  */
70922
71091
  402: BrowserError;
70923
71092
  /**
70924
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71093
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70925
71094
  */
70926
71095
  403: BrowserError;
70927
71096
  /**
@@ -70979,14 +71148,6 @@ export type BrowserUpdateByobBrowserData = {
70979
71148
  * 新的显示名称,1–80 个字符。
70980
71149
  */
70981
71150
  name?: string;
70982
- /**
70983
- * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
70984
- */
70985
- granted_agents?: Array<string>;
70986
- /**
70987
- * 整体替换允许站点列表;传空数组表示不限制。
70988
- */
70989
- allowed_sites?: Array<string>;
70990
71151
  };
70991
71152
  path: {
70992
71153
  /**
@@ -71011,7 +71172,7 @@ export type BrowserUpdateByobBrowserErrors = {
71011
71172
  */
71012
71173
  402: BrowserError;
71013
71174
  /**
71014
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71175
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71015
71176
  */
71016
71177
  403: BrowserError;
71017
71178
  /**
@@ -71088,7 +71249,7 @@ export type BrowserDisconnectByobBrowserErrors = {
71088
71249
  */
71089
71250
  402: BrowserError;
71090
71251
  /**
71091
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71252
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71092
71253
  */
71093
71254
  403: BrowserError;
71094
71255
  /**
@@ -71165,7 +71326,7 @@ export type BrowserReadByobPairingErrors = {
71165
71326
  */
71166
71327
  402: BrowserError;
71167
71328
  /**
71168
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71329
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71169
71330
  */
71170
71331
  403: BrowserError;
71171
71332
  /**
@@ -71242,7 +71403,7 @@ export type BrowserClaimByobPairingErrors = {
71242
71403
  */
71243
71404
  402: BrowserError;
71244
71405
  /**
71245
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71406
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71246
71407
  */
71247
71408
  403: BrowserError;
71248
71409
  /**
@@ -71351,7 +71512,7 @@ export type BrowserConnectErrors = {
71351
71512
  */
71352
71513
  402: BrowserError;
71353
71514
  /**
71354
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71515
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71355
71516
  */
71356
71517
  403: BrowserError;
71357
71518
  /**
@@ -71430,7 +71591,7 @@ export type BrowserLiveViewErrors = {
71430
71591
  */
71431
71592
  402: BrowserError;
71432
71593
  /**
71433
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71594
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71434
71595
  */
71435
71596
  403: BrowserError;
71436
71597
  /**
@@ -71500,7 +71661,7 @@ export type BrowserStreamSessionErrors = {
71500
71661
  */
71501
71662
  402: BrowserError;
71502
71663
  /**
71503
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71664
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71504
71665
  */
71505
71666
  403: BrowserError;
71506
71667
  /**
@@ -71577,7 +71738,7 @@ export type BrowserStreamSessionFramesErrors = {
71577
71738
  */
71578
71739
  402: BrowserError;
71579
71740
  /**
71580
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71741
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71581
71742
  */
71582
71743
  403: BrowserError;
71583
71744
  /**
@@ -80810,6 +80971,10 @@ export type ListByodDevicesResponses = {
80810
80971
  */
80811
80972
  agent: string;
80812
80973
  }>;
80974
+ /**
80975
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
80976
+ */
80977
+ envd_version: string | null;
80813
80978
  /**
80814
80979
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80815
80980
  */
@@ -80905,6 +81070,10 @@ export type GetByodDeviceResponses = {
80905
81070
  */
80906
81071
  agent: string;
80907
81072
  }>;
81073
+ /**
81074
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81075
+ */
81076
+ envd_version: string | null;
80908
81077
  /**
80909
81078
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
80910
81079
  */
@@ -81011,6 +81180,10 @@ export type UpdateByodDeviceResponses = {
81011
81180
  */
81012
81181
  agent: string;
81013
81182
  }>;
81183
+ /**
81184
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
81185
+ */
81186
+ envd_version: string | null;
81014
81187
  /**
81015
81188
  * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
81016
81189
  */
@@ -84304,6 +84477,15 @@ export type AgentsListResponses = {
84304
84477
  name: string;
84305
84478
  }>;
84306
84479
  };
84480
+ /**
84481
+ * 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.
84482
+ */
84483
+ browser?: {
84484
+ /**
84485
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
84486
+ */
84487
+ byob: string;
84488
+ } | null;
84307
84489
  /**
84308
84490
  * 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
84491
  */
@@ -85253,6 +85435,15 @@ export type AgentsCreateData = {
85253
85435
  name: string;
85254
85436
  }>;
85255
85437
  };
85438
+ /**
85439
+ * 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.
85440
+ */
85441
+ browser?: {
85442
+ /**
85443
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85444
+ */
85445
+ byob: string;
85446
+ } | null;
85256
85447
  /**
85257
85448
  * 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
85449
  */
@@ -85508,6 +85699,15 @@ export type AgentsCreateResponses = {
85508
85699
  name: string;
85509
85700
  }>;
85510
85701
  };
85702
+ /**
85703
+ * 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.
85704
+ */
85705
+ browser?: {
85706
+ /**
85707
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
85708
+ */
85709
+ byob: string;
85710
+ } | null;
85511
85711
  /**
85512
85712
  * 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
85713
  */
@@ -86170,6 +86370,15 @@ export type AgentsRetrieveResponses = {
86170
86370
  name: string;
86171
86371
  }>;
86172
86372
  };
86373
+ /**
86374
+ * 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.
86375
+ */
86376
+ browser?: {
86377
+ /**
86378
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
86379
+ */
86380
+ byob: string;
86381
+ } | null;
86173
86382
  /**
86174
86383
  * 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
86384
  */
@@ -87128,6 +87337,15 @@ export type AgentsUpdateData = {
87128
87337
  name: string;
87129
87338
  }>;
87130
87339
  };
87340
+ /**
87341
+ * 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.
87342
+ */
87343
+ browser?: {
87344
+ /**
87345
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87346
+ */
87347
+ byob: string;
87348
+ } | null;
87131
87349
  /**
87132
87350
  * 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
87351
  */
@@ -87396,6 +87614,15 @@ export type AgentsUpdateResponses = {
87396
87614
  name: string;
87397
87615
  }>;
87398
87616
  };
87617
+ /**
87618
+ * 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.
87619
+ */
87620
+ browser?: {
87621
+ /**
87622
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
87623
+ */
87624
+ byob: string;
87625
+ } | null;
87399
87626
  /**
87400
87627
  * 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
87628
  */
@@ -88684,6 +88911,15 @@ export type AgentsVersionsListResponses = {
88684
88911
  name: string;
88685
88912
  }>;
88686
88913
  };
88914
+ /**
88915
+ * 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.
88916
+ */
88917
+ browser?: {
88918
+ /**
88919
+ * A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
88920
+ */
88921
+ byob: string;
88922
+ } | null;
88687
88923
  /**
88688
88924
  * 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
88925
  */