@deepraxis/sdk 0.2.0-dev.0ea50e2 → 0.2.0-dev.1b88a02
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 +204 -73
- package/README.md +1 -1
- package/dist/automation.d.ts +683 -64
- package/dist/core/bindings.d.ts +13 -0
- package/dist/core/bindings.js +17 -0
- package/dist/core/client.js +1 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +342 -63
- package/dist/generated/sdk.gen.js +860 -289
- package/dist/generated/types.gen.d.ts +6990 -1968
- package/dist/helpers/browser-actions.d.ts +4 -0
- package/dist/helpers/browser-actions.js +7 -1
- package/dist/helpers/browser-connect-error.d.ts +22 -4
- package/dist/helpers/browser-connect-error.js +45 -9
- package/dist/helpers/browser-connect.d.ts +23 -2
- package/dist/helpers/browser-connect.js +56 -9
- package/dist/helpers/browser-decisions.d.ts +5 -0
- package/dist/helpers/browser-decisions.js +12 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -0
- package/dist/operations.generated.js +2011 -684
- package/dist/resources.generated.d.ts +960 -74
- package/dist/resources.generated.js +247 -85
- package/package.json +1 -1
|
@@ -207,7 +207,7 @@ export const operations = [
|
|
|
207
207
|
"type": "array",
|
|
208
208
|
"itemType": "string",
|
|
209
209
|
"required": false,
|
|
210
|
-
"description": "Default vaults of
|
|
210
|
+
"description": "Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"name": "computers",
|
|
@@ -215,6 +215,12 @@ export const operations = [
|
|
|
215
215
|
"required": false,
|
|
216
216
|
"description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
|
|
217
217
|
},
|
|
218
|
+
{
|
|
219
|
+
"name": "browser",
|
|
220
|
+
"type": "object",
|
|
221
|
+
"required": false,
|
|
222
|
+
"description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
|
|
223
|
+
},
|
|
218
224
|
{
|
|
219
225
|
"name": "preset",
|
|
220
226
|
"type": "string",
|
|
@@ -435,7 +441,7 @@ export const operations = [
|
|
|
435
441
|
"type": "array",
|
|
436
442
|
"itemType": "string",
|
|
437
443
|
"required": false,
|
|
438
|
-
"description": "Default vaults of
|
|
444
|
+
"description": "Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
439
445
|
},
|
|
440
446
|
{
|
|
441
447
|
"name": "computers",
|
|
@@ -443,6 +449,12 @@ export const operations = [
|
|
|
443
449
|
"required": false,
|
|
444
450
|
"description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
|
|
445
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"name": "browser",
|
|
454
|
+
"type": "object",
|
|
455
|
+
"required": false,
|
|
456
|
+
"description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
|
|
457
|
+
},
|
|
446
458
|
{
|
|
447
459
|
"name": "preset",
|
|
448
460
|
"type": "string",
|
|
@@ -776,6 +788,42 @@ export const operations = [
|
|
|
776
788
|
],
|
|
777
789
|
"query": []
|
|
778
790
|
},
|
|
791
|
+
{
|
|
792
|
+
"resource": "agent.agents.devices.localSessions",
|
|
793
|
+
"method": "list",
|
|
794
|
+
"summary": "List the Claude Code sessions already on a device",
|
|
795
|
+
"description": "List the Claude Code sessions that already exist on a person's paired machine for a directory bound to this BYOA agent (started in a terminal, not on the platform), newest first, so one can be continued from the platform: pick an id and create a session with runtime.resume_session_id set to it (runtime.type device, the same device_id and cwd). Only the person who paired the device may ask. cwd is required and must be the directory exactly as the device registered it and bound it to this agent. Pass next_cursor back as cursor for the next page; null means the last page.",
|
|
796
|
+
"http": "GET",
|
|
797
|
+
"path": "/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions",
|
|
798
|
+
"streaming": "no",
|
|
799
|
+
"pagination": true,
|
|
800
|
+
"pathParams": [
|
|
801
|
+
{
|
|
802
|
+
"name": "agent_id",
|
|
803
|
+
"sdkName": "agent_id",
|
|
804
|
+
"description": "The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "device_id",
|
|
808
|
+
"sdkName": "device_id",
|
|
809
|
+
"description": "The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it."
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"query": [
|
|
813
|
+
{
|
|
814
|
+
"name": "cwd",
|
|
815
|
+
"type": "string",
|
|
816
|
+
"required": true,
|
|
817
|
+
"description": "The absolute directory on the device, exactly as the device registered it and bound it to this agent."
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"name": "cursor",
|
|
821
|
+
"type": "string",
|
|
822
|
+
"required": false,
|
|
823
|
+
"description": "The next_cursor of the previous page; leave it out for the first page."
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
},
|
|
779
827
|
{
|
|
780
828
|
"resource": "agent.agents",
|
|
781
829
|
"method": "retrieveEmbedPolicy",
|
|
@@ -1216,7 +1264,7 @@ export const operations = [
|
|
|
1216
1264
|
"resource": "agent.computers",
|
|
1217
1265
|
"method": "update",
|
|
1218
1266
|
"summary": "Update Computer",
|
|
1219
|
-
"description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1267
|
+
"description": "Rename a computer, declare its environment, or drop that declaration without touching the machine.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1220
1268
|
"http": "POST",
|
|
1221
1269
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1222
1270
|
"streaming": "no",
|
|
@@ -1235,8 +1283,14 @@ export const operations = [
|
|
|
1235
1283
|
{
|
|
1236
1284
|
"name": "name",
|
|
1237
1285
|
"type": "string",
|
|
1238
|
-
"required":
|
|
1239
|
-
"description": "
|
|
1286
|
+
"required": false,
|
|
1287
|
+
"description": "New display name, 1 to 255 characters after trimming. Omit to keep the current name."
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"name": "environment_id",
|
|
1291
|
+
"type": "string",
|
|
1292
|
+
"required": false,
|
|
1293
|
+
"description": "Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once."
|
|
1240
1294
|
}
|
|
1241
1295
|
]
|
|
1242
1296
|
}
|
|
@@ -1292,7 +1346,7 @@ export const operations = [
|
|
|
1292
1346
|
"resource": "agent.computers",
|
|
1293
1347
|
"method": "connect",
|
|
1294
1348
|
"summary": "Connect computer",
|
|
1295
|
-
"description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus
|
|
1349
|
+
"description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus tier (kept for compatibility: a Computer is one machine, so tier does not name a machine you can choose) and the lease that keeps the machine in service (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {}: the optional need field is accepted for compatibility and changes nothing, because a Computer is one machine. Renew the lease while using the connection and release it with DELETE when finished.",
|
|
1296
1350
|
"http": "POST",
|
|
1297
1351
|
"path": "/agent/v1/computers/{computer_id}/connect",
|
|
1298
1352
|
"streaming": "no",
|
|
@@ -1316,7 +1370,7 @@ export const operations = [
|
|
|
1316
1370
|
"heavy"
|
|
1317
1371
|
],
|
|
1318
1372
|
"required": false,
|
|
1319
|
-
"description": "
|
|
1373
|
+
"description": "Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it."
|
|
1320
1374
|
}
|
|
1321
1375
|
]
|
|
1322
1376
|
}
|
|
@@ -1683,7 +1737,7 @@ export const operations = [
|
|
|
1683
1737
|
"resource": "agent.deployments",
|
|
1684
1738
|
"method": "create",
|
|
1685
1739
|
"summary": "Create deployment",
|
|
1686
|
-
"description": "Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
1740
|
+
"description": "Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
|
|
1687
1741
|
"http": "POST",
|
|
1688
1742
|
"path": "/agent/v1/deployments",
|
|
1689
1743
|
"streaming": "no",
|
|
@@ -2247,7 +2301,7 @@ export const operations = [
|
|
|
2247
2301
|
"resource": "agent.sessions",
|
|
2248
2302
|
"method": "create",
|
|
2249
2303
|
"summary": "Create session",
|
|
2250
|
-
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead.
|
|
2304
|
+
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. vault_ids (at most 50, owned by the organization, not archived) adds vaults to the agent's own vault_ids, the ones its department or organization rule grants attach, and the session carries both sets from creation; sessions.update replaces the session's own set later. The secrets of those vaults reach the session's machine as environment variables named after the secret, in every command it runs, and are matched against its MCP servers; a service agent's session skips OAuth credentials and secrets that declare allowed_hosts, and names the platform login owns are never taken. allowed_hosts does not limit what a command does with an exported value. A session with no machine has no environment. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
|
|
2251
2305
|
"http": "POST",
|
|
2252
2306
|
"path": "/agent/v1/sessions",
|
|
2253
2307
|
"streaming": "no",
|
|
@@ -2391,7 +2445,7 @@ export const operations = [
|
|
|
2391
2445
|
"resource": "agent.sessions",
|
|
2392
2446
|
"method": "update",
|
|
2393
2447
|
"summary": "Update session",
|
|
2394
|
-
"description": "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
2448
|
+
"description": "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.",
|
|
2395
2449
|
"http": "POST",
|
|
2396
2450
|
"path": "/agent/v1/sessions/{session_id}",
|
|
2397
2451
|
"streaming": "no",
|
|
@@ -2430,7 +2484,7 @@ export const operations = [
|
|
|
2430
2484
|
"type": "array",
|
|
2431
2485
|
"itemType": "string",
|
|
2432
2486
|
"required": false,
|
|
2433
|
-
"description": "
|
|
2487
|
+
"description": "The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes."
|
|
2434
2488
|
},
|
|
2435
2489
|
{
|
|
2436
2490
|
"name": "model",
|
|
@@ -4609,13 +4663,13 @@ export const operations = [
|
|
|
4609
4663
|
"summary": "Get an Action with its current input and output JSON Schemas",
|
|
4610
4664
|
"description": "Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call(\"ocr\", input) or in a workflow step with call: ocr and with:. Input that breaks the contract returns INPUT_INVALID, with the fields in errors[]. The response ETag is the current revision ID for conditional updates.",
|
|
4611
4665
|
"http": "GET",
|
|
4612
|
-
"path": "/automation/v1/actions/{
|
|
4666
|
+
"path": "/automation/v1/actions/{namespace}/{name}",
|
|
4613
4667
|
"streaming": "no",
|
|
4614
4668
|
"pagination": false,
|
|
4615
4669
|
"pathParams": [
|
|
4616
4670
|
{
|
|
4617
|
-
"name": "
|
|
4618
|
-
"sdkName": "
|
|
4671
|
+
"name": "namespace",
|
|
4672
|
+
"sdkName": "namespace",
|
|
4619
4673
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4620
4674
|
},
|
|
4621
4675
|
{
|
|
@@ -4632,13 +4686,13 @@ export const operations = [
|
|
|
4632
4686
|
"summary": "Update an action",
|
|
4633
4687
|
"description": "Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to 300000, and message to null. Incompatible normal updates return 422 SCHEMA_INCOMPATIBLE with issues; unchanged contents retain the existing revision.",
|
|
4634
4688
|
"http": "PUT",
|
|
4635
|
-
"path": "/automation/v1/actions/{
|
|
4689
|
+
"path": "/automation/v1/actions/{namespace}/{name}",
|
|
4636
4690
|
"streaming": "no",
|
|
4637
4691
|
"pagination": false,
|
|
4638
4692
|
"pathParams": [
|
|
4639
4693
|
{
|
|
4640
|
-
"name": "
|
|
4641
|
-
"sdkName": "
|
|
4694
|
+
"name": "namespace",
|
|
4695
|
+
"sdkName": "namespace",
|
|
4642
4696
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4643
4697
|
},
|
|
4644
4698
|
{
|
|
@@ -4730,13 +4784,13 @@ export const operations = [
|
|
|
4730
4784
|
"summary": "Archive an action",
|
|
4731
4785
|
"description": "Archive the action while retaining its name and history, hiding it from the default list. The response includes dependents_count.",
|
|
4732
4786
|
"http": "POST",
|
|
4733
|
-
"path": "/automation/v1/actions/{
|
|
4787
|
+
"path": "/automation/v1/actions/{namespace}/{name}/archive",
|
|
4734
4788
|
"streaming": "no",
|
|
4735
4789
|
"pagination": false,
|
|
4736
4790
|
"pathParams": [
|
|
4737
4791
|
{
|
|
4738
|
-
"name": "
|
|
4739
|
-
"sdkName": "
|
|
4792
|
+
"name": "namespace",
|
|
4793
|
+
"sdkName": "namespace",
|
|
4740
4794
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4741
4795
|
},
|
|
4742
4796
|
{
|
|
@@ -4757,13 +4811,13 @@ export const operations = [
|
|
|
4757
4811
|
"summary": "List action dependents",
|
|
4758
4812
|
"description": "List orchestrations referencing this action. The search covers scripts and workflows in their drafts or latest versions.",
|
|
4759
4813
|
"http": "GET",
|
|
4760
|
-
"path": "/automation/v1/actions/{
|
|
4814
|
+
"path": "/automation/v1/actions/{namespace}/{name}/dependents",
|
|
4761
4815
|
"streaming": "no",
|
|
4762
4816
|
"pagination": true,
|
|
4763
4817
|
"pathParams": [
|
|
4764
4818
|
{
|
|
4765
|
-
"name": "
|
|
4766
|
-
"sdkName": "
|
|
4819
|
+
"name": "namespace",
|
|
4820
|
+
"sdkName": "namespace",
|
|
4767
4821
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4768
4822
|
},
|
|
4769
4823
|
{
|
|
@@ -4793,13 +4847,13 @@ export const operations = [
|
|
|
4793
4847
|
"summary": "List action invocations",
|
|
4794
4848
|
"description": "List this action’s invocations, filtering by status, revision, calling definition and time. Results identify the run and call site.",
|
|
4795
4849
|
"http": "GET",
|
|
4796
|
-
"path": "/automation/v1/actions/{
|
|
4850
|
+
"path": "/automation/v1/actions/{namespace}/{name}/invocations",
|
|
4797
4851
|
"streaming": "no",
|
|
4798
4852
|
"pagination": true,
|
|
4799
4853
|
"pathParams": [
|
|
4800
4854
|
{
|
|
4801
|
-
"name": "
|
|
4802
|
-
"sdkName": "
|
|
4855
|
+
"name": "namespace",
|
|
4856
|
+
"sdkName": "namespace",
|
|
4803
4857
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4804
4858
|
},
|
|
4805
4859
|
{
|
|
@@ -4870,13 +4924,13 @@ export const operations = [
|
|
|
4870
4924
|
"summary": "Restore an action",
|
|
4871
4925
|
"description": "Restore an archived action to the default list. Its current revision is preserved.",
|
|
4872
4926
|
"http": "POST",
|
|
4873
|
-
"path": "/automation/v1/actions/{
|
|
4927
|
+
"path": "/automation/v1/actions/{namespace}/{name}/restore",
|
|
4874
4928
|
"streaming": "no",
|
|
4875
4929
|
"pagination": false,
|
|
4876
4930
|
"pathParams": [
|
|
4877
4931
|
{
|
|
4878
|
-
"name": "
|
|
4879
|
-
"sdkName": "
|
|
4932
|
+
"name": "namespace",
|
|
4933
|
+
"sdkName": "namespace",
|
|
4880
4934
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4881
4935
|
},
|
|
4882
4936
|
{
|
|
@@ -4897,13 +4951,13 @@ export const operations = [
|
|
|
4897
4951
|
"summary": "List action revisions",
|
|
4898
4952
|
"description": "List revisions newest first with rollback eligibility. Results include the current marker and compatibility issues. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
|
|
4899
4953
|
"http": "GET",
|
|
4900
|
-
"path": "/automation/v1/actions/{
|
|
4954
|
+
"path": "/automation/v1/actions/{namespace}/{name}/revisions",
|
|
4901
4955
|
"streaming": "no",
|
|
4902
4956
|
"pagination": true,
|
|
4903
4957
|
"pathParams": [
|
|
4904
4958
|
{
|
|
4905
|
-
"name": "
|
|
4906
|
-
"sdkName": "
|
|
4959
|
+
"name": "namespace",
|
|
4960
|
+
"sdkName": "namespace",
|
|
4907
4961
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4908
4962
|
},
|
|
4909
4963
|
{
|
|
@@ -4942,13 +4996,13 @@ export const operations = [
|
|
|
4942
4996
|
"summary": "Get an action revision",
|
|
4943
4997
|
"description": "Read a specific revision with its full implementation and rollback compatibility result. A missing revision returns VERSION_NOT_FOUND. Details always return full source.",
|
|
4944
4998
|
"http": "GET",
|
|
4945
|
-
"path": "/automation/v1/actions/{
|
|
4999
|
+
"path": "/automation/v1/actions/{namespace}/{name}/revisions/{revision}",
|
|
4946
5000
|
"streaming": "no",
|
|
4947
5001
|
"pagination": false,
|
|
4948
5002
|
"pathParams": [
|
|
4949
5003
|
{
|
|
4950
|
-
"name": "
|
|
4951
|
-
"sdkName": "
|
|
5004
|
+
"name": "namespace",
|
|
5005
|
+
"sdkName": "namespace",
|
|
4952
5006
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4953
5007
|
},
|
|
4954
5008
|
{
|
|
@@ -4970,13 +5024,13 @@ export const operations = [
|
|
|
4970
5024
|
"summary": "Roll back an action",
|
|
4971
5025
|
"description": "Create a compatible new revision from historical contents. Compatibility is checked against the current and five recent historical revisions. The current pointer does not revert to the old ID. Optional If-Match accepts the current revision or *; * matches any existing representation.",
|
|
4972
5026
|
"http": "POST",
|
|
4973
|
-
"path": "/automation/v1/actions/{
|
|
5027
|
+
"path": "/automation/v1/actions/{namespace}/{name}/rollback",
|
|
4974
5028
|
"streaming": "no",
|
|
4975
5029
|
"pagination": false,
|
|
4976
5030
|
"pathParams": [
|
|
4977
5031
|
{
|
|
4978
|
-
"name": "
|
|
4979
|
-
"sdkName": "
|
|
5032
|
+
"name": "namespace",
|
|
5033
|
+
"sdkName": "namespace",
|
|
4980
5034
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
4981
5035
|
},
|
|
4982
5036
|
{
|
|
@@ -5016,7 +5070,7 @@ export const operations = [
|
|
|
5016
5070
|
"resource": "automation.hooks",
|
|
5017
5071
|
"method": "send",
|
|
5018
5072
|
"summary": "Receive a webhook",
|
|
5019
|
-
"description": "No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{
|
|
5073
|
+
"description": "No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{trigger_id}/resume. Raw bodies are limited to 512 KiB; serialized run input, including raw and parsed copies, must fit within 1 MiB. Exceeding either limit returns 413 synchronously without recording a firing; webhook-id deduplicates for 24 hours. A 202 with outcome=accepted acknowledges receipt; the final outcome is updated later, and repeats return deduped. Invalid JSON yields body=null; other UTF-8 is text and non-UTF-8 is base64. The envelope contains body, raw_body, raw_body_encoding, allowlisted headers, webhook_id and received_at. raw_body preserves exact bytes with utf8 or base64 encoding for caller-side signature verification.",
|
|
5020
5074
|
"http": "POST",
|
|
5021
5075
|
"path": "/automation/v1/hooks/{trigger_id}/{token}",
|
|
5022
5076
|
"streaming": "no",
|
|
@@ -5107,13 +5161,13 @@ export const operations = [
|
|
|
5107
5161
|
"summary": "Retrieve a human task",
|
|
5108
5162
|
"description": "Read one human task - title, Markdown body, context, actions, form, assignees, mode, due time, responses and outcome - so an assignee can choose an action and fill the form. Read-only; the Console approval page /automation/tasks/{id} reads the same resource.",
|
|
5109
5163
|
"http": "GET",
|
|
5110
|
-
"path": "/automation/v1/human-tasks/{
|
|
5164
|
+
"path": "/automation/v1/human-tasks/{task_id}",
|
|
5111
5165
|
"streaming": "no",
|
|
5112
5166
|
"pagination": false,
|
|
5113
5167
|
"pathParams": [
|
|
5114
5168
|
{
|
|
5115
|
-
"name": "
|
|
5116
|
-
"sdkName": "
|
|
5169
|
+
"name": "task_id",
|
|
5170
|
+
"sdkName": "task_id",
|
|
5117
5171
|
"description": "Human task ID (htask_), from the list or the run's waits."
|
|
5118
5172
|
}
|
|
5119
5173
|
],
|
|
@@ -5125,13 +5179,13 @@ export const operations = [
|
|
|
5125
5179
|
"summary": "Cancel a human task",
|
|
5126
5180
|
"description": "Cancel an open human task; only the person who started the run or an organization API key may cancel. The task becomes cancelled and the waiting workflow step raises a runtime error with code HUMAN_TASK_CANCELLED, which try/catch can catch. Open tasks are cancelled automatically when their run ends, so this call is not needed then.",
|
|
5127
5181
|
"http": "POST",
|
|
5128
|
-
"path": "/automation/v1/human-tasks/{
|
|
5182
|
+
"path": "/automation/v1/human-tasks/{task_id}/cancel",
|
|
5129
5183
|
"streaming": "no",
|
|
5130
5184
|
"pagination": false,
|
|
5131
5185
|
"pathParams": [
|
|
5132
5186
|
{
|
|
5133
|
-
"name": "
|
|
5134
|
-
"sdkName": "
|
|
5187
|
+
"name": "task_id",
|
|
5188
|
+
"sdkName": "task_id",
|
|
5135
5189
|
"description": "Human task ID (htask_)."
|
|
5136
5190
|
}
|
|
5137
5191
|
],
|
|
@@ -5154,13 +5208,13 @@ export const operations = [
|
|
|
5154
5208
|
"summary": "Delegate a human task",
|
|
5155
5209
|
"description": "An assignee who has not responded hands their place to another user (to_user), replacing their entry in assignees.users in place, so sequential order is kept. The new user cannot already be an assignee, nor the initiator unless self-approval is allowed. The task must still be open.",
|
|
5156
5210
|
"http": "POST",
|
|
5157
|
-
"path": "/automation/v1/human-tasks/{
|
|
5211
|
+
"path": "/automation/v1/human-tasks/{task_id}/delegate",
|
|
5158
5212
|
"streaming": "no",
|
|
5159
5213
|
"pagination": false,
|
|
5160
5214
|
"pathParams": [
|
|
5161
5215
|
{
|
|
5162
|
-
"name": "
|
|
5163
|
-
"sdkName": "
|
|
5216
|
+
"name": "task_id",
|
|
5217
|
+
"sdkName": "task_id",
|
|
5164
5218
|
"description": "Human task ID (htask_)."
|
|
5165
5219
|
}
|
|
5166
5220
|
],
|
|
@@ -5183,13 +5237,13 @@ export const operations = [
|
|
|
5183
5237
|
"summary": "Respond to a human task",
|
|
5184
5238
|
"description": "Submit an action (action_id), form values (values) and a comment as the calling user. Depending on the task's mode the response either decides it (status becomes completed, outcome is set, and the waiting workflow resumes with outcome as the step output) or is recorded while other assignees are awaited. When two assignees respond at once, exactly one decides and the other gets TASK_CLOSED. An agent may respond only if the workflow set allow_agent_decision. Send an Idempotency-Key to retry safely.",
|
|
5185
5239
|
"http": "POST",
|
|
5186
|
-
"path": "/automation/v1/human-tasks/{
|
|
5240
|
+
"path": "/automation/v1/human-tasks/{task_id}/respond",
|
|
5187
5241
|
"streaming": "no",
|
|
5188
5242
|
"pagination": false,
|
|
5189
5243
|
"pathParams": [
|
|
5190
5244
|
{
|
|
5191
|
-
"name": "
|
|
5192
|
-
"sdkName": "
|
|
5245
|
+
"name": "task_id",
|
|
5246
|
+
"sdkName": "task_id",
|
|
5193
5247
|
"description": "Human task ID (htask_)."
|
|
5194
5248
|
}
|
|
5195
5249
|
],
|
|
@@ -5326,7 +5380,7 @@ export const operations = [
|
|
|
5326
5380
|
"trigger"
|
|
5327
5381
|
],
|
|
5328
5382
|
"required": false,
|
|
5329
|
-
"description": "Root initiator type: user, api_key, agent or
|
|
5383
|
+
"description": "Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
|
|
5330
5384
|
},
|
|
5331
5385
|
{
|
|
5332
5386
|
"name": "initiator",
|
|
@@ -5416,13 +5470,13 @@ export const operations = [
|
|
|
5416
5470
|
"summary": "Get a run",
|
|
5417
5471
|
"description": "Read status, output and error for the id returned by praxis.automation.runs.create; output needs no expand option. A completed status confirms success; faulted and cancelled are terminal without successful completion. Optionally expand calls, tasks, task groups, logs or source in the same request. Pass wait (seconds, 0–60) to hold the request until the run is terminal or the time is up, instead of polling. Expanded pages hold at most 200 entries; use the ledger endpoints and cursors for subsequent pages. Workflow raise errors preserve the full type URI, status, title and detail; only internal platform exceptions are runtime errors.",
|
|
5418
5472
|
"http": "GET",
|
|
5419
|
-
"path": "/automation/v1/runs/{
|
|
5473
|
+
"path": "/automation/v1/runs/{run_id}",
|
|
5420
5474
|
"streaming": "no",
|
|
5421
5475
|
"pagination": false,
|
|
5422
5476
|
"pathParams": [
|
|
5423
5477
|
{
|
|
5424
|
-
"name": "
|
|
5425
|
-
"sdkName": "
|
|
5478
|
+
"name": "run_id",
|
|
5479
|
+
"sdkName": "run_id",
|
|
5426
5480
|
"description": "Run ID (run_)."
|
|
5427
5481
|
}
|
|
5428
5482
|
],
|
|
@@ -5455,13 +5509,13 @@ export const operations = [
|
|
|
5455
5509
|
"summary": "List run artifacts",
|
|
5456
5510
|
"description": "Read run artifacts and their file references. Entries follow ledger order and include content types, sizes and associated steps.",
|
|
5457
5511
|
"http": "GET",
|
|
5458
|
-
"path": "/automation/v1/runs/{
|
|
5512
|
+
"path": "/automation/v1/runs/{run_id}/artifacts",
|
|
5459
5513
|
"streaming": "no",
|
|
5460
5514
|
"pagination": true,
|
|
5461
5515
|
"pathParams": [
|
|
5462
5516
|
{
|
|
5463
|
-
"name": "
|
|
5464
|
-
"sdkName": "
|
|
5517
|
+
"name": "run_id",
|
|
5518
|
+
"sdkName": "run_id",
|
|
5465
5519
|
"description": "Run ID (run_)."
|
|
5466
5520
|
}
|
|
5467
5521
|
],
|
|
@@ -5486,13 +5540,13 @@ export const operations = [
|
|
|
5486
5540
|
"summary": "List run calls",
|
|
5487
5541
|
"description": "Page through the call ledger with execution results. Entries follow ledger order and include targets, argument/result previews, statuses and durations. Script runs read the call ledger; a workflow run records its action calls on its tasks, so this lists the action tasks (skipped ones excluded), matching counters.action_calls.",
|
|
5488
5542
|
"http": "GET",
|
|
5489
|
-
"path": "/automation/v1/runs/{
|
|
5543
|
+
"path": "/automation/v1/runs/{run_id}/calls",
|
|
5490
5544
|
"streaming": "no",
|
|
5491
5545
|
"pagination": true,
|
|
5492
5546
|
"pathParams": [
|
|
5493
5547
|
{
|
|
5494
|
-
"name": "
|
|
5495
|
-
"sdkName": "
|
|
5548
|
+
"name": "run_id",
|
|
5549
|
+
"sdkName": "run_id",
|
|
5496
5550
|
"description": "Run ID (run_)."
|
|
5497
5551
|
}
|
|
5498
5552
|
],
|
|
@@ -5517,13 +5571,13 @@ export const operations = [
|
|
|
5517
5571
|
"summary": "Cancel a run",
|
|
5518
5572
|
"description": "Request run cancellation and return 202. Workflows terminate, while scripts receive an abort request followed by forced termination after a grace period. Terminal runs return 409 RUN_INVALID_STATE; cancellation propagates to attached children, not detached children. Optional reason contains 1–500 characters and is stored as Run.cancel_message; cancel_reason remains user.",
|
|
5519
5573
|
"http": "POST",
|
|
5520
|
-
"path": "/automation/v1/runs/{
|
|
5574
|
+
"path": "/automation/v1/runs/{run_id}/cancel",
|
|
5521
5575
|
"streaming": "no",
|
|
5522
5576
|
"pagination": false,
|
|
5523
5577
|
"pathParams": [
|
|
5524
5578
|
{
|
|
5525
|
-
"name": "
|
|
5526
|
-
"sdkName": "
|
|
5579
|
+
"name": "run_id",
|
|
5580
|
+
"sdkName": "run_id",
|
|
5527
5581
|
"description": "Run ID (run_)."
|
|
5528
5582
|
}
|
|
5529
5583
|
],
|
|
@@ -5546,13 +5600,13 @@ export const operations = [
|
|
|
5546
5600
|
"summary": "Read run events",
|
|
5547
5601
|
"description": "Read the CloudEvents ledger or subscribe to live events. Return a CloudEvents ledger page by default; Accept: text/event-stream opens a live stream with ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed and ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved event names. id is the resume cursor and Last-Event-ID takes precedence over cursor; : ping arrives every 20 seconds and event: end closes the stream after a terminal run.",
|
|
5548
5602
|
"http": "GET",
|
|
5549
|
-
"path": "/automation/v1/runs/{
|
|
5603
|
+
"path": "/automation/v1/runs/{run_id}/events",
|
|
5550
5604
|
"streaming": "always",
|
|
5551
5605
|
"pagination": false,
|
|
5552
5606
|
"pathParams": [
|
|
5553
5607
|
{
|
|
5554
|
-
"name": "
|
|
5555
|
-
"sdkName": "
|
|
5608
|
+
"name": "run_id",
|
|
5609
|
+
"sdkName": "run_id",
|
|
5556
5610
|
"description": "Run ID (run_)."
|
|
5557
5611
|
}
|
|
5558
5612
|
],
|
|
@@ -5585,13 +5639,13 @@ export const operations = [
|
|
|
5585
5639
|
"summary": "Read run logs",
|
|
5586
5640
|
"description": "Return a log page within the 30-day retention window by default. Accept: text/event-stream opens a live stream using event: log; id is the resume cursor and Last-Event-ID takes precedence over cursor. : ping arrives every 20 seconds and event: end closes the stream after a terminal run.",
|
|
5587
5641
|
"http": "GET",
|
|
5588
|
-
"path": "/automation/v1/runs/{
|
|
5642
|
+
"path": "/automation/v1/runs/{run_id}/logs",
|
|
5589
5643
|
"streaming": "always",
|
|
5590
5644
|
"pagination": false,
|
|
5591
5645
|
"pathParams": [
|
|
5592
5646
|
{
|
|
5593
|
-
"name": "
|
|
5594
|
-
"sdkName": "
|
|
5647
|
+
"name": "run_id",
|
|
5648
|
+
"sdkName": "run_id",
|
|
5595
5649
|
"description": "Run ID (run_)."
|
|
5596
5650
|
}
|
|
5597
5651
|
],
|
|
@@ -5624,13 +5678,13 @@ export const operations = [
|
|
|
5624
5678
|
"summary": "Rerun a run",
|
|
5625
5679
|
"description": "Create a new root run from the original exact version or ad hoc source, retaining labels and setting rerun_of. Override input or omit it to reuse the original input; archived targets and run tokens are rejected.",
|
|
5626
5680
|
"http": "POST",
|
|
5627
|
-
"path": "/automation/v1/runs/{
|
|
5681
|
+
"path": "/automation/v1/runs/{run_id}/rerun",
|
|
5628
5682
|
"streaming": "no",
|
|
5629
5683
|
"pagination": false,
|
|
5630
5684
|
"pathParams": [
|
|
5631
5685
|
{
|
|
5632
|
-
"name": "
|
|
5633
|
-
"sdkName": "
|
|
5686
|
+
"name": "run_id",
|
|
5687
|
+
"sdkName": "run_id",
|
|
5634
5688
|
"description": "Run ID (run_)."
|
|
5635
5689
|
}
|
|
5636
5690
|
],
|
|
@@ -5653,13 +5707,13 @@ export const operations = [
|
|
|
5653
5707
|
"summary": "Resume a run",
|
|
5654
5708
|
"description": "Resume only a suspended workflow to its prior running or waiting state. It remains suspended if concurrency slots are unavailable; scripts do not support this operation.",
|
|
5655
5709
|
"http": "POST",
|
|
5656
|
-
"path": "/automation/v1/runs/{
|
|
5710
|
+
"path": "/automation/v1/runs/{run_id}/resume",
|
|
5657
5711
|
"streaming": "no",
|
|
5658
5712
|
"pagination": false,
|
|
5659
5713
|
"pathParams": [
|
|
5660
5714
|
{
|
|
5661
|
-
"name": "
|
|
5662
|
-
"sdkName": "
|
|
5715
|
+
"name": "run_id",
|
|
5716
|
+
"sdkName": "run_id",
|
|
5663
5717
|
"description": "Run ID (run_)."
|
|
5664
5718
|
}
|
|
5665
5719
|
],
|
|
@@ -5675,13 +5729,13 @@ export const operations = [
|
|
|
5675
5729
|
"summary": "Get run source",
|
|
5676
5730
|
"description": "Read the source and digest used by the run. Results include the language and SHA-256 digest, for both ad hoc and published-definition runs.",
|
|
5677
5731
|
"http": "GET",
|
|
5678
|
-
"path": "/automation/v1/runs/{
|
|
5732
|
+
"path": "/automation/v1/runs/{run_id}/source",
|
|
5679
5733
|
"streaming": "no",
|
|
5680
5734
|
"pagination": false,
|
|
5681
5735
|
"pathParams": [
|
|
5682
5736
|
{
|
|
5683
|
-
"name": "
|
|
5684
|
-
"sdkName": "
|
|
5737
|
+
"name": "run_id",
|
|
5738
|
+
"sdkName": "run_id",
|
|
5685
5739
|
"description": "Run ID (run_)."
|
|
5686
5740
|
}
|
|
5687
5741
|
],
|
|
@@ -5693,13 +5747,13 @@ export const operations = [
|
|
|
5693
5747
|
"summary": "Suspend a run",
|
|
5694
5748
|
"description": "Suspend only a running or waiting workflow. Scripts return OPERATION_NOT_SUPPORTED; other states return RUN_INVALID_STATE.",
|
|
5695
5749
|
"http": "POST",
|
|
5696
|
-
"path": "/automation/v1/runs/{
|
|
5750
|
+
"path": "/automation/v1/runs/{run_id}/suspend",
|
|
5697
5751
|
"streaming": "no",
|
|
5698
5752
|
"pagination": false,
|
|
5699
5753
|
"pathParams": [
|
|
5700
5754
|
{
|
|
5701
|
-
"name": "
|
|
5702
|
-
"sdkName": "
|
|
5755
|
+
"name": "run_id",
|
|
5756
|
+
"sdkName": "run_id",
|
|
5703
5757
|
"description": "Run ID (run_)."
|
|
5704
5758
|
}
|
|
5705
5759
|
],
|
|
@@ -5715,13 +5769,13 @@ export const operations = [
|
|
|
5715
5769
|
"summary": "List run tasks",
|
|
5716
5770
|
"description": "Page through the task ledger. include=planned adds unexecuted top-level steps; group_by=reference aggregates count, status and duration by task reference.",
|
|
5717
5771
|
"http": "GET",
|
|
5718
|
-
"path": "/automation/v1/runs/{
|
|
5772
|
+
"path": "/automation/v1/runs/{run_id}/tasks",
|
|
5719
5773
|
"streaming": "no",
|
|
5720
5774
|
"pagination": true,
|
|
5721
5775
|
"pathParams": [
|
|
5722
5776
|
{
|
|
5723
|
-
"name": "
|
|
5724
|
-
"sdkName": "
|
|
5777
|
+
"name": "run_id",
|
|
5778
|
+
"sdkName": "run_id",
|
|
5725
5779
|
"description": "Run ID (run_)."
|
|
5726
5780
|
}
|
|
5727
5781
|
],
|
|
@@ -5764,13 +5818,13 @@ export const operations = [
|
|
|
5764
5818
|
"summary": "List run waits",
|
|
5765
5819
|
"description": "List current and historical waits in ledger order. Wait types include event, timer and child.",
|
|
5766
5820
|
"http": "GET",
|
|
5767
|
-
"path": "/automation/v1/runs/{
|
|
5821
|
+
"path": "/automation/v1/runs/{run_id}/waits",
|
|
5768
5822
|
"streaming": "no",
|
|
5769
5823
|
"pagination": true,
|
|
5770
5824
|
"pathParams": [
|
|
5771
5825
|
{
|
|
5772
|
-
"name": "
|
|
5773
|
-
"sdkName": "
|
|
5826
|
+
"name": "run_id",
|
|
5827
|
+
"sdkName": "run_id",
|
|
5774
5828
|
"description": "Run ID (run_)."
|
|
5775
5829
|
}
|
|
5776
5830
|
],
|
|
@@ -5795,13 +5849,13 @@ export const operations = [
|
|
|
5795
5849
|
"summary": "Complete a run wait",
|
|
5796
5850
|
"description": "Complete only an event wait with a payload of at most 32 KiB satisfying its filter; timer and child waits cannot be completed manually. Reusing the same id and payload returns replayed=true; other repeats return WAIT_ALREADY_RESOLVED and expired waits return WAIT_EXPIRED.",
|
|
5797
5851
|
"http": "POST",
|
|
5798
|
-
"path": "/automation/v1/runs/{
|
|
5852
|
+
"path": "/automation/v1/runs/{run_id}/waits/{wait_id}/complete",
|
|
5799
5853
|
"streaming": "no",
|
|
5800
5854
|
"pagination": false,
|
|
5801
5855
|
"pathParams": [
|
|
5802
5856
|
{
|
|
5803
|
-
"name": "
|
|
5804
|
-
"sdkName": "
|
|
5857
|
+
"name": "run_id",
|
|
5858
|
+
"sdkName": "run_id",
|
|
5805
5859
|
"description": "Run ID (run_)."
|
|
5806
5860
|
},
|
|
5807
5861
|
{
|
|
@@ -5906,7 +5960,7 @@ export const operations = [
|
|
|
5906
5960
|
"resource": "automation.scripts",
|
|
5907
5961
|
"method": "create",
|
|
5908
5962
|
"summary": "Create a script",
|
|
5909
|
-
"description": "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call(\"write-file\", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later,
|
|
5963
|
+
"description": "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call(\"write-file\", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, send the returned draft.revision as draft.revision of the publish request.",
|
|
5910
5964
|
"http": "POST",
|
|
5911
5965
|
"path": "/automation/v1/scripts",
|
|
5912
5966
|
"streaming": "no",
|
|
@@ -5936,9 +5990,9 @@ export const operations = [
|
|
|
5936
5990
|
},
|
|
5937
5991
|
{
|
|
5938
5992
|
"name": "draft",
|
|
5939
|
-
"type": "
|
|
5993
|
+
"type": "object",
|
|
5940
5994
|
"required": false,
|
|
5941
|
-
"description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
|
|
5995
|
+
"description": "Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }."
|
|
5942
5996
|
},
|
|
5943
5997
|
{
|
|
5944
5998
|
"name": "labels",
|
|
@@ -5953,15 +6007,15 @@ export const operations = [
|
|
|
5953
6007
|
"resource": "automation.scripts",
|
|
5954
6008
|
"method": "retrieve",
|
|
5955
6009
|
"summary": "Get a script",
|
|
5956
|
-
"description": "Read script details and draft source. The
|
|
6010
|
+
"description": "Read script details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
|
|
5957
6011
|
"http": "GET",
|
|
5958
|
-
"path": "/automation/v1/scripts/{
|
|
6012
|
+
"path": "/automation/v1/scripts/{namespace}/{name}",
|
|
5959
6013
|
"streaming": "no",
|
|
5960
6014
|
"pagination": false,
|
|
5961
6015
|
"pathParams": [
|
|
5962
6016
|
{
|
|
5963
|
-
"name": "
|
|
5964
|
-
"sdkName": "
|
|
6017
|
+
"name": "namespace",
|
|
6018
|
+
"sdkName": "namespace",
|
|
5965
6019
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
5966
6020
|
},
|
|
5967
6021
|
{
|
|
@@ -5976,15 +6030,15 @@ export const operations = [
|
|
|
5976
6030
|
"resource": "automation.scripts",
|
|
5977
6031
|
"method": "update",
|
|
5978
6032
|
"summary": "Update a script draft",
|
|
5979
|
-
"description": "Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.",
|
|
6033
|
+
"description": "Update description, labels or draft with the current draft revision in the body as draft.revision (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.",
|
|
5980
6034
|
"http": "PATCH",
|
|
5981
|
-
"path": "/automation/v1/scripts/{
|
|
6035
|
+
"path": "/automation/v1/scripts/{namespace}/{name}",
|
|
5982
6036
|
"streaming": "no",
|
|
5983
6037
|
"pagination": false,
|
|
5984
6038
|
"pathParams": [
|
|
5985
6039
|
{
|
|
5986
|
-
"name": "
|
|
5987
|
-
"sdkName": "
|
|
6040
|
+
"name": "namespace",
|
|
6041
|
+
"sdkName": "namespace",
|
|
5988
6042
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
5989
6043
|
},
|
|
5990
6044
|
{
|
|
@@ -5998,8 +6052,8 @@ export const operations = [
|
|
|
5998
6052
|
{
|
|
5999
6053
|
"name": "If-Match",
|
|
6000
6054
|
"type": "string",
|
|
6001
|
-
"required":
|
|
6002
|
-
"description": "
|
|
6055
|
+
"required": false,
|
|
6056
|
+
"description": "Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412."
|
|
6003
6057
|
}
|
|
6004
6058
|
],
|
|
6005
6059
|
"body": {
|
|
@@ -6019,9 +6073,9 @@ export const operations = [
|
|
|
6019
6073
|
},
|
|
6020
6074
|
{
|
|
6021
6075
|
"name": "draft",
|
|
6022
|
-
"type": "
|
|
6076
|
+
"type": "object",
|
|
6023
6077
|
"required": false,
|
|
6024
|
-
"description": "
|
|
6078
|
+
"description": "Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match."
|
|
6025
6079
|
}
|
|
6026
6080
|
]
|
|
6027
6081
|
}
|
|
@@ -6032,13 +6086,13 @@ export const operations = [
|
|
|
6032
6086
|
"summary": "Archive a script",
|
|
6033
6087
|
"description": "Keep the name, versions and draft while archiving. The default list hides it and new target resolution and run requests reject the archived target.",
|
|
6034
6088
|
"http": "POST",
|
|
6035
|
-
"path": "/automation/v1/scripts/{
|
|
6089
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/archive",
|
|
6036
6090
|
"streaming": "no",
|
|
6037
6091
|
"pagination": false,
|
|
6038
6092
|
"pathParams": [
|
|
6039
6093
|
{
|
|
6040
|
-
"name": "
|
|
6041
|
-
"sdkName": "
|
|
6094
|
+
"name": "namespace",
|
|
6095
|
+
"sdkName": "namespace",
|
|
6042
6096
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6043
6097
|
},
|
|
6044
6098
|
{
|
|
@@ -6059,13 +6113,13 @@ export const operations = [
|
|
|
6059
6113
|
"summary": "List script tags",
|
|
6060
6114
|
"description": "Read the exact version for each distribution tag. Results include the update time and updater.",
|
|
6061
6115
|
"http": "GET",
|
|
6062
|
-
"path": "/automation/v1/scripts/{
|
|
6116
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags",
|
|
6063
6117
|
"streaming": "no",
|
|
6064
6118
|
"pagination": false,
|
|
6065
6119
|
"pathParams": [
|
|
6066
6120
|
{
|
|
6067
|
-
"name": "
|
|
6068
|
-
"sdkName": "
|
|
6121
|
+
"name": "namespace",
|
|
6122
|
+
"sdkName": "namespace",
|
|
6069
6123
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6070
6124
|
},
|
|
6071
6125
|
{
|
|
@@ -6082,13 +6136,13 @@ export const operations = [
|
|
|
6082
6136
|
"summary": "Delete a script tag",
|
|
6083
6137
|
"description": "Delete a distribution tag while retaining versions. latest cannot be deleted, versions and ranges are invalid tags, and deleting an absent valid tag is repeatable.",
|
|
6084
6138
|
"http": "DELETE",
|
|
6085
|
-
"path": "/automation/v1/scripts/{
|
|
6139
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
|
|
6086
6140
|
"streaming": "no",
|
|
6087
6141
|
"pagination": false,
|
|
6088
6142
|
"pathParams": [
|
|
6089
6143
|
{
|
|
6090
|
-
"name": "
|
|
6091
|
-
"sdkName": "
|
|
6144
|
+
"name": "namespace",
|
|
6145
|
+
"sdkName": "namespace",
|
|
6092
6146
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6093
6147
|
},
|
|
6094
6148
|
{
|
|
@@ -6110,13 +6164,13 @@ export const operations = [
|
|
|
6110
6164
|
"summary": "Set a script tag",
|
|
6111
6165
|
"description": "Point a distribution tag at an existing exact version; tags cannot be versions or version ranges. Moving latest can roll back a release and synchronizes workflow schedules.",
|
|
6112
6166
|
"http": "PUT",
|
|
6113
|
-
"path": "/automation/v1/scripts/{
|
|
6167
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
|
|
6114
6168
|
"streaming": "no",
|
|
6115
6169
|
"pagination": false,
|
|
6116
6170
|
"pathParams": [
|
|
6117
6171
|
{
|
|
6118
|
-
"name": "
|
|
6119
|
-
"sdkName": "
|
|
6172
|
+
"name": "namespace",
|
|
6173
|
+
"sdkName": "namespace",
|
|
6120
6174
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6121
6175
|
},
|
|
6122
6176
|
{
|
|
@@ -6149,13 +6203,13 @@ export const operations = [
|
|
|
6149
6203
|
"summary": "Restore a script",
|
|
6150
6204
|
"description": "Restore an archived definition with its versions and tags. The name is retained.",
|
|
6151
6205
|
"http": "POST",
|
|
6152
|
-
"path": "/automation/v1/scripts/{
|
|
6206
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/restore",
|
|
6153
6207
|
"streaming": "no",
|
|
6154
6208
|
"pagination": false,
|
|
6155
6209
|
"pathParams": [
|
|
6156
6210
|
{
|
|
6157
|
-
"name": "
|
|
6158
|
-
"sdkName": "
|
|
6211
|
+
"name": "namespace",
|
|
6212
|
+
"sdkName": "namespace",
|
|
6159
6213
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6160
6214
|
},
|
|
6161
6215
|
{
|
|
@@ -6176,13 +6230,13 @@ export const operations = [
|
|
|
6176
6230
|
"summary": "List script vault bindings",
|
|
6177
6231
|
"description": "Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
|
|
6178
6232
|
"http": "GET",
|
|
6179
|
-
"path": "/automation/v1/scripts/{
|
|
6233
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults",
|
|
6180
6234
|
"streaming": "no",
|
|
6181
6235
|
"pagination": false,
|
|
6182
6236
|
"pathParams": [
|
|
6183
6237
|
{
|
|
6184
|
-
"name": "
|
|
6185
|
-
"sdkName": "
|
|
6238
|
+
"name": "namespace",
|
|
6239
|
+
"sdkName": "namespace",
|
|
6186
6240
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6187
6241
|
},
|
|
6188
6242
|
{
|
|
@@ -6199,13 +6253,13 @@ export const operations = [
|
|
|
6199
6253
|
"summary": "Delete a script vault binding",
|
|
6200
6254
|
"description": "Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
|
|
6201
6255
|
"http": "DELETE",
|
|
6202
|
-
"path": "/automation/v1/scripts/{
|
|
6256
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
|
|
6203
6257
|
"streaming": "no",
|
|
6204
6258
|
"pagination": false,
|
|
6205
6259
|
"pathParams": [
|
|
6206
6260
|
{
|
|
6207
|
-
"name": "
|
|
6208
|
-
"sdkName": "
|
|
6261
|
+
"name": "namespace",
|
|
6262
|
+
"sdkName": "namespace",
|
|
6209
6263
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6210
6264
|
},
|
|
6211
6265
|
{
|
|
@@ -6227,13 +6281,13 @@ export const operations = [
|
|
|
6227
6281
|
"summary": "Set a script vault binding",
|
|
6228
6282
|
"description": "Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
|
|
6229
6283
|
"http": "PUT",
|
|
6230
|
-
"path": "/automation/v1/scripts/{
|
|
6284
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
|
|
6231
6285
|
"streaming": "no",
|
|
6232
6286
|
"pagination": false,
|
|
6233
6287
|
"pathParams": [
|
|
6234
6288
|
{
|
|
6235
|
-
"name": "
|
|
6236
|
-
"sdkName": "
|
|
6289
|
+
"name": "namespace",
|
|
6290
|
+
"sdkName": "namespace",
|
|
6237
6291
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6238
6292
|
},
|
|
6239
6293
|
{
|
|
@@ -6266,13 +6320,13 @@ export const operations = [
|
|
|
6266
6320
|
"summary": "List script versions",
|
|
6267
6321
|
"description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
|
|
6268
6322
|
"http": "GET",
|
|
6269
|
-
"path": "/automation/v1/scripts/{
|
|
6323
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions",
|
|
6270
6324
|
"streaming": "no",
|
|
6271
6325
|
"pagination": true,
|
|
6272
6326
|
"pathParams": [
|
|
6273
6327
|
{
|
|
6274
|
-
"name": "
|
|
6275
|
-
"sdkName": "
|
|
6328
|
+
"name": "namespace",
|
|
6329
|
+
"sdkName": "namespace",
|
|
6276
6330
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6277
6331
|
},
|
|
6278
6332
|
{
|
|
@@ -6312,15 +6366,15 @@ export const operations = [
|
|
|
6312
6366
|
"publish"
|
|
6313
6367
|
],
|
|
6314
6368
|
"summary": "Publish a script version",
|
|
6315
|
-
"description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead.
|
|
6369
|
+
"description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. Publishing removes +build metadata from the version number.",
|
|
6316
6370
|
"http": "POST",
|
|
6317
|
-
"path": "/automation/v1/scripts/{
|
|
6371
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions",
|
|
6318
6372
|
"streaming": "no",
|
|
6319
6373
|
"pagination": false,
|
|
6320
6374
|
"pathParams": [
|
|
6321
6375
|
{
|
|
6322
|
-
"name": "
|
|
6323
|
-
"sdkName": "
|
|
6376
|
+
"name": "namespace",
|
|
6377
|
+
"sdkName": "namespace",
|
|
6324
6378
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6325
6379
|
},
|
|
6326
6380
|
{
|
|
@@ -6341,13 +6395,13 @@ export const operations = [
|
|
|
6341
6395
|
"summary": "Get a script version",
|
|
6342
6396
|
"description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
|
|
6343
6397
|
"http": "GET",
|
|
6344
|
-
"path": "/automation/v1/scripts/{
|
|
6398
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}",
|
|
6345
6399
|
"streaming": "no",
|
|
6346
6400
|
"pagination": false,
|
|
6347
6401
|
"pathParams": [
|
|
6348
6402
|
{
|
|
6349
|
-
"name": "
|
|
6350
|
-
"sdkName": "
|
|
6403
|
+
"name": "namespace",
|
|
6404
|
+
"sdkName": "namespace",
|
|
6351
6405
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6352
6406
|
},
|
|
6353
6407
|
{
|
|
@@ -6369,13 +6423,13 @@ export const operations = [
|
|
|
6369
6423
|
"summary": "Deprecate a script version",
|
|
6370
6424
|
"description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
|
|
6371
6425
|
"http": "POST",
|
|
6372
|
-
"path": "/automation/v1/scripts/{
|
|
6426
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate",
|
|
6373
6427
|
"streaming": "no",
|
|
6374
6428
|
"pagination": false,
|
|
6375
6429
|
"pathParams": [
|
|
6376
6430
|
{
|
|
6377
|
-
"name": "
|
|
6378
|
-
"sdkName": "
|
|
6431
|
+
"name": "namespace",
|
|
6432
|
+
"sdkName": "namespace",
|
|
6379
6433
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6380
6434
|
},
|
|
6381
6435
|
{
|
|
@@ -6526,7 +6580,7 @@ export const operations = [
|
|
|
6526
6580
|
"expired"
|
|
6527
6581
|
],
|
|
6528
6582
|
"required": false,
|
|
6529
|
-
"description": "Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
|
|
6583
|
+
"description": "Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
|
|
6530
6584
|
},
|
|
6531
6585
|
{
|
|
6532
6586
|
"name": "labels",
|
|
@@ -6545,6 +6599,18 @@ export const operations = [
|
|
|
6545
6599
|
"type": "string",
|
|
6546
6600
|
"required": false,
|
|
6547
6601
|
"description": "Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone."
|
|
6602
|
+
},
|
|
6603
|
+
{
|
|
6604
|
+
"name": "status",
|
|
6605
|
+
"type": "array",
|
|
6606
|
+
"itemType": "string",
|
|
6607
|
+
"enum": [
|
|
6608
|
+
"enabled",
|
|
6609
|
+
"paused",
|
|
6610
|
+
"expired"
|
|
6611
|
+
],
|
|
6612
|
+
"required": false,
|
|
6613
|
+
"description": "Trigger status: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value. Giving it together with a different state returns 400."
|
|
6548
6614
|
}
|
|
6549
6615
|
]
|
|
6550
6616
|
},
|
|
@@ -6694,13 +6760,13 @@ export const operations = [
|
|
|
6694
6760
|
"summary": "Delete a trigger",
|
|
6695
6761
|
"description": "Delete the trigger and its firing history, returning 204. Runs already started are unaffected. Definition-managed triggers return 409 TRIGGER_MANAGED; remove schedule from the workflow and publish it again.",
|
|
6696
6762
|
"http": "DELETE",
|
|
6697
|
-
"path": "/automation/v1/triggers/{
|
|
6763
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6698
6764
|
"streaming": "no",
|
|
6699
6765
|
"pagination": false,
|
|
6700
6766
|
"pathParams": [
|
|
6701
6767
|
{
|
|
6702
|
-
"name": "
|
|
6703
|
-
"sdkName": "
|
|
6768
|
+
"name": "trigger_id",
|
|
6769
|
+
"sdkName": "trigger_id",
|
|
6704
6770
|
"description": "Trigger ID (trg_)."
|
|
6705
6771
|
}
|
|
6706
6772
|
],
|
|
@@ -6712,13 +6778,13 @@ export const operations = [
|
|
|
6712
6778
|
"summary": "Get a trigger",
|
|
6713
6779
|
"description": "Read schedule, state, upcoming times and latest firing. Use the ETag to update; the full webhook URL is not returned again.",
|
|
6714
6780
|
"http": "GET",
|
|
6715
|
-
"path": "/automation/v1/triggers/{
|
|
6781
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6716
6782
|
"streaming": "no",
|
|
6717
6783
|
"pagination": false,
|
|
6718
6784
|
"pathParams": [
|
|
6719
6785
|
{
|
|
6720
|
-
"name": "
|
|
6721
|
-
"sdkName": "
|
|
6786
|
+
"name": "trigger_id",
|
|
6787
|
+
"sdkName": "trigger_id",
|
|
6722
6788
|
"description": "Trigger ID (trg_)."
|
|
6723
6789
|
}
|
|
6724
6790
|
],
|
|
@@ -6730,13 +6796,13 @@ export const operations = [
|
|
|
6730
6796
|
"summary": "Update a trigger",
|
|
6731
6797
|
"description": "Update configuration with If-Match matching the current ETag, revalidating target input and schedule. kind is immutable and definition-managed triggers reject updates with TRIGGER_MANAGED.",
|
|
6732
6798
|
"http": "PATCH",
|
|
6733
|
-
"path": "/automation/v1/triggers/{
|
|
6799
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6734
6800
|
"streaming": "no",
|
|
6735
6801
|
"pagination": false,
|
|
6736
6802
|
"pathParams": [
|
|
6737
6803
|
{
|
|
6738
|
-
"name": "
|
|
6739
|
-
"sdkName": "
|
|
6804
|
+
"name": "trigger_id",
|
|
6805
|
+
"sdkName": "trigger_id",
|
|
6740
6806
|
"description": "Trigger ID (trg_)."
|
|
6741
6807
|
}
|
|
6742
6808
|
],
|
|
@@ -6847,13 +6913,13 @@ export const operations = [
|
|
|
6847
6913
|
"summary": "Fire a trigger now",
|
|
6848
6914
|
"description": "Fire once now and return a Firing, subject to current state, catchup window and overlap rules. Run-launch failures are recorded in the firing error.",
|
|
6849
6915
|
"http": "POST",
|
|
6850
|
-
"path": "/automation/v1/triggers/{
|
|
6916
|
+
"path": "/automation/v1/triggers/{trigger_id}/fire",
|
|
6851
6917
|
"streaming": "no",
|
|
6852
6918
|
"pagination": false,
|
|
6853
6919
|
"pathParams": [
|
|
6854
6920
|
{
|
|
6855
|
-
"name": "
|
|
6856
|
-
"sdkName": "
|
|
6921
|
+
"name": "trigger_id",
|
|
6922
|
+
"sdkName": "trigger_id",
|
|
6857
6923
|
"description": "Trigger ID (trg_)."
|
|
6858
6924
|
}
|
|
6859
6925
|
],
|
|
@@ -6865,13 +6931,13 @@ export const operations = [
|
|
|
6865
6931
|
"summary": "List trigger firings",
|
|
6866
6932
|
"description": "Read the last 30 days of firings newest first. Results include resolved versions, run IDs and failure details.",
|
|
6867
6933
|
"http": "GET",
|
|
6868
|
-
"path": "/automation/v1/triggers/{
|
|
6934
|
+
"path": "/automation/v1/triggers/{trigger_id}/firings",
|
|
6869
6935
|
"streaming": "no",
|
|
6870
6936
|
"pagination": true,
|
|
6871
6937
|
"pathParams": [
|
|
6872
6938
|
{
|
|
6873
|
-
"name": "
|
|
6874
|
-
"sdkName": "
|
|
6939
|
+
"name": "trigger_id",
|
|
6940
|
+
"sdkName": "trigger_id",
|
|
6875
6941
|
"description": "Trigger ID (trg_)."
|
|
6876
6942
|
}
|
|
6877
6943
|
],
|
|
@@ -6917,13 +6983,13 @@ export const operations = [
|
|
|
6917
6983
|
"summary": "Pause a trigger",
|
|
6918
6984
|
"description": "Pause new firings without terminating existing runs. Definition-managed triggers can also be paused.",
|
|
6919
6985
|
"http": "POST",
|
|
6920
|
-
"path": "/automation/v1/triggers/{
|
|
6986
|
+
"path": "/automation/v1/triggers/{trigger_id}/pause",
|
|
6921
6987
|
"streaming": "no",
|
|
6922
6988
|
"pagination": false,
|
|
6923
6989
|
"pathParams": [
|
|
6924
6990
|
{
|
|
6925
|
-
"name": "
|
|
6926
|
-
"sdkName": "
|
|
6991
|
+
"name": "trigger_id",
|
|
6992
|
+
"sdkName": "trigger_id",
|
|
6927
6993
|
"description": "Trigger ID (trg_)."
|
|
6928
6994
|
}
|
|
6929
6995
|
],
|
|
@@ -6935,13 +7001,13 @@ export const operations = [
|
|
|
6935
7001
|
"summary": "Resume a trigger",
|
|
6936
7002
|
"description": "Resume firings and reset consecutive failures. Triggers past their end time or finished one-time schedules remain expired; a full enabled-trigger quota returns TRIGGER_LIMIT.",
|
|
6937
7003
|
"http": "POST",
|
|
6938
|
-
"path": "/automation/v1/triggers/{
|
|
7004
|
+
"path": "/automation/v1/triggers/{trigger_id}/resume",
|
|
6939
7005
|
"streaming": "no",
|
|
6940
7006
|
"pagination": false,
|
|
6941
7007
|
"pathParams": [
|
|
6942
7008
|
{
|
|
6943
|
-
"name": "
|
|
6944
|
-
"sdkName": "
|
|
7009
|
+
"name": "trigger_id",
|
|
7010
|
+
"sdkName": "trigger_id",
|
|
6945
7011
|
"description": "Trigger ID (trg_)."
|
|
6946
7012
|
}
|
|
6947
7013
|
],
|
|
@@ -6953,13 +7019,13 @@ export const operations = [
|
|
|
6953
7019
|
"summary": "Rotate a webhook URL",
|
|
6954
7020
|
"description": "For webhook triggers only: invalidate the old token immediately and return a new full webhook_url. Later detail reads do not reveal the full URL.",
|
|
6955
7021
|
"http": "POST",
|
|
6956
|
-
"path": "/automation/v1/triggers/{
|
|
7022
|
+
"path": "/automation/v1/triggers/{trigger_id}/rotate-webhook",
|
|
6957
7023
|
"streaming": "no",
|
|
6958
7024
|
"pagination": false,
|
|
6959
7025
|
"pathParams": [
|
|
6960
7026
|
{
|
|
6961
|
-
"name": "
|
|
6962
|
-
"sdkName": "
|
|
7027
|
+
"name": "trigger_id",
|
|
7028
|
+
"sdkName": "trigger_id",
|
|
6963
7029
|
"description": "Trigger ID (trg_)."
|
|
6964
7030
|
}
|
|
6965
7031
|
],
|
|
@@ -7106,9 +7172,9 @@ export const operations = [
|
|
|
7106
7172
|
},
|
|
7107
7173
|
{
|
|
7108
7174
|
"name": "draft",
|
|
7109
|
-
"type": "
|
|
7175
|
+
"type": "object",
|
|
7110
7176
|
"required": false,
|
|
7111
|
-
"description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
|
|
7177
|
+
"description": "Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }."
|
|
7112
7178
|
},
|
|
7113
7179
|
{
|
|
7114
7180
|
"name": "labels",
|
|
@@ -7123,15 +7189,15 @@ export const operations = [
|
|
|
7123
7189
|
"resource": "automation.workflows",
|
|
7124
7190
|
"method": "retrieve",
|
|
7125
7191
|
"summary": "Get a workflow",
|
|
7126
|
-
"description": "Read workflow details and draft source. The
|
|
7192
|
+
"description": "Read workflow details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
|
|
7127
7193
|
"http": "GET",
|
|
7128
|
-
"path": "/automation/v1/workflows/{
|
|
7194
|
+
"path": "/automation/v1/workflows/{namespace}/{name}",
|
|
7129
7195
|
"streaming": "no",
|
|
7130
7196
|
"pagination": false,
|
|
7131
7197
|
"pathParams": [
|
|
7132
7198
|
{
|
|
7133
|
-
"name": "
|
|
7134
|
-
"sdkName": "
|
|
7199
|
+
"name": "namespace",
|
|
7200
|
+
"sdkName": "namespace",
|
|
7135
7201
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7136
7202
|
},
|
|
7137
7203
|
{
|
|
@@ -7146,15 +7212,15 @@ export const operations = [
|
|
|
7146
7212
|
"resource": "automation.workflows",
|
|
7147
7213
|
"method": "update",
|
|
7148
7214
|
"summary": "Update a workflow draft",
|
|
7149
|
-
"description": "Update description, labels or draft with the current draft revision in
|
|
7215
|
+
"description": "Update description, labels or draft with the current draft revision in the body as draft.revision, taken from the get-workflow response (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
|
|
7150
7216
|
"http": "PATCH",
|
|
7151
|
-
"path": "/automation/v1/workflows/{
|
|
7217
|
+
"path": "/automation/v1/workflows/{namespace}/{name}",
|
|
7152
7218
|
"streaming": "no",
|
|
7153
7219
|
"pagination": false,
|
|
7154
7220
|
"pathParams": [
|
|
7155
7221
|
{
|
|
7156
|
-
"name": "
|
|
7157
|
-
"sdkName": "
|
|
7222
|
+
"name": "namespace",
|
|
7223
|
+
"sdkName": "namespace",
|
|
7158
7224
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7159
7225
|
},
|
|
7160
7226
|
{
|
|
@@ -7168,8 +7234,8 @@ export const operations = [
|
|
|
7168
7234
|
{
|
|
7169
7235
|
"name": "If-Match",
|
|
7170
7236
|
"type": "string",
|
|
7171
|
-
"required":
|
|
7172
|
-
"description": "
|
|
7237
|
+
"required": false,
|
|
7238
|
+
"description": "Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412."
|
|
7173
7239
|
}
|
|
7174
7240
|
],
|
|
7175
7241
|
"body": {
|
|
@@ -7189,9 +7255,9 @@ export const operations = [
|
|
|
7189
7255
|
},
|
|
7190
7256
|
{
|
|
7191
7257
|
"name": "draft",
|
|
7192
|
-
"type": "
|
|
7258
|
+
"type": "object",
|
|
7193
7259
|
"required": false,
|
|
7194
|
-
"description": "
|
|
7260
|
+
"description": "Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match."
|
|
7195
7261
|
}
|
|
7196
7262
|
]
|
|
7197
7263
|
}
|
|
@@ -7202,13 +7268,13 @@ export const operations = [
|
|
|
7202
7268
|
"summary": "Archive a workflow",
|
|
7203
7269
|
"description": "Keep the name, versions and draft while archiving. The default list hides it and new target resolution and run requests reject the archived target.",
|
|
7204
7270
|
"http": "POST",
|
|
7205
|
-
"path": "/automation/v1/workflows/{
|
|
7271
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/archive",
|
|
7206
7272
|
"streaming": "no",
|
|
7207
7273
|
"pagination": false,
|
|
7208
7274
|
"pathParams": [
|
|
7209
7275
|
{
|
|
7210
|
-
"name": "
|
|
7211
|
-
"sdkName": "
|
|
7276
|
+
"name": "namespace",
|
|
7277
|
+
"sdkName": "namespace",
|
|
7212
7278
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7213
7279
|
},
|
|
7214
7280
|
{
|
|
@@ -7229,13 +7295,13 @@ export const operations = [
|
|
|
7229
7295
|
"summary": "List workflow tags",
|
|
7230
7296
|
"description": "Read the exact version for each distribution tag. Results include the update time and updater.",
|
|
7231
7297
|
"http": "GET",
|
|
7232
|
-
"path": "/automation/v1/workflows/{
|
|
7298
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags",
|
|
7233
7299
|
"streaming": "no",
|
|
7234
7300
|
"pagination": false,
|
|
7235
7301
|
"pathParams": [
|
|
7236
7302
|
{
|
|
7237
|
-
"name": "
|
|
7238
|
-
"sdkName": "
|
|
7303
|
+
"name": "namespace",
|
|
7304
|
+
"sdkName": "namespace",
|
|
7239
7305
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7240
7306
|
},
|
|
7241
7307
|
{
|
|
@@ -7252,13 +7318,13 @@ export const operations = [
|
|
|
7252
7318
|
"summary": "Delete a workflow tag",
|
|
7253
7319
|
"description": "Delete a distribution tag while retaining versions. latest cannot be deleted, versions and ranges are invalid tags, and deleting an absent valid tag is repeatable.",
|
|
7254
7320
|
"http": "DELETE",
|
|
7255
|
-
"path": "/automation/v1/workflows/{
|
|
7321
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
|
|
7256
7322
|
"streaming": "no",
|
|
7257
7323
|
"pagination": false,
|
|
7258
7324
|
"pathParams": [
|
|
7259
7325
|
{
|
|
7260
|
-
"name": "
|
|
7261
|
-
"sdkName": "
|
|
7326
|
+
"name": "namespace",
|
|
7327
|
+
"sdkName": "namespace",
|
|
7262
7328
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7263
7329
|
},
|
|
7264
7330
|
{
|
|
@@ -7280,13 +7346,13 @@ export const operations = [
|
|
|
7280
7346
|
"summary": "Set a workflow tag",
|
|
7281
7347
|
"description": "Point a distribution tag at an existing exact version; tags cannot be versions or version ranges. Moving latest can roll back a release and synchronizes workflow schedules.",
|
|
7282
7348
|
"http": "PUT",
|
|
7283
|
-
"path": "/automation/v1/workflows/{
|
|
7349
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
|
|
7284
7350
|
"streaming": "no",
|
|
7285
7351
|
"pagination": false,
|
|
7286
7352
|
"pathParams": [
|
|
7287
7353
|
{
|
|
7288
|
-
"name": "
|
|
7289
|
-
"sdkName": "
|
|
7354
|
+
"name": "namespace",
|
|
7355
|
+
"sdkName": "namespace",
|
|
7290
7356
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7291
7357
|
},
|
|
7292
7358
|
{
|
|
@@ -7319,13 +7385,13 @@ export const operations = [
|
|
|
7319
7385
|
"summary": "Restore a workflow",
|
|
7320
7386
|
"description": "Restore an archived definition with its versions and tags. The name is retained.",
|
|
7321
7387
|
"http": "POST",
|
|
7322
|
-
"path": "/automation/v1/workflows/{
|
|
7388
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/restore",
|
|
7323
7389
|
"streaming": "no",
|
|
7324
7390
|
"pagination": false,
|
|
7325
7391
|
"pathParams": [
|
|
7326
7392
|
{
|
|
7327
|
-
"name": "
|
|
7328
|
-
"sdkName": "
|
|
7393
|
+
"name": "namespace",
|
|
7394
|
+
"sdkName": "namespace",
|
|
7329
7395
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7330
7396
|
},
|
|
7331
7397
|
{
|
|
@@ -7346,13 +7412,13 @@ export const operations = [
|
|
|
7346
7412
|
"summary": "List workflow vault bindings",
|
|
7347
7413
|
"description": "Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
|
|
7348
7414
|
"http": "GET",
|
|
7349
|
-
"path": "/automation/v1/workflows/{
|
|
7415
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults",
|
|
7350
7416
|
"streaming": "no",
|
|
7351
7417
|
"pagination": false,
|
|
7352
7418
|
"pathParams": [
|
|
7353
7419
|
{
|
|
7354
|
-
"name": "
|
|
7355
|
-
"sdkName": "
|
|
7420
|
+
"name": "namespace",
|
|
7421
|
+
"sdkName": "namespace",
|
|
7356
7422
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7357
7423
|
},
|
|
7358
7424
|
{
|
|
@@ -7369,13 +7435,13 @@ export const operations = [
|
|
|
7369
7435
|
"summary": "Delete a workflow vault binding",
|
|
7370
7436
|
"description": "Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
|
|
7371
7437
|
"http": "DELETE",
|
|
7372
|
-
"path": "/automation/v1/workflows/{
|
|
7438
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
|
|
7373
7439
|
"streaming": "no",
|
|
7374
7440
|
"pagination": false,
|
|
7375
7441
|
"pathParams": [
|
|
7376
7442
|
{
|
|
7377
|
-
"name": "
|
|
7378
|
-
"sdkName": "
|
|
7443
|
+
"name": "namespace",
|
|
7444
|
+
"sdkName": "namespace",
|
|
7379
7445
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7380
7446
|
},
|
|
7381
7447
|
{
|
|
@@ -7397,13 +7463,13 @@ export const operations = [
|
|
|
7397
7463
|
"summary": "Set a workflow vault binding",
|
|
7398
7464
|
"description": "Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
|
|
7399
7465
|
"http": "PUT",
|
|
7400
|
-
"path": "/automation/v1/workflows/{
|
|
7466
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
|
|
7401
7467
|
"streaming": "no",
|
|
7402
7468
|
"pagination": false,
|
|
7403
7469
|
"pathParams": [
|
|
7404
7470
|
{
|
|
7405
|
-
"name": "
|
|
7406
|
-
"sdkName": "
|
|
7471
|
+
"name": "namespace",
|
|
7472
|
+
"sdkName": "namespace",
|
|
7407
7473
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7408
7474
|
},
|
|
7409
7475
|
{
|
|
@@ -7436,13 +7502,13 @@ export const operations = [
|
|
|
7436
7502
|
"summary": "List workflow versions",
|
|
7437
7503
|
"description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
|
|
7438
7504
|
"http": "GET",
|
|
7439
|
-
"path": "/automation/v1/workflows/{
|
|
7505
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions",
|
|
7440
7506
|
"streaming": "no",
|
|
7441
7507
|
"pagination": true,
|
|
7442
7508
|
"pathParams": [
|
|
7443
7509
|
{
|
|
7444
|
-
"name": "
|
|
7445
|
-
"sdkName": "
|
|
7510
|
+
"name": "namespace",
|
|
7511
|
+
"sdkName": "namespace",
|
|
7446
7512
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7447
7513
|
},
|
|
7448
7514
|
{
|
|
@@ -7482,15 +7548,15 @@ export const operations = [
|
|
|
7482
7548
|
"publish"
|
|
7483
7549
|
],
|
|
7484
7550
|
"summary": "Publish a workflow version",
|
|
7485
|
-
"description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead.
|
|
7551
|
+
"description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).",
|
|
7486
7552
|
"http": "POST",
|
|
7487
|
-
"path": "/automation/v1/workflows/{
|
|
7553
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions",
|
|
7488
7554
|
"streaming": "no",
|
|
7489
7555
|
"pagination": false,
|
|
7490
7556
|
"pathParams": [
|
|
7491
7557
|
{
|
|
7492
|
-
"name": "
|
|
7493
|
-
"sdkName": "
|
|
7558
|
+
"name": "namespace",
|
|
7559
|
+
"sdkName": "namespace",
|
|
7494
7560
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7495
7561
|
},
|
|
7496
7562
|
{
|
|
@@ -7511,13 +7577,13 @@ export const operations = [
|
|
|
7511
7577
|
"summary": "Get a workflow version",
|
|
7512
7578
|
"description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
|
|
7513
7579
|
"http": "GET",
|
|
7514
|
-
"path": "/automation/v1/workflows/{
|
|
7580
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}",
|
|
7515
7581
|
"streaming": "no",
|
|
7516
7582
|
"pagination": false,
|
|
7517
7583
|
"pathParams": [
|
|
7518
7584
|
{
|
|
7519
|
-
"name": "
|
|
7520
|
-
"sdkName": "
|
|
7585
|
+
"name": "namespace",
|
|
7586
|
+
"sdkName": "namespace",
|
|
7521
7587
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7522
7588
|
},
|
|
7523
7589
|
{
|
|
@@ -7539,13 +7605,13 @@ export const operations = [
|
|
|
7539
7605
|
"summary": "Deprecate a workflow version",
|
|
7540
7606
|
"description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
|
|
7541
7607
|
"http": "POST",
|
|
7542
|
-
"path": "/automation/v1/workflows/{
|
|
7608
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate",
|
|
7543
7609
|
"streaming": "no",
|
|
7544
7610
|
"pagination": false,
|
|
7545
7611
|
"pathParams": [
|
|
7546
7612
|
{
|
|
7547
|
-
"name": "
|
|
7548
|
-
"sdkName": "
|
|
7613
|
+
"name": "namespace",
|
|
7614
|
+
"sdkName": "namespace",
|
|
7549
7615
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7550
7616
|
},
|
|
7551
7617
|
{
|
|
@@ -7584,11 +7650,200 @@ export const operations = [
|
|
|
7584
7650
|
"pathParams": [],
|
|
7585
7651
|
"query": []
|
|
7586
7652
|
},
|
|
7653
|
+
{
|
|
7654
|
+
"resource": "browser.byob.browsers",
|
|
7655
|
+
"method": "list",
|
|
7656
|
+
"summary": "列出自带浏览器",
|
|
7657
|
+
"description": "分页列出当前组织已配对且未断开的自带浏览器,按 ID 升序。将 nextCursor 原样传入读取下一页,直到其为 null。",
|
|
7658
|
+
"http": "GET",
|
|
7659
|
+
"path": "/browser/v1/byob/browsers",
|
|
7660
|
+
"streaming": "no",
|
|
7661
|
+
"pagination": false,
|
|
7662
|
+
"pathParams": [],
|
|
7663
|
+
"query": [
|
|
7664
|
+
{
|
|
7665
|
+
"name": "cursor",
|
|
7666
|
+
"type": "string",
|
|
7667
|
+
"required": false,
|
|
7668
|
+
"description": "上一页返回的 nextCursor,原样传入;省略时读取第一页。"
|
|
7669
|
+
},
|
|
7670
|
+
{
|
|
7671
|
+
"name": "limit",
|
|
7672
|
+
"type": "integer",
|
|
7673
|
+
"required": false,
|
|
7674
|
+
"description": "每页最多返回的浏览器数量;默认 50,范围 1–100。"
|
|
7675
|
+
}
|
|
7676
|
+
]
|
|
7677
|
+
},
|
|
7678
|
+
{
|
|
7679
|
+
"resource": "browser.byob.browsers",
|
|
7680
|
+
"method": "retrieve",
|
|
7681
|
+
"summary": "读取自带浏览器",
|
|
7682
|
+
"description": "读取当前组织的指定自带浏览器,包括已断开的(revoked_at 不为 null)。不存在或不属于当前组织时返回 404 BROWSER_NOT_FOUND。",
|
|
7683
|
+
"http": "GET",
|
|
7684
|
+
"path": "/browser/v1/byob/browsers/{browser_id}",
|
|
7685
|
+
"streaming": "no",
|
|
7686
|
+
"pagination": false,
|
|
7687
|
+
"pathParams": [
|
|
7688
|
+
{
|
|
7689
|
+
"name": "browser_id",
|
|
7690
|
+
"sdkName": "browser_id",
|
|
7691
|
+
"description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
|
|
7692
|
+
}
|
|
7693
|
+
],
|
|
7694
|
+
"query": []
|
|
7695
|
+
},
|
|
7696
|
+
{
|
|
7697
|
+
"resource": "browser.byob.browsers",
|
|
7698
|
+
"method": "update",
|
|
7699
|
+
"summary": "更新自带浏览器的名称、授权智能体与允许站点",
|
|
7700
|
+
"description": "给自带浏览器改名,只改请求里出现的字段。已断开的浏览器返回 410 BROWSER_REVOKED,需要重新配对。",
|
|
7701
|
+
"http": "PATCH",
|
|
7702
|
+
"path": "/browser/v1/byob/browsers/{browser_id}",
|
|
7703
|
+
"streaming": "no",
|
|
7704
|
+
"pagination": false,
|
|
7705
|
+
"pathParams": [
|
|
7706
|
+
{
|
|
7707
|
+
"name": "browser_id",
|
|
7708
|
+
"sdkName": "browser_id",
|
|
7709
|
+
"description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
|
|
7710
|
+
}
|
|
7711
|
+
],
|
|
7712
|
+
"query": [],
|
|
7713
|
+
"body": {
|
|
7714
|
+
"required": true,
|
|
7715
|
+
"fields": [
|
|
7716
|
+
{
|
|
7717
|
+
"name": "name",
|
|
7718
|
+
"type": "string",
|
|
7719
|
+
"required": false,
|
|
7720
|
+
"description": "新的显示名称,1–80 个字符。"
|
|
7721
|
+
}
|
|
7722
|
+
]
|
|
7723
|
+
}
|
|
7724
|
+
},
|
|
7725
|
+
{
|
|
7726
|
+
"resource": "browser.byob.browsers.disconnect",
|
|
7727
|
+
"method": "create",
|
|
7728
|
+
"summary": "断开自带浏览器",
|
|
7729
|
+
"description": "断开自带浏览器:之后没有任何智能体能再驱动它,要用必须重新配对。可重复调用,结果相同;功能开关关闭时也能断开。",
|
|
7730
|
+
"http": "POST",
|
|
7731
|
+
"path": "/browser/v1/byob/browsers/{browser_id}/disconnect",
|
|
7732
|
+
"streaming": "no",
|
|
7733
|
+
"pagination": false,
|
|
7734
|
+
"pathParams": [
|
|
7735
|
+
{
|
|
7736
|
+
"name": "browser_id",
|
|
7737
|
+
"sdkName": "browser_id",
|
|
7738
|
+
"description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
|
|
7739
|
+
}
|
|
7740
|
+
],
|
|
7741
|
+
"query": []
|
|
7742
|
+
},
|
|
7743
|
+
{
|
|
7744
|
+
"resource": "browser.byob.pairings",
|
|
7745
|
+
"method": "create",
|
|
7746
|
+
"summary": "创建浏览器配对码",
|
|
7747
|
+
"description": "为一个要接入的 Chrome 或 Edge 创建 8 位配对码,一次性、10 分钟有效;把它交给用户,由用户在浏览器扩展里输入或由 Console 直接交给扩展,用户点「允许」后配对完成。需要组织已开通 BYOB,否则返回 501 PROVIDER_UNSUPPORTED。",
|
|
7748
|
+
"http": "POST",
|
|
7749
|
+
"path": "/browser/v1/byob/pairings",
|
|
7750
|
+
"streaming": "no",
|
|
7751
|
+
"pagination": false,
|
|
7752
|
+
"pathParams": [],
|
|
7753
|
+
"query": []
|
|
7754
|
+
},
|
|
7755
|
+
{
|
|
7756
|
+
"resource": "browser.byob.pairings",
|
|
7757
|
+
"method": "retrieve",
|
|
7758
|
+
"summary": "读取浏览器配对授权页信息",
|
|
7759
|
+
"description": "扩展的授权页读取配对码对应的组织与发起人,让用户确认后再点「允许」。不需要 API Key,配对码就是凭证;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND,不区分原因。",
|
|
7760
|
+
"http": "GET",
|
|
7761
|
+
"path": "/browser/v1/byob/pairings/{code}",
|
|
7762
|
+
"streaming": "no",
|
|
7763
|
+
"pagination": false,
|
|
7764
|
+
"pathParams": [
|
|
7765
|
+
{
|
|
7766
|
+
"name": "code",
|
|
7767
|
+
"sdkName": "code",
|
|
7768
|
+
"description": "8 位配对码,来自创建配对码的结果。"
|
|
7769
|
+
}
|
|
7770
|
+
],
|
|
7771
|
+
"query": []
|
|
7772
|
+
},
|
|
7773
|
+
{
|
|
7774
|
+
"resource": "browser.byob.pairings.claim",
|
|
7775
|
+
"method": "create",
|
|
7776
|
+
"summary": "认领浏览器配对码",
|
|
7777
|
+
"description": "用户点「允许」后,扩展用配对码认领一次,登记这个浏览器并取得 browser_id 和要拨入的 link_url。不需要 API Key,配对码就是凭证,只能使用一次;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND。请求体不合格时返回 400 且不消耗配对码。",
|
|
7778
|
+
"http": "POST",
|
|
7779
|
+
"path": "/browser/v1/byob/pairings/{code}/claim",
|
|
7780
|
+
"streaming": "no",
|
|
7781
|
+
"pagination": false,
|
|
7782
|
+
"pathParams": [
|
|
7783
|
+
{
|
|
7784
|
+
"name": "code",
|
|
7785
|
+
"sdkName": "code",
|
|
7786
|
+
"description": "8 位配对码,来自创建配对码的结果。"
|
|
7787
|
+
}
|
|
7788
|
+
],
|
|
7789
|
+
"query": [],
|
|
7790
|
+
"body": {
|
|
7791
|
+
"required": true,
|
|
7792
|
+
"fields": [
|
|
7793
|
+
{
|
|
7794
|
+
"name": "browser",
|
|
7795
|
+
"type": "string",
|
|
7796
|
+
"enum": [
|
|
7797
|
+
"chrome",
|
|
7798
|
+
"edge"
|
|
7799
|
+
],
|
|
7800
|
+
"required": true,
|
|
7801
|
+
"description": "要登记的浏览器种类,只支持 Chrome 和 Edge。"
|
|
7802
|
+
},
|
|
7803
|
+
{
|
|
7804
|
+
"name": "version",
|
|
7805
|
+
"type": "string",
|
|
7806
|
+
"required": true,
|
|
7807
|
+
"description": "浏览器版本号,1–64 个字符。"
|
|
7808
|
+
},
|
|
7809
|
+
{
|
|
7810
|
+
"name": "os",
|
|
7811
|
+
"type": "string",
|
|
7812
|
+
"required": true,
|
|
7813
|
+
"description": "操作系统,1–64 个字符。"
|
|
7814
|
+
},
|
|
7815
|
+
{
|
|
7816
|
+
"name": "name",
|
|
7817
|
+
"type": "string",
|
|
7818
|
+
"required": true,
|
|
7819
|
+
"description": "浏览器的显示名称,1–80 个字符。"
|
|
7820
|
+
},
|
|
7821
|
+
{
|
|
7822
|
+
"name": "public_key",
|
|
7823
|
+
"type": "string",
|
|
7824
|
+
"required": true,
|
|
7825
|
+
"description": "扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。"
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
"name": "extension_id",
|
|
7829
|
+
"type": "string",
|
|
7830
|
+
"required": true,
|
|
7831
|
+
"description": "扩展 ID,1–64 个字符。"
|
|
7832
|
+
},
|
|
7833
|
+
{
|
|
7834
|
+
"name": "install_key",
|
|
7835
|
+
"type": "string",
|
|
7836
|
+
"required": false,
|
|
7837
|
+
"description": "扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。"
|
|
7838
|
+
}
|
|
7839
|
+
]
|
|
7840
|
+
}
|
|
7841
|
+
},
|
|
7587
7842
|
{
|
|
7588
7843
|
"resource": "browser.connect",
|
|
7589
7844
|
"method": "retrieve",
|
|
7590
7845
|
"summary": "连接云端浏览器",
|
|
7591
|
-
"description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl
|
|
7846
|
+
"description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl(两者都是该会话在 Console 的会话页)。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。",
|
|
7592
7847
|
"http": "GET",
|
|
7593
7848
|
"path": "/browser/v1/connect",
|
|
7594
7849
|
"streaming": "no",
|
|
@@ -7713,6 +7968,12 @@ export const operations = [
|
|
|
7713
7968
|
"type": "object",
|
|
7714
7969
|
"required": false,
|
|
7715
7970
|
"description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。"
|
|
7971
|
+
},
|
|
7972
|
+
{
|
|
7973
|
+
"name": "proxy",
|
|
7974
|
+
"type": "object",
|
|
7975
|
+
"required": false,
|
|
7976
|
+
"description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。"
|
|
7716
7977
|
}
|
|
7717
7978
|
]
|
|
7718
7979
|
}
|
|
@@ -7784,6 +8045,12 @@ export const operations = [
|
|
|
7784
8045
|
"type": "object",
|
|
7785
8046
|
"required": false,
|
|
7786
8047
|
"description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。"
|
|
8048
|
+
},
|
|
8049
|
+
{
|
|
8050
|
+
"name": "proxy",
|
|
8051
|
+
"type": "object",
|
|
8052
|
+
"required": false,
|
|
8053
|
+
"description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。"
|
|
7787
8054
|
}
|
|
7788
8055
|
]
|
|
7789
8056
|
}
|
|
@@ -7792,7 +8059,7 @@ export const operations = [
|
|
|
7792
8059
|
"resource": "browser.live",
|
|
7793
8060
|
"method": "retrieve",
|
|
7794
8061
|
"summary": "打开实时浏览器画面",
|
|
7795
|
-
"description": "
|
|
8062
|
+
"description": "旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。",
|
|
7796
8063
|
"http": "GET",
|
|
7797
8064
|
"path": "/browser/v1/live/{sessionId}/{pageId}",
|
|
7798
8065
|
"streaming": "no",
|
|
@@ -7890,7 +8157,7 @@ export const operations = [
|
|
|
7890
8157
|
"resource": "browser.sessions",
|
|
7891
8158
|
"method": "create",
|
|
7892
8159
|
"summary": "创建浏览器会话",
|
|
7893
|
-
"description": "创建云端 Chrome,返回自带凭证的 connectUrl
|
|
8160
|
+
"description": "创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。请求体里不认识的字段返回 400 INVALID_PARAMS 并写明字段名,不会被静默忽略;登录态写在 browserSettings.context({ id, persist }),写在顶层会被拒绝。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
|
|
7894
8161
|
"http": "POST",
|
|
7895
8162
|
"path": "/browser/v1/sessions",
|
|
7896
8163
|
"streaming": "no",
|
|
@@ -7914,7 +8181,7 @@ export const operations = [
|
|
|
7914
8181
|
"organization"
|
|
7915
8182
|
],
|
|
7916
8183
|
"required": false,
|
|
7917
|
-
"description": "谁能看到这个新会话:默认 private 只有创建者;organization
|
|
8184
|
+
"description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。"
|
|
7918
8185
|
},
|
|
7919
8186
|
{
|
|
7920
8187
|
"name": "keepAlive",
|
|
@@ -7938,7 +8205,13 @@ export const operations = [
|
|
|
7938
8205
|
"name": "proxies",
|
|
7939
8206
|
"type": "object",
|
|
7940
8207
|
"required": false,
|
|
7941
|
-
"description": "
|
|
8208
|
+
"description": "让会话经一个固定的外部 HTTP 代理(如住宅 IP)出网:[{type: 'external', server: 'host:port', username?, password_secret?}];省略、false 或 [{type: 'none'}] 表示不用代理。只能有一个代理条目;密码推荐用 password_secret 引用保管库(只在连接代理主机时兑换),也可以直接给明文 password,二者不能同时出现。带代理的会话一定在我们的 Chrome 容器里运行,需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED;不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS(格式错误、私网地址、用户名没有密码等同样返回 400,reason 写明原因)。其它代理类型和 socks5 返回 501 PROVIDER_UNSUPPORTED。要让某个账号始终从同一个出口地址出去,把代理绑定在登录态上(contexts 的 proxy),不必每次会话重复传。"
|
|
8209
|
+
},
|
|
8210
|
+
{
|
|
8211
|
+
"name": "source",
|
|
8212
|
+
"type": "object",
|
|
8213
|
+
"required": false,
|
|
8214
|
+
"description": "选择浏览器后端,只有 container 支持外部代理:cloud(Browser Run)和 byob 都不能用代理。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带 proxies(或用登录态绑定的代理),也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。"
|
|
7942
8215
|
},
|
|
7943
8216
|
{
|
|
7944
8217
|
"name": "region",
|
|
@@ -8034,7 +8307,7 @@ export const operations = [
|
|
|
8034
8307
|
"resource": "browser.sessions.actions",
|
|
8035
8308
|
"method": "create",
|
|
8036
8309
|
"summary": "执行页面动作",
|
|
8037
|
-
"description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll
|
|
8310
|
+
"description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;网络层用 route、unroute、routes 拦截请求(对标 Playwright 的 context.route 与 CDP Fetch 域):规则挂在会话上,open、reload、新开标签页之后仍然有效,会话结束时清除,多条规则都匹配时后注册的优先;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。",
|
|
8038
8311
|
"http": "POST",
|
|
8039
8312
|
"path": "/browser/v1/sessions/{sessionId}/actions",
|
|
8040
8313
|
"streaming": "no",
|
|
@@ -8575,6 +8848,41 @@ export const operations = [
|
|
|
8575
8848
|
}
|
|
8576
8849
|
]
|
|
8577
8850
|
},
|
|
8851
|
+
{
|
|
8852
|
+
"resource": "canvas.canvases.processes.steps",
|
|
8853
|
+
"method": "retrieveBrief",
|
|
8854
|
+
"summary": "Read a process step brief",
|
|
8855
|
+
"description": "Read everything needed to fill one step of a canvas process, in one call, before writing its output. A process is a frame whose steps are requirement blocks; this read returns the step's requirement and derived state (waiting, ready or filled), its linked materials resolved to content, the process's shared context, the outputs of the steps it needs, and its own current outputs. Supply process_id from canvases.state or nodes.list (the process frame, or the instance of a library process that is this production) and the step key from a requirement. To fill the step, create the output element and write metadata.output through canvases.execute; this read stores nothing. A platform object linked as an embed node comes back as its reference only; read it from its own domain. Links that point at deleted nodes are dropped from the lists and named in issues.",
|
|
8856
|
+
"http": "GET",
|
|
8857
|
+
"path": "/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief",
|
|
8858
|
+
"streaming": "no",
|
|
8859
|
+
"pagination": false,
|
|
8860
|
+
"pathParams": [
|
|
8861
|
+
{
|
|
8862
|
+
"name": "canvas_id",
|
|
8863
|
+
"sdkName": "canvas_id",
|
|
8864
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
8865
|
+
},
|
|
8866
|
+
{
|
|
8867
|
+
"name": "process_id",
|
|
8868
|
+
"sdkName": "process_id",
|
|
8869
|
+
"description": "Node id of the process frame, or of the ref instance that is one production of a library process; the outputs of a production point at this id."
|
|
8870
|
+
},
|
|
8871
|
+
{
|
|
8872
|
+
"name": "step_id",
|
|
8873
|
+
"sdkName": "step_id",
|
|
8874
|
+
"description": "Step key from the requirement block, such as 1 or 9a; not the node id of the step frame."
|
|
8875
|
+
}
|
|
8876
|
+
],
|
|
8877
|
+
"query": [
|
|
8878
|
+
{
|
|
8879
|
+
"name": "version",
|
|
8880
|
+
"type": "string",
|
|
8881
|
+
"required": false,
|
|
8882
|
+
"description": "Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND."
|
|
8883
|
+
}
|
|
8884
|
+
]
|
|
8885
|
+
},
|
|
8578
8886
|
{
|
|
8579
8887
|
"resource": "canvas.canvases.versions",
|
|
8580
8888
|
"method": "list",
|
|
@@ -9122,7 +9430,7 @@ export const operations = [
|
|
|
9122
9430
|
"resource": "content.playbackSessions",
|
|
9123
9431
|
"method": "create",
|
|
9124
9432
|
"summary": "Open a playback session",
|
|
9125
|
-
"description": "Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
9433
|
+
"description": "Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (its host depends on the viewer's region, https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8 or a mainland edge address such as https://media-hk.deepractice.cn/play/{content_id}/{capability}/master.m3u8; pass it to the player exactly as returned), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
9126
9434
|
"http": "POST",
|
|
9127
9435
|
"path": "/content/v1/playback/sessions",
|
|
9128
9436
|
"streaming": "no",
|
|
@@ -10212,7 +10520,7 @@ export const operations = [
|
|
|
10212
10520
|
"resource": "crm.properties",
|
|
10213
10521
|
"method": "list",
|
|
10214
10522
|
"summary": "List properties",
|
|
10215
|
-
"description": "Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.",
|
|
10523
|
+
"description": "Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false. Every organization starts with preset definitions. For contacts these are the HubSpot default contact properties that a person or the API can write - salutation, firstname, lastname, email, phone, mobilephone, fax, company, jobtitle, website, address, city, state, zip, country, industry, numemployees, annualrevenue and message - plus hubspot_owner_id, lifecyclestage (HubSpot's default stages) and hs_lead_status (HubSpot's default statuses). All of them sit in the contactinformation group and are writable; industry is free text here where HubSpot presents a fixed dropdown, and fax uses the phone-number format. The remaining HubSpot default contact properties are deliberately not provided, because the HubSpot feature behind each one is not part of Praxis - values HubSpot computes and keeps read-only (create and last-modified dates, created-by and updated-by user ids, owner-assigned date, email domain, record id and record source, country and state codes, contact unworked), activity, sequence, meeting and NPS dates and counters and predictive scores, form and conversion tracking (first and recent conversion, form submission counts, ad click ids, IP location, original and latest traffic source, page views and sessions), marketing email state (opt-outs, bounces, quarantine, delivered, opened and clicked counts and dates, marketing contact status), deal rollups (associated deals, revenue, close and first deal dates, days to close), lifecycle-stage timing, the ads form fields (date of birth, gender, marital status, education), private content membership, social profile handles, follower counts and photo, and account-level fields HubSpot maintains from its own settings (persona, preferred language, time zone, legal basis, brands, shared teams and users, team and merged ids). Create one as a custom property when a workflow needs it.",
|
|
10216
10524
|
"http": "GET",
|
|
10217
10525
|
"path": "/crm/v1/properties/{objectType}",
|
|
10218
10526
|
"streaming": "no",
|
|
@@ -10864,7 +11172,7 @@ export const operations = [
|
|
|
10864
11172
|
"resource": "customer.accessTokens",
|
|
10865
11173
|
"method": "create",
|
|
10866
11174
|
"summary": "Exchange a grant code or publishable key",
|
|
10867
|
-
"description": "
|
|
11175
|
+
"description": "Deprecated: use POST /end/v1/access_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nTurn a grant code, or a publishable key for an anonymous visitor, into the Praxis customer access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous customer (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 CUSTOMER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.customer.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.",
|
|
10868
11176
|
"http": "POST",
|
|
10869
11177
|
"path": "/customer/v1/access_tokens",
|
|
10870
11178
|
"streaming": "no",
|
|
@@ -10907,7 +11215,7 @@ export const operations = [
|
|
|
10907
11215
|
"resource": "customer.accessTokens",
|
|
10908
11216
|
"method": "revoke",
|
|
10909
11217
|
"summary": "Sign out the current token",
|
|
10910
|
-
"description": "
|
|
11218
|
+
"description": "Deprecated: use DELETE /end/v1/access_tokens/current instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nSign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.customer.customers.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
10911
11219
|
"http": "DELETE",
|
|
10912
11220
|
"path": "/customer/v1/access_tokens/current",
|
|
10913
11221
|
"streaming": "no",
|
|
@@ -10919,7 +11227,7 @@ export const operations = [
|
|
|
10919
11227
|
"resource": "customer.accessTokens",
|
|
10920
11228
|
"method": "renew",
|
|
10921
11229
|
"summary": "Renew an access token",
|
|
10922
|
-
"description": "
|
|
11230
|
+
"description": "Deprecated: use POST /end/v1/access_tokens/renew instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nReplace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.customer.accessTokens.create. A blocked end user answers 403 CUSTOMER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
10923
11231
|
"http": "POST",
|
|
10924
11232
|
"path": "/customer/v1/access_tokens/renew",
|
|
10925
11233
|
"streaming": "no",
|
|
@@ -10931,7 +11239,7 @@ export const operations = [
|
|
|
10931
11239
|
"resource": "customer.customers",
|
|
10932
11240
|
"method": "list",
|
|
10933
11241
|
"summary": "List end users",
|
|
10934
|
-
"description": "
|
|
11242
|
+
"description": "Deprecated: use GET /end/v1/users instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nRead the organization's end-user directory and obtain the customer_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the customer id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.",
|
|
10935
11243
|
"http": "GET",
|
|
10936
11244
|
"path": "/customer/v1/customers",
|
|
10937
11245
|
"streaming": "no",
|
|
@@ -10984,7 +11292,7 @@ export const operations = [
|
|
|
10984
11292
|
"resource": "customer.customers",
|
|
10985
11293
|
"method": "delete",
|
|
10986
11294
|
"summary": "Delete an end user",
|
|
10987
|
-
"description": "
|
|
11295
|
+
"description": "Deprecated: use DELETE /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nDelete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's customer_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
10988
11296
|
"http": "DELETE",
|
|
10989
11297
|
"path": "/customer/v1/customers/{customer_id}",
|
|
10990
11298
|
"streaming": "no",
|
|
@@ -11009,7 +11317,7 @@ export const operations = [
|
|
|
11009
11317
|
"resource": "customer.customers",
|
|
11010
11318
|
"method": "retrieve",
|
|
11011
11319
|
"summary": "Get an end user",
|
|
11012
|
-
"description": "
|
|
11320
|
+
"description": "Deprecated: use GET /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nRead one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 CUSTOMER_NOT_FOUND.",
|
|
11013
11321
|
"http": "GET",
|
|
11014
11322
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11015
11323
|
"streaming": "no",
|
|
@@ -11034,7 +11342,7 @@ export const operations = [
|
|
|
11034
11342
|
"resource": "customer.customers",
|
|
11035
11343
|
"method": "block",
|
|
11036
11344
|
"summary": "Block an end user",
|
|
11037
|
-
"description": "
|
|
11345
|
+
"description": "Deprecated: use POST /end/v1/users/{end_user_id}/block instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nBlock one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
11038
11346
|
"http": "POST",
|
|
11039
11347
|
"path": "/customer/v1/customers/{customer_id}/block",
|
|
11040
11348
|
"streaming": "no",
|
|
@@ -11063,7 +11371,7 @@ export const operations = [
|
|
|
11063
11371
|
"resource": "customer.customers",
|
|
11064
11372
|
"method": "revokeTokens",
|
|
11065
11373
|
"summary": "Revoke every token of an end user",
|
|
11066
|
-
"description": "
|
|
11374
|
+
"description": "Deprecated: use POST /end/v1/users/{end_user_id}/revoke_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nEnd every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.customer.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
11067
11375
|
"http": "POST",
|
|
11068
11376
|
"path": "/customer/v1/customers/{customer_id}/revoke_tokens",
|
|
11069
11377
|
"streaming": "no",
|
|
@@ -11081,7 +11389,7 @@ export const operations = [
|
|
|
11081
11389
|
"resource": "customer.customers",
|
|
11082
11390
|
"method": "unblock",
|
|
11083
11391
|
"summary": "Unblock an end user",
|
|
11084
|
-
"description": "
|
|
11392
|
+
"description": "Deprecated: use POST /end/v1/users/{end_user_id}/unblock instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nLift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
11085
11393
|
"http": "POST",
|
|
11086
11394
|
"path": "/customer/v1/customers/{customer_id}/unblock",
|
|
11087
11395
|
"streaming": "no",
|
|
@@ -11099,7 +11407,7 @@ export const operations = [
|
|
|
11099
11407
|
"resource": "customer.usage",
|
|
11100
11408
|
"method": "retrieve",
|
|
11101
11409
|
"summary": "Read end-user usage",
|
|
11102
|
-
"description": "
|
|
11410
|
+
"description": "Deprecated: use GET /end/v1/users/{end_user_id}/usage instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nRead what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the customerId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 CUSTOMER_NOT_FOUND.",
|
|
11103
11411
|
"http": "GET",
|
|
11104
11412
|
"path": "/customer/v1/customers/{customer_id}/usage",
|
|
11105
11413
|
"streaming": "no",
|
|
@@ -11130,7 +11438,7 @@ export const operations = [
|
|
|
11130
11438
|
"resource": "customer.grantCodes",
|
|
11131
11439
|
"method": "create",
|
|
11132
11440
|
"summary": "Create a grant code",
|
|
11133
|
-
"description": "
|
|
11441
|
+
"description": "Deprecated: use POST /end/v1/grant_codes instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nSign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. customer_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_customer_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_customer_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.",
|
|
11134
11442
|
"http": "POST",
|
|
11135
11443
|
"path": "/customer/v1/grant_codes",
|
|
11136
11444
|
"streaming": "no",
|
|
@@ -11196,7 +11504,7 @@ export const operations = [
|
|
|
11196
11504
|
"resource": "customer.publishableKeys",
|
|
11197
11505
|
"method": "list",
|
|
11198
11506
|
"summary": "List publishable keys",
|
|
11199
|
-
"description": "
|
|
11507
|
+
"description": "Deprecated: use GET /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nList the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.",
|
|
11200
11508
|
"http": "GET",
|
|
11201
11509
|
"path": "/customer/v1/publishable_keys",
|
|
11202
11510
|
"streaming": "no",
|
|
@@ -11221,7 +11529,7 @@ export const operations = [
|
|
|
11221
11529
|
"resource": "customer.publishableKeys",
|
|
11222
11530
|
"method": "create",
|
|
11223
11531
|
"summary": "Create a publishable key",
|
|
11224
|
-
"description": "
|
|
11532
|
+
"description": "Deprecated: use POST /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nMint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {\"amount\": \"5.00\", \"currency\": \"USD\"} (at most 2 decimals), read from the key's usage events; change them later with praxis.customer.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with publishable_key.",
|
|
11225
11533
|
"http": "POST",
|
|
11226
11534
|
"path": "/customer/v1/publishable_keys",
|
|
11227
11535
|
"streaming": "no",
|
|
@@ -11269,7 +11577,7 @@ export const operations = [
|
|
|
11269
11577
|
"resource": "customer.publishableKeys",
|
|
11270
11578
|
"method": "delete",
|
|
11271
11579
|
"summary": "Delete a publishable key",
|
|
11272
|
-
"description": "
|
|
11580
|
+
"description": "Deprecated: use DELETE /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nDelete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
11273
11581
|
"http": "DELETE",
|
|
11274
11582
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11275
11583
|
"streaming": "no",
|
|
@@ -11287,7 +11595,7 @@ export const operations = [
|
|
|
11287
11595
|
"resource": "customer.publishableKeys",
|
|
11288
11596
|
"method": "update",
|
|
11289
11597
|
"summary": "Update a publishable key",
|
|
11290
|
-
"description": "
|
|
11598
|
+
"description": "Deprecated: use PATCH /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nChange the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.",
|
|
11291
11599
|
"http": "PATCH",
|
|
11292
11600
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11293
11601
|
"streaming": "no",
|
|
@@ -11719,7 +12027,7 @@ export const operations = [
|
|
|
11719
12027
|
"resource": "cut.projects.exports",
|
|
11720
12028
|
"method": "create",
|
|
11721
12029
|
"summary": "Create video export",
|
|
11722
|
-
"description": "Start an asynchronous video export from the project
|
|
12030
|
+
"description": "Start an asynchronous video export from the project, and optionally select revision and output settings. Omit both binding and folder and the export only produces a file: no library receives it, and on done file.url downloads it (the link is valid for one hour and is minted on every read). Name a binding from bindings.list (a writable one), or a folder, and the finished video is also imported into that media library, and on done asset identifies it in praxis.media. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. Each call starts a job, so retrieve a known job before retrying a submission.",
|
|
11723
12031
|
"http": "POST",
|
|
11724
12032
|
"path": "/cut/v1/projects/{project_id}/exports",
|
|
11725
12033
|
"streaming": "no",
|
|
@@ -11757,7 +12065,7 @@ export const operations = [
|
|
|
11757
12065
|
"name": "binding",
|
|
11758
12066
|
"type": "string",
|
|
11759
12067
|
"required": false,
|
|
11760
|
-
"description": "Writable binding name
|
|
12068
|
+
"description": "Writable binding name the finished video is imported into; the response then carries asset. Omit binding and folder and nothing is imported (default_upload is not used here): the export is a file only, read file.url to download it within one hour."
|
|
11761
12069
|
},
|
|
11762
12070
|
{
|
|
11763
12071
|
"name": "revision",
|
|
@@ -14994,7 +15302,7 @@ export const operations = [
|
|
|
14994
15302
|
"resource": "devops.changes",
|
|
14995
15303
|
"method": "openPullRequest",
|
|
14996
15304
|
"summary": "Open a change's pull request",
|
|
14997
|
-
"description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
|
|
15305
|
+
"description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. For a later slice opened with `slices.create`, pass head set to that slice's branch (<id>--<n>): the pull request is opened from it instead of the change's own branch, and a branch that belongs to another change is refused with INVALID_ARGUMENT. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
|
|
14998
15306
|
"http": "POST",
|
|
14999
15307
|
"path": "/devops/v1/changes/{id}:openPullRequest",
|
|
15000
15308
|
"streaming": "no",
|
|
@@ -15027,6 +15335,12 @@ export const operations = [
|
|
|
15027
15335
|
"type": "boolean",
|
|
15028
15336
|
"required": false,
|
|
15029
15337
|
"description": "Open it as a draft. Defaults to false."
|
|
15338
|
+
},
|
|
15339
|
+
{
|
|
15340
|
+
"name": "head",
|
|
15341
|
+
"type": "string",
|
|
15342
|
+
"required": false,
|
|
15343
|
+
"description": "The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT."
|
|
15030
15344
|
}
|
|
15031
15345
|
]
|
|
15032
15346
|
}
|
|
@@ -15946,124 +16260,12 @@ export const operations = [
|
|
|
15946
16260
|
}
|
|
15947
16261
|
},
|
|
15948
16262
|
{
|
|
15949
|
-
"resource": "devops.
|
|
15950
|
-
"method": "list",
|
|
15951
|
-
"summary": "List a project's cleanup ledger",
|
|
15952
|
-
"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.",
|
|
15953
|
-
"http": "GET",
|
|
15954
|
-
"path": "/devops/v1/projects/{project}/cleanups",
|
|
15955
|
-
"streaming": "no",
|
|
15956
|
-
"pagination": false,
|
|
15957
|
-
"pathParams": [
|
|
15958
|
-
{
|
|
15959
|
-
"name": "project",
|
|
15960
|
-
"sdkName": "project",
|
|
15961
|
-
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
15962
|
-
}
|
|
15963
|
-
],
|
|
15964
|
-
"query": [
|
|
15965
|
-
{
|
|
15966
|
-
"name": "pageSize",
|
|
15967
|
-
"type": "integer",
|
|
15968
|
-
"required": false,
|
|
15969
|
-
"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."
|
|
15970
|
-
},
|
|
15971
|
-
{
|
|
15972
|
-
"name": "pageToken",
|
|
15973
|
-
"type": "string",
|
|
15974
|
-
"required": false,
|
|
15975
|
-
"description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
|
|
15976
|
-
}
|
|
15977
|
-
]
|
|
15978
|
-
},
|
|
15979
|
-
{
|
|
15980
|
-
"resource": "devops.projects.environments",
|
|
15981
|
-
"method": "list",
|
|
15982
|
-
"summary": "List environments",
|
|
15983
|
-
"description": "List the project's environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.",
|
|
15984
|
-
"http": "GET",
|
|
15985
|
-
"path": "/devops/v1/projects/{project}/environments",
|
|
15986
|
-
"streaming": "no",
|
|
15987
|
-
"pagination": false,
|
|
15988
|
-
"pathParams": [
|
|
15989
|
-
{
|
|
15990
|
-
"name": "project",
|
|
15991
|
-
"sdkName": "project",
|
|
15992
|
-
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
15993
|
-
}
|
|
15994
|
-
],
|
|
15995
|
-
"query": []
|
|
15996
|
-
},
|
|
15997
|
-
{
|
|
15998
|
-
"resource": "devops.projects.environments.targets",
|
|
15999
|
-
"method": "deleteState",
|
|
16000
|
-
"summary": "Delete a target's OpenTofu state",
|
|
16001
|
-
"description": "Delete the current OpenTofu state of one deploy target, as OpenTofu does when a workspace is deleted. The kept versions of earlier writes stay. While a lock is held the call must carry its ID, otherwise it answers 409 LOCK_CONFLICT. Deleting a state that does not exist succeeds.",
|
|
16002
|
-
"http": "DELETE",
|
|
16003
|
-
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
16004
|
-
"streaming": "no",
|
|
16005
|
-
"pagination": false,
|
|
16006
|
-
"pathParams": [
|
|
16007
|
-
{
|
|
16008
|
-
"name": "project",
|
|
16009
|
-
"sdkName": "project",
|
|
16010
|
-
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16011
|
-
},
|
|
16012
|
-
{
|
|
16013
|
-
"name": "environment",
|
|
16014
|
-
"sdkName": "environment",
|
|
16015
|
-
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16016
|
-
},
|
|
16017
|
-
{
|
|
16018
|
-
"name": "target",
|
|
16019
|
-
"sdkName": "target",
|
|
16020
|
-
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16021
|
-
}
|
|
16022
|
-
],
|
|
16023
|
-
"query": [
|
|
16024
|
-
{
|
|
16025
|
-
"name": "ID",
|
|
16026
|
-
"type": "string",
|
|
16027
|
-
"required": false,
|
|
16028
|
-
"description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
|
|
16029
|
-
}
|
|
16030
|
-
]
|
|
16031
|
-
},
|
|
16032
|
-
{
|
|
16033
|
-
"resource": "devops.projects.environments.targets",
|
|
16034
|
-
"method": "retrieveState",
|
|
16035
|
-
"summary": "Read a target's OpenTofu state",
|
|
16036
|
-
"description": "Read the current OpenTofu state of one deploy target in one DevOps environment. This is the read half of the OpenTofu HTTP backend that `praxis devops deploy --engine tofu` configures: OpenTofu sends HTTP Basic with any username and a Praxis API key as the password, and the route accepts the ordinary Bearer key too. The answer is the state document exactly as the last write stored it. A target never deployed in this environment answers 404, which OpenTofu reads as an empty state.",
|
|
16037
|
-
"http": "GET",
|
|
16038
|
-
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
16039
|
-
"streaming": "no",
|
|
16040
|
-
"pagination": false,
|
|
16041
|
-
"pathParams": [
|
|
16042
|
-
{
|
|
16043
|
-
"name": "project",
|
|
16044
|
-
"sdkName": "project",
|
|
16045
|
-
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16046
|
-
},
|
|
16047
|
-
{
|
|
16048
|
-
"name": "environment",
|
|
16049
|
-
"sdkName": "environment",
|
|
16050
|
-
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16051
|
-
},
|
|
16052
|
-
{
|
|
16053
|
-
"name": "target",
|
|
16054
|
-
"sdkName": "target",
|
|
16055
|
-
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16056
|
-
}
|
|
16057
|
-
],
|
|
16058
|
-
"query": []
|
|
16059
|
-
},
|
|
16060
|
-
{
|
|
16061
|
-
"resource": "devops.projects.environments.targets.state",
|
|
16263
|
+
"resource": "devops.changes.slices",
|
|
16062
16264
|
"method": "create",
|
|
16063
|
-
"summary": "
|
|
16064
|
-
"description": "
|
|
16265
|
+
"summary": "Open a new slice",
|
|
16266
|
+
"description": "Open one more slice of a change: another pull request on the same change, developed beside the ones already open. Use it when a second piece of the change can be built in parallel; for the change's first pull request there is nothing to open — work on the branch `praxis devops change checkout` gave you. The call cuts the next slice branch, named <id>--<n> where n is one more than the highest slice number the change's pull requests and its workspace already hold (so two calls give two different slices), and gives it its own git worktree in the change's workspace. If the change has no live workspace one is opened. Everything after that is automatic: the branch name, the worktree, removing the worktree once its pull request merges, and restacking a slice cut from another onto the default branch when that slice merges. A restack that conflicts is aborted and reported with the conflicting files; resolve those by hand on the slice branch, nothing is resolved for you. Without from the slice is cut from the default branch; with from set to another branch of the same change it is cut from that slice (the right choice when it builds on it). An abandoned change is refused with INVALID_ARGUMENT. The change id is the branch name <type>/<slug>; give it as it comes back — the SDK and the CLI encode the slash themselves. The workspace may still be starting when the call returns: directory is the path the worktree will have once it is available, and exists at once when the workspace is already running. From a terminal: `praxis devops changes slice <change>`.",
|
|
16065
16267
|
"http": "POST",
|
|
16066
|
-
"path": "/devops/v1/projects/{project}/
|
|
16268
|
+
"path": "/devops/v1/projects/{project}/changes/{change}/slices",
|
|
16067
16269
|
"streaming": "no",
|
|
16068
16270
|
"pagination": false,
|
|
16069
16271
|
"pathParams": [
|
|
@@ -16073,188 +16275,334 @@ export const operations = [
|
|
|
16073
16275
|
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16074
16276
|
},
|
|
16075
16277
|
{
|
|
16076
|
-
"name": "
|
|
16077
|
-
"sdkName": "
|
|
16078
|
-
"description": "
|
|
16079
|
-
},
|
|
16080
|
-
{
|
|
16081
|
-
"name": "target",
|
|
16082
|
-
"sdkName": "target",
|
|
16083
|
-
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16084
|
-
}
|
|
16085
|
-
],
|
|
16086
|
-
"query": [
|
|
16087
|
-
{
|
|
16088
|
-
"name": "ID",
|
|
16089
|
-
"type": "string",
|
|
16090
|
-
"required": false,
|
|
16091
|
-
"description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
|
|
16092
|
-
}
|
|
16093
|
-
],
|
|
16094
|
-
"body": {
|
|
16095
|
-
"required": true,
|
|
16096
|
-
"fields": [
|
|
16097
|
-
{
|
|
16098
|
-
"name": "version",
|
|
16099
|
-
"type": "integer",
|
|
16100
|
-
"required": false,
|
|
16101
|
-
"description": "The state format version OpenTofu wrote."
|
|
16102
|
-
},
|
|
16103
|
-
{
|
|
16104
|
-
"name": "serial",
|
|
16105
|
-
"type": "integer",
|
|
16106
|
-
"required": true,
|
|
16107
|
-
"description": "Increases with every state change; a write lower than the stored serial of the same lineage is refused as stale."
|
|
16108
|
-
},
|
|
16109
|
-
{
|
|
16110
|
-
"name": "lineage",
|
|
16111
|
-
"type": "string",
|
|
16112
|
-
"required": true,
|
|
16113
|
-
"description": "Identifies one state history; it does not change across writes."
|
|
16114
|
-
}
|
|
16115
|
-
]
|
|
16116
|
-
}
|
|
16117
|
-
},
|
|
16118
|
-
{
|
|
16119
|
-
"resource": "devops.projects.environments.targets.state",
|
|
16120
|
-
"method": "deleteLock",
|
|
16121
|
-
"summary": "Unlock a target's OpenTofu state",
|
|
16122
|
-
"description": "Release the lock on one target's state; this is the DELETE that `praxis devops deploy` configures as OpenTofu's unlock_method (the default UNLOCK verb on the state path works too). The lock ID is read from the lock info body, or from the ID query value. Releasing a lock that is not held succeeds; releasing it under a different ID answers 409 LOCK_CONFLICT.",
|
|
16123
|
-
"http": "DELETE",
|
|
16124
|
-
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
|
|
16125
|
-
"streaming": "no",
|
|
16126
|
-
"pagination": false,
|
|
16127
|
-
"pathParams": [
|
|
16128
|
-
{
|
|
16129
|
-
"name": "project",
|
|
16130
|
-
"sdkName": "project",
|
|
16131
|
-
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16132
|
-
},
|
|
16133
|
-
{
|
|
16134
|
-
"name": "environment",
|
|
16135
|
-
"sdkName": "environment",
|
|
16136
|
-
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16137
|
-
},
|
|
16138
|
-
{
|
|
16139
|
-
"name": "target",
|
|
16140
|
-
"sdkName": "target",
|
|
16141
|
-
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16142
|
-
}
|
|
16143
|
-
],
|
|
16144
|
-
"query": [
|
|
16145
|
-
{
|
|
16146
|
-
"name": "ID",
|
|
16147
|
-
"type": "string",
|
|
16148
|
-
"required": false,
|
|
16149
|
-
"description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
|
|
16150
|
-
}
|
|
16151
|
-
],
|
|
16152
|
-
"body": {
|
|
16153
|
-
"required": false,
|
|
16154
|
-
"fields": [
|
|
16155
|
-
{
|
|
16156
|
-
"name": "ID",
|
|
16157
|
-
"type": "string",
|
|
16158
|
-
"required": true,
|
|
16159
|
-
"description": "Identifies the lock; every write and the unlock must carry it."
|
|
16160
|
-
},
|
|
16161
|
-
{
|
|
16162
|
-
"name": "Operation",
|
|
16163
|
-
"type": "string",
|
|
16164
|
-
"required": false,
|
|
16165
|
-
"description": "What the holder is doing, such as OperationTypeApply."
|
|
16166
|
-
},
|
|
16167
|
-
{
|
|
16168
|
-
"name": "Who",
|
|
16169
|
-
"type": "string",
|
|
16170
|
-
"required": false,
|
|
16171
|
-
"description": "The holder, user@host, shown to the caller that finds the lock held."
|
|
16172
|
-
},
|
|
16173
|
-
{
|
|
16174
|
-
"name": "Created",
|
|
16175
|
-
"type": "string",
|
|
16176
|
-
"required": false,
|
|
16177
|
-
"description": "When the holder took the lock, RFC 3339."
|
|
16178
|
-
},
|
|
16179
|
-
{
|
|
16180
|
-
"name": "Path",
|
|
16181
|
-
"type": "string",
|
|
16182
|
-
"required": false,
|
|
16183
|
-
"description": "Where the holder keeps its working state, informational."
|
|
16184
|
-
}
|
|
16185
|
-
]
|
|
16186
|
-
}
|
|
16187
|
-
},
|
|
16188
|
-
{
|
|
16189
|
-
"resource": "devops.projects.environments.targets.state.lock",
|
|
16190
|
-
"method": "create",
|
|
16191
|
-
"summary": "Lock a target's OpenTofu state",
|
|
16192
|
-
"description": "Take the lock on one target's state before OpenTofu plans or applies; this is the POST that `praxis devops deploy` configures as OpenTofu's lock_method (the default LOCK verb on the state path works too). Exactly one holder can hold the lock. A held lock answers 423 with the holder's lock info, which names who is deploying; wait for them or, if they are gone, release it with a force-unlock using the ID in that answer.",
|
|
16193
|
-
"http": "POST",
|
|
16194
|
-
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
|
|
16195
|
-
"streaming": "no",
|
|
16196
|
-
"pagination": false,
|
|
16197
|
-
"pathParams": [
|
|
16198
|
-
{
|
|
16199
|
-
"name": "project",
|
|
16200
|
-
"sdkName": "project",
|
|
16201
|
-
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16202
|
-
},
|
|
16203
|
-
{
|
|
16204
|
-
"name": "environment",
|
|
16205
|
-
"sdkName": "environment",
|
|
16206
|
-
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16207
|
-
},
|
|
16208
|
-
{
|
|
16209
|
-
"name": "target",
|
|
16210
|
-
"sdkName": "target",
|
|
16211
|
-
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16278
|
+
"name": "change",
|
|
16279
|
+
"sdkName": "change",
|
|
16280
|
+
"description": "The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves."
|
|
16212
16281
|
}
|
|
16213
16282
|
],
|
|
16214
16283
|
"query": [],
|
|
16215
16284
|
"body": {
|
|
16216
|
-
"required":
|
|
16285
|
+
"required": false,
|
|
16217
16286
|
"fields": [
|
|
16218
16287
|
{
|
|
16219
|
-
"name": "
|
|
16220
|
-
"type": "string",
|
|
16221
|
-
"required": true,
|
|
16222
|
-
"description": "Identifies the lock; every write and the unlock must carry it."
|
|
16223
|
-
},
|
|
16224
|
-
{
|
|
16225
|
-
"name": "Operation",
|
|
16226
|
-
"type": "string",
|
|
16227
|
-
"required": false,
|
|
16228
|
-
"description": "What the holder is doing, such as OperationTypeApply."
|
|
16229
|
-
},
|
|
16230
|
-
{
|
|
16231
|
-
"name": "Who",
|
|
16232
|
-
"type": "string",
|
|
16233
|
-
"required": false,
|
|
16234
|
-
"description": "The holder, user@host, shown to the caller that finds the lock held."
|
|
16235
|
-
},
|
|
16236
|
-
{
|
|
16237
|
-
"name": "Created",
|
|
16238
|
-
"type": "string",
|
|
16239
|
-
"required": false,
|
|
16240
|
-
"description": "When the holder took the lock, RFC 3339."
|
|
16241
|
-
},
|
|
16242
|
-
{
|
|
16243
|
-
"name": "Path",
|
|
16288
|
+
"name": "from",
|
|
16244
16289
|
"type": "string",
|
|
16245
16290
|
"required": false,
|
|
16246
|
-
"description": "
|
|
16291
|
+
"description": "Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges."
|
|
16247
16292
|
}
|
|
16248
16293
|
]
|
|
16249
16294
|
}
|
|
16250
16295
|
},
|
|
16251
16296
|
{
|
|
16252
|
-
"resource": "devops.projects.
|
|
16297
|
+
"resource": "devops.projects.cleanups",
|
|
16253
16298
|
"method": "list",
|
|
16254
|
-
"summary": "List
|
|
16255
|
-
"description": "List the
|
|
16299
|
+
"summary": "List a project's cleanup ledger",
|
|
16300
|
+
"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.",
|
|
16256
16301
|
"http": "GET",
|
|
16257
|
-
"path": "/devops/v1/projects/{project}/
|
|
16302
|
+
"path": "/devops/v1/projects/{project}/cleanups",
|
|
16303
|
+
"streaming": "no",
|
|
16304
|
+
"pagination": false,
|
|
16305
|
+
"pathParams": [
|
|
16306
|
+
{
|
|
16307
|
+
"name": "project",
|
|
16308
|
+
"sdkName": "project",
|
|
16309
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16310
|
+
}
|
|
16311
|
+
],
|
|
16312
|
+
"query": [
|
|
16313
|
+
{
|
|
16314
|
+
"name": "pageSize",
|
|
16315
|
+
"type": "integer",
|
|
16316
|
+
"required": false,
|
|
16317
|
+
"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."
|
|
16318
|
+
},
|
|
16319
|
+
{
|
|
16320
|
+
"name": "pageToken",
|
|
16321
|
+
"type": "string",
|
|
16322
|
+
"required": false,
|
|
16323
|
+
"description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
|
|
16324
|
+
}
|
|
16325
|
+
]
|
|
16326
|
+
},
|
|
16327
|
+
{
|
|
16328
|
+
"resource": "devops.projects.environments",
|
|
16329
|
+
"method": "list",
|
|
16330
|
+
"summary": "List environments",
|
|
16331
|
+
"description": "List the project's environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.",
|
|
16332
|
+
"http": "GET",
|
|
16333
|
+
"path": "/devops/v1/projects/{project}/environments",
|
|
16334
|
+
"streaming": "no",
|
|
16335
|
+
"pagination": false,
|
|
16336
|
+
"pathParams": [
|
|
16337
|
+
{
|
|
16338
|
+
"name": "project",
|
|
16339
|
+
"sdkName": "project",
|
|
16340
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16341
|
+
}
|
|
16342
|
+
],
|
|
16343
|
+
"query": []
|
|
16344
|
+
},
|
|
16345
|
+
{
|
|
16346
|
+
"resource": "devops.projects.environments.targets",
|
|
16347
|
+
"method": "deleteState",
|
|
16348
|
+
"summary": "Delete a target's OpenTofu state",
|
|
16349
|
+
"description": "Delete the current OpenTofu state of one deploy target, as OpenTofu does when a workspace is deleted. The kept versions of earlier writes stay. While a lock is held the call must carry its ID, otherwise it answers 409 LOCK_CONFLICT. Deleting a state that does not exist succeeds.",
|
|
16350
|
+
"http": "DELETE",
|
|
16351
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
16352
|
+
"streaming": "no",
|
|
16353
|
+
"pagination": false,
|
|
16354
|
+
"pathParams": [
|
|
16355
|
+
{
|
|
16356
|
+
"name": "project",
|
|
16357
|
+
"sdkName": "project",
|
|
16358
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16359
|
+
},
|
|
16360
|
+
{
|
|
16361
|
+
"name": "environment",
|
|
16362
|
+
"sdkName": "environment",
|
|
16363
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16364
|
+
},
|
|
16365
|
+
{
|
|
16366
|
+
"name": "target",
|
|
16367
|
+
"sdkName": "target",
|
|
16368
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16369
|
+
}
|
|
16370
|
+
],
|
|
16371
|
+
"query": [
|
|
16372
|
+
{
|
|
16373
|
+
"name": "ID",
|
|
16374
|
+
"type": "string",
|
|
16375
|
+
"required": false,
|
|
16376
|
+
"description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
|
|
16377
|
+
}
|
|
16378
|
+
]
|
|
16379
|
+
},
|
|
16380
|
+
{
|
|
16381
|
+
"resource": "devops.projects.environments.targets",
|
|
16382
|
+
"method": "retrieveState",
|
|
16383
|
+
"summary": "Read a target's OpenTofu state",
|
|
16384
|
+
"description": "Read the current OpenTofu state of one deploy target in one DevOps environment. This is the read half of the OpenTofu HTTP backend that `praxis devops deploy --engine tofu` configures: OpenTofu sends HTTP Basic with any username and a Praxis API key as the password, and the route accepts the ordinary Bearer key too. The answer is the state document exactly as the last write stored it. A target never deployed in this environment answers 404, which OpenTofu reads as an empty state.",
|
|
16385
|
+
"http": "GET",
|
|
16386
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
16387
|
+
"streaming": "no",
|
|
16388
|
+
"pagination": false,
|
|
16389
|
+
"pathParams": [
|
|
16390
|
+
{
|
|
16391
|
+
"name": "project",
|
|
16392
|
+
"sdkName": "project",
|
|
16393
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16394
|
+
},
|
|
16395
|
+
{
|
|
16396
|
+
"name": "environment",
|
|
16397
|
+
"sdkName": "environment",
|
|
16398
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16399
|
+
},
|
|
16400
|
+
{
|
|
16401
|
+
"name": "target",
|
|
16402
|
+
"sdkName": "target",
|
|
16403
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16404
|
+
}
|
|
16405
|
+
],
|
|
16406
|
+
"query": []
|
|
16407
|
+
},
|
|
16408
|
+
{
|
|
16409
|
+
"resource": "devops.projects.environments.targets.state",
|
|
16410
|
+
"method": "create",
|
|
16411
|
+
"summary": "Write a target's OpenTofu state",
|
|
16412
|
+
"description": "Store a new OpenTofu state for one deploy target. OpenTofu calls this after every apply, passing the lock ID it holds as ID. Each accepted write also keeps an immutable version of that state (the latest 50 per target are kept), so a rollout's state change can be audited. A state document is at most 1 MiB. A write whose serial is lower than the stored serial of the same lineage is a stale write and answers 409 STALE_SERIAL; re-run so OpenTofu reads the newer state first.",
|
|
16413
|
+
"http": "POST",
|
|
16414
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
16415
|
+
"streaming": "no",
|
|
16416
|
+
"pagination": false,
|
|
16417
|
+
"pathParams": [
|
|
16418
|
+
{
|
|
16419
|
+
"name": "project",
|
|
16420
|
+
"sdkName": "project",
|
|
16421
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16422
|
+
},
|
|
16423
|
+
{
|
|
16424
|
+
"name": "environment",
|
|
16425
|
+
"sdkName": "environment",
|
|
16426
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16427
|
+
},
|
|
16428
|
+
{
|
|
16429
|
+
"name": "target",
|
|
16430
|
+
"sdkName": "target",
|
|
16431
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16432
|
+
}
|
|
16433
|
+
],
|
|
16434
|
+
"query": [
|
|
16435
|
+
{
|
|
16436
|
+
"name": "ID",
|
|
16437
|
+
"type": "string",
|
|
16438
|
+
"required": false,
|
|
16439
|
+
"description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
|
|
16440
|
+
}
|
|
16441
|
+
],
|
|
16442
|
+
"body": {
|
|
16443
|
+
"required": true,
|
|
16444
|
+
"fields": [
|
|
16445
|
+
{
|
|
16446
|
+
"name": "version",
|
|
16447
|
+
"type": "integer",
|
|
16448
|
+
"required": false,
|
|
16449
|
+
"description": "The state format version OpenTofu wrote."
|
|
16450
|
+
},
|
|
16451
|
+
{
|
|
16452
|
+
"name": "serial",
|
|
16453
|
+
"type": "integer",
|
|
16454
|
+
"required": true,
|
|
16455
|
+
"description": "Increases with every state change; a write lower than the stored serial of the same lineage is refused as stale."
|
|
16456
|
+
},
|
|
16457
|
+
{
|
|
16458
|
+
"name": "lineage",
|
|
16459
|
+
"type": "string",
|
|
16460
|
+
"required": true,
|
|
16461
|
+
"description": "Identifies one state history; it does not change across writes."
|
|
16462
|
+
}
|
|
16463
|
+
]
|
|
16464
|
+
}
|
|
16465
|
+
},
|
|
16466
|
+
{
|
|
16467
|
+
"resource": "devops.projects.environments.targets.state",
|
|
16468
|
+
"method": "deleteLock",
|
|
16469
|
+
"summary": "Unlock a target's OpenTofu state",
|
|
16470
|
+
"description": "Release the lock on one target's state; this is the DELETE that `praxis devops deploy` configures as OpenTofu's unlock_method (the default UNLOCK verb on the state path works too). The lock ID is read from the lock info body, or from the ID query value. Releasing a lock that is not held succeeds; releasing it under a different ID answers 409 LOCK_CONFLICT.",
|
|
16471
|
+
"http": "DELETE",
|
|
16472
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
|
|
16473
|
+
"streaming": "no",
|
|
16474
|
+
"pagination": false,
|
|
16475
|
+
"pathParams": [
|
|
16476
|
+
{
|
|
16477
|
+
"name": "project",
|
|
16478
|
+
"sdkName": "project",
|
|
16479
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16480
|
+
},
|
|
16481
|
+
{
|
|
16482
|
+
"name": "environment",
|
|
16483
|
+
"sdkName": "environment",
|
|
16484
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16485
|
+
},
|
|
16486
|
+
{
|
|
16487
|
+
"name": "target",
|
|
16488
|
+
"sdkName": "target",
|
|
16489
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16490
|
+
}
|
|
16491
|
+
],
|
|
16492
|
+
"query": [
|
|
16493
|
+
{
|
|
16494
|
+
"name": "ID",
|
|
16495
|
+
"type": "string",
|
|
16496
|
+
"required": false,
|
|
16497
|
+
"description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
|
|
16498
|
+
}
|
|
16499
|
+
],
|
|
16500
|
+
"body": {
|
|
16501
|
+
"required": false,
|
|
16502
|
+
"fields": [
|
|
16503
|
+
{
|
|
16504
|
+
"name": "ID",
|
|
16505
|
+
"type": "string",
|
|
16506
|
+
"required": true,
|
|
16507
|
+
"description": "Identifies the lock; every write and the unlock must carry it."
|
|
16508
|
+
},
|
|
16509
|
+
{
|
|
16510
|
+
"name": "Operation",
|
|
16511
|
+
"type": "string",
|
|
16512
|
+
"required": false,
|
|
16513
|
+
"description": "What the holder is doing, such as OperationTypeApply."
|
|
16514
|
+
},
|
|
16515
|
+
{
|
|
16516
|
+
"name": "Who",
|
|
16517
|
+
"type": "string",
|
|
16518
|
+
"required": false,
|
|
16519
|
+
"description": "The holder, user@host, shown to the caller that finds the lock held."
|
|
16520
|
+
},
|
|
16521
|
+
{
|
|
16522
|
+
"name": "Created",
|
|
16523
|
+
"type": "string",
|
|
16524
|
+
"required": false,
|
|
16525
|
+
"description": "When the holder took the lock, RFC 3339."
|
|
16526
|
+
},
|
|
16527
|
+
{
|
|
16528
|
+
"name": "Path",
|
|
16529
|
+
"type": "string",
|
|
16530
|
+
"required": false,
|
|
16531
|
+
"description": "Where the holder keeps its working state, informational."
|
|
16532
|
+
}
|
|
16533
|
+
]
|
|
16534
|
+
}
|
|
16535
|
+
},
|
|
16536
|
+
{
|
|
16537
|
+
"resource": "devops.projects.environments.targets.state.lock",
|
|
16538
|
+
"method": "create",
|
|
16539
|
+
"summary": "Lock a target's OpenTofu state",
|
|
16540
|
+
"description": "Take the lock on one target's state before OpenTofu plans or applies; this is the POST that `praxis devops deploy` configures as OpenTofu's lock_method (the default LOCK verb on the state path works too). Exactly one holder can hold the lock. A held lock answers 423 with the holder's lock info, which names who is deploying; wait for them or, if they are gone, release it with a force-unlock using the ID in that answer.",
|
|
16541
|
+
"http": "POST",
|
|
16542
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
|
|
16543
|
+
"streaming": "no",
|
|
16544
|
+
"pagination": false,
|
|
16545
|
+
"pathParams": [
|
|
16546
|
+
{
|
|
16547
|
+
"name": "project",
|
|
16548
|
+
"sdkName": "project",
|
|
16549
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
16550
|
+
},
|
|
16551
|
+
{
|
|
16552
|
+
"name": "environment",
|
|
16553
|
+
"sdkName": "environment",
|
|
16554
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
16555
|
+
},
|
|
16556
|
+
{
|
|
16557
|
+
"name": "target",
|
|
16558
|
+
"sdkName": "target",
|
|
16559
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
16560
|
+
}
|
|
16561
|
+
],
|
|
16562
|
+
"query": [],
|
|
16563
|
+
"body": {
|
|
16564
|
+
"required": true,
|
|
16565
|
+
"fields": [
|
|
16566
|
+
{
|
|
16567
|
+
"name": "ID",
|
|
16568
|
+
"type": "string",
|
|
16569
|
+
"required": true,
|
|
16570
|
+
"description": "Identifies the lock; every write and the unlock must carry it."
|
|
16571
|
+
},
|
|
16572
|
+
{
|
|
16573
|
+
"name": "Operation",
|
|
16574
|
+
"type": "string",
|
|
16575
|
+
"required": false,
|
|
16576
|
+
"description": "What the holder is doing, such as OperationTypeApply."
|
|
16577
|
+
},
|
|
16578
|
+
{
|
|
16579
|
+
"name": "Who",
|
|
16580
|
+
"type": "string",
|
|
16581
|
+
"required": false,
|
|
16582
|
+
"description": "The holder, user@host, shown to the caller that finds the lock held."
|
|
16583
|
+
},
|
|
16584
|
+
{
|
|
16585
|
+
"name": "Created",
|
|
16586
|
+
"type": "string",
|
|
16587
|
+
"required": false,
|
|
16588
|
+
"description": "When the holder took the lock, RFC 3339."
|
|
16589
|
+
},
|
|
16590
|
+
{
|
|
16591
|
+
"name": "Path",
|
|
16592
|
+
"type": "string",
|
|
16593
|
+
"required": false,
|
|
16594
|
+
"description": "Where the holder keeps its working state, informational."
|
|
16595
|
+
}
|
|
16596
|
+
]
|
|
16597
|
+
}
|
|
16598
|
+
},
|
|
16599
|
+
{
|
|
16600
|
+
"resource": "devops.projects.flags",
|
|
16601
|
+
"method": "list",
|
|
16602
|
+
"summary": "List flags",
|
|
16603
|
+
"description": "List the project's flags with their per-environment configuration, newest first. Use it to find a flag by key when code names one, and to review the flags of a project — the entries carry lifecycle, staleness, the observation deadline and the removal ticket, which is what an expiry review reads. filter accepts exactly one term, lifecycle=archived, to list the archived flags instead of the live ones; any other filter or orderBy is refused rather than ignored. totalSize is answered on the first page only.",
|
|
16604
|
+
"http": "GET",
|
|
16605
|
+
"path": "/devops/v1/projects/{project}/flags",
|
|
16258
16606
|
"streaming": "no",
|
|
16259
16607
|
"pagination": false,
|
|
16260
16608
|
"pathParams": [
|
|
@@ -17906,6 +18254,60 @@ export const operations = [
|
|
|
17906
18254
|
]
|
|
17907
18255
|
}
|
|
17908
18256
|
},
|
|
18257
|
+
{
|
|
18258
|
+
"resource": "devops.pullRequests",
|
|
18259
|
+
"method": "overrideGate",
|
|
18260
|
+
"summary": "Record a listed position's exception to the merge gate",
|
|
18261
|
+
"description": "Record the one exception to the fail-closed merge gate: the written authorization of a holder of a position listed in practice-config (today CEO, CTO, COO), for named checks, at the pull request's current head. Use it only when the authorization is already written on a ticket and the platform cannot answer a check in time; to restart a check the platform failed, use rerunGate first. headSha must be the current head (HEAD_MOVED otherwise), and a new push voids the override, because the gate reads only the overrides of its own head. authorizedBy must be the address (agent:<id> or human:<id>) of an actor holding an active workforce assignment to one of the positions listed in practice-config (today CEO, CTO, COO), otherwise GATE_OVERRIDE_NOT_AUTHORIZED (403) and nothing is written; when the position list or the workforce assignments cannot be read, or the list is empty, the call is refused too (fail-closed). The override is written once and never changed: the checks keep their real result, stop counting, and carry overriddenBy; the gate is decided again and its summary lists them on their own line, and the event devops.gate.overridden is published. A pull request that is not open is refused with PULL_REQUEST_NOT_OPEN. Example body: {\"headSha\":\"4f2a9c1…\",\"checks\":[\"repo-lint\"],\"ticket\":\"#5273\",\"reason\":\"build machines down, fix in #6801\",\"authorizedBy\":\"agent:agent_praxisfour\"}.",
|
|
18262
|
+
"http": "POST",
|
|
18263
|
+
"path": "/devops/v1/pull-requests/{id}:overrideGate",
|
|
18264
|
+
"streaming": "no",
|
|
18265
|
+
"pagination": false,
|
|
18266
|
+
"pathParams": [
|
|
18267
|
+
{
|
|
18268
|
+
"name": "id",
|
|
18269
|
+
"sdkName": "id",
|
|
18270
|
+
"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."
|
|
18271
|
+
}
|
|
18272
|
+
],
|
|
18273
|
+
"query": [],
|
|
18274
|
+
"body": {
|
|
18275
|
+
"required": true,
|
|
18276
|
+
"fields": [
|
|
18277
|
+
{
|
|
18278
|
+
"name": "headSha",
|
|
18279
|
+
"type": "string",
|
|
18280
|
+
"required": true,
|
|
18281
|
+
"description": "The pull request's current head commit, from the pull request's head.sha; any other commit is refused with HEAD_MOVED."
|
|
18282
|
+
},
|
|
18283
|
+
{
|
|
18284
|
+
"name": "checks",
|
|
18285
|
+
"type": "array",
|
|
18286
|
+
"itemType": "string",
|
|
18287
|
+
"required": true,
|
|
18288
|
+
"description": "The gate checks the exception covers, at least one; a name that is not a gate check is refused with INVALID_ARGUMENT."
|
|
18289
|
+
},
|
|
18290
|
+
{
|
|
18291
|
+
"name": "ticket",
|
|
18292
|
+
"type": "string",
|
|
18293
|
+
"required": true,
|
|
18294
|
+
"description": "The ticket the authorization is written on, as #<number> or its URL."
|
|
18295
|
+
},
|
|
18296
|
+
{
|
|
18297
|
+
"name": "reason",
|
|
18298
|
+
"type": "string",
|
|
18299
|
+
"required": true,
|
|
18300
|
+
"description": "Why the check is let through at this head, in one sentence a later reader can audit."
|
|
18301
|
+
},
|
|
18302
|
+
{
|
|
18303
|
+
"name": "authorizedBy",
|
|
18304
|
+
"type": "string",
|
|
18305
|
+
"required": true,
|
|
18306
|
+
"description": "The holder of a listed position who authorized it, as agent:<id> or human:<id>; must hold an active assignment to one of the positions listed in practice-config (today CEO, CTO, COO)."
|
|
18307
|
+
}
|
|
18308
|
+
]
|
|
18309
|
+
}
|
|
18310
|
+
},
|
|
17909
18311
|
{
|
|
17910
18312
|
"resource": "devops.pullRequests",
|
|
17911
18313
|
"method": "recordVerdict",
|
|
@@ -17961,7 +18363,7 @@ export const operations = [
|
|
|
17961
18363
|
"resource": "devops.pullRequests",
|
|
17962
18364
|
"method": "rerunGate",
|
|
17963
18365
|
"summary": "Decide a pull request's merge gate again",
|
|
17964
|
-
"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
|
|
18366
|
+
"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 check says 平台故障,不是代码问题 (cause infrastructure) or when a fact the gate reads changed without a new push. First it restarts the checks the platform could not answer at this head — repo-lint or lockfile reading unavailable with cause infrastructure, or not_run — by clearing their unanswered records and starting the check machine again; a passed or failed result is never reopened. Restarting is limited to 3 times per head per hour, and a fourth is refused with GATE_RERUN_LIMITED (429): an outage that is not fixed only fails again, so report it to 运维部 instead. A call with nothing to restart only decides again and is never limited — for example after a flag was registered (test evidence uploaded for the head already decides the gate again by itself). The answer is the pull request with the gate it now reaches; a restarted check reads pending until the machine answers. 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.",
|
|
17965
18367
|
"http": "POST",
|
|
17966
18368
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
17967
18369
|
"streaming": "no",
|
|
@@ -18544,7 +18946,7 @@ export const operations = [
|
|
|
18544
18946
|
"resource": "devops.units",
|
|
18545
18947
|
"method": "push",
|
|
18546
18948
|
"summary": "Push a unit's branch",
|
|
18547
|
-
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed,
|
|
18949
|
+
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, naming the head it is at now in the message and in details.remoteHead. Read the starting value from the unit's git.remoteHead (fetch first when someone else may have pushed). For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
|
|
18548
18950
|
"http": "POST",
|
|
18549
18951
|
"path": "/devops/v1/units/{id}:push",
|
|
18550
18952
|
"streaming": "no",
|
|
@@ -18611,6 +19013,592 @@ export const operations = [
|
|
|
18611
19013
|
],
|
|
18612
19014
|
"query": []
|
|
18613
19015
|
},
|
|
19016
|
+
{
|
|
19017
|
+
"resource": "end.accessTokens",
|
|
19018
|
+
"method": "create",
|
|
19019
|
+
"summary": "Exchange a grant code or publishable key",
|
|
19020
|
+
"description": "Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis end user access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous end user (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 END_USER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.end.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.",
|
|
19021
|
+
"http": "POST",
|
|
19022
|
+
"path": "/end/v1/access_tokens",
|
|
19023
|
+
"streaming": "no",
|
|
19024
|
+
"pagination": false,
|
|
19025
|
+
"pathParams": [],
|
|
19026
|
+
"query": [],
|
|
19027
|
+
"headers": [
|
|
19028
|
+
{
|
|
19029
|
+
"name": "Origin",
|
|
19030
|
+
"type": "string",
|
|
19031
|
+
"required": false,
|
|
19032
|
+
"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."
|
|
19033
|
+
}
|
|
19034
|
+
],
|
|
19035
|
+
"body": {
|
|
19036
|
+
"required": true,
|
|
19037
|
+
"fields": [
|
|
19038
|
+
{
|
|
19039
|
+
"name": "grant_code",
|
|
19040
|
+
"type": "string",
|
|
19041
|
+
"required": false,
|
|
19042
|
+
"description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
|
|
19043
|
+
},
|
|
19044
|
+
{
|
|
19045
|
+
"name": "publishable_key",
|
|
19046
|
+
"type": "string",
|
|
19047
|
+
"required": false,
|
|
19048
|
+
"description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin, unless continuation_token continues an earlier visitor of this key's organization."
|
|
19049
|
+
},
|
|
19050
|
+
{
|
|
19051
|
+
"name": "continuation_token",
|
|
19052
|
+
"type": "string",
|
|
19053
|
+
"required": false,
|
|
19054
|
+
"description": "The continuation_token of an earlier anonymous answer, kept by the page's own storage. A live one continues that anonymous end user (a new sign-in of seven days, with a rotated token); an unknown, expired, revoked, merged, blocked or foreign-organization one is treated as absent, so the answer never reveals whether it exists. It also continues the visitor when the page presents another publishable key of the same organization, but the resources it may reach are only those of the key presented now. Only accepted with publishable_key."
|
|
19055
|
+
}
|
|
19056
|
+
]
|
|
19057
|
+
}
|
|
19058
|
+
},
|
|
19059
|
+
{
|
|
19060
|
+
"resource": "end.accessTokens",
|
|
19061
|
+
"method": "revoke",
|
|
19062
|
+
"summary": "Sign out the current token",
|
|
19063
|
+
"description": "Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.end.users.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
19064
|
+
"http": "DELETE",
|
|
19065
|
+
"path": "/end/v1/access_tokens/current",
|
|
19066
|
+
"streaming": "no",
|
|
19067
|
+
"pagination": false,
|
|
19068
|
+
"pathParams": [],
|
|
19069
|
+
"query": []
|
|
19070
|
+
},
|
|
19071
|
+
{
|
|
19072
|
+
"resource": "end.accessTokens",
|
|
19073
|
+
"method": "renew",
|
|
19074
|
+
"summary": "Renew an access token",
|
|
19075
|
+
"description": "Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.end.accessTokens.create. A blocked end user answers 403 END_USER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
19076
|
+
"http": "POST",
|
|
19077
|
+
"path": "/end/v1/access_tokens/renew",
|
|
19078
|
+
"streaming": "no",
|
|
19079
|
+
"pagination": false,
|
|
19080
|
+
"pathParams": [],
|
|
19081
|
+
"query": []
|
|
19082
|
+
},
|
|
19083
|
+
{
|
|
19084
|
+
"resource": "end.grantCodes",
|
|
19085
|
+
"method": "create",
|
|
19086
|
+
"summary": "Create a grant code",
|
|
19087
|
+
"description": "Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. end_user_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_end_user_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_end_user_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.",
|
|
19088
|
+
"http": "POST",
|
|
19089
|
+
"path": "/end/v1/grant_codes",
|
|
19090
|
+
"streaming": "no",
|
|
19091
|
+
"pagination": false,
|
|
19092
|
+
"pathParams": [],
|
|
19093
|
+
"query": [],
|
|
19094
|
+
"body": {
|
|
19095
|
+
"required": true,
|
|
19096
|
+
"fields": [
|
|
19097
|
+
{
|
|
19098
|
+
"name": "end_user_id",
|
|
19099
|
+
"type": "string",
|
|
19100
|
+
"required": true,
|
|
19101
|
+
"description": "Your own identifier for the end user, a non-empty string; do not use an email address or phone number, and a value starting with anon_ is reserved for visitors."
|
|
19102
|
+
},
|
|
19103
|
+
{
|
|
19104
|
+
"name": "metadata",
|
|
19105
|
+
"type": "object",
|
|
19106
|
+
"required": false,
|
|
19107
|
+
"description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
|
|
19108
|
+
},
|
|
19109
|
+
{
|
|
19110
|
+
"name": "resources",
|
|
19111
|
+
"type": "array",
|
|
19112
|
+
"itemType": "object",
|
|
19113
|
+
"required": true,
|
|
19114
|
+
"description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
|
|
19115
|
+
},
|
|
19116
|
+
{
|
|
19117
|
+
"name": "origin",
|
|
19118
|
+
"type": "string",
|
|
19119
|
+
"required": false,
|
|
19120
|
+
"description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
|
|
19121
|
+
},
|
|
19122
|
+
{
|
|
19123
|
+
"name": "expires_in",
|
|
19124
|
+
"type": "integer",
|
|
19125
|
+
"required": false,
|
|
19126
|
+
"description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
|
|
19127
|
+
},
|
|
19128
|
+
{
|
|
19129
|
+
"name": "max_session_seconds",
|
|
19130
|
+
"type": "integer",
|
|
19131
|
+
"required": false,
|
|
19132
|
+
"description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
|
|
19133
|
+
},
|
|
19134
|
+
{
|
|
19135
|
+
"name": "merge_end_user_id",
|
|
19136
|
+
"type": "string",
|
|
19137
|
+
"required": false,
|
|
19138
|
+
"description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
|
|
19139
|
+
},
|
|
19140
|
+
{
|
|
19141
|
+
"name": "anonymous_access_token",
|
|
19142
|
+
"type": "string",
|
|
19143
|
+
"required": false,
|
|
19144
|
+
"description": "The visitor's own Praxis end user access token, when the browser holds one, so this sign-in keeps that anonymous visitor instead of creating a new person; it is the access_token from a previous exchange, sent from your backend and never from the browser. It must be a live anonymous (anon_…) end user of this organization. It may not be combined with merge_end_user_id, and an expired, forged or foreign token answers 400 INVALID_PARAMS."
|
|
19145
|
+
}
|
|
19146
|
+
]
|
|
19147
|
+
}
|
|
19148
|
+
},
|
|
19149
|
+
{
|
|
19150
|
+
"resource": "end.publishableKeys",
|
|
19151
|
+
"method": "list",
|
|
19152
|
+
"summary": "List publishable keys",
|
|
19153
|
+
"description": "List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.",
|
|
19154
|
+
"http": "GET",
|
|
19155
|
+
"path": "/end/v1/publishable_keys",
|
|
19156
|
+
"streaming": "no",
|
|
19157
|
+
"pagination": false,
|
|
19158
|
+
"pathParams": [],
|
|
19159
|
+
"query": [
|
|
19160
|
+
{
|
|
19161
|
+
"name": "page_size",
|
|
19162
|
+
"type": "integer",
|
|
19163
|
+
"required": false,
|
|
19164
|
+
"description": "Maximum keys in one page, from 1 to 100; defaults to 50."
|
|
19165
|
+
},
|
|
19166
|
+
{
|
|
19167
|
+
"name": "page_token",
|
|
19168
|
+
"type": "string",
|
|
19169
|
+
"required": false,
|
|
19170
|
+
"description": "next_page from the preceding key list response; omit for the first page."
|
|
19171
|
+
}
|
|
19172
|
+
]
|
|
19173
|
+
},
|
|
19174
|
+
{
|
|
19175
|
+
"resource": "end.publishableKeys",
|
|
19176
|
+
"method": "create",
|
|
19177
|
+
"summary": "Create a publishable key",
|
|
19178
|
+
"description": "Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {\"amount\": \"5.00\", \"currency\": \"USD\"} (at most 2 decimals), read from the key's usage events; change them later with praxis.end.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.end.accessTokens.create with publishable_key.",
|
|
19179
|
+
"http": "POST",
|
|
19180
|
+
"path": "/end/v1/publishable_keys",
|
|
19181
|
+
"streaming": "no",
|
|
19182
|
+
"pagination": false,
|
|
19183
|
+
"pathParams": [],
|
|
19184
|
+
"query": [],
|
|
19185
|
+
"body": {
|
|
19186
|
+
"required": true,
|
|
19187
|
+
"fields": [
|
|
19188
|
+
{
|
|
19189
|
+
"name": "name",
|
|
19190
|
+
"type": "string",
|
|
19191
|
+
"required": true,
|
|
19192
|
+
"description": "Label for the key, shown in the console and the key list, for example Storefront."
|
|
19193
|
+
},
|
|
19194
|
+
{
|
|
19195
|
+
"name": "resources",
|
|
19196
|
+
"type": "array",
|
|
19197
|
+
"itemType": "object",
|
|
19198
|
+
"required": true,
|
|
19199
|
+
"description": "Resource scopes an anonymous visitor may reach, at least one, each a scope string or an object with scope and params; grant only what the anonymous experience needs."
|
|
19200
|
+
},
|
|
19201
|
+
{
|
|
19202
|
+
"name": "anon_rate_per_min",
|
|
19203
|
+
"type": "integer",
|
|
19204
|
+
"required": false,
|
|
19205
|
+
"description": "Most exchanges of this key per UTC minute, from 1 to 100000, counting every visitor together; omit or send null for no per-key limit."
|
|
19206
|
+
},
|
|
19207
|
+
{
|
|
19208
|
+
"name": "daily_session_cap",
|
|
19209
|
+
"type": "integer",
|
|
19210
|
+
"required": false,
|
|
19211
|
+
"description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; returning visitors are not counted. Omit or send null for no limit."
|
|
19212
|
+
},
|
|
19213
|
+
{
|
|
19214
|
+
"name": "daily_spend_cap",
|
|
19215
|
+
"type": "object",
|
|
19216
|
+
"required": false,
|
|
19217
|
+
"description": "The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; 0.00 closes the key. Omit or send null for no spend cap."
|
|
19218
|
+
}
|
|
19219
|
+
]
|
|
19220
|
+
}
|
|
19221
|
+
},
|
|
19222
|
+
{
|
|
19223
|
+
"resource": "end.publishableKeys",
|
|
19224
|
+
"method": "delete",
|
|
19225
|
+
"summary": "Delete a publishable key",
|
|
19226
|
+
"description": "Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
|
|
19227
|
+
"http": "DELETE",
|
|
19228
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19229
|
+
"streaming": "no",
|
|
19230
|
+
"pagination": false,
|
|
19231
|
+
"pathParams": [
|
|
19232
|
+
{
|
|
19233
|
+
"name": "key_id",
|
|
19234
|
+
"sdkName": "key_id",
|
|
19235
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19236
|
+
}
|
|
19237
|
+
],
|
|
19238
|
+
"query": []
|
|
19239
|
+
},
|
|
19240
|
+
{
|
|
19241
|
+
"resource": "end.publishableKeys",
|
|
19242
|
+
"method": "update",
|
|
19243
|
+
"summary": "Update a publishable key",
|
|
19244
|
+
"description": "Change the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.",
|
|
19245
|
+
"http": "PATCH",
|
|
19246
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19247
|
+
"streaming": "no",
|
|
19248
|
+
"pagination": false,
|
|
19249
|
+
"pathParams": [
|
|
19250
|
+
{
|
|
19251
|
+
"name": "key_id",
|
|
19252
|
+
"sdkName": "key_id",
|
|
19253
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19254
|
+
}
|
|
19255
|
+
],
|
|
19256
|
+
"query": [],
|
|
19257
|
+
"body": {
|
|
19258
|
+
"required": true,
|
|
19259
|
+
"fields": [
|
|
19260
|
+
{
|
|
19261
|
+
"name": "name",
|
|
19262
|
+
"type": "string",
|
|
19263
|
+
"required": false,
|
|
19264
|
+
"description": "New label for the key, 1 to 64 characters."
|
|
19265
|
+
},
|
|
19266
|
+
{
|
|
19267
|
+
"name": "anon_rate_per_min",
|
|
19268
|
+
"type": "integer",
|
|
19269
|
+
"required": false,
|
|
19270
|
+
"description": "Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit."
|
|
19271
|
+
},
|
|
19272
|
+
{
|
|
19273
|
+
"name": "daily_session_cap",
|
|
19274
|
+
"type": "integer",
|
|
19275
|
+
"required": false,
|
|
19276
|
+
"description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit."
|
|
19277
|
+
},
|
|
19278
|
+
{
|
|
19279
|
+
"name": "daily_spend_cap",
|
|
19280
|
+
"type": "object",
|
|
19281
|
+
"required": false,
|
|
19282
|
+
"description": "The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; null removes the cap."
|
|
19283
|
+
}
|
|
19284
|
+
]
|
|
19285
|
+
}
|
|
19286
|
+
},
|
|
19287
|
+
{
|
|
19288
|
+
"resource": "end.users",
|
|
19289
|
+
"method": "list",
|
|
19290
|
+
"summary": "List end users",
|
|
19291
|
+
"description": "Read the organization's end-user directory and obtain the end_user_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the end user id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.",
|
|
19292
|
+
"http": "GET",
|
|
19293
|
+
"path": "/end/v1/users",
|
|
19294
|
+
"streaming": "no",
|
|
19295
|
+
"pagination": false,
|
|
19296
|
+
"pathParams": [],
|
|
19297
|
+
"query": [
|
|
19298
|
+
{
|
|
19299
|
+
"name": "page_size",
|
|
19300
|
+
"type": "integer",
|
|
19301
|
+
"required": false,
|
|
19302
|
+
"description": "Maximum end users in one page, from 1 to 100; defaults to 50."
|
|
19303
|
+
},
|
|
19304
|
+
{
|
|
19305
|
+
"name": "page_token",
|
|
19306
|
+
"type": "string",
|
|
19307
|
+
"required": false,
|
|
19308
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
19309
|
+
},
|
|
19310
|
+
{
|
|
19311
|
+
"name": "type",
|
|
19312
|
+
"type": "string",
|
|
19313
|
+
"enum": [
|
|
19314
|
+
"identified",
|
|
19315
|
+
"anonymous"
|
|
19316
|
+
],
|
|
19317
|
+
"required": false,
|
|
19318
|
+
"description": "Only end users of this kind; identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key. Omit for both."
|
|
19319
|
+
},
|
|
19320
|
+
{
|
|
19321
|
+
"name": "blocked",
|
|
19322
|
+
"type": "boolean",
|
|
19323
|
+
"required": false,
|
|
19324
|
+
"description": "true for blocked end users only, false for end users who are not blocked; omit for both."
|
|
19325
|
+
},
|
|
19326
|
+
{
|
|
19327
|
+
"name": "resource",
|
|
19328
|
+
"type": "string",
|
|
19329
|
+
"required": false,
|
|
19330
|
+
"description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
|
|
19331
|
+
},
|
|
19332
|
+
{
|
|
19333
|
+
"name": "q",
|
|
19334
|
+
"type": "string",
|
|
19335
|
+
"required": false,
|
|
19336
|
+
"description": "Only end users whose end user id starts with this prefix, for example cus_; omit for every id."
|
|
19337
|
+
}
|
|
19338
|
+
]
|
|
19339
|
+
},
|
|
19340
|
+
{
|
|
19341
|
+
"resource": "end.users",
|
|
19342
|
+
"method": "delete",
|
|
19343
|
+
"summary": "Delete an end user",
|
|
19344
|
+
"description": "Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's end_user_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
|
|
19345
|
+
"http": "DELETE",
|
|
19346
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19347
|
+
"streaming": "no",
|
|
19348
|
+
"pagination": false,
|
|
19349
|
+
"pathParams": [
|
|
19350
|
+
{
|
|
19351
|
+
"name": "end_user_id",
|
|
19352
|
+
"sdkName": "end_user_id",
|
|
19353
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19354
|
+
}
|
|
19355
|
+
],
|
|
19356
|
+
"query": [
|
|
19357
|
+
{
|
|
19358
|
+
"name": "confirm",
|
|
19359
|
+
"type": "string",
|
|
19360
|
+
"required": true,
|
|
19361
|
+
"description": "The end_user_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
|
|
19362
|
+
}
|
|
19363
|
+
]
|
|
19364
|
+
},
|
|
19365
|
+
{
|
|
19366
|
+
"resource": "end.users",
|
|
19367
|
+
"method": "retrieve",
|
|
19368
|
+
"summary": "Get an end user",
|
|
19369
|
+
"description": "Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 END_USER_NOT_FOUND.",
|
|
19370
|
+
"http": "GET",
|
|
19371
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19372
|
+
"streaming": "no",
|
|
19373
|
+
"pagination": false,
|
|
19374
|
+
"pathParams": [
|
|
19375
|
+
{
|
|
19376
|
+
"name": "end_user_id",
|
|
19377
|
+
"sdkName": "end_user_id",
|
|
19378
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19379
|
+
}
|
|
19380
|
+
],
|
|
19381
|
+
"query": [
|
|
19382
|
+
{
|
|
19383
|
+
"name": "expand",
|
|
19384
|
+
"type": "string",
|
|
19385
|
+
"required": false,
|
|
19386
|
+
"description": "Comma-separated extras to include; products for the products this end user has used, sign_ins for its sign-ins, usage for its recorded usage. Omit to get only the directory record."
|
|
19387
|
+
}
|
|
19388
|
+
]
|
|
19389
|
+
},
|
|
19390
|
+
{
|
|
19391
|
+
"resource": "end.users",
|
|
19392
|
+
"method": "block",
|
|
19393
|
+
"summary": "Block an end user",
|
|
19394
|
+
"description": "Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
|
|
19395
|
+
"http": "POST",
|
|
19396
|
+
"path": "/end/v1/users/{end_user_id}/block",
|
|
19397
|
+
"streaming": "no",
|
|
19398
|
+
"pagination": false,
|
|
19399
|
+
"pathParams": [
|
|
19400
|
+
{
|
|
19401
|
+
"name": "end_user_id",
|
|
19402
|
+
"sdkName": "end_user_id",
|
|
19403
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19404
|
+
}
|
|
19405
|
+
],
|
|
19406
|
+
"query": [],
|
|
19407
|
+
"body": {
|
|
19408
|
+
"required": false,
|
|
19409
|
+
"fields": [
|
|
19410
|
+
{
|
|
19411
|
+
"name": "reason",
|
|
19412
|
+
"type": "string",
|
|
19413
|
+
"required": false,
|
|
19414
|
+
"description": "Why the end user is blocked, recorded with the block fact; omit for none."
|
|
19415
|
+
}
|
|
19416
|
+
]
|
|
19417
|
+
}
|
|
19418
|
+
},
|
|
19419
|
+
{
|
|
19420
|
+
"resource": "end.users",
|
|
19421
|
+
"method": "revokeTokens",
|
|
19422
|
+
"summary": "Revoke every token of an end user",
|
|
19423
|
+
"description": "End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.end.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
|
|
19424
|
+
"http": "POST",
|
|
19425
|
+
"path": "/end/v1/users/{end_user_id}/revoke_tokens",
|
|
19426
|
+
"streaming": "no",
|
|
19427
|
+
"pagination": false,
|
|
19428
|
+
"pathParams": [
|
|
19429
|
+
{
|
|
19430
|
+
"name": "end_user_id",
|
|
19431
|
+
"sdkName": "end_user_id",
|
|
19432
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19433
|
+
}
|
|
19434
|
+
],
|
|
19435
|
+
"query": []
|
|
19436
|
+
},
|
|
19437
|
+
{
|
|
19438
|
+
"resource": "end.users",
|
|
19439
|
+
"method": "unblock",
|
|
19440
|
+
"summary": "Unblock an end user",
|
|
19441
|
+
"description": "Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
|
|
19442
|
+
"http": "POST",
|
|
19443
|
+
"path": "/end/v1/users/{end_user_id}/unblock",
|
|
19444
|
+
"streaming": "no",
|
|
19445
|
+
"pagination": false,
|
|
19446
|
+
"pathParams": [
|
|
19447
|
+
{
|
|
19448
|
+
"name": "end_user_id",
|
|
19449
|
+
"sdkName": "end_user_id",
|
|
19450
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19451
|
+
}
|
|
19452
|
+
],
|
|
19453
|
+
"query": []
|
|
19454
|
+
},
|
|
19455
|
+
{
|
|
19456
|
+
"resource": "end.usage",
|
|
19457
|
+
"method": "retrieve",
|
|
19458
|
+
"summary": "Read end-user usage",
|
|
19459
|
+
"description": "Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the endId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 END_USER_NOT_FOUND.",
|
|
19460
|
+
"http": "GET",
|
|
19461
|
+
"path": "/end/v1/users/{end_user_id}/usage",
|
|
19462
|
+
"streaming": "no",
|
|
19463
|
+
"pagination": false,
|
|
19464
|
+
"pathParams": [
|
|
19465
|
+
{
|
|
19466
|
+
"name": "end_user_id",
|
|
19467
|
+
"sdkName": "end_user_id",
|
|
19468
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19469
|
+
}
|
|
19470
|
+
],
|
|
19471
|
+
"query": [
|
|
19472
|
+
{
|
|
19473
|
+
"name": "from",
|
|
19474
|
+
"type": "string",
|
|
19475
|
+
"required": false,
|
|
19476
|
+
"description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
|
|
19477
|
+
},
|
|
19478
|
+
{
|
|
19479
|
+
"name": "to",
|
|
19480
|
+
"type": "string",
|
|
19481
|
+
"required": false,
|
|
19482
|
+
"description": "End of the window as an RFC 3339 time, exclusive; omit for now."
|
|
19483
|
+
}
|
|
19484
|
+
]
|
|
19485
|
+
},
|
|
19486
|
+
{
|
|
19487
|
+
"resource": "events.subscriptions",
|
|
19488
|
+
"method": "list",
|
|
19489
|
+
"summary": "List event subscriptions",
|
|
19490
|
+
"description": "See which subscriptions you still have waiting, for example to avoid subscribing twice to the same run or to find an id to delete. Only subscriptions you created, in your organization, that have not expired are listed. The list is one page of at most limit entries: next_cursor is always null today. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter or a limit outside 1 to 100.",
|
|
19491
|
+
"http": "GET",
|
|
19492
|
+
"path": "/events/v1/subscriptions",
|
|
19493
|
+
"streaming": "no",
|
|
19494
|
+
"pagination": false,
|
|
19495
|
+
"pathParams": [],
|
|
19496
|
+
"query": [
|
|
19497
|
+
{
|
|
19498
|
+
"name": "limit",
|
|
19499
|
+
"type": "integer",
|
|
19500
|
+
"required": false,
|
|
19501
|
+
"description": "Maximum subscriptions to return, from 1 to 100; defaults to 50."
|
|
19502
|
+
}
|
|
19503
|
+
]
|
|
19504
|
+
},
|
|
19505
|
+
{
|
|
19506
|
+
"resource": "events.subscriptions",
|
|
19507
|
+
"method": "create",
|
|
19508
|
+
"summary": "Create event subscription",
|
|
19509
|
+
"description": "Ask to be told, as an inbox letter, when something happens to a resource of your organization. Typical use: an agent that started an automation run subscribes to `automation.run.finished` with `filters: [{ exact: { subject: \"runs/<run id>\" } }]`, then ends its turn; when the run finishes, one letter of kind event arrives in the agent's inbox and wakes it. With codemode: `const run = await praxis.automation.runs.create({ ... }); await praxis.events.subscriptions.create({ types: [\"automation.run.finished\"], filters: [{ exact: { subject: `runs/${run.id}` } }] });` Name 1 to 10 types from events.types.list; filters must all hold, may be empty, and use exact or prefix on subject, actor or a data.<field> the type declares. once defaults to true: the first match writes one letter and the subscription ends. Set once false for a standing subscription, which delivers at most 30 letters an hour, counts the matches it holds back, and never delivers an event whose actor is its own sink. expires_at defaults to 7 days from now and may be at most 30 days; a subscription past it stops matching. The sink is the caller's own inbox; the organization comes from your credential and is not a field. The letter's summary is `<type> · <subject>` and its body is the event, with the type's sensitive fields removed. Errors: 400 UNSUPPORTED_FILTER_DIALECT for any filter form other than exact and prefix; 400 INVALID_PARAMS for a type that is not a tenant type, a filter field the type does not declare, a field not listed here (the organization is never a field), too many types or filters, or an expires_at beyond 30 days; 503 PROVIDER_UNAVAILABLE (retryable) when the catalog cannot be read, wait and call again.",
|
|
19510
|
+
"http": "POST",
|
|
19511
|
+
"path": "/events/v1/subscriptions",
|
|
19512
|
+
"streaming": "no",
|
|
19513
|
+
"pagination": false,
|
|
19514
|
+
"pathParams": [],
|
|
19515
|
+
"query": [],
|
|
19516
|
+
"body": {
|
|
19517
|
+
"required": true,
|
|
19518
|
+
"fields": [
|
|
19519
|
+
{
|
|
19520
|
+
"name": "types",
|
|
19521
|
+
"type": "array",
|
|
19522
|
+
"itemType": "string",
|
|
19523
|
+
"required": true,
|
|
19524
|
+
"description": "The tenant event types to hear about, from events.types.list; an event of any one of them can match."
|
|
19525
|
+
},
|
|
19526
|
+
{
|
|
19527
|
+
"name": "filters",
|
|
19528
|
+
"type": "array",
|
|
19529
|
+
"itemType": "object",
|
|
19530
|
+
"required": false,
|
|
19531
|
+
"description": "Conditions that must all hold for an event to match; omit or leave empty to match every event of the types."
|
|
19532
|
+
},
|
|
19533
|
+
{
|
|
19534
|
+
"name": "sink",
|
|
19535
|
+
"type": "string",
|
|
19536
|
+
"required": false,
|
|
19537
|
+
"description": "The inbox address that receives the letters, agent:<id> or human:<id>. Today only the caller's own address is accepted, which is also the default."
|
|
19538
|
+
},
|
|
19539
|
+
{
|
|
19540
|
+
"name": "once",
|
|
19541
|
+
"type": "boolean",
|
|
19542
|
+
"required": false,
|
|
19543
|
+
"description": "True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour."
|
|
19544
|
+
},
|
|
19545
|
+
{
|
|
19546
|
+
"name": "expires_at",
|
|
19547
|
+
"type": "string",
|
|
19548
|
+
"required": false,
|
|
19549
|
+
"description": "When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now."
|
|
19550
|
+
}
|
|
19551
|
+
]
|
|
19552
|
+
}
|
|
19553
|
+
},
|
|
19554
|
+
{
|
|
19555
|
+
"resource": "events.subscriptions",
|
|
19556
|
+
"method": "delete",
|
|
19557
|
+
"summary": "Delete event subscription",
|
|
19558
|
+
"description": "Stop waiting for an event, for example when the run you were waiting for was canceled by you. The subscription stops matching at once and a letter already written stays in the inbox. A once subscription that has already fired is gone, so deleting it answers 404 SUBSCRIPTION_NOT_FOUND; treat that as done. Take the id from subscriptions.create or subscriptions.list.",
|
|
19559
|
+
"http": "DELETE",
|
|
19560
|
+
"path": "/events/v1/subscriptions/{subscription_id}",
|
|
19561
|
+
"streaming": "no",
|
|
19562
|
+
"pagination": false,
|
|
19563
|
+
"pathParams": [
|
|
19564
|
+
{
|
|
19565
|
+
"name": "subscription_id",
|
|
19566
|
+
"sdkName": "subscription_id",
|
|
19567
|
+
"description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
|
|
19568
|
+
}
|
|
19569
|
+
],
|
|
19570
|
+
"query": []
|
|
19571
|
+
},
|
|
19572
|
+
{
|
|
19573
|
+
"resource": "events.subscriptions",
|
|
19574
|
+
"method": "retrieve",
|
|
19575
|
+
"summary": "Retrieve event subscription",
|
|
19576
|
+
"description": "Read one subscription to check its filters, its sink and when it expires. Take the id from subscriptions.create or subscriptions.list. A subscription that does not exist, has expired, belongs to someone else or to another organization answers the same 404 SUBSCRIPTION_NOT_FOUND. Read-only.",
|
|
19577
|
+
"http": "GET",
|
|
19578
|
+
"path": "/events/v1/subscriptions/{subscription_id}",
|
|
19579
|
+
"streaming": "no",
|
|
19580
|
+
"pagination": false,
|
|
19581
|
+
"pathParams": [
|
|
19582
|
+
{
|
|
19583
|
+
"name": "subscription_id",
|
|
19584
|
+
"sdkName": "subscription_id",
|
|
19585
|
+
"description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
|
|
19586
|
+
}
|
|
19587
|
+
],
|
|
19588
|
+
"query": []
|
|
19589
|
+
},
|
|
19590
|
+
{
|
|
19591
|
+
"resource": "events.types",
|
|
19592
|
+
"method": "list",
|
|
19593
|
+
"summary": "List event types",
|
|
19594
|
+
"description": "Find which facts about your organization's resources you can subscribe to, and which filters each one allows, before you create a subscription. Each entry is one event type at one schema version: type is what you pass in subscriptions.create types, data_schema describes the event's data, and filterable lists the names a filter may use (subject, actor, and data.<field> for each top-level field of data_schema). Only tenant event types are listed; the list is generated from the platform's event declarations, so a new tenant event appears here without an API change. When a breaking change publishes a new schemaversion, both versions are listed side by side. The list is one page: next_cursor is always null today. Read-only. Errors: 503 PROVIDER_UNAVAILABLE (retryable) when the catalog cannot be read right now; wait and call again.",
|
|
19595
|
+
"http": "GET",
|
|
19596
|
+
"path": "/events/v1/types",
|
|
19597
|
+
"streaming": "no",
|
|
19598
|
+
"pagination": false,
|
|
19599
|
+
"pathParams": [],
|
|
19600
|
+
"query": []
|
|
19601
|
+
},
|
|
18614
19602
|
{
|
|
18615
19603
|
"resource": "file.files",
|
|
18616
19604
|
"method": "list",
|
|
@@ -18886,7 +19874,7 @@ export const operations = [
|
|
|
18886
19874
|
"resource": "file.uploads",
|
|
18887
19875
|
"method": "createSigned",
|
|
18888
19876
|
"summary": "Create a one-time upload URL",
|
|
18889
|
-
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns
|
|
19877
|
+
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 201 with the same file, because a lost answer must not cost the file. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. An expired upload answers 410 UPLOAD_EXPIRED on its status_url and complete_url while the upload still exists in the caller's organization; revoked, invalid, cross-organization or unknown URLs return 404, including a link whose upload record no longer exists. A signed URL used for another action answers 403 CAPABILITY_MISMATCH, judged before expiry, so a status link posted to complete_url answers it and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
|
|
18890
19878
|
"http": "POST",
|
|
18891
19879
|
"path": "/file/v1/uploads/signed",
|
|
18892
19880
|
"streaming": "no",
|
|
@@ -20879,6 +21867,42 @@ export const operations = [
|
|
|
20879
21867
|
],
|
|
20880
21868
|
"query": []
|
|
20881
21869
|
},
|
|
21870
|
+
{
|
|
21871
|
+
"resource": "media.libraries.assets.works",
|
|
21872
|
+
"method": "list",
|
|
21873
|
+
"summary": "List works using an asset",
|
|
21874
|
+
"description": "List the works whose body names one asset, as work summaries, most recently changed first. Check it before deleting an asset: the delete is never blocked, and those works would then show the asset as missing.",
|
|
21875
|
+
"http": "GET",
|
|
21876
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/works",
|
|
21877
|
+
"streaming": "no",
|
|
21878
|
+
"pagination": true,
|
|
21879
|
+
"pathParams": [
|
|
21880
|
+
{
|
|
21881
|
+
"name": "library_id",
|
|
21882
|
+
"sdkName": "library_id",
|
|
21883
|
+
"description": "Library ID returned by creation."
|
|
21884
|
+
},
|
|
21885
|
+
{
|
|
21886
|
+
"name": "asset_id",
|
|
21887
|
+
"sdkName": "asset_id",
|
|
21888
|
+
"description": "32-character asset ID."
|
|
21889
|
+
}
|
|
21890
|
+
],
|
|
21891
|
+
"query": [
|
|
21892
|
+
{
|
|
21893
|
+
"name": "limit",
|
|
21894
|
+
"type": "integer",
|
|
21895
|
+
"required": false,
|
|
21896
|
+
"description": "Maximum entries in this page, from 1 through 100; defaults to 100."
|
|
21897
|
+
},
|
|
21898
|
+
{
|
|
21899
|
+
"name": "cursor",
|
|
21900
|
+
"type": "string",
|
|
21901
|
+
"required": false,
|
|
21902
|
+
"description": "Cursor from the previous next_cursor."
|
|
21903
|
+
}
|
|
21904
|
+
]
|
|
21905
|
+
},
|
|
20882
21906
|
{
|
|
20883
21907
|
"resource": "media.libraries.assets",
|
|
20884
21908
|
"method": "batch",
|
|
@@ -22148,6 +23172,215 @@ export const operations = [
|
|
|
22148
23172
|
]
|
|
22149
23173
|
}
|
|
22150
23174
|
},
|
|
23175
|
+
{
|
|
23176
|
+
"resource": "media.libraries.works",
|
|
23177
|
+
"method": "list",
|
|
23178
|
+
"summary": "List works",
|
|
23179
|
+
"description": "List the works of a library as summaries, most recently changed first: id, kind, title, series, cover_url, item_count, missing_count and updated_at. Filter with kind and series (for example all platform versions of one story), match the title with q, and continue with next_cursor.",
|
|
23180
|
+
"http": "GET",
|
|
23181
|
+
"path": "/media/v1/libraries/{library_id}/works",
|
|
23182
|
+
"streaming": "no",
|
|
23183
|
+
"pagination": true,
|
|
23184
|
+
"pathParams": [
|
|
23185
|
+
{
|
|
23186
|
+
"name": "library_id",
|
|
23187
|
+
"sdkName": "library_id",
|
|
23188
|
+
"description": "Library ID returned by creation."
|
|
23189
|
+
}
|
|
23190
|
+
],
|
|
23191
|
+
"query": [
|
|
23192
|
+
{
|
|
23193
|
+
"name": "kind",
|
|
23194
|
+
"type": "string",
|
|
23195
|
+
"enum": [
|
|
23196
|
+
"gallery",
|
|
23197
|
+
"article",
|
|
23198
|
+
"product_listing",
|
|
23199
|
+
"blocks"
|
|
23200
|
+
],
|
|
23201
|
+
"required": false,
|
|
23202
|
+
"description": "Only works of this kind: gallery, article, product_listing or blocks."
|
|
23203
|
+
},
|
|
23204
|
+
{
|
|
23205
|
+
"name": "series",
|
|
23206
|
+
"type": "string",
|
|
23207
|
+
"required": false,
|
|
23208
|
+
"description": "Only works of this series."
|
|
23209
|
+
},
|
|
23210
|
+
{
|
|
23211
|
+
"name": "q",
|
|
23212
|
+
"type": "string",
|
|
23213
|
+
"required": false,
|
|
23214
|
+
"description": "Only works whose title contains this text, at most 100 characters."
|
|
23215
|
+
},
|
|
23216
|
+
{
|
|
23217
|
+
"name": "limit",
|
|
23218
|
+
"type": "integer",
|
|
23219
|
+
"required": false,
|
|
23220
|
+
"description": "Maximum entries in this page, from 1 through 100; defaults to 100."
|
|
23221
|
+
},
|
|
23222
|
+
{
|
|
23223
|
+
"name": "cursor",
|
|
23224
|
+
"type": "string",
|
|
23225
|
+
"required": false,
|
|
23226
|
+
"description": "Cursor from the previous next_cursor."
|
|
23227
|
+
}
|
|
23228
|
+
]
|
|
23229
|
+
},
|
|
23230
|
+
{
|
|
23231
|
+
"resource": "media.libraries.works",
|
|
23232
|
+
"method": "create",
|
|
23233
|
+
"summary": "Create work",
|
|
23234
|
+
"description": "Create a work in a library: a gallery (图文), an article (长文), a product listing (商品图组) or a general work (blocks, 通用作品, Editor.js saved data whose image blocks name library assets in data.asset_id) that orders references to assets of this same library and adds a title and text. Upload or generate the pictures first, then send kind and body. In an article an inline image is written  where it should appear. Every asset the body names must be a live image or sticker of this library (a gallery item may also be a video), or the request is refused naming every bad reference and nothing is saved. Price, stock and other unknown fields are refused. Several platform versions of one story are several works with the same series. A work copies no file and changes no asset; creating one is free. Answers 201 with the work. Example: POST /media/v1/libraries/default/works with {\"kind\":\"gallery\",\"series\":\"ai-diary-01\",\"body\":{\"title\":\"AI 创业第一天就踩坑\",\"items\":[{\"asset_id\":\"<asset id>\"}]}}.",
|
|
23235
|
+
"http": "POST",
|
|
23236
|
+
"path": "/media/v1/libraries/{library_id}/works",
|
|
23237
|
+
"streaming": "no",
|
|
23238
|
+
"pagination": false,
|
|
23239
|
+
"pathParams": [
|
|
23240
|
+
{
|
|
23241
|
+
"name": "library_id",
|
|
23242
|
+
"sdkName": "library_id",
|
|
23243
|
+
"description": "Library ID returned by creation."
|
|
23244
|
+
}
|
|
23245
|
+
],
|
|
23246
|
+
"query": [],
|
|
23247
|
+
"body": {
|
|
23248
|
+
"required": true,
|
|
23249
|
+
"fields": [
|
|
23250
|
+
{
|
|
23251
|
+
"name": "kind",
|
|
23252
|
+
"type": "string",
|
|
23253
|
+
"enum": [
|
|
23254
|
+
"gallery",
|
|
23255
|
+
"article",
|
|
23256
|
+
"product_listing",
|
|
23257
|
+
"blocks"
|
|
23258
|
+
],
|
|
23259
|
+
"required": true,
|
|
23260
|
+
"description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
|
|
23261
|
+
},
|
|
23262
|
+
{
|
|
23263
|
+
"name": "body",
|
|
23264
|
+
"type": "object",
|
|
23265
|
+
"required": true
|
|
23266
|
+
},
|
|
23267
|
+
{
|
|
23268
|
+
"name": "series",
|
|
23269
|
+
"type": "string",
|
|
23270
|
+
"required": false,
|
|
23271
|
+
"description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
|
|
23272
|
+
},
|
|
23273
|
+
{
|
|
23274
|
+
"name": "custom",
|
|
23275
|
+
"type": "object",
|
|
23276
|
+
"required": false
|
|
23277
|
+
}
|
|
23278
|
+
]
|
|
23279
|
+
}
|
|
23280
|
+
},
|
|
23281
|
+
{
|
|
23282
|
+
"resource": "media.libraries.works",
|
|
23283
|
+
"method": "delete",
|
|
23284
|
+
"summary": "Delete work",
|
|
23285
|
+
"description": "Delete a work. Only the work goes: every asset it named stays in the library unchanged.",
|
|
23286
|
+
"http": "DELETE",
|
|
23287
|
+
"path": "/media/v1/libraries/{library_id}/works/{work_id}",
|
|
23288
|
+
"streaming": "no",
|
|
23289
|
+
"pagination": false,
|
|
23290
|
+
"pathParams": [
|
|
23291
|
+
{
|
|
23292
|
+
"name": "library_id",
|
|
23293
|
+
"sdkName": "library_id",
|
|
23294
|
+
"description": "Library ID returned by creation."
|
|
23295
|
+
},
|
|
23296
|
+
{
|
|
23297
|
+
"name": "work_id",
|
|
23298
|
+
"sdkName": "work_id",
|
|
23299
|
+
"description": "Work id (wrk_…) returned by creation or listing."
|
|
23300
|
+
}
|
|
23301
|
+
],
|
|
23302
|
+
"query": []
|
|
23303
|
+
},
|
|
23304
|
+
{
|
|
23305
|
+
"resource": "media.libraries.works",
|
|
23306
|
+
"method": "retrieve",
|
|
23307
|
+
"summary": "Get work",
|
|
23308
|
+
"description": "Read one work with its body, custom fields, revision and missing (asset ids deleted since; the body keeps them in place). Add expand=assets to receive every referenced asset’s type, short-lived url, thumbnail_url and size in the same answer, which is what a publish script needs to send the work out. Use work_id from creation or listing.",
|
|
23309
|
+
"http": "GET",
|
|
23310
|
+
"path": "/media/v1/libraries/{library_id}/works/{work_id}",
|
|
23311
|
+
"streaming": "no",
|
|
23312
|
+
"pagination": false,
|
|
23313
|
+
"pathParams": [
|
|
23314
|
+
{
|
|
23315
|
+
"name": "library_id",
|
|
23316
|
+
"sdkName": "library_id",
|
|
23317
|
+
"description": "Library ID returned by creation."
|
|
23318
|
+
},
|
|
23319
|
+
{
|
|
23320
|
+
"name": "work_id",
|
|
23321
|
+
"sdkName": "work_id",
|
|
23322
|
+
"description": "Work id (wrk_…) returned by creation or listing."
|
|
23323
|
+
}
|
|
23324
|
+
],
|
|
23325
|
+
"query": [
|
|
23326
|
+
{
|
|
23327
|
+
"name": "expand",
|
|
23328
|
+
"type": "string",
|
|
23329
|
+
"required": false,
|
|
23330
|
+
"description": "assets returns every referenced asset with its URLs and size."
|
|
23331
|
+
}
|
|
23332
|
+
]
|
|
23333
|
+
},
|
|
23334
|
+
{
|
|
23335
|
+
"resource": "media.libraries.works",
|
|
23336
|
+
"method": "update",
|
|
23337
|
+
"summary": "Update work",
|
|
23338
|
+
"description": "Change a work. body replaces the whole body and is checked like a new one; series replaces the series and null clears it; custom is a JSON Merge Patch (RFC 7396), so a script writing back its published link and numbers sends only its own keys and never erases keys another script wrote, and null removes a key. Send if_revision with the revision you read to apply the change only if nobody changed the work since; otherwise the answer is 409 REVISION_CONFLICT. Example: PATCH /media/v1/libraries/default/works/<work id> with {\"custom\":{\"published_url\":\"https://…\",\"stats\":{\"likes\":120}}}.",
|
|
23339
|
+
"http": "PATCH",
|
|
23340
|
+
"path": "/media/v1/libraries/{library_id}/works/{work_id}",
|
|
23341
|
+
"streaming": "no",
|
|
23342
|
+
"pagination": false,
|
|
23343
|
+
"pathParams": [
|
|
23344
|
+
{
|
|
23345
|
+
"name": "library_id",
|
|
23346
|
+
"sdkName": "library_id",
|
|
23347
|
+
"description": "Library ID returned by creation."
|
|
23348
|
+
},
|
|
23349
|
+
{
|
|
23350
|
+
"name": "work_id",
|
|
23351
|
+
"sdkName": "work_id",
|
|
23352
|
+
"description": "Work id (wrk_…) returned by creation or listing."
|
|
23353
|
+
}
|
|
23354
|
+
],
|
|
23355
|
+
"query": [],
|
|
23356
|
+
"body": {
|
|
23357
|
+
"required": true,
|
|
23358
|
+
"fields": [
|
|
23359
|
+
{
|
|
23360
|
+
"name": "body",
|
|
23361
|
+
"type": "object",
|
|
23362
|
+
"required": false
|
|
23363
|
+
},
|
|
23364
|
+
{
|
|
23365
|
+
"name": "series",
|
|
23366
|
+
"type": "string",
|
|
23367
|
+
"required": false,
|
|
23368
|
+
"description": "A new series, or null to clear it."
|
|
23369
|
+
},
|
|
23370
|
+
{
|
|
23371
|
+
"name": "custom",
|
|
23372
|
+
"type": "object",
|
|
23373
|
+
"required": false
|
|
23374
|
+
},
|
|
23375
|
+
{
|
|
23376
|
+
"name": "if_revision",
|
|
23377
|
+
"type": "number",
|
|
23378
|
+
"required": false,
|
|
23379
|
+
"description": "Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision."
|
|
23380
|
+
}
|
|
23381
|
+
]
|
|
23382
|
+
}
|
|
23383
|
+
},
|
|
22151
23384
|
{
|
|
22152
23385
|
"resource": "media.pipelines",
|
|
22153
23386
|
"method": "list",
|
|
@@ -22876,7 +24109,7 @@ export const operations = [
|
|
|
22876
24109
|
"resource": "model.audio.speech",
|
|
22877
24110
|
"method": "create",
|
|
22878
24111
|
"summary": "Generate speech",
|
|
22879
|
-
"description": "Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as
|
|
24112
|
+
"description": "Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as aura-2-en (list them with listModels?type=speech). Aura takes a native speaker name in voice (default luna) and supports mp3, opus, flac, wav and pcm (pcm is raw signed 16-bit little-endian audio at 24 kHz). lang is not read by any speech model offered today: Aura rejects it with 400 input_not_representable. Unlike OpenAI, voice names such as alloy are not aliases for Aura speakers. Non-default speed, instructions and stream_format sse are not representable and return 400 input_not_representable. No transcoding is done: when response_format is omitted the format the upstream produced is returned. Minimal request: {\"model\":\"aura-2-en\",\"input\":\"Hello\",\"response_format\":\"mp3\"}.",
|
|
22880
24113
|
"http": "POST",
|
|
22881
24114
|
"path": "/model/v1/audio/speech",
|
|
22882
24115
|
"streaming": "no",
|
|
@@ -22890,19 +24123,19 @@ export const operations = [
|
|
|
22890
24123
|
"name": "model",
|
|
22891
24124
|
"type": "string",
|
|
22892
24125
|
"required": true,
|
|
22893
|
-
"description": "Speech model id, for example `
|
|
24126
|
+
"description": "Speech model id, for example `aura-2-en`; list candidates with listModels?type=speech. Router support (supported): Verified to take effect."
|
|
22894
24127
|
},
|
|
22895
24128
|
{
|
|
22896
24129
|
"name": "input",
|
|
22897
24130
|
"type": "string",
|
|
22898
24131
|
"required": false,
|
|
22899
|
-
"description": "Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported):
|
|
24132
|
+
"description": "Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported): input is supported; text/prompt aliases also work."
|
|
22900
24133
|
},
|
|
22901
24134
|
{
|
|
22902
24135
|
"name": "voice",
|
|
22903
24136
|
"type": "object",
|
|
22904
24137
|
"required": false,
|
|
22905
|
-
"description": "Aura speaker name; custom voice objects are rejected by Aura.
|
|
24138
|
+
"description": "Aura speaker name; custom voice objects are rejected by Aura."
|
|
22906
24139
|
},
|
|
22907
24140
|
{
|
|
22908
24141
|
"name": "instructions",
|
|
@@ -22921,7 +24154,7 @@ export const operations = [
|
|
|
22921
24154
|
"pcm"
|
|
22922
24155
|
],
|
|
22923
24156
|
"required": false,
|
|
22924
|
-
"description": "
|
|
24157
|
+
"description": "When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400."
|
|
22925
24158
|
},
|
|
22926
24159
|
{
|
|
22927
24160
|
"name": "speed",
|
|
@@ -22948,7 +24181,7 @@ export const operations = [
|
|
|
22948
24181
|
"name": "prompt",
|
|
22949
24182
|
"type": "string",
|
|
22950
24183
|
"required": false,
|
|
22951
|
-
"description": "
|
|
24184
|
+
"description": "Alias for input; input then text take precedence."
|
|
22952
24185
|
},
|
|
22953
24186
|
{
|
|
22954
24187
|
"name": "speaker",
|
|
@@ -22968,7 +24201,7 @@ export const operations = [
|
|
|
22968
24201
|
"ko"
|
|
22969
24202
|
],
|
|
22970
24203
|
"required": false,
|
|
22971
|
-
"description": "
|
|
24204
|
+
"description": "Language code. No speech model currently offered reads it. Aura rejects lang with 400 input_not_representable so omit it."
|
|
22972
24205
|
},
|
|
22973
24206
|
{
|
|
22974
24207
|
"name": "encoding",
|
|
@@ -25783,7 +27016,7 @@ export const operations = [
|
|
|
25783
27016
|
"resource": "organization.costs",
|
|
25784
27017
|
"method": "list",
|
|
25785
27018
|
"summary": "List Organization Costs",
|
|
25786
|
-
"description": "Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole
|
|
27019
|
+
"description": "Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole hour or day periods in time_zone (UTC by default); a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.\n",
|
|
25787
27020
|
"http": "GET",
|
|
25788
27021
|
"path": "/organization/v1/costs",
|
|
25789
27022
|
"streaming": "no",
|
|
@@ -25816,7 +27049,7 @@ export const operations = [
|
|
|
25816
27049
|
"name": "time_zone",
|
|
25817
27050
|
"type": "string",
|
|
25818
27051
|
"required": false,
|
|
25819
|
-
"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.
|
|
27052
|
+
"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. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.\n"
|
|
25820
27053
|
},
|
|
25821
27054
|
{
|
|
25822
27055
|
"name": "group_by",
|
|
@@ -25826,10 +27059,14 @@ export const operations = [
|
|
|
25826
27059
|
"ServiceName",
|
|
25827
27060
|
"ServiceCategory",
|
|
25828
27061
|
"ResourceId",
|
|
25829
|
-
"ConsumedUnit"
|
|
27062
|
+
"ConsumedUnit",
|
|
27063
|
+
"SessionId",
|
|
27064
|
+
"AgentId",
|
|
27065
|
+
"ApiKeyId",
|
|
27066
|
+
"RunId"
|
|
25830
27067
|
],
|
|
25831
27068
|
"required": false,
|
|
25832
|
-
"description": "
|
|
27069
|
+
"description": "Columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. 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). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.\n"
|
|
25833
27070
|
},
|
|
25834
27071
|
{
|
|
25835
27072
|
"name": "page",
|
|
@@ -26182,29 +27419,46 @@ export const operations = [
|
|
|
26182
27419
|
{
|
|
26183
27420
|
"resource": "organization.notifications.letters",
|
|
26184
27421
|
"method": "list",
|
|
26185
|
-
"summary": "List the letters addressed to you",
|
|
26186
|
-
"description": "The letters this person received in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.",
|
|
27422
|
+
"summary": "List the letters addressed to you, or the ones you sent",
|
|
27423
|
+
"description": "The letters this person received (or, with direction=sent, wrote) in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.",
|
|
26187
27424
|
"http": "GET",
|
|
26188
27425
|
"path": "/organization/v1/notifications/letters",
|
|
26189
27426
|
"streaming": "no",
|
|
26190
27427
|
"pagination": false,
|
|
26191
27428
|
"pathParams": [],
|
|
26192
27429
|
"query": [
|
|
27430
|
+
{
|
|
27431
|
+
"name": "direction",
|
|
27432
|
+
"type": "string",
|
|
27433
|
+
"enum": [
|
|
27434
|
+
"received",
|
|
27435
|
+
"sent"
|
|
27436
|
+
],
|
|
27437
|
+
"required": false,
|
|
27438
|
+
"description": "received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for."
|
|
27439
|
+
},
|
|
26193
27440
|
{
|
|
26194
27441
|
"name": "status",
|
|
26195
27442
|
"type": "string",
|
|
26196
27443
|
"enum": [
|
|
26197
27444
|
"unread",
|
|
26198
|
-
"read"
|
|
27445
|
+
"read",
|
|
27446
|
+
"scheduled"
|
|
26199
27447
|
],
|
|
26200
27448
|
"required": false,
|
|
26201
|
-
"description": "Only unread letters, or only
|
|
27449
|
+
"description": "Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state."
|
|
27450
|
+
},
|
|
27451
|
+
{
|
|
27452
|
+
"name": "thread",
|
|
27453
|
+
"type": "string",
|
|
27454
|
+
"required": false,
|
|
27455
|
+
"description": "Only letters of this conversation, for received and sent alike; omit for all."
|
|
26202
27456
|
},
|
|
26203
27457
|
{
|
|
26204
27458
|
"name": "archived",
|
|
26205
27459
|
"type": "boolean",
|
|
26206
27460
|
"required": false,
|
|
26207
|
-
"description": "false (the default) hides archived letters; true lists only the archived ones."
|
|
27461
|
+
"description": "false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent."
|
|
26208
27462
|
},
|
|
26209
27463
|
{
|
|
26210
27464
|
"name": "limit",
|
|
@@ -26220,6 +27474,64 @@ export const operations = [
|
|
|
26220
27474
|
}
|
|
26221
27475
|
]
|
|
26222
27476
|
},
|
|
27477
|
+
{
|
|
27478
|
+
"resource": "organization.notifications.letters",
|
|
27479
|
+
"method": "create",
|
|
27480
|
+
"summary": "Send a letter to a person or an agent",
|
|
27481
|
+
"description": "Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field — a person writes as themselves, an agent as itself, and an automation run (a scheduled or service-started one included) as the platform's automation sender with the run recorded in the letter's source; a `sender` in the body is ignored. Any other credential (an organization API key, an application) has no address to write from and is refused with 403. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A letter to a person needs a summary of at most 60 characters — one sentence saying what the reader must do or know; a longer one is refused, never cut. An agent's letter may leave summary out and the first line of body stands in. Repeating the same letter (same recipient, kind, thread, body and time) returns the same id and writes it once. Usage charge: none.",
|
|
27482
|
+
"http": "POST",
|
|
27483
|
+
"path": "/organization/v1/notifications/letters",
|
|
27484
|
+
"streaming": "no",
|
|
27485
|
+
"pagination": false,
|
|
27486
|
+
"pathParams": [],
|
|
27487
|
+
"query": [],
|
|
27488
|
+
"body": {
|
|
27489
|
+
"required": true,
|
|
27490
|
+
"fields": [
|
|
27491
|
+
{
|
|
27492
|
+
"name": "to",
|
|
27493
|
+
"type": "string",
|
|
27494
|
+
"required": true,
|
|
27495
|
+
"description": "The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization."
|
|
27496
|
+
},
|
|
27497
|
+
{
|
|
27498
|
+
"name": "body",
|
|
27499
|
+
"type": "string",
|
|
27500
|
+
"required": true,
|
|
27501
|
+
"description": "The whole letter, 1 to 16000 characters."
|
|
27502
|
+
},
|
|
27503
|
+
{
|
|
27504
|
+
"name": "summary",
|
|
27505
|
+
"type": "string",
|
|
27506
|
+
"required": false,
|
|
27507
|
+
"description": "One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer."
|
|
27508
|
+
},
|
|
27509
|
+
{
|
|
27510
|
+
"name": "kind",
|
|
27511
|
+
"type": "string",
|
|
27512
|
+
"enum": [
|
|
27513
|
+
"notice",
|
|
27514
|
+
"mention",
|
|
27515
|
+
"decision"
|
|
27516
|
+
],
|
|
27517
|
+
"required": false,
|
|
27518
|
+
"description": "The letter's kind; it decides the channels. Defaults to mention."
|
|
27519
|
+
},
|
|
27520
|
+
{
|
|
27521
|
+
"name": "thread",
|
|
27522
|
+
"type": "string",
|
|
27523
|
+
"required": false,
|
|
27524
|
+
"description": "The conversation the letter belongs to, free text; omit for none."
|
|
27525
|
+
},
|
|
27526
|
+
{
|
|
27527
|
+
"name": "deliver_at",
|
|
27528
|
+
"type": "string",
|
|
27529
|
+
"required": false,
|
|
27530
|
+
"description": "When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now."
|
|
27531
|
+
}
|
|
27532
|
+
]
|
|
27533
|
+
}
|
|
27534
|
+
},
|
|
26223
27535
|
{
|
|
26224
27536
|
"resource": "organization.notifications.letters",
|
|
26225
27537
|
"method": "retrieve",
|
|
@@ -26294,7 +27606,8 @@ export const operations = [
|
|
|
26294
27606
|
"enum": [
|
|
26295
27607
|
"notice",
|
|
26296
27608
|
"mention",
|
|
26297
|
-
"decision"
|
|
27609
|
+
"decision",
|
|
27610
|
+
"event"
|
|
26298
27611
|
],
|
|
26299
27612
|
"required": false,
|
|
26300
27613
|
"description": "Only letters of this kind; omit for all kinds."
|
|
@@ -26302,6 +27615,124 @@ export const operations = [
|
|
|
26302
27615
|
]
|
|
26303
27616
|
}
|
|
26304
27617
|
},
|
|
27618
|
+
{
|
|
27619
|
+
"resource": "organization.notifications.messages",
|
|
27620
|
+
"method": "list",
|
|
27621
|
+
"summary": "List your bell messages",
|
|
27622
|
+
"description": "The calling person's bell messages in this organization, newest first: the inbox tab by default, or the archive tab with archived=1. The person is always the credential's own; the request cannot name another member. Pass nextPageToken unchanged as page for the next page; it is absent on the last one. Read-only; no usage charge.",
|
|
27623
|
+
"http": "GET",
|
|
27624
|
+
"path": "/organization/v1/notifications/messages",
|
|
27625
|
+
"streaming": "no",
|
|
27626
|
+
"pagination": false,
|
|
27627
|
+
"pathParams": [],
|
|
27628
|
+
"query": [
|
|
27629
|
+
{
|
|
27630
|
+
"name": "archived",
|
|
27631
|
+
"type": "string",
|
|
27632
|
+
"enum": [
|
|
27633
|
+
"0",
|
|
27634
|
+
"1"
|
|
27635
|
+
],
|
|
27636
|
+
"required": false,
|
|
27637
|
+
"description": "0 (the default) lists the inbox tab, 1 lists archived messages."
|
|
27638
|
+
},
|
|
27639
|
+
{
|
|
27640
|
+
"name": "limit",
|
|
27641
|
+
"type": "integer",
|
|
27642
|
+
"required": false,
|
|
27643
|
+
"description": "Messages per page, 1 to 100; defaults to 20."
|
|
27644
|
+
},
|
|
27645
|
+
{
|
|
27646
|
+
"name": "page",
|
|
27647
|
+
"type": "string",
|
|
27648
|
+
"required": false,
|
|
27649
|
+
"description": "Opaque nextPageToken from the previous response; omit for the first page."
|
|
27650
|
+
}
|
|
27651
|
+
]
|
|
27652
|
+
},
|
|
27653
|
+
{
|
|
27654
|
+
"resource": "organization.notifications.messages",
|
|
27655
|
+
"method": "delete",
|
|
27656
|
+
"summary": "Delete one of your bell messages",
|
|
27657
|
+
"description": "Delete one of the calling person's own bell messages for good. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, and nothing is deleted. Deleting a message does not delete the letter or notice it announced. No usage charge.",
|
|
27658
|
+
"http": "DELETE",
|
|
27659
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
27660
|
+
"streaming": "no",
|
|
27661
|
+
"pagination": false,
|
|
27662
|
+
"pathParams": [
|
|
27663
|
+
{
|
|
27664
|
+
"name": "name",
|
|
27665
|
+
"sdkName": "name",
|
|
27666
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
27667
|
+
}
|
|
27668
|
+
],
|
|
27669
|
+
"query": []
|
|
27670
|
+
},
|
|
27671
|
+
{
|
|
27672
|
+
"resource": "organization.notifications.messages",
|
|
27673
|
+
"method": "retrieve",
|
|
27674
|
+
"summary": "Open one of your bell messages",
|
|
27675
|
+
"description": "One bell message of the calling person by its name. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, without saying which. Read-only; no usage charge.",
|
|
27676
|
+
"http": "GET",
|
|
27677
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
27678
|
+
"streaming": "no",
|
|
27679
|
+
"pagination": false,
|
|
27680
|
+
"pathParams": [
|
|
27681
|
+
{
|
|
27682
|
+
"name": "name",
|
|
27683
|
+
"sdkName": "name",
|
|
27684
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
27685
|
+
}
|
|
27686
|
+
],
|
|
27687
|
+
"query": []
|
|
27688
|
+
},
|
|
27689
|
+
{
|
|
27690
|
+
"resource": "organization.notifications.messages",
|
|
27691
|
+
"method": "update",
|
|
27692
|
+
"summary": "Mark one of your bell messages read or archived",
|
|
27693
|
+
"description": "Change the read or archived flag of one of the calling person's own bell messages and return it. Name at least one flag. Reading a message also tells the notification still waiting on it, so it is not emailed later as unread. A message that is not theirs answers 404 like one that does not exist. No usage charge.",
|
|
27694
|
+
"http": "POST",
|
|
27695
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
27696
|
+
"streaming": "no",
|
|
27697
|
+
"pagination": false,
|
|
27698
|
+
"pathParams": [
|
|
27699
|
+
{
|
|
27700
|
+
"name": "name",
|
|
27701
|
+
"sdkName": "name",
|
|
27702
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
27703
|
+
}
|
|
27704
|
+
],
|
|
27705
|
+
"query": [],
|
|
27706
|
+
"body": {
|
|
27707
|
+
"required": true,
|
|
27708
|
+
"fields": [
|
|
27709
|
+
{
|
|
27710
|
+
"name": "read",
|
|
27711
|
+
"type": "boolean",
|
|
27712
|
+
"required": false,
|
|
27713
|
+
"description": "Mark the message read (true) or unread (false); omit to leave it."
|
|
27714
|
+
},
|
|
27715
|
+
{
|
|
27716
|
+
"name": "archived",
|
|
27717
|
+
"type": "boolean",
|
|
27718
|
+
"required": false,
|
|
27719
|
+
"description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
|
|
27720
|
+
}
|
|
27721
|
+
]
|
|
27722
|
+
}
|
|
27723
|
+
},
|
|
27724
|
+
{
|
|
27725
|
+
"resource": "organization.notifications.messages",
|
|
27726
|
+
"method": "readAll",
|
|
27727
|
+
"summary": "Mark all your unread bell messages read",
|
|
27728
|
+
"description": "Mark every unread, unarchived bell message of the calling person in this organization as read, and tell the notifications still waiting on them. Nothing of anyone else's is touched. Returns how many messages changed; 0 when there was nothing unread. No usage charge.",
|
|
27729
|
+
"http": "POST",
|
|
27730
|
+
"path": "/organization/v1/notifications/messages:readAll",
|
|
27731
|
+
"streaming": "no",
|
|
27732
|
+
"pagination": false,
|
|
27733
|
+
"pathParams": [],
|
|
27734
|
+
"query": []
|
|
27735
|
+
},
|
|
26305
27736
|
{
|
|
26306
27737
|
"resource": "organization.notifications",
|
|
26307
27738
|
"method": "retrieveOrganizationDefault",
|
|
@@ -26413,7 +27844,7 @@ export const operations = [
|
|
|
26413
27844
|
"resource": "organization.usage",
|
|
26414
27845
|
"method": "list",
|
|
26415
27846
|
"summary": "List Organization Usage",
|
|
26416
|
-
"description": "Consumed quantity per time bucket per group. Buckets are whole
|
|
27847
|
+
"description": "Consumed quantity per time bucket per group. Buckets are whole hour or day periods in time_zone (UTC by default) covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
|
|
26417
27848
|
"http": "GET",
|
|
26418
27849
|
"path": "/organization/v1/usage",
|
|
26419
27850
|
"streaming": "no",
|
|
@@ -26446,7 +27877,7 @@ export const operations = [
|
|
|
26446
27877
|
"name": "time_zone",
|
|
26447
27878
|
"type": "string",
|
|
26448
27879
|
"required": false,
|
|
26449
|
-
"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.
|
|
27880
|
+
"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. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.\n"
|
|
26450
27881
|
},
|
|
26451
27882
|
{
|
|
26452
27883
|
"name": "group_by",
|
|
@@ -26456,10 +27887,14 @@ export const operations = [
|
|
|
26456
27887
|
"ServiceName",
|
|
26457
27888
|
"ServiceCategory",
|
|
26458
27889
|
"ResourceId",
|
|
26459
|
-
"ConsumedUnit"
|
|
27890
|
+
"ConsumedUnit",
|
|
27891
|
+
"SessionId",
|
|
27892
|
+
"AgentId",
|
|
27893
|
+
"ApiKeyId",
|
|
27894
|
+
"RunId"
|
|
26460
27895
|
],
|
|
26461
27896
|
"required": false,
|
|
26462
|
-
"description": "
|
|
27897
|
+
"description": "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). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.\n"
|
|
26463
27898
|
},
|
|
26464
27899
|
{
|
|
26465
27900
|
"name": "page",
|
|
@@ -27455,7 +28890,7 @@ export const operations = [
|
|
|
27455
28890
|
"linux"
|
|
27456
28891
|
],
|
|
27457
28892
|
"required": true,
|
|
27458
|
-
"description": "The device's platform. macos and linux are accepted
|
|
28893
|
+
"description": "The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS."
|
|
27459
28894
|
},
|
|
27460
28895
|
{
|
|
27461
28896
|
"name": "name",
|
|
@@ -27484,6 +28919,24 @@ export const operations = [
|
|
|
27484
28919
|
]
|
|
27485
28920
|
}
|
|
27486
28921
|
},
|
|
28922
|
+
{
|
|
28923
|
+
"resource": "sandbox.byod.pairings",
|
|
28924
|
+
"method": "status",
|
|
28925
|
+
"summary": "Read which device claimed your pairing",
|
|
28926
|
+
"description": "Read one of your organization's own pairings: its code, its deadline and the device that claimed it. Poll it after showing the QR payload to learn that this very code was claimed, instead of guessing from the device list: claimed_device is null until a phone taps Allow, then it is the device that code registered (a phone that was paired before is reused, so it is the same device id). Unlike getByodPairing this call is authenticated and organization-scoped. An unknown code and another organization's code both answer 404, so the answer never reveals that a foreign pairing exists. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS/status returns {code:'K7M4PQRS',expires_at:'2026-11-22T13:10:00.000Z',claimed_device:null}.",
|
|
28927
|
+
"http": "GET",
|
|
28928
|
+
"path": "/sandbox/v1/byod/pairings/{code}/status",
|
|
28929
|
+
"streaming": "no",
|
|
28930
|
+
"pagination": false,
|
|
28931
|
+
"pathParams": [
|
|
28932
|
+
{
|
|
28933
|
+
"name": "code",
|
|
28934
|
+
"sdkName": "code",
|
|
28935
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
28936
|
+
}
|
|
28937
|
+
],
|
|
28938
|
+
"query": []
|
|
28939
|
+
},
|
|
27487
28940
|
{
|
|
27488
28941
|
"resource": "sandbox.events.sandboxes",
|
|
27489
28942
|
"method": "retrieve",
|
|
@@ -27602,7 +29055,7 @@ export const operations = [
|
|
|
27602
29055
|
"resource": "sandbox.sandboxes",
|
|
27603
29056
|
"method": "create",
|
|
27604
29057
|
"summary": "Create sandbox (v2)",
|
|
27605
|
-
"description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots,
|
|
29058
|
+
"description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.",
|
|
27606
29059
|
"http": "POST",
|
|
27607
29060
|
"path": "/sandbox/v1/sandboxes",
|
|
27608
29061
|
"streaming": "no",
|
|
@@ -27646,7 +29099,7 @@ export const operations = [
|
|
|
27646
29099
|
"name": "allow_internet_access",
|
|
27647
29100
|
"type": "boolean",
|
|
27648
29101
|
"required": false,
|
|
27649
|
-
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
|
|
29102
|
+
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config. Not available yet: egress control is not implemented, so any value answers 501 PROVIDER_UNSUPPORTED; omit it (internet access is on by default)."
|
|
27650
29103
|
},
|
|
27651
29104
|
{
|
|
27652
29105
|
"name": "network",
|
|
@@ -27683,13 +29136,13 @@ export const operations = [
|
|
|
27683
29136
|
"type": "array",
|
|
27684
29137
|
"itemType": "object",
|
|
27685
29138
|
"required": false,
|
|
27686
|
-
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
29139
|
+
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox. Not available yet: volumes are not implemented, so omit this field or send an empty array; any volume answers 501 PROVIDER_UNSUPPORTED."
|
|
27687
29140
|
},
|
|
27688
29141
|
{
|
|
27689
29142
|
"name": "ephemeral",
|
|
27690
29143
|
"type": "boolean",
|
|
27691
29144
|
"required": false,
|
|
27692
|
-
"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
|
|
29145
|
+
"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). Leaving it out returns INVALID_PARAMS."
|
|
27693
29146
|
},
|
|
27694
29147
|
{
|
|
27695
29148
|
"name": "size",
|
|
@@ -28061,61 +29514,6 @@ export const operations = [
|
|
|
28061
29514
|
}
|
|
28062
29515
|
]
|
|
28063
29516
|
},
|
|
28064
|
-
{
|
|
28065
|
-
"resource": "sandbox.sandboxes",
|
|
28066
|
-
"method": "updateNetwork",
|
|
28067
|
-
"summary": "Update sandbox network",
|
|
28068
|
-
"description": "Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.",
|
|
28069
|
-
"http": "PUT",
|
|
28070
|
-
"path": "/sandbox/v1/sandboxes/{sandboxID}/network",
|
|
28071
|
-
"streaming": "no",
|
|
28072
|
-
"pagination": false,
|
|
28073
|
-
"pathParams": [
|
|
28074
|
-
{
|
|
28075
|
-
"name": "sandboxID",
|
|
28076
|
-
"sdkName": "sandboxID",
|
|
28077
|
-
"description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
|
|
28078
|
-
}
|
|
28079
|
-
],
|
|
28080
|
-
"query": [],
|
|
28081
|
-
"body": {
|
|
28082
|
-
"required": true,
|
|
28083
|
-
"fields": [
|
|
28084
|
-
{
|
|
28085
|
-
"name": "allowOut",
|
|
28086
|
-
"type": "array",
|
|
28087
|
-
"itemType": "string",
|
|
28088
|
-
"required": false,
|
|
28089
|
-
"description": "List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. \"8.8.8.8/32\"), a bare IP address (e.g. \"8.8.8.8\"), or a domain name (e.g. \"example.com\", \"*.example.com\"). Allowed entries always take precedence over denied entries."
|
|
28090
|
-
},
|
|
28091
|
-
{
|
|
28092
|
-
"name": "denyOut",
|
|
28093
|
-
"type": "array",
|
|
28094
|
-
"itemType": "string",
|
|
28095
|
-
"required": false,
|
|
28096
|
-
"description": "List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules."
|
|
28097
|
-
},
|
|
28098
|
-
{
|
|
28099
|
-
"name": "egressProxy",
|
|
28100
|
-
"type": "object",
|
|
28101
|
-
"required": false,
|
|
28102
|
-
"description": "SOCKS5 proxy for sandbox egress. Outbound TCP is tunneled through the proxy after allow/deny filtering; the sandbox is unaware. Domain-matched flows use remote DNS (ATYP=domain)."
|
|
28103
|
-
},
|
|
28104
|
-
{
|
|
28105
|
-
"name": "rules",
|
|
28106
|
-
"type": "object",
|
|
28107
|
-
"required": false,
|
|
28108
|
-
"description": "Per-domain transform rules applied to matching outbound HTTPS requests. Replaces all existing rules when provided. Keys may be exact DNS names or a single leading wildcard (for example, \"*.example.com\"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare \"*\" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as \"*.com\" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.\n"
|
|
28109
|
-
},
|
|
28110
|
-
{
|
|
28111
|
-
"name": "allow_internet_access",
|
|
28112
|
-
"type": "boolean",
|
|
28113
|
-
"required": false,
|
|
28114
|
-
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
|
|
28115
|
-
}
|
|
28116
|
-
]
|
|
28117
|
-
}
|
|
28118
|
-
},
|
|
28119
29517
|
{
|
|
28120
29518
|
"resource": "sandbox.sandboxes",
|
|
28121
29519
|
"method": "pause",
|
|
@@ -28991,77 +30389,6 @@ export const operations = [
|
|
|
28991
30389
|
],
|
|
28992
30390
|
"query": []
|
|
28993
30391
|
},
|
|
28994
|
-
{
|
|
28995
|
-
"resource": "sandbox.volumes",
|
|
28996
|
-
"method": "list",
|
|
28997
|
-
"summary": "List team volumes",
|
|
28998
|
-
"description": "List the volumes of your team. Use it to find a volumeID before reading or deleting a volume, or to attach a volume to a sandbox by name when you create it.",
|
|
28999
|
-
"http": "GET",
|
|
29000
|
-
"path": "/sandbox/v1/volumes",
|
|
29001
|
-
"streaming": "no",
|
|
29002
|
-
"pagination": false,
|
|
29003
|
-
"pathParams": [],
|
|
29004
|
-
"query": []
|
|
29005
|
-
},
|
|
29006
|
-
{
|
|
29007
|
-
"resource": "sandbox.volumes",
|
|
29008
|
-
"method": "create",
|
|
29009
|
-
"summary": "Create team volume",
|
|
29010
|
-
"description": "Create a team volume: persistent storage that can be mounted into sandboxes and outlives them. Send the volume name; the response returns the volume id and name. Use getVolume to read it back and deleteVolume to remove it.",
|
|
29011
|
-
"http": "POST",
|
|
29012
|
-
"path": "/sandbox/v1/volumes",
|
|
29013
|
-
"streaming": "no",
|
|
29014
|
-
"pagination": false,
|
|
29015
|
-
"pathParams": [],
|
|
29016
|
-
"query": [],
|
|
29017
|
-
"body": {
|
|
29018
|
-
"required": true,
|
|
29019
|
-
"fields": [
|
|
29020
|
-
{
|
|
29021
|
-
"name": "name",
|
|
29022
|
-
"type": "string",
|
|
29023
|
-
"required": true,
|
|
29024
|
-
"description": "Volume name, unique within your team. Use one or more ASCII letters, digits, underscores or hyphens."
|
|
29025
|
-
}
|
|
29026
|
-
]
|
|
29027
|
-
}
|
|
29028
|
-
},
|
|
29029
|
-
{
|
|
29030
|
-
"resource": "sandbox.volumes",
|
|
29031
|
-
"method": "delete",
|
|
29032
|
-
"summary": "Delete team volume",
|
|
29033
|
-
"description": "Delete a team volume and its data permanently. Use it only when no sandbox needs the volume any more; the data cannot be recovered. Success answers 204; an unknown id answers 404.",
|
|
29034
|
-
"http": "DELETE",
|
|
29035
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
29036
|
-
"streaming": "no",
|
|
29037
|
-
"pagination": false,
|
|
29038
|
-
"pathParams": [
|
|
29039
|
-
{
|
|
29040
|
-
"name": "volumeID",
|
|
29041
|
-
"sdkName": "volumeID",
|
|
29042
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
29043
|
-
}
|
|
29044
|
-
],
|
|
29045
|
-
"query": []
|
|
29046
|
-
},
|
|
29047
|
-
{
|
|
29048
|
-
"resource": "sandbox.volumes",
|
|
29049
|
-
"method": "retrieve",
|
|
29050
|
-
"summary": "Team volume",
|
|
29051
|
-
"description": "Read one team volume by id. Use it to confirm a volume exists and to read its name before mounting it in a sandbox. An unknown id answers 404.",
|
|
29052
|
-
"http": "GET",
|
|
29053
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
29054
|
-
"streaming": "no",
|
|
29055
|
-
"pagination": false,
|
|
29056
|
-
"pathParams": [
|
|
29057
|
-
{
|
|
29058
|
-
"name": "volumeID",
|
|
29059
|
-
"sdkName": "volumeID",
|
|
29060
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
29061
|
-
}
|
|
29062
|
-
],
|
|
29063
|
-
"query": []
|
|
29064
|
-
},
|
|
29065
30392
|
{
|
|
29066
30393
|
"resource": "search.crawl",
|
|
29067
30394
|
"method": "create",
|
|
@@ -34627,7 +35954,7 @@ export const operations = [
|
|
|
34627
35954
|
"resource": "vault.vaults",
|
|
34628
35955
|
"method": "create",
|
|
34629
35956
|
"summary": "Create vault",
|
|
34630
|
-
"description": "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations.
|
|
35957
|
+
"description": "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. A session carries its agent's vaults (agent vault_ids, which a department or organization rule's grants also write) plus its own vault_ids, at most 50 together, and it matches their credentials against its MCP servers, so a stored static or oauth credential serves as vault-backed MCP authentication, and it exports their secrets to its machine as environment variables named after the secret, with real values (a service agent's session leaves out OAuth credentials and secrets that declare allowed_hosts; allowed_hosts does not limit what a command does with an exported value). Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.",
|
|
34631
35958
|
"http": "POST",
|
|
34632
35959
|
"path": "/vault/v1/vaults",
|
|
34633
35960
|
"streaming": "no",
|