@deepraxis/sdk 0.1.1-dev.a9f73d6 → 0.1.1-dev.ab0271b
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/METHODS.md +21 -1
- package/dist/core/binary-operations.d.ts +3 -0
- package/dist/core/binary-operations.js +14 -0
- package/dist/core/transport.js +8 -4
- package/dist/generated/binary-operations.gen.d.ts +3 -0
- package/dist/generated/binary-operations.gen.js +14 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +45 -13
- package/dist/generated/sdk.gen.js +96 -12
- package/dist/generated/types.gen.d.ts +814 -13
- package/dist/helpers/application-publish.js +16 -2
- package/dist/helpers/browser-connect-error.d.ts +28 -0
- package/dist/helpers/browser-connect-error.js +74 -0
- package/dist/helpers/browser-connect.d.ts +2 -0
- package/dist/helpers/browser-connect.js +36 -42
- package/dist/helpers/browser-decisions.d.ts +13 -0
- package/dist/helpers/browser-decisions.js +11 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -2
- package/dist/operations.generated.js +208 -15
- package/dist/resources.generated.d.ts +93 -0
- package/dist/resources.generated.js +14 -0
- package/package.json +1 -1
|
@@ -2821,6 +2821,23 @@ export type AgentSseEvent = ({
|
|
|
2821
2821
|
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
2822
2822
|
data: AgentSseData;
|
|
2823
2823
|
};
|
|
2824
|
+
/**
|
|
2825
|
+
* The price book in force at the moment of the read.
|
|
2826
|
+
*/
|
|
2827
|
+
export type BillingPriceList = {
|
|
2828
|
+
/**
|
|
2829
|
+
* The published catalog version this body was cut from; it changes on any price write.
|
|
2830
|
+
*/
|
|
2831
|
+
pricing_version: string;
|
|
2832
|
+
/**
|
|
2833
|
+
* The latest effective_from among the listed entries; null when no item has a price in force yet.
|
|
2834
|
+
*/
|
|
2835
|
+
effective_at: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* One entry per amount in force, ordered by item id and then by the model's own tier/cell order.
|
|
2838
|
+
*/
|
|
2839
|
+
items: Array<BillingPriceEntry>;
|
|
2840
|
+
};
|
|
2824
2841
|
export type BrowserSessionCreateParams = {
|
|
2825
2842
|
/**
|
|
2826
2843
|
* 可省略;账户使用 default 项目。
|
|
@@ -17929,6 +17946,15 @@ export type DevopsPullRequestVerdictRequest = {
|
|
|
17929
17946
|
*/
|
|
17930
17947
|
reason?: string;
|
|
17931
17948
|
};
|
|
17949
|
+
/**
|
|
17950
|
+
* Why the pull request is being closed. The reason is written on the pull request itself, so a reader of it does not need the platform to learn why.
|
|
17951
|
+
*/
|
|
17952
|
+
export type DevopsPullRequestCloseRequest = {
|
|
17953
|
+
/**
|
|
17954
|
+
* Why, in a sentence the next reader of the pull request can act on. It is posted as a note on the pull request before it is closed, and the note names the change when the head branch is one.
|
|
17955
|
+
*/
|
|
17956
|
+
reason: string;
|
|
17957
|
+
};
|
|
17932
17958
|
/**
|
|
17933
17959
|
* One page of an organization's connections.
|
|
17934
17960
|
*/
|
|
@@ -21504,6 +21530,47 @@ export type SandboxNewSandboxV2 = {
|
|
|
21504
21530
|
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
21505
21531
|
*/
|
|
21506
21532
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
21533
|
+
/**
|
|
21534
|
+
* Own face, required: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
|
|
21535
|
+
*/
|
|
21536
|
+
ephemeral?: boolean;
|
|
21537
|
+
/**
|
|
21538
|
+
* Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
|
|
21539
|
+
*/
|
|
21540
|
+
size?: string;
|
|
21541
|
+
/**
|
|
21542
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
21543
|
+
*/
|
|
21544
|
+
name?: string;
|
|
21545
|
+
/**
|
|
21546
|
+
* Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
|
|
21547
|
+
*/
|
|
21548
|
+
waitForReady?: boolean;
|
|
21549
|
+
/**
|
|
21550
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
21551
|
+
*/
|
|
21552
|
+
onExpire?: 'kill' | 'pause';
|
|
21553
|
+
/**
|
|
21554
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
21555
|
+
*/
|
|
21556
|
+
idleTimeout?: number;
|
|
21557
|
+
/**
|
|
21558
|
+
* Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
|
|
21559
|
+
*/
|
|
21560
|
+
idleActivity?: 'traffic' | 'caller';
|
|
21561
|
+
/**
|
|
21562
|
+
* Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
|
|
21563
|
+
*/
|
|
21564
|
+
onLoss?: 'fail' | 'rebuild';
|
|
21565
|
+
/**
|
|
21566
|
+
* Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
|
|
21567
|
+
*/
|
|
21568
|
+
outputs?: Array<{
|
|
21569
|
+
/**
|
|
21570
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
21571
|
+
*/
|
|
21572
|
+
path: string;
|
|
21573
|
+
}>;
|
|
21507
21574
|
};
|
|
21508
21575
|
/**
|
|
21509
21576
|
* Sandbox created from a template.
|
|
@@ -21546,7 +21613,7 @@ export type SandboxSandbox = {
|
|
|
21546
21613
|
machine?: 'light' | 'full' | 'none';
|
|
21547
21614
|
};
|
|
21548
21615
|
/**
|
|
21549
|
-
*
|
|
21616
|
+
* running while the sandbox's machine is up and drivable, paused while it is stopped and can be resumed. On the own face an android phone (templateID "android") has three device states of its own, because its machine running is not yet the phone program's readiness: starting while the vendor is still building the machine, booting while the machine runs but the phone program has not connected on the sandbox's control connection, and running once it has. Its detail and list rows also carry readyAt, the epoch-milliseconds instant the program said hello, null until it does; a linux sandbox only ever reads running or paused.
|
|
21550
21617
|
*/
|
|
21551
21618
|
export type SandboxSandboxState = 'running' | 'paused';
|
|
21552
21619
|
/**
|
|
@@ -24281,7 +24348,7 @@ export type VaultCreateSecretInput = {
|
|
|
24281
24348
|
*/
|
|
24282
24349
|
value: string;
|
|
24283
24350
|
/**
|
|
24284
|
-
* Allowed destinations for the secret.
|
|
24351
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24285
24352
|
*/
|
|
24286
24353
|
allowed_hosts?: Array<string>;
|
|
24287
24354
|
/**
|
|
@@ -24325,7 +24392,7 @@ export type VaultSecret = {
|
|
|
24325
24392
|
*/
|
|
24326
24393
|
kind: 'static' | 'oauth';
|
|
24327
24394
|
/**
|
|
24328
|
-
* Allowed destinations for the secret.
|
|
24395
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24329
24396
|
*/
|
|
24330
24397
|
allowed_hosts: Array<string>;
|
|
24331
24398
|
/**
|
|
@@ -24418,7 +24485,7 @@ export type VaultUpdateSecretInput = {
|
|
|
24418
24485
|
*/
|
|
24419
24486
|
value?: string;
|
|
24420
24487
|
/**
|
|
24421
|
-
* Allowed destinations for the secret.
|
|
24488
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host. Omit it to keep the current list; an empty list removes the declaration, so every redemption is denied and only name-based resolution still returns the value. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24422
24489
|
*/
|
|
24423
24490
|
allowed_hosts?: Array<string>;
|
|
24424
24491
|
/**
|
|
@@ -24647,6 +24714,10 @@ export type TicketRecord = {
|
|
|
24647
24714
|
* completed means resolved; not_planned means declined; duplicate identifies a duplicate; reopened records reopening.
|
|
24648
24715
|
*/
|
|
24649
24716
|
state_reason: 'completed' | 'not_planned' | 'duplicate' | 'reopened';
|
|
24717
|
+
/**
|
|
24718
|
+
* The original ticket's number; required when state_reason is duplicate.
|
|
24719
|
+
*/
|
|
24720
|
+
duplicate_of: number | null;
|
|
24650
24721
|
/**
|
|
24651
24722
|
* Built-in type name (console: bug 缺陷, feature 功能, task 任务; to a person say the console word), null when unset; the list is GET /ticket/v1/types.
|
|
24652
24723
|
*/
|
|
@@ -26974,6 +27045,76 @@ export type AgentSseData = {
|
|
|
26974
27045
|
message: string;
|
|
26975
27046
|
};
|
|
26976
27047
|
};
|
|
27048
|
+
/**
|
|
27049
|
+
* One amount in force for one price item.
|
|
27050
|
+
*/
|
|
27051
|
+
export type BillingPriceEntry = {
|
|
27052
|
+
/**
|
|
27053
|
+
* The price item key, stable and never reused, for example router:default/deepseek-v4-pro:input or sandbox:cpu_second.
|
|
27054
|
+
*/
|
|
27055
|
+
id: string;
|
|
27056
|
+
/**
|
|
27057
|
+
* The item key's namespace — the product that owns the meter (router, sandbox, search, browser, media, knowledge, agent, …); group the table by this.
|
|
27058
|
+
*/
|
|
27059
|
+
product: string;
|
|
27060
|
+
/**
|
|
27061
|
+
* The item key's subject when it has one, such as default/deepseek-v4-pro; null for a two-segment key.
|
|
27062
|
+
*/
|
|
27063
|
+
subject: string;
|
|
27064
|
+
/**
|
|
27065
|
+
* The item's display name from the price book.
|
|
27066
|
+
*/
|
|
27067
|
+
name: string;
|
|
27068
|
+
/**
|
|
27069
|
+
* The meter's unit as billing records it, for example token, cpu_second or request.
|
|
27070
|
+
*/
|
|
27071
|
+
unit: string;
|
|
27072
|
+
/**
|
|
27073
|
+
* How many units one amount covers, as a decimal integer string; 1000000 for per-million-token meters, 1 for a per-request or per-second meter.
|
|
27074
|
+
*/
|
|
27075
|
+
per: string;
|
|
27076
|
+
/**
|
|
27077
|
+
* When this amount took effect. It is at or before now by construction.
|
|
27078
|
+
*/
|
|
27079
|
+
effective_from: string;
|
|
27080
|
+
/**
|
|
27081
|
+
* Which amount of a multi-amount model this entry is; null when the item has exactly one amount.
|
|
27082
|
+
*/
|
|
27083
|
+
variant: {
|
|
27084
|
+
/**
|
|
27085
|
+
* This entry is one tier of a tiered price, chosen by the meter's tier selector.
|
|
27086
|
+
*/
|
|
27087
|
+
kind: 'tier';
|
|
27088
|
+
/**
|
|
27089
|
+
* The tier's upper bound of the selector; the last tier is null (no upper bound).
|
|
27090
|
+
*/
|
|
27091
|
+
up_to: string;
|
|
27092
|
+
} | {
|
|
27093
|
+
/**
|
|
27094
|
+
* This entry is one cell of a matrix price, priced for the dimension values in when.
|
|
27095
|
+
*/
|
|
27096
|
+
kind: 'cell';
|
|
27097
|
+
/**
|
|
27098
|
+
* The dimension values this cell prices, for example resolution 1080p.
|
|
27099
|
+
*/
|
|
27100
|
+
when: {
|
|
27101
|
+
[key: string]: string;
|
|
27102
|
+
};
|
|
27103
|
+
} | {
|
|
27104
|
+
/**
|
|
27105
|
+
* This entry is the matrix's default amount, used when no cell matches.
|
|
27106
|
+
*/
|
|
27107
|
+
kind: 'default';
|
|
27108
|
+
};
|
|
27109
|
+
/**
|
|
27110
|
+
* The stored USD amount in major units as a decimal string, or null when the item does not price USD; never 0 as a stand-in.
|
|
27111
|
+
*/
|
|
27112
|
+
usd: string;
|
|
27113
|
+
/**
|
|
27114
|
+
* The stored CNY amount in major units as a decimal string, or null when the item does not price CNY; it is what a CNY account is charged, never 0 as a stand-in.
|
|
27115
|
+
*/
|
|
27116
|
+
cny: string;
|
|
27117
|
+
};
|
|
26977
27118
|
/**
|
|
26978
27119
|
* File expiration policy
|
|
26979
27120
|
*
|
|
@@ -37560,6 +37701,14 @@ export type MediaSpeechCreateInput = {
|
|
|
37560
37701
|
* Language of the text, when the voice supports several.
|
|
37561
37702
|
*/
|
|
37562
37703
|
language?: string;
|
|
37704
|
+
/**
|
|
37705
|
+
* Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
37706
|
+
*/
|
|
37707
|
+
model?: string;
|
|
37708
|
+
/**
|
|
37709
|
+
* Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced the best value, quality puts the result first. A tier picks among the speech models that carry the voice this request names, so a voice the chosen model does not offer is never selected and then refused, and a platform-designed voice is bound to its own model. Send tier or model, never both. Omitted, the library’s speech model answers, or its default tier once the media-tier-defaults switch is on.
|
|
37710
|
+
*/
|
|
37711
|
+
tier?: MediaMediaTier;
|
|
37563
37712
|
};
|
|
37564
37713
|
/**
|
|
37565
37714
|
* Body of a character element.
|
|
@@ -52835,6 +52984,178 @@ export type GetAgentAppearanceResponses = {
|
|
|
52835
52984
|
};
|
|
52836
52985
|
};
|
|
52837
52986
|
export type GetAgentAppearanceResponse = GetAgentAppearanceResponses[keyof GetAgentAppearanceResponses];
|
|
52987
|
+
export type AgentsPhoneRetrieveData = {
|
|
52988
|
+
body?: never;
|
|
52989
|
+
path: {
|
|
52990
|
+
/**
|
|
52991
|
+
* Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
52992
|
+
*/
|
|
52993
|
+
agent_id: string;
|
|
52994
|
+
};
|
|
52995
|
+
query?: never;
|
|
52996
|
+
url: '/agent/v1/agents/{agent_id}/phone';
|
|
52997
|
+
};
|
|
52998
|
+
export type AgentsPhoneRetrieveErrors = {
|
|
52999
|
+
/**
|
|
53000
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
53001
|
+
*/
|
|
53002
|
+
400: unknown;
|
|
53003
|
+
/**
|
|
53004
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53005
|
+
*/
|
|
53006
|
+
401: AgentError;
|
|
53007
|
+
/**
|
|
53008
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53009
|
+
*/
|
|
53010
|
+
403: AgentError;
|
|
53011
|
+
/**
|
|
53012
|
+
* AGENT_NOT_FOUND: no agent with this reference belongs to your organization, this credential cannot see it, or it is a service agent (which never has a phone).
|
|
53013
|
+
*/
|
|
53014
|
+
404: unknown;
|
|
53015
|
+
/**
|
|
53016
|
+
* Agent service failed
|
|
53017
|
+
*/
|
|
53018
|
+
502: unknown;
|
|
53019
|
+
/**
|
|
53020
|
+
* Agent service unavailable
|
|
53021
|
+
*/
|
|
53022
|
+
503: unknown;
|
|
53023
|
+
};
|
|
53024
|
+
export type AgentsPhoneRetrieveError = AgentsPhoneRetrieveErrors[keyof AgentsPhoneRetrieveErrors];
|
|
53025
|
+
export type AgentsPhoneRetrieveResponses = {
|
|
53026
|
+
/**
|
|
53027
|
+
* This agent's phone: whether one is configured, what it is doing, and the public sandbox id to take it over with.
|
|
53028
|
+
*/
|
|
53029
|
+
200: {
|
|
53030
|
+
/**
|
|
53031
|
+
* Object type, always agent_phone.
|
|
53032
|
+
*/
|
|
53033
|
+
object: 'agent_phone';
|
|
53034
|
+
/**
|
|
53035
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
53036
|
+
*/
|
|
53037
|
+
agent_id: string;
|
|
53038
|
+
/**
|
|
53039
|
+
* Whether this agent has a phone configured at all. false means no phone block is saved (the phone is off); it is not an error.
|
|
53040
|
+
*/
|
|
53041
|
+
configured: boolean;
|
|
53042
|
+
/**
|
|
53043
|
+
* What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
|
|
53044
|
+
*/
|
|
53045
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
53046
|
+
/**
|
|
53047
|
+
* The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
|
|
53048
|
+
*/
|
|
53049
|
+
sku: string | null;
|
|
53050
|
+
/**
|
|
53051
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53052
|
+
*/
|
|
53053
|
+
name: string | null;
|
|
53054
|
+
/**
|
|
53055
|
+
* The public sandbox id of the running instance, or null when there is no instance. Take the phone over with it: POST /sandbox/v1/sandboxes/{id}/act, or the Console sandbox page's screen tab.
|
|
53056
|
+
*/
|
|
53057
|
+
sandbox_id: string | null;
|
|
53058
|
+
/**
|
|
53059
|
+
* When the current instance's lease runs out, in RFC 3339; the sandbox kills the phone then. Null when there is no instance; every use extends the lease.
|
|
53060
|
+
*/
|
|
53061
|
+
lease_ends_at: string | null;
|
|
53062
|
+
/**
|
|
53063
|
+
* When the app state was last packed for this phone, in RFC 3339; null when it never was. The archive is what a fresh instance restores on the next use.
|
|
53064
|
+
*/
|
|
53065
|
+
archived_at: string | null;
|
|
53066
|
+
/**
|
|
53067
|
+
* Why the last app-state archive failed, or null. A phone that could not be packed is still released, but the last state is not kept.
|
|
53068
|
+
*/
|
|
53069
|
+
archive_error: string | null;
|
|
53070
|
+
};
|
|
53071
|
+
};
|
|
53072
|
+
export type AgentsPhoneRetrieveResponse = AgentsPhoneRetrieveResponses[keyof AgentsPhoneRetrieveResponses];
|
|
53073
|
+
export type AgentsPhoneReleaseData = {
|
|
53074
|
+
body?: never;
|
|
53075
|
+
path: {
|
|
53076
|
+
/**
|
|
53077
|
+
* Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
53078
|
+
*/
|
|
53079
|
+
agent_id: string;
|
|
53080
|
+
};
|
|
53081
|
+
query?: never;
|
|
53082
|
+
url: '/agent/v1/agents/{agent_id}/phone/release';
|
|
53083
|
+
};
|
|
53084
|
+
export type AgentsPhoneReleaseErrors = {
|
|
53085
|
+
/**
|
|
53086
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
53087
|
+
*/
|
|
53088
|
+
400: unknown;
|
|
53089
|
+
/**
|
|
53090
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53091
|
+
*/
|
|
53092
|
+
401: AgentError;
|
|
53093
|
+
/**
|
|
53094
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53095
|
+
*/
|
|
53096
|
+
403: AgentError;
|
|
53097
|
+
/**
|
|
53098
|
+
* AGENT_NOT_FOUND: no agent with this reference belongs to your organization, this credential cannot see it, or it is a service agent (which never has a phone).
|
|
53099
|
+
*/
|
|
53100
|
+
404: unknown;
|
|
53101
|
+
/**
|
|
53102
|
+
* Agent service failed
|
|
53103
|
+
*/
|
|
53104
|
+
502: unknown;
|
|
53105
|
+
/**
|
|
53106
|
+
* Agent service unavailable
|
|
53107
|
+
*/
|
|
53108
|
+
503: unknown;
|
|
53109
|
+
};
|
|
53110
|
+
export type AgentsPhoneReleaseError = AgentsPhoneReleaseErrors[keyof AgentsPhoneReleaseErrors];
|
|
53111
|
+
export type AgentsPhoneReleaseResponses = {
|
|
53112
|
+
/**
|
|
53113
|
+
* The phone with the release recorded: state releasing, or none when there was nothing to release.
|
|
53114
|
+
*/
|
|
53115
|
+
200: {
|
|
53116
|
+
/**
|
|
53117
|
+
* Object type, always agent_phone.
|
|
53118
|
+
*/
|
|
53119
|
+
object: 'agent_phone';
|
|
53120
|
+
/**
|
|
53121
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
53122
|
+
*/
|
|
53123
|
+
agent_id: string;
|
|
53124
|
+
/**
|
|
53125
|
+
* Whether this agent has a phone configured at all. false means no phone block is saved (the phone is off); it is not an error.
|
|
53126
|
+
*/
|
|
53127
|
+
configured: boolean;
|
|
53128
|
+
/**
|
|
53129
|
+
* What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
|
|
53130
|
+
*/
|
|
53131
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
53132
|
+
/**
|
|
53133
|
+
* The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
|
|
53134
|
+
*/
|
|
53135
|
+
sku: string | null;
|
|
53136
|
+
/**
|
|
53137
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53138
|
+
*/
|
|
53139
|
+
name: string | null;
|
|
53140
|
+
/**
|
|
53141
|
+
* The public sandbox id of the running instance, or null when there is no instance. Take the phone over with it: POST /sandbox/v1/sandboxes/{id}/act, or the Console sandbox page's screen tab.
|
|
53142
|
+
*/
|
|
53143
|
+
sandbox_id: string | null;
|
|
53144
|
+
/**
|
|
53145
|
+
* When the current instance's lease runs out, in RFC 3339; the sandbox kills the phone then. Null when there is no instance; every use extends the lease.
|
|
53146
|
+
*/
|
|
53147
|
+
lease_ends_at: string | null;
|
|
53148
|
+
/**
|
|
53149
|
+
* When the app state was last packed for this phone, in RFC 3339; null when it never was. The archive is what a fresh instance restores on the next use.
|
|
53150
|
+
*/
|
|
53151
|
+
archived_at: string | null;
|
|
53152
|
+
/**
|
|
53153
|
+
* Why the last app-state archive failed, or null. A phone that could not be packed is still released, but the last state is not kept.
|
|
53154
|
+
*/
|
|
53155
|
+
archive_error: string | null;
|
|
53156
|
+
};
|
|
53157
|
+
};
|
|
53158
|
+
export type AgentsPhoneReleaseResponse = AgentsPhoneReleaseResponses[keyof AgentsPhoneReleaseResponses];
|
|
52838
53159
|
export type GetAgentEmbedPolicyData = {
|
|
52839
53160
|
body?: never;
|
|
52840
53161
|
path: {
|
|
@@ -58782,6 +59103,23 @@ export type ForkSessionResponses = {
|
|
|
58782
59103
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
58783
59104
|
*/
|
|
58784
59105
|
cwd: string;
|
|
59106
|
+
/**
|
|
59107
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
59108
|
+
*/
|
|
59109
|
+
workspace?: {
|
|
59110
|
+
/**
|
|
59111
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
59112
|
+
*/
|
|
59113
|
+
kind: 'shared' | 'isolated';
|
|
59114
|
+
/**
|
|
59115
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
59116
|
+
*/
|
|
59117
|
+
path?: string;
|
|
59118
|
+
/**
|
|
59119
|
+
* The worktree's branch; present only when kind is isolated.
|
|
59120
|
+
*/
|
|
59121
|
+
branch?: string;
|
|
59122
|
+
};
|
|
58785
59123
|
/**
|
|
58786
59124
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
58787
59125
|
*/
|
|
@@ -60507,6 +60845,23 @@ export type RenameSessionResponses = {
|
|
|
60507
60845
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
60508
60846
|
*/
|
|
60509
60847
|
cwd: string;
|
|
60848
|
+
/**
|
|
60849
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
60850
|
+
*/
|
|
60851
|
+
workspace?: {
|
|
60852
|
+
/**
|
|
60853
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
60854
|
+
*/
|
|
60855
|
+
kind: 'shared' | 'isolated';
|
|
60856
|
+
/**
|
|
60857
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
60858
|
+
*/
|
|
60859
|
+
path?: string;
|
|
60860
|
+
/**
|
|
60861
|
+
* The worktree's branch; present only when kind is isolated.
|
|
60862
|
+
*/
|
|
60863
|
+
branch?: string;
|
|
60864
|
+
};
|
|
60510
60865
|
/**
|
|
60511
60866
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
60512
60867
|
*/
|
|
@@ -62238,6 +62593,23 @@ export type UpdateSessionAgentVersionResponses = {
|
|
|
62238
62593
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
62239
62594
|
*/
|
|
62240
62595
|
cwd: string;
|
|
62596
|
+
/**
|
|
62597
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
62598
|
+
*/
|
|
62599
|
+
workspace?: {
|
|
62600
|
+
/**
|
|
62601
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
62602
|
+
*/
|
|
62603
|
+
kind: 'shared' | 'isolated';
|
|
62604
|
+
/**
|
|
62605
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
62606
|
+
*/
|
|
62607
|
+
path?: string;
|
|
62608
|
+
/**
|
|
62609
|
+
* The worktree's branch; present only when kind is isolated.
|
|
62610
|
+
*/
|
|
62611
|
+
branch?: string;
|
|
62612
|
+
};
|
|
62241
62613
|
/**
|
|
62242
62614
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
62243
62615
|
*/
|
|
@@ -63374,6 +63746,29 @@ export type CreateAudioSpeechResponses = {
|
|
|
63374
63746
|
200: Blob | File;
|
|
63375
63747
|
};
|
|
63376
63748
|
export type CreateAudioSpeechResponse = CreateAudioSpeechResponses[keyof CreateAudioSpeechResponses];
|
|
63749
|
+
export type ListPublicPricesData = {
|
|
63750
|
+
body?: never;
|
|
63751
|
+
path?: never;
|
|
63752
|
+
query?: never;
|
|
63753
|
+
url: '/billing/v1/prices';
|
|
63754
|
+
};
|
|
63755
|
+
export type ListPublicPricesErrors = {
|
|
63756
|
+
/**
|
|
63757
|
+
* The price book could not be read (PRICE_LIST_UNAVAILABLE). Retry after a minute; do not show a price you cannot confirm.
|
|
63758
|
+
*/
|
|
63759
|
+
502: unknown;
|
|
63760
|
+
/**
|
|
63761
|
+
* The price book has not been published yet (UNAVAILABLE). Retry after a minute; there is no price to show.
|
|
63762
|
+
*/
|
|
63763
|
+
503: unknown;
|
|
63764
|
+
};
|
|
63765
|
+
export type ListPublicPricesResponses = {
|
|
63766
|
+
/**
|
|
63767
|
+
* The catalog in force. price_list.items is grouped by nothing — order by product and name to render a table; a null amount means the currency is not priced, not that it is free.
|
|
63768
|
+
*/
|
|
63769
|
+
200: BillingPriceList;
|
|
63770
|
+
};
|
|
63771
|
+
export type ListPublicPricesResponse = ListPublicPricesResponses[keyof ListPublicPricesResponses];
|
|
63377
63772
|
export type BrowserListSessionsData = {
|
|
63378
63773
|
body?: never;
|
|
63379
63774
|
path?: never;
|
|
@@ -64026,7 +64421,7 @@ export type BrowserRunPageActionData = {
|
|
|
64026
64421
|
*/
|
|
64027
64422
|
name: string;
|
|
64028
64423
|
/**
|
|
64029
|
-
* cookie 值,最多 4096
|
|
64424
|
+
* cookie 值,最多 4096 个字符,可为空字符串但字段必须出现(省略或传 null 会被拒绝,错误会说明是哪个字段、违反了什么规则);它是凭据,不会出现在动作结果、事件或日志里。
|
|
64030
64425
|
*/
|
|
64031
64426
|
value: string;
|
|
64032
64427
|
/**
|
|
@@ -74271,6 +74666,268 @@ export type RenameSandboxResponses = {
|
|
|
74271
74666
|
};
|
|
74272
74667
|
};
|
|
74273
74668
|
export type RenameSandboxResponse = RenameSandboxResponses[keyof RenameSandboxResponses];
|
|
74669
|
+
export type ActOnSandboxDisplayData = {
|
|
74670
|
+
body: {
|
|
74671
|
+
/**
|
|
74672
|
+
* Action kind; exactly "snapshot".
|
|
74673
|
+
*/
|
|
74674
|
+
type: 'snapshot';
|
|
74675
|
+
} | {
|
|
74676
|
+
/**
|
|
74677
|
+
* Action kind; exactly "screenshot".
|
|
74678
|
+
*/
|
|
74679
|
+
type: 'screenshot';
|
|
74680
|
+
} | {
|
|
74681
|
+
/**
|
|
74682
|
+
* Action kind; exactly "tap".
|
|
74683
|
+
*/
|
|
74684
|
+
type: 'tap';
|
|
74685
|
+
/**
|
|
74686
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74687
|
+
*/
|
|
74688
|
+
ref?: string;
|
|
74689
|
+
/**
|
|
74690
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74691
|
+
*/
|
|
74692
|
+
x?: number;
|
|
74693
|
+
/**
|
|
74694
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74695
|
+
*/
|
|
74696
|
+
y?: number;
|
|
74697
|
+
} | {
|
|
74698
|
+
/**
|
|
74699
|
+
* Action kind; exactly "long_press".
|
|
74700
|
+
*/
|
|
74701
|
+
type: 'long_press';
|
|
74702
|
+
/**
|
|
74703
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74704
|
+
*/
|
|
74705
|
+
ref?: string;
|
|
74706
|
+
/**
|
|
74707
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74708
|
+
*/
|
|
74709
|
+
x?: number;
|
|
74710
|
+
/**
|
|
74711
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74712
|
+
*/
|
|
74713
|
+
y?: number;
|
|
74714
|
+
/**
|
|
74715
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
74716
|
+
*/
|
|
74717
|
+
durationMs?: number;
|
|
74718
|
+
} | {
|
|
74719
|
+
/**
|
|
74720
|
+
* Action kind; exactly "swipe".
|
|
74721
|
+
*/
|
|
74722
|
+
type: 'swipe';
|
|
74723
|
+
/**
|
|
74724
|
+
* Where the finger starts.
|
|
74725
|
+
*/
|
|
74726
|
+
from: {
|
|
74727
|
+
/**
|
|
74728
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74729
|
+
*/
|
|
74730
|
+
x: number;
|
|
74731
|
+
/**
|
|
74732
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74733
|
+
*/
|
|
74734
|
+
y: number;
|
|
74735
|
+
};
|
|
74736
|
+
/**
|
|
74737
|
+
* Where the finger ends.
|
|
74738
|
+
*/
|
|
74739
|
+
to: {
|
|
74740
|
+
/**
|
|
74741
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74742
|
+
*/
|
|
74743
|
+
x: number;
|
|
74744
|
+
/**
|
|
74745
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74746
|
+
*/
|
|
74747
|
+
y: number;
|
|
74748
|
+
};
|
|
74749
|
+
/**
|
|
74750
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
74751
|
+
*/
|
|
74752
|
+
durationMs?: number;
|
|
74753
|
+
} | {
|
|
74754
|
+
/**
|
|
74755
|
+
* Action kind; exactly "scroll".
|
|
74756
|
+
*/
|
|
74757
|
+
type: 'scroll';
|
|
74758
|
+
/**
|
|
74759
|
+
* Which way the view moves, as on a scroll wheel: down shows what is below. The finger swipes the opposite way, a quarter screen each side of the start point.
|
|
74760
|
+
*/
|
|
74761
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
74762
|
+
/**
|
|
74763
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74764
|
+
*/
|
|
74765
|
+
ref?: string;
|
|
74766
|
+
} | {
|
|
74767
|
+
/**
|
|
74768
|
+
* Action kind; exactly "type".
|
|
74769
|
+
*/
|
|
74770
|
+
type: 'type';
|
|
74771
|
+
/**
|
|
74772
|
+
* Text to type, at most 10000 characters. ASCII only, because the phone types character by character; non-ASCII text is refused with INVALID_PARAMS.
|
|
74773
|
+
*/
|
|
74774
|
+
text: string;
|
|
74775
|
+
/**
|
|
74776
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74777
|
+
*/
|
|
74778
|
+
ref?: string;
|
|
74779
|
+
} | {
|
|
74780
|
+
/**
|
|
74781
|
+
* Action kind; exactly "key".
|
|
74782
|
+
*/
|
|
74783
|
+
type: 'key';
|
|
74784
|
+
/**
|
|
74785
|
+
* Which key to press.
|
|
74786
|
+
*/
|
|
74787
|
+
key: 'back' | 'home' | 'recents' | 'enter' | 'delete' | 'power' | 'volume_up' | 'volume_down';
|
|
74788
|
+
} | {
|
|
74789
|
+
/**
|
|
74790
|
+
* Action kind; exactly "open_app".
|
|
74791
|
+
*/
|
|
74792
|
+
type: 'open_app';
|
|
74793
|
+
/**
|
|
74794
|
+
* Java package name of the app, such as com.android.settings.
|
|
74795
|
+
*/
|
|
74796
|
+
package: string;
|
|
74797
|
+
/**
|
|
74798
|
+
* Activity to open as android:name, such as com.example.app.MainActivity; omitted opens the package's launcher activity.
|
|
74799
|
+
*/
|
|
74800
|
+
activity?: string;
|
|
74801
|
+
} | {
|
|
74802
|
+
/**
|
|
74803
|
+
* Action kind; exactly "close_app".
|
|
74804
|
+
*/
|
|
74805
|
+
type: 'close_app';
|
|
74806
|
+
/**
|
|
74807
|
+
* Java package name of the app, such as com.android.settings.
|
|
74808
|
+
*/
|
|
74809
|
+
package: string;
|
|
74810
|
+
} | {
|
|
74811
|
+
/**
|
|
74812
|
+
* Action kind; exactly "open_url".
|
|
74813
|
+
*/
|
|
74814
|
+
type: 'open_url';
|
|
74815
|
+
/**
|
|
74816
|
+
* Absolute http or https URL to open in the phone's browser.
|
|
74817
|
+
*/
|
|
74818
|
+
url: string;
|
|
74819
|
+
} | {
|
|
74820
|
+
/**
|
|
74821
|
+
* Action kind; exactly "wait".
|
|
74822
|
+
*/
|
|
74823
|
+
type: 'wait';
|
|
74824
|
+
/**
|
|
74825
|
+
* How long to wait, in milliseconds, 1 to 10000, before the call returns.
|
|
74826
|
+
*/
|
|
74827
|
+
ms: number;
|
|
74828
|
+
};
|
|
74829
|
+
path: {
|
|
74830
|
+
/**
|
|
74831
|
+
* Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
|
|
74832
|
+
*/
|
|
74833
|
+
sandboxID: string;
|
|
74834
|
+
};
|
|
74835
|
+
query?: never;
|
|
74836
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/act';
|
|
74837
|
+
};
|
|
74838
|
+
export type ActOnSandboxDisplayErrors = {
|
|
74839
|
+
/**
|
|
74840
|
+
* INVALID_PARAMS: the body is not one known action, a field is missing, wrongly typed or outside its range, a target names both a ref and coordinates (or neither), a ref is not in the latest snapshot, or the text is not ASCII.
|
|
74841
|
+
*/
|
|
74842
|
+
400: unknown;
|
|
74843
|
+
/**
|
|
74844
|
+
* Authentication required: supply an organization API key.
|
|
74845
|
+
*/
|
|
74846
|
+
401: unknown;
|
|
74847
|
+
/**
|
|
74848
|
+
* NOT_FOUND: the sandbox is absent or belongs to another organization.
|
|
74849
|
+
*/
|
|
74850
|
+
404: unknown;
|
|
74851
|
+
/**
|
|
74852
|
+
* CAPABILITY_UNSUPPORTED: this sandbox is not a phone, so it has no screen; create one with templateID "android".
|
|
74853
|
+
*/
|
|
74854
|
+
501: unknown;
|
|
74855
|
+
/**
|
|
74856
|
+
* DEVICE_NOT_READY: the phone is not drivable yet, and the body names the state it is in — starting while its machine is still being built, booting while the machine runs but the phone program has not connected. Both carry retryable: true and Retry-After: 2; wait that long and send the action again. SERVICE_UNAVAILABLE: the phone is connected but answered nothing this time (its own timeout, or a connection that went away mid-action); retry the same way. The sandbox's state and readyAt on GET /sandbox/v1/sandboxes/{sandboxID} tell the same story: readyAt is the instant the phone program said hello, and its absence is booting.
|
|
74857
|
+
*/
|
|
74858
|
+
503: unknown;
|
|
74859
|
+
};
|
|
74860
|
+
export type ActOnSandboxDisplayResponses = {
|
|
74861
|
+
/**
|
|
74862
|
+
* The action's result: the UI hierarchy and refs for snapshot, image bytes for screenshot, the applied duration for a long press, or an acknowledgement with no data.
|
|
74863
|
+
*/
|
|
74864
|
+
200: {
|
|
74865
|
+
/**
|
|
74866
|
+
* Result kind; "snapshot" for this shape.
|
|
74867
|
+
*/
|
|
74868
|
+
type: 'snapshot';
|
|
74869
|
+
/**
|
|
74870
|
+
* The screen as an indented text list, one line per meaningful node: its role, its text in quotes and, for a node you can act on, its ref, such as - button "登录" [ref=e3]. Password text is masked.
|
|
74871
|
+
*/
|
|
74872
|
+
snapshot: string;
|
|
74873
|
+
/**
|
|
74874
|
+
* How many nodes received a ref that tap, long_press, scroll and type accept.
|
|
74875
|
+
*/
|
|
74876
|
+
refs: number;
|
|
74877
|
+
/**
|
|
74878
|
+
* True when the hierarchy was too large and was cut; the returned refs still name their nodes.
|
|
74879
|
+
*/
|
|
74880
|
+
truncated: boolean;
|
|
74881
|
+
/**
|
|
74882
|
+
* Package name of the app that was in the foreground at the snapshot, such as com.android.settings.
|
|
74883
|
+
*/
|
|
74884
|
+
package: string;
|
|
74885
|
+
} | {
|
|
74886
|
+
/**
|
|
74887
|
+
* Result kind; "screenshot" for this shape.
|
|
74888
|
+
*/
|
|
74889
|
+
type: 'screenshot';
|
|
74890
|
+
/**
|
|
74891
|
+
* Image MIME type of the encoded bytes; image/jpeg. In code mode, return "data:" + mediaType + ";base64," + data to see the image.
|
|
74892
|
+
*/
|
|
74893
|
+
mediaType: string;
|
|
74894
|
+
/**
|
|
74895
|
+
* Base64-encoded image bytes; decode before saving or viewing.
|
|
74896
|
+
*/
|
|
74897
|
+
data: string;
|
|
74898
|
+
/**
|
|
74899
|
+
* Image width in pixels.
|
|
74900
|
+
*/
|
|
74901
|
+
width: number;
|
|
74902
|
+
/**
|
|
74903
|
+
* Image height in pixels.
|
|
74904
|
+
*/
|
|
74905
|
+
height: number;
|
|
74906
|
+
/**
|
|
74907
|
+
* Decoded image size in bytes.
|
|
74908
|
+
*/
|
|
74909
|
+
bytes: number;
|
|
74910
|
+
} | {
|
|
74911
|
+
/**
|
|
74912
|
+
* Result kind; "ok" for an action with no result of its own.
|
|
74913
|
+
*/
|
|
74914
|
+
type: 'ok';
|
|
74915
|
+
/**
|
|
74916
|
+
* How long the phone took to run the action, in milliseconds.
|
|
74917
|
+
*/
|
|
74918
|
+
ms?: number;
|
|
74919
|
+
} | {
|
|
74920
|
+
/**
|
|
74921
|
+
* Result kind; "wait" for the wait action.
|
|
74922
|
+
*/
|
|
74923
|
+
type: 'wait';
|
|
74924
|
+
/**
|
|
74925
|
+
* How long the call waited, in milliseconds; echoes the requested ms.
|
|
74926
|
+
*/
|
|
74927
|
+
ms: number;
|
|
74928
|
+
};
|
|
74929
|
+
};
|
|
74930
|
+
export type ActOnSandboxDisplayResponse = ActOnSandboxDisplayResponses[keyof ActOnSandboxDisplayResponses];
|
|
74274
74931
|
export type RemoveSandboxFileData = {
|
|
74275
74932
|
body?: never;
|
|
74276
74933
|
path: {
|
|
@@ -74846,6 +75503,23 @@ export type SessionsRetrieveResponses = {
|
|
|
74846
75503
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
74847
75504
|
*/
|
|
74848
75505
|
cwd: string;
|
|
75506
|
+
/**
|
|
75507
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
75508
|
+
*/
|
|
75509
|
+
workspace?: {
|
|
75510
|
+
/**
|
|
75511
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
75512
|
+
*/
|
|
75513
|
+
kind: 'shared' | 'isolated';
|
|
75514
|
+
/**
|
|
75515
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
75516
|
+
*/
|
|
75517
|
+
path?: string;
|
|
75518
|
+
/**
|
|
75519
|
+
* The worktree's branch; present only when kind is isolated.
|
|
75520
|
+
*/
|
|
75521
|
+
branch?: string;
|
|
75522
|
+
};
|
|
74849
75523
|
/**
|
|
74850
75524
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
74851
75525
|
*/
|
|
@@ -75141,6 +75815,23 @@ export type SessionsUpdateResponses = {
|
|
|
75141
75815
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
75142
75816
|
*/
|
|
75143
75817
|
cwd: string;
|
|
75818
|
+
/**
|
|
75819
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
75820
|
+
*/
|
|
75821
|
+
workspace?: {
|
|
75822
|
+
/**
|
|
75823
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
75824
|
+
*/
|
|
75825
|
+
kind: 'shared' | 'isolated';
|
|
75826
|
+
/**
|
|
75827
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
75828
|
+
*/
|
|
75829
|
+
path?: string;
|
|
75830
|
+
/**
|
|
75831
|
+
* The worktree's branch; present only when kind is isolated.
|
|
75832
|
+
*/
|
|
75833
|
+
branch?: string;
|
|
75834
|
+
};
|
|
75144
75835
|
/**
|
|
75145
75836
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
75146
75837
|
*/
|
|
@@ -80490,6 +81181,23 @@ export type SessionsListResponses = {
|
|
|
80490
81181
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80491
81182
|
*/
|
|
80492
81183
|
cwd: string;
|
|
81184
|
+
/**
|
|
81185
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81186
|
+
*/
|
|
81187
|
+
workspace?: {
|
|
81188
|
+
/**
|
|
81189
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81190
|
+
*/
|
|
81191
|
+
kind: 'shared' | 'isolated';
|
|
81192
|
+
/**
|
|
81193
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81194
|
+
*/
|
|
81195
|
+
path?: string;
|
|
81196
|
+
/**
|
|
81197
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81198
|
+
*/
|
|
81199
|
+
branch?: string;
|
|
81200
|
+
};
|
|
80493
81201
|
/**
|
|
80494
81202
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
80495
81203
|
*/
|
|
@@ -80602,6 +81310,10 @@ export type SessionsCreateData = {
|
|
|
80602
81310
|
* Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd.
|
|
80603
81311
|
*/
|
|
80604
81312
|
cwd?: string;
|
|
81313
|
+
/**
|
|
81314
|
+
* Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared.
|
|
81315
|
+
*/
|
|
81316
|
+
workspace?: 'shared' | 'isolated';
|
|
80605
81317
|
/**
|
|
80606
81318
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
|
|
80607
81319
|
*/
|
|
@@ -80824,6 +81536,23 @@ export type SessionsCreateResponses = {
|
|
|
80824
81536
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80825
81537
|
*/
|
|
80826
81538
|
cwd: string;
|
|
81539
|
+
/**
|
|
81540
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81541
|
+
*/
|
|
81542
|
+
workspace?: {
|
|
81543
|
+
/**
|
|
81544
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81545
|
+
*/
|
|
81546
|
+
kind: 'shared' | 'isolated';
|
|
81547
|
+
/**
|
|
81548
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81549
|
+
*/
|
|
81550
|
+
path?: string;
|
|
81551
|
+
/**
|
|
81552
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81553
|
+
*/
|
|
81554
|
+
branch?: string;
|
|
81555
|
+
};
|
|
80827
81556
|
/**
|
|
80828
81557
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
80829
81558
|
*/
|
|
@@ -81078,6 +81807,23 @@ export type SessionsArchiveResponses = {
|
|
|
81078
81807
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
81079
81808
|
*/
|
|
81080
81809
|
cwd: string;
|
|
81810
|
+
/**
|
|
81811
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81812
|
+
*/
|
|
81813
|
+
workspace?: {
|
|
81814
|
+
/**
|
|
81815
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81816
|
+
*/
|
|
81817
|
+
kind: 'shared' | 'isolated';
|
|
81818
|
+
/**
|
|
81819
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81820
|
+
*/
|
|
81821
|
+
path?: string;
|
|
81822
|
+
/**
|
|
81823
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81824
|
+
*/
|
|
81825
|
+
branch?: string;
|
|
81826
|
+
};
|
|
81081
81827
|
/**
|
|
81082
81828
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
81083
81829
|
*/
|
|
@@ -85816,6 +86562,12 @@ export type ApplicationListVersionsResponses = {
|
|
|
85816
86562
|
export type ApplicationListVersionsResponse = ApplicationListVersionsResponses[keyof ApplicationListVersionsResponses];
|
|
85817
86563
|
export type ApplicationCreateVersionData = {
|
|
85818
86564
|
body: ApplicationCreateVersionInput;
|
|
86565
|
+
headers?: {
|
|
86566
|
+
/**
|
|
86567
|
+
* Optional; 1-256 characters. Within 24 hours, the same key with the same body replays the first answer (same version, same deployment) instead of creating a second version; the same key with a different body is refused with INVALID_PARAMS. A create still in progress answers 409 IDEMPOTENCY_IN_FLIGHT, so retry it shortly.
|
|
86568
|
+
*/
|
|
86569
|
+
'Idempotency-Key'?: string;
|
|
86570
|
+
};
|
|
85819
86571
|
path: {
|
|
85820
86572
|
/**
|
|
85821
86573
|
* Worker ID (wkr_…).
|
|
@@ -98111,7 +98863,7 @@ export type DevopsPromotionsRetryErrors = {
|
|
|
98111
98863
|
*/
|
|
98112
98864
|
404: DevopsDevOpsError;
|
|
98113
98865
|
/**
|
|
98114
|
-
*
|
|
98866
|
+
* PROMOTION_NOT_RETRYABLE means this promotion has nothing to continue (its message names the state and what to do instead: cancel a running one to stop it, or promote the release again). PROMOTION_RUN_STILL_RUNNING means the halted attempt's run has not stopped yet — it was asked to cancel and the retry created nothing, because planning its targets now would deploy them a second time; read the promotion again shortly, or wait for the queue's own deadline to end the halted run.
|
|
98115
98867
|
*/
|
|
98116
98868
|
409: DevopsDevOpsError;
|
|
98117
98869
|
/**
|
|
@@ -99481,7 +100233,7 @@ export type DevopsChangesAbandonData = {
|
|
|
99481
100233
|
};
|
|
99482
100234
|
export type DevopsChangesAbandonErrors = {
|
|
99483
100235
|
/**
|
|
99484
|
-
* INVALID_ARGUMENT means reason is missing or empty
|
|
100236
|
+
* INVALID_ARGUMENT means reason is missing or empty; nothing was abandoned.
|
|
99485
100237
|
*/
|
|
99486
100238
|
400: DevopsDevOpsError;
|
|
99487
100239
|
/**
|
|
@@ -99871,6 +100623,51 @@ export type DevopsPullRequestsRecordVerdictResponses = {
|
|
|
99871
100623
|
200: DevopsPullRequest;
|
|
99872
100624
|
};
|
|
99873
100625
|
export type DevopsPullRequestsRecordVerdictResponse = DevopsPullRequestsRecordVerdictResponses[keyof DevopsPullRequestsRecordVerdictResponses];
|
|
100626
|
+
export type DevopsPullRequestsCloseData = {
|
|
100627
|
+
body: DevopsPullRequestCloseRequest;
|
|
100628
|
+
path: {
|
|
100629
|
+
/**
|
|
100630
|
+
* The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
|
|
100631
|
+
*/
|
|
100632
|
+
id: string;
|
|
100633
|
+
};
|
|
100634
|
+
query?: never;
|
|
100635
|
+
url: '/devops/v1/pull-requests/{id}:close';
|
|
100636
|
+
};
|
|
100637
|
+
export type DevopsPullRequestsCloseErrors = {
|
|
100638
|
+
/**
|
|
100639
|
+
* INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
|
|
100640
|
+
*/
|
|
100641
|
+
400: DevopsDevOpsError;
|
|
100642
|
+
/**
|
|
100643
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
100644
|
+
*/
|
|
100645
|
+
401: DevopsDevOpsError;
|
|
100646
|
+
/**
|
|
100647
|
+
* The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
|
|
100648
|
+
*/
|
|
100649
|
+
403: DevopsDevOpsError;
|
|
100650
|
+
/**
|
|
100651
|
+
* PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
|
|
100652
|
+
*/
|
|
100653
|
+
404: DevopsDevOpsError;
|
|
100654
|
+
/**
|
|
100655
|
+
* PULL_REQUEST_NOT_OPEN when the pull request is merged or is not open on GitHub: nothing was closed, and the message says which state GitHub reported.
|
|
100656
|
+
*/
|
|
100657
|
+
409: DevopsDevOpsError;
|
|
100658
|
+
/**
|
|
100659
|
+
* INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
|
|
100660
|
+
*/
|
|
100661
|
+
500: DevopsDevOpsError;
|
|
100662
|
+
};
|
|
100663
|
+
export type DevopsPullRequestsCloseError = DevopsPullRequestsCloseErrors[keyof DevopsPullRequestsCloseErrors];
|
|
100664
|
+
export type DevopsPullRequestsCloseResponses = {
|
|
100665
|
+
/**
|
|
100666
|
+
* The pull request as it now stands: state closed with its closeTime, or, for one that was already closed, the answer it had before this call.
|
|
100667
|
+
*/
|
|
100668
|
+
200: DevopsPullRequest;
|
|
100669
|
+
};
|
|
100670
|
+
export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
|
|
99874
100671
|
export type DevopsConnectionsListData = {
|
|
99875
100672
|
body?: never;
|
|
99876
100673
|
path?: never;
|
|
@@ -105369,6 +106166,14 @@ export type MediaCreateSpeechData = {
|
|
|
105369
106166
|
* Language of the text, when the voice supports several.
|
|
105370
106167
|
*/
|
|
105371
106168
|
language?: string;
|
|
106169
|
+
/**
|
|
106170
|
+
* Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
106171
|
+
*/
|
|
106172
|
+
model?: string;
|
|
106173
|
+
/**
|
|
106174
|
+
* Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced the best value, quality puts the result first. A tier picks among the speech models that carry the voice this request names, so a voice the chosen model does not offer is never selected and then refused, and a platform-designed voice is bound to its own model. Send tier or model, never both. Omitted, the library’s speech model answers, or its default tier once the media-tier-defaults switch is on.
|
|
106175
|
+
*/
|
|
106176
|
+
tier?: MediaMediaTier;
|
|
105372
106177
|
};
|
|
105373
106178
|
headers?: {
|
|
105374
106179
|
/**
|
|
@@ -105403,7 +106208,7 @@ export type MediaCreateSpeechErrors = {
|
|
|
105403
106208
|
*/
|
|
105404
106209
|
404: MediaMediaError;
|
|
105405
106210
|
/**
|
|
105406
|
-
* MODEL_PENDING: neither the request nor the library settings name a speech model, so there is nothing to synthesise with; set models.speech on the library or name model on the request. JOB_INVALID_STATE: the job cannot start from its current state; start a new job rather than resuming this one.
|
|
106211
|
+
* MODEL_PENDING: neither the request nor the library settings name a speech model, so there is nothing to synthesise with; set models.speech on the library or name model or tier on the request. JOB_INVALID_STATE: the job cannot start from its current state; start a new job rather than resuming this one.
|
|
105407
106212
|
*/
|
|
105408
106213
|
409: MediaMediaError;
|
|
105409
106214
|
/**
|
|
@@ -107808,10 +108613,6 @@ export type RegistryGitFilesRetrieveErrors = {
|
|
|
107808
108613
|
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
107809
108614
|
*/
|
|
107810
108615
|
404: RegistryRegistryError;
|
|
107811
|
-
/**
|
|
107812
|
-
* PAYLOAD_TOO_LARGE 表示上传超过限额:单次上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。精简内容后重发。
|
|
107813
|
-
*/
|
|
107814
|
-
413: RegistryRegistryError;
|
|
107815
108616
|
/**
|
|
107816
108617
|
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
107817
108618
|
*/
|
|
@@ -114427,7 +115228,7 @@ export type TicketPatchTicketsNumberData = {
|
|
|
114427
115228
|
*/
|
|
114428
115229
|
state_reason?: 'completed' | 'not_planned' | 'duplicate';
|
|
114429
115230
|
/**
|
|
114430
|
-
*
|
|
115231
|
+
* The original ticket's number; required when state_reason is duplicate.
|
|
114431
115232
|
*/
|
|
114432
115233
|
duplicate_of?: number;
|
|
114433
115234
|
};
|