@deepraxis/sdk 0.2.0-dev.9bf33e2 → 0.2.0-dev.a24e748

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.
@@ -4663,13 +4663,13 @@ export const operations = [
4663
4663
  "summary": "Get an Action with its current input and output JSON Schemas",
4664
4664
  "description": "Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call(\"ocr\", input) or in a workflow step with call: ocr and with:. Input that breaks the contract returns INPUT_INVALID, with the fields in errors[]. The response ETag is the current revision ID for conditional updates.",
4665
4665
  "http": "GET",
4666
- "path": "/automation/v1/actions/{ns}/{name}",
4666
+ "path": "/automation/v1/actions/{namespace}/{name}",
4667
4667
  "streaming": "no",
4668
4668
  "pagination": false,
4669
4669
  "pathParams": [
4670
4670
  {
4671
- "name": "ns",
4672
- "sdkName": "ns",
4671
+ "name": "namespace",
4672
+ "sdkName": "namespace",
4673
4673
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4674
4674
  },
4675
4675
  {
@@ -4686,13 +4686,13 @@ export const operations = [
4686
4686
  "summary": "Update an action",
4687
4687
  "description": "Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to 300000, and message to null. Incompatible normal updates return 422 SCHEMA_INCOMPATIBLE with issues; unchanged contents retain the existing revision.",
4688
4688
  "http": "PUT",
4689
- "path": "/automation/v1/actions/{ns}/{name}",
4689
+ "path": "/automation/v1/actions/{namespace}/{name}",
4690
4690
  "streaming": "no",
4691
4691
  "pagination": false,
4692
4692
  "pathParams": [
4693
4693
  {
4694
- "name": "ns",
4695
- "sdkName": "ns",
4694
+ "name": "namespace",
4695
+ "sdkName": "namespace",
4696
4696
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4697
4697
  },
4698
4698
  {
@@ -4784,13 +4784,13 @@ export const operations = [
4784
4784
  "summary": "Archive an action",
4785
4785
  "description": "Archive the action while retaining its name and history, hiding it from the default list. The response includes dependents_count.",
4786
4786
  "http": "POST",
4787
- "path": "/automation/v1/actions/{ns}/{name}/archive",
4787
+ "path": "/automation/v1/actions/{namespace}/{name}/archive",
4788
4788
  "streaming": "no",
4789
4789
  "pagination": false,
4790
4790
  "pathParams": [
4791
4791
  {
4792
- "name": "ns",
4793
- "sdkName": "ns",
4792
+ "name": "namespace",
4793
+ "sdkName": "namespace",
4794
4794
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4795
4795
  },
4796
4796
  {
@@ -4811,13 +4811,13 @@ export const operations = [
4811
4811
  "summary": "List action dependents",
4812
4812
  "description": "List orchestrations referencing this action. The search covers scripts and workflows in their drafts or latest versions.",
4813
4813
  "http": "GET",
4814
- "path": "/automation/v1/actions/{ns}/{name}/dependents",
4814
+ "path": "/automation/v1/actions/{namespace}/{name}/dependents",
4815
4815
  "streaming": "no",
4816
4816
  "pagination": true,
4817
4817
  "pathParams": [
4818
4818
  {
4819
- "name": "ns",
4820
- "sdkName": "ns",
4819
+ "name": "namespace",
4820
+ "sdkName": "namespace",
4821
4821
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4822
4822
  },
4823
4823
  {
@@ -4847,13 +4847,13 @@ export const operations = [
4847
4847
  "summary": "List action invocations",
4848
4848
  "description": "List this action’s invocations, filtering by status, revision, calling definition and time. Results identify the run and call site.",
4849
4849
  "http": "GET",
4850
- "path": "/automation/v1/actions/{ns}/{name}/invocations",
4850
+ "path": "/automation/v1/actions/{namespace}/{name}/invocations",
4851
4851
  "streaming": "no",
4852
4852
  "pagination": true,
4853
4853
  "pathParams": [
4854
4854
  {
4855
- "name": "ns",
4856
- "sdkName": "ns",
4855
+ "name": "namespace",
4856
+ "sdkName": "namespace",
4857
4857
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4858
4858
  },
4859
4859
  {
@@ -4924,13 +4924,13 @@ export const operations = [
4924
4924
  "summary": "Restore an action",
4925
4925
  "description": "Restore an archived action to the default list. Its current revision is preserved.",
4926
4926
  "http": "POST",
4927
- "path": "/automation/v1/actions/{ns}/{name}/restore",
4927
+ "path": "/automation/v1/actions/{namespace}/{name}/restore",
4928
4928
  "streaming": "no",
4929
4929
  "pagination": false,
4930
4930
  "pathParams": [
4931
4931
  {
4932
- "name": "ns",
4933
- "sdkName": "ns",
4932
+ "name": "namespace",
4933
+ "sdkName": "namespace",
4934
4934
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4935
4935
  },
4936
4936
  {
@@ -4951,13 +4951,13 @@ export const operations = [
4951
4951
  "summary": "List action revisions",
4952
4952
  "description": "List revisions newest first with rollback eligibility. Results include the current marker and compatibility issues. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
4953
4953
  "http": "GET",
4954
- "path": "/automation/v1/actions/{ns}/{name}/revisions",
4954
+ "path": "/automation/v1/actions/{namespace}/{name}/revisions",
4955
4955
  "streaming": "no",
4956
4956
  "pagination": true,
4957
4957
  "pathParams": [
4958
4958
  {
4959
- "name": "ns",
4960
- "sdkName": "ns",
4959
+ "name": "namespace",
4960
+ "sdkName": "namespace",
4961
4961
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4962
4962
  },
4963
4963
  {
@@ -4996,13 +4996,13 @@ export const operations = [
4996
4996
  "summary": "Get an action revision",
4997
4997
  "description": "Read a specific revision with its full implementation and rollback compatibility result. A missing revision returns VERSION_NOT_FOUND. Details always return full source.",
4998
4998
  "http": "GET",
4999
- "path": "/automation/v1/actions/{ns}/{name}/revisions/{revision}",
4999
+ "path": "/automation/v1/actions/{namespace}/{name}/revisions/{revision}",
5000
5000
  "streaming": "no",
5001
5001
  "pagination": false,
5002
5002
  "pathParams": [
5003
5003
  {
5004
- "name": "ns",
5005
- "sdkName": "ns",
5004
+ "name": "namespace",
5005
+ "sdkName": "namespace",
5006
5006
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
5007
5007
  },
5008
5008
  {
@@ -5024,13 +5024,13 @@ export const operations = [
5024
5024
  "summary": "Roll back an action",
5025
5025
  "description": "Create a compatible new revision from historical contents. Compatibility is checked against the current and five recent historical revisions. The current pointer does not revert to the old ID. Optional If-Match accepts the current revision or *; * matches any existing representation.",
5026
5026
  "http": "POST",
5027
- "path": "/automation/v1/actions/{ns}/{name}/rollback",
5027
+ "path": "/automation/v1/actions/{namespace}/{name}/rollback",
5028
5028
  "streaming": "no",
5029
5029
  "pagination": false,
5030
5030
  "pathParams": [
5031
5031
  {
5032
- "name": "ns",
5033
- "sdkName": "ns",
5032
+ "name": "namespace",
5033
+ "sdkName": "namespace",
5034
5034
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
5035
5035
  },
5036
5036
  {
@@ -5070,7 +5070,7 @@ export const operations = [
5070
5070
  "resource": "automation.hooks",
5071
5071
  "method": "send",
5072
5072
  "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/{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.",
5073
+ "description": "No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{trigger_id}/resume. Raw bodies are limited to 512 KiB; serialized run input, including raw and parsed copies, must fit within 1 MiB. Exceeding either limit returns 413 synchronously without recording a firing; webhook-id deduplicates for 24 hours. A 202 with outcome=accepted acknowledges receipt; the final outcome is updated later, and repeats return deduped. Invalid JSON yields body=null; other UTF-8 is text and non-UTF-8 is base64. The envelope contains body, raw_body, raw_body_encoding, allowlisted headers, webhook_id and received_at. raw_body preserves exact bytes with utf8 or base64 encoding for caller-side signature verification.",
5074
5074
  "http": "POST",
5075
5075
  "path": "/automation/v1/hooks/{trigger_id}/{token}",
5076
5076
  "streaming": "no",
@@ -5161,13 +5161,13 @@ export const operations = [
5161
5161
  "summary": "Retrieve a human task",
5162
5162
  "description": "Read one human task - title, Markdown body, context, actions, form, assignees, mode, due time, responses and outcome - so an assignee can choose an action and fill the form. Read-only; the Console approval page /automation/tasks/{id} reads the same resource.",
5163
5163
  "http": "GET",
5164
- "path": "/automation/v1/human-tasks/{id}",
5164
+ "path": "/automation/v1/human-tasks/{task_id}",
5165
5165
  "streaming": "no",
5166
5166
  "pagination": false,
5167
5167
  "pathParams": [
5168
5168
  {
5169
- "name": "id",
5170
- "sdkName": "id",
5169
+ "name": "task_id",
5170
+ "sdkName": "task_id",
5171
5171
  "description": "Human task ID (htask_), from the list or the run's waits."
5172
5172
  }
5173
5173
  ],
@@ -5179,13 +5179,13 @@ export const operations = [
5179
5179
  "summary": "Cancel a human task",
5180
5180
  "description": "Cancel an open human task; only the person who started the run or an organization API key may cancel. The task becomes cancelled and the waiting workflow step raises a runtime error with code HUMAN_TASK_CANCELLED, which try/catch can catch. Open tasks are cancelled automatically when their run ends, so this call is not needed then.",
5181
5181
  "http": "POST",
5182
- "path": "/automation/v1/human-tasks/{id}/cancel",
5182
+ "path": "/automation/v1/human-tasks/{task_id}/cancel",
5183
5183
  "streaming": "no",
5184
5184
  "pagination": false,
5185
5185
  "pathParams": [
5186
5186
  {
5187
- "name": "id",
5188
- "sdkName": "id",
5187
+ "name": "task_id",
5188
+ "sdkName": "task_id",
5189
5189
  "description": "Human task ID (htask_)."
5190
5190
  }
5191
5191
  ],
@@ -5208,13 +5208,13 @@ export const operations = [
5208
5208
  "summary": "Delegate a human task",
5209
5209
  "description": "An assignee who has not responded hands their place to another user (to_user), replacing their entry in assignees.users in place, so sequential order is kept. The new user cannot already be an assignee, nor the initiator unless self-approval is allowed. The task must still be open.",
5210
5210
  "http": "POST",
5211
- "path": "/automation/v1/human-tasks/{id}/delegate",
5211
+ "path": "/automation/v1/human-tasks/{task_id}/delegate",
5212
5212
  "streaming": "no",
5213
5213
  "pagination": false,
5214
5214
  "pathParams": [
5215
5215
  {
5216
- "name": "id",
5217
- "sdkName": "id",
5216
+ "name": "task_id",
5217
+ "sdkName": "task_id",
5218
5218
  "description": "Human task ID (htask_)."
5219
5219
  }
5220
5220
  ],
@@ -5237,13 +5237,13 @@ export const operations = [
5237
5237
  "summary": "Respond to a human task",
5238
5238
  "description": "Submit an action (action_id), form values (values) and a comment as the calling user. Depending on the task's mode the response either decides it (status becomes completed, outcome is set, and the waiting workflow resumes with outcome as the step output) or is recorded while other assignees are awaited. When two assignees respond at once, exactly one decides and the other gets TASK_CLOSED. An agent may respond only if the workflow set allow_agent_decision. Send an Idempotency-Key to retry safely.",
5239
5239
  "http": "POST",
5240
- "path": "/automation/v1/human-tasks/{id}/respond",
5240
+ "path": "/automation/v1/human-tasks/{task_id}/respond",
5241
5241
  "streaming": "no",
5242
5242
  "pagination": false,
5243
5243
  "pathParams": [
5244
5244
  {
5245
- "name": "id",
5246
- "sdkName": "id",
5245
+ "name": "task_id",
5246
+ "sdkName": "task_id",
5247
5247
  "description": "Human task ID (htask_)."
5248
5248
  }
5249
5249
  ],
@@ -5380,7 +5380,7 @@ export const operations = [
5380
5380
  "trigger"
5381
5381
  ],
5382
5382
  "required": false,
5383
- "description": "Root initiator type: user, api_key, agent or trigger, 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."
5383
+ "description": "Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
5384
5384
  },
5385
5385
  {
5386
5386
  "name": "initiator",
@@ -5470,13 +5470,13 @@ export const operations = [
5470
5470
  "summary": "Get a run",
5471
5471
  "description": "Read status, output and error for the id returned by praxis.automation.runs.create; output needs no expand option. A completed status confirms success; faulted and cancelled are terminal without successful completion. Optionally expand calls, tasks, task groups, logs or source in the same request. Pass wait (seconds, 0–60) to hold the request until the run is terminal or the time is up, instead of polling. Expanded pages hold at most 200 entries; use the ledger endpoints and cursors for subsequent pages. Workflow raise errors preserve the full type URI, status, title and detail; only internal platform exceptions are runtime errors.",
5472
5472
  "http": "GET",
5473
- "path": "/automation/v1/runs/{id}",
5473
+ "path": "/automation/v1/runs/{run_id}",
5474
5474
  "streaming": "no",
5475
5475
  "pagination": false,
5476
5476
  "pathParams": [
5477
5477
  {
5478
- "name": "id",
5479
- "sdkName": "id",
5478
+ "name": "run_id",
5479
+ "sdkName": "run_id",
5480
5480
  "description": "Run ID (run_)."
5481
5481
  }
5482
5482
  ],
@@ -5509,13 +5509,13 @@ export const operations = [
5509
5509
  "summary": "List run artifacts",
5510
5510
  "description": "Read run artifacts and their file references. Entries follow ledger order and include content types, sizes and associated steps.",
5511
5511
  "http": "GET",
5512
- "path": "/automation/v1/runs/{id}/artifacts",
5512
+ "path": "/automation/v1/runs/{run_id}/artifacts",
5513
5513
  "streaming": "no",
5514
5514
  "pagination": true,
5515
5515
  "pathParams": [
5516
5516
  {
5517
- "name": "id",
5518
- "sdkName": "id",
5517
+ "name": "run_id",
5518
+ "sdkName": "run_id",
5519
5519
  "description": "Run ID (run_)."
5520
5520
  }
5521
5521
  ],
@@ -5540,13 +5540,13 @@ export const operations = [
5540
5540
  "summary": "List run calls",
5541
5541
  "description": "Page through the call ledger with execution results. Entries follow ledger order and include targets, argument/result previews, statuses and durations. Script runs read the call ledger; a workflow run records its action calls on its tasks, so this lists the action tasks (skipped ones excluded), matching counters.action_calls.",
5542
5542
  "http": "GET",
5543
- "path": "/automation/v1/runs/{id}/calls",
5543
+ "path": "/automation/v1/runs/{run_id}/calls",
5544
5544
  "streaming": "no",
5545
5545
  "pagination": true,
5546
5546
  "pathParams": [
5547
5547
  {
5548
- "name": "id",
5549
- "sdkName": "id",
5548
+ "name": "run_id",
5549
+ "sdkName": "run_id",
5550
5550
  "description": "Run ID (run_)."
5551
5551
  }
5552
5552
  ],
@@ -5571,13 +5571,13 @@ export const operations = [
5571
5571
  "summary": "Cancel a run",
5572
5572
  "description": "Request run cancellation and return 202. Workflows terminate, while scripts receive an abort request followed by forced termination after a grace period. Terminal runs return 409 RUN_INVALID_STATE; cancellation propagates to attached children, not detached children. Optional reason contains 1–500 characters and is stored as Run.cancel_message; cancel_reason remains user.",
5573
5573
  "http": "POST",
5574
- "path": "/automation/v1/runs/{id}/cancel",
5574
+ "path": "/automation/v1/runs/{run_id}/cancel",
5575
5575
  "streaming": "no",
5576
5576
  "pagination": false,
5577
5577
  "pathParams": [
5578
5578
  {
5579
- "name": "id",
5580
- "sdkName": "id",
5579
+ "name": "run_id",
5580
+ "sdkName": "run_id",
5581
5581
  "description": "Run ID (run_)."
5582
5582
  }
5583
5583
  ],
@@ -5600,13 +5600,13 @@ export const operations = [
5600
5600
  "summary": "Read run events",
5601
5601
  "description": "Read the CloudEvents ledger or subscribe to live events. Return a CloudEvents ledger page by default; Accept: text/event-stream opens a live stream with ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed and ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved event names. id is the resume cursor and Last-Event-ID takes precedence over cursor; : ping arrives every 20 seconds and event: end closes the stream after a terminal run.",
5602
5602
  "http": "GET",
5603
- "path": "/automation/v1/runs/{id}/events",
5603
+ "path": "/automation/v1/runs/{run_id}/events",
5604
5604
  "streaming": "always",
5605
5605
  "pagination": false,
5606
5606
  "pathParams": [
5607
5607
  {
5608
- "name": "id",
5609
- "sdkName": "id",
5608
+ "name": "run_id",
5609
+ "sdkName": "run_id",
5610
5610
  "description": "Run ID (run_)."
5611
5611
  }
5612
5612
  ],
@@ -5639,13 +5639,13 @@ export const operations = [
5639
5639
  "summary": "Read run logs",
5640
5640
  "description": "Return a log page within the 30-day retention window by default. Accept: text/event-stream opens a live stream using event: log; id is the resume cursor and Last-Event-ID takes precedence over cursor. : ping arrives every 20 seconds and event: end closes the stream after a terminal run.",
5641
5641
  "http": "GET",
5642
- "path": "/automation/v1/runs/{id}/logs",
5642
+ "path": "/automation/v1/runs/{run_id}/logs",
5643
5643
  "streaming": "always",
5644
5644
  "pagination": false,
5645
5645
  "pathParams": [
5646
5646
  {
5647
- "name": "id",
5648
- "sdkName": "id",
5647
+ "name": "run_id",
5648
+ "sdkName": "run_id",
5649
5649
  "description": "Run ID (run_)."
5650
5650
  }
5651
5651
  ],
@@ -5678,13 +5678,13 @@ export const operations = [
5678
5678
  "summary": "Rerun a run",
5679
5679
  "description": "Create a new root run from the original exact version or ad hoc source, retaining labels and setting rerun_of. Override input or omit it to reuse the original input; archived targets and run tokens are rejected.",
5680
5680
  "http": "POST",
5681
- "path": "/automation/v1/runs/{id}/rerun",
5681
+ "path": "/automation/v1/runs/{run_id}/rerun",
5682
5682
  "streaming": "no",
5683
5683
  "pagination": false,
5684
5684
  "pathParams": [
5685
5685
  {
5686
- "name": "id",
5687
- "sdkName": "id",
5686
+ "name": "run_id",
5687
+ "sdkName": "run_id",
5688
5688
  "description": "Run ID (run_)."
5689
5689
  }
5690
5690
  ],
@@ -5707,13 +5707,13 @@ export const operations = [
5707
5707
  "summary": "Resume a run",
5708
5708
  "description": "Resume only a suspended workflow to its prior running or waiting state. It remains suspended if concurrency slots are unavailable; scripts do not support this operation.",
5709
5709
  "http": "POST",
5710
- "path": "/automation/v1/runs/{id}/resume",
5710
+ "path": "/automation/v1/runs/{run_id}/resume",
5711
5711
  "streaming": "no",
5712
5712
  "pagination": false,
5713
5713
  "pathParams": [
5714
5714
  {
5715
- "name": "id",
5716
- "sdkName": "id",
5715
+ "name": "run_id",
5716
+ "sdkName": "run_id",
5717
5717
  "description": "Run ID (run_)."
5718
5718
  }
5719
5719
  ],
@@ -5729,13 +5729,13 @@ export const operations = [
5729
5729
  "summary": "Get run source",
5730
5730
  "description": "Read the source and digest used by the run. Results include the language and SHA-256 digest, for both ad hoc and published-definition runs.",
5731
5731
  "http": "GET",
5732
- "path": "/automation/v1/runs/{id}/source",
5732
+ "path": "/automation/v1/runs/{run_id}/source",
5733
5733
  "streaming": "no",
5734
5734
  "pagination": false,
5735
5735
  "pathParams": [
5736
5736
  {
5737
- "name": "id",
5738
- "sdkName": "id",
5737
+ "name": "run_id",
5738
+ "sdkName": "run_id",
5739
5739
  "description": "Run ID (run_)."
5740
5740
  }
5741
5741
  ],
@@ -5747,13 +5747,13 @@ export const operations = [
5747
5747
  "summary": "Suspend a run",
5748
5748
  "description": "Suspend only a running or waiting workflow. Scripts return OPERATION_NOT_SUPPORTED; other states return RUN_INVALID_STATE.",
5749
5749
  "http": "POST",
5750
- "path": "/automation/v1/runs/{id}/suspend",
5750
+ "path": "/automation/v1/runs/{run_id}/suspend",
5751
5751
  "streaming": "no",
5752
5752
  "pagination": false,
5753
5753
  "pathParams": [
5754
5754
  {
5755
- "name": "id",
5756
- "sdkName": "id",
5755
+ "name": "run_id",
5756
+ "sdkName": "run_id",
5757
5757
  "description": "Run ID (run_)."
5758
5758
  }
5759
5759
  ],
@@ -5769,13 +5769,13 @@ export const operations = [
5769
5769
  "summary": "List run tasks",
5770
5770
  "description": "Page through the task ledger. include=planned adds unexecuted top-level steps; group_by=reference aggregates count, status and duration by task reference.",
5771
5771
  "http": "GET",
5772
- "path": "/automation/v1/runs/{id}/tasks",
5772
+ "path": "/automation/v1/runs/{run_id}/tasks",
5773
5773
  "streaming": "no",
5774
5774
  "pagination": true,
5775
5775
  "pathParams": [
5776
5776
  {
5777
- "name": "id",
5778
- "sdkName": "id",
5777
+ "name": "run_id",
5778
+ "sdkName": "run_id",
5779
5779
  "description": "Run ID (run_)."
5780
5780
  }
5781
5781
  ],
@@ -5818,13 +5818,13 @@ export const operations = [
5818
5818
  "summary": "List run waits",
5819
5819
  "description": "List current and historical waits in ledger order. Wait types include event, timer and child.",
5820
5820
  "http": "GET",
5821
- "path": "/automation/v1/runs/{id}/waits",
5821
+ "path": "/automation/v1/runs/{run_id}/waits",
5822
5822
  "streaming": "no",
5823
5823
  "pagination": true,
5824
5824
  "pathParams": [
5825
5825
  {
5826
- "name": "id",
5827
- "sdkName": "id",
5826
+ "name": "run_id",
5827
+ "sdkName": "run_id",
5828
5828
  "description": "Run ID (run_)."
5829
5829
  }
5830
5830
  ],
@@ -5849,13 +5849,13 @@ export const operations = [
5849
5849
  "summary": "Complete a run wait",
5850
5850
  "description": "Complete only an event wait with a payload of at most 32 KiB satisfying its filter; timer and child waits cannot be completed manually. Reusing the same id and payload returns replayed=true; other repeats return WAIT_ALREADY_RESOLVED and expired waits return WAIT_EXPIRED.",
5851
5851
  "http": "POST",
5852
- "path": "/automation/v1/runs/{id}/waits/{wait_id}/complete",
5852
+ "path": "/automation/v1/runs/{run_id}/waits/{wait_id}/complete",
5853
5853
  "streaming": "no",
5854
5854
  "pagination": false,
5855
5855
  "pathParams": [
5856
5856
  {
5857
- "name": "id",
5858
- "sdkName": "id",
5857
+ "name": "run_id",
5858
+ "sdkName": "run_id",
5859
5859
  "description": "Run ID (run_)."
5860
5860
  },
5861
5861
  {
@@ -5960,7 +5960,7 @@ export const operations = [
5960
5960
  "resource": "automation.scripts",
5961
5961
  "method": "create",
5962
5962
  "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, use the returned draft.revision as expected_draft_revision.",
5963
+ "description": "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call(\"write-file\", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, send the returned draft.revision as draft.revision of the publish request.",
5964
5964
  "http": "POST",
5965
5965
  "path": "/automation/v1/scripts",
5966
5966
  "streaming": "no",
@@ -5990,9 +5990,9 @@ export const operations = [
5990
5990
  },
5991
5991
  {
5992
5992
  "name": "draft",
5993
- "type": "string",
5993
+ "type": "object",
5994
5994
  "required": false,
5995
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
5995
+ "description": "Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }."
5996
5996
  },
5997
5997
  {
5998
5998
  "name": "labels",
@@ -6007,15 +6007,15 @@ export const operations = [
6007
6007
  "resource": "automation.scripts",
6008
6008
  "method": "retrieve",
6009
6009
  "summary": "Get a script",
6010
- "description": "Read script details and draft source. The ETag is the draft revision to use in If-Match for updates.",
6010
+ "description": "Read script details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
6011
6011
  "http": "GET",
6012
- "path": "/automation/v1/scripts/{ns}/{name}",
6012
+ "path": "/automation/v1/scripts/{namespace}/{name}",
6013
6013
  "streaming": "no",
6014
6014
  "pagination": false,
6015
6015
  "pathParams": [
6016
6016
  {
6017
- "name": "ns",
6018
- "sdkName": "ns",
6017
+ "name": "namespace",
6018
+ "sdkName": "namespace",
6019
6019
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6020
6020
  },
6021
6021
  {
@@ -6030,15 +6030,15 @@ export const operations = [
6030
6030
  "resource": "automation.scripts",
6031
6031
  "method": "update",
6032
6032
  "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.",
6033
+ "description": "Update description, labels or draft with the current draft revision in the body as draft.revision (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.",
6034
6034
  "http": "PATCH",
6035
- "path": "/automation/v1/scripts/{ns}/{name}",
6035
+ "path": "/automation/v1/scripts/{namespace}/{name}",
6036
6036
  "streaming": "no",
6037
6037
  "pagination": false,
6038
6038
  "pathParams": [
6039
6039
  {
6040
- "name": "ns",
6041
- "sdkName": "ns",
6040
+ "name": "namespace",
6041
+ "sdkName": "namespace",
6042
6042
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6043
6043
  },
6044
6044
  {
@@ -6052,8 +6052,8 @@ export const operations = [
6052
6052
  {
6053
6053
  "name": "If-Match",
6054
6054
  "type": "string",
6055
- "required": true,
6056
- "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
6055
+ "required": false,
6056
+ "description": "Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412."
6057
6057
  }
6058
6058
  ],
6059
6059
  "body": {
@@ -6073,9 +6073,9 @@ export const operations = [
6073
6073
  },
6074
6074
  {
6075
6075
  "name": "draft",
6076
- "type": "string",
6076
+ "type": "object",
6077
6077
  "required": false,
6078
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
6078
+ "description": "Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match."
6079
6079
  }
6080
6080
  ]
6081
6081
  }
@@ -6086,13 +6086,13 @@ export const operations = [
6086
6086
  "summary": "Archive a script",
6087
6087
  "description": "Keep the name, versions and draft while archiving. The default list hides it and new target resolution and run requests reject the archived target.",
6088
6088
  "http": "POST",
6089
- "path": "/automation/v1/scripts/{ns}/{name}/archive",
6089
+ "path": "/automation/v1/scripts/{namespace}/{name}/archive",
6090
6090
  "streaming": "no",
6091
6091
  "pagination": false,
6092
6092
  "pathParams": [
6093
6093
  {
6094
- "name": "ns",
6095
- "sdkName": "ns",
6094
+ "name": "namespace",
6095
+ "sdkName": "namespace",
6096
6096
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6097
6097
  },
6098
6098
  {
@@ -6113,13 +6113,13 @@ export const operations = [
6113
6113
  "summary": "List script tags",
6114
6114
  "description": "Read the exact version for each distribution tag. Results include the update time and updater.",
6115
6115
  "http": "GET",
6116
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags",
6116
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags",
6117
6117
  "streaming": "no",
6118
6118
  "pagination": false,
6119
6119
  "pathParams": [
6120
6120
  {
6121
- "name": "ns",
6122
- "sdkName": "ns",
6121
+ "name": "namespace",
6122
+ "sdkName": "namespace",
6123
6123
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6124
6124
  },
6125
6125
  {
@@ -6136,13 +6136,13 @@ export const operations = [
6136
6136
  "summary": "Delete a script tag",
6137
6137
  "description": "Delete a distribution tag while retaining versions. latest cannot be deleted, versions and ranges are invalid tags, and deleting an absent valid tag is repeatable.",
6138
6138
  "http": "DELETE",
6139
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}",
6139
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
6140
6140
  "streaming": "no",
6141
6141
  "pagination": false,
6142
6142
  "pathParams": [
6143
6143
  {
6144
- "name": "ns",
6145
- "sdkName": "ns",
6144
+ "name": "namespace",
6145
+ "sdkName": "namespace",
6146
6146
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6147
6147
  },
6148
6148
  {
@@ -6164,13 +6164,13 @@ export const operations = [
6164
6164
  "summary": "Set a script tag",
6165
6165
  "description": "Point a distribution tag at an existing exact version; tags cannot be versions or version ranges. Moving latest can roll back a release and synchronizes workflow schedules.",
6166
6166
  "http": "PUT",
6167
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}",
6167
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
6168
6168
  "streaming": "no",
6169
6169
  "pagination": false,
6170
6170
  "pathParams": [
6171
6171
  {
6172
- "name": "ns",
6173
- "sdkName": "ns",
6172
+ "name": "namespace",
6173
+ "sdkName": "namespace",
6174
6174
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6175
6175
  },
6176
6176
  {
@@ -6203,13 +6203,13 @@ export const operations = [
6203
6203
  "summary": "Restore a script",
6204
6204
  "description": "Restore an archived definition with its versions and tags. The name is retained.",
6205
6205
  "http": "POST",
6206
- "path": "/automation/v1/scripts/{ns}/{name}/restore",
6206
+ "path": "/automation/v1/scripts/{namespace}/{name}/restore",
6207
6207
  "streaming": "no",
6208
6208
  "pagination": false,
6209
6209
  "pathParams": [
6210
6210
  {
6211
- "name": "ns",
6212
- "sdkName": "ns",
6211
+ "name": "namespace",
6212
+ "sdkName": "namespace",
6213
6213
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6214
6214
  },
6215
6215
  {
@@ -6230,13 +6230,13 @@ export const operations = [
6230
6230
  "summary": "List script vault bindings",
6231
6231
  "description": "Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
6232
6232
  "http": "GET",
6233
- "path": "/automation/v1/scripts/{ns}/{name}/vaults",
6233
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults",
6234
6234
  "streaming": "no",
6235
6235
  "pagination": false,
6236
6236
  "pathParams": [
6237
6237
  {
6238
- "name": "ns",
6239
- "sdkName": "ns",
6238
+ "name": "namespace",
6239
+ "sdkName": "namespace",
6240
6240
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6241
6241
  },
6242
6242
  {
@@ -6253,13 +6253,13 @@ export const operations = [
6253
6253
  "summary": "Delete a script vault binding",
6254
6254
  "description": "Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
6255
6255
  "http": "DELETE",
6256
- "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
6256
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
6257
6257
  "streaming": "no",
6258
6258
  "pagination": false,
6259
6259
  "pathParams": [
6260
6260
  {
6261
- "name": "ns",
6262
- "sdkName": "ns",
6261
+ "name": "namespace",
6262
+ "sdkName": "namespace",
6263
6263
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6264
6264
  },
6265
6265
  {
@@ -6281,13 +6281,13 @@ export const operations = [
6281
6281
  "summary": "Set a script vault binding",
6282
6282
  "description": "Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
6283
6283
  "http": "PUT",
6284
- "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
6284
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
6285
6285
  "streaming": "no",
6286
6286
  "pagination": false,
6287
6287
  "pathParams": [
6288
6288
  {
6289
- "name": "ns",
6290
- "sdkName": "ns",
6289
+ "name": "namespace",
6290
+ "sdkName": "namespace",
6291
6291
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6292
6292
  },
6293
6293
  {
@@ -6320,13 +6320,13 @@ export const operations = [
6320
6320
  "summary": "List script versions",
6321
6321
  "description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
6322
6322
  "http": "GET",
6323
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
6323
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions",
6324
6324
  "streaming": "no",
6325
6325
  "pagination": true,
6326
6326
  "pathParams": [
6327
6327
  {
6328
- "name": "ns",
6329
- "sdkName": "ns",
6328
+ "name": "namespace",
6329
+ "sdkName": "namespace",
6330
6330
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6331
6331
  },
6332
6332
  {
@@ -6366,15 +6366,15 @@ export const operations = [
6366
6366
  "publish"
6367
6367
  ],
6368
6368
  "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. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. Publishing removes +build metadata from the version number.",
6369
+ "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. Publishing removes +build metadata from the version number.",
6370
6370
  "http": "POST",
6371
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
6371
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions",
6372
6372
  "streaming": "no",
6373
6373
  "pagination": false,
6374
6374
  "pathParams": [
6375
6375
  {
6376
- "name": "ns",
6377
- "sdkName": "ns",
6376
+ "name": "namespace",
6377
+ "sdkName": "namespace",
6378
6378
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6379
6379
  },
6380
6380
  {
@@ -6395,13 +6395,13 @@ export const operations = [
6395
6395
  "summary": "Get a script version",
6396
6396
  "description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
6397
6397
  "http": "GET",
6398
- "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}",
6398
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}",
6399
6399
  "streaming": "no",
6400
6400
  "pagination": false,
6401
6401
  "pathParams": [
6402
6402
  {
6403
- "name": "ns",
6404
- "sdkName": "ns",
6403
+ "name": "namespace",
6404
+ "sdkName": "namespace",
6405
6405
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6406
6406
  },
6407
6407
  {
@@ -6423,13 +6423,13 @@ export const operations = [
6423
6423
  "summary": "Deprecate a script version",
6424
6424
  "description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
6425
6425
  "http": "POST",
6426
- "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate",
6426
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate",
6427
6427
  "streaming": "no",
6428
6428
  "pagination": false,
6429
6429
  "pathParams": [
6430
6430
  {
6431
- "name": "ns",
6432
- "sdkName": "ns",
6431
+ "name": "namespace",
6432
+ "sdkName": "namespace",
6433
6433
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6434
6434
  },
6435
6435
  {
@@ -6580,7 +6580,7 @@ export const operations = [
6580
6580
  "expired"
6581
6581
  ],
6582
6582
  "required": false,
6583
- "description": "Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
6583
+ "description": "Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
6584
6584
  },
6585
6585
  {
6586
6586
  "name": "labels",
@@ -6599,6 +6599,18 @@ export const operations = [
6599
6599
  "type": "string",
6600
6600
  "required": false,
6601
6601
  "description": "Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone."
6602
+ },
6603
+ {
6604
+ "name": "status",
6605
+ "type": "array",
6606
+ "itemType": "string",
6607
+ "enum": [
6608
+ "enabled",
6609
+ "paused",
6610
+ "expired"
6611
+ ],
6612
+ "required": false,
6613
+ "description": "Trigger status: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value. Giving it together with a different state returns 400."
6602
6614
  }
6603
6615
  ]
6604
6616
  },
@@ -6748,13 +6760,13 @@ export const operations = [
6748
6760
  "summary": "Delete a trigger",
6749
6761
  "description": "Delete the trigger and its firing history, returning 204. Runs already started are unaffected. Definition-managed triggers return 409 TRIGGER_MANAGED; remove schedule from the workflow and publish it again.",
6750
6762
  "http": "DELETE",
6751
- "path": "/automation/v1/triggers/{id}",
6763
+ "path": "/automation/v1/triggers/{trigger_id}",
6752
6764
  "streaming": "no",
6753
6765
  "pagination": false,
6754
6766
  "pathParams": [
6755
6767
  {
6756
- "name": "id",
6757
- "sdkName": "id",
6768
+ "name": "trigger_id",
6769
+ "sdkName": "trigger_id",
6758
6770
  "description": "Trigger ID (trg_)."
6759
6771
  }
6760
6772
  ],
@@ -6766,13 +6778,13 @@ export const operations = [
6766
6778
  "summary": "Get a trigger",
6767
6779
  "description": "Read schedule, state, upcoming times and latest firing. Use the ETag to update; the full webhook URL is not returned again.",
6768
6780
  "http": "GET",
6769
- "path": "/automation/v1/triggers/{id}",
6781
+ "path": "/automation/v1/triggers/{trigger_id}",
6770
6782
  "streaming": "no",
6771
6783
  "pagination": false,
6772
6784
  "pathParams": [
6773
6785
  {
6774
- "name": "id",
6775
- "sdkName": "id",
6786
+ "name": "trigger_id",
6787
+ "sdkName": "trigger_id",
6776
6788
  "description": "Trigger ID (trg_)."
6777
6789
  }
6778
6790
  ],
@@ -6784,13 +6796,13 @@ export const operations = [
6784
6796
  "summary": "Update a trigger",
6785
6797
  "description": "Update configuration with If-Match matching the current ETag, revalidating target input and schedule. kind is immutable and definition-managed triggers reject updates with TRIGGER_MANAGED.",
6786
6798
  "http": "PATCH",
6787
- "path": "/automation/v1/triggers/{id}",
6799
+ "path": "/automation/v1/triggers/{trigger_id}",
6788
6800
  "streaming": "no",
6789
6801
  "pagination": false,
6790
6802
  "pathParams": [
6791
6803
  {
6792
- "name": "id",
6793
- "sdkName": "id",
6804
+ "name": "trigger_id",
6805
+ "sdkName": "trigger_id",
6794
6806
  "description": "Trigger ID (trg_)."
6795
6807
  }
6796
6808
  ],
@@ -6901,13 +6913,13 @@ export const operations = [
6901
6913
  "summary": "Fire a trigger now",
6902
6914
  "description": "Fire once now and return a Firing, subject to current state, catchup window and overlap rules. Run-launch failures are recorded in the firing error.",
6903
6915
  "http": "POST",
6904
- "path": "/automation/v1/triggers/{id}/fire",
6916
+ "path": "/automation/v1/triggers/{trigger_id}/fire",
6905
6917
  "streaming": "no",
6906
6918
  "pagination": false,
6907
6919
  "pathParams": [
6908
6920
  {
6909
- "name": "id",
6910
- "sdkName": "id",
6921
+ "name": "trigger_id",
6922
+ "sdkName": "trigger_id",
6911
6923
  "description": "Trigger ID (trg_)."
6912
6924
  }
6913
6925
  ],
@@ -6919,13 +6931,13 @@ export const operations = [
6919
6931
  "summary": "List trigger firings",
6920
6932
  "description": "Read the last 30 days of firings newest first. Results include resolved versions, run IDs and failure details.",
6921
6933
  "http": "GET",
6922
- "path": "/automation/v1/triggers/{id}/firings",
6934
+ "path": "/automation/v1/triggers/{trigger_id}/firings",
6923
6935
  "streaming": "no",
6924
6936
  "pagination": true,
6925
6937
  "pathParams": [
6926
6938
  {
6927
- "name": "id",
6928
- "sdkName": "id",
6939
+ "name": "trigger_id",
6940
+ "sdkName": "trigger_id",
6929
6941
  "description": "Trigger ID (trg_)."
6930
6942
  }
6931
6943
  ],
@@ -6971,13 +6983,13 @@ export const operations = [
6971
6983
  "summary": "Pause a trigger",
6972
6984
  "description": "Pause new firings without terminating existing runs. Definition-managed triggers can also be paused.",
6973
6985
  "http": "POST",
6974
- "path": "/automation/v1/triggers/{id}/pause",
6986
+ "path": "/automation/v1/triggers/{trigger_id}/pause",
6975
6987
  "streaming": "no",
6976
6988
  "pagination": false,
6977
6989
  "pathParams": [
6978
6990
  {
6979
- "name": "id",
6980
- "sdkName": "id",
6991
+ "name": "trigger_id",
6992
+ "sdkName": "trigger_id",
6981
6993
  "description": "Trigger ID (trg_)."
6982
6994
  }
6983
6995
  ],
@@ -6989,13 +7001,13 @@ export const operations = [
6989
7001
  "summary": "Resume a trigger",
6990
7002
  "description": "Resume firings and reset consecutive failures. Triggers past their end time or finished one-time schedules remain expired; a full enabled-trigger quota returns TRIGGER_LIMIT.",
6991
7003
  "http": "POST",
6992
- "path": "/automation/v1/triggers/{id}/resume",
7004
+ "path": "/automation/v1/triggers/{trigger_id}/resume",
6993
7005
  "streaming": "no",
6994
7006
  "pagination": false,
6995
7007
  "pathParams": [
6996
7008
  {
6997
- "name": "id",
6998
- "sdkName": "id",
7009
+ "name": "trigger_id",
7010
+ "sdkName": "trigger_id",
6999
7011
  "description": "Trigger ID (trg_)."
7000
7012
  }
7001
7013
  ],
@@ -7007,13 +7019,13 @@ export const operations = [
7007
7019
  "summary": "Rotate a webhook URL",
7008
7020
  "description": "For webhook triggers only: invalidate the old token immediately and return a new full webhook_url. Later detail reads do not reveal the full URL.",
7009
7021
  "http": "POST",
7010
- "path": "/automation/v1/triggers/{id}/rotate-webhook",
7022
+ "path": "/automation/v1/triggers/{trigger_id}/rotate-webhook",
7011
7023
  "streaming": "no",
7012
7024
  "pagination": false,
7013
7025
  "pathParams": [
7014
7026
  {
7015
- "name": "id",
7016
- "sdkName": "id",
7027
+ "name": "trigger_id",
7028
+ "sdkName": "trigger_id",
7017
7029
  "description": "Trigger ID (trg_)."
7018
7030
  }
7019
7031
  ],
@@ -7160,9 +7172,9 @@ export const operations = [
7160
7172
  },
7161
7173
  {
7162
7174
  "name": "draft",
7163
- "type": "string",
7175
+ "type": "object",
7164
7176
  "required": false,
7165
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
7177
+ "description": "Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }."
7166
7178
  },
7167
7179
  {
7168
7180
  "name": "labels",
@@ -7177,15 +7189,15 @@ export const operations = [
7177
7189
  "resource": "automation.workflows",
7178
7190
  "method": "retrieve",
7179
7191
  "summary": "Get a workflow",
7180
- "description": "Read workflow details and draft source. The ETag is the draft revision to use in If-Match for updates.",
7192
+ "description": "Read workflow details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
7181
7193
  "http": "GET",
7182
- "path": "/automation/v1/workflows/{ns}/{name}",
7194
+ "path": "/automation/v1/workflows/{namespace}/{name}",
7183
7195
  "streaming": "no",
7184
7196
  "pagination": false,
7185
7197
  "pathParams": [
7186
7198
  {
7187
- "name": "ns",
7188
- "sdkName": "ns",
7199
+ "name": "namespace",
7200
+ "sdkName": "namespace",
7189
7201
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7190
7202
  },
7191
7203
  {
@@ -7200,15 +7212,15 @@ export const operations = [
7200
7212
  "resource": "automation.workflows",
7201
7213
  "method": "update",
7202
7214
  "summary": "Update a workflow draft",
7203
- "description": "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
7215
+ "description": "Update description, labels or draft with the current draft revision in the body as draft.revision, taken from the get-workflow response (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
7204
7216
  "http": "PATCH",
7205
- "path": "/automation/v1/workflows/{ns}/{name}",
7217
+ "path": "/automation/v1/workflows/{namespace}/{name}",
7206
7218
  "streaming": "no",
7207
7219
  "pagination": false,
7208
7220
  "pathParams": [
7209
7221
  {
7210
- "name": "ns",
7211
- "sdkName": "ns",
7222
+ "name": "namespace",
7223
+ "sdkName": "namespace",
7212
7224
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7213
7225
  },
7214
7226
  {
@@ -7222,8 +7234,8 @@ export const operations = [
7222
7234
  {
7223
7235
  "name": "If-Match",
7224
7236
  "type": "string",
7225
- "required": true,
7226
- "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
7237
+ "required": false,
7238
+ "description": "Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412."
7227
7239
  }
7228
7240
  ],
7229
7241
  "body": {
@@ -7243,9 +7255,9 @@ export const operations = [
7243
7255
  },
7244
7256
  {
7245
7257
  "name": "draft",
7246
- "type": "string",
7258
+ "type": "object",
7247
7259
  "required": false,
7248
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
7260
+ "description": "Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match."
7249
7261
  }
7250
7262
  ]
7251
7263
  }
@@ -7256,13 +7268,13 @@ export const operations = [
7256
7268
  "summary": "Archive a workflow",
7257
7269
  "description": "Keep the name, versions and draft while archiving. The default list hides it and new target resolution and run requests reject the archived target.",
7258
7270
  "http": "POST",
7259
- "path": "/automation/v1/workflows/{ns}/{name}/archive",
7271
+ "path": "/automation/v1/workflows/{namespace}/{name}/archive",
7260
7272
  "streaming": "no",
7261
7273
  "pagination": false,
7262
7274
  "pathParams": [
7263
7275
  {
7264
- "name": "ns",
7265
- "sdkName": "ns",
7276
+ "name": "namespace",
7277
+ "sdkName": "namespace",
7266
7278
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7267
7279
  },
7268
7280
  {
@@ -7283,13 +7295,13 @@ export const operations = [
7283
7295
  "summary": "List workflow tags",
7284
7296
  "description": "Read the exact version for each distribution tag. Results include the update time and updater.",
7285
7297
  "http": "GET",
7286
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags",
7298
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags",
7287
7299
  "streaming": "no",
7288
7300
  "pagination": false,
7289
7301
  "pathParams": [
7290
7302
  {
7291
- "name": "ns",
7292
- "sdkName": "ns",
7303
+ "name": "namespace",
7304
+ "sdkName": "namespace",
7293
7305
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7294
7306
  },
7295
7307
  {
@@ -7306,13 +7318,13 @@ export const operations = [
7306
7318
  "summary": "Delete a workflow tag",
7307
7319
  "description": "Delete a distribution tag while retaining versions. latest cannot be deleted, versions and ranges are invalid tags, and deleting an absent valid tag is repeatable.",
7308
7320
  "http": "DELETE",
7309
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}",
7321
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
7310
7322
  "streaming": "no",
7311
7323
  "pagination": false,
7312
7324
  "pathParams": [
7313
7325
  {
7314
- "name": "ns",
7315
- "sdkName": "ns",
7326
+ "name": "namespace",
7327
+ "sdkName": "namespace",
7316
7328
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7317
7329
  },
7318
7330
  {
@@ -7334,13 +7346,13 @@ export const operations = [
7334
7346
  "summary": "Set a workflow tag",
7335
7347
  "description": "Point a distribution tag at an existing exact version; tags cannot be versions or version ranges. Moving latest can roll back a release and synchronizes workflow schedules.",
7336
7348
  "http": "PUT",
7337
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}",
7349
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
7338
7350
  "streaming": "no",
7339
7351
  "pagination": false,
7340
7352
  "pathParams": [
7341
7353
  {
7342
- "name": "ns",
7343
- "sdkName": "ns",
7354
+ "name": "namespace",
7355
+ "sdkName": "namespace",
7344
7356
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7345
7357
  },
7346
7358
  {
@@ -7373,13 +7385,13 @@ export const operations = [
7373
7385
  "summary": "Restore a workflow",
7374
7386
  "description": "Restore an archived definition with its versions and tags. The name is retained.",
7375
7387
  "http": "POST",
7376
- "path": "/automation/v1/workflows/{ns}/{name}/restore",
7388
+ "path": "/automation/v1/workflows/{namespace}/{name}/restore",
7377
7389
  "streaming": "no",
7378
7390
  "pagination": false,
7379
7391
  "pathParams": [
7380
7392
  {
7381
- "name": "ns",
7382
- "sdkName": "ns",
7393
+ "name": "namespace",
7394
+ "sdkName": "namespace",
7383
7395
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7384
7396
  },
7385
7397
  {
@@ -7400,13 +7412,13 @@ export const operations = [
7400
7412
  "summary": "List workflow vault bindings",
7401
7413
  "description": "Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
7402
7414
  "http": "GET",
7403
- "path": "/automation/v1/workflows/{ns}/{name}/vaults",
7415
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults",
7404
7416
  "streaming": "no",
7405
7417
  "pagination": false,
7406
7418
  "pathParams": [
7407
7419
  {
7408
- "name": "ns",
7409
- "sdkName": "ns",
7420
+ "name": "namespace",
7421
+ "sdkName": "namespace",
7410
7422
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7411
7423
  },
7412
7424
  {
@@ -7423,13 +7435,13 @@ export const operations = [
7423
7435
  "summary": "Delete a workflow vault binding",
7424
7436
  "description": "Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
7425
7437
  "http": "DELETE",
7426
- "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
7438
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
7427
7439
  "streaming": "no",
7428
7440
  "pagination": false,
7429
7441
  "pathParams": [
7430
7442
  {
7431
- "name": "ns",
7432
- "sdkName": "ns",
7443
+ "name": "namespace",
7444
+ "sdkName": "namespace",
7433
7445
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7434
7446
  },
7435
7447
  {
@@ -7451,13 +7463,13 @@ export const operations = [
7451
7463
  "summary": "Set a workflow vault binding",
7452
7464
  "description": "Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
7453
7465
  "http": "PUT",
7454
- "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
7466
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
7455
7467
  "streaming": "no",
7456
7468
  "pagination": false,
7457
7469
  "pathParams": [
7458
7470
  {
7459
- "name": "ns",
7460
- "sdkName": "ns",
7471
+ "name": "namespace",
7472
+ "sdkName": "namespace",
7461
7473
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7462
7474
  },
7463
7475
  {
@@ -7490,13 +7502,13 @@ export const operations = [
7490
7502
  "summary": "List workflow versions",
7491
7503
  "description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
7492
7504
  "http": "GET",
7493
- "path": "/automation/v1/workflows/{ns}/{name}/versions",
7505
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions",
7494
7506
  "streaming": "no",
7495
7507
  "pagination": true,
7496
7508
  "pathParams": [
7497
7509
  {
7498
- "name": "ns",
7499
- "sdkName": "ns",
7510
+ "name": "namespace",
7511
+ "sdkName": "namespace",
7500
7512
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7501
7513
  },
7502
7514
  {
@@ -7536,15 +7548,15 @@ export const operations = [
7536
7548
  "publish"
7537
7549
  ],
7538
7550
  "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. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).",
7551
+ "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).",
7540
7552
  "http": "POST",
7541
- "path": "/automation/v1/workflows/{ns}/{name}/versions",
7553
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions",
7542
7554
  "streaming": "no",
7543
7555
  "pagination": false,
7544
7556
  "pathParams": [
7545
7557
  {
7546
- "name": "ns",
7547
- "sdkName": "ns",
7558
+ "name": "namespace",
7559
+ "sdkName": "namespace",
7548
7560
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7549
7561
  },
7550
7562
  {
@@ -7565,13 +7577,13 @@ export const operations = [
7565
7577
  "summary": "Get a workflow version",
7566
7578
  "description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
7567
7579
  "http": "GET",
7568
- "path": "/automation/v1/workflows/{ns}/{name}/versions/{version}",
7580
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}",
7569
7581
  "streaming": "no",
7570
7582
  "pagination": false,
7571
7583
  "pathParams": [
7572
7584
  {
7573
- "name": "ns",
7574
- "sdkName": "ns",
7585
+ "name": "namespace",
7586
+ "sdkName": "namespace",
7575
7587
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7576
7588
  },
7577
7589
  {
@@ -7593,13 +7605,13 @@ export const operations = [
7593
7605
  "summary": "Deprecate a workflow version",
7594
7606
  "description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
7595
7607
  "http": "POST",
7596
- "path": "/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate",
7608
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate",
7597
7609
  "streaming": "no",
7598
7610
  "pagination": false,
7599
7611
  "pathParams": [
7600
7612
  {
7601
- "name": "ns",
7602
- "sdkName": "ns",
7613
+ "name": "namespace",
7614
+ "sdkName": "namespace",
7603
7615
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7604
7616
  },
7605
7617
  {
@@ -7831,7 +7843,7 @@ export const operations = [
7831
7843
  "resource": "browser.connect",
7832
7844
  "method": "retrieve",
7833
7845
  "summary": "连接云端浏览器",
7834
- "description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。",
7846
+ "description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl(两者都是该会话在 Console 的会话页)。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。",
7835
7847
  "http": "GET",
7836
7848
  "path": "/browser/v1/connect",
7837
7849
  "streaming": "no",
@@ -8047,7 +8059,7 @@ export const operations = [
8047
8059
  "resource": "browser.live",
8048
8060
  "method": "retrieve",
8049
8061
  "summary": "打开实时浏览器画面",
8050
- "description": "使用 debug 返回的完整实时观看地址打开浏览器画面,成功后跳转到对应会话或标签页。必须保留地址中的 t 凭证,无需额外 API Key;链接失效时重新调用 debug 获取地址。",
8062
+ "description": "旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。",
8051
8063
  "http": "GET",
8052
8064
  "path": "/browser/v1/live/{sessionId}/{pageId}",
8053
8065
  "streaming": "no",
@@ -8145,7 +8157,7 @@ export const operations = [
8145
8157
  "resource": "browser.sessions",
8146
8158
  "method": "create",
8147
8159
  "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 小时。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
8160
+ "description": "创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。请求体里不认识的字段返回 400 INVALID_PARAMS 并写明字段名,不会被静默忽略;登录态写在 browserSettings.context({ id, persist }),写在顶层会被拒绝。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
8149
8161
  "http": "POST",
8150
8162
  "path": "/browser/v1/sessions",
8151
8163
  "streaming": "no",
@@ -8295,7 +8307,7 @@ export const operations = [
8295
8307
  "resource": "browser.sessions.actions",
8296
8308
  "method": "create",
8297
8309
  "summary": "执行页面动作",
8298
- "description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。",
8310
+ "description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;网络层用 route、unroute、routes 拦截请求(对标 Playwright 的 context.route 与 CDP Fetch 域):规则挂在会话上,open、reload、新开标签页之后仍然有效,会话结束时清除,多条规则都匹配时后注册的优先;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。",
8299
8311
  "http": "POST",
8300
8312
  "path": "/browser/v1/sessions/{sessionId}/actions",
8301
8313
  "streaming": "no",
@@ -18845,7 +18857,7 @@ export const operations = [
18845
18857
  "resource": "devops.units",
18846
18858
  "method": "push",
18847
18859
  "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, so fetch first when unsure, reconcile, and send the new head. 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.",
18860
+ "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.",
18849
18861
  "http": "POST",
18850
18862
  "path": "/devops/v1/units/{id}:push",
18851
18863
  "streaming": "no",
@@ -18912,6 +18924,122 @@ export const operations = [
18912
18924
  ],
18913
18925
  "query": []
18914
18926
  },
18927
+ {
18928
+ "resource": "events.subscriptions",
18929
+ "method": "list",
18930
+ "summary": "List event subscriptions",
18931
+ "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.",
18932
+ "http": "GET",
18933
+ "path": "/events/v1/subscriptions",
18934
+ "streaming": "no",
18935
+ "pagination": false,
18936
+ "pathParams": [],
18937
+ "query": [
18938
+ {
18939
+ "name": "limit",
18940
+ "type": "integer",
18941
+ "required": false,
18942
+ "description": "Maximum subscriptions to return, from 1 to 100; defaults to 50."
18943
+ }
18944
+ ]
18945
+ },
18946
+ {
18947
+ "resource": "events.subscriptions",
18948
+ "method": "create",
18949
+ "summary": "Create event subscription",
18950
+ "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.",
18951
+ "http": "POST",
18952
+ "path": "/events/v1/subscriptions",
18953
+ "streaming": "no",
18954
+ "pagination": false,
18955
+ "pathParams": [],
18956
+ "query": [],
18957
+ "body": {
18958
+ "required": true,
18959
+ "fields": [
18960
+ {
18961
+ "name": "types",
18962
+ "type": "array",
18963
+ "itemType": "string",
18964
+ "required": true,
18965
+ "description": "The tenant event types to hear about, from events.types.list; an event of any one of them can match."
18966
+ },
18967
+ {
18968
+ "name": "filters",
18969
+ "type": "array",
18970
+ "itemType": "object",
18971
+ "required": false,
18972
+ "description": "Conditions that must all hold for an event to match; omit or leave empty to match every event of the types."
18973
+ },
18974
+ {
18975
+ "name": "sink",
18976
+ "type": "string",
18977
+ "required": false,
18978
+ "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."
18979
+ },
18980
+ {
18981
+ "name": "once",
18982
+ "type": "boolean",
18983
+ "required": false,
18984
+ "description": "True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour."
18985
+ },
18986
+ {
18987
+ "name": "expires_at",
18988
+ "type": "string",
18989
+ "required": false,
18990
+ "description": "When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now."
18991
+ }
18992
+ ]
18993
+ }
18994
+ },
18995
+ {
18996
+ "resource": "events.subscriptions",
18997
+ "method": "delete",
18998
+ "summary": "Delete event subscription",
18999
+ "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.",
19000
+ "http": "DELETE",
19001
+ "path": "/events/v1/subscriptions/{subscription_id}",
19002
+ "streaming": "no",
19003
+ "pagination": false,
19004
+ "pathParams": [
19005
+ {
19006
+ "name": "subscription_id",
19007
+ "sdkName": "subscription_id",
19008
+ "description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
19009
+ }
19010
+ ],
19011
+ "query": []
19012
+ },
19013
+ {
19014
+ "resource": "events.subscriptions",
19015
+ "method": "retrieve",
19016
+ "summary": "Retrieve event subscription",
19017
+ "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.",
19018
+ "http": "GET",
19019
+ "path": "/events/v1/subscriptions/{subscription_id}",
19020
+ "streaming": "no",
19021
+ "pagination": false,
19022
+ "pathParams": [
19023
+ {
19024
+ "name": "subscription_id",
19025
+ "sdkName": "subscription_id",
19026
+ "description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
19027
+ }
19028
+ ],
19029
+ "query": []
19030
+ },
19031
+ {
19032
+ "resource": "events.types",
19033
+ "method": "list",
19034
+ "summary": "List event types",
19035
+ "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.",
19036
+ "http": "GET",
19037
+ "path": "/events/v1/types",
19038
+ "streaming": "no",
19039
+ "pagination": false,
19040
+ "pathParams": [],
19041
+ "query": []
19042
+ },
18915
19043
  {
18916
19044
  "resource": "file.files",
18917
19045
  "method": "list",
@@ -21181,22 +21309,58 @@ export const operations = [
21181
21309
  "query": []
21182
21310
  },
21183
21311
  {
21184
- "resource": "media.libraries.assets",
21185
- "method": "batch",
21186
- "summary": "Batch assets alias",
21187
- "description": "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
21188
- "http": "POST",
21189
- "path": "/media/v1/libraries/{library_id}/assets:batch",
21312
+ "resource": "media.libraries.assets.works",
21313
+ "method": "list",
21314
+ "summary": "List works using an asset",
21315
+ "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.",
21316
+ "http": "GET",
21317
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/works",
21190
21318
  "streaming": "no",
21191
- "pagination": false,
21319
+ "pagination": true,
21192
21320
  "pathParams": [
21193
21321
  {
21194
21322
  "name": "library_id",
21195
21323
  "sdkName": "library_id",
21196
21324
  "description": "Library ID returned by creation."
21197
- }
21198
- ],
21199
- "query": [],
21325
+ },
21326
+ {
21327
+ "name": "asset_id",
21328
+ "sdkName": "asset_id",
21329
+ "description": "32-character asset ID."
21330
+ }
21331
+ ],
21332
+ "query": [
21333
+ {
21334
+ "name": "limit",
21335
+ "type": "integer",
21336
+ "required": false,
21337
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
21338
+ },
21339
+ {
21340
+ "name": "cursor",
21341
+ "type": "string",
21342
+ "required": false,
21343
+ "description": "Cursor from the previous next_cursor."
21344
+ }
21345
+ ]
21346
+ },
21347
+ {
21348
+ "resource": "media.libraries.assets",
21349
+ "method": "batch",
21350
+ "summary": "Batch assets alias",
21351
+ "description": "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
21352
+ "http": "POST",
21353
+ "path": "/media/v1/libraries/{library_id}/assets:batch",
21354
+ "streaming": "no",
21355
+ "pagination": false,
21356
+ "pathParams": [
21357
+ {
21358
+ "name": "library_id",
21359
+ "sdkName": "library_id",
21360
+ "description": "Library ID returned by creation."
21361
+ }
21362
+ ],
21363
+ "query": [],
21200
21364
  "body": {
21201
21365
  "required": true,
21202
21366
  "fields": [
@@ -22449,6 +22613,215 @@ export const operations = [
22449
22613
  ]
22450
22614
  }
22451
22615
  },
22616
+ {
22617
+ "resource": "media.libraries.works",
22618
+ "method": "list",
22619
+ "summary": "List works",
22620
+ "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.",
22621
+ "http": "GET",
22622
+ "path": "/media/v1/libraries/{library_id}/works",
22623
+ "streaming": "no",
22624
+ "pagination": true,
22625
+ "pathParams": [
22626
+ {
22627
+ "name": "library_id",
22628
+ "sdkName": "library_id",
22629
+ "description": "Library ID returned by creation."
22630
+ }
22631
+ ],
22632
+ "query": [
22633
+ {
22634
+ "name": "kind",
22635
+ "type": "string",
22636
+ "enum": [
22637
+ "gallery",
22638
+ "article",
22639
+ "product_listing",
22640
+ "blocks"
22641
+ ],
22642
+ "required": false,
22643
+ "description": "Only works of this kind: gallery, article, product_listing or blocks."
22644
+ },
22645
+ {
22646
+ "name": "series",
22647
+ "type": "string",
22648
+ "required": false,
22649
+ "description": "Only works of this series."
22650
+ },
22651
+ {
22652
+ "name": "q",
22653
+ "type": "string",
22654
+ "required": false,
22655
+ "description": "Only works whose title contains this text, at most 100 characters."
22656
+ },
22657
+ {
22658
+ "name": "limit",
22659
+ "type": "integer",
22660
+ "required": false,
22661
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
22662
+ },
22663
+ {
22664
+ "name": "cursor",
22665
+ "type": "string",
22666
+ "required": false,
22667
+ "description": "Cursor from the previous next_cursor."
22668
+ }
22669
+ ]
22670
+ },
22671
+ {
22672
+ "resource": "media.libraries.works",
22673
+ "method": "create",
22674
+ "summary": "Create work",
22675
+ "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 ![alt](asset:<asset_id>) 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>\"}]}}.",
22676
+ "http": "POST",
22677
+ "path": "/media/v1/libraries/{library_id}/works",
22678
+ "streaming": "no",
22679
+ "pagination": false,
22680
+ "pathParams": [
22681
+ {
22682
+ "name": "library_id",
22683
+ "sdkName": "library_id",
22684
+ "description": "Library ID returned by creation."
22685
+ }
22686
+ ],
22687
+ "query": [],
22688
+ "body": {
22689
+ "required": true,
22690
+ "fields": [
22691
+ {
22692
+ "name": "kind",
22693
+ "type": "string",
22694
+ "enum": [
22695
+ "gallery",
22696
+ "article",
22697
+ "product_listing",
22698
+ "blocks"
22699
+ ],
22700
+ "required": true,
22701
+ "description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
22702
+ },
22703
+ {
22704
+ "name": "body",
22705
+ "type": "object",
22706
+ "required": true
22707
+ },
22708
+ {
22709
+ "name": "series",
22710
+ "type": "string",
22711
+ "required": false,
22712
+ "description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
22713
+ },
22714
+ {
22715
+ "name": "custom",
22716
+ "type": "object",
22717
+ "required": false
22718
+ }
22719
+ ]
22720
+ }
22721
+ },
22722
+ {
22723
+ "resource": "media.libraries.works",
22724
+ "method": "delete",
22725
+ "summary": "Delete work",
22726
+ "description": "Delete a work. Only the work goes: every asset it named stays in the library unchanged.",
22727
+ "http": "DELETE",
22728
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22729
+ "streaming": "no",
22730
+ "pagination": false,
22731
+ "pathParams": [
22732
+ {
22733
+ "name": "library_id",
22734
+ "sdkName": "library_id",
22735
+ "description": "Library ID returned by creation."
22736
+ },
22737
+ {
22738
+ "name": "work_id",
22739
+ "sdkName": "work_id",
22740
+ "description": "Work id (wrk_…) returned by creation or listing."
22741
+ }
22742
+ ],
22743
+ "query": []
22744
+ },
22745
+ {
22746
+ "resource": "media.libraries.works",
22747
+ "method": "retrieve",
22748
+ "summary": "Get work",
22749
+ "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.",
22750
+ "http": "GET",
22751
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22752
+ "streaming": "no",
22753
+ "pagination": false,
22754
+ "pathParams": [
22755
+ {
22756
+ "name": "library_id",
22757
+ "sdkName": "library_id",
22758
+ "description": "Library ID returned by creation."
22759
+ },
22760
+ {
22761
+ "name": "work_id",
22762
+ "sdkName": "work_id",
22763
+ "description": "Work id (wrk_…) returned by creation or listing."
22764
+ }
22765
+ ],
22766
+ "query": [
22767
+ {
22768
+ "name": "expand",
22769
+ "type": "string",
22770
+ "required": false,
22771
+ "description": "assets returns every referenced asset with its URLs and size."
22772
+ }
22773
+ ]
22774
+ },
22775
+ {
22776
+ "resource": "media.libraries.works",
22777
+ "method": "update",
22778
+ "summary": "Update work",
22779
+ "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}}}.",
22780
+ "http": "PATCH",
22781
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22782
+ "streaming": "no",
22783
+ "pagination": false,
22784
+ "pathParams": [
22785
+ {
22786
+ "name": "library_id",
22787
+ "sdkName": "library_id",
22788
+ "description": "Library ID returned by creation."
22789
+ },
22790
+ {
22791
+ "name": "work_id",
22792
+ "sdkName": "work_id",
22793
+ "description": "Work id (wrk_…) returned by creation or listing."
22794
+ }
22795
+ ],
22796
+ "query": [],
22797
+ "body": {
22798
+ "required": true,
22799
+ "fields": [
22800
+ {
22801
+ "name": "body",
22802
+ "type": "object",
22803
+ "required": false
22804
+ },
22805
+ {
22806
+ "name": "series",
22807
+ "type": "string",
22808
+ "required": false,
22809
+ "description": "A new series, or null to clear it."
22810
+ },
22811
+ {
22812
+ "name": "custom",
22813
+ "type": "object",
22814
+ "required": false
22815
+ },
22816
+ {
22817
+ "name": "if_revision",
22818
+ "type": "number",
22819
+ "required": false,
22820
+ "description": "Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision."
22821
+ }
22822
+ ]
22823
+ }
22824
+ },
22452
22825
  {
22453
22826
  "resource": "media.pipelines",
22454
22827
  "method": "list",
@@ -26084,7 +26457,7 @@ export const operations = [
26084
26457
  "resource": "organization.costs",
26085
26458
  "method": "list",
26086
26459
  "summary": "List Organization Costs",
26087
- "description": "Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole UTC hour/day periods; 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",
26460
+ "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
26461
  "http": "GET",
26089
26462
  "path": "/organization/v1/costs",
26090
26463
  "streaming": "no",
@@ -26117,7 +26490,7 @@ export const operations = [
26117
26490
  "name": "time_zone",
26118
26491
  "type": "string",
26119
26492
  "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. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
26493
+ "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
26494
  },
26122
26495
  {
26123
26496
  "name": "group_by",
@@ -26127,10 +26500,14 @@ export const operations = [
26127
26500
  "ServiceName",
26128
26501
  "ServiceCategory",
26129
26502
  "ResourceId",
26130
- "ConsumedUnit"
26503
+ "ConsumedUnit",
26504
+ "SessionId",
26505
+ "AgentId",
26506
+ "ApiKeyId",
26507
+ "RunId"
26131
26508
  ],
26132
26509
  "required": false,
26133
- "description": "FOCUS 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).\n"
26510
+ "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
26511
  },
26135
26512
  {
26136
26513
  "name": "page",
@@ -26483,29 +26860,46 @@ export const operations = [
26483
26860
  {
26484
26861
  "resource": "organization.notifications.letters",
26485
26862
  "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.",
26863
+ "summary": "List the letters addressed to you, or the ones you sent",
26864
+ "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
26865
  "http": "GET",
26489
26866
  "path": "/organization/v1/notifications/letters",
26490
26867
  "streaming": "no",
26491
26868
  "pagination": false,
26492
26869
  "pathParams": [],
26493
26870
  "query": [
26871
+ {
26872
+ "name": "direction",
26873
+ "type": "string",
26874
+ "enum": [
26875
+ "received",
26876
+ "sent"
26877
+ ],
26878
+ "required": false,
26879
+ "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."
26880
+ },
26494
26881
  {
26495
26882
  "name": "status",
26496
26883
  "type": "string",
26497
26884
  "enum": [
26498
26885
  "unread",
26499
- "read"
26886
+ "read",
26887
+ "scheduled"
26500
26888
  ],
26501
26889
  "required": false,
26502
- "description": "Only unread letters, or only read ones; omit for both."
26890
+ "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."
26891
+ },
26892
+ {
26893
+ "name": "thread",
26894
+ "type": "string",
26895
+ "required": false,
26896
+ "description": "Only letters of this conversation, for received and sent alike; omit for all."
26503
26897
  },
26504
26898
  {
26505
26899
  "name": "archived",
26506
26900
  "type": "boolean",
26507
26901
  "required": false,
26508
- "description": "false (the default) hides archived letters; true lists only the archived ones."
26902
+ "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
26903
  },
26510
26904
  {
26511
26905
  "name": "limit",
@@ -26521,6 +26915,64 @@ export const operations = [
26521
26915
  }
26522
26916
  ]
26523
26917
  },
26918
+ {
26919
+ "resource": "organization.notifications.letters",
26920
+ "method": "create",
26921
+ "summary": "Send a letter to a person or an agent",
26922
+ "description": "Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field — a person writes as themselves, an agent as itself, and an automation run (a scheduled or service-started one included) as the platform's automation sender with the run recorded in the letter's source; a `sender` in the body is ignored. Any other credential (an organization API key, an application) has no address to write from and is refused with 403. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A letter to a person needs a summary of at most 60 characters — one sentence saying what the reader must do or know; a longer one is refused, never cut. An agent's letter may leave summary out and the first line of body stands in. Repeating the same letter (same recipient, kind, thread, body and time) returns the same id and writes it once. Usage charge: none.",
26923
+ "http": "POST",
26924
+ "path": "/organization/v1/notifications/letters",
26925
+ "streaming": "no",
26926
+ "pagination": false,
26927
+ "pathParams": [],
26928
+ "query": [],
26929
+ "body": {
26930
+ "required": true,
26931
+ "fields": [
26932
+ {
26933
+ "name": "to",
26934
+ "type": "string",
26935
+ "required": true,
26936
+ "description": "The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization."
26937
+ },
26938
+ {
26939
+ "name": "body",
26940
+ "type": "string",
26941
+ "required": true,
26942
+ "description": "The whole letter, 1 to 16000 characters."
26943
+ },
26944
+ {
26945
+ "name": "summary",
26946
+ "type": "string",
26947
+ "required": false,
26948
+ "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."
26949
+ },
26950
+ {
26951
+ "name": "kind",
26952
+ "type": "string",
26953
+ "enum": [
26954
+ "notice",
26955
+ "mention",
26956
+ "decision"
26957
+ ],
26958
+ "required": false,
26959
+ "description": "The letter's kind; it decides the channels. Defaults to mention."
26960
+ },
26961
+ {
26962
+ "name": "thread",
26963
+ "type": "string",
26964
+ "required": false,
26965
+ "description": "The conversation the letter belongs to, free text; omit for none."
26966
+ },
26967
+ {
26968
+ "name": "deliver_at",
26969
+ "type": "string",
26970
+ "required": false,
26971
+ "description": "When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now."
26972
+ }
26973
+ ]
26974
+ }
26975
+ },
26524
26976
  {
26525
26977
  "resource": "organization.notifications.letters",
26526
26978
  "method": "retrieve",
@@ -26595,7 +27047,8 @@ export const operations = [
26595
27047
  "enum": [
26596
27048
  "notice",
26597
27049
  "mention",
26598
- "decision"
27050
+ "decision",
27051
+ "event"
26599
27052
  ],
26600
27053
  "required": false,
26601
27054
  "description": "Only letters of this kind; omit for all kinds."
@@ -26603,6 +27056,124 @@ export const operations = [
26603
27056
  ]
26604
27057
  }
26605
27058
  },
27059
+ {
27060
+ "resource": "organization.notifications.messages",
27061
+ "method": "list",
27062
+ "summary": "List your bell messages",
27063
+ "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.",
27064
+ "http": "GET",
27065
+ "path": "/organization/v1/notifications/messages",
27066
+ "streaming": "no",
27067
+ "pagination": false,
27068
+ "pathParams": [],
27069
+ "query": [
27070
+ {
27071
+ "name": "archived",
27072
+ "type": "string",
27073
+ "enum": [
27074
+ "0",
27075
+ "1"
27076
+ ],
27077
+ "required": false,
27078
+ "description": "0 (the default) lists the inbox tab, 1 lists archived messages."
27079
+ },
27080
+ {
27081
+ "name": "limit",
27082
+ "type": "integer",
27083
+ "required": false,
27084
+ "description": "Messages per page, 1 to 100; defaults to 20."
27085
+ },
27086
+ {
27087
+ "name": "page",
27088
+ "type": "string",
27089
+ "required": false,
27090
+ "description": "Opaque nextPageToken from the previous response; omit for the first page."
27091
+ }
27092
+ ]
27093
+ },
27094
+ {
27095
+ "resource": "organization.notifications.messages",
27096
+ "method": "delete",
27097
+ "summary": "Delete one of your bell messages",
27098
+ "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.",
27099
+ "http": "DELETE",
27100
+ "path": "/organization/v1/notifications/messages/{name}",
27101
+ "streaming": "no",
27102
+ "pagination": false,
27103
+ "pathParams": [
27104
+ {
27105
+ "name": "name",
27106
+ "sdkName": "name",
27107
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27108
+ }
27109
+ ],
27110
+ "query": []
27111
+ },
27112
+ {
27113
+ "resource": "organization.notifications.messages",
27114
+ "method": "retrieve",
27115
+ "summary": "Open one of your bell messages",
27116
+ "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.",
27117
+ "http": "GET",
27118
+ "path": "/organization/v1/notifications/messages/{name}",
27119
+ "streaming": "no",
27120
+ "pagination": false,
27121
+ "pathParams": [
27122
+ {
27123
+ "name": "name",
27124
+ "sdkName": "name",
27125
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27126
+ }
27127
+ ],
27128
+ "query": []
27129
+ },
27130
+ {
27131
+ "resource": "organization.notifications.messages",
27132
+ "method": "update",
27133
+ "summary": "Mark one of your bell messages read or archived",
27134
+ "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.",
27135
+ "http": "POST",
27136
+ "path": "/organization/v1/notifications/messages/{name}",
27137
+ "streaming": "no",
27138
+ "pagination": false,
27139
+ "pathParams": [
27140
+ {
27141
+ "name": "name",
27142
+ "sdkName": "name",
27143
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27144
+ }
27145
+ ],
27146
+ "query": [],
27147
+ "body": {
27148
+ "required": true,
27149
+ "fields": [
27150
+ {
27151
+ "name": "read",
27152
+ "type": "boolean",
27153
+ "required": false,
27154
+ "description": "Mark the message read (true) or unread (false); omit to leave it."
27155
+ },
27156
+ {
27157
+ "name": "archived",
27158
+ "type": "boolean",
27159
+ "required": false,
27160
+ "description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
27161
+ }
27162
+ ]
27163
+ }
27164
+ },
27165
+ {
27166
+ "resource": "organization.notifications.messages",
27167
+ "method": "readAll",
27168
+ "summary": "Mark all your unread bell messages read",
27169
+ "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.",
27170
+ "http": "POST",
27171
+ "path": "/organization/v1/notifications/messages:readAll",
27172
+ "streaming": "no",
27173
+ "pagination": false,
27174
+ "pathParams": [],
27175
+ "query": []
27176
+ },
26606
27177
  {
26607
27178
  "resource": "organization.notifications",
26608
27179
  "method": "retrieveOrganizationDefault",
@@ -26714,7 +27285,7 @@ export const operations = [
26714
27285
  "resource": "organization.usage",
26715
27286
  "method": "list",
26716
27287
  "summary": "List Organization Usage",
26717
- "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
27288
+ "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
27289
  "http": "GET",
26719
27290
  "path": "/organization/v1/usage",
26720
27291
  "streaming": "no",
@@ -26747,7 +27318,7 @@ export const operations = [
26747
27318
  "name": "time_zone",
26748
27319
  "type": "string",
26749
27320
  "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. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
27321
+ "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
27322
  },
26752
27323
  {
26753
27324
  "name": "group_by",
@@ -26757,10 +27328,14 @@ export const operations = [
26757
27328
  "ServiceName",
26758
27329
  "ServiceCategory",
26759
27330
  "ResourceId",
26760
- "ConsumedUnit"
27331
+ "ConsumedUnit",
27332
+ "SessionId",
27333
+ "AgentId",
27334
+ "ApiKeyId",
27335
+ "RunId"
26761
27336
  ],
26762
27337
  "required": false,
26763
- "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
27338
+ "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
27339
  },
26765
27340
  {
26766
27341
  "name": "page",
@@ -27785,6 +28360,24 @@ export const operations = [
27785
28360
  ]
27786
28361
  }
27787
28362
  },
28363
+ {
28364
+ "resource": "sandbox.byod.pairings",
28365
+ "method": "status",
28366
+ "summary": "Read which device claimed your pairing",
28367
+ "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}.",
28368
+ "http": "GET",
28369
+ "path": "/sandbox/v1/byod/pairings/{code}/status",
28370
+ "streaming": "no",
28371
+ "pagination": false,
28372
+ "pathParams": [
28373
+ {
28374
+ "name": "code",
28375
+ "sdkName": "code",
28376
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
28377
+ }
28378
+ ],
28379
+ "query": []
28380
+ },
27788
28381
  {
27789
28382
  "resource": "sandbox.events.sandboxes",
27790
28383
  "method": "retrieve",