@deepraxis/sdk 0.2.0-dev.142bee8 → 0.2.0-dev.229e1e5

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",
@@ -21180,6 +21192,42 @@ export const operations = [
21180
21192
  ],
21181
21193
  "query": []
21182
21194
  },
21195
+ {
21196
+ "resource": "media.libraries.assets.works",
21197
+ "method": "list",
21198
+ "summary": "List works using an asset",
21199
+ "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.",
21200
+ "http": "GET",
21201
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/works",
21202
+ "streaming": "no",
21203
+ "pagination": true,
21204
+ "pathParams": [
21205
+ {
21206
+ "name": "library_id",
21207
+ "sdkName": "library_id",
21208
+ "description": "Library ID returned by creation."
21209
+ },
21210
+ {
21211
+ "name": "asset_id",
21212
+ "sdkName": "asset_id",
21213
+ "description": "32-character asset ID."
21214
+ }
21215
+ ],
21216
+ "query": [
21217
+ {
21218
+ "name": "limit",
21219
+ "type": "integer",
21220
+ "required": false,
21221
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
21222
+ },
21223
+ {
21224
+ "name": "cursor",
21225
+ "type": "string",
21226
+ "required": false,
21227
+ "description": "Cursor from the previous next_cursor."
21228
+ }
21229
+ ]
21230
+ },
21183
21231
  {
21184
21232
  "resource": "media.libraries.assets",
21185
21233
  "method": "batch",
@@ -22449,6 +22497,215 @@ export const operations = [
22449
22497
  ]
22450
22498
  }
22451
22499
  },
22500
+ {
22501
+ "resource": "media.libraries.works",
22502
+ "method": "list",
22503
+ "summary": "List works",
22504
+ "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.",
22505
+ "http": "GET",
22506
+ "path": "/media/v1/libraries/{library_id}/works",
22507
+ "streaming": "no",
22508
+ "pagination": true,
22509
+ "pathParams": [
22510
+ {
22511
+ "name": "library_id",
22512
+ "sdkName": "library_id",
22513
+ "description": "Library ID returned by creation."
22514
+ }
22515
+ ],
22516
+ "query": [
22517
+ {
22518
+ "name": "kind",
22519
+ "type": "string",
22520
+ "enum": [
22521
+ "gallery",
22522
+ "article",
22523
+ "product_listing",
22524
+ "blocks"
22525
+ ],
22526
+ "required": false,
22527
+ "description": "Only works of this kind: gallery, article, product_listing or blocks."
22528
+ },
22529
+ {
22530
+ "name": "series",
22531
+ "type": "string",
22532
+ "required": false,
22533
+ "description": "Only works of this series."
22534
+ },
22535
+ {
22536
+ "name": "q",
22537
+ "type": "string",
22538
+ "required": false,
22539
+ "description": "Only works whose title contains this text, at most 100 characters."
22540
+ },
22541
+ {
22542
+ "name": "limit",
22543
+ "type": "integer",
22544
+ "required": false,
22545
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
22546
+ },
22547
+ {
22548
+ "name": "cursor",
22549
+ "type": "string",
22550
+ "required": false,
22551
+ "description": "Cursor from the previous next_cursor."
22552
+ }
22553
+ ]
22554
+ },
22555
+ {
22556
+ "resource": "media.libraries.works",
22557
+ "method": "create",
22558
+ "summary": "Create work",
22559
+ "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>\"}]}}.",
22560
+ "http": "POST",
22561
+ "path": "/media/v1/libraries/{library_id}/works",
22562
+ "streaming": "no",
22563
+ "pagination": false,
22564
+ "pathParams": [
22565
+ {
22566
+ "name": "library_id",
22567
+ "sdkName": "library_id",
22568
+ "description": "Library ID returned by creation."
22569
+ }
22570
+ ],
22571
+ "query": [],
22572
+ "body": {
22573
+ "required": true,
22574
+ "fields": [
22575
+ {
22576
+ "name": "kind",
22577
+ "type": "string",
22578
+ "enum": [
22579
+ "gallery",
22580
+ "article",
22581
+ "product_listing",
22582
+ "blocks"
22583
+ ],
22584
+ "required": true,
22585
+ "description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
22586
+ },
22587
+ {
22588
+ "name": "body",
22589
+ "type": "object",
22590
+ "required": true
22591
+ },
22592
+ {
22593
+ "name": "series",
22594
+ "type": "string",
22595
+ "required": false,
22596
+ "description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
22597
+ },
22598
+ {
22599
+ "name": "custom",
22600
+ "type": "object",
22601
+ "required": false
22602
+ }
22603
+ ]
22604
+ }
22605
+ },
22606
+ {
22607
+ "resource": "media.libraries.works",
22608
+ "method": "delete",
22609
+ "summary": "Delete work",
22610
+ "description": "Delete a work. Only the work goes: every asset it named stays in the library unchanged.",
22611
+ "http": "DELETE",
22612
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22613
+ "streaming": "no",
22614
+ "pagination": false,
22615
+ "pathParams": [
22616
+ {
22617
+ "name": "library_id",
22618
+ "sdkName": "library_id",
22619
+ "description": "Library ID returned by creation."
22620
+ },
22621
+ {
22622
+ "name": "work_id",
22623
+ "sdkName": "work_id",
22624
+ "description": "Work id (wrk_…) returned by creation or listing."
22625
+ }
22626
+ ],
22627
+ "query": []
22628
+ },
22629
+ {
22630
+ "resource": "media.libraries.works",
22631
+ "method": "retrieve",
22632
+ "summary": "Get work",
22633
+ "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.",
22634
+ "http": "GET",
22635
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22636
+ "streaming": "no",
22637
+ "pagination": false,
22638
+ "pathParams": [
22639
+ {
22640
+ "name": "library_id",
22641
+ "sdkName": "library_id",
22642
+ "description": "Library ID returned by creation."
22643
+ },
22644
+ {
22645
+ "name": "work_id",
22646
+ "sdkName": "work_id",
22647
+ "description": "Work id (wrk_…) returned by creation or listing."
22648
+ }
22649
+ ],
22650
+ "query": [
22651
+ {
22652
+ "name": "expand",
22653
+ "type": "string",
22654
+ "required": false,
22655
+ "description": "assets returns every referenced asset with its URLs and size."
22656
+ }
22657
+ ]
22658
+ },
22659
+ {
22660
+ "resource": "media.libraries.works",
22661
+ "method": "update",
22662
+ "summary": "Update work",
22663
+ "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}}}.",
22664
+ "http": "PATCH",
22665
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22666
+ "streaming": "no",
22667
+ "pagination": false,
22668
+ "pathParams": [
22669
+ {
22670
+ "name": "library_id",
22671
+ "sdkName": "library_id",
22672
+ "description": "Library ID returned by creation."
22673
+ },
22674
+ {
22675
+ "name": "work_id",
22676
+ "sdkName": "work_id",
22677
+ "description": "Work id (wrk_…) returned by creation or listing."
22678
+ }
22679
+ ],
22680
+ "query": [],
22681
+ "body": {
22682
+ "required": true,
22683
+ "fields": [
22684
+ {
22685
+ "name": "body",
22686
+ "type": "object",
22687
+ "required": false
22688
+ },
22689
+ {
22690
+ "name": "series",
22691
+ "type": "string",
22692
+ "required": false,
22693
+ "description": "A new series, or null to clear it."
22694
+ },
22695
+ {
22696
+ "name": "custom",
22697
+ "type": "object",
22698
+ "required": false
22699
+ },
22700
+ {
22701
+ "name": "if_revision",
22702
+ "type": "number",
22703
+ "required": false,
22704
+ "description": "Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision."
22705
+ }
22706
+ ]
22707
+ }
22708
+ },
22452
22709
  {
22453
22710
  "resource": "media.pipelines",
22454
22711
  "method": "list",
@@ -26483,29 +26740,46 @@ export const operations = [
26483
26740
  {
26484
26741
  "resource": "organization.notifications.letters",
26485
26742
  "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.",
26743
+ "summary": "List the letters addressed to you, or the ones you sent",
26744
+ "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
26745
  "http": "GET",
26489
26746
  "path": "/organization/v1/notifications/letters",
26490
26747
  "streaming": "no",
26491
26748
  "pagination": false,
26492
26749
  "pathParams": [],
26493
26750
  "query": [
26751
+ {
26752
+ "name": "direction",
26753
+ "type": "string",
26754
+ "enum": [
26755
+ "received",
26756
+ "sent"
26757
+ ],
26758
+ "required": false,
26759
+ "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."
26760
+ },
26494
26761
  {
26495
26762
  "name": "status",
26496
26763
  "type": "string",
26497
26764
  "enum": [
26498
26765
  "unread",
26499
- "read"
26766
+ "read",
26767
+ "scheduled"
26500
26768
  ],
26501
26769
  "required": false,
26502
- "description": "Only unread letters, or only read ones; omit for both."
26770
+ "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."
26771
+ },
26772
+ {
26773
+ "name": "thread",
26774
+ "type": "string",
26775
+ "required": false,
26776
+ "description": "Only letters of this conversation, for received and sent alike; omit for all."
26503
26777
  },
26504
26778
  {
26505
26779
  "name": "archived",
26506
26780
  "type": "boolean",
26507
26781
  "required": false,
26508
- "description": "false (the default) hides archived letters; true lists only the archived ones."
26782
+ "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
26783
  },
26510
26784
  {
26511
26785
  "name": "limit",
@@ -26661,6 +26935,124 @@ export const operations = [
26661
26935
  ]
26662
26936
  }
26663
26937
  },
26938
+ {
26939
+ "resource": "organization.notifications.messages",
26940
+ "method": "list",
26941
+ "summary": "List your bell messages",
26942
+ "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.",
26943
+ "http": "GET",
26944
+ "path": "/organization/v1/notifications/messages",
26945
+ "streaming": "no",
26946
+ "pagination": false,
26947
+ "pathParams": [],
26948
+ "query": [
26949
+ {
26950
+ "name": "archived",
26951
+ "type": "string",
26952
+ "enum": [
26953
+ "0",
26954
+ "1"
26955
+ ],
26956
+ "required": false,
26957
+ "description": "0 (the default) lists the inbox tab, 1 lists archived messages."
26958
+ },
26959
+ {
26960
+ "name": "limit",
26961
+ "type": "integer",
26962
+ "required": false,
26963
+ "description": "Messages per page, 1 to 100; defaults to 20."
26964
+ },
26965
+ {
26966
+ "name": "page",
26967
+ "type": "string",
26968
+ "required": false,
26969
+ "description": "Opaque nextPageToken from the previous response; omit for the first page."
26970
+ }
26971
+ ]
26972
+ },
26973
+ {
26974
+ "resource": "organization.notifications.messages",
26975
+ "method": "delete",
26976
+ "summary": "Delete one of your bell messages",
26977
+ "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.",
26978
+ "http": "DELETE",
26979
+ "path": "/organization/v1/notifications/messages/{name}",
26980
+ "streaming": "no",
26981
+ "pagination": false,
26982
+ "pathParams": [
26983
+ {
26984
+ "name": "name",
26985
+ "sdkName": "name",
26986
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
26987
+ }
26988
+ ],
26989
+ "query": []
26990
+ },
26991
+ {
26992
+ "resource": "organization.notifications.messages",
26993
+ "method": "retrieve",
26994
+ "summary": "Open one of your bell messages",
26995
+ "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.",
26996
+ "http": "GET",
26997
+ "path": "/organization/v1/notifications/messages/{name}",
26998
+ "streaming": "no",
26999
+ "pagination": false,
27000
+ "pathParams": [
27001
+ {
27002
+ "name": "name",
27003
+ "sdkName": "name",
27004
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27005
+ }
27006
+ ],
27007
+ "query": []
27008
+ },
27009
+ {
27010
+ "resource": "organization.notifications.messages",
27011
+ "method": "update",
27012
+ "summary": "Mark one of your bell messages read or archived",
27013
+ "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.",
27014
+ "http": "POST",
27015
+ "path": "/organization/v1/notifications/messages/{name}",
27016
+ "streaming": "no",
27017
+ "pagination": false,
27018
+ "pathParams": [
27019
+ {
27020
+ "name": "name",
27021
+ "sdkName": "name",
27022
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27023
+ }
27024
+ ],
27025
+ "query": [],
27026
+ "body": {
27027
+ "required": true,
27028
+ "fields": [
27029
+ {
27030
+ "name": "read",
27031
+ "type": "boolean",
27032
+ "required": false,
27033
+ "description": "Mark the message read (true) or unread (false); omit to leave it."
27034
+ },
27035
+ {
27036
+ "name": "archived",
27037
+ "type": "boolean",
27038
+ "required": false,
27039
+ "description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
27040
+ }
27041
+ ]
27042
+ }
27043
+ },
27044
+ {
27045
+ "resource": "organization.notifications.messages",
27046
+ "method": "readAll",
27047
+ "summary": "Mark all your unread bell messages read",
27048
+ "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.",
27049
+ "http": "POST",
27050
+ "path": "/organization/v1/notifications/messages:readAll",
27051
+ "streaming": "no",
27052
+ "pagination": false,
27053
+ "pathParams": [],
27054
+ "query": []
27055
+ },
26664
27056
  {
26665
27057
  "resource": "organization.notifications",
26666
27058
  "method": "retrieveOrganizationDefault",
@@ -27843,6 +28235,24 @@ export const operations = [
27843
28235
  ]
27844
28236
  }
27845
28237
  },
28238
+ {
28239
+ "resource": "sandbox.byod.pairings",
28240
+ "method": "status",
28241
+ "summary": "Read which device claimed your pairing",
28242
+ "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}.",
28243
+ "http": "GET",
28244
+ "path": "/sandbox/v1/byod/pairings/{code}/status",
28245
+ "streaming": "no",
28246
+ "pagination": false,
28247
+ "pathParams": [
28248
+ {
28249
+ "name": "code",
28250
+ "sdkName": "code",
28251
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
28252
+ }
28253
+ ],
28254
+ "query": []
28255
+ },
27846
28256
  {
27847
28257
  "resource": "sandbox.events.sandboxes",
27848
28258
  "method": "retrieve",