@deepraxis/sdk 0.1.1-dev.a936efe → 0.1.1-dev.aa440c9
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 +22 -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 +53 -15
- package/dist/generated/sdk.gen.js +116 -14
- package/dist/generated/types.gen.d.ts +1212 -101
- 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 +260 -17
- package/dist/resources.generated.d.ts +107 -0
- package/dist/resources.generated.js +15 -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
|
*/
|
|
@@ -19365,6 +19391,10 @@ export type MediaAsset = {
|
|
|
19365
19391
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
19366
19392
|
*/
|
|
19367
19393
|
segments?: number;
|
|
19394
|
+
/**
|
|
19395
|
+
* Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
|
|
19396
|
+
*/
|
|
19397
|
+
duration?: number;
|
|
19368
19398
|
};
|
|
19369
19399
|
};
|
|
19370
19400
|
};
|
|
@@ -21504,6 +21534,51 @@ export type SandboxNewSandboxV2 = {
|
|
|
21504
21534
|
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
21505
21535
|
*/
|
|
21506
21536
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
21537
|
+
/**
|
|
21538
|
+
* 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.
|
|
21539
|
+
*/
|
|
21540
|
+
ephemeral?: boolean;
|
|
21541
|
+
/**
|
|
21542
|
+
* 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.
|
|
21543
|
+
*/
|
|
21544
|
+
size?: string;
|
|
21545
|
+
/**
|
|
21546
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
21547
|
+
*/
|
|
21548
|
+
name?: string;
|
|
21549
|
+
/**
|
|
21550
|
+
* 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.
|
|
21551
|
+
*/
|
|
21552
|
+
waitForReady?: boolean;
|
|
21553
|
+
/**
|
|
21554
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
21555
|
+
*/
|
|
21556
|
+
onExpire?: 'kill' | 'pause';
|
|
21557
|
+
/**
|
|
21558
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
21559
|
+
*/
|
|
21560
|
+
idleTimeout?: number;
|
|
21561
|
+
/**
|
|
21562
|
+
* 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.
|
|
21563
|
+
*/
|
|
21564
|
+
idleActivity?: 'traffic' | 'caller';
|
|
21565
|
+
/**
|
|
21566
|
+
* Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
|
|
21567
|
+
*/
|
|
21568
|
+
interruptible?: boolean;
|
|
21569
|
+
/**
|
|
21570
|
+
* 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.
|
|
21571
|
+
*/
|
|
21572
|
+
onLoss?: 'fail' | 'rebuild';
|
|
21573
|
+
/**
|
|
21574
|
+
* 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.
|
|
21575
|
+
*/
|
|
21576
|
+
outputs?: Array<{
|
|
21577
|
+
/**
|
|
21578
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
21579
|
+
*/
|
|
21580
|
+
path: string;
|
|
21581
|
+
}>;
|
|
21507
21582
|
};
|
|
21508
21583
|
/**
|
|
21509
21584
|
* Sandbox created from a template.
|
|
@@ -21546,7 +21621,7 @@ export type SandboxSandbox = {
|
|
|
21546
21621
|
machine?: 'light' | 'full' | 'none';
|
|
21547
21622
|
};
|
|
21548
21623
|
/**
|
|
21549
|
-
*
|
|
21624
|
+
* 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
21625
|
*/
|
|
21551
21626
|
export type SandboxSandboxState = 'running' | 'paused';
|
|
21552
21627
|
/**
|
|
@@ -24281,7 +24356,7 @@ export type VaultCreateSecretInput = {
|
|
|
24281
24356
|
*/
|
|
24282
24357
|
value: string;
|
|
24283
24358
|
/**
|
|
24284
|
-
* Allowed destinations for the secret.
|
|
24359
|
+
* 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
24360
|
*/
|
|
24286
24361
|
allowed_hosts?: Array<string>;
|
|
24287
24362
|
/**
|
|
@@ -24325,7 +24400,7 @@ export type VaultSecret = {
|
|
|
24325
24400
|
*/
|
|
24326
24401
|
kind: 'static' | 'oauth';
|
|
24327
24402
|
/**
|
|
24328
|
-
* Allowed destinations for the secret.
|
|
24403
|
+
* 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
24404
|
*/
|
|
24330
24405
|
allowed_hosts: Array<string>;
|
|
24331
24406
|
/**
|
|
@@ -24418,7 +24493,7 @@ export type VaultUpdateSecretInput = {
|
|
|
24418
24493
|
*/
|
|
24419
24494
|
value?: string;
|
|
24420
24495
|
/**
|
|
24421
|
-
* Allowed destinations for the secret.
|
|
24496
|
+
* 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
24497
|
*/
|
|
24423
24498
|
allowed_hosts?: Array<string>;
|
|
24424
24499
|
/**
|
|
@@ -24647,6 +24722,10 @@ export type TicketRecord = {
|
|
|
24647
24722
|
* completed means resolved; not_planned means declined; duplicate identifies a duplicate; reopened records reopening.
|
|
24648
24723
|
*/
|
|
24649
24724
|
state_reason: 'completed' | 'not_planned' | 'duplicate' | 'reopened';
|
|
24725
|
+
/**
|
|
24726
|
+
* The original ticket's number; required when state_reason is duplicate.
|
|
24727
|
+
*/
|
|
24728
|
+
duplicate_of: number | null;
|
|
24650
24729
|
/**
|
|
24651
24730
|
* 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
24731
|
*/
|
|
@@ -26974,6 +27053,76 @@ export type AgentSseData = {
|
|
|
26974
27053
|
message: string;
|
|
26975
27054
|
};
|
|
26976
27055
|
};
|
|
27056
|
+
/**
|
|
27057
|
+
* One amount in force for one price item.
|
|
27058
|
+
*/
|
|
27059
|
+
export type BillingPriceEntry = {
|
|
27060
|
+
/**
|
|
27061
|
+
* The price item key, stable and never reused, for example router:default/deepseek-v4-pro:input or sandbox:cpu_second.
|
|
27062
|
+
*/
|
|
27063
|
+
id: string;
|
|
27064
|
+
/**
|
|
27065
|
+
* The item key's namespace — the product that owns the meter (router, sandbox, search, browser, media, knowledge, agent, …); group the table by this.
|
|
27066
|
+
*/
|
|
27067
|
+
product: string;
|
|
27068
|
+
/**
|
|
27069
|
+
* The item key's subject when it has one, such as default/deepseek-v4-pro; null for a two-segment key.
|
|
27070
|
+
*/
|
|
27071
|
+
subject: string;
|
|
27072
|
+
/**
|
|
27073
|
+
* The item's display name from the price book.
|
|
27074
|
+
*/
|
|
27075
|
+
name: string;
|
|
27076
|
+
/**
|
|
27077
|
+
* The meter's unit as billing records it, for example token, cpu_second or request.
|
|
27078
|
+
*/
|
|
27079
|
+
unit: string;
|
|
27080
|
+
/**
|
|
27081
|
+
* 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.
|
|
27082
|
+
*/
|
|
27083
|
+
per: string;
|
|
27084
|
+
/**
|
|
27085
|
+
* When this amount took effect. It is at or before now by construction.
|
|
27086
|
+
*/
|
|
27087
|
+
effective_from: string;
|
|
27088
|
+
/**
|
|
27089
|
+
* Which amount of a multi-amount model this entry is; null when the item has exactly one amount.
|
|
27090
|
+
*/
|
|
27091
|
+
variant: {
|
|
27092
|
+
/**
|
|
27093
|
+
* This entry is one tier of a tiered price, chosen by the meter's tier selector.
|
|
27094
|
+
*/
|
|
27095
|
+
kind: 'tier';
|
|
27096
|
+
/**
|
|
27097
|
+
* The tier's upper bound of the selector; the last tier is null (no upper bound).
|
|
27098
|
+
*/
|
|
27099
|
+
up_to: string;
|
|
27100
|
+
} | {
|
|
27101
|
+
/**
|
|
27102
|
+
* This entry is one cell of a matrix price, priced for the dimension values in when.
|
|
27103
|
+
*/
|
|
27104
|
+
kind: 'cell';
|
|
27105
|
+
/**
|
|
27106
|
+
* The dimension values this cell prices, for example resolution 1080p.
|
|
27107
|
+
*/
|
|
27108
|
+
when: {
|
|
27109
|
+
[key: string]: string;
|
|
27110
|
+
};
|
|
27111
|
+
} | {
|
|
27112
|
+
/**
|
|
27113
|
+
* This entry is the matrix's default amount, used when no cell matches.
|
|
27114
|
+
*/
|
|
27115
|
+
kind: 'default';
|
|
27116
|
+
};
|
|
27117
|
+
/**
|
|
27118
|
+
* 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.
|
|
27119
|
+
*/
|
|
27120
|
+
usd: string;
|
|
27121
|
+
/**
|
|
27122
|
+
* 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.
|
|
27123
|
+
*/
|
|
27124
|
+
cny: string;
|
|
27125
|
+
};
|
|
26977
27126
|
/**
|
|
26978
27127
|
* File expiration policy
|
|
26979
27128
|
*
|
|
@@ -37270,6 +37419,10 @@ export type MediaSearchAsset = {
|
|
|
37270
37419
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
37271
37420
|
*/
|
|
37272
37421
|
segments?: number;
|
|
37422
|
+
/**
|
|
37423
|
+
* Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
|
|
37424
|
+
*/
|
|
37425
|
+
duration?: number;
|
|
37273
37426
|
};
|
|
37274
37427
|
};
|
|
37275
37428
|
};
|
|
@@ -37560,6 +37713,14 @@ export type MediaSpeechCreateInput = {
|
|
|
37560
37713
|
* Language of the text, when the voice supports several.
|
|
37561
37714
|
*/
|
|
37562
37715
|
language?: string;
|
|
37716
|
+
/**
|
|
37717
|
+
* 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.
|
|
37718
|
+
*/
|
|
37719
|
+
model?: string;
|
|
37720
|
+
/**
|
|
37721
|
+
* 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.
|
|
37722
|
+
*/
|
|
37723
|
+
tier?: MediaMediaTier;
|
|
37563
37724
|
};
|
|
37564
37725
|
/**
|
|
37565
37726
|
* Body of a character element.
|
|
@@ -47055,6 +47216,10 @@ export type MediaAssetWritable = {
|
|
|
47055
47216
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
47056
47217
|
*/
|
|
47057
47218
|
segments?: number;
|
|
47219
|
+
/**
|
|
47220
|
+
* Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
|
|
47221
|
+
*/
|
|
47222
|
+
duration?: number;
|
|
47058
47223
|
};
|
|
47059
47224
|
};
|
|
47060
47225
|
};
|
|
@@ -47608,6 +47773,10 @@ export type MediaSearchAssetWritable = {
|
|
|
47608
47773
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
47609
47774
|
*/
|
|
47610
47775
|
segments?: number;
|
|
47776
|
+
/**
|
|
47777
|
+
* Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
|
|
47778
|
+
*/
|
|
47779
|
+
duration?: number;
|
|
47611
47780
|
};
|
|
47612
47781
|
};
|
|
47613
47782
|
};
|
|
@@ -52835,38 +53004,34 @@ export type GetAgentAppearanceResponses = {
|
|
|
52835
53004
|
};
|
|
52836
53005
|
};
|
|
52837
53006
|
export type GetAgentAppearanceResponse = GetAgentAppearanceResponses[keyof GetAgentAppearanceResponses];
|
|
52838
|
-
export type
|
|
53007
|
+
export type AgentsPhoneRetrieveData = {
|
|
52839
53008
|
body?: never;
|
|
52840
53009
|
path: {
|
|
52841
53010
|
/**
|
|
52842
|
-
*
|
|
53011
|
+
* 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_….
|
|
52843
53012
|
*/
|
|
52844
53013
|
agent_id: string;
|
|
52845
53014
|
};
|
|
52846
53015
|
query?: never;
|
|
52847
|
-
url: '/agent/v1/agents/{agent_id}/
|
|
53016
|
+
url: '/agent/v1/agents/{agent_id}/phone';
|
|
52848
53017
|
};
|
|
52849
|
-
export type
|
|
53018
|
+
export type AgentsPhoneRetrieveErrors = {
|
|
52850
53019
|
/**
|
|
52851
|
-
* INVALID_PARAMS:
|
|
53020
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
52852
53021
|
*/
|
|
52853
53022
|
400: unknown;
|
|
52854
53023
|
/**
|
|
52855
|
-
*
|
|
53024
|
+
* 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.
|
|
52856
53025
|
*/
|
|
52857
|
-
401:
|
|
53026
|
+
401: AgentError;
|
|
52858
53027
|
/**
|
|
52859
53028
|
* 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.
|
|
52860
53029
|
*/
|
|
52861
53030
|
403: AgentError;
|
|
52862
53031
|
/**
|
|
52863
|
-
* AGENT_NOT_FOUND: no
|
|
53032
|
+
* 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).
|
|
52864
53033
|
*/
|
|
52865
53034
|
404: unknown;
|
|
52866
|
-
/**
|
|
52867
|
-
* EMBED_POLICY_REQUIRED: this agent has no saved embed settings yet, so there is nothing to read or merge into; open the agent's 嵌入设置 page in the console once and save, then retry. EMBED_POLICY_CONFLICT: the settings changed while this request was in flight; read them again and resend, which is not automatic.
|
|
52868
|
-
*/
|
|
52869
|
-
409: unknown;
|
|
52870
53035
|
/**
|
|
52871
53036
|
* Agent service failed
|
|
52872
53037
|
*/
|
|
@@ -52876,105 +53041,151 @@ export type GetAgentEmbedPolicyErrors = {
|
|
|
52876
53041
|
*/
|
|
52877
53042
|
503: unknown;
|
|
52878
53043
|
};
|
|
52879
|
-
export type
|
|
52880
|
-
export type
|
|
53044
|
+
export type AgentsPhoneRetrieveError = AgentsPhoneRetrieveErrors[keyof AgentsPhoneRetrieveErrors];
|
|
53045
|
+
export type AgentsPhoneRetrieveResponses = {
|
|
52881
53046
|
/**
|
|
52882
|
-
*
|
|
53047
|
+
* This agent's phone: whether one is configured, what it is doing, and the public sandbox id to take it over with.
|
|
52883
53048
|
*/
|
|
52884
53049
|
200: {
|
|
52885
53050
|
/**
|
|
52886
|
-
*
|
|
53051
|
+
* Object type, always agent_phone.
|
|
52887
53052
|
*/
|
|
52888
|
-
|
|
53053
|
+
object: 'agent_phone';
|
|
52889
53054
|
/**
|
|
52890
|
-
*
|
|
53055
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
52891
53056
|
*/
|
|
52892
|
-
|
|
53057
|
+
agent_id: string;
|
|
52893
53058
|
/**
|
|
52894
|
-
*
|
|
53059
|
+
* 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.
|
|
52895
53060
|
*/
|
|
52896
|
-
|
|
52897
|
-
/**
|
|
52898
|
-
* Whether an embedded end user may attach files at all. On by default.
|
|
52899
|
-
*/
|
|
52900
|
-
enabled: boolean;
|
|
52901
|
-
/**
|
|
52902
|
-
* The largest single file, in bytes: 1 to 104857600 (100 MiB). Default 10485760 (10 MiB).
|
|
52903
|
-
*/
|
|
52904
|
-
max_file_bytes: number;
|
|
52905
|
-
/**
|
|
52906
|
-
* How many files one embedded end-user session may hold: 1 to 100. Default 20.
|
|
52907
|
-
*/
|
|
52908
|
-
max_files_per_session: number;
|
|
52909
|
-
};
|
|
53061
|
+
configured: boolean;
|
|
52910
53062
|
/**
|
|
52911
|
-
*
|
|
53063
|
+
* What the phone is doing now. A cloud phone: none means 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. A BYOD phone (the organization's own device) has two states instead: online and offline.
|
|
52912
53064
|
*/
|
|
52913
|
-
|
|
52914
|
-
|
|
52915
|
-
|
|
52916
|
-
|
|
52917
|
-
|
|
52918
|
-
|
|
52919
|
-
|
|
52920
|
-
|
|
52921
|
-
|
|
52922
|
-
|
|
52923
|
-
|
|
52924
|
-
|
|
52925
|
-
|
|
52926
|
-
|
|
53065
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53066
|
+
/**
|
|
53067
|
+
* The sandbox SKU a cloud 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. Always null for a BYOD phone, which is never built.
|
|
53068
|
+
*/
|
|
53069
|
+
sku: string | null;
|
|
53070
|
+
/**
|
|
53071
|
+
* A BYOD phone's device id (byd_…), or null for a cloud phone. The device is the organization's own real phone; the platform drives it but never builds, archives or kills it.
|
|
53072
|
+
*/
|
|
53073
|
+
byod_device: string | null;
|
|
53074
|
+
/**
|
|
53075
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53076
|
+
*/
|
|
53077
|
+
name: string | null;
|
|
53078
|
+
/**
|
|
53079
|
+
* 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.
|
|
53080
|
+
*/
|
|
53081
|
+
sandbox_id: string | null;
|
|
53082
|
+
/**
|
|
53083
|
+
* 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.
|
|
53084
|
+
*/
|
|
53085
|
+
lease_ends_at: string | null;
|
|
53086
|
+
/**
|
|
53087
|
+
* 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.
|
|
53088
|
+
*/
|
|
53089
|
+
archived_at: string | null;
|
|
53090
|
+
/**
|
|
53091
|
+
* 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.
|
|
53092
|
+
*/
|
|
53093
|
+
archive_error: string | null;
|
|
52927
53094
|
};
|
|
52928
53095
|
};
|
|
52929
|
-
export type
|
|
52930
|
-
export type
|
|
53096
|
+
export type AgentsPhoneRetrieveResponse = AgentsPhoneRetrieveResponses[keyof AgentsPhoneRetrieveResponses];
|
|
53097
|
+
export type AgentsPhoneReleaseData = {
|
|
53098
|
+
body?: never;
|
|
53099
|
+
path: {
|
|
53100
|
+
/**
|
|
53101
|
+
* 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_….
|
|
53102
|
+
*/
|
|
53103
|
+
agent_id: string;
|
|
53104
|
+
};
|
|
53105
|
+
query?: never;
|
|
53106
|
+
url: '/agent/v1/agents/{agent_id}/phone/release';
|
|
53107
|
+
};
|
|
53108
|
+
export type AgentsPhoneReleaseErrors = {
|
|
52931
53109
|
/**
|
|
52932
|
-
*
|
|
53110
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
52933
53111
|
*/
|
|
52934
|
-
|
|
53112
|
+
400: unknown;
|
|
53113
|
+
/**
|
|
53114
|
+
* 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.
|
|
53115
|
+
*/
|
|
53116
|
+
401: AgentError;
|
|
53117
|
+
/**
|
|
53118
|
+
* 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.
|
|
53119
|
+
*/
|
|
53120
|
+
403: AgentError;
|
|
53121
|
+
/**
|
|
53122
|
+
* 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).
|
|
53123
|
+
*/
|
|
53124
|
+
404: unknown;
|
|
53125
|
+
/**
|
|
53126
|
+
* Agent service failed
|
|
53127
|
+
*/
|
|
53128
|
+
502: unknown;
|
|
53129
|
+
/**
|
|
53130
|
+
* Agent service unavailable
|
|
53131
|
+
*/
|
|
53132
|
+
503: unknown;
|
|
53133
|
+
};
|
|
53134
|
+
export type AgentsPhoneReleaseError = AgentsPhoneReleaseErrors[keyof AgentsPhoneReleaseErrors];
|
|
53135
|
+
export type AgentsPhoneReleaseResponses = {
|
|
53136
|
+
/**
|
|
53137
|
+
* The phone with the release recorded: state releasing, or none when there was nothing to release.
|
|
53138
|
+
*/
|
|
53139
|
+
200: {
|
|
52935
53140
|
/**
|
|
52936
|
-
*
|
|
53141
|
+
* Object type, always agent_phone.
|
|
52937
53142
|
*/
|
|
52938
|
-
|
|
53143
|
+
object: 'agent_phone';
|
|
52939
53144
|
/**
|
|
52940
|
-
*
|
|
53145
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
52941
53146
|
*/
|
|
52942
|
-
|
|
53147
|
+
agent_id: string;
|
|
52943
53148
|
/**
|
|
52944
|
-
*
|
|
53149
|
+
* 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.
|
|
52945
53150
|
*/
|
|
52946
|
-
|
|
52947
|
-
/**
|
|
52948
|
-
* Whether an embedded end user may attach files.
|
|
52949
|
-
*/
|
|
52950
|
-
enabled?: boolean;
|
|
52951
|
-
/**
|
|
52952
|
-
* The largest single file, in bytes: 1 to 104857600 (100 MiB).
|
|
52953
|
-
*/
|
|
52954
|
-
max_file_bytes?: number;
|
|
52955
|
-
/**
|
|
52956
|
-
* How many files one embedded end-user session may hold: 1 to 100.
|
|
52957
|
-
*/
|
|
52958
|
-
max_files_per_session?: number;
|
|
52959
|
-
};
|
|
53151
|
+
configured: boolean;
|
|
52960
53152
|
/**
|
|
52961
|
-
*
|
|
53153
|
+
* What the phone is doing now. A cloud phone: none means 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. A BYOD phone (the organization's own device) has two states instead: online and offline.
|
|
52962
53154
|
*/
|
|
52963
|
-
|
|
52964
|
-
|
|
52965
|
-
|
|
52966
|
-
|
|
52967
|
-
|
|
52968
|
-
|
|
52969
|
-
|
|
52970
|
-
|
|
52971
|
-
|
|
52972
|
-
|
|
52973
|
-
|
|
52974
|
-
|
|
52975
|
-
|
|
52976
|
-
|
|
53155
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53156
|
+
/**
|
|
53157
|
+
* The sandbox SKU a cloud 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. Always null for a BYOD phone, which is never built.
|
|
53158
|
+
*/
|
|
53159
|
+
sku: string | null;
|
|
53160
|
+
/**
|
|
53161
|
+
* A BYOD phone's device id (byd_…), or null for a cloud phone. The device is the organization's own real phone; the platform drives it but never builds, archives or kills it.
|
|
53162
|
+
*/
|
|
53163
|
+
byod_device: string | null;
|
|
53164
|
+
/**
|
|
53165
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53166
|
+
*/
|
|
53167
|
+
name: string | null;
|
|
53168
|
+
/**
|
|
53169
|
+
* 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.
|
|
53170
|
+
*/
|
|
53171
|
+
sandbox_id: string | null;
|
|
53172
|
+
/**
|
|
53173
|
+
* 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.
|
|
53174
|
+
*/
|
|
53175
|
+
lease_ends_at: string | null;
|
|
53176
|
+
/**
|
|
53177
|
+
* 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.
|
|
53178
|
+
*/
|
|
53179
|
+
archived_at: string | null;
|
|
53180
|
+
/**
|
|
53181
|
+
* 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.
|
|
53182
|
+
*/
|
|
53183
|
+
archive_error: string | null;
|
|
52977
53184
|
};
|
|
53185
|
+
};
|
|
53186
|
+
export type AgentsPhoneReleaseResponse = AgentsPhoneReleaseResponses[keyof AgentsPhoneReleaseResponses];
|
|
53187
|
+
export type GetAgentEmbedPolicyData = {
|
|
53188
|
+
body?: never;
|
|
52978
53189
|
path: {
|
|
52979
53190
|
/**
|
|
52980
53191
|
* Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
@@ -52984,7 +53195,145 @@ export type UpdateAgentEmbedPolicyData = {
|
|
|
52984
53195
|
query?: never;
|
|
52985
53196
|
url: '/agent/v1/agents/{agent_id}/embed_policy';
|
|
52986
53197
|
};
|
|
52987
|
-
export type
|
|
53198
|
+
export type GetAgentEmbedPolicyErrors = {
|
|
53199
|
+
/**
|
|
53200
|
+
* INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
|
|
53201
|
+
*/
|
|
53202
|
+
400: unknown;
|
|
53203
|
+
/**
|
|
53204
|
+
* Authenticate with your API key or a console session.
|
|
53205
|
+
*/
|
|
53206
|
+
401: unknown;
|
|
53207
|
+
/**
|
|
53208
|
+
* 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.
|
|
53209
|
+
*/
|
|
53210
|
+
403: AgentError;
|
|
53211
|
+
/**
|
|
53212
|
+
* AGENT_NOT_FOUND: no service agent with this reference belongs to your organization.
|
|
53213
|
+
*/
|
|
53214
|
+
404: unknown;
|
|
53215
|
+
/**
|
|
53216
|
+
* EMBED_POLICY_REQUIRED: this agent has no saved embed settings yet, so there is nothing to read or merge into; open the agent's 嵌入设置 page in the console once and save, then retry. EMBED_POLICY_CONFLICT: the settings changed while this request was in flight; read them again and resend, which is not automatic.
|
|
53217
|
+
*/
|
|
53218
|
+
409: unknown;
|
|
53219
|
+
/**
|
|
53220
|
+
* Agent service failed
|
|
53221
|
+
*/
|
|
53222
|
+
502: unknown;
|
|
53223
|
+
/**
|
|
53224
|
+
* Agent service unavailable
|
|
53225
|
+
*/
|
|
53226
|
+
503: unknown;
|
|
53227
|
+
};
|
|
53228
|
+
export type GetAgentEmbedPolicyError = GetAgentEmbedPolicyErrors[keyof GetAgentEmbedPolicyErrors];
|
|
53229
|
+
export type GetAgentEmbedPolicyResponses = {
|
|
53230
|
+
/**
|
|
53231
|
+
* The agent's embed settings: the pages allowed to open its Kit chat, the development switch, what an embedded end user may upload, and whether the agent may be shared by link with the daily caps its share links count against. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
|
|
53232
|
+
*/
|
|
53233
|
+
200: {
|
|
53234
|
+
/**
|
|
53235
|
+
* The pages that may open this agent's Kit chat, each an https origin with no path, query or fragment (https://my-app.example.com). Adding the origin of an application is what lets that application embed the agent; a page whose origin is missing here answers ORIGIN_NOT_ALLOWED. http://localhost appears only when allow_localhost is true.
|
|
53236
|
+
*/
|
|
53237
|
+
allowed_origins: Array<string>;
|
|
53238
|
+
/**
|
|
53239
|
+
* Whether pages served from http://localhost or http://127.0.0.1 may open the chat during development. Off by default; turn it off again before going live.
|
|
53240
|
+
*/
|
|
53241
|
+
allow_localhost: boolean;
|
|
53242
|
+
/**
|
|
53243
|
+
* What an embedded end user may attach to their own conversation.
|
|
53244
|
+
*/
|
|
53245
|
+
uploads: {
|
|
53246
|
+
/**
|
|
53247
|
+
* Whether an embedded end user may attach files at all. On by default.
|
|
53248
|
+
*/
|
|
53249
|
+
enabled: boolean;
|
|
53250
|
+
/**
|
|
53251
|
+
* The largest single file, in bytes: 1 to 104857600 (100 MiB). Default 10485760 (10 MiB).
|
|
53252
|
+
*/
|
|
53253
|
+
max_file_bytes: number;
|
|
53254
|
+
/**
|
|
53255
|
+
* How many files one embedded end-user session may hold: 1 to 100. Default 20.
|
|
53256
|
+
*/
|
|
53257
|
+
max_files_per_session: number;
|
|
53258
|
+
};
|
|
53259
|
+
/**
|
|
53260
|
+
* Whether this agent may be shared by link and the daily budget its share links may use. Off by default; turning it on requires the agent to have an identity number.
|
|
53261
|
+
*/
|
|
53262
|
+
share_links: {
|
|
53263
|
+
/**
|
|
53264
|
+
* Whether this agent may be shared by link. Off by default.
|
|
53265
|
+
*/
|
|
53266
|
+
enabled: boolean;
|
|
53267
|
+
/**
|
|
53268
|
+
* The most primary sessions this agent's share links may start in one UTC day, a whole number, or null for no session cap. Default 200.
|
|
53269
|
+
*/
|
|
53270
|
+
daily_session_cap: number | null;
|
|
53271
|
+
/**
|
|
53272
|
+
* The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
|
|
53273
|
+
*/
|
|
53274
|
+
daily_spend_cap_micro_usd: number | null;
|
|
53275
|
+
};
|
|
53276
|
+
};
|
|
53277
|
+
};
|
|
53278
|
+
export type GetAgentEmbedPolicyResponse = GetAgentEmbedPolicyResponses[keyof GetAgentEmbedPolicyResponses];
|
|
53279
|
+
export type UpdateAgentEmbedPolicyData = {
|
|
53280
|
+
/**
|
|
53281
|
+
* The embed settings to change; every field is optional and only the fields you send are written.
|
|
53282
|
+
*/
|
|
53283
|
+
body: {
|
|
53284
|
+
/**
|
|
53285
|
+
* Replaces the whole allow list: the https origins whose pages may open this agent's Kit chat, with no path, query or fragment. An origin is normalized before it is stored, and a leading wildcard label matches subdomains one label deep. Send the origin of the application you just deployed to let it embed the agent.
|
|
53286
|
+
*/
|
|
53287
|
+
allowed_origins?: Array<string>;
|
|
53288
|
+
/**
|
|
53289
|
+
* Whether http://localhost or http://127.0.0.1 pages may open the chat during development.
|
|
53290
|
+
*/
|
|
53291
|
+
allow_localhost?: boolean;
|
|
53292
|
+
/**
|
|
53293
|
+
* What an embedded end user may attach; only the fields you send are changed.
|
|
53294
|
+
*/
|
|
53295
|
+
uploads?: {
|
|
53296
|
+
/**
|
|
53297
|
+
* Whether an embedded end user may attach files.
|
|
53298
|
+
*/
|
|
53299
|
+
enabled?: boolean;
|
|
53300
|
+
/**
|
|
53301
|
+
* The largest single file, in bytes: 1 to 104857600 (100 MiB).
|
|
53302
|
+
*/
|
|
53303
|
+
max_file_bytes?: number;
|
|
53304
|
+
/**
|
|
53305
|
+
* How many files one embedded end-user session may hold: 1 to 100.
|
|
53306
|
+
*/
|
|
53307
|
+
max_files_per_session?: number;
|
|
53308
|
+
};
|
|
53309
|
+
/**
|
|
53310
|
+
* Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number.
|
|
53311
|
+
*/
|
|
53312
|
+
share_links?: {
|
|
53313
|
+
/**
|
|
53314
|
+
* Whether this agent may be shared by link.
|
|
53315
|
+
*/
|
|
53316
|
+
enabled?: boolean;
|
|
53317
|
+
/**
|
|
53318
|
+
* The most primary sessions the agent's share links may start in one UTC day, a whole number, or null for no session cap.
|
|
53319
|
+
*/
|
|
53320
|
+
daily_session_cap?: number | null;
|
|
53321
|
+
/**
|
|
53322
|
+
* The most the agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap.
|
|
53323
|
+
*/
|
|
53324
|
+
daily_spend_cap_micro_usd?: number | null;
|
|
53325
|
+
};
|
|
53326
|
+
};
|
|
53327
|
+
path: {
|
|
53328
|
+
/**
|
|
53329
|
+
* Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
53330
|
+
*/
|
|
53331
|
+
agent_id: string;
|
|
53332
|
+
};
|
|
53333
|
+
query?: never;
|
|
53334
|
+
url: '/agent/v1/agents/{agent_id}/embed_policy';
|
|
53335
|
+
};
|
|
53336
|
+
export type UpdateAgentEmbedPolicyErrors = {
|
|
52988
53337
|
/**
|
|
52989
53338
|
* INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
|
|
52990
53339
|
*/
|
|
@@ -55511,6 +55860,288 @@ export type ComputersFilesContentResponses = {
|
|
|
55511
55860
|
206: Blob | File;
|
|
55512
55861
|
};
|
|
55513
55862
|
export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
|
|
55863
|
+
export type PreviewComputerFileData = {
|
|
55864
|
+
body?: never;
|
|
55865
|
+
path: {
|
|
55866
|
+
/**
|
|
55867
|
+
* Computer id from computer creation or listing; a computer another tenant owns is not found.
|
|
55868
|
+
*/
|
|
55869
|
+
computer_id: string;
|
|
55870
|
+
};
|
|
55871
|
+
query: {
|
|
55872
|
+
/**
|
|
55873
|
+
* Absolute path of the file on the computer, or a /workspace/ relative path.
|
|
55874
|
+
*/
|
|
55875
|
+
path: string;
|
|
55876
|
+
/**
|
|
55877
|
+
* The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake.
|
|
55878
|
+
*/
|
|
55879
|
+
v?: string;
|
|
55880
|
+
/**
|
|
55881
|
+
* The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE.
|
|
55882
|
+
*/
|
|
55883
|
+
variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
|
|
55884
|
+
};
|
|
55885
|
+
url: '/agent/v1/computers/{computer_id}/files/preview';
|
|
55886
|
+
};
|
|
55887
|
+
export type PreviewComputerFileErrors = {
|
|
55888
|
+
/**
|
|
55889
|
+
* INVALID_PARAMS: path is missing, a query parameter is unsupported, the pinned version is malformed, or PREVIEW_VARIANT_UNAVAILABLE: this file has no such variant.
|
|
55890
|
+
*/
|
|
55891
|
+
400: {
|
|
55892
|
+
type: 'error';
|
|
55893
|
+
error: {
|
|
55894
|
+
/**
|
|
55895
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55896
|
+
*/
|
|
55897
|
+
type: string;
|
|
55898
|
+
message: string;
|
|
55899
|
+
code: string;
|
|
55900
|
+
retryable: boolean;
|
|
55901
|
+
/**
|
|
55902
|
+
* How to recover, for computer failures.
|
|
55903
|
+
*/
|
|
55904
|
+
hint?: string;
|
|
55905
|
+
};
|
|
55906
|
+
/**
|
|
55907
|
+
* Equals the X-Request-Id response header.
|
|
55908
|
+
*/
|
|
55909
|
+
request_id: string;
|
|
55910
|
+
};
|
|
55911
|
+
/**
|
|
55912
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55913
|
+
*/
|
|
55914
|
+
401: {
|
|
55915
|
+
type: 'error';
|
|
55916
|
+
error: {
|
|
55917
|
+
/**
|
|
55918
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55919
|
+
*/
|
|
55920
|
+
type: string;
|
|
55921
|
+
message: string;
|
|
55922
|
+
code: string;
|
|
55923
|
+
retryable: boolean;
|
|
55924
|
+
/**
|
|
55925
|
+
* How to recover, for computer failures.
|
|
55926
|
+
*/
|
|
55927
|
+
hint?: string;
|
|
55928
|
+
};
|
|
55929
|
+
/**
|
|
55930
|
+
* Equals the X-Request-Id response header.
|
|
55931
|
+
*/
|
|
55932
|
+
request_id: string;
|
|
55933
|
+
};
|
|
55934
|
+
/**
|
|
55935
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55936
|
+
*/
|
|
55937
|
+
403: {
|
|
55938
|
+
type: 'error';
|
|
55939
|
+
error: {
|
|
55940
|
+
/**
|
|
55941
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55942
|
+
*/
|
|
55943
|
+
type: string;
|
|
55944
|
+
message: string;
|
|
55945
|
+
code: string;
|
|
55946
|
+
retryable: boolean;
|
|
55947
|
+
/**
|
|
55948
|
+
* How to recover, for computer failures.
|
|
55949
|
+
*/
|
|
55950
|
+
hint?: string;
|
|
55951
|
+
};
|
|
55952
|
+
/**
|
|
55953
|
+
* Equals the X-Request-Id response header.
|
|
55954
|
+
*/
|
|
55955
|
+
request_id: string;
|
|
55956
|
+
};
|
|
55957
|
+
/**
|
|
55958
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
55959
|
+
*/
|
|
55960
|
+
404: {
|
|
55961
|
+
type: 'error';
|
|
55962
|
+
error: {
|
|
55963
|
+
/**
|
|
55964
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55965
|
+
*/
|
|
55966
|
+
type: string;
|
|
55967
|
+
message: string;
|
|
55968
|
+
code: string;
|
|
55969
|
+
retryable: boolean;
|
|
55970
|
+
/**
|
|
55971
|
+
* How to recover, for computer failures.
|
|
55972
|
+
*/
|
|
55973
|
+
hint?: string;
|
|
55974
|
+
};
|
|
55975
|
+
/**
|
|
55976
|
+
* Equals the X-Request-Id response header.
|
|
55977
|
+
*/
|
|
55978
|
+
request_id: string;
|
|
55979
|
+
};
|
|
55980
|
+
/**
|
|
55981
|
+
* STALE_DIGEST: the file changed while its product was read; ask again.
|
|
55982
|
+
*/
|
|
55983
|
+
409: {
|
|
55984
|
+
type: 'error';
|
|
55985
|
+
error: {
|
|
55986
|
+
/**
|
|
55987
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55988
|
+
*/
|
|
55989
|
+
type: string;
|
|
55990
|
+
message: string;
|
|
55991
|
+
code: string;
|
|
55992
|
+
retryable: boolean;
|
|
55993
|
+
/**
|
|
55994
|
+
* How to recover, for computer failures.
|
|
55995
|
+
*/
|
|
55996
|
+
hint?: string;
|
|
55997
|
+
};
|
|
55998
|
+
/**
|
|
55999
|
+
* Equals the X-Request-Id response header.
|
|
56000
|
+
*/
|
|
56001
|
+
request_id: string;
|
|
56002
|
+
};
|
|
56003
|
+
/**
|
|
56004
|
+
* FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
|
|
56005
|
+
*/
|
|
56006
|
+
413: {
|
|
56007
|
+
type: 'error';
|
|
56008
|
+
error: {
|
|
56009
|
+
/**
|
|
56010
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56011
|
+
*/
|
|
56012
|
+
type: string;
|
|
56013
|
+
message: string;
|
|
56014
|
+
code: string;
|
|
56015
|
+
retryable: boolean;
|
|
56016
|
+
/**
|
|
56017
|
+
* How to recover, for computer failures.
|
|
56018
|
+
*/
|
|
56019
|
+
hint?: string;
|
|
56020
|
+
};
|
|
56021
|
+
/**
|
|
56022
|
+
* Equals the X-Request-Id response header.
|
|
56023
|
+
*/
|
|
56024
|
+
request_id: string;
|
|
56025
|
+
};
|
|
56026
|
+
/**
|
|
56027
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56028
|
+
*/
|
|
56029
|
+
429: {
|
|
56030
|
+
type: 'error';
|
|
56031
|
+
error: {
|
|
56032
|
+
/**
|
|
56033
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56034
|
+
*/
|
|
56035
|
+
type: string;
|
|
56036
|
+
message: string;
|
|
56037
|
+
code: string;
|
|
56038
|
+
retryable: boolean;
|
|
56039
|
+
/**
|
|
56040
|
+
* How to recover, for computer failures.
|
|
56041
|
+
*/
|
|
56042
|
+
hint?: string;
|
|
56043
|
+
};
|
|
56044
|
+
/**
|
|
56045
|
+
* Equals the X-Request-Id response header.
|
|
56046
|
+
*/
|
|
56047
|
+
request_id: string;
|
|
56048
|
+
};
|
|
56049
|
+
/**
|
|
56050
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56051
|
+
*/
|
|
56052
|
+
500: {
|
|
56053
|
+
type: 'error';
|
|
56054
|
+
error: {
|
|
56055
|
+
/**
|
|
56056
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56057
|
+
*/
|
|
56058
|
+
type: string;
|
|
56059
|
+
message: string;
|
|
56060
|
+
code: string;
|
|
56061
|
+
retryable: boolean;
|
|
56062
|
+
/**
|
|
56063
|
+
* How to recover, for computer failures.
|
|
56064
|
+
*/
|
|
56065
|
+
hint?: string;
|
|
56066
|
+
};
|
|
56067
|
+
/**
|
|
56068
|
+
* Equals the X-Request-Id response header.
|
|
56069
|
+
*/
|
|
56070
|
+
request_id: string;
|
|
56071
|
+
};
|
|
56072
|
+
/**
|
|
56073
|
+
* PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
|
|
56074
|
+
*/
|
|
56075
|
+
503: {
|
|
56076
|
+
type: 'error';
|
|
56077
|
+
error: {
|
|
56078
|
+
/**
|
|
56079
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56080
|
+
*/
|
|
56081
|
+
type: string;
|
|
56082
|
+
message: string;
|
|
56083
|
+
code: string;
|
|
56084
|
+
retryable: boolean;
|
|
56085
|
+
/**
|
|
56086
|
+
* How to recover, for computer failures.
|
|
56087
|
+
*/
|
|
56088
|
+
hint?: string;
|
|
56089
|
+
};
|
|
56090
|
+
/**
|
|
56091
|
+
* Equals the X-Request-Id response header.
|
|
56092
|
+
*/
|
|
56093
|
+
request_id: string;
|
|
56094
|
+
};
|
|
56095
|
+
};
|
|
56096
|
+
export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
|
|
56097
|
+
export type PreviewComputerFileResponses = {
|
|
56098
|
+
/**
|
|
56099
|
+
* The preview product, or the fallback that sends the caller to the content door.
|
|
56100
|
+
*/
|
|
56101
|
+
200: {
|
|
56102
|
+
/**
|
|
56103
|
+
* The product answered: image is a 1600 px WebP, pdf a linearized PDF, text the first 64 KiB of text or source, original the file's own bytes.
|
|
56104
|
+
*/
|
|
56105
|
+
variant: 'image' | 'pdf' | 'text' | 'original';
|
|
56106
|
+
/**
|
|
56107
|
+
* The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
|
|
56108
|
+
*/
|
|
56109
|
+
version?: string;
|
|
56110
|
+
/**
|
|
56111
|
+
* Media type of the product, or of the original bytes.
|
|
56112
|
+
*/
|
|
56113
|
+
mime_type?: string;
|
|
56114
|
+
/**
|
|
56115
|
+
* Size of the product in bytes.
|
|
56116
|
+
*/
|
|
56117
|
+
size?: number;
|
|
56118
|
+
/**
|
|
56119
|
+
* File id of the stored product in the File service, when the product was stored.
|
|
56120
|
+
*/
|
|
56121
|
+
file_id?: string;
|
|
56122
|
+
/**
|
|
56123
|
+
* Signed read address of the product; the caller streams it and caches by the version it pinned.
|
|
56124
|
+
*/
|
|
56125
|
+
url?: string;
|
|
56126
|
+
/**
|
|
56127
|
+
* When the signed read address stops working.
|
|
56128
|
+
*/
|
|
56129
|
+
expires_at?: string;
|
|
56130
|
+
/**
|
|
56131
|
+
* true when an existing product answered without regenerating it.
|
|
56132
|
+
*/
|
|
56133
|
+
cached: boolean;
|
|
56134
|
+
/**
|
|
56135
|
+
* Present as content when no product was produced: the file is over the size threshold or the deployment has no File service. The caller reads the file through the content door.
|
|
56136
|
+
*/
|
|
56137
|
+
fallback?: 'content';
|
|
56138
|
+
/**
|
|
56139
|
+
* true only on a pre-generation request over the kind's threshold, where generation was skipped.
|
|
56140
|
+
*/
|
|
56141
|
+
skipped?: boolean;
|
|
56142
|
+
};
|
|
56143
|
+
};
|
|
56144
|
+
export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
|
|
55514
56145
|
export type ComputersFilesConvertData = {
|
|
55515
56146
|
body?: never;
|
|
55516
56147
|
path: {
|
|
@@ -58500,6 +59131,23 @@ export type ForkSessionResponses = {
|
|
|
58500
59131
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
58501
59132
|
*/
|
|
58502
59133
|
cwd: string;
|
|
59134
|
+
/**
|
|
59135
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
59136
|
+
*/
|
|
59137
|
+
workspace?: {
|
|
59138
|
+
/**
|
|
59139
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
59140
|
+
*/
|
|
59141
|
+
kind: 'shared' | 'isolated';
|
|
59142
|
+
/**
|
|
59143
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
59144
|
+
*/
|
|
59145
|
+
path?: string;
|
|
59146
|
+
/**
|
|
59147
|
+
* The worktree's branch; present only when kind is isolated.
|
|
59148
|
+
*/
|
|
59149
|
+
branch?: string;
|
|
59150
|
+
};
|
|
58503
59151
|
/**
|
|
58504
59152
|
* 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.
|
|
58505
59153
|
*/
|
|
@@ -60225,6 +60873,23 @@ export type RenameSessionResponses = {
|
|
|
60225
60873
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
60226
60874
|
*/
|
|
60227
60875
|
cwd: string;
|
|
60876
|
+
/**
|
|
60877
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
60878
|
+
*/
|
|
60879
|
+
workspace?: {
|
|
60880
|
+
/**
|
|
60881
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
60882
|
+
*/
|
|
60883
|
+
kind: 'shared' | 'isolated';
|
|
60884
|
+
/**
|
|
60885
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
60886
|
+
*/
|
|
60887
|
+
path?: string;
|
|
60888
|
+
/**
|
|
60889
|
+
* The worktree's branch; present only when kind is isolated.
|
|
60890
|
+
*/
|
|
60891
|
+
branch?: string;
|
|
60892
|
+
};
|
|
60228
60893
|
/**
|
|
60229
60894
|
* 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.
|
|
60230
60895
|
*/
|
|
@@ -61956,6 +62621,23 @@ export type UpdateSessionAgentVersionResponses = {
|
|
|
61956
62621
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
61957
62622
|
*/
|
|
61958
62623
|
cwd: string;
|
|
62624
|
+
/**
|
|
62625
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
62626
|
+
*/
|
|
62627
|
+
workspace?: {
|
|
62628
|
+
/**
|
|
62629
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
62630
|
+
*/
|
|
62631
|
+
kind: 'shared' | 'isolated';
|
|
62632
|
+
/**
|
|
62633
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
62634
|
+
*/
|
|
62635
|
+
path?: string;
|
|
62636
|
+
/**
|
|
62637
|
+
* The worktree's branch; present only when kind is isolated.
|
|
62638
|
+
*/
|
|
62639
|
+
branch?: string;
|
|
62640
|
+
};
|
|
61959
62641
|
/**
|
|
61960
62642
|
* 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.
|
|
61961
62643
|
*/
|
|
@@ -63092,6 +63774,29 @@ export type CreateAudioSpeechResponses = {
|
|
|
63092
63774
|
200: Blob | File;
|
|
63093
63775
|
};
|
|
63094
63776
|
export type CreateAudioSpeechResponse = CreateAudioSpeechResponses[keyof CreateAudioSpeechResponses];
|
|
63777
|
+
export type ListPublicPricesData = {
|
|
63778
|
+
body?: never;
|
|
63779
|
+
path?: never;
|
|
63780
|
+
query?: never;
|
|
63781
|
+
url: '/billing/v1/prices';
|
|
63782
|
+
};
|
|
63783
|
+
export type ListPublicPricesErrors = {
|
|
63784
|
+
/**
|
|
63785
|
+
* The price book could not be read (PRICE_LIST_UNAVAILABLE). Retry after a minute; do not show a price you cannot confirm.
|
|
63786
|
+
*/
|
|
63787
|
+
502: unknown;
|
|
63788
|
+
/**
|
|
63789
|
+
* The price book has not been published yet (UNAVAILABLE). Retry after a minute; there is no price to show.
|
|
63790
|
+
*/
|
|
63791
|
+
503: unknown;
|
|
63792
|
+
};
|
|
63793
|
+
export type ListPublicPricesResponses = {
|
|
63794
|
+
/**
|
|
63795
|
+
* 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.
|
|
63796
|
+
*/
|
|
63797
|
+
200: BillingPriceList;
|
|
63798
|
+
};
|
|
63799
|
+
export type ListPublicPricesResponse = ListPublicPricesResponses[keyof ListPublicPricesResponses];
|
|
63095
63800
|
export type BrowserListSessionsData = {
|
|
63096
63801
|
body?: never;
|
|
63097
63802
|
path?: never;
|
|
@@ -63744,7 +64449,7 @@ export type BrowserRunPageActionData = {
|
|
|
63744
64449
|
*/
|
|
63745
64450
|
name: string;
|
|
63746
64451
|
/**
|
|
63747
|
-
* cookie 值,最多 4096
|
|
64452
|
+
* cookie 值,最多 4096 个字符,可为空字符串但字段必须出现(省略或传 null 会被拒绝,错误会说明是哪个字段、违反了什么规则);它是凭据,不会出现在动作结果、事件或日志里。
|
|
63748
64453
|
*/
|
|
63749
64454
|
value: string;
|
|
63750
64455
|
/**
|
|
@@ -73989,6 +74694,268 @@ export type RenameSandboxResponses = {
|
|
|
73989
74694
|
};
|
|
73990
74695
|
};
|
|
73991
74696
|
export type RenameSandboxResponse = RenameSandboxResponses[keyof RenameSandboxResponses];
|
|
74697
|
+
export type ActOnSandboxDisplayData = {
|
|
74698
|
+
body: {
|
|
74699
|
+
/**
|
|
74700
|
+
* Action kind; exactly "snapshot".
|
|
74701
|
+
*/
|
|
74702
|
+
type: 'snapshot';
|
|
74703
|
+
} | {
|
|
74704
|
+
/**
|
|
74705
|
+
* Action kind; exactly "screenshot".
|
|
74706
|
+
*/
|
|
74707
|
+
type: 'screenshot';
|
|
74708
|
+
} | {
|
|
74709
|
+
/**
|
|
74710
|
+
* Action kind; exactly "tap".
|
|
74711
|
+
*/
|
|
74712
|
+
type: 'tap';
|
|
74713
|
+
/**
|
|
74714
|
+
* 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.
|
|
74715
|
+
*/
|
|
74716
|
+
ref?: string;
|
|
74717
|
+
/**
|
|
74718
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74719
|
+
*/
|
|
74720
|
+
x?: number;
|
|
74721
|
+
/**
|
|
74722
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74723
|
+
*/
|
|
74724
|
+
y?: number;
|
|
74725
|
+
} | {
|
|
74726
|
+
/**
|
|
74727
|
+
* Action kind; exactly "long_press".
|
|
74728
|
+
*/
|
|
74729
|
+
type: 'long_press';
|
|
74730
|
+
/**
|
|
74731
|
+
* 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.
|
|
74732
|
+
*/
|
|
74733
|
+
ref?: string;
|
|
74734
|
+
/**
|
|
74735
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74736
|
+
*/
|
|
74737
|
+
x?: number;
|
|
74738
|
+
/**
|
|
74739
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74740
|
+
*/
|
|
74741
|
+
y?: number;
|
|
74742
|
+
/**
|
|
74743
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
74744
|
+
*/
|
|
74745
|
+
durationMs?: number;
|
|
74746
|
+
} | {
|
|
74747
|
+
/**
|
|
74748
|
+
* Action kind; exactly "swipe".
|
|
74749
|
+
*/
|
|
74750
|
+
type: 'swipe';
|
|
74751
|
+
/**
|
|
74752
|
+
* Where the finger starts.
|
|
74753
|
+
*/
|
|
74754
|
+
from: {
|
|
74755
|
+
/**
|
|
74756
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74757
|
+
*/
|
|
74758
|
+
x: number;
|
|
74759
|
+
/**
|
|
74760
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74761
|
+
*/
|
|
74762
|
+
y: number;
|
|
74763
|
+
};
|
|
74764
|
+
/**
|
|
74765
|
+
* Where the finger ends.
|
|
74766
|
+
*/
|
|
74767
|
+
to: {
|
|
74768
|
+
/**
|
|
74769
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74770
|
+
*/
|
|
74771
|
+
x: number;
|
|
74772
|
+
/**
|
|
74773
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74774
|
+
*/
|
|
74775
|
+
y: number;
|
|
74776
|
+
};
|
|
74777
|
+
/**
|
|
74778
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
74779
|
+
*/
|
|
74780
|
+
durationMs?: number;
|
|
74781
|
+
} | {
|
|
74782
|
+
/**
|
|
74783
|
+
* Action kind; exactly "scroll".
|
|
74784
|
+
*/
|
|
74785
|
+
type: 'scroll';
|
|
74786
|
+
/**
|
|
74787
|
+
* 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.
|
|
74788
|
+
*/
|
|
74789
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
74790
|
+
/**
|
|
74791
|
+
* 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.
|
|
74792
|
+
*/
|
|
74793
|
+
ref?: string;
|
|
74794
|
+
} | {
|
|
74795
|
+
/**
|
|
74796
|
+
* Action kind; exactly "type".
|
|
74797
|
+
*/
|
|
74798
|
+
type: 'type';
|
|
74799
|
+
/**
|
|
74800
|
+
* Text to type, at most 10000 characters. ASCII only, because the phone types character by character; non-ASCII text is refused with INVALID_PARAMS.
|
|
74801
|
+
*/
|
|
74802
|
+
text: string;
|
|
74803
|
+
/**
|
|
74804
|
+
* 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.
|
|
74805
|
+
*/
|
|
74806
|
+
ref?: string;
|
|
74807
|
+
} | {
|
|
74808
|
+
/**
|
|
74809
|
+
* Action kind; exactly "key".
|
|
74810
|
+
*/
|
|
74811
|
+
type: 'key';
|
|
74812
|
+
/**
|
|
74813
|
+
* Which key to press.
|
|
74814
|
+
*/
|
|
74815
|
+
key: 'back' | 'home' | 'recents' | 'enter' | 'delete' | 'power' | 'volume_up' | 'volume_down';
|
|
74816
|
+
} | {
|
|
74817
|
+
/**
|
|
74818
|
+
* Action kind; exactly "open_app".
|
|
74819
|
+
*/
|
|
74820
|
+
type: 'open_app';
|
|
74821
|
+
/**
|
|
74822
|
+
* Java package name of the app, such as com.android.settings.
|
|
74823
|
+
*/
|
|
74824
|
+
package: string;
|
|
74825
|
+
/**
|
|
74826
|
+
* Activity to open as android:name, such as com.example.app.MainActivity; omitted opens the package's launcher activity.
|
|
74827
|
+
*/
|
|
74828
|
+
activity?: string;
|
|
74829
|
+
} | {
|
|
74830
|
+
/**
|
|
74831
|
+
* Action kind; exactly "close_app".
|
|
74832
|
+
*/
|
|
74833
|
+
type: 'close_app';
|
|
74834
|
+
/**
|
|
74835
|
+
* Java package name of the app, such as com.android.settings.
|
|
74836
|
+
*/
|
|
74837
|
+
package: string;
|
|
74838
|
+
} | {
|
|
74839
|
+
/**
|
|
74840
|
+
* Action kind; exactly "open_url".
|
|
74841
|
+
*/
|
|
74842
|
+
type: 'open_url';
|
|
74843
|
+
/**
|
|
74844
|
+
* Absolute http or https URL to open in the phone's browser.
|
|
74845
|
+
*/
|
|
74846
|
+
url: string;
|
|
74847
|
+
} | {
|
|
74848
|
+
/**
|
|
74849
|
+
* Action kind; exactly "wait".
|
|
74850
|
+
*/
|
|
74851
|
+
type: 'wait';
|
|
74852
|
+
/**
|
|
74853
|
+
* How long to wait, in milliseconds, 1 to 10000, before the call returns.
|
|
74854
|
+
*/
|
|
74855
|
+
ms: number;
|
|
74856
|
+
};
|
|
74857
|
+
path: {
|
|
74858
|
+
/**
|
|
74859
|
+
* 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.
|
|
74860
|
+
*/
|
|
74861
|
+
sandboxID: string;
|
|
74862
|
+
};
|
|
74863
|
+
query?: never;
|
|
74864
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/act';
|
|
74865
|
+
};
|
|
74866
|
+
export type ActOnSandboxDisplayErrors = {
|
|
74867
|
+
/**
|
|
74868
|
+
* 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.
|
|
74869
|
+
*/
|
|
74870
|
+
400: unknown;
|
|
74871
|
+
/**
|
|
74872
|
+
* Authentication required: supply an organization API key.
|
|
74873
|
+
*/
|
|
74874
|
+
401: unknown;
|
|
74875
|
+
/**
|
|
74876
|
+
* NOT_FOUND: the sandbox is absent or belongs to another organization.
|
|
74877
|
+
*/
|
|
74878
|
+
404: unknown;
|
|
74879
|
+
/**
|
|
74880
|
+
* CAPABILITY_UNSUPPORTED: this sandbox is not a phone, so it has no screen; create one with templateID "android".
|
|
74881
|
+
*/
|
|
74882
|
+
501: unknown;
|
|
74883
|
+
/**
|
|
74884
|
+
* 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.
|
|
74885
|
+
*/
|
|
74886
|
+
503: unknown;
|
|
74887
|
+
};
|
|
74888
|
+
export type ActOnSandboxDisplayResponses = {
|
|
74889
|
+
/**
|
|
74890
|
+
* 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.
|
|
74891
|
+
*/
|
|
74892
|
+
200: {
|
|
74893
|
+
/**
|
|
74894
|
+
* Result kind; "snapshot" for this shape.
|
|
74895
|
+
*/
|
|
74896
|
+
type: 'snapshot';
|
|
74897
|
+
/**
|
|
74898
|
+
* 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.
|
|
74899
|
+
*/
|
|
74900
|
+
snapshot: string;
|
|
74901
|
+
/**
|
|
74902
|
+
* How many nodes received a ref that tap, long_press, scroll and type accept.
|
|
74903
|
+
*/
|
|
74904
|
+
refs: number;
|
|
74905
|
+
/**
|
|
74906
|
+
* True when the hierarchy was too large and was cut; the returned refs still name their nodes.
|
|
74907
|
+
*/
|
|
74908
|
+
truncated: boolean;
|
|
74909
|
+
/**
|
|
74910
|
+
* Package name of the app that was in the foreground at the snapshot, such as com.android.settings.
|
|
74911
|
+
*/
|
|
74912
|
+
package: string;
|
|
74913
|
+
} | {
|
|
74914
|
+
/**
|
|
74915
|
+
* Result kind; "screenshot" for this shape.
|
|
74916
|
+
*/
|
|
74917
|
+
type: 'screenshot';
|
|
74918
|
+
/**
|
|
74919
|
+
* Image MIME type of the encoded bytes; image/jpeg. In code mode, return "data:" + mediaType + ";base64," + data to see the image.
|
|
74920
|
+
*/
|
|
74921
|
+
mediaType: string;
|
|
74922
|
+
/**
|
|
74923
|
+
* Base64-encoded image bytes; decode before saving or viewing.
|
|
74924
|
+
*/
|
|
74925
|
+
data: string;
|
|
74926
|
+
/**
|
|
74927
|
+
* Image width in pixels.
|
|
74928
|
+
*/
|
|
74929
|
+
width: number;
|
|
74930
|
+
/**
|
|
74931
|
+
* Image height in pixels.
|
|
74932
|
+
*/
|
|
74933
|
+
height: number;
|
|
74934
|
+
/**
|
|
74935
|
+
* Decoded image size in bytes.
|
|
74936
|
+
*/
|
|
74937
|
+
bytes: number;
|
|
74938
|
+
} | {
|
|
74939
|
+
/**
|
|
74940
|
+
* Result kind; "ok" for an action with no result of its own.
|
|
74941
|
+
*/
|
|
74942
|
+
type: 'ok';
|
|
74943
|
+
/**
|
|
74944
|
+
* How long the phone took to run the action, in milliseconds.
|
|
74945
|
+
*/
|
|
74946
|
+
ms?: number;
|
|
74947
|
+
} | {
|
|
74948
|
+
/**
|
|
74949
|
+
* Result kind; "wait" for the wait action.
|
|
74950
|
+
*/
|
|
74951
|
+
type: 'wait';
|
|
74952
|
+
/**
|
|
74953
|
+
* How long the call waited, in milliseconds; echoes the requested ms.
|
|
74954
|
+
*/
|
|
74955
|
+
ms: number;
|
|
74956
|
+
};
|
|
74957
|
+
};
|
|
74958
|
+
export type ActOnSandboxDisplayResponse = ActOnSandboxDisplayResponses[keyof ActOnSandboxDisplayResponses];
|
|
73992
74959
|
export type RemoveSandboxFileData = {
|
|
73993
74960
|
body?: never;
|
|
73994
74961
|
path: {
|
|
@@ -74564,6 +75531,23 @@ export type SessionsRetrieveResponses = {
|
|
|
74564
75531
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
74565
75532
|
*/
|
|
74566
75533
|
cwd: string;
|
|
75534
|
+
/**
|
|
75535
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
75536
|
+
*/
|
|
75537
|
+
workspace?: {
|
|
75538
|
+
/**
|
|
75539
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
75540
|
+
*/
|
|
75541
|
+
kind: 'shared' | 'isolated';
|
|
75542
|
+
/**
|
|
75543
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
75544
|
+
*/
|
|
75545
|
+
path?: string;
|
|
75546
|
+
/**
|
|
75547
|
+
* The worktree's branch; present only when kind is isolated.
|
|
75548
|
+
*/
|
|
75549
|
+
branch?: string;
|
|
75550
|
+
};
|
|
74567
75551
|
/**
|
|
74568
75552
|
* 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.
|
|
74569
75553
|
*/
|
|
@@ -74859,6 +75843,23 @@ export type SessionsUpdateResponses = {
|
|
|
74859
75843
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
74860
75844
|
*/
|
|
74861
75845
|
cwd: string;
|
|
75846
|
+
/**
|
|
75847
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
75848
|
+
*/
|
|
75849
|
+
workspace?: {
|
|
75850
|
+
/**
|
|
75851
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
75852
|
+
*/
|
|
75853
|
+
kind: 'shared' | 'isolated';
|
|
75854
|
+
/**
|
|
75855
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
75856
|
+
*/
|
|
75857
|
+
path?: string;
|
|
75858
|
+
/**
|
|
75859
|
+
* The worktree's branch; present only when kind is isolated.
|
|
75860
|
+
*/
|
|
75861
|
+
branch?: string;
|
|
75862
|
+
};
|
|
74862
75863
|
/**
|
|
74863
75864
|
* 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.
|
|
74864
75865
|
*/
|
|
@@ -80208,6 +81209,23 @@ export type SessionsListResponses = {
|
|
|
80208
81209
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80209
81210
|
*/
|
|
80210
81211
|
cwd: string;
|
|
81212
|
+
/**
|
|
81213
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81214
|
+
*/
|
|
81215
|
+
workspace?: {
|
|
81216
|
+
/**
|
|
81217
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81218
|
+
*/
|
|
81219
|
+
kind: 'shared' | 'isolated';
|
|
81220
|
+
/**
|
|
81221
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81222
|
+
*/
|
|
81223
|
+
path?: string;
|
|
81224
|
+
/**
|
|
81225
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81226
|
+
*/
|
|
81227
|
+
branch?: string;
|
|
81228
|
+
};
|
|
80211
81229
|
/**
|
|
80212
81230
|
* 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.
|
|
80213
81231
|
*/
|
|
@@ -80320,6 +81338,10 @@ export type SessionsCreateData = {
|
|
|
80320
81338
|
* 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.
|
|
80321
81339
|
*/
|
|
80322
81340
|
cwd?: string;
|
|
81341
|
+
/**
|
|
81342
|
+
* 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.
|
|
81343
|
+
*/
|
|
81344
|
+
workspace?: 'shared' | 'isolated';
|
|
80323
81345
|
/**
|
|
80324
81346
|
* 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.
|
|
80325
81347
|
*/
|
|
@@ -80542,6 +81564,23 @@ export type SessionsCreateResponses = {
|
|
|
80542
81564
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80543
81565
|
*/
|
|
80544
81566
|
cwd: string;
|
|
81567
|
+
/**
|
|
81568
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81569
|
+
*/
|
|
81570
|
+
workspace?: {
|
|
81571
|
+
/**
|
|
81572
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81573
|
+
*/
|
|
81574
|
+
kind: 'shared' | 'isolated';
|
|
81575
|
+
/**
|
|
81576
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81577
|
+
*/
|
|
81578
|
+
path?: string;
|
|
81579
|
+
/**
|
|
81580
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81581
|
+
*/
|
|
81582
|
+
branch?: string;
|
|
81583
|
+
};
|
|
80545
81584
|
/**
|
|
80546
81585
|
* 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.
|
|
80547
81586
|
*/
|
|
@@ -80796,6 +81835,23 @@ export type SessionsArchiveResponses = {
|
|
|
80796
81835
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80797
81836
|
*/
|
|
80798
81837
|
cwd: string;
|
|
81838
|
+
/**
|
|
81839
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81840
|
+
*/
|
|
81841
|
+
workspace?: {
|
|
81842
|
+
/**
|
|
81843
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81844
|
+
*/
|
|
81845
|
+
kind: 'shared' | 'isolated';
|
|
81846
|
+
/**
|
|
81847
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81848
|
+
*/
|
|
81849
|
+
path?: string;
|
|
81850
|
+
/**
|
|
81851
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81852
|
+
*/
|
|
81853
|
+
branch?: string;
|
|
81854
|
+
};
|
|
80799
81855
|
/**
|
|
80800
81856
|
* 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.
|
|
80801
81857
|
*/
|
|
@@ -85534,6 +86590,12 @@ export type ApplicationListVersionsResponses = {
|
|
|
85534
86590
|
export type ApplicationListVersionsResponse = ApplicationListVersionsResponses[keyof ApplicationListVersionsResponses];
|
|
85535
86591
|
export type ApplicationCreateVersionData = {
|
|
85536
86592
|
body: ApplicationCreateVersionInput;
|
|
86593
|
+
headers?: {
|
|
86594
|
+
/**
|
|
86595
|
+
* 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.
|
|
86596
|
+
*/
|
|
86597
|
+
'Idempotency-Key'?: string;
|
|
86598
|
+
};
|
|
85537
86599
|
path: {
|
|
85538
86600
|
/**
|
|
85539
86601
|
* Worker ID (wkr_…).
|
|
@@ -97829,7 +98891,7 @@ export type DevopsPromotionsRetryErrors = {
|
|
|
97829
98891
|
*/
|
|
97830
98892
|
404: DevopsDevOpsError;
|
|
97831
98893
|
/**
|
|
97832
|
-
*
|
|
98894
|
+
* 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.
|
|
97833
98895
|
*/
|
|
97834
98896
|
409: DevopsDevOpsError;
|
|
97835
98897
|
/**
|
|
@@ -99199,7 +100261,7 @@ export type DevopsChangesAbandonData = {
|
|
|
99199
100261
|
};
|
|
99200
100262
|
export type DevopsChangesAbandonErrors = {
|
|
99201
100263
|
/**
|
|
99202
|
-
* INVALID_ARGUMENT means reason is missing or empty
|
|
100264
|
+
* INVALID_ARGUMENT means reason is missing or empty; nothing was abandoned.
|
|
99203
100265
|
*/
|
|
99204
100266
|
400: DevopsDevOpsError;
|
|
99205
100267
|
/**
|
|
@@ -99589,6 +100651,51 @@ export type DevopsPullRequestsRecordVerdictResponses = {
|
|
|
99589
100651
|
200: DevopsPullRequest;
|
|
99590
100652
|
};
|
|
99591
100653
|
export type DevopsPullRequestsRecordVerdictResponse = DevopsPullRequestsRecordVerdictResponses[keyof DevopsPullRequestsRecordVerdictResponses];
|
|
100654
|
+
export type DevopsPullRequestsCloseData = {
|
|
100655
|
+
body: DevopsPullRequestCloseRequest;
|
|
100656
|
+
path: {
|
|
100657
|
+
/**
|
|
100658
|
+
* 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.
|
|
100659
|
+
*/
|
|
100660
|
+
id: string;
|
|
100661
|
+
};
|
|
100662
|
+
query?: never;
|
|
100663
|
+
url: '/devops/v1/pull-requests/{id}:close';
|
|
100664
|
+
};
|
|
100665
|
+
export type DevopsPullRequestsCloseErrors = {
|
|
100666
|
+
/**
|
|
100667
|
+
* 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.
|
|
100668
|
+
*/
|
|
100669
|
+
400: DevopsDevOpsError;
|
|
100670
|
+
/**
|
|
100671
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
100672
|
+
*/
|
|
100673
|
+
401: DevopsDevOpsError;
|
|
100674
|
+
/**
|
|
100675
|
+
* 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.
|
|
100676
|
+
*/
|
|
100677
|
+
403: DevopsDevOpsError;
|
|
100678
|
+
/**
|
|
100679
|
+
* 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.
|
|
100680
|
+
*/
|
|
100681
|
+
404: DevopsDevOpsError;
|
|
100682
|
+
/**
|
|
100683
|
+
* 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.
|
|
100684
|
+
*/
|
|
100685
|
+
409: DevopsDevOpsError;
|
|
100686
|
+
/**
|
|
100687
|
+
* 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.
|
|
100688
|
+
*/
|
|
100689
|
+
500: DevopsDevOpsError;
|
|
100690
|
+
};
|
|
100691
|
+
export type DevopsPullRequestsCloseError = DevopsPullRequestsCloseErrors[keyof DevopsPullRequestsCloseErrors];
|
|
100692
|
+
export type DevopsPullRequestsCloseResponses = {
|
|
100693
|
+
/**
|
|
100694
|
+
* 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.
|
|
100695
|
+
*/
|
|
100696
|
+
200: DevopsPullRequest;
|
|
100697
|
+
};
|
|
100698
|
+
export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
|
|
99592
100699
|
export type DevopsConnectionsListData = {
|
|
99593
100700
|
body?: never;
|
|
99594
100701
|
path?: never;
|
|
@@ -105087,6 +106194,14 @@ export type MediaCreateSpeechData = {
|
|
|
105087
106194
|
* Language of the text, when the voice supports several.
|
|
105088
106195
|
*/
|
|
105089
106196
|
language?: string;
|
|
106197
|
+
/**
|
|
106198
|
+
* 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.
|
|
106199
|
+
*/
|
|
106200
|
+
model?: string;
|
|
106201
|
+
/**
|
|
106202
|
+
* 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.
|
|
106203
|
+
*/
|
|
106204
|
+
tier?: MediaMediaTier;
|
|
105090
106205
|
};
|
|
105091
106206
|
headers?: {
|
|
105092
106207
|
/**
|
|
@@ -105121,7 +106236,7 @@ export type MediaCreateSpeechErrors = {
|
|
|
105121
106236
|
*/
|
|
105122
106237
|
404: MediaMediaError;
|
|
105123
106238
|
/**
|
|
105124
|
-
* 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.
|
|
106239
|
+
* 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.
|
|
105125
106240
|
*/
|
|
105126
106241
|
409: MediaMediaError;
|
|
105127
106242
|
/**
|
|
@@ -107526,10 +108641,6 @@ export type RegistryGitFilesRetrieveErrors = {
|
|
|
107526
108641
|
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
107527
108642
|
*/
|
|
107528
108643
|
404: RegistryRegistryError;
|
|
107529
|
-
/**
|
|
107530
|
-
* PAYLOAD_TOO_LARGE 表示上传超过限额:单次上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。精简内容后重发。
|
|
107531
|
-
*/
|
|
107532
|
-
413: RegistryRegistryError;
|
|
107533
108644
|
/**
|
|
107534
108645
|
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
107535
108646
|
*/
|
|
@@ -114145,7 +115256,7 @@ export type TicketPatchTicketsNumberData = {
|
|
|
114145
115256
|
*/
|
|
114146
115257
|
state_reason?: 'completed' | 'not_planned' | 'duplicate';
|
|
114147
115258
|
/**
|
|
114148
|
-
*
|
|
115259
|
+
* The original ticket's number; required when state_reason is duplicate.
|
|
114149
115260
|
*/
|
|
114150
115261
|
duplicate_of?: number;
|
|
114151
115262
|
};
|