@deepraxis/sdk 0.1.1-dev.fe47292 → 0.1.1-dev.fe80c4b
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 +28 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +50 -8
- package/dist/generated/sdk.gen.js +141 -7
- package/dist/generated/types.gen.d.ts +517 -305
- package/dist/operations.generated.js +194 -10
- package/dist/resources.generated.d.ts +74 -62
- package/dist/resources.generated.js +17 -0
- package/package.json +1 -1
|
@@ -1934,50 +1934,45 @@ export type AgentSseEvent = ({
|
|
|
1934
1934
|
*/
|
|
1935
1935
|
event?: 'user.tool_confirmation';
|
|
1936
1936
|
/**
|
|
1937
|
-
*
|
|
1937
|
+
* Decoded JSON payload of this frame; its shape is selected by the event name.
|
|
1938
1938
|
*/
|
|
1939
|
-
data?: {
|
|
1939
|
+
data?: unknown & {
|
|
1940
1940
|
/**
|
|
1941
|
-
*
|
|
1941
|
+
* Unique identifier for this event.
|
|
1942
1942
|
*/
|
|
1943
1943
|
id: string;
|
|
1944
1944
|
/**
|
|
1945
|
-
*
|
|
1945
|
+
* UserToolConfirmationResult enum
|
|
1946
1946
|
*/
|
|
1947
|
-
|
|
1947
|
+
result: 'allow' | 'deny';
|
|
1948
1948
|
/**
|
|
1949
|
-
*
|
|
1949
|
+
* The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
|
|
1950
|
+
* corresponds to, which can be found in the last `session.status_idle`
|
|
1951
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
1952
|
+
* `stop_reason.event_ids` field.
|
|
1950
1953
|
*/
|
|
1951
|
-
|
|
1954
|
+
tool_use_id: string;
|
|
1952
1955
|
/**
|
|
1953
|
-
* The
|
|
1956
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
1954
1957
|
*/
|
|
1955
|
-
|
|
1958
|
+
type: 'user.tool_confirmation';
|
|
1956
1959
|
/**
|
|
1957
|
-
*
|
|
1960
|
+
* Feedback for a deny result, at most 4000 characters. Appended to the model-visible refusal and persisted on the confirmation. Omit when no feedback is needed.
|
|
1958
1961
|
*/
|
|
1959
|
-
|
|
1962
|
+
deny_message?: string;
|
|
1960
1963
|
/**
|
|
1961
|
-
*
|
|
1964
|
+
* A timestamp in RFC 3339 format
|
|
1962
1965
|
*/
|
|
1963
|
-
|
|
1964
|
-
[key: string]: string;
|
|
1965
|
-
};
|
|
1966
|
+
processed_at?: null | string;
|
|
1966
1967
|
/**
|
|
1967
|
-
*
|
|
1968
|
+
* Set by the server to the subagent thread this confirmation was routed to.
|
|
1969
|
+
* Omitted when it was routed to the primary thread.
|
|
1968
1970
|
*/
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
preview?: string;
|
|
1975
|
-
/**
|
|
1976
|
-
* Free text the user added to their choice.
|
|
1977
|
-
*/
|
|
1978
|
-
notes?: string;
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1971
|
+
session_thread_id?: null | string;
|
|
1972
|
+
/**
|
|
1973
|
+
* With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
|
|
1974
|
+
*/
|
|
1975
|
+
permission_mode?: 'yolo';
|
|
1981
1976
|
};
|
|
1982
1977
|
} | {
|
|
1983
1978
|
/**
|
|
@@ -16425,7 +16420,7 @@ export type DevopsTestPlan = {
|
|
|
16425
16420
|
failedPaths?: Array<string>;
|
|
16426
16421
|
};
|
|
16427
16422
|
/**
|
|
16428
|
-
* One page of the organization's delivery projects, newest first.
|
|
16423
|
+
* One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
|
|
16429
16424
|
*/
|
|
16430
16425
|
export type DevopsProjectPage = {
|
|
16431
16426
|
/**
|
|
@@ -16436,6 +16431,10 @@ export type DevopsProjectPage = {
|
|
|
16436
16431
|
* Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
|
|
16437
16432
|
*/
|
|
16438
16433
|
nextPageToken: string;
|
|
16434
|
+
/**
|
|
16435
|
+
* How many undeleted projects the caller's own organization has: 0 means the organization has none yet, not that the read returned nothing. Visible means visible to the credential's organization — the count filters rows by organization_id and is not a permission check, so it says nothing about what the caller may be granted. It is the organization's total across all pages, never this page's length: while paging it is at least the length of items, and equal on the first page when every project fits. Always present, so items: [] together with visibleProjects: 0 is an answer rather than an empty response to guess at; an organization without projects still answers 200.
|
|
16436
|
+
*/
|
|
16437
|
+
visibleProjects: number;
|
|
16439
16438
|
};
|
|
16440
16439
|
/**
|
|
16441
16440
|
* One delivery project — the unit a release, a promotion and a flag all belong to.
|
|
@@ -19391,6 +19390,10 @@ export type MediaAsset = {
|
|
|
19391
19390
|
* 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.
|
|
19392
19391
|
*/
|
|
19393
19392
|
segments?: number;
|
|
19393
|
+
/**
|
|
19394
|
+
* 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.
|
|
19395
|
+
*/
|
|
19396
|
+
duration?: number;
|
|
19394
19397
|
};
|
|
19395
19398
|
};
|
|
19396
19399
|
};
|
|
@@ -21531,7 +21534,7 @@ export type SandboxNewSandboxV2 = {
|
|
|
21531
21534
|
*/
|
|
21532
21535
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
21533
21536
|
/**
|
|
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.
|
|
21537
|
+
* Own face, required unless sku is named: 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
21538
|
*/
|
|
21536
21539
|
ephemeral?: boolean;
|
|
21537
21540
|
/**
|
|
@@ -21558,6 +21561,18 @@ export type SandboxNewSandboxV2 = {
|
|
|
21558
21561
|
* 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
21562
|
*/
|
|
21560
21563
|
idleActivity?: 'traffic' | 'caller';
|
|
21564
|
+
/**
|
|
21565
|
+
* Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
|
|
21566
|
+
*/
|
|
21567
|
+
sku?: string;
|
|
21568
|
+
/**
|
|
21569
|
+
* Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
|
|
21570
|
+
*/
|
|
21571
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
21572
|
+
/**
|
|
21573
|
+
* 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.
|
|
21574
|
+
*/
|
|
21575
|
+
interruptible?: boolean;
|
|
21561
21576
|
/**
|
|
21562
21577
|
* 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
21578
|
*/
|
|
@@ -26360,49 +26375,44 @@ export type AgentSseData = {
|
|
|
26360
26375
|
* Praxis extension (MCP Apps, SEP-1865): `app` when the call was made by an MCP Apps view, `codemode` when a program run by the codemode tool called an MCP tool that declares a view (the event pair exists so a client can render that view; the model already has the result in the codemode tool result); absent for the model's own calls.
|
|
26361
26376
|
*/
|
|
26362
26377
|
source?: 'app' | 'codemode';
|
|
26363
|
-
} | {
|
|
26378
|
+
} | (unknown & {
|
|
26364
26379
|
/**
|
|
26365
|
-
*
|
|
26380
|
+
* Unique identifier for this event.
|
|
26366
26381
|
*/
|
|
26367
26382
|
id: string;
|
|
26368
26383
|
/**
|
|
26369
|
-
*
|
|
26384
|
+
* UserToolConfirmationResult enum
|
|
26370
26385
|
*/
|
|
26371
|
-
|
|
26386
|
+
result: 'allow' | 'deny';
|
|
26372
26387
|
/**
|
|
26373
|
-
*
|
|
26388
|
+
* The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
|
|
26389
|
+
* corresponds to, which can be found in the last `session.status_idle`
|
|
26390
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
26391
|
+
* `stop_reason.event_ids` field.
|
|
26374
26392
|
*/
|
|
26375
|
-
|
|
26393
|
+
tool_use_id: string;
|
|
26376
26394
|
/**
|
|
26377
|
-
* The
|
|
26395
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
26378
26396
|
*/
|
|
26379
|
-
|
|
26397
|
+
type: 'user.tool_confirmation';
|
|
26380
26398
|
/**
|
|
26381
|
-
*
|
|
26399
|
+
* Feedback for a deny result, at most 4000 characters. Appended to the model-visible refusal and persisted on the confirmation. Omit when no feedback is needed.
|
|
26382
26400
|
*/
|
|
26383
|
-
|
|
26401
|
+
deny_message?: string;
|
|
26384
26402
|
/**
|
|
26385
|
-
*
|
|
26403
|
+
* A timestamp in RFC 3339 format
|
|
26386
26404
|
*/
|
|
26387
|
-
|
|
26388
|
-
[key: string]: string;
|
|
26389
|
-
};
|
|
26405
|
+
processed_at?: null | string;
|
|
26390
26406
|
/**
|
|
26391
|
-
*
|
|
26407
|
+
* Set by the server to the subagent thread this confirmation was routed to.
|
|
26408
|
+
* Omitted when it was routed to the primary thread.
|
|
26392
26409
|
*/
|
|
26393
|
-
|
|
26394
|
-
|
|
26395
|
-
|
|
26396
|
-
|
|
26397
|
-
|
|
26398
|
-
|
|
26399
|
-
/**
|
|
26400
|
-
* Free text the user added to their choice.
|
|
26401
|
-
*/
|
|
26402
|
-
notes?: string;
|
|
26403
|
-
};
|
|
26404
|
-
};
|
|
26405
|
-
} | {
|
|
26410
|
+
session_thread_id?: null | string;
|
|
26411
|
+
/**
|
|
26412
|
+
* With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
|
|
26413
|
+
*/
|
|
26414
|
+
permission_mode?: 'yolo';
|
|
26415
|
+
}) | {
|
|
26406
26416
|
/**
|
|
26407
26417
|
* Unique identifier for this event.
|
|
26408
26418
|
*/
|
|
@@ -37411,6 +37421,10 @@ export type MediaSearchAsset = {
|
|
|
37411
37421
|
* 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.
|
|
37412
37422
|
*/
|
|
37413
37423
|
segments?: number;
|
|
37424
|
+
/**
|
|
37425
|
+
* 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.
|
|
37426
|
+
*/
|
|
37427
|
+
duration?: number;
|
|
37414
37428
|
};
|
|
37415
37429
|
};
|
|
37416
37430
|
};
|
|
@@ -47204,6 +47218,10 @@ export type MediaAssetWritable = {
|
|
|
47204
47218
|
* 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.
|
|
47205
47219
|
*/
|
|
47206
47220
|
segments?: number;
|
|
47221
|
+
/**
|
|
47222
|
+
* 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.
|
|
47223
|
+
*/
|
|
47224
|
+
duration?: number;
|
|
47207
47225
|
};
|
|
47208
47226
|
};
|
|
47209
47227
|
};
|
|
@@ -47757,6 +47775,10 @@ export type MediaSearchAssetWritable = {
|
|
|
47757
47775
|
* 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.
|
|
47758
47776
|
*/
|
|
47759
47777
|
segments?: number;
|
|
47778
|
+
/**
|
|
47779
|
+
* 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.
|
|
47780
|
+
*/
|
|
47781
|
+
duration?: number;
|
|
47760
47782
|
};
|
|
47761
47783
|
};
|
|
47762
47784
|
};
|
|
@@ -49016,48 +49038,6 @@ export type ListAgentEventsResponses = {
|
|
|
49016
49038
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49017
49039
|
*/
|
|
49018
49040
|
processed_at: string;
|
|
49019
|
-
} | {
|
|
49020
|
-
/**
|
|
49021
|
-
* Event id, unique within the session.
|
|
49022
|
-
*/
|
|
49023
|
-
id: string;
|
|
49024
|
-
/**
|
|
49025
|
-
* Always `user.tool_confirmation`.
|
|
49026
|
-
*/
|
|
49027
|
-
type: 'user.tool_confirmation';
|
|
49028
|
-
/**
|
|
49029
|
-
* When the event was recorded, RFC 3339.
|
|
49030
|
-
*/
|
|
49031
|
-
processed_at: string;
|
|
49032
|
-
/**
|
|
49033
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
49034
|
-
*/
|
|
49035
|
-
tool_use_id: string;
|
|
49036
|
-
/**
|
|
49037
|
-
* Always `allow`.
|
|
49038
|
-
*/
|
|
49039
|
-
result: 'allow';
|
|
49040
|
-
/**
|
|
49041
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
49042
|
-
*/
|
|
49043
|
-
answers: {
|
|
49044
|
-
[key: string]: string;
|
|
49045
|
-
};
|
|
49046
|
-
/**
|
|
49047
|
-
* Per-question notes, keyed by the question text.
|
|
49048
|
-
*/
|
|
49049
|
-
annotations?: {
|
|
49050
|
-
[key: string]: {
|
|
49051
|
-
/**
|
|
49052
|
-
* The preview of the option the user chose.
|
|
49053
|
-
*/
|
|
49054
|
-
preview?: string;
|
|
49055
|
-
/**
|
|
49056
|
-
* Free text the user added to their choice.
|
|
49057
|
-
*/
|
|
49058
|
-
notes?: string;
|
|
49059
|
-
};
|
|
49060
|
-
};
|
|
49061
49041
|
}>;
|
|
49062
49042
|
/**
|
|
49063
49043
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -49107,40 +49087,6 @@ export type SendAgentEventsData = {
|
|
|
49107
49087
|
* Id of the event this event refers to.
|
|
49108
49088
|
*/
|
|
49109
49089
|
event_id: string;
|
|
49110
|
-
} | {
|
|
49111
|
-
/**
|
|
49112
|
-
* Always `user.tool_confirmation`.
|
|
49113
|
-
*/
|
|
49114
|
-
type: 'user.tool_confirmation';
|
|
49115
|
-
/**
|
|
49116
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
49117
|
-
*/
|
|
49118
|
-
tool_use_id: string;
|
|
49119
|
-
/**
|
|
49120
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
49121
|
-
*/
|
|
49122
|
-
result: 'allow';
|
|
49123
|
-
/**
|
|
49124
|
-
* The user's answer to each question, keyed by the question text. A multi-select answer joins the chosen labels with a comma and a space; a free-text answer is the user's own words. A question left out was skipped.
|
|
49125
|
-
*/
|
|
49126
|
-
answers: {
|
|
49127
|
-
[key: string]: string;
|
|
49128
|
-
};
|
|
49129
|
-
/**
|
|
49130
|
-
* Optional per-question notes, keyed by the question text.
|
|
49131
|
-
*/
|
|
49132
|
-
annotations?: {
|
|
49133
|
-
[key: string]: {
|
|
49134
|
-
/**
|
|
49135
|
-
* The preview of the option the user chose.
|
|
49136
|
-
*/
|
|
49137
|
-
preview?: string;
|
|
49138
|
-
/**
|
|
49139
|
-
* Free text the user added to their choice.
|
|
49140
|
-
*/
|
|
49141
|
-
notes?: string;
|
|
49142
|
-
};
|
|
49143
|
-
};
|
|
49144
49090
|
}>;
|
|
49145
49091
|
};
|
|
49146
49092
|
path: {
|
|
@@ -49223,48 +49169,6 @@ export type SendAgentEventsResponses = {
|
|
|
49223
49169
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49224
49170
|
*/
|
|
49225
49171
|
processed_at: string;
|
|
49226
|
-
} | {
|
|
49227
|
-
/**
|
|
49228
|
-
* Event id, unique within the session.
|
|
49229
|
-
*/
|
|
49230
|
-
id: string;
|
|
49231
|
-
/**
|
|
49232
|
-
* Always `user.tool_confirmation`.
|
|
49233
|
-
*/
|
|
49234
|
-
type: 'user.tool_confirmation';
|
|
49235
|
-
/**
|
|
49236
|
-
* When the event was recorded, RFC 3339.
|
|
49237
|
-
*/
|
|
49238
|
-
processed_at: string;
|
|
49239
|
-
/**
|
|
49240
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
49241
|
-
*/
|
|
49242
|
-
tool_use_id: string;
|
|
49243
|
-
/**
|
|
49244
|
-
* Always `allow`.
|
|
49245
|
-
*/
|
|
49246
|
-
result: 'allow';
|
|
49247
|
-
/**
|
|
49248
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
49249
|
-
*/
|
|
49250
|
-
answers: {
|
|
49251
|
-
[key: string]: string;
|
|
49252
|
-
};
|
|
49253
|
-
/**
|
|
49254
|
-
* Per-question notes, keyed by the question text.
|
|
49255
|
-
*/
|
|
49256
|
-
annotations?: {
|
|
49257
|
-
[key: string]: {
|
|
49258
|
-
/**
|
|
49259
|
-
* The preview of the option the user chose.
|
|
49260
|
-
*/
|
|
49261
|
-
preview?: string;
|
|
49262
|
-
/**
|
|
49263
|
-
* Free text the user added to their choice.
|
|
49264
|
-
*/
|
|
49265
|
-
notes?: string;
|
|
49266
|
-
};
|
|
49267
|
-
};
|
|
49268
49172
|
}>;
|
|
49269
49173
|
};
|
|
49270
49174
|
};
|
|
@@ -53040,13 +52944,17 @@ export type AgentsPhoneRetrieveResponses = {
|
|
|
53040
52944
|
*/
|
|
53041
52945
|
configured: boolean;
|
|
53042
52946
|
/**
|
|
53043
|
-
* What the phone is doing now.
|
|
52947
|
+
* 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.
|
|
53044
52948
|
*/
|
|
53045
|
-
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
52949
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53046
52950
|
/**
|
|
53047
|
-
* The sandbox SKU
|
|
52951
|
+
* 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.
|
|
53048
52952
|
*/
|
|
53049
52953
|
sku: string | null;
|
|
52954
|
+
/**
|
|
52955
|
+
* 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.
|
|
52956
|
+
*/
|
|
52957
|
+
byod_device: string | null;
|
|
53050
52958
|
/**
|
|
53051
52959
|
* What people and the model call this phone, or null when no phone is configured.
|
|
53052
52960
|
*/
|
|
@@ -53126,13 +53034,17 @@ export type AgentsPhoneReleaseResponses = {
|
|
|
53126
53034
|
*/
|
|
53127
53035
|
configured: boolean;
|
|
53128
53036
|
/**
|
|
53129
|
-
* What the phone is doing now.
|
|
53037
|
+
* 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.
|
|
53130
53038
|
*/
|
|
53131
|
-
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
53039
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53132
53040
|
/**
|
|
53133
|
-
* The sandbox SKU
|
|
53041
|
+
* 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.
|
|
53134
53042
|
*/
|
|
53135
53043
|
sku: string | null;
|
|
53044
|
+
/**
|
|
53045
|
+
* 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.
|
|
53046
|
+
*/
|
|
53047
|
+
byod_device: string | null;
|
|
53136
53048
|
/**
|
|
53137
53049
|
* What people and the model call this phone, or null when no phone is configured.
|
|
53138
53050
|
*/
|
|
@@ -62929,7 +62841,7 @@ export type ListSessionRequestsResponses = {
|
|
|
62929
62841
|
*/
|
|
62930
62842
|
object: 'request';
|
|
62931
62843
|
/**
|
|
62932
|
-
* question
|
|
62844
|
+
* Always approval: a tool waits for permission. question is kept for compatibility and is never returned: the agent asks with a card or in words and the person answers with a message.
|
|
62933
62845
|
*/
|
|
62934
62846
|
kind: 'question' | 'approval';
|
|
62935
62847
|
/**
|
|
@@ -62937,11 +62849,11 @@ export type ListSessionRequestsResponses = {
|
|
|
62937
62849
|
*/
|
|
62938
62850
|
status: 'pending';
|
|
62939
62851
|
/**
|
|
62940
|
-
* The tool the agent called, such as
|
|
62852
|
+
* The tool the agent called, such as bash.
|
|
62941
62853
|
*/
|
|
62942
62854
|
tool_name: string;
|
|
62943
62855
|
/**
|
|
62944
|
-
* The tool call's input exactly as the agent.tool_use event shows it:
|
|
62856
|
+
* The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
|
|
62945
62857
|
*/
|
|
62946
62858
|
input: unknown;
|
|
62947
62859
|
/**
|
|
@@ -75275,6 +75187,424 @@ export type RunSandboxCommandResponses = {
|
|
|
75275
75187
|
};
|
|
75276
75188
|
};
|
|
75277
75189
|
export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
|
|
75190
|
+
export type CreateByodPairingData = {
|
|
75191
|
+
body?: never;
|
|
75192
|
+
path?: never;
|
|
75193
|
+
query?: never;
|
|
75194
|
+
url: '/sandbox/v1/byod/pairings';
|
|
75195
|
+
};
|
|
75196
|
+
export type CreateByodPairingErrors = {
|
|
75197
|
+
/**
|
|
75198
|
+
* INVALID_PARAMS: a body field is missing, wrongly typed or out of range, for example a name outside 1 to 64 characters. Fix the field and resend; retrying unchanged fails the same way.
|
|
75199
|
+
*/
|
|
75200
|
+
400: unknown;
|
|
75201
|
+
/**
|
|
75202
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
75203
|
+
*/
|
|
75204
|
+
401: unknown;
|
|
75205
|
+
/**
|
|
75206
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
75207
|
+
*/
|
|
75208
|
+
503: unknown;
|
|
75209
|
+
};
|
|
75210
|
+
export type CreateByodPairingResponses = {
|
|
75211
|
+
/**
|
|
75212
|
+
* A pairing the caller started: the short code, its deadline and the string the phone's app scans.
|
|
75213
|
+
*/
|
|
75214
|
+
201: {
|
|
75215
|
+
/**
|
|
75216
|
+
* The 8-character pairing code, from ABCDEFGHJKLMNPQRSTUVWXYZ23456789 (I, O, 0 and 1 are left out). Show it or the QR payload to the phone; a code can be spent once, by one device.
|
|
75217
|
+
*/
|
|
75218
|
+
code: string;
|
|
75219
|
+
/**
|
|
75220
|
+
* When the code stops working, ten minutes after it was created, as an ISO-8601 timestamp. A code that is spent or past this time answers 404 to the device.
|
|
75221
|
+
*/
|
|
75222
|
+
expires_at: string;
|
|
75223
|
+
/**
|
|
75224
|
+
* The string the app scans: praxis://byod/pair?code=<code>&api=<api origin>. Render it as a QR code; the code can also be typed in.
|
|
75225
|
+
*/
|
|
75226
|
+
qr: string;
|
|
75227
|
+
};
|
|
75228
|
+
};
|
|
75229
|
+
export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
|
|
75230
|
+
export type ListByodDevicesData = {
|
|
75231
|
+
body?: never;
|
|
75232
|
+
path?: never;
|
|
75233
|
+
query?: never;
|
|
75234
|
+
url: '/sandbox/v1/byod/devices';
|
|
75235
|
+
};
|
|
75236
|
+
export type ListByodDevicesErrors = {
|
|
75237
|
+
/**
|
|
75238
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
75239
|
+
*/
|
|
75240
|
+
401: unknown;
|
|
75241
|
+
/**
|
|
75242
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
75243
|
+
*/
|
|
75244
|
+
503: unknown;
|
|
75245
|
+
};
|
|
75246
|
+
export type ListByodDevicesResponses = {
|
|
75247
|
+
/**
|
|
75248
|
+
* The organization's BYOD devices.
|
|
75249
|
+
*/
|
|
75250
|
+
200: {
|
|
75251
|
+
/**
|
|
75252
|
+
* The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
|
|
75253
|
+
*/
|
|
75254
|
+
data: Array<{
|
|
75255
|
+
/**
|
|
75256
|
+
* Resource type; always "byod_device".
|
|
75257
|
+
*/
|
|
75258
|
+
object: 'byod_device';
|
|
75259
|
+
/**
|
|
75260
|
+
* Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
|
|
75261
|
+
*/
|
|
75262
|
+
id: string;
|
|
75263
|
+
/**
|
|
75264
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
|
|
75265
|
+
*/
|
|
75266
|
+
platform: 'android' | 'macos' | 'linux';
|
|
75267
|
+
/**
|
|
75268
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
75269
|
+
*/
|
|
75270
|
+
name: string;
|
|
75271
|
+
/**
|
|
75272
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
75273
|
+
*/
|
|
75274
|
+
model: string;
|
|
75275
|
+
/**
|
|
75276
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
75277
|
+
*/
|
|
75278
|
+
os_version: string;
|
|
75279
|
+
/**
|
|
75280
|
+
* True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
|
|
75281
|
+
*/
|
|
75282
|
+
online: boolean;
|
|
75283
|
+
/**
|
|
75284
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
75285
|
+
*/
|
|
75286
|
+
last_seen_at: string | null;
|
|
75287
|
+
/**
|
|
75288
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
75289
|
+
*/
|
|
75290
|
+
created_at: string;
|
|
75291
|
+
/**
|
|
75292
|
+
* What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
|
|
75293
|
+
*/
|
|
75294
|
+
capabilities: Array<'display' | 'agent'>;
|
|
75295
|
+
/**
|
|
75296
|
+
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
75297
|
+
*/
|
|
75298
|
+
agent_dirs: Array<string>;
|
|
75299
|
+
}>;
|
|
75300
|
+
};
|
|
75301
|
+
};
|
|
75302
|
+
export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
|
|
75303
|
+
export type GetByodDeviceData = {
|
|
75304
|
+
body?: never;
|
|
75305
|
+
path: {
|
|
75306
|
+
/**
|
|
75307
|
+
* Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404.
|
|
75308
|
+
*/
|
|
75309
|
+
deviceID: string;
|
|
75310
|
+
};
|
|
75311
|
+
query?: never;
|
|
75312
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
75313
|
+
};
|
|
75314
|
+
export type GetByodDeviceErrors = {
|
|
75315
|
+
/**
|
|
75316
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
75317
|
+
*/
|
|
75318
|
+
401: unknown;
|
|
75319
|
+
/**
|
|
75320
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
75321
|
+
*/
|
|
75322
|
+
404: unknown;
|
|
75323
|
+
/**
|
|
75324
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
75325
|
+
*/
|
|
75326
|
+
503: unknown;
|
|
75327
|
+
};
|
|
75328
|
+
export type GetByodDeviceResponses = {
|
|
75329
|
+
/**
|
|
75330
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
75331
|
+
*/
|
|
75332
|
+
200: {
|
|
75333
|
+
/**
|
|
75334
|
+
* Resource type; always "byod_device".
|
|
75335
|
+
*/
|
|
75336
|
+
object: 'byod_device';
|
|
75337
|
+
/**
|
|
75338
|
+
* Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
|
|
75339
|
+
*/
|
|
75340
|
+
id: string;
|
|
75341
|
+
/**
|
|
75342
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
|
|
75343
|
+
*/
|
|
75344
|
+
platform: 'android' | 'macos' | 'linux';
|
|
75345
|
+
/**
|
|
75346
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
75347
|
+
*/
|
|
75348
|
+
name: string;
|
|
75349
|
+
/**
|
|
75350
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
75351
|
+
*/
|
|
75352
|
+
model: string;
|
|
75353
|
+
/**
|
|
75354
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
75355
|
+
*/
|
|
75356
|
+
os_version: string;
|
|
75357
|
+
/**
|
|
75358
|
+
* True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
|
|
75359
|
+
*/
|
|
75360
|
+
online: boolean;
|
|
75361
|
+
/**
|
|
75362
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
75363
|
+
*/
|
|
75364
|
+
last_seen_at: string | null;
|
|
75365
|
+
/**
|
|
75366
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
75367
|
+
*/
|
|
75368
|
+
created_at: string;
|
|
75369
|
+
/**
|
|
75370
|
+
* What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
|
|
75371
|
+
*/
|
|
75372
|
+
capabilities: Array<'display' | 'agent'>;
|
|
75373
|
+
/**
|
|
75374
|
+
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
75375
|
+
*/
|
|
75376
|
+
agent_dirs: Array<string>;
|
|
75377
|
+
};
|
|
75378
|
+
};
|
|
75379
|
+
export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
|
|
75380
|
+
export type UpdateByodDeviceData = {
|
|
75381
|
+
/**
|
|
75382
|
+
* The one field a rename may send.
|
|
75383
|
+
*/
|
|
75384
|
+
body: {
|
|
75385
|
+
/**
|
|
75386
|
+
* New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
|
|
75387
|
+
*/
|
|
75388
|
+
name: string;
|
|
75389
|
+
};
|
|
75390
|
+
path: {
|
|
75391
|
+
/**
|
|
75392
|
+
* Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404.
|
|
75393
|
+
*/
|
|
75394
|
+
deviceID: string;
|
|
75395
|
+
};
|
|
75396
|
+
query?: never;
|
|
75397
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
75398
|
+
};
|
|
75399
|
+
export type UpdateByodDeviceErrors = {
|
|
75400
|
+
/**
|
|
75401
|
+
* INVALID_PARAMS: a body field is missing, wrongly typed or out of range, for example a name outside 1 to 64 characters. Fix the field and resend; retrying unchanged fails the same way.
|
|
75402
|
+
*/
|
|
75403
|
+
400: unknown;
|
|
75404
|
+
/**
|
|
75405
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
75406
|
+
*/
|
|
75407
|
+
401: unknown;
|
|
75408
|
+
/**
|
|
75409
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
75410
|
+
*/
|
|
75411
|
+
404: unknown;
|
|
75412
|
+
/**
|
|
75413
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
75414
|
+
*/
|
|
75415
|
+
503: unknown;
|
|
75416
|
+
};
|
|
75417
|
+
export type UpdateByodDeviceResponses = {
|
|
75418
|
+
/**
|
|
75419
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
75420
|
+
*/
|
|
75421
|
+
200: {
|
|
75422
|
+
/**
|
|
75423
|
+
* Resource type; always "byod_device".
|
|
75424
|
+
*/
|
|
75425
|
+
object: 'byod_device';
|
|
75426
|
+
/**
|
|
75427
|
+
* Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
|
|
75428
|
+
*/
|
|
75429
|
+
id: string;
|
|
75430
|
+
/**
|
|
75431
|
+
* The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
|
|
75432
|
+
*/
|
|
75433
|
+
platform: 'android' | 'macos' | 'linux';
|
|
75434
|
+
/**
|
|
75435
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
75436
|
+
*/
|
|
75437
|
+
name: string;
|
|
75438
|
+
/**
|
|
75439
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
75440
|
+
*/
|
|
75441
|
+
model: string;
|
|
75442
|
+
/**
|
|
75443
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
75444
|
+
*/
|
|
75445
|
+
os_version: string;
|
|
75446
|
+
/**
|
|
75447
|
+
* True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
|
|
75448
|
+
*/
|
|
75449
|
+
online: boolean;
|
|
75450
|
+
/**
|
|
75451
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
75452
|
+
*/
|
|
75453
|
+
last_seen_at: string | null;
|
|
75454
|
+
/**
|
|
75455
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
75456
|
+
*/
|
|
75457
|
+
created_at: string;
|
|
75458
|
+
/**
|
|
75459
|
+
* What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
|
|
75460
|
+
*/
|
|
75461
|
+
capabilities: Array<'display' | 'agent'>;
|
|
75462
|
+
/**
|
|
75463
|
+
* The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
|
|
75464
|
+
*/
|
|
75465
|
+
agent_dirs: Array<string>;
|
|
75466
|
+
};
|
|
75467
|
+
};
|
|
75468
|
+
export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
|
|
75469
|
+
export type DisconnectByodDeviceData = {
|
|
75470
|
+
body?: never;
|
|
75471
|
+
path: {
|
|
75472
|
+
/**
|
|
75473
|
+
* Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404.
|
|
75474
|
+
*/
|
|
75475
|
+
deviceID: string;
|
|
75476
|
+
};
|
|
75477
|
+
query?: never;
|
|
75478
|
+
url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
|
|
75479
|
+
};
|
|
75480
|
+
export type DisconnectByodDeviceErrors = {
|
|
75481
|
+
/**
|
|
75482
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
75483
|
+
*/
|
|
75484
|
+
401: unknown;
|
|
75485
|
+
/**
|
|
75486
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
75487
|
+
*/
|
|
75488
|
+
404: unknown;
|
|
75489
|
+
/**
|
|
75490
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
75491
|
+
*/
|
|
75492
|
+
503: unknown;
|
|
75493
|
+
};
|
|
75494
|
+
export type DisconnectByodDeviceResponses = {
|
|
75495
|
+
/**
|
|
75496
|
+
* The disconnected device.
|
|
75497
|
+
*/
|
|
75498
|
+
200: {
|
|
75499
|
+
/**
|
|
75500
|
+
* Id of the device that was disconnected.
|
|
75501
|
+
*/
|
|
75502
|
+
id: string;
|
|
75503
|
+
/**
|
|
75504
|
+
* Resource type; always "byod_device".
|
|
75505
|
+
*/
|
|
75506
|
+
object: 'byod_device';
|
|
75507
|
+
/**
|
|
75508
|
+
* Always true: the credential is revoked and the connection closed.
|
|
75509
|
+
*/
|
|
75510
|
+
disconnected: true;
|
|
75511
|
+
};
|
|
75512
|
+
};
|
|
75513
|
+
export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
|
|
75514
|
+
export type GetByodPairingData = {
|
|
75515
|
+
body?: never;
|
|
75516
|
+
path: {
|
|
75517
|
+
/**
|
|
75518
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
75519
|
+
*/
|
|
75520
|
+
code: string;
|
|
75521
|
+
};
|
|
75522
|
+
query?: never;
|
|
75523
|
+
url: '/sandbox/v1/byod/pairings/{code}';
|
|
75524
|
+
};
|
|
75525
|
+
export type GetByodPairingErrors = {
|
|
75526
|
+
/**
|
|
75527
|
+
* NOT_FOUND: no such pairing. The code is unknown, was already claimed, or has expired; the three are indistinguishable, so start a new pairing in the organization.
|
|
75528
|
+
*/
|
|
75529
|
+
404: unknown;
|
|
75530
|
+
};
|
|
75531
|
+
export type GetByodPairingResponses = {
|
|
75532
|
+
/**
|
|
75533
|
+
* What the Allow screen reads.
|
|
75534
|
+
*/
|
|
75535
|
+
200: {
|
|
75536
|
+
/**
|
|
75537
|
+
* Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
|
|
75538
|
+
*/
|
|
75539
|
+
organization_name: string;
|
|
75540
|
+
/**
|
|
75541
|
+
* When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
|
|
75542
|
+
*/
|
|
75543
|
+
expires_at: string;
|
|
75544
|
+
};
|
|
75545
|
+
};
|
|
75546
|
+
export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
|
|
75547
|
+
export type ClaimByodPairingData = {
|
|
75548
|
+
/**
|
|
75549
|
+
* What the phone's app knows about itself when it claims the pairing.
|
|
75550
|
+
*/
|
|
75551
|
+
body: {
|
|
75552
|
+
/**
|
|
75553
|
+
* The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS.
|
|
75554
|
+
*/
|
|
75555
|
+
platform: 'android' | 'macos' | 'linux';
|
|
75556
|
+
/**
|
|
75557
|
+
* Display name to register the device with, 1 to 64 characters; omitted or empty becomes the placeholder My device, which the caller can change later.
|
|
75558
|
+
*/
|
|
75559
|
+
name?: string;
|
|
75560
|
+
/**
|
|
75561
|
+
* The device model the app reports, at most 128 characters; it is display only and can be omitted.
|
|
75562
|
+
*/
|
|
75563
|
+
model?: string;
|
|
75564
|
+
/**
|
|
75565
|
+
* The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
|
|
75566
|
+
*/
|
|
75567
|
+
os_version?: string;
|
|
75568
|
+
};
|
|
75569
|
+
path: {
|
|
75570
|
+
/**
|
|
75571
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
75572
|
+
*/
|
|
75573
|
+
code: string;
|
|
75574
|
+
};
|
|
75575
|
+
query?: never;
|
|
75576
|
+
url: '/sandbox/v1/byod/pairings/{code}/claim';
|
|
75577
|
+
};
|
|
75578
|
+
export type ClaimByodPairingErrors = {
|
|
75579
|
+
/**
|
|
75580
|
+
* INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
|
|
75581
|
+
*/
|
|
75582
|
+
400: unknown;
|
|
75583
|
+
/**
|
|
75584
|
+
* NOT_FOUND: no such pairing. The code is unknown, was already claimed, or has expired; the three are indistinguishable, so start a new pairing in the organization.
|
|
75585
|
+
*/
|
|
75586
|
+
404: unknown;
|
|
75587
|
+
};
|
|
75588
|
+
export type ClaimByodPairingResponses = {
|
|
75589
|
+
/**
|
|
75590
|
+
* The device's registration and its one-time credential.
|
|
75591
|
+
*/
|
|
75592
|
+
201: {
|
|
75593
|
+
/**
|
|
75594
|
+
* Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
|
|
75595
|
+
*/
|
|
75596
|
+
device_id: string;
|
|
75597
|
+
/**
|
|
75598
|
+
* The device credential, 32 random bytes as base64url, shown exactly once; store it in the phone's keystore and send it as Authorization: Bearer when dialing socket_url. A lost credential cannot be re-read: disconnect and pair again.
|
|
75599
|
+
*/
|
|
75600
|
+
credential: string;
|
|
75601
|
+
/**
|
|
75602
|
+
* The control socket to dial, wss://49982-byd<hex>--sbx[-<env>].praxisusercontent.com/; connect with the credential in an Authorization: Bearer header. The connection carries the phone channel's frames.
|
|
75603
|
+
*/
|
|
75604
|
+
socket_url: string;
|
|
75605
|
+
};
|
|
75606
|
+
};
|
|
75607
|
+
export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
|
|
75278
75608
|
export type SessionsDeleteData = {
|
|
75279
75609
|
body?: never;
|
|
75280
75610
|
path: {
|
|
@@ -77094,7 +77424,7 @@ export type AgentsCreateData = {
|
|
|
77094
77424
|
}>;
|
|
77095
77425
|
};
|
|
77096
77426
|
/**
|
|
77097
|
-
* Optional tool preset. minimal enables read, glob
|
|
77427
|
+
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
77098
77428
|
*/
|
|
77099
77429
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
77100
77430
|
/**
|
|
@@ -78961,7 +79291,7 @@ export type AgentsUpdateData = {
|
|
|
78961
79291
|
}>;
|
|
78962
79292
|
};
|
|
78963
79293
|
/**
|
|
78964
|
-
* Optional tool preset. minimal enables read, glob
|
|
79294
|
+
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
78965
79295
|
*/
|
|
78966
79296
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
78967
79297
|
/**
|
|
@@ -82671,48 +83001,6 @@ export type SessionsEventsListResponses = {
|
|
|
82671
83001
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82672
83002
|
*/
|
|
82673
83003
|
processed_at: string;
|
|
82674
|
-
} | {
|
|
82675
|
-
/**
|
|
82676
|
-
* Event id, unique within the session.
|
|
82677
|
-
*/
|
|
82678
|
-
id: string;
|
|
82679
|
-
/**
|
|
82680
|
-
* Always `user.tool_confirmation`.
|
|
82681
|
-
*/
|
|
82682
|
-
type: 'user.tool_confirmation';
|
|
82683
|
-
/**
|
|
82684
|
-
* When the event was recorded, RFC 3339.
|
|
82685
|
-
*/
|
|
82686
|
-
processed_at: string;
|
|
82687
|
-
/**
|
|
82688
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82689
|
-
*/
|
|
82690
|
-
tool_use_id: string;
|
|
82691
|
-
/**
|
|
82692
|
-
* Always `allow`.
|
|
82693
|
-
*/
|
|
82694
|
-
result: 'allow';
|
|
82695
|
-
/**
|
|
82696
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82697
|
-
*/
|
|
82698
|
-
answers: {
|
|
82699
|
-
[key: string]: string;
|
|
82700
|
-
};
|
|
82701
|
-
/**
|
|
82702
|
-
* Per-question notes, keyed by the question text.
|
|
82703
|
-
*/
|
|
82704
|
-
annotations?: {
|
|
82705
|
-
[key: string]: {
|
|
82706
|
-
/**
|
|
82707
|
-
* The preview of the option the user chose.
|
|
82708
|
-
*/
|
|
82709
|
-
preview?: string;
|
|
82710
|
-
/**
|
|
82711
|
-
* Free text the user added to their choice.
|
|
82712
|
-
*/
|
|
82713
|
-
notes?: string;
|
|
82714
|
-
};
|
|
82715
|
-
};
|
|
82716
83004
|
}>;
|
|
82717
83005
|
/**
|
|
82718
83006
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -82762,40 +83050,6 @@ export type SessionsEventsSendData = {
|
|
|
82762
83050
|
* Id of the event this event refers to.
|
|
82763
83051
|
*/
|
|
82764
83052
|
event_id: string;
|
|
82765
|
-
} | {
|
|
82766
|
-
/**
|
|
82767
|
-
* Always `user.tool_confirmation`.
|
|
82768
|
-
*/
|
|
82769
|
-
type: 'user.tool_confirmation';
|
|
82770
|
-
/**
|
|
82771
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
82772
|
-
*/
|
|
82773
|
-
tool_use_id: string;
|
|
82774
|
-
/**
|
|
82775
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
82776
|
-
*/
|
|
82777
|
-
result: 'allow';
|
|
82778
|
-
/**
|
|
82779
|
-
* The user's answer to each question, keyed by the question text. A multi-select answer joins the chosen labels with a comma and a space; a free-text answer is the user's own words. A question left out was skipped.
|
|
82780
|
-
*/
|
|
82781
|
-
answers: {
|
|
82782
|
-
[key: string]: string;
|
|
82783
|
-
};
|
|
82784
|
-
/**
|
|
82785
|
-
* Optional per-question notes, keyed by the question text.
|
|
82786
|
-
*/
|
|
82787
|
-
annotations?: {
|
|
82788
|
-
[key: string]: {
|
|
82789
|
-
/**
|
|
82790
|
-
* The preview of the option the user chose.
|
|
82791
|
-
*/
|
|
82792
|
-
preview?: string;
|
|
82793
|
-
/**
|
|
82794
|
-
* Free text the user added to their choice.
|
|
82795
|
-
*/
|
|
82796
|
-
notes?: string;
|
|
82797
|
-
};
|
|
82798
|
-
};
|
|
82799
83053
|
}>;
|
|
82800
83054
|
};
|
|
82801
83055
|
path: {
|
|
@@ -82890,48 +83144,6 @@ export type SessionsEventsSendResponses = {
|
|
|
82890
83144
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82891
83145
|
*/
|
|
82892
83146
|
processed_at: string;
|
|
82893
|
-
} | {
|
|
82894
|
-
/**
|
|
82895
|
-
* Event id, unique within the session.
|
|
82896
|
-
*/
|
|
82897
|
-
id: string;
|
|
82898
|
-
/**
|
|
82899
|
-
* Always `user.tool_confirmation`.
|
|
82900
|
-
*/
|
|
82901
|
-
type: 'user.tool_confirmation';
|
|
82902
|
-
/**
|
|
82903
|
-
* When the event was recorded, RFC 3339.
|
|
82904
|
-
*/
|
|
82905
|
-
processed_at: string;
|
|
82906
|
-
/**
|
|
82907
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82908
|
-
*/
|
|
82909
|
-
tool_use_id: string;
|
|
82910
|
-
/**
|
|
82911
|
-
* Always `allow`.
|
|
82912
|
-
*/
|
|
82913
|
-
result: 'allow';
|
|
82914
|
-
/**
|
|
82915
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82916
|
-
*/
|
|
82917
|
-
answers: {
|
|
82918
|
-
[key: string]: string;
|
|
82919
|
-
};
|
|
82920
|
-
/**
|
|
82921
|
-
* Per-question notes, keyed by the question text.
|
|
82922
|
-
*/
|
|
82923
|
-
annotations?: {
|
|
82924
|
-
[key: string]: {
|
|
82925
|
-
/**
|
|
82926
|
-
* The preview of the option the user chose.
|
|
82927
|
-
*/
|
|
82928
|
-
preview?: string;
|
|
82929
|
-
/**
|
|
82930
|
-
* Free text the user added to their choice.
|
|
82931
|
-
*/
|
|
82932
|
-
notes?: string;
|
|
82933
|
-
};
|
|
82934
|
-
};
|
|
82935
83147
|
}>;
|
|
82936
83148
|
};
|
|
82937
83149
|
};
|