@deepraxis/sdk 0.1.1-dev.13dab28 → 0.1.1-dev.27bb19e
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 +19 -59
- package/README.md +1 -1
- package/dist/automation.d.ts +7 -0
- package/dist/core/client.d.ts +5 -1
- package/dist/core/client.js +10 -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 +63 -123
- package/dist/generated/sdk.gen.js +135 -268
- package/dist/generated/types.gen.d.ts +2354 -2620
- package/dist/helpers/application-build.d.ts +10 -0
- package/dist/helpers/application-build.js +98 -0
- package/dist/helpers/application-publish.d.ts +8 -0
- package/dist/helpers/application-publish.js +26 -9
- package/dist/helpers/browser-connect.d.ts +78 -0
- package/dist/helpers/browser-connect.js +161 -0
- package/dist/helpers/browser-decisions.d.ts +44 -0
- package/dist/helpers/browser-decisions.js +84 -0
- package/dist/helpers/browser-documentation.d.ts +2 -0
- package/dist/helpers/browser-documentation.js +47 -0
- package/dist/helpers/file-upload.d.ts +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/operations.generated.d.ts +230 -368
- package/dist/operations.generated.js +280 -429
- package/dist/resources.generated.d.ts +137 -430
- package/dist/resources.generated.js +11 -31
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ export declare const operations: readonly [{
|
|
|
2
2
|
readonly resource: "agent.agents";
|
|
3
3
|
readonly method: "list";
|
|
4
4
|
readonly summary: "List agents";
|
|
5
|
-
readonly description: "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=personal for durable-computer agents or kind=service for per-session environments. Pass next_page from the response as page to read the next page; a null next_page means the end.";
|
|
5
|
+
readonly description: "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents or kind=service for per-session environments. Pass next_page from the response as page to read the next page; a null next_page means the end.";
|
|
6
6
|
readonly http: "GET";
|
|
7
7
|
readonly path: "/agent/v1/agents";
|
|
8
8
|
readonly streaming: "no";
|
|
@@ -37,7 +37,7 @@ export declare const operations: readonly [{
|
|
|
37
37
|
}, {
|
|
38
38
|
readonly name: "kind";
|
|
39
39
|
readonly type: "string";
|
|
40
|
-
readonly enum: readonly ["personal", "service"];
|
|
40
|
+
readonly enum: readonly ["general", "personal", "service"];
|
|
41
41
|
readonly required: false;
|
|
42
42
|
readonly description: "Filter agents by their immutable kind, including agents created before kind was recorded.";
|
|
43
43
|
}];
|
|
@@ -84,7 +84,7 @@ export declare const operations: readonly [{
|
|
|
84
84
|
readonly name: "multiagent";
|
|
85
85
|
readonly type: "object";
|
|
86
86
|
readonly required: false;
|
|
87
|
-
readonly description: "A
|
|
87
|
+
readonly description: "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.";
|
|
88
88
|
}, {
|
|
89
89
|
readonly name: "skills";
|
|
90
90
|
readonly type: "array";
|
|
@@ -107,13 +107,13 @@ export declare const operations: readonly [{
|
|
|
107
107
|
readonly type: "array";
|
|
108
108
|
readonly itemType: "object";
|
|
109
109
|
readonly required: false;
|
|
110
|
-
readonly description: "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.";
|
|
110
|
+
readonly description: "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.";
|
|
111
111
|
}, {
|
|
112
112
|
readonly name: "kind";
|
|
113
113
|
readonly type: "string";
|
|
114
|
-
readonly enum: readonly ["personal", "service"];
|
|
114
|
+
readonly enum: readonly ["general", "personal", "service"];
|
|
115
115
|
readonly required: false;
|
|
116
|
-
readonly description: "Immutable agent kind. personal
|
|
116
|
+
readonly description: "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.";
|
|
117
117
|
}, {
|
|
118
118
|
readonly name: "computer_id";
|
|
119
119
|
readonly type: "string";
|
|
@@ -155,7 +155,7 @@ export declare const operations: readonly [{
|
|
|
155
155
|
readonly name: "avatar";
|
|
156
156
|
readonly type: "string";
|
|
157
157
|
readonly required: false;
|
|
158
|
-
readonly description: "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.
|
|
158
|
+
readonly description: "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.";
|
|
159
159
|
}, {
|
|
160
160
|
readonly name: "environment_id";
|
|
161
161
|
readonly type: "string";
|
|
@@ -179,7 +179,7 @@ export declare const operations: readonly [{
|
|
|
179
179
|
readonly resource: "agent.agents";
|
|
180
180
|
readonly method: "retrieve";
|
|
181
181
|
readonly summary: "Get agent";
|
|
182
|
-
readonly description: "Read
|
|
182
|
+
readonly description: "Read the agent configuration currently effective for new sessions. By default, version equals active_version and latest_version identifies the newest saved version, including an unapplied save. Use latest_version for optimistic concurrency when updating. Pass version as a positive integer to read that saved version; version=active is equivalent to omission. The response lists every native tool with its resolved configuration in one agent_toolset_20260401 entry, so tools can be sent back unchanged to agents.update. Use agents.versions.list to enumerate saved versions.";
|
|
183
183
|
readonly http: "GET";
|
|
184
184
|
readonly path: "/agent/v1/agents/{agent_id}";
|
|
185
185
|
readonly streaming: "no";
|
|
@@ -193,13 +193,13 @@ export declare const operations: readonly [{
|
|
|
193
193
|
readonly name: "version";
|
|
194
194
|
readonly type: "number";
|
|
195
195
|
readonly required: false;
|
|
196
|
-
readonly description: "Agent version to read
|
|
196
|
+
readonly description: "Agent version to read. Omit, or send active, for the currently effective version used by new sessions. Send an integer of at least 1 from agents.versions.list to read that saved version. The default response also includes latest_version, the newest saved version number.";
|
|
197
197
|
}];
|
|
198
198
|
}, {
|
|
199
199
|
readonly resource: "agent.agents";
|
|
200
200
|
readonly method: "update";
|
|
201
201
|
readonly summary: "Update agent";
|
|
202
|
-
readonly description: "
|
|
202
|
+
readonly description: "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400.";
|
|
203
203
|
readonly http: "POST";
|
|
204
204
|
readonly path: "/agent/v1/agents/{agent_id}";
|
|
205
205
|
readonly streaming: "no";
|
|
@@ -237,7 +237,7 @@ export declare const operations: readonly [{
|
|
|
237
237
|
readonly name: "multiagent";
|
|
238
238
|
readonly type: "object";
|
|
239
239
|
readonly required: false;
|
|
240
|
-
readonly description: "A
|
|
240
|
+
readonly description: "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.";
|
|
241
241
|
}, {
|
|
242
242
|
readonly name: "name";
|
|
243
243
|
readonly type: "string";
|
|
@@ -264,17 +264,17 @@ export declare const operations: readonly [{
|
|
|
264
264
|
readonly name: "version";
|
|
265
265
|
readonly type: "number";
|
|
266
266
|
readonly required: false;
|
|
267
|
-
readonly description: "
|
|
267
|
+
readonly description: "Newest saved version used for optimistic concurrency. Obtain latest_version from the default retrieve or update response, or version from versions.list. A stale value returns 409; omit for an unconditional update.";
|
|
268
268
|
}, {
|
|
269
269
|
readonly name: "apply";
|
|
270
270
|
readonly type: "boolean";
|
|
271
271
|
readonly required: false;
|
|
272
|
-
readonly description: "Defaults to true: apply
|
|
272
|
+
readonly description: "Defaults to true: apply a newly saved configuration version. Set false to save without changing active_version. An unchanged configuration is a no-op, including note-only updates; use versions.apply to activate a saved version.";
|
|
273
273
|
}, {
|
|
274
274
|
readonly name: "version_note";
|
|
275
275
|
readonly type: "string";
|
|
276
276
|
readonly required: false;
|
|
277
|
-
readonly description: "Optional change explanation
|
|
277
|
+
readonly description: "Optional change explanation, at most 280 characters. Recorded only when a configuration change creates a new immutable version. A note-only update is a no-op returning 200 and the current effective version. Null is equivalent to omission.";
|
|
278
278
|
}, {
|
|
279
279
|
readonly name: "bindings";
|
|
280
280
|
readonly type: "array";
|
|
@@ -284,9 +284,9 @@ export declare const operations: readonly [{
|
|
|
284
284
|
}, {
|
|
285
285
|
readonly name: "kind";
|
|
286
286
|
readonly type: "string";
|
|
287
|
-
readonly enum: readonly ["personal", "service"];
|
|
287
|
+
readonly enum: readonly ["general", "personal", "service"];
|
|
288
288
|
readonly required: false;
|
|
289
|
-
readonly description: "Immutable agent kind. personal
|
|
289
|
+
readonly description: "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.";
|
|
290
290
|
}, {
|
|
291
291
|
readonly name: "computer_id";
|
|
292
292
|
readonly type: "string";
|
|
@@ -328,7 +328,7 @@ export declare const operations: readonly [{
|
|
|
328
328
|
readonly name: "avatar";
|
|
329
329
|
readonly type: "string";
|
|
330
330
|
readonly required: false;
|
|
331
|
-
readonly description: "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.
|
|
331
|
+
readonly description: "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.";
|
|
332
332
|
}, {
|
|
333
333
|
readonly name: "environment_id";
|
|
334
334
|
readonly type: "string";
|
|
@@ -662,155 +662,6 @@ export declare const operations: readonly [{
|
|
|
662
662
|
readonly description: "Customer id from customer listing, or your own customer_id.";
|
|
663
663
|
}];
|
|
664
664
|
readonly query: readonly [];
|
|
665
|
-
}, {
|
|
666
|
-
readonly resource: "agent.agents.endUsers";
|
|
667
|
-
readonly method: "list";
|
|
668
|
-
readonly summary: "List End Users";
|
|
669
|
-
readonly description: "List users who have sessions or token issuance history on a service agent.\n\nOrdered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.";
|
|
670
|
-
readonly http: "GET";
|
|
671
|
-
readonly path: "/agent/v1/agents/{agent_id}/end_users";
|
|
672
|
-
readonly streaming: "no";
|
|
673
|
-
readonly pagination: false;
|
|
674
|
-
readonly pathParams: readonly [{
|
|
675
|
-
readonly name: "agent_id";
|
|
676
|
-
readonly sdkName: "agent_id";
|
|
677
|
-
readonly description: "Active service agent identifier from agent creation or listing.";
|
|
678
|
-
}];
|
|
679
|
-
readonly query: readonly [{
|
|
680
|
-
readonly name: "limit";
|
|
681
|
-
readonly type: "integer";
|
|
682
|
-
readonly required: false;
|
|
683
|
-
readonly description: "Maximum users per page; defaults to 20.";
|
|
684
|
-
}, {
|
|
685
|
-
readonly name: "page";
|
|
686
|
-
readonly type: "string";
|
|
687
|
-
readonly required: false;
|
|
688
|
-
readonly description: "next_page from the previous response with the same agent, q and limit.";
|
|
689
|
-
}, {
|
|
690
|
-
readonly name: "q";
|
|
691
|
-
readonly type: "string";
|
|
692
|
-
readonly required: false;
|
|
693
|
-
readonly description: "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users.";
|
|
694
|
-
}];
|
|
695
|
-
}, {
|
|
696
|
-
readonly resource: "agent.agents.endUsers";
|
|
697
|
-
readonly method: "delete";
|
|
698
|
-
readonly summary: "Delete end-user data";
|
|
699
|
-
readonly description: "Delete a host application's end-user data from one service agent after explicit confirmation.\n\nDevelop only. Set confirm to the exact external_user_id; missing or mismatched confirmation returns 400. Returns 202 with a pending task id, not completion. Poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the user is blocked before a seven-day recovery snapshot is verified. Sessions including child sessions, conversation data, grants and feedback are then removed. A pre-existing block remains; a temporary block is removed on success. Attachment metadata is recorded and File attachments are retained. No charge is introduced by this operation. Example: DELETE /agent/v1/agents/agent_example/end_users/customer_123?confirm=customer_123.";
|
|
700
|
-
readonly http: "DELETE";
|
|
701
|
-
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}";
|
|
702
|
-
readonly streaming: "no";
|
|
703
|
-
readonly pagination: false;
|
|
704
|
-
readonly pathParams: readonly [{
|
|
705
|
-
readonly name: "agent_id";
|
|
706
|
-
readonly sdkName: "agent_id";
|
|
707
|
-
readonly description: "Active service agent identifier from agent creation or listing.";
|
|
708
|
-
}, {
|
|
709
|
-
readonly name: "external_user_id";
|
|
710
|
-
readonly sdkName: "external_user_id";
|
|
711
|
-
readonly description: "Host user identifier supplied at issuance or from end-user listing.";
|
|
712
|
-
}];
|
|
713
|
-
readonly query: readonly [{
|
|
714
|
-
readonly name: "confirm";
|
|
715
|
-
readonly type: "string";
|
|
716
|
-
readonly required: true;
|
|
717
|
-
readonly description: "Must exactly equal the external_user_id path parameter to confirm destructive deletion.";
|
|
718
|
-
}];
|
|
719
|
-
}, {
|
|
720
|
-
readonly resource: "agent.agents.endUsers";
|
|
721
|
-
readonly method: "retrieve";
|
|
722
|
-
readonly summary: "Get End User";
|
|
723
|
-
readonly description: "Inspect one end user and their twenty most recently updated sessions.\n\nUse external_user_id from listing or your host application. Users without session or issuance history return 404, including preemptively blocked users. End-user credentials and inaccessible or personal agents return 404.";
|
|
724
|
-
readonly http: "GET";
|
|
725
|
-
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}";
|
|
726
|
-
readonly streaming: "no";
|
|
727
|
-
readonly pagination: false;
|
|
728
|
-
readonly pathParams: readonly [{
|
|
729
|
-
readonly name: "agent_id";
|
|
730
|
-
readonly sdkName: "agent_id";
|
|
731
|
-
readonly description: "Active service agent identifier from agent creation or listing.";
|
|
732
|
-
}, {
|
|
733
|
-
readonly name: "external_user_id";
|
|
734
|
-
readonly sdkName: "external_user_id";
|
|
735
|
-
readonly description: "Host user identifier supplied at issuance or from end-user listing.";
|
|
736
|
-
}];
|
|
737
|
-
readonly query: readonly [];
|
|
738
|
-
}, {
|
|
739
|
-
readonly resource: "agent.agents.endUsers.block";
|
|
740
|
-
readonly method: "create";
|
|
741
|
-
readonly summary: "Block End User";
|
|
742
|
-
readonly description: "Block token issuance and session creation, then revoke existing tokens for an end user.\n\nMay block a user before any history exists; timestamps are then null and counts and cost are zero. Requires an embed policy, otherwise returns 409 with setup guidance. Deduplicates the policy blocklist and retains its 1000-user maximum. If revocation returns 502, the user remains blocked; retry to finish revocation. Repeats keep the user blocked and revoke any remaining grants. End-user credentials and inaccessible or personal agents return 404.";
|
|
743
|
-
readonly http: "POST";
|
|
744
|
-
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block";
|
|
745
|
-
readonly streaming: "no";
|
|
746
|
-
readonly pagination: false;
|
|
747
|
-
readonly pathParams: readonly [{
|
|
748
|
-
readonly name: "agent_id";
|
|
749
|
-
readonly sdkName: "agent_id";
|
|
750
|
-
readonly description: "Active service agent identifier from agent creation or listing.";
|
|
751
|
-
}, {
|
|
752
|
-
readonly name: "external_user_id";
|
|
753
|
-
readonly sdkName: "external_user_id";
|
|
754
|
-
readonly description: "Host user identifier supplied at issuance or from end-user listing.";
|
|
755
|
-
}];
|
|
756
|
-
readonly query: readonly [];
|
|
757
|
-
}, {
|
|
758
|
-
readonly resource: "agent.agents.endUsers";
|
|
759
|
-
readonly method: "retrieveDeletion";
|
|
760
|
-
readonly summary: "Get end-user deletion";
|
|
761
|
-
readonly description: "Poll the latest deletion task for an end user, including after the user data has been removed.\n\nUse the same agent_id and external_user_id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. A failed task remains blocked and resumes when DELETE is retried with matching confirmation. snapshot_key is an operator recovery reference retained for seven days, not a public download URL. End-user credentials, inaccessible or personal agents, and missing tasks return 404. This read does not create a task or charge usage.";
|
|
762
|
-
readonly http: "GET";
|
|
763
|
-
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion";
|
|
764
|
-
readonly streaming: "no";
|
|
765
|
-
readonly pagination: false;
|
|
766
|
-
readonly pathParams: readonly [{
|
|
767
|
-
readonly name: "agent_id";
|
|
768
|
-
readonly sdkName: "agent_id";
|
|
769
|
-
readonly description: "Active service agent identifier from agent creation or listing.";
|
|
770
|
-
}, {
|
|
771
|
-
readonly name: "external_user_id";
|
|
772
|
-
readonly sdkName: "external_user_id";
|
|
773
|
-
readonly description: "Host user identifier supplied at issuance or from end-user listing.";
|
|
774
|
-
}];
|
|
775
|
-
readonly query: readonly [];
|
|
776
|
-
}, {
|
|
777
|
-
readonly resource: "agent.agents.endUsers.revokeTokens";
|
|
778
|
-
readonly method: "create";
|
|
779
|
-
readonly summary: "Revoke End User Tokens";
|
|
780
|
-
readonly description: "Revoke all issued tokens for an end user and terminate their open embed streams.\n\nRevokes credentials before marking grants revoked. Upstream failure returns 502 without changing grant revocation timestamps. Returns the count of newly revoked grants; a repeat without new grants returns zero. Does not block future issuance. End-user credentials and inaccessible or personal agents return 404.";
|
|
781
|
-
readonly http: "POST";
|
|
782
|
-
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens";
|
|
783
|
-
readonly streaming: "no";
|
|
784
|
-
readonly pagination: false;
|
|
785
|
-
readonly pathParams: readonly [{
|
|
786
|
-
readonly name: "agent_id";
|
|
787
|
-
readonly sdkName: "agent_id";
|
|
788
|
-
readonly description: "Active service agent identifier from agent creation or listing.";
|
|
789
|
-
}, {
|
|
790
|
-
readonly name: "external_user_id";
|
|
791
|
-
readonly sdkName: "external_user_id";
|
|
792
|
-
readonly description: "Host user identifier supplied at issuance or from end-user listing.";
|
|
793
|
-
}];
|
|
794
|
-
readonly query: readonly [];
|
|
795
|
-
}, {
|
|
796
|
-
readonly resource: "agent.agents.endUsers.unblock";
|
|
797
|
-
readonly method: "create";
|
|
798
|
-
readonly summary: "Unblock End User";
|
|
799
|
-
readonly description: "Allow an end user to receive new tokens and create new sessions again.\n\nRemoves the user from the blocklist; previously revoked tokens stay revoked. Idempotent. Requires an embed policy, otherwise returns 409 with setup guidance. Returns null timestamps and zero counts and cost when no session or issuance history exists. End-user credentials and inaccessible or personal agents return 404.";
|
|
800
|
-
readonly http: "POST";
|
|
801
|
-
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock";
|
|
802
|
-
readonly streaming: "no";
|
|
803
|
-
readonly pagination: false;
|
|
804
|
-
readonly pathParams: readonly [{
|
|
805
|
-
readonly name: "agent_id";
|
|
806
|
-
readonly sdkName: "agent_id";
|
|
807
|
-
readonly description: "Active service agent identifier from agent creation or listing.";
|
|
808
|
-
}, {
|
|
809
|
-
readonly name: "external_user_id";
|
|
810
|
-
readonly sdkName: "external_user_id";
|
|
811
|
-
readonly description: "Host user identifier supplied at issuance or from end-user listing.";
|
|
812
|
-
}];
|
|
813
|
-
readonly query: readonly [];
|
|
814
665
|
}, {
|
|
815
666
|
readonly resource: "agent.agents.unarchive";
|
|
816
667
|
readonly method: "create";
|
|
@@ -830,7 +681,7 @@ export declare const operations: readonly [{
|
|
|
830
681
|
readonly resource: "agent.agents.versions";
|
|
831
682
|
readonly method: "list";
|
|
832
683
|
readonly summary: "List agent versions";
|
|
833
|
-
readonly description: "List the saved versions of one agent, in pages of at most 100 (default 20). Each item is the full agent definition at that version, so you can compare
|
|
684
|
+
readonly description: "List the saved versions of one agent in ascending version number, oldest first, in pages of at most 100 (default 20). Each item is the full agent definition at that saved version, so you can compare configurations. active is true only for the item new sessions use. active_version on every item is the same agent-level currently effective version; it is not that item's version. Use agents.retrieve with version to read a single saved version; agent_id comes from agents.list or agents.create. Pass next_page as page to continue.";
|
|
834
685
|
readonly http: "GET";
|
|
835
686
|
readonly path: "/agent/v1/agents/{agent_id}/versions";
|
|
836
687
|
readonly streaming: "no";
|
|
@@ -855,7 +706,7 @@ export declare const operations: readonly [{
|
|
|
855
706
|
readonly resource: "agent.agents.versions";
|
|
856
707
|
readonly method: "apply";
|
|
857
708
|
readonly summary: "Apply Agent Version";
|
|
858
|
-
readonly description: "Apply a version from agents.versions.list
|
|
709
|
+
readonly description: "Apply a saved version from agents.versions.list for new sessions and newly issued tokens, without creating a version. Existing sessions and tokens retain their version. The response contains the effective configuration with version equal to active_version and latest_version naming the newest saved version. Missing versions return 404; archived agents return 409. For example, POST /agent/v1/agents/{agent_id}/versions/2/apply with no body.";
|
|
859
710
|
readonly http: "POST";
|
|
860
711
|
readonly path: "/agent/v1/agents/{agent_id}/versions/{version}/apply";
|
|
861
712
|
readonly streaming: "no";
|
|
@@ -896,7 +747,7 @@ export declare const operations: readonly [{
|
|
|
896
747
|
readonly resource: "agent.computers";
|
|
897
748
|
readonly method: "create";
|
|
898
749
|
readonly summary: "Create Computer";
|
|
899
|
-
readonly description: "Create a durable computer: a named machine whose files outlive sessions, for personal agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.";
|
|
750
|
+
readonly description: "Create a durable computer: a named machine whose files outlive sessions, for general and personal agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.";
|
|
900
751
|
readonly http: "POST";
|
|
901
752
|
readonly path: "/agent/v1/computers";
|
|
902
753
|
readonly streaming: "no";
|
|
@@ -1238,7 +1089,7 @@ export declare const operations: readonly [{
|
|
|
1238
1089
|
readonly resource: "agent.deployments";
|
|
1239
1090
|
readonly method: "create";
|
|
1240
1091
|
readonly summary: "Create deployment";
|
|
1241
|
-
readonly description: "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.";
|
|
1092
|
+
readonly description: "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general and personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.";
|
|
1242
1093
|
readonly http: "POST";
|
|
1243
1094
|
readonly path: "/agent/v1/deployments";
|
|
1244
1095
|
readonly streaming: "no";
|
|
@@ -1304,7 +1155,7 @@ export declare const operations: readonly [{
|
|
|
1304
1155
|
readonly name: "target";
|
|
1305
1156
|
readonly type: "object";
|
|
1306
1157
|
readonly required: false;
|
|
1307
|
-
readonly description: "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.";
|
|
1158
|
+
readonly description: "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.";
|
|
1308
1159
|
}];
|
|
1309
1160
|
};
|
|
1310
1161
|
}, {
|
|
@@ -1396,7 +1247,7 @@ export declare const operations: readonly [{
|
|
|
1396
1247
|
readonly name: "target";
|
|
1397
1248
|
readonly type: "object";
|
|
1398
1249
|
readonly required: false;
|
|
1399
|
-
readonly description: "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.";
|
|
1250
|
+
readonly description: "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.";
|
|
1400
1251
|
}];
|
|
1401
1252
|
};
|
|
1402
1253
|
}, {
|
|
@@ -1459,175 +1310,6 @@ export declare const operations: readonly [{
|
|
|
1459
1310
|
readonly description: "Deployment id (depl_...), returned by deployments.create or deployments.list.";
|
|
1460
1311
|
}];
|
|
1461
1312
|
readonly query: readonly [];
|
|
1462
|
-
}, {
|
|
1463
|
-
readonly resource: "agent.embed";
|
|
1464
|
-
readonly method: "retrieveAppearance";
|
|
1465
|
-
readonly summary: "Read chat appearance";
|
|
1466
|
-
readonly description: "Load saved appearance for an iframe or Hosted chat page. Supply an end-user embed token as Bearer authorization, or a console-issued publishable key in Praxis-Publishable-Key before anonymous token issuance. The credential selects the agent; identity_number and agent_id query parameters are rejected with 400. Missing appearance returns an empty object. Kit option names retain camelCase. Responses are private and cacheable for 60 seconds. Component hosts configure Kit in their own code instead.";
|
|
1467
|
-
readonly http: "GET";
|
|
1468
|
-
readonly path: "/agent/v1/embed/appearance";
|
|
1469
|
-
readonly streaming: "no";
|
|
1470
|
-
readonly pagination: false;
|
|
1471
|
-
readonly pathParams: readonly [];
|
|
1472
|
-
readonly query: readonly [];
|
|
1473
|
-
}, {
|
|
1474
|
-
readonly resource: "agent.embed.exchange";
|
|
1475
|
-
readonly method: "create";
|
|
1476
|
-
readonly summary: "Exchange Hosted Code";
|
|
1477
|
-
readonly description: "Redeem a single-use hosted link credential for an end-user token.\n\nRead code from the c fragment parameter of hosted_url returned by embed token creation with hosted true, then remove the fragment before exchanging. No Authorization header is required; the code authenticates this request. The code expires after 60 seconds and is consumed atomically on exchange, so concurrent attempts have only one winner. Expired, used and unknown codes return the same 404 body. Keep the token in memory and return to the host website for a fresh link when it expires; exchange cannot refresh it. Requests are IP limited per minute using the anonymous entrypoint budget (default 20). Example body is {\"code\":\"<code from hosted_url>\"}.";
|
|
1478
|
-
readonly http: "POST";
|
|
1479
|
-
readonly path: "/agent/v1/embed/exchange";
|
|
1480
|
-
readonly streaming: "no";
|
|
1481
|
-
readonly pagination: false;
|
|
1482
|
-
readonly pathParams: readonly [];
|
|
1483
|
-
readonly query: readonly [];
|
|
1484
|
-
readonly body: {
|
|
1485
|
-
readonly required: true;
|
|
1486
|
-
readonly fields: readonly [{
|
|
1487
|
-
readonly name: "code";
|
|
1488
|
-
readonly type: "string";
|
|
1489
|
-
readonly required: true;
|
|
1490
|
-
readonly description: "Single-use credential from the c fragment parameter of hosted_url returned by embed token creation. Valid for 60 seconds.";
|
|
1491
|
-
}];
|
|
1492
|
-
};
|
|
1493
|
-
}, {
|
|
1494
|
-
readonly resource: "agent.embedTokens";
|
|
1495
|
-
readonly method: "list";
|
|
1496
|
-
readonly summary: "List Embed Tokens";
|
|
1497
|
-
readonly description: "List embed token issuance records in your organization.\n\nIncludes expired and revoked grants; returns neither token nor token_id. Sorts by created_at, then grant id, both descending. agent_id accepts agent_ or agt_; external_user_id matches exactly. limit is 1–100 (default 20). Reuse next_page as page with the same filters and organization; a mismatch returns 400. End-user credentials return 404.";
|
|
1498
|
-
readonly http: "GET";
|
|
1499
|
-
readonly path: "/agent/v1/embed_tokens";
|
|
1500
|
-
readonly streaming: "no";
|
|
1501
|
-
readonly pagination: false;
|
|
1502
|
-
readonly pathParams: readonly [];
|
|
1503
|
-
readonly query: readonly [{
|
|
1504
|
-
readonly name: "agent_id";
|
|
1505
|
-
readonly type: "string";
|
|
1506
|
-
readonly required: false;
|
|
1507
|
-
readonly description: "Filter by service agent identifier (agent_ or agt_ prefix).";
|
|
1508
|
-
}, {
|
|
1509
|
-
readonly name: "external_user_id";
|
|
1510
|
-
readonly type: "string";
|
|
1511
|
-
readonly required: false;
|
|
1512
|
-
readonly description: "Exact host user identifier supplied at issuance.";
|
|
1513
|
-
}, {
|
|
1514
|
-
readonly name: "limit";
|
|
1515
|
-
readonly type: "integer";
|
|
1516
|
-
readonly required: false;
|
|
1517
|
-
readonly description: "Maximum records per page; defaults to 20.";
|
|
1518
|
-
}, {
|
|
1519
|
-
readonly name: "page";
|
|
1520
|
-
readonly type: "string";
|
|
1521
|
-
readonly required: false;
|
|
1522
|
-
readonly description: "next_page from a previous response with the same filters.";
|
|
1523
|
-
}];
|
|
1524
|
-
}, {
|
|
1525
|
-
readonly resource: "agent.embedTokens";
|
|
1526
|
-
readonly method: "create";
|
|
1527
|
-
readonly summary: "Create Embed Token";
|
|
1528
|
-
readonly description: "Issue a short-lived credential on your backend for an end user of a service agent.\n\nRequires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent. Set hosted to true to also receive hosted_url; redirect the user there within 60 seconds. The agent must have an identity_number. The URL fragment contains a single-use exchange credential, not the token. Omit hosted or set false for ordinary token issuance.";
|
|
1529
|
-
readonly http: "POST";
|
|
1530
|
-
readonly path: "/agent/v1/embed_tokens";
|
|
1531
|
-
readonly streaming: "no";
|
|
1532
|
-
readonly pagination: false;
|
|
1533
|
-
readonly pathParams: readonly [];
|
|
1534
|
-
readonly query: readonly [];
|
|
1535
|
-
readonly body: {
|
|
1536
|
-
readonly required: true;
|
|
1537
|
-
readonly fields: readonly [{
|
|
1538
|
-
readonly name: "hosted";
|
|
1539
|
-
readonly type: "boolean";
|
|
1540
|
-
readonly required: false;
|
|
1541
|
-
readonly description: "Set true to also return a hosted chat URL with a single-use credential valid for 60 seconds. Defaults to false; the agent must have an identity_number.";
|
|
1542
|
-
}, {
|
|
1543
|
-
readonly name: "agent";
|
|
1544
|
-
readonly type: "string";
|
|
1545
|
-
readonly required: true;
|
|
1546
|
-
readonly description: "Service agent ID or identity_number from agent retrieval; it must belong to your organization and be active.";
|
|
1547
|
-
}, {
|
|
1548
|
-
readonly name: "version";
|
|
1549
|
-
readonly type: "integer";
|
|
1550
|
-
readonly required: false;
|
|
1551
|
-
readonly description: "Existing agent version to pin. Omit to pin the latest version at issuance.";
|
|
1552
|
-
}, {
|
|
1553
|
-
readonly name: "external_user_id";
|
|
1554
|
-
readonly type: "string";
|
|
1555
|
-
readonly required: true;
|
|
1556
|
-
readonly description: "Your application's stable end-user identifier, scoped to this organization and agent.";
|
|
1557
|
-
}, {
|
|
1558
|
-
readonly name: "ttl_seconds";
|
|
1559
|
-
readonly type: "integer";
|
|
1560
|
-
readonly required: false;
|
|
1561
|
-
readonly description: "Token lifetime in seconds. Defaults to the embed policy TTL and cannot exceed its maximum or 3600 seconds.";
|
|
1562
|
-
}, {
|
|
1563
|
-
readonly name: "budget_cents";
|
|
1564
|
-
readonly type: "integer";
|
|
1565
|
-
readonly required: false;
|
|
1566
|
-
readonly description: "Session budget in cents. Defaults to the embed policy session budget and cannot exceed its maximum.";
|
|
1567
|
-
}, {
|
|
1568
|
-
readonly name: "system_message";
|
|
1569
|
-
readonly type: "array";
|
|
1570
|
-
readonly itemType: "object";
|
|
1571
|
-
readonly required: false;
|
|
1572
|
-
readonly description: "Optional host context as text blocks, limited to 8192 UTF-8 bytes in total.";
|
|
1573
|
-
}, {
|
|
1574
|
-
readonly name: "agent_override";
|
|
1575
|
-
readonly type: "object";
|
|
1576
|
-
readonly required: false;
|
|
1577
|
-
readonly description: "Optional system prompt override, accepted only when the embed policy allows agent overrides.";
|
|
1578
|
-
}, {
|
|
1579
|
-
readonly name: "allowed_origins";
|
|
1580
|
-
readonly type: "array";
|
|
1581
|
-
readonly itemType: "string";
|
|
1582
|
-
readonly required: false;
|
|
1583
|
-
readonly description: "Optional subset of the policy origin entries, compared exactly. Omit to snapshot every policy origin.";
|
|
1584
|
-
}, {
|
|
1585
|
-
readonly name: "metadata";
|
|
1586
|
-
readonly type: "object";
|
|
1587
|
-
readonly required: false;
|
|
1588
|
-
readonly description: "Host metadata preserved verbatim; at most 16 keys of 1–64 characters and string values of at most 512 characters. Defaults to an empty object.";
|
|
1589
|
-
}];
|
|
1590
|
-
};
|
|
1591
|
-
}, {
|
|
1592
|
-
readonly resource: "agent.embedTokens.anonymous";
|
|
1593
|
-
readonly method: "create";
|
|
1594
|
-
readonly summary: "Issue anonymous visitor token";
|
|
1595
|
-
readonly description: "Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.\n\nNo Authorization header is required. Send the browser Origin allowed by the agent policy. Save a returned visitor_secret and reuse it for refreshes; only new visitors receive one. Unknown secrets create new visitors, and extra fields including visitor_id return 400. Issuance uses the key creator's organization membership, the key session budget and the smaller of the policy TTL maximum and 3600 seconds. IP requests are limited per minute (default 20); UTC daily session and spending caps are checked across the key's primary sessions created that day. Token issuance itself does not create a session or charge usage; subsequent sessions bill the host organization. Example body: {\"publishable_key\":\"pk_praxis_example\"}.";
|
|
1596
|
-
readonly http: "POST";
|
|
1597
|
-
readonly path: "/agent/v1/embed_tokens/anonymous";
|
|
1598
|
-
readonly streaming: "no";
|
|
1599
|
-
readonly pagination: false;
|
|
1600
|
-
readonly pathParams: readonly [];
|
|
1601
|
-
readonly query: readonly [];
|
|
1602
|
-
readonly body: {
|
|
1603
|
-
readonly required: true;
|
|
1604
|
-
readonly fields: readonly [{
|
|
1605
|
-
readonly name: "publishable_key";
|
|
1606
|
-
readonly type: "string";
|
|
1607
|
-
readonly required: true;
|
|
1608
|
-
readonly description: "Public key created by the service agent owner; safe to include in browser code.";
|
|
1609
|
-
}, {
|
|
1610
|
-
readonly name: "visitor_secret";
|
|
1611
|
-
readonly type: "string";
|
|
1612
|
-
readonly required: false;
|
|
1613
|
-
readonly description: "Secret returned by a previous anonymous issuance for this key. Omit for a new visitor; an unknown secret creates a new visitor.";
|
|
1614
|
-
}];
|
|
1615
|
-
};
|
|
1616
|
-
}, {
|
|
1617
|
-
readonly resource: "agent.embedTokens.revoke";
|
|
1618
|
-
readonly method: "create";
|
|
1619
|
-
readonly summary: "Revoke Embed Token";
|
|
1620
|
-
readonly description: "Revoke an embed token and close its open event streams.\n\nUse an id from issuance or listing. Revokes the credential before setting revoked_at; upstream failure leaves it unset. Streams receive session.error (EMBED_TOKEN_REVOKED), then close immediately; other credentials are unaffected. Idempotent; repeats return the original revoked record without another revocation or audit. Missing or foreign grants and end-user credentials return 404.";
|
|
1621
|
-
readonly http: "POST";
|
|
1622
|
-
readonly path: "/agent/v1/embed_tokens/{id}/revoke";
|
|
1623
|
-
readonly streaming: "no";
|
|
1624
|
-
readonly pagination: false;
|
|
1625
|
-
readonly pathParams: readonly [{
|
|
1626
|
-
readonly name: "id";
|
|
1627
|
-
readonly sdkName: "id";
|
|
1628
|
-
readonly description: "Grant id returned by issuance or listing.";
|
|
1629
|
-
}];
|
|
1630
|
-
readonly query: readonly [];
|
|
1631
1313
|
}, {
|
|
1632
1314
|
readonly resource: "agent.environments";
|
|
1633
1315
|
readonly method: "list";
|
|
@@ -1854,7 +1536,7 @@ export declare const operations: readonly [{
|
|
|
1854
1536
|
readonly resource: "agent.sessions";
|
|
1855
1537
|
readonly method: "create";
|
|
1856
1538
|
readonly summary: "Create session";
|
|
1857
|
-
readonly description: "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive
|
|
1539
|
+
readonly description: "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.";
|
|
1858
1540
|
readonly http: "POST";
|
|
1859
1541
|
readonly path: "/agent/v1/sessions";
|
|
1860
1542
|
readonly streaming: "no";
|
|
@@ -2095,7 +1777,7 @@ export declare const operations: readonly [{
|
|
|
2095
1777
|
readonly resource: "agent.sessions";
|
|
2096
1778
|
readonly method: "compact";
|
|
2097
1779
|
readonly summary: "Compact Session (Extension)";
|
|
2098
|
-
readonly description: "Request session context compaction and retrieve an operation receipt.\n\nAvailable only on /agent/v1. The body may be omitted or {}. Optional instructions must be a string and is forwarded unchanged. Idempotency-Key is forwarded unchanged; a UUID is generated when absent. Returns { type: session_compaction, id, status, reason? }, where id is the operation ID. queued/running return 202; skipped/succeeded/failed return 200. Non-string instructions return 400 invalid_request_error. Missing or inaccessible managed sessions return 404 not_found_error.";
|
|
1780
|
+
readonly description: "Request session context compaction and retrieve an operation receipt.\n\nAvailable only on /agent/v1. The body may be omitted or {}. Optional instructions must be a string and is forwarded unchanged. Idempotency-Key is forwarded unchanged; a UUID is generated when absent. Returns { type: session_compaction, id, status, reason? }, where id is the operation ID. queued/running return 202; skipped/succeeded/failed/cancelled return 200. Non-string instructions return 400 invalid_request_error. Missing or inaccessible managed sessions return 404 not_found_error.";
|
|
2099
1781
|
readonly http: "POST";
|
|
2100
1782
|
readonly path: "/agent/v1/sessions/{session_id}/compact";
|
|
2101
1783
|
readonly streaming: "no";
|
|
@@ -2138,7 +1820,7 @@ export declare const operations: readonly [{
|
|
|
2138
1820
|
readonly resource: "agent.sessions.compactions";
|
|
2139
1821
|
readonly method: "list";
|
|
2140
1822
|
readonly summary: "List Session Compactions (Extension)";
|
|
2141
|
-
readonly description: "Read session compaction history and summaries.\n\nAvailable only on /agent/v1. Returns { data: [...] }. Each entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.";
|
|
1823
|
+
readonly description: "Read session compaction history and summaries.\n\nAvailable only on /agent/v1. Returns { data: [...], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto|idle }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.";
|
|
2142
1824
|
readonly http: "GET";
|
|
2143
1825
|
readonly path: "/agent/v1/sessions/{session_id}/compactions";
|
|
2144
1826
|
readonly streaming: "no";
|
|
@@ -2308,9 +1990,9 @@ export declare const operations: readonly [{
|
|
|
2308
1990
|
}];
|
|
2309
1991
|
readonly query: readonly [{
|
|
2310
1992
|
readonly name: "limit";
|
|
2311
|
-
readonly type: "
|
|
1993
|
+
readonly type: "integer";
|
|
2312
1994
|
readonly required: false;
|
|
2313
|
-
readonly description: "Number of
|
|
1995
|
+
readonly description: "Number of resources per page, from 1 to 100; defaults to 100.";
|
|
2314
1996
|
}, {
|
|
2315
1997
|
readonly name: "page";
|
|
2316
1998
|
readonly type: "string";
|
|
@@ -3426,7 +3108,7 @@ export declare const operations: readonly [{
|
|
|
3426
3108
|
readonly resource: "automation.actions";
|
|
3427
3109
|
readonly method: "list";
|
|
3428
3110
|
readonly summary: "List actions";
|
|
3429
|
-
readonly description: "Discover callable Actions and their ns/name references without executing them. Combine each returned namespace and name as ns/name; Action calls use the current revision and do not accept @version or @tag. Filter by name or description; results include seven-day statistics and revision summaries without implementation source. Archived actions are excluded by default.";
|
|
3111
|
+
readonly description: "Discover callable Actions and their ns/name references without executing them. Combine each returned namespace and name as ns/name; Action calls use the current revision and do not accept @version or @tag. Filter by name or description; results include seven-day statistics and revision summaries without implementation source. Archived actions are excluded by default. List items carry no input contract: get the action and read current_revision.input_schema. Call it with call(\"ns/name\", input) in a script or call: ns/name with with: in a workflow.";
|
|
3430
3112
|
readonly http: "GET";
|
|
3431
3113
|
readonly path: "/automation/v1/actions";
|
|
3432
3114
|
readonly streaming: "no";
|
|
@@ -3563,7 +3245,7 @@ export declare const operations: readonly [{
|
|
|
3563
3245
|
readonly resource: "automation.actions";
|
|
3564
3246
|
readonly method: "retrieve";
|
|
3565
3247
|
readonly summary: "Get an Action with its current input and output JSON Schemas";
|
|
3566
|
-
readonly description: "Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call(\"ocr\", input). The response ETag is the current revision ID for conditional updates.";
|
|
3248
|
+
readonly description: "Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call(\"ocr\", input) or in a workflow step with call: ocr and with:. Input that breaks the contract returns INPUT_INVALID, with the fields in errors[]. The response ETag is the current revision ID for conditional updates.";
|
|
3567
3249
|
readonly http: "GET";
|
|
3568
3250
|
readonly path: "/automation/v1/actions/{ns}/{name}";
|
|
3569
3251
|
readonly streaming: "no";
|
|
@@ -3898,6 +3580,142 @@ export declare const operations: readonly [{
|
|
|
3898
3580
|
readonly required: false;
|
|
3899
3581
|
readonly fields: readonly [];
|
|
3900
3582
|
};
|
|
3583
|
+
}, {
|
|
3584
|
+
readonly resource: "automation.humanTasks";
|
|
3585
|
+
readonly method: "list";
|
|
3586
|
+
readonly summary: "List human tasks";
|
|
3587
|
+
readonly description: "List the human tasks that praxis/approval workflow steps opened, newest first. By default it returns only open tasks assigned to the caller: their approval inbox. scope=all lists every task of the organization, and status and run_id narrow the list. Use a returned id with retrieve for details and respond to decide. Read-only: listing never changes a task.";
|
|
3588
|
+
readonly http: "GET";
|
|
3589
|
+
readonly path: "/automation/v1/human-tasks";
|
|
3590
|
+
readonly streaming: "no";
|
|
3591
|
+
readonly pagination: true;
|
|
3592
|
+
readonly pathParams: readonly [];
|
|
3593
|
+
readonly query: readonly [{
|
|
3594
|
+
readonly name: "limit";
|
|
3595
|
+
readonly type: "integer";
|
|
3596
|
+
readonly required: false;
|
|
3597
|
+
readonly description: "Page size, 1–100, default 50.";
|
|
3598
|
+
}, {
|
|
3599
|
+
readonly name: "cursor";
|
|
3600
|
+
readonly type: "string";
|
|
3601
|
+
readonly required: false;
|
|
3602
|
+
readonly description: "The next_cursor of the previous page; omit for the first page.";
|
|
3603
|
+
}, {
|
|
3604
|
+
readonly name: "status";
|
|
3605
|
+
readonly type: "array";
|
|
3606
|
+
readonly itemType: "string";
|
|
3607
|
+
readonly enum: readonly ["open", "completed", "expired", "cancelled"];
|
|
3608
|
+
readonly required: false;
|
|
3609
|
+
readonly description: "Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.";
|
|
3610
|
+
}, {
|
|
3611
|
+
readonly name: "run_id";
|
|
3612
|
+
readonly type: "string";
|
|
3613
|
+
readonly required: false;
|
|
3614
|
+
readonly description: "Only tasks opened by this run (run_).";
|
|
3615
|
+
}, {
|
|
3616
|
+
readonly name: "scope";
|
|
3617
|
+
readonly type: "string";
|
|
3618
|
+
readonly enum: readonly ["assigned", "all"];
|
|
3619
|
+
readonly required: false;
|
|
3620
|
+
readonly description: "assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.";
|
|
3621
|
+
}];
|
|
3622
|
+
}, {
|
|
3623
|
+
readonly resource: "automation.humanTasks";
|
|
3624
|
+
readonly method: "retrieve";
|
|
3625
|
+
readonly summary: "Retrieve a human task";
|
|
3626
|
+
readonly description: "Read one human task - title, Markdown body, context, actions, form, assignees, mode, due time, responses and outcome - so an assignee can choose an action and fill the form. Read-only; the Console approval page /automation/tasks/{id} reads the same resource.";
|
|
3627
|
+
readonly http: "GET";
|
|
3628
|
+
readonly path: "/automation/v1/human-tasks/{id}";
|
|
3629
|
+
readonly streaming: "no";
|
|
3630
|
+
readonly pagination: false;
|
|
3631
|
+
readonly pathParams: readonly [{
|
|
3632
|
+
readonly name: "id";
|
|
3633
|
+
readonly sdkName: "id";
|
|
3634
|
+
readonly description: "Human task ID (htask_), from the list or the run's waits.";
|
|
3635
|
+
}];
|
|
3636
|
+
readonly query: readonly [];
|
|
3637
|
+
}, {
|
|
3638
|
+
readonly resource: "automation.humanTasks";
|
|
3639
|
+
readonly method: "cancel";
|
|
3640
|
+
readonly summary: "Cancel a human task";
|
|
3641
|
+
readonly description: "Cancel an open human task; only the person who started the run or an organization API key may cancel. The task becomes cancelled and the waiting workflow step raises a runtime error with code HUMAN_TASK_CANCELLED, which try/catch can catch. Open tasks are cancelled automatically when their run ends, so this call is not needed then.";
|
|
3642
|
+
readonly http: "POST";
|
|
3643
|
+
readonly path: "/automation/v1/human-tasks/{id}/cancel";
|
|
3644
|
+
readonly streaming: "no";
|
|
3645
|
+
readonly pagination: false;
|
|
3646
|
+
readonly pathParams: readonly [{
|
|
3647
|
+
readonly name: "id";
|
|
3648
|
+
readonly sdkName: "id";
|
|
3649
|
+
readonly description: "Human task ID (htask_).";
|
|
3650
|
+
}];
|
|
3651
|
+
readonly query: readonly [];
|
|
3652
|
+
readonly body: {
|
|
3653
|
+
readonly required: false;
|
|
3654
|
+
readonly fields: readonly [{
|
|
3655
|
+
readonly name: "reason";
|
|
3656
|
+
readonly type: "string";
|
|
3657
|
+
readonly required: false;
|
|
3658
|
+
readonly description: "Optional cancellation reason, at most 500 characters.";
|
|
3659
|
+
}];
|
|
3660
|
+
};
|
|
3661
|
+
}, {
|
|
3662
|
+
readonly resource: "automation.humanTasks";
|
|
3663
|
+
readonly method: "delegate";
|
|
3664
|
+
readonly summary: "Delegate a human task";
|
|
3665
|
+
readonly description: "An assignee who has not responded hands their place to another user (to_user), replacing their entry in assignees.users in place, so sequential order is kept. The new user cannot already be an assignee, nor the initiator unless self-approval is allowed. The task must still be open.";
|
|
3666
|
+
readonly http: "POST";
|
|
3667
|
+
readonly path: "/automation/v1/human-tasks/{id}/delegate";
|
|
3668
|
+
readonly streaming: "no";
|
|
3669
|
+
readonly pagination: false;
|
|
3670
|
+
readonly pathParams: readonly [{
|
|
3671
|
+
readonly name: "id";
|
|
3672
|
+
readonly sdkName: "id";
|
|
3673
|
+
readonly description: "Human task ID (htask_).";
|
|
3674
|
+
}];
|
|
3675
|
+
readonly query: readonly [];
|
|
3676
|
+
readonly body: {
|
|
3677
|
+
readonly required: true;
|
|
3678
|
+
readonly fields: readonly [{
|
|
3679
|
+
readonly name: "to_user";
|
|
3680
|
+
readonly type: "string";
|
|
3681
|
+
readonly required: true;
|
|
3682
|
+
readonly description: "User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed.";
|
|
3683
|
+
}];
|
|
3684
|
+
};
|
|
3685
|
+
}, {
|
|
3686
|
+
readonly resource: "automation.humanTasks";
|
|
3687
|
+
readonly method: "respond";
|
|
3688
|
+
readonly summary: "Respond to a human task";
|
|
3689
|
+
readonly description: "Submit an action (action_id), form values (values) and a comment as the calling user. Depending on the task's mode the response either decides it (status becomes completed, outcome is set, and the waiting workflow resumes with outcome as the step output) or is recorded while other assignees are awaited. When two assignees respond at once, exactly one decides and the other gets TASK_CLOSED. An agent may respond only if the workflow set allow_agent_decision. Send an Idempotency-Key to retry safely.";
|
|
3690
|
+
readonly http: "POST";
|
|
3691
|
+
readonly path: "/automation/v1/human-tasks/{id}/respond";
|
|
3692
|
+
readonly streaming: "no";
|
|
3693
|
+
readonly pagination: false;
|
|
3694
|
+
readonly pathParams: readonly [{
|
|
3695
|
+
readonly name: "id";
|
|
3696
|
+
readonly sdkName: "id";
|
|
3697
|
+
readonly description: "Human task ID (htask_).";
|
|
3698
|
+
}];
|
|
3699
|
+
readonly query: readonly [];
|
|
3700
|
+
readonly body: {
|
|
3701
|
+
readonly required: true;
|
|
3702
|
+
readonly fields: readonly [{
|
|
3703
|
+
readonly name: "action_id";
|
|
3704
|
+
readonly type: "string";
|
|
3705
|
+
readonly required: true;
|
|
3706
|
+
readonly description: "The chosen action ID from the task's actions, for example approve.";
|
|
3707
|
+
}, {
|
|
3708
|
+
readonly name: "values";
|
|
3709
|
+
readonly type: "object";
|
|
3710
|
+
readonly required: false;
|
|
3711
|
+
readonly description: "Any JSON object whose keys are strings and whose values are any JSON value.";
|
|
3712
|
+
}, {
|
|
3713
|
+
readonly name: "comment";
|
|
3714
|
+
readonly type: "string";
|
|
3715
|
+
readonly required: false;
|
|
3716
|
+
readonly description: "Comment of at most 4000 characters; required when the action has require_comment true.";
|
|
3717
|
+
}];
|
|
3718
|
+
};
|
|
3901
3719
|
}, {
|
|
3902
3720
|
readonly resource: "automation.resolve";
|
|
3903
3721
|
readonly method: "retrieve";
|
|
@@ -4029,7 +3847,7 @@ export declare const operations: readonly [{
|
|
|
4029
3847
|
readonly resource: "automation.runs";
|
|
4030
3848
|
readonly method: "create";
|
|
4031
3849
|
readonly summary: "Run a published target or execute draft source";
|
|
4032
|
-
readonly description: "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 30 s (run-sandbox after 10 min); scripts have a 5 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to
|
|
3850
|
+
readonly description: "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 30 s (run-sandbox after 10 min); scripts have a 5 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to 30 days. Each run can start at most 100 child runs, with at most 20 active at once; nesting depth is limited to 10. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. With language=yaml, source is a workflow YAML: the run input is . in the first step, and the shape is described in create workflow. Error details are in errors[] (pointer, detail, hint). New non-deterministic run IDs contain 78 characters, compared with 46 for legacy random IDs; treat IDs as opaque strings. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed.";
|
|
4033
3851
|
readonly http: "POST";
|
|
4034
3852
|
readonly path: "/automation/v1/runs";
|
|
4035
3853
|
readonly streaming: "no";
|
|
@@ -4426,7 +4244,7 @@ export declare const operations: readonly [{
|
|
|
4426
4244
|
readonly resource: "automation.scripts";
|
|
4427
4245
|
readonly method: "create";
|
|
4428
4246
|
readonly summary: "Create a script";
|
|
4429
|
-
readonly description: "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, use the returned draft.revision as expected_draft_revision.";
|
|
4247
|
+
readonly description: "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call(\"write-file\", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, use the returned draft.revision as expected_draft_revision.";
|
|
4430
4248
|
readonly http: "POST";
|
|
4431
4249
|
readonly path: "/automation/v1/scripts";
|
|
4432
4250
|
readonly streaming: "no";
|
|
@@ -5191,7 +5009,7 @@ export declare const operations: readonly [{
|
|
|
5191
5009
|
readonly resource: "automation.validate";
|
|
5192
5010
|
readonly method: "create";
|
|
5193
5011
|
readonly summary: "Validate a definition";
|
|
5194
|
-
readonly description: "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation.";
|
|
5012
|
+
readonly description: "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created. Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.";
|
|
5195
5013
|
readonly http: "POST";
|
|
5196
5014
|
readonly path: "/automation/v1/validate";
|
|
5197
5015
|
readonly streaming: "no";
|
|
@@ -5276,7 +5094,7 @@ export declare const operations: readonly [{
|
|
|
5276
5094
|
readonly resource: "automation.workflows";
|
|
5277
5095
|
readonly method: "create";
|
|
5278
5096
|
readonly summary: "Create a workflow";
|
|
5279
|
-
readonly description: "Save a YAML workflow as an editable draft
|
|
5097
|
+
readonly description: "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.";
|
|
5280
5098
|
readonly http: "POST";
|
|
5281
5099
|
readonly path: "/automation/v1/workflows";
|
|
5282
5100
|
readonly streaming: "no";
|
|
@@ -5335,7 +5153,7 @@ export declare const operations: readonly [{
|
|
|
5335
5153
|
readonly resource: "automation.workflows";
|
|
5336
5154
|
readonly method: "update";
|
|
5337
5155
|
readonly summary: "Update a workflow draft";
|
|
5338
|
-
readonly description: "Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision.";
|
|
5156
|
+
readonly description: "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.";
|
|
5339
5157
|
readonly http: "PATCH";
|
|
5340
5158
|
readonly path: "/automation/v1/workflows/{ns}/{name}";
|
|
5341
5159
|
readonly streaming: "no";
|
|
@@ -5529,7 +5347,7 @@ export declare const operations: readonly [{
|
|
|
5529
5347
|
readonly method: "create";
|
|
5530
5348
|
readonly aliases: readonly ["publish"];
|
|
5531
5349
|
readonly summary: "Publish a workflow version";
|
|
5532
|
-
readonly description: "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number.";
|
|
5350
|
+
readonly description: "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).";
|
|
5533
5351
|
readonly http: "POST";
|
|
5534
5352
|
readonly path: "/automation/v1/workflows/{ns}/{name}/versions";
|
|
5535
5353
|
readonly streaming: "no";
|
|
@@ -6914,7 +6732,7 @@ export declare const operations: readonly [{
|
|
|
6914
6732
|
readonly resource: "file.files";
|
|
6915
6733
|
readonly method: "create";
|
|
6916
6734
|
readonly summary: "Upload file";
|
|
6917
|
-
readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data
|
|
6735
|
+
readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.";
|
|
6918
6736
|
readonly http: "POST";
|
|
6919
6737
|
readonly path: "/file/v1/files";
|
|
6920
6738
|
readonly streaming: "no";
|
|
@@ -6932,19 +6750,14 @@ export declare const operations: readonly [{
|
|
|
6932
6750
|
}, {
|
|
6933
6751
|
readonly name: "purpose";
|
|
6934
6752
|
readonly type: "string";
|
|
6935
|
-
readonly enum: readonly ["user_data", "
|
|
6753
|
+
readonly enum: readonly ["user_data", "vision"];
|
|
6936
6754
|
readonly required: true;
|
|
6937
|
-
readonly description: "Purpose label stored with the file: user_data
|
|
6755
|
+
readonly description: "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.";
|
|
6938
6756
|
}, {
|
|
6939
6757
|
readonly name: "expires_after";
|
|
6940
6758
|
readonly type: "object";
|
|
6941
6759
|
readonly required: false;
|
|
6942
6760
|
readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
|
|
6943
|
-
}, {
|
|
6944
|
-
readonly name: "praxis";
|
|
6945
|
-
readonly type: "object";
|
|
6946
|
-
readonly required: false;
|
|
6947
|
-
readonly description: "Own-face extensions. Use at most one expiry setting.";
|
|
6948
6761
|
}];
|
|
6949
6762
|
};
|
|
6950
6763
|
}, {
|
|
@@ -6996,7 +6809,7 @@ export declare const operations: readonly [{
|
|
|
6996
6809
|
readonly resource: "file.uploads";
|
|
6997
6810
|
readonly method: "create";
|
|
6998
6811
|
readonly summary: "Create an upload";
|
|
6999
|
-
readonly description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data
|
|
6812
|
+
readonly description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.";
|
|
7000
6813
|
readonly http: "POST";
|
|
7001
6814
|
readonly path: "/file/v1/uploads";
|
|
7002
6815
|
readonly streaming: "no";
|
|
@@ -7023,9 +6836,9 @@ export declare const operations: readonly [{
|
|
|
7023
6836
|
}, {
|
|
7024
6837
|
readonly name: "purpose";
|
|
7025
6838
|
readonly type: "string";
|
|
7026
|
-
readonly enum: readonly ["user_data", "
|
|
6839
|
+
readonly enum: readonly ["user_data", "vision"];
|
|
7027
6840
|
readonly required: true;
|
|
7028
|
-
readonly description: "Use user_data for conversation attachments,
|
|
6841
|
+
readonly description: "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.";
|
|
7029
6842
|
}, {
|
|
7030
6843
|
readonly name: "expires_after";
|
|
7031
6844
|
readonly type: "object";
|
|
@@ -7975,7 +7788,7 @@ export declare const operations: readonly [{
|
|
|
7975
7788
|
readonly name: "overwrite";
|
|
7976
7789
|
readonly type: "boolean";
|
|
7977
7790
|
readonly required: false;
|
|
7978
|
-
readonly description: "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.";
|
|
7791
|
+
readonly description: "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.";
|
|
7979
7792
|
}, {
|
|
7980
7793
|
readonly name: "tags";
|
|
7981
7794
|
readonly type: "object";
|
|
@@ -8020,6 +7833,7 @@ export declare const operations: readonly [{
|
|
|
8020
7833
|
readonly name: "file_id";
|
|
8021
7834
|
readonly type: "string";
|
|
8022
7835
|
readonly required: true;
|
|
7836
|
+
readonly description: "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.";
|
|
8023
7837
|
}, {
|
|
8024
7838
|
readonly name: "public_id";
|
|
8025
7839
|
readonly type: "string";
|
|
@@ -8064,7 +7878,7 @@ export declare const operations: readonly [{
|
|
|
8064
7878
|
readonly name: "overwrite";
|
|
8065
7879
|
readonly type: "boolean";
|
|
8066
7880
|
readonly required: false;
|
|
8067
|
-
readonly description: "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.";
|
|
7881
|
+
readonly description: "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.";
|
|
8068
7882
|
}, {
|
|
8069
7883
|
readonly name: "tags";
|
|
8070
7884
|
readonly type: "object";
|
|
@@ -8473,7 +8287,7 @@ export declare const operations: readonly [{
|
|
|
8473
8287
|
readonly name: "expression";
|
|
8474
8288
|
readonly type: "string";
|
|
8475
8289
|
readonly required: false;
|
|
8476
|
-
readonly description: "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.";
|
|
8290
|
+
readonly description: "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.";
|
|
8477
8291
|
}, {
|
|
8478
8292
|
readonly name: "sort_by";
|
|
8479
8293
|
readonly type: "array";
|
|
@@ -8585,6 +8399,54 @@ export declare const operations: readonly [{
|
|
|
8585
8399
|
readonly description: "Expression filter restricting eligible result assets.";
|
|
8586
8400
|
}];
|
|
8587
8401
|
};
|
|
8402
|
+
}, {
|
|
8403
|
+
readonly resource: "meta.docs";
|
|
8404
|
+
readonly method: "search";
|
|
8405
|
+
readonly summary: "Search platform documentation";
|
|
8406
|
+
readonly description: "Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.";
|
|
8407
|
+
readonly http: "GET";
|
|
8408
|
+
readonly path: "/meta/v1/docs/search";
|
|
8409
|
+
readonly streaming: "no";
|
|
8410
|
+
readonly pagination: false;
|
|
8411
|
+
readonly pathParams: readonly [];
|
|
8412
|
+
readonly query: readonly [{
|
|
8413
|
+
readonly name: "q";
|
|
8414
|
+
readonly type: "string";
|
|
8415
|
+
readonly required: true;
|
|
8416
|
+
readonly description: "Keywords describing the syntax or guide needed, for example export or workflow.";
|
|
8417
|
+
}, {
|
|
8418
|
+
readonly name: "limit";
|
|
8419
|
+
readonly type: "integer";
|
|
8420
|
+
readonly required: false;
|
|
8421
|
+
readonly description: "Maximum number of matching pages returned; integer 1–50, default 20.";
|
|
8422
|
+
}, {
|
|
8423
|
+
readonly name: "lang";
|
|
8424
|
+
readonly type: "string";
|
|
8425
|
+
readonly enum: readonly ["zh", "en"];
|
|
8426
|
+
readonly required: false;
|
|
8427
|
+
readonly description: "Documentation language: zh for Chinese (default), en for English.";
|
|
8428
|
+
}];
|
|
8429
|
+
}, {
|
|
8430
|
+
readonly resource: "meta.docs";
|
|
8431
|
+
readonly method: "retrieve";
|
|
8432
|
+
readonly summary: "Read documentation Markdown";
|
|
8433
|
+
readonly description: "Read a platform guide or reference before implementing an unfamiliar capability. Public; no API key required. Take path from praxis.meta.docs.search, or use developers/automation/guides/write-workflow. Append #heading-id to path to read only that section, including its subsections. Encode the hash as %23 over HTTP; SDK callers pass it in the path string. lang defaults to zh; en selects the English page. Unknown pages or anchors return DOC_NOT_FOUND; search again for a valid path.";
|
|
8434
|
+
readonly http: "GET";
|
|
8435
|
+
readonly path: "/meta/v1/docs/{path}";
|
|
8436
|
+
readonly streaming: "no";
|
|
8437
|
+
readonly pagination: false;
|
|
8438
|
+
readonly pathParams: readonly [{
|
|
8439
|
+
readonly name: "path";
|
|
8440
|
+
readonly sdkName: "path";
|
|
8441
|
+
readonly description: "Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.";
|
|
8442
|
+
}];
|
|
8443
|
+
readonly query: readonly [{
|
|
8444
|
+
readonly name: "lang";
|
|
8445
|
+
readonly type: "string";
|
|
8446
|
+
readonly enum: readonly ["zh", "en"];
|
|
8447
|
+
readonly required: false;
|
|
8448
|
+
readonly description: "Documentation language: zh for Chinese (default), en for English.";
|
|
8449
|
+
}];
|
|
8588
8450
|
}, {
|
|
8589
8451
|
readonly resource: "meta.health";
|
|
8590
8452
|
readonly method: "retrieve";
|