@deepraxis/sdk 0.2.0-dev.9bf33e2 → 0.2.0-dev.aa49a60
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 +174 -73
- package/README.md +1 -1
- package/dist/automation.d.ts +683 -64
- package/dist/core/bindings.d.ts +13 -0
- package/dist/core/bindings.js +17 -0
- package/dist/core/client.js +1 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +312 -57
- package/dist/generated/sdk.gen.js +826 -302
- package/dist/generated/types.gen.d.ts +5131 -1549
- 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 +1692 -430
- package/dist/resources.generated.d.ts +884 -81
- package/dist/resources.generated.js +229 -85
- package/package.json +1 -1
|
@@ -723,7 +723,7 @@ export const operations = [
|
|
|
723
723
|
"resource": "agent.agents.customers",
|
|
724
724
|
"method": "retrieveDeletion",
|
|
725
725
|
"summary": "Get customer deletion",
|
|
726
|
-
"description": "Poll the latest deletion task of a customer, including after its data has been removed.\n\nUse the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token
|
|
726
|
+
"description": "Poll the latest deletion task of a customer, including after its data has been removed.\n\nUse the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token returns 404, as does a missing task (404 END_USER_DELETION_NOT_FOUND). Outside develop the endpoint answers 404 NOT_FOUND with \"End-user deletion unavailable\".",
|
|
727
727
|
"http": "GET",
|
|
728
728
|
"path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion",
|
|
729
729
|
"streaming": "no",
|
|
@@ -2998,7 +2998,7 @@ export const operations = [
|
|
|
2998
2998
|
"resource": "agent.sessions",
|
|
2999
2999
|
"method": "retrievePromptRevs",
|
|
3000
3000
|
"summary": "Read one turn's platform prompt Revs",
|
|
3001
|
-
"description": "Read back which platform prompt inputs one turn ran on, from the session's own ledger.\n\nThe answer carries the configuration revision the turn pinned, that revision's version number, one 8-hex content Rev per platform input and when the record was taken. The platform inputs are ONE map keyed by each input's own name — `section:<name>` for a prompt section, plus `catalog` and `tools` — because catalog and tools are ordinary entries of that map, not layers of their own. Revs are content hashes: no prompt text, no tool description and no catalog content is ever in the answer, so the body can be compared across turns and releases without exposing what it names.\n\nWith `run_id` you read that run's own record; without it you read the LAST record written. The last record is rewritten when the Rev set moves, not once per turn, so it may be several turns older than this call — which is why the answer's `run_id` is null in that case rather than naming a turn the record does not belong to, and why `at` is there: it is how you see how old the answer is. `at` never takes part in a comparison.\n\n**This read constructs the session object once.** A Durable Object cannot be read without being entered, so the call runs the object's startup, which may settle an interrupted turn; `acknowledge_wake=true` is required for exactly that reason, and the answer reports `reaped_turns` — how many interrupted turns this call's own arrival settled, `0` when it settled none. Only a value above 0 is evidence about this call. The read writes no row and does not refresh the eviction ordering key of the session's cached context parts.\n\n**What this method does not tell you:** whether the object was a new instance or a rebuilt first probe. That distinction is not in the contract yet; when `agent.sessions.tablesInfo`'s contract face carries `start_phase`, the two read methods move to it together. Do not infer it from this answer.\n\nA run that was never recorded, or a session that has recorded nothing yet, answers 404 with `reason: unknown_run`; a session that is absent or unreadable answers 404 with `
|
|
3001
|
+
"description": "Read back which platform prompt inputs one turn ran on, from the session's own ledger.\n\nThe answer carries the configuration revision the turn pinned, that revision's version number, one 8-hex content Rev per platform input and when the record was taken. The platform inputs are ONE map keyed by each input's own name — `section:<name>` for a prompt section, plus `catalog` and `tools` — because catalog and tools are ordinary entries of that map, not layers of their own. Revs are content hashes: no prompt text, no tool description and no catalog content is ever in the answer, so the body can be compared across turns and releases without exposing what it names.\n\nWith `run_id` you read that run's own record; without it you read the LAST record written. The last record is rewritten when the Rev set moves, not once per turn, so it may be several turns older than this call — which is why the answer's `run_id` is null in that case rather than naming a turn the record does not belong to, and why `at` is there: it is how you see how old the answer is. `at` never takes part in a comparison.\n\n**This read constructs the session object once.** A Durable Object cannot be read without being entered, so the call runs the object's startup, which may settle an interrupted turn; `acknowledge_wake=true` is required for exactly that reason, and the answer reports `reaped_turns` — how many interrupted turns this call's own arrival settled, `0` when it settled none. Only a value above 0 is evidence about this call. The read writes no row and does not refresh the eviction ordering key of the session's cached context parts.\n\n**What this method does not tell you:** whether the object was a new instance or a rebuilt first probe. That distinction is not in the contract yet; when `agent.sessions.tablesInfo`'s contract face carries `start_phase`, the two read methods move to it together. Do not infer it from this answer.\n\nA run that was never recorded, or a session that has recorded nothing yet, answers 404 with `reason: unknown_run`; a session that is absent or unreadable answers 404 in the one /agent/v1 error body with `error.code = SESSION_NOT_FOUND`, as every other session door does. Neither 404 body carries a record field — not even `run_id: null` — because \"no record\" and \"an empty record\" must not look the same. Own face only: the compatible face's vocabulary is the vendor's.",
|
|
3002
3002
|
"http": "GET",
|
|
3003
3003
|
"path": "/agent/v1/sessions/{session_id}/prompt-revs",
|
|
3004
3004
|
"streaming": "no",
|
|
@@ -4238,6 +4238,206 @@ export const operations = [
|
|
|
4238
4238
|
],
|
|
4239
4239
|
"query": []
|
|
4240
4240
|
},
|
|
4241
|
+
{
|
|
4242
|
+
"resource": "application.workers.logs",
|
|
4243
|
+
"method": "keys",
|
|
4244
|
+
"summary": "List log fields",
|
|
4245
|
+
"description": "List the fields present in this application's request logs (key, type, last seen), to build filters for logs:query or values for logs:values. Scoped to this application exactly like logs:query. Cloudflare's telemetry keys body and answer, unchanged.",
|
|
4246
|
+
"http": "POST",
|
|
4247
|
+
"path": "/application/v1/workers/{worker_id}/logs:keys",
|
|
4248
|
+
"streaming": "no",
|
|
4249
|
+
"pagination": false,
|
|
4250
|
+
"pathParams": [
|
|
4251
|
+
{
|
|
4252
|
+
"name": "worker_id",
|
|
4253
|
+
"sdkName": "worker_id",
|
|
4254
|
+
"description": "Worker ID (wkr_…)."
|
|
4255
|
+
}
|
|
4256
|
+
],
|
|
4257
|
+
"query": [],
|
|
4258
|
+
"body": {
|
|
4259
|
+
"required": true,
|
|
4260
|
+
"fields": [
|
|
4261
|
+
{
|
|
4262
|
+
"name": "filters",
|
|
4263
|
+
"type": "array",
|
|
4264
|
+
"itemType": "object",
|
|
4265
|
+
"required": false,
|
|
4266
|
+
"description": "Cloudflare filters, narrowed by the server to this Worker; filters on $metadata.service, $workers.scriptName or dataset are dropped."
|
|
4267
|
+
},
|
|
4268
|
+
{
|
|
4269
|
+
"name": "from",
|
|
4270
|
+
"type": "integer",
|
|
4271
|
+
"required": false,
|
|
4272
|
+
"description": "Window start, epoch milliseconds."
|
|
4273
|
+
},
|
|
4274
|
+
{
|
|
4275
|
+
"name": "to",
|
|
4276
|
+
"type": "integer",
|
|
4277
|
+
"required": false,
|
|
4278
|
+
"description": "Window end, epoch milliseconds."
|
|
4279
|
+
},
|
|
4280
|
+
{
|
|
4281
|
+
"name": "limit",
|
|
4282
|
+
"type": "integer",
|
|
4283
|
+
"required": false,
|
|
4284
|
+
"description": "Maximum keys; values above 2000 are clamped."
|
|
4285
|
+
},
|
|
4286
|
+
{
|
|
4287
|
+
"name": "needle",
|
|
4288
|
+
"type": "object",
|
|
4289
|
+
"required": false,
|
|
4290
|
+
"description": "Full-text search across events; Cloudflare's shape."
|
|
4291
|
+
}
|
|
4292
|
+
]
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
"resource": "application.workers.logs",
|
|
4297
|
+
"method": "query",
|
|
4298
|
+
"summary": "Query Worker logs",
|
|
4299
|
+
"description": "Read this application's request logs for a time window: individual log lines (view events) or aggregates (calculations), with Cloudflare's filters, group-bys and pagination. The body is Cloudflare's Workers Observability query body and the answer its result, field for field, so examples from Cloudflare's documentation work as they are. The server scopes every read to this application: it adds the application's script name as a filter, forces the dataset to cloudflare-workers and drops any caller filter on the script or dataset, so one application never reads another's logs. Logs are kept 7 days and start once the next deployment runs with observability on (on by default). Use logs:keys and logs:values to discover the fields to filter on, and the Worker's events (ListEvents) for lifecycle rather than request logs.",
|
|
4300
|
+
"http": "POST",
|
|
4301
|
+
"path": "/application/v1/workers/{worker_id}/logs:query",
|
|
4302
|
+
"streaming": "no",
|
|
4303
|
+
"pagination": false,
|
|
4304
|
+
"pathParams": [
|
|
4305
|
+
{
|
|
4306
|
+
"name": "worker_id",
|
|
4307
|
+
"sdkName": "worker_id",
|
|
4308
|
+
"description": "Worker ID (wkr_…)."
|
|
4309
|
+
}
|
|
4310
|
+
],
|
|
4311
|
+
"query": [],
|
|
4312
|
+
"body": {
|
|
4313
|
+
"required": true,
|
|
4314
|
+
"fields": [
|
|
4315
|
+
{
|
|
4316
|
+
"name": "timeframe",
|
|
4317
|
+
"type": "object",
|
|
4318
|
+
"required": true,
|
|
4319
|
+
"description": "The window to read; required, at most 7 days (the retention), from earlier than to."
|
|
4320
|
+
},
|
|
4321
|
+
{
|
|
4322
|
+
"name": "view",
|
|
4323
|
+
"type": "string",
|
|
4324
|
+
"enum": [
|
|
4325
|
+
"events",
|
|
4326
|
+
"calculations"
|
|
4327
|
+
],
|
|
4328
|
+
"required": false,
|
|
4329
|
+
"description": "What the query returns: events (individual log lines, the default) or calculations (aggregates)."
|
|
4330
|
+
},
|
|
4331
|
+
{
|
|
4332
|
+
"name": "limit",
|
|
4333
|
+
"type": "integer",
|
|
4334
|
+
"required": false,
|
|
4335
|
+
"description": "Events per page (or group-by rows for calculations); values above 2000 are clamped to 2000."
|
|
4336
|
+
},
|
|
4337
|
+
{
|
|
4338
|
+
"name": "offset",
|
|
4339
|
+
"type": "string",
|
|
4340
|
+
"required": false,
|
|
4341
|
+
"description": "Cursor to the next page: the $metadata.id of the last event of the previous page."
|
|
4342
|
+
},
|
|
4343
|
+
{
|
|
4344
|
+
"name": "compare",
|
|
4345
|
+
"type": "boolean",
|
|
4346
|
+
"required": false,
|
|
4347
|
+
"description": "Include a comparison dataset from the previous window of equal length."
|
|
4348
|
+
},
|
|
4349
|
+
{
|
|
4350
|
+
"name": "dry",
|
|
4351
|
+
"type": "boolean",
|
|
4352
|
+
"required": false,
|
|
4353
|
+
"description": "Validate and run without persisting the query."
|
|
4354
|
+
},
|
|
4355
|
+
{
|
|
4356
|
+
"name": "granularity",
|
|
4357
|
+
"type": "integer",
|
|
4358
|
+
"required": false,
|
|
4359
|
+
"description": "Number of time-series buckets for calculations; omitting lets Cloudflare decide."
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
"name": "chart",
|
|
4363
|
+
"type": "boolean",
|
|
4364
|
+
"required": false,
|
|
4365
|
+
"description": "Include time-series data in the response."
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
"name": "parameters",
|
|
4369
|
+
"type": "object",
|
|
4370
|
+
"required": false,
|
|
4371
|
+
"description": "Cloudflare's parameters object, passed through: filters, filterCombination, calculations, groupBys, havings, orderBy, needle and datasets are Cloudflare's own fields. The server forces datasets to cloudflare-workers, adds the Worker's script as a filter, forces filterCombination to and, and drops any caller filter on $metadata.service, $workers.scriptName or dataset, so a query can never read another application's events."
|
|
4372
|
+
}
|
|
4373
|
+
]
|
|
4374
|
+
}
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
"resource": "application.workers.logs",
|
|
4378
|
+
"method": "values",
|
|
4379
|
+
"summary": "List log field values",
|
|
4380
|
+
"description": "List the distinct values a field takes in this application's request logs within a window, to build filters whose values actually match (for example the levels that occur). Scoped to this application exactly like logs:query. Cloudflare's telemetry values body and answer, unchanged.",
|
|
4381
|
+
"http": "POST",
|
|
4382
|
+
"path": "/application/v1/workers/{worker_id}/logs:values",
|
|
4383
|
+
"streaming": "no",
|
|
4384
|
+
"pagination": false,
|
|
4385
|
+
"pathParams": [
|
|
4386
|
+
{
|
|
4387
|
+
"name": "worker_id",
|
|
4388
|
+
"sdkName": "worker_id",
|
|
4389
|
+
"description": "Worker ID (wkr_…)."
|
|
4390
|
+
}
|
|
4391
|
+
],
|
|
4392
|
+
"query": [],
|
|
4393
|
+
"body": {
|
|
4394
|
+
"required": true,
|
|
4395
|
+
"fields": [
|
|
4396
|
+
{
|
|
4397
|
+
"name": "key",
|
|
4398
|
+
"type": "string",
|
|
4399
|
+
"required": true,
|
|
4400
|
+
"description": "The field whose values to list, e.g. $metadata.level; discover fields with logs:keys."
|
|
4401
|
+
},
|
|
4402
|
+
{
|
|
4403
|
+
"name": "type",
|
|
4404
|
+
"type": "string",
|
|
4405
|
+
"enum": [
|
|
4406
|
+
"string",
|
|
4407
|
+
"number",
|
|
4408
|
+
"boolean"
|
|
4409
|
+
],
|
|
4410
|
+
"required": true,
|
|
4411
|
+
"description": "Type of the field, as keys reports it."
|
|
4412
|
+
},
|
|
4413
|
+
{
|
|
4414
|
+
"name": "timeframe",
|
|
4415
|
+
"type": "object",
|
|
4416
|
+
"required": true,
|
|
4417
|
+
"description": "The window to read; required, at most 7 days."
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
"name": "filters",
|
|
4421
|
+
"type": "array",
|
|
4422
|
+
"itemType": "object",
|
|
4423
|
+
"required": false,
|
|
4424
|
+
"description": "Cloudflare filters, narrowed by the server to this Worker; filters on $metadata.service, $workers.scriptName or dataset are dropped."
|
|
4425
|
+
},
|
|
4426
|
+
{
|
|
4427
|
+
"name": "limit",
|
|
4428
|
+
"type": "integer",
|
|
4429
|
+
"required": false,
|
|
4430
|
+
"description": "Maximum values; values above 2000 are clamped."
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
"name": "needle",
|
|
4434
|
+
"type": "object",
|
|
4435
|
+
"required": false,
|
|
4436
|
+
"description": "Full-text search across events; Cloudflare's shape."
|
|
4437
|
+
}
|
|
4438
|
+
]
|
|
4439
|
+
}
|
|
4440
|
+
},
|
|
4241
4441
|
{
|
|
4242
4442
|
"resource": "application.workers",
|
|
4243
4443
|
"method": "restore",
|
|
@@ -4663,13 +4863,13 @@ export const operations = [
|
|
|
4663
4863
|
"summary": "Get an Action with its current input and output JSON Schemas",
|
|
4664
4864
|
"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.",
|
|
4665
4865
|
"http": "GET",
|
|
4666
|
-
"path": "/automation/v1/actions/{
|
|
4866
|
+
"path": "/automation/v1/actions/{namespace}/{name}",
|
|
4667
4867
|
"streaming": "no",
|
|
4668
4868
|
"pagination": false,
|
|
4669
4869
|
"pathParams": [
|
|
4670
4870
|
{
|
|
4671
|
-
"name": "
|
|
4672
|
-
"sdkName": "
|
|
4871
|
+
"name": "namespace",
|
|
4872
|
+
"sdkName": "namespace",
|
|
4673
4873
|
"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."
|
|
4674
4874
|
},
|
|
4675
4875
|
{
|
|
@@ -4686,13 +4886,13 @@ export const operations = [
|
|
|
4686
4886
|
"summary": "Update an action",
|
|
4687
4887
|
"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.",
|
|
4688
4888
|
"http": "PUT",
|
|
4689
|
-
"path": "/automation/v1/actions/{
|
|
4889
|
+
"path": "/automation/v1/actions/{namespace}/{name}",
|
|
4690
4890
|
"streaming": "no",
|
|
4691
4891
|
"pagination": false,
|
|
4692
4892
|
"pathParams": [
|
|
4693
4893
|
{
|
|
4694
|
-
"name": "
|
|
4695
|
-
"sdkName": "
|
|
4894
|
+
"name": "namespace",
|
|
4895
|
+
"sdkName": "namespace",
|
|
4696
4896
|
"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."
|
|
4697
4897
|
},
|
|
4698
4898
|
{
|
|
@@ -4784,13 +4984,13 @@ export const operations = [
|
|
|
4784
4984
|
"summary": "Archive an action",
|
|
4785
4985
|
"description": "Archive the action while retaining its name and history, hiding it from the default list. The response includes dependents_count.",
|
|
4786
4986
|
"http": "POST",
|
|
4787
|
-
"path": "/automation/v1/actions/{
|
|
4987
|
+
"path": "/automation/v1/actions/{namespace}/{name}/archive",
|
|
4788
4988
|
"streaming": "no",
|
|
4789
4989
|
"pagination": false,
|
|
4790
4990
|
"pathParams": [
|
|
4791
4991
|
{
|
|
4792
|
-
"name": "
|
|
4793
|
-
"sdkName": "
|
|
4992
|
+
"name": "namespace",
|
|
4993
|
+
"sdkName": "namespace",
|
|
4794
4994
|
"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."
|
|
4795
4995
|
},
|
|
4796
4996
|
{
|
|
@@ -4811,13 +5011,13 @@ export const operations = [
|
|
|
4811
5011
|
"summary": "List action dependents",
|
|
4812
5012
|
"description": "List orchestrations referencing this action. The search covers scripts and workflows in their drafts or latest versions.",
|
|
4813
5013
|
"http": "GET",
|
|
4814
|
-
"path": "/automation/v1/actions/{
|
|
5014
|
+
"path": "/automation/v1/actions/{namespace}/{name}/dependents",
|
|
4815
5015
|
"streaming": "no",
|
|
4816
5016
|
"pagination": true,
|
|
4817
5017
|
"pathParams": [
|
|
4818
5018
|
{
|
|
4819
|
-
"name": "
|
|
4820
|
-
"sdkName": "
|
|
5019
|
+
"name": "namespace",
|
|
5020
|
+
"sdkName": "namespace",
|
|
4821
5021
|
"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."
|
|
4822
5022
|
},
|
|
4823
5023
|
{
|
|
@@ -4847,13 +5047,13 @@ export const operations = [
|
|
|
4847
5047
|
"summary": "List action invocations",
|
|
4848
5048
|
"description": "List this action’s invocations, filtering by status, revision, calling definition and time. Results identify the run and call site.",
|
|
4849
5049
|
"http": "GET",
|
|
4850
|
-
"path": "/automation/v1/actions/{
|
|
5050
|
+
"path": "/automation/v1/actions/{namespace}/{name}/invocations",
|
|
4851
5051
|
"streaming": "no",
|
|
4852
5052
|
"pagination": true,
|
|
4853
5053
|
"pathParams": [
|
|
4854
5054
|
{
|
|
4855
|
-
"name": "
|
|
4856
|
-
"sdkName": "
|
|
5055
|
+
"name": "namespace",
|
|
5056
|
+
"sdkName": "namespace",
|
|
4857
5057
|
"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."
|
|
4858
5058
|
},
|
|
4859
5059
|
{
|
|
@@ -4924,13 +5124,13 @@ export const operations = [
|
|
|
4924
5124
|
"summary": "Restore an action",
|
|
4925
5125
|
"description": "Restore an archived action to the default list. Its current revision is preserved.",
|
|
4926
5126
|
"http": "POST",
|
|
4927
|
-
"path": "/automation/v1/actions/{
|
|
5127
|
+
"path": "/automation/v1/actions/{namespace}/{name}/restore",
|
|
4928
5128
|
"streaming": "no",
|
|
4929
5129
|
"pagination": false,
|
|
4930
5130
|
"pathParams": [
|
|
4931
5131
|
{
|
|
4932
|
-
"name": "
|
|
4933
|
-
"sdkName": "
|
|
5132
|
+
"name": "namespace",
|
|
5133
|
+
"sdkName": "namespace",
|
|
4934
5134
|
"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."
|
|
4935
5135
|
},
|
|
4936
5136
|
{
|
|
@@ -4951,13 +5151,13 @@ export const operations = [
|
|
|
4951
5151
|
"summary": "List action revisions",
|
|
4952
5152
|
"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.",
|
|
4953
5153
|
"http": "GET",
|
|
4954
|
-
"path": "/automation/v1/actions/{
|
|
5154
|
+
"path": "/automation/v1/actions/{namespace}/{name}/revisions",
|
|
4955
5155
|
"streaming": "no",
|
|
4956
5156
|
"pagination": true,
|
|
4957
5157
|
"pathParams": [
|
|
4958
5158
|
{
|
|
4959
|
-
"name": "
|
|
4960
|
-
"sdkName": "
|
|
5159
|
+
"name": "namespace",
|
|
5160
|
+
"sdkName": "namespace",
|
|
4961
5161
|
"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."
|
|
4962
5162
|
},
|
|
4963
5163
|
{
|
|
@@ -4996,13 +5196,13 @@ export const operations = [
|
|
|
4996
5196
|
"summary": "Get an action revision",
|
|
4997
5197
|
"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.",
|
|
4998
5198
|
"http": "GET",
|
|
4999
|
-
"path": "/automation/v1/actions/{
|
|
5199
|
+
"path": "/automation/v1/actions/{namespace}/{name}/revisions/{revision}",
|
|
5000
5200
|
"streaming": "no",
|
|
5001
5201
|
"pagination": false,
|
|
5002
5202
|
"pathParams": [
|
|
5003
5203
|
{
|
|
5004
|
-
"name": "
|
|
5005
|
-
"sdkName": "
|
|
5204
|
+
"name": "namespace",
|
|
5205
|
+
"sdkName": "namespace",
|
|
5006
5206
|
"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."
|
|
5007
5207
|
},
|
|
5008
5208
|
{
|
|
@@ -5024,13 +5224,13 @@ export const operations = [
|
|
|
5024
5224
|
"summary": "Roll back an action",
|
|
5025
5225
|
"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.",
|
|
5026
5226
|
"http": "POST",
|
|
5027
|
-
"path": "/automation/v1/actions/{
|
|
5227
|
+
"path": "/automation/v1/actions/{namespace}/{name}/rollback",
|
|
5028
5228
|
"streaming": "no",
|
|
5029
5229
|
"pagination": false,
|
|
5030
5230
|
"pathParams": [
|
|
5031
5231
|
{
|
|
5032
|
-
"name": "
|
|
5033
|
-
"sdkName": "
|
|
5232
|
+
"name": "namespace",
|
|
5233
|
+
"sdkName": "namespace",
|
|
5034
5234
|
"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."
|
|
5035
5235
|
},
|
|
5036
5236
|
{
|
|
@@ -5070,7 +5270,7 @@ export const operations = [
|
|
|
5070
5270
|
"resource": "automation.hooks",
|
|
5071
5271
|
"method": "send",
|
|
5072
5272
|
"summary": "Receive a webhook",
|
|
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/{
|
|
5273
|
+
"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.",
|
|
5074
5274
|
"http": "POST",
|
|
5075
5275
|
"path": "/automation/v1/hooks/{trigger_id}/{token}",
|
|
5076
5276
|
"streaming": "no",
|
|
@@ -5161,13 +5361,13 @@ export const operations = [
|
|
|
5161
5361
|
"summary": "Retrieve a human task",
|
|
5162
5362
|
"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.",
|
|
5163
5363
|
"http": "GET",
|
|
5164
|
-
"path": "/automation/v1/human-tasks/{
|
|
5364
|
+
"path": "/automation/v1/human-tasks/{task_id}",
|
|
5165
5365
|
"streaming": "no",
|
|
5166
5366
|
"pagination": false,
|
|
5167
5367
|
"pathParams": [
|
|
5168
5368
|
{
|
|
5169
|
-
"name": "
|
|
5170
|
-
"sdkName": "
|
|
5369
|
+
"name": "task_id",
|
|
5370
|
+
"sdkName": "task_id",
|
|
5171
5371
|
"description": "Human task ID (htask_), from the list or the run's waits."
|
|
5172
5372
|
}
|
|
5173
5373
|
],
|
|
@@ -5179,13 +5379,13 @@ export const operations = [
|
|
|
5179
5379
|
"summary": "Cancel a human task",
|
|
5180
5380
|
"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.",
|
|
5181
5381
|
"http": "POST",
|
|
5182
|
-
"path": "/automation/v1/human-tasks/{
|
|
5382
|
+
"path": "/automation/v1/human-tasks/{task_id}/cancel",
|
|
5183
5383
|
"streaming": "no",
|
|
5184
5384
|
"pagination": false,
|
|
5185
5385
|
"pathParams": [
|
|
5186
5386
|
{
|
|
5187
|
-
"name": "
|
|
5188
|
-
"sdkName": "
|
|
5387
|
+
"name": "task_id",
|
|
5388
|
+
"sdkName": "task_id",
|
|
5189
5389
|
"description": "Human task ID (htask_)."
|
|
5190
5390
|
}
|
|
5191
5391
|
],
|
|
@@ -5208,13 +5408,13 @@ export const operations = [
|
|
|
5208
5408
|
"summary": "Delegate a human task",
|
|
5209
5409
|
"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.",
|
|
5210
5410
|
"http": "POST",
|
|
5211
|
-
"path": "/automation/v1/human-tasks/{
|
|
5411
|
+
"path": "/automation/v1/human-tasks/{task_id}/delegate",
|
|
5212
5412
|
"streaming": "no",
|
|
5213
5413
|
"pagination": false,
|
|
5214
5414
|
"pathParams": [
|
|
5215
5415
|
{
|
|
5216
|
-
"name": "
|
|
5217
|
-
"sdkName": "
|
|
5416
|
+
"name": "task_id",
|
|
5417
|
+
"sdkName": "task_id",
|
|
5218
5418
|
"description": "Human task ID (htask_)."
|
|
5219
5419
|
}
|
|
5220
5420
|
],
|
|
@@ -5237,13 +5437,13 @@ export const operations = [
|
|
|
5237
5437
|
"summary": "Respond to a human task",
|
|
5238
5438
|
"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.",
|
|
5239
5439
|
"http": "POST",
|
|
5240
|
-
"path": "/automation/v1/human-tasks/{
|
|
5440
|
+
"path": "/automation/v1/human-tasks/{task_id}/respond",
|
|
5241
5441
|
"streaming": "no",
|
|
5242
5442
|
"pagination": false,
|
|
5243
5443
|
"pathParams": [
|
|
5244
5444
|
{
|
|
5245
|
-
"name": "
|
|
5246
|
-
"sdkName": "
|
|
5445
|
+
"name": "task_id",
|
|
5446
|
+
"sdkName": "task_id",
|
|
5247
5447
|
"description": "Human task ID (htask_)."
|
|
5248
5448
|
}
|
|
5249
5449
|
],
|
|
@@ -5380,7 +5580,7 @@ export const operations = [
|
|
|
5380
5580
|
"trigger"
|
|
5381
5581
|
],
|
|
5382
5582
|
"required": false,
|
|
5383
|
-
"description": "Root initiator type: user, api_key, agent or
|
|
5583
|
+
"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."
|
|
5384
5584
|
},
|
|
5385
5585
|
{
|
|
5386
5586
|
"name": "initiator",
|
|
@@ -5470,13 +5670,13 @@ export const operations = [
|
|
|
5470
5670
|
"summary": "Get a run",
|
|
5471
5671
|
"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.",
|
|
5472
5672
|
"http": "GET",
|
|
5473
|
-
"path": "/automation/v1/runs/{
|
|
5673
|
+
"path": "/automation/v1/runs/{run_id}",
|
|
5474
5674
|
"streaming": "no",
|
|
5475
5675
|
"pagination": false,
|
|
5476
5676
|
"pathParams": [
|
|
5477
5677
|
{
|
|
5478
|
-
"name": "
|
|
5479
|
-
"sdkName": "
|
|
5678
|
+
"name": "run_id",
|
|
5679
|
+
"sdkName": "run_id",
|
|
5480
5680
|
"description": "Run ID (run_)."
|
|
5481
5681
|
}
|
|
5482
5682
|
],
|
|
@@ -5509,13 +5709,13 @@ export const operations = [
|
|
|
5509
5709
|
"summary": "List run artifacts",
|
|
5510
5710
|
"description": "Read run artifacts and their file references. Entries follow ledger order and include content types, sizes and associated steps.",
|
|
5511
5711
|
"http": "GET",
|
|
5512
|
-
"path": "/automation/v1/runs/{
|
|
5712
|
+
"path": "/automation/v1/runs/{run_id}/artifacts",
|
|
5513
5713
|
"streaming": "no",
|
|
5514
5714
|
"pagination": true,
|
|
5515
5715
|
"pathParams": [
|
|
5516
5716
|
{
|
|
5517
|
-
"name": "
|
|
5518
|
-
"sdkName": "
|
|
5717
|
+
"name": "run_id",
|
|
5718
|
+
"sdkName": "run_id",
|
|
5519
5719
|
"description": "Run ID (run_)."
|
|
5520
5720
|
}
|
|
5521
5721
|
],
|
|
@@ -5540,13 +5740,13 @@ export const operations = [
|
|
|
5540
5740
|
"summary": "List run calls",
|
|
5541
5741
|
"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.",
|
|
5542
5742
|
"http": "GET",
|
|
5543
|
-
"path": "/automation/v1/runs/{
|
|
5743
|
+
"path": "/automation/v1/runs/{run_id}/calls",
|
|
5544
5744
|
"streaming": "no",
|
|
5545
5745
|
"pagination": true,
|
|
5546
5746
|
"pathParams": [
|
|
5547
5747
|
{
|
|
5548
|
-
"name": "
|
|
5549
|
-
"sdkName": "
|
|
5748
|
+
"name": "run_id",
|
|
5749
|
+
"sdkName": "run_id",
|
|
5550
5750
|
"description": "Run ID (run_)."
|
|
5551
5751
|
}
|
|
5552
5752
|
],
|
|
@@ -5571,13 +5771,13 @@ export const operations = [
|
|
|
5571
5771
|
"summary": "Cancel a run",
|
|
5572
5772
|
"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.",
|
|
5573
5773
|
"http": "POST",
|
|
5574
|
-
"path": "/automation/v1/runs/{
|
|
5774
|
+
"path": "/automation/v1/runs/{run_id}/cancel",
|
|
5575
5775
|
"streaming": "no",
|
|
5576
5776
|
"pagination": false,
|
|
5577
5777
|
"pathParams": [
|
|
5578
5778
|
{
|
|
5579
|
-
"name": "
|
|
5580
|
-
"sdkName": "
|
|
5779
|
+
"name": "run_id",
|
|
5780
|
+
"sdkName": "run_id",
|
|
5581
5781
|
"description": "Run ID (run_)."
|
|
5582
5782
|
}
|
|
5583
5783
|
],
|
|
@@ -5600,13 +5800,13 @@ export const operations = [
|
|
|
5600
5800
|
"summary": "Read run events",
|
|
5601
5801
|
"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.",
|
|
5602
5802
|
"http": "GET",
|
|
5603
|
-
"path": "/automation/v1/runs/{
|
|
5803
|
+
"path": "/automation/v1/runs/{run_id}/events",
|
|
5604
5804
|
"streaming": "always",
|
|
5605
5805
|
"pagination": false,
|
|
5606
5806
|
"pathParams": [
|
|
5607
5807
|
{
|
|
5608
|
-
"name": "
|
|
5609
|
-
"sdkName": "
|
|
5808
|
+
"name": "run_id",
|
|
5809
|
+
"sdkName": "run_id",
|
|
5610
5810
|
"description": "Run ID (run_)."
|
|
5611
5811
|
}
|
|
5612
5812
|
],
|
|
@@ -5639,13 +5839,13 @@ export const operations = [
|
|
|
5639
5839
|
"summary": "Read run logs",
|
|
5640
5840
|
"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.",
|
|
5641
5841
|
"http": "GET",
|
|
5642
|
-
"path": "/automation/v1/runs/{
|
|
5842
|
+
"path": "/automation/v1/runs/{run_id}/logs",
|
|
5643
5843
|
"streaming": "always",
|
|
5644
5844
|
"pagination": false,
|
|
5645
5845
|
"pathParams": [
|
|
5646
5846
|
{
|
|
5647
|
-
"name": "
|
|
5648
|
-
"sdkName": "
|
|
5847
|
+
"name": "run_id",
|
|
5848
|
+
"sdkName": "run_id",
|
|
5649
5849
|
"description": "Run ID (run_)."
|
|
5650
5850
|
}
|
|
5651
5851
|
],
|
|
@@ -5678,13 +5878,13 @@ export const operations = [
|
|
|
5678
5878
|
"summary": "Rerun a run",
|
|
5679
5879
|
"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.",
|
|
5680
5880
|
"http": "POST",
|
|
5681
|
-
"path": "/automation/v1/runs/{
|
|
5881
|
+
"path": "/automation/v1/runs/{run_id}/rerun",
|
|
5682
5882
|
"streaming": "no",
|
|
5683
5883
|
"pagination": false,
|
|
5684
5884
|
"pathParams": [
|
|
5685
5885
|
{
|
|
5686
|
-
"name": "
|
|
5687
|
-
"sdkName": "
|
|
5886
|
+
"name": "run_id",
|
|
5887
|
+
"sdkName": "run_id",
|
|
5688
5888
|
"description": "Run ID (run_)."
|
|
5689
5889
|
}
|
|
5690
5890
|
],
|
|
@@ -5707,13 +5907,13 @@ export const operations = [
|
|
|
5707
5907
|
"summary": "Resume a run",
|
|
5708
5908
|
"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.",
|
|
5709
5909
|
"http": "POST",
|
|
5710
|
-
"path": "/automation/v1/runs/{
|
|
5910
|
+
"path": "/automation/v1/runs/{run_id}/resume",
|
|
5711
5911
|
"streaming": "no",
|
|
5712
5912
|
"pagination": false,
|
|
5713
5913
|
"pathParams": [
|
|
5714
5914
|
{
|
|
5715
|
-
"name": "
|
|
5716
|
-
"sdkName": "
|
|
5915
|
+
"name": "run_id",
|
|
5916
|
+
"sdkName": "run_id",
|
|
5717
5917
|
"description": "Run ID (run_)."
|
|
5718
5918
|
}
|
|
5719
5919
|
],
|
|
@@ -5729,13 +5929,13 @@ export const operations = [
|
|
|
5729
5929
|
"summary": "Get run source",
|
|
5730
5930
|
"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.",
|
|
5731
5931
|
"http": "GET",
|
|
5732
|
-
"path": "/automation/v1/runs/{
|
|
5932
|
+
"path": "/automation/v1/runs/{run_id}/source",
|
|
5733
5933
|
"streaming": "no",
|
|
5734
5934
|
"pagination": false,
|
|
5735
5935
|
"pathParams": [
|
|
5736
5936
|
{
|
|
5737
|
-
"name": "
|
|
5738
|
-
"sdkName": "
|
|
5937
|
+
"name": "run_id",
|
|
5938
|
+
"sdkName": "run_id",
|
|
5739
5939
|
"description": "Run ID (run_)."
|
|
5740
5940
|
}
|
|
5741
5941
|
],
|
|
@@ -5747,13 +5947,13 @@ export const operations = [
|
|
|
5747
5947
|
"summary": "Suspend a run",
|
|
5748
5948
|
"description": "Suspend only a running or waiting workflow. Scripts return OPERATION_NOT_SUPPORTED; other states return RUN_INVALID_STATE.",
|
|
5749
5949
|
"http": "POST",
|
|
5750
|
-
"path": "/automation/v1/runs/{
|
|
5950
|
+
"path": "/automation/v1/runs/{run_id}/suspend",
|
|
5751
5951
|
"streaming": "no",
|
|
5752
5952
|
"pagination": false,
|
|
5753
5953
|
"pathParams": [
|
|
5754
5954
|
{
|
|
5755
|
-
"name": "
|
|
5756
|
-
"sdkName": "
|
|
5955
|
+
"name": "run_id",
|
|
5956
|
+
"sdkName": "run_id",
|
|
5757
5957
|
"description": "Run ID (run_)."
|
|
5758
5958
|
}
|
|
5759
5959
|
],
|
|
@@ -5769,13 +5969,13 @@ export const operations = [
|
|
|
5769
5969
|
"summary": "List run tasks",
|
|
5770
5970
|
"description": "Page through the task ledger. include=planned adds unexecuted top-level steps; group_by=reference aggregates count, status and duration by task reference.",
|
|
5771
5971
|
"http": "GET",
|
|
5772
|
-
"path": "/automation/v1/runs/{
|
|
5972
|
+
"path": "/automation/v1/runs/{run_id}/tasks",
|
|
5773
5973
|
"streaming": "no",
|
|
5774
5974
|
"pagination": true,
|
|
5775
5975
|
"pathParams": [
|
|
5776
5976
|
{
|
|
5777
|
-
"name": "
|
|
5778
|
-
"sdkName": "
|
|
5977
|
+
"name": "run_id",
|
|
5978
|
+
"sdkName": "run_id",
|
|
5779
5979
|
"description": "Run ID (run_)."
|
|
5780
5980
|
}
|
|
5781
5981
|
],
|
|
@@ -5818,13 +6018,13 @@ export const operations = [
|
|
|
5818
6018
|
"summary": "List run waits",
|
|
5819
6019
|
"description": "List current and historical waits in ledger order. Wait types include event, timer and child.",
|
|
5820
6020
|
"http": "GET",
|
|
5821
|
-
"path": "/automation/v1/runs/{
|
|
6021
|
+
"path": "/automation/v1/runs/{run_id}/waits",
|
|
5822
6022
|
"streaming": "no",
|
|
5823
6023
|
"pagination": true,
|
|
5824
6024
|
"pathParams": [
|
|
5825
6025
|
{
|
|
5826
|
-
"name": "
|
|
5827
|
-
"sdkName": "
|
|
6026
|
+
"name": "run_id",
|
|
6027
|
+
"sdkName": "run_id",
|
|
5828
6028
|
"description": "Run ID (run_)."
|
|
5829
6029
|
}
|
|
5830
6030
|
],
|
|
@@ -5849,13 +6049,13 @@ export const operations = [
|
|
|
5849
6049
|
"summary": "Complete a run wait",
|
|
5850
6050
|
"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.",
|
|
5851
6051
|
"http": "POST",
|
|
5852
|
-
"path": "/automation/v1/runs/{
|
|
6052
|
+
"path": "/automation/v1/runs/{run_id}/waits/{wait_id}/complete",
|
|
5853
6053
|
"streaming": "no",
|
|
5854
6054
|
"pagination": false,
|
|
5855
6055
|
"pathParams": [
|
|
5856
6056
|
{
|
|
5857
|
-
"name": "
|
|
5858
|
-
"sdkName": "
|
|
6057
|
+
"name": "run_id",
|
|
6058
|
+
"sdkName": "run_id",
|
|
5859
6059
|
"description": "Run ID (run_)."
|
|
5860
6060
|
},
|
|
5861
6061
|
{
|
|
@@ -5960,7 +6160,7 @@ export const operations = [
|
|
|
5960
6160
|
"resource": "automation.scripts",
|
|
5961
6161
|
"method": "create",
|
|
5962
6162
|
"summary": "Create a script",
|
|
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,
|
|
6163
|
+
"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.",
|
|
5964
6164
|
"http": "POST",
|
|
5965
6165
|
"path": "/automation/v1/scripts",
|
|
5966
6166
|
"streaming": "no",
|
|
@@ -5990,9 +6190,9 @@ export const operations = [
|
|
|
5990
6190
|
},
|
|
5991
6191
|
{
|
|
5992
6192
|
"name": "draft",
|
|
5993
|
-
"type": "
|
|
6193
|
+
"type": "object",
|
|
5994
6194
|
"required": false,
|
|
5995
|
-
"description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
|
|
6195
|
+
"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 }."
|
|
5996
6196
|
},
|
|
5997
6197
|
{
|
|
5998
6198
|
"name": "labels",
|
|
@@ -6007,15 +6207,15 @@ export const operations = [
|
|
|
6007
6207
|
"resource": "automation.scripts",
|
|
6008
6208
|
"method": "retrieve",
|
|
6009
6209
|
"summary": "Get a script",
|
|
6010
|
-
"description": "Read script details and draft source. The
|
|
6210
|
+
"description": "Read script details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
|
|
6011
6211
|
"http": "GET",
|
|
6012
|
-
"path": "/automation/v1/scripts/{
|
|
6212
|
+
"path": "/automation/v1/scripts/{namespace}/{name}",
|
|
6013
6213
|
"streaming": "no",
|
|
6014
6214
|
"pagination": false,
|
|
6015
6215
|
"pathParams": [
|
|
6016
6216
|
{
|
|
6017
|
-
"name": "
|
|
6018
|
-
"sdkName": "
|
|
6217
|
+
"name": "namespace",
|
|
6218
|
+
"sdkName": "namespace",
|
|
6019
6219
|
"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."
|
|
6020
6220
|
},
|
|
6021
6221
|
{
|
|
@@ -6030,15 +6230,15 @@ export const operations = [
|
|
|
6030
6230
|
"resource": "automation.scripts",
|
|
6031
6231
|
"method": "update",
|
|
6032
6232
|
"summary": "Update a script draft",
|
|
6033
|
-
"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.",
|
|
6233
|
+
"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.",
|
|
6034
6234
|
"http": "PATCH",
|
|
6035
|
-
"path": "/automation/v1/scripts/{
|
|
6235
|
+
"path": "/automation/v1/scripts/{namespace}/{name}",
|
|
6036
6236
|
"streaming": "no",
|
|
6037
6237
|
"pagination": false,
|
|
6038
6238
|
"pathParams": [
|
|
6039
6239
|
{
|
|
6040
|
-
"name": "
|
|
6041
|
-
"sdkName": "
|
|
6240
|
+
"name": "namespace",
|
|
6241
|
+
"sdkName": "namespace",
|
|
6042
6242
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
6043
6243
|
},
|
|
6044
6244
|
{
|
|
@@ -6052,8 +6252,8 @@ export const operations = [
|
|
|
6052
6252
|
{
|
|
6053
6253
|
"name": "If-Match",
|
|
6054
6254
|
"type": "string",
|
|
6055
|
-
"required":
|
|
6056
|
-
"description": "
|
|
6255
|
+
"required": false,
|
|
6256
|
+
"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."
|
|
6057
6257
|
}
|
|
6058
6258
|
],
|
|
6059
6259
|
"body": {
|
|
@@ -6073,9 +6273,9 @@ export const operations = [
|
|
|
6073
6273
|
},
|
|
6074
6274
|
{
|
|
6075
6275
|
"name": "draft",
|
|
6076
|
-
"type": "
|
|
6276
|
+
"type": "object",
|
|
6077
6277
|
"required": false,
|
|
6078
|
-
"description": "
|
|
6278
|
+
"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."
|
|
6079
6279
|
}
|
|
6080
6280
|
]
|
|
6081
6281
|
}
|
|
@@ -6086,13 +6286,13 @@ export const operations = [
|
|
|
6086
6286
|
"summary": "Archive a script",
|
|
6087
6287
|
"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.",
|
|
6088
6288
|
"http": "POST",
|
|
6089
|
-
"path": "/automation/v1/scripts/{
|
|
6289
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/archive",
|
|
6090
6290
|
"streaming": "no",
|
|
6091
6291
|
"pagination": false,
|
|
6092
6292
|
"pathParams": [
|
|
6093
6293
|
{
|
|
6094
|
-
"name": "
|
|
6095
|
-
"sdkName": "
|
|
6294
|
+
"name": "namespace",
|
|
6295
|
+
"sdkName": "namespace",
|
|
6096
6296
|
"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."
|
|
6097
6297
|
},
|
|
6098
6298
|
{
|
|
@@ -6113,13 +6313,13 @@ export const operations = [
|
|
|
6113
6313
|
"summary": "List script tags",
|
|
6114
6314
|
"description": "Read the exact version for each distribution tag. Results include the update time and updater.",
|
|
6115
6315
|
"http": "GET",
|
|
6116
|
-
"path": "/automation/v1/scripts/{
|
|
6316
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags",
|
|
6117
6317
|
"streaming": "no",
|
|
6118
6318
|
"pagination": false,
|
|
6119
6319
|
"pathParams": [
|
|
6120
6320
|
{
|
|
6121
|
-
"name": "
|
|
6122
|
-
"sdkName": "
|
|
6321
|
+
"name": "namespace",
|
|
6322
|
+
"sdkName": "namespace",
|
|
6123
6323
|
"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."
|
|
6124
6324
|
},
|
|
6125
6325
|
{
|
|
@@ -6136,13 +6336,13 @@ export const operations = [
|
|
|
6136
6336
|
"summary": "Delete a script tag",
|
|
6137
6337
|
"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.",
|
|
6138
6338
|
"http": "DELETE",
|
|
6139
|
-
"path": "/automation/v1/scripts/{
|
|
6339
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
|
|
6140
6340
|
"streaming": "no",
|
|
6141
6341
|
"pagination": false,
|
|
6142
6342
|
"pathParams": [
|
|
6143
6343
|
{
|
|
6144
|
-
"name": "
|
|
6145
|
-
"sdkName": "
|
|
6344
|
+
"name": "namespace",
|
|
6345
|
+
"sdkName": "namespace",
|
|
6146
6346
|
"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."
|
|
6147
6347
|
},
|
|
6148
6348
|
{
|
|
@@ -6164,13 +6364,13 @@ export const operations = [
|
|
|
6164
6364
|
"summary": "Set a script tag",
|
|
6165
6365
|
"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.",
|
|
6166
6366
|
"http": "PUT",
|
|
6167
|
-
"path": "/automation/v1/scripts/{
|
|
6367
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
|
|
6168
6368
|
"streaming": "no",
|
|
6169
6369
|
"pagination": false,
|
|
6170
6370
|
"pathParams": [
|
|
6171
6371
|
{
|
|
6172
|
-
"name": "
|
|
6173
|
-
"sdkName": "
|
|
6372
|
+
"name": "namespace",
|
|
6373
|
+
"sdkName": "namespace",
|
|
6174
6374
|
"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."
|
|
6175
6375
|
},
|
|
6176
6376
|
{
|
|
@@ -6203,13 +6403,13 @@ export const operations = [
|
|
|
6203
6403
|
"summary": "Restore a script",
|
|
6204
6404
|
"description": "Restore an archived definition with its versions and tags. The name is retained.",
|
|
6205
6405
|
"http": "POST",
|
|
6206
|
-
"path": "/automation/v1/scripts/{
|
|
6406
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/restore",
|
|
6207
6407
|
"streaming": "no",
|
|
6208
6408
|
"pagination": false,
|
|
6209
6409
|
"pathParams": [
|
|
6210
6410
|
{
|
|
6211
|
-
"name": "
|
|
6212
|
-
"sdkName": "
|
|
6411
|
+
"name": "namespace",
|
|
6412
|
+
"sdkName": "namespace",
|
|
6213
6413
|
"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."
|
|
6214
6414
|
},
|
|
6215
6415
|
{
|
|
@@ -6230,13 +6430,13 @@ export const operations = [
|
|
|
6230
6430
|
"summary": "List script vault bindings",
|
|
6231
6431
|
"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.",
|
|
6232
6432
|
"http": "GET",
|
|
6233
|
-
"path": "/automation/v1/scripts/{
|
|
6433
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults",
|
|
6234
6434
|
"streaming": "no",
|
|
6235
6435
|
"pagination": false,
|
|
6236
6436
|
"pathParams": [
|
|
6237
6437
|
{
|
|
6238
|
-
"name": "
|
|
6239
|
-
"sdkName": "
|
|
6438
|
+
"name": "namespace",
|
|
6439
|
+
"sdkName": "namespace",
|
|
6240
6440
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6241
6441
|
},
|
|
6242
6442
|
{
|
|
@@ -6253,13 +6453,13 @@ export const operations = [
|
|
|
6253
6453
|
"summary": "Delete a script vault binding",
|
|
6254
6454
|
"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.",
|
|
6255
6455
|
"http": "DELETE",
|
|
6256
|
-
"path": "/automation/v1/scripts/{
|
|
6456
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
|
|
6257
6457
|
"streaming": "no",
|
|
6258
6458
|
"pagination": false,
|
|
6259
6459
|
"pathParams": [
|
|
6260
6460
|
{
|
|
6261
|
-
"name": "
|
|
6262
|
-
"sdkName": "
|
|
6461
|
+
"name": "namespace",
|
|
6462
|
+
"sdkName": "namespace",
|
|
6263
6463
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6264
6464
|
},
|
|
6265
6465
|
{
|
|
@@ -6281,13 +6481,13 @@ export const operations = [
|
|
|
6281
6481
|
"summary": "Set a script vault binding",
|
|
6282
6482
|
"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\"}.",
|
|
6283
6483
|
"http": "PUT",
|
|
6284
|
-
"path": "/automation/v1/scripts/{
|
|
6484
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
|
|
6285
6485
|
"streaming": "no",
|
|
6286
6486
|
"pagination": false,
|
|
6287
6487
|
"pathParams": [
|
|
6288
6488
|
{
|
|
6289
|
-
"name": "
|
|
6290
|
-
"sdkName": "
|
|
6489
|
+
"name": "namespace",
|
|
6490
|
+
"sdkName": "namespace",
|
|
6291
6491
|
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
6292
6492
|
},
|
|
6293
6493
|
{
|
|
@@ -6320,13 +6520,13 @@ export const operations = [
|
|
|
6320
6520
|
"summary": "List script versions",
|
|
6321
6521
|
"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.",
|
|
6322
6522
|
"http": "GET",
|
|
6323
|
-
"path": "/automation/v1/scripts/{
|
|
6523
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions",
|
|
6324
6524
|
"streaming": "no",
|
|
6325
6525
|
"pagination": true,
|
|
6326
6526
|
"pathParams": [
|
|
6327
6527
|
{
|
|
6328
|
-
"name": "
|
|
6329
|
-
"sdkName": "
|
|
6528
|
+
"name": "namespace",
|
|
6529
|
+
"sdkName": "namespace",
|
|
6330
6530
|
"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."
|
|
6331
6531
|
},
|
|
6332
6532
|
{
|
|
@@ -6366,15 +6566,15 @@ export const operations = [
|
|
|
6366
6566
|
"publish"
|
|
6367
6567
|
],
|
|
6368
6568
|
"summary": "Publish a script version",
|
|
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.
|
|
6569
|
+
"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.",
|
|
6370
6570
|
"http": "POST",
|
|
6371
|
-
"path": "/automation/v1/scripts/{
|
|
6571
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions",
|
|
6372
6572
|
"streaming": "no",
|
|
6373
6573
|
"pagination": false,
|
|
6374
6574
|
"pathParams": [
|
|
6375
6575
|
{
|
|
6376
|
-
"name": "
|
|
6377
|
-
"sdkName": "
|
|
6576
|
+
"name": "namespace",
|
|
6577
|
+
"sdkName": "namespace",
|
|
6378
6578
|
"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."
|
|
6379
6579
|
},
|
|
6380
6580
|
{
|
|
@@ -6395,13 +6595,13 @@ export const operations = [
|
|
|
6395
6595
|
"summary": "Get a script version",
|
|
6396
6596
|
"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.",
|
|
6397
6597
|
"http": "GET",
|
|
6398
|
-
"path": "/automation/v1/scripts/{
|
|
6598
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}",
|
|
6399
6599
|
"streaming": "no",
|
|
6400
6600
|
"pagination": false,
|
|
6401
6601
|
"pathParams": [
|
|
6402
6602
|
{
|
|
6403
|
-
"name": "
|
|
6404
|
-
"sdkName": "
|
|
6603
|
+
"name": "namespace",
|
|
6604
|
+
"sdkName": "namespace",
|
|
6405
6605
|
"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."
|
|
6406
6606
|
},
|
|
6407
6607
|
{
|
|
@@ -6423,13 +6623,13 @@ export const operations = [
|
|
|
6423
6623
|
"summary": "Deprecate a script version",
|
|
6424
6624
|
"description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
|
|
6425
6625
|
"http": "POST",
|
|
6426
|
-
"path": "/automation/v1/scripts/{
|
|
6626
|
+
"path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate",
|
|
6427
6627
|
"streaming": "no",
|
|
6428
6628
|
"pagination": false,
|
|
6429
6629
|
"pathParams": [
|
|
6430
6630
|
{
|
|
6431
|
-
"name": "
|
|
6432
|
-
"sdkName": "
|
|
6631
|
+
"name": "namespace",
|
|
6632
|
+
"sdkName": "namespace",
|
|
6433
6633
|
"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."
|
|
6434
6634
|
},
|
|
6435
6635
|
{
|
|
@@ -6580,7 +6780,7 @@ export const operations = [
|
|
|
6580
6780
|
"expired"
|
|
6581
6781
|
],
|
|
6582
6782
|
"required": false,
|
|
6583
|
-
"description": "Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
|
|
6783
|
+
"description": "Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
|
|
6584
6784
|
},
|
|
6585
6785
|
{
|
|
6586
6786
|
"name": "labels",
|
|
@@ -6599,13 +6799,25 @@ export const operations = [
|
|
|
6599
6799
|
"type": "string",
|
|
6600
6800
|
"required": false,
|
|
6601
6801
|
"description": "Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone."
|
|
6602
|
-
}
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6802
|
+
},
|
|
6803
|
+
{
|
|
6804
|
+
"name": "status",
|
|
6805
|
+
"type": "array",
|
|
6806
|
+
"itemType": "string",
|
|
6807
|
+
"enum": [
|
|
6808
|
+
"enabled",
|
|
6809
|
+
"paused",
|
|
6810
|
+
"expired"
|
|
6811
|
+
],
|
|
6812
|
+
"required": false,
|
|
6813
|
+
"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."
|
|
6814
|
+
}
|
|
6815
|
+
]
|
|
6816
|
+
},
|
|
6817
|
+
{
|
|
6818
|
+
"resource": "automation.triggers",
|
|
6819
|
+
"method": "create",
|
|
6820
|
+
"summary": "Create a trigger",
|
|
6609
6821
|
"description": "Schedule recurring or one-time runs, or start runs from a webhook, for a published script or workflow. For one immediate run without a persistent trigger, use praxis.automation.runs.create. There may be at most 100 enabled triggers per tenant. Targets accept only exact versions or tags; webhook_url is returned only when creating a webhook or rotating its URL, so save it securely.",
|
|
6610
6822
|
"http": "POST",
|
|
6611
6823
|
"path": "/automation/v1/triggers",
|
|
@@ -6748,13 +6960,13 @@ export const operations = [
|
|
|
6748
6960
|
"summary": "Delete a trigger",
|
|
6749
6961
|
"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.",
|
|
6750
6962
|
"http": "DELETE",
|
|
6751
|
-
"path": "/automation/v1/triggers/{
|
|
6963
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6752
6964
|
"streaming": "no",
|
|
6753
6965
|
"pagination": false,
|
|
6754
6966
|
"pathParams": [
|
|
6755
6967
|
{
|
|
6756
|
-
"name": "
|
|
6757
|
-
"sdkName": "
|
|
6968
|
+
"name": "trigger_id",
|
|
6969
|
+
"sdkName": "trigger_id",
|
|
6758
6970
|
"description": "Trigger ID (trg_)."
|
|
6759
6971
|
}
|
|
6760
6972
|
],
|
|
@@ -6766,13 +6978,13 @@ export const operations = [
|
|
|
6766
6978
|
"summary": "Get a trigger",
|
|
6767
6979
|
"description": "Read schedule, state, upcoming times and latest firing. Use the ETag to update; the full webhook URL is not returned again.",
|
|
6768
6980
|
"http": "GET",
|
|
6769
|
-
"path": "/automation/v1/triggers/{
|
|
6981
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6770
6982
|
"streaming": "no",
|
|
6771
6983
|
"pagination": false,
|
|
6772
6984
|
"pathParams": [
|
|
6773
6985
|
{
|
|
6774
|
-
"name": "
|
|
6775
|
-
"sdkName": "
|
|
6986
|
+
"name": "trigger_id",
|
|
6987
|
+
"sdkName": "trigger_id",
|
|
6776
6988
|
"description": "Trigger ID (trg_)."
|
|
6777
6989
|
}
|
|
6778
6990
|
],
|
|
@@ -6784,13 +6996,13 @@ export const operations = [
|
|
|
6784
6996
|
"summary": "Update a trigger",
|
|
6785
6997
|
"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.",
|
|
6786
6998
|
"http": "PATCH",
|
|
6787
|
-
"path": "/automation/v1/triggers/{
|
|
6999
|
+
"path": "/automation/v1/triggers/{trigger_id}",
|
|
6788
7000
|
"streaming": "no",
|
|
6789
7001
|
"pagination": false,
|
|
6790
7002
|
"pathParams": [
|
|
6791
7003
|
{
|
|
6792
|
-
"name": "
|
|
6793
|
-
"sdkName": "
|
|
7004
|
+
"name": "trigger_id",
|
|
7005
|
+
"sdkName": "trigger_id",
|
|
6794
7006
|
"description": "Trigger ID (trg_)."
|
|
6795
7007
|
}
|
|
6796
7008
|
],
|
|
@@ -6901,13 +7113,13 @@ export const operations = [
|
|
|
6901
7113
|
"summary": "Fire a trigger now",
|
|
6902
7114
|
"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.",
|
|
6903
7115
|
"http": "POST",
|
|
6904
|
-
"path": "/automation/v1/triggers/{
|
|
7116
|
+
"path": "/automation/v1/triggers/{trigger_id}/fire",
|
|
6905
7117
|
"streaming": "no",
|
|
6906
7118
|
"pagination": false,
|
|
6907
7119
|
"pathParams": [
|
|
6908
7120
|
{
|
|
6909
|
-
"name": "
|
|
6910
|
-
"sdkName": "
|
|
7121
|
+
"name": "trigger_id",
|
|
7122
|
+
"sdkName": "trigger_id",
|
|
6911
7123
|
"description": "Trigger ID (trg_)."
|
|
6912
7124
|
}
|
|
6913
7125
|
],
|
|
@@ -6919,13 +7131,13 @@ export const operations = [
|
|
|
6919
7131
|
"summary": "List trigger firings",
|
|
6920
7132
|
"description": "Read the last 30 days of firings newest first. Results include resolved versions, run IDs and failure details.",
|
|
6921
7133
|
"http": "GET",
|
|
6922
|
-
"path": "/automation/v1/triggers/{
|
|
7134
|
+
"path": "/automation/v1/triggers/{trigger_id}/firings",
|
|
6923
7135
|
"streaming": "no",
|
|
6924
7136
|
"pagination": true,
|
|
6925
7137
|
"pathParams": [
|
|
6926
7138
|
{
|
|
6927
|
-
"name": "
|
|
6928
|
-
"sdkName": "
|
|
7139
|
+
"name": "trigger_id",
|
|
7140
|
+
"sdkName": "trigger_id",
|
|
6929
7141
|
"description": "Trigger ID (trg_)."
|
|
6930
7142
|
}
|
|
6931
7143
|
],
|
|
@@ -6971,13 +7183,13 @@ export const operations = [
|
|
|
6971
7183
|
"summary": "Pause a trigger",
|
|
6972
7184
|
"description": "Pause new firings without terminating existing runs. Definition-managed triggers can also be paused.",
|
|
6973
7185
|
"http": "POST",
|
|
6974
|
-
"path": "/automation/v1/triggers/{
|
|
7186
|
+
"path": "/automation/v1/triggers/{trigger_id}/pause",
|
|
6975
7187
|
"streaming": "no",
|
|
6976
7188
|
"pagination": false,
|
|
6977
7189
|
"pathParams": [
|
|
6978
7190
|
{
|
|
6979
|
-
"name": "
|
|
6980
|
-
"sdkName": "
|
|
7191
|
+
"name": "trigger_id",
|
|
7192
|
+
"sdkName": "trigger_id",
|
|
6981
7193
|
"description": "Trigger ID (trg_)."
|
|
6982
7194
|
}
|
|
6983
7195
|
],
|
|
@@ -6989,13 +7201,13 @@ export const operations = [
|
|
|
6989
7201
|
"summary": "Resume a trigger",
|
|
6990
7202
|
"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.",
|
|
6991
7203
|
"http": "POST",
|
|
6992
|
-
"path": "/automation/v1/triggers/{
|
|
7204
|
+
"path": "/automation/v1/triggers/{trigger_id}/resume",
|
|
6993
7205
|
"streaming": "no",
|
|
6994
7206
|
"pagination": false,
|
|
6995
7207
|
"pathParams": [
|
|
6996
7208
|
{
|
|
6997
|
-
"name": "
|
|
6998
|
-
"sdkName": "
|
|
7209
|
+
"name": "trigger_id",
|
|
7210
|
+
"sdkName": "trigger_id",
|
|
6999
7211
|
"description": "Trigger ID (trg_)."
|
|
7000
7212
|
}
|
|
7001
7213
|
],
|
|
@@ -7007,13 +7219,13 @@ export const operations = [
|
|
|
7007
7219
|
"summary": "Rotate a webhook URL",
|
|
7008
7220
|
"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.",
|
|
7009
7221
|
"http": "POST",
|
|
7010
|
-
"path": "/automation/v1/triggers/{
|
|
7222
|
+
"path": "/automation/v1/triggers/{trigger_id}/rotate-webhook",
|
|
7011
7223
|
"streaming": "no",
|
|
7012
7224
|
"pagination": false,
|
|
7013
7225
|
"pathParams": [
|
|
7014
7226
|
{
|
|
7015
|
-
"name": "
|
|
7016
|
-
"sdkName": "
|
|
7227
|
+
"name": "trigger_id",
|
|
7228
|
+
"sdkName": "trigger_id",
|
|
7017
7229
|
"description": "Trigger ID (trg_)."
|
|
7018
7230
|
}
|
|
7019
7231
|
],
|
|
@@ -7160,9 +7372,9 @@ export const operations = [
|
|
|
7160
7372
|
},
|
|
7161
7373
|
{
|
|
7162
7374
|
"name": "draft",
|
|
7163
|
-
"type": "
|
|
7375
|
+
"type": "object",
|
|
7164
7376
|
"required": false,
|
|
7165
|
-
"description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
|
|
7377
|
+
"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 }."
|
|
7166
7378
|
},
|
|
7167
7379
|
{
|
|
7168
7380
|
"name": "labels",
|
|
@@ -7177,15 +7389,15 @@ export const operations = [
|
|
|
7177
7389
|
"resource": "automation.workflows",
|
|
7178
7390
|
"method": "retrieve",
|
|
7179
7391
|
"summary": "Get a workflow",
|
|
7180
|
-
"description": "Read workflow details and draft source. The
|
|
7392
|
+
"description": "Read workflow details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
|
|
7181
7393
|
"http": "GET",
|
|
7182
|
-
"path": "/automation/v1/workflows/{
|
|
7394
|
+
"path": "/automation/v1/workflows/{namespace}/{name}",
|
|
7183
7395
|
"streaming": "no",
|
|
7184
7396
|
"pagination": false,
|
|
7185
7397
|
"pathParams": [
|
|
7186
7398
|
{
|
|
7187
|
-
"name": "
|
|
7188
|
-
"sdkName": "
|
|
7399
|
+
"name": "namespace",
|
|
7400
|
+
"sdkName": "namespace",
|
|
7189
7401
|
"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."
|
|
7190
7402
|
},
|
|
7191
7403
|
{
|
|
@@ -7200,15 +7412,15 @@ export const operations = [
|
|
|
7200
7412
|
"resource": "automation.workflows",
|
|
7201
7413
|
"method": "update",
|
|
7202
7414
|
"summary": "Update a workflow draft",
|
|
7203
|
-
"description": "Update description, labels or draft with the current draft revision in
|
|
7415
|
+
"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.",
|
|
7204
7416
|
"http": "PATCH",
|
|
7205
|
-
"path": "/automation/v1/workflows/{
|
|
7417
|
+
"path": "/automation/v1/workflows/{namespace}/{name}",
|
|
7206
7418
|
"streaming": "no",
|
|
7207
7419
|
"pagination": false,
|
|
7208
7420
|
"pathParams": [
|
|
7209
7421
|
{
|
|
7210
|
-
"name": "
|
|
7211
|
-
"sdkName": "
|
|
7422
|
+
"name": "namespace",
|
|
7423
|
+
"sdkName": "namespace",
|
|
7212
7424
|
"description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
|
|
7213
7425
|
},
|
|
7214
7426
|
{
|
|
@@ -7222,8 +7434,8 @@ export const operations = [
|
|
|
7222
7434
|
{
|
|
7223
7435
|
"name": "If-Match",
|
|
7224
7436
|
"type": "string",
|
|
7225
|
-
"required":
|
|
7226
|
-
"description": "
|
|
7437
|
+
"required": false,
|
|
7438
|
+
"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."
|
|
7227
7439
|
}
|
|
7228
7440
|
],
|
|
7229
7441
|
"body": {
|
|
@@ -7243,9 +7455,9 @@ export const operations = [
|
|
|
7243
7455
|
},
|
|
7244
7456
|
{
|
|
7245
7457
|
"name": "draft",
|
|
7246
|
-
"type": "
|
|
7458
|
+
"type": "object",
|
|
7247
7459
|
"required": false,
|
|
7248
|
-
"description": "
|
|
7460
|
+
"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."
|
|
7249
7461
|
}
|
|
7250
7462
|
]
|
|
7251
7463
|
}
|
|
@@ -7256,13 +7468,13 @@ export const operations = [
|
|
|
7256
7468
|
"summary": "Archive a workflow",
|
|
7257
7469
|
"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.",
|
|
7258
7470
|
"http": "POST",
|
|
7259
|
-
"path": "/automation/v1/workflows/{
|
|
7471
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/archive",
|
|
7260
7472
|
"streaming": "no",
|
|
7261
7473
|
"pagination": false,
|
|
7262
7474
|
"pathParams": [
|
|
7263
7475
|
{
|
|
7264
|
-
"name": "
|
|
7265
|
-
"sdkName": "
|
|
7476
|
+
"name": "namespace",
|
|
7477
|
+
"sdkName": "namespace",
|
|
7266
7478
|
"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."
|
|
7267
7479
|
},
|
|
7268
7480
|
{
|
|
@@ -7283,13 +7495,13 @@ export const operations = [
|
|
|
7283
7495
|
"summary": "List workflow tags",
|
|
7284
7496
|
"description": "Read the exact version for each distribution tag. Results include the update time and updater.",
|
|
7285
7497
|
"http": "GET",
|
|
7286
|
-
"path": "/automation/v1/workflows/{
|
|
7498
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags",
|
|
7287
7499
|
"streaming": "no",
|
|
7288
7500
|
"pagination": false,
|
|
7289
7501
|
"pathParams": [
|
|
7290
7502
|
{
|
|
7291
|
-
"name": "
|
|
7292
|
-
"sdkName": "
|
|
7503
|
+
"name": "namespace",
|
|
7504
|
+
"sdkName": "namespace",
|
|
7293
7505
|
"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."
|
|
7294
7506
|
},
|
|
7295
7507
|
{
|
|
@@ -7306,13 +7518,13 @@ export const operations = [
|
|
|
7306
7518
|
"summary": "Delete a workflow tag",
|
|
7307
7519
|
"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.",
|
|
7308
7520
|
"http": "DELETE",
|
|
7309
|
-
"path": "/automation/v1/workflows/{
|
|
7521
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
|
|
7310
7522
|
"streaming": "no",
|
|
7311
7523
|
"pagination": false,
|
|
7312
7524
|
"pathParams": [
|
|
7313
7525
|
{
|
|
7314
|
-
"name": "
|
|
7315
|
-
"sdkName": "
|
|
7526
|
+
"name": "namespace",
|
|
7527
|
+
"sdkName": "namespace",
|
|
7316
7528
|
"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."
|
|
7317
7529
|
},
|
|
7318
7530
|
{
|
|
@@ -7334,13 +7546,13 @@ export const operations = [
|
|
|
7334
7546
|
"summary": "Set a workflow tag",
|
|
7335
7547
|
"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.",
|
|
7336
7548
|
"http": "PUT",
|
|
7337
|
-
"path": "/automation/v1/workflows/{
|
|
7549
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
|
|
7338
7550
|
"streaming": "no",
|
|
7339
7551
|
"pagination": false,
|
|
7340
7552
|
"pathParams": [
|
|
7341
7553
|
{
|
|
7342
|
-
"name": "
|
|
7343
|
-
"sdkName": "
|
|
7554
|
+
"name": "namespace",
|
|
7555
|
+
"sdkName": "namespace",
|
|
7344
7556
|
"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."
|
|
7345
7557
|
},
|
|
7346
7558
|
{
|
|
@@ -7373,13 +7585,13 @@ export const operations = [
|
|
|
7373
7585
|
"summary": "Restore a workflow",
|
|
7374
7586
|
"description": "Restore an archived definition with its versions and tags. The name is retained.",
|
|
7375
7587
|
"http": "POST",
|
|
7376
|
-
"path": "/automation/v1/workflows/{
|
|
7588
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/restore",
|
|
7377
7589
|
"streaming": "no",
|
|
7378
7590
|
"pagination": false,
|
|
7379
7591
|
"pathParams": [
|
|
7380
7592
|
{
|
|
7381
|
-
"name": "
|
|
7382
|
-
"sdkName": "
|
|
7593
|
+
"name": "namespace",
|
|
7594
|
+
"sdkName": "namespace",
|
|
7383
7595
|
"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."
|
|
7384
7596
|
},
|
|
7385
7597
|
{
|
|
@@ -7400,13 +7612,13 @@ export const operations = [
|
|
|
7400
7612
|
"summary": "List workflow vault bindings",
|
|
7401
7613
|
"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.",
|
|
7402
7614
|
"http": "GET",
|
|
7403
|
-
"path": "/automation/v1/workflows/{
|
|
7615
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults",
|
|
7404
7616
|
"streaming": "no",
|
|
7405
7617
|
"pagination": false,
|
|
7406
7618
|
"pathParams": [
|
|
7407
7619
|
{
|
|
7408
|
-
"name": "
|
|
7409
|
-
"sdkName": "
|
|
7620
|
+
"name": "namespace",
|
|
7621
|
+
"sdkName": "namespace",
|
|
7410
7622
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7411
7623
|
},
|
|
7412
7624
|
{
|
|
@@ -7423,13 +7635,13 @@ export const operations = [
|
|
|
7423
7635
|
"summary": "Delete a workflow vault binding",
|
|
7424
7636
|
"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.",
|
|
7425
7637
|
"http": "DELETE",
|
|
7426
|
-
"path": "/automation/v1/workflows/{
|
|
7638
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
|
|
7427
7639
|
"streaming": "no",
|
|
7428
7640
|
"pagination": false,
|
|
7429
7641
|
"pathParams": [
|
|
7430
7642
|
{
|
|
7431
|
-
"name": "
|
|
7432
|
-
"sdkName": "
|
|
7643
|
+
"name": "namespace",
|
|
7644
|
+
"sdkName": "namespace",
|
|
7433
7645
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7434
7646
|
},
|
|
7435
7647
|
{
|
|
@@ -7451,13 +7663,13 @@ export const operations = [
|
|
|
7451
7663
|
"summary": "Set a workflow vault binding",
|
|
7452
7664
|
"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\"}.",
|
|
7453
7665
|
"http": "PUT",
|
|
7454
|
-
"path": "/automation/v1/workflows/{
|
|
7666
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
|
|
7455
7667
|
"streaming": "no",
|
|
7456
7668
|
"pagination": false,
|
|
7457
7669
|
"pathParams": [
|
|
7458
7670
|
{
|
|
7459
|
-
"name": "
|
|
7460
|
-
"sdkName": "
|
|
7671
|
+
"name": "namespace",
|
|
7672
|
+
"sdkName": "namespace",
|
|
7461
7673
|
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
7462
7674
|
},
|
|
7463
7675
|
{
|
|
@@ -7490,13 +7702,13 @@ export const operations = [
|
|
|
7490
7702
|
"summary": "List workflow versions",
|
|
7491
7703
|
"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.",
|
|
7492
7704
|
"http": "GET",
|
|
7493
|
-
"path": "/automation/v1/workflows/{
|
|
7705
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions",
|
|
7494
7706
|
"streaming": "no",
|
|
7495
7707
|
"pagination": true,
|
|
7496
7708
|
"pathParams": [
|
|
7497
7709
|
{
|
|
7498
|
-
"name": "
|
|
7499
|
-
"sdkName": "
|
|
7710
|
+
"name": "namespace",
|
|
7711
|
+
"sdkName": "namespace",
|
|
7500
7712
|
"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."
|
|
7501
7713
|
},
|
|
7502
7714
|
{
|
|
@@ -7536,15 +7748,15 @@ export const operations = [
|
|
|
7536
7748
|
"publish"
|
|
7537
7749
|
],
|
|
7538
7750
|
"summary": "Publish a workflow version",
|
|
7539
|
-
"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.
|
|
7751
|
+
"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).",
|
|
7540
7752
|
"http": "POST",
|
|
7541
|
-
"path": "/automation/v1/workflows/{
|
|
7753
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions",
|
|
7542
7754
|
"streaming": "no",
|
|
7543
7755
|
"pagination": false,
|
|
7544
7756
|
"pathParams": [
|
|
7545
7757
|
{
|
|
7546
|
-
"name": "
|
|
7547
|
-
"sdkName": "
|
|
7758
|
+
"name": "namespace",
|
|
7759
|
+
"sdkName": "namespace",
|
|
7548
7760
|
"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."
|
|
7549
7761
|
},
|
|
7550
7762
|
{
|
|
@@ -7565,13 +7777,13 @@ export const operations = [
|
|
|
7565
7777
|
"summary": "Get a workflow version",
|
|
7566
7778
|
"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.",
|
|
7567
7779
|
"http": "GET",
|
|
7568
|
-
"path": "/automation/v1/workflows/{
|
|
7780
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}",
|
|
7569
7781
|
"streaming": "no",
|
|
7570
7782
|
"pagination": false,
|
|
7571
7783
|
"pathParams": [
|
|
7572
7784
|
{
|
|
7573
|
-
"name": "
|
|
7574
|
-
"sdkName": "
|
|
7785
|
+
"name": "namespace",
|
|
7786
|
+
"sdkName": "namespace",
|
|
7575
7787
|
"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."
|
|
7576
7788
|
},
|
|
7577
7789
|
{
|
|
@@ -7593,13 +7805,13 @@ export const operations = [
|
|
|
7593
7805
|
"summary": "Deprecate a workflow version",
|
|
7594
7806
|
"description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
|
|
7595
7807
|
"http": "POST",
|
|
7596
|
-
"path": "/automation/v1/workflows/{
|
|
7808
|
+
"path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate",
|
|
7597
7809
|
"streaming": "no",
|
|
7598
7810
|
"pagination": false,
|
|
7599
7811
|
"pathParams": [
|
|
7600
7812
|
{
|
|
7601
|
-
"name": "
|
|
7602
|
-
"sdkName": "
|
|
7813
|
+
"name": "namespace",
|
|
7814
|
+
"sdkName": "namespace",
|
|
7603
7815
|
"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."
|
|
7604
7816
|
},
|
|
7605
7817
|
{
|
|
@@ -7831,7 +8043,7 @@ export const operations = [
|
|
|
7831
8043
|
"resource": "browser.connect",
|
|
7832
8044
|
"method": "retrieve",
|
|
7833
8045
|
"summary": "连接云端浏览器",
|
|
7834
|
-
"description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl
|
|
8046
|
+
"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。",
|
|
7835
8047
|
"http": "GET",
|
|
7836
8048
|
"path": "/browser/v1/connect",
|
|
7837
8049
|
"streaming": "no",
|
|
@@ -8047,7 +8259,7 @@ export const operations = [
|
|
|
8047
8259
|
"resource": "browser.live",
|
|
8048
8260
|
"method": "retrieve",
|
|
8049
8261
|
"summary": "打开实时浏览器画面",
|
|
8050
|
-
"description": "
|
|
8262
|
+
"description": "旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。",
|
|
8051
8263
|
"http": "GET",
|
|
8052
8264
|
"path": "/browser/v1/live/{sessionId}/{pageId}",
|
|
8053
8265
|
"streaming": "no",
|
|
@@ -8145,7 +8357,7 @@ export const operations = [
|
|
|
8145
8357
|
"resource": "browser.sessions",
|
|
8146
8358
|
"method": "create",
|
|
8147
8359
|
"summary": "创建浏览器会话",
|
|
8148
|
-
"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
|
|
8360
|
+
"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 也不豁免;该事件记录判据读数。",
|
|
8149
8361
|
"http": "POST",
|
|
8150
8362
|
"path": "/browser/v1/sessions",
|
|
8151
8363
|
"streaming": "no",
|
|
@@ -8295,7 +8507,7 @@ export const operations = [
|
|
|
8295
8507
|
"resource": "browser.sessions.actions",
|
|
8296
8508
|
"method": "create",
|
|
8297
8509
|
"summary": "执行页面动作",
|
|
8298
|
-
"description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll
|
|
8510
|
+
"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 命令。",
|
|
8299
8511
|
"http": "POST",
|
|
8300
8512
|
"path": "/browser/v1/sessions/{sessionId}/actions",
|
|
8301
8513
|
"streaming": "no",
|
|
@@ -8836,6 +9048,41 @@ export const operations = [
|
|
|
8836
9048
|
}
|
|
8837
9049
|
]
|
|
8838
9050
|
},
|
|
9051
|
+
{
|
|
9052
|
+
"resource": "canvas.canvases.processes.steps",
|
|
9053
|
+
"method": "retrieveBrief",
|
|
9054
|
+
"summary": "Read a process step brief",
|
|
9055
|
+
"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.",
|
|
9056
|
+
"http": "GET",
|
|
9057
|
+
"path": "/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief",
|
|
9058
|
+
"streaming": "no",
|
|
9059
|
+
"pagination": false,
|
|
9060
|
+
"pathParams": [
|
|
9061
|
+
{
|
|
9062
|
+
"name": "canvas_id",
|
|
9063
|
+
"sdkName": "canvas_id",
|
|
9064
|
+
"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."
|
|
9065
|
+
},
|
|
9066
|
+
{
|
|
9067
|
+
"name": "process_id",
|
|
9068
|
+
"sdkName": "process_id",
|
|
9069
|
+
"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."
|
|
9070
|
+
},
|
|
9071
|
+
{
|
|
9072
|
+
"name": "step_id",
|
|
9073
|
+
"sdkName": "step_id",
|
|
9074
|
+
"description": "Step key from the requirement block, such as 1 or 9a; not the node id of the step frame."
|
|
9075
|
+
}
|
|
9076
|
+
],
|
|
9077
|
+
"query": [
|
|
9078
|
+
{
|
|
9079
|
+
"name": "version",
|
|
9080
|
+
"type": "string",
|
|
9081
|
+
"required": false,
|
|
9082
|
+
"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."
|
|
9083
|
+
}
|
|
9084
|
+
]
|
|
9085
|
+
},
|
|
8839
9086
|
{
|
|
8840
9087
|
"resource": "canvas.canvases.versions",
|
|
8841
9088
|
"method": "list",
|
|
@@ -9383,7 +9630,7 @@ export const operations = [
|
|
|
9383
9630
|
"resource": "content.playbackSessions",
|
|
9384
9631
|
"method": "create",
|
|
9385
9632
|
"summary": "Open a playback session",
|
|
9386
|
-
"description": "Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
9633
|
+
"description": "Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (its host depends on the viewer's region, https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8 or a mainland edge address such as https://media-hk.deepractice.cn/play/{content_id}/{capability}/master.m3u8; pass it to the player exactly as returned), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
9387
9634
|
"http": "POST",
|
|
9388
9635
|
"path": "/content/v1/playback/sessions",
|
|
9389
9636
|
"streaming": "no",
|
|
@@ -10473,7 +10720,7 @@ export const operations = [
|
|
|
10473
10720
|
"resource": "crm.properties",
|
|
10474
10721
|
"method": "list",
|
|
10475
10722
|
"summary": "List properties",
|
|
10476
|
-
"description": "Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.",
|
|
10723
|
+
"description": "Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false. Every organization starts with preset definitions. For contacts these are the HubSpot default contact properties that a person or the API can write - salutation, firstname, lastname, email, phone, mobilephone, fax, company, jobtitle, website, address, city, state, zip, country, industry, numemployees, annualrevenue and message - plus hubspot_owner_id, lifecyclestage (HubSpot's default stages) and hs_lead_status (HubSpot's default statuses). All of them sit in the contactinformation group and are writable; industry is free text here where HubSpot presents a fixed dropdown, and fax uses the phone-number format. The remaining HubSpot default contact properties are deliberately not provided, because the HubSpot feature behind each one is not part of Praxis - values HubSpot computes and keeps read-only (create and last-modified dates, created-by and updated-by user ids, owner-assigned date, email domain, record id and record source, country and state codes, contact unworked), activity, sequence, meeting and NPS dates and counters and predictive scores, form and conversion tracking (first and recent conversion, form submission counts, ad click ids, IP location, original and latest traffic source, page views and sessions), marketing email state (opt-outs, bounces, quarantine, delivered, opened and clicked counts and dates, marketing contact status), deal rollups (associated deals, revenue, close and first deal dates, days to close), lifecycle-stage timing, the ads form fields (date of birth, gender, marital status, education), private content membership, social profile handles, follower counts and photo, and account-level fields HubSpot maintains from its own settings (persona, preferred language, time zone, legal basis, brands, shared teams and users, team and merged ids). Create one as a custom property when a workflow needs it.",
|
|
10477
10724
|
"http": "GET",
|
|
10478
10725
|
"path": "/crm/v1/properties/{objectType}",
|
|
10479
10726
|
"streaming": "no",
|
|
@@ -11121,11 +11368,47 @@ export const operations = [
|
|
|
11121
11368
|
]
|
|
11122
11369
|
}
|
|
11123
11370
|
},
|
|
11371
|
+
{
|
|
11372
|
+
"resource": "crm.schemas",
|
|
11373
|
+
"method": "delete",
|
|
11374
|
+
"summary": "Delete object schema",
|
|
11375
|
+
"description": "Remove a custom object type together with its properties, property groups, pipelines, layout, archived records and their history, its associations and the association definitions created with it. A record that is not archived blocks the delete, and so does a rollup property on another object that reads this object, because it would silently read empty afterwards. Standard object types cannot be deleted. As in HubSpot, the delete answers HTTP 204 with no body, because the object has no records left whose refs it would return.",
|
|
11376
|
+
"http": "DELETE",
|
|
11377
|
+
"path": "/crm/v1/schemas/{objectType}",
|
|
11378
|
+
"streaming": "no",
|
|
11379
|
+
"pagination": false,
|
|
11380
|
+
"pathParams": [
|
|
11381
|
+
{
|
|
11382
|
+
"name": "objectType",
|
|
11383
|
+
"sdkName": "objectType",
|
|
11384
|
+
"description": "Object type name or object type id from schemas.list; a custom object is p_<name>."
|
|
11385
|
+
}
|
|
11386
|
+
],
|
|
11387
|
+
"query": []
|
|
11388
|
+
},
|
|
11389
|
+
{
|
|
11390
|
+
"resource": "crm.schemas",
|
|
11391
|
+
"method": "retrieve",
|
|
11392
|
+
"summary": "Read object schema",
|
|
11393
|
+
"description": "Read one object type with its property definitions and association definitions. Discover the name from schemas.list first; a custom object answers to its name (p_<name>) or its object type id. An unknown type answers OBJECT_NOT_FOUND, which is also how a deleted custom object reads afterwards.",
|
|
11394
|
+
"http": "GET",
|
|
11395
|
+
"path": "/crm/v1/schemas/{objectType}",
|
|
11396
|
+
"streaming": "no",
|
|
11397
|
+
"pagination": false,
|
|
11398
|
+
"pathParams": [
|
|
11399
|
+
{
|
|
11400
|
+
"name": "objectType",
|
|
11401
|
+
"sdkName": "objectType",
|
|
11402
|
+
"description": "Object type name or object type id from schemas.list; a custom object is p_<name>."
|
|
11403
|
+
}
|
|
11404
|
+
],
|
|
11405
|
+
"query": []
|
|
11406
|
+
},
|
|
11124
11407
|
{
|
|
11125
11408
|
"resource": "customer.accessTokens",
|
|
11126
11409
|
"method": "create",
|
|
11127
11410
|
"summary": "Exchange a grant code or publishable key",
|
|
11128
|
-
"description": "
|
|
11411
|
+
"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.",
|
|
11129
11412
|
"http": "POST",
|
|
11130
11413
|
"path": "/customer/v1/access_tokens",
|
|
11131
11414
|
"streaming": "no",
|
|
@@ -11168,7 +11451,7 @@ export const operations = [
|
|
|
11168
11451
|
"resource": "customer.accessTokens",
|
|
11169
11452
|
"method": "revoke",
|
|
11170
11453
|
"summary": "Sign out the current token",
|
|
11171
|
-
"description": "
|
|
11454
|
+
"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.",
|
|
11172
11455
|
"http": "DELETE",
|
|
11173
11456
|
"path": "/customer/v1/access_tokens/current",
|
|
11174
11457
|
"streaming": "no",
|
|
@@ -11180,7 +11463,7 @@ export const operations = [
|
|
|
11180
11463
|
"resource": "customer.accessTokens",
|
|
11181
11464
|
"method": "renew",
|
|
11182
11465
|
"summary": "Renew an access token",
|
|
11183
|
-
"description": "
|
|
11466
|
+
"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.",
|
|
11184
11467
|
"http": "POST",
|
|
11185
11468
|
"path": "/customer/v1/access_tokens/renew",
|
|
11186
11469
|
"streaming": "no",
|
|
@@ -11192,7 +11475,7 @@ export const operations = [
|
|
|
11192
11475
|
"resource": "customer.customers",
|
|
11193
11476
|
"method": "list",
|
|
11194
11477
|
"summary": "List end users",
|
|
11195
|
-
"description": "
|
|
11478
|
+
"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.",
|
|
11196
11479
|
"http": "GET",
|
|
11197
11480
|
"path": "/customer/v1/customers",
|
|
11198
11481
|
"streaming": "no",
|
|
@@ -11245,7 +11528,7 @@ export const operations = [
|
|
|
11245
11528
|
"resource": "customer.customers",
|
|
11246
11529
|
"method": "delete",
|
|
11247
11530
|
"summary": "Delete an end user",
|
|
11248
|
-
"description": "
|
|
11531
|
+
"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.",
|
|
11249
11532
|
"http": "DELETE",
|
|
11250
11533
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11251
11534
|
"streaming": "no",
|
|
@@ -11270,7 +11553,7 @@ export const operations = [
|
|
|
11270
11553
|
"resource": "customer.customers",
|
|
11271
11554
|
"method": "retrieve",
|
|
11272
11555
|
"summary": "Get an end user",
|
|
11273
|
-
"description": "
|
|
11556
|
+
"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.",
|
|
11274
11557
|
"http": "GET",
|
|
11275
11558
|
"path": "/customer/v1/customers/{customer_id}",
|
|
11276
11559
|
"streaming": "no",
|
|
@@ -11295,7 +11578,7 @@ export const operations = [
|
|
|
11295
11578
|
"resource": "customer.customers",
|
|
11296
11579
|
"method": "block",
|
|
11297
11580
|
"summary": "Block an end user",
|
|
11298
|
-
"description": "
|
|
11581
|
+
"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.",
|
|
11299
11582
|
"http": "POST",
|
|
11300
11583
|
"path": "/customer/v1/customers/{customer_id}/block",
|
|
11301
11584
|
"streaming": "no",
|
|
@@ -11324,7 +11607,7 @@ export const operations = [
|
|
|
11324
11607
|
"resource": "customer.customers",
|
|
11325
11608
|
"method": "revokeTokens",
|
|
11326
11609
|
"summary": "Revoke every token of an end user",
|
|
11327
|
-
"description": "
|
|
11610
|
+
"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.",
|
|
11328
11611
|
"http": "POST",
|
|
11329
11612
|
"path": "/customer/v1/customers/{customer_id}/revoke_tokens",
|
|
11330
11613
|
"streaming": "no",
|
|
@@ -11342,7 +11625,7 @@ export const operations = [
|
|
|
11342
11625
|
"resource": "customer.customers",
|
|
11343
11626
|
"method": "unblock",
|
|
11344
11627
|
"summary": "Unblock an end user",
|
|
11345
|
-
"description": "
|
|
11628
|
+
"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.",
|
|
11346
11629
|
"http": "POST",
|
|
11347
11630
|
"path": "/customer/v1/customers/{customer_id}/unblock",
|
|
11348
11631
|
"streaming": "no",
|
|
@@ -11360,7 +11643,7 @@ export const operations = [
|
|
|
11360
11643
|
"resource": "customer.usage",
|
|
11361
11644
|
"method": "retrieve",
|
|
11362
11645
|
"summary": "Read end-user usage",
|
|
11363
|
-
"description": "
|
|
11646
|
+
"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.",
|
|
11364
11647
|
"http": "GET",
|
|
11365
11648
|
"path": "/customer/v1/customers/{customer_id}/usage",
|
|
11366
11649
|
"streaming": "no",
|
|
@@ -11391,7 +11674,7 @@ export const operations = [
|
|
|
11391
11674
|
"resource": "customer.grantCodes",
|
|
11392
11675
|
"method": "create",
|
|
11393
11676
|
"summary": "Create a grant code",
|
|
11394
|
-
"description": "
|
|
11677
|
+
"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.",
|
|
11395
11678
|
"http": "POST",
|
|
11396
11679
|
"path": "/customer/v1/grant_codes",
|
|
11397
11680
|
"streaming": "no",
|
|
@@ -11457,7 +11740,7 @@ export const operations = [
|
|
|
11457
11740
|
"resource": "customer.publishableKeys",
|
|
11458
11741
|
"method": "list",
|
|
11459
11742
|
"summary": "List publishable keys",
|
|
11460
|
-
"description": "
|
|
11743
|
+
"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.",
|
|
11461
11744
|
"http": "GET",
|
|
11462
11745
|
"path": "/customer/v1/publishable_keys",
|
|
11463
11746
|
"streaming": "no",
|
|
@@ -11482,7 +11765,7 @@ export const operations = [
|
|
|
11482
11765
|
"resource": "customer.publishableKeys",
|
|
11483
11766
|
"method": "create",
|
|
11484
11767
|
"summary": "Create a publishable key",
|
|
11485
|
-
"description": "
|
|
11768
|
+
"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.",
|
|
11486
11769
|
"http": "POST",
|
|
11487
11770
|
"path": "/customer/v1/publishable_keys",
|
|
11488
11771
|
"streaming": "no",
|
|
@@ -11530,7 +11813,7 @@ export const operations = [
|
|
|
11530
11813
|
"resource": "customer.publishableKeys",
|
|
11531
11814
|
"method": "delete",
|
|
11532
11815
|
"summary": "Delete a publishable key",
|
|
11533
|
-
"description": "
|
|
11816
|
+
"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 PUBLISHABLE_KEY_NOT_FOUND.",
|
|
11534
11817
|
"http": "DELETE",
|
|
11535
11818
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11536
11819
|
"streaming": "no",
|
|
@@ -11548,7 +11831,7 @@ export const operations = [
|
|
|
11548
11831
|
"resource": "customer.publishableKeys",
|
|
11549
11832
|
"method": "update",
|
|
11550
11833
|
"summary": "Update a publishable key",
|
|
11551
|
-
"description": "
|
|
11834
|
+
"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.",
|
|
11552
11835
|
"http": "PATCH",
|
|
11553
11836
|
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11554
11837
|
"streaming": "no",
|
|
@@ -11980,7 +12263,7 @@ export const operations = [
|
|
|
11980
12263
|
"resource": "cut.projects.exports",
|
|
11981
12264
|
"method": "create",
|
|
11982
12265
|
"summary": "Create video export",
|
|
11983
|
-
"description": "Start an asynchronous video export from the project
|
|
12266
|
+
"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.",
|
|
11984
12267
|
"http": "POST",
|
|
11985
12268
|
"path": "/cut/v1/projects/{project_id}/exports",
|
|
11986
12269
|
"streaming": "no",
|
|
@@ -12018,7 +12301,7 @@ export const operations = [
|
|
|
12018
12301
|
"name": "binding",
|
|
12019
12302
|
"type": "string",
|
|
12020
12303
|
"required": false,
|
|
12021
|
-
"description": "Writable binding name
|
|
12304
|
+
"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."
|
|
12022
12305
|
},
|
|
12023
12306
|
{
|
|
12024
12307
|
"name": "revision",
|
|
@@ -18207,6 +18490,60 @@ export const operations = [
|
|
|
18207
18490
|
]
|
|
18208
18491
|
}
|
|
18209
18492
|
},
|
|
18493
|
+
{
|
|
18494
|
+
"resource": "devops.pullRequests",
|
|
18495
|
+
"method": "overrideGate",
|
|
18496
|
+
"summary": "Record a listed position's exception to the merge gate",
|
|
18497
|
+
"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\"}.",
|
|
18498
|
+
"http": "POST",
|
|
18499
|
+
"path": "/devops/v1/pull-requests/{id}:overrideGate",
|
|
18500
|
+
"streaming": "no",
|
|
18501
|
+
"pagination": false,
|
|
18502
|
+
"pathParams": [
|
|
18503
|
+
{
|
|
18504
|
+
"name": "id",
|
|
18505
|
+
"sdkName": "id",
|
|
18506
|
+
"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."
|
|
18507
|
+
}
|
|
18508
|
+
],
|
|
18509
|
+
"query": [],
|
|
18510
|
+
"body": {
|
|
18511
|
+
"required": true,
|
|
18512
|
+
"fields": [
|
|
18513
|
+
{
|
|
18514
|
+
"name": "headSha",
|
|
18515
|
+
"type": "string",
|
|
18516
|
+
"required": true,
|
|
18517
|
+
"description": "The pull request's current head commit, from the pull request's head.sha; any other commit is refused with HEAD_MOVED."
|
|
18518
|
+
},
|
|
18519
|
+
{
|
|
18520
|
+
"name": "checks",
|
|
18521
|
+
"type": "array",
|
|
18522
|
+
"itemType": "string",
|
|
18523
|
+
"required": true,
|
|
18524
|
+
"description": "The gate checks the exception covers, at least one; a name that is not a gate check is refused with INVALID_ARGUMENT."
|
|
18525
|
+
},
|
|
18526
|
+
{
|
|
18527
|
+
"name": "ticket",
|
|
18528
|
+
"type": "string",
|
|
18529
|
+
"required": true,
|
|
18530
|
+
"description": "The ticket the authorization is written on, as #<number> or its URL."
|
|
18531
|
+
},
|
|
18532
|
+
{
|
|
18533
|
+
"name": "reason",
|
|
18534
|
+
"type": "string",
|
|
18535
|
+
"required": true,
|
|
18536
|
+
"description": "Why the check is let through at this head, in one sentence a later reader can audit."
|
|
18537
|
+
},
|
|
18538
|
+
{
|
|
18539
|
+
"name": "authorizedBy",
|
|
18540
|
+
"type": "string",
|
|
18541
|
+
"required": true,
|
|
18542
|
+
"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)."
|
|
18543
|
+
}
|
|
18544
|
+
]
|
|
18545
|
+
}
|
|
18546
|
+
},
|
|
18210
18547
|
{
|
|
18211
18548
|
"resource": "devops.pullRequests",
|
|
18212
18549
|
"method": "recordVerdict",
|
|
@@ -18262,7 +18599,7 @@ export const operations = [
|
|
|
18262
18599
|
"resource": "devops.pullRequests",
|
|
18263
18600
|
"method": "rerunGate",
|
|
18264
18601
|
"summary": "Decide a pull request's merge gate again",
|
|
18265
|
-
"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
|
|
18602
|
+
"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.",
|
|
18266
18603
|
"http": "POST",
|
|
18267
18604
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
18268
18605
|
"streaming": "no",
|
|
@@ -18842,76 +19179,662 @@ export const operations = [
|
|
|
18842
19179
|
"query": []
|
|
18843
19180
|
},
|
|
18844
19181
|
{
|
|
18845
|
-
"resource": "devops.units",
|
|
18846
|
-
"method": "push",
|
|
18847
|
-
"summary": "Push a unit's branch",
|
|
18848
|
-
"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,
|
|
19182
|
+
"resource": "devops.units",
|
|
19183
|
+
"method": "push",
|
|
19184
|
+
"summary": "Push a unit's branch",
|
|
19185
|
+
"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.",
|
|
19186
|
+
"http": "POST",
|
|
19187
|
+
"path": "/devops/v1/units/{id}:push",
|
|
19188
|
+
"streaming": "no",
|
|
19189
|
+
"pagination": false,
|
|
19190
|
+
"pathParams": [
|
|
19191
|
+
{
|
|
19192
|
+
"name": "id",
|
|
19193
|
+
"sdkName": "id",
|
|
19194
|
+
"description": "The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for."
|
|
19195
|
+
}
|
|
19196
|
+
],
|
|
19197
|
+
"query": [],
|
|
19198
|
+
"body": {
|
|
19199
|
+
"required": true,
|
|
19200
|
+
"fields": [
|
|
19201
|
+
{
|
|
19202
|
+
"name": "ref",
|
|
19203
|
+
"type": "string",
|
|
19204
|
+
"required": true,
|
|
19205
|
+
"description": "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 such as refs/heads/feat/run-page-v2. A ref that is not this unit's — the default branch, another change's branch, a tag, another unit's wip ref — is refused with PUSH_REF_FORBIDDEN."
|
|
19206
|
+
},
|
|
19207
|
+
{
|
|
19208
|
+
"name": "expectedHead",
|
|
19209
|
+
"type": "string",
|
|
19210
|
+
"required": true,
|
|
19211
|
+
"description": "The full commit the caller believes the change's branch is at on the remote now, read from the unit's git facts or a prior push answer; a remote that differs answers HEAD_MOVED. Send it for wip too, where it is recorded but not compared."
|
|
19212
|
+
}
|
|
19213
|
+
]
|
|
19214
|
+
}
|
|
19215
|
+
},
|
|
19216
|
+
{
|
|
19217
|
+
"resource": "devops.units",
|
|
19218
|
+
"method": "start",
|
|
19219
|
+
"summary": "Start a unit",
|
|
19220
|
+
"description": "Start a stopped unit: the sandbox resumes its machine and the unit moves from shutdown back to available. Starting a unit that is already available, one that is deleted or failed, or one with another transition still in flight is refused with 409 UNIT_INVALID_STATE rather than queued; read the unit to see its phase first. The call answers once the transition is recorded, which can be before the machine is ready, so read the unit again for the observed phase.",
|
|
19221
|
+
"http": "POST",
|
|
19222
|
+
"path": "/devops/v1/units/{id}:start",
|
|
19223
|
+
"streaming": "no",
|
|
19224
|
+
"pagination": false,
|
|
19225
|
+
"pathParams": [
|
|
19226
|
+
{
|
|
19227
|
+
"name": "id",
|
|
19228
|
+
"sdkName": "id",
|
|
19229
|
+
"description": "The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for."
|
|
19230
|
+
}
|
|
19231
|
+
],
|
|
19232
|
+
"query": []
|
|
19233
|
+
},
|
|
19234
|
+
{
|
|
19235
|
+
"resource": "devops.units",
|
|
19236
|
+
"method": "stop",
|
|
19237
|
+
"summary": "Stop a unit",
|
|
19238
|
+
"description": "Stop a running unit: the sandbox pauses its machine and the unit moves from available to shutting_down and then shutdown. A stopped unit is kept, not destroyed — start it again to resume the same machine — and it is destroyed only when its retention expires or it is deleted. Stopping a unit that is not available, or one with another transition in flight, is refused with 409 UNIT_INVALID_STATE; read the unit to see its phase first.",
|
|
19239
|
+
"http": "POST",
|
|
19240
|
+
"path": "/devops/v1/units/{id}:stop",
|
|
19241
|
+
"streaming": "no",
|
|
19242
|
+
"pagination": false,
|
|
19243
|
+
"pathParams": [
|
|
19244
|
+
{
|
|
19245
|
+
"name": "id",
|
|
19246
|
+
"sdkName": "id",
|
|
19247
|
+
"description": "The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for."
|
|
19248
|
+
}
|
|
19249
|
+
],
|
|
19250
|
+
"query": []
|
|
19251
|
+
},
|
|
19252
|
+
{
|
|
19253
|
+
"resource": "end.accessTokens",
|
|
19254
|
+
"method": "create",
|
|
19255
|
+
"summary": "Exchange a grant code or publishable key",
|
|
19256
|
+
"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.",
|
|
19257
|
+
"http": "POST",
|
|
19258
|
+
"path": "/end/v1/access_tokens",
|
|
19259
|
+
"streaming": "no",
|
|
19260
|
+
"pagination": false,
|
|
19261
|
+
"pathParams": [],
|
|
19262
|
+
"query": [],
|
|
19263
|
+
"headers": [
|
|
19264
|
+
{
|
|
19265
|
+
"name": "Origin",
|
|
19266
|
+
"type": "string",
|
|
19267
|
+
"required": false,
|
|
19268
|
+
"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."
|
|
19269
|
+
}
|
|
19270
|
+
],
|
|
19271
|
+
"body": {
|
|
19272
|
+
"required": true,
|
|
19273
|
+
"fields": [
|
|
19274
|
+
{
|
|
19275
|
+
"name": "grant_code",
|
|
19276
|
+
"type": "string",
|
|
19277
|
+
"required": false,
|
|
19278
|
+
"description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
|
|
19279
|
+
},
|
|
19280
|
+
{
|
|
19281
|
+
"name": "publishable_key",
|
|
19282
|
+
"type": "string",
|
|
19283
|
+
"required": false,
|
|
19284
|
+
"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."
|
|
19285
|
+
},
|
|
19286
|
+
{
|
|
19287
|
+
"name": "continuation_token",
|
|
19288
|
+
"type": "string",
|
|
19289
|
+
"required": false,
|
|
19290
|
+
"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."
|
|
19291
|
+
}
|
|
19292
|
+
]
|
|
19293
|
+
}
|
|
19294
|
+
},
|
|
19295
|
+
{
|
|
19296
|
+
"resource": "end.accessTokens",
|
|
19297
|
+
"method": "revoke",
|
|
19298
|
+
"summary": "Sign out the current token",
|
|
19299
|
+
"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.",
|
|
19300
|
+
"http": "DELETE",
|
|
19301
|
+
"path": "/end/v1/access_tokens/current",
|
|
19302
|
+
"streaming": "no",
|
|
19303
|
+
"pagination": false,
|
|
19304
|
+
"pathParams": [],
|
|
19305
|
+
"query": []
|
|
19306
|
+
},
|
|
19307
|
+
{
|
|
19308
|
+
"resource": "end.accessTokens",
|
|
19309
|
+
"method": "renew",
|
|
19310
|
+
"summary": "Renew an access token",
|
|
19311
|
+
"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.",
|
|
19312
|
+
"http": "POST",
|
|
19313
|
+
"path": "/end/v1/access_tokens/renew",
|
|
19314
|
+
"streaming": "no",
|
|
19315
|
+
"pagination": false,
|
|
19316
|
+
"pathParams": [],
|
|
19317
|
+
"query": []
|
|
19318
|
+
},
|
|
19319
|
+
{
|
|
19320
|
+
"resource": "end.grantCodes",
|
|
19321
|
+
"method": "create",
|
|
19322
|
+
"summary": "Create a grant code",
|
|
19323
|
+
"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.",
|
|
19324
|
+
"http": "POST",
|
|
19325
|
+
"path": "/end/v1/grant_codes",
|
|
19326
|
+
"streaming": "no",
|
|
19327
|
+
"pagination": false,
|
|
19328
|
+
"pathParams": [],
|
|
19329
|
+
"query": [],
|
|
19330
|
+
"body": {
|
|
19331
|
+
"required": true,
|
|
19332
|
+
"fields": [
|
|
19333
|
+
{
|
|
19334
|
+
"name": "end_user_id",
|
|
19335
|
+
"type": "string",
|
|
19336
|
+
"required": true,
|
|
19337
|
+
"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."
|
|
19338
|
+
},
|
|
19339
|
+
{
|
|
19340
|
+
"name": "metadata",
|
|
19341
|
+
"type": "object",
|
|
19342
|
+
"required": false,
|
|
19343
|
+
"description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
|
|
19344
|
+
},
|
|
19345
|
+
{
|
|
19346
|
+
"name": "resources",
|
|
19347
|
+
"type": "array",
|
|
19348
|
+
"itemType": "object",
|
|
19349
|
+
"required": true,
|
|
19350
|
+
"description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
|
|
19351
|
+
},
|
|
19352
|
+
{
|
|
19353
|
+
"name": "origin",
|
|
19354
|
+
"type": "string",
|
|
19355
|
+
"required": false,
|
|
19356
|
+
"description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
|
|
19357
|
+
},
|
|
19358
|
+
{
|
|
19359
|
+
"name": "expires_in",
|
|
19360
|
+
"type": "integer",
|
|
19361
|
+
"required": false,
|
|
19362
|
+
"description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
|
|
19363
|
+
},
|
|
19364
|
+
{
|
|
19365
|
+
"name": "max_session_seconds",
|
|
19366
|
+
"type": "integer",
|
|
19367
|
+
"required": false,
|
|
19368
|
+
"description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
|
|
19369
|
+
},
|
|
19370
|
+
{
|
|
19371
|
+
"name": "merge_end_user_id",
|
|
19372
|
+
"type": "string",
|
|
19373
|
+
"required": false,
|
|
19374
|
+
"description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
|
|
19375
|
+
},
|
|
19376
|
+
{
|
|
19377
|
+
"name": "anonymous_access_token",
|
|
19378
|
+
"type": "string",
|
|
19379
|
+
"required": false,
|
|
19380
|
+
"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."
|
|
19381
|
+
}
|
|
19382
|
+
]
|
|
19383
|
+
}
|
|
19384
|
+
},
|
|
19385
|
+
{
|
|
19386
|
+
"resource": "end.publishableKeys",
|
|
19387
|
+
"method": "list",
|
|
19388
|
+
"summary": "List publishable keys",
|
|
19389
|
+
"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.",
|
|
19390
|
+
"http": "GET",
|
|
19391
|
+
"path": "/end/v1/publishable_keys",
|
|
19392
|
+
"streaming": "no",
|
|
19393
|
+
"pagination": false,
|
|
19394
|
+
"pathParams": [],
|
|
19395
|
+
"query": [
|
|
19396
|
+
{
|
|
19397
|
+
"name": "page_size",
|
|
19398
|
+
"type": "integer",
|
|
19399
|
+
"required": false,
|
|
19400
|
+
"description": "Maximum keys in one page, from 1 to 100; defaults to 50."
|
|
19401
|
+
},
|
|
19402
|
+
{
|
|
19403
|
+
"name": "page_token",
|
|
19404
|
+
"type": "string",
|
|
19405
|
+
"required": false,
|
|
19406
|
+
"description": "next_page from the preceding key list response; omit for the first page."
|
|
19407
|
+
}
|
|
19408
|
+
]
|
|
19409
|
+
},
|
|
19410
|
+
{
|
|
19411
|
+
"resource": "end.publishableKeys",
|
|
19412
|
+
"method": "create",
|
|
19413
|
+
"summary": "Create a publishable key",
|
|
19414
|
+
"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.",
|
|
19415
|
+
"http": "POST",
|
|
19416
|
+
"path": "/end/v1/publishable_keys",
|
|
19417
|
+
"streaming": "no",
|
|
19418
|
+
"pagination": false,
|
|
19419
|
+
"pathParams": [],
|
|
19420
|
+
"query": [],
|
|
19421
|
+
"body": {
|
|
19422
|
+
"required": true,
|
|
19423
|
+
"fields": [
|
|
19424
|
+
{
|
|
19425
|
+
"name": "name",
|
|
19426
|
+
"type": "string",
|
|
19427
|
+
"required": true,
|
|
19428
|
+
"description": "Label for the key, shown in the console and the key list, for example Storefront."
|
|
19429
|
+
},
|
|
19430
|
+
{
|
|
19431
|
+
"name": "resources",
|
|
19432
|
+
"type": "array",
|
|
19433
|
+
"itemType": "object",
|
|
19434
|
+
"required": true,
|
|
19435
|
+
"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."
|
|
19436
|
+
},
|
|
19437
|
+
{
|
|
19438
|
+
"name": "anon_rate_per_min",
|
|
19439
|
+
"type": "integer",
|
|
19440
|
+
"required": false,
|
|
19441
|
+
"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."
|
|
19442
|
+
},
|
|
19443
|
+
{
|
|
19444
|
+
"name": "daily_session_cap",
|
|
19445
|
+
"type": "integer",
|
|
19446
|
+
"required": false,
|
|
19447
|
+
"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."
|
|
19448
|
+
},
|
|
19449
|
+
{
|
|
19450
|
+
"name": "daily_spend_cap",
|
|
19451
|
+
"type": "object",
|
|
19452
|
+
"required": false,
|
|
19453
|
+
"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."
|
|
19454
|
+
}
|
|
19455
|
+
]
|
|
19456
|
+
}
|
|
19457
|
+
},
|
|
19458
|
+
{
|
|
19459
|
+
"resource": "end.publishableKeys",
|
|
19460
|
+
"method": "delete",
|
|
19461
|
+
"summary": "Delete a publishable key",
|
|
19462
|
+
"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 PUBLISHABLE_KEY_NOT_FOUND.",
|
|
19463
|
+
"http": "DELETE",
|
|
19464
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19465
|
+
"streaming": "no",
|
|
19466
|
+
"pagination": false,
|
|
19467
|
+
"pathParams": [
|
|
19468
|
+
{
|
|
19469
|
+
"name": "key_id",
|
|
19470
|
+
"sdkName": "key_id",
|
|
19471
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19472
|
+
}
|
|
19473
|
+
],
|
|
19474
|
+
"query": []
|
|
19475
|
+
},
|
|
19476
|
+
{
|
|
19477
|
+
"resource": "end.publishableKeys",
|
|
19478
|
+
"method": "update",
|
|
19479
|
+
"summary": "Update a publishable key",
|
|
19480
|
+
"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.",
|
|
19481
|
+
"http": "PATCH",
|
|
19482
|
+
"path": "/end/v1/publishable_keys/{key_id}",
|
|
19483
|
+
"streaming": "no",
|
|
19484
|
+
"pagination": false,
|
|
19485
|
+
"pathParams": [
|
|
19486
|
+
{
|
|
19487
|
+
"name": "key_id",
|
|
19488
|
+
"sdkName": "key_id",
|
|
19489
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
19490
|
+
}
|
|
19491
|
+
],
|
|
19492
|
+
"query": [],
|
|
19493
|
+
"body": {
|
|
19494
|
+
"required": true,
|
|
19495
|
+
"fields": [
|
|
19496
|
+
{
|
|
19497
|
+
"name": "name",
|
|
19498
|
+
"type": "string",
|
|
19499
|
+
"required": false,
|
|
19500
|
+
"description": "New label for the key, 1 to 64 characters."
|
|
19501
|
+
},
|
|
19502
|
+
{
|
|
19503
|
+
"name": "anon_rate_per_min",
|
|
19504
|
+
"type": "integer",
|
|
19505
|
+
"required": false,
|
|
19506
|
+
"description": "Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit."
|
|
19507
|
+
},
|
|
19508
|
+
{
|
|
19509
|
+
"name": "daily_session_cap",
|
|
19510
|
+
"type": "integer",
|
|
19511
|
+
"required": false,
|
|
19512
|
+
"description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit."
|
|
19513
|
+
},
|
|
19514
|
+
{
|
|
19515
|
+
"name": "daily_spend_cap",
|
|
19516
|
+
"type": "object",
|
|
19517
|
+
"required": false,
|
|
19518
|
+
"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."
|
|
19519
|
+
}
|
|
19520
|
+
]
|
|
19521
|
+
}
|
|
19522
|
+
},
|
|
19523
|
+
{
|
|
19524
|
+
"resource": "end.users",
|
|
19525
|
+
"method": "list",
|
|
19526
|
+
"summary": "List end users",
|
|
19527
|
+
"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.",
|
|
19528
|
+
"http": "GET",
|
|
19529
|
+
"path": "/end/v1/users",
|
|
19530
|
+
"streaming": "no",
|
|
19531
|
+
"pagination": false,
|
|
19532
|
+
"pathParams": [],
|
|
19533
|
+
"query": [
|
|
19534
|
+
{
|
|
19535
|
+
"name": "page_size",
|
|
19536
|
+
"type": "integer",
|
|
19537
|
+
"required": false,
|
|
19538
|
+
"description": "Maximum end users in one page, from 1 to 100; defaults to 50."
|
|
19539
|
+
},
|
|
19540
|
+
{
|
|
19541
|
+
"name": "page_token",
|
|
19542
|
+
"type": "string",
|
|
19543
|
+
"required": false,
|
|
19544
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
19545
|
+
},
|
|
19546
|
+
{
|
|
19547
|
+
"name": "type",
|
|
19548
|
+
"type": "string",
|
|
19549
|
+
"enum": [
|
|
19550
|
+
"identified",
|
|
19551
|
+
"anonymous"
|
|
19552
|
+
],
|
|
19553
|
+
"required": false,
|
|
19554
|
+
"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."
|
|
19555
|
+
},
|
|
19556
|
+
{
|
|
19557
|
+
"name": "blocked",
|
|
19558
|
+
"type": "boolean",
|
|
19559
|
+
"required": false,
|
|
19560
|
+
"description": "true for blocked end users only, false for end users who are not blocked; omit for both."
|
|
19561
|
+
},
|
|
19562
|
+
{
|
|
19563
|
+
"name": "resource",
|
|
19564
|
+
"type": "string",
|
|
19565
|
+
"required": false,
|
|
19566
|
+
"description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
|
|
19567
|
+
},
|
|
19568
|
+
{
|
|
19569
|
+
"name": "q",
|
|
19570
|
+
"type": "string",
|
|
19571
|
+
"required": false,
|
|
19572
|
+
"description": "Only end users whose end user id starts with this prefix, for example cus_; omit for every id."
|
|
19573
|
+
}
|
|
19574
|
+
]
|
|
19575
|
+
},
|
|
19576
|
+
{
|
|
19577
|
+
"resource": "end.users",
|
|
19578
|
+
"method": "delete",
|
|
19579
|
+
"summary": "Delete an end user",
|
|
19580
|
+
"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.",
|
|
19581
|
+
"http": "DELETE",
|
|
19582
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19583
|
+
"streaming": "no",
|
|
19584
|
+
"pagination": false,
|
|
19585
|
+
"pathParams": [
|
|
19586
|
+
{
|
|
19587
|
+
"name": "end_user_id",
|
|
19588
|
+
"sdkName": "end_user_id",
|
|
19589
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19590
|
+
}
|
|
19591
|
+
],
|
|
19592
|
+
"query": [
|
|
19593
|
+
{
|
|
19594
|
+
"name": "confirm",
|
|
19595
|
+
"type": "string",
|
|
19596
|
+
"required": true,
|
|
19597
|
+
"description": "The end_user_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
|
|
19598
|
+
}
|
|
19599
|
+
]
|
|
19600
|
+
},
|
|
19601
|
+
{
|
|
19602
|
+
"resource": "end.users",
|
|
19603
|
+
"method": "retrieve",
|
|
19604
|
+
"summary": "Get an end user",
|
|
19605
|
+
"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.",
|
|
19606
|
+
"http": "GET",
|
|
19607
|
+
"path": "/end/v1/users/{end_user_id}",
|
|
19608
|
+
"streaming": "no",
|
|
19609
|
+
"pagination": false,
|
|
19610
|
+
"pathParams": [
|
|
19611
|
+
{
|
|
19612
|
+
"name": "end_user_id",
|
|
19613
|
+
"sdkName": "end_user_id",
|
|
19614
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19615
|
+
}
|
|
19616
|
+
],
|
|
19617
|
+
"query": [
|
|
19618
|
+
{
|
|
19619
|
+
"name": "expand",
|
|
19620
|
+
"type": "string",
|
|
19621
|
+
"required": false,
|
|
19622
|
+
"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."
|
|
19623
|
+
}
|
|
19624
|
+
]
|
|
19625
|
+
},
|
|
19626
|
+
{
|
|
19627
|
+
"resource": "end.users",
|
|
19628
|
+
"method": "block",
|
|
19629
|
+
"summary": "Block an end user",
|
|
19630
|
+
"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.",
|
|
19631
|
+
"http": "POST",
|
|
19632
|
+
"path": "/end/v1/users/{end_user_id}/block",
|
|
19633
|
+
"streaming": "no",
|
|
19634
|
+
"pagination": false,
|
|
19635
|
+
"pathParams": [
|
|
19636
|
+
{
|
|
19637
|
+
"name": "end_user_id",
|
|
19638
|
+
"sdkName": "end_user_id",
|
|
19639
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19640
|
+
}
|
|
19641
|
+
],
|
|
19642
|
+
"query": [],
|
|
19643
|
+
"body": {
|
|
19644
|
+
"required": false,
|
|
19645
|
+
"fields": [
|
|
19646
|
+
{
|
|
19647
|
+
"name": "reason",
|
|
19648
|
+
"type": "string",
|
|
19649
|
+
"required": false,
|
|
19650
|
+
"description": "Why the end user is blocked, recorded with the block fact; omit for none."
|
|
19651
|
+
}
|
|
19652
|
+
]
|
|
19653
|
+
}
|
|
19654
|
+
},
|
|
19655
|
+
{
|
|
19656
|
+
"resource": "end.users",
|
|
19657
|
+
"method": "revokeTokens",
|
|
19658
|
+
"summary": "Revoke every token of an end user",
|
|
19659
|
+
"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.",
|
|
19660
|
+
"http": "POST",
|
|
19661
|
+
"path": "/end/v1/users/{end_user_id}/revoke_tokens",
|
|
19662
|
+
"streaming": "no",
|
|
19663
|
+
"pagination": false,
|
|
19664
|
+
"pathParams": [
|
|
19665
|
+
{
|
|
19666
|
+
"name": "end_user_id",
|
|
19667
|
+
"sdkName": "end_user_id",
|
|
19668
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19669
|
+
}
|
|
19670
|
+
],
|
|
19671
|
+
"query": []
|
|
19672
|
+
},
|
|
19673
|
+
{
|
|
19674
|
+
"resource": "end.users",
|
|
19675
|
+
"method": "unblock",
|
|
19676
|
+
"summary": "Unblock an end user",
|
|
19677
|
+
"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.",
|
|
19678
|
+
"http": "POST",
|
|
19679
|
+
"path": "/end/v1/users/{end_user_id}/unblock",
|
|
19680
|
+
"streaming": "no",
|
|
19681
|
+
"pagination": false,
|
|
19682
|
+
"pathParams": [
|
|
19683
|
+
{
|
|
19684
|
+
"name": "end_user_id",
|
|
19685
|
+
"sdkName": "end_user_id",
|
|
19686
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19687
|
+
}
|
|
19688
|
+
],
|
|
19689
|
+
"query": []
|
|
19690
|
+
},
|
|
19691
|
+
{
|
|
19692
|
+
"resource": "end.usage",
|
|
19693
|
+
"method": "retrieve",
|
|
19694
|
+
"summary": "Read end-user usage",
|
|
19695
|
+
"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.",
|
|
19696
|
+
"http": "GET",
|
|
19697
|
+
"path": "/end/v1/users/{end_user_id}/usage",
|
|
19698
|
+
"streaming": "no",
|
|
19699
|
+
"pagination": false,
|
|
19700
|
+
"pathParams": [
|
|
19701
|
+
{
|
|
19702
|
+
"name": "end_user_id",
|
|
19703
|
+
"sdkName": "end_user_id",
|
|
19704
|
+
"description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
|
|
19705
|
+
}
|
|
19706
|
+
],
|
|
19707
|
+
"query": [
|
|
19708
|
+
{
|
|
19709
|
+
"name": "from",
|
|
19710
|
+
"type": "string",
|
|
19711
|
+
"required": false,
|
|
19712
|
+
"description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
|
|
19713
|
+
},
|
|
19714
|
+
{
|
|
19715
|
+
"name": "to",
|
|
19716
|
+
"type": "string",
|
|
19717
|
+
"required": false,
|
|
19718
|
+
"description": "End of the window as an RFC 3339 time, exclusive; omit for now."
|
|
19719
|
+
}
|
|
19720
|
+
]
|
|
19721
|
+
},
|
|
19722
|
+
{
|
|
19723
|
+
"resource": "events.subscriptions",
|
|
19724
|
+
"method": "list",
|
|
19725
|
+
"summary": "List event subscriptions",
|
|
19726
|
+
"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.",
|
|
19727
|
+
"http": "GET",
|
|
19728
|
+
"path": "/events/v1/subscriptions",
|
|
19729
|
+
"streaming": "no",
|
|
19730
|
+
"pagination": false,
|
|
19731
|
+
"pathParams": [],
|
|
19732
|
+
"query": [
|
|
19733
|
+
{
|
|
19734
|
+
"name": "limit",
|
|
19735
|
+
"type": "integer",
|
|
19736
|
+
"required": false,
|
|
19737
|
+
"description": "Maximum subscriptions to return, from 1 to 100; defaults to 50."
|
|
19738
|
+
}
|
|
19739
|
+
]
|
|
19740
|
+
},
|
|
19741
|
+
{
|
|
19742
|
+
"resource": "events.subscriptions",
|
|
19743
|
+
"method": "create",
|
|
19744
|
+
"summary": "Create event subscription",
|
|
19745
|
+
"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.",
|
|
18849
19746
|
"http": "POST",
|
|
18850
|
-
"path": "/
|
|
19747
|
+
"path": "/events/v1/subscriptions",
|
|
18851
19748
|
"streaming": "no",
|
|
18852
19749
|
"pagination": false,
|
|
18853
|
-
"pathParams": [
|
|
18854
|
-
{
|
|
18855
|
-
"name": "id",
|
|
18856
|
-
"sdkName": "id",
|
|
18857
|
-
"description": "The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for."
|
|
18858
|
-
}
|
|
18859
|
-
],
|
|
19750
|
+
"pathParams": [],
|
|
18860
19751
|
"query": [],
|
|
18861
19752
|
"body": {
|
|
18862
19753
|
"required": true,
|
|
18863
19754
|
"fields": [
|
|
18864
19755
|
{
|
|
18865
|
-
"name": "
|
|
18866
|
-
"type": "
|
|
19756
|
+
"name": "types",
|
|
19757
|
+
"type": "array",
|
|
19758
|
+
"itemType": "string",
|
|
18867
19759
|
"required": true,
|
|
18868
|
-
"description": "
|
|
19760
|
+
"description": "The tenant event types to hear about, from events.types.list; an event of any one of them can match."
|
|
18869
19761
|
},
|
|
18870
19762
|
{
|
|
18871
|
-
"name": "
|
|
19763
|
+
"name": "filters",
|
|
19764
|
+
"type": "array",
|
|
19765
|
+
"itemType": "object",
|
|
19766
|
+
"required": false,
|
|
19767
|
+
"description": "Conditions that must all hold for an event to match; omit or leave empty to match every event of the types."
|
|
19768
|
+
},
|
|
19769
|
+
{
|
|
19770
|
+
"name": "sink",
|
|
18872
19771
|
"type": "string",
|
|
18873
|
-
"required":
|
|
18874
|
-
"description": "The
|
|
19772
|
+
"required": false,
|
|
19773
|
+
"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."
|
|
19774
|
+
},
|
|
19775
|
+
{
|
|
19776
|
+
"name": "once",
|
|
19777
|
+
"type": "boolean",
|
|
19778
|
+
"required": false,
|
|
19779
|
+
"description": "True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour."
|
|
19780
|
+
},
|
|
19781
|
+
{
|
|
19782
|
+
"name": "expires_at",
|
|
19783
|
+
"type": "string",
|
|
19784
|
+
"required": false,
|
|
19785
|
+
"description": "When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now."
|
|
18875
19786
|
}
|
|
18876
19787
|
]
|
|
18877
19788
|
}
|
|
18878
19789
|
},
|
|
18879
19790
|
{
|
|
18880
|
-
"resource": "
|
|
18881
|
-
"method": "
|
|
18882
|
-
"summary": "
|
|
18883
|
-
"description": "
|
|
18884
|
-
"http": "
|
|
18885
|
-
"path": "/
|
|
19791
|
+
"resource": "events.subscriptions",
|
|
19792
|
+
"method": "delete",
|
|
19793
|
+
"summary": "Delete event subscription",
|
|
19794
|
+
"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.",
|
|
19795
|
+
"http": "DELETE",
|
|
19796
|
+
"path": "/events/v1/subscriptions/{subscription_id}",
|
|
18886
19797
|
"streaming": "no",
|
|
18887
19798
|
"pagination": false,
|
|
18888
19799
|
"pathParams": [
|
|
18889
19800
|
{
|
|
18890
|
-
"name": "
|
|
18891
|
-
"sdkName": "
|
|
18892
|
-
"description": "
|
|
19801
|
+
"name": "subscription_id",
|
|
19802
|
+
"sdkName": "subscription_id",
|
|
19803
|
+
"description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
|
|
18893
19804
|
}
|
|
18894
19805
|
],
|
|
18895
19806
|
"query": []
|
|
18896
19807
|
},
|
|
18897
19808
|
{
|
|
18898
|
-
"resource": "
|
|
18899
|
-
"method": "
|
|
18900
|
-
"summary": "
|
|
18901
|
-
"description": "
|
|
18902
|
-
"http": "
|
|
18903
|
-
"path": "/
|
|
19809
|
+
"resource": "events.subscriptions",
|
|
19810
|
+
"method": "retrieve",
|
|
19811
|
+
"summary": "Retrieve event subscription",
|
|
19812
|
+
"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.",
|
|
19813
|
+
"http": "GET",
|
|
19814
|
+
"path": "/events/v1/subscriptions/{subscription_id}",
|
|
18904
19815
|
"streaming": "no",
|
|
18905
19816
|
"pagination": false,
|
|
18906
19817
|
"pathParams": [
|
|
18907
19818
|
{
|
|
18908
|
-
"name": "
|
|
18909
|
-
"sdkName": "
|
|
18910
|
-
"description": "
|
|
19819
|
+
"name": "subscription_id",
|
|
19820
|
+
"sdkName": "subscription_id",
|
|
19821
|
+
"description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
|
|
18911
19822
|
}
|
|
18912
19823
|
],
|
|
18913
19824
|
"query": []
|
|
18914
19825
|
},
|
|
19826
|
+
{
|
|
19827
|
+
"resource": "events.types",
|
|
19828
|
+
"method": "list",
|
|
19829
|
+
"summary": "List event types",
|
|
19830
|
+
"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.",
|
|
19831
|
+
"http": "GET",
|
|
19832
|
+
"path": "/events/v1/types",
|
|
19833
|
+
"streaming": "no",
|
|
19834
|
+
"pagination": false,
|
|
19835
|
+
"pathParams": [],
|
|
19836
|
+
"query": []
|
|
19837
|
+
},
|
|
18915
19838
|
{
|
|
18916
19839
|
"resource": "file.files",
|
|
18917
19840
|
"method": "list",
|
|
@@ -21180,6 +22103,42 @@ export const operations = [
|
|
|
21180
22103
|
],
|
|
21181
22104
|
"query": []
|
|
21182
22105
|
},
|
|
22106
|
+
{
|
|
22107
|
+
"resource": "media.libraries.assets.works",
|
|
22108
|
+
"method": "list",
|
|
22109
|
+
"summary": "List works using an asset",
|
|
22110
|
+
"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.",
|
|
22111
|
+
"http": "GET",
|
|
22112
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/works",
|
|
22113
|
+
"streaming": "no",
|
|
22114
|
+
"pagination": true,
|
|
22115
|
+
"pathParams": [
|
|
22116
|
+
{
|
|
22117
|
+
"name": "library_id",
|
|
22118
|
+
"sdkName": "library_id",
|
|
22119
|
+
"description": "Library ID returned by creation."
|
|
22120
|
+
},
|
|
22121
|
+
{
|
|
22122
|
+
"name": "asset_id",
|
|
22123
|
+
"sdkName": "asset_id",
|
|
22124
|
+
"description": "32-character asset ID."
|
|
22125
|
+
}
|
|
22126
|
+
],
|
|
22127
|
+
"query": [
|
|
22128
|
+
{
|
|
22129
|
+
"name": "limit",
|
|
22130
|
+
"type": "integer",
|
|
22131
|
+
"required": false,
|
|
22132
|
+
"description": "Maximum entries in this page, from 1 through 100; defaults to 100."
|
|
22133
|
+
},
|
|
22134
|
+
{
|
|
22135
|
+
"name": "cursor",
|
|
22136
|
+
"type": "string",
|
|
22137
|
+
"required": false,
|
|
22138
|
+
"description": "Cursor from the previous next_cursor."
|
|
22139
|
+
}
|
|
22140
|
+
]
|
|
22141
|
+
},
|
|
21183
22142
|
{
|
|
21184
22143
|
"resource": "media.libraries.assets",
|
|
21185
22144
|
"method": "batch",
|
|
@@ -22441,10 +23400,219 @@ export const operations = [
|
|
|
22441
23400
|
"description": "Language the previews speak: zh or en only."
|
|
22442
23401
|
},
|
|
22443
23402
|
{
|
|
22444
|
-
"name": "count",
|
|
23403
|
+
"name": "count",
|
|
23404
|
+
"type": "number",
|
|
23405
|
+
"required": false,
|
|
23406
|
+
"description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
|
|
23407
|
+
}
|
|
23408
|
+
]
|
|
23409
|
+
}
|
|
23410
|
+
},
|
|
23411
|
+
{
|
|
23412
|
+
"resource": "media.libraries.works",
|
|
23413
|
+
"method": "list",
|
|
23414
|
+
"summary": "List works",
|
|
23415
|
+
"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.",
|
|
23416
|
+
"http": "GET",
|
|
23417
|
+
"path": "/media/v1/libraries/{library_id}/works",
|
|
23418
|
+
"streaming": "no",
|
|
23419
|
+
"pagination": true,
|
|
23420
|
+
"pathParams": [
|
|
23421
|
+
{
|
|
23422
|
+
"name": "library_id",
|
|
23423
|
+
"sdkName": "library_id",
|
|
23424
|
+
"description": "Library ID returned by creation."
|
|
23425
|
+
}
|
|
23426
|
+
],
|
|
23427
|
+
"query": [
|
|
23428
|
+
{
|
|
23429
|
+
"name": "kind",
|
|
23430
|
+
"type": "string",
|
|
23431
|
+
"enum": [
|
|
23432
|
+
"gallery",
|
|
23433
|
+
"article",
|
|
23434
|
+
"product_listing",
|
|
23435
|
+
"blocks"
|
|
23436
|
+
],
|
|
23437
|
+
"required": false,
|
|
23438
|
+
"description": "Only works of this kind: gallery, article, product_listing or blocks."
|
|
23439
|
+
},
|
|
23440
|
+
{
|
|
23441
|
+
"name": "series",
|
|
23442
|
+
"type": "string",
|
|
23443
|
+
"required": false,
|
|
23444
|
+
"description": "Only works of this series."
|
|
23445
|
+
},
|
|
23446
|
+
{
|
|
23447
|
+
"name": "q",
|
|
23448
|
+
"type": "string",
|
|
23449
|
+
"required": false,
|
|
23450
|
+
"description": "Only works whose title contains this text, at most 100 characters."
|
|
23451
|
+
},
|
|
23452
|
+
{
|
|
23453
|
+
"name": "limit",
|
|
23454
|
+
"type": "integer",
|
|
23455
|
+
"required": false,
|
|
23456
|
+
"description": "Maximum entries in this page, from 1 through 100; defaults to 100."
|
|
23457
|
+
},
|
|
23458
|
+
{
|
|
23459
|
+
"name": "cursor",
|
|
23460
|
+
"type": "string",
|
|
23461
|
+
"required": false,
|
|
23462
|
+
"description": "Cursor from the previous next_cursor."
|
|
23463
|
+
}
|
|
23464
|
+
]
|
|
23465
|
+
},
|
|
23466
|
+
{
|
|
23467
|
+
"resource": "media.libraries.works",
|
|
23468
|
+
"method": "create",
|
|
23469
|
+
"summary": "Create work",
|
|
23470
|
+
"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>\"}]}}.",
|
|
23471
|
+
"http": "POST",
|
|
23472
|
+
"path": "/media/v1/libraries/{library_id}/works",
|
|
23473
|
+
"streaming": "no",
|
|
23474
|
+
"pagination": false,
|
|
23475
|
+
"pathParams": [
|
|
23476
|
+
{
|
|
23477
|
+
"name": "library_id",
|
|
23478
|
+
"sdkName": "library_id",
|
|
23479
|
+
"description": "Library ID returned by creation."
|
|
23480
|
+
}
|
|
23481
|
+
],
|
|
23482
|
+
"query": [],
|
|
23483
|
+
"body": {
|
|
23484
|
+
"required": true,
|
|
23485
|
+
"fields": [
|
|
23486
|
+
{
|
|
23487
|
+
"name": "kind",
|
|
23488
|
+
"type": "string",
|
|
23489
|
+
"enum": [
|
|
23490
|
+
"gallery",
|
|
23491
|
+
"article",
|
|
23492
|
+
"product_listing",
|
|
23493
|
+
"blocks"
|
|
23494
|
+
],
|
|
23495
|
+
"required": true,
|
|
23496
|
+
"description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
|
|
23497
|
+
},
|
|
23498
|
+
{
|
|
23499
|
+
"name": "body",
|
|
23500
|
+
"type": "object",
|
|
23501
|
+
"required": true
|
|
23502
|
+
},
|
|
23503
|
+
{
|
|
23504
|
+
"name": "series",
|
|
23505
|
+
"type": "string",
|
|
23506
|
+
"required": false,
|
|
23507
|
+
"description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
|
|
23508
|
+
},
|
|
23509
|
+
{
|
|
23510
|
+
"name": "custom",
|
|
23511
|
+
"type": "object",
|
|
23512
|
+
"required": false
|
|
23513
|
+
}
|
|
23514
|
+
]
|
|
23515
|
+
}
|
|
23516
|
+
},
|
|
23517
|
+
{
|
|
23518
|
+
"resource": "media.libraries.works",
|
|
23519
|
+
"method": "delete",
|
|
23520
|
+
"summary": "Delete work",
|
|
23521
|
+
"description": "Delete a work. Only the work goes: every asset it named stays in the library unchanged.",
|
|
23522
|
+
"http": "DELETE",
|
|
23523
|
+
"path": "/media/v1/libraries/{library_id}/works/{work_id}",
|
|
23524
|
+
"streaming": "no",
|
|
23525
|
+
"pagination": false,
|
|
23526
|
+
"pathParams": [
|
|
23527
|
+
{
|
|
23528
|
+
"name": "library_id",
|
|
23529
|
+
"sdkName": "library_id",
|
|
23530
|
+
"description": "Library ID returned by creation."
|
|
23531
|
+
},
|
|
23532
|
+
{
|
|
23533
|
+
"name": "work_id",
|
|
23534
|
+
"sdkName": "work_id",
|
|
23535
|
+
"description": "Work id (wrk_…) returned by creation or listing."
|
|
23536
|
+
}
|
|
23537
|
+
],
|
|
23538
|
+
"query": []
|
|
23539
|
+
},
|
|
23540
|
+
{
|
|
23541
|
+
"resource": "media.libraries.works",
|
|
23542
|
+
"method": "retrieve",
|
|
23543
|
+
"summary": "Get work",
|
|
23544
|
+
"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.",
|
|
23545
|
+
"http": "GET",
|
|
23546
|
+
"path": "/media/v1/libraries/{library_id}/works/{work_id}",
|
|
23547
|
+
"streaming": "no",
|
|
23548
|
+
"pagination": false,
|
|
23549
|
+
"pathParams": [
|
|
23550
|
+
{
|
|
23551
|
+
"name": "library_id",
|
|
23552
|
+
"sdkName": "library_id",
|
|
23553
|
+
"description": "Library ID returned by creation."
|
|
23554
|
+
},
|
|
23555
|
+
{
|
|
23556
|
+
"name": "work_id",
|
|
23557
|
+
"sdkName": "work_id",
|
|
23558
|
+
"description": "Work id (wrk_…) returned by creation or listing."
|
|
23559
|
+
}
|
|
23560
|
+
],
|
|
23561
|
+
"query": [
|
|
23562
|
+
{
|
|
23563
|
+
"name": "expand",
|
|
23564
|
+
"type": "string",
|
|
23565
|
+
"required": false,
|
|
23566
|
+
"description": "assets returns every referenced asset with its URLs and size."
|
|
23567
|
+
}
|
|
23568
|
+
]
|
|
23569
|
+
},
|
|
23570
|
+
{
|
|
23571
|
+
"resource": "media.libraries.works",
|
|
23572
|
+
"method": "update",
|
|
23573
|
+
"summary": "Update work",
|
|
23574
|
+
"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}}}.",
|
|
23575
|
+
"http": "PATCH",
|
|
23576
|
+
"path": "/media/v1/libraries/{library_id}/works/{work_id}",
|
|
23577
|
+
"streaming": "no",
|
|
23578
|
+
"pagination": false,
|
|
23579
|
+
"pathParams": [
|
|
23580
|
+
{
|
|
23581
|
+
"name": "library_id",
|
|
23582
|
+
"sdkName": "library_id",
|
|
23583
|
+
"description": "Library ID returned by creation."
|
|
23584
|
+
},
|
|
23585
|
+
{
|
|
23586
|
+
"name": "work_id",
|
|
23587
|
+
"sdkName": "work_id",
|
|
23588
|
+
"description": "Work id (wrk_…) returned by creation or listing."
|
|
23589
|
+
}
|
|
23590
|
+
],
|
|
23591
|
+
"query": [],
|
|
23592
|
+
"body": {
|
|
23593
|
+
"required": true,
|
|
23594
|
+
"fields": [
|
|
23595
|
+
{
|
|
23596
|
+
"name": "body",
|
|
23597
|
+
"type": "object",
|
|
23598
|
+
"required": false
|
|
23599
|
+
},
|
|
23600
|
+
{
|
|
23601
|
+
"name": "series",
|
|
23602
|
+
"type": "string",
|
|
23603
|
+
"required": false,
|
|
23604
|
+
"description": "A new series, or null to clear it."
|
|
23605
|
+
},
|
|
23606
|
+
{
|
|
23607
|
+
"name": "custom",
|
|
23608
|
+
"type": "object",
|
|
23609
|
+
"required": false
|
|
23610
|
+
},
|
|
23611
|
+
{
|
|
23612
|
+
"name": "if_revision",
|
|
22445
23613
|
"type": "number",
|
|
22446
23614
|
"required": false,
|
|
22447
|
-
"description": "
|
|
23615
|
+
"description": "Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision."
|
|
22448
23616
|
}
|
|
22449
23617
|
]
|
|
22450
23618
|
}
|
|
@@ -23177,7 +24345,7 @@ export const operations = [
|
|
|
23177
24345
|
"resource": "model.audio.speech",
|
|
23178
24346
|
"method": "create",
|
|
23179
24347
|
"summary": "Generate speech",
|
|
23180
|
-
"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
|
|
24348
|
+
"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\"}.",
|
|
23181
24349
|
"http": "POST",
|
|
23182
24350
|
"path": "/model/v1/audio/speech",
|
|
23183
24351
|
"streaming": "no",
|
|
@@ -23191,19 +24359,19 @@ export const operations = [
|
|
|
23191
24359
|
"name": "model",
|
|
23192
24360
|
"type": "string",
|
|
23193
24361
|
"required": true,
|
|
23194
|
-
"description": "Speech model id, for example `
|
|
24362
|
+
"description": "Speech model id, for example `aura-2-en`; list candidates with listModels?type=speech. Router support (supported): Verified to take effect."
|
|
23195
24363
|
},
|
|
23196
24364
|
{
|
|
23197
24365
|
"name": "input",
|
|
23198
24366
|
"type": "string",
|
|
23199
24367
|
"required": false,
|
|
23200
|
-
"description": "Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported):
|
|
24368
|
+
"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."
|
|
23201
24369
|
},
|
|
23202
24370
|
{
|
|
23203
24371
|
"name": "voice",
|
|
23204
24372
|
"type": "object",
|
|
23205
24373
|
"required": false,
|
|
23206
|
-
"description": "Aura speaker name; custom voice objects are rejected by Aura.
|
|
24374
|
+
"description": "Aura speaker name; custom voice objects are rejected by Aura."
|
|
23207
24375
|
},
|
|
23208
24376
|
{
|
|
23209
24377
|
"name": "instructions",
|
|
@@ -23222,7 +24390,7 @@ export const operations = [
|
|
|
23222
24390
|
"pcm"
|
|
23223
24391
|
],
|
|
23224
24392
|
"required": false,
|
|
23225
|
-
"description": "
|
|
24393
|
+
"description": "When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400."
|
|
23226
24394
|
},
|
|
23227
24395
|
{
|
|
23228
24396
|
"name": "speed",
|
|
@@ -23249,7 +24417,7 @@ export const operations = [
|
|
|
23249
24417
|
"name": "prompt",
|
|
23250
24418
|
"type": "string",
|
|
23251
24419
|
"required": false,
|
|
23252
|
-
"description": "
|
|
24420
|
+
"description": "Alias for input; input then text take precedence."
|
|
23253
24421
|
},
|
|
23254
24422
|
{
|
|
23255
24423
|
"name": "speaker",
|
|
@@ -23269,7 +24437,7 @@ export const operations = [
|
|
|
23269
24437
|
"ko"
|
|
23270
24438
|
],
|
|
23271
24439
|
"required": false,
|
|
23272
|
-
"description": "
|
|
24440
|
+
"description": "Language code. No speech model currently offered reads it. Aura rejects lang with 400 input_not_representable so omit it."
|
|
23273
24441
|
},
|
|
23274
24442
|
{
|
|
23275
24443
|
"name": "encoding",
|
|
@@ -26084,7 +27252,7 @@ export const operations = [
|
|
|
26084
27252
|
"resource": "organization.costs",
|
|
26085
27253
|
"method": "list",
|
|
26086
27254
|
"summary": "List Organization Costs",
|
|
26087
|
-
"description": "Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole
|
|
27255
|
+
"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",
|
|
26088
27256
|
"http": "GET",
|
|
26089
27257
|
"path": "/organization/v1/costs",
|
|
26090
27258
|
"streaming": "no",
|
|
@@ -26117,7 +27285,7 @@ export const operations = [
|
|
|
26117
27285
|
"name": "time_zone",
|
|
26118
27286
|
"type": "string",
|
|
26119
27287
|
"required": false,
|
|
26120
|
-
"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.
|
|
27288
|
+
"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"
|
|
26121
27289
|
},
|
|
26122
27290
|
{
|
|
26123
27291
|
"name": "group_by",
|
|
@@ -26127,10 +27295,14 @@ export const operations = [
|
|
|
26127
27295
|
"ServiceName",
|
|
26128
27296
|
"ServiceCategory",
|
|
26129
27297
|
"ResourceId",
|
|
26130
|
-
"ConsumedUnit"
|
|
27298
|
+
"ConsumedUnit",
|
|
27299
|
+
"SessionId",
|
|
27300
|
+
"AgentId",
|
|
27301
|
+
"ApiKeyId",
|
|
27302
|
+
"RunId"
|
|
26131
27303
|
],
|
|
26132
27304
|
"required": false,
|
|
26133
|
-
"description": "
|
|
27305
|
+
"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"
|
|
26134
27306
|
},
|
|
26135
27307
|
{
|
|
26136
27308
|
"name": "page",
|
|
@@ -26483,29 +27655,46 @@ export const operations = [
|
|
|
26483
27655
|
{
|
|
26484
27656
|
"resource": "organization.notifications.letters",
|
|
26485
27657
|
"method": "list",
|
|
26486
|
-
"summary": "List the letters addressed to you",
|
|
26487
|
-
"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.",
|
|
27658
|
+
"summary": "List the letters addressed to you, or the ones you sent",
|
|
27659
|
+
"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.",
|
|
26488
27660
|
"http": "GET",
|
|
26489
27661
|
"path": "/organization/v1/notifications/letters",
|
|
26490
27662
|
"streaming": "no",
|
|
26491
27663
|
"pagination": false,
|
|
26492
27664
|
"pathParams": [],
|
|
26493
27665
|
"query": [
|
|
27666
|
+
{
|
|
27667
|
+
"name": "direction",
|
|
27668
|
+
"type": "string",
|
|
27669
|
+
"enum": [
|
|
27670
|
+
"received",
|
|
27671
|
+
"sent"
|
|
27672
|
+
],
|
|
27673
|
+
"required": false,
|
|
27674
|
+
"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."
|
|
27675
|
+
},
|
|
26494
27676
|
{
|
|
26495
27677
|
"name": "status",
|
|
26496
27678
|
"type": "string",
|
|
26497
27679
|
"enum": [
|
|
26498
27680
|
"unread",
|
|
26499
|
-
"read"
|
|
27681
|
+
"read",
|
|
27682
|
+
"scheduled"
|
|
26500
27683
|
],
|
|
26501
27684
|
"required": false,
|
|
26502
|
-
"description": "Only unread letters, or only
|
|
27685
|
+
"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."
|
|
27686
|
+
},
|
|
27687
|
+
{
|
|
27688
|
+
"name": "thread",
|
|
27689
|
+
"type": "string",
|
|
27690
|
+
"required": false,
|
|
27691
|
+
"description": "Only letters of this conversation, for received and sent alike; omit for all."
|
|
26503
27692
|
},
|
|
26504
27693
|
{
|
|
26505
27694
|
"name": "archived",
|
|
26506
27695
|
"type": "boolean",
|
|
26507
27696
|
"required": false,
|
|
26508
|
-
"description": "false (the default) hides archived letters; true lists only the archived ones."
|
|
27697
|
+
"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."
|
|
26509
27698
|
},
|
|
26510
27699
|
{
|
|
26511
27700
|
"name": "limit",
|
|
@@ -26521,6 +27710,64 @@ export const operations = [
|
|
|
26521
27710
|
}
|
|
26522
27711
|
]
|
|
26523
27712
|
},
|
|
27713
|
+
{
|
|
27714
|
+
"resource": "organization.notifications.letters",
|
|
27715
|
+
"method": "create",
|
|
27716
|
+
"summary": "Send a letter to a person or an agent",
|
|
27717
|
+
"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 `sender` in the body is ignored. Who can send: a person's signed-in session (the person is the sender), a personal API key (it acts as the member who created it, and that member is recorded as the sender), an agent (it writes as itself), and an automation run (a scheduled or service-started one included; it writes as the platform's automation sender, with the run recorded in the letter's source). Who is refused with 403 `PERMISSION_DENIED`: a service-account API key and an application, which have no address to write from. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A newly created agent may answer 404 `SUBSCRIBER_NOT_FOUND` for a few seconds; retry shortly. 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.",
|
|
27718
|
+
"http": "POST",
|
|
27719
|
+
"path": "/organization/v1/notifications/letters",
|
|
27720
|
+
"streaming": "no",
|
|
27721
|
+
"pagination": false,
|
|
27722
|
+
"pathParams": [],
|
|
27723
|
+
"query": [],
|
|
27724
|
+
"body": {
|
|
27725
|
+
"required": true,
|
|
27726
|
+
"fields": [
|
|
27727
|
+
{
|
|
27728
|
+
"name": "to",
|
|
27729
|
+
"type": "string",
|
|
27730
|
+
"required": true,
|
|
27731
|
+
"description": "The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization."
|
|
27732
|
+
},
|
|
27733
|
+
{
|
|
27734
|
+
"name": "body",
|
|
27735
|
+
"type": "string",
|
|
27736
|
+
"required": true,
|
|
27737
|
+
"description": "The whole letter, 1 to 16000 characters."
|
|
27738
|
+
},
|
|
27739
|
+
{
|
|
27740
|
+
"name": "summary",
|
|
27741
|
+
"type": "string",
|
|
27742
|
+
"required": false,
|
|
27743
|
+
"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."
|
|
27744
|
+
},
|
|
27745
|
+
{
|
|
27746
|
+
"name": "kind",
|
|
27747
|
+
"type": "string",
|
|
27748
|
+
"enum": [
|
|
27749
|
+
"notice",
|
|
27750
|
+
"mention",
|
|
27751
|
+
"decision"
|
|
27752
|
+
],
|
|
27753
|
+
"required": false,
|
|
27754
|
+
"description": "The letter's kind; it decides the channels. Defaults to mention."
|
|
27755
|
+
},
|
|
27756
|
+
{
|
|
27757
|
+
"name": "thread",
|
|
27758
|
+
"type": "string",
|
|
27759
|
+
"required": false,
|
|
27760
|
+
"description": "The conversation the letter belongs to, free text; omit for none."
|
|
27761
|
+
},
|
|
27762
|
+
{
|
|
27763
|
+
"name": "deliver_at",
|
|
27764
|
+
"type": "string",
|
|
27765
|
+
"required": false,
|
|
27766
|
+
"description": "When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now."
|
|
27767
|
+
}
|
|
27768
|
+
]
|
|
27769
|
+
}
|
|
27770
|
+
},
|
|
26524
27771
|
{
|
|
26525
27772
|
"resource": "organization.notifications.letters",
|
|
26526
27773
|
"method": "retrieve",
|
|
@@ -26595,7 +27842,8 @@ export const operations = [
|
|
|
26595
27842
|
"enum": [
|
|
26596
27843
|
"notice",
|
|
26597
27844
|
"mention",
|
|
26598
|
-
"decision"
|
|
27845
|
+
"decision",
|
|
27846
|
+
"event"
|
|
26599
27847
|
],
|
|
26600
27848
|
"required": false,
|
|
26601
27849
|
"description": "Only letters of this kind; omit for all kinds."
|
|
@@ -26603,6 +27851,124 @@ export const operations = [
|
|
|
26603
27851
|
]
|
|
26604
27852
|
}
|
|
26605
27853
|
},
|
|
27854
|
+
{
|
|
27855
|
+
"resource": "organization.notifications.messages",
|
|
27856
|
+
"method": "list",
|
|
27857
|
+
"summary": "List your bell messages",
|
|
27858
|
+
"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.",
|
|
27859
|
+
"http": "GET",
|
|
27860
|
+
"path": "/organization/v1/notifications/messages",
|
|
27861
|
+
"streaming": "no",
|
|
27862
|
+
"pagination": false,
|
|
27863
|
+
"pathParams": [],
|
|
27864
|
+
"query": [
|
|
27865
|
+
{
|
|
27866
|
+
"name": "archived",
|
|
27867
|
+
"type": "string",
|
|
27868
|
+
"enum": [
|
|
27869
|
+
"0",
|
|
27870
|
+
"1"
|
|
27871
|
+
],
|
|
27872
|
+
"required": false,
|
|
27873
|
+
"description": "0 (the default) lists the inbox tab, 1 lists archived messages."
|
|
27874
|
+
},
|
|
27875
|
+
{
|
|
27876
|
+
"name": "limit",
|
|
27877
|
+
"type": "integer",
|
|
27878
|
+
"required": false,
|
|
27879
|
+
"description": "Messages per page, 1 to 100; defaults to 20."
|
|
27880
|
+
},
|
|
27881
|
+
{
|
|
27882
|
+
"name": "page",
|
|
27883
|
+
"type": "string",
|
|
27884
|
+
"required": false,
|
|
27885
|
+
"description": "Opaque nextPageToken from the previous response; omit for the first page."
|
|
27886
|
+
}
|
|
27887
|
+
]
|
|
27888
|
+
},
|
|
27889
|
+
{
|
|
27890
|
+
"resource": "organization.notifications.messages",
|
|
27891
|
+
"method": "delete",
|
|
27892
|
+
"summary": "Delete one of your bell messages",
|
|
27893
|
+
"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.",
|
|
27894
|
+
"http": "DELETE",
|
|
27895
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
27896
|
+
"streaming": "no",
|
|
27897
|
+
"pagination": false,
|
|
27898
|
+
"pathParams": [
|
|
27899
|
+
{
|
|
27900
|
+
"name": "name",
|
|
27901
|
+
"sdkName": "name",
|
|
27902
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
27903
|
+
}
|
|
27904
|
+
],
|
|
27905
|
+
"query": []
|
|
27906
|
+
},
|
|
27907
|
+
{
|
|
27908
|
+
"resource": "organization.notifications.messages",
|
|
27909
|
+
"method": "retrieve",
|
|
27910
|
+
"summary": "Open one of your bell messages",
|
|
27911
|
+
"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.",
|
|
27912
|
+
"http": "GET",
|
|
27913
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
27914
|
+
"streaming": "no",
|
|
27915
|
+
"pagination": false,
|
|
27916
|
+
"pathParams": [
|
|
27917
|
+
{
|
|
27918
|
+
"name": "name",
|
|
27919
|
+
"sdkName": "name",
|
|
27920
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
27921
|
+
}
|
|
27922
|
+
],
|
|
27923
|
+
"query": []
|
|
27924
|
+
},
|
|
27925
|
+
{
|
|
27926
|
+
"resource": "organization.notifications.messages",
|
|
27927
|
+
"method": "update",
|
|
27928
|
+
"summary": "Mark one of your bell messages read or archived",
|
|
27929
|
+
"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.",
|
|
27930
|
+
"http": "POST",
|
|
27931
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
27932
|
+
"streaming": "no",
|
|
27933
|
+
"pagination": false,
|
|
27934
|
+
"pathParams": [
|
|
27935
|
+
{
|
|
27936
|
+
"name": "name",
|
|
27937
|
+
"sdkName": "name",
|
|
27938
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
27939
|
+
}
|
|
27940
|
+
],
|
|
27941
|
+
"query": [],
|
|
27942
|
+
"body": {
|
|
27943
|
+
"required": true,
|
|
27944
|
+
"fields": [
|
|
27945
|
+
{
|
|
27946
|
+
"name": "read",
|
|
27947
|
+
"type": "boolean",
|
|
27948
|
+
"required": false,
|
|
27949
|
+
"description": "Mark the message read (true) or unread (false); omit to leave it."
|
|
27950
|
+
},
|
|
27951
|
+
{
|
|
27952
|
+
"name": "archived",
|
|
27953
|
+
"type": "boolean",
|
|
27954
|
+
"required": false,
|
|
27955
|
+
"description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
|
|
27956
|
+
}
|
|
27957
|
+
]
|
|
27958
|
+
}
|
|
27959
|
+
},
|
|
27960
|
+
{
|
|
27961
|
+
"resource": "organization.notifications.messages",
|
|
27962
|
+
"method": "readAll",
|
|
27963
|
+
"summary": "Mark all your unread bell messages read",
|
|
27964
|
+
"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.",
|
|
27965
|
+
"http": "POST",
|
|
27966
|
+
"path": "/organization/v1/notifications/messages:readAll",
|
|
27967
|
+
"streaming": "no",
|
|
27968
|
+
"pagination": false,
|
|
27969
|
+
"pathParams": [],
|
|
27970
|
+
"query": []
|
|
27971
|
+
},
|
|
26606
27972
|
{
|
|
26607
27973
|
"resource": "organization.notifications",
|
|
26608
27974
|
"method": "retrieveOrganizationDefault",
|
|
@@ -26714,7 +28080,7 @@ export const operations = [
|
|
|
26714
28080
|
"resource": "organization.usage",
|
|
26715
28081
|
"method": "list",
|
|
26716
28082
|
"summary": "List Organization Usage",
|
|
26717
|
-
"description": "Consumed quantity per time bucket per group. Buckets are whole
|
|
28083
|
+
"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",
|
|
26718
28084
|
"http": "GET",
|
|
26719
28085
|
"path": "/organization/v1/usage",
|
|
26720
28086
|
"streaming": "no",
|
|
@@ -26747,7 +28113,7 @@ export const operations = [
|
|
|
26747
28113
|
"name": "time_zone",
|
|
26748
28114
|
"type": "string",
|
|
26749
28115
|
"required": false,
|
|
26750
|
-
"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.
|
|
28116
|
+
"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"
|
|
26751
28117
|
},
|
|
26752
28118
|
{
|
|
26753
28119
|
"name": "group_by",
|
|
@@ -26757,10 +28123,14 @@ export const operations = [
|
|
|
26757
28123
|
"ServiceName",
|
|
26758
28124
|
"ServiceCategory",
|
|
26759
28125
|
"ResourceId",
|
|
26760
|
-
"ConsumedUnit"
|
|
28126
|
+
"ConsumedUnit",
|
|
28127
|
+
"SessionId",
|
|
28128
|
+
"AgentId",
|
|
28129
|
+
"ApiKeyId",
|
|
28130
|
+
"RunId"
|
|
26761
28131
|
],
|
|
26762
28132
|
"required": false,
|
|
26763
|
-
"description": "
|
|
28133
|
+
"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"
|
|
26764
28134
|
},
|
|
26765
28135
|
{
|
|
26766
28136
|
"name": "page",
|
|
@@ -27785,6 +29155,24 @@ export const operations = [
|
|
|
27785
29155
|
]
|
|
27786
29156
|
}
|
|
27787
29157
|
},
|
|
29158
|
+
{
|
|
29159
|
+
"resource": "sandbox.byod.pairings",
|
|
29160
|
+
"method": "status",
|
|
29161
|
+
"summary": "Read which device claimed your pairing",
|
|
29162
|
+
"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}.",
|
|
29163
|
+
"http": "GET",
|
|
29164
|
+
"path": "/sandbox/v1/byod/pairings/{code}/status",
|
|
29165
|
+
"streaming": "no",
|
|
29166
|
+
"pagination": false,
|
|
29167
|
+
"pathParams": [
|
|
29168
|
+
{
|
|
29169
|
+
"name": "code",
|
|
29170
|
+
"sdkName": "code",
|
|
29171
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
29172
|
+
}
|
|
29173
|
+
],
|
|
29174
|
+
"query": []
|
|
29175
|
+
},
|
|
27788
29176
|
{
|
|
27789
29177
|
"resource": "sandbox.events.sandboxes",
|
|
27790
29178
|
"method": "retrieve",
|
|
@@ -27903,7 +29291,7 @@ export const operations = [
|
|
|
27903
29291
|
"resource": "sandbox.sandboxes",
|
|
27904
29292
|
"method": "create",
|
|
27905
29293
|
"summary": "Create sandbox (v2)",
|
|
27906
|
-
"description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots,
|
|
29294
|
+
"description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.",
|
|
27907
29295
|
"http": "POST",
|
|
27908
29296
|
"path": "/sandbox/v1/sandboxes",
|
|
27909
29297
|
"streaming": "no",
|
|
@@ -27947,7 +29335,7 @@ export const operations = [
|
|
|
27947
29335
|
"name": "allow_internet_access",
|
|
27948
29336
|
"type": "boolean",
|
|
27949
29337
|
"required": false,
|
|
27950
|
-
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
|
|
29338
|
+
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config. Not available yet: egress control is not implemented, so any value answers 501 PROVIDER_UNSUPPORTED; omit it (internet access is on by default)."
|
|
27951
29339
|
},
|
|
27952
29340
|
{
|
|
27953
29341
|
"name": "network",
|
|
@@ -27984,13 +29372,13 @@ export const operations = [
|
|
|
27984
29372
|
"type": "array",
|
|
27985
29373
|
"itemType": "object",
|
|
27986
29374
|
"required": false,
|
|
27987
|
-
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
29375
|
+
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox. Not available yet: volumes are not implemented, so omit this field or send an empty array; any volume answers 501 PROVIDER_UNSUPPORTED."
|
|
27988
29376
|
},
|
|
27989
29377
|
{
|
|
27990
29378
|
"name": "ephemeral",
|
|
27991
29379
|
"type": "boolean",
|
|
27992
29380
|
"required": false,
|
|
27993
|
-
"description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots
|
|
29381
|
+
"description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots). Leaving it out returns INVALID_PARAMS."
|
|
27994
29382
|
},
|
|
27995
29383
|
{
|
|
27996
29384
|
"name": "size",
|
|
@@ -28362,61 +29750,6 @@ export const operations = [
|
|
|
28362
29750
|
}
|
|
28363
29751
|
]
|
|
28364
29752
|
},
|
|
28365
|
-
{
|
|
28366
|
-
"resource": "sandbox.sandboxes",
|
|
28367
|
-
"method": "updateNetwork",
|
|
28368
|
-
"summary": "Update sandbox network",
|
|
28369
|
-
"description": "Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.",
|
|
28370
|
-
"http": "PUT",
|
|
28371
|
-
"path": "/sandbox/v1/sandboxes/{sandboxID}/network",
|
|
28372
|
-
"streaming": "no",
|
|
28373
|
-
"pagination": false,
|
|
28374
|
-
"pathParams": [
|
|
28375
|
-
{
|
|
28376
|
-
"name": "sandboxID",
|
|
28377
|
-
"sdkName": "sandboxID",
|
|
28378
|
-
"description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
|
|
28379
|
-
}
|
|
28380
|
-
],
|
|
28381
|
-
"query": [],
|
|
28382
|
-
"body": {
|
|
28383
|
-
"required": true,
|
|
28384
|
-
"fields": [
|
|
28385
|
-
{
|
|
28386
|
-
"name": "allowOut",
|
|
28387
|
-
"type": "array",
|
|
28388
|
-
"itemType": "string",
|
|
28389
|
-
"required": false,
|
|
28390
|
-
"description": "List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. \"8.8.8.8/32\"), a bare IP address (e.g. \"8.8.8.8\"), or a domain name (e.g. \"example.com\", \"*.example.com\"). Allowed entries always take precedence over denied entries."
|
|
28391
|
-
},
|
|
28392
|
-
{
|
|
28393
|
-
"name": "denyOut",
|
|
28394
|
-
"type": "array",
|
|
28395
|
-
"itemType": "string",
|
|
28396
|
-
"required": false,
|
|
28397
|
-
"description": "List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules."
|
|
28398
|
-
},
|
|
28399
|
-
{
|
|
28400
|
-
"name": "egressProxy",
|
|
28401
|
-
"type": "object",
|
|
28402
|
-
"required": false,
|
|
28403
|
-
"description": "SOCKS5 proxy for sandbox egress. Outbound TCP is tunneled through the proxy after allow/deny filtering; the sandbox is unaware. Domain-matched flows use remote DNS (ATYP=domain)."
|
|
28404
|
-
},
|
|
28405
|
-
{
|
|
28406
|
-
"name": "rules",
|
|
28407
|
-
"type": "object",
|
|
28408
|
-
"required": false,
|
|
28409
|
-
"description": "Per-domain transform rules applied to matching outbound HTTPS requests. Replaces all existing rules when provided. Keys may be exact DNS names or a single leading wildcard (for example, \"*.example.com\"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare \"*\" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as \"*.com\" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.\n"
|
|
28410
|
-
},
|
|
28411
|
-
{
|
|
28412
|
-
"name": "allow_internet_access",
|
|
28413
|
-
"type": "boolean",
|
|
28414
|
-
"required": false,
|
|
28415
|
-
"description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
|
|
28416
|
-
}
|
|
28417
|
-
]
|
|
28418
|
-
}
|
|
28419
|
-
},
|
|
28420
29753
|
{
|
|
28421
29754
|
"resource": "sandbox.sandboxes",
|
|
28422
29755
|
"method": "pause",
|
|
@@ -29292,77 +30625,6 @@ export const operations = [
|
|
|
29292
30625
|
],
|
|
29293
30626
|
"query": []
|
|
29294
30627
|
},
|
|
29295
|
-
{
|
|
29296
|
-
"resource": "sandbox.volumes",
|
|
29297
|
-
"method": "list",
|
|
29298
|
-
"summary": "List team volumes",
|
|
29299
|
-
"description": "List the volumes of your team. Use it to find a volumeID before reading or deleting a volume, or to attach a volume to a sandbox by name when you create it.",
|
|
29300
|
-
"http": "GET",
|
|
29301
|
-
"path": "/sandbox/v1/volumes",
|
|
29302
|
-
"streaming": "no",
|
|
29303
|
-
"pagination": false,
|
|
29304
|
-
"pathParams": [],
|
|
29305
|
-
"query": []
|
|
29306
|
-
},
|
|
29307
|
-
{
|
|
29308
|
-
"resource": "sandbox.volumes",
|
|
29309
|
-
"method": "create",
|
|
29310
|
-
"summary": "Create team volume",
|
|
29311
|
-
"description": "Create a team volume: persistent storage that can be mounted into sandboxes and outlives them. Send the volume name; the response returns the volume id and name. Use getVolume to read it back and deleteVolume to remove it.",
|
|
29312
|
-
"http": "POST",
|
|
29313
|
-
"path": "/sandbox/v1/volumes",
|
|
29314
|
-
"streaming": "no",
|
|
29315
|
-
"pagination": false,
|
|
29316
|
-
"pathParams": [],
|
|
29317
|
-
"query": [],
|
|
29318
|
-
"body": {
|
|
29319
|
-
"required": true,
|
|
29320
|
-
"fields": [
|
|
29321
|
-
{
|
|
29322
|
-
"name": "name",
|
|
29323
|
-
"type": "string",
|
|
29324
|
-
"required": true,
|
|
29325
|
-
"description": "Volume name, unique within your team. Use one or more ASCII letters, digits, underscores or hyphens."
|
|
29326
|
-
}
|
|
29327
|
-
]
|
|
29328
|
-
}
|
|
29329
|
-
},
|
|
29330
|
-
{
|
|
29331
|
-
"resource": "sandbox.volumes",
|
|
29332
|
-
"method": "delete",
|
|
29333
|
-
"summary": "Delete team volume",
|
|
29334
|
-
"description": "Delete a team volume and its data permanently. Use it only when no sandbox needs the volume any more; the data cannot be recovered. Success answers 204; an unknown id answers 404.",
|
|
29335
|
-
"http": "DELETE",
|
|
29336
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
29337
|
-
"streaming": "no",
|
|
29338
|
-
"pagination": false,
|
|
29339
|
-
"pathParams": [
|
|
29340
|
-
{
|
|
29341
|
-
"name": "volumeID",
|
|
29342
|
-
"sdkName": "volumeID",
|
|
29343
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
29344
|
-
}
|
|
29345
|
-
],
|
|
29346
|
-
"query": []
|
|
29347
|
-
},
|
|
29348
|
-
{
|
|
29349
|
-
"resource": "sandbox.volumes",
|
|
29350
|
-
"method": "retrieve",
|
|
29351
|
-
"summary": "Team volume",
|
|
29352
|
-
"description": "Read one team volume by id. Use it to confirm a volume exists and to read its name before mounting it in a sandbox. An unknown id answers 404.",
|
|
29353
|
-
"http": "GET",
|
|
29354
|
-
"path": "/sandbox/v1/volumes/{volumeID}",
|
|
29355
|
-
"streaming": "no",
|
|
29356
|
-
"pagination": false,
|
|
29357
|
-
"pathParams": [
|
|
29358
|
-
{
|
|
29359
|
-
"name": "volumeID",
|
|
29360
|
-
"sdkName": "volumeID",
|
|
29361
|
-
"description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
|
|
29362
|
-
}
|
|
29363
|
-
],
|
|
29364
|
-
"query": []
|
|
29365
|
-
},
|
|
29366
30628
|
{
|
|
29367
30629
|
"resource": "search.crawl",
|
|
29368
30630
|
"method": "create",
|