@deepraxis/sdk 0.1.1-dev.39dae15 → 0.1.1-dev.3e0e27f
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 +49 -1
- package/README.md +1 -1
- package/dist/automation.d.ts +7 -0
- package/dist/core/transport.js +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +121 -20
- package/dist/generated/sdk.gen.js +273 -19
- package/dist/generated/types.gen.d.ts +1733 -160
- package/dist/helpers/file-upload.d.ts +2 -2
- package/dist/operations.generated.d.ts +452 -66
- package/dist/operations.generated.js +551 -67
- package/dist/resources.generated.d.ts +112 -28
- package/dist/resources.generated.js +32 -0
- package/package.json +1 -1
|
@@ -1020,19 +1020,10 @@ export type OwnFileCreateFileRequest = {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
file: Blob | File;
|
|
1022
1022
|
/**
|
|
1023
|
-
* Purpose label stored with the file: user_data
|
|
1023
|
+
* Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
|
|
1024
1024
|
*/
|
|
1025
|
-
purpose: 'user_data' | '
|
|
1025
|
+
purpose: 'user_data' | 'vision';
|
|
1026
1026
|
expires_after?: OwnFileFileExpirationAfter;
|
|
1027
|
-
/**
|
|
1028
|
-
* Own-face extensions. Use at most one expiry setting.
|
|
1029
|
-
*/
|
|
1030
|
-
praxis?: {
|
|
1031
|
-
/**
|
|
1032
|
-
* Lifetime in seconds after creation, from 3600 through 7776000. Send as the multipart field praxis[expires_in_seconds]; mutually exclusive with expires_after.
|
|
1033
|
-
*/
|
|
1034
|
-
expires_in_seconds?: number;
|
|
1035
|
-
};
|
|
1036
1027
|
};
|
|
1037
1028
|
/**
|
|
1038
1029
|
* OpenAIFile
|
|
@@ -1067,7 +1058,7 @@ export type OwnFileOpenAiFile = {
|
|
|
1067
1058
|
/**
|
|
1068
1059
|
* Upload purpose. Image references in conversations require user_data.
|
|
1069
1060
|
*/
|
|
1070
|
-
purpose: 'user_data' | '
|
|
1061
|
+
purpose: 'user_data' | 'vision';
|
|
1071
1062
|
/**
|
|
1072
1063
|
* Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
|
|
1073
1064
|
*
|
|
@@ -1165,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
|
|
|
1165
1156
|
*/
|
|
1166
1157
|
mime_type: string;
|
|
1167
1158
|
/**
|
|
1168
|
-
* Use user_data for conversation attachments,
|
|
1159
|
+
* Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
|
|
1169
1160
|
*/
|
|
1170
|
-
purpose: 'user_data' | '
|
|
1161
|
+
purpose: 'user_data' | 'vision';
|
|
1171
1162
|
/**
|
|
1172
1163
|
* Optional expiry policy for the resulting file; omission retains the file until deletion.
|
|
1173
1164
|
*/
|
|
@@ -1212,9 +1203,9 @@ export type OwnFilePraxisUpload = {
|
|
|
1212
1203
|
*/
|
|
1213
1204
|
filename: string;
|
|
1214
1205
|
/**
|
|
1215
|
-
* File purpose: user_data for conversation attachments,
|
|
1206
|
+
* File purpose: user_data for conversation attachments, vision for images.
|
|
1216
1207
|
*/
|
|
1217
|
-
purpose: 'user_data' | '
|
|
1208
|
+
purpose: 'user_data' | 'vision';
|
|
1218
1209
|
/**
|
|
1219
1210
|
* Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
|
|
1220
1211
|
*/
|
|
@@ -5669,7 +5660,7 @@ export type AgentManaged251 = unknown & {
|
|
|
5669
5660
|
*/
|
|
5670
5661
|
behavior: 'allow';
|
|
5671
5662
|
/**
|
|
5672
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
5663
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
5673
5664
|
*/
|
|
5674
5665
|
destination: 'agent' | 'session';
|
|
5675
5666
|
/**
|
|
@@ -6054,6 +6045,40 @@ export type AgentSseEvent = ({
|
|
|
6054
6045
|
*/
|
|
6055
6046
|
type: 'session.status_terminated';
|
|
6056
6047
|
};
|
|
6048
|
+
} | {
|
|
6049
|
+
/**
|
|
6050
|
+
* Always `agent.thread_context_compacting`. SSE event name of this frame; its data is a agent.thread_context_compacting payload. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
|
|
6051
|
+
*/
|
|
6052
|
+
event?: 'agent.thread_context_compacting';
|
|
6053
|
+
/**
|
|
6054
|
+
* Decoded JSON payload of this frame; its shape is selected by the event name.
|
|
6055
|
+
*/
|
|
6056
|
+
data?: {
|
|
6057
|
+
/**
|
|
6058
|
+
* Text of the block.
|
|
6059
|
+
*/
|
|
6060
|
+
id: string;
|
|
6061
|
+
/**
|
|
6062
|
+
* Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
|
|
6063
|
+
*/
|
|
6064
|
+
type: 'agent.thread_context_compacting';
|
|
6065
|
+
/**
|
|
6066
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
6067
|
+
*/
|
|
6068
|
+
processed_at: string;
|
|
6069
|
+
/**
|
|
6070
|
+
* Text of the block.
|
|
6071
|
+
*/
|
|
6072
|
+
session_thread_id?: string;
|
|
6073
|
+
/**
|
|
6074
|
+
* Identifier of the manual operation or automatic compaction record that has started.
|
|
6075
|
+
*/
|
|
6076
|
+
compaction_id: string;
|
|
6077
|
+
/**
|
|
6078
|
+
* Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
|
|
6079
|
+
*/
|
|
6080
|
+
trigger: 'manual' | 'auto' | 'idle';
|
|
6081
|
+
};
|
|
6057
6082
|
} | {
|
|
6058
6083
|
/**
|
|
6059
6084
|
* Always `agent.thread_context_compacted`. SSE event name of this frame; its data is a agent.thread_context_compacted payload. The thread's context was compacted into a summary.
|
|
@@ -6400,7 +6425,7 @@ export type AgentSseEvent = ({
|
|
|
6400
6425
|
*/
|
|
6401
6426
|
behavior: 'allow';
|
|
6402
6427
|
/**
|
|
6403
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
6428
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
6404
6429
|
*/
|
|
6405
6430
|
destination: 'agent' | 'session';
|
|
6406
6431
|
/**
|
|
@@ -6568,7 +6593,7 @@ export type AgentSseEvent = ({
|
|
|
6568
6593
|
*/
|
|
6569
6594
|
behavior: 'allow';
|
|
6570
6595
|
/**
|
|
6571
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
6596
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
6572
6597
|
*/
|
|
6573
6598
|
destination: 'agent' | 'session';
|
|
6574
6599
|
/**
|
|
@@ -7453,7 +7478,7 @@ export type AgentSseEvent = ({
|
|
|
7453
7478
|
/**
|
|
7454
7479
|
* Server-Sent Events event name of this frame.
|
|
7455
7480
|
*/
|
|
7456
|
-
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_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';
|
|
7481
|
+
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';
|
|
7457
7482
|
data: AgentSseData;
|
|
7458
7483
|
};
|
|
7459
7484
|
export type AgentManaged256 = {
|
|
@@ -7923,9 +7948,9 @@ export type ApplicationApplicationError = {
|
|
|
7923
7948
|
*/
|
|
7924
7949
|
error: {
|
|
7925
7950
|
/**
|
|
7926
|
-
* Error code: *_NOT_FOUND (404; also for objects of another account), WORKER_NAME_TAKEN (409), WORKER_INVALID_STATE (409), DEPLOYMENT_IN_PROGRESS (409, retry later), INVALID_PARAMS (400), UNSUPPORTED (400, a Cloudflare feature this platform does not offer), LIMIT_EXCEEDED (400), DEPLOY_TIMEOUT (504), PROVIDER_FAILED (502), PROVIDER_CAPACITY (503), NOT_IMPLEMENTED (501).
|
|
7951
|
+
* Error code: *_NOT_FOUND (404; also for objects of another account), WORKER_NAME_TAKEN (409), GRANT_ALIAS_CONFLICT (409), GRANT_CONFLICT (409), WORKER_INVALID_STATE (409), DEPLOYMENT_IN_PROGRESS (409, retry later), INVALID_PARAMS (400), UNSUPPORTED (400, a Cloudflare feature this platform does not offer), LIMIT_EXCEEDED (400), DEPLOY_TIMEOUT (504), PROVIDER_FAILED (502), PROVIDER_CAPACITY (503), NOT_IMPLEMENTED (501).
|
|
7927
7952
|
*/
|
|
7928
|
-
code: 'WORKER_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'DEPLOYMENT_NOT_FOUND' | 'COMPONENT_NOT_FOUND' | 'SECRET_NOT_FOUND' | 'GRANT_NOT_FOUND' | 'RESOURCE_NOT_FOUND' | 'WORKER_NAME_TAKEN' | 'WORKER_INVALID_STATE' | 'DEPLOYMENT_IN_PROGRESS' | 'INVALID_PARAMS' | 'UNSUPPORTED' | 'LIMIT_EXCEEDED' | 'DEPLOY_TIMEOUT' | 'PROVIDER_FAILED' | 'PROVIDER_CAPACITY' | 'NOT_IMPLEMENTED';
|
|
7953
|
+
code: 'WORKER_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'DEPLOYMENT_NOT_FOUND' | 'COMPONENT_NOT_FOUND' | 'SECRET_NOT_FOUND' | 'GRANT_NOT_FOUND' | 'GRANT_ALIAS_CONFLICT' | 'GRANT_CONFLICT' | 'RESOURCE_NOT_FOUND' | 'WORKER_NAME_TAKEN' | 'WORKER_INVALID_STATE' | 'DEPLOYMENT_IN_PROGRESS' | 'INVALID_PARAMS' | 'UNSUPPORTED' | 'LIMIT_EXCEEDED' | 'DEPLOY_TIMEOUT' | 'PROVIDER_FAILED' | 'PROVIDER_CAPACITY' | 'NOT_IMPLEMENTED';
|
|
7929
7954
|
/**
|
|
7930
7955
|
* What went wrong.
|
|
7931
7956
|
*/
|
|
@@ -8589,14 +8614,18 @@ export type ApplicationGrant = {
|
|
|
8589
8614
|
/**
|
|
8590
8615
|
* Resource type.
|
|
8591
8616
|
*/
|
|
8592
|
-
type: 'database' | '
|
|
8617
|
+
type: 'database' | 'files' | 'knowledge' | 'models';
|
|
8593
8618
|
/**
|
|
8594
|
-
*
|
|
8619
|
+
* Database or knowledge base ID; * for files and models.
|
|
8595
8620
|
*/
|
|
8596
8621
|
id: string;
|
|
8597
8622
|
};
|
|
8598
8623
|
/**
|
|
8599
|
-
*
|
|
8624
|
+
* Optional name, unique within this Worker. Conflicts return GRANT_ALIAS_CONFLICT (409).
|
|
8625
|
+
*/
|
|
8626
|
+
alias?: string;
|
|
8627
|
+
/**
|
|
8628
|
+
* Access level; models accepts read only.
|
|
8600
8629
|
*/
|
|
8601
8630
|
access: 'read' | 'read_write';
|
|
8602
8631
|
/**
|
|
@@ -8606,20 +8635,24 @@ export type ApplicationGrant = {
|
|
|
8606
8635
|
};
|
|
8607
8636
|
export type ApplicationCreateGrantInput = {
|
|
8608
8637
|
/**
|
|
8609
|
-
* Resource to grant.
|
|
8638
|
+
* Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409).
|
|
8610
8639
|
*/
|
|
8611
8640
|
resource: {
|
|
8612
8641
|
/**
|
|
8613
8642
|
* Resource type.
|
|
8614
8643
|
*/
|
|
8615
|
-
type: 'database' | '
|
|
8644
|
+
type: 'database' | 'files' | 'knowledge' | 'models';
|
|
8616
8645
|
/**
|
|
8617
|
-
*
|
|
8646
|
+
* Database or knowledge base ID in your organization; * for files and models.
|
|
8618
8647
|
*/
|
|
8619
8648
|
id: string;
|
|
8620
8649
|
};
|
|
8621
8650
|
/**
|
|
8622
|
-
*
|
|
8651
|
+
* Optional name, unique within this Worker. Available for reuse after the grant is deleted.
|
|
8652
|
+
*/
|
|
8653
|
+
alias?: string;
|
|
8654
|
+
/**
|
|
8655
|
+
* Access level; models accepts read only.
|
|
8623
8656
|
*/
|
|
8624
8657
|
access: 'read' | 'read_write';
|
|
8625
8658
|
};
|
|
@@ -8726,7 +8759,7 @@ export type AutomationAutomationProblemDetails = {
|
|
|
8726
8759
|
title: string;
|
|
8727
8760
|
status: number;
|
|
8728
8761
|
detail: string;
|
|
8729
|
-
code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED';
|
|
8762
|
+
code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED' | 'HUMAN_TASK_NOT_FOUND' | 'TASK_CLOSED' | 'ALREADY_RESPONDED' | 'NOT_ASSIGNED' | 'SELF_APPROVAL' | 'AGENT_NOT_ALLOWED' | 'COMMENT_REQUIRED' | 'INVALID_ACTION' | 'INVALID_VALUES' | 'HUMAN_TASK_CANCELLED';
|
|
8730
8763
|
errors: Array<AutomationDiagnostic>;
|
|
8731
8764
|
issues: Array<AutomationCompatIssue>;
|
|
8732
8765
|
hint: string | null;
|
|
@@ -9598,7 +9631,7 @@ export type AutomationRun = {
|
|
|
9598
9631
|
*/
|
|
9599
9632
|
attach: null | 'wait' | 'detach';
|
|
9600
9633
|
/**
|
|
9601
|
-
* Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at
|
|
9634
|
+
* Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
|
|
9602
9635
|
*/
|
|
9603
9636
|
deadline_at: string;
|
|
9604
9637
|
/**
|
|
@@ -9792,7 +9825,7 @@ export type AutomationExpandedRun = {
|
|
|
9792
9825
|
*/
|
|
9793
9826
|
attach: null | 'wait' | 'detach';
|
|
9794
9827
|
/**
|
|
9795
|
-
* Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at
|
|
9828
|
+
* Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
|
|
9796
9829
|
*/
|
|
9797
9830
|
deadline_at: string;
|
|
9798
9831
|
/**
|
|
@@ -10743,6 +10776,415 @@ export type AutomationTriggerPreview = {
|
|
|
10743
10776
|
*/
|
|
10744
10777
|
next_fire_times: Array<string>;
|
|
10745
10778
|
};
|
|
10779
|
+
export type AutomationHumanTaskStatus = 'open' | 'completed' | 'expired' | 'cancelled';
|
|
10780
|
+
export type AutomationHumanTask = {
|
|
10781
|
+
/**
|
|
10782
|
+
* Human task ID (htask_), derived deterministically from the run and step; use it with retrieve, respond, cancel and delegate. The Console page is /automation/tasks/{id}.
|
|
10783
|
+
*/
|
|
10784
|
+
id: string;
|
|
10785
|
+
/**
|
|
10786
|
+
* ID of the organization that owns the task.
|
|
10787
|
+
*/
|
|
10788
|
+
owner: string;
|
|
10789
|
+
/**
|
|
10790
|
+
* ID of the workflow run (run_) that opened the task; the run continues once the task closes.
|
|
10791
|
+
*/
|
|
10792
|
+
run_id: string;
|
|
10793
|
+
/**
|
|
10794
|
+
* The published workflow of the run; null for an ad hoc run.
|
|
10795
|
+
*/
|
|
10796
|
+
workflow: {
|
|
10797
|
+
/**
|
|
10798
|
+
* Workflow namespace.
|
|
10799
|
+
*/
|
|
10800
|
+
namespace: string;
|
|
10801
|
+
/**
|
|
10802
|
+
* Workflow name.
|
|
10803
|
+
*/
|
|
10804
|
+
name: string;
|
|
10805
|
+
} | null;
|
|
10806
|
+
/**
|
|
10807
|
+
* JSON Pointer of the approval step in the workflow source, for example /do/1/approveRefund.
|
|
10808
|
+
*/
|
|
10809
|
+
task_reference: string;
|
|
10810
|
+
/**
|
|
10811
|
+
* ID of the run's wait (wait_htask_); it closes only through respond, never through the run wait completion endpoint.
|
|
10812
|
+
*/
|
|
10813
|
+
wait_id: string;
|
|
10814
|
+
/**
|
|
10815
|
+
* Task kind; currently only approval.
|
|
10816
|
+
*/
|
|
10817
|
+
kind: 'approval';
|
|
10818
|
+
/**
|
|
10819
|
+
* Approval title, at most 200 characters.
|
|
10820
|
+
*/
|
|
10821
|
+
title: string;
|
|
10822
|
+
/**
|
|
10823
|
+
* Markdown details for the assignees, up to 16 KiB; empty string when not given.
|
|
10824
|
+
*/
|
|
10825
|
+
body: string;
|
|
10826
|
+
/**
|
|
10827
|
+
* JSON context the workflow attached (for example the order), up to 32 KiB; null when not given.
|
|
10828
|
+
*/
|
|
10829
|
+
context: AutomationJsonValue;
|
|
10830
|
+
/**
|
|
10831
|
+
* The 1–6 buttons an assignee chooses from; defaults to approve and reject.
|
|
10832
|
+
*/
|
|
10833
|
+
actions: Array<AutomationHumanTaskAction>;
|
|
10834
|
+
/**
|
|
10835
|
+
* The form an assignee fills in (a JSON Schema subset - an object with at most 30 string, number, integer, boolean or enum fields); null when there is no form.
|
|
10836
|
+
*/
|
|
10837
|
+
form_schema: AutomationJsonObject | null;
|
|
10838
|
+
/**
|
|
10839
|
+
* The assignees.
|
|
10840
|
+
*/
|
|
10841
|
+
assignees: {
|
|
10842
|
+
/**
|
|
10843
|
+
* Assignee user IDs, 1–20; sequential mode follows this order. Delegation replaces an entry in place.
|
|
10844
|
+
*/
|
|
10845
|
+
users: Array<string>;
|
|
10846
|
+
/**
|
|
10847
|
+
* Group assignment; not supported yet, always an empty array.
|
|
10848
|
+
*/
|
|
10849
|
+
groups: Array<string>;
|
|
10850
|
+
};
|
|
10851
|
+
/**
|
|
10852
|
+
* Decision rule. any: the first response decides. all: everyone must respond and any rejection rejects at once. quorum: quorum approvals approve, and it rejects once that many approvals are no longer possible. sequential: assignees respond in users order; any rejection rejects at once and the last approval approves.
|
|
10853
|
+
*/
|
|
10854
|
+
mode: 'any' | 'all' | 'quorum' | 'sequential';
|
|
10855
|
+
/**
|
|
10856
|
+
* Number of approvals required in quorum mode; null in other modes.
|
|
10857
|
+
*/
|
|
10858
|
+
quorum: number | null;
|
|
10859
|
+
/**
|
|
10860
|
+
* When true, the person who started the run may respond to their own request; false by default.
|
|
10861
|
+
*/
|
|
10862
|
+
allow_self_approval: boolean;
|
|
10863
|
+
/**
|
|
10864
|
+
* When true, an agent (agent session or run token) may respond; false by default.
|
|
10865
|
+
*/
|
|
10866
|
+
allow_agent_decision: boolean;
|
|
10867
|
+
/**
|
|
10868
|
+
* The subject that started the run.
|
|
10869
|
+
*/
|
|
10870
|
+
initiator: {
|
|
10871
|
+
/**
|
|
10872
|
+
* Initiator type: user, api_key, agent, run (a parent run) or trigger.
|
|
10873
|
+
*/
|
|
10874
|
+
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
10875
|
+
/**
|
|
10876
|
+
* Initiator ID.
|
|
10877
|
+
*/
|
|
10878
|
+
id: string;
|
|
10879
|
+
/**
|
|
10880
|
+
* The user behind the initiator (the owner of an API key or trigger), null when unknown; the self-approval rule uses it.
|
|
10881
|
+
*/
|
|
10882
|
+
user_id: string | null;
|
|
10883
|
+
};
|
|
10884
|
+
/**
|
|
10885
|
+
* Due time (RFC 3339); defaults to 3 days after creation, at most 30 days and never later than the run's deadline. on_timeout applies when it passes.
|
|
10886
|
+
*/
|
|
10887
|
+
due_at: string;
|
|
10888
|
+
/**
|
|
10889
|
+
* What happens at due_at.
|
|
10890
|
+
*/
|
|
10891
|
+
on_timeout: {
|
|
10892
|
+
/**
|
|
10893
|
+
* reject: the workflow receives decision timeout:reject. approve: it receives timeout:approve. fault (default): the step raises a timeout error that try/catch can catch.
|
|
10894
|
+
*/
|
|
10895
|
+
action: 'reject' | 'approve' | 'fault';
|
|
10896
|
+
};
|
|
10897
|
+
/**
|
|
10898
|
+
* Reminder intervals (ISO 8601 durations, up to 3); stored, not yet sent in this version.
|
|
10899
|
+
*/
|
|
10900
|
+
remind: Array<string>;
|
|
10901
|
+
/**
|
|
10902
|
+
* Notification channels: console or email; stored, delivery is not wired yet.
|
|
10903
|
+
*/
|
|
10904
|
+
channels: Array<'console' | 'email'>;
|
|
10905
|
+
/**
|
|
10906
|
+
* An agent's proposal (any JSON up to 32 KiB) for the assignees to consider; null when not given.
|
|
10907
|
+
*/
|
|
10908
|
+
proposal: AutomationJsonValue;
|
|
10909
|
+
/**
|
|
10910
|
+
* open: awaiting responses. completed: decided. expired: due_at passed. cancelled: withdrawn, including automatically when the run ended.
|
|
10911
|
+
*/
|
|
10912
|
+
status: AutomationHumanTaskStatus;
|
|
10913
|
+
/**
|
|
10914
|
+
* Responses submitted so far, in order.
|
|
10915
|
+
*/
|
|
10916
|
+
responses: Array<AutomationHumanTaskResponse>;
|
|
10917
|
+
/**
|
|
10918
|
+
* The decision, which is also the workflow step's output; null while open, and after a fault timeout or cancellation.
|
|
10919
|
+
*/
|
|
10920
|
+
outcome: AutomationHumanTaskOutcome | null;
|
|
10921
|
+
/**
|
|
10922
|
+
* Creation time (RFC 3339).
|
|
10923
|
+
*/
|
|
10924
|
+
created_at: string;
|
|
10925
|
+
/**
|
|
10926
|
+
* Last change time (RFC 3339).
|
|
10927
|
+
*/
|
|
10928
|
+
updated_at: string;
|
|
10929
|
+
};
|
|
10930
|
+
export type AutomationHumanTaskRespondInput = {
|
|
10931
|
+
/**
|
|
10932
|
+
* The chosen action ID from the task's actions, for example approve.
|
|
10933
|
+
*/
|
|
10934
|
+
action_id: string;
|
|
10935
|
+
/**
|
|
10936
|
+
* Form values matching the task's form_schema; omit or pass {} when there is no form.
|
|
10937
|
+
*/
|
|
10938
|
+
values?: AutomationJsonObject;
|
|
10939
|
+
/**
|
|
10940
|
+
* Comment of at most 4000 characters; required when the action has require_comment true.
|
|
10941
|
+
*/
|
|
10942
|
+
comment?: string;
|
|
10943
|
+
};
|
|
10944
|
+
export type AutomationHumanTaskCancelInput = {
|
|
10945
|
+
/**
|
|
10946
|
+
* Optional cancellation reason, at most 500 characters.
|
|
10947
|
+
*/
|
|
10948
|
+
reason?: string;
|
|
10949
|
+
};
|
|
10950
|
+
export type AutomationHumanTaskDelegateInput = {
|
|
10951
|
+
/**
|
|
10952
|
+
* User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed.
|
|
10953
|
+
*/
|
|
10954
|
+
to_user: string;
|
|
10955
|
+
};
|
|
10956
|
+
export type CanvasCreateCanvasInput = {
|
|
10957
|
+
/**
|
|
10958
|
+
* Display name for the new canvas, at most 200 characters; omission uses Untitled.
|
|
10959
|
+
*/
|
|
10960
|
+
name?: string;
|
|
10961
|
+
};
|
|
10962
|
+
export type CanvasCanvas = {
|
|
10963
|
+
/**
|
|
10964
|
+
* Assigned canvas identifier, cvs_ followed by 16 lowercase letters or digits; reuse it as canvas_id in subsequent requests.
|
|
10965
|
+
*/
|
|
10966
|
+
id: string;
|
|
10967
|
+
/**
|
|
10968
|
+
* Resource discriminator; canvas identifies a design canvas.
|
|
10969
|
+
*/
|
|
10970
|
+
object: 'canvas';
|
|
10971
|
+
/**
|
|
10972
|
+
* Display name supplied at creation; defaults to Untitled if omitted and is not an API identifier.
|
|
10973
|
+
*/
|
|
10974
|
+
name: string;
|
|
10975
|
+
version: CanvasVersion;
|
|
10976
|
+
/**
|
|
10977
|
+
* Number of visible top-level frames in this canvas; hidden frames do not contribute.
|
|
10978
|
+
*/
|
|
10979
|
+
page_count: number;
|
|
10980
|
+
/**
|
|
10981
|
+
* Total number of design nodes currently in the canvas.
|
|
10982
|
+
*/
|
|
10983
|
+
node_count: number;
|
|
10984
|
+
/**
|
|
10985
|
+
* ISO 8601 timestamp recording when this canvas was created.
|
|
10986
|
+
*/
|
|
10987
|
+
created_at: string;
|
|
10988
|
+
/**
|
|
10989
|
+
* ISO 8601 timestamp of the latest canvas update; list orders canvases newest first by this value.
|
|
10990
|
+
*/
|
|
10991
|
+
updated_at: string;
|
|
10992
|
+
/**
|
|
10993
|
+
* Console URL where a person can watch this canvas update live; open it to review drawing results.
|
|
10994
|
+
*/
|
|
10995
|
+
viewer_url: string;
|
|
10996
|
+
};
|
|
10997
|
+
export type CanvasCanvasPage = {
|
|
10998
|
+
/**
|
|
10999
|
+
* Canvases accessible to the API key's organization, ordered by updated_at descending.
|
|
11000
|
+
*/
|
|
11001
|
+
data: Array<CanvasCanvas>;
|
|
11002
|
+
/**
|
|
11003
|
+
* Opaque cursor to pass as cursor on the next list request; null means no more results.
|
|
11004
|
+
*/
|
|
11005
|
+
next_cursor: string | null;
|
|
11006
|
+
};
|
|
11007
|
+
export type CanvasCanvasDetail = CanvasCanvas & {
|
|
11008
|
+
/**
|
|
11009
|
+
* Summaries of top-level nodes in canvas order; use their ids to read full node documents or render images.
|
|
11010
|
+
*/
|
|
11011
|
+
frames: Array<CanvasFrame>;
|
|
11012
|
+
/**
|
|
11013
|
+
* Reusable components in this canvas; use their ids when inspecting or referencing component designs.
|
|
11014
|
+
*/
|
|
11015
|
+
components: Array<{
|
|
11016
|
+
/**
|
|
11017
|
+
* Node identifier of the reusable component; usable in node reads and script references.
|
|
11018
|
+
*/
|
|
11019
|
+
id: string;
|
|
11020
|
+
/**
|
|
11021
|
+
* Display name of the reusable component for choosing which design to reuse.
|
|
11022
|
+
*/
|
|
11023
|
+
name: string;
|
|
11024
|
+
}>;
|
|
11025
|
+
};
|
|
11026
|
+
export type CanvasDeletedCanvas = {
|
|
11027
|
+
/**
|
|
11028
|
+
* Identifier of the canvas that was permanently deleted by this request.
|
|
11029
|
+
*/
|
|
11030
|
+
id: string;
|
|
11031
|
+
/**
|
|
11032
|
+
* Resource discriminator; canvas identifies the deleted design canvas.
|
|
11033
|
+
*/
|
|
11034
|
+
object: 'canvas';
|
|
11035
|
+
/**
|
|
11036
|
+
* Always true on successful permanent deletion; this content cannot be restored.
|
|
11037
|
+
*/
|
|
11038
|
+
deleted: true;
|
|
11039
|
+
};
|
|
11040
|
+
export type CanvasNodesResult = {
|
|
11041
|
+
version: CanvasVersion;
|
|
11042
|
+
/**
|
|
11043
|
+
* Map keyed by each requested node id or instance path; null means that id was not found.
|
|
11044
|
+
*/
|
|
11045
|
+
nodes: {
|
|
11046
|
+
[key: string]: {
|
|
11047
|
+
/**
|
|
11048
|
+
* Pencil .pen 2.21 node content, with descendants limited by depth when specified; use these design properties when preparing edits.
|
|
11049
|
+
*/
|
|
11050
|
+
document: CanvasPenNode;
|
|
11051
|
+
} | null;
|
|
11052
|
+
};
|
|
11053
|
+
};
|
|
11054
|
+
export type CanvasImagesResult = {
|
|
11055
|
+
/**
|
|
11056
|
+
* Always null for a successful render response; request failures use the error envelope with a non-2xx status.
|
|
11057
|
+
*/
|
|
11058
|
+
err: null;
|
|
11059
|
+
/**
|
|
11060
|
+
* Map keyed by requested node id, containing a PNG data URL or null when an image is unavailable; these are inline images rather than hosted URLs.
|
|
11061
|
+
*/
|
|
11062
|
+
images: {
|
|
11063
|
+
[key: string]: string | null;
|
|
11064
|
+
};
|
|
11065
|
+
};
|
|
11066
|
+
export type CanvasCanvasError = {
|
|
11067
|
+
/**
|
|
11068
|
+
* Failure details for a non-2xx response; choose a recovery action using the operation's status and code description.
|
|
11069
|
+
*/
|
|
11070
|
+
error: {
|
|
11071
|
+
/**
|
|
11072
|
+
* Machine-readable failure category; see this operation's error responses for triggering conditions and recovery actions.
|
|
11073
|
+
*/
|
|
11074
|
+
code: string;
|
|
11075
|
+
/**
|
|
11076
|
+
* Human-readable explanation of why the request failed; use code and details for programmatic recovery.
|
|
11077
|
+
*/
|
|
11078
|
+
message: string;
|
|
11079
|
+
/**
|
|
11080
|
+
* Optional error-specific context; script failures provide edit_id with optional line, column and rejection, and REVISION_CONFLICT provides the current version.
|
|
11081
|
+
*/
|
|
11082
|
+
details?: {
|
|
11083
|
+
/**
|
|
11084
|
+
* Saved failed script id, valid for ten minutes; send it with edits to repair and rerun without resending the complete source.
|
|
11085
|
+
*/
|
|
11086
|
+
edit_id?: string;
|
|
11087
|
+
/**
|
|
11088
|
+
* Optional source line reported for the script failure; use it to locate text for an edit.
|
|
11089
|
+
*/
|
|
11090
|
+
line?: number;
|
|
11091
|
+
/**
|
|
11092
|
+
* Optional source column reported for the script failure; use it with line to locate the problem.
|
|
11093
|
+
*/
|
|
11094
|
+
column?: number;
|
|
11095
|
+
/**
|
|
11096
|
+
* Optional operation rejection information; inspect it to correct the rejected design operation.
|
|
11097
|
+
*/
|
|
11098
|
+
rejection?: unknown;
|
|
11099
|
+
/**
|
|
11100
|
+
* Current decimal revision on REVISION_CONFLICT; retrieve and merge the current canvas before retrying a guarded write.
|
|
11101
|
+
*/
|
|
11102
|
+
version?: string;
|
|
11103
|
+
[key: string]: unknown;
|
|
11104
|
+
};
|
|
11105
|
+
};
|
|
11106
|
+
};
|
|
11107
|
+
export type CanvasExecuteInput = unknown & {
|
|
11108
|
+
/**
|
|
11109
|
+
* New synchronous Pencil execute source using document as the root; provide this or edit_id, never both. See the operation's first-frame example.
|
|
11110
|
+
*/
|
|
11111
|
+
script?: string;
|
|
11112
|
+
/**
|
|
11113
|
+
* Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure.
|
|
11114
|
+
*/
|
|
11115
|
+
edit_id?: string;
|
|
11116
|
+
/**
|
|
11117
|
+
* Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction.
|
|
11118
|
+
*/
|
|
11119
|
+
edits?: Array<{
|
|
11120
|
+
/**
|
|
11121
|
+
* Literal text to locate in the failed source saved under edit_id.
|
|
11122
|
+
*/
|
|
11123
|
+
find: string;
|
|
11124
|
+
/**
|
|
11125
|
+
* Corrected text to substitute for the matched find text before execution.
|
|
11126
|
+
*/
|
|
11127
|
+
replace: string;
|
|
11128
|
+
/**
|
|
11129
|
+
* Set true to replace every occurrence of find; omitted or false requires find to occur exactly once, and a missing or repeated match fails the retry without applying anything.
|
|
11130
|
+
*/
|
|
11131
|
+
all?: boolean;
|
|
11132
|
+
}>;
|
|
11133
|
+
/**
|
|
11134
|
+
* Revision from retrieve, nodes.list or the previous execute response; omit for an unguarded write. A mismatch returns 409 REVISION_CONFLICT with details.version.
|
|
11135
|
+
*/
|
|
11136
|
+
expected_version?: string;
|
|
11137
|
+
};
|
|
11138
|
+
export type CanvasExecuteResult = {
|
|
11139
|
+
version: CanvasVersion;
|
|
11140
|
+
/**
|
|
11141
|
+
* Number of design operations performed by the committed script.
|
|
11142
|
+
*/
|
|
11143
|
+
operation_count: number;
|
|
11144
|
+
/**
|
|
11145
|
+
* Map from created result names to node identifiers; reuse the ids in nodes.list, images.list or subsequent scripts.
|
|
11146
|
+
*/
|
|
11147
|
+
created: {
|
|
11148
|
+
[key: string]: string;
|
|
11149
|
+
};
|
|
11150
|
+
/**
|
|
11151
|
+
* String outputs produced by Print calls in script execution order.
|
|
11152
|
+
*/
|
|
11153
|
+
prints: Array<string>;
|
|
11154
|
+
/**
|
|
11155
|
+
* Non-fatal design warnings from this execution; writes have committed, so inspect the affected nodes before making another edit.
|
|
11156
|
+
*/
|
|
11157
|
+
warnings: Array<{
|
|
11158
|
+
/**
|
|
11159
|
+
* Machine-readable warning category identifying what to inspect in the design.
|
|
11160
|
+
*/
|
|
11161
|
+
code: string;
|
|
11162
|
+
/**
|
|
11163
|
+
* Identifier of the node to inspect with nodes.list or images.list.
|
|
11164
|
+
*/
|
|
11165
|
+
node_id: string;
|
|
11166
|
+
/**
|
|
11167
|
+
* Human-readable explanation of the design issue and its context.
|
|
11168
|
+
*/
|
|
11169
|
+
message: string;
|
|
11170
|
+
}>;
|
|
11171
|
+
/**
|
|
11172
|
+
* Node ids requested through TakeScreenshot; call images.list with up to four ids to obtain the actual PNG images.
|
|
11173
|
+
*/
|
|
11174
|
+
screenshots: Array<string>;
|
|
11175
|
+
/**
|
|
11176
|
+
* Identifiers of top-level frames affected by the script; render these frames to review the edit.
|
|
11177
|
+
*/
|
|
11178
|
+
touched_frames: Array<string>;
|
|
11179
|
+
/**
|
|
11180
|
+
* Global variable names still available for reuse in the next execute call on this canvas.
|
|
11181
|
+
*/
|
|
11182
|
+
globals: Array<string>;
|
|
11183
|
+
/**
|
|
11184
|
+
* Console URL where a person can watch the canvas and inspect the committed visual result live.
|
|
11185
|
+
*/
|
|
11186
|
+
viewer_url: string;
|
|
11187
|
+
};
|
|
10746
11188
|
export type DatabaseCreateDatabaseInput = {
|
|
10747
11189
|
/**
|
|
10748
11190
|
* Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.
|
|
@@ -10907,7 +11349,7 @@ export type DatabaseNewField = {
|
|
|
10907
11349
|
*/
|
|
10908
11350
|
unique?: boolean;
|
|
10909
11351
|
/**
|
|
10910
|
-
* Whether to maintain an index for faster filters and ordering. Defaults to
|
|
11352
|
+
* Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
|
|
10911
11353
|
*/
|
|
10912
11354
|
indexed?: boolean;
|
|
10913
11355
|
/**
|
|
@@ -10942,7 +11384,7 @@ export type DatabaseNewField = {
|
|
|
10942
11384
|
*/
|
|
10943
11385
|
unique?: boolean;
|
|
10944
11386
|
/**
|
|
10945
|
-
* Whether to maintain an index for faster filters and ordering. Defaults to
|
|
11387
|
+
* Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
|
|
10946
11388
|
*/
|
|
10947
11389
|
indexed?: boolean;
|
|
10948
11390
|
/**
|
|
@@ -10982,7 +11424,7 @@ export type DatabaseNewField = {
|
|
|
10982
11424
|
*/
|
|
10983
11425
|
unique?: boolean;
|
|
10984
11426
|
/**
|
|
10985
|
-
* Whether to maintain an index for faster filters and ordering. Defaults to
|
|
11427
|
+
* Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
|
|
10986
11428
|
*/
|
|
10987
11429
|
indexed?: boolean;
|
|
10988
11430
|
/**
|
|
@@ -13694,7 +14136,7 @@ export type OwnFileFileExpirationAfter = {
|
|
|
13694
14136
|
*/
|
|
13695
14137
|
anchor: 'created_at';
|
|
13696
14138
|
/**
|
|
13697
|
-
* Lifetime in seconds after creation, from 3600 through
|
|
14139
|
+
* Lifetime in seconds after creation, from 3600 through 7776000. Send as expires_after[seconds].
|
|
13698
14140
|
*/
|
|
13699
14141
|
seconds: number;
|
|
13700
14142
|
};
|
|
@@ -18895,7 +19337,7 @@ export type AgentManaged89 = {
|
|
|
18895
19337
|
type: 'text';
|
|
18896
19338
|
};
|
|
18897
19339
|
/**
|
|
18898
|
-
*
|
|
19340
|
+
* Conversation model; required on creation except for kind assume. Forbidden and omitted on assume agents, which are driven by an external MCP client.
|
|
18899
19341
|
*/
|
|
18900
19342
|
export type AgentManaged38 = {
|
|
18901
19343
|
/**
|
|
@@ -19211,6 +19653,31 @@ export type AgentSseData = {
|
|
|
19211
19653
|
* Always `session.status_terminated`. The session ended and accepts no more work.
|
|
19212
19654
|
*/
|
|
19213
19655
|
type: 'session.status_terminated';
|
|
19656
|
+
} | {
|
|
19657
|
+
/**
|
|
19658
|
+
* Text of the block.
|
|
19659
|
+
*/
|
|
19660
|
+
id: string;
|
|
19661
|
+
/**
|
|
19662
|
+
* Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
|
|
19663
|
+
*/
|
|
19664
|
+
type: 'agent.thread_context_compacting';
|
|
19665
|
+
/**
|
|
19666
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
19667
|
+
*/
|
|
19668
|
+
processed_at: string;
|
|
19669
|
+
/**
|
|
19670
|
+
* Text of the block.
|
|
19671
|
+
*/
|
|
19672
|
+
session_thread_id?: string;
|
|
19673
|
+
/**
|
|
19674
|
+
* Identifier of the manual operation or automatic compaction record that has started.
|
|
19675
|
+
*/
|
|
19676
|
+
compaction_id: string;
|
|
19677
|
+
/**
|
|
19678
|
+
* Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
|
|
19679
|
+
*/
|
|
19680
|
+
trigger: 'manual' | 'auto' | 'idle';
|
|
19214
19681
|
} | {
|
|
19215
19682
|
/**
|
|
19216
19683
|
* Unique identifier for this event.
|
|
@@ -19486,7 +19953,7 @@ export type AgentSseData = {
|
|
|
19486
19953
|
*/
|
|
19487
19954
|
behavior: 'allow';
|
|
19488
19955
|
/**
|
|
19489
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
19956
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
19490
19957
|
*/
|
|
19491
19958
|
destination: 'agent' | 'session';
|
|
19492
19959
|
/**
|
|
@@ -19636,7 +20103,7 @@ export type AgentSseData = {
|
|
|
19636
20103
|
*/
|
|
19637
20104
|
behavior: 'allow';
|
|
19638
20105
|
/**
|
|
19639
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
20106
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
19640
20107
|
*/
|
|
19641
20108
|
destination: 'agent' | 'session';
|
|
19642
20109
|
/**
|
|
@@ -21332,6 +21799,128 @@ export type AutomationAttributedUsage = {
|
|
|
21332
21799
|
*/
|
|
21333
21800
|
pending_events: number;
|
|
21334
21801
|
};
|
|
21802
|
+
export type AutomationHumanTaskAction = {
|
|
21803
|
+
/**
|
|
21804
|
+
* Action ID to pass as action_id to respond; starts with a lowercase letter, at most 32 characters.
|
|
21805
|
+
*/
|
|
21806
|
+
id: string;
|
|
21807
|
+
/**
|
|
21808
|
+
* Button label.
|
|
21809
|
+
*/
|
|
21810
|
+
label: string;
|
|
21811
|
+
/**
|
|
21812
|
+
* primary: the main button. danger: a destructive button, which is the rejection in all, quorum and sequential modes. default: a plain button.
|
|
21813
|
+
*/
|
|
21814
|
+
style: 'primary' | 'danger' | 'default';
|
|
21815
|
+
/**
|
|
21816
|
+
* When true, choosing this action requires a comment.
|
|
21817
|
+
*/
|
|
21818
|
+
require_comment: boolean;
|
|
21819
|
+
};
|
|
21820
|
+
export type AutomationHumanTaskResponse = {
|
|
21821
|
+
/**
|
|
21822
|
+
* Who responded.
|
|
21823
|
+
*/
|
|
21824
|
+
actor: AutomationHumanTaskActor;
|
|
21825
|
+
/**
|
|
21826
|
+
* The chosen action ID.
|
|
21827
|
+
*/
|
|
21828
|
+
action_id: string;
|
|
21829
|
+
/**
|
|
21830
|
+
* Submitted form values; an empty object when there is no form.
|
|
21831
|
+
*/
|
|
21832
|
+
values: AutomationJsonObject;
|
|
21833
|
+
/**
|
|
21834
|
+
* Comment; null when none.
|
|
21835
|
+
*/
|
|
21836
|
+
comment: string | null;
|
|
21837
|
+
/**
|
|
21838
|
+
* Where it came from: console, api (the public API) or agent.
|
|
21839
|
+
*/
|
|
21840
|
+
via: 'console' | 'api' | 'agent';
|
|
21841
|
+
/**
|
|
21842
|
+
* Submission time (RFC 3339).
|
|
21843
|
+
*/
|
|
21844
|
+
at: string;
|
|
21845
|
+
};
|
|
21846
|
+
export type AutomationHumanTaskOutcome = {
|
|
21847
|
+
/**
|
|
21848
|
+
* The deciding action ID, or timeout:reject / timeout:approve when on_timeout decided.
|
|
21849
|
+
*/
|
|
21850
|
+
decision: string;
|
|
21851
|
+
/**
|
|
21852
|
+
* Form values of the deciding response; an empty object on timeout.
|
|
21853
|
+
*/
|
|
21854
|
+
values: AutomationJsonObject;
|
|
21855
|
+
/**
|
|
21856
|
+
* Comment of the deciding response; null on timeout.
|
|
21857
|
+
*/
|
|
21858
|
+
comment: string | null;
|
|
21859
|
+
/**
|
|
21860
|
+
* Who decided; null on timeout.
|
|
21861
|
+
*/
|
|
21862
|
+
decided_by: AutomationHumanTaskActor | null;
|
|
21863
|
+
/**
|
|
21864
|
+
* All responses at the time the task closed.
|
|
21865
|
+
*/
|
|
21866
|
+
responses: Array<AutomationHumanTaskResponse>;
|
|
21867
|
+
};
|
|
21868
|
+
/**
|
|
21869
|
+
* Current revision as a decimal string, incremented by one after each successful write; pass it as expected_version to guard a subsequent execute call.
|
|
21870
|
+
*/
|
|
21871
|
+
export type CanvasVersion = string;
|
|
21872
|
+
export type CanvasFrame = {
|
|
21873
|
+
/**
|
|
21874
|
+
* Top-level node identifier; use in nodes.list, images.list or an execute script.
|
|
21875
|
+
*/
|
|
21876
|
+
id: string;
|
|
21877
|
+
/**
|
|
21878
|
+
* Human-readable node name, or null if no name is assigned.
|
|
21879
|
+
*/
|
|
21880
|
+
name: string | null;
|
|
21881
|
+
/**
|
|
21882
|
+
* Pencil node kind for this top-level item, such as frame or group; read nodes.list for its full content.
|
|
21883
|
+
*/
|
|
21884
|
+
type: string;
|
|
21885
|
+
/**
|
|
21886
|
+
* Horizontal position of the top-level node on the canvas, in design pixels.
|
|
21887
|
+
*/
|
|
21888
|
+
x: number;
|
|
21889
|
+
/**
|
|
21890
|
+
* Vertical position of the top-level node on the canvas, in design pixels.
|
|
21891
|
+
*/
|
|
21892
|
+
y: number;
|
|
21893
|
+
/**
|
|
21894
|
+
* Current width of the top-level node in design pixels.
|
|
21895
|
+
*/
|
|
21896
|
+
width: number;
|
|
21897
|
+
/**
|
|
21898
|
+
* Current height of the top-level node in design pixels.
|
|
21899
|
+
*/
|
|
21900
|
+
height: number;
|
|
21901
|
+
/**
|
|
21902
|
+
* Number of design nodes in this top-level node's subtree.
|
|
21903
|
+
*/
|
|
21904
|
+
node_count: number;
|
|
21905
|
+
/**
|
|
21906
|
+
* Whether this top-level node defines a reusable component.
|
|
21907
|
+
*/
|
|
21908
|
+
component: boolean;
|
|
21909
|
+
/**
|
|
21910
|
+
* Whether this top-level node is a placeholder awaiting design content.
|
|
21911
|
+
*/
|
|
21912
|
+
placeholder: boolean;
|
|
21913
|
+
/**
|
|
21914
|
+
* Whether this top-level node is visible on the canvas.
|
|
21915
|
+
*/
|
|
21916
|
+
visible: boolean;
|
|
21917
|
+
};
|
|
21918
|
+
/**
|
|
21919
|
+
* A node document in pen.dev (Pencil) .pen schema 2.21, not a Figma node. Node-specific design properties are preserved as open fields; frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note use their .pen properties.
|
|
21920
|
+
*/
|
|
21921
|
+
export type CanvasPenNode = {
|
|
21922
|
+
[key: string]: unknown;
|
|
21923
|
+
};
|
|
21335
21924
|
export type DatabaseField = {
|
|
21336
21925
|
/**
|
|
21337
21926
|
* Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
|
|
@@ -22180,7 +22769,7 @@ export type MediaSemanticHit = {
|
|
|
22180
22769
|
*/
|
|
22181
22770
|
asset: MediaAsset;
|
|
22182
22771
|
/**
|
|
22183
|
-
* Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first.
|
|
22772
|
+
* Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first; hybrid scores are not probabilities or confidence.
|
|
22184
22773
|
*/
|
|
22185
22774
|
score: number;
|
|
22186
22775
|
/**
|
|
@@ -26210,6 +26799,20 @@ export type AgentManaged141 = {
|
|
|
26210
26799
|
*/
|
|
26211
26800
|
type?: 'packages';
|
|
26212
26801
|
};
|
|
26802
|
+
export type AutomationHumanTaskActor = {
|
|
26803
|
+
/**
|
|
26804
|
+
* The responder's user ID (for an agent, the user it acts for).
|
|
26805
|
+
*/
|
|
26806
|
+
id: string;
|
|
26807
|
+
/**
|
|
26808
|
+
* human: the person responded. agent: an agent responded on their behalf.
|
|
26809
|
+
*/
|
|
26810
|
+
kind: 'human' | 'agent';
|
|
26811
|
+
/**
|
|
26812
|
+
* Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID.
|
|
26813
|
+
*/
|
|
26814
|
+
display_name: string | null;
|
|
26815
|
+
};
|
|
26213
26816
|
export type KnowledgeStaticChunking = {
|
|
26214
26817
|
/**
|
|
26215
26818
|
* static selects explicit chunk-size and overlap settings.
|
|
@@ -27540,6 +28143,10 @@ export type AgentManaged34Writable = {
|
|
|
27540
28143
|
* Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
|
|
27541
28144
|
*/
|
|
27542
28145
|
export type SandboxSandboxId = string;
|
|
28146
|
+
/**
|
|
28147
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
28148
|
+
*/
|
|
28149
|
+
export type CanvasCanvasId = string;
|
|
27543
28150
|
/**
|
|
27544
28151
|
* Cursor to start the list from
|
|
27545
28152
|
*/
|
|
@@ -27556,7 +28163,7 @@ export type ApplyAgentVersionData = {
|
|
|
27556
28163
|
body?: never;
|
|
27557
28164
|
path: {
|
|
27558
28165
|
/**
|
|
27559
|
-
* Agent identifier from agents.create or agents.list.
|
|
28166
|
+
* Agent identifier from agents.create or agents.list. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
27560
28167
|
*/
|
|
27561
28168
|
agent_id: string;
|
|
27562
28169
|
/**
|
|
@@ -27619,7 +28226,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27619
28226
|
/**
|
|
27620
28227
|
* Model identifier and configuration.
|
|
27621
28228
|
*/
|
|
27622
|
-
model
|
|
28229
|
+
model?: {
|
|
27623
28230
|
/**
|
|
27624
28231
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
27625
28232
|
*/
|
|
@@ -27653,7 +28260,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27653
28260
|
/**
|
|
27654
28261
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
27655
28262
|
*/
|
|
27656
|
-
multiagent
|
|
28263
|
+
multiagent?: null | AgentManaged39;
|
|
27657
28264
|
/**
|
|
27658
28265
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
27659
28266
|
*/
|
|
@@ -27721,7 +28328,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27721
28328
|
*/
|
|
27722
28329
|
note: string | null;
|
|
27723
28330
|
/**
|
|
27724
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
28331
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
27725
28332
|
*/
|
|
27726
28333
|
bindings: Array<{
|
|
27727
28334
|
/**
|
|
@@ -27763,9 +28370,9 @@ export type ApplyAgentVersionResponses = {
|
|
|
27763
28370
|
enabled?: boolean;
|
|
27764
28371
|
}>;
|
|
27765
28372
|
/**
|
|
27766
|
-
* Immutable agent kind.
|
|
28373
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
27767
28374
|
*/
|
|
27768
|
-
kind: 'personal' | 'service';
|
|
28375
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
27769
28376
|
/**
|
|
27770
28377
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
27771
28378
|
*/
|
|
@@ -28116,6 +28723,10 @@ export type ApplyAgentVersionResponses = {
|
|
|
28116
28723
|
*/
|
|
28117
28724
|
hooks?: Array<string>;
|
|
28118
28725
|
};
|
|
28726
|
+
/**
|
|
28727
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
28728
|
+
*/
|
|
28729
|
+
idleCompaction?: boolean;
|
|
28119
28730
|
} | null;
|
|
28120
28731
|
/**
|
|
28121
28732
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -28143,7 +28754,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
28143
28754
|
*/
|
|
28144
28755
|
environment_id?: string | null;
|
|
28145
28756
|
/**
|
|
28146
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
28757
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
28147
28758
|
*/
|
|
28148
28759
|
vault_ids?: Array<string>;
|
|
28149
28760
|
/**
|
|
@@ -28157,7 +28768,7 @@ export type UnarchiveAgentData = {
|
|
|
28157
28768
|
body?: never;
|
|
28158
28769
|
path: {
|
|
28159
28770
|
/**
|
|
28160
|
-
* Agent id from creation or listing.
|
|
28771
|
+
* Agent id from creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
28161
28772
|
*/
|
|
28162
28773
|
agent_id: string;
|
|
28163
28774
|
};
|
|
@@ -28286,7 +28897,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28286
28897
|
/**
|
|
28287
28898
|
* Model identifier and configuration.
|
|
28288
28899
|
*/
|
|
28289
|
-
model
|
|
28900
|
+
model?: {
|
|
28290
28901
|
/**
|
|
28291
28902
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
28292
28903
|
*/
|
|
@@ -28345,7 +28956,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28345
28956
|
/**
|
|
28346
28957
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
28347
28958
|
*/
|
|
28348
|
-
multiagent
|
|
28959
|
+
multiagent?: null | {
|
|
28349
28960
|
/**
|
|
28350
28961
|
* Agents the coordinator may spawn as session threads, each resolved to a specific
|
|
28351
28962
|
* version.
|
|
@@ -28909,7 +29520,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28909
29520
|
*/
|
|
28910
29521
|
note: string | null;
|
|
28911
29522
|
/**
|
|
28912
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
29523
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
28913
29524
|
*/
|
|
28914
29525
|
bindings: Array<{
|
|
28915
29526
|
/**
|
|
@@ -28951,9 +29562,9 @@ export type UnarchiveAgentResponses = {
|
|
|
28951
29562
|
enabled?: boolean;
|
|
28952
29563
|
}>;
|
|
28953
29564
|
/**
|
|
28954
|
-
* Immutable agent kind.
|
|
29565
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
28955
29566
|
*/
|
|
28956
|
-
kind: 'personal' | 'service';
|
|
29567
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
28957
29568
|
/**
|
|
28958
29569
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
28959
29570
|
*/
|
|
@@ -29304,6 +29915,10 @@ export type UnarchiveAgentResponses = {
|
|
|
29304
29915
|
*/
|
|
29305
29916
|
hooks?: Array<string>;
|
|
29306
29917
|
};
|
|
29918
|
+
/**
|
|
29919
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
29920
|
+
*/
|
|
29921
|
+
idleCompaction?: boolean;
|
|
29307
29922
|
} | null;
|
|
29308
29923
|
/**
|
|
29309
29924
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -29331,7 +29946,7 @@ export type UnarchiveAgentResponses = {
|
|
|
29331
29946
|
*/
|
|
29332
29947
|
environment_id?: string | null;
|
|
29333
29948
|
/**
|
|
29334
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
29949
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
29335
29950
|
*/
|
|
29336
29951
|
vault_ids?: Array<string>;
|
|
29337
29952
|
/**
|
|
@@ -29465,7 +30080,7 @@ export type ListCustomersData = {
|
|
|
29465
30080
|
body?: never;
|
|
29466
30081
|
path: {
|
|
29467
30082
|
/**
|
|
29468
|
-
* Active service agent id from agent creation or listing.
|
|
30083
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29469
30084
|
*/
|
|
29470
30085
|
agent_id: string;
|
|
29471
30086
|
};
|
|
@@ -29574,7 +30189,7 @@ export type DeleteCustomerData = {
|
|
|
29574
30189
|
body?: never;
|
|
29575
30190
|
path: {
|
|
29576
30191
|
/**
|
|
29577
|
-
* Active service agent id from agent creation or listing.
|
|
30192
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29578
30193
|
*/
|
|
29579
30194
|
agent_id: string;
|
|
29580
30195
|
/**
|
|
@@ -29629,7 +30244,7 @@ export type GetCustomerData = {
|
|
|
29629
30244
|
body?: never;
|
|
29630
30245
|
path: {
|
|
29631
30246
|
/**
|
|
29632
|
-
* Active service agent id from agent creation or listing.
|
|
30247
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29633
30248
|
*/
|
|
29634
30249
|
agent_id: string;
|
|
29635
30250
|
/**
|
|
@@ -29733,7 +30348,7 @@ export type GetCustomerDeletionData = {
|
|
|
29733
30348
|
body?: never;
|
|
29734
30349
|
path: {
|
|
29735
30350
|
/**
|
|
29736
|
-
* Active service agent id from agent creation or listing.
|
|
30351
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29737
30352
|
*/
|
|
29738
30353
|
agent_id: string;
|
|
29739
30354
|
/**
|
|
@@ -29820,7 +30435,7 @@ export type BlockCustomerData = {
|
|
|
29820
30435
|
body?: never;
|
|
29821
30436
|
path: {
|
|
29822
30437
|
/**
|
|
29823
|
-
* Active service agent id from agent creation or listing.
|
|
30438
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29824
30439
|
*/
|
|
29825
30440
|
agent_id: string;
|
|
29826
30441
|
/**
|
|
@@ -29903,7 +30518,7 @@ export type UnblockCustomerData = {
|
|
|
29903
30518
|
body?: never;
|
|
29904
30519
|
path: {
|
|
29905
30520
|
/**
|
|
29906
|
-
* Active service agent id from agent creation or listing.
|
|
30521
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29907
30522
|
*/
|
|
29908
30523
|
agent_id: string;
|
|
29909
30524
|
/**
|
|
@@ -29982,7 +30597,7 @@ export type RevokeCustomerTokensData = {
|
|
|
29982
30597
|
body?: never;
|
|
29983
30598
|
path: {
|
|
29984
30599
|
/**
|
|
29985
|
-
* Active service agent id from agent creation or listing.
|
|
30600
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29986
30601
|
*/
|
|
29987
30602
|
agent_id: string;
|
|
29988
30603
|
/**
|
|
@@ -30028,7 +30643,7 @@ export type GetAgentAppearanceData = {
|
|
|
30028
30643
|
body?: never;
|
|
30029
30644
|
path: {
|
|
30030
30645
|
/**
|
|
30031
|
-
* Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for.
|
|
30646
|
+
* Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30032
30647
|
*/
|
|
30033
30648
|
agent_id: string;
|
|
30034
30649
|
};
|
|
@@ -30339,7 +30954,7 @@ export type CreateCustomerGrantCodeData = {
|
|
|
30339
30954
|
};
|
|
30340
30955
|
path: {
|
|
30341
30956
|
/**
|
|
30342
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
30957
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30343
30958
|
*/
|
|
30344
30959
|
agent_id: string;
|
|
30345
30960
|
};
|
|
@@ -30415,7 +31030,7 @@ export type CreateCustomerAccessTokenData = {
|
|
|
30415
31030
|
};
|
|
30416
31031
|
path: {
|
|
30417
31032
|
/**
|
|
30418
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
31033
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30419
31034
|
*/
|
|
30420
31035
|
agent_id: string;
|
|
30421
31036
|
};
|
|
@@ -30489,7 +31104,7 @@ export type RenewCustomerAccessTokenData = {
|
|
|
30489
31104
|
body?: never;
|
|
30490
31105
|
path: {
|
|
30491
31106
|
/**
|
|
30492
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
31107
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30493
31108
|
*/
|
|
30494
31109
|
agent_id: string;
|
|
30495
31110
|
};
|
|
@@ -30551,7 +31166,7 @@ export type DeleteCurrentCustomerAccessTokenData = {
|
|
|
30551
31166
|
body?: never;
|
|
30552
31167
|
path: {
|
|
30553
31168
|
/**
|
|
30554
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
31169
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30555
31170
|
*/
|
|
30556
31171
|
agent_id: string;
|
|
30557
31172
|
};
|
|
@@ -36146,11 +36761,11 @@ export type CompactSessionResponses = {
|
|
|
36146
36761
|
*/
|
|
36147
36762
|
id: string;
|
|
36148
36763
|
/**
|
|
36149
|
-
* State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and
|
|
36764
|
+
* State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
|
|
36150
36765
|
*/
|
|
36151
|
-
status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
|
|
36766
|
+
status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
|
|
36152
36767
|
/**
|
|
36153
|
-
* Why the compaction was skipped or
|
|
36768
|
+
* Why the compaction was skipped, failed or cancelled; absent otherwise.
|
|
36154
36769
|
*/
|
|
36155
36770
|
reason?: string;
|
|
36156
36771
|
};
|
|
@@ -36167,11 +36782,11 @@ export type CompactSessionResponses = {
|
|
|
36167
36782
|
*/
|
|
36168
36783
|
id: string;
|
|
36169
36784
|
/**
|
|
36170
|
-
* State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and
|
|
36785
|
+
* State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
|
|
36171
36786
|
*/
|
|
36172
|
-
status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
|
|
36787
|
+
status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
|
|
36173
36788
|
/**
|
|
36174
|
-
* Why the compaction was skipped or
|
|
36789
|
+
* Why the compaction was skipped, failed or cancelled; absent otherwise.
|
|
36175
36790
|
*/
|
|
36176
36791
|
reason?: string;
|
|
36177
36792
|
};
|
|
@@ -36229,11 +36844,11 @@ export type GetSessionCompactionResponses = {
|
|
|
36229
36844
|
*/
|
|
36230
36845
|
id: string;
|
|
36231
36846
|
/**
|
|
36232
|
-
* State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and
|
|
36847
|
+
* State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
|
|
36233
36848
|
*/
|
|
36234
|
-
status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
|
|
36849
|
+
status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
|
|
36235
36850
|
/**
|
|
36236
|
-
* Why the compaction was skipped or
|
|
36851
|
+
* Why the compaction was skipped, failed or cancelled; absent otherwise.
|
|
36237
36852
|
*/
|
|
36238
36853
|
reason?: string;
|
|
36239
36854
|
};
|
|
@@ -36278,6 +36893,27 @@ export type ListSessionCompactionsResponses = {
|
|
|
36278
36893
|
* Compaction history
|
|
36279
36894
|
*/
|
|
36280
36895
|
200: {
|
|
36896
|
+
/**
|
|
36897
|
+
* Current compaction, including queued manual requests; null when none is in progress. Manual takes precedence over automatic work.
|
|
36898
|
+
*/
|
|
36899
|
+
active: {
|
|
36900
|
+
/**
|
|
36901
|
+
* Always `session_compaction`. Result of a compaction request.
|
|
36902
|
+
*/
|
|
36903
|
+
type: 'session_compaction';
|
|
36904
|
+
/**
|
|
36905
|
+
* Identifier of the active manual operation or automatic compaction record.
|
|
36906
|
+
*/
|
|
36907
|
+
id: string;
|
|
36908
|
+
/**
|
|
36909
|
+
* Whether compaction is waiting to start or generating its summary.
|
|
36910
|
+
*/
|
|
36911
|
+
status: 'queued' | 'running';
|
|
36912
|
+
/**
|
|
36913
|
+
* Whether a caller requested compaction, the context reached its threshold, or the session compacted while idle.
|
|
36914
|
+
*/
|
|
36915
|
+
trigger: 'manual' | 'auto' | 'idle';
|
|
36916
|
+
} | null;
|
|
36281
36917
|
/**
|
|
36282
36918
|
* Items of this page, in the order requested by the call.
|
|
36283
36919
|
*/
|
|
@@ -36297,7 +36933,7 @@ export type ListSessionCompactionsResponses = {
|
|
|
36297
36933
|
/**
|
|
36298
36934
|
* What started the compaction.
|
|
36299
36935
|
*/
|
|
36300
|
-
trigger: 'auto' | 'manual' | 'model_downshift';
|
|
36936
|
+
trigger: 'auto' | 'manual' | 'model_downshift' | 'idle';
|
|
36301
36937
|
/**
|
|
36302
36938
|
* Final outcome of the compaction.
|
|
36303
36939
|
*/
|
|
@@ -38106,6 +38742,107 @@ export type MetaMethodsRetrieveResponses = {
|
|
|
38106
38742
|
200: MetaMethod;
|
|
38107
38743
|
};
|
|
38108
38744
|
export type MetaMethodsRetrieveResponse = MetaMethodsRetrieveResponses[keyof MetaMethodsRetrieveResponses];
|
|
38745
|
+
export type MetaDocsRetrieveData = {
|
|
38746
|
+
body?: never;
|
|
38747
|
+
path: {
|
|
38748
|
+
/**
|
|
38749
|
+
* Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.
|
|
38750
|
+
*/
|
|
38751
|
+
path: string;
|
|
38752
|
+
};
|
|
38753
|
+
query?: {
|
|
38754
|
+
/**
|
|
38755
|
+
* Documentation language: zh for Chinese (default), en for English.
|
|
38756
|
+
*/
|
|
38757
|
+
lang?: 'zh' | 'en';
|
|
38758
|
+
};
|
|
38759
|
+
url: '/meta/v1/docs/{path}';
|
|
38760
|
+
};
|
|
38761
|
+
export type MetaDocsRetrieveErrors = {
|
|
38762
|
+
/**
|
|
38763
|
+
* INVALID_PARAMS: lang must be zh or en; correct the language and retry.
|
|
38764
|
+
*/
|
|
38765
|
+
400: MetaProblem;
|
|
38766
|
+
/**
|
|
38767
|
+
* DOC_NOT_FOUND: page or anchor does not exist; use docs.search to find a valid documentation path.
|
|
38768
|
+
*/
|
|
38769
|
+
404: MetaProblem;
|
|
38770
|
+
};
|
|
38771
|
+
export type MetaDocsRetrieveError = MetaDocsRetrieveErrors[keyof MetaDocsRetrieveErrors];
|
|
38772
|
+
export type MetaDocsRetrieveResponses = {
|
|
38773
|
+
/**
|
|
38774
|
+
* Documentation page as Markdown, never the HTML website.
|
|
38775
|
+
*/
|
|
38776
|
+
200: {
|
|
38777
|
+
/**
|
|
38778
|
+
* Documentation path, including the requested section anchor when present.
|
|
38779
|
+
*/
|
|
38780
|
+
path: string;
|
|
38781
|
+
/**
|
|
38782
|
+
* Human-readable title of the documentation page.
|
|
38783
|
+
*/
|
|
38784
|
+
title: string;
|
|
38785
|
+
/**
|
|
38786
|
+
* Canonical documentation URL for reading the page in a browser.
|
|
38787
|
+
*/
|
|
38788
|
+
url: string;
|
|
38789
|
+
/**
|
|
38790
|
+
* Compiled page Markdown, or only the requested heading section and its subsections.
|
|
38791
|
+
*/
|
|
38792
|
+
markdown: string;
|
|
38793
|
+
};
|
|
38794
|
+
};
|
|
38795
|
+
export type MetaDocsRetrieveResponse = MetaDocsRetrieveResponses[keyof MetaDocsRetrieveResponses];
|
|
38796
|
+
export type MetaDocsSearchData = {
|
|
38797
|
+
body?: never;
|
|
38798
|
+
path?: never;
|
|
38799
|
+
query: {
|
|
38800
|
+
/**
|
|
38801
|
+
* Keywords describing the syntax or guide needed, for example export or workflow.
|
|
38802
|
+
*/
|
|
38803
|
+
q: string;
|
|
38804
|
+
/**
|
|
38805
|
+
* Maximum number of matching pages returned; integer 1–50, default 20.
|
|
38806
|
+
*/
|
|
38807
|
+
limit?: number;
|
|
38808
|
+
/**
|
|
38809
|
+
* Documentation language: zh for Chinese (default), en for English.
|
|
38810
|
+
*/
|
|
38811
|
+
lang?: 'zh' | 'en';
|
|
38812
|
+
};
|
|
38813
|
+
url: '/meta/v1/docs/search';
|
|
38814
|
+
};
|
|
38815
|
+
export type MetaDocsSearchErrors = {
|
|
38816
|
+
/**
|
|
38817
|
+
* INVALID_PARAMS: supply nonempty q, limit from 1 to 50 and lang zh or en.
|
|
38818
|
+
*/
|
|
38819
|
+
400: MetaProblem;
|
|
38820
|
+
};
|
|
38821
|
+
export type MetaDocsSearchError = MetaDocsSearchErrors[keyof MetaDocsSearchErrors];
|
|
38822
|
+
export type MetaDocsSearchResponses = {
|
|
38823
|
+
/**
|
|
38824
|
+
* Matching documentation pages; empty when no page contains all keywords.
|
|
38825
|
+
*/
|
|
38826
|
+
200: Array<{
|
|
38827
|
+
/**
|
|
38828
|
+
* Documentation path, including the requested section anchor when present.
|
|
38829
|
+
*/
|
|
38830
|
+
path: string;
|
|
38831
|
+
/**
|
|
38832
|
+
* Human-readable title of the documentation page.
|
|
38833
|
+
*/
|
|
38834
|
+
title: string;
|
|
38835
|
+
/**
|
|
38836
|
+
* Canonical documentation URL for reading the page in a browser.
|
|
38837
|
+
*/
|
|
38838
|
+
url: string;
|
|
38839
|
+
/**
|
|
38840
|
+
* Short excerpt from the matching page to help choose which documentation to retrieve.
|
|
38841
|
+
*/
|
|
38842
|
+
snippet: string;
|
|
38843
|
+
}>;
|
|
38844
|
+
};
|
|
38845
|
+
export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
|
|
38109
38846
|
export type ListModelsData = {
|
|
38110
38847
|
body?: never;
|
|
38111
38848
|
path?: never;
|
|
@@ -38113,7 +38850,7 @@ export type ListModelsData = {
|
|
|
38113
38850
|
/**
|
|
38114
38851
|
* Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values.
|
|
38115
38852
|
*/
|
|
38116
|
-
supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos'>;
|
|
38853
|
+
supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'typesafe.systemone'>;
|
|
38117
38854
|
/**
|
|
38118
38855
|
* Filter by one or more model types (comma-separated).
|
|
38119
38856
|
*/
|
|
@@ -39097,6 +39834,251 @@ export type RemixVideoErrors = {
|
|
|
39097
39834
|
*/
|
|
39098
39835
|
400: unknown;
|
|
39099
39836
|
};
|
|
39837
|
+
export type CreateSystemoneData = {
|
|
39838
|
+
body: {
|
|
39839
|
+
/**
|
|
39840
|
+
* Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.
|
|
39841
|
+
*/
|
|
39842
|
+
model: string;
|
|
39843
|
+
/**
|
|
39844
|
+
* Shared content evaluated by every question, supplied as text, a JSON object or an array.
|
|
39845
|
+
*/
|
|
39846
|
+
state: string | {
|
|
39847
|
+
[key: string]: unknown;
|
|
39848
|
+
} | Array<unknown>;
|
|
39849
|
+
/**
|
|
39850
|
+
* Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported.
|
|
39851
|
+
*/
|
|
39852
|
+
questions: {
|
|
39853
|
+
[key: string]: {
|
|
39854
|
+
/**
|
|
39855
|
+
* noul asks a yes/no question and returns the probability of yes.
|
|
39856
|
+
*/
|
|
39857
|
+
type: 'noul';
|
|
39858
|
+
/**
|
|
39859
|
+
* Optional instructions for this question; text, object, array or null. Omit to let the criteria supply the question context.
|
|
39860
|
+
*/
|
|
39861
|
+
instructions?: string | {
|
|
39862
|
+
[key: string]: unknown;
|
|
39863
|
+
} | Array<unknown> | null;
|
|
39864
|
+
/**
|
|
39865
|
+
* Optional descriptions of the true and false outcomes; only these two keys are accepted.
|
|
39866
|
+
*/
|
|
39867
|
+
criteria?: {
|
|
39868
|
+
/**
|
|
39869
|
+
* Description of the yes outcome used to evaluate this noul question.
|
|
39870
|
+
*/
|
|
39871
|
+
true?: string | {
|
|
39872
|
+
[key: string]: unknown;
|
|
39873
|
+
} | Array<unknown> | null;
|
|
39874
|
+
/**
|
|
39875
|
+
* Description of the no outcome used to evaluate this noul question.
|
|
39876
|
+
*/
|
|
39877
|
+
false?: string | {
|
|
39878
|
+
[key: string]: unknown;
|
|
39879
|
+
} | Array<unknown> | null;
|
|
39880
|
+
};
|
|
39881
|
+
} | {
|
|
39882
|
+
/**
|
|
39883
|
+
* choice selects an option from the named criteria and returns every option probability.
|
|
39884
|
+
*/
|
|
39885
|
+
type: 'choice';
|
|
39886
|
+
/**
|
|
39887
|
+
* Optional instructions for this question; text, object, array or null. Omit to let the criteria supply the question context.
|
|
39888
|
+
*/
|
|
39889
|
+
instructions?: string | {
|
|
39890
|
+
[key: string]: unknown;
|
|
39891
|
+
} | Array<unknown> | null;
|
|
39892
|
+
/**
|
|
39893
|
+
* One to 255 named options; each value describes that option as text, object, array or null. The selected choice is one of these keys.
|
|
39894
|
+
*/
|
|
39895
|
+
criteria: {
|
|
39896
|
+
[key: string]: string | {
|
|
39897
|
+
[key: string]: unknown;
|
|
39898
|
+
} | Array<unknown> | null;
|
|
39899
|
+
};
|
|
39900
|
+
} | {
|
|
39901
|
+
/**
|
|
39902
|
+
* score evaluates ordered criteria from low to high and returns a normalized score.
|
|
39903
|
+
*/
|
|
39904
|
+
type: 'score';
|
|
39905
|
+
/**
|
|
39906
|
+
* Optional instructions for this question; text, object, array or null. Omit to let the criteria supply the question context.
|
|
39907
|
+
*/
|
|
39908
|
+
instructions?: string | {
|
|
39909
|
+
[key: string]: unknown;
|
|
39910
|
+
} | Array<unknown> | null;
|
|
39911
|
+
/**
|
|
39912
|
+
* One to ten descriptive levels ordered from low to high; each is text, an object or an array. Legend keys in the answer index these levels.
|
|
39913
|
+
*/
|
|
39914
|
+
criteria: Array<string | {
|
|
39915
|
+
[key: string]: unknown;
|
|
39916
|
+
} | Array<unknown>>;
|
|
39917
|
+
};
|
|
39918
|
+
};
|
|
39919
|
+
/**
|
|
39920
|
+
* Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.
|
|
39921
|
+
*/
|
|
39922
|
+
assets?: {
|
|
39923
|
+
[key: string]: unknown;
|
|
39924
|
+
};
|
|
39925
|
+
[key: string]: unknown;
|
|
39926
|
+
};
|
|
39927
|
+
path?: never;
|
|
39928
|
+
query?: never;
|
|
39929
|
+
url: '/model/v1/systemone';
|
|
39930
|
+
};
|
|
39931
|
+
export type CreateSystemoneErrors = {
|
|
39932
|
+
/**
|
|
39933
|
+
* Missing model, state or questions; invalid question type or criteria size; box or assets unsupported. Correct the named field before retrying.
|
|
39934
|
+
*/
|
|
39935
|
+
400: {
|
|
39936
|
+
type: string;
|
|
39937
|
+
title: string;
|
|
39938
|
+
status: number;
|
|
39939
|
+
detail: string;
|
|
39940
|
+
[key: string]: unknown;
|
|
39941
|
+
};
|
|
39942
|
+
/**
|
|
39943
|
+
* Missing or invalid API credentials; supply a valid platform API key in Authorization: Bearer.
|
|
39944
|
+
*/
|
|
39945
|
+
401: {
|
|
39946
|
+
type: string;
|
|
39947
|
+
title: string;
|
|
39948
|
+
status: number;
|
|
39949
|
+
detail: string;
|
|
39950
|
+
[key: string]: unknown;
|
|
39951
|
+
};
|
|
39952
|
+
/**
|
|
39953
|
+
* Unknown model or MODEL_PROTOCOL_NOT_OFFERED; select a catalog model declaring typesafe.systemone.
|
|
39954
|
+
*/
|
|
39955
|
+
404: {
|
|
39956
|
+
type: string;
|
|
39957
|
+
title: string;
|
|
39958
|
+
status: number;
|
|
39959
|
+
detail: string;
|
|
39960
|
+
[key: string]: unknown;
|
|
39961
|
+
};
|
|
39962
|
+
/**
|
|
39963
|
+
* The platform or upstream is rate limited; wait before retrying the request.
|
|
39964
|
+
*/
|
|
39965
|
+
429: {
|
|
39966
|
+
type: string;
|
|
39967
|
+
title: string;
|
|
39968
|
+
status: number;
|
|
39969
|
+
detail: string;
|
|
39970
|
+
[key: string]: unknown;
|
|
39971
|
+
};
|
|
39972
|
+
/**
|
|
39973
|
+
* Upstream credentials, transport or response failed; retry later or choose another declared model.
|
|
39974
|
+
*/
|
|
39975
|
+
502: {
|
|
39976
|
+
type: string;
|
|
39977
|
+
title: string;
|
|
39978
|
+
status: number;
|
|
39979
|
+
detail: string;
|
|
39980
|
+
[key: string]: unknown;
|
|
39981
|
+
};
|
|
39982
|
+
/**
|
|
39983
|
+
* No available native System One line; retry later or choose another declared model.
|
|
39984
|
+
*/
|
|
39985
|
+
503: {
|
|
39986
|
+
type: string;
|
|
39987
|
+
title: string;
|
|
39988
|
+
status: number;
|
|
39989
|
+
detail: string;
|
|
39990
|
+
[key: string]: unknown;
|
|
39991
|
+
};
|
|
39992
|
+
};
|
|
39993
|
+
export type CreateSystemoneError = CreateSystemoneErrors[keyof CreateSystemoneErrors];
|
|
39994
|
+
export type CreateSystemoneResponses = {
|
|
39995
|
+
/**
|
|
39996
|
+
* Typed answers keyed by the original question ids, token usage, and the actual customer charge in USD.
|
|
39997
|
+
*/
|
|
39998
|
+
200: {
|
|
39999
|
+
/**
|
|
40000
|
+
* Model id exactly as supplied in the request, including any public alias or creator prefix.
|
|
40001
|
+
*/
|
|
40002
|
+
model: string;
|
|
40003
|
+
/**
|
|
40004
|
+
* Results mapped by the caller's question ids; each discriminator matches that question's type.
|
|
40005
|
+
*/
|
|
40006
|
+
answers: {
|
|
40007
|
+
[key: string]: {
|
|
40008
|
+
/**
|
|
40009
|
+
* Answer discriminator: noul corresponds to the question of the same type.
|
|
40010
|
+
*/
|
|
40011
|
+
type: 'noul';
|
|
40012
|
+
/**
|
|
40013
|
+
* Calibrated probability that the answer to the yes/no question is yes.
|
|
40014
|
+
*/
|
|
40015
|
+
noul: number;
|
|
40016
|
+
} | {
|
|
40017
|
+
/**
|
|
40018
|
+
* Answer discriminator: choice corresponds to the question of the same type.
|
|
40019
|
+
*/
|
|
40020
|
+
type: 'choice';
|
|
40021
|
+
/**
|
|
40022
|
+
* Selected option name, always a key from this question's criteria.
|
|
40023
|
+
*/
|
|
40024
|
+
choice: string;
|
|
40025
|
+
/**
|
|
40026
|
+
* Certainty of the selected choice or score, distinct from the per-option probabilities.
|
|
40027
|
+
*/
|
|
40028
|
+
confidence: number;
|
|
40029
|
+
/**
|
|
40030
|
+
* Probability of each caller-defined choice or zero-based score level; the probabilities sum to one.
|
|
40031
|
+
*/
|
|
40032
|
+
probabilities: {
|
|
40033
|
+
[key: string]: number;
|
|
40034
|
+
};
|
|
40035
|
+
} | {
|
|
40036
|
+
/**
|
|
40037
|
+
* Answer discriminator: score corresponds to the question of the same type.
|
|
40038
|
+
*/
|
|
40039
|
+
type: 'score';
|
|
40040
|
+
/**
|
|
40041
|
+
* Normalized rating across the ordered criteria, from the lowest to the highest level.
|
|
40042
|
+
*/
|
|
40043
|
+
score: number;
|
|
40044
|
+
/**
|
|
40045
|
+
* Certainty of the selected choice or score, distinct from the per-option probabilities.
|
|
40046
|
+
*/
|
|
40047
|
+
confidence: number;
|
|
40048
|
+
/**
|
|
40049
|
+
* Zero-based level keys mapped to their descriptions, with one key per request criterion.
|
|
40050
|
+
*/
|
|
40051
|
+
legend: {
|
|
40052
|
+
[key: string]: unknown;
|
|
40053
|
+
};
|
|
40054
|
+
/**
|
|
40055
|
+
* Probability of each caller-defined choice or zero-based score level; the probabilities sum to one.
|
|
40056
|
+
*/
|
|
40057
|
+
probabilities: {
|
|
40058
|
+
[key: string]: number;
|
|
40059
|
+
};
|
|
40060
|
+
};
|
|
40061
|
+
};
|
|
40062
|
+
/**
|
|
40063
|
+
* Provider token counts and the actual input-only customer charge; output tokens are free.
|
|
40064
|
+
*/
|
|
40065
|
+
usage: {
|
|
40066
|
+
/**
|
|
40067
|
+
* Authoritative upstream count of input tokens; the sole billed quantity for this operation.
|
|
40068
|
+
*/
|
|
40069
|
+
input_tokens: number;
|
|
40070
|
+
/**
|
|
40071
|
+
* Upstream count of output tokens, returned for visibility and never charged.
|
|
40072
|
+
*/
|
|
40073
|
+
output_tokens: number;
|
|
40074
|
+
/**
|
|
40075
|
+
* Actual customer charge in USD after micro-dollar rounding; exactly the value in X-Praxis-Cost-Usd, never upstream procurement cost.
|
|
40076
|
+
*/
|
|
40077
|
+
cost: number;
|
|
40078
|
+
};
|
|
40079
|
+
};
|
|
40080
|
+
};
|
|
40081
|
+
export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSystemoneResponses];
|
|
39100
40082
|
export type CreateAudioTranscriptionData = {
|
|
39101
40083
|
body: {
|
|
39102
40084
|
/**
|
|
@@ -44715,15 +45697,15 @@ export type AgentsListData = {
|
|
|
44715
45697
|
limit?: number;
|
|
44716
45698
|
page?: null | string;
|
|
44717
45699
|
/**
|
|
44718
|
-
*
|
|
45700
|
+
* General agents use a durable computer and act for their owner; personal agents behave like general agents for now and are reserved for the personal agent; service agents use a clean environment per session. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
44719
45701
|
*/
|
|
44720
|
-
kind?: 'personal' | 'service';
|
|
45702
|
+
kind?: 'general' | 'personal' | 'service' | 'assume';
|
|
44721
45703
|
};
|
|
44722
45704
|
url: '/agent/v1/agents';
|
|
44723
45705
|
};
|
|
44724
45706
|
export type AgentsListErrors = {
|
|
44725
45707
|
/**
|
|
44726
|
-
* include_archived is not true or false, kind is not personal or
|
|
45708
|
+
* include_archived is not true or false, kind is not general, personal, service or assume, a created_at bound is not an RFC 3339 timestamp, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
|
|
44727
45709
|
*/
|
|
44728
45710
|
400: AgentError;
|
|
44729
45711
|
/**
|
|
@@ -44769,7 +45751,7 @@ export type AgentsListResponses = {
|
|
|
44769
45751
|
/**
|
|
44770
45752
|
* Model identifier and configuration.
|
|
44771
45753
|
*/
|
|
44772
|
-
model
|
|
45754
|
+
model?: {
|
|
44773
45755
|
/**
|
|
44774
45756
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
44775
45757
|
*/
|
|
@@ -44803,7 +45785,7 @@ export type AgentsListResponses = {
|
|
|
44803
45785
|
/**
|
|
44804
45786
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
44805
45787
|
*/
|
|
44806
|
-
multiagent
|
|
45788
|
+
multiagent?: null | AgentManaged39;
|
|
44807
45789
|
/**
|
|
44808
45790
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
44809
45791
|
*/
|
|
@@ -44867,7 +45849,7 @@ export type AgentsListResponses = {
|
|
|
44867
45849
|
*/
|
|
44868
45850
|
note: string | null;
|
|
44869
45851
|
/**
|
|
44870
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
45852
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
44871
45853
|
*/
|
|
44872
45854
|
bindings: Array<{
|
|
44873
45855
|
/**
|
|
@@ -44909,9 +45891,9 @@ export type AgentsListResponses = {
|
|
|
44909
45891
|
enabled?: boolean;
|
|
44910
45892
|
}>;
|
|
44911
45893
|
/**
|
|
44912
|
-
* Immutable agent kind.
|
|
45894
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
44913
45895
|
*/
|
|
44914
|
-
kind: 'personal' | 'service';
|
|
45896
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
44915
45897
|
/**
|
|
44916
45898
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
44917
45899
|
*/
|
|
@@ -45262,6 +46244,10 @@ export type AgentsListResponses = {
|
|
|
45262
46244
|
*/
|
|
45263
46245
|
hooks?: Array<string>;
|
|
45264
46246
|
};
|
|
46247
|
+
/**
|
|
46248
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
46249
|
+
*/
|
|
46250
|
+
idleCompaction?: boolean;
|
|
45265
46251
|
} | null;
|
|
45266
46252
|
/**
|
|
45267
46253
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -45289,7 +46275,7 @@ export type AgentsListResponses = {
|
|
|
45289
46275
|
*/
|
|
45290
46276
|
environment_id?: string | null;
|
|
45291
46277
|
/**
|
|
45292
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
46278
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
45293
46279
|
*/
|
|
45294
46280
|
vault_ids?: Array<string>;
|
|
45295
46281
|
/**
|
|
@@ -45307,9 +46293,9 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
|
|
|
45307
46293
|
export type AgentsCreateData = {
|
|
45308
46294
|
body: {
|
|
45309
46295
|
/**
|
|
45310
|
-
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
46296
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents.
|
|
45311
46297
|
*/
|
|
45312
|
-
model
|
|
46298
|
+
model?: string | {
|
|
45313
46299
|
/**
|
|
45314
46300
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
45315
46301
|
*/
|
|
@@ -45377,7 +46363,7 @@ export type AgentsCreateData = {
|
|
|
45377
46363
|
*/
|
|
45378
46364
|
tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
|
|
45379
46365
|
/**
|
|
45380
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
46366
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
45381
46367
|
*/
|
|
45382
46368
|
bindings?: Array<{
|
|
45383
46369
|
/**
|
|
@@ -45419,9 +46405,9 @@ export type AgentsCreateData = {
|
|
|
45419
46405
|
enabled?: boolean;
|
|
45420
46406
|
}>;
|
|
45421
46407
|
/**
|
|
45422
|
-
* Immutable agent kind. personal
|
|
46408
|
+
* Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
45423
46409
|
*/
|
|
45424
|
-
kind?: 'personal' | 'service';
|
|
46410
|
+
kind?: 'general' | 'personal' | 'service' | 'assume';
|
|
45425
46411
|
/**
|
|
45426
46412
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
|
|
45427
46413
|
*/
|
|
@@ -45772,6 +46758,10 @@ export type AgentsCreateData = {
|
|
|
45772
46758
|
*/
|
|
45773
46759
|
hooks?: Array<string>;
|
|
45774
46760
|
};
|
|
46761
|
+
/**
|
|
46762
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
46763
|
+
*/
|
|
46764
|
+
idleCompaction?: boolean;
|
|
45775
46765
|
} | null;
|
|
45776
46766
|
/**
|
|
45777
46767
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -45783,7 +46773,7 @@ export type AgentsCreateData = {
|
|
|
45783
46773
|
allowed: Array<string>;
|
|
45784
46774
|
};
|
|
45785
46775
|
/**
|
|
45786
|
-
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it.
|
|
46776
|
+
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
45787
46777
|
*/
|
|
45788
46778
|
avatar?: string | null;
|
|
45789
46779
|
/**
|
|
@@ -45805,7 +46795,7 @@ export type AgentsCreateData = {
|
|
|
45805
46795
|
};
|
|
45806
46796
|
export type AgentsCreateErrors = {
|
|
45807
46797
|
/**
|
|
45808
|
-
* The body failed validation and the message names the field: an unknown field, name outside 1 to 256 characters, a model that is not in the catalog or cannot run an agent, invalid tools or tools: null, a skill that is anthropic, repeated or not found, invalid bindings or vault_ids, or an environment_id that does not exist. Correct the field and retry.
|
|
46798
|
+
* The body failed validation and the message names the field: an unknown field, name outside 1 to 256 characters, a model that is not in the catalog or cannot run an agent, invalid tools or tools: null, a skill that is anthropic, repeated or not found, invalid bindings or vault_ids, or an environment_id that does not exist, or model, models, subagent_model, subagents or multiagent supplied on an assume agent. Correct the field and retry.
|
|
45809
46799
|
*/
|
|
45810
46800
|
400: AgentError;
|
|
45811
46801
|
/**
|
|
@@ -45851,7 +46841,7 @@ export type AgentsCreateResponses = {
|
|
|
45851
46841
|
/**
|
|
45852
46842
|
* Model identifier and configuration.
|
|
45853
46843
|
*/
|
|
45854
|
-
model
|
|
46844
|
+
model?: {
|
|
45855
46845
|
/**
|
|
45856
46846
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
45857
46847
|
*/
|
|
@@ -45885,7 +46875,7 @@ export type AgentsCreateResponses = {
|
|
|
45885
46875
|
/**
|
|
45886
46876
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
45887
46877
|
*/
|
|
45888
|
-
multiagent
|
|
46878
|
+
multiagent?: null | AgentManaged39;
|
|
45889
46879
|
/**
|
|
45890
46880
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
45891
46881
|
*/
|
|
@@ -45949,7 +46939,7 @@ export type AgentsCreateResponses = {
|
|
|
45949
46939
|
*/
|
|
45950
46940
|
note: string | null;
|
|
45951
46941
|
/**
|
|
45952
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
46942
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
45953
46943
|
*/
|
|
45954
46944
|
bindings: Array<{
|
|
45955
46945
|
/**
|
|
@@ -45991,9 +46981,9 @@ export type AgentsCreateResponses = {
|
|
|
45991
46981
|
enabled?: boolean;
|
|
45992
46982
|
}>;
|
|
45993
46983
|
/**
|
|
45994
|
-
* Immutable agent kind.
|
|
46984
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
45995
46985
|
*/
|
|
45996
|
-
kind: 'personal' | 'service';
|
|
46986
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
45997
46987
|
/**
|
|
45998
46988
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
45999
46989
|
*/
|
|
@@ -46344,6 +47334,10 @@ export type AgentsCreateResponses = {
|
|
|
46344
47334
|
*/
|
|
46345
47335
|
hooks?: Array<string>;
|
|
46346
47336
|
};
|
|
47337
|
+
/**
|
|
47338
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
47339
|
+
*/
|
|
47340
|
+
idleCompaction?: boolean;
|
|
46347
47341
|
} | null;
|
|
46348
47342
|
/**
|
|
46349
47343
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -46371,7 +47365,7 @@ export type AgentsCreateResponses = {
|
|
|
46371
47365
|
*/
|
|
46372
47366
|
environment_id?: string | null;
|
|
46373
47367
|
/**
|
|
46374
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
47368
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
46375
47369
|
*/
|
|
46376
47370
|
vault_ids?: Array<string>;
|
|
46377
47371
|
/**
|
|
@@ -46385,7 +47379,7 @@ export type AgentsRetrieveData = {
|
|
|
46385
47379
|
body?: never;
|
|
46386
47380
|
path: {
|
|
46387
47381
|
/**
|
|
46388
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
47382
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
46389
47383
|
*/
|
|
46390
47384
|
agent_id: string;
|
|
46391
47385
|
};
|
|
@@ -46446,7 +47440,7 @@ export type AgentsRetrieveResponses = {
|
|
|
46446
47440
|
/**
|
|
46447
47441
|
* Model identifier and configuration.
|
|
46448
47442
|
*/
|
|
46449
|
-
model
|
|
47443
|
+
model?: {
|
|
46450
47444
|
/**
|
|
46451
47445
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
46452
47446
|
*/
|
|
@@ -46480,7 +47474,7 @@ export type AgentsRetrieveResponses = {
|
|
|
46480
47474
|
/**
|
|
46481
47475
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
46482
47476
|
*/
|
|
46483
|
-
multiagent
|
|
47477
|
+
multiagent?: null | AgentManaged39;
|
|
46484
47478
|
/**
|
|
46485
47479
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
46486
47480
|
*/
|
|
@@ -46548,7 +47542,7 @@ export type AgentsRetrieveResponses = {
|
|
|
46548
47542
|
*/
|
|
46549
47543
|
note: string | null;
|
|
46550
47544
|
/**
|
|
46551
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
47545
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
46552
47546
|
*/
|
|
46553
47547
|
bindings: Array<{
|
|
46554
47548
|
/**
|
|
@@ -46590,9 +47584,9 @@ export type AgentsRetrieveResponses = {
|
|
|
46590
47584
|
enabled?: boolean;
|
|
46591
47585
|
}>;
|
|
46592
47586
|
/**
|
|
46593
|
-
* Immutable agent kind.
|
|
47587
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
46594
47588
|
*/
|
|
46595
|
-
kind: 'personal' | 'service';
|
|
47589
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
46596
47590
|
/**
|
|
46597
47591
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
46598
47592
|
*/
|
|
@@ -46943,6 +47937,10 @@ export type AgentsRetrieveResponses = {
|
|
|
46943
47937
|
*/
|
|
46944
47938
|
hooks?: Array<string>;
|
|
46945
47939
|
};
|
|
47940
|
+
/**
|
|
47941
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
47942
|
+
*/
|
|
47943
|
+
idleCompaction?: boolean;
|
|
46946
47944
|
} | null;
|
|
46947
47945
|
/**
|
|
46948
47946
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -46970,7 +47968,7 @@ export type AgentsRetrieveResponses = {
|
|
|
46970
47968
|
*/
|
|
46971
47969
|
environment_id?: string | null;
|
|
46972
47970
|
/**
|
|
46973
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
47971
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
46974
47972
|
*/
|
|
46975
47973
|
vault_ids?: Array<string>;
|
|
46976
47974
|
/**
|
|
@@ -46997,7 +47995,7 @@ export type AgentsUpdateData = {
|
|
|
46997
47995
|
*/
|
|
46998
47996
|
metadata?: null | AgentManaged58Writable;
|
|
46999
47997
|
/**
|
|
47000
|
-
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
47998
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents.
|
|
47001
47999
|
*/
|
|
47002
48000
|
model?: string | {
|
|
47003
48001
|
/**
|
|
@@ -47109,9 +48107,9 @@ export type AgentsUpdateData = {
|
|
|
47109
48107
|
enabled?: boolean;
|
|
47110
48108
|
}> | null;
|
|
47111
48109
|
/**
|
|
47112
|
-
* Immutable agent kind. personal
|
|
48110
|
+
* Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
47113
48111
|
*/
|
|
47114
|
-
kind?: 'personal' | 'service';
|
|
48112
|
+
kind?: 'general' | 'personal' | 'service' | 'assume';
|
|
47115
48113
|
/**
|
|
47116
48114
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
|
|
47117
48115
|
*/
|
|
@@ -47462,6 +48460,10 @@ export type AgentsUpdateData = {
|
|
|
47462
48460
|
*/
|
|
47463
48461
|
hooks?: Array<string>;
|
|
47464
48462
|
};
|
|
48463
|
+
/**
|
|
48464
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
48465
|
+
*/
|
|
48466
|
+
idleCompaction?: boolean;
|
|
47465
48467
|
} | null;
|
|
47466
48468
|
/**
|
|
47467
48469
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -47473,7 +48475,7 @@ export type AgentsUpdateData = {
|
|
|
47473
48475
|
allowed: Array<string>;
|
|
47474
48476
|
};
|
|
47475
48477
|
/**
|
|
47476
|
-
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it.
|
|
48478
|
+
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
47477
48479
|
*/
|
|
47478
48480
|
avatar?: string | null;
|
|
47479
48481
|
/**
|
|
@@ -47491,7 +48493,7 @@ export type AgentsUpdateData = {
|
|
|
47491
48493
|
};
|
|
47492
48494
|
path: {
|
|
47493
48495
|
/**
|
|
47494
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
48496
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
47495
48497
|
*/
|
|
47496
48498
|
agent_id: string;
|
|
47497
48499
|
};
|
|
@@ -47550,7 +48552,7 @@ export type AgentsUpdateResponses = {
|
|
|
47550
48552
|
/**
|
|
47551
48553
|
* Model identifier and configuration.
|
|
47552
48554
|
*/
|
|
47553
|
-
model
|
|
48555
|
+
model?: {
|
|
47554
48556
|
/**
|
|
47555
48557
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
47556
48558
|
*/
|
|
@@ -47584,7 +48586,7 @@ export type AgentsUpdateResponses = {
|
|
|
47584
48586
|
/**
|
|
47585
48587
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
47586
48588
|
*/
|
|
47587
|
-
multiagent
|
|
48589
|
+
multiagent?: null | AgentManaged39;
|
|
47588
48590
|
/**
|
|
47589
48591
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
47590
48592
|
*/
|
|
@@ -47652,7 +48654,7 @@ export type AgentsUpdateResponses = {
|
|
|
47652
48654
|
*/
|
|
47653
48655
|
note: string | null;
|
|
47654
48656
|
/**
|
|
47655
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
48657
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
47656
48658
|
*/
|
|
47657
48659
|
bindings: Array<{
|
|
47658
48660
|
/**
|
|
@@ -47694,9 +48696,9 @@ export type AgentsUpdateResponses = {
|
|
|
47694
48696
|
enabled?: boolean;
|
|
47695
48697
|
}>;
|
|
47696
48698
|
/**
|
|
47697
|
-
* Immutable agent kind.
|
|
48699
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
47698
48700
|
*/
|
|
47699
|
-
kind: 'personal' | 'service';
|
|
48701
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
47700
48702
|
/**
|
|
47701
48703
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
47702
48704
|
*/
|
|
@@ -48047,6 +49049,10 @@ export type AgentsUpdateResponses = {
|
|
|
48047
49049
|
*/
|
|
48048
49050
|
hooks?: Array<string>;
|
|
48049
49051
|
};
|
|
49052
|
+
/**
|
|
49053
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
49054
|
+
*/
|
|
49055
|
+
idleCompaction?: boolean;
|
|
48050
49056
|
} | null;
|
|
48051
49057
|
/**
|
|
48052
49058
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -48074,7 +49080,7 @@ export type AgentsUpdateResponses = {
|
|
|
48074
49080
|
*/
|
|
48075
49081
|
environment_id?: string | null;
|
|
48076
49082
|
/**
|
|
48077
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
49083
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
48078
49084
|
*/
|
|
48079
49085
|
vault_ids?: Array<string>;
|
|
48080
49086
|
/**
|
|
@@ -48088,7 +49094,7 @@ export type AgentsArchiveData = {
|
|
|
48088
49094
|
body?: never;
|
|
48089
49095
|
path: {
|
|
48090
49096
|
/**
|
|
48091
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
49097
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
48092
49098
|
*/
|
|
48093
49099
|
agent_id: string;
|
|
48094
49100
|
};
|
|
@@ -48139,7 +49145,7 @@ export type AgentsArchiveResponses = {
|
|
|
48139
49145
|
/**
|
|
48140
49146
|
* Model identifier and configuration.
|
|
48141
49147
|
*/
|
|
48142
|
-
model
|
|
49148
|
+
model?: {
|
|
48143
49149
|
/**
|
|
48144
49150
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
48145
49151
|
*/
|
|
@@ -48173,7 +49179,7 @@ export type AgentsArchiveResponses = {
|
|
|
48173
49179
|
/**
|
|
48174
49180
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
48175
49181
|
*/
|
|
48176
|
-
multiagent
|
|
49182
|
+
multiagent?: null | AgentManaged39;
|
|
48177
49183
|
/**
|
|
48178
49184
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
48179
49185
|
*/
|
|
@@ -48237,7 +49243,7 @@ export type AgentsArchiveResponses = {
|
|
|
48237
49243
|
*/
|
|
48238
49244
|
note: string | null;
|
|
48239
49245
|
/**
|
|
48240
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
49246
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
48241
49247
|
*/
|
|
48242
49248
|
bindings: Array<{
|
|
48243
49249
|
/**
|
|
@@ -48279,9 +49285,9 @@ export type AgentsArchiveResponses = {
|
|
|
48279
49285
|
enabled?: boolean;
|
|
48280
49286
|
}>;
|
|
48281
49287
|
/**
|
|
48282
|
-
* Immutable agent kind.
|
|
49288
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
48283
49289
|
*/
|
|
48284
|
-
kind: 'personal' | 'service';
|
|
49290
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
48285
49291
|
/**
|
|
48286
49292
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
48287
49293
|
*/
|
|
@@ -48632,6 +49638,10 @@ export type AgentsArchiveResponses = {
|
|
|
48632
49638
|
*/
|
|
48633
49639
|
hooks?: Array<string>;
|
|
48634
49640
|
};
|
|
49641
|
+
/**
|
|
49642
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
49643
|
+
*/
|
|
49644
|
+
idleCompaction?: boolean;
|
|
48635
49645
|
} | null;
|
|
48636
49646
|
/**
|
|
48637
49647
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -48659,7 +49669,7 @@ export type AgentsArchiveResponses = {
|
|
|
48659
49669
|
*/
|
|
48660
49670
|
environment_id?: string | null;
|
|
48661
49671
|
/**
|
|
48662
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
49672
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
48663
49673
|
*/
|
|
48664
49674
|
vault_ids?: Array<string>;
|
|
48665
49675
|
/**
|
|
@@ -48673,7 +49683,7 @@ export type AgentsVersionsListData = {
|
|
|
48673
49683
|
body?: never;
|
|
48674
49684
|
path: {
|
|
48675
49685
|
/**
|
|
48676
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
49686
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
48677
49687
|
*/
|
|
48678
49688
|
agent_id: string;
|
|
48679
49689
|
};
|
|
@@ -48738,7 +49748,7 @@ export type AgentsVersionsListResponses = {
|
|
|
48738
49748
|
/**
|
|
48739
49749
|
* Model identifier and configuration.
|
|
48740
49750
|
*/
|
|
48741
|
-
model
|
|
49751
|
+
model?: {
|
|
48742
49752
|
/**
|
|
48743
49753
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
48744
49754
|
*/
|
|
@@ -48772,7 +49782,7 @@ export type AgentsVersionsListResponses = {
|
|
|
48772
49782
|
/**
|
|
48773
49783
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
48774
49784
|
*/
|
|
48775
|
-
multiagent
|
|
49785
|
+
multiagent?: null | AgentManaged39;
|
|
48776
49786
|
/**
|
|
48777
49787
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
48778
49788
|
*/
|
|
@@ -48840,7 +49850,7 @@ export type AgentsVersionsListResponses = {
|
|
|
48840
49850
|
*/
|
|
48841
49851
|
note: string | null;
|
|
48842
49852
|
/**
|
|
48843
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
49853
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
48844
49854
|
*/
|
|
48845
49855
|
bindings: Array<{
|
|
48846
49856
|
/**
|
|
@@ -48882,9 +49892,9 @@ export type AgentsVersionsListResponses = {
|
|
|
48882
49892
|
enabled?: boolean;
|
|
48883
49893
|
}>;
|
|
48884
49894
|
/**
|
|
48885
|
-
* Immutable agent kind.
|
|
49895
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
48886
49896
|
*/
|
|
48887
|
-
kind: 'personal' | 'service';
|
|
49897
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
48888
49898
|
/**
|
|
48889
49899
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
48890
49900
|
*/
|
|
@@ -49235,6 +50245,10 @@ export type AgentsVersionsListResponses = {
|
|
|
49235
50245
|
*/
|
|
49236
50246
|
hooks?: Array<string>;
|
|
49237
50247
|
};
|
|
50248
|
+
/**
|
|
50249
|
+
* Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
|
|
50250
|
+
*/
|
|
50251
|
+
idleCompaction?: boolean;
|
|
49238
50252
|
} | null;
|
|
49239
50253
|
/**
|
|
49240
50254
|
* Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
|
|
@@ -49262,7 +50276,7 @@ export type AgentsVersionsListResponses = {
|
|
|
49262
50276
|
*/
|
|
49263
50277
|
environment_id?: string | null;
|
|
49264
50278
|
/**
|
|
49265
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
50279
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
49266
50280
|
*/
|
|
49267
50281
|
vault_ids?: Array<string>;
|
|
49268
50282
|
/**
|
|
@@ -49669,7 +50683,7 @@ export type SessionsCreateData = {
|
|
|
49669
50683
|
};
|
|
49670
50684
|
export type SessionsCreateErrors = {
|
|
49671
50685
|
/**
|
|
49672
|
-
* The body failed validation and the message names the field: an unknown field, environment_id together with computer_id, a model or thinking selection the agent does not allow, an invalid budget or vault_ids, invalid initial_events, or an agent reference with an unsupported override.
|
|
50686
|
+
* The body failed validation and the message names the field: an unknown field, environment_id together with computer_id, a model or thinking selection the agent does not allow, an invalid budget or vault_ids, invalid initial_events, or an agent reference with an unsupported override, or an assume agent (use /agent/v1/agents/{id}/mcp; assume agents do not take sessions).
|
|
49673
50687
|
*/
|
|
49674
50688
|
400: AgentError;
|
|
49675
50689
|
/**
|
|
@@ -50478,7 +51492,7 @@ export type SessionsEventsListResponses = {
|
|
|
50478
51492
|
*/
|
|
50479
51493
|
behavior: 'allow';
|
|
50480
51494
|
/**
|
|
50481
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
51495
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
50482
51496
|
*/
|
|
50483
51497
|
destination: 'agent' | 'session';
|
|
50484
51498
|
/**
|
|
@@ -50616,7 +51630,7 @@ export type SessionsEventsListResponses = {
|
|
|
50616
51630
|
*/
|
|
50617
51631
|
behavior: 'allow';
|
|
50618
51632
|
/**
|
|
50619
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
51633
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
50620
51634
|
*/
|
|
50621
51635
|
destination: 'agent' | 'session';
|
|
50622
51636
|
/**
|
|
@@ -51691,7 +52705,7 @@ export type SessionsThreadsEventsListResponses = {
|
|
|
51691
52705
|
*/
|
|
51692
52706
|
behavior: 'allow';
|
|
51693
52707
|
/**
|
|
51694
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
52708
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
51695
52709
|
*/
|
|
51696
52710
|
destination: 'agent' | 'session';
|
|
51697
52711
|
/**
|
|
@@ -51829,7 +52843,7 @@ export type SessionsThreadsEventsListResponses = {
|
|
|
51829
52843
|
*/
|
|
51830
52844
|
behavior: 'allow';
|
|
51831
52845
|
/**
|
|
51832
|
-
* agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
52846
|
+
* agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
|
|
51833
52847
|
*/
|
|
51834
52848
|
destination: 'agent' | 'session';
|
|
51835
52849
|
/**
|
|
@@ -52836,11 +53850,11 @@ export type DeploymentsListResponses = {
|
|
|
52836
53850
|
*/
|
|
52837
53851
|
budget?: null | AgentManaged76;
|
|
52838
53852
|
/**
|
|
52839
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
53853
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
52840
53854
|
*/
|
|
52841
53855
|
target: {
|
|
52842
53856
|
/**
|
|
52843
|
-
* environment uses an environment recipe; computer uses the
|
|
53857
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
52844
53858
|
*/
|
|
52845
53859
|
type: 'environment' | 'computer';
|
|
52846
53860
|
};
|
|
@@ -52946,11 +53960,11 @@ export type DeploymentsCreateData = {
|
|
|
52946
53960
|
*/
|
|
52947
53961
|
vault_ids?: Array<string>;
|
|
52948
53962
|
/**
|
|
52949
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
53963
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
52950
53964
|
*/
|
|
52951
53965
|
target?: {
|
|
52952
53966
|
/**
|
|
52953
|
-
* environment uses an environment recipe; computer uses the
|
|
53967
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
52954
53968
|
*/
|
|
52955
53969
|
type: 'environment' | 'computer';
|
|
52956
53970
|
};
|
|
@@ -53106,11 +54120,11 @@ export type DeploymentsCreateResponses = {
|
|
|
53106
54120
|
*/
|
|
53107
54121
|
budget?: null | AgentManaged76;
|
|
53108
54122
|
/**
|
|
53109
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
54123
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
53110
54124
|
*/
|
|
53111
54125
|
target: {
|
|
53112
54126
|
/**
|
|
53113
|
-
* environment uses an environment recipe; computer uses the
|
|
54127
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
53114
54128
|
*/
|
|
53115
54129
|
type: 'environment' | 'computer';
|
|
53116
54130
|
};
|
|
@@ -53275,11 +54289,11 @@ export type DeploymentsRetrieveResponses = {
|
|
|
53275
54289
|
*/
|
|
53276
54290
|
budget?: null | AgentManaged76;
|
|
53277
54291
|
/**
|
|
53278
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
54292
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
53279
54293
|
*/
|
|
53280
54294
|
target: {
|
|
53281
54295
|
/**
|
|
53282
|
-
* environment uses an environment recipe; computer uses the
|
|
54296
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
53283
54297
|
*/
|
|
53284
54298
|
type: 'environment' | 'computer';
|
|
53285
54299
|
};
|
|
@@ -53382,11 +54396,11 @@ export type DeploymentsUpdateData = {
|
|
|
53382
54396
|
*/
|
|
53383
54397
|
vault_ids?: null | Array<string>;
|
|
53384
54398
|
/**
|
|
53385
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
54399
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
53386
54400
|
*/
|
|
53387
54401
|
target?: {
|
|
53388
54402
|
/**
|
|
53389
|
-
* environment uses an environment recipe; computer uses the
|
|
54403
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
53390
54404
|
*/
|
|
53391
54405
|
type: 'environment' | 'computer';
|
|
53392
54406
|
};
|
|
@@ -53555,11 +54569,11 @@ export type DeploymentsUpdateResponses = {
|
|
|
53555
54569
|
*/
|
|
53556
54570
|
budget?: null | AgentManaged76;
|
|
53557
54571
|
/**
|
|
53558
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
54572
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
53559
54573
|
*/
|
|
53560
54574
|
target: {
|
|
53561
54575
|
/**
|
|
53562
|
-
* environment uses an environment recipe; computer uses the
|
|
54576
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
53563
54577
|
*/
|
|
53564
54578
|
type: 'environment' | 'computer';
|
|
53565
54579
|
};
|
|
@@ -53724,11 +54738,11 @@ export type DeploymentsArchiveResponses = {
|
|
|
53724
54738
|
*/
|
|
53725
54739
|
budget?: null | AgentManaged76;
|
|
53726
54740
|
/**
|
|
53727
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
54741
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
53728
54742
|
*/
|
|
53729
54743
|
target: {
|
|
53730
54744
|
/**
|
|
53731
|
-
* environment uses an environment recipe; computer uses the
|
|
54745
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
53732
54746
|
*/
|
|
53733
54747
|
type: 'environment' | 'computer';
|
|
53734
54748
|
};
|
|
@@ -53897,11 +54911,11 @@ export type DeploymentsPauseResponses = {
|
|
|
53897
54911
|
*/
|
|
53898
54912
|
budget?: null | AgentManaged76;
|
|
53899
54913
|
/**
|
|
53900
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
54914
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
53901
54915
|
*/
|
|
53902
54916
|
target: {
|
|
53903
54917
|
/**
|
|
53904
|
-
* environment uses an environment recipe; computer uses the
|
|
54918
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
53905
54919
|
*/
|
|
53906
54920
|
type: 'environment' | 'computer';
|
|
53907
54921
|
};
|
|
@@ -54070,11 +55084,11 @@ export type DeploymentsUnpauseResponses = {
|
|
|
54070
55084
|
*/
|
|
54071
55085
|
budget?: null | AgentManaged76;
|
|
54072
55086
|
/**
|
|
54073
|
-
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
|
|
55087
|
+
* Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
|
|
54074
55088
|
*/
|
|
54075
55089
|
target: {
|
|
54076
55090
|
/**
|
|
54077
|
-
* environment uses an environment recipe; computer uses the
|
|
55091
|
+
* environment uses an environment recipe; computer uses the agent computer.
|
|
54078
55092
|
*/
|
|
54079
55093
|
type: 'environment' | 'computer';
|
|
54080
55094
|
};
|
|
@@ -57883,7 +58897,7 @@ export type AutomationRunsCreateData = {
|
|
|
57883
58897
|
[key: string]: string;
|
|
57884
58898
|
};
|
|
57885
58899
|
/**
|
|
57886
|
-
* Positive integer seconds up to
|
|
58900
|
+
* Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
|
|
57887
58901
|
*/
|
|
57888
58902
|
deadline_seconds?: number;
|
|
57889
58903
|
} | {
|
|
@@ -57910,7 +58924,7 @@ export type AutomationRunsCreateData = {
|
|
|
57910
58924
|
[key: string]: string;
|
|
57911
58925
|
};
|
|
57912
58926
|
/**
|
|
57913
|
-
* Positive integer seconds up to
|
|
58927
|
+
* Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
|
|
57914
58928
|
*/
|
|
57915
58929
|
deadline_seconds?: number;
|
|
57916
58930
|
};
|
|
@@ -59430,6 +60444,565 @@ export type AutomationHooksReceiveResponses = {
|
|
|
59430
60444
|
202: AutomationFiring;
|
|
59431
60445
|
};
|
|
59432
60446
|
export type AutomationHooksReceiveResponse = AutomationHooksReceiveResponses[keyof AutomationHooksReceiveResponses];
|
|
60447
|
+
export type AutomationHumanTasksListData = {
|
|
60448
|
+
body?: never;
|
|
60449
|
+
path?: never;
|
|
60450
|
+
query?: {
|
|
60451
|
+
/**
|
|
60452
|
+
* Page size, 1–100, default 50.
|
|
60453
|
+
*/
|
|
60454
|
+
limit?: number;
|
|
60455
|
+
/**
|
|
60456
|
+
* The next_cursor of the previous page; omit for the first page.
|
|
60457
|
+
*/
|
|
60458
|
+
cursor?: string;
|
|
60459
|
+
/**
|
|
60460
|
+
* Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.
|
|
60461
|
+
*/
|
|
60462
|
+
status?: Array<AutomationHumanTaskStatus>;
|
|
60463
|
+
/**
|
|
60464
|
+
* Only tasks opened by this run (run_).
|
|
60465
|
+
*/
|
|
60466
|
+
run_id?: string;
|
|
60467
|
+
/**
|
|
60468
|
+
* assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.
|
|
60469
|
+
*/
|
|
60470
|
+
scope?: 'assigned' | 'all';
|
|
60471
|
+
};
|
|
60472
|
+
url: '/automation/v1/human-tasks';
|
|
60473
|
+
};
|
|
60474
|
+
export type AutomationHumanTasksListErrors = {
|
|
60475
|
+
/**
|
|
60476
|
+
* INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
|
|
60477
|
+
*/
|
|
60478
|
+
400: AutomationAutomationProblemDetails;
|
|
60479
|
+
/**
|
|
60480
|
+
* RFC 9457 automation problem. 429 includes Retry-After.
|
|
60481
|
+
*/
|
|
60482
|
+
default: AutomationAutomationProblemDetails;
|
|
60483
|
+
};
|
|
60484
|
+
export type AutomationHumanTasksListError = AutomationHumanTasksListErrors[keyof AutomationHumanTasksListErrors];
|
|
60485
|
+
export type AutomationHumanTasksListResponses = {
|
|
60486
|
+
/**
|
|
60487
|
+
* Success
|
|
60488
|
+
*/
|
|
60489
|
+
200: {
|
|
60490
|
+
/**
|
|
60491
|
+
* Human tasks on this page, newest first.
|
|
60492
|
+
*/
|
|
60493
|
+
data: Array<AutomationHumanTask>;
|
|
60494
|
+
/**
|
|
60495
|
+
* Cursor for the next page, passed back as cursor; null when there are no more.
|
|
60496
|
+
*/
|
|
60497
|
+
next_cursor: string | null;
|
|
60498
|
+
};
|
|
60499
|
+
};
|
|
60500
|
+
export type AutomationHumanTasksListResponse = AutomationHumanTasksListResponses[keyof AutomationHumanTasksListResponses];
|
|
60501
|
+
export type AutomationHumanTasksGetData = {
|
|
60502
|
+
body?: never;
|
|
60503
|
+
path: {
|
|
60504
|
+
/**
|
|
60505
|
+
* Human task ID (htask_), from the list or the run's waits.
|
|
60506
|
+
*/
|
|
60507
|
+
id: string;
|
|
60508
|
+
};
|
|
60509
|
+
query?: never;
|
|
60510
|
+
url: '/automation/v1/human-tasks/{id}';
|
|
60511
|
+
};
|
|
60512
|
+
export type AutomationHumanTasksGetErrors = {
|
|
60513
|
+
/**
|
|
60514
|
+
* INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
|
|
60515
|
+
*/
|
|
60516
|
+
400: AutomationAutomationProblemDetails;
|
|
60517
|
+
/**
|
|
60518
|
+
* HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
|
|
60519
|
+
*/
|
|
60520
|
+
404: AutomationAutomationProblemDetails;
|
|
60521
|
+
/**
|
|
60522
|
+
* RFC 9457 automation problem. 429 includes Retry-After.
|
|
60523
|
+
*/
|
|
60524
|
+
default: AutomationAutomationProblemDetails;
|
|
60525
|
+
};
|
|
60526
|
+
export type AutomationHumanTasksGetError = AutomationHumanTasksGetErrors[keyof AutomationHumanTasksGetErrors];
|
|
60527
|
+
export type AutomationHumanTasksGetResponses = {
|
|
60528
|
+
/**
|
|
60529
|
+
* Success
|
|
60530
|
+
*/
|
|
60531
|
+
200: AutomationHumanTask;
|
|
60532
|
+
};
|
|
60533
|
+
export type AutomationHumanTasksGetResponse = AutomationHumanTasksGetResponses[keyof AutomationHumanTasksGetResponses];
|
|
60534
|
+
export type AutomationHumanTasksRespondData = {
|
|
60535
|
+
body: AutomationHumanTaskRespondInput;
|
|
60536
|
+
headers?: {
|
|
60537
|
+
/**
|
|
60538
|
+
* Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
|
|
60539
|
+
*/
|
|
60540
|
+
'Idempotency-Key'?: string;
|
|
60541
|
+
};
|
|
60542
|
+
path: {
|
|
60543
|
+
/**
|
|
60544
|
+
* Human task ID (htask_).
|
|
60545
|
+
*/
|
|
60546
|
+
id: string;
|
|
60547
|
+
};
|
|
60548
|
+
query?: never;
|
|
60549
|
+
url: '/automation/v1/human-tasks/{id}/respond';
|
|
60550
|
+
};
|
|
60551
|
+
export type AutomationHumanTasksRespondErrors = {
|
|
60552
|
+
/**
|
|
60553
|
+
* INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
|
|
60554
|
+
* COMMENT_REQUIRED: The chosen action requires a comment (require_comment: true); retry with comment set.
|
|
60555
|
+
* INVALID_ACTION: action_id is not one of the task's actions; read the task's actions for the valid ids.
|
|
60556
|
+
* INVALID_VALUES: values do not match the task's form_schema (unknown field, missing required field, wrong type or out-of-range value), or comment exceeds 4000 characters.
|
|
60557
|
+
*/
|
|
60558
|
+
400: AutomationAutomationProblemDetails;
|
|
60559
|
+
/**
|
|
60560
|
+
* NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
|
|
60561
|
+
* SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
|
|
60562
|
+
* AGENT_NOT_ALLOWED: The request comes from an agent (an agent session or run token) and the task did not set allow_agent_decision: true; the person must respond from the Console or with their own credential.
|
|
60563
|
+
*/
|
|
60564
|
+
403: AutomationAutomationProblemDetails;
|
|
60565
|
+
/**
|
|
60566
|
+
* HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
|
|
60567
|
+
*/
|
|
60568
|
+
404: AutomationAutomationProblemDetails;
|
|
60569
|
+
/**
|
|
60570
|
+
* TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
|
|
60571
|
+
* ALREADY_RESPONDED: The caller already responded; each assignee responds once.
|
|
60572
|
+
* IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
|
|
60573
|
+
*/
|
|
60574
|
+
409: AutomationAutomationProblemDetails;
|
|
60575
|
+
/**
|
|
60576
|
+
* IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
|
|
60577
|
+
*/
|
|
60578
|
+
422: AutomationAutomationProblemDetails;
|
|
60579
|
+
/**
|
|
60580
|
+
* RFC 9457 automation problem. 429 includes Retry-After.
|
|
60581
|
+
*/
|
|
60582
|
+
default: AutomationAutomationProblemDetails;
|
|
60583
|
+
};
|
|
60584
|
+
export type AutomationHumanTasksRespondError = AutomationHumanTasksRespondErrors[keyof AutomationHumanTasksRespondErrors];
|
|
60585
|
+
export type AutomationHumanTasksRespondResponses = {
|
|
60586
|
+
/**
|
|
60587
|
+
* Success
|
|
60588
|
+
*/
|
|
60589
|
+
200: AutomationHumanTask;
|
|
60590
|
+
};
|
|
60591
|
+
export type AutomationHumanTasksRespondResponse = AutomationHumanTasksRespondResponses[keyof AutomationHumanTasksRespondResponses];
|
|
60592
|
+
export type AutomationHumanTasksCancelData = {
|
|
60593
|
+
body?: AutomationHumanTaskCancelInput;
|
|
60594
|
+
headers?: {
|
|
60595
|
+
/**
|
|
60596
|
+
* Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
|
|
60597
|
+
*/
|
|
60598
|
+
'Idempotency-Key'?: string;
|
|
60599
|
+
};
|
|
60600
|
+
path: {
|
|
60601
|
+
/**
|
|
60602
|
+
* Human task ID (htask_).
|
|
60603
|
+
*/
|
|
60604
|
+
id: string;
|
|
60605
|
+
};
|
|
60606
|
+
query?: never;
|
|
60607
|
+
url: '/automation/v1/human-tasks/{id}/cancel';
|
|
60608
|
+
};
|
|
60609
|
+
export type AutomationHumanTasksCancelErrors = {
|
|
60610
|
+
/**
|
|
60611
|
+
* INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
|
|
60612
|
+
*/
|
|
60613
|
+
400: AutomationAutomationProblemDetails;
|
|
60614
|
+
/**
|
|
60615
|
+
* NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
|
|
60616
|
+
*/
|
|
60617
|
+
403: AutomationAutomationProblemDetails;
|
|
60618
|
+
/**
|
|
60619
|
+
* HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
|
|
60620
|
+
*/
|
|
60621
|
+
404: AutomationAutomationProblemDetails;
|
|
60622
|
+
/**
|
|
60623
|
+
* TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
|
|
60624
|
+
* IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
|
|
60625
|
+
*/
|
|
60626
|
+
409: AutomationAutomationProblemDetails;
|
|
60627
|
+
/**
|
|
60628
|
+
* IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
|
|
60629
|
+
*/
|
|
60630
|
+
422: AutomationAutomationProblemDetails;
|
|
60631
|
+
/**
|
|
60632
|
+
* RFC 9457 automation problem. 429 includes Retry-After.
|
|
60633
|
+
*/
|
|
60634
|
+
default: AutomationAutomationProblemDetails;
|
|
60635
|
+
};
|
|
60636
|
+
export type AutomationHumanTasksCancelError = AutomationHumanTasksCancelErrors[keyof AutomationHumanTasksCancelErrors];
|
|
60637
|
+
export type AutomationHumanTasksCancelResponses = {
|
|
60638
|
+
/**
|
|
60639
|
+
* Success
|
|
60640
|
+
*/
|
|
60641
|
+
200: AutomationHumanTask;
|
|
60642
|
+
};
|
|
60643
|
+
export type AutomationHumanTasksCancelResponse = AutomationHumanTasksCancelResponses[keyof AutomationHumanTasksCancelResponses];
|
|
60644
|
+
export type AutomationHumanTasksDelegateData = {
|
|
60645
|
+
body: AutomationHumanTaskDelegateInput;
|
|
60646
|
+
path: {
|
|
60647
|
+
/**
|
|
60648
|
+
* Human task ID (htask_).
|
|
60649
|
+
*/
|
|
60650
|
+
id: string;
|
|
60651
|
+
};
|
|
60652
|
+
query?: never;
|
|
60653
|
+
url: '/automation/v1/human-tasks/{id}/delegate';
|
|
60654
|
+
};
|
|
60655
|
+
export type AutomationHumanTasksDelegateErrors = {
|
|
60656
|
+
/**
|
|
60657
|
+
* INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
|
|
60658
|
+
*/
|
|
60659
|
+
400: AutomationAutomationProblemDetails;
|
|
60660
|
+
/**
|
|
60661
|
+
* NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
|
|
60662
|
+
* SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
|
|
60663
|
+
*/
|
|
60664
|
+
403: AutomationAutomationProblemDetails;
|
|
60665
|
+
/**
|
|
60666
|
+
* HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
|
|
60667
|
+
*/
|
|
60668
|
+
404: AutomationAutomationProblemDetails;
|
|
60669
|
+
/**
|
|
60670
|
+
* TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
|
|
60671
|
+
* ALREADY_RESPONDED: The caller already responded; each assignee responds once.
|
|
60672
|
+
* IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
|
|
60673
|
+
*/
|
|
60674
|
+
409: AutomationAutomationProblemDetails;
|
|
60675
|
+
/**
|
|
60676
|
+
* RFC 9457 automation problem. 429 includes Retry-After.
|
|
60677
|
+
*/
|
|
60678
|
+
default: AutomationAutomationProblemDetails;
|
|
60679
|
+
};
|
|
60680
|
+
export type AutomationHumanTasksDelegateError = AutomationHumanTasksDelegateErrors[keyof AutomationHumanTasksDelegateErrors];
|
|
60681
|
+
export type AutomationHumanTasksDelegateResponses = {
|
|
60682
|
+
/**
|
|
60683
|
+
* Success
|
|
60684
|
+
*/
|
|
60685
|
+
200: AutomationHumanTask;
|
|
60686
|
+
};
|
|
60687
|
+
export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
|
|
60688
|
+
export type CanvasListCanvasesData = {
|
|
60689
|
+
body?: never;
|
|
60690
|
+
path?: never;
|
|
60691
|
+
query?: {
|
|
60692
|
+
/**
|
|
60693
|
+
* Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted.
|
|
60694
|
+
*/
|
|
60695
|
+
limit?: number;
|
|
60696
|
+
/**
|
|
60697
|
+
* Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
|
|
60698
|
+
*/
|
|
60699
|
+
cursor?: string;
|
|
60700
|
+
};
|
|
60701
|
+
url: '/canvas/v1/canvases';
|
|
60702
|
+
};
|
|
60703
|
+
export type CanvasListCanvasesErrors = {
|
|
60704
|
+
/**
|
|
60705
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60706
|
+
*/
|
|
60707
|
+
400: CanvasCanvasError;
|
|
60708
|
+
/**
|
|
60709
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60710
|
+
*/
|
|
60711
|
+
401: CanvasCanvasError;
|
|
60712
|
+
/**
|
|
60713
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60714
|
+
*/
|
|
60715
|
+
403: CanvasCanvasError;
|
|
60716
|
+
/**
|
|
60717
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60718
|
+
*/
|
|
60719
|
+
500: CanvasCanvasError;
|
|
60720
|
+
};
|
|
60721
|
+
export type CanvasListCanvasesError = CanvasListCanvasesErrors[keyof CanvasListCanvasesErrors];
|
|
60722
|
+
export type CanvasListCanvasesResponses = {
|
|
60723
|
+
/**
|
|
60724
|
+
* One page of organization canvases, ordered by most recently updated first.
|
|
60725
|
+
*/
|
|
60726
|
+
200: CanvasCanvasPage;
|
|
60727
|
+
};
|
|
60728
|
+
export type CanvasListCanvasesResponse = CanvasListCanvasesResponses[keyof CanvasListCanvasesResponses];
|
|
60729
|
+
export type CanvasCreateCanvasData = {
|
|
60730
|
+
/**
|
|
60731
|
+
* Optional display name for the new canvas; omit the body or send an empty object to use Untitled.
|
|
60732
|
+
*/
|
|
60733
|
+
body?: CanvasCreateCanvasInput;
|
|
60734
|
+
path?: never;
|
|
60735
|
+
query?: never;
|
|
60736
|
+
url: '/canvas/v1/canvases';
|
|
60737
|
+
};
|
|
60738
|
+
export type CanvasCreateCanvasErrors = {
|
|
60739
|
+
/**
|
|
60740
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60741
|
+
*/
|
|
60742
|
+
400: CanvasCanvasError;
|
|
60743
|
+
/**
|
|
60744
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60745
|
+
*/
|
|
60746
|
+
401: CanvasCanvasError;
|
|
60747
|
+
/**
|
|
60748
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60749
|
+
*/
|
|
60750
|
+
403: CanvasCanvasError;
|
|
60751
|
+
/**
|
|
60752
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60753
|
+
*/
|
|
60754
|
+
500: CanvasCanvasError;
|
|
60755
|
+
};
|
|
60756
|
+
export type CanvasCreateCanvasError = CanvasCreateCanvasErrors[keyof CanvasCreateCanvasErrors];
|
|
60757
|
+
export type CanvasCreateCanvasResponses = {
|
|
60758
|
+
/**
|
|
60759
|
+
* The newly created canvas; use id for API calls and viewer_url to watch it in Console.
|
|
60760
|
+
*/
|
|
60761
|
+
201: CanvasCanvas;
|
|
60762
|
+
};
|
|
60763
|
+
export type CanvasCreateCanvasResponse = CanvasCreateCanvasResponses[keyof CanvasCreateCanvasResponses];
|
|
60764
|
+
export type CanvasDeleteCanvasData = {
|
|
60765
|
+
body?: never;
|
|
60766
|
+
path: {
|
|
60767
|
+
/**
|
|
60768
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60769
|
+
*/
|
|
60770
|
+
canvas_id: string;
|
|
60771
|
+
};
|
|
60772
|
+
query?: never;
|
|
60773
|
+
url: '/canvas/v1/canvases/{canvas_id}';
|
|
60774
|
+
};
|
|
60775
|
+
export type CanvasDeleteCanvasErrors = {
|
|
60776
|
+
/**
|
|
60777
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60778
|
+
*/
|
|
60779
|
+
400: CanvasCanvasError;
|
|
60780
|
+
/**
|
|
60781
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60782
|
+
*/
|
|
60783
|
+
401: CanvasCanvasError;
|
|
60784
|
+
/**
|
|
60785
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60786
|
+
*/
|
|
60787
|
+
403: CanvasCanvasError;
|
|
60788
|
+
/**
|
|
60789
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60790
|
+
*/
|
|
60791
|
+
404: CanvasCanvasError;
|
|
60792
|
+
/**
|
|
60793
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60794
|
+
*/
|
|
60795
|
+
500: CanvasCanvasError;
|
|
60796
|
+
};
|
|
60797
|
+
export type CanvasDeleteCanvasError = CanvasDeleteCanvasErrors[keyof CanvasDeleteCanvasErrors];
|
|
60798
|
+
export type CanvasDeleteCanvasResponses = {
|
|
60799
|
+
/**
|
|
60800
|
+
* Confirmation that this canvas has been permanently deleted.
|
|
60801
|
+
*/
|
|
60802
|
+
200: CanvasDeletedCanvas;
|
|
60803
|
+
};
|
|
60804
|
+
export type CanvasDeleteCanvasResponse = CanvasDeleteCanvasResponses[keyof CanvasDeleteCanvasResponses];
|
|
60805
|
+
export type CanvasRetrieveCanvasData = {
|
|
60806
|
+
body?: never;
|
|
60807
|
+
path: {
|
|
60808
|
+
/**
|
|
60809
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60810
|
+
*/
|
|
60811
|
+
canvas_id: string;
|
|
60812
|
+
};
|
|
60813
|
+
query?: never;
|
|
60814
|
+
url: '/canvas/v1/canvases/{canvas_id}';
|
|
60815
|
+
};
|
|
60816
|
+
export type CanvasRetrieveCanvasErrors = {
|
|
60817
|
+
/**
|
|
60818
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60819
|
+
*/
|
|
60820
|
+
400: CanvasCanvasError;
|
|
60821
|
+
/**
|
|
60822
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60823
|
+
*/
|
|
60824
|
+
401: CanvasCanvasError;
|
|
60825
|
+
/**
|
|
60826
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60827
|
+
*/
|
|
60828
|
+
403: CanvasCanvasError;
|
|
60829
|
+
/**
|
|
60830
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60831
|
+
*/
|
|
60832
|
+
404: CanvasCanvasError;
|
|
60833
|
+
/**
|
|
60834
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60835
|
+
*/
|
|
60836
|
+
500: CanvasCanvasError;
|
|
60837
|
+
};
|
|
60838
|
+
export type CanvasRetrieveCanvasError = CanvasRetrieveCanvasErrors[keyof CanvasRetrieveCanvasErrors];
|
|
60839
|
+
export type CanvasRetrieveCanvasResponses = {
|
|
60840
|
+
/**
|
|
60841
|
+
* Current canvas metadata, top-level frame summaries and reusable components.
|
|
60842
|
+
*/
|
|
60843
|
+
200: CanvasCanvasDetail;
|
|
60844
|
+
};
|
|
60845
|
+
export type CanvasRetrieveCanvasResponse = CanvasRetrieveCanvasResponses[keyof CanvasRetrieveCanvasResponses];
|
|
60846
|
+
export type CanvasListNodesData = {
|
|
60847
|
+
body?: never;
|
|
60848
|
+
path: {
|
|
60849
|
+
/**
|
|
60850
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60851
|
+
*/
|
|
60852
|
+
canvas_id: string;
|
|
60853
|
+
};
|
|
60854
|
+
query: {
|
|
60855
|
+
/**
|
|
60856
|
+
* Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null.
|
|
60857
|
+
*/
|
|
60858
|
+
ids: string;
|
|
60859
|
+
/**
|
|
60860
|
+
* Maximum child depth below each requested node, as an integer at least 0; 0 returns the node without descendants, and omission returns the complete subtree.
|
|
60861
|
+
*/
|
|
60862
|
+
depth?: number;
|
|
60863
|
+
};
|
|
60864
|
+
url: '/canvas/v1/canvases/{canvas_id}/nodes';
|
|
60865
|
+
};
|
|
60866
|
+
export type CanvasListNodesErrors = {
|
|
60867
|
+
/**
|
|
60868
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60869
|
+
*/
|
|
60870
|
+
400: CanvasCanvasError;
|
|
60871
|
+
/**
|
|
60872
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60873
|
+
*/
|
|
60874
|
+
401: CanvasCanvasError;
|
|
60875
|
+
/**
|
|
60876
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60877
|
+
*/
|
|
60878
|
+
403: CanvasCanvasError;
|
|
60879
|
+
/**
|
|
60880
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60881
|
+
*/
|
|
60882
|
+
404: CanvasCanvasError;
|
|
60883
|
+
/**
|
|
60884
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60885
|
+
*/
|
|
60886
|
+
500: CanvasCanvasError;
|
|
60887
|
+
};
|
|
60888
|
+
export type CanvasListNodesError = CanvasListNodesErrors[keyof CanvasListNodesErrors];
|
|
60889
|
+
export type CanvasListNodesResponses = {
|
|
60890
|
+
/**
|
|
60891
|
+
* Current revision and requested node documents; absent ids map to null rather than failing the request.
|
|
60892
|
+
*/
|
|
60893
|
+
200: CanvasNodesResult;
|
|
60894
|
+
};
|
|
60895
|
+
export type CanvasListNodesResponse = CanvasListNodesResponses[keyof CanvasListNodesResponses];
|
|
60896
|
+
export type CanvasListImagesData = {
|
|
60897
|
+
body?: never;
|
|
60898
|
+
path: {
|
|
60899
|
+
/**
|
|
60900
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60901
|
+
*/
|
|
60902
|
+
canvas_id: string;
|
|
60903
|
+
};
|
|
60904
|
+
query: {
|
|
60905
|
+
/**
|
|
60906
|
+
* Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.
|
|
60907
|
+
*/
|
|
60908
|
+
ids: string;
|
|
60909
|
+
/**
|
|
60910
|
+
* Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.
|
|
60911
|
+
*/
|
|
60912
|
+
scale?: number;
|
|
60913
|
+
/**
|
|
60914
|
+
* Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.
|
|
60915
|
+
*/
|
|
60916
|
+
format?: 'png';
|
|
60917
|
+
};
|
|
60918
|
+
url: '/canvas/v1/canvases/{canvas_id}/images';
|
|
60919
|
+
};
|
|
60920
|
+
export type CanvasListImagesErrors = {
|
|
60921
|
+
/**
|
|
60922
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60923
|
+
*/
|
|
60924
|
+
400: CanvasCanvasError;
|
|
60925
|
+
/**
|
|
60926
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60927
|
+
*/
|
|
60928
|
+
401: CanvasCanvasError;
|
|
60929
|
+
/**
|
|
60930
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60931
|
+
*/
|
|
60932
|
+
403: CanvasCanvasError;
|
|
60933
|
+
/**
|
|
60934
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60935
|
+
*/
|
|
60936
|
+
404: CanvasCanvasError;
|
|
60937
|
+
/**
|
|
60938
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60939
|
+
*/
|
|
60940
|
+
500: CanvasCanvasError;
|
|
60941
|
+
/**
|
|
60942
|
+
* RENDER_FAILED occurs when rendering cannot complete; retry the render later, using nodes.list to inspect the design in the meantime.
|
|
60943
|
+
*/
|
|
60944
|
+
503: CanvasCanvasError;
|
|
60945
|
+
};
|
|
60946
|
+
export type CanvasListImagesError = CanvasListImagesErrors[keyof CanvasListImagesErrors];
|
|
60947
|
+
export type CanvasListImagesResponses = {
|
|
60948
|
+
/**
|
|
60949
|
+
* A node-id-to-PNG-data-URL map, with err=null; individual unavailable images have null values.
|
|
60950
|
+
*/
|
|
60951
|
+
200: CanvasImagesResult;
|
|
60952
|
+
};
|
|
60953
|
+
export type CanvasListImagesResponse = CanvasListImagesResponses[keyof CanvasListImagesResponses];
|
|
60954
|
+
export type CanvasExecuteData = {
|
|
60955
|
+
/**
|
|
60956
|
+
* Either new script source or the edit_id of a failed script with replacement edits; expected_version optionally guards against concurrent changes.
|
|
60957
|
+
*/
|
|
60958
|
+
body: CanvasExecuteInput;
|
|
60959
|
+
path: {
|
|
60960
|
+
/**
|
|
60961
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60962
|
+
*/
|
|
60963
|
+
canvas_id: string;
|
|
60964
|
+
};
|
|
60965
|
+
query?: never;
|
|
60966
|
+
url: '/canvas/v1/canvases/{canvas_id}:execute';
|
|
60967
|
+
};
|
|
60968
|
+
export type CanvasExecuteErrors = {
|
|
60969
|
+
/**
|
|
60970
|
+
* INVALID_PARAMS: script and edit_id are not exclusive or fields violate constraints; correct the request. SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED: execution failed and all writes rolled back; patch the saved source with details.edit_id and edits, using line, column or rejection if supplied. EDIT_EXPIRED: edit_id is older than ten minutes; submit a corrected new script.
|
|
60971
|
+
*/
|
|
60972
|
+
400: CanvasCanvasError;
|
|
60973
|
+
/**
|
|
60974
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60975
|
+
*/
|
|
60976
|
+
401: CanvasCanvasError;
|
|
60977
|
+
/**
|
|
60978
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60979
|
+
*/
|
|
60980
|
+
403: CanvasCanvasError;
|
|
60981
|
+
/**
|
|
60982
|
+
* CANVAS_NOT_FOUND means the canvas is missing, deleted or outside your organization; select an id from list. NODE_NOT_FOUND means a script targets a missing node; retrieve current frames or nodes and correct the node reference before retrying.
|
|
60983
|
+
*/
|
|
60984
|
+
404: CanvasCanvasError;
|
|
60985
|
+
/**
|
|
60986
|
+
* REVISION_CONFLICT means expected_version differs from the current revision in error.details.version; retrieve the latest canvas, merge concurrent changes and retry with that version.
|
|
60987
|
+
*/
|
|
60988
|
+
409: CanvasCanvasError;
|
|
60989
|
+
/**
|
|
60990
|
+
* CANVAS_BUSY means the same canvas has more than four calls queued; wait for pending work to finish before retrying.
|
|
60991
|
+
*/
|
|
60992
|
+
429: CanvasCanvasError;
|
|
60993
|
+
/**
|
|
60994
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60995
|
+
*/
|
|
60996
|
+
500: CanvasCanvasError;
|
|
60997
|
+
};
|
|
60998
|
+
export type CanvasExecuteError = CanvasExecuteErrors[keyof CanvasExecuteErrors];
|
|
60999
|
+
export type CanvasExecuteResponses = {
|
|
61000
|
+
/**
|
|
61001
|
+
* Committed revision, operation results and viewer URL; screenshots contains node ids to pass to images.list.
|
|
61002
|
+
*/
|
|
61003
|
+
200: CanvasExecuteResult;
|
|
61004
|
+
};
|
|
61005
|
+
export type CanvasExecuteResponse = CanvasExecuteResponses[keyof CanvasExecuteResponses];
|
|
59433
61006
|
export type DatabaseListDatabasesData = {
|
|
59434
61007
|
body?: never;
|
|
59435
61008
|
path?: never;
|
|
@@ -62524,7 +64097,7 @@ export type MediaUploadAssetData = {
|
|
|
62524
64097
|
*/
|
|
62525
64098
|
filename_override?: string;
|
|
62526
64099
|
/**
|
|
62527
|
-
* Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
|
|
64100
|
+
* Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
|
|
62528
64101
|
*/
|
|
62529
64102
|
overwrite?: boolean;
|
|
62530
64103
|
/**
|
|
@@ -62621,7 +64194,7 @@ export type MediaImportAssetData = {
|
|
|
62621
64194
|
*/
|
|
62622
64195
|
body: {
|
|
62623
64196
|
/**
|
|
62624
|
-
* File ID to copy into this library; passed as the upload source instead of file bytes.
|
|
64197
|
+
* File ID to copy into this library; passed as the upload source instead of file bytes. This creates an independent public copy readable without authentication. Deleting the source File does not delete this asset; do not import confidential content.
|
|
62625
64198
|
*/
|
|
62626
64199
|
file_id: string;
|
|
62627
64200
|
/**
|
|
@@ -62657,7 +64230,7 @@ export type MediaImportAssetData = {
|
|
|
62657
64230
|
*/
|
|
62658
64231
|
filename_override?: string;
|
|
62659
64232
|
/**
|
|
62660
|
-
* Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
|
|
64233
|
+
* Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
|
|
62661
64234
|
*/
|
|
62662
64235
|
overwrite?: boolean;
|
|
62663
64236
|
/**
|
|
@@ -63116,7 +64689,7 @@ export type MediaExpressionSearchData = {
|
|
|
63116
64689
|
*/
|
|
63117
64690
|
body: {
|
|
63118
64691
|
/**
|
|
63119
|
-
* Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.
|
|
64692
|
+
* Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
|
|
63120
64693
|
*/
|
|
63121
64694
|
expression?: string;
|
|
63122
64695
|
/**
|