@deepraxis/sdk 0.1.1-dev.90f30ac → 0.1.1-dev.92000a0

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.
@@ -12959,7 +12959,7 @@ export const operations = [
12959
12959
  "type": "array",
12960
12960
  "itemType": "string",
12961
12961
  "required": false,
12962
- "description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries."
12962
+ "description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries."
12963
12963
  }
12964
12964
  ]
12965
12965
  }
@@ -13402,6 +13402,81 @@ export const operations = [
13402
13402
  }
13403
13403
  ]
13404
13404
  },
13405
+ {
13406
+ "resource": "devops.projects",
13407
+ "method": "create",
13408
+ "summary": "Create a project",
13409
+ "description": "Create a delivery project and its two default environments (develop, production). The code lives in one of two places. Our own Git: pass provider platform and package, the id (pkg_...) of a git package in your organization's registry (the registry domain lists packages and creates git libraries); there is no install flow and no connection, the project records the provider, the package and the package's default branch, and from then on pull requests, the merge gate, changes and cloud workspaces use that package and DevOps merges a pull request itself. A package backs at most one project (REPOSITORY_ALREADY_BOUND) and a package that is not a git package of your organization is INVALID_ARGUMENT. If the package has no default branch yet, which is usual for a library imported from elsewhere, pass initialRef, an existing branch such as import: the default branch is created at its head while the project is created, and no change can be opened before it exists. If the default branch already exists the call is refused with DEFAULT_BRANCH_EXISTS, and a missing initialRef branch with REF_NOT_FOUND; neither leaves a project behind. For a package whose project already exists, use devops.projects.initializeDefaultBranch instead. GitHub (the default): pass the connection of a completed GitHub App install and the repository (owner/name) it can see; leave both out to create a project with no repository yet. A name must be kebab-case and unused in the organization (PROJECT_NAME_TAKEN).",
13410
+ "http": "POST",
13411
+ "path": "/devops/v1/projects",
13412
+ "streaming": "no",
13413
+ "pagination": false,
13414
+ "pathParams": [],
13415
+ "query": [],
13416
+ "body": {
13417
+ "required": true,
13418
+ "fields": [
13419
+ {
13420
+ "name": "name",
13421
+ "type": "string",
13422
+ "required": true,
13423
+ "description": "Kebab-case name, unique within the organization."
13424
+ },
13425
+ {
13426
+ "name": "description",
13427
+ "type": "string",
13428
+ "required": false,
13429
+ "description": "What the project is for, in your own words."
13430
+ },
13431
+ {
13432
+ "name": "provider",
13433
+ "type": "string",
13434
+ "enum": [
13435
+ "github",
13436
+ "platform"
13437
+ ],
13438
+ "required": false,
13439
+ "description": "Where the code lives: github (the default) or platform, a git package of our own Git."
13440
+ },
13441
+ {
13442
+ "name": "package",
13443
+ "type": "string",
13444
+ "required": false,
13445
+ "description": "provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository."
13446
+ },
13447
+ {
13448
+ "name": "initialRef",
13449
+ "type": "string",
13450
+ "required": false,
13451
+ "description": "provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then."
13452
+ },
13453
+ {
13454
+ "name": "connection",
13455
+ "type": "string",
13456
+ "required": false,
13457
+ "description": "provider github only: the connection of a completed GitHub App install that can see the repository."
13458
+ },
13459
+ {
13460
+ "name": "repository",
13461
+ "type": "string",
13462
+ "required": false,
13463
+ "description": "provider github only: the repository as owner/name."
13464
+ },
13465
+ {
13466
+ "name": "settings",
13467
+ "type": "object",
13468
+ "required": false,
13469
+ "description": "Delivery settings; keys you leave out take their defaults."
13470
+ },
13471
+ {
13472
+ "name": "requestId",
13473
+ "type": "string",
13474
+ "required": false,
13475
+ "description": "Idempotency key: repeat the call with the same value to be given the same answer."
13476
+ }
13477
+ ]
13478
+ }
13479
+ },
13405
13480
  {
13406
13481
  "resource": "devops.projects",
13407
13482
  "method": "retrieve",
@@ -13456,6 +13531,35 @@ export const operations = [
13456
13531
  ]
13457
13532
  }
13458
13533
  },
13534
+ {
13535
+ "resource": "devops.projects.defaultBranch",
13536
+ "method": "initialize",
13537
+ "summary": "Create a project's default branch",
13538
+ "description": "Create the default branch of a project on our own Git, once. A git package imported from elsewhere can hold branches and no default branch, and every change is cut from the default branch, so until it exists no change can be opened. The default branch is protected and only DevOps holds the credential that may write it, so this call is the one way to create it: it points the default branch at the head of the existing branch named in from (for example import). It only creates: a default branch that already exists is refused with DEFAULT_BRANCH_EXISTS and is never moved, a from that is not a branch of the repository is REF_NOT_FOUND, and a GitHub project is INVALID_ARGUMENT because GitHub's branches are GitHub's. The push reaches the project like any other push to its default branch. Read the project first (devops.projects.retrieve) for the package's default branch name.",
13539
+ "http": "POST",
13540
+ "path": "/devops/v1/projects/{id}/default-branch:initialize",
13541
+ "streaming": "no",
13542
+ "pagination": false,
13543
+ "pathParams": [
13544
+ {
13545
+ "name": "id",
13546
+ "sdkName": "id",
13547
+ "description": "The project identifier returned by the project list, not the project's display name or its repository name."
13548
+ }
13549
+ ],
13550
+ "query": [],
13551
+ "body": {
13552
+ "required": true,
13553
+ "fields": [
13554
+ {
13555
+ "name": "from",
13556
+ "type": "string",
13557
+ "required": true,
13558
+ "description": "An existing branch of the repository, for example import. The default branch is created at its head."
13559
+ }
13560
+ ]
13561
+ }
13562
+ },
13459
13563
  {
13460
13564
  "resource": "devops.projects.changes",
13461
13565
  "method": "list",
@@ -13587,6 +13691,37 @@ export const operations = [
13587
13691
  }
13588
13692
  }
13589
13693
  },
13694
+ {
13695
+ "resource": "devops.projects.cleanups",
13696
+ "method": "list",
13697
+ "summary": "List a project's cleanup ledger",
13698
+ "description": "List what the daily cleanup job removed or archived for the project, newest decision first: merged branches deleted when their pull request merged, stopped units deleted after the project's window, test evidence past its age, and prebuilds beyond the kept versions. Each row names the kind of thing, which one, whether it was archived (the record stays, the heavy content goes) or deleted, the reason and when it was decided and done; error is set while the last attempt failed and the job will try again. The ledger is read-only: the job is its only writer, and a project changes what is kept through settings.retention on devops.projects.update. A project with no row has had nothing cleaned.",
13699
+ "http": "GET",
13700
+ "path": "/devops/v1/projects/{project}/cleanups",
13701
+ "streaming": "no",
13702
+ "pagination": false,
13703
+ "pathParams": [
13704
+ {
13705
+ "name": "project",
13706
+ "sdkName": "project",
13707
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
13708
+ }
13709
+ ],
13710
+ "query": [
13711
+ {
13712
+ "name": "pageSize",
13713
+ "type": "integer",
13714
+ "required": false,
13715
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
13716
+ },
13717
+ {
13718
+ "name": "pageToken",
13719
+ "type": "string",
13720
+ "required": false,
13721
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
13722
+ }
13723
+ ]
13724
+ },
13590
13725
  {
13591
13726
  "resource": "devops.projects.environments",
13592
13727
  "method": "list",
@@ -14146,6 +14281,12 @@ export const operations = [
14146
14281
  "type": "string",
14147
14282
  "required": false,
14148
14283
  "description": "A GitHub login to build the \"waiting on me\" list: only pull requests where that person is a requested reviewer and has not answered yet are returned. Somebody who already approved, requested changes or commented is no longer waiting on, so they do not appear."
14284
+ },
14285
+ {
14286
+ "name": "reviewed",
14287
+ "type": "boolean",
14288
+ "required": false,
14289
+ "description": "Review is after-the-fact sampling (Sean 2026-11-24). false lists the pull requests nobody has recorded a review verdict for — send it with filter state=merged to get the merged pull requests still waiting for a sample; true lists the ones that have a review. Omit it to ignore reviews."
14149
14290
  }
14150
14291
  ]
14151
14292
  },
@@ -14488,7 +14629,7 @@ export const operations = [
14488
14629
  "resource": "devops.projects",
14489
14630
  "method": "retrieveTestPlan",
14490
14631
  "summary": "Retrieve the merge gate's test plan at a commit",
14491
- "description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — `praxis devops test --gate` asks this and runs exactly the missing and failed packages — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
14632
+ "description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. The answer also carries cases: every feature scenario of the affected packages at the gate's sizes, each with required (whether this diff can affect it, chosen by the files the scenario was recorded running), the reason, the deps hash it is judged at and its own evidence. A merge needs evidence only for the required cases; run `praxis devops test <package> --record-impact` to record coverage and results. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — run `praxis devops test <package>` for each missing or failed package on a clean, pushed commit and the run files the evidence itself — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
14492
14633
  "http": "GET",
14493
14634
  "path": "/devops/v1/projects/{project}/test-plan",
14494
14635
  "streaming": "no",
@@ -14512,6 +14653,16 @@ export const operations = [
14512
14653
  "type": "string",
14513
14654
  "required": false,
14514
14655
  "description": "What the diff is measured against: a commit id or a branch name. Defaults to the project's default branch. A base that is neither a branch of the project's repository nor a readable commit is refused as COMMIT_NOT_FOUND, so a typo cannot silently plan against the whole repository."
14656
+ },
14657
+ {
14658
+ "name": "view",
14659
+ "type": "string",
14660
+ "enum": [
14661
+ "full",
14662
+ "summary"
14663
+ ],
14664
+ "required": false,
14665
+ "description": "How much of the plan to return: full lists every feature scenario of the affected packages, summary returns per package only the counts (caseCounts) and lists only the cases this diff requires. A change that touches no tested code (a README) answers tens of kilobytes in the full view, because every case is listed as unaffected; ask for the summary first and use the full view only to explain one case."
14515
14666
  }
14516
14667
  ]
14517
14668
  },
@@ -14646,7 +14797,7 @@ export const operations = [
14646
14797
  "resource": "devops.projects.testReports",
14647
14798
  "method": "create",
14648
14799
  "summary": "Upload an external test report",
14649
- "description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested.",
14800
+ "description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested. With purpose evidence the report is also filed as test evidence, package by package: DevOps recomputes each package's input hash from ref.commit (so the commit must already be pushed; an unreadable commit records the run but no evidence), and writes passed or failed only for a package whose every case at the gate's sizes the report carries — a report of a few files leaves that package without evidence. Pass ref.branch and ref.pullRequest so the run says where it came from; devops.projects.retrieveTestPlan at the commit then shows what the gate will read.",
14650
14801
  "http": "POST",
14651
14802
  "path": "/devops/v1/projects/{project}/test-reports",
14652
14803
  "streaming": "no",
@@ -14676,7 +14827,7 @@ export const operations = [
14676
14827
  "feedback"
14677
14828
  ],
14678
14829
  "required": false,
14679
- "description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and counts when the merge gate reads the newest run at that commit. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence."
14830
+ "description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and is filed as evidence for each package it fully covers, which the merge gate and later stages read by the package's input hash. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence."
14680
14831
  },
14681
14832
  {
14682
14833
  "name": "format",
@@ -14919,7 +15070,7 @@ export const operations = [
14919
15070
  "enum": [
14920
15071
  "development",
14921
15072
  "integration",
14922
- "runtime"
15073
+ "release"
14923
15074
  ],
14924
15075
  "required": false,
14925
15076
  "description": "Return only units of this stage; omit it to return every stage."
@@ -14987,7 +15138,7 @@ export const operations = [
14987
15138
  "resource": "devops.projects.workspaces",
14988
15139
  "method": "list",
14989
15140
  "summary": "List a project's stage workspaces",
14990
- "description": "List the project's three stage workspaces — development, integration and runtime — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
15141
+ "description": "List the project's three stage workspaces — development, integration and release — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
14991
15142
  "http": "GET",
14992
15143
  "path": "/devops/v1/projects/{project}/workspaces",
14993
15144
  "streaming": "no",
@@ -15019,7 +15170,7 @@ export const operations = [
15019
15170
  {
15020
15171
  "name": "stage",
15021
15172
  "sdkName": "stage",
15022
- "description": "The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units."
15173
+ "description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
15023
15174
  }
15024
15175
  ],
15025
15176
  "query": []
@@ -15042,7 +15193,7 @@ export const operations = [
15042
15193
  {
15043
15194
  "name": "stage",
15044
15195
  "sdkName": "stage",
15045
- "description": "The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units."
15196
+ "description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
15046
15197
  }
15047
15198
  ],
15048
15199
  "query": [],
@@ -15239,6 +15390,24 @@ export const operations = [
15239
15390
  ]
15240
15391
  }
15241
15392
  },
15393
+ {
15394
+ "resource": "devops.promotions",
15395
+ "method": "checkoutCredential",
15396
+ "summary": "Get the checkout credential of a running promotion",
15397
+ "description": "Issue the credential the deploy machine fetches a platform-Git project's code with. The caller is the deploy machine itself, during a run: its `devops/prepare` step sends the API key it already holds and receives the clone URL of the project's repository plus a pull-only credential for exactly that one repository. The credential lives 15 minutes and is issued again on every request, so it never sits in the run's stored input or log, and a leaked copy is useless almost at once. A run that needs the code later, such as an engine checkout after a long install, asks again. It answers only while the promotion is deploying (a rollback is a promotion and deploys too) or halted; a promotion that is queued, waiting for approval, observing or finished is refused with PROMOTION_NOT_RUNNING, because no machine should be fetching code for it. A project whose code is on GitHub is refused with SOURCE_NOT_PLATFORM: its checkout uses the GitHub App token, not this. The key must belong to the promotion's organization, the same check as reading the promotion with `praxis api devops promotion get <id>`. People do not need this call: to read a platform project's code use the code browser calls instead.",
15398
+ "http": "POST",
15399
+ "path": "/devops/v1/promotions/{id}:checkoutCredential",
15400
+ "streaming": "no",
15401
+ "pagination": false,
15402
+ "pathParams": [
15403
+ {
15404
+ "name": "id",
15405
+ "sdkName": "id",
15406
+ "description": "The promotion identifier returned by a promotion list or create answer."
15407
+ }
15408
+ ],
15409
+ "query": []
15410
+ },
15242
15411
  {
15243
15412
  "resource": "devops.promotions",
15244
15413
  "method": "conclude",
@@ -15331,7 +15500,7 @@ export const operations = [
15331
15500
  "resource": "devops.pullRequests",
15332
15501
  "method": "retrieve",
15333
15502
  "summary": "Retrieve a pull request",
15334
- "description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the affected test runs reported at the head commit, newest first, which is how you see why the tests check came out the way it did.",
15503
+ "description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the tests check is never pending, because DevOps runs no tests for a pull request: it is passed, or failed naming the missing or failed cases and the command `praxis devops test <package> --record-impact` the author runs on the pushed head; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the test runs reported at the head commit (uploaded by the author, never started by DevOps), newest first.",
15335
15504
  "http": "GET",
15336
15505
  "path": "/devops/v1/pull-requests/{id}",
15337
15506
  "streaming": "no",
@@ -15352,6 +15521,46 @@ export const operations = [
15352
15521
  }
15353
15522
  ]
15354
15523
  },
15524
+ {
15525
+ "resource": "devops.pullRequests.reviews",
15526
+ "method": "create",
15527
+ "summary": "Review a pull request on our own Git",
15528
+ "description": "Give your verdict on a pull request whose project keeps its code on the platform's own Git, where there is no GitHub to hold reviews. The reviewer is you — the user or agent the credential names, never a name in the body — and the platform stores your verdict on the pull request's reviewers under your id, so an ownership rule that lists principal ids reads it. Send approved to approve, changes_requested to hold it with changes you want, or commented to say something without a verdict. A second review from you replaces your first, and the gate is decided again so a rule that reads reviews sees it at once. Only an open pull request is reviewed: a merged or closed one is refused with PULL_REQUEST_NOT_OPEN. A project connected to GitHub is refused with INVALID_ARGUMENT, because its reviews belong to GitHub and the platform projects them from there, so a verdict is never recorded in two places that can disagree.",
15529
+ "http": "POST",
15530
+ "path": "/devops/v1/pull-requests/{id}/reviews",
15531
+ "streaming": "no",
15532
+ "pagination": false,
15533
+ "pathParams": [
15534
+ {
15535
+ "name": "id",
15536
+ "sdkName": "id",
15537
+ "description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
15538
+ }
15539
+ ],
15540
+ "query": [],
15541
+ "body": {
15542
+ "required": true,
15543
+ "fields": [
15544
+ {
15545
+ "name": "state",
15546
+ "type": "string",
15547
+ "enum": [
15548
+ "approved",
15549
+ "changes_requested",
15550
+ "commented"
15551
+ ],
15552
+ "required": true,
15553
+ "description": "The verdict. A value outside this set is refused with INVALID_ARGUMENT."
15554
+ },
15555
+ {
15556
+ "name": "body",
15557
+ "type": "string",
15558
+ "required": false,
15559
+ "description": "The words that go with the verdict. Accepted now and not stored yet: DevOps keeps no review thread, so say what must change on the change's own ticket as well."
15560
+ }
15561
+ ]
15562
+ }
15563
+ },
15355
15564
  {
15356
15565
  "resource": "devops.pullRequests",
15357
15566
  "method": "close",
@@ -15385,7 +15594,7 @@ export const operations = [
15385
15594
  "resource": "devops.pullRequests",
15386
15595
  "method": "merge",
15387
15596
  "summary": "Merge a pull request through its gate",
15388
- "description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape and defaults to merge. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
15597
+ "description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape; on GitHub it defaults to rebase. A project on our own Git (provider platform) merges by squash only: no method means squash, and rebase or merge is refused with INVALID_ARGUMENT naming squash. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
15389
15598
  "http": "POST",
15390
15599
  "path": "/devops/v1/pull-requests/{id}:merge",
15391
15600
  "streaming": "no",
@@ -15430,8 +15639,8 @@ export const operations = [
15430
15639
  {
15431
15640
  "resource": "devops.pullRequests",
15432
15641
  "method": "recordVerdict",
15433
- "summary": "Record a gatekeeper's verdict on a direct change",
15434
- "description": "A gatekeeper's judgement of a change declared direct — the one gate check a person answers, because a direct change has no flag to hold it back. Send result passed to let it through, or failed to hold it, with reason saying in a sentence a reviewer can act on why; the reason becomes the message of the gate's exposure-judged check. The verdict is about ONE commit: headSha must be the pull request's current head, and a verdict for any other commit is refused with INVALID_ARGUMENT rather than applied, because a judgement of a version nobody reviewed must never pass the version that is there now — so a recorded verdict stops applying the moment the head moves, and the new head must be judged on its own. Recording it decides the gate again, so a passed verdict makes the gate passed once every other check has too, and the answer is the pull request with the gate it now reaches. A passed verdict for a change whose tests have not run leaves the gate pending: a person's judgement never outvotes a missing test.",
15642
+ "summary": "Record a review verdict on a pull request",
15643
+ "description": "Record a reviewer's verdict on a pull request, after the fact (Sean 2026-11-24). The merge gate no longer waits for it: exposure-judged is decided by machine from the declaration for every kind of exposure, so a pull request merges without any verdict. This call is the review record — send result passed or failed with reason saying in a sentence a reviewer can act on why. It is stored on the pull request as review and announced with the event devops.pullRequest.reviewed. A failed verdict on an already merged pull request is a finding for follow-up (the event says finding true): the merge stands, nothing is un-merged, and a rollback or a fix is asked for on the ticket. headSha must be the pull request's head, and a verdict for another commit is refused with INVALID_ARGUMENT. List the merged pull requests nobody reviewed with pullRequests.list reviewed=false.",
15435
15644
  "http": "POST",
15436
15645
  "path": "/devops/v1/pull-requests/{id}:recordVerdict",
15437
15646
  "streaming": "no",
@@ -15482,7 +15691,7 @@ export const operations = [
15482
15691
  "resource": "devops.pullRequests",
15483
15692
  "method": "rerunGate",
15484
15693
  "summary": "Decide a pull request's merge gate again",
15485
- "description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a test run finished, a flag was registered, or a check that had no evidence now has some — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.",
15694
+ "description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a flag was registered, or a check that had no evidence now has some (test evidence uploaded for the head already decides the gate again by itself) — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.",
15486
15695
  "http": "POST",
15487
15696
  "path": "/devops/v1/pull-requests/{id}:rerunGate",
15488
15697
  "streaming": "no",
@@ -16136,7 +16345,7 @@ export const operations = [
16136
16345
  "resource": "file.files",
16137
16346
  "method": "list",
16138
16347
  "summary": "List files",
16139
- "description": "List live files owned by your tenant, optionally filtered by purpose or session scope_id. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.",
16348
+ "description": "List live files owned by your tenant, optionally filtered by purpose, session scope_id or up to 100 file ids. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.",
16140
16349
  "http": "GET",
16141
16350
  "path": "/file/v1/files",
16142
16351
  "streaming": "no",
@@ -16177,6 +16386,13 @@ export const operations = [
16177
16386
  "required": false,
16178
16387
  "description": "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404."
16179
16388
  },
16389
+ {
16390
+ "name": "ids",
16391
+ "type": "array",
16392
+ "itemType": "string",
16393
+ "required": false,
16394
+ "description": "Return only these files, up to 100 IDs separated by commas, so metadata for many known files takes one call instead of one retrieve per file. An ID that is not a live file of your tenant is simply absent from the list, as a retrieve would answer 404; more than 100 IDs returns 400. Combines with the other filters."
16395
+ },
16180
16396
  {
16181
16397
  "name": "before",
16182
16398
  "type": "string",
@@ -23087,6 +23303,41 @@ export const operations = [
23087
23303
  ],
23088
23304
  "query": []
23089
23305
  },
23306
+ {
23307
+ "resource": "organization.effectiveSpec",
23308
+ "method": "retrieve",
23309
+ "summary": "Read the effective spec",
23310
+ "description": "Merges the spec chain of a seat or an actor and returns the one effective configuration: the merged capability blocks, the document of every layer, where each merged value came from, and anything only the merged result shows to be wrong. Give exactly one of actor (every seat the actor holds) or position_id (one seat, held or vacant, a preview before hiring); holder_kind defaults from the seat's holder. Read-only; nothing is changed. Errors: 400 INVALID_PARAMS when neither or both of actor and position_id are given, the actor address is malformed, holder_kind is neither agent nor human, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 POSITION_NOT_FOUND. Example: GET /organization/v1/effective_spec?actor=agent:agent_123.",
23311
+ "http": "GET",
23312
+ "path": "/organization/v1/effective_spec",
23313
+ "streaming": "no",
23314
+ "pagination": false,
23315
+ "pathParams": [],
23316
+ "query": [
23317
+ {
23318
+ "name": "actor",
23319
+ "type": "string",
23320
+ "required": false,
23321
+ "description": "Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both."
23322
+ },
23323
+ {
23324
+ "name": "position_id",
23325
+ "type": "string",
23326
+ "required": false,
23327
+ "description": "One seat to merge, held or vacant (pos_...); give this or actor, not both."
23328
+ },
23329
+ {
23330
+ "name": "holder_kind",
23331
+ "type": "string",
23332
+ "enum": [
23333
+ "agent",
23334
+ "human"
23335
+ ],
23336
+ "required": false,
23337
+ "description": "Which holder kind to merge for; omit to derive it from the seat's holder."
23338
+ }
23339
+ ]
23340
+ },
23090
23341
  {
23091
23342
  "resource": "organization.events",
23092
23343
  "method": "list",
@@ -23252,10 +23503,11 @@ export const operations = [
23252
23503
  "type": "string",
23253
23504
  "enum": [
23254
23505
  "console",
23255
- "api"
23506
+ "api",
23507
+ "codemode"
23256
23508
  ],
23257
23509
  "required": false,
23258
- "description": "Use console for Console reports or api for API callers (default); machine tokens always store codemode regardless of this value."
23510
+ "description": "Use console for Console reports or api for API callers (default). Machine tokens always store codemode regardless of this value and may send codemode; any other caller that sends codemode is refused."
23259
23511
  },
23260
23512
  {
23261
23513
  "name": "attachments",
@@ -24583,54 +24835,342 @@ export const operations = [
24583
24835
  "query": []
24584
24836
  },
24585
24837
  {
24586
- "resource": "organization.usage",
24587
- "method": "list",
24588
- "summary": "List Organization Usage",
24589
- "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
24838
+ "resource": "organization.reconcile",
24839
+ "method": "pause",
24840
+ "summary": "Pause reconciliation",
24841
+ "description": "Stops the sweep from reconciling one holder until it is resumed: the holder's blocks keep their state and no further update is applied. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
24842
+ "http": "POST",
24843
+ "path": "/organization/v1/reconcile/pause",
24844
+ "streaming": "no",
24845
+ "pagination": false,
24846
+ "pathParams": [],
24847
+ "query": [],
24848
+ "body": {
24849
+ "required": true,
24850
+ "fields": [
24851
+ {
24852
+ "name": "actor",
24853
+ "type": "string",
24854
+ "required": true,
24855
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24856
+ }
24857
+ ]
24858
+ }
24859
+ },
24860
+ {
24861
+ "resource": "organization.reconcile",
24862
+ "method": "retrievePlan",
24863
+ "summary": "Plan reconciliation",
24864
+ "description": "Dry-runs the reconciler for one holder and returns what it would change: an action per block (hold, update, none, pending, blocked) with the value it would write, and the violations only the merged result shows. It changes nothing - no state, no agent and no memory. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/plan?actor=agent:agent_123.",
24590
24865
  "http": "GET",
24591
- "path": "/organization/v1/usage",
24866
+ "path": "/organization/v1/reconcile/plan",
24592
24867
  "streaming": "no",
24593
24868
  "pagination": false,
24594
24869
  "pathParams": [],
24595
24870
  "query": [
24596
24871
  {
24597
- "name": "starting_at",
24598
- "type": "string",
24599
- "required": true,
24600
- "description": "Window start, UTC ISO 8601, inclusive."
24601
- },
24602
- {
24603
- "name": "ending_at",
24604
- "type": "string",
24605
- "required": true,
24606
- "description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
24607
- },
24608
- {
24609
- "name": "bucket_width",
24872
+ "name": "actor",
24610
24873
  "type": "string",
24611
- "enum": [
24612
- "1h",
24613
- "1d"
24614
- ],
24615
24874
  "required": true,
24616
- "description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
24617
- },
24618
- {
24619
- "name": "time_zone",
24620
- "type": "string",
24621
- "required": false,
24622
- "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
24623
- },
24624
- {
24625
- "name": "group_by",
24626
- "type": "array",
24627
- "itemType": "string",
24628
- "enum": [
24629
- "ServiceName",
24630
- "ServiceCategory",
24631
- "ResourceId",
24632
- "ConsumedUnit"
24633
- ],
24875
+ "description": "The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged."
24876
+ }
24877
+ ]
24878
+ },
24879
+ {
24880
+ "resource": "organization.reconcile",
24881
+ "method": "resume",
24882
+ "summary": "Resume reconciliation",
24883
+ "description": "Restarts the sweep for a paused holder and reconciles it now, returning the new status. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
24884
+ "http": "POST",
24885
+ "path": "/organization/v1/reconcile/resume",
24886
+ "streaming": "no",
24887
+ "pagination": false,
24888
+ "pathParams": [],
24889
+ "query": [],
24890
+ "body": {
24891
+ "required": true,
24892
+ "fields": [
24893
+ {
24894
+ "name": "actor",
24895
+ "type": "string",
24896
+ "required": true,
24897
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24898
+ }
24899
+ ]
24900
+ }
24901
+ },
24902
+ {
24903
+ "resource": "organization.reconcile.run",
24904
+ "method": "create",
24905
+ "summary": "Run reconciliation now",
24906
+ "description": "Reconciles one holder now instead of waiting for the sweep: it plans, applies every update and returns the new status. Run plan first to see the changes without applying them. Requires an organization owner or admin. A block that cannot be applied now stays pending, waiting_human or failed, and the returned status says so. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
24907
+ "http": "POST",
24908
+ "path": "/organization/v1/reconcile/run",
24909
+ "streaming": "no",
24910
+ "pagination": false,
24911
+ "pathParams": [],
24912
+ "query": [],
24913
+ "body": {
24914
+ "required": true,
24915
+ "fields": [
24916
+ {
24917
+ "name": "actor",
24918
+ "type": "string",
24919
+ "required": true,
24920
+ "description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
24921
+ }
24922
+ ]
24923
+ }
24924
+ },
24925
+ {
24926
+ "resource": "organization.reconcile.status",
24927
+ "method": "list",
24928
+ "summary": "Read reconcile status",
24929
+ "description": "Reads the reconciler's last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block's state (ready, pending, failed, waiting_human or paused), the drift between what is applied and what the specs want, and when it last applied. Read-only; it changes nothing. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/status?actor=agent:agent_123.",
24930
+ "http": "GET",
24931
+ "path": "/organization/v1/reconcile/status",
24932
+ "streaming": "no",
24933
+ "pagination": false,
24934
+ "pathParams": [],
24935
+ "query": [
24936
+ {
24937
+ "name": "actor",
24938
+ "type": "string",
24939
+ "required": true,
24940
+ "description": "The holder whose reconcile status to read (agent:agent_... or human:usr_...)."
24941
+ }
24942
+ ]
24943
+ },
24944
+ {
24945
+ "resource": "organization.specs",
24946
+ "method": "list",
24947
+ "summary": "List specs",
24948
+ "description": "Lists the specs (规定) of the organization, most recently updated first; use it to find which subject already has a spec before reading or revising one. Narrow it with kind. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/specs?kind=job.",
24949
+ "http": "GET",
24950
+ "path": "/organization/v1/specs",
24951
+ "streaming": "no",
24952
+ "pagination": false,
24953
+ "pathParams": [],
24954
+ "query": [
24955
+ {
24956
+ "name": "limit",
24957
+ "type": "integer",
24958
+ "required": false,
24959
+ "description": "Maximum items per page, from 1 to 100; defaults to 20."
24960
+ },
24961
+ {
24962
+ "name": "page",
24963
+ "type": "string",
24964
+ "required": false,
24965
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
24966
+ },
24967
+ {
24968
+ "name": "kind",
24969
+ "type": "string",
24970
+ "enum": [
24971
+ "organization",
24972
+ "department",
24973
+ "level",
24974
+ "job",
24975
+ "position",
24976
+ "assignment"
24977
+ ],
24978
+ "required": false,
24979
+ "description": "Only specs of this subject kind; omit to list every kind together."
24980
+ }
24981
+ ]
24982
+ },
24983
+ {
24984
+ "resource": "organization.specs",
24985
+ "method": "retrieve",
24986
+ "summary": "Get a spec",
24987
+ "description": "Reads one subject's live spec, or one historical revision with revision; a subject never written answers revision 0 with an empty spec, so a first revise sends expected_revision 0. Read-only. Errors: 400 INVALID_PARAMS for a non-integer revision; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject, or the named SPEC_REVISION_NOT_FOUND, does not exist. Example: GET /organization/v1/specs/job/jpr_123?revision=2.",
24988
+ "http": "GET",
24989
+ "path": "/organization/v1/specs/{kind}/{id}",
24990
+ "streaming": "no",
24991
+ "pagination": false,
24992
+ "pathParams": [
24993
+ {
24994
+ "name": "kind",
24995
+ "sdkName": "kind",
24996
+ "description": "Kind of the subject whose spec to read."
24997
+ },
24998
+ {
24999
+ "name": "id",
25000
+ "sdkName": "id",
25001
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25002
+ }
25003
+ ],
25004
+ "query": [
25005
+ {
25006
+ "name": "revision",
25007
+ "type": "integer",
25008
+ "required": false,
25009
+ "description": "Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written."
25010
+ }
25011
+ ]
25012
+ },
25013
+ {
25014
+ "resource": "organization.specs",
25015
+ "method": "update",
25016
+ "summary": "Revise a spec",
25017
+ "description": "Replaces the whole spec of a subject: expected_revision is the revision you last read (0 when none was written) and each success raises it by one, so a mismatch returns REVISION_CONFLICT and you must read again, merge and retry. The spec body is stored and returned verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove, and it is validated against the block registry. Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or expected_revision, a block outside the registry or an unknown body field; 403 PERMISSION_DENIED; 404 when the subject does not exist; 409 REVISION_CONFLICT. Example body: {\"expected_revision\":0,\"spec\":{\"document\":\"Deliver reliably.\"}}.",
25018
+ "http": "PUT",
25019
+ "path": "/organization/v1/specs/{kind}/{id}",
25020
+ "streaming": "no",
25021
+ "pagination": false,
25022
+ "pathParams": [
25023
+ {
25024
+ "name": "kind",
25025
+ "sdkName": "kind",
25026
+ "description": "Kind of the subject whose spec to revise."
25027
+ },
25028
+ {
25029
+ "name": "id",
25030
+ "sdkName": "id",
25031
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25032
+ }
25033
+ ],
25034
+ "query": [],
25035
+ "body": {
25036
+ "required": true,
25037
+ "fields": [
25038
+ {
25039
+ "name": "expected_revision",
25040
+ "type": "integer",
25041
+ "required": true,
25042
+ "description": "The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one."
25043
+ },
25044
+ {
25045
+ "name": "spec",
25046
+ "type": "object",
25047
+ "required": true,
25048
+ "description": "The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove."
25049
+ }
25050
+ ]
25051
+ }
25052
+ },
25053
+ {
25054
+ "resource": "organization.specs",
25055
+ "method": "retrieveDiff",
25056
+ "summary": "Diff two spec revisions",
25057
+ "description": "Compares two revisions of one subject's spec and lists the changes between them, each with its path and, for a change, the value before and after; revision 0 is the empty spec, so diffing 0 against 1 shows the first write. Read-only. Errors: 400 INVALID_PARAMS when from or to is missing or not an integer; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist, or SPEC_REVISION_NOT_FOUND when from or to was never written. Example: GET /organization/v1/specs/job/jpr_123/diff?from=1&to=2.",
25058
+ "http": "GET",
25059
+ "path": "/organization/v1/specs/{kind}/{id}/diff",
25060
+ "streaming": "no",
25061
+ "pagination": false,
25062
+ "pathParams": [
25063
+ {
25064
+ "name": "kind",
25065
+ "sdkName": "kind",
25066
+ "description": "Kind of the subject whose revisions to compare."
25067
+ },
25068
+ {
25069
+ "name": "id",
25070
+ "sdkName": "id",
25071
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25072
+ }
25073
+ ],
25074
+ "query": [
25075
+ {
25076
+ "name": "from",
25077
+ "type": "integer",
25078
+ "required": true,
25079
+ "description": "The earlier revision to compare from; 0 is the empty spec before the first write."
25080
+ },
25081
+ {
25082
+ "name": "to",
25083
+ "type": "integer",
25084
+ "required": true,
25085
+ "description": "The later revision to compare to."
25086
+ }
25087
+ ]
25088
+ },
25089
+ {
25090
+ "resource": "organization.specs.revisions",
25091
+ "method": "list",
25092
+ "summary": "List spec revisions",
25093
+ "description": "Lists every stored revision of one subject's spec, newest first, each with its body, author and creation instant; use it to see what changed over time or to pick a revision to read or diff. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist.",
25094
+ "http": "GET",
25095
+ "path": "/organization/v1/specs/{kind}/{id}/revisions",
25096
+ "streaming": "no",
25097
+ "pagination": false,
25098
+ "pathParams": [
25099
+ {
25100
+ "name": "kind",
25101
+ "sdkName": "kind",
25102
+ "description": "Kind of the subject whose revision history to list."
25103
+ },
25104
+ {
25105
+ "name": "id",
25106
+ "sdkName": "id",
25107
+ "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
25108
+ }
25109
+ ],
25110
+ "query": [
25111
+ {
25112
+ "name": "limit",
25113
+ "type": "integer",
25114
+ "required": false,
25115
+ "description": "Maximum revisions per page, from 1 to 100; defaults to 20."
25116
+ },
25117
+ {
25118
+ "name": "page",
25119
+ "type": "string",
25120
+ "required": false,
25121
+ "description": "Opaque next_page cursor returned by the previous response; omit for the first page."
25122
+ }
25123
+ ]
25124
+ },
25125
+ {
25126
+ "resource": "organization.usage",
25127
+ "method": "list",
25128
+ "summary": "List Organization Usage",
25129
+ "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
25130
+ "http": "GET",
25131
+ "path": "/organization/v1/usage",
25132
+ "streaming": "no",
25133
+ "pagination": false,
25134
+ "pathParams": [],
25135
+ "query": [
25136
+ {
25137
+ "name": "starting_at",
25138
+ "type": "string",
25139
+ "required": true,
25140
+ "description": "Window start, UTC ISO 8601, inclusive."
25141
+ },
25142
+ {
25143
+ "name": "ending_at",
25144
+ "type": "string",
25145
+ "required": true,
25146
+ "description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
25147
+ },
25148
+ {
25149
+ "name": "bucket_width",
25150
+ "type": "string",
25151
+ "enum": [
25152
+ "1h",
25153
+ "1d"
25154
+ ],
25155
+ "required": true,
25156
+ "description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
25157
+ },
25158
+ {
25159
+ "name": "time_zone",
25160
+ "type": "string",
25161
+ "required": false,
25162
+ "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
25163
+ },
25164
+ {
25165
+ "name": "group_by",
25166
+ "type": "array",
25167
+ "itemType": "string",
25168
+ "enum": [
25169
+ "ServiceName",
25170
+ "ServiceCategory",
25171
+ "ResourceId",
25172
+ "ConsumedUnit"
25173
+ ],
24634
25174
  "required": false,
24635
25175
  "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
24636
25176
  },
@@ -24707,11 +25247,51 @@ export const operations = [
24707
25247
  ],
24708
25248
  "query": []
24709
25249
  },
25250
+ {
25251
+ "resource": "registry.packages.gitCredential",
25252
+ "method": "create",
25253
+ "summary": "Create a git credential",
25254
+ "description": "给一个 git 包换一个短期的 git 凭据,用来 git clone / git push。access 选 pull(只读,用来克隆和拉取)或 push(推分支,同时可以克隆和拉取)。push-protected(更新受保护分支)暂不发放,请推到别的分支再合并,请求它返回 400。ttl_seconds 是有效秒数,1-3600,默认 3600;到期后重新调用本接口,不要缓存过期的凭据。返回的 password 是敏感信息,只出现这一次,不要写进日志或提交。用法:git clone https://x-access-token:$PASSWORD@host/git/组织/库/包.git,或把 url 里的地址配上 http.extraHeader。组织未开放 git 功能返回 409;另一个组织的包、已被删除的包和 oci 包都返回 404。同一个 package_id 可以多次取,每次是一个新凭据,互不影响。",
25255
+ "http": "POST",
25256
+ "path": "/registry/v1/packages/{package_id}/git-credential",
25257
+ "streaming": "no",
25258
+ "pagination": false,
25259
+ "pathParams": [
25260
+ {
25261
+ "name": "package_id",
25262
+ "sdkName": "package_id",
25263
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25264
+ }
25265
+ ],
25266
+ "query": [],
25267
+ "body": {
25268
+ "required": true,
25269
+ "fields": [
25270
+ {
25271
+ "name": "access",
25272
+ "type": "string",
25273
+ "enum": [
25274
+ "pull",
25275
+ "push",
25276
+ "push-protected"
25277
+ ],
25278
+ "required": true,
25279
+ "description": "凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。"
25280
+ },
25281
+ {
25282
+ "name": "ttl_seconds",
25283
+ "type": "integer",
25284
+ "required": false,
25285
+ "description": "凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。"
25286
+ }
25287
+ ]
25288
+ }
25289
+ },
24710
25290
  {
24711
25291
  "resource": "registry.packages.git.commits",
24712
25292
  "method": "retrieve",
24713
25293
  "summary": "Read a commit",
24714
- "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。",
25294
+ "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交;changed_files=true 时再返回它相对第一个父提交改了哪些文件(根提交的全部文件算新增),文件列表被上限截断时 changed_files_truncated 为 true。仓库里没有这个对象返回 404。",
24715
25295
  "http": "GET",
24716
25296
  "path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
24717
25297
  "streaming": "no",
@@ -24728,7 +25308,45 @@ export const operations = [
24728
25308
  "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24729
25309
  }
24730
25310
  ],
24731
- "query": []
25311
+ "query": [
25312
+ {
25313
+ "name": "changed_files",
25314
+ "type": "boolean",
25315
+ "required": false,
25316
+ "description": "为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。"
25317
+ }
25318
+ ]
25319
+ },
25320
+ {
25321
+ "resource": "registry.packages.git",
25322
+ "method": "retrieveCompare",
25323
+ "summary": "Compare two refs",
25324
+ "description": "比较 base 与 head(引用名或完整对象 id):status 是 identical、ahead(head 在 base 之上有新提交)、behind(head 已包含在 base 里)或 diverged(两边各有提交);merge_base 是找到的最近共同祖先;files 是 head 相对 merge_base 改了哪些文件(added、modified、removed、renamed,renamed 带 previous_path),commits 是 head 比 base 多出的提交,最新的在前。Artifacts 无法低成本回答祖先关系,所以这里只沿两边的第一父链各走最多 300 个提交,并在有界读取下比对树:找不到共同祖先时返回 diverged、merge_base 为 null;files 被上限(3000 个文件、1000 次树读取)截断时 truncated 为 true;commits 被截断、或合并提交藏起了被合并分支上的提交时 commits_truncated 为 true。truncated 或 commits_truncated 为 true 时不要把列表当作完整结果。引用不存在返回 404。只读。",
25325
+ "http": "GET",
25326
+ "path": "/registry/v1/packages/{package_id}/git/compare",
25327
+ "streaming": "no",
25328
+ "pagination": false,
25329
+ "pathParams": [
25330
+ {
25331
+ "name": "package_id",
25332
+ "sdkName": "package_id",
25333
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25334
+ }
25335
+ ],
25336
+ "query": [
25337
+ {
25338
+ "name": "base",
25339
+ "type": "string",
25340
+ "required": true,
25341
+ "description": "比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。"
25342
+ },
25343
+ {
25344
+ "name": "head",
25345
+ "type": "string",
25346
+ "required": true,
25347
+ "description": "比较的终点:分支名、标签名、refs/… 全名或完整对象 id。"
25348
+ }
25349
+ ]
24732
25350
  },
24733
25351
  {
24734
25352
  "resource": "registry.packages.git.files",
@@ -24797,6 +25415,72 @@ export const operations = [
24797
25415
  }
24798
25416
  ]
24799
25417
  },
25418
+ {
25419
+ "resource": "registry.packages.git.refs",
25420
+ "method": "list",
25421
+ "summary": "List branches and tags",
25422
+ "description": "列出一个 git 包的分支和标签,按名字排序;prefix 只取 refs/heads/(分支)或 refs/tags/(标签),不给就两者都列。page 从 1 起,size 1 到 500,默认 100;has_more 为 true 表示还有下一页。带注解的标签返回它指向的提交 id,不是标签对象的 id。想把一个名字换成提交 id 用 git/resolve,不要自己在这个列表里找。只读;OCI 包返回 404。",
25423
+ "http": "GET",
25424
+ "path": "/registry/v1/packages/{package_id}/git/refs",
25425
+ "streaming": "no",
25426
+ "pagination": false,
25427
+ "pathParams": [
25428
+ {
25429
+ "name": "package_id",
25430
+ "sdkName": "package_id",
25431
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25432
+ }
25433
+ ],
25434
+ "query": [
25435
+ {
25436
+ "name": "prefix",
25437
+ "type": "string",
25438
+ "enum": [
25439
+ "refs/heads/",
25440
+ "refs/tags/"
25441
+ ],
25442
+ "required": false,
25443
+ "description": "只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。"
25444
+ },
25445
+ {
25446
+ "name": "page",
25447
+ "type": "integer",
25448
+ "required": false,
25449
+ "description": "页码,从 1 起,默认 1。"
25450
+ },
25451
+ {
25452
+ "name": "size",
25453
+ "type": "integer",
25454
+ "required": false,
25455
+ "description": "这一页最多返回多少个引用,1 到 500,默认 100。"
25456
+ }
25457
+ ]
25458
+ },
25459
+ {
25460
+ "resource": "registry.packages.git",
25461
+ "method": "retrieveResolve",
25462
+ "summary": "Resolve a ref",
25463
+ "description": "把一个引用换成它指向的提交 id:ref 可以是分支名、标签名、refs/… 全名、HEAD 或完整对象 id(40 或 64 位十六进制,缩写不解析)。名字既是标签又是分支时取标签。完整对象 id 只在仓库里真有这个提交时才返回。仓库没有这个引用或提交返回 404(GIT_OBJECT_NOT_FOUND),不会返回空值。要比较两个引用用 git/compare。",
25464
+ "http": "GET",
25465
+ "path": "/registry/v1/packages/{package_id}/git/resolve",
25466
+ "streaming": "no",
25467
+ "pagination": false,
25468
+ "pathParams": [
25469
+ {
25470
+ "name": "package_id",
25471
+ "sdkName": "package_id",
25472
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25473
+ }
25474
+ ],
25475
+ "query": [
25476
+ {
25477
+ "name": "ref",
25478
+ "type": "string",
25479
+ "required": true,
25480
+ "description": "要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。"
25481
+ }
25482
+ ]
25483
+ },
24800
25484
  {
24801
25485
  "resource": "registry.packages.git.trees",
24802
25486
  "method": "retrieve",
@@ -24820,6 +25504,29 @@ export const operations = [
24820
25504
  ],
24821
25505
  "query": []
24822
25506
  },
25507
+ {
25508
+ "resource": "registry.packages.git.trees",
25509
+ "method": "retrieveRecursive",
25510
+ "summary": "List a tree recursively",
25511
+ "description": "读一个提交(或树对象)下的全部条目,递归,每个条目用相对根的完整路径命名,目录和子模块也是条目(子模块不展开)。适合要拿到整个仓库文件清单的场景(例如 DevOps 的构建判断);只想看一个目录用 git/trees/{sha}。相同的子树只读一次。条目上限 20000、树读取上限 1000 次,撞到上限时 truncated 为 true、entries 只是前一部分,不要当作全部。sha 通常来自 git/resolve。仓库里没有这个对象返回 404。只读。",
25512
+ "http": "GET",
25513
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}/recursive",
25514
+ "streaming": "no",
25515
+ "pagination": false,
25516
+ "pathParams": [
25517
+ {
25518
+ "name": "package_id",
25519
+ "sdkName": "package_id",
25520
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25521
+ },
25522
+ {
25523
+ "name": "sha",
25524
+ "sdkName": "sha",
25525
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
25526
+ }
25527
+ ],
25528
+ "query": []
25529
+ },
24823
25530
  {
24824
25531
  "resource": "registry.packages.installations",
24825
25532
  "method": "list",
@@ -25099,7 +25806,7 @@ export const operations = [
25099
25806
  "resource": "registry.repositories",
25100
25807
  "method": "create",
25101
25808
  "summary": "Create repository",
25102
- "description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
25809
+ "description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。format 默认 oci,库里放技能和插件;要放 git 仓库就传 format=git,建库后 format 不能改。git 库需要这个组织已开放 git 功能,否则返回 409。",
25103
25810
  "http": "POST",
25104
25811
  "path": "/registry/v1/repositories",
25105
25812
  "streaming": "no",
@@ -25126,6 +25833,16 @@ export const operations = [
25126
25833
  "type": "string",
25127
25834
  "required": false,
25128
25835
  "description": "库的说明;省略时不写。"
25836
+ },
25837
+ {
25838
+ "name": "format",
25839
+ "type": "string",
25840
+ "enum": [
25841
+ "oci",
25842
+ "git"
25843
+ ],
25844
+ "required": false,
25845
+ "description": "库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。"
25129
25846
  }
25130
25847
  ]
25131
25848
  }
@@ -25261,8 +25978,8 @@ export const operations = [
25261
25978
  {
25262
25979
  "resource": "registry.repositories.packages",
25263
25980
  "method": "create",
25264
- "summary": "Publish a package",
25265
- "description": "把一个新包发布进这个库,一次调用建立包并上传它的第一个版本。发布内容是 multipart:version 必填,archive 给一个 zip,或者 files 给一组文件(每个文件的 filename 是相对上传根的路径,例如 pdf/SKILL.md)。单个顶层目录会被剥掉。种类按根上有什么判:有 SKILL.md 就是 skill,有 .claude-plugin/plugin.json 就是 plugin;两者都没有、或都有,会被拒。名字从 SKILL.md 或 plugin.json 里读,不从路径或 query 猜。限额:上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。版本必须是 semver 且严格递增;第一个版本可以是任意合法 semver,之后每个新版本都要比已发布的最高版本高。把已有智能体的技能搬过来时,先用 GET /agent/v1/skills/{id}/versions/{v}/content 导出 zip,再在这里作为 archive 发布。",
25981
+ "summary": "Create a package",
25982
+ "description": "在一个库里建新包,按库的 format 走两条路。git 库(format=git):Content-Type 用 application/json,请求体 {name, format:\"git\", default_branch?, description?, import?},建一个空的 git 仓库,或者用 import.url(公开 https 仓库)从现有仓库导入;成功返回的包带 clone_url、default_branch 和 protected_refs(默认只保护默认分支),接着调用 packages.git-credential 取推拉凭据;组织未开放 git 功能返回 409,往 oci 库里用 JSON 建包也是 409。oci 库(技能和插件):把一个新包发布进这个库,一次调用建立包并上传它的第一个版本,Content-Type 用 multipart/form-data。发布内容是 multipart:version 必填,archive 给一个 zip,或者 files 给一组文件(每个文件的 filename 是相对上传根的路径,例如 pdf/SKILL.md)。单个顶层目录会被剥掉。种类按根上有什么判:有 SKILL.md 就是 skill,有 .claude-plugin/plugin.json 就是 plugin;两者都没有、或都有,会被拒。名字从 SKILL.md 或 plugin.json 里读,不从路径或 query 猜。限额:上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。版本必须是 semver 且严格递增;第一个版本可以是任意合法 semver,之后每个新版本都要比已发布的最高版本高。把已有智能体的技能搬过来时,先用 GET /agent/v1/skills/{id}/versions/{v}/content 导出 zip,再在这里作为 archive 发布。",
25266
25983
  "http": "POST",
25267
25984
  "path": "/registry/v1/repositories/{repository_id}/packages",
25268
25985
  "streaming": "no",
@@ -25280,41 +25997,37 @@ export const operations = [
25280
25997
  "required": true,
25281
25998
  "fields": [
25282
25999
  {
25283
- "name": "version",
26000
+ "name": "name",
25284
26001
  "type": "string",
25285
26002
  "required": true,
25286
- "description": "要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。"
26003
+ "description": "包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。"
25287
26004
  },
25288
26005
  {
25289
- "name": "archive",
26006
+ "name": "format",
25290
26007
  "type": "string",
25291
- "required": false,
25292
- "description": "一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。"
25293
- },
25294
- {
25295
- "name": "files",
25296
- "type": "array",
25297
- "itemType": "string",
25298
- "required": false,
25299
- "description": "直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。"
26008
+ "enum": [
26009
+ "git"
26010
+ ],
26011
+ "required": true,
26012
+ "description": "建的包是什么;JSON 请求只能建 git 包,所以固定为 git。"
25300
26013
  },
25301
26014
  {
25302
- "name": "title",
26015
+ "name": "default_branch",
25303
26016
  "type": "string",
25304
26017
  "required": false,
25305
- "description": "给人看的标题;省略时从包内容里取。"
26018
+ "description": "默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。"
25306
26019
  },
25307
26020
  {
25308
26021
  "name": "description",
25309
26022
  "type": "string",
25310
26023
  "required": false,
25311
- "description": "包说明;省略时从包内容里取。"
26024
+ "description": "仓库的说明;省略时为空。"
25312
26025
  },
25313
26026
  {
25314
- "name": "tags",
25315
- "type": "string",
26027
+ "name": "import",
26028
+ "type": "object",
25316
26029
  "required": false,
25317
- "description": "逗号分隔的标签,例如 review,quality;省略时没有标签。"
26030
+ "description": "从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。"
25318
26031
  }
25319
26032
  ]
25320
26033
  }
@@ -25323,7 +26036,7 @@ export const operations = [
25323
26036
  "resource": "sandbox.byod.devices",
25324
26037
  "method": "list",
25325
26038
  "summary": "List your organization's own devices",
25326
- "description": "List the devices your organization has paired, oldest first, with each one's platform, name, model, OS version, live online fact and when it was last seen. Use it to find a device id before you act on it, rename it or disconnect it, or to show the BYOD page. A revoked device is not listed, so a device that disappears from this answer was disconnected; there is no paging because an organization's own devices are few. Android is the only platform today. Example: GET /sandbox/v1/byod/devices returns {data:[{object:'byod_device',id:'byd_0123456789abcdefghijklmno',platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16',online:true,last_seen_at:'2026-11-22T12:58:00.000Z',created_at:'2026-11-22T12:40:00.000Z'}]}.",
26039
+ "description": "List the devices your organization has paired, oldest first, with each one's platform, name, model, OS version, live online fact and when it was last seen. Use it to find a device id before you act on it, rename it or disconnect it, or to show the BYOD page. A revoked device is not listed, so a device that disappears from this answer was disconnected; there is no paging because an organization's own devices are few. Each row carries capabilities and, for a desktop, the agent_dirs it registered. Example: GET /sandbox/v1/byod/devices returns {data:[{object:'byod_device',id:'byd_0123456789abcdefghijklmno',platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16',online:true,last_seen_at:'2026-11-22T12:58:00.000Z',created_at:'2026-11-22T12:40:00.000Z',capabilities:['display'],agent_dirs:[]}]}.",
25327
26040
  "http": "GET",
25328
26041
  "path": "/sandbox/v1/byod/devices",
25329
26042
  "streaming": "no",
@@ -25430,7 +26143,7 @@ export const operations = [
25430
26143
  "resource": "sandbox.byod.pairings.claim",
25431
26144
  "method": "create",
25432
26145
  "summary": "Claim a pairing and register the phone",
25433
- "description": "The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno--sbx-develop.praxisusercontent.com/'}.",
26146
+ "description": "The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno.sandbox-develop.praxisusercontent.com/'}.",
25434
26147
  "http": "POST",
25435
26148
  "path": "/sandbox/v1/byod/pairings/{code}/claim",
25436
26149
  "streaming": "no",
@@ -25450,10 +26163,12 @@ export const operations = [
25450
26163
  "name": "platform",
25451
26164
  "type": "string",
25452
26165
  "enum": [
25453
- "android"
26166
+ "android",
26167
+ "macos",
26168
+ "linux"
25454
26169
  ],
25455
26170
  "required": true,
25456
- "description": "The device's platform. Android is the only accepted value; anything else answers INVALID_PARAMS."
26171
+ "description": "The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS."
25457
26172
  },
25458
26173
  {
25459
26174
  "name": "name",
@@ -25733,6 +26448,19 @@ export const operations = [
25733
26448
  "required": false,
25734
26449
  "description": "Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku."
25735
26450
  },
26451
+ {
26452
+ "name": "kind",
26453
+ "type": "string",
26454
+ "enum": [
26455
+ "run",
26456
+ "job",
26457
+ "batch",
26458
+ "computer",
26459
+ "compat"
26460
+ ],
26461
+ "required": false,
26462
+ "description": "Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says."
26463
+ },
25736
26464
  {
25737
26465
  "name": "interruptible",
25738
26466
  "type": "boolean",
@@ -32386,7 +33114,7 @@ export const operations = [
32386
33114
  "resource": "vault.authorizations",
32387
33115
  "method": "create",
32388
33116
  "summary": "Create authorization",
32389
- "description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. This stores a credential but does not enable vault-backed MCP authentication in Agent sessions.",
33117
+ "description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. The resulting oauth secret serves vault-backed MCP authentication — an Agent session or deployment whose vault_ids include this vault sends it to the MCP server whose URL equals this authorization's resource URL (normalized), and the platform refreshes the token once when that server answers 401.",
32390
33118
  "http": "POST",
32391
33119
  "path": "/vault/v1/authorizations",
32392
33120
  "streaming": "no",