@deepraxis/sdk 0.1.1-dev.3d9f1a2 → 0.1.1-dev.3e0491f

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.
@@ -1934,50 +1934,45 @@ export type AgentSseEvent = ({
1934
1934
  */
1935
1935
  event?: 'user.tool_confirmation';
1936
1936
  /**
1937
- * Praxis extension (AskUserQuestion, own face only): the confirmation of an AskUserQuestion call, with the answers it carried.
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
- * Event id, unique within the session.
1941
+ * Unique identifier for this event.
1942
1942
  */
1943
1943
  id: string;
1944
1944
  /**
1945
- * Always `user.tool_confirmation`.
1945
+ * UserToolConfirmationResult enum
1946
1946
  */
1947
- type: 'user.tool_confirmation';
1947
+ result: 'allow' | 'deny';
1948
1948
  /**
1949
- * When the event was recorded, RFC 3339.
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
- processed_at: string;
1954
+ tool_use_id: string;
1952
1955
  /**
1953
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
1956
+ * Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
1954
1957
  */
1955
- tool_use_id: string;
1958
+ type: 'user.tool_confirmation';
1956
1959
  /**
1957
- * Always `allow`.
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
- result: 'allow';
1962
+ deny_message?: string;
1960
1963
  /**
1961
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
1964
+ * A timestamp in RFC 3339 format
1962
1965
  */
1963
- answers: {
1964
- [key: string]: string;
1965
- };
1966
+ processed_at?: null | string;
1966
1967
  /**
1967
- * Per-question notes, keyed by the question text.
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
- annotations?: {
1970
- [key: string]: {
1971
- /**
1972
- * The preview of the option the user chose.
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
  /**
@@ -19391,6 +19386,10 @@ export type MediaAsset = {
19391
19386
  * 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
19387
  */
19393
19388
  segments?: number;
19389
+ /**
19390
+ * 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.
19391
+ */
19392
+ duration?: number;
19394
19393
  };
19395
19394
  };
19396
19395
  };
@@ -21531,7 +21530,7 @@ export type SandboxNewSandboxV2 = {
21531
21530
  */
21532
21531
  volumeMounts?: Array<SandboxSandboxVolumeMount>;
21533
21532
  /**
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.
21533
+ * 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
21534
  */
21536
21535
  ephemeral?: boolean;
21537
21536
  /**
@@ -21558,6 +21557,14 @@ export type SandboxNewSandboxV2 = {
21558
21557
  * 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
21558
  */
21560
21559
  idleActivity?: 'traffic' | 'caller';
21560
+ /**
21561
+ * 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.
21562
+ */
21563
+ sku?: string;
21564
+ /**
21565
+ * 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.
21566
+ */
21567
+ interruptible?: boolean;
21561
21568
  /**
21562
21569
  * 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
21570
  */
@@ -26360,49 +26367,44 @@ export type AgentSseData = {
26360
26367
  * 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
26368
  */
26362
26369
  source?: 'app' | 'codemode';
26363
- } | {
26370
+ } | (unknown & {
26364
26371
  /**
26365
- * Event id, unique within the session.
26372
+ * Unique identifier for this event.
26366
26373
  */
26367
26374
  id: string;
26368
26375
  /**
26369
- * Always `user.tool_confirmation`.
26376
+ * UserToolConfirmationResult enum
26370
26377
  */
26371
- type: 'user.tool_confirmation';
26378
+ result: 'allow' | 'deny';
26372
26379
  /**
26373
- * When the event was recorded, RFC 3339.
26380
+ * The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
26381
+ * corresponds to, which can be found in the last `session.status_idle`
26382
+ * [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
26383
+ * `stop_reason.event_ids` field.
26374
26384
  */
26375
- processed_at: string;
26385
+ tool_use_id: string;
26376
26386
  /**
26377
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
26387
+ * Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
26378
26388
  */
26379
- tool_use_id: string;
26389
+ type: 'user.tool_confirmation';
26380
26390
  /**
26381
- * Always `allow`.
26391
+ * 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
26392
  */
26383
- result: 'allow';
26393
+ deny_message?: string;
26384
26394
  /**
26385
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
26395
+ * A timestamp in RFC 3339 format
26386
26396
  */
26387
- answers: {
26388
- [key: string]: string;
26389
- };
26397
+ processed_at?: null | string;
26390
26398
  /**
26391
- * Per-question notes, keyed by the question text.
26399
+ * Set by the server to the subagent thread this confirmation was routed to.
26400
+ * Omitted when it was routed to the primary thread.
26392
26401
  */
26393
- annotations?: {
26394
- [key: string]: {
26395
- /**
26396
- * The preview of the option the user chose.
26397
- */
26398
- preview?: string;
26399
- /**
26400
- * Free text the user added to their choice.
26401
- */
26402
- notes?: string;
26403
- };
26404
- };
26405
- } | {
26402
+ session_thread_id?: null | string;
26403
+ /**
26404
+ * 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.
26405
+ */
26406
+ permission_mode?: 'yolo';
26407
+ }) | {
26406
26408
  /**
26407
26409
  * Unique identifier for this event.
26408
26410
  */
@@ -37411,6 +37413,10 @@ export type MediaSearchAsset = {
37411
37413
  * 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
37414
  */
37413
37415
  segments?: number;
37416
+ /**
37417
+ * 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.
37418
+ */
37419
+ duration?: number;
37414
37420
  };
37415
37421
  };
37416
37422
  };
@@ -47204,6 +47210,10 @@ export type MediaAssetWritable = {
47204
47210
  * 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
47211
  */
47206
47212
  segments?: number;
47213
+ /**
47214
+ * 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.
47215
+ */
47216
+ duration?: number;
47207
47217
  };
47208
47218
  };
47209
47219
  };
@@ -47757,6 +47767,10 @@ export type MediaSearchAssetWritable = {
47757
47767
  * 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
47768
  */
47759
47769
  segments?: number;
47770
+ /**
47771
+ * 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.
47772
+ */
47773
+ duration?: number;
47760
47774
  };
47761
47775
  };
47762
47776
  };
@@ -49016,48 +49030,6 @@ export type ListAgentEventsResponses = {
49016
49030
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
49017
49031
  */
49018
49032
  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
49033
  }>;
49062
49034
  /**
49063
49035
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -49107,40 +49079,6 @@ export type SendAgentEventsData = {
49107
49079
  * Id of the event this event refers to.
49108
49080
  */
49109
49081
  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
49082
  }>;
49145
49083
  };
49146
49084
  path: {
@@ -49223,48 +49161,6 @@ export type SendAgentEventsResponses = {
49223
49161
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
49224
49162
  */
49225
49163
  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
49164
  }>;
49269
49165
  };
49270
49166
  };
@@ -53040,13 +52936,17 @@ export type AgentsPhoneRetrieveResponses = {
53040
52936
  */
53041
52937
  configured: boolean;
53042
52938
  /**
53043
- * What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
52939
+ * 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
52940
  */
53045
- state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
52941
+ state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
53046
52942
  /**
53047
- * The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
52943
+ * 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
52944
  */
53049
52945
  sku: string | null;
52946
+ /**
52947
+ * 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.
52948
+ */
52949
+ byod_device: string | null;
53050
52950
  /**
53051
52951
  * What people and the model call this phone, or null when no phone is configured.
53052
52952
  */
@@ -53126,13 +53026,17 @@ export type AgentsPhoneReleaseResponses = {
53126
53026
  */
53127
53027
  configured: boolean;
53128
53028
  /**
53129
- * What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
53029
+ * 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
53030
  */
53131
- state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
53031
+ state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
53132
53032
  /**
53133
- * The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
53033
+ * 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
53034
  */
53135
53035
  sku: string | null;
53036
+ /**
53037
+ * 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.
53038
+ */
53039
+ byod_device: string | null;
53136
53040
  /**
53137
53041
  * What people and the model call this phone, or null when no phone is configured.
53138
53042
  */
@@ -62929,7 +62833,7 @@ export type ListSessionRequestsResponses = {
62929
62833
  */
62930
62834
  object: 'request';
62931
62835
  /**
62932
- * question when the agent asked through the ask_user_question tool and waits for an answer; approval when any other tool waits for permission.
62836
+ * 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
62837
  */
62934
62838
  kind: 'question' | 'approval';
62935
62839
  /**
@@ -62937,11 +62841,11 @@ export type ListSessionRequestsResponses = {
62937
62841
  */
62938
62842
  status: 'pending';
62939
62843
  /**
62940
- * The tool the agent called, such as ask_user_question or bash.
62844
+ * The tool the agent called, such as bash.
62941
62845
  */
62942
62846
  tool_name: string;
62943
62847
  /**
62944
- * The tool call's input exactly as the agent.tool_use event shows it: for a question the questions and their options, for an approval the tool's arguments.
62848
+ * The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
62945
62849
  */
62946
62850
  input: unknown;
62947
62851
  /**
@@ -75275,6 +75179,400 @@ export type RunSandboxCommandResponses = {
75275
75179
  };
75276
75180
  };
75277
75181
  export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
75182
+ export type CreateByodPairingData = {
75183
+ body?: never;
75184
+ path?: never;
75185
+ query?: never;
75186
+ url: '/sandbox/v1/byod/pairings';
75187
+ };
75188
+ export type CreateByodPairingErrors = {
75189
+ /**
75190
+ * 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.
75191
+ */
75192
+ 400: unknown;
75193
+ /**
75194
+ * Authentication required: supply an organization API key that carries a tenant.
75195
+ */
75196
+ 401: unknown;
75197
+ /**
75198
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
75199
+ */
75200
+ 503: unknown;
75201
+ };
75202
+ export type CreateByodPairingResponses = {
75203
+ /**
75204
+ * A pairing the caller started: the short code, its deadline and the string the phone's app scans.
75205
+ */
75206
+ 201: {
75207
+ /**
75208
+ * 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.
75209
+ */
75210
+ code: string;
75211
+ /**
75212
+ * 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.
75213
+ */
75214
+ expires_at: string;
75215
+ /**
75216
+ * 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.
75217
+ */
75218
+ qr: string;
75219
+ };
75220
+ };
75221
+ export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
75222
+ export type ListByodDevicesData = {
75223
+ body?: never;
75224
+ path?: never;
75225
+ query?: never;
75226
+ url: '/sandbox/v1/byod/devices';
75227
+ };
75228
+ export type ListByodDevicesErrors = {
75229
+ /**
75230
+ * Authentication required: supply an organization API key that carries a tenant.
75231
+ */
75232
+ 401: unknown;
75233
+ /**
75234
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
75235
+ */
75236
+ 503: unknown;
75237
+ };
75238
+ export type ListByodDevicesResponses = {
75239
+ /**
75240
+ * The organization's BYOD devices.
75241
+ */
75242
+ 200: {
75243
+ /**
75244
+ * The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
75245
+ */
75246
+ data: Array<{
75247
+ /**
75248
+ * Resource type; always "byod_device".
75249
+ */
75250
+ object: 'byod_device';
75251
+ /**
75252
+ * 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.
75253
+ */
75254
+ id: string;
75255
+ /**
75256
+ * The device's platform, which decides the use faces it answers. Android today; linux, macos and windows arrive with the desktop module.
75257
+ */
75258
+ platform: 'android';
75259
+ /**
75260
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
75261
+ */
75262
+ name: string;
75263
+ /**
75264
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
75265
+ */
75266
+ model: string;
75267
+ /**
75268
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
75269
+ */
75270
+ os_version: string;
75271
+ /**
75272
+ * 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.
75273
+ */
75274
+ online: boolean;
75275
+ /**
75276
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
75277
+ */
75278
+ last_seen_at: string | null;
75279
+ /**
75280
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
75281
+ */
75282
+ created_at: string;
75283
+ }>;
75284
+ };
75285
+ };
75286
+ export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
75287
+ export type GetByodDeviceData = {
75288
+ body?: never;
75289
+ path: {
75290
+ /**
75291
+ * 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.
75292
+ */
75293
+ deviceID: string;
75294
+ };
75295
+ query?: never;
75296
+ url: '/sandbox/v1/byod/devices/{deviceID}';
75297
+ };
75298
+ export type GetByodDeviceErrors = {
75299
+ /**
75300
+ * Authentication required: supply an organization API key that carries a tenant.
75301
+ */
75302
+ 401: unknown;
75303
+ /**
75304
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
75305
+ */
75306
+ 404: unknown;
75307
+ /**
75308
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
75309
+ */
75310
+ 503: unknown;
75311
+ };
75312
+ export type GetByodDeviceResponses = {
75313
+ /**
75314
+ * One BYOD device: a phone the organization paired and the platform did not build.
75315
+ */
75316
+ 200: {
75317
+ /**
75318
+ * Resource type; always "byod_device".
75319
+ */
75320
+ object: 'byod_device';
75321
+ /**
75322
+ * 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.
75323
+ */
75324
+ id: string;
75325
+ /**
75326
+ * The device's platform, which decides the use faces it answers. Android today; linux, macos and windows arrive with the desktop module.
75327
+ */
75328
+ platform: 'android';
75329
+ /**
75330
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
75331
+ */
75332
+ name: string;
75333
+ /**
75334
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
75335
+ */
75336
+ model: string;
75337
+ /**
75338
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
75339
+ */
75340
+ os_version: string;
75341
+ /**
75342
+ * 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.
75343
+ */
75344
+ online: boolean;
75345
+ /**
75346
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
75347
+ */
75348
+ last_seen_at: string | null;
75349
+ /**
75350
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
75351
+ */
75352
+ created_at: string;
75353
+ };
75354
+ };
75355
+ export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
75356
+ export type UpdateByodDeviceData = {
75357
+ /**
75358
+ * The one field a rename may send.
75359
+ */
75360
+ body: {
75361
+ /**
75362
+ * New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
75363
+ */
75364
+ name: string;
75365
+ };
75366
+ path: {
75367
+ /**
75368
+ * 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.
75369
+ */
75370
+ deviceID: string;
75371
+ };
75372
+ query?: never;
75373
+ url: '/sandbox/v1/byod/devices/{deviceID}';
75374
+ };
75375
+ export type UpdateByodDeviceErrors = {
75376
+ /**
75377
+ * 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.
75378
+ */
75379
+ 400: unknown;
75380
+ /**
75381
+ * Authentication required: supply an organization API key that carries a tenant.
75382
+ */
75383
+ 401: unknown;
75384
+ /**
75385
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
75386
+ */
75387
+ 404: unknown;
75388
+ /**
75389
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
75390
+ */
75391
+ 503: unknown;
75392
+ };
75393
+ export type UpdateByodDeviceResponses = {
75394
+ /**
75395
+ * One BYOD device: a phone the organization paired and the platform did not build.
75396
+ */
75397
+ 200: {
75398
+ /**
75399
+ * Resource type; always "byod_device".
75400
+ */
75401
+ object: 'byod_device';
75402
+ /**
75403
+ * 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.
75404
+ */
75405
+ id: string;
75406
+ /**
75407
+ * The device's platform, which decides the use faces it answers. Android today; linux, macos and windows arrive with the desktop module.
75408
+ */
75409
+ platform: 'android';
75410
+ /**
75411
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
75412
+ */
75413
+ name: string;
75414
+ /**
75415
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
75416
+ */
75417
+ model: string;
75418
+ /**
75419
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
75420
+ */
75421
+ os_version: string;
75422
+ /**
75423
+ * 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.
75424
+ */
75425
+ online: boolean;
75426
+ /**
75427
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
75428
+ */
75429
+ last_seen_at: string | null;
75430
+ /**
75431
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
75432
+ */
75433
+ created_at: string;
75434
+ };
75435
+ };
75436
+ export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
75437
+ export type DisconnectByodDeviceData = {
75438
+ body?: never;
75439
+ path: {
75440
+ /**
75441
+ * 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.
75442
+ */
75443
+ deviceID: string;
75444
+ };
75445
+ query?: never;
75446
+ url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
75447
+ };
75448
+ export type DisconnectByodDeviceErrors = {
75449
+ /**
75450
+ * Authentication required: supply an organization API key that carries a tenant.
75451
+ */
75452
+ 401: unknown;
75453
+ /**
75454
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
75455
+ */
75456
+ 404: unknown;
75457
+ /**
75458
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
75459
+ */
75460
+ 503: unknown;
75461
+ };
75462
+ export type DisconnectByodDeviceResponses = {
75463
+ /**
75464
+ * The disconnected device.
75465
+ */
75466
+ 200: {
75467
+ /**
75468
+ * Id of the device that was disconnected.
75469
+ */
75470
+ id: string;
75471
+ /**
75472
+ * Resource type; always "byod_device".
75473
+ */
75474
+ object: 'byod_device';
75475
+ /**
75476
+ * Always true: the credential is revoked and the connection closed.
75477
+ */
75478
+ disconnected: true;
75479
+ };
75480
+ };
75481
+ export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
75482
+ export type GetByodPairingData = {
75483
+ body?: never;
75484
+ path: {
75485
+ /**
75486
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
75487
+ */
75488
+ code: string;
75489
+ };
75490
+ query?: never;
75491
+ url: '/sandbox/v1/byod/pairings/{code}';
75492
+ };
75493
+ export type GetByodPairingErrors = {
75494
+ /**
75495
+ * 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.
75496
+ */
75497
+ 404: unknown;
75498
+ };
75499
+ export type GetByodPairingResponses = {
75500
+ /**
75501
+ * What the Allow screen reads.
75502
+ */
75503
+ 200: {
75504
+ /**
75505
+ * Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
75506
+ */
75507
+ organization_name: string;
75508
+ /**
75509
+ * When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
75510
+ */
75511
+ expires_at: string;
75512
+ };
75513
+ };
75514
+ export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
75515
+ export type ClaimByodPairingData = {
75516
+ /**
75517
+ * What the phone's app knows about itself when it claims the pairing.
75518
+ */
75519
+ body: {
75520
+ /**
75521
+ * The device's platform. Android is the only accepted value; anything else answers INVALID_PARAMS.
75522
+ */
75523
+ platform: 'android';
75524
+ /**
75525
+ * 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.
75526
+ */
75527
+ name?: string;
75528
+ /**
75529
+ * The device model the app reports, at most 128 characters; it is display only and can be omitted.
75530
+ */
75531
+ model?: string;
75532
+ /**
75533
+ * The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
75534
+ */
75535
+ os_version?: string;
75536
+ };
75537
+ path: {
75538
+ /**
75539
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
75540
+ */
75541
+ code: string;
75542
+ };
75543
+ query?: never;
75544
+ url: '/sandbox/v1/byod/pairings/{code}/claim';
75545
+ };
75546
+ export type ClaimByodPairingErrors = {
75547
+ /**
75548
+ * INVALID_PARAMS: the body is missing or platform is not android. Fix the body and resend; the code is not spent by a refused claim.
75549
+ */
75550
+ 400: unknown;
75551
+ /**
75552
+ * 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.
75553
+ */
75554
+ 404: unknown;
75555
+ };
75556
+ export type ClaimByodPairingResponses = {
75557
+ /**
75558
+ * The device's registration and its one-time credential.
75559
+ */
75560
+ 201: {
75561
+ /**
75562
+ * Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
75563
+ */
75564
+ device_id: string;
75565
+ /**
75566
+ * 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.
75567
+ */
75568
+ credential: string;
75569
+ /**
75570
+ * 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.
75571
+ */
75572
+ socket_url: string;
75573
+ };
75574
+ };
75575
+ export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
75278
75576
  export type SessionsDeleteData = {
75279
75577
  body?: never;
75280
75578
  path: {
@@ -77094,7 +77392,7 @@ export type AgentsCreateData = {
77094
77392
  }>;
77095
77393
  };
77096
77394
  /**
77097
- * Optional tool preset. minimal enables read, glob, grep and ask_user_question; 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.
77395
+ * 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
77396
  */
77099
77397
  preset?: 'minimal' | 'data-editor' | 'full';
77100
77398
  /**
@@ -78961,7 +79259,7 @@ export type AgentsUpdateData = {
78961
79259
  }>;
78962
79260
  };
78963
79261
  /**
78964
- * Optional tool preset. minimal enables read, glob, grep and ask_user_question; 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.
79262
+ * 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
79263
  */
78966
79264
  preset?: 'minimal' | 'data-editor' | 'full';
78967
79265
  /**
@@ -82671,48 +82969,6 @@ export type SessionsEventsListResponses = {
82671
82969
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
82672
82970
  */
82673
82971
  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
82972
  }>;
82717
82973
  /**
82718
82974
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -82762,40 +83018,6 @@ export type SessionsEventsSendData = {
82762
83018
  * Id of the event this event refers to.
82763
83019
  */
82764
83020
  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
83021
  }>;
82800
83022
  };
82801
83023
  path: {
@@ -82890,48 +83112,6 @@ export type SessionsEventsSendResponses = {
82890
83112
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
82891
83113
  */
82892
83114
  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
83115
  }>;
82936
83116
  };
82937
83117
  };