@deepraxis/sdk 0.1.1-dev.c811f1a → 0.1.1-dev.c81a93f
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 +7 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +14 -8
- package/dist/generated/sdk.gen.js +25 -7
- package/dist/generated/types.gen.d.ts +268 -15
- package/dist/operations.generated.js +46 -10
- package/dist/resources.generated.d.ts +20 -0
- package/dist/resources.generated.js +5 -0
- package/package.json +1 -1
|
@@ -42,9 +42,9 @@ export const sendAgentEvents = (options) => (options.client ?? client).post({
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
/**
|
|
45
|
-
* Follow
|
|
45
|
+
* Follow an agent live
|
|
46
46
|
*
|
|
47
|
-
* Follow
|
|
47
|
+
* Follow an agent live over Server-Sent Events. For a personal or general agent it is the stream of your own main session with that agent, the same stream sessions.events.stream opens, event_deltas[] previews included; read past events with agents.events.list. An assume agent has no main session: its body is its MCP connections, and this stream is its broadcast point, which every live connection of the agent hears at once. It carries two events, each with an SSE id: inbox.letter_delivered { letter_id, sender, sender_name, summary, thread, create_time } when a letter arrives (the letter stays unread; take it with the agent's inbox tool, the body is not in the event), and cognition.ritual_held { ritual, owner, title, engram, create_time } when a domain gives the agent a memory. Reconnect with the Last-Event-ID header to receive what you missed from a short recent buffer (about an hour); a first connection replays nothing, so read agents.inbox.letters.list for mail already waiting. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service agent answers 400. Closing the stream only drops your subscription and does not stop the agent.
|
|
48
48
|
*/
|
|
49
49
|
export const streamAgentEvents = (options) => (options.client ?? client).sse.get({
|
|
50
50
|
security: [{
|
|
@@ -99,6 +99,24 @@ export const getAgentConsolidation = (options) => (options.client ?? client).get
|
|
|
99
99
|
url: '/agent/v1/agents/{agent_id}/consolidations/{consolidation_id}',
|
|
100
100
|
...options
|
|
101
101
|
});
|
|
102
|
+
/**
|
|
103
|
+
* List an assume agent's waiting letters
|
|
104
|
+
*
|
|
105
|
+
* Check whether mail waits for an assume agent without taking it: answers unread, the count of delivered letters the agent has not read, and letters, the newest unread ones (id, sender address, summary, thread, create_time; never the body). Nothing is marked read, so calling it again answers the same until the agent reads its mail with its own inbox tool (praxis_assume_inbox, action "read"). Use it when something outside the agent has to learn that mail arrived: the local `praxis agent events wait` reads it once on start and after every reconnect to its agent's event stream, so no letter that arrived while nothing listened is missed. {agent_id} takes the agent_… id, the eight character identity number or the handle of an assume agent in your organization; any other kind answers 400 ASSUME_AGENT_REQUIRED. To read or answer the letters, use the agent's inbox tool, not this read. Example: GET /agent/v1/agents/R1M9TQ2X/inbox/letters?unread=true&limit=5.
|
|
106
|
+
*/
|
|
107
|
+
export const listAgentInboxLetters = (options) => (options.client ?? client).get({
|
|
108
|
+
security: [{
|
|
109
|
+
key: 'BearerAuth',
|
|
110
|
+
scheme: 'bearer',
|
|
111
|
+
type: 'http'
|
|
112
|
+
}, {
|
|
113
|
+
key: 'ApiKeyAuth',
|
|
114
|
+
name: 'X-API-Key',
|
|
115
|
+
type: 'apiKey'
|
|
116
|
+
}],
|
|
117
|
+
url: '/agent/v1/agents/{agent_id}/inbox/letters',
|
|
118
|
+
...options
|
|
119
|
+
});
|
|
102
120
|
/**
|
|
103
121
|
* Apply Agent Version
|
|
104
122
|
*
|
|
@@ -764,7 +782,7 @@ export const forkSession = (options) => (options.client ?? client).post({
|
|
|
764
782
|
*
|
|
765
783
|
* List the files this session delivered; an end-customer token reads its own session.
|
|
766
784
|
*
|
|
767
|
-
* Own-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.
|
|
785
|
+
* Own-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory, or one canvas or media asset the reply pointed at (a part with kind object carrying object_type, object_id and href; one artifact per object, pointing at it again adds no version), with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.
|
|
768
786
|
*/
|
|
769
787
|
export const listSessionArtifacts = (options) => (options.client ?? client).get({
|
|
770
788
|
security: [{
|
|
@@ -784,7 +802,7 @@ export const listSessionArtifacts = (options) => (options.client ?? client).get(
|
|
|
784
802
|
*
|
|
785
803
|
* Mint a short-lived download address for one file of an artifact.
|
|
786
804
|
*
|
|
787
|
-
* Own-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.
|
|
805
|
+
* Own-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. For an object part the address serves a snapshot picture of a canvas or the own bytes of the asset; an object that no longer exists returns 404 ARTIFACT_NOT_FOUND and a failing share service returns 502. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.
|
|
788
806
|
*/
|
|
789
807
|
export const createSessionArtifactContentUrl = (options) => (options.client ?? client).post({
|
|
790
808
|
security: [{
|
|
@@ -1480,7 +1498,7 @@ export const fileRetrieveUpload = (options) => (options.client ?? client).get({
|
|
|
1480
1498
|
/**
|
|
1481
1499
|
* Create a one-time upload URL
|
|
1482
1500
|
*
|
|
1483
|
-
* Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid
|
|
1501
|
+
* Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid or cross-organization URLs return 404, and so does a link whose upload record no longer exists. A URL that is authentic but names another action returns 403 CAPABILITY_MISMATCH: a status link posted to complete_url answers it, and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {"filename":"photo.png","bytes":2048,"content_type":"image/png"}.
|
|
1484
1502
|
*/
|
|
1485
1503
|
export const fileCreateSignedUpload = (options) => (options.client ?? client).post({
|
|
1486
1504
|
security: [{
|
|
@@ -4032,7 +4050,7 @@ export const sessionsArchive = (options) => (options.client ?? client).post({
|
|
|
4032
4050
|
/**
|
|
4033
4051
|
* List session events
|
|
4034
4052
|
*
|
|
4035
|
-
* Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.
|
|
4053
|
+
* Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, system.notification_suppressed (pending background notifications that hit the wake quota and started no run), system.notification_recorded, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.
|
|
4036
4054
|
*/
|
|
4037
4055
|
export const sessionsEventsList = (options) => (options.client ?? client).get({
|
|
4038
4056
|
security: [{
|
|
@@ -9886,7 +9904,7 @@ export const devopsUnitsFetch = (options) => (options.client ?? client).post({
|
|
|
9886
9904
|
/**
|
|
9887
9905
|
* Push a unit's branch
|
|
9888
9906
|
*
|
|
9889
|
-
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that
|
|
9907
|
+
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.
|
|
9890
9908
|
*/
|
|
9891
9909
|
export const devopsUnitsPush = (options) => (options.client ?? client).post({
|
|
9892
9910
|
security: [{
|
|
@@ -2382,6 +2382,91 @@ export type AgentSseEvent = ({
|
|
|
2382
2382
|
task_id: string | null;
|
|
2383
2383
|
}>;
|
|
2384
2384
|
};
|
|
2385
|
+
} | {
|
|
2386
|
+
/**
|
|
2387
|
+
* Always `system.notification_suppressed`. SSE event name of this frame; its data is a system.notification_suppressed payload. Pending background notifications started no run because the session hit its wake quota; reason says which.
|
|
2388
|
+
*/
|
|
2389
|
+
event?: 'system.notification_suppressed';
|
|
2390
|
+
/**
|
|
2391
|
+
* Decoded JSON payload of this frame; its shape is selected by the event name.
|
|
2392
|
+
*/
|
|
2393
|
+
data?: {
|
|
2394
|
+
/**
|
|
2395
|
+
* Text of the block.
|
|
2396
|
+
*/
|
|
2397
|
+
id: string;
|
|
2398
|
+
/**
|
|
2399
|
+
* Always `system.notification_suppressed`. Pending background notifications started no run because the session hit its wake quota; reason says which.
|
|
2400
|
+
*/
|
|
2401
|
+
type: 'system.notification_suppressed';
|
|
2402
|
+
/**
|
|
2403
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
2404
|
+
*/
|
|
2405
|
+
processed_at: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* Text of the block.
|
|
2408
|
+
*/
|
|
2409
|
+
session_thread_id?: string;
|
|
2410
|
+
/**
|
|
2411
|
+
* The wake quota that held the batch.
|
|
2412
|
+
*/
|
|
2413
|
+
reason: 'hourly' | 'daily' | 'loop';
|
|
2414
|
+
/**
|
|
2415
|
+
* The pending system inputs that were dropped without a run.
|
|
2416
|
+
*/
|
|
2417
|
+
system_input_ids: Array<string>;
|
|
2418
|
+
/**
|
|
2419
|
+
* The distinct source kinds of those inputs, such as background_task or monitor.
|
|
2420
|
+
*/
|
|
2421
|
+
source_kinds: Array<string>;
|
|
2422
|
+
/**
|
|
2423
|
+
* A platform sentence that explains the pause; never the notification text.
|
|
2424
|
+
*/
|
|
2425
|
+
content: Array<{
|
|
2426
|
+
/**
|
|
2427
|
+
* Always `text`. A text block.
|
|
2428
|
+
*/
|
|
2429
|
+
type: 'text';
|
|
2430
|
+
/**
|
|
2431
|
+
* Text of the block.
|
|
2432
|
+
*/
|
|
2433
|
+
text: string;
|
|
2434
|
+
}>;
|
|
2435
|
+
};
|
|
2436
|
+
} | {
|
|
2437
|
+
/**
|
|
2438
|
+
* Always `system.notification_recorded`. SSE event name of this frame; its data is a system.notification_recorded payload. Pending background notifications were recorded without a run because the agent has no model.
|
|
2439
|
+
*/
|
|
2440
|
+
event?: 'system.notification_recorded';
|
|
2441
|
+
/**
|
|
2442
|
+
* Decoded JSON payload of this frame; its shape is selected by the event name.
|
|
2443
|
+
*/
|
|
2444
|
+
data?: {
|
|
2445
|
+
/**
|
|
2446
|
+
* Text of the block.
|
|
2447
|
+
*/
|
|
2448
|
+
id: string;
|
|
2449
|
+
/**
|
|
2450
|
+
* Always `system.notification_recorded`. Pending background notifications were recorded without a run because the agent has no model.
|
|
2451
|
+
*/
|
|
2452
|
+
type: 'system.notification_recorded';
|
|
2453
|
+
/**
|
|
2454
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
2455
|
+
*/
|
|
2456
|
+
processed_at: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* Text of the block.
|
|
2459
|
+
*/
|
|
2460
|
+
session_thread_id?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* The pending system inputs that were recorded without a run.
|
|
2463
|
+
*/
|
|
2464
|
+
system_input_ids: Array<string>;
|
|
2465
|
+
/**
|
|
2466
|
+
* The distinct source kinds of those inputs.
|
|
2467
|
+
*/
|
|
2468
|
+
source_kinds: Array<string>;
|
|
2469
|
+
};
|
|
2385
2470
|
} | {
|
|
2386
2471
|
/**
|
|
2387
2472
|
* Always `session.forked`. SSE event name of this frame; its data is a session.forked payload. The session was created by forking another session.
|
|
@@ -2733,7 +2818,7 @@ export type AgentSseEvent = ({
|
|
|
2733
2818
|
/**
|
|
2734
2819
|
* Server-Sent Events event name of this frame.
|
|
2735
2820
|
*/
|
|
2736
|
-
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
2821
|
+
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
2737
2822
|
data: AgentSseData;
|
|
2738
2823
|
};
|
|
2739
2824
|
/**
|
|
@@ -18311,7 +18396,7 @@ export type MediaLibrary = {
|
|
|
18311
18396
|
};
|
|
18312
18397
|
export type MediaMediaError = {
|
|
18313
18398
|
error: {
|
|
18314
|
-
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
18399
|
+
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
18315
18400
|
message: string;
|
|
18316
18401
|
details: string | null;
|
|
18317
18402
|
};
|
|
@@ -20792,7 +20877,7 @@ export type StudioPlatform = {
|
|
|
20792
20877
|
*/
|
|
20793
20878
|
available_from?: 's3' | 's5' | 's7';
|
|
20794
20879
|
/**
|
|
20795
|
-
* Limit names still unconfirmed against the platform documentation; treat the listed values as provisional.
|
|
20880
|
+
* Limit names still unconfirmed against the platform documentation; treat the listed values as provisional. A name here is spelled as the matching `limits` key is, so it can be looked up there.
|
|
20796
20881
|
*/
|
|
20797
20882
|
unverified?: Array<string>;
|
|
20798
20883
|
};
|
|
@@ -25183,6 +25268,73 @@ export type AgentSseData = {
|
|
|
25183
25268
|
*/
|
|
25184
25269
|
task_id: string | null;
|
|
25185
25270
|
}>;
|
|
25271
|
+
} | {
|
|
25272
|
+
/**
|
|
25273
|
+
* Text of the block.
|
|
25274
|
+
*/
|
|
25275
|
+
id: string;
|
|
25276
|
+
/**
|
|
25277
|
+
* Always `system.notification_suppressed`. Pending background notifications started no run because the session hit its wake quota; reason says which.
|
|
25278
|
+
*/
|
|
25279
|
+
type: 'system.notification_suppressed';
|
|
25280
|
+
/**
|
|
25281
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
25282
|
+
*/
|
|
25283
|
+
processed_at: string;
|
|
25284
|
+
/**
|
|
25285
|
+
* Text of the block.
|
|
25286
|
+
*/
|
|
25287
|
+
session_thread_id?: string;
|
|
25288
|
+
/**
|
|
25289
|
+
* The wake quota that held the batch.
|
|
25290
|
+
*/
|
|
25291
|
+
reason: 'hourly' | 'daily' | 'loop';
|
|
25292
|
+
/**
|
|
25293
|
+
* The pending system inputs that were dropped without a run.
|
|
25294
|
+
*/
|
|
25295
|
+
system_input_ids: Array<string>;
|
|
25296
|
+
/**
|
|
25297
|
+
* The distinct source kinds of those inputs, such as background_task or monitor.
|
|
25298
|
+
*/
|
|
25299
|
+
source_kinds: Array<string>;
|
|
25300
|
+
/**
|
|
25301
|
+
* A platform sentence that explains the pause; never the notification text.
|
|
25302
|
+
*/
|
|
25303
|
+
content: Array<{
|
|
25304
|
+
/**
|
|
25305
|
+
* Always `text`. A text block.
|
|
25306
|
+
*/
|
|
25307
|
+
type: 'text';
|
|
25308
|
+
/**
|
|
25309
|
+
* Text of the block.
|
|
25310
|
+
*/
|
|
25311
|
+
text: string;
|
|
25312
|
+
}>;
|
|
25313
|
+
} | {
|
|
25314
|
+
/**
|
|
25315
|
+
* Text of the block.
|
|
25316
|
+
*/
|
|
25317
|
+
id: string;
|
|
25318
|
+
/**
|
|
25319
|
+
* Always `system.notification_recorded`. Pending background notifications were recorded without a run because the agent has no model.
|
|
25320
|
+
*/
|
|
25321
|
+
type: 'system.notification_recorded';
|
|
25322
|
+
/**
|
|
25323
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
25324
|
+
*/
|
|
25325
|
+
processed_at: string;
|
|
25326
|
+
/**
|
|
25327
|
+
* Text of the block.
|
|
25328
|
+
*/
|
|
25329
|
+
session_thread_id?: string;
|
|
25330
|
+
/**
|
|
25331
|
+
* The pending system inputs that were recorded without a run.
|
|
25332
|
+
*/
|
|
25333
|
+
system_input_ids: Array<string>;
|
|
25334
|
+
/**
|
|
25335
|
+
* The distinct source kinds of those inputs.
|
|
25336
|
+
*/
|
|
25337
|
+
source_kinds: Array<string>;
|
|
25186
25338
|
} | {
|
|
25187
25339
|
/**
|
|
25188
25340
|
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
@@ -34947,9 +35099,9 @@ export type MediaChunkComplete = MediaAsset & {
|
|
|
34947
35099
|
*/
|
|
34948
35100
|
export type MediaProcessing = {
|
|
34949
35101
|
/**
|
|
34950
|
-
* Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
|
|
35102
|
+
* Current understanding stage: probe, proxy, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. proxy prepares the proxies a large source is understood through. Null after finalization; omitted on assets not yet dispatched.
|
|
34951
35103
|
*/
|
|
34952
|
-
readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
|
|
35104
|
+
readonly stage?: 'probe' | 'proxy' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
|
|
34953
35105
|
state: MediaProcessingState;
|
|
34954
35106
|
/**
|
|
34955
35107
|
* Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
|
|
@@ -35581,7 +35733,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
|
|
|
35581
35733
|
* Edit operations: the change this step applied to its parent asset.
|
|
35582
35734
|
*/
|
|
35583
35735
|
export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
|
|
35584
|
-
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
35736
|
+
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
35585
35737
|
/**
|
|
35586
35738
|
* State of a requested generation output.
|
|
35587
35739
|
*/
|
|
@@ -36136,11 +36288,11 @@ export type SandboxTemplateBuild = {
|
|
|
36136
36288
|
*/
|
|
36137
36289
|
export type ShareShareResource = {
|
|
36138
36290
|
/**
|
|
36139
|
-
* What kind of object is shared; file
|
|
36291
|
+
* What kind of object is shared; file, canvas and media_asset create today.
|
|
36140
36292
|
*/
|
|
36141
|
-
type: 'file' | 'artifact';
|
|
36293
|
+
type: 'file' | 'artifact' | 'canvas' | 'media_asset';
|
|
36142
36294
|
/**
|
|
36143
|
-
* Id of the object within its type
|
|
36295
|
+
* Id of the object within its type. For a file, the id from the File API; for a canvas, the canvas id (cvs_...); for a media_asset, library_id/asset_id with a real library id (lib_...), never the default alias. An object that does not exist in this organization answers 404 RESOURCE_NOT_FOUND.
|
|
36144
36296
|
*/
|
|
36145
36297
|
id: string;
|
|
36146
36298
|
};
|
|
@@ -42471,7 +42623,7 @@ export type MediaSemanticMatch = {
|
|
|
42471
42623
|
/**
|
|
42472
42624
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
42473
42625
|
*/
|
|
42474
|
-
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
42626
|
+
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
42475
42627
|
/**
|
|
42476
42628
|
* One picture an element names, with the word the caller uses for that view.
|
|
42477
42629
|
*/
|
|
@@ -47151,6 +47303,86 @@ export type GetAgentConsolidationResponses = {
|
|
|
47151
47303
|
};
|
|
47152
47304
|
};
|
|
47153
47305
|
export type GetAgentConsolidationResponse = GetAgentConsolidationResponses[keyof GetAgentConsolidationResponses];
|
|
47306
|
+
export type ListAgentInboxLettersData = {
|
|
47307
|
+
body?: never;
|
|
47308
|
+
path: {
|
|
47309
|
+
/**
|
|
47310
|
+
* The assume agent: its agent_… id, eight character identity number or handle, from agents.list or the praxis-assume MCP URL; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
47311
|
+
*/
|
|
47312
|
+
agent_id: string;
|
|
47313
|
+
};
|
|
47314
|
+
query?: {
|
|
47315
|
+
/**
|
|
47316
|
+
* Only true is accepted, which is also the default; this read lists waiting (unread) letters and nothing else.
|
|
47317
|
+
*/
|
|
47318
|
+
unread?: true;
|
|
47319
|
+
/**
|
|
47320
|
+
* How many of the newest unread letters to return, 1 to 50 (default 20); unread always counts every waiting letter.
|
|
47321
|
+
*/
|
|
47322
|
+
limit?: number;
|
|
47323
|
+
};
|
|
47324
|
+
url: '/agent/v1/agents/{agent_id}/inbox/letters';
|
|
47325
|
+
};
|
|
47326
|
+
export type ListAgentInboxLettersErrors = {
|
|
47327
|
+
/**
|
|
47328
|
+
* INVALID_PARAMS: limit is outside 1 to 50 or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not an assume agent, which is woken for mail by itself.
|
|
47329
|
+
*/
|
|
47330
|
+
400: unknown;
|
|
47331
|
+
/**
|
|
47332
|
+
* Authenticate with your organization API key or a console session.
|
|
47333
|
+
*/
|
|
47334
|
+
401: unknown;
|
|
47335
|
+
/**
|
|
47336
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
47337
|
+
*/
|
|
47338
|
+
403: AgentError;
|
|
47339
|
+
/**
|
|
47340
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
47341
|
+
*/
|
|
47342
|
+
404: unknown;
|
|
47343
|
+
/**
|
|
47344
|
+
* UPSTREAM_UNAVAILABLE: the letters could not be read right now; retry later.
|
|
47345
|
+
*/
|
|
47346
|
+
502: unknown;
|
|
47347
|
+
};
|
|
47348
|
+
export type ListAgentInboxLettersError = ListAgentInboxLettersErrors[keyof ListAgentInboxLettersErrors];
|
|
47349
|
+
export type ListAgentInboxLettersResponses = {
|
|
47350
|
+
/**
|
|
47351
|
+
* The waiting mail: the full unread count and the newest unread letters. Nothing was marked read.
|
|
47352
|
+
*/
|
|
47353
|
+
200: {
|
|
47354
|
+
/**
|
|
47355
|
+
* How many delivered letters the agent has not read yet; can exceed the number of letters returned.
|
|
47356
|
+
*/
|
|
47357
|
+
unread: number;
|
|
47358
|
+
/**
|
|
47359
|
+
* The newest unread letters, at most limit, newest first; empty when nothing waits.
|
|
47360
|
+
*/
|
|
47361
|
+
letters: Array<{
|
|
47362
|
+
/**
|
|
47363
|
+
* Letter id (ltr_…); the same id the agent's inbox tool shows when it reads the letter, so a notice can name exactly which letters it announced.
|
|
47364
|
+
*/
|
|
47365
|
+
id: string;
|
|
47366
|
+
/**
|
|
47367
|
+
* Sender address: human:<user id> for a person or agent:agent_<x> for an agent; a ticket mention carries the address of whoever mentioned the agent.
|
|
47368
|
+
*/
|
|
47369
|
+
sender: string;
|
|
47370
|
+
/**
|
|
47371
|
+
* The sender's one-line summary of the letter; the body is not returned here and is read with the agent's inbox tool.
|
|
47372
|
+
*/
|
|
47373
|
+
summary: string;
|
|
47374
|
+
/**
|
|
47375
|
+
* Thread the letter belongs to, such as ticket:<repository>:<number> for a ticket mention; null when the sender named none.
|
|
47376
|
+
*/
|
|
47377
|
+
thread: string | null;
|
|
47378
|
+
/**
|
|
47379
|
+
* When the letter was written, RFC 3339; letters are ordered newest first.
|
|
47380
|
+
*/
|
|
47381
|
+
create_time: string;
|
|
47382
|
+
}>;
|
|
47383
|
+
};
|
|
47384
|
+
};
|
|
47385
|
+
export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
|
|
47154
47386
|
export type ApplyAgentVersionData = {
|
|
47155
47387
|
body?: never;
|
|
47156
47388
|
path: {
|
|
@@ -55798,7 +56030,7 @@ export type ListSessionArtifactsResponses = {
|
|
|
55798
56030
|
*/
|
|
55799
56031
|
parts: Array<{
|
|
55800
56032
|
/**
|
|
55801
|
-
* Part type
|
|
56033
|
+
* Part type: a file the agent placed in the session's outputs directory.
|
|
55802
56034
|
*/
|
|
55803
56035
|
kind: 'file';
|
|
55804
56036
|
/**
|
|
@@ -55817,6 +56049,27 @@ export type ListSessionArtifactsResponses = {
|
|
|
55817
56049
|
* Size of the file in bytes; the downloaded content has exactly this length.
|
|
55818
56050
|
*/
|
|
55819
56051
|
bytes: number;
|
|
56052
|
+
} | {
|
|
56053
|
+
/**
|
|
56054
|
+
* Part type: a canvas or a media asset the agent's reply pointed at.
|
|
56055
|
+
*/
|
|
56056
|
+
kind: 'object';
|
|
56057
|
+
/**
|
|
56058
|
+
* canvas is a design canvas, whose content_url is a snapshot picture of it; media_asset is an asset of a media library, whose content_url is its own bytes.
|
|
56059
|
+
*/
|
|
56060
|
+
object_type: 'canvas' | 'media_asset';
|
|
56061
|
+
/**
|
|
56062
|
+
* The object's id: cvs_... for a canvas, <library_id>/<asset_id> for a media asset.
|
|
56063
|
+
*/
|
|
56064
|
+
object_id: string;
|
|
56065
|
+
/**
|
|
56066
|
+
* The address in the reply that pointed at the object, verbatim; open the object with content_url, not with this address.
|
|
56067
|
+
*/
|
|
56068
|
+
href: string;
|
|
56069
|
+
/**
|
|
56070
|
+
* What the reply called the object: the text of the link that carried the address, for a card to show. null when the address stood alone in the reply.
|
|
56071
|
+
*/
|
|
56072
|
+
title: string | null;
|
|
55820
56073
|
}>;
|
|
55821
56074
|
/**
|
|
55822
56075
|
* Link addresses from the reply text that point at this artifact, verbatim; render a link whose address equals one of these as this artifact.
|
|
@@ -92423,7 +92676,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
92423
92676
|
*/
|
|
92424
92677
|
404: DevopsDevOpsError;
|
|
92425
92678
|
/**
|
|
92426
|
-
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
|
|
92679
|
+
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
|
|
92427
92680
|
*/
|
|
92428
92681
|
409: DevopsDevOpsError;
|
|
92429
92682
|
/**
|
|
@@ -100494,11 +100747,11 @@ export type ShareListPermissionsData = {
|
|
|
100494
100747
|
path?: never;
|
|
100495
100748
|
query?: {
|
|
100496
100749
|
/**
|
|
100497
|
-
* Only shares of this object type; file
|
|
100750
|
+
* Only shares of this object type; file, canvas and media_asset create today.
|
|
100498
100751
|
*/
|
|
100499
|
-
resource_type?: 'file' | 'artifact';
|
|
100752
|
+
resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset';
|
|
100500
100753
|
/**
|
|
100501
|
-
* Only shares of the object with this id, for example a file id from the File API; combine with resource_type.
|
|
100754
|
+
* Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type.
|
|
100502
100755
|
*/
|
|
100503
100756
|
resource_id?: string;
|
|
100504
100757
|
/**
|
|
@@ -1020,8 +1020,8 @@ export const operations = [
|
|
|
1020
1020
|
{
|
|
1021
1021
|
"resource": "agent.agents.events",
|
|
1022
1022
|
"method": "stream",
|
|
1023
|
-
"summary": "Follow
|
|
1024
|
-
"description": "Follow
|
|
1023
|
+
"summary": "Follow an agent live",
|
|
1024
|
+
"description": "Follow an agent live over Server-Sent Events. For a personal or general agent it is the stream of your own main session with that agent, the same stream sessions.events.stream opens, event_deltas[] previews included; read past events with agents.events.list. An assume agent has no main session: its body is its MCP connections, and this stream is its broadcast point, which every live connection of the agent hears at once. It carries two events, each with an SSE id: inbox.letter_delivered { letter_id, sender, sender_name, summary, thread, create_time } when a letter arrives (the letter stays unread; take it with the agent's inbox tool, the body is not in the event), and cognition.ritual_held { ritual, owner, title, engram, create_time } when a domain gives the agent a memory. Reconnect with the Last-Event-ID header to receive what you missed from a short recent buffer (about an hour); a first connection replays nothing, so read agents.inbox.letters.list for mail already waiting. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service agent answers 400. Closing the stream only drops your subscription and does not stop the agent.",
|
|
1025
1025
|
"http": "GET",
|
|
1026
1026
|
"path": "/agent/v1/agents/{agent_id}/events/stream",
|
|
1027
1027
|
"streaming": "always",
|
|
@@ -1047,6 +1047,40 @@ export const operations = [
|
|
|
1047
1047
|
}
|
|
1048
1048
|
]
|
|
1049
1049
|
},
|
|
1050
|
+
{
|
|
1051
|
+
"resource": "agent.agents.inbox.letters",
|
|
1052
|
+
"method": "list",
|
|
1053
|
+
"summary": "List an assume agent's waiting letters",
|
|
1054
|
+
"description": "Check whether mail waits for an assume agent without taking it: answers unread, the count of delivered letters the agent has not read, and letters, the newest unread ones (id, sender address, summary, thread, create_time; never the body). Nothing is marked read, so calling it again answers the same until the agent reads its mail with its own inbox tool (praxis_assume_inbox, action \"read\"). Use it when something outside the agent has to learn that mail arrived: the local `praxis agent events wait` reads it once on start and after every reconnect to its agent's event stream, so no letter that arrived while nothing listened is missed. {agent_id} takes the agent_… id, the eight character identity number or the handle of an assume agent in your organization; any other kind answers 400 ASSUME_AGENT_REQUIRED. To read or answer the letters, use the agent's inbox tool, not this read. Example: GET /agent/v1/agents/R1M9TQ2X/inbox/letters?unread=true&limit=5.",
|
|
1055
|
+
"http": "GET",
|
|
1056
|
+
"path": "/agent/v1/agents/{agent_id}/inbox/letters",
|
|
1057
|
+
"streaming": "no",
|
|
1058
|
+
"pagination": false,
|
|
1059
|
+
"pathParams": [
|
|
1060
|
+
{
|
|
1061
|
+
"name": "agent_id",
|
|
1062
|
+
"sdkName": "agent_id",
|
|
1063
|
+
"description": "The assume agent: its agent_… id, eight character identity number or handle, from agents.list or the praxis-assume MCP URL; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"query": [
|
|
1067
|
+
{
|
|
1068
|
+
"name": "unread",
|
|
1069
|
+
"type": "boolean",
|
|
1070
|
+
"enum": [
|
|
1071
|
+
true
|
|
1072
|
+
],
|
|
1073
|
+
"required": false,
|
|
1074
|
+
"description": "Only true is accepted, which is also the default; this read lists waiting (unread) letters and nothing else."
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"name": "limit",
|
|
1078
|
+
"type": "integer",
|
|
1079
|
+
"required": false,
|
|
1080
|
+
"description": "How many of the newest unread letters to return, 1 to 50 (default 20); unread always counts every waiting letter."
|
|
1081
|
+
}
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1050
1084
|
{
|
|
1051
1085
|
"resource": "agent.agents.unarchive",
|
|
1052
1086
|
"method": "create",
|
|
@@ -2364,7 +2398,7 @@ export const operations = [
|
|
|
2364
2398
|
"resource": "agent.sessions.artifacts",
|
|
2365
2399
|
"method": "list",
|
|
2366
2400
|
"summary": "List Session Artifacts (Extension)",
|
|
2367
|
-
"description": "List the files this session delivered; an end-customer token reads its own session.\n\nOwn-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.",
|
|
2401
|
+
"description": "List the files this session delivered; an end-customer token reads its own session.\n\nOwn-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory, or one canvas or media asset the reply pointed at (a part with kind object carrying object_type, object_id and href; one artifact per object, pointing at it again adds no version), with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.",
|
|
2368
2402
|
"http": "GET",
|
|
2369
2403
|
"path": "/agent/v1/sessions/{session_id}/artifacts",
|
|
2370
2404
|
"streaming": "no",
|
|
@@ -2382,7 +2416,7 @@ export const operations = [
|
|
|
2382
2416
|
"resource": "agent.sessions.artifacts.contentUrl",
|
|
2383
2417
|
"method": "create",
|
|
2384
2418
|
"summary": "Create Artifact Content URL (Extension)",
|
|
2385
|
-
"description": "Mint a short-lived download address for one file of an artifact.\n\nOwn-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.",
|
|
2419
|
+
"description": "Mint a short-lived download address for one file of an artifact.\n\nOwn-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. For an object part the address serves a snapshot picture of a canvas or the own bytes of the asset; an object that no longer exists returns 404 ARTIFACT_NOT_FOUND and a failing share service returns 502. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.",
|
|
2386
2420
|
"http": "POST",
|
|
2387
2421
|
"path": "/agent/v1/sessions/{session_id}/artifacts/{artifact_id}/content_url",
|
|
2388
2422
|
"streaming": "no",
|
|
@@ -2587,7 +2621,7 @@ export const operations = [
|
|
|
2587
2621
|
"resource": "agent.sessions.events",
|
|
2588
2622
|
"method": "list",
|
|
2589
2623
|
"summary": "List session events",
|
|
2590
|
-
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2624
|
+
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, system.notification_suppressed (pending background notifications that hit the wake quota and started no run), system.notification_recorded, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2591
2625
|
"http": "GET",
|
|
2592
2626
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
2593
2627
|
"streaming": "no",
|
|
@@ -15081,7 +15115,7 @@ export const operations = [
|
|
|
15081
15115
|
"resource": "devops.units",
|
|
15082
15116
|
"method": "push",
|
|
15083
15117
|
"summary": "Push a unit's branch",
|
|
15084
|
-
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that
|
|
15118
|
+
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
|
|
15085
15119
|
"http": "POST",
|
|
15086
15120
|
"path": "/devops/v1/units/{id}:push",
|
|
15087
15121
|
"streaming": "no",
|
|
@@ -15416,7 +15450,7 @@ export const operations = [
|
|
|
15416
15450
|
"resource": "file.uploads",
|
|
15417
15451
|
"method": "createSigned",
|
|
15418
15452
|
"summary": "Create a one-time upload URL",
|
|
15419
|
-
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid
|
|
15453
|
+
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid or cross-organization URLs return 404, and so does a link whose upload record no longer exists. A URL that is authentic but names another action returns 403 CAPABILITY_MISMATCH: a status link posted to complete_url answers it, and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
|
|
15420
15454
|
"http": "POST",
|
|
15421
15455
|
"path": "/file/v1/uploads/signed",
|
|
15422
15456
|
"streaming": "no",
|
|
@@ -25570,16 +25604,18 @@ export const operations = [
|
|
|
25570
25604
|
"type": "string",
|
|
25571
25605
|
"enum": [
|
|
25572
25606
|
"file",
|
|
25573
|
-
"artifact"
|
|
25607
|
+
"artifact",
|
|
25608
|
+
"canvas",
|
|
25609
|
+
"media_asset"
|
|
25574
25610
|
],
|
|
25575
25611
|
"required": false,
|
|
25576
|
-
"description": "Only shares of this object type; file
|
|
25612
|
+
"description": "Only shares of this object type; file, canvas and media_asset create today."
|
|
25577
25613
|
},
|
|
25578
25614
|
{
|
|
25579
25615
|
"name": "resource_id",
|
|
25580
25616
|
"type": "string",
|
|
25581
25617
|
"required": false,
|
|
25582
|
-
"description": "Only shares of the object with this id, for example a file id from the File API; combine with resource_type."
|
|
25618
|
+
"description": "Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type."
|
|
25583
25619
|
},
|
|
25584
25620
|
{
|
|
25585
25621
|
"name": "status",
|