@deepraxis/sdk 0.1.0-dev.4cbfc1f → 0.1.0-dev.5e0f28e

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.
@@ -210,7 +210,7 @@ export declare const computersFilesContent: <ThrowOnError extends boolean = fals
210
210
  *
211
211
  * Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.
212
212
  *
213
- * Connect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {"need":"heavy"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Heavy running time counts toward the daily budget in seconds. Renew the lease while using the connection and release it with DELETE when finished. If the daily budget is exhausted, 429 COMPUTER_BUDGET_EXHAUSTED allows you to continue with need light.
213
+ * Connect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {"need":"heavy"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.
214
214
  */
215
215
  export declare const connectComputer: <ThrowOnError extends boolean = false>(options: Options<ConnectComputerData, ThrowOnError>) => RequestResult<ConnectComputerResponses, ConnectComputerErrors, ThrowOnError>;
216
216
  /**
@@ -893,7 +893,7 @@ export declare const sessionsList: <ThrowOnError extends boolean = false>(option
893
893
  /**
894
894
  * Create session
895
895
  *
896
- * Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.
896
+ * Create a session: one conversation with an agent. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, omission returns environment_id=light; explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.
897
897
  */
898
898
  export declare const sessionsCreate: <ThrowOnError extends boolean = false>(options: Options<SessionsCreateData, ThrowOnError>) => RequestResult<SessionsCreateResponses, unknown, ThrowOnError>;
899
899
  /**
@@ -497,7 +497,7 @@ export const computersFilesContent = (options) => (options.client ?? client).get
497
497
  *
498
498
  * Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.
499
499
  *
500
- * Connect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {"need":"heavy"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Heavy running time counts toward the daily budget in seconds. Renew the lease while using the connection and release it with DELETE when finished. If the daily budget is exhausted, 429 COMPUTER_BUDGET_EXHAUSTED allows you to continue with need light.
500
+ * Connect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {"need":"heavy"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.
501
501
  */
502
502
  export const connectComputer = (options) => (options.client ?? client).post({
503
503
  security: [{
@@ -2508,7 +2508,7 @@ export const sessionsList = (options) => (options?.client ?? client).get({
2508
2508
  /**
2509
2509
  * Create session
2510
2510
  *
2511
- * Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.
2511
+ * Create a session: one conversation with an agent. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, omission returns environment_id=light; explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.
2512
2512
  */
2513
2513
  export const sessionsCreate = (options) => (options.client ?? client).post({
2514
2514
  security: [{
@@ -27281,6 +27281,69 @@ export type UnarchiveAgentResponses = {
27281
27281
  * modified.
27282
27282
  */
27283
27283
  version: number;
27284
+ /**
27285
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
27286
+ */
27287
+ databases: Array<{
27288
+ /**
27289
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
27290
+ */
27291
+ id: string;
27292
+ /**
27293
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
27294
+ */
27295
+ access: 'read_only' | 'read_write';
27296
+ /**
27297
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
27298
+ */
27299
+ instructions?: string;
27300
+ /**
27301
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
27302
+ */
27303
+ enabled?: boolean;
27304
+ }>;
27305
+ /**
27306
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
27307
+ */
27308
+ vector_stores: Array<{
27309
+ /**
27310
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
27311
+ */
27312
+ id: string;
27313
+ /**
27314
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
27315
+ */
27316
+ access: 'read_only' | 'read_write';
27317
+ /**
27318
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
27319
+ */
27320
+ instructions?: string;
27321
+ /**
27322
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
27323
+ */
27324
+ enabled?: boolean;
27325
+ }>;
27326
+ /**
27327
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
27328
+ */
27329
+ files: Array<{
27330
+ /**
27331
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
27332
+ */
27333
+ id: string;
27334
+ /**
27335
+ * read_only permits reading the bound file; files do not accept read_write.
27336
+ */
27337
+ access: 'read_only';
27338
+ /**
27339
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
27340
+ */
27341
+ instructions?: string;
27342
+ /**
27343
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
27344
+ */
27345
+ enabled?: boolean;
27346
+ }>;
27284
27347
  /**
27285
27348
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
27286
27349
  */
@@ -30106,7 +30169,7 @@ export type ConnectComputerErrors = {
30106
30169
  };
30107
30170
  };
30108
30171
  /**
30109
- * COMPUTER_BUDGET_EXHAUSTED: today's full-computer time has been used up. Connect with need light to continue using the lightweight shell.
30172
+ * Platform error with Computer code, message and hint
30110
30173
  */
30111
30174
  429: {
30112
30175
  error: {
@@ -32122,7 +32185,7 @@ export type ForkSessionResponses = {
32122
32185
  */
32123
32186
  created_at: string;
32124
32187
  /**
32125
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
32188
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
32126
32189
  */
32127
32190
  environment_id?: string;
32128
32191
  /**
@@ -40703,7 +40766,7 @@ export type SessionsRetrieveResponses = {
40703
40766
  */
40704
40767
  created_at: string;
40705
40768
  /**
40706
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
40769
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
40707
40770
  */
40708
40771
  environment_id?: string;
40709
40772
  metadata: AgentManaged173;
@@ -40981,7 +41044,7 @@ export type SessionsUpdateResponses = {
40981
41044
  */
40982
41045
  created_at: string;
40983
41046
  /**
40984
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
41047
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
40985
41048
  */
40986
41049
  environment_id?: string;
40987
41050
  metadata: AgentManaged173;
@@ -41229,6 +41292,69 @@ export type AgentsListResponses = {
41229
41292
  * modified.
41230
41293
  */
41231
41294
  version: number;
41295
+ /**
41296
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
41297
+ */
41298
+ databases: Array<{
41299
+ /**
41300
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
41301
+ */
41302
+ id: string;
41303
+ /**
41304
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
41305
+ */
41306
+ access: 'read_only' | 'read_write';
41307
+ /**
41308
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
41309
+ */
41310
+ instructions?: string;
41311
+ /**
41312
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
41313
+ */
41314
+ enabled?: boolean;
41315
+ }>;
41316
+ /**
41317
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
41318
+ */
41319
+ vector_stores: Array<{
41320
+ /**
41321
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
41322
+ */
41323
+ id: string;
41324
+ /**
41325
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
41326
+ */
41327
+ access: 'read_only' | 'read_write';
41328
+ /**
41329
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
41330
+ */
41331
+ instructions?: string;
41332
+ /**
41333
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
41334
+ */
41335
+ enabled?: boolean;
41336
+ }>;
41337
+ /**
41338
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
41339
+ */
41340
+ files: Array<{
41341
+ /**
41342
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
41343
+ */
41344
+ id: string;
41345
+ /**
41346
+ * read_only permits reading the bound file; files do not accept read_write.
41347
+ */
41348
+ access: 'read_only';
41349
+ /**
41350
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
41351
+ */
41352
+ instructions?: string;
41353
+ /**
41354
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
41355
+ */
41356
+ enabled?: boolean;
41357
+ }>;
41232
41358
  /**
41233
41359
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
41234
41360
  */
@@ -41681,6 +41807,69 @@ export type AgentsCreateData = {
41681
41807
  * across all toolsets allowed.
41682
41808
  */
41683
41809
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
41810
+ /**
41811
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
41812
+ */
41813
+ databases?: Array<{
41814
+ /**
41815
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
41816
+ */
41817
+ id: string;
41818
+ /**
41819
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
41820
+ */
41821
+ access: 'read_only' | 'read_write';
41822
+ /**
41823
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
41824
+ */
41825
+ instructions?: string;
41826
+ /**
41827
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
41828
+ */
41829
+ enabled?: boolean;
41830
+ }>;
41831
+ /**
41832
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
41833
+ */
41834
+ vector_stores?: Array<{
41835
+ /**
41836
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
41837
+ */
41838
+ id: string;
41839
+ /**
41840
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
41841
+ */
41842
+ access: 'read_only' | 'read_write';
41843
+ /**
41844
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
41845
+ */
41846
+ instructions?: string;
41847
+ /**
41848
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
41849
+ */
41850
+ enabled?: boolean;
41851
+ }>;
41852
+ /**
41853
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
41854
+ */
41855
+ files?: Array<{
41856
+ /**
41857
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
41858
+ */
41859
+ id: string;
41860
+ /**
41861
+ * read_only permits reading the bound file; files do not accept read_write.
41862
+ */
41863
+ access: 'read_only';
41864
+ /**
41865
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
41866
+ */
41867
+ instructions?: string;
41868
+ /**
41869
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
41870
+ */
41871
+ enabled?: boolean;
41872
+ }>;
41684
41873
  /**
41685
41874
  * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
41686
41875
  */
@@ -42146,6 +42335,69 @@ export type AgentsCreateResponses = {
42146
42335
  * modified.
42147
42336
  */
42148
42337
  version: number;
42338
+ /**
42339
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42340
+ */
42341
+ databases: Array<{
42342
+ /**
42343
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
42344
+ */
42345
+ id: string;
42346
+ /**
42347
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42348
+ */
42349
+ access: 'read_only' | 'read_write';
42350
+ /**
42351
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42352
+ */
42353
+ instructions?: string;
42354
+ /**
42355
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42356
+ */
42357
+ enabled?: boolean;
42358
+ }>;
42359
+ /**
42360
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42361
+ */
42362
+ vector_stores: Array<{
42363
+ /**
42364
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
42365
+ */
42366
+ id: string;
42367
+ /**
42368
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42369
+ */
42370
+ access: 'read_only' | 'read_write';
42371
+ /**
42372
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42373
+ */
42374
+ instructions?: string;
42375
+ /**
42376
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42377
+ */
42378
+ enabled?: boolean;
42379
+ }>;
42380
+ /**
42381
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42382
+ */
42383
+ files: Array<{
42384
+ /**
42385
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
42386
+ */
42387
+ id: string;
42388
+ /**
42389
+ * read_only permits reading the bound file; files do not accept read_write.
42390
+ */
42391
+ access: 'read_only';
42392
+ /**
42393
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42394
+ */
42395
+ instructions?: string;
42396
+ /**
42397
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42398
+ */
42399
+ enabled?: boolean;
42400
+ }>;
42149
42401
  /**
42150
42402
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
42151
42403
  */
@@ -42626,6 +42878,69 @@ export type AgentsRetrieveResponses = {
42626
42878
  * modified.
42627
42879
  */
42628
42880
  version: number;
42881
+ /**
42882
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42883
+ */
42884
+ databases: Array<{
42885
+ /**
42886
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
42887
+ */
42888
+ id: string;
42889
+ /**
42890
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42891
+ */
42892
+ access: 'read_only' | 'read_write';
42893
+ /**
42894
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42895
+ */
42896
+ instructions?: string;
42897
+ /**
42898
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42899
+ */
42900
+ enabled?: boolean;
42901
+ }>;
42902
+ /**
42903
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42904
+ */
42905
+ vector_stores: Array<{
42906
+ /**
42907
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
42908
+ */
42909
+ id: string;
42910
+ /**
42911
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42912
+ */
42913
+ access: 'read_only' | 'read_write';
42914
+ /**
42915
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42916
+ */
42917
+ instructions?: string;
42918
+ /**
42919
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42920
+ */
42921
+ enabled?: boolean;
42922
+ }>;
42923
+ /**
42924
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42925
+ */
42926
+ files: Array<{
42927
+ /**
42928
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
42929
+ */
42930
+ id: string;
42931
+ /**
42932
+ * read_only permits reading the bound file; files do not accept read_write.
42933
+ */
42934
+ access: 'read_only';
42935
+ /**
42936
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42937
+ */
42938
+ instructions?: string;
42939
+ /**
42940
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42941
+ */
42942
+ enabled?: boolean;
42943
+ }>;
42629
42944
  /**
42630
42945
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
42631
42946
  */
@@ -43083,6 +43398,69 @@ export type AgentsUpdateData = {
43083
43398
  * current version; omit to apply the update unconditionally.
43084
43399
  */
43085
43400
  version?: number;
43401
+ /**
43402
+ * Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
43403
+ */
43404
+ databases?: Array<{
43405
+ /**
43406
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
43407
+ */
43408
+ id: string;
43409
+ /**
43410
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43411
+ */
43412
+ access: 'read_only' | 'read_write';
43413
+ /**
43414
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43415
+ */
43416
+ instructions?: string;
43417
+ /**
43418
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43419
+ */
43420
+ enabled?: boolean;
43421
+ }> | null;
43422
+ /**
43423
+ * Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
43424
+ */
43425
+ vector_stores?: Array<{
43426
+ /**
43427
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
43428
+ */
43429
+ id: string;
43430
+ /**
43431
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43432
+ */
43433
+ access: 'read_only' | 'read_write';
43434
+ /**
43435
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43436
+ */
43437
+ instructions?: string;
43438
+ /**
43439
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43440
+ */
43441
+ enabled?: boolean;
43442
+ }> | null;
43443
+ /**
43444
+ * Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
43445
+ */
43446
+ files?: Array<{
43447
+ /**
43448
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
43449
+ */
43450
+ id: string;
43451
+ /**
43452
+ * read_only permits reading the bound file; files do not accept read_write.
43453
+ */
43454
+ access: 'read_only';
43455
+ /**
43456
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43457
+ */
43458
+ instructions?: string;
43459
+ /**
43460
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43461
+ */
43462
+ enabled?: boolean;
43463
+ }> | null;
43086
43464
  /**
43087
43465
  * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
43088
43466
  */
@@ -43553,6 +43931,69 @@ export type AgentsUpdateResponses = {
43553
43931
  * modified.
43554
43932
  */
43555
43933
  version: number;
43934
+ /**
43935
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43936
+ */
43937
+ databases: Array<{
43938
+ /**
43939
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
43940
+ */
43941
+ id: string;
43942
+ /**
43943
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43944
+ */
43945
+ access: 'read_only' | 'read_write';
43946
+ /**
43947
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43948
+ */
43949
+ instructions?: string;
43950
+ /**
43951
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43952
+ */
43953
+ enabled?: boolean;
43954
+ }>;
43955
+ /**
43956
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43957
+ */
43958
+ vector_stores: Array<{
43959
+ /**
43960
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
43961
+ */
43962
+ id: string;
43963
+ /**
43964
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43965
+ */
43966
+ access: 'read_only' | 'read_write';
43967
+ /**
43968
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43969
+ */
43970
+ instructions?: string;
43971
+ /**
43972
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43973
+ */
43974
+ enabled?: boolean;
43975
+ }>;
43976
+ /**
43977
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43978
+ */
43979
+ files: Array<{
43980
+ /**
43981
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
43982
+ */
43983
+ id: string;
43984
+ /**
43985
+ * read_only permits reading the bound file; files do not accept read_write.
43986
+ */
43987
+ access: 'read_only';
43988
+ /**
43989
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43990
+ */
43991
+ instructions?: string;
43992
+ /**
43993
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43994
+ */
43995
+ enabled?: boolean;
43996
+ }>;
43556
43997
  /**
43557
43998
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
43558
43999
  */
@@ -44027,6 +44468,69 @@ export type AgentsArchiveResponses = {
44027
44468
  * modified.
44028
44469
  */
44029
44470
  version: number;
44471
+ /**
44472
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
44473
+ */
44474
+ databases: Array<{
44475
+ /**
44476
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
44477
+ */
44478
+ id: string;
44479
+ /**
44480
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
44481
+ */
44482
+ access: 'read_only' | 'read_write';
44483
+ /**
44484
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44485
+ */
44486
+ instructions?: string;
44487
+ /**
44488
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44489
+ */
44490
+ enabled?: boolean;
44491
+ }>;
44492
+ /**
44493
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
44494
+ */
44495
+ vector_stores: Array<{
44496
+ /**
44497
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
44498
+ */
44499
+ id: string;
44500
+ /**
44501
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
44502
+ */
44503
+ access: 'read_only' | 'read_write';
44504
+ /**
44505
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44506
+ */
44507
+ instructions?: string;
44508
+ /**
44509
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44510
+ */
44511
+ enabled?: boolean;
44512
+ }>;
44513
+ /**
44514
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
44515
+ */
44516
+ files: Array<{
44517
+ /**
44518
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
44519
+ */
44520
+ id: string;
44521
+ /**
44522
+ * read_only permits reading the bound file; files do not accept read_write.
44523
+ */
44524
+ access: 'read_only';
44525
+ /**
44526
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44527
+ */
44528
+ instructions?: string;
44529
+ /**
44530
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44531
+ */
44532
+ enabled?: boolean;
44533
+ }>;
44030
44534
  /**
44031
44535
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
44032
44536
  */
@@ -44511,6 +45015,69 @@ export type AgentsVersionsListResponses = {
44511
45015
  * modified.
44512
45016
  */
44513
45017
  version: number;
45018
+ /**
45019
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45020
+ */
45021
+ databases: Array<{
45022
+ /**
45023
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
45024
+ */
45025
+ id: string;
45026
+ /**
45027
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
45028
+ */
45029
+ access: 'read_only' | 'read_write';
45030
+ /**
45031
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45032
+ */
45033
+ instructions?: string;
45034
+ /**
45035
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45036
+ */
45037
+ enabled?: boolean;
45038
+ }>;
45039
+ /**
45040
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45041
+ */
45042
+ vector_stores: Array<{
45043
+ /**
45044
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
45045
+ */
45046
+ id: string;
45047
+ /**
45048
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
45049
+ */
45050
+ access: 'read_only' | 'read_write';
45051
+ /**
45052
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45053
+ */
45054
+ instructions?: string;
45055
+ /**
45056
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45057
+ */
45058
+ enabled?: boolean;
45059
+ }>;
45060
+ /**
45061
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45062
+ */
45063
+ files: Array<{
45064
+ /**
45065
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
45066
+ */
45067
+ id: string;
45068
+ /**
45069
+ * read_only permits reading the bound file; files do not accept read_write.
45070
+ */
45071
+ access: 'read_only';
45072
+ /**
45073
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45074
+ */
45075
+ instructions?: string;
45076
+ /**
45077
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45078
+ */
45079
+ enabled?: boolean;
45080
+ }>;
44514
45081
  /**
44515
45082
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
44516
45083
  */
@@ -45062,7 +45629,7 @@ export type SessionsListResponses = {
45062
45629
  */
45063
45630
  created_at: string;
45064
45631
  /**
45065
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
45632
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
45066
45633
  */
45067
45634
  environment_id?: string;
45068
45635
  metadata: AgentManaged173;
@@ -45196,10 +45763,9 @@ export type SessionsCreateData = {
45196
45763
  */
45197
45764
  agent: string | AgentManaged10 | AgentManaged167;
45198
45765
  /**
45199
- * ID of the `environment` defining the container configuration for
45200
- * this session.
45766
+ * Execution environment id from agent.environments.list or agent.environments.create. For a service agent, omission selects the built-in light environment and returns session.environment_id=light; explicit null allocates no machine and makes machine tools, including codemode and bash, unavailable. Personal agents use their selected Computer.
45201
45767
  */
45202
- environment_id?: string;
45768
+ environment_id?: string | null;
45203
45769
  /**
45204
45770
  * A hard spend ceiling. The session stops issuing new model requests
45205
45771
  * once the tracked list cost reaches `max_list_cost`.
@@ -45371,7 +45937,7 @@ export type SessionsCreateResponses = {
45371
45937
  */
45372
45938
  created_at: string;
45373
45939
  /**
45374
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
45940
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
45375
45941
  */
45376
45942
  environment_id?: string;
45377
45943
  metadata: AgentManaged173;
@@ -45609,7 +46175,7 @@ export type SessionsArchiveResponses = {
45609
46175
  */
45610
46176
  created_at: string;
45611
46177
  /**
45612
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
46178
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
45613
46179
  */
45614
46180
  environment_id?: string;
45615
46181
  metadata: AgentManaged173;
@@ -102,6 +102,24 @@ export declare const operations: readonly [{
102
102
  readonly itemType: "object";
103
103
  readonly required: false;
104
104
  readonly description: "Tool configurations available to the agent. Maximum of 128 tools\nacross all toolsets allowed.";
105
+ }, {
106
+ readonly name: "databases";
107
+ readonly type: "array";
108
+ readonly itemType: "object";
109
+ readonly required: false;
110
+ readonly description: "Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.";
111
+ }, {
112
+ readonly name: "vector_stores";
113
+ readonly type: "array";
114
+ readonly itemType: "object";
115
+ readonly required: false;
116
+ readonly description: "Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.";
117
+ }, {
118
+ readonly name: "files";
119
+ readonly type: "array";
120
+ readonly itemType: "object";
121
+ readonly required: false;
122
+ readonly description: "File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.";
105
123
  }, {
106
124
  readonly name: "kind";
107
125
  readonly type: "string";
@@ -236,6 +254,24 @@ export declare const operations: readonly [{
236
254
  readonly type: "number";
237
255
  readonly required: false;
238
256
  readonly description: "The agent's current version, used to prevent concurrent overwrites.\nObtain this value from a create or retrieve response. Must be at least 1 if\nspecified. When supplied, the request fails if it does not match the server's\ncurrent version; omit to apply the update unconditionally.";
257
+ }, {
258
+ readonly name: "databases";
259
+ readonly type: "array";
260
+ readonly itemType: "object";
261
+ readonly required: false;
262
+ readonly description: "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.";
263
+ }, {
264
+ readonly name: "vector_stores";
265
+ readonly type: "array";
266
+ readonly itemType: "object";
267
+ readonly required: false;
268
+ readonly description: "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.";
269
+ }, {
270
+ readonly name: "files";
271
+ readonly type: "array";
272
+ readonly itemType: "object";
273
+ readonly required: false;
274
+ readonly description: "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.";
239
275
  }, {
240
276
  readonly name: "kind";
241
277
  readonly type: "string";
@@ -608,7 +644,7 @@ export declare const operations: readonly [{
608
644
  readonly resource: "agent.computers";
609
645
  readonly method: "connect";
610
646
  readonly summary: "Connect computer";
611
- readonly description: "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Heavy running time counts toward the daily budget in seconds. Renew the lease while using the connection and release it with DELETE when finished. If the daily budget is exhausted, 429 COMPUTER_BUDGET_EXHAUSTED allows you to continue with need light.";
647
+ readonly description: "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.";
612
648
  readonly http: "POST";
613
649
  readonly path: "/agent/v1/computers/{computer_id}/connect";
614
650
  readonly streaming: "no";
@@ -1442,7 +1478,7 @@ export declare const operations: readonly [{
1442
1478
  readonly resource: "agent.sessions";
1443
1479
  readonly method: "create";
1444
1480
  readonly summary: "Create session";
1445
- readonly description: "Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:\"agent\"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.";
1481
+ readonly description: "Create a session: one conversation with an agent. Pass agent as an agent id (latest version) or {id, version, type:\"agent\"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, omission returns environment_id=light; explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.";
1446
1482
  readonly http: "POST";
1447
1483
  readonly path: "/agent/v1/sessions";
1448
1484
  readonly streaming: "no";
@@ -1460,7 +1496,7 @@ export declare const operations: readonly [{
1460
1496
  readonly name: "environment_id";
1461
1497
  readonly type: "string";
1462
1498
  readonly required: false;
1463
- readonly description: "ID of the `environment` defining the container configuration for\nthis session.";
1499
+ readonly description: "Execution environment id from agent.environments.list or agent.environments.create. For a service agent, omission selects the built-in light environment and returns session.environment_id=light; explicit null allocates no machine and makes machine tools, including codemode and bash, unavailable. Personal agents use their selected Computer.";
1464
1500
  }, {
1465
1501
  readonly name: "budget";
1466
1502
  readonly type: "object";
@@ -128,6 +128,27 @@ export const operations = [
128
128
  "required": false,
129
129
  "description": "Tool configurations available to the agent. Maximum of 128 tools\nacross all toolsets allowed."
130
130
  },
131
+ {
132
+ "name": "databases",
133
+ "type": "array",
134
+ "itemType": "object",
135
+ "required": false,
136
+ "description": "Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings."
137
+ },
138
+ {
139
+ "name": "vector_stores",
140
+ "type": "array",
141
+ "itemType": "object",
142
+ "required": false,
143
+ "description": "Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings."
144
+ },
145
+ {
146
+ "name": "files",
147
+ "type": "array",
148
+ "itemType": "object",
149
+ "required": false,
150
+ "description": "File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings."
151
+ },
131
152
  {
132
153
  "name": "kind",
133
154
  "type": "string",
@@ -296,6 +317,27 @@ export const operations = [
296
317
  "required": false,
297
318
  "description": "The agent's current version, used to prevent concurrent overwrites.\nObtain this value from a create or retrieve response. Must be at least 1 if\nspecified. When supplied, the request fails if it does not match the server's\ncurrent version; omit to apply the update unconditionally."
298
319
  },
320
+ {
321
+ "name": "databases",
322
+ "type": "array",
323
+ "itemType": "object",
324
+ "required": false,
325
+ "description": "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings."
326
+ },
327
+ {
328
+ "name": "vector_stores",
329
+ "type": "array",
330
+ "itemType": "object",
331
+ "required": false,
332
+ "description": "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings."
333
+ },
334
+ {
335
+ "name": "files",
336
+ "type": "array",
337
+ "itemType": "object",
338
+ "required": false,
339
+ "description": "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings."
340
+ },
299
341
  {
300
342
  "name": "kind",
301
343
  "type": "string",
@@ -756,7 +798,7 @@ export const operations = [
756
798
  "resource": "agent.computers",
757
799
  "method": "connect",
758
800
  "summary": "Connect computer",
759
- "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Heavy running time counts toward the daily budget in seconds. Renew the lease while using the connection and release it with DELETE when finished. If the daily budget is exhausted, 429 COMPUTER_BUDGET_EXHAUSTED allows you to continue with need light.",
801
+ "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.",
760
802
  "http": "POST",
761
803
  "path": "/agent/v1/computers/{computer_id}/connect",
762
804
  "streaming": "no",
@@ -1793,7 +1835,7 @@ export const operations = [
1793
1835
  "resource": "agent.sessions",
1794
1836
  "method": "create",
1795
1837
  "summary": "Create session",
1796
- "description": "Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:\"agent\"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
1838
+ "description": "Create a session: one conversation with an agent. Pass agent as an agent id (latest version) or {id, version, type:\"agent\"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, omission returns environment_id=light; explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
1797
1839
  "http": "POST",
1798
1840
  "path": "/agent/v1/sessions",
1799
1841
  "streaming": "no",
@@ -1813,7 +1855,7 @@ export const operations = [
1813
1855
  "name": "environment_id",
1814
1856
  "type": "string",
1815
1857
  "required": false,
1816
- "description": "ID of the `environment` defining the container configuration for\nthis session."
1858
+ "description": "Execution environment id from agent.environments.list or agent.environments.create. For a service agent, omission selects the built-in light environment and returns session.environment_id=light; explicit null allocates no machine and makes machine tools, including codemode and bash, unavailable. Personal agents use their selected Computer."
1817
1859
  },
1818
1860
  {
1819
1861
  "name": "budget",
@@ -27,6 +27,24 @@ export declare function createAgent(transport: Transport): {
27
27
  type: "agent";
28
28
  updated_at: string;
29
29
  version: number;
30
+ databases: Array<{
31
+ id: string;
32
+ access: "read_only" | "read_write";
33
+ instructions?: string;
34
+ enabled?: boolean;
35
+ }>;
36
+ vector_stores: Array<{
37
+ id: string;
38
+ access: "read_only" | "read_write";
39
+ instructions?: string;
40
+ enabled?: boolean;
41
+ }>;
42
+ files: Array<{
43
+ id: string;
44
+ access: "read_only";
45
+ instructions?: string;
46
+ enabled?: boolean;
47
+ }>;
30
48
  kind: "personal" | "service";
31
49
  computer_id?: string;
32
50
  subagent_model?: string | null;
@@ -158,6 +176,24 @@ export declare function createAgent(transport: Transport): {
158
176
  type: "agent";
159
177
  updated_at: string;
160
178
  version: number;
179
+ databases: Array<{
180
+ id: string;
181
+ access: "read_only" | "read_write";
182
+ instructions?: string;
183
+ enabled?: boolean;
184
+ }>;
185
+ vector_stores: Array<{
186
+ id: string;
187
+ access: "read_only" | "read_write";
188
+ instructions?: string;
189
+ enabled?: boolean;
190
+ }>;
191
+ files: Array<{
192
+ id: string;
193
+ access: "read_only";
194
+ instructions?: string;
195
+ enabled?: boolean;
196
+ }>;
161
197
  kind: "personal" | "service";
162
198
  computer_id?: string;
163
199
  subagent_model?: string | null;
@@ -362,6 +398,24 @@ export declare function createAgent(transport: Transport): {
362
398
  type: "agent";
363
399
  updated_at: string;
364
400
  version: number;
401
+ databases: Array<{
402
+ id: string;
403
+ access: "read_only" | "read_write";
404
+ instructions?: string;
405
+ enabled?: boolean;
406
+ }>;
407
+ vector_stores: Array<{
408
+ id: string;
409
+ access: "read_only" | "read_write";
410
+ instructions?: string;
411
+ enabled?: boolean;
412
+ }>;
413
+ files: Array<{
414
+ id: string;
415
+ access: "read_only";
416
+ instructions?: string;
417
+ enabled?: boolean;
418
+ }>;
365
419
  kind: "personal" | "service";
366
420
  computer_id?: string;
367
421
  subagent_model?: string | null;
@@ -495,6 +549,24 @@ export declare function createAgent(transport: Transport): {
495
549
  type: "agent";
496
550
  updated_at: string;
497
551
  version: number;
552
+ databases: Array<{
553
+ id: string;
554
+ access: "read_only" | "read_write";
555
+ instructions?: string;
556
+ enabled?: boolean;
557
+ }>;
558
+ vector_stores: Array<{
559
+ id: string;
560
+ access: "read_only" | "read_write";
561
+ instructions?: string;
562
+ enabled?: boolean;
563
+ }>;
564
+ files: Array<{
565
+ id: string;
566
+ access: "read_only";
567
+ instructions?: string;
568
+ enabled?: boolean;
569
+ }>;
498
570
  kind: "personal" | "service";
499
571
  computer_id?: string;
500
572
  subagent_model?: string | null;
@@ -829,6 +901,24 @@ export declare function createAgent(transport: Transport): {
829
901
  type: "agent";
830
902
  updated_at: string;
831
903
  version: number;
904
+ databases: Array<{
905
+ id: string;
906
+ access: "read_only" | "read_write";
907
+ instructions?: string;
908
+ enabled?: boolean;
909
+ }>;
910
+ vector_stores: Array<{
911
+ id: string;
912
+ access: "read_only" | "read_write";
913
+ instructions?: string;
914
+ enabled?: boolean;
915
+ }>;
916
+ files: Array<{
917
+ id: string;
918
+ access: "read_only";
919
+ instructions?: string;
920
+ enabled?: boolean;
921
+ }>;
832
922
  kind: "personal" | "service";
833
923
  computer_id?: string;
834
924
  subagent_model?: string | null;
@@ -961,6 +1051,24 @@ export declare function createAgent(transport: Transport): {
961
1051
  type: "agent";
962
1052
  updated_at: string;
963
1053
  version: number;
1054
+ databases: Array<{
1055
+ id: string;
1056
+ access: "read_only" | "read_write";
1057
+ instructions?: string;
1058
+ enabled?: boolean;
1059
+ }>;
1060
+ vector_stores: Array<{
1061
+ id: string;
1062
+ access: "read_only" | "read_write";
1063
+ instructions?: string;
1064
+ enabled?: boolean;
1065
+ }>;
1066
+ files: Array<{
1067
+ id: string;
1068
+ access: "read_only";
1069
+ instructions?: string;
1070
+ enabled?: boolean;
1071
+ }>;
964
1072
  kind: "personal" | "service";
965
1073
  computer_id?: string;
966
1074
  subagent_model?: string | null;
@@ -1094,6 +1202,24 @@ export declare function createAgent(transport: Transport): {
1094
1202
  type: "agent";
1095
1203
  updated_at: string;
1096
1204
  version: number;
1205
+ databases: Array<{
1206
+ id: string;
1207
+ access: "read_only" | "read_write";
1208
+ instructions?: string;
1209
+ enabled?: boolean;
1210
+ }>;
1211
+ vector_stores: Array<{
1212
+ id: string;
1213
+ access: "read_only" | "read_write";
1214
+ instructions?: string;
1215
+ enabled?: boolean;
1216
+ }>;
1217
+ files: Array<{
1218
+ id: string;
1219
+ access: "read_only";
1220
+ instructions?: string;
1221
+ enabled?: boolean;
1222
+ }>;
1097
1223
  kind: "personal" | "service";
1098
1224
  computer_id?: string;
1099
1225
  subagent_model?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.0-dev.4cbfc1f",
3
+ "version": "0.1.0-dev.5e0f28e",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {