@deepraxis/sdk 0.1.1-dev.fa8e340 → 0.1.1-dev.fc68b96
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 +105 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +198 -22
- package/dist/generated/sdk.gen.js +552 -23
- package/dist/generated/types.gen.d.ts +3007 -535
- package/dist/operations.generated.d.ts +1 -0
- package/dist/operations.generated.js +1217 -109
- package/dist/resources.generated.d.ts +127 -63
- package/dist/resources.generated.js +61 -0
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ export const operations = [
|
|
|
61
61
|
"resource": "agent.agents",
|
|
62
62
|
"method": "create",
|
|
63
63
|
"summary": "Create agent",
|
|
64
|
-
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: \"general\" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. 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. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write
|
|
64
|
+
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: \"general\" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. 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. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. A general or assume agent created without computer_id gets a new computer registered in the same request, named after the agent; a service agent with computer_id returns 400. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. phone gives the agent one phone, in one of two mutually exclusive forms: {sku, name?, archive: {exclude}} is a cloud Android device the platform builds on demand from that Sandbox SKU, and {byod, name?} is your organization's own device, named by a byd_… id it already owns (Brought Your Own Device), which the platform drives but never builds. A body naming both sku and byod returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. Only a general or assume agent may have a phone: a service agent with phone returns 400. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
|
|
65
65
|
"http": "POST",
|
|
66
66
|
"path": "/agent/v1/agents",
|
|
67
67
|
"streaming": "no",
|
|
@@ -224,7 +224,7 @@ export const operations = [
|
|
|
224
224
|
"full"
|
|
225
225
|
],
|
|
226
226
|
"required": false,
|
|
227
|
-
"description": "Optional tool preset. minimal enables read, glob
|
|
227
|
+
"description": "Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
"name": "output_styles",
|
|
@@ -265,7 +265,7 @@ export const operations = [
|
|
|
265
265
|
"resource": "agent.agents",
|
|
266
266
|
"method": "update",
|
|
267
267
|
"summary": "Update agent",
|
|
268
|
-
"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. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
|
|
268
|
+
"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. phone takes the same two mutually exclusive forms as agents.create: {sku, name?, archive} for a cloud device, or {byod, name?} for your organization's own device (a byd_… id); naming both returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. phone: null turns the phone off and releases a cloud device; a BYOD phone is the organization's and is never killed. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
|
|
269
269
|
"http": "POST",
|
|
270
270
|
"path": "/agent/v1/agents/{agent_id}",
|
|
271
271
|
"streaming": "no",
|
|
@@ -452,7 +452,7 @@ export const operations = [
|
|
|
452
452
|
"full"
|
|
453
453
|
],
|
|
454
454
|
"required": false,
|
|
455
|
-
"description": "Optional tool preset. minimal enables read, glob
|
|
455
|
+
"description": "Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
"name": "output_styles",
|
|
@@ -1017,7 +1017,7 @@ export const operations = [
|
|
|
1017
1017
|
"resource": "agent.agents.phone",
|
|
1018
1018
|
"method": "retrieve",
|
|
1019
1019
|
"summary": "Retrieve agent phone",
|
|
1020
|
-
"description": "Read the agent's
|
|
1020
|
+
"description": "Read the agent's phone, or learn that it has none: use it before driving the phone or to show its state in a settings page. configured says whether a phone block is saved at all (false is not an error: the phone is off). A cloud phone's state is one of none, starting, booting, restoring, running, archiving or releasing — none means no instance exists (never built, already released, or gone), archiving means its app state is being packed, and releasing means a release was asked for and the cron has not finished. A BYOD phone (the organization's own device) has two states instead, online and offline, and reports byod_device as its byd_… id, sku null and no lease. sku and name come from the configuration when one exists. When a cloud phone is reachable, sandbox_id is the public sandbox id of its running instance; for a BYOD phone sandbox_id is the byd_… id itself: take either phone over through POST /sandbox/v1/sandboxes/{id}/act, or open the sandbox page's screen tab in the Console; lease_ends_at is when a cloud instance's lease runs out and the sandbox kills it, and is always null for a BYOD phone. archived_at and archive_error describe the last app-state archive, which a fresh instance restores on the next use; both are null for a BYOD phone, which is never archived. Reading never builds a phone. Only a general or assume agent may have one: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it; an agent drives its own phone only through its phone tool, which can act on the device but cannot read this state or release it.",
|
|
1021
1021
|
"http": "GET",
|
|
1022
1022
|
"path": "/agent/v1/agents/{agent_id}/phone",
|
|
1023
1023
|
"streaming": "no",
|
|
@@ -1035,7 +1035,7 @@ export const operations = [
|
|
|
1035
1035
|
"resource": "agent.agents.phone",
|
|
1036
1036
|
"method": "release",
|
|
1037
1037
|
"summary": "Release agent phone",
|
|
1038
|
-
"description": "Ask for the agent's cloud phone to go, and answer its state afterwards. The phone is not killed here: its app state is packed first (state archiving), then the instance is killed and the row cleared, so the state answers releasing until that sweep finishes and the next use builds a fresh instance and restores the archive. The configuration is never deleted — the phone block stays and turning the phone off is agents.update with phone null, a different door. With no phone configured, or one that was never built (state none), the call changes nothing and answers none, so it is safe to repeat; repeating it while a release is pending is idempotent. Only a general or assume agent may have a phone: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it.",
|
|
1038
|
+
"description": "Ask for the agent's cloud phone to go, and answer its state afterwards. The phone is not killed here: its app state is packed first (state archiving), then the instance is killed and the row cleared, so the state answers releasing until that sweep finishes and the next use builds a fresh instance and restores the archive. The configuration is never deleted — the phone block stays and turning the phone off is agents.update with phone null, a different door. With no phone configured, or one that was never built (state none), the call changes nothing and answers none, so it is safe to repeat; repeating it while a release is pending is idempotent. A BYOD phone (the organization's own device) is not the platform's to kill, so the call changes nothing and answers online or offline. Only a general or assume agent may have a phone: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it.",
|
|
1039
1039
|
"http": "POST",
|
|
1040
1040
|
"path": "/agent/v1/agents/{agent_id}/phone/release",
|
|
1041
1041
|
"streaming": "no",
|
|
@@ -1371,6 +1371,43 @@ export const operations = [
|
|
|
1371
1371
|
}
|
|
1372
1372
|
]
|
|
1373
1373
|
},
|
|
1374
|
+
{
|
|
1375
|
+
"resource": "agent.computers.files",
|
|
1376
|
+
"method": "updateContent",
|
|
1377
|
+
"summary": "Write computer file content",
|
|
1378
|
+
"description": "Write the bytes of one existing file on a computer, only if the file is still the version you read.\n\nSend the raw bytes as the body (at most 16 MiB) and the version you edited in `If-Match`: the `version` field of the file listing (`<size>-<mtimeMs>`). The file must already exist; the write replaces it whole and keeps its permissions. A request without `If-Match` answers 428 FILE_VERSION_REQUIRED and nothing is written. When the file has changed since that version, the answer is 412 FILE_VERSION_MISMATCH with `error.current_version`, and nothing is written: read the file again, redo the edit and write with the new version. The version is checked against the file's current size and modification time, then the content digest is bound into the write itself, so a change that lands while the bytes are being written is refused instead of overwritten. Paths under /attachments and /skills are read-only (403 READ_ONLY). A successful write answers the new path, size, mtime and version; use that version for the next write.",
|
|
1379
|
+
"http": "PUT",
|
|
1380
|
+
"path": "/agent/v1/computers/{computer_id}/files/content",
|
|
1381
|
+
"streaming": "no",
|
|
1382
|
+
"pagination": false,
|
|
1383
|
+
"pathParams": [
|
|
1384
|
+
{
|
|
1385
|
+
"name": "computer_id",
|
|
1386
|
+
"sdkName": "computer_id",
|
|
1387
|
+
"description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
"query": [
|
|
1391
|
+
{
|
|
1392
|
+
"name": "path",
|
|
1393
|
+
"type": "string",
|
|
1394
|
+
"required": true,
|
|
1395
|
+
"description": "Absolute path of the existing file on the computer, or a /workspace/ relative path."
|
|
1396
|
+
}
|
|
1397
|
+
],
|
|
1398
|
+
"headers": [
|
|
1399
|
+
{
|
|
1400
|
+
"name": "If-Match",
|
|
1401
|
+
"type": "string",
|
|
1402
|
+
"required": true,
|
|
1403
|
+
"description": "The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted."
|
|
1404
|
+
}
|
|
1405
|
+
],
|
|
1406
|
+
"body": {
|
|
1407
|
+
"required": true,
|
|
1408
|
+
"fields": []
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1374
1411
|
{
|
|
1375
1412
|
"resource": "agent.computers.files.convert",
|
|
1376
1413
|
"method": "create",
|
|
@@ -2865,7 +2902,7 @@ export const operations = [
|
|
|
2865
2902
|
"resource": "agent.sessions.requests",
|
|
2866
2903
|
"method": "list",
|
|
2867
2904
|
"summary": "List Session Requests (Extension)",
|
|
2868
|
-
"description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (
|
|
2905
|
+
"description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (always approval, a tool waiting for permission; question is kept for compatibility and is never returned), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
|
|
2869
2906
|
"http": "GET",
|
|
2870
2907
|
"path": "/agent/v1/sessions/{session_id}/requests",
|
|
2871
2908
|
"streaming": "no",
|
|
@@ -3495,7 +3532,7 @@ export const operations = [
|
|
|
3495
3532
|
"resource": "agent.toolsets",
|
|
3496
3533
|
"method": "list",
|
|
3497
3534
|
"summary": "List Toolsets",
|
|
3498
|
-
"description": "Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write
|
|
3535
|
+
"description": "Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write and goal_read, which are listed so they can be switched off. Native additions require bash enabled; codemode requires bash (enabling it with bash disabled returns 400; keep bash enabled with permission_policy always_ask to restrict it); send_message also requires agent. To keep only some tools, set default_config.enabled to false and enable the wanted tools in configs; unlisted tools follow default_config. The catalog includes plugin names and versions. Sessions created through /anthropic/v1 expose only the eight official tools.",
|
|
3499
3536
|
"http": "GET",
|
|
3500
3537
|
"path": "/agent/v1/toolsets",
|
|
3501
3538
|
"streaming": "no",
|
|
@@ -4542,6 +4579,14 @@ export const operations = [
|
|
|
4542
4579
|
"description": "true checks compatibility without persisting and may omit If-Match; omitted or false performs a normal update."
|
|
4543
4580
|
}
|
|
4544
4581
|
],
|
|
4582
|
+
"headers": [
|
|
4583
|
+
{
|
|
4584
|
+
"name": "If-Match",
|
|
4585
|
+
"type": "string",
|
|
4586
|
+
"required": false,
|
|
4587
|
+
"description": "Required for normal updates; optional for dry_run=true but still validated when supplied. * matches any existing representation; otherwise supply the current revision ETag."
|
|
4588
|
+
}
|
|
4589
|
+
],
|
|
4545
4590
|
"body": {
|
|
4546
4591
|
"required": true,
|
|
4547
4592
|
"fields": [
|
|
@@ -4865,6 +4910,14 @@ export const operations = [
|
|
|
4865
4910
|
}
|
|
4866
4911
|
],
|
|
4867
4912
|
"query": [],
|
|
4913
|
+
"headers": [
|
|
4914
|
+
{
|
|
4915
|
+
"name": "If-Match",
|
|
4916
|
+
"type": "string",
|
|
4917
|
+
"required": false,
|
|
4918
|
+
"description": "Optional current revision or *; checked when supplied, with * matching any existing representation."
|
|
4919
|
+
}
|
|
4920
|
+
],
|
|
4868
4921
|
"body": {
|
|
4869
4922
|
"required": true,
|
|
4870
4923
|
"fields": [
|
|
@@ -4905,6 +4958,14 @@ export const operations = [
|
|
|
4905
4958
|
}
|
|
4906
4959
|
],
|
|
4907
4960
|
"query": [],
|
|
4961
|
+
"headers": [
|
|
4962
|
+
{
|
|
4963
|
+
"name": "webhook-id",
|
|
4964
|
+
"type": "string",
|
|
4965
|
+
"required": false,
|
|
4966
|
+
"description": "Optional deduplication identifier, retained for 24 hours within this trigger."
|
|
4967
|
+
}
|
|
4968
|
+
],
|
|
4908
4969
|
"body": {
|
|
4909
4970
|
"required": false,
|
|
4910
4971
|
"fields": []
|
|
@@ -5432,6 +5493,14 @@ export const operations = [
|
|
|
5432
5493
|
"required": false,
|
|
5433
5494
|
"description": "Opaque next_cursor from the previous page; keep the original filters when paging."
|
|
5434
5495
|
}
|
|
5496
|
+
],
|
|
5497
|
+
"headers": [
|
|
5498
|
+
{
|
|
5499
|
+
"name": "Last-Event-ID",
|
|
5500
|
+
"type": "string",
|
|
5501
|
+
"required": false,
|
|
5502
|
+
"description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
|
|
5503
|
+
}
|
|
5435
5504
|
]
|
|
5436
5505
|
},
|
|
5437
5506
|
{
|
|
@@ -5463,6 +5532,14 @@ export const operations = [
|
|
|
5463
5532
|
"required": false,
|
|
5464
5533
|
"description": "Opaque next_cursor from the previous page; keep the original filters when paging."
|
|
5465
5534
|
}
|
|
5535
|
+
],
|
|
5536
|
+
"headers": [
|
|
5537
|
+
{
|
|
5538
|
+
"name": "Last-Event-ID",
|
|
5539
|
+
"type": "string",
|
|
5540
|
+
"required": false,
|
|
5541
|
+
"description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
|
|
5542
|
+
}
|
|
5466
5543
|
]
|
|
5467
5544
|
},
|
|
5468
5545
|
{
|
|
@@ -5841,6 +5918,14 @@ export const operations = [
|
|
|
5841
5918
|
}
|
|
5842
5919
|
],
|
|
5843
5920
|
"query": [],
|
|
5921
|
+
"headers": [
|
|
5922
|
+
{
|
|
5923
|
+
"name": "If-Match",
|
|
5924
|
+
"type": "string",
|
|
5925
|
+
"required": true,
|
|
5926
|
+
"description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
|
|
5927
|
+
}
|
|
5928
|
+
],
|
|
5844
5929
|
"body": {
|
|
5845
5930
|
"required": true,
|
|
5846
5931
|
"fields": [
|
|
@@ -6501,6 +6586,14 @@ export const operations = [
|
|
|
6501
6586
|
"pagination": false,
|
|
6502
6587
|
"pathParams": [],
|
|
6503
6588
|
"query": [],
|
|
6589
|
+
"headers": [
|
|
6590
|
+
{
|
|
6591
|
+
"name": "Accept-Language",
|
|
6592
|
+
"type": "string",
|
|
6593
|
+
"required": false,
|
|
6594
|
+
"description": "Language for the readable description; supports Chinese (default) and English by language quality preference."
|
|
6595
|
+
}
|
|
6596
|
+
],
|
|
6504
6597
|
"body": {
|
|
6505
6598
|
"required": true,
|
|
6506
6599
|
"fields": [
|
|
@@ -6572,6 +6665,14 @@ export const operations = [
|
|
|
6572
6665
|
}
|
|
6573
6666
|
],
|
|
6574
6667
|
"query": [],
|
|
6668
|
+
"headers": [
|
|
6669
|
+
{
|
|
6670
|
+
"name": "If-Match",
|
|
6671
|
+
"type": "string",
|
|
6672
|
+
"required": true,
|
|
6673
|
+
"description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
|
|
6674
|
+
}
|
|
6675
|
+
],
|
|
6575
6676
|
"body": {
|
|
6576
6677
|
"required": true,
|
|
6577
6678
|
"fields": [
|
|
@@ -6987,6 +7088,14 @@ export const operations = [
|
|
|
6987
7088
|
}
|
|
6988
7089
|
],
|
|
6989
7090
|
"query": [],
|
|
7091
|
+
"headers": [
|
|
7092
|
+
{
|
|
7093
|
+
"name": "If-Match",
|
|
7094
|
+
"type": "string",
|
|
7095
|
+
"required": true,
|
|
7096
|
+
"description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
|
|
7097
|
+
}
|
|
7098
|
+
],
|
|
6990
7099
|
"body": {
|
|
6991
7100
|
"required": true,
|
|
6992
7101
|
"fields": [
|
|
@@ -8764,6 +8873,14 @@ export const operations = [
|
|
|
8764
8873
|
"pagination": false,
|
|
8765
8874
|
"pathParams": [],
|
|
8766
8875
|
"query": [],
|
|
8876
|
+
"headers": [
|
|
8877
|
+
{
|
|
8878
|
+
"name": "Origin",
|
|
8879
|
+
"type": "string",
|
|
8880
|
+
"required": false,
|
|
8881
|
+
"description": "Browser page origin the playback is opened from, for example https://school.example.com. Required when the content's allowed_origins is not empty; it must then match one of its entries exactly."
|
|
8882
|
+
}
|
|
8883
|
+
],
|
|
8767
8884
|
"body": {
|
|
8768
8885
|
"required": true,
|
|
8769
8886
|
"fields": [
|
|
@@ -10498,6 +10615,14 @@ export const operations = [
|
|
|
10498
10615
|
"pagination": false,
|
|
10499
10616
|
"pathParams": [],
|
|
10500
10617
|
"query": [],
|
|
10618
|
+
"headers": [
|
|
10619
|
+
{
|
|
10620
|
+
"name": "Origin",
|
|
10621
|
+
"type": "string",
|
|
10622
|
+
"required": false,
|
|
10623
|
+
"description": "Browser page origin the exchange is made from, for example https://school.example.com. Send it when the sign-in is bound to one; the service compares it with the binding and refuses a mismatch."
|
|
10624
|
+
}
|
|
10625
|
+
],
|
|
10501
10626
|
"body": {
|
|
10502
10627
|
"required": true,
|
|
10503
10628
|
"fields": [
|
|
@@ -11990,6 +12115,20 @@ export const operations = [
|
|
|
11990
12115
|
"required": false,
|
|
11991
12116
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
11992
12117
|
}
|
|
12118
|
+
],
|
|
12119
|
+
"headers": [
|
|
12120
|
+
{
|
|
12121
|
+
"name": "Range-Unit",
|
|
12122
|
+
"type": "string",
|
|
12123
|
+
"required": false,
|
|
12124
|
+
"description": "items; other units cause Range to be ignored."
|
|
12125
|
+
},
|
|
12126
|
+
{
|
|
12127
|
+
"name": "Prefer",
|
|
12128
|
+
"type": "string",
|
|
12129
|
+
"required": false,
|
|
12130
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12131
|
+
}
|
|
11993
12132
|
]
|
|
11994
12133
|
},
|
|
11995
12134
|
{
|
|
@@ -12080,6 +12219,20 @@ export const operations = [
|
|
|
12080
12219
|
"required": false,
|
|
12081
12220
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
12082
12221
|
}
|
|
12222
|
+
],
|
|
12223
|
+
"headers": [
|
|
12224
|
+
{
|
|
12225
|
+
"name": "Range-Unit",
|
|
12226
|
+
"type": "string",
|
|
12227
|
+
"required": false,
|
|
12228
|
+
"description": "items; other units cause Range to be ignored."
|
|
12229
|
+
},
|
|
12230
|
+
{
|
|
12231
|
+
"name": "Prefer",
|
|
12232
|
+
"type": "string",
|
|
12233
|
+
"required": false,
|
|
12234
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12235
|
+
}
|
|
12083
12236
|
]
|
|
12084
12237
|
},
|
|
12085
12238
|
{
|
|
@@ -12170,6 +12323,20 @@ export const operations = [
|
|
|
12170
12323
|
"required": false,
|
|
12171
12324
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
12172
12325
|
}
|
|
12326
|
+
],
|
|
12327
|
+
"headers": [
|
|
12328
|
+
{
|
|
12329
|
+
"name": "Range-Unit",
|
|
12330
|
+
"type": "string",
|
|
12331
|
+
"required": false,
|
|
12332
|
+
"description": "items; other units cause Range to be ignored."
|
|
12333
|
+
},
|
|
12334
|
+
{
|
|
12335
|
+
"name": "Prefer",
|
|
12336
|
+
"type": "string",
|
|
12337
|
+
"required": false,
|
|
12338
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12339
|
+
}
|
|
12173
12340
|
]
|
|
12174
12341
|
},
|
|
12175
12342
|
{
|
|
@@ -12261,6 +12428,20 @@ export const operations = [
|
|
|
12261
12428
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
12262
12429
|
}
|
|
12263
12430
|
],
|
|
12431
|
+
"headers": [
|
|
12432
|
+
{
|
|
12433
|
+
"name": "Range-Unit",
|
|
12434
|
+
"type": "string",
|
|
12435
|
+
"required": false,
|
|
12436
|
+
"description": "items; other units cause Range to be ignored."
|
|
12437
|
+
},
|
|
12438
|
+
{
|
|
12439
|
+
"name": "Prefer",
|
|
12440
|
+
"type": "string",
|
|
12441
|
+
"required": false,
|
|
12442
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12443
|
+
}
|
|
12444
|
+
],
|
|
12264
12445
|
"body": {
|
|
12265
12446
|
"required": true,
|
|
12266
12447
|
"fields": []
|
|
@@ -12355,6 +12536,20 @@ export const operations = [
|
|
|
12355
12536
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
12356
12537
|
}
|
|
12357
12538
|
],
|
|
12539
|
+
"headers": [
|
|
12540
|
+
{
|
|
12541
|
+
"name": "Range-Unit",
|
|
12542
|
+
"type": "string",
|
|
12543
|
+
"required": false,
|
|
12544
|
+
"description": "items; other units cause Range to be ignored."
|
|
12545
|
+
},
|
|
12546
|
+
{
|
|
12547
|
+
"name": "Prefer",
|
|
12548
|
+
"type": "string",
|
|
12549
|
+
"required": false,
|
|
12550
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12551
|
+
}
|
|
12552
|
+
],
|
|
12358
12553
|
"body": {
|
|
12359
12554
|
"required": true,
|
|
12360
12555
|
"fields": []
|
|
@@ -12959,7 +13154,7 @@ export const operations = [
|
|
|
12959
13154
|
"type": "array",
|
|
12960
13155
|
"itemType": "string",
|
|
12961
13156
|
"required": false,
|
|
12962
|
-
"description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries."
|
|
13157
|
+
"description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries."
|
|
12963
13158
|
}
|
|
12964
13159
|
]
|
|
12965
13160
|
}
|
|
@@ -13381,7 +13576,7 @@ export const operations = [
|
|
|
13381
13576
|
"resource": "devops.projects",
|
|
13382
13577
|
"method": "list",
|
|
13383
13578
|
"summary": "List projects",
|
|
13384
|
-
"description": "List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all.",
|
|
13579
|
+
"description": "List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all. The page always carries visibleProjects: how many projects the caller's own organization has in total, deleted ones excluded. Those are the projects visible to the credential's organization — the count filters by organization_id and is not a permission check — so an empty items array reads as \"this organization has none yet\" instead of leaving you to guess whether the read was lost or the credential points at another organization. It is the organization's total across all pages, not this page's length.",
|
|
13385
13580
|
"http": "GET",
|
|
13386
13581
|
"path": "/devops/v1/projects",
|
|
13387
13582
|
"streaming": "no",
|
|
@@ -13402,6 +13597,81 @@ export const operations = [
|
|
|
13402
13597
|
}
|
|
13403
13598
|
]
|
|
13404
13599
|
},
|
|
13600
|
+
{
|
|
13601
|
+
"resource": "devops.projects",
|
|
13602
|
+
"method": "create",
|
|
13603
|
+
"summary": "Create a project",
|
|
13604
|
+
"description": "Create a delivery project and its two default environments (develop, production). The code lives in one of two places. Our own Git: pass provider platform and package, the id (pkg_...) of a git package in your organization's registry (the registry domain lists packages and creates git libraries); there is no install flow and no connection, the project records the provider, the package and the package's default branch, and from then on pull requests, the merge gate, changes and cloud workspaces use that package and DevOps merges a pull request itself. A package backs at most one project (REPOSITORY_ALREADY_BOUND) and a package that is not a git package of your organization is INVALID_ARGUMENT. If the package has no default branch yet, which is usual for a library imported from elsewhere, pass initialRef, an existing branch such as import: the default branch is created at its head while the project is created, and no change can be opened before it exists. If the default branch already exists the call is refused with DEFAULT_BRANCH_EXISTS, and a missing initialRef branch with REF_NOT_FOUND; neither leaves a project behind. For a package whose project already exists, use devops.projects.initializeDefaultBranch instead. GitHub (the default): pass the connection of a completed GitHub App install and the repository (owner/name) it can see; leave both out to create a project with no repository yet. A name must be kebab-case and unused in the organization (PROJECT_NAME_TAKEN).",
|
|
13605
|
+
"http": "POST",
|
|
13606
|
+
"path": "/devops/v1/projects",
|
|
13607
|
+
"streaming": "no",
|
|
13608
|
+
"pagination": false,
|
|
13609
|
+
"pathParams": [],
|
|
13610
|
+
"query": [],
|
|
13611
|
+
"body": {
|
|
13612
|
+
"required": true,
|
|
13613
|
+
"fields": [
|
|
13614
|
+
{
|
|
13615
|
+
"name": "name",
|
|
13616
|
+
"type": "string",
|
|
13617
|
+
"required": true,
|
|
13618
|
+
"description": "Kebab-case name, unique within the organization."
|
|
13619
|
+
},
|
|
13620
|
+
{
|
|
13621
|
+
"name": "description",
|
|
13622
|
+
"type": "string",
|
|
13623
|
+
"required": false,
|
|
13624
|
+
"description": "What the project is for, in your own words."
|
|
13625
|
+
},
|
|
13626
|
+
{
|
|
13627
|
+
"name": "provider",
|
|
13628
|
+
"type": "string",
|
|
13629
|
+
"enum": [
|
|
13630
|
+
"github",
|
|
13631
|
+
"platform"
|
|
13632
|
+
],
|
|
13633
|
+
"required": false,
|
|
13634
|
+
"description": "Where the code lives: github (the default) or platform, a git package of our own Git."
|
|
13635
|
+
},
|
|
13636
|
+
{
|
|
13637
|
+
"name": "package",
|
|
13638
|
+
"type": "string",
|
|
13639
|
+
"required": false,
|
|
13640
|
+
"description": "provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository."
|
|
13641
|
+
},
|
|
13642
|
+
{
|
|
13643
|
+
"name": "initialRef",
|
|
13644
|
+
"type": "string",
|
|
13645
|
+
"required": false,
|
|
13646
|
+
"description": "provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then."
|
|
13647
|
+
},
|
|
13648
|
+
{
|
|
13649
|
+
"name": "connection",
|
|
13650
|
+
"type": "string",
|
|
13651
|
+
"required": false,
|
|
13652
|
+
"description": "provider github only: the connection of a completed GitHub App install that can see the repository."
|
|
13653
|
+
},
|
|
13654
|
+
{
|
|
13655
|
+
"name": "repository",
|
|
13656
|
+
"type": "string",
|
|
13657
|
+
"required": false,
|
|
13658
|
+
"description": "provider github only: the repository as owner/name."
|
|
13659
|
+
},
|
|
13660
|
+
{
|
|
13661
|
+
"name": "settings",
|
|
13662
|
+
"type": "object",
|
|
13663
|
+
"required": false,
|
|
13664
|
+
"description": "Delivery settings; keys you leave out take their defaults."
|
|
13665
|
+
},
|
|
13666
|
+
{
|
|
13667
|
+
"name": "requestId",
|
|
13668
|
+
"type": "string",
|
|
13669
|
+
"required": false,
|
|
13670
|
+
"description": "Idempotency key: repeat the call with the same value to be given the same answer."
|
|
13671
|
+
}
|
|
13672
|
+
]
|
|
13673
|
+
}
|
|
13674
|
+
},
|
|
13405
13675
|
{
|
|
13406
13676
|
"resource": "devops.projects",
|
|
13407
13677
|
"method": "retrieve",
|
|
@@ -13456,6 +13726,35 @@ export const operations = [
|
|
|
13456
13726
|
]
|
|
13457
13727
|
}
|
|
13458
13728
|
},
|
|
13729
|
+
{
|
|
13730
|
+
"resource": "devops.projects.defaultBranch",
|
|
13731
|
+
"method": "initialize",
|
|
13732
|
+
"summary": "Create a project's default branch",
|
|
13733
|
+
"description": "Create the default branch of a project on our own Git, once. A git package imported from elsewhere can hold branches and no default branch, and every change is cut from the default branch, so until it exists no change can be opened. The default branch is protected and only DevOps holds the credential that may write it, so this call is the one way to create it: it points the default branch at the head of the existing branch named in from (for example import). It only creates: a default branch that already exists is refused with DEFAULT_BRANCH_EXISTS and is never moved, a from that is not a branch of the repository is REF_NOT_FOUND, and a GitHub project is INVALID_ARGUMENT because GitHub's branches are GitHub's. The push reaches the project like any other push to its default branch. Read the project first (devops.projects.retrieve) for the package's default branch name.",
|
|
13734
|
+
"http": "POST",
|
|
13735
|
+
"path": "/devops/v1/projects/{id}/default-branch:initialize",
|
|
13736
|
+
"streaming": "no",
|
|
13737
|
+
"pagination": false,
|
|
13738
|
+
"pathParams": [
|
|
13739
|
+
{
|
|
13740
|
+
"name": "id",
|
|
13741
|
+
"sdkName": "id",
|
|
13742
|
+
"description": "The project identifier returned by the project list, not the project's display name or its repository name."
|
|
13743
|
+
}
|
|
13744
|
+
],
|
|
13745
|
+
"query": [],
|
|
13746
|
+
"body": {
|
|
13747
|
+
"required": true,
|
|
13748
|
+
"fields": [
|
|
13749
|
+
{
|
|
13750
|
+
"name": "from",
|
|
13751
|
+
"type": "string",
|
|
13752
|
+
"required": true,
|
|
13753
|
+
"description": "An existing branch of the repository, for example import. The default branch is created at its head."
|
|
13754
|
+
}
|
|
13755
|
+
]
|
|
13756
|
+
}
|
|
13757
|
+
},
|
|
13459
13758
|
{
|
|
13460
13759
|
"resource": "devops.projects.changes",
|
|
13461
13760
|
"method": "list",
|
|
@@ -13587,6 +13886,37 @@ export const operations = [
|
|
|
13587
13886
|
}
|
|
13588
13887
|
}
|
|
13589
13888
|
},
|
|
13889
|
+
{
|
|
13890
|
+
"resource": "devops.projects.cleanups",
|
|
13891
|
+
"method": "list",
|
|
13892
|
+
"summary": "List a project's cleanup ledger",
|
|
13893
|
+
"description": "List what the daily cleanup job removed or archived for the project, newest decision first: merged branches deleted when their pull request merged, stopped units deleted after the project's window, test evidence past its age, and prebuilds beyond the kept versions. Each row names the kind of thing, which one, whether it was archived (the record stays, the heavy content goes) or deleted, the reason and when it was decided and done; error is set while the last attempt failed and the job will try again. The ledger is read-only: the job is its only writer, and a project changes what is kept through settings.retention on devops.projects.update. A project with no row has had nothing cleaned.",
|
|
13894
|
+
"http": "GET",
|
|
13895
|
+
"path": "/devops/v1/projects/{project}/cleanups",
|
|
13896
|
+
"streaming": "no",
|
|
13897
|
+
"pagination": false,
|
|
13898
|
+
"pathParams": [
|
|
13899
|
+
{
|
|
13900
|
+
"name": "project",
|
|
13901
|
+
"sdkName": "project",
|
|
13902
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
13903
|
+
}
|
|
13904
|
+
],
|
|
13905
|
+
"query": [
|
|
13906
|
+
{
|
|
13907
|
+
"name": "pageSize",
|
|
13908
|
+
"type": "integer",
|
|
13909
|
+
"required": false,
|
|
13910
|
+
"description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
|
|
13911
|
+
},
|
|
13912
|
+
{
|
|
13913
|
+
"name": "pageToken",
|
|
13914
|
+
"type": "string",
|
|
13915
|
+
"required": false,
|
|
13916
|
+
"description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
|
|
13917
|
+
}
|
|
13918
|
+
]
|
|
13919
|
+
},
|
|
13590
13920
|
{
|
|
13591
13921
|
"resource": "devops.projects.environments",
|
|
13592
13922
|
"method": "list",
|
|
@@ -14146,6 +14476,12 @@ export const operations = [
|
|
|
14146
14476
|
"type": "string",
|
|
14147
14477
|
"required": false,
|
|
14148
14478
|
"description": "A GitHub login to build the \"waiting on me\" list: only pull requests where that person is a requested reviewer and has not answered yet are returned. Somebody who already approved, requested changes or commented is no longer waiting on, so they do not appear."
|
|
14479
|
+
},
|
|
14480
|
+
{
|
|
14481
|
+
"name": "reviewed",
|
|
14482
|
+
"type": "boolean",
|
|
14483
|
+
"required": false,
|
|
14484
|
+
"description": "Review is after-the-fact sampling (Sean 2026-11-24). false lists the pull requests nobody has recorded a review verdict for — send it with filter state=merged to get the merged pull requests still waiting for a sample; true lists the ones that have a review. Omit it to ignore reviews."
|
|
14149
14485
|
}
|
|
14150
14486
|
]
|
|
14151
14487
|
},
|
|
@@ -14488,7 +14824,7 @@ export const operations = [
|
|
|
14488
14824
|
"resource": "devops.projects",
|
|
14489
14825
|
"method": "retrieveTestPlan",
|
|
14490
14826
|
"summary": "Retrieve the merge gate's test plan at a commit",
|
|
14491
|
-
"description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — `praxis devops test
|
|
14827
|
+
"description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. The answer also carries cases: every feature scenario of the affected packages at the gate's sizes, each with required (whether this diff can affect it, chosen by the files the scenario was recorded running), the reason, the deps hash it is judged at and its own evidence. A merge needs evidence only for the required cases; run `praxis devops test <package> --record-impact` to record coverage and results. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — run `praxis devops test <package>` for each missing or failed package on a clean, pushed commit and the run files the evidence itself — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
|
|
14492
14828
|
"http": "GET",
|
|
14493
14829
|
"path": "/devops/v1/projects/{project}/test-plan",
|
|
14494
14830
|
"streaming": "no",
|
|
@@ -14512,6 +14848,16 @@ export const operations = [
|
|
|
14512
14848
|
"type": "string",
|
|
14513
14849
|
"required": false,
|
|
14514
14850
|
"description": "What the diff is measured against: a commit id or a branch name. Defaults to the project's default branch. A base that is neither a branch of the project's repository nor a readable commit is refused as COMMIT_NOT_FOUND, so a typo cannot silently plan against the whole repository."
|
|
14851
|
+
},
|
|
14852
|
+
{
|
|
14853
|
+
"name": "view",
|
|
14854
|
+
"type": "string",
|
|
14855
|
+
"enum": [
|
|
14856
|
+
"full",
|
|
14857
|
+
"summary"
|
|
14858
|
+
],
|
|
14859
|
+
"required": false,
|
|
14860
|
+
"description": "How much of the plan to return: full lists every feature scenario of the affected packages, summary returns per package only the counts (caseCounts) and lists only the cases this diff requires. A change that touches no tested code (a README) answers tens of kilobytes in the full view, because every case is listed as unaffected; ask for the summary first and use the full view only to explain one case."
|
|
14515
14861
|
}
|
|
14516
14862
|
]
|
|
14517
14863
|
},
|
|
@@ -14646,7 +14992,7 @@ export const operations = [
|
|
|
14646
14992
|
"resource": "devops.projects.testReports",
|
|
14647
14993
|
"method": "create",
|
|
14648
14994
|
"summary": "Upload an external test report",
|
|
14649
|
-
"description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested.",
|
|
14995
|
+
"description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested. With purpose evidence the report is also filed as test evidence, package by package: DevOps recomputes each package's input hash from ref.commit (so the commit must already be pushed; an unreadable commit records the run but no evidence), and writes passed or failed only for a package whose every case at the gate's sizes the report carries — a report of a few files leaves that package without evidence. Pass ref.branch and ref.pullRequest so the run says where it came from; devops.projects.retrieveTestPlan at the commit then shows what the gate will read.",
|
|
14650
14996
|
"http": "POST",
|
|
14651
14997
|
"path": "/devops/v1/projects/{project}/test-reports",
|
|
14652
14998
|
"streaming": "no",
|
|
@@ -14676,7 +15022,7 @@ export const operations = [
|
|
|
14676
15022
|
"feedback"
|
|
14677
15023
|
],
|
|
14678
15024
|
"required": false,
|
|
14679
|
-
"description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and
|
|
15025
|
+
"description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and is filed as evidence for each package it fully covers, which the merge gate and later stages read by the package's input hash. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence."
|
|
14680
15026
|
},
|
|
14681
15027
|
{
|
|
14682
15028
|
"name": "format",
|
|
@@ -14919,7 +15265,7 @@ export const operations = [
|
|
|
14919
15265
|
"enum": [
|
|
14920
15266
|
"development",
|
|
14921
15267
|
"integration",
|
|
14922
|
-
"
|
|
15268
|
+
"release"
|
|
14923
15269
|
],
|
|
14924
15270
|
"required": false,
|
|
14925
15271
|
"description": "Return only units of this stage; omit it to return every stage."
|
|
@@ -14987,7 +15333,7 @@ export const operations = [
|
|
|
14987
15333
|
"resource": "devops.projects.workspaces",
|
|
14988
15334
|
"method": "list",
|
|
14989
15335
|
"summary": "List a project's stage workspaces",
|
|
14990
|
-
"description": "List the project's three stage workspaces — development, integration and
|
|
15336
|
+
"description": "List the project's three stage workspaces — development, integration and release — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
|
|
14991
15337
|
"http": "GET",
|
|
14992
15338
|
"path": "/devops/v1/projects/{project}/workspaces",
|
|
14993
15339
|
"streaming": "no",
|
|
@@ -15019,7 +15365,7 @@ export const operations = [
|
|
|
15019
15365
|
{
|
|
15020
15366
|
"name": "stage",
|
|
15021
15367
|
"sdkName": "stage",
|
|
15022
|
-
"description": "The stage whose workspace you address: development, integration or
|
|
15368
|
+
"description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
|
|
15023
15369
|
}
|
|
15024
15370
|
],
|
|
15025
15371
|
"query": []
|
|
@@ -15042,7 +15388,7 @@ export const operations = [
|
|
|
15042
15388
|
{
|
|
15043
15389
|
"name": "stage",
|
|
15044
15390
|
"sdkName": "stage",
|
|
15045
|
-
"description": "The stage whose workspace you address: development, integration or
|
|
15391
|
+
"description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
|
|
15046
15392
|
}
|
|
15047
15393
|
],
|
|
15048
15394
|
"query": [],
|
|
@@ -15241,11 +15587,11 @@ export const operations = [
|
|
|
15241
15587
|
},
|
|
15242
15588
|
{
|
|
15243
15589
|
"resource": "devops.promotions",
|
|
15244
|
-
"method": "
|
|
15245
|
-
"summary": "
|
|
15246
|
-
"description": "
|
|
15590
|
+
"method": "checkoutCredential",
|
|
15591
|
+
"summary": "Get the checkout credential of a running promotion",
|
|
15592
|
+
"description": "Issue the credential the deploy machine fetches a platform-Git project's code with. The caller is the deploy machine itself, during a run: its `devops/prepare` step sends the API key it already holds and receives the clone URL of the project's repository plus a pull-only credential for exactly that one repository. The credential lives 15 minutes and is issued again on every request, so it never sits in the run's stored input or log, and a leaked copy is useless almost at once. A run that needs the code later, such as an engine checkout after a long install, asks again. It answers only while the promotion is deploying (a rollback is a promotion and deploys too) or halted; a promotion that is queued, waiting for approval, observing or finished is refused with PROMOTION_NOT_RUNNING, because no machine should be fetching code for it. A project whose code is on GitHub is refused with SOURCE_NOT_PLATFORM: its checkout uses the GitHub App token, not this. The key must belong to the promotion's organization, the same check as reading the promotion with `praxis api devops promotion get <id>`. People do not need this call: to read a platform project's code use the code browser calls instead.",
|
|
15247
15593
|
"http": "POST",
|
|
15248
|
-
"path": "/devops/v1/promotions/{id}:
|
|
15594
|
+
"path": "/devops/v1/promotions/{id}:checkoutCredential",
|
|
15249
15595
|
"streaming": "no",
|
|
15250
15596
|
"pagination": false,
|
|
15251
15597
|
"pathParams": [
|
|
@@ -15255,7 +15601,25 @@ export const operations = [
|
|
|
15255
15601
|
"description": "The promotion identifier returned by a promotion list or create answer."
|
|
15256
15602
|
}
|
|
15257
15603
|
],
|
|
15258
|
-
"query": []
|
|
15604
|
+
"query": []
|
|
15605
|
+
},
|
|
15606
|
+
{
|
|
15607
|
+
"resource": "devops.promotions",
|
|
15608
|
+
"method": "conclude",
|
|
15609
|
+
"summary": "Conclude an observation",
|
|
15610
|
+
"description": "Record the verdict on a promotion that is observing: send keep to accept the deployment as the environment's new state, or rollback to record it as unhealthy. This is the decision the observation window exists for, so a promotion in observing state stays open until it is concluded; reason is stored as the attribution. Concluding with rollback only records the verdict: the observation closes unhealthy and the promotion fails with observation_failed, but the deployment is not moved. To move the deployment back, call `praxis api devops environment rollback <environment_id>` (that one deploys the earlier release again). A promotion that is not observing is refused with PROMOTION_NOT_OBSERVING, which is how a caller tells \"already concluded\" apart from a call that had no effect. It needs state observing, which `praxis api devops promotion get <id>` shows in state.",
|
|
15611
|
+
"http": "POST",
|
|
15612
|
+
"path": "/devops/v1/promotions/{id}:conclude",
|
|
15613
|
+
"streaming": "no",
|
|
15614
|
+
"pagination": false,
|
|
15615
|
+
"pathParams": [
|
|
15616
|
+
{
|
|
15617
|
+
"name": "id",
|
|
15618
|
+
"sdkName": "id",
|
|
15619
|
+
"description": "The promotion identifier returned by a promotion list or create answer."
|
|
15620
|
+
}
|
|
15621
|
+
],
|
|
15622
|
+
"query": [],
|
|
15259
15623
|
"body": {
|
|
15260
15624
|
"required": true,
|
|
15261
15625
|
"fields": [
|
|
@@ -15331,7 +15695,7 @@ export const operations = [
|
|
|
15331
15695
|
"resource": "devops.pullRequests",
|
|
15332
15696
|
"method": "retrieve",
|
|
15333
15697
|
"summary": "Retrieve a pull request",
|
|
15334
|
-
"description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the
|
|
15698
|
+
"description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the tests check is never pending, because DevOps runs no tests for a pull request: it is passed, or failed naming the missing or failed cases and the command `praxis devops test <package> --record-impact` the author runs on the pushed head; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the test runs reported at the head commit (uploaded by the author, never started by DevOps), newest first.",
|
|
15335
15699
|
"http": "GET",
|
|
15336
15700
|
"path": "/devops/v1/pull-requests/{id}",
|
|
15337
15701
|
"streaming": "no",
|
|
@@ -15352,6 +15716,46 @@ export const operations = [
|
|
|
15352
15716
|
}
|
|
15353
15717
|
]
|
|
15354
15718
|
},
|
|
15719
|
+
{
|
|
15720
|
+
"resource": "devops.pullRequests.reviews",
|
|
15721
|
+
"method": "create",
|
|
15722
|
+
"summary": "Review a pull request on our own Git",
|
|
15723
|
+
"description": "Give your verdict on a pull request whose project keeps its code on the platform's own Git, where there is no GitHub to hold reviews. The reviewer is you — the user or agent the credential names, never a name in the body — and the platform stores your verdict on the pull request's reviewers under your id, so an ownership rule that lists principal ids reads it. Send approved to approve, changes_requested to hold it with changes you want, or commented to say something without a verdict. A second review from you replaces your first, and the gate is decided again so a rule that reads reviews sees it at once. Only an open pull request is reviewed: a merged or closed one is refused with PULL_REQUEST_NOT_OPEN. A project connected to GitHub is refused with INVALID_ARGUMENT, because its reviews belong to GitHub and the platform projects them from there, so a verdict is never recorded in two places that can disagree.",
|
|
15724
|
+
"http": "POST",
|
|
15725
|
+
"path": "/devops/v1/pull-requests/{id}/reviews",
|
|
15726
|
+
"streaming": "no",
|
|
15727
|
+
"pagination": false,
|
|
15728
|
+
"pathParams": [
|
|
15729
|
+
{
|
|
15730
|
+
"name": "id",
|
|
15731
|
+
"sdkName": "id",
|
|
15732
|
+
"description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
|
|
15733
|
+
}
|
|
15734
|
+
],
|
|
15735
|
+
"query": [],
|
|
15736
|
+
"body": {
|
|
15737
|
+
"required": true,
|
|
15738
|
+
"fields": [
|
|
15739
|
+
{
|
|
15740
|
+
"name": "state",
|
|
15741
|
+
"type": "string",
|
|
15742
|
+
"enum": [
|
|
15743
|
+
"approved",
|
|
15744
|
+
"changes_requested",
|
|
15745
|
+
"commented"
|
|
15746
|
+
],
|
|
15747
|
+
"required": true,
|
|
15748
|
+
"description": "The verdict. A value outside this set is refused with INVALID_ARGUMENT."
|
|
15749
|
+
},
|
|
15750
|
+
{
|
|
15751
|
+
"name": "body",
|
|
15752
|
+
"type": "string",
|
|
15753
|
+
"required": false,
|
|
15754
|
+
"description": "The words that go with the verdict. Accepted now and not stored yet: DevOps keeps no review thread, so say what must change on the change's own ticket as well."
|
|
15755
|
+
}
|
|
15756
|
+
]
|
|
15757
|
+
}
|
|
15758
|
+
},
|
|
15355
15759
|
{
|
|
15356
15760
|
"resource": "devops.pullRequests",
|
|
15357
15761
|
"method": "close",
|
|
@@ -15385,7 +15789,7 @@ export const operations = [
|
|
|
15385
15789
|
"resource": "devops.pullRequests",
|
|
15386
15790
|
"method": "merge",
|
|
15387
15791
|
"summary": "Merge a pull request through its gate",
|
|
15388
|
-
"description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape
|
|
15792
|
+
"description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape; on GitHub it defaults to rebase. A project on our own Git (provider platform) merges by squash only: no method means squash, and rebase or merge is refused with INVALID_ARGUMENT naming squash. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
|
|
15389
15793
|
"http": "POST",
|
|
15390
15794
|
"path": "/devops/v1/pull-requests/{id}:merge",
|
|
15391
15795
|
"streaming": "no",
|
|
@@ -15430,8 +15834,8 @@ export const operations = [
|
|
|
15430
15834
|
{
|
|
15431
15835
|
"resource": "devops.pullRequests",
|
|
15432
15836
|
"method": "recordVerdict",
|
|
15433
|
-
"summary": "Record a
|
|
15434
|
-
"description": "
|
|
15837
|
+
"summary": "Record a review verdict on a pull request",
|
|
15838
|
+
"description": "Record a reviewer's verdict on a pull request, after the fact (Sean 2026-11-24). The merge gate no longer waits for it: exposure-judged is decided by machine from the declaration for every kind of exposure, so a pull request merges without any verdict. This call is the review record — send result passed or failed with reason saying in a sentence a reviewer can act on why. It is stored on the pull request as review and announced with the event devops.pullRequest.reviewed. A failed verdict on an already merged pull request is a finding for follow-up (the event says finding true): the merge stands, nothing is un-merged, and a rollback or a fix is asked for on the ticket. headSha must be the pull request's head, and a verdict for another commit is refused with INVALID_ARGUMENT. List the merged pull requests nobody reviewed with pullRequests.list reviewed=false.",
|
|
15435
15839
|
"http": "POST",
|
|
15436
15840
|
"path": "/devops/v1/pull-requests/{id}:recordVerdict",
|
|
15437
15841
|
"streaming": "no",
|
|
@@ -15482,7 +15886,7 @@ export const operations = [
|
|
|
15482
15886
|
"resource": "devops.pullRequests",
|
|
15483
15887
|
"method": "rerunGate",
|
|
15484
15888
|
"summary": "Decide a pull request's merge gate again",
|
|
15485
|
-
"description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a
|
|
15889
|
+
"description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a flag was registered, or a check that had no evidence now has some (test evidence uploaded for the head already decides the gate again by itself) — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.",
|
|
15486
15890
|
"http": "POST",
|
|
15487
15891
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
15488
15892
|
"streaming": "no",
|
|
@@ -16136,7 +16540,7 @@ export const operations = [
|
|
|
16136
16540
|
"resource": "file.files",
|
|
16137
16541
|
"method": "list",
|
|
16138
16542
|
"summary": "List files",
|
|
16139
|
-
"description": "List live files owned by your tenant, optionally filtered by purpose or
|
|
16543
|
+
"description": "List live files owned by your tenant, optionally filtered by purpose, session scope_id or up to 100 file ids. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.",
|
|
16140
16544
|
"http": "GET",
|
|
16141
16545
|
"path": "/file/v1/files",
|
|
16142
16546
|
"streaming": "no",
|
|
@@ -16177,6 +16581,13 @@ export const operations = [
|
|
|
16177
16581
|
"required": false,
|
|
16178
16582
|
"description": "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404."
|
|
16179
16583
|
},
|
|
16584
|
+
{
|
|
16585
|
+
"name": "ids",
|
|
16586
|
+
"type": "array",
|
|
16587
|
+
"itemType": "string",
|
|
16588
|
+
"required": false,
|
|
16589
|
+
"description": "Return only these files, up to 100 IDs separated by commas, so metadata for many known files takes one call instead of one retrieve per file. An ID that is not a live file of your tenant is simply absent from the list, as a retrieve would answer 404; more than 100 IDs returns 400. Combines with the other filters."
|
|
16590
|
+
},
|
|
16180
16591
|
{
|
|
16181
16592
|
"name": "before",
|
|
16182
16593
|
"type": "string",
|
|
@@ -17681,6 +18092,20 @@ export const operations = [
|
|
|
17681
18092
|
}
|
|
17682
18093
|
],
|
|
17683
18094
|
"query": [],
|
|
18095
|
+
"headers": [
|
|
18096
|
+
{
|
|
18097
|
+
"name": "X-Unique-Upload-Id",
|
|
18098
|
+
"type": "string",
|
|
18099
|
+
"required": false,
|
|
18100
|
+
"description": "Stable identifier shared by every chunk of this upload."
|
|
18101
|
+
},
|
|
18102
|
+
{
|
|
18103
|
+
"name": "Content-Range",
|
|
18104
|
+
"type": "string",
|
|
18105
|
+
"required": false,
|
|
18106
|
+
"description": "Chunk byte range: bytes start-end/total; total may be -1 until the final chunk."
|
|
18107
|
+
}
|
|
18108
|
+
],
|
|
17684
18109
|
"body": {
|
|
17685
18110
|
"required": true,
|
|
17686
18111
|
"fields": [
|
|
@@ -19970,6 +20395,14 @@ export const operations = [
|
|
|
19970
20395
|
"pagination": false,
|
|
19971
20396
|
"pathParams": [],
|
|
19972
20397
|
"query": [],
|
|
20398
|
+
"headers": [
|
|
20399
|
+
{
|
|
20400
|
+
"name": "X-OpenRouter-Metadata",
|
|
20401
|
+
"type": "string",
|
|
20402
|
+
"required": false,
|
|
20403
|
+
"description": "OpenRouter-style request header that asks for routing metadata in the response. It is accepted for compatibility and has no effect: the routing metadata is not returned."
|
|
20404
|
+
}
|
|
20405
|
+
],
|
|
19973
20406
|
"body": {
|
|
19974
20407
|
"required": true,
|
|
19975
20408
|
"fields": [
|
|
@@ -23087,6 +23520,41 @@ export const operations = [
|
|
|
23087
23520
|
],
|
|
23088
23521
|
"query": []
|
|
23089
23522
|
},
|
|
23523
|
+
{
|
|
23524
|
+
"resource": "organization.effectiveSpec",
|
|
23525
|
+
"method": "retrieve",
|
|
23526
|
+
"summary": "Read the effective spec",
|
|
23527
|
+
"description": "Merges the spec chain of a seat or an actor and returns the one effective configuration: the merged capability blocks, the document of every layer, where each merged value came from, and anything only the merged result shows to be wrong. Give exactly one of actor (every seat the actor holds) or position_id (one seat, held or vacant, a preview before hiring); holder_kind defaults from the seat's holder. Read-only; nothing is changed. Errors: 400 INVALID_PARAMS when neither or both of actor and position_id are given, the actor address is malformed, holder_kind is neither agent nor human, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 POSITION_NOT_FOUND. Example: GET /organization/v1/effective_spec?actor=agent:agent_123.",
|
|
23528
|
+
"http": "GET",
|
|
23529
|
+
"path": "/organization/v1/effective_spec",
|
|
23530
|
+
"streaming": "no",
|
|
23531
|
+
"pagination": false,
|
|
23532
|
+
"pathParams": [],
|
|
23533
|
+
"query": [
|
|
23534
|
+
{
|
|
23535
|
+
"name": "actor",
|
|
23536
|
+
"type": "string",
|
|
23537
|
+
"required": false,
|
|
23538
|
+
"description": "Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both."
|
|
23539
|
+
},
|
|
23540
|
+
{
|
|
23541
|
+
"name": "position_id",
|
|
23542
|
+
"type": "string",
|
|
23543
|
+
"required": false,
|
|
23544
|
+
"description": "One seat to merge, held or vacant (pos_...); give this or actor, not both."
|
|
23545
|
+
},
|
|
23546
|
+
{
|
|
23547
|
+
"name": "holder_kind",
|
|
23548
|
+
"type": "string",
|
|
23549
|
+
"enum": [
|
|
23550
|
+
"agent",
|
|
23551
|
+
"human"
|
|
23552
|
+
],
|
|
23553
|
+
"required": false,
|
|
23554
|
+
"description": "Which holder kind to merge for; omit to derive it from the seat's holder."
|
|
23555
|
+
}
|
|
23556
|
+
]
|
|
23557
|
+
},
|
|
23090
23558
|
{
|
|
23091
23559
|
"resource": "organization.events",
|
|
23092
23560
|
"method": "list",
|
|
@@ -23252,10 +23720,11 @@ export const operations = [
|
|
|
23252
23720
|
"type": "string",
|
|
23253
23721
|
"enum": [
|
|
23254
23722
|
"console",
|
|
23255
|
-
"api"
|
|
23723
|
+
"api",
|
|
23724
|
+
"codemode"
|
|
23256
23725
|
],
|
|
23257
23726
|
"required": false,
|
|
23258
|
-
"description": "Use console for Console reports or api for API callers (default)
|
|
23727
|
+
"description": "Use console for Console reports or api for API callers (default). Machine tokens always store codemode regardless of this value and may send codemode; any other caller that sends codemode is refused."
|
|
23259
23728
|
},
|
|
23260
23729
|
{
|
|
23261
23730
|
"name": "attachments",
|
|
@@ -24583,97 +25052,200 @@ export const operations = [
|
|
|
24583
25052
|
"query": []
|
|
24584
25053
|
},
|
|
24585
25054
|
{
|
|
24586
|
-
"resource": "organization.
|
|
24587
|
-
"method": "
|
|
24588
|
-
"summary": "
|
|
24589
|
-
"description": "
|
|
25055
|
+
"resource": "organization.reconcile",
|
|
25056
|
+
"method": "pause",
|
|
25057
|
+
"summary": "Pause reconciliation",
|
|
25058
|
+
"description": "Stops the sweep from reconciling one holder until it is resumed: the holder's blocks keep their state and no further update is applied. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
|
|
25059
|
+
"http": "POST",
|
|
25060
|
+
"path": "/organization/v1/reconcile/pause",
|
|
25061
|
+
"streaming": "no",
|
|
25062
|
+
"pagination": false,
|
|
25063
|
+
"pathParams": [],
|
|
25064
|
+
"query": [],
|
|
25065
|
+
"body": {
|
|
25066
|
+
"required": true,
|
|
25067
|
+
"fields": [
|
|
25068
|
+
{
|
|
25069
|
+
"name": "actor",
|
|
25070
|
+
"type": "string",
|
|
25071
|
+
"required": true,
|
|
25072
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
25073
|
+
}
|
|
25074
|
+
]
|
|
25075
|
+
}
|
|
25076
|
+
},
|
|
25077
|
+
{
|
|
25078
|
+
"resource": "organization.reconcile",
|
|
25079
|
+
"method": "retrievePlan",
|
|
25080
|
+
"summary": "Plan reconciliation",
|
|
25081
|
+
"description": "Dry-runs the reconciler for one holder and returns what it would change: an action per block (hold, update, none, pending, blocked) with the value it would write, and the violations only the merged result shows. It changes nothing - no state, no agent and no memory. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/plan?actor=agent:agent_123.",
|
|
24590
25082
|
"http": "GET",
|
|
24591
|
-
"path": "/organization/v1/
|
|
25083
|
+
"path": "/organization/v1/reconcile/plan",
|
|
24592
25084
|
"streaming": "no",
|
|
24593
25085
|
"pagination": false,
|
|
24594
25086
|
"pathParams": [],
|
|
24595
25087
|
"query": [
|
|
24596
25088
|
{
|
|
24597
|
-
"name": "
|
|
25089
|
+
"name": "actor",
|
|
24598
25090
|
"type": "string",
|
|
24599
25091
|
"required": true,
|
|
24600
|
-
"description": "
|
|
24601
|
-
}
|
|
25092
|
+
"description": "The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
25093
|
+
}
|
|
25094
|
+
]
|
|
25095
|
+
},
|
|
25096
|
+
{
|
|
25097
|
+
"resource": "organization.reconcile",
|
|
25098
|
+
"method": "resume",
|
|
25099
|
+
"summary": "Resume reconciliation",
|
|
25100
|
+
"description": "Restarts the sweep for a paused holder and reconciles it now, returning the new status. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
|
|
25101
|
+
"http": "POST",
|
|
25102
|
+
"path": "/organization/v1/reconcile/resume",
|
|
25103
|
+
"streaming": "no",
|
|
25104
|
+
"pagination": false,
|
|
25105
|
+
"pathParams": [],
|
|
25106
|
+
"query": [],
|
|
25107
|
+
"body": {
|
|
25108
|
+
"required": true,
|
|
25109
|
+
"fields": [
|
|
25110
|
+
{
|
|
25111
|
+
"name": "actor",
|
|
25112
|
+
"type": "string",
|
|
25113
|
+
"required": true,
|
|
25114
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
25115
|
+
}
|
|
25116
|
+
]
|
|
25117
|
+
}
|
|
25118
|
+
},
|
|
25119
|
+
{
|
|
25120
|
+
"resource": "organization.reconcile.run",
|
|
25121
|
+
"method": "create",
|
|
25122
|
+
"summary": "Run reconciliation now",
|
|
25123
|
+
"description": "Reconciles one holder now instead of waiting for the sweep: it plans, applies every update and returns the new status. Run plan first to see the changes without applying them. Requires an organization owner or admin. A block that cannot be applied now stays pending, waiting_human or failed, and the returned status says so. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
|
|
25124
|
+
"http": "POST",
|
|
25125
|
+
"path": "/organization/v1/reconcile/run",
|
|
25126
|
+
"streaming": "no",
|
|
25127
|
+
"pagination": false,
|
|
25128
|
+
"pathParams": [],
|
|
25129
|
+
"query": [],
|
|
25130
|
+
"body": {
|
|
25131
|
+
"required": true,
|
|
25132
|
+
"fields": [
|
|
25133
|
+
{
|
|
25134
|
+
"name": "actor",
|
|
25135
|
+
"type": "string",
|
|
25136
|
+
"required": true,
|
|
25137
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
25138
|
+
}
|
|
25139
|
+
]
|
|
25140
|
+
}
|
|
25141
|
+
},
|
|
25142
|
+
{
|
|
25143
|
+
"resource": "organization.reconcile.status",
|
|
25144
|
+
"method": "list",
|
|
25145
|
+
"summary": "Read reconcile status",
|
|
25146
|
+
"description": "Reads the reconciler's last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block's state (ready, pending, failed, waiting_human or paused), the drift between what is applied and what the specs want, and when it last applied. Read-only; it changes nothing. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/status?actor=agent:agent_123.",
|
|
25147
|
+
"http": "GET",
|
|
25148
|
+
"path": "/organization/v1/reconcile/status",
|
|
25149
|
+
"streaming": "no",
|
|
25150
|
+
"pagination": false,
|
|
25151
|
+
"pathParams": [],
|
|
25152
|
+
"query": [
|
|
24602
25153
|
{
|
|
24603
|
-
"name": "
|
|
25154
|
+
"name": "actor",
|
|
24604
25155
|
"type": "string",
|
|
24605
25156
|
"required": true,
|
|
24606
|
-
"description": "
|
|
24607
|
-
}
|
|
25157
|
+
"description": "The holder whose reconcile status to read (agent:agent_... or human:usr_...)."
|
|
25158
|
+
}
|
|
25159
|
+
]
|
|
25160
|
+
},
|
|
25161
|
+
{
|
|
25162
|
+
"resource": "organization.specs",
|
|
25163
|
+
"method": "list",
|
|
25164
|
+
"summary": "List specs",
|
|
25165
|
+
"description": "Lists the specs (规定) of the organization, most recently updated first; use it to find which subject already has a spec before reading or revising one. Narrow it with kind. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/specs?kind=job.",
|
|
25166
|
+
"http": "GET",
|
|
25167
|
+
"path": "/organization/v1/specs",
|
|
25168
|
+
"streaming": "no",
|
|
25169
|
+
"pagination": false,
|
|
25170
|
+
"pathParams": [],
|
|
25171
|
+
"query": [
|
|
24608
25172
|
{
|
|
24609
|
-
"name": "
|
|
24610
|
-
"type": "
|
|
24611
|
-
"
|
|
24612
|
-
|
|
24613
|
-
"1d"
|
|
24614
|
-
],
|
|
24615
|
-
"required": true,
|
|
24616
|
-
"description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
|
|
25173
|
+
"name": "limit",
|
|
25174
|
+
"type": "integer",
|
|
25175
|
+
"required": false,
|
|
25176
|
+
"description": "Maximum items per page, from 1 to 100; defaults to 20."
|
|
24617
25177
|
},
|
|
24618
25178
|
{
|
|
24619
|
-
"name": "
|
|
25179
|
+
"name": "page",
|
|
24620
25180
|
"type": "string",
|
|
24621
25181
|
"required": false,
|
|
24622
|
-
"description": "
|
|
25182
|
+
"description": "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
24623
25183
|
},
|
|
24624
25184
|
{
|
|
24625
|
-
"name": "
|
|
24626
|
-
"type": "
|
|
24627
|
-
"itemType": "string",
|
|
25185
|
+
"name": "kind",
|
|
25186
|
+
"type": "string",
|
|
24628
25187
|
"enum": [
|
|
24629
|
-
"
|
|
24630
|
-
"
|
|
24631
|
-
"
|
|
24632
|
-
"
|
|
25188
|
+
"organization",
|
|
25189
|
+
"department",
|
|
25190
|
+
"level",
|
|
25191
|
+
"job",
|
|
25192
|
+
"position",
|
|
25193
|
+
"assignment"
|
|
24633
25194
|
],
|
|
24634
25195
|
"required": false,
|
|
24635
|
-
"description": "
|
|
24636
|
-
},
|
|
24637
|
-
{
|
|
24638
|
-
"name": "page",
|
|
24639
|
-
"type": "string",
|
|
24640
|
-
"required": false,
|
|
24641
|
-
"description": "Opaque cursor from the previous page's next_page."
|
|
25196
|
+
"description": "Only specs of this subject kind; omit to list every kind together."
|
|
24642
25197
|
}
|
|
24643
25198
|
]
|
|
24644
25199
|
},
|
|
24645
25200
|
{
|
|
24646
|
-
"resource": "
|
|
24647
|
-
"method": "
|
|
24648
|
-
"summary": "
|
|
24649
|
-
"description": "
|
|
24650
|
-
"http": "
|
|
24651
|
-
"path": "/
|
|
25201
|
+
"resource": "organization.specs",
|
|
25202
|
+
"method": "retrieve",
|
|
25203
|
+
"summary": "Get a spec",
|
|
25204
|
+
"description": "Reads one subject's live spec, or one historical revision with revision; a subject never written answers revision 0 with an empty spec, so a first revise sends expected_revision 0. Read-only. Errors: 400 INVALID_PARAMS for a non-integer revision; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject, or the named SPEC_REVISION_NOT_FOUND, does not exist. Example: GET /organization/v1/specs/job/jpr_123?revision=2.",
|
|
25205
|
+
"http": "GET",
|
|
25206
|
+
"path": "/organization/v1/specs/{kind}/{id}",
|
|
24652
25207
|
"streaming": "no",
|
|
24653
25208
|
"pagination": false,
|
|
24654
25209
|
"pathParams": [
|
|
24655
25210
|
{
|
|
24656
|
-
"name": "
|
|
24657
|
-
"sdkName": "
|
|
24658
|
-
"description": "
|
|
25211
|
+
"name": "kind",
|
|
25212
|
+
"sdkName": "kind",
|
|
25213
|
+
"description": "Kind of the subject whose spec to read."
|
|
25214
|
+
},
|
|
25215
|
+
{
|
|
25216
|
+
"name": "id",
|
|
25217
|
+
"sdkName": "id",
|
|
25218
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
24659
25219
|
}
|
|
24660
25220
|
],
|
|
24661
|
-
"query": [
|
|
25221
|
+
"query": [
|
|
25222
|
+
{
|
|
25223
|
+
"name": "revision",
|
|
25224
|
+
"type": "integer",
|
|
25225
|
+
"required": false,
|
|
25226
|
+
"description": "Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written."
|
|
25227
|
+
}
|
|
25228
|
+
]
|
|
24662
25229
|
},
|
|
24663
25230
|
{
|
|
24664
|
-
"resource": "
|
|
25231
|
+
"resource": "organization.specs",
|
|
24665
25232
|
"method": "update",
|
|
24666
|
-
"summary": "
|
|
24667
|
-
"description": "
|
|
24668
|
-
"http": "
|
|
24669
|
-
"path": "/
|
|
25233
|
+
"summary": "Revise a spec",
|
|
25234
|
+
"description": "Replaces the whole spec of a subject: expected_revision is the revision you last read (0 when none was written) and each success raises it by one, so a mismatch returns REVISION_CONFLICT and you must read again, merge and retry. The spec body is stored and returned verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove, and it is validated against the block registry. Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or expected_revision, a block outside the registry or an unknown body field; 403 PERMISSION_DENIED; 404 when the subject does not exist; 409 REVISION_CONFLICT. Example body: {\"expected_revision\":0,\"spec\":{\"document\":\"Deliver reliably.\"}}.",
|
|
25235
|
+
"http": "PUT",
|
|
25236
|
+
"path": "/organization/v1/specs/{kind}/{id}",
|
|
24670
25237
|
"streaming": "no",
|
|
24671
25238
|
"pagination": false,
|
|
24672
25239
|
"pathParams": [
|
|
24673
25240
|
{
|
|
24674
|
-
"name": "
|
|
24675
|
-
"sdkName": "
|
|
24676
|
-
"description": "
|
|
25241
|
+
"name": "kind",
|
|
25242
|
+
"sdkName": "kind",
|
|
25243
|
+
"description": "Kind of the subject whose spec to revise."
|
|
25244
|
+
},
|
|
25245
|
+
{
|
|
25246
|
+
"name": "id",
|
|
25247
|
+
"sdkName": "id",
|
|
25248
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
24677
25249
|
}
|
|
24678
25250
|
],
|
|
24679
25251
|
"query": [],
|
|
@@ -24681,11 +25253,196 @@ export const operations = [
|
|
|
24681
25253
|
"required": true,
|
|
24682
25254
|
"fields": [
|
|
24683
25255
|
{
|
|
24684
|
-
"name": "
|
|
24685
|
-
"type": "
|
|
24686
|
-
"required":
|
|
24687
|
-
"description": "
|
|
24688
|
-
}
|
|
25256
|
+
"name": "expected_revision",
|
|
25257
|
+
"type": "integer",
|
|
25258
|
+
"required": true,
|
|
25259
|
+
"description": "The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one."
|
|
25260
|
+
},
|
|
25261
|
+
{
|
|
25262
|
+
"name": "spec",
|
|
25263
|
+
"type": "object",
|
|
25264
|
+
"required": true,
|
|
25265
|
+
"description": "The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove."
|
|
25266
|
+
}
|
|
25267
|
+
]
|
|
25268
|
+
}
|
|
25269
|
+
},
|
|
25270
|
+
{
|
|
25271
|
+
"resource": "organization.specs",
|
|
25272
|
+
"method": "retrieveDiff",
|
|
25273
|
+
"summary": "Diff two spec revisions",
|
|
25274
|
+
"description": "Compares two revisions of one subject's spec and lists the changes between them, each with its path and, for a change, the value before and after; revision 0 is the empty spec, so diffing 0 against 1 shows the first write. Read-only. Errors: 400 INVALID_PARAMS when from or to is missing or not an integer; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist, or SPEC_REVISION_NOT_FOUND when from or to was never written. Example: GET /organization/v1/specs/job/jpr_123/diff?from=1&to=2.",
|
|
25275
|
+
"http": "GET",
|
|
25276
|
+
"path": "/organization/v1/specs/{kind}/{id}/diff",
|
|
25277
|
+
"streaming": "no",
|
|
25278
|
+
"pagination": false,
|
|
25279
|
+
"pathParams": [
|
|
25280
|
+
{
|
|
25281
|
+
"name": "kind",
|
|
25282
|
+
"sdkName": "kind",
|
|
25283
|
+
"description": "Kind of the subject whose revisions to compare."
|
|
25284
|
+
},
|
|
25285
|
+
{
|
|
25286
|
+
"name": "id",
|
|
25287
|
+
"sdkName": "id",
|
|
25288
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25289
|
+
}
|
|
25290
|
+
],
|
|
25291
|
+
"query": [
|
|
25292
|
+
{
|
|
25293
|
+
"name": "from",
|
|
25294
|
+
"type": "integer",
|
|
25295
|
+
"required": true,
|
|
25296
|
+
"description": "The earlier revision to compare from; 0 is the empty spec before the first write."
|
|
25297
|
+
},
|
|
25298
|
+
{
|
|
25299
|
+
"name": "to",
|
|
25300
|
+
"type": "integer",
|
|
25301
|
+
"required": true,
|
|
25302
|
+
"description": "The later revision to compare to."
|
|
25303
|
+
}
|
|
25304
|
+
]
|
|
25305
|
+
},
|
|
25306
|
+
{
|
|
25307
|
+
"resource": "organization.specs.revisions",
|
|
25308
|
+
"method": "list",
|
|
25309
|
+
"summary": "List spec revisions",
|
|
25310
|
+
"description": "Lists every stored revision of one subject's spec, newest first, each with its body, author and creation instant; use it to see what changed over time or to pick a revision to read or diff. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist.",
|
|
25311
|
+
"http": "GET",
|
|
25312
|
+
"path": "/organization/v1/specs/{kind}/{id}/revisions",
|
|
25313
|
+
"streaming": "no",
|
|
25314
|
+
"pagination": false,
|
|
25315
|
+
"pathParams": [
|
|
25316
|
+
{
|
|
25317
|
+
"name": "kind",
|
|
25318
|
+
"sdkName": "kind",
|
|
25319
|
+
"description": "Kind of the subject whose revision history to list."
|
|
25320
|
+
},
|
|
25321
|
+
{
|
|
25322
|
+
"name": "id",
|
|
25323
|
+
"sdkName": "id",
|
|
25324
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25325
|
+
}
|
|
25326
|
+
],
|
|
25327
|
+
"query": [
|
|
25328
|
+
{
|
|
25329
|
+
"name": "limit",
|
|
25330
|
+
"type": "integer",
|
|
25331
|
+
"required": false,
|
|
25332
|
+
"description": "Maximum revisions per page, from 1 to 100; defaults to 20."
|
|
25333
|
+
},
|
|
25334
|
+
{
|
|
25335
|
+
"name": "page",
|
|
25336
|
+
"type": "string",
|
|
25337
|
+
"required": false,
|
|
25338
|
+
"description": "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
25339
|
+
}
|
|
25340
|
+
]
|
|
25341
|
+
},
|
|
25342
|
+
{
|
|
25343
|
+
"resource": "organization.usage",
|
|
25344
|
+
"method": "list",
|
|
25345
|
+
"summary": "List Organization Usage",
|
|
25346
|
+
"description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
|
|
25347
|
+
"http": "GET",
|
|
25348
|
+
"path": "/organization/v1/usage",
|
|
25349
|
+
"streaming": "no",
|
|
25350
|
+
"pagination": false,
|
|
25351
|
+
"pathParams": [],
|
|
25352
|
+
"query": [
|
|
25353
|
+
{
|
|
25354
|
+
"name": "starting_at",
|
|
25355
|
+
"type": "string",
|
|
25356
|
+
"required": true,
|
|
25357
|
+
"description": "Window start, UTC ISO 8601, inclusive."
|
|
25358
|
+
},
|
|
25359
|
+
{
|
|
25360
|
+
"name": "ending_at",
|
|
25361
|
+
"type": "string",
|
|
25362
|
+
"required": true,
|
|
25363
|
+
"description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
|
|
25364
|
+
},
|
|
25365
|
+
{
|
|
25366
|
+
"name": "bucket_width",
|
|
25367
|
+
"type": "string",
|
|
25368
|
+
"enum": [
|
|
25369
|
+
"1h",
|
|
25370
|
+
"1d"
|
|
25371
|
+
],
|
|
25372
|
+
"required": true,
|
|
25373
|
+
"description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
|
|
25374
|
+
},
|
|
25375
|
+
{
|
|
25376
|
+
"name": "time_zone",
|
|
25377
|
+
"type": "string",
|
|
25378
|
+
"required": false,
|
|
25379
|
+
"description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
|
|
25380
|
+
},
|
|
25381
|
+
{
|
|
25382
|
+
"name": "group_by",
|
|
25383
|
+
"type": "array",
|
|
25384
|
+
"itemType": "string",
|
|
25385
|
+
"enum": [
|
|
25386
|
+
"ServiceName",
|
|
25387
|
+
"ServiceCategory",
|
|
25388
|
+
"ResourceId",
|
|
25389
|
+
"ConsumedUnit"
|
|
25390
|
+
],
|
|
25391
|
+
"required": false,
|
|
25392
|
+
"description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
|
|
25393
|
+
},
|
|
25394
|
+
{
|
|
25395
|
+
"name": "page",
|
|
25396
|
+
"type": "string",
|
|
25397
|
+
"required": false,
|
|
25398
|
+
"description": "Opaque cursor from the previous page's next_page."
|
|
25399
|
+
}
|
|
25400
|
+
]
|
|
25401
|
+
},
|
|
25402
|
+
{
|
|
25403
|
+
"resource": "registry.installations",
|
|
25404
|
+
"method": "delete",
|
|
25405
|
+
"summary": "Remove an installation",
|
|
25406
|
+
"description": "把包从目标上卸下来,并删掉这条安装记录:技能从智能体的技能列表里移除,插件从电脑上卸载。目标那边已经没有它时也算完成。包本身和它的版本不受影响,之后可以重新安装。记录删除后重发会 404,所以删除前先用 installations.list 确认。",
|
|
25407
|
+
"http": "DELETE",
|
|
25408
|
+
"path": "/registry/v1/installations/{installation_id}",
|
|
25409
|
+
"streaming": "no",
|
|
25410
|
+
"pagination": false,
|
|
25411
|
+
"pathParams": [
|
|
25412
|
+
{
|
|
25413
|
+
"name": "installation_id",
|
|
25414
|
+
"sdkName": "installation_id",
|
|
25415
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
25416
|
+
}
|
|
25417
|
+
],
|
|
25418
|
+
"query": []
|
|
25419
|
+
},
|
|
25420
|
+
{
|
|
25421
|
+
"resource": "registry.installations",
|
|
25422
|
+
"method": "update",
|
|
25423
|
+
"summary": "Update an installation",
|
|
25424
|
+
"description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
|
|
25425
|
+
"http": "POST",
|
|
25426
|
+
"path": "/registry/v1/installations/{installation_id}:update",
|
|
25427
|
+
"streaming": "no",
|
|
25428
|
+
"pagination": false,
|
|
25429
|
+
"pathParams": [
|
|
25430
|
+
{
|
|
25431
|
+
"name": "installation_id",
|
|
25432
|
+
"sdkName": "installation_id",
|
|
25433
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
25434
|
+
}
|
|
25435
|
+
],
|
|
25436
|
+
"query": [],
|
|
25437
|
+
"body": {
|
|
25438
|
+
"required": true,
|
|
25439
|
+
"fields": [
|
|
25440
|
+
{
|
|
25441
|
+
"name": "version",
|
|
25442
|
+
"type": "string",
|
|
25443
|
+
"required": false,
|
|
25444
|
+
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
25445
|
+
}
|
|
24689
25446
|
]
|
|
24690
25447
|
}
|
|
24691
25448
|
},
|
|
@@ -24707,11 +25464,51 @@ export const operations = [
|
|
|
24707
25464
|
],
|
|
24708
25465
|
"query": []
|
|
24709
25466
|
},
|
|
25467
|
+
{
|
|
25468
|
+
"resource": "registry.packages.gitCredential",
|
|
25469
|
+
"method": "create",
|
|
25470
|
+
"summary": "Create a git credential",
|
|
25471
|
+
"description": "给一个 git 包换一个短期的 git 凭据,用来 git clone / git push。access 选 pull(只读,用来克隆和拉取)或 push(推分支,同时可以克隆和拉取)。push-protected(更新受保护分支)暂不发放,请推到别的分支再合并,请求它返回 400。ttl_seconds 是有效秒数,1-3600,默认 3600;到期后重新调用本接口,不要缓存过期的凭据。返回的 password 是敏感信息,只出现这一次,不要写进日志或提交。用法:git clone https://x-access-token:$PASSWORD@host/git/组织/库/包.git,或把 url 里的地址配上 http.extraHeader。组织未开放 git 功能返回 409;另一个组织的包、已被删除的包和 oci 包都返回 404。同一个 package_id 可以多次取,每次是一个新凭据,互不影响。",
|
|
25472
|
+
"http": "POST",
|
|
25473
|
+
"path": "/registry/v1/packages/{package_id}/git-credential",
|
|
25474
|
+
"streaming": "no",
|
|
25475
|
+
"pagination": false,
|
|
25476
|
+
"pathParams": [
|
|
25477
|
+
{
|
|
25478
|
+
"name": "package_id",
|
|
25479
|
+
"sdkName": "package_id",
|
|
25480
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25481
|
+
}
|
|
25482
|
+
],
|
|
25483
|
+
"query": [],
|
|
25484
|
+
"body": {
|
|
25485
|
+
"required": true,
|
|
25486
|
+
"fields": [
|
|
25487
|
+
{
|
|
25488
|
+
"name": "access",
|
|
25489
|
+
"type": "string",
|
|
25490
|
+
"enum": [
|
|
25491
|
+
"pull",
|
|
25492
|
+
"push",
|
|
25493
|
+
"push-protected"
|
|
25494
|
+
],
|
|
25495
|
+
"required": true,
|
|
25496
|
+
"description": "凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。"
|
|
25497
|
+
},
|
|
25498
|
+
{
|
|
25499
|
+
"name": "ttl_seconds",
|
|
25500
|
+
"type": "integer",
|
|
25501
|
+
"required": false,
|
|
25502
|
+
"description": "凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。"
|
|
25503
|
+
}
|
|
25504
|
+
]
|
|
25505
|
+
}
|
|
25506
|
+
},
|
|
24710
25507
|
{
|
|
24711
25508
|
"resource": "registry.packages.git.commits",
|
|
24712
25509
|
"method": "retrieve",
|
|
24713
25510
|
"summary": "Read a commit",
|
|
24714
|
-
"description": "按对象 id 读一个提交(完整 sha
|
|
25511
|
+
"description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交;changed_files=true 时再返回它相对第一个父提交改了哪些文件(根提交的全部文件算新增),文件列表被上限截断时 changed_files_truncated 为 true。仓库里没有这个对象返回 404。",
|
|
24715
25512
|
"http": "GET",
|
|
24716
25513
|
"path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
|
|
24717
25514
|
"streaming": "no",
|
|
@@ -24728,7 +25525,45 @@ export const operations = [
|
|
|
24728
25525
|
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24729
25526
|
}
|
|
24730
25527
|
],
|
|
24731
|
-
"query": [
|
|
25528
|
+
"query": [
|
|
25529
|
+
{
|
|
25530
|
+
"name": "changed_files",
|
|
25531
|
+
"type": "boolean",
|
|
25532
|
+
"required": false,
|
|
25533
|
+
"description": "为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。"
|
|
25534
|
+
}
|
|
25535
|
+
]
|
|
25536
|
+
},
|
|
25537
|
+
{
|
|
25538
|
+
"resource": "registry.packages.git",
|
|
25539
|
+
"method": "retrieveCompare",
|
|
25540
|
+
"summary": "Compare two refs",
|
|
25541
|
+
"description": "比较 base 与 head(引用名或完整对象 id):status 是 identical、ahead(head 在 base 之上有新提交)、behind(head 已包含在 base 里)或 diverged(两边各有提交);merge_base 是找到的最近共同祖先;files 是 head 相对 merge_base 改了哪些文件(added、modified、removed、renamed,renamed 带 previous_path),commits 是 head 比 base 多出的提交,最新的在前。Artifacts 无法低成本回答祖先关系,所以这里只沿两边的第一父链各走最多 300 个提交,并在有界读取下比对树:找不到共同祖先时返回 diverged、merge_base 为 null;files 被上限(3000 个文件、1000 次树读取)截断时 truncated 为 true;commits 被截断、或合并提交藏起了被合并分支上的提交时 commits_truncated 为 true。truncated 或 commits_truncated 为 true 时不要把列表当作完整结果。引用不存在返回 404。只读。",
|
|
25542
|
+
"http": "GET",
|
|
25543
|
+
"path": "/registry/v1/packages/{package_id}/git/compare",
|
|
25544
|
+
"streaming": "no",
|
|
25545
|
+
"pagination": false,
|
|
25546
|
+
"pathParams": [
|
|
25547
|
+
{
|
|
25548
|
+
"name": "package_id",
|
|
25549
|
+
"sdkName": "package_id",
|
|
25550
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25551
|
+
}
|
|
25552
|
+
],
|
|
25553
|
+
"query": [
|
|
25554
|
+
{
|
|
25555
|
+
"name": "base",
|
|
25556
|
+
"type": "string",
|
|
25557
|
+
"required": true,
|
|
25558
|
+
"description": "比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。"
|
|
25559
|
+
},
|
|
25560
|
+
{
|
|
25561
|
+
"name": "head",
|
|
25562
|
+
"type": "string",
|
|
25563
|
+
"required": true,
|
|
25564
|
+
"description": "比较的终点:分支名、标签名、refs/… 全名或完整对象 id。"
|
|
25565
|
+
}
|
|
25566
|
+
]
|
|
24732
25567
|
},
|
|
24733
25568
|
{
|
|
24734
25569
|
"resource": "registry.packages.git.files",
|
|
@@ -24797,6 +25632,72 @@ export const operations = [
|
|
|
24797
25632
|
}
|
|
24798
25633
|
]
|
|
24799
25634
|
},
|
|
25635
|
+
{
|
|
25636
|
+
"resource": "registry.packages.git.refs",
|
|
25637
|
+
"method": "list",
|
|
25638
|
+
"summary": "List branches and tags",
|
|
25639
|
+
"description": "列出一个 git 包的分支和标签,按名字排序;prefix 只取 refs/heads/(分支)或 refs/tags/(标签),不给就两者都列。page 从 1 起,size 1 到 500,默认 100;has_more 为 true 表示还有下一页。带注解的标签返回它指向的提交 id,不是标签对象的 id。想把一个名字换成提交 id 用 git/resolve,不要自己在这个列表里找。只读;OCI 包返回 404。",
|
|
25640
|
+
"http": "GET",
|
|
25641
|
+
"path": "/registry/v1/packages/{package_id}/git/refs",
|
|
25642
|
+
"streaming": "no",
|
|
25643
|
+
"pagination": false,
|
|
25644
|
+
"pathParams": [
|
|
25645
|
+
{
|
|
25646
|
+
"name": "package_id",
|
|
25647
|
+
"sdkName": "package_id",
|
|
25648
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25649
|
+
}
|
|
25650
|
+
],
|
|
25651
|
+
"query": [
|
|
25652
|
+
{
|
|
25653
|
+
"name": "prefix",
|
|
25654
|
+
"type": "string",
|
|
25655
|
+
"enum": [
|
|
25656
|
+
"refs/heads/",
|
|
25657
|
+
"refs/tags/"
|
|
25658
|
+
],
|
|
25659
|
+
"required": false,
|
|
25660
|
+
"description": "只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。"
|
|
25661
|
+
},
|
|
25662
|
+
{
|
|
25663
|
+
"name": "page",
|
|
25664
|
+
"type": "integer",
|
|
25665
|
+
"required": false,
|
|
25666
|
+
"description": "页码,从 1 起,默认 1。"
|
|
25667
|
+
},
|
|
25668
|
+
{
|
|
25669
|
+
"name": "size",
|
|
25670
|
+
"type": "integer",
|
|
25671
|
+
"required": false,
|
|
25672
|
+
"description": "这一页最多返回多少个引用,1 到 500,默认 100。"
|
|
25673
|
+
}
|
|
25674
|
+
]
|
|
25675
|
+
},
|
|
25676
|
+
{
|
|
25677
|
+
"resource": "registry.packages.git",
|
|
25678
|
+
"method": "retrieveResolve",
|
|
25679
|
+
"summary": "Resolve a ref",
|
|
25680
|
+
"description": "把一个引用换成它指向的提交 id:ref 可以是分支名、标签名、refs/… 全名、HEAD 或完整对象 id(40 或 64 位十六进制,缩写不解析)。名字既是标签又是分支时取标签。完整对象 id 只在仓库里真有这个提交时才返回。仓库没有这个引用或提交返回 404(GIT_OBJECT_NOT_FOUND),不会返回空值。要比较两个引用用 git/compare。",
|
|
25681
|
+
"http": "GET",
|
|
25682
|
+
"path": "/registry/v1/packages/{package_id}/git/resolve",
|
|
25683
|
+
"streaming": "no",
|
|
25684
|
+
"pagination": false,
|
|
25685
|
+
"pathParams": [
|
|
25686
|
+
{
|
|
25687
|
+
"name": "package_id",
|
|
25688
|
+
"sdkName": "package_id",
|
|
25689
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25690
|
+
}
|
|
25691
|
+
],
|
|
25692
|
+
"query": [
|
|
25693
|
+
{
|
|
25694
|
+
"name": "ref",
|
|
25695
|
+
"type": "string",
|
|
25696
|
+
"required": true,
|
|
25697
|
+
"description": "要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。"
|
|
25698
|
+
}
|
|
25699
|
+
]
|
|
25700
|
+
},
|
|
24800
25701
|
{
|
|
24801
25702
|
"resource": "registry.packages.git.trees",
|
|
24802
25703
|
"method": "retrieve",
|
|
@@ -24820,6 +25721,29 @@ export const operations = [
|
|
|
24820
25721
|
],
|
|
24821
25722
|
"query": []
|
|
24822
25723
|
},
|
|
25724
|
+
{
|
|
25725
|
+
"resource": "registry.packages.git.trees",
|
|
25726
|
+
"method": "retrieveRecursive",
|
|
25727
|
+
"summary": "List a tree recursively",
|
|
25728
|
+
"description": "读一个提交(或树对象)下的全部条目,递归,每个条目用相对根的完整路径命名,目录和子模块也是条目(子模块不展开)。适合要拿到整个仓库文件清单的场景(例如 DevOps 的构建判断);只想看一个目录用 git/trees/{sha}。相同的子树只读一次。条目上限 20000、树读取上限 1000 次,撞到上限时 truncated 为 true、entries 只是前一部分,不要当作全部。sha 通常来自 git/resolve。仓库里没有这个对象返回 404。只读。",
|
|
25729
|
+
"http": "GET",
|
|
25730
|
+
"path": "/registry/v1/packages/{package_id}/git/trees/{sha}/recursive",
|
|
25731
|
+
"streaming": "no",
|
|
25732
|
+
"pagination": false,
|
|
25733
|
+
"pathParams": [
|
|
25734
|
+
{
|
|
25735
|
+
"name": "package_id",
|
|
25736
|
+
"sdkName": "package_id",
|
|
25737
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25738
|
+
},
|
|
25739
|
+
{
|
|
25740
|
+
"name": "sha",
|
|
25741
|
+
"sdkName": "sha",
|
|
25742
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
25743
|
+
}
|
|
25744
|
+
],
|
|
25745
|
+
"query": []
|
|
25746
|
+
},
|
|
24823
25747
|
{
|
|
24824
25748
|
"resource": "registry.packages.installations",
|
|
24825
25749
|
"method": "list",
|
|
@@ -25099,7 +26023,7 @@ export const operations = [
|
|
|
25099
26023
|
"resource": "registry.repositories",
|
|
25100
26024
|
"method": "create",
|
|
25101
26025
|
"summary": "Create repository",
|
|
25102
|
-
"description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
|
|
26026
|
+
"description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。format 默认 oci,库里放技能和插件;要放 git 仓库就传 format=git,建库后 format 不能改。git 库需要这个组织已开放 git 功能,否则返回 409。",
|
|
25103
26027
|
"http": "POST",
|
|
25104
26028
|
"path": "/registry/v1/repositories",
|
|
25105
26029
|
"streaming": "no",
|
|
@@ -25126,6 +26050,16 @@ export const operations = [
|
|
|
25126
26050
|
"type": "string",
|
|
25127
26051
|
"required": false,
|
|
25128
26052
|
"description": "库的说明;省略时不写。"
|
|
26053
|
+
},
|
|
26054
|
+
{
|
|
26055
|
+
"name": "format",
|
|
26056
|
+
"type": "string",
|
|
26057
|
+
"enum": [
|
|
26058
|
+
"oci",
|
|
26059
|
+
"git"
|
|
26060
|
+
],
|
|
26061
|
+
"required": false,
|
|
26062
|
+
"description": "库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。"
|
|
25129
26063
|
}
|
|
25130
26064
|
]
|
|
25131
26065
|
}
|
|
@@ -25261,8 +26195,8 @@ export const operations = [
|
|
|
25261
26195
|
{
|
|
25262
26196
|
"resource": "registry.repositories.packages",
|
|
25263
26197
|
"method": "create",
|
|
25264
|
-
"summary": "
|
|
25265
|
-
"description": "
|
|
26198
|
+
"summary": "Create a package",
|
|
26199
|
+
"description": "在一个库里建新包,按库的 format 走两条路。git 库(format=git):Content-Type 用 application/json,请求体 {name, format:\"git\", default_branch?, description?, import?},建一个空的 git 仓库,或者用 import.url(公开 https 仓库)从现有仓库导入;成功返回的包带 clone_url、default_branch 和 protected_refs(默认只保护默认分支),接着调用 packages.git-credential 取推拉凭据;组织未开放 git 功能返回 409,往 oci 库里用 JSON 建包也是 409。oci 库(技能和插件):把一个新包发布进这个库,一次调用建立包并上传它的第一个版本,Content-Type 用 multipart/form-data。发布内容是 multipart:version 必填,archive 给一个 zip,或者 files 给一组文件(每个文件的 filename 是相对上传根的路径,例如 pdf/SKILL.md)。单个顶层目录会被剥掉。种类按根上有什么判:有 SKILL.md 就是 skill,有 .claude-plugin/plugin.json 就是 plugin;两者都没有、或都有,会被拒。名字从 SKILL.md 或 plugin.json 里读,不从路径或 query 猜。限额:上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。版本必须是 semver 且严格递增;第一个版本可以是任意合法 semver,之后每个新版本都要比已发布的最高版本高。把已有智能体的技能搬过来时,先用 GET /agent/v1/skills/{id}/versions/{v}/content 导出 zip,再在这里作为 archive 发布。",
|
|
25266
26200
|
"http": "POST",
|
|
25267
26201
|
"path": "/registry/v1/repositories/{repository_id}/packages",
|
|
25268
26202
|
"streaming": "no",
|
|
@@ -25280,41 +26214,196 @@ export const operations = [
|
|
|
25280
26214
|
"required": true,
|
|
25281
26215
|
"fields": [
|
|
25282
26216
|
{
|
|
25283
|
-
"name": "
|
|
26217
|
+
"name": "name",
|
|
25284
26218
|
"type": "string",
|
|
25285
26219
|
"required": true,
|
|
25286
|
-
"description": "
|
|
26220
|
+
"description": "包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。"
|
|
25287
26221
|
},
|
|
25288
26222
|
{
|
|
25289
|
-
"name": "
|
|
26223
|
+
"name": "format",
|
|
26224
|
+
"type": "string",
|
|
26225
|
+
"enum": [
|
|
26226
|
+
"git"
|
|
26227
|
+
],
|
|
26228
|
+
"required": true,
|
|
26229
|
+
"description": "建的包是什么;JSON 请求只能建 git 包,所以固定为 git。"
|
|
26230
|
+
},
|
|
26231
|
+
{
|
|
26232
|
+
"name": "default_branch",
|
|
25290
26233
|
"type": "string",
|
|
25291
26234
|
"required": false,
|
|
25292
|
-
"description": "
|
|
26235
|
+
"description": "默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。"
|
|
25293
26236
|
},
|
|
25294
26237
|
{
|
|
25295
|
-
"name": "
|
|
25296
|
-
"type": "
|
|
25297
|
-
"itemType": "string",
|
|
26238
|
+
"name": "description",
|
|
26239
|
+
"type": "string",
|
|
25298
26240
|
"required": false,
|
|
25299
|
-
"description": "
|
|
26241
|
+
"description": "仓库的说明;省略时为空。"
|
|
25300
26242
|
},
|
|
25301
26243
|
{
|
|
25302
|
-
"name": "
|
|
26244
|
+
"name": "import",
|
|
26245
|
+
"type": "object",
|
|
26246
|
+
"required": false,
|
|
26247
|
+
"description": "从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。"
|
|
26248
|
+
}
|
|
26249
|
+
]
|
|
26250
|
+
}
|
|
26251
|
+
},
|
|
26252
|
+
{
|
|
26253
|
+
"resource": "sandbox.byod.devices",
|
|
26254
|
+
"method": "list",
|
|
26255
|
+
"summary": "List your organization's own devices",
|
|
26256
|
+
"description": "List the devices your organization has paired, oldest first, with each one's platform, name, model, OS version, live online fact and when it was last seen. Use it to find a device id before you act on it, rename it or disconnect it, or to show the BYOD page. A revoked device is not listed, so a device that disappears from this answer was disconnected; there is no paging because an organization's own devices are few. Each row carries capabilities and, for a desktop, the agent_dirs it registered. Example: GET /sandbox/v1/byod/devices returns {data:[{object:'byod_device',id:'byd_0123456789abcdefghijklmno',platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16',online:true,last_seen_at:'2026-11-22T12:58:00.000Z',created_at:'2026-11-22T12:40:00.000Z',capabilities:['display'],agent_dirs:[]}]}.",
|
|
26257
|
+
"http": "GET",
|
|
26258
|
+
"path": "/sandbox/v1/byod/devices",
|
|
26259
|
+
"streaming": "no",
|
|
26260
|
+
"pagination": false,
|
|
26261
|
+
"pathParams": [],
|
|
26262
|
+
"query": []
|
|
26263
|
+
},
|
|
26264
|
+
{
|
|
26265
|
+
"resource": "sandbox.byod.devices",
|
|
26266
|
+
"method": "retrieve",
|
|
26267
|
+
"summary": "Read one of your organization's devices",
|
|
26268
|
+
"description": "Read one BYOD device: the same fields listByodDevices returns, for a single device. Use it to poll whether a device is online before acting on it, or to refresh one row of the BYOD page after a rename. An unknown id and another organization's device both answer 404, so the answer never reveals that a foreign device exists. Example: GET /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno.",
|
|
26269
|
+
"http": "GET",
|
|
26270
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
26271
|
+
"streaming": "no",
|
|
26272
|
+
"pagination": false,
|
|
26273
|
+
"pathParams": [
|
|
26274
|
+
{
|
|
26275
|
+
"name": "deviceID",
|
|
26276
|
+
"sdkName": "deviceID",
|
|
26277
|
+
"description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
|
|
26278
|
+
}
|
|
26279
|
+
],
|
|
26280
|
+
"query": []
|
|
26281
|
+
},
|
|
26282
|
+
{
|
|
26283
|
+
"resource": "sandbox.byod.devices",
|
|
26284
|
+
"method": "update",
|
|
26285
|
+
"summary": "Rename one of your organization's devices",
|
|
26286
|
+
"description": "Change a device's display name, and nothing else: pairing, credential, platform and connection are untouched. Use it to give a shared phone a name your team recognises. The body takes exactly one field, name, 1 to 64 characters after trimming; a missing, extra or wrongly typed field answers INVALID_PARAMS. An unknown id and another organization's device both answer 404. Example: PATCH /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno with {name:'Shelf phone'} returns the updated device.",
|
|
26287
|
+
"http": "PATCH",
|
|
26288
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
26289
|
+
"streaming": "no",
|
|
26290
|
+
"pagination": false,
|
|
26291
|
+
"pathParams": [
|
|
26292
|
+
{
|
|
26293
|
+
"name": "deviceID",
|
|
26294
|
+
"sdkName": "deviceID",
|
|
26295
|
+
"description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
|
|
26296
|
+
}
|
|
26297
|
+
],
|
|
26298
|
+
"query": [],
|
|
26299
|
+
"body": {
|
|
26300
|
+
"required": true,
|
|
26301
|
+
"fields": [
|
|
26302
|
+
{
|
|
26303
|
+
"name": "name",
|
|
26304
|
+
"type": "string",
|
|
26305
|
+
"required": true,
|
|
26306
|
+
"description": "New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique."
|
|
26307
|
+
}
|
|
26308
|
+
]
|
|
26309
|
+
}
|
|
26310
|
+
},
|
|
26311
|
+
{
|
|
26312
|
+
"resource": "sandbox.byod.devices.disconnect",
|
|
26313
|
+
"method": "create",
|
|
26314
|
+
"summary": "Disconnect a device and revoke its credential",
|
|
26315
|
+
"description": "Disconnect a paired device: the device's credential is revoked, its control connection is closed, and it stops appearing in listByodDevices. Use it when the phone is lost, lent or no longer wanted; the same disconnect is offered as one tap on the device itself. The operation is idempotent — disconnecting an already-disconnected device answers the same 200 — so a retry after a lost response is safe. The device is untouched: nothing is erased on the phone, and it can be paired again with a new pairing. Because a revoked device is not listed, a later listByodDevices no longer shows it. An unknown id and another organization's device both answer 404. Example: POST /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno/disconnect returns {id:'byd_0123456789abcdefghijklmno',object:'byod_device',disconnected:true}.",
|
|
26316
|
+
"http": "POST",
|
|
26317
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}/disconnect",
|
|
26318
|
+
"streaming": "no",
|
|
26319
|
+
"pagination": false,
|
|
26320
|
+
"pathParams": [
|
|
26321
|
+
{
|
|
26322
|
+
"name": "deviceID",
|
|
26323
|
+
"sdkName": "deviceID",
|
|
26324
|
+
"description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
|
|
26325
|
+
}
|
|
26326
|
+
],
|
|
26327
|
+
"query": []
|
|
26328
|
+
},
|
|
26329
|
+
{
|
|
26330
|
+
"resource": "sandbox.byod.pairings",
|
|
26331
|
+
"method": "create",
|
|
26332
|
+
"summary": "Start adding a phone of your own",
|
|
26333
|
+
"description": "Begin bringing your own device (BYOD): the platform answers an 8-character code, its ten-minute deadline and the QR payload your phone's app scans, and nothing is registered until the owner taps Allow on the phone. Show the QR payload (or the code) in your app; the phone opens GET /sandbox/v1/byod/pairings/{code} — with no credential — to show the organization and the deadline, then posts the claim once. The pairing stores the organization's display name, which the phone shows on its Allow screen, so create the pairing from a session or key that carries one. A code is spent by the first successful claim and cannot be reused; create a new pairing for another device. BYOD devices are separate from sandboxes: they never appear in listSandboxes and have no template, size or expiry. Example: POST /sandbox/v1/byod/pairings with no body returns {code:'K7M4PQRS',expires_at:'2026-11-22T13:10:00.000Z',qr:'praxis://byod/pair?code=K7M4PQRS&api=https%3A%2F%2Fapi.deepraxis.com'}.",
|
|
26334
|
+
"http": "POST",
|
|
26335
|
+
"path": "/sandbox/v1/byod/pairings",
|
|
26336
|
+
"streaming": "no",
|
|
26337
|
+
"pagination": false,
|
|
26338
|
+
"pathParams": [],
|
|
26339
|
+
"query": []
|
|
26340
|
+
},
|
|
26341
|
+
{
|
|
26342
|
+
"resource": "sandbox.byod.pairings",
|
|
26343
|
+
"method": "retrieve",
|
|
26344
|
+
"summary": "Read a pairing for the phone's Allow screen",
|
|
26345
|
+
"description": "The phone's own read, called by the app that scanned the QR code or the code was typed into: it answers the organization's display name and the code's deadline, which the owner sees before tapping Allow. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and do not call it from server code. An unknown, spent or expired code answers 404, with nothing said about which of the three it is; that also covers a code another organization created. The read is a preview only: it registers nothing, and the claim is what spends the code. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS returns {organization_name:'烟火测试团队',expires_at:'2026-11-22T13:10:00.000Z'}.",
|
|
26346
|
+
"http": "GET",
|
|
26347
|
+
"path": "/sandbox/v1/byod/pairings/{code}",
|
|
26348
|
+
"streaming": "no",
|
|
26349
|
+
"pagination": false,
|
|
26350
|
+
"pathParams": [
|
|
26351
|
+
{
|
|
26352
|
+
"name": "code",
|
|
26353
|
+
"sdkName": "code",
|
|
26354
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
26355
|
+
}
|
|
26356
|
+
],
|
|
26357
|
+
"query": []
|
|
26358
|
+
},
|
|
26359
|
+
{
|
|
26360
|
+
"resource": "sandbox.byod.pairings.claim",
|
|
26361
|
+
"method": "create",
|
|
26362
|
+
"summary": "Claim a pairing and register the phone",
|
|
26363
|
+
"description": "The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno.sandbox-develop.praxisusercontent.com/'}.",
|
|
26364
|
+
"http": "POST",
|
|
26365
|
+
"path": "/sandbox/v1/byod/pairings/{code}/claim",
|
|
26366
|
+
"streaming": "no",
|
|
26367
|
+
"pagination": false,
|
|
26368
|
+
"pathParams": [
|
|
26369
|
+
{
|
|
26370
|
+
"name": "code",
|
|
26371
|
+
"sdkName": "code",
|
|
26372
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
26373
|
+
}
|
|
26374
|
+
],
|
|
26375
|
+
"query": [],
|
|
26376
|
+
"body": {
|
|
26377
|
+
"required": true,
|
|
26378
|
+
"fields": [
|
|
26379
|
+
{
|
|
26380
|
+
"name": "platform",
|
|
26381
|
+
"type": "string",
|
|
26382
|
+
"enum": [
|
|
26383
|
+
"android",
|
|
26384
|
+
"macos",
|
|
26385
|
+
"linux"
|
|
26386
|
+
],
|
|
26387
|
+
"required": true,
|
|
26388
|
+
"description": "The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS."
|
|
26389
|
+
},
|
|
26390
|
+
{
|
|
26391
|
+
"name": "name",
|
|
25303
26392
|
"type": "string",
|
|
25304
26393
|
"required": false,
|
|
25305
|
-
"description": "
|
|
26394
|
+
"description": "Display name to register the device with, 1 to 64 characters; omitted or empty becomes the placeholder My device, which the caller can change later."
|
|
25306
26395
|
},
|
|
25307
26396
|
{
|
|
25308
|
-
"name": "
|
|
26397
|
+
"name": "model",
|
|
25309
26398
|
"type": "string",
|
|
25310
26399
|
"required": false,
|
|
25311
|
-
"description": "
|
|
26400
|
+
"description": "The device model the app reports, at most 128 characters; it is display only and can be omitted."
|
|
25312
26401
|
},
|
|
25313
26402
|
{
|
|
25314
|
-
"name": "
|
|
26403
|
+
"name": "os_version",
|
|
25315
26404
|
"type": "string",
|
|
25316
26405
|
"required": false,
|
|
25317
|
-
"description": "
|
|
26406
|
+
"description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
|
|
25318
26407
|
}
|
|
25319
26408
|
]
|
|
25320
26409
|
}
|
|
@@ -25524,7 +26613,7 @@ export const operations = [
|
|
|
25524
26613
|
"name": "ephemeral",
|
|
25525
26614
|
"type": "boolean",
|
|
25526
26615
|
"required": false,
|
|
25527
|
-
"description": "Own face, required: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS."
|
|
26616
|
+
"description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS."
|
|
25528
26617
|
},
|
|
25529
26618
|
{
|
|
25530
26619
|
"name": "size",
|
|
@@ -25570,6 +26659,25 @@ export const operations = [
|
|
|
25570
26659
|
"required": false,
|
|
25571
26660
|
"description": "Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls."
|
|
25572
26661
|
},
|
|
26662
|
+
{
|
|
26663
|
+
"name": "sku",
|
|
26664
|
+
"type": "string",
|
|
26665
|
+
"required": false,
|
|
26666
|
+
"description": "Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku."
|
|
26667
|
+
},
|
|
26668
|
+
{
|
|
26669
|
+
"name": "kind",
|
|
26670
|
+
"type": "string",
|
|
26671
|
+
"enum": [
|
|
26672
|
+
"run",
|
|
26673
|
+
"job",
|
|
26674
|
+
"batch",
|
|
26675
|
+
"computer",
|
|
26676
|
+
"compat"
|
|
26677
|
+
],
|
|
26678
|
+
"required": false,
|
|
26679
|
+
"description": "Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says."
|
|
26680
|
+
},
|
|
25573
26681
|
{
|
|
25574
26682
|
"name": "interruptible",
|
|
25575
26683
|
"type": "boolean",
|
|
@@ -32223,7 +33331,7 @@ export const operations = [
|
|
|
32223
33331
|
"resource": "vault.authorizations",
|
|
32224
33332
|
"method": "create",
|
|
32225
33333
|
"summary": "Create authorization",
|
|
32226
|
-
"description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id.
|
|
33334
|
+
"description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. The resulting oauth secret serves vault-backed MCP authentication — an Agent session or deployment whose vault_ids include this vault sends it to the MCP server whose URL equals this authorization's resource URL (normalized), and the platform refreshes the token once when that server answers 401.",
|
|
32227
33335
|
"http": "POST",
|
|
32228
33336
|
"path": "/vault/v1/authorizations",
|
|
32229
33337
|
"streaming": "no",
|