@deepraxis/sdk 0.2.0-dev.72cb989 → 0.2.0-dev.837a8c3
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.
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +12 -12
- package/dist/generated/sdk.gen.js +12 -12
- package/dist/generated/types.gen.d.ts +505 -81
- package/dist/helpers/browser-connect-error.d.ts +1 -1
- package/dist/helpers/browser-connect-error.js +1 -1
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +1 -1
- package/dist/operations.generated.js +46 -36
- package/dist/resources.generated.d.ts +3 -0
- package/package.json +1 -1
|
@@ -214,7 +214,7 @@ export declare const computersRetrieve: <ThrowOnError extends boolean = false>(o
|
|
|
214
214
|
/**
|
|
215
215
|
* Update Computer
|
|
216
216
|
*
|
|
217
|
-
* Rename a computer.
|
|
217
|
+
* Rename a computer, declare its environment, or drop that declaration without touching the machine.
|
|
218
218
|
*
|
|
219
219
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
220
220
|
*/
|
|
@@ -278,9 +278,9 @@ export declare const computersFilesConvert: <ThrowOnError extends boolean = fals
|
|
|
278
278
|
*
|
|
279
279
|
* Resume the computer and issue a sandbox connection.
|
|
280
280
|
*
|
|
281
|
-
* Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus
|
|
281
|
+
* Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus tier (kept for compatibility: a Computer is one machine, so tier does not name a machine you can choose) and the lease that keeps the machine in service (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 machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.
|
|
282
282
|
*
|
|
283
|
-
* Connect to a computer with a caller-held lease. Omit the body or send {}
|
|
283
|
+
* Connect to a computer with a caller-held lease. Omit the body or send {}: the optional need field is accepted for compatibility and changes nothing, because a Computer is one machine. Renew the lease while using the connection and release it with DELETE when finished.
|
|
284
284
|
*/
|
|
285
285
|
export declare const connectComputer: <ThrowOnError extends boolean = false>(options: Options<ConnectComputerData, ThrowOnError>) => RequestResult<ConnectComputerResponses, ConnectComputerErrors, ThrowOnError>;
|
|
286
286
|
/**
|
|
@@ -574,13 +574,13 @@ export declare const browserGetByobBrowser: <ThrowOnError extends boolean = fals
|
|
|
574
574
|
/**
|
|
575
575
|
* 更新自带浏览器的名称、授权智能体与允许站点
|
|
576
576
|
*
|
|
577
|
-
*
|
|
577
|
+
* 给自带浏览器改名,只改请求里出现的字段。已断开的浏览器返回 410 BROWSER_REVOKED,需要重新配对。
|
|
578
578
|
*/
|
|
579
579
|
export declare const browserUpdateByobBrowser: <ThrowOnError extends boolean = false>(options: Options<BrowserUpdateByobBrowserData, ThrowOnError>) => RequestResult<BrowserUpdateByobBrowserResponses, BrowserUpdateByobBrowserErrors, ThrowOnError>;
|
|
580
580
|
/**
|
|
581
581
|
* 断开自带浏览器
|
|
582
582
|
*
|
|
583
|
-
*
|
|
583
|
+
* 断开自带浏览器:之后没有任何智能体能再驱动它,要用必须重新配对。可重复调用,结果相同;功能开关关闭时也能断开。
|
|
584
584
|
*/
|
|
585
585
|
export declare const browserDisconnectByobBrowser: <ThrowOnError extends boolean = false>(options: Options<BrowserDisconnectByobBrowserData, ThrowOnError>) => RequestResult<BrowserDisconnectByobBrowserResponses, BrowserDisconnectByobBrowserErrors, ThrowOnError>;
|
|
586
586
|
/**
|
|
@@ -1148,14 +1148,14 @@ export declare const createOrganizationFeedbackMessage: <ThrowOnError extends bo
|
|
|
1148
1148
|
/**
|
|
1149
1149
|
* List Organization Costs
|
|
1150
1150
|
*
|
|
1151
|
-
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole
|
|
1151
|
+
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole hour or day periods in time_zone (UTC by default); a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.
|
|
1152
1152
|
*
|
|
1153
1153
|
*/
|
|
1154
1154
|
export declare const listOrganizationCosts: <ThrowOnError extends boolean = false>(options: Options<ListOrganizationCostsData, ThrowOnError>) => RequestResult<ListOrganizationCostsResponses, ListOrganizationCostsErrors, ThrowOnError>;
|
|
1155
1155
|
/**
|
|
1156
1156
|
* List Organization Usage
|
|
1157
1157
|
*
|
|
1158
|
-
* Consumed quantity per time bucket per group. Buckets are whole
|
|
1158
|
+
* Consumed quantity per time bucket per group. Buckets are whole hour or day periods in time_zone (UTC by default) covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.
|
|
1159
1159
|
*
|
|
1160
1160
|
*/
|
|
1161
1161
|
export declare const listOrganizationUsage: <ThrowOnError extends boolean = false>(options: Options<ListOrganizationUsageData, ThrowOnError>) => RequestResult<ListOrganizationUsageResponses, ListOrganizationUsageErrors, ThrowOnError>;
|
|
@@ -1763,7 +1763,7 @@ export declare const sessionsRetrieve: <ThrowOnError extends boolean = false>(op
|
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Update session
|
|
1765
1765
|
*
|
|
1766
|
-
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
1766
|
+
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.
|
|
1767
1767
|
*/
|
|
1768
1768
|
export declare const sessionsUpdate: <ThrowOnError extends boolean = false>(options: Options<SessionsUpdateData, ThrowOnError>) => RequestResult<SessionsUpdateResponses, SessionsUpdateErrors, ThrowOnError>;
|
|
1769
1769
|
/**
|
|
@@ -1811,7 +1811,7 @@ export declare const sessionsList: <ThrowOnError extends boolean = false>(option
|
|
|
1811
1811
|
/**
|
|
1812
1812
|
* Create session
|
|
1813
1813
|
*
|
|
1814
|
-
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired "light" returns 400 naming the two forms that work: "node22", or null for no machine. For service agents, 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. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead.
|
|
1814
|
+
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired "light" returns 400 naming the two forms that work: "node22", or null for no machine. For service agents, 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. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead. vault_ids (at most 50, owned by the organization, not archived) adds vaults to the agent's own vault_ids, the ones its department or organization rule grants attach, and the session carries both sets from creation; sessions.update replaces the session's own set later. The secrets of those vaults reach the session's machine as environment variables named after the secret, in every command it runs, and are matched against its MCP servers; a service agent's session skips OAuth credentials and secrets that declare allowed_hosts, and names the platform login owns are never taken. allowed_hosts does not limit what a command does with an exported value. A session with no machine has no environment. budget is {type:"limit", max_list_cost:{amount, currency:"USD"}} where amount is a positive decimal string of US dollars with at most 2 decimal places ("20.00" is USD 20.00); omitted budget defaults to "20.00" and null removes the limit. 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. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.
|
|
1815
1815
|
*/
|
|
1816
1816
|
export declare const sessionsCreate: <ThrowOnError extends boolean = false>(options: Options<SessionsCreateData, ThrowOnError>) => RequestResult<SessionsCreateResponses, SessionsCreateErrors, ThrowOnError>;
|
|
1817
1817
|
/**
|
|
@@ -1931,7 +1931,7 @@ export declare const deploymentsList: <ThrowOnError extends boolean = false>(opt
|
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Create deployment
|
|
1933
1933
|
*
|
|
1934
|
-
* Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:"computer"} is for general agents and needs no environment_id, while target:{type:"environment"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
1934
|
+
* Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:"computer"} is for general agents and needs no environment_id, while target:{type:"environment"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {"agent":"agent_123","name":"weekly report","initial_events":[{"type":"user.message","content":[{"type":"text","text":"Write the weekly report."}]}],"target":{"type":"computer"},"schedule":{"type":"cron","expression":"0 9 * * 1","timezone":"America/Los_Angeles"}}.
|
|
1935
1935
|
*/
|
|
1936
1936
|
export declare const deploymentsCreate: <ThrowOnError extends boolean = false>(options: Options<DeploymentsCreateData, ThrowOnError>) => RequestResult<DeploymentsCreateResponses, DeploymentsCreateErrors, ThrowOnError>;
|
|
1937
1937
|
/**
|
|
@@ -4494,7 +4494,7 @@ export declare const devopsUnitsFetch: <ThrowOnError extends boolean = false>(op
|
|
|
4494
4494
|
/**
|
|
4495
4495
|
* Push a unit's branch
|
|
4496
4496
|
*
|
|
4497
|
-
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed,
|
|
4497
|
+
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, naming the head it is at now in the message and in details.remoteHead. Read the starting value from the unit's git.remoteHead (fetch first when someone else may have pushed). For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.
|
|
4498
4498
|
*/
|
|
4499
4499
|
export declare const devopsUnitsPush: <ThrowOnError extends boolean = false>(options: Options<DevopsUnitsPushData, ThrowOnError>) => RequestResult<DevopsUnitsPushResponses, DevopsUnitsPushErrors, ThrowOnError>;
|
|
4500
4500
|
/**
|
|
@@ -5856,7 +5856,7 @@ export declare const vaultListVaults: <ThrowOnError extends boolean = false>(opt
|
|
|
5856
5856
|
/**
|
|
5857
5857
|
* Create vault
|
|
5858
5858
|
*
|
|
5859
|
-
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations.
|
|
5859
|
+
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. A session carries its agent's vaults (agent vault_ids, which a department or organization rule's grants also write) plus its own vault_ids, at most 50 together, and it matches their credentials against its MCP servers, so a stored static or oauth credential serves as vault-backed MCP authentication, and it exports their secrets to its machine as environment variables named after the secret, with real values (a service agent's session leaves out OAuth credentials and secrets that declare allowed_hosts; allowed_hosts does not limit what a command does with an exported value). Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.
|
|
5860
5860
|
*/
|
|
5861
5861
|
export declare const vaultCreateVault: <ThrowOnError extends boolean = false>(options: Options<VaultCreateVaultData, ThrowOnError>) => RequestResult<VaultCreateVaultResponses, VaultCreateVaultErrors, ThrowOnError>;
|
|
5862
5862
|
/**
|
|
@@ -558,7 +558,7 @@ export const computersRetrieve = (options) => (options.client ?? client).get({
|
|
|
558
558
|
/**
|
|
559
559
|
* Update Computer
|
|
560
560
|
*
|
|
561
|
-
* Rename a computer.
|
|
561
|
+
* Rename a computer, declare its environment, or drop that declaration without touching the machine.
|
|
562
562
|
*
|
|
563
563
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
564
564
|
*/
|
|
@@ -732,9 +732,9 @@ export const computersFilesConvert = (options) => (options.client ?? client).pos
|
|
|
732
732
|
*
|
|
733
733
|
* Resume the computer and issue a sandbox connection.
|
|
734
734
|
*
|
|
735
|
-
* Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus
|
|
735
|
+
* Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus tier (kept for compatibility: a Computer is one machine, so tier does not name a machine you can choose) and the lease that keeps the machine in service (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 machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.
|
|
736
736
|
*
|
|
737
|
-
* Connect to a computer with a caller-held lease. Omit the body or send {}
|
|
737
|
+
* Connect to a computer with a caller-held lease. Omit the body or send {}: the optional need field is accepted for compatibility and changes nothing, because a Computer is one machine. Renew the lease while using the connection and release it with DELETE when finished.
|
|
738
738
|
*/
|
|
739
739
|
export const connectComputer = (options) => (options.client ?? client).post({
|
|
740
740
|
security: [{
|
|
@@ -1508,7 +1508,7 @@ export const browserGetByobBrowser = (options) => (options.client ?? client).get
|
|
|
1508
1508
|
/**
|
|
1509
1509
|
* 更新自带浏览器的名称、授权智能体与允许站点
|
|
1510
1510
|
*
|
|
1511
|
-
*
|
|
1511
|
+
* 给自带浏览器改名,只改请求里出现的字段。已断开的浏览器返回 410 BROWSER_REVOKED,需要重新配对。
|
|
1512
1512
|
*/
|
|
1513
1513
|
export const browserUpdateByobBrowser = (options) => (options.client ?? client).patch({
|
|
1514
1514
|
security: [{
|
|
@@ -1526,7 +1526,7 @@ export const browserUpdateByobBrowser = (options) => (options.client ?? client).
|
|
|
1526
1526
|
/**
|
|
1527
1527
|
* 断开自带浏览器
|
|
1528
1528
|
*
|
|
1529
|
-
*
|
|
1529
|
+
* 断开自带浏览器:之后没有任何智能体能再驱动它,要用必须重新配对。可重复调用,结果相同;功能开关关闭时也能断开。
|
|
1530
1530
|
*/
|
|
1531
1531
|
export const browserDisconnectByobBrowser = (options) => (options.client ?? client).post({
|
|
1532
1532
|
security: [{
|
|
@@ -3165,7 +3165,7 @@ export const createOrganizationFeedbackMessage = (options) => (options.client ??
|
|
|
3165
3165
|
/**
|
|
3166
3166
|
* List Organization Costs
|
|
3167
3167
|
*
|
|
3168
|
-
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole
|
|
3168
|
+
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole hour or day periods in time_zone (UTC by default); a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.
|
|
3169
3169
|
*
|
|
3170
3170
|
*/
|
|
3171
3171
|
export const listOrganizationCosts = (options) => (options.client ?? client).get({
|
|
@@ -3184,7 +3184,7 @@ export const listOrganizationCosts = (options) => (options.client ?? client).get
|
|
|
3184
3184
|
/**
|
|
3185
3185
|
* List Organization Usage
|
|
3186
3186
|
*
|
|
3187
|
-
* Consumed quantity per time bucket per group. Buckets are whole
|
|
3187
|
+
* Consumed quantity per time bucket per group. Buckets are whole hour or day periods in time_zone (UTC by default) covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.
|
|
3188
3188
|
*
|
|
3189
3189
|
*/
|
|
3190
3190
|
export const listOrganizationUsage = (options) => (options.client ?? client).get({
|
|
@@ -5178,7 +5178,7 @@ export const sessionsRetrieve = (options) => (options.client ?? client).get({
|
|
|
5178
5178
|
/**
|
|
5179
5179
|
* Update session
|
|
5180
5180
|
*
|
|
5181
|
-
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
5181
|
+
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.
|
|
5182
5182
|
*/
|
|
5183
5183
|
export const sessionsUpdate = (options) => (options.client ?? client).post({
|
|
5184
5184
|
security: [{
|
|
@@ -5334,7 +5334,7 @@ export const sessionsList = (options) => (options?.client ?? client).get({
|
|
|
5334
5334
|
/**
|
|
5335
5335
|
* Create session
|
|
5336
5336
|
*
|
|
5337
|
-
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired "light" returns 400 naming the two forms that work: "node22", or null for no machine. For service agents, 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. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead.
|
|
5337
|
+
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired "light" returns 400 naming the two forms that work: "node22", or null for no machine. For service agents, 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. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead. vault_ids (at most 50, owned by the organization, not archived) adds vaults to the agent's own vault_ids, the ones its department or organization rule grants attach, and the session carries both sets from creation; sessions.update replaces the session's own set later. The secrets of those vaults reach the session's machine as environment variables named after the secret, in every command it runs, and are matched against its MCP servers; a service agent's session skips OAuth credentials and secrets that declare allowed_hosts, and names the platform login owns are never taken. allowed_hosts does not limit what a command does with an exported value. A session with no machine has no environment. budget is {type:"limit", max_list_cost:{amount, currency:"USD"}} where amount is a positive decimal string of US dollars with at most 2 decimal places ("20.00" is USD 20.00); omitted budget defaults to "20.00" and null removes the limit. 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. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.
|
|
5338
5338
|
*/
|
|
5339
5339
|
export const sessionsCreate = (options) => (options.client ?? client).post({
|
|
5340
5340
|
security: [{
|
|
@@ -5714,7 +5714,7 @@ export const deploymentsList = (options) => (options?.client ?? client).get({
|
|
|
5714
5714
|
/**
|
|
5715
5715
|
* Create deployment
|
|
5716
5716
|
*
|
|
5717
|
-
* Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:"computer"} is for general agents and needs no environment_id, while target:{type:"environment"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
5717
|
+
* Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:"computer"} is for general agents and needs no environment_id, while target:{type:"environment"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {"agent":"agent_123","name":"weekly report","initial_events":[{"type":"user.message","content":[{"type":"text","text":"Write the weekly report."}]}],"target":{"type":"computer"},"schedule":{"type":"cron","expression":"0 9 * * 1","timezone":"America/Los_Angeles"}}.
|
|
5718
5718
|
*/
|
|
5719
5719
|
export const deploymentsCreate = (options) => (options.client ?? client).post({
|
|
5720
5720
|
security: [{
|
|
@@ -12610,7 +12610,7 @@ export const devopsUnitsFetch = (options) => (options.client ?? client).post({
|
|
|
12610
12610
|
/**
|
|
12611
12611
|
* Push a unit's branch
|
|
12612
12612
|
*
|
|
12613
|
-
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed,
|
|
12613
|
+
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, naming the head it is at now in the message and in details.remoteHead. Read the starting value from the unit's git.remoteHead (fetch first when someone else may have pushed). For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.
|
|
12614
12614
|
*/
|
|
12615
12615
|
export const devopsUnitsPush = (options) => (options.client ?? client).post({
|
|
12616
12616
|
security: [{
|
|
@@ -17087,7 +17087,7 @@ export const vaultListVaults = (options) => (options?.client ?? client).get({
|
|
|
17087
17087
|
/**
|
|
17088
17088
|
* Create vault
|
|
17089
17089
|
*
|
|
17090
|
-
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations.
|
|
17090
|
+
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. A session carries its agent's vaults (agent vault_ids, which a department or organization rule's grants also write) plus its own vault_ids, at most 50 together, and it matches their credentials against its MCP servers, so a stored static or oauth credential serves as vault-backed MCP authentication, and it exports their secrets to its machine as environment variables named after the secret, with real values (a service agent's session leaves out OAuth credentials and secrets that declare allowed_hosts; allowed_hosts does not limit what a command does with an exported value). Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.
|
|
17091
17091
|
*/
|
|
17092
17092
|
export const vaultCreateVault = (options) => (options.client ?? client).post({
|
|
17093
17093
|
security: [{
|