@deepraxis/sdk 0.2.0-dev.b391673 → 0.2.0-dev.b5aa484

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;
@@ -55601,7 +55752,7 @@ export type ApplyAgentVersionResponses = {
55601
55752
  */
55602
55753
  environment_id?: string | null;
55603
55754
  /**
55604
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
55755
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
55605
55756
  */
55606
55757
  vault_ids?: Array<string>;
55607
55758
  /**
@@ -56861,7 +57012,7 @@ export type UnarchiveAgentResponses = {
56861
57012
  */
56862
57013
  environment_id?: string | null;
56863
57014
  /**
56864
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
57015
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
56865
57016
  */
56866
57017
  vault_ids?: Array<string>;
56867
57018
  /**
@@ -69106,7 +69257,7 @@ export type BrowserListSessionsErrors = {
69106
69257
  */
69107
69258
  402: BrowserError;
69108
69259
  /**
69109
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69260
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69110
69261
  */
69111
69262
  403: BrowserError;
69112
69263
  /**
@@ -69187,7 +69338,7 @@ export type BrowserCreateSessionErrors = {
69187
69338
  */
69188
69339
  402: BrowserError;
69189
69340
  /**
69190
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69341
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69191
69342
  */
69192
69343
  403: BrowserError;
69193
69344
  /**
@@ -69273,7 +69424,7 @@ export type BrowserGetSessionErrors = {
69273
69424
  */
69274
69425
  402: BrowserError;
69275
69426
  /**
69276
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69427
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69277
69428
  */
69278
69429
  403: BrowserError;
69279
69430
  /**
@@ -69355,7 +69506,7 @@ export type BrowserCloseSessionErrors = {
69355
69506
  */
69356
69507
  402: BrowserError;
69357
69508
  /**
69358
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69509
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69359
69510
  */
69360
69511
  403: BrowserError;
69361
69512
  /**
@@ -69432,7 +69583,7 @@ export type BrowserGetDebugErrors = {
69432
69583
  */
69433
69584
  402: BrowserError;
69434
69585
  /**
69435
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69586
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69436
69587
  */
69437
69588
  403: BrowserError;
69438
69589
  /**
@@ -69522,7 +69673,7 @@ export type BrowserListEventsErrors = {
69522
69673
  */
69523
69674
  402: BrowserError;
69524
69675
  /**
69525
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69676
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69526
69677
  */
69527
69678
  403: BrowserError;
69528
69679
  /**
@@ -69805,7 +69956,7 @@ export type BrowserRunPageActionErrors = {
69805
69956
  */
69806
69957
  402: BrowserError;
69807
69958
  /**
69808
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69959
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
69809
69960
  */
69810
69961
  403: BrowserError;
69811
69962
  /**
@@ -70027,7 +70178,7 @@ export type BrowserRequestHandoffErrors = {
70027
70178
  */
70028
70179
  402: BrowserError;
70029
70180
  /**
70030
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70181
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70031
70182
  */
70032
70183
  403: BrowserError;
70033
70184
  /**
@@ -70104,7 +70255,7 @@ export type BrowserCompleteHandoffErrors = {
70104
70255
  */
70105
70256
  402: BrowserError;
70106
70257
  /**
70107
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70258
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70108
70259
  */
70109
70260
  403: BrowserError;
70110
70261
  /**
@@ -70190,7 +70341,7 @@ export type BrowserViewerHeartbeatErrors = {
70190
70341
  */
70191
70342
  402: BrowserError;
70192
70343
  /**
70193
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70344
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70194
70345
  */
70195
70346
  403: BrowserError;
70196
70347
  /**
@@ -70272,7 +70423,7 @@ export type BrowserGetSessionFrameErrors = {
70272
70423
  */
70273
70424
  402: BrowserError;
70274
70425
  /**
70275
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70426
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70276
70427
  */
70277
70428
  403: BrowserError;
70278
70429
  /**
@@ -70357,7 +70508,7 @@ export type BrowserListContextsErrors = {
70357
70508
  */
70358
70509
  402: BrowserError;
70359
70510
  /**
70360
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70511
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70361
70512
  */
70362
70513
  403: BrowserError;
70363
70514
  /**
@@ -70453,7 +70604,7 @@ export type BrowserCreateContextErrors = {
70453
70604
  */
70454
70605
  402: BrowserError;
70455
70606
  /**
70456
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70607
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70457
70608
  */
70458
70609
  403: BrowserError;
70459
70610
  /**
@@ -70530,7 +70681,7 @@ export type BrowserDeleteContextErrors = {
70530
70681
  */
70531
70682
  402: BrowserError;
70532
70683
  /**
70533
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70684
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70534
70685
  */
70535
70686
  403: BrowserError;
70536
70687
  /**
@@ -70612,7 +70763,7 @@ export type BrowserGetContextErrors = {
70612
70763
  */
70613
70764
  402: BrowserError;
70614
70765
  /**
70615
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70766
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70616
70767
  */
70617
70768
  403: BrowserError;
70618
70769
  /**
@@ -70700,7 +70851,7 @@ export type BrowserUpdateContextErrors = {
70700
70851
  */
70701
70852
  402: BrowserError;
70702
70853
  /**
70703
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70854
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70704
70855
  */
70705
70856
  403: BrowserError;
70706
70857
  /**
@@ -70772,7 +70923,7 @@ export type BrowserCreateByobPairingErrors = {
70772
70923
  */
70773
70924
  402: BrowserError;
70774
70925
  /**
70775
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70926
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70776
70927
  */
70777
70928
  403: BrowserError;
70778
70929
  /**
@@ -70853,7 +71004,7 @@ export type BrowserListByobBrowsersErrors = {
70853
71004
  */
70854
71005
  402: BrowserError;
70855
71006
  /**
70856
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71007
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70857
71008
  */
70858
71009
  403: BrowserError;
70859
71010
  /**
@@ -70939,7 +71090,7 @@ export type BrowserGetByobBrowserErrors = {
70939
71090
  */
70940
71091
  402: BrowserError;
70941
71092
  /**
70942
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71093
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70943
71094
  */
70944
71095
  403: BrowserError;
70945
71096
  /**
@@ -70997,14 +71148,6 @@ export type BrowserUpdateByobBrowserData = {
70997
71148
  * 新的显示名称,1–80 个字符。
70998
71149
  */
70999
71150
  name?: string;
71000
- /**
71001
- * 整体替换被授权的智能体 ID 列表;传空数组撤销全部授权。
71002
- */
71003
- granted_agents?: Array<string>;
71004
- /**
71005
- * 整体替换允许站点列表;传空数组表示不限制。
71006
- */
71007
- allowed_sites?: Array<string>;
71008
71151
  };
71009
71152
  path: {
71010
71153
  /**
@@ -71029,7 +71172,7 @@ export type BrowserUpdateByobBrowserErrors = {
71029
71172
  */
71030
71173
  402: BrowserError;
71031
71174
  /**
71032
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71175
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71033
71176
  */
71034
71177
  403: BrowserError;
71035
71178
  /**
@@ -71106,7 +71249,7 @@ export type BrowserDisconnectByobBrowserErrors = {
71106
71249
  */
71107
71250
  402: BrowserError;
71108
71251
  /**
71109
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71252
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71110
71253
  */
71111
71254
  403: BrowserError;
71112
71255
  /**
@@ -71183,7 +71326,7 @@ export type BrowserReadByobPairingErrors = {
71183
71326
  */
71184
71327
  402: BrowserError;
71185
71328
  /**
71186
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71329
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71187
71330
  */
71188
71331
  403: BrowserError;
71189
71332
  /**
@@ -71260,7 +71403,7 @@ export type BrowserClaimByobPairingErrors = {
71260
71403
  */
71261
71404
  402: BrowserError;
71262
71405
  /**
71263
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71406
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71264
71407
  */
71265
71408
  403: BrowserError;
71266
71409
  /**
@@ -71369,7 +71512,7 @@ export type BrowserConnectErrors = {
71369
71512
  */
71370
71513
  402: BrowserError;
71371
71514
  /**
71372
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71515
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71373
71516
  */
71374
71517
  403: BrowserError;
71375
71518
  /**
@@ -71448,7 +71591,7 @@ export type BrowserLiveViewErrors = {
71448
71591
  */
71449
71592
  402: BrowserError;
71450
71593
  /**
71451
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71594
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71452
71595
  */
71453
71596
  403: BrowserError;
71454
71597
  /**
@@ -71518,7 +71661,7 @@ export type BrowserStreamSessionErrors = {
71518
71661
  */
71519
71662
  402: BrowserError;
71520
71663
  /**
71521
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71664
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71522
71665
  */
71523
71666
  403: BrowserError;
71524
71667
  /**
@@ -71595,7 +71738,7 @@ export type BrowserStreamSessionFramesErrors = {
71595
71738
  */
71596
71739
  402: BrowserError;
71597
71740
  /**
71598
- * PERMISSION_DENIED / BROWSER_NOT_GRANTED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71741
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
71599
71742
  */
71600
71743
  403: BrowserError;
71601
71744
  /**
@@ -80780,7 +80923,7 @@ export type ListByodDevicesResponses = {
80780
80923
  */
80781
80924
  id: string;
80782
80925
  /**
80783
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
80926
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80784
80927
  */
80785
80928
  platform: 'android' | 'macos' | 'linux';
80786
80929
  /**
@@ -80828,6 +80971,10 @@ export type ListByodDevicesResponses = {
80828
80971
  */
80829
80972
  agent: string;
80830
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;
80831
80978
  /**
80832
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.
80833
80980
  */
@@ -80875,7 +81022,7 @@ export type GetByodDeviceResponses = {
80875
81022
  */
80876
81023
  id: string;
80877
81024
  /**
80878
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81025
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80879
81026
  */
80880
81027
  platform: 'android' | 'macos' | 'linux';
80881
81028
  /**
@@ -80923,6 +81070,10 @@ export type GetByodDeviceResponses = {
80923
81070
  */
80924
81071
  agent: string;
80925
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;
80926
81077
  /**
80927
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.
80928
81079
  */
@@ -80981,7 +81132,7 @@ export type UpdateByodDeviceResponses = {
80981
81132
  */
80982
81133
  id: string;
80983
81134
  /**
80984
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
81135
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80985
81136
  */
80986
81137
  platform: 'android' | 'macos' | 'linux';
80987
81138
  /**
@@ -81029,6 +81180,10 @@ export type UpdateByodDeviceResponses = {
81029
81180
  */
81030
81181
  agent: string;
81031
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;
81032
81187
  /**
81033
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.
81034
81189
  */
@@ -81120,7 +81275,7 @@ export type ClaimByodPairingData = {
81120
81275
  */
81121
81276
  body: {
81122
81277
  /**
81123
- * The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS.
81278
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
81124
81279
  */
81125
81280
  platform: 'android' | 'macos' | 'linux';
81126
81281
  /**
@@ -81151,7 +81306,7 @@ export type ClaimByodPairingData = {
81151
81306
  };
81152
81307
  export type ClaimByodPairingErrors = {
81153
81308
  /**
81154
- * INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
81309
+ * INVALID_PARAMS: the body is missing, platform is not android, macos or linux. Fix the body and resend; the code is not spent by a refused claim.
81155
81310
  */
81156
81311
  400: unknown;
81157
81312
  /**
@@ -83774,8 +83929,7 @@ export type SessionsUpdateData = {
83774
83929
  */
83775
83930
  title?: null | string;
83776
83931
  /**
83777
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
83778
- * requests setting this field are rejected. Reserved for future use.
83932
+ * The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes.
83779
83933
  */
83780
83934
  vault_ids?: Array<string>;
83781
83935
  /**
@@ -84716,7 +84870,7 @@ export type AgentsListResponses = {
84716
84870
  */
84717
84871
  environment_id?: string | null;
84718
84872
  /**
84719
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
84873
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
84720
84874
  */
84721
84875
  vault_ids?: Array<string>;
84722
84876
  /**
@@ -85255,7 +85409,7 @@ export type AgentsCreateData = {
85255
85409
  */
85256
85410
  environment_id?: string | null;
85257
85411
  /**
85258
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
85412
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
85259
85413
  */
85260
85414
  vault_ids?: Array<string>;
85261
85415
  /**
@@ -85938,7 +86092,7 @@ export type AgentsCreateResponses = {
85938
86092
  */
85939
86093
  environment_id?: string | null;
85940
86094
  /**
85941
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86095
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
85942
86096
  */
85943
86097
  vault_ids?: Array<string>;
85944
86098
  /**
@@ -86609,7 +86763,7 @@ export type AgentsRetrieveResponses = {
86609
86763
  */
86610
86764
  environment_id?: string | null;
86611
86765
  /**
86612
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86766
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86613
86767
  */
86614
86768
  vault_ids?: Array<string>;
86615
86769
  /**
@@ -87157,7 +87311,7 @@ export type AgentsUpdateData = {
87157
87311
  */
87158
87312
  environment_id?: string | null;
87159
87313
  /**
87160
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
87314
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
87161
87315
  */
87162
87316
  vault_ids?: Array<string>;
87163
87317
  /**
@@ -87853,7 +88007,7 @@ export type AgentsUpdateResponses = {
87853
88007
  */
87854
88008
  environment_id?: string | null;
87855
88009
  /**
87856
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88010
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
87857
88011
  */
87858
88012
  vault_ids?: Array<string>;
87859
88013
  /**
@@ -88479,7 +88633,7 @@ export type AgentsArchiveResponses = {
88479
88633
  */
88480
88634
  environment_id?: string | null;
88481
88635
  /**
88482
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88636
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88483
88637
  */
88484
88638
  vault_ids?: Array<string>;
88485
88639
  /**
@@ -89150,7 +89304,7 @@ export type AgentsVersionsListResponses = {
89150
89304
  */
89151
89305
  environment_id?: string | null;
89152
89306
  /**
89153
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89307
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89154
89308
  */
89155
89309
  vault_ids?: Array<string>;
89156
89310
  /**