@deepraxis/sdk 0.2.0-dev.b5aa484 → 0.2.0-dev.b803c8d
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 +164 -63
- 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 +279 -24
- package/dist/generated/sdk.gen.js +721 -86
- package/dist/generated/types.gen.d.ts +4267 -396
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +2 -0
- package/dist/helpers/browser-connect-error.d.ts +15 -3
- package/dist/helpers/browser-connect-error.js +33 -8
- package/dist/helpers/browser-connect.d.ts +22 -1
- package/dist/helpers/browser-connect.js +44 -8
- package/dist/helpers/browser-decisions.d.ts +2 -0
- package/dist/helpers/browser-decisions.js +7 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +1 -0
- package/dist/operations.generated.js +1490 -320
- package/dist/resources.generated.d.ts +870 -67
- package/dist/resources.generated.js +222 -78
- package/package.json +1 -1
|
@@ -1264,7 +1264,7 @@ export const operations = [
|
|
|
1264
1264
|
"resource": "agent.computers",
|
|
1265
1265
|
"method": "update",
|
|
1266
1266
|
"summary": "Update Computer",
|
|
1267
|
-
"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.",
|
|
1268
1268
|
"http": "POST",
|
|
1269
1269
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1270
1270
|
"streaming": "no",
|
|
@@ -1283,8 +1283,14 @@ export const operations = [
|
|
|
1283
1283
|
{
|
|
1284
1284
|
"name": "name",
|
|
1285
1285
|
"type": "string",
|
|
1286
|
-
"required":
|
|
1287
|
-
"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."
|
|
1288
1294
|
}
|
|
1289
1295
|
]
|
|
1290
1296
|
}
|
|
@@ -1340,7 +1346,7 @@ export const operations = [
|
|
|
1340
1346
|
"resource": "agent.computers",
|
|
1341
1347
|
"method": "connect",
|
|
1342
1348
|
"summary": "Connect computer",
|
|
1343
|
-
"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.",
|
|
1344
1350
|
"http": "POST",
|
|
1345
1351
|
"path": "/agent/v1/computers/{computer_id}/connect",
|
|
1346
1352
|
"streaming": "no",
|
|
@@ -1364,7 +1370,7 @@ export const operations = [
|
|
|
1364
1370
|
"heavy"
|
|
1365
1371
|
],
|
|
1366
1372
|
"required": false,
|
|
1367
|
-
"description": "
|
|
1373
|
+
"description": "Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it."
|
|
1368
1374
|
}
|
|
1369
1375
|
]
|
|
1370
1376
|
}
|
|
@@ -4657,13 +4663,13 @@ export const operations = [
|
|
|
4657
4663
|
"summary": "Get an Action with its current input and output JSON Schemas",
|
|
4658
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.",
|
|
4659
4665
|
"http": "GET",
|
|
4660
|
-
"path": "/automation/v1/actions/{
|
|
4666
|
+
"path": "/automation/v1/actions/{namespace}/{name}",
|
|
4661
4667
|
"streaming": "no",
|
|
4662
4668
|
"pagination": false,
|
|
4663
4669
|
"pathParams": [
|
|
4664
4670
|
{
|
|
4665
|
-
"name": "
|
|
4666
|
-
"sdkName": "
|
|
4671
|
+
"name": "namespace",
|
|
4672
|
+
"sdkName": "namespace",
|
|
4667
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."
|
|
4668
4674
|
},
|
|
4669
4675
|
{
|
|
@@ -4680,13 +4686,13 @@ export const operations = [
|
|
|
4680
4686
|
"summary": "Update an action",
|
|
4681
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.",
|
|
4682
4688
|
"http": "PUT",
|
|
4683
|
-
"path": "/automation/v1/actions/{
|
|
4689
|
+
"path": "/automation/v1/actions/{namespace}/{name}",
|
|
4684
4690
|
"streaming": "no",
|
|
4685
4691
|
"pagination": false,
|
|
4686
4692
|
"pathParams": [
|
|
4687
4693
|
{
|
|
4688
|
-
"name": "
|
|
4689
|
-
"sdkName": "
|
|
4694
|
+
"name": "namespace",
|
|
4695
|
+
"sdkName": "namespace",
|
|
4690
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."
|
|
4691
4697
|
},
|
|
4692
4698
|
{
|
|
@@ -4778,13 +4784,13 @@ export const operations = [
|
|
|
4778
4784
|
"summary": "Archive an action",
|
|
4779
4785
|
"description": "Archive the action while retaining its name and history, hiding it from the default list. The response includes dependents_count.",
|
|
4780
4786
|
"http": "POST",
|
|
4781
|
-
"path": "/automation/v1/actions/{
|
|
4787
|
+
"path": "/automation/v1/actions/{namespace}/{name}/archive",
|
|
4782
4788
|
"streaming": "no",
|
|
4783
4789
|
"pagination": false,
|
|
4784
4790
|
"pathParams": [
|
|
4785
4791
|
{
|
|
4786
|
-
"name": "
|
|
4787
|
-
"sdkName": "
|
|
4792
|
+
"name": "namespace",
|
|
4793
|
+
"sdkName": "namespace",
|
|
4788
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."
|
|
4789
4795
|
},
|
|
4790
4796
|
{
|
|
@@ -4805,13 +4811,13 @@ export const operations = [
|
|
|
4805
4811
|
"summary": "List action dependents",
|
|
4806
4812
|
"description": "List orchestrations referencing this action. The search covers scripts and workflows in their drafts or latest versions.",
|
|
4807
4813
|
"http": "GET",
|
|
4808
|
-
"path": "/automation/v1/actions/{
|
|
4814
|
+
"path": "/automation/v1/actions/{namespace}/{name}/dependents",
|
|
4809
4815
|
"streaming": "no",
|
|
4810
4816
|
"pagination": true,
|
|
4811
4817
|
"pathParams": [
|
|
4812
4818
|
{
|
|
4813
|
-
"name": "
|
|
4814
|
-
"sdkName": "
|
|
4819
|
+
"name": "namespace",
|
|
4820
|
+
"sdkName": "namespace",
|
|
4815
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."
|
|
4816
4822
|
},
|
|
4817
4823
|
{
|
|
@@ -4841,13 +4847,13 @@ export const operations = [
|
|
|
4841
4847
|
"summary": "List action invocations",
|
|
4842
4848
|
"description": "List this action’s invocations, filtering by status, revision, calling definition and time. Results identify the run and call site.",
|
|
4843
4849
|
"http": "GET",
|
|
4844
|
-
"path": "/automation/v1/actions/{
|
|
4850
|
+
"path": "/automation/v1/actions/{namespace}/{name}/invocations",
|
|
4845
4851
|
"streaming": "no",
|
|
4846
4852
|
"pagination": true,
|
|
4847
4853
|
"pathParams": [
|
|
4848
4854
|
{
|
|
4849
|
-
"name": "
|
|
4850
|
-
"sdkName": "
|
|
4855
|
+
"name": "namespace",
|
|
4856
|
+
"sdkName": "namespace",
|
|
4851
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."
|
|
4852
4858
|
},
|
|
4853
4859
|
{
|
|
@@ -4918,13 +4924,13 @@ export const operations = [
|
|
|
4918
4924
|
"summary": "Restore an action",
|
|
4919
4925
|
"description": "Restore an archived action to the default list. Its current revision is preserved.",
|
|
4920
4926
|
"http": "POST",
|
|
4921
|
-
"path": "/automation/v1/actions/{
|
|
4927
|
+
"path": "/automation/v1/actions/{namespace}/{name}/restore",
|
|
4922
4928
|
"streaming": "no",
|
|
4923
4929
|
"pagination": false,
|
|
4924
4930
|
"pathParams": [
|
|
4925
4931
|
{
|
|
4926
|
-
"name": "
|
|
4927
|
-
"sdkName": "
|
|
4932
|
+
"name": "namespace",
|
|
4933
|
+
"sdkName": "namespace",
|
|
4928
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."
|
|
4929
4935
|
},
|
|
4930
4936
|
{
|
|
@@ -4945,13 +4951,13 @@ export const operations = [
|
|
|
4945
4951
|
"summary": "List action revisions",
|
|
4946
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.",
|
|
4947
4953
|
"http": "GET",
|
|
4948
|
-
"path": "/automation/v1/actions/{
|
|
4954
|
+
"path": "/automation/v1/actions/{namespace}/{name}/revisions",
|
|
4949
4955
|
"streaming": "no",
|
|
4950
4956
|
"pagination": true,
|
|
4951
4957
|
"pathParams": [
|
|
4952
4958
|
{
|
|
4953
|
-
"name": "
|
|
4954
|
-
"sdkName": "
|
|
4959
|
+
"name": "namespace",
|
|
4960
|
+
"sdkName": "namespace",
|
|
4955
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."
|
|
4956
4962
|
},
|
|
4957
4963
|
{
|
|
@@ -4990,13 +4996,13 @@ export const operations = [
|
|
|
4990
4996
|
"summary": "Get an action revision",
|
|
4991
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.",
|
|
4992
4998
|
"http": "GET",
|
|
4993
|
-
"path": "/automation/v1/actions/{
|
|
4999
|
+
"path": "/automation/v1/actions/{namespace}/{name}/revisions/{revision}",
|
|
4994
5000
|
"streaming": "no",
|
|
4995
5001
|
"pagination": false,
|
|
4996
5002
|
"pathParams": [
|
|
4997
5003
|
{
|
|
4998
|
-
"name": "
|
|
4999
|
-
"sdkName": "
|
|
5004
|
+
"name": "namespace",
|
|
5005
|
+
"sdkName": "namespace",
|
|
5000
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."
|
|
5001
5007
|
},
|
|
5002
5008
|
{
|
|
@@ -5018,13 +5024,13 @@ export const operations = [
|
|
|
5018
5024
|
"summary": "Roll back an action",
|
|
5019
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.",
|
|
5020
5026
|
"http": "POST",
|
|
5021
|
-
"path": "/automation/v1/actions/{
|
|
5027
|
+
"path": "/automation/v1/actions/{namespace}/{name}/rollback",
|
|
5022
5028
|
"streaming": "no",
|
|
5023
5029
|
"pagination": false,
|
|
5024
5030
|
"pathParams": [
|
|
5025
5031
|
{
|
|
5026
|
-
"name": "
|
|
5027
|
-
"sdkName": "
|
|
5032
|
+
"name": "namespace",
|
|
5033
|
+
"sdkName": "namespace",
|
|
5028
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."
|
|
5029
5035
|
},
|
|
5030
5036
|
{
|
|
@@ -5064,7 +5070,7 @@ export const operations = [
|
|
|
5064
5070
|
"resource": "automation.hooks",
|
|
5065
5071
|
"method": "send",
|
|
5066
5072
|
"summary": "Receive a webhook",
|
|
5067
|
-
"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.",
|
|
5068
5074
|
"http": "POST",
|
|
5069
5075
|
"path": "/automation/v1/hooks/{trigger_id}/{token}",
|
|
5070
5076
|
"streaming": "no",
|
|
@@ -5155,13 +5161,13 @@ export const operations = [
|
|
|
5155
5161
|
"summary": "Retrieve a human task",
|
|
5156
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.",
|
|
5157
5163
|
"http": "GET",
|
|
5158
|
-
"path": "/automation/v1/human-tasks/{
|
|
5164
|
+
"path": "/automation/v1/human-tasks/{task_id}",
|
|
5159
5165
|
"streaming": "no",
|
|
5160
5166
|
"pagination": false,
|
|
5161
5167
|
"pathParams": [
|
|
5162
5168
|
{
|
|
5163
|
-
"name": "
|
|
5164
|
-
"sdkName": "
|
|
5169
|
+
"name": "task_id",
|
|
5170
|
+
"sdkName": "task_id",
|
|
5165
5171
|
"description": "Human task ID (htask_), from the list or the run's waits."
|
|
5166
5172
|
}
|
|
5167
5173
|
],
|
|
@@ -5173,13 +5179,13 @@ export const operations = [
|
|
|
5173
5179
|
"summary": "Cancel a human task",
|
|
5174
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.",
|
|
5175
5181
|
"http": "POST",
|
|
5176
|
-
"path": "/automation/v1/human-tasks/{
|
|
5182
|
+
"path": "/automation/v1/human-tasks/{task_id}/cancel",
|
|
5177
5183
|
"streaming": "no",
|
|
5178
5184
|
"pagination": false,
|
|
5179
5185
|
"pathParams": [
|
|
5180
5186
|
{
|
|
5181
|
-
"name": "
|
|
5182
|
-
"sdkName": "
|
|
5187
|
+
"name": "task_id",
|
|
5188
|
+
"sdkName": "task_id",
|
|
5183
5189
|
"description": "Human task ID (htask_)."
|
|
5184
5190
|
}
|
|
5185
5191
|
],
|
|
@@ -5202,13 +5208,13 @@ export const operations = [
|
|
|
5202
5208
|
"summary": "Delegate a human task",
|
|
5203
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.",
|
|
5204
5210
|
"http": "POST",
|
|
5205
|
-
"path": "/automation/v1/human-tasks/{
|
|
5211
|
+
"path": "/automation/v1/human-tasks/{task_id}/delegate",
|
|
5206
5212
|
"streaming": "no",
|
|
5207
5213
|
"pagination": false,
|
|
5208
5214
|
"pathParams": [
|
|
5209
5215
|
{
|
|
5210
|
-
"name": "
|
|
5211
|
-
"sdkName": "
|
|
5216
|
+
"name": "task_id",
|
|
5217
|
+
"sdkName": "task_id",
|
|
5212
5218
|
"description": "Human task ID (htask_)."
|
|
5213
5219
|
}
|
|
5214
5220
|
],
|
|
@@ -5231,13 +5237,13 @@ export const operations = [
|
|
|
5231
5237
|
"summary": "Respond to a human task",
|
|
5232
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.",
|
|
5233
5239
|
"http": "POST",
|
|
5234
|
-
"path": "/automation/v1/human-tasks/{
|
|
5240
|
+
"path": "/automation/v1/human-tasks/{task_id}/respond",
|
|
5235
5241
|
"streaming": "no",
|
|
5236
5242
|
"pagination": false,
|
|
5237
5243
|
"pathParams": [
|
|
5238
5244
|
{
|
|
5239
|
-
"name": "
|
|
5240
|
-
"sdkName": "
|
|
5245
|
+
"name": "task_id",
|
|
5246
|
+
"sdkName": "task_id",
|
|
5241
5247
|
"description": "Human task ID (htask_)."
|
|
5242
5248
|
}
|
|
5243
5249
|
],
|
|
@@ -5374,7 +5380,7 @@ export const operations = [
|
|
|
5374
5380
|
"trigger"
|
|
5375
5381
|
],
|
|
5376
5382
|
"required": false,
|
|
5377
|
-
"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."
|
|
5378
5384
|
},
|
|
5379
5385
|
{
|
|
5380
5386
|
"name": "initiator",
|
|
@@ -5464,13 +5470,13 @@ export const operations = [
|
|
|
5464
5470
|
"summary": "Get a run",
|
|
5465
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.",
|
|
5466
5472
|
"http": "GET",
|
|
5467
|
-
"path": "/automation/v1/runs/{
|
|
5473
|
+
"path": "/automation/v1/runs/{run_id}",
|
|
5468
5474
|
"streaming": "no",
|
|
5469
5475
|
"pagination": false,
|
|
5470
5476
|
"pathParams": [
|
|
5471
5477
|
{
|
|
5472
|
-
"name": "
|
|
5473
|
-
"sdkName": "
|
|
5478
|
+
"name": "run_id",
|
|
5479
|
+
"sdkName": "run_id",
|
|
5474
5480
|
"description": "Run ID (run_)."
|
|
5475
5481
|
}
|
|
5476
5482
|
],
|
|
@@ -5503,13 +5509,13 @@ export const operations = [
|
|
|
5503
5509
|
"summary": "List run artifacts",
|
|
5504
5510
|
"description": "Read run artifacts and their file references. Entries follow ledger order and include content types, sizes and associated steps.",
|
|
5505
5511
|
"http": "GET",
|
|
5506
|
-
"path": "/automation/v1/runs/{
|
|
5512
|
+
"path": "/automation/v1/runs/{run_id}/artifacts",
|
|
5507
5513
|
"streaming": "no",
|
|
5508
5514
|
"pagination": true,
|
|
5509
5515
|
"pathParams": [
|
|
5510
5516
|
{
|
|
5511
|
-
"name": "
|
|
5512
|
-
"sdkName": "
|
|
5517
|
+
"name": "run_id",
|
|
5518
|
+
"sdkName": "run_id",
|
|
5513
5519
|
"description": "Run ID (run_)."
|
|
5514
5520
|
}
|
|
5515
5521
|
],
|
|
@@ -5534,13 +5540,13 @@ export const operations = [
|
|
|
5534
5540
|
"summary": "List run calls",
|
|
5535
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.",
|
|
5536
5542
|
"http": "GET",
|
|
5537
|
-
"path": "/automation/v1/runs/{
|
|
5543
|
+
"path": "/automation/v1/runs/{run_id}/calls",
|
|
5538
5544
|
"streaming": "no",
|
|
5539
5545
|
"pagination": true,
|
|
5540
5546
|
"pathParams": [
|
|
5541
5547
|
{
|
|
5542
|
-
"name": "
|
|
5543
|
-
"sdkName": "
|
|
5548
|
+
"name": "run_id",
|
|
5549
|
+
"sdkName": "run_id",
|
|
5544
5550
|
"description": "Run ID (run_)."
|
|
5545
5551
|
}
|
|
5546
5552
|
],
|
|
@@ -5565,13 +5571,13 @@ export const operations = [
|
|
|
5565
5571
|
"summary": "Cancel a run",
|
|
5566
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.",
|
|
5567
5573
|
"http": "POST",
|
|
5568
|
-
"path": "/automation/v1/runs/{
|
|
5574
|
+
"path": "/automation/v1/runs/{run_id}/cancel",
|
|
5569
5575
|
"streaming": "no",
|
|
5570
5576
|
"pagination": false,
|
|
5571
5577
|
"pathParams": [
|
|
5572
5578
|
{
|
|
5573
|
-
"name": "
|
|
5574
|
-
"sdkName": "
|
|
5579
|
+
"name": "run_id",
|
|
5580
|
+
"sdkName": "run_id",
|
|
5575
5581
|
"description": "Run ID (run_)."
|
|
5576
5582
|
}
|
|
5577
5583
|
],
|
|
@@ -5594,13 +5600,13 @@ export const operations = [
|
|
|
5594
5600
|
"summary": "Read run events",
|
|
5595
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.",
|
|
5596
5602
|
"http": "GET",
|
|
5597
|
-
"path": "/automation/v1/runs/{
|
|
5603
|
+
"path": "/automation/v1/runs/{run_id}/events",
|
|
5598
5604
|
"streaming": "always",
|
|
5599
5605
|
"pagination": false,
|
|
5600
5606
|
"pathParams": [
|
|
5601
5607
|
{
|
|
5602
|
-
"name": "
|
|
5603
|
-
"sdkName": "
|
|
5608
|
+
"name": "run_id",
|
|
5609
|
+
"sdkName": "run_id",
|
|
5604
5610
|
"description": "Run ID (run_)."
|
|
5605
5611
|
}
|
|
5606
5612
|
],
|
|
@@ -5633,13 +5639,13 @@ export const operations = [
|
|
|
5633
5639
|
"summary": "Read run logs",
|
|
5634
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.",
|
|
5635
5641
|
"http": "GET",
|
|
5636
|
-
"path": "/automation/v1/runs/{
|
|
5642
|
+
"path": "/automation/v1/runs/{run_id}/logs",
|
|
5637
5643
|
"streaming": "always",
|
|
5638
5644
|
"pagination": false,
|
|
5639
5645
|
"pathParams": [
|
|
5640
5646
|
{
|
|
5641
|
-
"name": "
|
|
5642
|
-
"sdkName": "
|
|
5647
|
+
"name": "run_id",
|
|
5648
|
+
"sdkName": "run_id",
|
|
5643
5649
|
"description": "Run ID (run_)."
|
|
5644
5650
|
}
|
|
5645
5651
|
],
|
|
@@ -5672,13 +5678,13 @@ export const operations = [
|
|
|
5672
5678
|
"summary": "Rerun a run",
|
|
5673
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.",
|
|
5674
5680
|
"http": "POST",
|
|
5675
|
-
"path": "/automation/v1/runs/{
|
|
5681
|
+
"path": "/automation/v1/runs/{run_id}/rerun",
|
|
5676
5682
|
"streaming": "no",
|
|
5677
5683
|
"pagination": false,
|
|
5678
5684
|
"pathParams": [
|
|
5679
5685
|
{
|
|
5680
|
-
"name": "
|
|
5681
|
-
"sdkName": "
|
|
5686
|
+
"name": "run_id",
|
|
5687
|
+
"sdkName": "run_id",
|
|
5682
5688
|
"description": "Run ID (run_)."
|
|
5683
5689
|
}
|
|
5684
5690
|
],
|
|
@@ -5701,13 +5707,13 @@ export const operations = [
|
|
|
5701
5707
|
"summary": "Resume a run",
|
|
5702
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.",
|
|
5703
5709
|
"http": "POST",
|
|
5704
|
-
"path": "/automation/v1/runs/{
|
|
5710
|
+
"path": "/automation/v1/runs/{run_id}/resume",
|
|
5705
5711
|
"streaming": "no",
|
|
5706
5712
|
"pagination": false,
|
|
5707
5713
|
"pathParams": [
|
|
5708
5714
|
{
|
|
5709
|
-
"name": "
|
|
5710
|
-
"sdkName": "
|
|
5715
|
+
"name": "run_id",
|
|
5716
|
+
"sdkName": "run_id",
|
|
5711
5717
|
"description": "Run ID (run_)."
|
|
5712
5718
|
}
|
|
5713
5719
|
],
|
|
@@ -5723,13 +5729,13 @@ export const operations = [
|
|
|
5723
5729
|
"summary": "Get run source",
|
|
5724
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.",
|
|
5725
5731
|
"http": "GET",
|
|
5726
|
-
"path": "/automation/v1/runs/{
|
|
5732
|
+
"path": "/automation/v1/runs/{run_id}/source",
|
|
5727
5733
|
"streaming": "no",
|
|
5728
5734
|
"pagination": false,
|
|
5729
5735
|
"pathParams": [
|
|
5730
5736
|
{
|
|
5731
|
-
"name": "
|
|
5732
|
-
"sdkName": "
|
|
5737
|
+
"name": "run_id",
|
|
5738
|
+
"sdkName": "run_id",
|
|
5733
5739
|
"description": "Run ID (run_)."
|
|
5734
5740
|
}
|
|
5735
5741
|
],
|
|
@@ -5741,13 +5747,13 @@ export const operations = [
|
|
|
5741
5747
|
"summary": "Suspend a run",
|
|
5742
5748
|
"description": "Suspend only a running or waiting workflow. Scripts return OPERATION_NOT_SUPPORTED; other states return RUN_INVALID_STATE.",
|
|
5743
5749
|
"http": "POST",
|
|
5744
|
-
"path": "/automation/v1/runs/{
|
|
5750
|
+
"path": "/automation/v1/runs/{run_id}/suspend",
|
|
5745
5751
|
"streaming": "no",
|
|
5746
5752
|
"pagination": false,
|
|
5747
5753
|
"pathParams": [
|
|
5748
5754
|
{
|
|
5749
|
-
"name": "
|
|
5750
|
-
"sdkName": "
|
|
5755
|
+
"name": "run_id",
|
|
5756
|
+
"sdkName": "run_id",
|
|
5751
5757
|
"description": "Run ID (run_)."
|
|
5752
5758
|
}
|
|
5753
5759
|
],
|
|
@@ -5763,13 +5769,13 @@ export const operations = [
|
|
|
5763
5769
|
"summary": "List run tasks",
|
|
5764
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.",
|
|
5765
5771
|
"http": "GET",
|
|
5766
|
-
"path": "/automation/v1/runs/{
|
|
5772
|
+
"path": "/automation/v1/runs/{run_id}/tasks",
|
|
5767
5773
|
"streaming": "no",
|
|
5768
5774
|
"pagination": true,
|
|
5769
5775
|
"pathParams": [
|
|
5770
5776
|
{
|
|
5771
|
-
"name": "
|
|
5772
|
-
"sdkName": "
|
|
5777
|
+
"name": "run_id",
|
|
5778
|
+
"sdkName": "run_id",
|
|
5773
5779
|
"description": "Run ID (run_)."
|
|
5774
5780
|
}
|
|
5775
5781
|
],
|
|
@@ -5812,13 +5818,13 @@ export const operations = [
|
|
|
5812
5818
|
"summary": "List run waits",
|
|
5813
5819
|
"description": "List current and historical waits in ledger order. Wait types include event, timer and child.",
|
|
5814
5820
|
"http": "GET",
|
|
5815
|
-
"path": "/automation/v1/runs/{
|
|
5821
|
+
"path": "/automation/v1/runs/{run_id}/waits",
|
|
5816
5822
|
"streaming": "no",
|
|
5817
5823
|
"pagination": true,
|
|
5818
5824
|
"pathParams": [
|
|
5819
5825
|
{
|
|
5820
|
-
"name": "
|
|
5821
|
-
"sdkName": "
|
|
5826
|
+
"name": "run_id",
|
|
5827
|
+
"sdkName": "run_id",
|
|
5822
5828
|
"description": "Run ID (run_)."
|
|
5823
5829
|
}
|
|
5824
5830
|
],
|
|
@@ -5843,13 +5849,13 @@ export const operations = [
|
|
|
5843
5849
|
"summary": "Complete a run wait",
|
|
5844
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.",
|
|
5845
5851
|
"http": "POST",
|
|
5846
|
-
"path": "/automation/v1/runs/{
|
|
5852
|
+
"path": "/automation/v1/runs/{run_id}/waits/{wait_id}/complete",
|
|
5847
5853
|
"streaming": "no",
|
|
5848
5854
|
"pagination": false,
|
|
5849
5855
|
"pathParams": [
|
|
5850
5856
|
{
|
|
5851
|
-
"name": "
|
|
5852
|
-
"sdkName": "
|
|
5857
|
+
"name": "run_id",
|
|
5858
|
+
"sdkName": "run_id",
|
|
5853
5859
|
"description": "Run ID (run_)."
|
|
5854
5860
|
},
|
|
5855
5861
|
{
|
|
@@ -5954,7 +5960,7 @@ export const operations = [
|
|
|
5954
5960
|
"resource": "automation.scripts",
|
|
5955
5961
|
"method": "create",
|
|
5956
5962
|
"summary": "Create a script",
|
|
5957
|
-
"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.",
|
|
5958
5964
|
"http": "POST",
|
|
5959
5965
|
"path": "/automation/v1/scripts",
|
|
5960
5966
|
"streaming": "no",
|
|
@@ -5984,9 +5990,9 @@ export const operations = [
|
|
|
5984
5990
|
},
|
|
5985
5991
|
{
|
|
5986
5992
|
"name": "draft",
|
|
5987
|
-
"type": "
|
|
5993
|
+
"type": "object",
|
|
5988
5994
|
"required": false,
|
|
5989
|
-
"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 }."
|
|
5990
5996
|
},
|
|
5991
5997
|
{
|
|
5992
5998
|
"name": "labels",
|
|
@@ -6001,15 +6007,15 @@ export const operations = [
|
|
|
6001
6007
|
"resource": "automation.scripts",
|
|
6002
6008
|
"method": "retrieve",
|
|
6003
6009
|
"summary": "Get a script",
|
|
6004
|
-
"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.",
|
|
6005
6011
|
"http": "GET",
|
|
6006
|
-
"path": "/automation/v1/scripts/{
|
|
6012
|
+
"path": "/automation/v1/scripts/{namespace}/{name}",
|
|
6007
6013
|
"streaming": "no",
|
|
6008
6014
|
"pagination": false,
|
|
6009
6015
|
"pathParams": [
|
|
6010
6016
|
{
|
|
6011
|
-
"name": "
|
|
6012
|
-
"sdkName": "
|
|
6017
|
+
"name": "namespace",
|
|
6018
|
+
"sdkName": "namespace",
|
|
6013
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."
|
|
6014
6020
|
},
|
|
6015
6021
|
{
|
|
@@ -6024,15 +6030,15 @@ export const operations = [
|
|
|
6024
6030
|
"resource": "automation.scripts",
|
|
6025
6031
|
"method": "update",
|
|
6026
6032
|
"summary": "Update a script draft",
|
|
6027
|
-
"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.",
|
|
6028
6034
|
"http": "PATCH",
|
|
6029
|
-
"path": "/automation/v1/scripts/{
|
|
6035
|
+
"path": "/automation/v1/scripts/{namespace}/{name}",
|
|
6030
6036
|
"streaming": "no",
|
|
6031
6037
|
"pagination": false,
|
|
6032
6038
|
"pathParams": [
|
|
6033
6039
|
{
|
|
6034
|
-
"name": "
|
|
6035
|
-
"sdkName": "
|
|
6040
|
+
"name": "namespace",
|
|
6041
|
+
"sdkName": "namespace",
|
|
6036
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."
|
|
6037
6043
|
},
|
|
6038
6044
|
{
|
|
@@ -6046,8 +6052,8 @@ export const operations = [
|
|
|
6046
6052
|
{
|
|
6047
6053
|
"name": "If-Match",
|
|
6048
6054
|
"type": "string",
|
|
6049
|
-
"required":
|
|
6050
|
-
"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."
|
|
6051
6057
|
}
|
|
6052
6058
|
],
|
|
6053
6059
|
"body": {
|
|
@@ -6067,9 +6073,9 @@ export const operations = [
|
|
|
6067
6073
|
},
|
|
6068
6074
|
{
|
|
6069
6075
|
"name": "draft",
|
|
6070
|
-
"type": "
|
|
6076
|
+
"type": "object",
|
|
6071
6077
|
"required": false,
|
|
6072
|
-
"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."
|
|
6073
6079
|
}
|
|
6074
6080
|
]
|
|
6075
6081
|
}
|
|
@@ -6080,13 +6086,13 @@ export const operations = [
|
|
|
6080
6086
|
"summary": "Archive a script",
|
|
6081
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.",
|
|
6082
6088
|
"http": "POST",
|
|
6083
|
-
"path": "/automation/v1/scripts/{
|
|
6089
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/archive",
|
|
6084
6090
|
"streaming": "no",
|
|
6085
6091
|
"pagination": false,
|
|
6086
6092
|
"pathParams": [
|
|
6087
6093
|
{
|
|
6088
|
-
"name": "
|
|
6089
|
-
"sdkName": "
|
|
6094
|
+
"name": "namespace",
|
|
6095
|
+
"sdkName": "namespace",
|
|
6090
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."
|
|
6091
6097
|
},
|
|
6092
6098
|
{
|
|
@@ -6107,13 +6113,13 @@ export const operations = [
|
|
|
6107
6113
|
"summary": "List script tags",
|
|
6108
6114
|
"description": "Read the exact version for each distribution tag. Results include the update time and updater.",
|
|
6109
6115
|
"http": "GET",
|
|
6110
|
-
"path": "/automation/v1/scripts/{
|
|
6116
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags",
|
|
6111
6117
|
"streaming": "no",
|
|
6112
6118
|
"pagination": false,
|
|
6113
6119
|
"pathParams": [
|
|
6114
6120
|
{
|
|
6115
|
-
"name": "
|
|
6116
|
-
"sdkName": "
|
|
6121
|
+
"name": "namespace",
|
|
6122
|
+
"sdkName": "namespace",
|
|
6117
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."
|
|
6118
6124
|
},
|
|
6119
6125
|
{
|
|
@@ -6130,13 +6136,13 @@ export const operations = [
|
|
|
6130
6136
|
"summary": "Delete a script tag",
|
|
6131
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.",
|
|
6132
6138
|
"http": "DELETE",
|
|
6133
|
-
"path": "/automation/v1/scripts/{
|
|
6139
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
|
|
6134
6140
|
"streaming": "no",
|
|
6135
6141
|
"pagination": false,
|
|
6136
6142
|
"pathParams": [
|
|
6137
6143
|
{
|
|
6138
|
-
"name": "
|
|
6139
|
-
"sdkName": "
|
|
6144
|
+
"name": "namespace",
|
|
6145
|
+
"sdkName": "namespace",
|
|
6140
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."
|
|
6141
6147
|
},
|
|
6142
6148
|
{
|
|
@@ -6158,13 +6164,13 @@ export const operations = [
|
|
|
6158
6164
|
"summary": "Set a script tag",
|
|
6159
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.",
|
|
6160
6166
|
"http": "PUT",
|
|
6161
|
-
"path": "/automation/v1/scripts/{
|
|
6167
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
|
|
6162
6168
|
"streaming": "no",
|
|
6163
6169
|
"pagination": false,
|
|
6164
6170
|
"pathParams": [
|
|
6165
6171
|
{
|
|
6166
|
-
"name": "
|
|
6167
|
-
"sdkName": "
|
|
6172
|
+
"name": "namespace",
|
|
6173
|
+
"sdkName": "namespace",
|
|
6168
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."
|
|
6169
6175
|
},
|
|
6170
6176
|
{
|
|
@@ -6197,13 +6203,13 @@ export const operations = [
|
|
|
6197
6203
|
"summary": "Restore a script",
|
|
6198
6204
|
"description": "Restore an archived definition with its versions and tags. The name is retained.",
|
|
6199
6205
|
"http": "POST",
|
|
6200
|
-
"path": "/automation/v1/scripts/{
|
|
6206
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/restore",
|
|
6201
6207
|
"streaming": "no",
|
|
6202
6208
|
"pagination": false,
|
|
6203
6209
|
"pathParams": [
|
|
6204
6210
|
{
|
|
6205
|
-
"name": "
|
|
6206
|
-
"sdkName": "
|
|
6211
|
+
"name": "namespace",
|
|
6212
|
+
"sdkName": "namespace",
|
|
6207
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."
|
|
6208
6214
|
},
|
|
6209
6215
|
{
|
|
@@ -6224,13 +6230,13 @@ export const operations = [
|
|
|
6224
6230
|
"summary": "List script vault bindings",
|
|
6225
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.",
|
|
6226
6232
|
"http": "GET",
|
|
6227
|
-
"path": "/automation/v1/scripts/{
|
|
6233
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults",
|
|
6228
6234
|
"streaming": "no",
|
|
6229
6235
|
"pagination": false,
|
|
6230
6236
|
"pathParams": [
|
|
6231
6237
|
{
|
|
6232
|
-
"name": "
|
|
6233
|
-
"sdkName": "
|
|
6238
|
+
"name": "namespace",
|
|
6239
|
+
"sdkName": "namespace",
|
|
6234
6240
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6235
6241
|
},
|
|
6236
6242
|
{
|
|
@@ -6247,13 +6253,13 @@ export const operations = [
|
|
|
6247
6253
|
"summary": "Delete a script vault binding",
|
|
6248
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.",
|
|
6249
6255
|
"http": "DELETE",
|
|
6250
|
-
"path": "/automation/v1/scripts/{
|
|
6256
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
|
|
6251
6257
|
"streaming": "no",
|
|
6252
6258
|
"pagination": false,
|
|
6253
6259
|
"pathParams": [
|
|
6254
6260
|
{
|
|
6255
|
-
"name": "
|
|
6256
|
-
"sdkName": "
|
|
6261
|
+
"name": "namespace",
|
|
6262
|
+
"sdkName": "namespace",
|
|
6257
6263
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6258
6264
|
},
|
|
6259
6265
|
{
|
|
@@ -6275,13 +6281,13 @@ export const operations = [
|
|
|
6275
6281
|
"summary": "Set a script vault binding",
|
|
6276
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\"}.",
|
|
6277
6283
|
"http": "PUT",
|
|
6278
|
-
"path": "/automation/v1/scripts/{
|
|
6284
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
|
|
6279
6285
|
"streaming": "no",
|
|
6280
6286
|
"pagination": false,
|
|
6281
6287
|
"pathParams": [
|
|
6282
6288
|
{
|
|
6283
|
-
"name": "
|
|
6284
|
-
"sdkName": "
|
|
6289
|
+
"name": "namespace",
|
|
6290
|
+
"sdkName": "namespace",
|
|
6285
6291
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6286
6292
|
},
|
|
6287
6293
|
{
|
|
@@ -6314,13 +6320,13 @@ export const operations = [
|
|
|
6314
6320
|
"summary": "List script versions",
|
|
6315
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.",
|
|
6316
6322
|
"http": "GET",
|
|
6317
|
-
"path": "/automation/v1/scripts/{
|
|
6323
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions",
|
|
6318
6324
|
"streaming": "no",
|
|
6319
6325
|
"pagination": true,
|
|
6320
6326
|
"pathParams": [
|
|
6321
6327
|
{
|
|
6322
|
-
"name": "
|
|
6323
|
-
"sdkName": "
|
|
6328
|
+
"name": "namespace",
|
|
6329
|
+
"sdkName": "namespace",
|
|
6324
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."
|
|
6325
6331
|
},
|
|
6326
6332
|
{
|
|
@@ -6360,15 +6366,15 @@ export const operations = [
|
|
|
6360
6366
|
"publish"
|
|
6361
6367
|
],
|
|
6362
6368
|
"summary": "Publish a script version",
|
|
6363
|
-
"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.",
|
|
6364
6370
|
"http": "POST",
|
|
6365
|
-
"path": "/automation/v1/scripts/{
|
|
6371
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions",
|
|
6366
6372
|
"streaming": "no",
|
|
6367
6373
|
"pagination": false,
|
|
6368
6374
|
"pathParams": [
|
|
6369
6375
|
{
|
|
6370
|
-
"name": "
|
|
6371
|
-
"sdkName": "
|
|
6376
|
+
"name": "namespace",
|
|
6377
|
+
"sdkName": "namespace",
|
|
6372
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."
|
|
6373
6379
|
},
|
|
6374
6380
|
{
|
|
@@ -6389,13 +6395,13 @@ export const operations = [
|
|
|
6389
6395
|
"summary": "Get a script version",
|
|
6390
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.",
|
|
6391
6397
|
"http": "GET",
|
|
6392
|
-
"path": "/automation/v1/scripts/{
|
|
6398
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}",
|
|
6393
6399
|
"streaming": "no",
|
|
6394
6400
|
"pagination": false,
|
|
6395
6401
|
"pathParams": [
|
|
6396
6402
|
{
|
|
6397
|
-
"name": "
|
|
6398
|
-
"sdkName": "
|
|
6403
|
+
"name": "namespace",
|
|
6404
|
+
"sdkName": "namespace",
|
|
6399
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."
|
|
6400
6406
|
},
|
|
6401
6407
|
{
|
|
@@ -6417,13 +6423,13 @@ export const operations = [
|
|
|
6417
6423
|
"summary": "Deprecate a script version",
|
|
6418
6424
|
"description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
|
|
6419
6425
|
"http": "POST",
|
|
6420
|
-
"path": "/automation/v1/scripts/{
|
|
6426
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate",
|
|
6421
6427
|
"streaming": "no",
|
|
6422
6428
|
"pagination": false,
|
|
6423
6429
|
"pathParams": [
|
|
6424
6430
|
{
|
|
6425
|
-
"name": "
|
|
6426
|
-
"sdkName": "
|
|
6431
|
+
"name": "namespace",
|
|
6432
|
+
"sdkName": "namespace",
|
|
6427
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."
|
|
6428
6434
|
},
|
|
6429
6435
|
{
|
|
@@ -6574,7 +6580,7 @@ export const operations = [
|
|
|
6574
6580
|
"expired"
|
|
6575
6581
|
],
|
|
6576
6582
|
"required": false,
|
|
6577
|
-
"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."
|
|
6578
6584
|
},
|
|
6579
6585
|
{
|
|
6580
6586
|
"name": "labels",
|
|
@@ -6593,6 +6599,18 @@ export const operations = [
|
|
|
6593
6599
|
"type": "string",
|
|
6594
6600
|
"required": false,
|
|
6595
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."
|
|
6596
6614
|
}
|
|
6597
6615
|
]
|
|
6598
6616
|
},
|
|
@@ -6742,13 +6760,13 @@ export const operations = [
|
|
|
6742
6760
|
"summary": "Delete a trigger",
|
|
6743
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.",
|
|
6744
6762
|
"http": "DELETE",
|
|
6745
|
-
"path": "/automation/v1/triggers/{
|
|
6763
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6746
6764
|
"streaming": "no",
|
|
6747
6765
|
"pagination": false,
|
|
6748
6766
|
"pathParams": [
|
|
6749
6767
|
{
|
|
6750
|
-
"name": "
|
|
6751
|
-
"sdkName": "
|
|
6768
|
+
"name": "trigger_id",
|
|
6769
|
+
"sdkName": "trigger_id",
|
|
6752
6770
|
"description": "Trigger ID (trg_)."
|
|
6753
6771
|
}
|
|
6754
6772
|
],
|
|
@@ -6760,13 +6778,13 @@ export const operations = [
|
|
|
6760
6778
|
"summary": "Get a trigger",
|
|
6761
6779
|
"description": "Read schedule, state, upcoming times and latest firing. Use the ETag to update; the full webhook URL is not returned again.",
|
|
6762
6780
|
"http": "GET",
|
|
6763
|
-
"path": "/automation/v1/triggers/{
|
|
6781
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6764
6782
|
"streaming": "no",
|
|
6765
6783
|
"pagination": false,
|
|
6766
6784
|
"pathParams": [
|
|
6767
6785
|
{
|
|
6768
|
-
"name": "
|
|
6769
|
-
"sdkName": "
|
|
6786
|
+
"name": "trigger_id",
|
|
6787
|
+
"sdkName": "trigger_id",
|
|
6770
6788
|
"description": "Trigger ID (trg_)."
|
|
6771
6789
|
}
|
|
6772
6790
|
],
|
|
@@ -6778,13 +6796,13 @@ export const operations = [
|
|
|
6778
6796
|
"summary": "Update a trigger",
|
|
6779
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.",
|
|
6780
6798
|
"http": "PATCH",
|
|
6781
|
-
"path": "/automation/v1/triggers/{
|
|
6799
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6782
6800
|
"streaming": "no",
|
|
6783
6801
|
"pagination": false,
|
|
6784
6802
|
"pathParams": [
|
|
6785
6803
|
{
|
|
6786
|
-
"name": "
|
|
6787
|
-
"sdkName": "
|
|
6804
|
+
"name": "trigger_id",
|
|
6805
|
+
"sdkName": "trigger_id",
|
|
6788
6806
|
"description": "Trigger ID (trg_)."
|
|
6789
6807
|
}
|
|
6790
6808
|
],
|
|
@@ -6895,13 +6913,13 @@ export const operations = [
|
|
|
6895
6913
|
"summary": "Fire a trigger now",
|
|
6896
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.",
|
|
6897
6915
|
"http": "POST",
|
|
6898
|
-
"path": "/automation/v1/triggers/{
|
|
6916
|
+
"path": "/automation/v1/triggers/{trigger_id}/fire",
|
|
6899
6917
|
"streaming": "no",
|
|
6900
6918
|
"pagination": false,
|
|
6901
6919
|
"pathParams": [
|
|
6902
6920
|
{
|
|
6903
|
-
"name": "
|
|
6904
|
-
"sdkName": "
|
|
6921
|
+
"name": "trigger_id",
|
|
6922
|
+
"sdkName": "trigger_id",
|
|
6905
6923
|
"description": "Trigger ID (trg_)."
|
|
6906
6924
|
}
|
|
6907
6925
|
],
|
|
@@ -6913,13 +6931,13 @@ export const operations = [
|
|
|
6913
6931
|
"summary": "List trigger firings",
|
|
6914
6932
|
"description": "Read the last 30 days of firings newest first. Results include resolved versions, run IDs and failure details.",
|
|
6915
6933
|
"http": "GET",
|
|
6916
|
-
"path": "/automation/v1/triggers/{
|
|
6934
|
+
"path": "/automation/v1/triggers/{trigger_id}/firings",
|
|
6917
6935
|
"streaming": "no",
|
|
6918
6936
|
"pagination": true,
|
|
6919
6937
|
"pathParams": [
|
|
6920
6938
|
{
|
|
6921
|
-
"name": "
|
|
6922
|
-
"sdkName": "
|
|
6939
|
+
"name": "trigger_id",
|
|
6940
|
+
"sdkName": "trigger_id",
|
|
6923
6941
|
"description": "Trigger ID (trg_)."
|
|
6924
6942
|
}
|
|
6925
6943
|
],
|
|
@@ -6965,13 +6983,13 @@ export const operations = [
|
|
|
6965
6983
|
"summary": "Pause a trigger",
|
|
6966
6984
|
"description": "Pause new firings without terminating existing runs. Definition-managed triggers can also be paused.",
|
|
6967
6985
|
"http": "POST",
|
|
6968
|
-
"path": "/automation/v1/triggers/{
|
|
6986
|
+
"path": "/automation/v1/triggers/{trigger_id}/pause",
|
|
6969
6987
|
"streaming": "no",
|
|
6970
6988
|
"pagination": false,
|
|
6971
6989
|
"pathParams": [
|
|
6972
6990
|
{
|
|
6973
|
-
"name": "
|
|
6974
|
-
"sdkName": "
|
|
6991
|
+
"name": "trigger_id",
|
|
6992
|
+
"sdkName": "trigger_id",
|
|
6975
6993
|
"description": "Trigger ID (trg_)."
|
|
6976
6994
|
}
|
|
6977
6995
|
],
|
|
@@ -6983,13 +7001,13 @@ export const operations = [
|
|
|
6983
7001
|
"summary": "Resume a trigger",
|
|
6984
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.",
|
|
6985
7003
|
"http": "POST",
|
|
6986
|
-
"path": "/automation/v1/triggers/{
|
|
7004
|
+
"path": "/automation/v1/triggers/{trigger_id}/resume",
|
|
6987
7005
|
"streaming": "no",
|
|
6988
7006
|
"pagination": false,
|
|
6989
7007
|
"pathParams": [
|
|
6990
7008
|
{
|
|
6991
|
-
"name": "
|
|
6992
|
-
"sdkName": "
|
|
7009
|
+
"name": "trigger_id",
|
|
7010
|
+
"sdkName": "trigger_id",
|
|
6993
7011
|
"description": "Trigger ID (trg_)."
|
|
6994
7012
|
}
|
|
6995
7013
|
],
|
|
@@ -7001,13 +7019,13 @@ export const operations = [
|
|
|
7001
7019
|
"summary": "Rotate a webhook URL",
|
|
7002
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.",
|
|
7003
7021
|
"http": "POST",
|
|
7004
|
-
"path": "/automation/v1/triggers/{
|
|
7022
|
+
"path": "/automation/v1/triggers/{trigger_id}/rotate-webhook",
|
|
7005
7023
|
"streaming": "no",
|
|
7006
7024
|
"pagination": false,
|
|
7007
7025
|
"pathParams": [
|
|
7008
7026
|
{
|
|
7009
|
-
"name": "
|
|
7010
|
-
"sdkName": "
|
|
7027
|
+
"name": "trigger_id",
|
|
7028
|
+
"sdkName": "trigger_id",
|
|
7011
7029
|
"description": "Trigger ID (trg_)."
|
|
7012
7030
|
}
|
|
7013
7031
|
],
|
|
@@ -7154,9 +7172,9 @@ export const operations = [
|
|
|
7154
7172
|
},
|
|
7155
7173
|
{
|
|
7156
7174
|
"name": "draft",
|
|
7157
|
-
"type": "
|
|
7175
|
+
"type": "object",
|
|
7158
7176
|
"required": false,
|
|
7159
|
-
"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 }."
|
|
7160
7178
|
},
|
|
7161
7179
|
{
|
|
7162
7180
|
"name": "labels",
|
|
@@ -7171,15 +7189,15 @@ export const operations = [
|
|
|
7171
7189
|
"resource": "automation.workflows",
|
|
7172
7190
|
"method": "retrieve",
|
|
7173
7191
|
"summary": "Get a workflow",
|
|
7174
|
-
"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.",
|
|
7175
7193
|
"http": "GET",
|
|
7176
|
-
"path": "/automation/v1/workflows/{
|
|
7194
|
+
"path": "/automation/v1/workflows/{namespace}/{name}",
|
|
7177
7195
|
"streaming": "no",
|
|
7178
7196
|
"pagination": false,
|
|
7179
7197
|
"pathParams": [
|
|
7180
7198
|
{
|
|
7181
|
-
"name": "
|
|
7182
|
-
"sdkName": "
|
|
7199
|
+
"name": "namespace",
|
|
7200
|
+
"sdkName": "namespace",
|
|
7183
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."
|
|
7184
7202
|
},
|
|
7185
7203
|
{
|
|
@@ -7194,15 +7212,15 @@ export const operations = [
|
|
|
7194
7212
|
"resource": "automation.workflows",
|
|
7195
7213
|
"method": "update",
|
|
7196
7214
|
"summary": "Update a workflow draft",
|
|
7197
|
-
"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.",
|
|
7198
7216
|
"http": "PATCH",
|
|
7199
|
-
"path": "/automation/v1/workflows/{
|
|
7217
|
+
"path": "/automation/v1/workflows/{namespace}/{name}",
|
|
7200
7218
|
"streaming": "no",
|
|
7201
7219
|
"pagination": false,
|
|
7202
7220
|
"pathParams": [
|
|
7203
7221
|
{
|
|
7204
|
-
"name": "
|
|
7205
|
-
"sdkName": "
|
|
7222
|
+
"name": "namespace",
|
|
7223
|
+
"sdkName": "namespace",
|
|
7206
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."
|
|
7207
7225
|
},
|
|
7208
7226
|
{
|
|
@@ -7216,8 +7234,8 @@ export const operations = [
|
|
|
7216
7234
|
{
|
|
7217
7235
|
"name": "If-Match",
|
|
7218
7236
|
"type": "string",
|
|
7219
|
-
"required":
|
|
7220
|
-
"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."
|
|
7221
7239
|
}
|
|
7222
7240
|
],
|
|
7223
7241
|
"body": {
|
|
@@ -7237,9 +7255,9 @@ export const operations = [
|
|
|
7237
7255
|
},
|
|
7238
7256
|
{
|
|
7239
7257
|
"name": "draft",
|
|
7240
|
-
"type": "
|
|
7258
|
+
"type": "object",
|
|
7241
7259
|
"required": false,
|
|
7242
|
-
"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."
|
|
7243
7261
|
}
|
|
7244
7262
|
]
|
|
7245
7263
|
}
|
|
@@ -7250,13 +7268,13 @@ export const operations = [
|
|
|
7250
7268
|
"summary": "Archive a workflow",
|
|
7251
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.",
|
|
7252
7270
|
"http": "POST",
|
|
7253
|
-
"path": "/automation/v1/workflows/{
|
|
7271
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/archive",
|
|
7254
7272
|
"streaming": "no",
|
|
7255
7273
|
"pagination": false,
|
|
7256
7274
|
"pathParams": [
|
|
7257
7275
|
{
|
|
7258
|
-
"name": "
|
|
7259
|
-
"sdkName": "
|
|
7276
|
+
"name": "namespace",
|
|
7277
|
+
"sdkName": "namespace",
|
|
7260
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."
|
|
7261
7279
|
},
|
|
7262
7280
|
{
|
|
@@ -7277,13 +7295,13 @@ export const operations = [
|
|
|
7277
7295
|
"summary": "List workflow tags",
|
|
7278
7296
|
"description": "Read the exact version for each distribution tag. Results include the update time and updater.",
|
|
7279
7297
|
"http": "GET",
|
|
7280
|
-
"path": "/automation/v1/workflows/{
|
|
7298
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags",
|
|
7281
7299
|
"streaming": "no",
|
|
7282
7300
|
"pagination": false,
|
|
7283
7301
|
"pathParams": [
|
|
7284
7302
|
{
|
|
7285
|
-
"name": "
|
|
7286
|
-
"sdkName": "
|
|
7303
|
+
"name": "namespace",
|
|
7304
|
+
"sdkName": "namespace",
|
|
7287
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."
|
|
7288
7306
|
},
|
|
7289
7307
|
{
|
|
@@ -7300,13 +7318,13 @@ export const operations = [
|
|
|
7300
7318
|
"summary": "Delete a workflow tag",
|
|
7301
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.",
|
|
7302
7320
|
"http": "DELETE",
|
|
7303
|
-
"path": "/automation/v1/workflows/{
|
|
7321
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
|
|
7304
7322
|
"streaming": "no",
|
|
7305
7323
|
"pagination": false,
|
|
7306
7324
|
"pathParams": [
|
|
7307
7325
|
{
|
|
7308
|
-
"name": "
|
|
7309
|
-
"sdkName": "
|
|
7326
|
+
"name": "namespace",
|
|
7327
|
+
"sdkName": "namespace",
|
|
7310
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."
|
|
7311
7329
|
},
|
|
7312
7330
|
{
|
|
@@ -7328,13 +7346,13 @@ export const operations = [
|
|
|
7328
7346
|
"summary": "Set a workflow tag",
|
|
7329
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.",
|
|
7330
7348
|
"http": "PUT",
|
|
7331
|
-
"path": "/automation/v1/workflows/{
|
|
7349
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
|
|
7332
7350
|
"streaming": "no",
|
|
7333
7351
|
"pagination": false,
|
|
7334
7352
|
"pathParams": [
|
|
7335
7353
|
{
|
|
7336
|
-
"name": "
|
|
7337
|
-
"sdkName": "
|
|
7354
|
+
"name": "namespace",
|
|
7355
|
+
"sdkName": "namespace",
|
|
7338
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."
|
|
7339
7357
|
},
|
|
7340
7358
|
{
|
|
@@ -7367,13 +7385,13 @@ export const operations = [
|
|
|
7367
7385
|
"summary": "Restore a workflow",
|
|
7368
7386
|
"description": "Restore an archived definition with its versions and tags. The name is retained.",
|
|
7369
7387
|
"http": "POST",
|
|
7370
|
-
"path": "/automation/v1/workflows/{
|
|
7388
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/restore",
|
|
7371
7389
|
"streaming": "no",
|
|
7372
7390
|
"pagination": false,
|
|
7373
7391
|
"pathParams": [
|
|
7374
7392
|
{
|
|
7375
|
-
"name": "
|
|
7376
|
-
"sdkName": "
|
|
7393
|
+
"name": "namespace",
|
|
7394
|
+
"sdkName": "namespace",
|
|
7377
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."
|
|
7378
7396
|
},
|
|
7379
7397
|
{
|
|
@@ -7394,13 +7412,13 @@ export const operations = [
|
|
|
7394
7412
|
"summary": "List workflow vault bindings",
|
|
7395
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.",
|
|
7396
7414
|
"http": "GET",
|
|
7397
|
-
"path": "/automation/v1/workflows/{
|
|
7415
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults",
|
|
7398
7416
|
"streaming": "no",
|
|
7399
7417
|
"pagination": false,
|
|
7400
7418
|
"pathParams": [
|
|
7401
7419
|
{
|
|
7402
|
-
"name": "
|
|
7403
|
-
"sdkName": "
|
|
7420
|
+
"name": "namespace",
|
|
7421
|
+
"sdkName": "namespace",
|
|
7404
7422
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7405
7423
|
},
|
|
7406
7424
|
{
|
|
@@ -7417,13 +7435,13 @@ export const operations = [
|
|
|
7417
7435
|
"summary": "Delete a workflow vault binding",
|
|
7418
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.",
|
|
7419
7437
|
"http": "DELETE",
|
|
7420
|
-
"path": "/automation/v1/workflows/{
|
|
7438
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
|
|
7421
7439
|
"streaming": "no",
|
|
7422
7440
|
"pagination": false,
|
|
7423
7441
|
"pathParams": [
|
|
7424
7442
|
{
|
|
7425
|
-
"name": "
|
|
7426
|
-
"sdkName": "
|
|
7443
|
+
"name": "namespace",
|
|
7444
|
+
"sdkName": "namespace",
|
|
7427
7445
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7428
7446
|
},
|
|
7429
7447
|
{
|
|
@@ -7445,13 +7463,13 @@ export const operations = [
|
|
|
7445
7463
|
"summary": "Set a workflow vault binding",
|
|
7446
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\"}.",
|
|
7447
7465
|
"http": "PUT",
|
|
7448
|
-
"path": "/automation/v1/workflows/{
|
|
7466
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
|
|
7449
7467
|
"streaming": "no",
|
|
7450
7468
|
"pagination": false,
|
|
7451
7469
|
"pathParams": [
|
|
7452
7470
|
{
|
|
7453
|
-
"name": "
|
|
7454
|
-
"sdkName": "
|
|
7471
|
+
"name": "namespace",
|
|
7472
|
+
"sdkName": "namespace",
|
|
7455
7473
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7456
7474
|
},
|
|
7457
7475
|
{
|
|
@@ -7484,13 +7502,13 @@ export const operations = [
|
|
|
7484
7502
|
"summary": "List workflow versions",
|
|
7485
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.",
|
|
7486
7504
|
"http": "GET",
|
|
7487
|
-
"path": "/automation/v1/workflows/{
|
|
7505
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions",
|
|
7488
7506
|
"streaming": "no",
|
|
7489
7507
|
"pagination": true,
|
|
7490
7508
|
"pathParams": [
|
|
7491
7509
|
{
|
|
7492
|
-
"name": "
|
|
7493
|
-
"sdkName": "
|
|
7510
|
+
"name": "namespace",
|
|
7511
|
+
"sdkName": "namespace",
|
|
7494
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."
|
|
7495
7513
|
},
|
|
7496
7514
|
{
|
|
@@ -7530,15 +7548,15 @@ export const operations = [
|
|
|
7530
7548
|
"publish"
|
|
7531
7549
|
],
|
|
7532
7550
|
"summary": "Publish a workflow version",
|
|
7533
|
-
"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).",
|
|
7534
7552
|
"http": "POST",
|
|
7535
|
-
"path": "/automation/v1/workflows/{
|
|
7553
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions",
|
|
7536
7554
|
"streaming": "no",
|
|
7537
7555
|
"pagination": false,
|
|
7538
7556
|
"pathParams": [
|
|
7539
7557
|
{
|
|
7540
|
-
"name": "
|
|
7541
|
-
"sdkName": "
|
|
7558
|
+
"name": "namespace",
|
|
7559
|
+
"sdkName": "namespace",
|
|
7542
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."
|
|
7543
7561
|
},
|
|
7544
7562
|
{
|
|
@@ -7559,13 +7577,13 @@ export const operations = [
|
|
|
7559
7577
|
"summary": "Get a workflow version",
|
|
7560
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.",
|
|
7561
7579
|
"http": "GET",
|
|
7562
|
-
"path": "/automation/v1/workflows/{
|
|
7580
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}",
|
|
7563
7581
|
"streaming": "no",
|
|
7564
7582
|
"pagination": false,
|
|
7565
7583
|
"pathParams": [
|
|
7566
7584
|
{
|
|
7567
|
-
"name": "
|
|
7568
|
-
"sdkName": "
|
|
7585
|
+
"name": "namespace",
|
|
7586
|
+
"sdkName": "namespace",
|
|
7569
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."
|
|
7570
7588
|
},
|
|
7571
7589
|
{
|
|
@@ -7587,13 +7605,13 @@ export const operations = [
|
|
|
7587
7605
|
"summary": "Deprecate a workflow version",
|
|
7588
7606
|
"description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
|
|
7589
7607
|
"http": "POST",
|
|
7590
|
-
"path": "/automation/v1/workflows/{
|
|
7608
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate",
|
|
7591
7609
|
"streaming": "no",
|
|
7592
7610
|
"pagination": false,
|
|
7593
7611
|
"pathParams": [
|
|
7594
7612
|
{
|
|
7595
|
-
"name": "
|
|
7596
|
-
"sdkName": "
|
|
7613
|
+
"name": "namespace",
|
|
7614
|
+
"sdkName": "namespace",
|
|
7597
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."
|
|
7598
7616
|
},
|
|
7599
7617
|
{
|
|
@@ -7825,7 +7843,7 @@ export const operations = [
|
|
|
7825
7843
|
"resource": "browser.connect",
|
|
7826
7844
|
"method": "retrieve",
|
|
7827
7845
|
"summary": "连接云端浏览器",
|
|
7828
|
-
"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。",
|
|
7829
7847
|
"http": "GET",
|
|
7830
7848
|
"path": "/browser/v1/connect",
|
|
7831
7849
|
"streaming": "no",
|
|
@@ -7950,6 +7968,12 @@ export const operations = [
|
|
|
7950
7968
|
"type": "object",
|
|
7951
7969
|
"required": false,
|
|
7952
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。"
|
|
7953
7977
|
}
|
|
7954
7978
|
]
|
|
7955
7979
|
}
|
|
@@ -8021,6 +8045,12 @@ export const operations = [
|
|
|
8021
8045
|
"type": "object",
|
|
8022
8046
|
"required": false,
|
|
8023
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 解除绑定,省略则保留原绑定。"
|
|
8024
8054
|
}
|
|
8025
8055
|
]
|
|
8026
8056
|
}
|
|
@@ -8029,7 +8059,7 @@ export const operations = [
|
|
|
8029
8059
|
"resource": "browser.live",
|
|
8030
8060
|
"method": "retrieve",
|
|
8031
8061
|
"summary": "打开实时浏览器画面",
|
|
8032
|
-
"description": "
|
|
8062
|
+
"description": "旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。",
|
|
8033
8063
|
"http": "GET",
|
|
8034
8064
|
"path": "/browser/v1/live/{sessionId}/{pageId}",
|
|
8035
8065
|
"streaming": "no",
|
|
@@ -8127,7 +8157,7 @@ export const operations = [
|
|
|
8127
8157
|
"resource": "browser.sessions",
|
|
8128
8158
|
"method": "create",
|
|
8129
8159
|
"summary": "创建浏览器会话",
|
|
8130
|
-
"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
|
|
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 也不豁免;该事件记录判据读数。",
|
|
8131
8161
|
"http": "POST",
|
|
8132
8162
|
"path": "/browser/v1/sessions",
|
|
8133
8163
|
"streaming": "no",
|
|
@@ -8175,13 +8205,13 @@ export const operations = [
|
|
|
8175
8205
|
"name": "proxies",
|
|
8176
8206
|
"type": "object",
|
|
8177
8207
|
"required": false,
|
|
8178
|
-
"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),不必每次会话重复传。"
|
|
8179
8209
|
},
|
|
8180
8210
|
{
|
|
8181
8211
|
"name": "source",
|
|
8182
8212
|
"type": "object",
|
|
8183
8213
|
"required": false,
|
|
8184
|
-
"description": "
|
|
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。"
|
|
8185
8215
|
},
|
|
8186
8216
|
{
|
|
8187
8217
|
"name": "region",
|
|
@@ -8277,7 +8307,7 @@ export const operations = [
|
|
|
8277
8307
|
"resource": "browser.sessions.actions",
|
|
8278
8308
|
"method": "create",
|
|
8279
8309
|
"summary": "执行页面动作",
|
|
8280
|
-
"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 命令。",
|
|
8281
8311
|
"http": "POST",
|
|
8282
8312
|
"path": "/browser/v1/sessions/{sessionId}/actions",
|
|
8283
8313
|
"streaming": "no",
|
|
@@ -8818,6 +8848,41 @@ export const operations = [
|
|
|
8818
8848
|
}
|
|
8819
8849
|
]
|
|
8820
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
|
+
},
|
|
8821
8886
|
{
|
|
8822
8887
|
"resource": "canvas.canvases.versions",
|
|
8823
8888
|
"method": "list",
|
|
@@ -11107,7 +11172,7 @@ export const operations = [
|
|
|
11107
11172
|
"resource": "customer.accessTokens",
|
|
11108
11173
|
"method": "create",
|
|
11109
11174
|
"summary": "Exchange a grant code or publishable key",
|
|
11110
|
-
"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.",
|
|
11111
11176
|
"http": "POST",
|
|
11112
11177
|
"path": "/customer/v1/access_tokens",
|
|
11113
11178
|
"streaming": "no",
|
|
@@ -11150,7 +11215,7 @@ export const operations = [
|
|
|
11150
11215
|
"resource": "customer.accessTokens",
|
|
11151
11216
|
"method": "revoke",
|
|
11152
11217
|
"summary": "Sign out the current token",
|
|
11153
|
-
"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.",
|
|
11154
11219
|
"http": "DELETE",
|
|
11155
11220
|
"path": "/customer/v1/access_tokens/current",
|
|
11156
11221
|
"streaming": "no",
|
|
@@ -11162,7 +11227,7 @@ export const operations = [
|
|
|
11162
11227
|
"resource": "customer.accessTokens",
|
|
11163
11228
|
"method": "renew",
|
|
11164
11229
|
"summary": "Renew an access token",
|
|
11165
|
-
"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.",
|
|
11166
11231
|
"http": "POST",
|
|
11167
11232
|
"path": "/customer/v1/access_tokens/renew",
|
|
11168
11233
|
"streaming": "no",
|
|
@@ -11174,7 +11239,7 @@ export const operations = [
|
|
|
11174
11239
|
"resource": "customer.customers",
|
|
11175
11240
|
"method": "list",
|
|
11176
11241
|
"summary": "List end users",
|
|
11177
|
-
"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.",
|
|
11178
11243
|
"http": "GET",
|
|
11179
11244
|
"path": "/customer/v1/customers",
|
|
11180
11245
|
"streaming": "no",
|
|
@@ -11227,7 +11292,7 @@ export const operations = [
|
|
|
11227
11292
|
"resource": "customer.customers",
|
|
11228
11293
|
"method": "delete",
|
|
11229
11294
|
"summary": "Delete an end user",
|
|
11230
|
-
"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.",
|
|
11231
11296
|
"http": "DELETE",
|
|
11232
11297
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11233
11298
|
"streaming": "no",
|
|
@@ -11252,7 +11317,7 @@ export const operations = [
|
|
|
11252
11317
|
"resource": "customer.customers",
|
|
11253
11318
|
"method": "retrieve",
|
|
11254
11319
|
"summary": "Get an end user",
|
|
11255
|
-
"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.",
|
|
11256
11321
|
"http": "GET",
|
|
11257
11322
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11258
11323
|
"streaming": "no",
|
|
@@ -11277,7 +11342,7 @@ export const operations = [
|
|
|
11277
11342
|
"resource": "customer.customers",
|
|
11278
11343
|
"method": "block",
|
|
11279
11344
|
"summary": "Block an end user",
|
|
11280
|
-
"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.",
|
|
11281
11346
|
"http": "POST",
|
|
11282
11347
|
"path": "/customer/v1/customers/{customer_id}/block",
|
|
11283
11348
|
"streaming": "no",
|
|
@@ -11306,7 +11371,7 @@ export const operations = [
|
|
|
11306
11371
|
"resource": "customer.customers",
|
|
11307
11372
|
"method": "revokeTokens",
|
|
11308
11373
|
"summary": "Revoke every token of an end user",
|
|
11309
|
-
"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.",
|
|
11310
11375
|
"http": "POST",
|
|
11311
11376
|
"path": "/customer/v1/customers/{customer_id}/revoke_tokens",
|
|
11312
11377
|
"streaming": "no",
|
|
@@ -11324,7 +11389,7 @@ export const operations = [
|
|
|
11324
11389
|
"resource": "customer.customers",
|
|
11325
11390
|
"method": "unblock",
|
|
11326
11391
|
"summary": "Unblock an end user",
|
|
11327
|
-
"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.",
|
|
11328
11393
|
"http": "POST",
|
|
11329
11394
|
"path": "/customer/v1/customers/{customer_id}/unblock",
|
|
11330
11395
|
"streaming": "no",
|
|
@@ -11342,7 +11407,7 @@ export const operations = [
|
|
|
11342
11407
|
"resource": "customer.usage",
|
|
11343
11408
|
"method": "retrieve",
|
|
11344
11409
|
"summary": "Read end-user usage",
|
|
11345
|
-
"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.",
|
|
11346
11411
|
"http": "GET",
|
|
11347
11412
|
"path": "/customer/v1/customers/{customer_id}/usage",
|
|
11348
11413
|
"streaming": "no",
|
|
@@ -11373,7 +11438,7 @@ export const operations = [
|
|
|
11373
11438
|
"resource": "customer.grantCodes",
|
|
11374
11439
|
"method": "create",
|
|
11375
11440
|
"summary": "Create a grant code",
|
|
11376
|
-
"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.",
|
|
11377
11442
|
"http": "POST",
|
|
11378
11443
|
"path": "/customer/v1/grant_codes",
|
|
11379
11444
|
"streaming": "no",
|
|
@@ -11439,7 +11504,7 @@ export const operations = [
|
|
|
11439
11504
|
"resource": "customer.publishableKeys",
|
|
11440
11505
|
"method": "list",
|
|
11441
11506
|
"summary": "List publishable keys",
|
|
11442
|
-
"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.",
|
|
11443
11508
|
"http": "GET",
|
|
11444
11509
|
"path": "/customer/v1/publishable_keys",
|
|
11445
11510
|
"streaming": "no",
|
|
@@ -11464,7 +11529,7 @@ export const operations = [
|
|
|
11464
11529
|
"resource": "customer.publishableKeys",
|
|
11465
11530
|
"method": "create",
|
|
11466
11531
|
"summary": "Create a publishable key",
|
|
11467
|
-
"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.",
|
|
11468
11533
|
"http": "POST",
|
|
11469
11534
|
"path": "/customer/v1/publishable_keys",
|
|
11470
11535
|
"streaming": "no",
|
|
@@ -11512,7 +11577,7 @@ export const operations = [
|
|
|
11512
11577
|
"resource": "customer.publishableKeys",
|
|
11513
11578
|
"method": "delete",
|
|
11514
11579
|
"summary": "Delete a publishable key",
|
|
11515
|
-
"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.",
|
|
11516
11581
|
"http": "DELETE",
|
|
11517
11582
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11518
11583
|
"streaming": "no",
|
|
@@ -11530,7 +11595,7 @@ export const operations = [
|
|
|
11530
11595
|
"resource": "customer.publishableKeys",
|
|
11531
11596
|
"method": "update",
|
|
11532
11597
|
"summary": "Update a publishable key",
|
|
11533
|
-
"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.",
|
|
11534
11599
|
"http": "PATCH",
|
|
11535
11600
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11536
11601
|
"streaming": "no",
|
|
@@ -11962,7 +12027,7 @@ export const operations = [
|
|
|
11962
12027
|
"resource": "cut.projects.exports",
|
|
11963
12028
|
"method": "create",
|
|
11964
12029
|
"summary": "Create video export",
|
|
11965
|
-
"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.",
|
|
11966
12031
|
"http": "POST",
|
|
11967
12032
|
"path": "/cut/v1/projects/{project_id}/exports",
|
|
11968
12033
|
"streaming": "no",
|
|
@@ -12000,7 +12065,7 @@ export const operations = [
|
|
|
12000
12065
|
"name": "binding",
|
|
12001
12066
|
"type": "string",
|
|
12002
12067
|
"required": false,
|
|
12003
|
-
"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."
|
|
12004
12069
|
},
|
|
12005
12070
|
{
|
|
12006
12071
|
"name": "revision",
|
|
@@ -18189,6 +18254,60 @@ export const operations = [
|
|
|
18189
18254
|
]
|
|
18190
18255
|
}
|
|
18191
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
|
+
},
|
|
18192
18311
|
{
|
|
18193
18312
|
"resource": "devops.pullRequests",
|
|
18194
18313
|
"method": "recordVerdict",
|
|
@@ -18244,7 +18363,7 @@ export const operations = [
|
|
|
18244
18363
|
"resource": "devops.pullRequests",
|
|
18245
18364
|
"method": "rerunGate",
|
|
18246
18365
|
"summary": "Decide a pull request's merge gate again",
|
|
18247
|
-
"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.",
|
|
18248
18367
|
"http": "POST",
|
|
18249
18368
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
18250
18369
|
"streaming": "no",
|
|
@@ -18827,7 +18946,7 @@ export const operations = [
|
|
|
18827
18946
|
"resource": "devops.units",
|
|
18828
18947
|
"method": "push",
|
|
18829
18948
|
"summary": "Push a unit's branch",
|
|
18830
|
-
"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.",
|
|
18831
18950
|
"http": "POST",
|
|
18832
18951
|
"path": "/devops/v1/units/{id}:push",
|
|
18833
18952
|
"streaming": "no",
|
|
@@ -18895,16 +19014,602 @@ export const operations = [
|
|
|
18895
19014
|
"query": []
|
|
18896
19015
|
},
|
|
18897
19016
|
{
|
|
18898
|
-
"resource": "
|
|
18899
|
-
"method": "
|
|
18900
|
-
"summary": "
|
|
18901
|
-
"description": "
|
|
18902
|
-
"http": "
|
|
18903
|
-
"path": "/
|
|
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",
|
|
18904
19023
|
"streaming": "no",
|
|
18905
19024
|
"pagination": false,
|
|
18906
19025
|
"pathParams": [],
|
|
18907
|
-
"query": [
|
|
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
|
+
},
|
|
19602
|
+
{
|
|
19603
|
+
"resource": "file.files",
|
|
19604
|
+
"method": "list",
|
|
19605
|
+
"summary": "List files",
|
|
19606
|
+
"description": "List live files owned by your tenant, optionally filtered by purpose, session scope_id or up to 100 file ids. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.",
|
|
19607
|
+
"http": "GET",
|
|
19608
|
+
"path": "/file/v1/files",
|
|
19609
|
+
"streaming": "no",
|
|
19610
|
+
"pagination": false,
|
|
19611
|
+
"pathParams": [],
|
|
19612
|
+
"query": [
|
|
18908
19613
|
{
|
|
18909
19614
|
"name": "purpose",
|
|
18910
19615
|
"type": "string",
|
|
@@ -21162,6 +21867,42 @@ export const operations = [
|
|
|
21162
21867
|
],
|
|
21163
21868
|
"query": []
|
|
21164
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
|
+
},
|
|
21165
21906
|
{
|
|
21166
21907
|
"resource": "media.libraries.assets",
|
|
21167
21908
|
"method": "batch",
|
|
@@ -22323,48 +23064,227 @@ export const operations = [
|
|
|
22323
23064
|
"description": "Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
|
|
22324
23065
|
},
|
|
22325
23066
|
{
|
|
22326
|
-
"name": "tier",
|
|
23067
|
+
"name": "tier",
|
|
23068
|
+
"type": "string",
|
|
23069
|
+
"enum": [
|
|
23070
|
+
"economy",
|
|
23071
|
+
"balanced",
|
|
23072
|
+
"quality"
|
|
23073
|
+
],
|
|
23074
|
+
"required": false,
|
|
23075
|
+
"description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
|
|
23076
|
+
},
|
|
23077
|
+
{
|
|
23078
|
+
"name": "asset_folder",
|
|
23079
|
+
"type": "string",
|
|
23080
|
+
"required": false,
|
|
23081
|
+
"description": "Folder the produced asset is filed under; when omitted it is 生成/YYYY-MM-DD, the UTC date the job was created. Send an empty string to file it in the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
23082
|
+
},
|
|
23083
|
+
{
|
|
23084
|
+
"name": "understanding",
|
|
23085
|
+
"type": "string",
|
|
23086
|
+
"enum": [
|
|
23087
|
+
"auto",
|
|
23088
|
+
"skip"
|
|
23089
|
+
],
|
|
23090
|
+
"required": false,
|
|
23091
|
+
"description": "Understanding behavior for the produced asset; defaults to auto."
|
|
23092
|
+
},
|
|
23093
|
+
{
|
|
23094
|
+
"name": "idempotency_key",
|
|
23095
|
+
"type": "string",
|
|
23096
|
+
"required": false,
|
|
23097
|
+
"description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
|
|
23098
|
+
}
|
|
23099
|
+
]
|
|
23100
|
+
}
|
|
23101
|
+
},
|
|
23102
|
+
{
|
|
23103
|
+
"resource": "media.libraries.voices",
|
|
23104
|
+
"method": "create",
|
|
23105
|
+
"summary": "Create voice",
|
|
23106
|
+
"description": "Create a voice for this library. Send exactly one of the two shapes: consent_id with samples (a real person’s recordings, a consented voice, cloned before it can speak) or design_asset_id (a preview the voice-design run produced in this library, a generated voice). A generated voice is not cloned: it is ready when the call answers, its job already completed, and it speaks only through the speech model recorded on it, so speech naming another model is refused with INVALID_PARAMS. Each preview builds at most one voice, and building one gives back the design’s other previews, which then cannot be used. Sending both shapes, or neither, is refused with INVALID_PARAMS, and origin is written by the platform only. Answers 202 with a job.",
|
|
23107
|
+
"http": "POST",
|
|
23108
|
+
"path": "/media/v1/libraries/{library_id}/voices",
|
|
23109
|
+
"streaming": "no",
|
|
23110
|
+
"pagination": false,
|
|
23111
|
+
"pathParams": [
|
|
23112
|
+
{
|
|
23113
|
+
"name": "library_id",
|
|
23114
|
+
"sdkName": "library_id",
|
|
23115
|
+
"description": "Library ID returned by creation."
|
|
23116
|
+
}
|
|
23117
|
+
],
|
|
23118
|
+
"query": [],
|
|
23119
|
+
"body": {
|
|
23120
|
+
"required": true,
|
|
23121
|
+
"fields": []
|
|
23122
|
+
}
|
|
23123
|
+
},
|
|
23124
|
+
{
|
|
23125
|
+
"resource": "media.libraries.voices.designs",
|
|
23126
|
+
"method": "create",
|
|
23127
|
+
"summary": "Design a voice",
|
|
23128
|
+
"description": "Design a voice from a text description. The model makes count preview recordings (default 3), each stored in this library as an audio asset; listen, then create a voice whose design_asset_id names the preview you chose. Send description (1 to 500 characters), preview_text (15 to 200 characters, the line each preview speaks), language (zh or en) and optionally count (1 to 3). A description that fails review fails the slot with CONTENT_REJECTED and is never retried, so changing the words is the fix. Answers 202 with a job to poll.",
|
|
23129
|
+
"http": "POST",
|
|
23130
|
+
"path": "/media/v1/libraries/{library_id}/voices/designs",
|
|
23131
|
+
"streaming": "no",
|
|
23132
|
+
"pagination": false,
|
|
23133
|
+
"pathParams": [
|
|
23134
|
+
{
|
|
23135
|
+
"name": "library_id",
|
|
23136
|
+
"sdkName": "library_id",
|
|
23137
|
+
"description": "Library ID returned by creation."
|
|
23138
|
+
}
|
|
23139
|
+
],
|
|
23140
|
+
"query": [],
|
|
23141
|
+
"body": {
|
|
23142
|
+
"required": true,
|
|
23143
|
+
"fields": [
|
|
23144
|
+
{
|
|
23145
|
+
"name": "description",
|
|
23146
|
+
"type": "string",
|
|
23147
|
+
"required": true,
|
|
23148
|
+
"description": "Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED."
|
|
23149
|
+
},
|
|
23150
|
+
{
|
|
23151
|
+
"name": "preview_text",
|
|
23152
|
+
"type": "string",
|
|
23153
|
+
"required": true,
|
|
23154
|
+
"description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
|
|
23155
|
+
},
|
|
23156
|
+
{
|
|
23157
|
+
"name": "language",
|
|
23158
|
+
"type": "string",
|
|
23159
|
+
"enum": [
|
|
23160
|
+
"zh",
|
|
23161
|
+
"en"
|
|
23162
|
+
],
|
|
23163
|
+
"required": true,
|
|
23164
|
+
"description": "Language the previews speak: zh or en only."
|
|
23165
|
+
},
|
|
23166
|
+
{
|
|
23167
|
+
"name": "count",
|
|
23168
|
+
"type": "number",
|
|
23169
|
+
"required": false,
|
|
23170
|
+
"description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
|
|
23171
|
+
}
|
|
23172
|
+
]
|
|
23173
|
+
}
|
|
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",
|
|
22327
23252
|
"type": "string",
|
|
22328
23253
|
"enum": [
|
|
22329
|
-
"
|
|
22330
|
-
"
|
|
22331
|
-
"
|
|
23254
|
+
"gallery",
|
|
23255
|
+
"article",
|
|
23256
|
+
"product_listing",
|
|
23257
|
+
"blocks"
|
|
22332
23258
|
],
|
|
22333
|
-
"required":
|
|
22334
|
-
"description": "
|
|
23259
|
+
"required": true,
|
|
23260
|
+
"description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
|
|
22335
23261
|
},
|
|
22336
23262
|
{
|
|
22337
|
-
"name": "
|
|
22338
|
-
"type": "
|
|
22339
|
-
"required":
|
|
22340
|
-
"description": "Folder the produced asset is filed under; when omitted it is 生成/YYYY-MM-DD, the UTC date the job was created. Send an empty string to file it in the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
23263
|
+
"name": "body",
|
|
23264
|
+
"type": "object",
|
|
23265
|
+
"required": true
|
|
22341
23266
|
},
|
|
22342
23267
|
{
|
|
22343
|
-
"name": "
|
|
23268
|
+
"name": "series",
|
|
22344
23269
|
"type": "string",
|
|
22345
|
-
"enum": [
|
|
22346
|
-
"auto",
|
|
22347
|
-
"skip"
|
|
22348
|
-
],
|
|
22349
23270
|
"required": false,
|
|
22350
|
-
"description": "
|
|
23271
|
+
"description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
|
|
22351
23272
|
},
|
|
22352
23273
|
{
|
|
22353
|
-
"name": "
|
|
22354
|
-
"type": "
|
|
22355
|
-
"required": false
|
|
22356
|
-
"description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
|
|
23274
|
+
"name": "custom",
|
|
23275
|
+
"type": "object",
|
|
23276
|
+
"required": false
|
|
22357
23277
|
}
|
|
22358
23278
|
]
|
|
22359
23279
|
}
|
|
22360
23280
|
},
|
|
22361
23281
|
{
|
|
22362
|
-
"resource": "media.libraries.
|
|
22363
|
-
"method": "
|
|
22364
|
-
"summary": "
|
|
22365
|
-
"description": "
|
|
22366
|
-
"http": "
|
|
22367
|
-
"path": "/media/v1/libraries/{library_id}/
|
|
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}",
|
|
22368
23288
|
"streaming": "no",
|
|
22369
23289
|
"pagination": false,
|
|
22370
23290
|
"pathParams": [
|
|
@@ -22372,21 +23292,52 @@ export const operations = [
|
|
|
22372
23292
|
"name": "library_id",
|
|
22373
23293
|
"sdkName": "library_id",
|
|
22374
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."
|
|
22375
23300
|
}
|
|
22376
23301
|
],
|
|
22377
|
-
"query": []
|
|
22378
|
-
"body": {
|
|
22379
|
-
"required": true,
|
|
22380
|
-
"fields": []
|
|
22381
|
-
}
|
|
23302
|
+
"query": []
|
|
22382
23303
|
},
|
|
22383
23304
|
{
|
|
22384
|
-
"resource": "media.libraries.
|
|
22385
|
-
"method": "
|
|
22386
|
-
"summary": "
|
|
22387
|
-
"description": "
|
|
22388
|
-
"http": "
|
|
22389
|
-
"path": "/media/v1/libraries/{library_id}/
|
|
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}",
|
|
22390
23341
|
"streaming": "no",
|
|
22391
23342
|
"pagination": false,
|
|
22392
23343
|
"pathParams": [
|
|
@@ -22394,6 +23345,11 @@ export const operations = [
|
|
|
22394
23345
|
"name": "library_id",
|
|
22395
23346
|
"sdkName": "library_id",
|
|
22396
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."
|
|
22397
23353
|
}
|
|
22398
23354
|
],
|
|
22399
23355
|
"query": [],
|
|
@@ -22401,32 +23357,26 @@ export const operations = [
|
|
|
22401
23357
|
"required": true,
|
|
22402
23358
|
"fields": [
|
|
22403
23359
|
{
|
|
22404
|
-
"name": "
|
|
22405
|
-
"type": "
|
|
22406
|
-
"required":
|
|
22407
|
-
"description": "Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED."
|
|
23360
|
+
"name": "body",
|
|
23361
|
+
"type": "object",
|
|
23362
|
+
"required": false
|
|
22408
23363
|
},
|
|
22409
23364
|
{
|
|
22410
|
-
"name": "
|
|
23365
|
+
"name": "series",
|
|
22411
23366
|
"type": "string",
|
|
22412
|
-
"required":
|
|
22413
|
-
"description": "
|
|
23367
|
+
"required": false,
|
|
23368
|
+
"description": "A new series, or null to clear it."
|
|
22414
23369
|
},
|
|
22415
23370
|
{
|
|
22416
|
-
"name": "
|
|
22417
|
-
"type": "
|
|
22418
|
-
"
|
|
22419
|
-
"zh",
|
|
22420
|
-
"en"
|
|
22421
|
-
],
|
|
22422
|
-
"required": true,
|
|
22423
|
-
"description": "Language the previews speak: zh or en only."
|
|
23371
|
+
"name": "custom",
|
|
23372
|
+
"type": "object",
|
|
23373
|
+
"required": false
|
|
22424
23374
|
},
|
|
22425
23375
|
{
|
|
22426
|
-
"name": "
|
|
23376
|
+
"name": "if_revision",
|
|
22427
23377
|
"type": "number",
|
|
22428
23378
|
"required": false,
|
|
22429
|
-
"description": "
|
|
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."
|
|
22430
23380
|
}
|
|
22431
23381
|
]
|
|
22432
23382
|
}
|
|
@@ -23159,7 +24109,7 @@ export const operations = [
|
|
|
23159
24109
|
"resource": "model.audio.speech",
|
|
23160
24110
|
"method": "create",
|
|
23161
24111
|
"summary": "Generate speech",
|
|
23162
|
-
"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\"}.",
|
|
23163
24113
|
"http": "POST",
|
|
23164
24114
|
"path": "/model/v1/audio/speech",
|
|
23165
24115
|
"streaming": "no",
|
|
@@ -23173,19 +24123,19 @@ export const operations = [
|
|
|
23173
24123
|
"name": "model",
|
|
23174
24124
|
"type": "string",
|
|
23175
24125
|
"required": true,
|
|
23176
|
-
"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."
|
|
23177
24127
|
},
|
|
23178
24128
|
{
|
|
23179
24129
|
"name": "input",
|
|
23180
24130
|
"type": "string",
|
|
23181
24131
|
"required": false,
|
|
23182
|
-
"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."
|
|
23183
24133
|
},
|
|
23184
24134
|
{
|
|
23185
24135
|
"name": "voice",
|
|
23186
24136
|
"type": "object",
|
|
23187
24137
|
"required": false,
|
|
23188
|
-
"description": "Aura speaker name; custom voice objects are rejected by Aura.
|
|
24138
|
+
"description": "Aura speaker name; custom voice objects are rejected by Aura."
|
|
23189
24139
|
},
|
|
23190
24140
|
{
|
|
23191
24141
|
"name": "instructions",
|
|
@@ -23204,7 +24154,7 @@ export const operations = [
|
|
|
23204
24154
|
"pcm"
|
|
23205
24155
|
],
|
|
23206
24156
|
"required": false,
|
|
23207
|
-
"description": "
|
|
24157
|
+
"description": "When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400."
|
|
23208
24158
|
},
|
|
23209
24159
|
{
|
|
23210
24160
|
"name": "speed",
|
|
@@ -23231,7 +24181,7 @@ export const operations = [
|
|
|
23231
24181
|
"name": "prompt",
|
|
23232
24182
|
"type": "string",
|
|
23233
24183
|
"required": false,
|
|
23234
|
-
"description": "
|
|
24184
|
+
"description": "Alias for input; input then text take precedence."
|
|
23235
24185
|
},
|
|
23236
24186
|
{
|
|
23237
24187
|
"name": "speaker",
|
|
@@ -23251,7 +24201,7 @@ export const operations = [
|
|
|
23251
24201
|
"ko"
|
|
23252
24202
|
],
|
|
23253
24203
|
"required": false,
|
|
23254
|
-
"description": "
|
|
24204
|
+
"description": "Language code. No speech model currently offered reads it. Aura rejects lang with 400 input_not_representable so omit it."
|
|
23255
24205
|
},
|
|
23256
24206
|
{
|
|
23257
24207
|
"name": "encoding",
|
|
@@ -26066,7 +27016,7 @@ export const operations = [
|
|
|
26066
27016
|
"resource": "organization.costs",
|
|
26067
27017
|
"method": "list",
|
|
26068
27018
|
"summary": "List Organization Costs",
|
|
26069
|
-
"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",
|
|
26070
27020
|
"http": "GET",
|
|
26071
27021
|
"path": "/organization/v1/costs",
|
|
26072
27022
|
"streaming": "no",
|
|
@@ -26099,7 +27049,7 @@ export const operations = [
|
|
|
26099
27049
|
"name": "time_zone",
|
|
26100
27050
|
"type": "string",
|
|
26101
27051
|
"required": false,
|
|
26102
|
-
"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"
|
|
26103
27053
|
},
|
|
26104
27054
|
{
|
|
26105
27055
|
"name": "group_by",
|
|
@@ -26109,10 +27059,14 @@ export const operations = [
|
|
|
26109
27059
|
"ServiceName",
|
|
26110
27060
|
"ServiceCategory",
|
|
26111
27061
|
"ResourceId",
|
|
26112
|
-
"ConsumedUnit"
|
|
27062
|
+
"ConsumedUnit",
|
|
27063
|
+
"SessionId",
|
|
27064
|
+
"AgentId",
|
|
27065
|
+
"ApiKeyId",
|
|
27066
|
+
"RunId"
|
|
26113
27067
|
],
|
|
26114
27068
|
"required": false,
|
|
26115
|
-
"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"
|
|
26116
27070
|
},
|
|
26117
27071
|
{
|
|
26118
27072
|
"name": "page",
|
|
@@ -26465,29 +27419,46 @@ export const operations = [
|
|
|
26465
27419
|
{
|
|
26466
27420
|
"resource": "organization.notifications.letters",
|
|
26467
27421
|
"method": "list",
|
|
26468
|
-
"summary": "List the letters addressed to you",
|
|
26469
|
-
"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.",
|
|
26470
27424
|
"http": "GET",
|
|
26471
27425
|
"path": "/organization/v1/notifications/letters",
|
|
26472
27426
|
"streaming": "no",
|
|
26473
27427
|
"pagination": false,
|
|
26474
27428
|
"pathParams": [],
|
|
26475
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
|
+
},
|
|
26476
27440
|
{
|
|
26477
27441
|
"name": "status",
|
|
26478
27442
|
"type": "string",
|
|
26479
27443
|
"enum": [
|
|
26480
27444
|
"unread",
|
|
26481
|
-
"read"
|
|
27445
|
+
"read",
|
|
27446
|
+
"scheduled"
|
|
26482
27447
|
],
|
|
26483
27448
|
"required": false,
|
|
26484
|
-
"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."
|
|
26485
27456
|
},
|
|
26486
27457
|
{
|
|
26487
27458
|
"name": "archived",
|
|
26488
27459
|
"type": "boolean",
|
|
26489
27460
|
"required": false,
|
|
26490
|
-
"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."
|
|
26491
27462
|
},
|
|
26492
27463
|
{
|
|
26493
27464
|
"name": "limit",
|
|
@@ -26503,6 +27474,64 @@ export const operations = [
|
|
|
26503
27474
|
}
|
|
26504
27475
|
]
|
|
26505
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
|
+
},
|
|
26506
27535
|
{
|
|
26507
27536
|
"resource": "organization.notifications.letters",
|
|
26508
27537
|
"method": "retrieve",
|
|
@@ -26577,7 +27606,8 @@ export const operations = [
|
|
|
26577
27606
|
"enum": [
|
|
26578
27607
|
"notice",
|
|
26579
27608
|
"mention",
|
|
26580
|
-
"decision"
|
|
27609
|
+
"decision",
|
|
27610
|
+
"event"
|
|
26581
27611
|
],
|
|
26582
27612
|
"required": false,
|
|
26583
27613
|
"description": "Only letters of this kind; omit for all kinds."
|
|
@@ -26585,6 +27615,124 @@ export const operations = [
|
|
|
26585
27615
|
]
|
|
26586
27616
|
}
|
|
26587
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
|
+
},
|
|
26588
27736
|
{
|
|
26589
27737
|
"resource": "organization.notifications",
|
|
26590
27738
|
"method": "retrieveOrganizationDefault",
|
|
@@ -26696,7 +27844,7 @@ export const operations = [
|
|
|
26696
27844
|
"resource": "organization.usage",
|
|
26697
27845
|
"method": "list",
|
|
26698
27846
|
"summary": "List Organization Usage",
|
|
26699
|
-
"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",
|
|
26700
27848
|
"http": "GET",
|
|
26701
27849
|
"path": "/organization/v1/usage",
|
|
26702
27850
|
"streaming": "no",
|
|
@@ -26729,7 +27877,7 @@ export const operations = [
|
|
|
26729
27877
|
"name": "time_zone",
|
|
26730
27878
|
"type": "string",
|
|
26731
27879
|
"required": false,
|
|
26732
|
-
"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"
|
|
26733
27881
|
},
|
|
26734
27882
|
{
|
|
26735
27883
|
"name": "group_by",
|
|
@@ -26739,10 +27887,14 @@ export const operations = [
|
|
|
26739
27887
|
"ServiceName",
|
|
26740
27888
|
"ServiceCategory",
|
|
26741
27889
|
"ResourceId",
|
|
26742
|
-
"ConsumedUnit"
|
|
27890
|
+
"ConsumedUnit",
|
|
27891
|
+
"SessionId",
|
|
27892
|
+
"AgentId",
|
|
27893
|
+
"ApiKeyId",
|
|
27894
|
+
"RunId"
|
|
26743
27895
|
],
|
|
26744
27896
|
"required": false,
|
|
26745
|
-
"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"
|
|
26746
27898
|
},
|
|
26747
27899
|
{
|
|
26748
27900
|
"name": "page",
|
|
@@ -27767,6 +28919,24 @@ export const operations = [
|
|
|
27767
28919
|
]
|
|
27768
28920
|
}
|
|
27769
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
|
+
},
|
|
27770
28940
|
{
|
|
27771
28941
|
"resource": "sandbox.events.sandboxes",
|
|
27772
28942
|
"method": "retrieve",
|