@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.
@@ -7780,6 +7780,243 @@ export type OrganizationReviseKeyResultRequest = {
7780
7780
  */
7781
7781
  done?: boolean;
7782
7782
  };
7783
+ /**
7784
+ * Which subject a spec describes; the organization is addressed by its own id and every other kind by that subject's id.
7785
+ */
7786
+ export type OrganizationSpecKind = 'organization' | 'department' | 'level' | 'job' | 'position' | 'assignment';
7787
+ /**
7788
+ * One page of specs.
7789
+ */
7790
+ export type OrganizationSpecList = {
7791
+ /**
7792
+ * Specs on this page.
7793
+ */
7794
+ data: Array<OrganizationSpec>;
7795
+ /**
7796
+ * Whether another page is available after this one.
7797
+ */
7798
+ has_more: boolean;
7799
+ /**
7800
+ * Cursor to pass as page to read the next page; null when no more items remain.
7801
+ */
7802
+ next_page: string | null;
7803
+ };
7804
+ /**
7805
+ * The live spec of one subject; a subject never written answers revision 0 with an empty body.
7806
+ */
7807
+ export type OrganizationSpec = {
7808
+ kind: OrganizationSpecKind;
7809
+ /**
7810
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
7811
+ */
7812
+ id: string;
7813
+ /**
7814
+ * Live revision, 0 until the first write and raised by one on every revise; send it as expected_revision.
7815
+ */
7816
+ revision: number;
7817
+ /**
7818
+ * The spec body: a map from block name to block value, stored and returned verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
7819
+ */
7820
+ spec: {
7821
+ [key: string]: unknown;
7822
+ };
7823
+ /**
7824
+ * UTC instant (RFC 3339) of the latest revision; null when the subject never had a spec written.
7825
+ */
7826
+ update_time: string | null;
7827
+ /**
7828
+ * Actor address that wrote the latest revision (human:usr_... or agent:agent_...); null until the first write.
7829
+ */
7830
+ updated_by: string | null;
7831
+ };
7832
+ /**
7833
+ * The whole new spec of one subject, replacing the previous one.
7834
+ */
7835
+ export type OrganizationReviseSpecRequest = {
7836
+ /**
7837
+ * 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.
7838
+ */
7839
+ expected_revision: number;
7840
+ /**
7841
+ * 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.
7842
+ */
7843
+ spec: {
7844
+ [key: string]: unknown;
7845
+ };
7846
+ };
7847
+ /**
7848
+ * One page of a subject's spec revisions, newest first.
7849
+ */
7850
+ export type OrganizationSpecRevisionList = {
7851
+ /**
7852
+ * Revisions on this page, newest first.
7853
+ */
7854
+ data: Array<OrganizationSpecRevision>;
7855
+ /**
7856
+ * Whether another page is available after this one.
7857
+ */
7858
+ has_more: boolean;
7859
+ /**
7860
+ * Cursor to pass as page to read the next page; null when no more items remain.
7861
+ */
7862
+ next_page: string | null;
7863
+ };
7864
+ /**
7865
+ * The changes between two revisions of one subject's spec; an empty changes array means the two revisions are equal.
7866
+ */
7867
+ export type OrganizationSpecDiff = {
7868
+ kind: OrganizationSpecKind;
7869
+ /**
7870
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
7871
+ */
7872
+ id: string;
7873
+ /**
7874
+ * The earlier revision that was compared from; 0 is the empty spec before the first write.
7875
+ */
7876
+ from: number;
7877
+ /**
7878
+ * The later revision that was compared to.
7879
+ */
7880
+ to: number;
7881
+ /**
7882
+ * The differences found, in path order.
7883
+ */
7884
+ changes: Array<OrganizationSpecChange>;
7885
+ };
7886
+ /**
7887
+ * The merged spec of one seat or actor - the one configuration that actually applies when every layer is reconciled.
7888
+ */
7889
+ export type OrganizationEffectiveSpec = {
7890
+ /**
7891
+ * Actor address the result is for (human:usr_... or agent:agent_...); null when the query was by position_id and the seat is vacant.
7892
+ */
7893
+ actor: string | null;
7894
+ /**
7895
+ * The holder kind the merge was made for, given or derived from the seat's holder.
7896
+ */
7897
+ holder_kind: 'agent' | 'human';
7898
+ /**
7899
+ * Every seat the result covers; the primary seat, if any, comes first.
7900
+ */
7901
+ seats: Array<{
7902
+ /**
7903
+ * Position id (pos_...) of this seat.
7904
+ */
7905
+ position_id: string;
7906
+ /**
7907
+ * Assignment id (asg_...) holding the seat; null while the seat is vacant.
7908
+ */
7909
+ assignment_id: string | null;
7910
+ /**
7911
+ * Whether this is the actor's primary seat, whose values win a clash.
7912
+ */
7913
+ primary: boolean;
7914
+ /**
7915
+ * The spec layers merged for this seat, least specific first.
7916
+ */
7917
+ layers: Array<OrganizationSpecLayerRef>;
7918
+ }>;
7919
+ /**
7920
+ * The document of every layer, each layer once; duplicates of the same layer are dropped.
7921
+ */
7922
+ documents: Array<OrganizationSpecDocument>;
7923
+ /**
7924
+ * The merged capability blocks: a map from block name to the value the chain resolved to. Blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
7925
+ */
7926
+ spec: {
7927
+ [key: string]: unknown;
7928
+ };
7929
+ /**
7930
+ * Where each merged value came from, keyed by the path inside the spec (such as agent.model or repositories[github:org/repo]).
7931
+ */
7932
+ origins: {
7933
+ [key: string]: string;
7934
+ };
7935
+ /**
7936
+ * Blocks this holder kind does not take and that were skipped without error, such as agent-only blocks for a human holder.
7937
+ */
7938
+ skipped: Array<string>;
7939
+ /**
7940
+ * Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
7941
+ */
7942
+ violations: Array<string>;
7943
+ };
7944
+ /**
7945
+ * What a dry run of the reconciler would do for one holder, without changing anything.
7946
+ */
7947
+ export type OrganizationReconcilePlan = {
7948
+ /**
7949
+ * Actor address the plan is for (agent:agent_... or human:usr_...).
7950
+ */
7951
+ actor: string;
7952
+ /**
7953
+ * The holder kind the merge was made for, derived from the actor address.
7954
+ */
7955
+ holder_kind: 'agent' | 'human';
7956
+ /**
7957
+ * One action per block the plan considered, in block order.
7958
+ */
7959
+ actions: Array<OrganizationReconcileAction>;
7960
+ /**
7961
+ * Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
7962
+ */
7963
+ violations: Array<string>;
7964
+ };
7965
+ /**
7966
+ * The reconciler's last result for one holder.
7967
+ */
7968
+ export type OrganizationReconcileStatus = {
7969
+ /**
7970
+ * Actor address this status is for (agent:agent_... or human:usr_...).
7971
+ */
7972
+ actor: string;
7973
+ /**
7974
+ * Whether the sweep is paused for this holder.
7975
+ */
7976
+ paused: boolean;
7977
+ /**
7978
+ * The seats and layer revisions the last run applied; empty before the first run.
7979
+ */
7980
+ observed: Array<{
7981
+ /**
7982
+ * Position id (pos_...) of this seat.
7983
+ */
7984
+ position_id: string;
7985
+ /**
7986
+ * Assignment id (asg_...) holding the seat; null while the seat is vacant.
7987
+ */
7988
+ assignment_id: string | null;
7989
+ /**
7990
+ * Whether this is the actor's primary seat, whose values win a clash.
7991
+ */
7992
+ primary: boolean;
7993
+ /**
7994
+ * The spec layers merged for this seat, least specific first.
7995
+ */
7996
+ layers: Array<OrganizationSpecLayerRef>;
7997
+ }>;
7998
+ /**
7999
+ * One row per capability block and the state it is in.
8000
+ */
8001
+ items: Array<OrganizationReconcileItem>;
8002
+ /**
8003
+ * Where what is applied differs from what the specs want; empty when nothing has drifted.
8004
+ */
8005
+ drift: Array<OrganizationReconcileDrift>;
8006
+ /**
8007
+ * UTC instant (RFC 3339) of the last run that applied changes; null when the holder was never reconciled.
8008
+ */
8009
+ applied_at: string | null;
8010
+ };
8011
+ /**
8012
+ * The holder to reconcile.
8013
+ */
8014
+ export type OrganizationReconcileActorRequest = {
8015
+ /**
8016
+ * Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged.
8017
+ */
8018
+ actor: string;
8019
+ };
7783
8020
  export type SandboxSandboxDetail = {
7784
8021
  /**
7785
8022
  * Identifier of the template from which is the sandbox created
@@ -16340,7 +16577,7 @@ export type DevopsReportUploadRequest = {
16340
16577
  */
16341
16578
  reportId: string;
16342
16579
  /**
16343
- * 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.
16580
+ * 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.
16344
16581
  */
16345
16582
  purpose?: 'evidence' | 'feedback';
16346
16583
  /**
@@ -16414,27 +16651,61 @@ export type DevopsTestPlan = {
16414
16651
  * One entry per required package, sorted by directory. Empty only when selection is nothing or failed.
16415
16652
  */
16416
16653
  packages: Array<DevopsTestPlanPackage>;
16654
+ /**
16655
+ * Every feature scenario of the affected packages at the gate's sizes, sorted by package and title, each with whether this diff requires it and what evidence answers it. This is the finer reading of packages: a merge asks for evidence only on the required cases.
16656
+ */
16657
+ cases: Array<DevopsTestPlanCase>;
16658
+ /**
16659
+ * Present only for view summary: one row per package that has cases, counting its cases. required is what this diff requires evidence for, unaffected is what it does not reach, and of the required ones evidenced have a passing row at their deps hash, missing have none and failed have a newest failing row (required = evidenced + missing + failed). In this view cases lists the required cases only.
16660
+ */
16661
+ caseCounts?: Array<DevopsTestPlanCaseCounts>;
16417
16662
  /**
16418
16663
  * The changed paths the ownership rule could not place, present only when selection is failed. Fix the rule or the paths: with no package named over paths that were not judged none, neither a pass nor a run is the truth.
16419
16664
  */
16420
16665
  failedPaths?: Array<string>;
16421
16666
  };
16422
16667
  /**
16423
- * One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
16668
+ * A new project: its name and, for a project with code, where the code lives.
16424
16669
  */
16425
- export type DevopsProjectPage = {
16670
+ export type DevopsProjectCreate = {
16426
16671
  /**
16427
- * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16672
+ * Kebab-case name, unique within the organization.
16428
16673
  */
16429
- items: Array<DevopsProject>;
16674
+ name: string;
16430
16675
  /**
16431
- * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16676
+ * What the project is for, in your own words.
16432
16677
  */
16433
- nextPageToken: string;
16678
+ description?: string;
16434
16679
  /**
16435
- * How many undeleted projects the caller's own organization has: 0 means the organization has none yet, not that the read returned nothing. Visible means visible to the credential's organization — the count filters rows by organization_id and is not a permission check, so it says nothing about what the caller may be granted. It is the organization's total across all pages, never this page's length: while paging it is at least the length of items, and equal on the first page when every project fits. Always present, so items: [] together with visibleProjects: 0 is an answer rather than an empty response to guess at; an organization without projects still answers 200.
16680
+ * Where the code lives: github (the default) or platform, a git package of our own Git.
16436
16681
  */
16437
- visibleProjects: number;
16682
+ provider?: 'github' | 'platform';
16683
+ /**
16684
+ * provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository.
16685
+ */
16686
+ package?: string;
16687
+ /**
16688
+ * 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.
16689
+ */
16690
+ initialRef?: string;
16691
+ /**
16692
+ * provider github only: the connection of a completed GitHub App install that can see the repository.
16693
+ */
16694
+ connection?: string;
16695
+ /**
16696
+ * provider github only: the repository as owner/name.
16697
+ */
16698
+ repository?: string;
16699
+ /**
16700
+ * Delivery settings; keys you leave out take their defaults.
16701
+ */
16702
+ settings?: {
16703
+ [key: string]: unknown;
16704
+ };
16705
+ /**
16706
+ * Idempotency key: repeat the call with the same value to be given the same answer.
16707
+ */
16708
+ requestId?: string;
16438
16709
  };
16439
16710
  /**
16440
16711
  * One delivery project — the unit a release, a promotion and a flag all belong to.
@@ -16480,6 +16751,49 @@ export type DevopsProject = {
16480
16751
  [key: string]: string;
16481
16752
  };
16482
16753
  };
16754
+ /**
16755
+ * One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
16756
+ */
16757
+ export type DevopsProjectPage = {
16758
+ /**
16759
+ * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16760
+ */
16761
+ items: Array<DevopsProject>;
16762
+ /**
16763
+ * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16764
+ */
16765
+ nextPageToken: string;
16766
+ /**
16767
+ * How many undeleted projects the caller's own organization has: 0 means the organization has none yet, not that the read returned nothing. Visible means visible to the credential's organization — the count filters rows by organization_id and is not a permission check, so it says nothing about what the caller may be granted. It is the organization's total across all pages, never this page's length: while paging it is at least the length of items, and equal on the first page when every project fits. Always present, so items: [] together with visibleProjects: 0 is an answer rather than an empty response to guess at; an organization without projects still answers 200.
16768
+ */
16769
+ visibleProjects: number;
16770
+ };
16771
+ /**
16772
+ * Where to start the default branch.
16773
+ */
16774
+ export type DevopsDefaultBranchInitialize = {
16775
+ /**
16776
+ * An existing branch of the repository, for example import. The default branch is created at its head.
16777
+ */
16778
+ from: string;
16779
+ };
16780
+ /**
16781
+ * The default branch that now exists.
16782
+ */
16783
+ export type DevopsDefaultBranchInitialized = {
16784
+ /**
16785
+ * The default branch the project declares, now created.
16786
+ */
16787
+ defaultBranch: string;
16788
+ /**
16789
+ * The branch it was started from.
16790
+ */
16791
+ from: string;
16792
+ /**
16793
+ * The commit the default branch points at, the head of from when it was read.
16794
+ */
16795
+ commit: string;
16796
+ };
16483
16797
  /**
16484
16798
  * A patch to a project; only the fields named in updateMask are written.
16485
16799
  */
@@ -16526,6 +16840,7 @@ export type DevopsProjectUpdate = {
16526
16840
  * Whether the merge gate is a required check on the git host.
16527
16841
  */
16528
16842
  requireGate?: boolean;
16843
+ gate?: DevopsGatePolicy;
16529
16844
  /**
16530
16845
  * Who publishes this project: mise (the default when absent) keeps the Mise pipeline; devops hands releases to the DevOps pipeline once the merge is done.
16531
16846
  */
@@ -16856,6 +17171,27 @@ export type DevopsPromotionConcludeRequest = {
16856
17171
  */
16857
17172
  reason: string;
16858
17173
  };
17174
+ /**
17175
+ * What a deploy machine fetches a platform-Git project's code with: the repository's clone URL and a pull-only credential for that one repository.
17176
+ */
17177
+ export type DevopsCheckoutCredential = {
17178
+ /**
17179
+ * The https clone URL of the project's repository on the platform's Git. It carries no credential; send the credential below through git's credential helper.
17180
+ */
17181
+ cloneUrl: string;
17182
+ /**
17183
+ * The user name git sends with the password.
17184
+ */
17185
+ username: string;
17186
+ /**
17187
+ * A secret: the pull credential. It reads this one repository and nothing else, and stops working at expireTime. Never print or store it.
17188
+ */
17189
+ password: string;
17190
+ /**
17191
+ * RFC 3339 UTC time the credential stops working, 15 minutes after it was issued. Ask again for a new one rather than extending.
17192
+ */
17193
+ expireTime: string;
17194
+ };
16859
17195
  /**
16860
17196
  * One page of a promotion's rollouts, in plan order.
16861
17197
  */
@@ -16964,9 +17300,13 @@ export type DevopsEnvironmentUpdate = {
16964
17300
  * Suffix such as -develop that this environment adds to site hostnames, or null for none.
16965
17301
  */
16966
17302
  domainSuffix?: string | null;
17303
+ /**
17304
+ * Which stage of the path the environment belongs to: integration environments receive every merge, release environments receive promotions only. Moving an environment between stages changes what the next merge deploys and what a promotion into a release environment waits for; the observation and blocking rules it already carries are not rewritten.
17305
+ */
17306
+ stage?: 'integration' | 'release';
16967
17307
  };
16968
17308
  /**
16969
- * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries.
17309
+ * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries.
16970
17310
  */
16971
17311
  updateMask?: Array<string>;
16972
17312
  };
@@ -17007,7 +17347,11 @@ export type DevopsEnvironment = {
17007
17347
  */
17008
17348
  tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
17009
17349
  /**
17010
- * Position in the promotion sequence, starting at 1 and contiguous; the environment one lower must have verified a release before it may be promoted here.
17350
+ * Which stage of the path this environment belongs to (Sean 2026-11-24: development, integration, release). Every merge is deployed to every integration-stage environment; a promotion into a release-stage environment needs the release deployed successfully to every integration-stage environment, and verification never gates it.
17351
+ */
17352
+ stage: 'integration' | 'release';
17353
+ /**
17354
+ * Position in the promotion sequence, starting at 1 and contiguous. A release-stage environment needs the release deployed in every integration-stage environment, wherever they sit in the order.
17011
17355
  */
17012
17356
  order: number;
17013
17357
  /**
@@ -17639,6 +17983,10 @@ export type DevopsChangeOpenPullRequestRequest = {
17639
17983
  * The pull request for a change's branch.
17640
17984
  */
17641
17985
  export type DevopsChangePullRequestOpened = {
17986
+ /**
17987
+ * The pull request's platform id (pr_…), which retrieve, rerunGate, merge and recordVerdict address. Always present on our own Git; on GitHub it is present once the webhook that records the pull request has arrived, and absent before.
17988
+ */
17989
+ id?: string;
17642
17990
  /**
17643
17991
  * The pull request's number on the git host.
17644
17992
  */
@@ -17661,7 +18009,11 @@ export type DevopsChangePullRequestOpened = {
17661
18009
  */
17662
18010
  export type DevopsChangeGitCredential = {
17663
18011
  /**
17664
- * The user name GitHub App installation tokens require.
18012
+ * The https clone URL of the repository the credential is for. The credential is good for the host of this URL only: git's credential helper answers a request for that host and no other.
18013
+ */
18014
+ url: string;
18015
+ /**
18016
+ * The user name the source host requires with the token (GitHub App installation tokens use `x-access-token`).
17665
18017
  */
17666
18018
  username: string;
17667
18019
  /**
@@ -17800,7 +18152,7 @@ export type DevopsPullRequest = {
17800
18152
  kind: 'user' | 'agent' | 'bot';
17801
18153
  };
17802
18154
  /**
17803
- * GitHub's own mergeability word, kept verbatim as an open set (clean, dirty, blocked, behind, unstable and so on); unknown when GitHub has not said.
18155
+ * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
17804
18156
  */
17805
18157
  mergeableState: string;
17806
18158
  /**
@@ -17890,6 +18242,7 @@ export type DevopsPullRequest = {
17890
18242
  time?: string;
17891
18243
  }>;
17892
18244
  };
18245
+ review?: DevopsReviewVerdict;
17893
18246
  /**
17894
18247
  * The commit it landed as, present only once it is merged.
17895
18248
  */
@@ -17925,7 +18278,7 @@ export type DevopsPullRequestMergeRequest = {
17925
18278
  requestId?: string;
17926
18279
  };
17927
18280
  /**
17928
- * A gatekeeper's judgement of a change declared direct, recorded against one commit.
18281
+ * A reviewer's verdict on a pull request, recorded against one commit, after the fact; the merge gate never waits for it.
17929
18282
  */
17930
18283
  export type DevopsPullRequestVerdictRequest = {
17931
18284
  /**
@@ -17954,6 +18307,19 @@ export type DevopsPullRequestCloseRequest = {
17954
18307
  */
17955
18308
  reason: string;
17956
18309
  };
18310
+ /**
18311
+ * Your verdict on a pull request that lives on the platform's own Git.
18312
+ */
18313
+ export type DevopsPullRequestReviewRequest = {
18314
+ /**
18315
+ * The verdict. A value outside this set is refused with INVALID_ARGUMENT.
18316
+ */
18317
+ state: 'approved' | 'changes_requested' | 'commented';
18318
+ /**
18319
+ * 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.
18320
+ */
18321
+ body?: string;
18322
+ };
17957
18323
  /**
17958
18324
  * One page of an organization's connections.
17959
18325
  */
@@ -18187,7 +18553,7 @@ export type DevopsSegmentUpdate = {
18187
18553
  */
18188
18554
  export type DevopsWorkspaceList = {
18189
18555
  /**
18190
- * The project's workspaces, development first, then integration, then runtime.
18556
+ * The project's workspaces, development first, then integration, then release.
18191
18557
  */
18192
18558
  items: Array<DevopsWorkspace>;
18193
18559
  };
@@ -18324,9 +18690,9 @@ export type DevopsUnit = {
18324
18690
  transitions?: Array<DevopsUnitTransition>;
18325
18691
  };
18326
18692
  /**
18327
- * Where in the delivery line a workspace or unit sits: development merges changes, integration deploys and finds problems, runtime deploys and serves steadily.
18693
+ * Where in the delivery line a workspace or unit sits: development merges changes, integration deploys every merge and finds problems, release deploys and serves steadily (Sean 2026-11-24: development, integration, release).
18328
18694
  */
18329
- export type DevopsWorkspaceStage = 'development' | 'integration' | 'runtime';
18695
+ export type DevopsWorkspaceStage = 'development' | 'integration' | 'release';
18330
18696
  /**
18331
18697
  * The phase a unit was last observed in; it is an observed fact, not the request, so it changes as the sandbox answers.
18332
18698
  */
@@ -18348,6 +18714,23 @@ export type DevopsUnitPage = {
18348
18714
  */
18349
18715
  nextPageToken: string;
18350
18716
  };
18717
+ /**
18718
+ * One page of a project's cleanup ledger, newest decision first.
18719
+ */
18720
+ export type DevopsCleanupPage = {
18721
+ /**
18722
+ * The ledger rows on this page.
18723
+ */
18724
+ items: Array<DevopsCleanupEntry>;
18725
+ /**
18726
+ * How many rows the project's ledger holds across every page; returned on the first page only.
18727
+ */
18728
+ totalSize?: number;
18729
+ /**
18730
+ * Cursor for the next page; an empty string means this was the last page.
18731
+ */
18732
+ nextPageToken: string;
18733
+ };
18351
18734
  /**
18352
18735
  * A field the unit retrieve can inline; only the values listed are accepted, and any other value is refused with INVALID_ARGUMENT.
18353
18736
  */
@@ -21091,6 +21474,10 @@ export type RegistryCreateRepositoryInput = {
21091
21474
  * 库的说明;省略时不写。
21092
21475
  */
21093
21476
  description?: string;
21477
+ /**
21478
+ * 库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。
21479
+ */
21480
+ format?: 'oci' | 'git';
21094
21481
  };
21095
21482
  /**
21096
21483
  * 一个库:组织里包的分类容器。每个组织有一个 is_default 为 true 的默认库。
@@ -21120,6 +21507,10 @@ export type RegistryRepository = {
21120
21507
  * 是否这个组织的默认库;自动创建、不能删除,新包在没有指定库时进这里。
21121
21508
  */
21122
21509
  is_default: boolean;
21510
+ /**
21511
+ * 库里放什么;oci 放技能和插件,git 放 git 仓库;建库时定下,之后不能改。
21512
+ */
21513
+ format: 'oci' | 'git';
21123
21514
  /**
21124
21515
  * 库里当前的包数量;非零时这个库不能删。
21125
21516
  */
@@ -21205,6 +21596,44 @@ export type RegistryPublishInput = {
21205
21596
  */
21206
21597
  tags?: string;
21207
21598
  };
21599
+ /**
21600
+ * 在 git 库里建 git 包的 JSON 请求体;name 和 format 必填。
21601
+ */
21602
+ export type RegistryCreateGitPackageInput = {
21603
+ /**
21604
+ * 包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。
21605
+ */
21606
+ name: string;
21607
+ /**
21608
+ * 建的包是什么;JSON 请求只能建 git 包,所以固定为 git。
21609
+ */
21610
+ format: 'git';
21611
+ /**
21612
+ * 默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。
21613
+ */
21614
+ default_branch?: string;
21615
+ /**
21616
+ * 仓库的说明;省略时为空。
21617
+ */
21618
+ description?: string;
21619
+ /**
21620
+ * 从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。
21621
+ */
21622
+ import?: {
21623
+ /**
21624
+ * 要导入的公开仓库地址,必须是 https,匿名可读;私有仓库不支持。
21625
+ */
21626
+ url: string;
21627
+ /**
21628
+ * 只导入这个分支;省略则按远端的默认分支。
21629
+ */
21630
+ branch?: string;
21631
+ /**
21632
+ * 浅导入的提交深度;省略则导入完整历史。
21633
+ */
21634
+ depth?: number;
21635
+ };
21636
+ };
21208
21637
  /**
21209
21638
  * 一个包:库里的一个技能或插件,带它的最新版本和累计下载量。
21210
21639
  */
@@ -21226,9 +21655,9 @@ export type RegistryPackage = {
21226
21655
  */
21227
21656
  name: string;
21228
21657
  /**
21229
- * 包的种类;技能或插件。
21658
+ * 包的种类;技能、插件,或 git 仓库。
21230
21659
  */
21231
- kind: 'skill' | 'plugin';
21660
+ kind: 'skill' | 'plugin' | 'git';
21232
21661
  /**
21233
21662
  * 给人看的标题;来自上传内容或发布时的 title,没有时是 null。
21234
21663
  */
@@ -21253,6 +21682,22 @@ export type RegistryPackage = {
21253
21682
  * 这个包 archive 下载的累计次数,每次 archive 调用加一。
21254
21683
  */
21255
21684
  downloads: number;
21685
+ /**
21686
+ * 只有 git 包才有这个字段,固定为 git;技能和插件没有。
21687
+ */
21688
+ format?: 'git';
21689
+ /**
21690
+ * 只有 git 包才有;git clone 和 git push 用的地址,在我们自己的域名下(registry.deepraxis.com/git/...),认证见 packages.git-credential。
21691
+ */
21692
+ clone_url?: string;
21693
+ /**
21694
+ * 只有 git 包才有;默认分支名,建包时给,省略为 main。
21695
+ */
21696
+ default_branch?: string;
21697
+ /**
21698
+ * 只有 git 包才有;受保护的分支或标签,不能用普通凭据更新或删除,默认只保护默认分支;用 PATCH 改。
21699
+ */
21700
+ protected_refs?: Array<string>;
21256
21701
  /**
21257
21702
  * 包首次发布的时刻,ISO 8601 UTC。
21258
21703
  */
@@ -21312,6 +21757,44 @@ export type RegistryVersion = {
21312
21757
  */
21313
21758
  create_time: string;
21314
21759
  };
21760
+ /**
21761
+ * 换 git 凭据的请求体;只有 access 必填。
21762
+ */
21763
+ export type RegistryGitCredentialInput = {
21764
+ /**
21765
+ * 凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。
21766
+ */
21767
+ access: 'pull' | 'push' | 'push-protected';
21768
+ /**
21769
+ * 凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。
21770
+ */
21771
+ ttl_seconds?: number;
21772
+ };
21773
+ /**
21774
+ * 一个签发好的 git 凭据:用 HTTP Basic 的用户名和密码访问 url。
21775
+ */
21776
+ export type RegistryGitCredential = {
21777
+ /**
21778
+ * 对象类型标记,固定为 registry.git_credential。
21779
+ */
21780
+ object: string;
21781
+ /**
21782
+ * 这个包的 git 地址,克隆和推送都用它,不含凭据。
21783
+ */
21784
+ url: string;
21785
+ /**
21786
+ * HTTP Basic 的用户名,固定为 x-access-token。
21787
+ */
21788
+ username: 'x-access-token';
21789
+ /**
21790
+ * HTTP Basic 的密码,一个到 expires_at 失效的凭据;敏感,只在这个响应里给出,不要写进日志、提交或 clone 后保留的 remote 地址。
21791
+ */
21792
+ password: string;
21793
+ /**
21794
+ * 凭据失效的时刻,ISO 8601 UTC;过期后重新调用 git-credential。
21795
+ */
21796
+ expires_at: string;
21797
+ };
21315
21798
  /**
21316
21799
  * 一段提交历史。
21317
21800
  */
@@ -21334,9 +21817,9 @@ export type RegistryGitLog = {
21334
21817
  has_more: boolean;
21335
21818
  };
21336
21819
  /**
21337
- * 一个 git 提交。
21820
+ * 一个 git 提交,需要时连同它改动的文件。
21338
21821
  */
21339
- export type RegistryGitCommit = {
21822
+ export type RegistryGitCommitDetail = {
21340
21823
  /**
21341
21824
  * 对象类型标记,固定为 registry.git.commit。
21342
21825
  */
@@ -21365,6 +21848,14 @@ export type RegistryGitCommit = {
21365
21848
  * 父提交的对象 id,按顺序。
21366
21849
  */
21367
21850
  parents: Array<string>;
21851
+ /**
21852
+ * 相对第一个父提交改动的文件;只在请求带 changed_files=true 时才有。
21853
+ */
21854
+ changed_files?: Array<RegistryGitChangedFile>;
21855
+ /**
21856
+ * changed_files 被上限截断时为 true,此时不要当作改动的全部;只在请求带 changed_files=true 时才有。
21857
+ */
21858
+ changed_files_truncated?: boolean;
21368
21859
  };
21369
21860
  /**
21370
21861
  * 一个树的条目清单。
@@ -21383,6 +21874,94 @@ export type RegistryGitTree = {
21383
21874
  */
21384
21875
  entries: Array<RegistryGitTreeEntry>;
21385
21876
  };
21877
+ /**
21878
+ * 一页分支和标签。
21879
+ */
21880
+ export type RegistryGitRefs = {
21881
+ /**
21882
+ * 对象类型标记,固定为 registry.git.refs。
21883
+ */
21884
+ object: string;
21885
+ /**
21886
+ * 这一页的引用,按名字排序。
21887
+ */
21888
+ refs: Array<RegistryGitRefItem>;
21889
+ /**
21890
+ * 是否还有下一页(page 加 1 取下一页)。
21891
+ */
21892
+ has_more: boolean;
21893
+ };
21894
+ /**
21895
+ * 一个引用换成的提交 id。
21896
+ */
21897
+ export type RegistryGitResolvedRef = {
21898
+ /**
21899
+ * 对象类型标记,固定为 registry.git.resolved_ref。
21900
+ */
21901
+ object: string;
21902
+ /**
21903
+ * 请求里的引用,原样返回。
21904
+ */
21905
+ ref: string;
21906
+ /**
21907
+ * 这个引用指向的提交 id。
21908
+ */
21909
+ sha: string;
21910
+ };
21911
+ /**
21912
+ * 两个引用的比较结果。
21913
+ */
21914
+ export type RegistryGitComparison = {
21915
+ /**
21916
+ * 对象类型标记,固定为 registry.git.comparison。
21917
+ */
21918
+ object: string;
21919
+ /**
21920
+ * head 相对 base 的关系。
21921
+ */
21922
+ status: 'identical' | 'ahead' | 'behind' | 'diverged';
21923
+ /**
21924
+ * 找到的最近共同祖先的提交 id;没有找到(历史无关,或读取上限内没走到)时为 null。
21925
+ */
21926
+ merge_base: string | null;
21927
+ /**
21928
+ * head 相对 merge_base 改动的文件;merge_base 为 null 时相对 base。
21929
+ */
21930
+ files: Array<RegistryGitChangedFile>;
21931
+ /**
21932
+ * head 比 base 多出的提交,最新的在前。
21933
+ */
21934
+ commits: Array<RegistryGitComparedCommit>;
21935
+ /**
21936
+ * 为 true 表示 files 被上限截断,或没找到 merge_base 而无法确定 files;此时不要当作完整结果。
21937
+ */
21938
+ truncated: boolean;
21939
+ /**
21940
+ * 为 true 表示 commits 不完整(读取上限,或合并提交藏起了被合并分支上的提交);此时不要当作 head 多出的全部提交。
21941
+ */
21942
+ commits_truncated: boolean;
21943
+ };
21944
+ /**
21945
+ * 一个提交或树下的全部条目。
21946
+ */
21947
+ export type RegistryGitTreeRecursive = {
21948
+ /**
21949
+ * 对象类型标记,固定为 registry.git.tree_recursive。
21950
+ */
21951
+ object: string;
21952
+ /**
21953
+ * 请求里读的提交或树对象 id,原样返回。
21954
+ */
21955
+ sha: string;
21956
+ /**
21957
+ * 为 true 表示撞到条目或树读取上限,entries 只是前一部分,不是全部。
21958
+ */
21959
+ truncated: boolean;
21960
+ /**
21961
+ * 全部条目,按路径排序,目录也在其中。
21962
+ */
21963
+ entries: Array<RegistryGitTreeNode>;
21964
+ };
21386
21965
  /**
21387
21966
  * 一个版本的文件清单;文件不多,一次返回全部。
21388
21967
  */
@@ -21565,6 +22144,10 @@ export type SandboxNewSandboxV2 = {
21565
22144
  * 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.
21566
22145
  */
21567
22146
  sku?: string;
22147
+ /**
22148
+ * 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.
22149
+ */
22150
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
21568
22151
  /**
21569
22152
  * Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
21570
22153
  */
@@ -31859,6 +32442,149 @@ export type OrganizationMetric = {
31859
32442
  */
31860
32443
  unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
31861
32444
  };
32445
+ /**
32446
+ * One stored revision of a subject's spec, kept for history.
32447
+ */
32448
+ export type OrganizationSpecRevision = {
32449
+ kind: OrganizationSpecKind;
32450
+ /**
32451
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
32452
+ */
32453
+ id: string;
32454
+ /**
32455
+ * Revision number of this stored body, rising from 1; diff and get accept it as revision.
32456
+ */
32457
+ revision: number;
32458
+ /**
32459
+ * The whole body as it was written at this revision, verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
32460
+ */
32461
+ spec: {
32462
+ [key: string]: unknown;
32463
+ };
32464
+ /**
32465
+ * UTC instant (RFC 3339) when this revision was written.
32466
+ */
32467
+ create_time: string;
32468
+ /**
32469
+ * Actor address that wrote this revision (human:usr_... or agent:agent_...).
32470
+ */
32471
+ created_by: string;
32472
+ };
32473
+ /**
32474
+ * One difference between two revisions of a spec.
32475
+ */
32476
+ export type OrganizationSpecChange = {
32477
+ /**
32478
+ * Path of the changed value inside the spec body, such as agent.model or repositories[github:org/repo].
32479
+ */
32480
+ path: string;
32481
+ /**
32482
+ * What happened at this path between the two revisions.
32483
+ */
32484
+ op: 'added' | 'removed' | 'changed';
32485
+ /**
32486
+ * The value at this path in the earlier revision, verbatim; absent when the value was added.
32487
+ */
32488
+ before?: unknown;
32489
+ /**
32490
+ * The value at this path in the later revision, verbatim; absent when the value was removed.
32491
+ */
32492
+ after?: unknown;
32493
+ };
32494
+ /**
32495
+ * One layer the effective spec was merged from, least specific first.
32496
+ */
32497
+ export type OrganizationSpecLayerRef = {
32498
+ kind: OrganizationSpecKind;
32499
+ /**
32500
+ * The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
32501
+ */
32502
+ id: string;
32503
+ /**
32504
+ * Revision of that layer's spec at the time it was merged.
32505
+ */
32506
+ revision: number;
32507
+ };
32508
+ /**
32509
+ * One document block collected from a layer of the effective spec, kept whole and never merged.
32510
+ */
32511
+ export type OrganizationSpecDocument = {
32512
+ /**
32513
+ * The layer the document came from, as kind:id such as job:jpr_123.
32514
+ */
32515
+ from: string;
32516
+ /**
32517
+ * Revision of that layer's spec the document was read at.
32518
+ */
32519
+ revision: number;
32520
+ /**
32521
+ * The document text itself, inferred from memory rather than merged into the capability blocks.
32522
+ */
32523
+ text: string;
32524
+ };
32525
+ /**
32526
+ * One action the reconciler would take for a block in a dry run.
32527
+ */
32528
+ export type OrganizationReconcileAction = {
32529
+ /**
32530
+ * Name of the block this action is about, such as agent.
32531
+ */
32532
+ block: string;
32533
+ /**
32534
+ * What the reconciler would do with this block.
32535
+ */
32536
+ action: 'hold' | 'update' | 'none' | 'pending' | 'blocked';
32537
+ /**
32538
+ * The value the action would write, or the reason it is blocked, verbatim.
32539
+ */
32540
+ detail: unknown;
32541
+ };
32542
+ /**
32543
+ * One capability block and the state the reconciler last left it in.
32544
+ */
32545
+ export type OrganizationReconcileItem = {
32546
+ /**
32547
+ * Name of the capability block this row is about, such as agent or computer.
32548
+ */
32549
+ block: string;
32550
+ /**
32551
+ * What the reconciler last did with this block.
32552
+ */
32553
+ state: 'ready' | 'pending' | 'failed' | 'waiting_human' | 'paused';
32554
+ /**
32555
+ * The resource the block was applied to, such as agent:agent_... ; null before it is bound.
32556
+ */
32557
+ binding: string | null;
32558
+ /**
32559
+ * Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
32560
+ */
32561
+ message: string | null;
32562
+ };
32563
+ /**
32564
+ * One value where what is applied differs from what the specs want.
32565
+ */
32566
+ export type OrganizationReconcileDrift = {
32567
+ /**
32568
+ * Name of the block the drifted value belongs to, such as agent.
32569
+ */
32570
+ block: string;
32571
+ /**
32572
+ * Path of the value inside the block, such as model.
32573
+ */
32574
+ field: string;
32575
+ /**
32576
+ * The value currently applied, verbatim; null when nothing is applied there yet.
32577
+ */
32578
+ found: unknown;
32579
+ /**
32580
+ * The value the specs resolved to, verbatim.
32581
+ */
32582
+ want: unknown;
32583
+ /**
32584
+ * UTC instant (RFC 3339) from which the drift has been observed.
32585
+ */
32586
+ since: string;
32587
+ };
31862
32588
  /**
31863
32589
  * Your own string key/value pairs stored with the sandbox; usable as a filter in listSandboxes.
31864
32590
  */
@@ -35322,14 +36048,80 @@ export type DevopsTestPlanPackage = {
35322
36048
  */
35323
36049
  run?: string;
35324
36050
  };
36051
+ /**
36052
+ * One feature scenario of an affected package at the gate's sizes: whether this diff requires evidence for it, and what evidence already answers it at its deps hash. Unit tests (*.test.ts) never appear here; they need no evidence.
36053
+ */
36054
+ export type DevopsTestPlanCase = {
36055
+ /**
36056
+ * The case id as the catalog holds it; the unit evidence is filed under.
36057
+ */
36058
+ case: string;
36059
+ /**
36060
+ * Repository-relative directory of the package the scenario lives in.
36061
+ */
36062
+ package: string;
36063
+ /**
36064
+ * The scenario title, to name a failed or missing case to a person.
36065
+ */
36066
+ title: string;
36067
+ /**
36068
+ * Whether this diff requires evidence for the case. Only required cases can hold a merge.
36069
+ */
36070
+ required: boolean;
36071
+ /**
36072
+ * Why the case is or is not required, chosen by coverage: no-impact when no run has recorded what the case executes and the diff touches its package, deps-changed when the diff meets the files the case depends on, always-affected when a root file, the BDD framework or the package manifest changed, unaffected otherwise.
36073
+ */
36074
+ reason: 'no-impact' | 'deps-changed' | 'always-affected' | 'unaffected';
36075
+ /**
36076
+ * The hash the case is judged at, computed by DevOps from the commit's tree over the case's dependency set (recorded files, its feature file and its package's step and support files). A case with no recorded coverage is judged at pkg: followed by its package's input hash.
36077
+ */
36078
+ depsHash: string;
36079
+ /**
36080
+ * What the newest recorded result says at this deps hash: passed, failed, or missing when no run has recorded the case there.
36081
+ */
36082
+ evidence: 'passed' | 'failed' | 'missing';
36083
+ /**
36084
+ * The run the answering result came from; absent when evidence is missing.
36085
+ */
36086
+ run?: string;
36087
+ };
36088
+ /**
36089
+ * The case counts of one package in the summary view of a test plan.
36090
+ */
36091
+ export type DevopsTestPlanCaseCounts = {
36092
+ /**
36093
+ * The package directory these counts are for.
36094
+ */
36095
+ package: string;
36096
+ /**
36097
+ * Cases this diff requires evidence for; the merge asks for nothing else.
36098
+ */
36099
+ required: number;
36100
+ /**
36101
+ * Cases this diff cannot affect, which need no evidence.
36102
+ */
36103
+ unaffected: number;
36104
+ /**
36105
+ * Required cases that already have a passing row at their deps hash.
36106
+ */
36107
+ evidenced: number;
36108
+ /**
36109
+ * Required cases with no evidence row at their deps hash.
36110
+ */
36111
+ missing: number;
36112
+ /**
36113
+ * Required cases whose newest evidence at their deps hash failed.
36114
+ */
36115
+ failed: number;
36116
+ };
35325
36117
  /**
35326
36118
  * The git repository a project is bound to, and how far the service's mirror of it has been read.
35327
36119
  */
35328
36120
  export type DevopsRepositoryRef = {
35329
36121
  /**
35330
- * The git host serving this repository; only github is bound today, and the value decides how fullName is read.
36122
+ * The git host serving this repository; the value decides how fullName is read.
35331
36123
  */
35332
- provider: 'github';
36124
+ provider: 'github' | 'platform';
35333
36125
  /**
35334
36126
  * Owner and repository name as the git host spells them, which is what a person sees in a clone URL.
35335
36127
  */
@@ -35339,7 +36131,7 @@ export type DevopsRepositoryRef = {
35339
36131
  */
35340
36132
  defaultBranch: string;
35341
36133
  /**
35342
- * The git host connection that authorizes reads of this repository; the connection itself is outside this domain's operations.
36134
+ * The git host connection that authorizes reads of this repository; null for a repository on our own Git, which needs none. The connection itself is outside this domain's operations.
35343
36135
  */
35344
36136
  connection: string;
35345
36137
  /**
@@ -35372,6 +36164,8 @@ export type DevopsProjectSettings = {
35372
36164
  * Whether the merge gate is registered with the git host as a required check; true means the host itself blocks a merge the gate has not passed.
35373
36165
  */
35374
36166
  requireGate: boolean;
36167
+ gate?: DevopsGatePolicy;
36168
+ retention?: DevopsProjectRetention;
35375
36169
  };
35376
36170
  /**
35377
36171
  * When the project cuts releases by itself, in a five-field cron and the zone it is read in.
@@ -35386,6 +36180,42 @@ export type DevopsReleaseSchedule = {
35386
36180
  */
35387
36181
  timeZone: string;
35388
36182
  };
36183
+ /**
36184
+ * The project's merge-gate policy. Writing gate replaces the whole policy, so send every field you want kept; a field left out returns to its default.
36185
+ */
36186
+ export type DevopsGatePolicy = {
36187
+ /**
36188
+ * How the merge gate's tests check reads on this project. evidence requires per-case test evidence: the check fails and names the command the author runs on the pushed head while a required case has no passing evidence. off does not gate tests: the check reports skipped, saying so, and no evidence is read. Absent means off, so a project that never wrote it keeps merging without test evidence until it is set to evidence.
36189
+ */
36190
+ tests?: 'evidence' | 'off';
36191
+ /**
36192
+ * One rule per gate check: its mode (enforce counts it, evaluate shows it without counting, off hides it) and whether an unavailable check blocks.
36193
+ */
36194
+ rules?: Array<{
36195
+ /**
36196
+ * The gate check this rule governs.
36197
+ */
36198
+ check: string;
36199
+ /**
36200
+ * enforce counts the check toward the gate, evaluate records it without counting, off drops it.
36201
+ */
36202
+ mode: 'enforce' | 'evaluate' | 'off';
36203
+ /**
36204
+ * What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
36205
+ */
36206
+ whenUnavailable: 'fail-closed' | 'fail-open';
36207
+ /**
36208
+ * The check's own parameters; passed through unread.
36209
+ */
36210
+ params?: {
36211
+ [key: string]: unknown;
36212
+ };
36213
+ }>;
36214
+ /**
36215
+ * Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
36216
+ */
36217
+ bypass?: Array<string>;
36218
+ };
35389
36219
  /**
35390
36220
  * One commit inside a release, so a reader can see what is about to ship without leaving this answer.
35391
36221
  */
@@ -36125,9 +36955,9 @@ export type DevopsChangePullRequestRef = {
36125
36955
  */
36126
36956
  export type DevopsChangeStageDetail = {
36127
36957
  /**
36128
- * The change's position; with several pull requests it is the slice furthest behind.
36958
+ * The change's position; with several pull requests it is the slice furthest behind. The path is development, integration, release: integrating and integrated are the integration stage.
36129
36959
  */
36130
- stage: 'developing' | 'reviewing' | 'merged' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
36960
+ stage: 'developing' | 'reviewing' | 'integrating' | 'integrated' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
36131
36961
  /**
36132
36962
  * The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one.
36133
36963
  */
@@ -36234,6 +37064,32 @@ export type DevopsMergeGate = {
36234
37064
  */
36235
37065
  decideTime?: string;
36236
37066
  };
37067
+ /**
37068
+ * A reviewer's verdict on a pull request, recorded after the merge gate decided; present once someone recorded one. It is a record, never a gate input: a failed verdict on a merged pull request is a finding for follow-up and the merge stands.
37069
+ */
37070
+ export type DevopsReviewVerdict = {
37071
+ /**
37072
+ * passed when the reviewer found nothing wrong, failed when they found something to fix or roll back.
37073
+ */
37074
+ result: 'passed' | 'failed';
37075
+ /**
37076
+ * What the reviewer found, in a sentence a reader can act on.
37077
+ */
37078
+ reason: string;
37079
+ by: DevopsActor;
37080
+ /**
37081
+ * The commit the review is about.
37082
+ */
37083
+ headSha: string;
37084
+ /**
37085
+ * RFC 3339 UTC time the verdict was recorded.
37086
+ */
37087
+ time: string;
37088
+ /**
37089
+ * True when the pull request had already merged when the verdict was recorded; a failed verdict with merged true is a finding.
37090
+ */
37091
+ merged: boolean;
37092
+ };
36237
37093
  /**
36238
37094
  * The GitHub account an installation belongs to.
36239
37095
  */
@@ -36350,7 +37206,7 @@ export type DevopsWorkspaceUpdateFields = {
36350
37206
  enabled?: boolean;
36351
37207
  };
36352
37208
  /**
36353
- * The vaults (by vault id, at most 10) this stage's units take their runtime environment from. Only the development workspace accepts it: a value here for integration or runtime is refused with INVALID_ARGUMENT. Each id must exist in this organization; the values are never read back through this API.
37209
+ * The vaults (by vault id, at most 10) this stage's units take their runtime environment from. Only the development workspace accepts it: a value here for integration or release is refused with INVALID_ARGUMENT. Each id must exist in this organization; the values are never read back through this API.
36354
37210
  */
36355
37211
  vaults?: Array<string>;
36356
37212
  };
@@ -36502,6 +37358,63 @@ export type DevopsUnitTransition = {
36502
37358
  */
36503
37359
  error: null | DevopsUnitTransitionError;
36504
37360
  };
37361
+ /**
37362
+ * One cleanup action the job decided and carried out (or tried to).
37363
+ */
37364
+ export type DevopsCleanupEntry = {
37365
+ /**
37366
+ * The ledger row's id.
37367
+ */
37368
+ id: string;
37369
+ /**
37370
+ * Always cleanup.
37371
+ */
37372
+ object: string;
37373
+ /**
37374
+ * When the action was decided (RFC 3339).
37375
+ */
37376
+ createTime: string;
37377
+ /**
37378
+ * When the action was last touched: done, or decided when it is not done yet.
37379
+ */
37380
+ updateTime: string;
37381
+ /**
37382
+ * The Console page of the project the action belongs to.
37383
+ */
37384
+ viewerUrl: string;
37385
+ /**
37386
+ * The project the action belongs to.
37387
+ */
37388
+ project: string;
37389
+ /**
37390
+ * What was cleaned.
37391
+ */
37392
+ kind: 'branch' | 'unit' | 'evidence' | 'prebuild';
37393
+ /**
37394
+ * Which one: branch name and pull request number, unit id, evidence table and cutoff day, or prebuild id.
37395
+ */
37396
+ subject: string;
37397
+ /**
37398
+ * archive keeps the record and drops the heavy content; delete removes it.
37399
+ */
37400
+ action: 'archive' | 'delete';
37401
+ /**
37402
+ * Why, as a stable code with its numbers, for example branch-merged, unit-stopped-30d, evidence-older-than-90d (37 rows) or prebuild-beyond-2.
37403
+ */
37404
+ reason: string;
37405
+ /**
37406
+ * When the job decided the action (RFC 3339).
37407
+ */
37408
+ decidedAt: string;
37409
+ /**
37410
+ * When the action was carried out; null while it is not done.
37411
+ */
37412
+ doneAt: string | null;
37413
+ /**
37414
+ * Why the last attempt failed; null once it is done. A failed action stays open and is tried again by the next run.
37415
+ */
37416
+ error: string | null;
37417
+ };
36505
37418
  /**
36506
37419
  * Counts of files still attached to the store or batch, grouped by ingestion status.
36507
37420
  */
@@ -38070,6 +38983,56 @@ export type RegistryRegistryError = {
38070
38983
  };
38071
38984
  };
38072
38985
  };
38986
+ /**
38987
+ * 一个 git 提交。
38988
+ */
38989
+ export type RegistryGitCommit = {
38990
+ /**
38991
+ * 对象类型标记,固定为 registry.git.commit。
38992
+ */
38993
+ object: string;
38994
+ /**
38995
+ * 提交的对象 id。
38996
+ */
38997
+ sha: string;
38998
+ /**
38999
+ * 提交信息原文,含换行。
39000
+ */
39001
+ message: string;
39002
+ /**
39003
+ * 作者名;仓库没有给出名字时是空串。
39004
+ */
39005
+ author: string;
39006
+ /**
39007
+ * 作者邮箱;仓库给了才有。
39008
+ */
39009
+ author_email?: string;
39010
+ /**
39011
+ * 提交时间的 RFC 3339 时间戳;后端没给时是空串。
39012
+ */
39013
+ committed_at: string;
39014
+ /**
39015
+ * 父提交的对象 id,按顺序。
39016
+ */
39017
+ parents: Array<string>;
39018
+ };
39019
+ /**
39020
+ * 一次提交或比较改动的一个文件。
39021
+ */
39022
+ export type RegistryGitChangedFile = {
39023
+ /**
39024
+ * 文件路径,相对仓库根;改名时是新路径。
39025
+ */
39026
+ path: string;
39027
+ /**
39028
+ * 这个文件怎么变的。
39029
+ */
39030
+ status: 'added' | 'modified' | 'removed' | 'renamed';
39031
+ /**
39032
+ * 改名前的路径;只有 status 为 renamed 时才有。
39033
+ */
39034
+ previous_path?: string;
39035
+ };
38073
39036
  /**
38074
39037
  * 树里的一个条目。
38075
39038
  */
@@ -38095,6 +39058,65 @@ export type RegistryGitTreeEntry = {
38095
39058
  */
38096
39059
  size?: number;
38097
39060
  };
39061
+ /**
39062
+ * 一个分支或标签。
39063
+ */
39064
+ export type RegistryGitRefItem = {
39065
+ /**
39066
+ * 引用的全名,分支以 refs/heads/ 开头,标签以 refs/tags/ 开头。
39067
+ */
39068
+ ref: string;
39069
+ /**
39070
+ * 它指向的提交 id;带注解的标签给的是标签下面的提交。
39071
+ */
39072
+ sha: string;
39073
+ /**
39074
+ * 引用的种类,分支或标签,由全名的前缀决定。
39075
+ */
39076
+ type: 'branch' | 'tag';
39077
+ };
39078
+ /**
39079
+ * 比较结果里的一个提交。
39080
+ */
39081
+ export type RegistryGitComparedCommit = {
39082
+ /**
39083
+ * 提交的对象 id。
39084
+ */
39085
+ sha: string;
39086
+ /**
39087
+ * 提交信息的第一行。
39088
+ */
39089
+ subject: string;
39090
+ /**
39091
+ * 这个提交的作者名;仓库没有给出名字时是空串。
39092
+ */
39093
+ author: string;
39094
+ };
39095
+ /**
39096
+ * 递归树里的一个条目。
39097
+ */
39098
+ export type RegistryGitTreeNode = {
39099
+ /**
39100
+ * 相对根的完整路径,用斜杠分隔。
39101
+ */
39102
+ path: string;
39103
+ /**
39104
+ * 条目指向的对象类型;commit 是子模块,不展开。
39105
+ */
39106
+ type: 'blob' | 'tree' | 'commit';
39107
+ /**
39108
+ * git 的模式位,例如 100644、100755、120000 或 040000。
39109
+ */
39110
+ mode: string;
39111
+ /**
39112
+ * 条目指向的对象 id。
39113
+ */
39114
+ sha: string;
39115
+ /**
39116
+ * 对象大小(字节),后端给出时才有。
39117
+ */
39118
+ size?: number;
39119
+ };
38098
39120
  /**
38099
39121
  * 一个版本解压后的一个文件条目。
38100
39122
  */
@@ -44032,6 +45054,27 @@ export type DevopsMirrorState = {
44032
45054
  */
44033
45055
  error?: string;
44034
45056
  };
45057
+ /**
45058
+ * What the project keeps and for how long. Every item has an industry default and may be left out; an update naming one item keeps the others as they were. The daily cleanup job reads these and records what it removed in the cleanup ledger. How long a running machine may sit idle before it pauses (30 minutes by default) is the development workspace's own idleTimeoutMinutes, not an item here.
45059
+ */
45060
+ export type DevopsProjectRetention = {
45061
+ /**
45062
+ * Delete a pull request's branch as soon as it merges, as GitHub's automatic head-branch deletion does. The default branch and any branch another open pull request still uses are never deleted. Default true.
45063
+ */
45064
+ deleteMergedBranch?: boolean;
45065
+ /**
45066
+ * Days a stopped unit whose change is still open is kept before it is deleted (the unit pushes its work to a WIP ref first and is kept when it cannot). A unit whose change has merged or been abandoned follows the workspace's own retentionDays instead. Default 30.
45067
+ */
45068
+ stoppedUnitDays?: number;
45069
+ /**
45070
+ * Days test evidence rows are kept. The evidence for the current deps hash of a package or case on the default branch is kept whatever its age, because test selection reads it. Default 90.
45071
+ */
45072
+ evidenceDays?: number;
45073
+ /**
45074
+ * How many ready prebuilds each workspace keeps, newest first; older ones are archived and their snapshots deleted. Default 2.
45075
+ */
45076
+ prebuildVersions?: number;
45077
+ };
44035
45078
  /**
44036
45079
  * One target's render result inside a release.
44037
45080
  */
@@ -44103,7 +45146,7 @@ export type DevopsPlanRefusal = {
44103
45146
  /**
44104
45147
  * Which rule refused, which is the value a caller branches on; the remaining fields carry that rule's own evidence.
44105
45148
  */
44106
- code: 'PICK_NOT_ON_MAIN' | 'PICK_NOT_ON_DEVELOP' | 'PICK_ALREADY_IN_PRODUCTION' | 'PICK_CONFLICT' | 'PATCH_HAS_MIGRATION' | 'PATCH_CHANGES_BINDING' | 'PATCH_CHANGES_CONTRACT' | 'BASE_NOT_UNIFORM' | 'NOT_VERIFIED_UPSTREAM' | 'CONFIG_MISSING' | 'MISSING_PATCH_PICKS' | 'RELEASE_NOT_READY' | 'RELEASE_ABANDONED' | 'DEADLINE_EXCEEDED' | 'EXECUTOR_UNAVAILABLE' | 'FEATURE_NOT_SUPPORTED';
45149
+ code: 'PICK_NOT_ON_MAIN' | 'PICK_NOT_ON_DEVELOP' | 'PICK_ALREADY_IN_PRODUCTION' | 'PICK_CONFLICT' | 'PATCH_HAS_MIGRATION' | 'PATCH_CHANGES_BINDING' | 'PATCH_CHANGES_CONTRACT' | 'BASE_NOT_UNIFORM' | 'NOT_DEPLOYED_UPSTREAM' | 'CONFIG_MISSING' | 'MISSING_PATCH_PICKS' | 'RELEASE_NOT_READY' | 'RELEASE_ABANDONED' | 'DEADLINE_EXCEEDED' | 'EXECUTOR_UNAVAILABLE' | 'FEATURE_NOT_SUPPORTED';
44107
45150
  /**
44108
45151
  * The commit this refusal is about, present for the pick rules; it is the pick the request carried.
44109
45152
  */
@@ -48055,7 +49098,7 @@ export type DevopsEnvironmentQuery = string;
48055
49098
  */
48056
49099
  export type DevopsSegmentIdPath = string;
48057
49100
  /**
48058
- * 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.
49101
+ * 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.
48059
49102
  */
48060
49103
  export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
48061
49104
  /**
@@ -48126,6 +49169,34 @@ export type RegistryGitLogOffset = number;
48126
49169
  * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
48127
49170
  */
48128
49171
  export type RegistryGitObjectId = string;
49172
+ /**
49173
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
49174
+ */
49175
+ export type RegistryGitChangedFiles = boolean;
49176
+ /**
49177
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
49178
+ */
49179
+ export type RegistryGitRefPrefix = 'refs/heads/' | 'refs/tags/';
49180
+ /**
49181
+ * 页码,从 1 起,默认 1。
49182
+ */
49183
+ export type RegistryGitRefsPage = number;
49184
+ /**
49185
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
49186
+ */
49187
+ export type RegistryGitRefsSize = number;
49188
+ /**
49189
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
49190
+ */
49191
+ export type RegistryGitResolveRef = string;
49192
+ /**
49193
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
49194
+ */
49195
+ export type RegistryGitCompareBase = string;
49196
+ /**
49197
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
49198
+ */
49199
+ export type RegistryGitCompareHead = string;
48129
49200
  /**
48130
49201
  * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
48131
49202
  */
@@ -65658,6 +66729,10 @@ export type FileListFilesData = {
65658
66729
  * 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.
65659
66730
  */
65660
66731
  scope_id?: string;
66732
+ /**
66733
+ * 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.
66734
+ */
66735
+ ids?: Array<string>;
65661
66736
  /**
65662
66737
  * File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.
65663
66738
  */
@@ -71074,9 +72149,9 @@ export type CreateOrganizationFeedbackData = {
71074
72149
  };
71075
72150
  };
71076
72151
  /**
71077
- * Use console for Console reports or api for API callers (default); machine tokens always store codemode regardless of this value.
72152
+ * 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.
71078
72153
  */
71079
- source?: 'console' | 'api';
72154
+ source?: 'console' | 'api' | 'codemode';
71080
72155
  /**
71081
72156
  * Up to five attachments; decoded bytes must not exceed 10 MiB per attachment or 20 MiB in total.
71082
72157
  */
@@ -74036,6 +75111,433 @@ export type ReviseOrganizationKeyResultResponses = {
74036
75111
  200: OrganizationKeyResult;
74037
75112
  };
74038
75113
  export type ReviseOrganizationKeyResultResponse = ReviseOrganizationKeyResultResponses[keyof ReviseOrganizationKeyResultResponses];
75114
+ export type ListOrganizationSpecsData = {
75115
+ body?: never;
75116
+ path?: never;
75117
+ query?: {
75118
+ /**
75119
+ * Maximum items per page, from 1 to 100; defaults to 20.
75120
+ */
75121
+ limit?: number;
75122
+ /**
75123
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
75124
+ */
75125
+ page?: string;
75126
+ /**
75127
+ * Only specs of this subject kind; omit to list every kind together.
75128
+ */
75129
+ kind?: OrganizationSpecKind;
75130
+ };
75131
+ url: '/organization/v1/specs';
75132
+ };
75133
+ export type ListOrganizationSpecsErrors = {
75134
+ /**
75135
+ * INVALID_PARAMS; an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted values.
75136
+ */
75137
+ 400: OrganizationProblem;
75138
+ /**
75139
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75140
+ */
75141
+ 401: unknown;
75142
+ /**
75143
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75144
+ */
75145
+ 403: OrganizationProblem;
75146
+ };
75147
+ export type ListOrganizationSpecsError = ListOrganizationSpecsErrors[keyof ListOrganizationSpecsErrors];
75148
+ export type ListOrganizationSpecsResponses = {
75149
+ /**
75150
+ * One page of specs.
75151
+ */
75152
+ 200: OrganizationSpecList;
75153
+ };
75154
+ export type ListOrganizationSpecsResponse = ListOrganizationSpecsResponses[keyof ListOrganizationSpecsResponses];
75155
+ export type GetOrganizationSpecData = {
75156
+ body?: never;
75157
+ path: {
75158
+ /**
75159
+ * Kind of the subject whose spec to read.
75160
+ */
75161
+ kind: OrganizationSpecKind;
75162
+ /**
75163
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75164
+ */
75165
+ id: string;
75166
+ };
75167
+ query?: {
75168
+ /**
75169
+ * Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written.
75170
+ */
75171
+ revision?: number;
75172
+ };
75173
+ url: '/organization/v1/specs/{kind}/{id}';
75174
+ };
75175
+ export type GetOrganizationSpecErrors = {
75176
+ /**
75177
+ * INVALID_PARAMS; revision is not an integer, or a query parameter is unknown. Send revision as a whole number, or omit it for the live spec.
75178
+ */
75179
+ 400: OrganizationProblem;
75180
+ /**
75181
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75182
+ */
75183
+ 401: unknown;
75184
+ /**
75185
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75186
+ */
75187
+ 403: OrganizationProblem;
75188
+ /**
75189
+ * The subject is not in your organization, or the named revision does not exist: DEPARTMENT_NOT_FOUND, JOB_LEVEL_NOT_FOUND, JOB_NOT_FOUND, POSITION_NOT_FOUND, ASSIGNMENT_NOT_FOUND or SPEC_REVISION_NOT_FOUND. Copy an id from the subject's list, or read a revision the history returns.
75190
+ */
75191
+ 404: OrganizationProblem;
75192
+ };
75193
+ export type GetOrganizationSpecError = GetOrganizationSpecErrors[keyof GetOrganizationSpecErrors];
75194
+ export type GetOrganizationSpecResponses = {
75195
+ /**
75196
+ * The spec of the subject at the live or named revision.
75197
+ */
75198
+ 200: OrganizationSpec;
75199
+ };
75200
+ export type GetOrganizationSpecResponse = GetOrganizationSpecResponses[keyof GetOrganizationSpecResponses];
75201
+ export type ReviseOrganizationSpecData = {
75202
+ body: OrganizationReviseSpecRequest;
75203
+ path: {
75204
+ /**
75205
+ * Kind of the subject whose spec to revise.
75206
+ */
75207
+ kind: OrganizationSpecKind;
75208
+ /**
75209
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75210
+ */
75211
+ id: string;
75212
+ };
75213
+ query?: never;
75214
+ url: '/organization/v1/specs/{kind}/{id}';
75215
+ };
75216
+ export type ReviseOrganizationSpecErrors = {
75217
+ /**
75218
+ * INVALID_PARAMS; the spec is missing, expected_revision is not an integer, a block is outside the registry or a body field is unknown. The message names the field or block to fix.
75219
+ */
75220
+ 400: OrganizationProblem;
75221
+ /**
75222
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75223
+ */
75224
+ 401: unknown;
75225
+ /**
75226
+ * PERMISSION_DENIED; only an organization owner or admin, or the head of the subject's department or of a department above it, may revise a spec, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75227
+ */
75228
+ 403: OrganizationProblem;
75229
+ /**
75230
+ * The subject is not in your organization: DEPARTMENT_NOT_FOUND, JOB_LEVEL_NOT_FOUND, JOB_NOT_FOUND, POSITION_NOT_FOUND or ASSIGNMENT_NOT_FOUND. Copy an id from the subject's list.
75231
+ */
75232
+ 404: OrganizationProblem;
75233
+ /**
75234
+ * REVISION_CONFLICT; the spec moved on since you read it. Read it again, merge your change and retry with its current revision.
75235
+ */
75236
+ 409: OrganizationProblem;
75237
+ };
75238
+ export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
75239
+ export type ReviseOrganizationSpecResponses = {
75240
+ /**
75241
+ * The spec after the revision, at the new revision number.
75242
+ */
75243
+ 200: OrganizationSpec;
75244
+ };
75245
+ export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
75246
+ export type ListOrganizationSpecRevisionsData = {
75247
+ body?: never;
75248
+ path: {
75249
+ /**
75250
+ * Kind of the subject whose revision history to list.
75251
+ */
75252
+ kind: OrganizationSpecKind;
75253
+ /**
75254
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75255
+ */
75256
+ id: string;
75257
+ };
75258
+ query?: {
75259
+ /**
75260
+ * Maximum revisions per page, from 1 to 100; defaults to 20.
75261
+ */
75262
+ limit?: number;
75263
+ /**
75264
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
75265
+ */
75266
+ page?: string;
75267
+ };
75268
+ url: '/organization/v1/specs/{kind}/{id}/revisions';
75269
+ };
75270
+ export type ListOrganizationSpecRevisionsErrors = {
75271
+ /**
75272
+ * INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters.
75273
+ */
75274
+ 400: OrganizationProblem;
75275
+ /**
75276
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75277
+ */
75278
+ 401: unknown;
75279
+ /**
75280
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75281
+ */
75282
+ 403: OrganizationProblem;
75283
+ /**
75284
+ * The subject is not in your organization: DEPARTMENT_NOT_FOUND, JOB_LEVEL_NOT_FOUND, JOB_NOT_FOUND, POSITION_NOT_FOUND or ASSIGNMENT_NOT_FOUND. Copy an id from the subject's list.
75285
+ */
75286
+ 404: OrganizationProblem;
75287
+ };
75288
+ export type ListOrganizationSpecRevisionsError = ListOrganizationSpecRevisionsErrors[keyof ListOrganizationSpecRevisionsErrors];
75289
+ export type ListOrganizationSpecRevisionsResponses = {
75290
+ /**
75291
+ * One page of revisions, newest first.
75292
+ */
75293
+ 200: OrganizationSpecRevisionList;
75294
+ };
75295
+ export type ListOrganizationSpecRevisionsResponse = ListOrganizationSpecRevisionsResponses[keyof ListOrganizationSpecRevisionsResponses];
75296
+ export type DiffOrganizationSpecData = {
75297
+ body?: never;
75298
+ path: {
75299
+ /**
75300
+ * Kind of the subject whose revisions to compare.
75301
+ */
75302
+ kind: OrganizationSpecKind;
75303
+ /**
75304
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75305
+ */
75306
+ id: string;
75307
+ };
75308
+ query: {
75309
+ /**
75310
+ * The earlier revision to compare from; 0 is the empty spec before the first write.
75311
+ */
75312
+ from: number;
75313
+ /**
75314
+ * The later revision to compare to.
75315
+ */
75316
+ to: number;
75317
+ };
75318
+ url: '/organization/v1/specs/{kind}/{id}/diff';
75319
+ };
75320
+ export type DiffOrganizationSpecErrors = {
75321
+ /**
75322
+ * INVALID_PARAMS; from or to is missing or not an integer. Send both as whole numbers.
75323
+ */
75324
+ 400: OrganizationProblem;
75325
+ /**
75326
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75327
+ */
75328
+ 401: unknown;
75329
+ /**
75330
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75331
+ */
75332
+ 403: OrganizationProblem;
75333
+ /**
75334
+ * The subject is not in your organization, or from or to has no stored revision (SPEC_REVISION_NOT_FOUND). List the revision history and copy a revision it returns.
75335
+ */
75336
+ 404: OrganizationProblem;
75337
+ };
75338
+ export type DiffOrganizationSpecError = DiffOrganizationSpecErrors[keyof DiffOrganizationSpecErrors];
75339
+ export type DiffOrganizationSpecResponses = {
75340
+ /**
75341
+ * The changes between the two revisions, in path order.
75342
+ */
75343
+ 200: OrganizationSpecDiff;
75344
+ };
75345
+ export type DiffOrganizationSpecResponse = DiffOrganizationSpecResponses[keyof DiffOrganizationSpecResponses];
75346
+ export type GetOrganizationEffectiveSpecData = {
75347
+ body?: never;
75348
+ path?: never;
75349
+ query?: {
75350
+ /**
75351
+ * Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both.
75352
+ */
75353
+ actor?: string;
75354
+ /**
75355
+ * One seat to merge, held or vacant (pos_...); give this or actor, not both.
75356
+ */
75357
+ position_id?: string;
75358
+ /**
75359
+ * Which holder kind to merge for; omit to derive it from the seat's holder.
75360
+ */
75361
+ holder_kind?: 'agent' | 'human';
75362
+ };
75363
+ url: '/organization/v1/effective_spec';
75364
+ };
75365
+ export type GetOrganizationEffectiveSpecErrors = {
75366
+ /**
75367
+ * INVALID_PARAMS; neither or both of actor and position_id were given, the actor address is malformed, holder_kind is neither agent nor human, or a query parameter is unknown. Give exactly one of actor or position_id.
75368
+ */
75369
+ 400: OrganizationProblem;
75370
+ /**
75371
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75372
+ */
75373
+ 401: unknown;
75374
+ /**
75375
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75376
+ */
75377
+ 403: OrganizationProblem;
75378
+ /**
75379
+ * POSITION_NOT_FOUND; position_id is not a position of your organization. List positions and copy an id.
75380
+ */
75381
+ 404: OrganizationProblem;
75382
+ };
75383
+ export type GetOrganizationEffectiveSpecError = GetOrganizationEffectiveSpecErrors[keyof GetOrganizationEffectiveSpecErrors];
75384
+ export type GetOrganizationEffectiveSpecResponses = {
75385
+ /**
75386
+ * The merged effective spec of the seat or actor.
75387
+ */
75388
+ 200: OrganizationEffectiveSpec;
75389
+ };
75390
+ export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
75391
+ export type PlanOrganizationReconcileData = {
75392
+ body?: never;
75393
+ path?: never;
75394
+ query: {
75395
+ /**
75396
+ * The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged.
75397
+ */
75398
+ actor: string;
75399
+ };
75400
+ url: '/organization/v1/reconcile/plan';
75401
+ };
75402
+ export type PlanOrganizationReconcileErrors = {
75403
+ /**
75404
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
75405
+ */
75406
+ 400: OrganizationProblem;
75407
+ /**
75408
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75409
+ */
75410
+ 401: unknown;
75411
+ /**
75412
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75413
+ */
75414
+ 403: OrganizationProblem;
75415
+ };
75416
+ export type PlanOrganizationReconcileError = PlanOrganizationReconcileErrors[keyof PlanOrganizationReconcileErrors];
75417
+ export type PlanOrganizationReconcileResponses = {
75418
+ /**
75419
+ * The actions the reconciler would take for this holder, and the merged-result violations.
75420
+ */
75421
+ 200: OrganizationReconcilePlan;
75422
+ };
75423
+ export type PlanOrganizationReconcileResponse = PlanOrganizationReconcileResponses[keyof PlanOrganizationReconcileResponses];
75424
+ export type GetOrganizationReconcileStatusData = {
75425
+ body?: never;
75426
+ path?: never;
75427
+ query: {
75428
+ /**
75429
+ * The holder whose reconcile status to read (agent:agent_... or human:usr_...).
75430
+ */
75431
+ actor: string;
75432
+ };
75433
+ url: '/organization/v1/reconcile/status';
75434
+ };
75435
+ export type GetOrganizationReconcileStatusErrors = {
75436
+ /**
75437
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
75438
+ */
75439
+ 400: OrganizationProblem;
75440
+ /**
75441
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75442
+ */
75443
+ 401: unknown;
75444
+ /**
75445
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75446
+ */
75447
+ 403: OrganizationProblem;
75448
+ };
75449
+ export type GetOrganizationReconcileStatusError = GetOrganizationReconcileStatusErrors[keyof GetOrganizationReconcileStatusErrors];
75450
+ export type GetOrganizationReconcileStatusResponses = {
75451
+ /**
75452
+ * The last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
75453
+ */
75454
+ 200: OrganizationReconcileStatus;
75455
+ };
75456
+ export type GetOrganizationReconcileStatusResponse = GetOrganizationReconcileStatusResponses[keyof GetOrganizationReconcileStatusResponses];
75457
+ export type RunOrganizationReconcileData = {
75458
+ body: OrganizationReconcileActorRequest;
75459
+ path?: never;
75460
+ query?: never;
75461
+ url: '/organization/v1/reconcile/run';
75462
+ };
75463
+ export type RunOrganizationReconcileErrors = {
75464
+ /**
75465
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75466
+ */
75467
+ 400: OrganizationProblem;
75468
+ /**
75469
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75470
+ */
75471
+ 401: unknown;
75472
+ /**
75473
+ * PERMISSION_DENIED; only an organization owner or admin may run the reconciler, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75474
+ */
75475
+ 403: OrganizationProblem;
75476
+ };
75477
+ export type RunOrganizationReconcileError = RunOrganizationReconcileErrors[keyof RunOrganizationReconcileErrors];
75478
+ export type RunOrganizationReconcileResponses = {
75479
+ /**
75480
+ * The status after this run.
75481
+ */
75482
+ 200: OrganizationReconcileStatus;
75483
+ };
75484
+ export type RunOrganizationReconcileResponse = RunOrganizationReconcileResponses[keyof RunOrganizationReconcileResponses];
75485
+ export type PauseOrganizationReconcileData = {
75486
+ body: OrganizationReconcileActorRequest;
75487
+ path?: never;
75488
+ query?: never;
75489
+ url: '/organization/v1/reconcile/pause';
75490
+ };
75491
+ export type PauseOrganizationReconcileErrors = {
75492
+ /**
75493
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75494
+ */
75495
+ 400: OrganizationProblem;
75496
+ /**
75497
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75498
+ */
75499
+ 401: unknown;
75500
+ /**
75501
+ * PERMISSION_DENIED; only an organization owner or admin may pause the reconciler, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75502
+ */
75503
+ 403: OrganizationProblem;
75504
+ };
75505
+ export type PauseOrganizationReconcileError = PauseOrganizationReconcileErrors[keyof PauseOrganizationReconcileErrors];
75506
+ export type PauseOrganizationReconcileResponses = {
75507
+ /**
75508
+ * The status after pausing; paused is true.
75509
+ */
75510
+ 200: OrganizationReconcileStatus;
75511
+ };
75512
+ export type PauseOrganizationReconcileResponse = PauseOrganizationReconcileResponses[keyof PauseOrganizationReconcileResponses];
75513
+ export type ResumeOrganizationReconcileData = {
75514
+ body: OrganizationReconcileActorRequest;
75515
+ path?: never;
75516
+ query?: never;
75517
+ url: '/organization/v1/reconcile/resume';
75518
+ };
75519
+ export type ResumeOrganizationReconcileErrors = {
75520
+ /**
75521
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75522
+ */
75523
+ 400: OrganizationProblem;
75524
+ /**
75525
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75526
+ */
75527
+ 401: unknown;
75528
+ /**
75529
+ * PERMISSION_DENIED; only an organization owner or admin may resume the reconciler, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75530
+ */
75531
+ 403: OrganizationProblem;
75532
+ };
75533
+ export type ResumeOrganizationReconcileError = ResumeOrganizationReconcileErrors[keyof ResumeOrganizationReconcileErrors];
75534
+ export type ResumeOrganizationReconcileResponses = {
75535
+ /**
75536
+ * The status after resuming; paused is false.
75537
+ */
75538
+ 200: OrganizationReconcileStatus;
75539
+ };
75540
+ export type ResumeOrganizationReconcileResponse = ResumeOrganizationReconcileResponses[keyof ResumeOrganizationReconcileResponses];
74039
75541
  export type UpgradeSandboxData = {
74040
75542
  body: {
74041
75543
  /**
@@ -75257,9 +76759,9 @@ export type ListByodDevicesResponses = {
75257
76759
  */
75258
76760
  id: string;
75259
76761
  /**
75260
- * The device's platform, which decides the use faces it answers. Android today; linux, macos and windows arrive with the desktop module.
76762
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
75261
76763
  */
75262
- platform: 'android';
76764
+ platform: 'android' | 'macos' | 'linux';
75263
76765
  /**
75264
76766
  * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
75265
76767
  */
@@ -75284,6 +76786,18 @@ export type ListByodDevicesResponses = {
75284
76786
  * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
75285
76787
  */
75286
76788
  created_at: string;
76789
+ /**
76790
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
76791
+ */
76792
+ capabilities: Array<'display' | 'agent'>;
76793
+ /**
76794
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
76795
+ */
76796
+ agent_dirs: Array<string>;
76797
+ /**
76798
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
76799
+ */
76800
+ allow_bypass: boolean;
75287
76801
  }>;
75288
76802
  };
75289
76803
  };
@@ -75315,7 +76829,7 @@ export type GetByodDeviceErrors = {
75315
76829
  };
75316
76830
  export type GetByodDeviceResponses = {
75317
76831
  /**
75318
- * One BYOD device: a phone the organization paired and the platform did not build.
76832
+ * One BYOD device: a phone or a desktop the organization paired and the platform did not build.
75319
76833
  */
75320
76834
  200: {
75321
76835
  /**
@@ -75327,9 +76841,9 @@ export type GetByodDeviceResponses = {
75327
76841
  */
75328
76842
  id: string;
75329
76843
  /**
75330
- * The device's platform, which decides the use faces it answers. Android today; linux, macos and windows arrive with the desktop module.
76844
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
75331
76845
  */
75332
- platform: 'android';
76846
+ platform: 'android' | 'macos' | 'linux';
75333
76847
  /**
75334
76848
  * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
75335
76849
  */
@@ -75354,6 +76868,18 @@ export type GetByodDeviceResponses = {
75354
76868
  * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
75355
76869
  */
75356
76870
  created_at: string;
76871
+ /**
76872
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
76873
+ */
76874
+ capabilities: Array<'display' | 'agent'>;
76875
+ /**
76876
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
76877
+ */
76878
+ agent_dirs: Array<string>;
76879
+ /**
76880
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
76881
+ */
76882
+ allow_bypass: boolean;
75357
76883
  };
75358
76884
  };
75359
76885
  export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
@@ -75396,7 +76922,7 @@ export type UpdateByodDeviceErrors = {
75396
76922
  };
75397
76923
  export type UpdateByodDeviceResponses = {
75398
76924
  /**
75399
- * One BYOD device: a phone the organization paired and the platform did not build.
76925
+ * One BYOD device: a phone or a desktop the organization paired and the platform did not build.
75400
76926
  */
75401
76927
  200: {
75402
76928
  /**
@@ -75408,9 +76934,9 @@ export type UpdateByodDeviceResponses = {
75408
76934
  */
75409
76935
  id: string;
75410
76936
  /**
75411
- * The device's platform, which decides the use faces it answers. Android today; linux, macos and windows arrive with the desktop module.
76937
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
75412
76938
  */
75413
- platform: 'android';
76939
+ platform: 'android' | 'macos' | 'linux';
75414
76940
  /**
75415
76941
  * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
75416
76942
  */
@@ -75435,6 +76961,18 @@ export type UpdateByodDeviceResponses = {
75435
76961
  * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
75436
76962
  */
75437
76963
  created_at: string;
76964
+ /**
76965
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
76966
+ */
76967
+ capabilities: Array<'display' | 'agent'>;
76968
+ /**
76969
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
76970
+ */
76971
+ agent_dirs: Array<string>;
76972
+ /**
76973
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
76974
+ */
76975
+ allow_bypass: boolean;
75438
76976
  };
75439
76977
  };
75440
76978
  export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
@@ -75522,9 +77060,9 @@ export type ClaimByodPairingData = {
75522
77060
  */
75523
77061
  body: {
75524
77062
  /**
75525
- * The device's platform. Android is the only accepted value; anything else answers INVALID_PARAMS.
77063
+ * 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.
75526
77064
  */
75527
- platform: 'android';
77065
+ platform: 'android' | 'macos' | 'linux';
75528
77066
  /**
75529
77067
  * Display name to register the device with, 1 to 64 characters; omitted or empty becomes the placeholder My device, which the caller can change later.
75530
77068
  */
@@ -75549,7 +77087,7 @@ export type ClaimByodPairingData = {
75549
77087
  };
75550
77088
  export type ClaimByodPairingErrors = {
75551
77089
  /**
75552
- * INVALID_PARAMS: the body is missing or platform is not android. Fix the body and resend; the code is not spent by a refused claim.
77090
+ * INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
75553
77091
  */
75554
77092
  400: unknown;
75555
77093
  /**
@@ -75571,7 +77109,7 @@ export type ClaimByodPairingResponses = {
75571
77109
  */
75572
77110
  credential: string;
75573
77111
  /**
75574
- * The control socket to dial, wss://49982-byd<hex>--sbx[-<env>].praxisusercontent.com/; connect with the credential in an Authorization: Bearer header. The connection carries the phone channel's frames.
77112
+ * The control socket to dial, wss://49982-byd<hex>.sandbox[-<env>].praxisusercontent.com/; connect with the credential in an Authorization: Bearer header. The connection carries the phone channel's frames.
75575
77113
  */
75576
77114
  socket_url: string;
75577
77115
  };
@@ -98464,6 +100002,10 @@ export type DevopsTestPlanGetData = {
98464
100002
  * 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.
98465
100003
  */
98466
100004
  base?: string;
100005
+ /**
100006
+ * 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.
100007
+ */
100008
+ view?: 'full' | 'summary';
98467
100009
  };
98468
100010
  url: '/devops/v1/projects/{project}/test-plan';
98469
100011
  };
@@ -98538,6 +100080,97 @@ export type DevopsProjectsListResponses = {
98538
100080
  200: DevopsProjectPage;
98539
100081
  };
98540
100082
  export type DevopsProjectsListResponse = DevopsProjectsListResponses[keyof DevopsProjectsListResponses];
100083
+ export type DevopsProjectsCreateData = {
100084
+ /**
100085
+ * The project's name and where its code lives: a git package of our own Git, or a GitHub repository.
100086
+ */
100087
+ body: DevopsProjectCreate;
100088
+ path?: never;
100089
+ query?: never;
100090
+ url: '/devops/v1/projects';
100091
+ };
100092
+ export type DevopsProjectsCreateErrors = {
100093
+ /**
100094
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
100095
+ */
100096
+ 400: DevopsDevOpsError;
100097
+ /**
100098
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100099
+ */
100100
+ 401: DevopsDevOpsError;
100101
+ /**
100102
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
100103
+ */
100104
+ 403: DevopsDevOpsError;
100105
+ /**
100106
+ * CONNECTION_NOT_FOUND means no connection with that id exists in this organization, or it belongs to another organization; list the connections and use an id from that answer. A deleted connection is still readable until it is removed, so this answer means the id itself is unknown.
100107
+ */
100108
+ 404: DevopsDevOpsError;
100109
+ /**
100110
+ * PROJECT_NAME_TAKEN means the name is used in this organization; REPOSITORY_ALREADY_BOUND means the package or repository already backs a project; DEFAULT_BRANCH_EXISTS means initialRef was given but the default branch already exists. Nothing was created.
100111
+ */
100112
+ 409: DevopsDevOpsError;
100113
+ /**
100114
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
100115
+ */
100116
+ 500: DevopsDevOpsError;
100117
+ };
100118
+ export type DevopsProjectsCreateError = DevopsProjectsCreateErrors[keyof DevopsProjectsCreateErrors];
100119
+ export type DevopsProjectsCreateResponses = {
100120
+ /**
100121
+ * The created project with its repository binding, settings and labels.
100122
+ */
100123
+ 200: DevopsProject;
100124
+ };
100125
+ export type DevopsProjectsCreateResponse = DevopsProjectsCreateResponses[keyof DevopsProjectsCreateResponses];
100126
+ export type DevopsProjectsInitializeDefaultBranchData = {
100127
+ /**
100128
+ * The existing branch to start the default branch from.
100129
+ */
100130
+ body: DevopsDefaultBranchInitialize;
100131
+ path: {
100132
+ /**
100133
+ * The project identifier returned by the project list, not the project's display name or its repository name.
100134
+ */
100135
+ id: string;
100136
+ };
100137
+ query?: never;
100138
+ url: '/devops/v1/projects/{id}/default-branch:initialize';
100139
+ };
100140
+ export type DevopsProjectsInitializeDefaultBranchErrors = {
100141
+ /**
100142
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
100143
+ */
100144
+ 400: DevopsDevOpsError;
100145
+ /**
100146
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100147
+ */
100148
+ 401: DevopsDevOpsError;
100149
+ /**
100150
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
100151
+ */
100152
+ 403: DevopsDevOpsError;
100153
+ /**
100154
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
100155
+ */
100156
+ 404: DevopsDevOpsError;
100157
+ /**
100158
+ * DEFAULT_BRANCH_EXISTS means the default branch is already there; it is never moved by this call.
100159
+ */
100160
+ 409: DevopsDevOpsError;
100161
+ /**
100162
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
100163
+ */
100164
+ 500: DevopsDevOpsError;
100165
+ };
100166
+ export type DevopsProjectsInitializeDefaultBranchError = DevopsProjectsInitializeDefaultBranchErrors[keyof DevopsProjectsInitializeDefaultBranchErrors];
100167
+ export type DevopsProjectsInitializeDefaultBranchResponses = {
100168
+ /**
100169
+ * The default branch now exists: its name, the branch it was started from and the commit it points at.
100170
+ */
100171
+ 200: DevopsDefaultBranchInitialized;
100172
+ };
100173
+ export type DevopsProjectsInitializeDefaultBranchResponse = DevopsProjectsInitializeDefaultBranchResponses[keyof DevopsProjectsInitializeDefaultBranchResponses];
98541
100174
  export type DevopsProjectsGetData = {
98542
100175
  body?: never;
98543
100176
  path: {
@@ -99108,6 +100741,55 @@ export type DevopsPromotionsConcludeResponses = {
99108
100741
  200: DevopsPromotion;
99109
100742
  };
99110
100743
  export type DevopsPromotionsConcludeResponse = DevopsPromotionsConcludeResponses[keyof DevopsPromotionsConcludeResponses];
100744
+ export type DevopsPromotionsCheckoutCredentialData = {
100745
+ body?: never;
100746
+ path: {
100747
+ /**
100748
+ * The promotion identifier returned by a promotion list or create answer.
100749
+ */
100750
+ id: string;
100751
+ };
100752
+ query?: never;
100753
+ url: '/devops/v1/promotions/{id}:checkoutCredential';
100754
+ };
100755
+ export type DevopsPromotionsCheckoutCredentialErrors = {
100756
+ /**
100757
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
100758
+ */
100759
+ 400: DevopsDevOpsError;
100760
+ /**
100761
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100762
+ */
100763
+ 401: DevopsDevOpsError;
100764
+ /**
100765
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
100766
+ */
100767
+ 403: DevopsDevOpsError;
100768
+ /**
100769
+ * PROMOTION_NOT_FOUND means no promotion with that id exists in this organization; list the project's promotions and use an id from that answer.
100770
+ */
100771
+ 404: DevopsDevOpsError;
100772
+ /**
100773
+ * PROMOTION_NOT_RUNNING means the promotion is not in a state where a deploy machine runs, so there is nothing to fetch for; read the promotion to see its state. SOURCE_NOT_PLATFORM means the project's code is on GitHub, which has no checkout credential from this call.
100774
+ */
100775
+ 409: DevopsDevOpsError;
100776
+ /**
100777
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
100778
+ */
100779
+ 500: DevopsDevOpsError;
100780
+ /**
100781
+ * REGISTRY_UNAVAILABLE means the platform's Git registry would not issue a credential just now; the machine retries the request shortly.
100782
+ */
100783
+ 502: DevopsDevOpsError;
100784
+ };
100785
+ export type DevopsPromotionsCheckoutCredentialError = DevopsPromotionsCheckoutCredentialErrors[keyof DevopsPromotionsCheckoutCredentialErrors];
100786
+ export type DevopsPromotionsCheckoutCredentialResponses = {
100787
+ /**
100788
+ * The clone URL and a pull-only credential for that repository, valid until expireTime. Treat password as a secret: hand it to git through a credential helper and never print or store it.
100789
+ */
100790
+ 200: DevopsCheckoutCredential;
100791
+ };
100792
+ export type DevopsPromotionsCheckoutCredentialResponse = DevopsPromotionsCheckoutCredentialResponses[keyof DevopsPromotionsCheckoutCredentialResponses];
99111
100793
  export type DevopsRolloutsListData = {
99112
100794
  body?: never;
99113
100795
  path: {
@@ -100526,7 +102208,7 @@ export type DevopsChangesOpenPullRequestErrors = {
100526
102208
  export type DevopsChangesOpenPullRequestError = DevopsChangesOpenPullRequestErrors[keyof DevopsChangesOpenPullRequestErrors];
100527
102209
  export type DevopsChangesOpenPullRequestResponses = {
100528
102210
  /**
100529
- * The pull request for the change's branch: its number, its link, whether this call opened it, and whether it rewrote an already open one.
102211
+ * The pull request for the change's branch: its id, number, link, whether this call opened it, and whether it rewrote an already open one.
100530
102212
  */
100531
102213
  200: DevopsChangePullRequestOpened;
100532
102214
  };
@@ -100601,6 +102283,10 @@ export type DevopsPullRequestsListData = {
100601
102283
  * 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.
100602
102284
  */
100603
102285
  reviewer?: string;
102286
+ /**
102287
+ * 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.
102288
+ */
102289
+ reviewed?: boolean;
100604
102290
  };
100605
102291
  url: '/devops/v1/projects/{project}/pull-requests';
100606
102292
  };
@@ -100750,7 +102436,7 @@ export type DevopsPullRequestsMergeErrors = {
100750
102436
  */
100751
102437
  404: DevopsDevOpsError;
100752
102438
  /**
100753
- * GATE_NOT_PASSED when the gate has not passed at the current head, PULL_REQUEST_NOT_OPEN when the pull request is not open, HEAD_MOVED when its head moved past the commit the gate decided on, or MERGE_REFUSED when GitHub refuses the merge for its own reason (a conflict, or a check of GitHub's that is not green) — the message carries its words.
102439
+ * GATE_NOT_PASSED when the gate has not passed at the current head, PULL_REQUEST_NOT_OPEN when the pull request is not open, HEAD_MOVED when its head moved past the commit the gate decided on, or MERGE_REFUSED when GitHub refuses the merge for its own reason (a conflict, or a check of GitHub's that is not green) — the message carries its words. On our own Git the failures of the write itself are named too: GIT_AUTH_FAILED (the repository refused the credential DevOps wrote with), GIT_NOT_FAST_FORWARD (the base kept moving), GIT_CONFLICT, GIT_WRITE_FAILED for any other git failure — each carries git's words with credentials masked — and PLATFORM_UNSUPPORTED for something our own Git cannot do yet.
100754
102440
  */
100755
102441
  409: DevopsDevOpsError;
100756
102442
  /**
@@ -100802,7 +102488,7 @@ export type DevopsPullRequestsRecordVerdictErrors = {
100802
102488
  export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
100803
102489
  export type DevopsPullRequestsRecordVerdictResponses = {
100804
102490
  /**
100805
- * The pull request with the gate it now reaches, the exposure-judged check showing the verdict and its reason.
102491
+ * The pull request with the review recorded on it; its gate is unchanged.
100806
102492
  */
100807
102493
  200: DevopsPullRequest;
100808
102494
  };
@@ -100852,6 +102538,51 @@ export type DevopsPullRequestsCloseResponses = {
100852
102538
  200: DevopsPullRequest;
100853
102539
  };
100854
102540
  export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
102541
+ export type DevopsPullRequestsReviewsCreateData = {
102542
+ body: DevopsPullRequestReviewRequest;
102543
+ path: {
102544
+ /**
102545
+ * 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.
102546
+ */
102547
+ id: string;
102548
+ };
102549
+ query?: never;
102550
+ url: '/devops/v1/pull-requests/{id}/reviews';
102551
+ };
102552
+ export type DevopsPullRequestsReviewsCreateErrors = {
102553
+ /**
102554
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
102555
+ */
102556
+ 400: DevopsDevOpsError;
102557
+ /**
102558
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
102559
+ */
102560
+ 401: DevopsDevOpsError;
102561
+ /**
102562
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
102563
+ */
102564
+ 403: DevopsDevOpsError;
102565
+ /**
102566
+ * PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
102567
+ */
102568
+ 404: DevopsDevOpsError;
102569
+ /**
102570
+ * PULL_REQUEST_NOT_OPEN when the pull request is merged or closed: nothing was recorded.
102571
+ */
102572
+ 409: DevopsDevOpsError;
102573
+ /**
102574
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
102575
+ */
102576
+ 500: DevopsDevOpsError;
102577
+ };
102578
+ export type DevopsPullRequestsReviewsCreateError = DevopsPullRequestsReviewsCreateErrors[keyof DevopsPullRequestsReviewsCreateErrors];
102579
+ export type DevopsPullRequestsReviewsCreateResponses = {
102580
+ /**
102581
+ * The pull request as it now stands: your entry in reviewers carries the state you gave, and the gate is the one decided after it.
102582
+ */
102583
+ 200: DevopsPullRequest;
102584
+ };
102585
+ export type DevopsPullRequestsReviewsCreateResponse = DevopsPullRequestsReviewsCreateResponses[keyof DevopsPullRequestsReviewsCreateResponses];
100855
102586
  export type DevopsConnectionsListData = {
100856
102587
  body?: never;
100857
102588
  path?: never;
@@ -101310,7 +103041,7 @@ export type DevopsWorkspacesGetData = {
101310
103041
  */
101311
103042
  project: string;
101312
103043
  /**
101313
- * 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.
103044
+ * 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.
101314
103045
  */
101315
103046
  stage: DevopsWorkspaceStage;
101316
103047
  };
@@ -101355,7 +103086,7 @@ export type DevopsWorkspacesUpdateData = {
101355
103086
  */
101356
103087
  project: string;
101357
103088
  /**
101358
- * 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.
103089
+ * 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.
101359
103090
  */
101360
103091
  stage: DevopsWorkspaceStage;
101361
103092
  };
@@ -101499,6 +103230,56 @@ export type DevopsUnitsCreateResponses = {
101499
103230
  200: DevopsUnit;
101500
103231
  };
101501
103232
  export type DevopsUnitsCreateResponse = DevopsUnitsCreateResponses[keyof DevopsUnitsCreateResponses];
103233
+ export type DevopsCleanupsListData = {
103234
+ body?: never;
103235
+ path: {
103236
+ /**
103237
+ * Identifies the project whose data you are reading, from the project list or create answer.
103238
+ */
103239
+ project: string;
103240
+ };
103241
+ query?: {
103242
+ /**
103243
+ * 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.
103244
+ */
103245
+ pageSize?: number;
103246
+ /**
103247
+ * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
103248
+ */
103249
+ pageToken?: string;
103250
+ };
103251
+ url: '/devops/v1/projects/{project}/cleanups';
103252
+ };
103253
+ export type DevopsCleanupsListErrors = {
103254
+ /**
103255
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
103256
+ */
103257
+ 400: DevopsDevOpsError;
103258
+ /**
103259
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
103260
+ */
103261
+ 401: DevopsDevOpsError;
103262
+ /**
103263
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
103264
+ */
103265
+ 403: DevopsDevOpsError;
103266
+ /**
103267
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
103268
+ */
103269
+ 404: DevopsDevOpsError;
103270
+ /**
103271
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
103272
+ */
103273
+ 500: DevopsDevOpsError;
103274
+ };
103275
+ export type DevopsCleanupsListError = DevopsCleanupsListErrors[keyof DevopsCleanupsListErrors];
103276
+ export type DevopsCleanupsListResponses = {
103277
+ /**
103278
+ * One page of the project's cleanup ledger, newest decision first.
103279
+ */
103280
+ 200: DevopsCleanupPage;
103281
+ };
103282
+ export type DevopsCleanupsListResponse = DevopsCleanupsListResponses[keyof DevopsCleanupsListResponses];
101502
103283
  export type DevopsUnitsDeleteData = {
101503
103284
  body?: never;
101504
103285
  path: {
@@ -108439,9 +110220,9 @@ export type RegistryRepositoriesPackagesListResponses = {
108439
110220
  export type RegistryRepositoriesPackagesListResponse = RegistryRepositoriesPackagesListResponses[keyof RegistryRepositoriesPackagesListResponses];
108440
110221
  export type RegistryRepositoriesPackagesCreateData = {
108441
110222
  /**
108442
- * 要发布的包和它的第一个版本;archive 与 files 二选一。
110223
+ * oci 库发布技能或插件用 multipart(archive 与 files 二选一);git 库建 git 仓库用 JSON。
108443
110224
  */
108444
- body: RegistryPublishInput;
110225
+ body: RegistryCreateGitPackageInput;
108445
110226
  path: {
108446
110227
  /**
108447
110228
  * 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
@@ -108484,7 +110265,7 @@ export type RegistryRepositoriesPackagesCreateErrors = {
108484
110265
  export type RegistryRepositoriesPackagesCreateError = RegistryRepositoriesPackagesCreateErrors[keyof RegistryRepositoriesPackagesCreateErrors];
108485
110266
  export type RegistryRepositoriesPackagesCreateResponses = {
108486
110267
  /**
108487
- * 建好的包,latest_version 是刚发布的版本号。
110268
+ * 建好的包。技能和插件的 latest_version 是刚发布的版本号;git 包带 clone_url、default_branch 和 protected_refs。
108488
110269
  */
108489
110270
  201: RegistryPackage;
108490
110271
  };
@@ -108624,6 +110405,50 @@ export type RegistryPackagesVersionsCreateResponses = {
108624
110405
  201: RegistryVersion;
108625
110406
  };
108626
110407
  export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
110408
+ export type RegistryPackagesGitCredentialCreateData = {
110409
+ /**
110410
+ * 要的权限和有效期。
110411
+ */
110412
+ body: RegistryGitCredentialInput;
110413
+ path: {
110414
+ /**
110415
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110416
+ */
110417
+ package_id: string;
110418
+ };
110419
+ query?: never;
110420
+ url: '/registry/v1/packages/{package_id}/git-credential';
110421
+ };
110422
+ export type RegistryPackagesGitCredentialCreateErrors = {
110423
+ /**
110424
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110425
+ */
110426
+ 400: RegistryRegistryError;
110427
+ /**
110428
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110429
+ */
110430
+ 401: RegistryRegistryError;
110431
+ /**
110432
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110433
+ */
110434
+ 404: RegistryRegistryError;
110435
+ /**
110436
+ * FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
110437
+ */
110438
+ 409: RegistryRegistryError;
110439
+ /**
110440
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110441
+ */
110442
+ 500: RegistryRegistryError;
110443
+ };
110444
+ export type RegistryPackagesGitCredentialCreateError = RegistryPackagesGitCredentialCreateErrors[keyof RegistryPackagesGitCredentialCreateErrors];
110445
+ export type RegistryPackagesGitCredentialCreateResponses = {
110446
+ /**
110447
+ * 新签发的凭据,含克隆地址、固定用户名、密码和过期时间。
110448
+ */
110449
+ 201: RegistryGitCredential;
110450
+ };
110451
+ export type RegistryPackagesGitCredentialCreateResponse = RegistryPackagesGitCredentialCreateResponses[keyof RegistryPackagesGitCredentialCreateResponses];
108627
110452
  export type RegistryGitLogData = {
108628
110453
  body?: never;
108629
110454
  path: {
@@ -108690,7 +110515,12 @@ export type RegistryGitCommitsRetrieveData = {
108690
110515
  */
108691
110516
  sha: string;
108692
110517
  };
108693
- query?: never;
110518
+ query?: {
110519
+ /**
110520
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
110521
+ */
110522
+ changed_files?: boolean;
110523
+ };
108694
110524
  url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
108695
110525
  };
108696
110526
  export type RegistryGitCommitsRetrieveErrors = {
@@ -108720,7 +110550,7 @@ export type RegistryGitCommitsRetrieveResponses = {
108720
110550
  /**
108721
110551
  * 这个提交。
108722
110552
  */
108723
- 200: RegistryGitCommit;
110553
+ 200: RegistryGitCommitDetail;
108724
110554
  };
108725
110555
  export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
108726
110556
  export type RegistryGitTreesRetrieveData = {
@@ -108768,6 +110598,201 @@ export type RegistryGitTreesRetrieveResponses = {
108768
110598
  200: RegistryGitTree;
108769
110599
  };
108770
110600
  export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
110601
+ export type RegistryGitRefsData = {
110602
+ body?: never;
110603
+ path: {
110604
+ /**
110605
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110606
+ */
110607
+ package_id: string;
110608
+ };
110609
+ query?: {
110610
+ /**
110611
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
110612
+ */
110613
+ prefix?: 'refs/heads/' | 'refs/tags/';
110614
+ /**
110615
+ * 页码,从 1 起,默认 1。
110616
+ */
110617
+ page?: number;
110618
+ /**
110619
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
110620
+ */
110621
+ size?: number;
110622
+ };
110623
+ url: '/registry/v1/packages/{package_id}/git/refs';
110624
+ };
110625
+ export type RegistryGitRefsErrors = {
110626
+ /**
110627
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110628
+ */
110629
+ 400: RegistryRegistryError;
110630
+ /**
110631
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110632
+ */
110633
+ 401: RegistryRegistryError;
110634
+ /**
110635
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110636
+ */
110637
+ 404: RegistryRegistryError;
110638
+ /**
110639
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110640
+ */
110641
+ 500: RegistryRegistryError;
110642
+ /**
110643
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
110644
+ */
110645
+ 503: RegistryRegistryError;
110646
+ };
110647
+ export type RegistryGitRefsError = RegistryGitRefsErrors[keyof RegistryGitRefsErrors];
110648
+ export type RegistryGitRefsResponses = {
110649
+ /**
110650
+ * 分支和标签的一页。
110651
+ */
110652
+ 200: RegistryGitRefs;
110653
+ };
110654
+ export type RegistryGitRefsResponse = RegistryGitRefsResponses[keyof RegistryGitRefsResponses];
110655
+ export type RegistryGitResolveData = {
110656
+ body?: never;
110657
+ path: {
110658
+ /**
110659
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110660
+ */
110661
+ package_id: string;
110662
+ };
110663
+ query: {
110664
+ /**
110665
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
110666
+ */
110667
+ ref: string;
110668
+ };
110669
+ url: '/registry/v1/packages/{package_id}/git/resolve';
110670
+ };
110671
+ export type RegistryGitResolveErrors = {
110672
+ /**
110673
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110674
+ */
110675
+ 400: RegistryRegistryError;
110676
+ /**
110677
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110678
+ */
110679
+ 401: RegistryRegistryError;
110680
+ /**
110681
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110682
+ */
110683
+ 404: RegistryRegistryError;
110684
+ /**
110685
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110686
+ */
110687
+ 500: RegistryRegistryError;
110688
+ /**
110689
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
110690
+ */
110691
+ 503: RegistryRegistryError;
110692
+ };
110693
+ export type RegistryGitResolveError = RegistryGitResolveErrors[keyof RegistryGitResolveErrors];
110694
+ export type RegistryGitResolveResponses = {
110695
+ /**
110696
+ * 这个引用指向的提交。
110697
+ */
110698
+ 200: RegistryGitResolvedRef;
110699
+ };
110700
+ export type RegistryGitResolveResponse = RegistryGitResolveResponses[keyof RegistryGitResolveResponses];
110701
+ export type RegistryGitCompareData = {
110702
+ body?: never;
110703
+ path: {
110704
+ /**
110705
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110706
+ */
110707
+ package_id: string;
110708
+ };
110709
+ query: {
110710
+ /**
110711
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
110712
+ */
110713
+ base: string;
110714
+ /**
110715
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
110716
+ */
110717
+ head: string;
110718
+ };
110719
+ url: '/registry/v1/packages/{package_id}/git/compare';
110720
+ };
110721
+ export type RegistryGitCompareErrors = {
110722
+ /**
110723
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110724
+ */
110725
+ 400: RegistryRegistryError;
110726
+ /**
110727
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110728
+ */
110729
+ 401: RegistryRegistryError;
110730
+ /**
110731
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110732
+ */
110733
+ 404: RegistryRegistryError;
110734
+ /**
110735
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110736
+ */
110737
+ 500: RegistryRegistryError;
110738
+ /**
110739
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
110740
+ */
110741
+ 503: RegistryRegistryError;
110742
+ };
110743
+ export type RegistryGitCompareError = RegistryGitCompareErrors[keyof RegistryGitCompareErrors];
110744
+ export type RegistryGitCompareResponses = {
110745
+ /**
110746
+ * 两个引用的关系、改动的文件和多出的提交。
110747
+ */
110748
+ 200: RegistryGitComparison;
110749
+ };
110750
+ export type RegistryGitCompareResponse = RegistryGitCompareResponses[keyof RegistryGitCompareResponses];
110751
+ export type RegistryGitTreesRecursiveData = {
110752
+ body?: never;
110753
+ path: {
110754
+ /**
110755
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110756
+ */
110757
+ package_id: string;
110758
+ /**
110759
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
110760
+ */
110761
+ sha: string;
110762
+ };
110763
+ query?: never;
110764
+ url: '/registry/v1/packages/{package_id}/git/trees/{sha}/recursive';
110765
+ };
110766
+ export type RegistryGitTreesRecursiveErrors = {
110767
+ /**
110768
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110769
+ */
110770
+ 400: RegistryRegistryError;
110771
+ /**
110772
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110773
+ */
110774
+ 401: RegistryRegistryError;
110775
+ /**
110776
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110777
+ */
110778
+ 404: RegistryRegistryError;
110779
+ /**
110780
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110781
+ */
110782
+ 500: RegistryRegistryError;
110783
+ /**
110784
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
110785
+ */
110786
+ 503: RegistryRegistryError;
110787
+ };
110788
+ export type RegistryGitTreesRecursiveError = RegistryGitTreesRecursiveErrors[keyof RegistryGitTreesRecursiveErrors];
110789
+ export type RegistryGitTreesRecursiveResponses = {
110790
+ /**
110791
+ * 这个对象下的全部条目。
110792
+ */
110793
+ 200: RegistryGitTreeRecursive;
110794
+ };
110795
+ export type RegistryGitTreesRecursiveResponse = RegistryGitTreesRecursiveResponses[keyof RegistryGitTreesRecursiveResponses];
108771
110796
  export type RegistryGitFilesRetrieveData = {
108772
110797
  body?: never;
108773
110798
  path: {