@deepraxis/sdk 0.1.1-dev.1571058 → 0.1.1-dev.161a576

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.
@@ -7802,47 +7802,77 @@ export type OrganizationSpecList = {
7802
7802
  next_page: string | null;
7803
7803
  };
7804
7804
  /**
7805
- * The live spec of one subject; a subject never written answers revision 0 with an empty body.
7805
+ * The spec of one subject in the organization/v1 envelope; a subject never written answers revision 0 with an empty body.
7806
7806
  */
7807
7807
  export type OrganizationSpec = {
7808
+ /**
7809
+ * The language of this envelope, always organization/v1.
7810
+ */
7811
+ api_version: 'organization/v1';
7808
7812
  kind: OrganizationSpecKind;
7813
+ metadata: OrganizationSpecMetadata;
7814
+ spec: OrganizationSpecBody;
7809
7815
  /**
7810
- * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
7816
+ * Reconcile summary; given when one spec is read, null in a list and for a past revision.
7811
7817
  */
7812
- id: string;
7818
+ status: OrganizationSpecStatusSummary | null;
7819
+ };
7820
+ /**
7821
+ * The whole new spec of one subject, replacing the previous one.
7822
+ */
7823
+ export type OrganizationReviseSpecRequest = {
7813
7824
  /**
7814
- * Live revision, 0 until the first write and raised by one on every revise; send it as expected_revision.
7825
+ * The language of the envelope; omit it or send organization/v1, anything else is refused.
7815
7826
  */
7816
- revision: number;
7827
+ api_version?: 'organization/v1';
7817
7828
  /**
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.
7829
+ * The revision you read and the labels, annotations and note of this revision. Other fields of a read metadata (id, name, update_time, updated_by) may be sent back and are ignored.
7819
7830
  */
7820
- spec: {
7821
- [key: string]: unknown;
7831
+ metadata: {
7832
+ /**
7833
+ * 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.
7834
+ */
7835
+ revision: number;
7836
+ /**
7837
+ * Replaces the labels of the previous revision; omit it to keep them. At most 20 keys, each matching ^[a-z0-9]([a-z0-9._/-]{0,61}[a-z0-9])?$, with string values up to 63 characters.
7838
+ */
7839
+ labels?: {
7840
+ [key: string]: string;
7841
+ };
7842
+ /**
7843
+ * Replaces the annotations of the previous revision; omit it to keep them. At most 20 keys with string values up to 1000 characters.
7844
+ */
7845
+ annotations?: {
7846
+ [key: string]: string;
7847
+ };
7848
+ /**
7849
+ * Why this revision is written, up to 500 characters; it belongs to this revision only and is not carried over.
7850
+ */
7851
+ change_note?: string;
7822
7852
  };
7853
+ spec: OrganizationSpecBody;
7854
+ };
7855
+ /**
7856
+ * The preview of a revise made with dry_run=true; nothing was written.
7857
+ */
7858
+ export type OrganizationSpecDryRun = {
7823
7859
  /**
7824
- * UTC instant (RFC 3339) of the latest revision; null when the subject never had a spec written.
7860
+ * Always true; tells the preview from a written spec.
7825
7861
  */
7826
- update_time: string | null;
7862
+ dry_run: true;
7863
+ spec: OrganizationSpec;
7827
7864
  /**
7828
- * Actor address that wrote the latest revision (human:usr_... or agent:agent_...); null until the first write.
7865
+ * What the write would change against the live spec, in path order.
7829
7866
  */
7830
- updated_by: string | null;
7831
- };
7832
- /**
7833
- * The whole new spec of one subject, replacing the previous one.
7834
- */
7835
- export type OrganizationReviseSpecRequest = {
7867
+ changes: Array<OrganizationSpecChange>;
7836
7868
  /**
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.
7869
+ * The reconcile plan of every holder in office whose chain contains this subject, computed as if the new spec were already written; at most 50.
7838
7870
  */
7839
- expected_revision: number;
7871
+ plans: Array<OrganizationReconcilePlan>;
7840
7872
  /**
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.
7873
+ * Present and true when more than 50 holders are affected and only the first 50 have a plan.
7842
7874
  */
7843
- spec: {
7844
- [key: string]: unknown;
7845
- };
7875
+ plans_truncated?: true;
7846
7876
  };
7847
7877
  /**
7848
7878
  * One page of a subject's spec revisions, newest first.
@@ -7921,13 +7951,13 @@ export type OrganizationEffectiveSpec = {
7921
7951
  */
7922
7952
  documents: Array<OrganizationSpecDocument>;
7923
7953
  /**
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.
7954
+ * The merged provision: a map from block name to the value the chain resolved to, in the shape of a written spec.provision with remove left out. Blocks are agent, computer, phone, roles, grants, repositories, schedules and browser.
7925
7955
  */
7926
- spec: {
7956
+ provision: {
7927
7957
  [key: string]: unknown;
7928
7958
  };
7929
7959
  /**
7930
- * Where each merged value came from, keyed by the path inside the spec (such as agent.model or repositories[github:org/repo]).
7960
+ * Where each merged value came from, keyed by the path inside the spec (such as provision.agent.model or provision.repositories[github:org/repo]).
7931
7961
  */
7932
7962
  origins: {
7933
7963
  [key: string]: string;
@@ -7941,6 +7971,12 @@ export type OrganizationEffectiveSpec = {
7941
7971
  */
7942
7972
  violations: Array<string>;
7943
7973
  };
7974
+ /**
7975
+ * The JSON Schema (draft 2020-12) of a spec body, generated from the block registry and returned without any key renamed; its x-praxis-* keywords describe merging, holders and what reconcile applies.
7976
+ */
7977
+ export type OrganizationSpecSchema = {
7978
+ [key: string]: unknown;
7979
+ };
7944
7980
  /**
7945
7981
  * What a dry run of the reconciler would do for one holder, without changing anything.
7946
7982
  */
@@ -10012,9 +10048,9 @@ export type ApplicationGrant = {
10012
10048
  /**
10013
10049
  * Resource type.
10014
10050
  */
10015
- type: 'database' | 'files' | 'knowledge' | 'models';
10051
+ type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'feedback' | 'organization';
10016
10052
  /**
10017
- * Database or knowledge base ID; * for files and models.
10053
+ * ID of the granted resource; * for models and whole-service types.
10018
10054
  */
10019
10055
  id: string;
10020
10056
  };
@@ -10039,9 +10075,9 @@ export type ApplicationCreateGrantInput = {
10039
10075
  /**
10040
10076
  * Resource type.
10041
10077
  */
10042
- type: 'database' | 'files' | 'knowledge' | 'models';
10078
+ type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'feedback' | 'organization';
10043
10079
  /**
10044
- * Database or knowledge base ID in your organization; * for files and models.
10080
+ * ID of the granted resource in your organization; * for models and whole-service types.
10045
10081
  */
10046
10082
  id: string;
10047
10083
  };
@@ -16655,27 +16691,57 @@ export type DevopsTestPlan = {
16655
16691
  * 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
16692
  */
16657
16693
  cases: Array<DevopsTestPlanCase>;
16694
+ /**
16695
+ * 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.
16696
+ */
16697
+ caseCounts?: Array<DevopsTestPlanCaseCounts>;
16658
16698
  /**
16659
16699
  * 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.
16660
16700
  */
16661
16701
  failedPaths?: Array<string>;
16662
16702
  };
16663
16703
  /**
16664
- * One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
16704
+ * A new project: its name and, for a project with code, where the code lives.
16665
16705
  */
16666
- export type DevopsProjectPage = {
16706
+ export type DevopsProjectCreate = {
16667
16707
  /**
16668
- * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16708
+ * Kebab-case name, unique within the organization.
16669
16709
  */
16670
- items: Array<DevopsProject>;
16710
+ name: string;
16671
16711
  /**
16672
- * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16712
+ * What the project is for, in your own words.
16673
16713
  */
16674
- nextPageToken: string;
16714
+ description?: string;
16675
16715
  /**
16676
- * 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.
16716
+ * Where the code lives: github (the default) or platform, a git package of our own Git.
16677
16717
  */
16678
- visibleProjects: number;
16718
+ provider?: 'github' | 'platform';
16719
+ /**
16720
+ * provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository.
16721
+ */
16722
+ package?: string;
16723
+ /**
16724
+ * 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.
16725
+ */
16726
+ initialRef?: string;
16727
+ /**
16728
+ * provider github only: the connection of a completed GitHub App install that can see the repository.
16729
+ */
16730
+ connection?: string;
16731
+ /**
16732
+ * provider github only: the repository as owner/name.
16733
+ */
16734
+ repository?: string;
16735
+ /**
16736
+ * Delivery settings; keys you leave out take their defaults.
16737
+ */
16738
+ settings?: {
16739
+ [key: string]: unknown;
16740
+ };
16741
+ /**
16742
+ * Idempotency key: repeat the call with the same value to be given the same answer.
16743
+ */
16744
+ requestId?: string;
16679
16745
  };
16680
16746
  /**
16681
16747
  * One delivery project — the unit a release, a promotion and a flag all belong to.
@@ -16721,6 +16787,49 @@ export type DevopsProject = {
16721
16787
  [key: string]: string;
16722
16788
  };
16723
16789
  };
16790
+ /**
16791
+ * One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
16792
+ */
16793
+ export type DevopsProjectPage = {
16794
+ /**
16795
+ * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16796
+ */
16797
+ items: Array<DevopsProject>;
16798
+ /**
16799
+ * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16800
+ */
16801
+ nextPageToken: string;
16802
+ /**
16803
+ * 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.
16804
+ */
16805
+ visibleProjects: number;
16806
+ };
16807
+ /**
16808
+ * Where to start the default branch.
16809
+ */
16810
+ export type DevopsDefaultBranchInitialize = {
16811
+ /**
16812
+ * An existing branch of the repository, for example import. The default branch is created at its head.
16813
+ */
16814
+ from: string;
16815
+ };
16816
+ /**
16817
+ * The default branch that now exists.
16818
+ */
16819
+ export type DevopsDefaultBranchInitialized = {
16820
+ /**
16821
+ * The default branch the project declares, now created.
16822
+ */
16823
+ defaultBranch: string;
16824
+ /**
16825
+ * The branch it was started from.
16826
+ */
16827
+ from: string;
16828
+ /**
16829
+ * The commit the default branch points at, the head of from when it was read.
16830
+ */
16831
+ commit: string;
16832
+ };
16724
16833
  /**
16725
16834
  * A patch to a project; only the fields named in updateMask are written.
16726
16835
  */
@@ -16752,7 +16861,7 @@ export type DevopsProjectUpdate = {
16752
16861
  */
16753
16862
  releaseSchedule?: null | DevopsReleaseSchedule;
16754
16863
  /**
16755
- * New observation window in minutes for production promotions.
16864
+ * Not read: the observation window of a promotion is the observeMinutes of the environment it deploys into (and only for a release-stage environment), so changing this value changes nothing. Set environments.update observeMinutes instead.
16756
16865
  */
16757
16866
  observationWindowMinutes?: number;
16758
16867
  /**
@@ -16947,6 +17056,10 @@ export type DevopsPromotionCreate = {
16947
17056
  */
16948
17057
  reason: string;
16949
17058
  }>;
17059
+ /**
17060
+ * Targeted only. include (the default) is the ordinary dependency order: naming a target also deploys the callees it needs, first. skip is a FORCED EXPRESS: only the targets you name deploy, nothing is added, and the callees stay at whatever the environment runs. Use it when the closure would carry other people's unreleased changes (a targeted promotion of one service can plan dozens of targets whose checkpoints lag). It is recorded for after-the-fact review: the promotion answers dependencies skip and skippedDependencies (what include would have added), and the project's promotion list filters on forced. The one refusal is DEPENDENCY_NOT_LIVE (FAILED_PRECONDITION): a named target bound to a callee that has never been deployed to this environment, which names the target and the callee. Release facts record who calls whom but not which entrypoint a binding names, so liveness is decided per callee, not per entrypoint. skip is refused with INVALID_ARGUMENT for any path but targeted, and together with withoutCallees (it already leaves every callee behind). A named async target still goes to its own async promotion.
17061
+ */
17062
+ dependencies?: 'include' | 'skip';
16950
17063
  /**
16951
17064
  * Gates to skip, each naming the approval that authorizes it; a bypass is refused unless the project allows skipping upstream and the approval covers this release, environment and gate.
16952
17065
  */
@@ -17000,6 +17113,18 @@ export type DevopsPromotion = {
17000
17113
  * How this promotion came about; it decides which gates apply, so read it before judging a refusal.
17001
17114
  */
17002
17115
  path: 'regular' | 'patch' | 'targeted' | 'rollback';
17116
+ /**
17117
+ * Present, as skip, only on a forced express: a targeted promotion created with dependencies skip deployed exactly the targets it named and added nothing. Read-only; absent on every other promotion.
17118
+ */
17119
+ dependencies?: 'skip';
17120
+ /**
17121
+ * On a forced express only: the targets the ordinary dependency order would have added to the plan and this promotion did not deploy, for the reviewer. Display only; nothing here deployed.
17122
+ */
17123
+ skippedDependencies?: Array<string>;
17124
+ /**
17125
+ * The exact version of the deploy engine (the published @deepraxis/cli) this promotion runs with. It is resolved once when the promotion is created, from the project's settings.deploy.engine (latest, dev or a pinned version), and recorded here; a retry, the rollout that follows an approved plan and a replan run this same version, so one promotion runs one engine. A rollback runs the engine the project names now, not the one of the release it returns to. Read-only. Absent on a promotion created before engines were recorded.
17126
+ */
17127
+ engineVersion?: string;
17003
17128
  /**
17004
17129
  * The plan this promotion executes, or null for a promotion created before a plan was recorded. Read layers and refusals here rather than re-deriving them.
17005
17130
  */
@@ -17009,9 +17134,30 @@ export type DevopsPromotion = {
17009
17134
  */
17010
17135
  state: 'queued' | 'pending_release' | 'awaiting_approval' | 'deploying' | 'verifying' | 'observing' | 'halted' | 'cancelling' | 'succeeded' | 'failed' | 'errored' | 'approval_rejected' | 'cancelled' | 'superseded';
17011
17136
  /**
17012
- * The executor's own sentence about the current state, present while it is running and after it stops; it carries detail the state value cannot.
17137
+ * The executor's own sentence about the current state, present while it is running and after it stops; it carries detail the state value cannot. A queued promotion says which promotion it waits for and what releases it.
17013
17138
  */
17014
17139
  stateDescription?: string;
17140
+ /**
17141
+ * Only on promotions.retrieve, and only once a rollout has ended: what the rollouts really did. A promotion can succeed with deployed 0 and identical above 0, which means every target was skipped as artifact_identical.
17142
+ */
17143
+ summary?: {
17144
+ /**
17145
+ * Targets that were built and deployed.
17146
+ */
17147
+ deployed?: number;
17148
+ /**
17149
+ * Targets skipped as artifact_identical: the built artifact is byte-for-byte what the environment already runs, as when the change was only a comment, so nothing was deployed.
17150
+ */
17151
+ identical?: number;
17152
+ /**
17153
+ * Targets whose rollout ended any other way (failed, cancelled, skipped for another reason).
17154
+ */
17155
+ other?: number;
17156
+ };
17157
+ /**
17158
+ * Present and true only on the answer to a validateOnly call: nothing was stored, id is the placeholder prm_validate_only and state is the one a real call would start in.
17159
+ */
17160
+ validateOnly?: boolean;
17015
17161
  approval: DevopsApprovalState;
17016
17162
  /**
17017
17163
  * RFC 3339 UTC time the approval was decided; absent while it is still needed or was never required.
@@ -17027,6 +17173,10 @@ export type DevopsPromotion = {
17027
17173
  verification?: Array<DevopsVerificationInfo>;
17028
17174
  observation?: DevopsObservation;
17029
17175
  executor?: DevopsPromotionExecutor;
17176
+ /**
17177
+ * The lane the promotion runs in, read-only. async marks the promotion of one async target (a slow target such as the docs site, named in the project file under devops.deploy.async): it does not take the environment queue, it runs beside the main promotion and waits only for an earlier async promotion of the same target, and its success or failure moves that target alone. Absent means main.
17178
+ */
17179
+ lane?: 'main' | 'async';
17030
17180
  /**
17031
17181
  * The promotion that replaced this one, present only when state is superseded; read it to follow the work to where it went.
17032
17182
  */
@@ -17098,6 +17248,27 @@ export type DevopsPromotionConcludeRequest = {
17098
17248
  */
17099
17249
  reason: string;
17100
17250
  };
17251
+ /**
17252
+ * 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.
17253
+ */
17254
+ export type DevopsCheckoutCredential = {
17255
+ /**
17256
+ * 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.
17257
+ */
17258
+ cloneUrl: string;
17259
+ /**
17260
+ * The user name git sends with the password.
17261
+ */
17262
+ username: string;
17263
+ /**
17264
+ * A secret: the pull credential. It reads this one repository and nothing else, and stops working at expireTime. Never print or store it.
17265
+ */
17266
+ password: string;
17267
+ /**
17268
+ * RFC 3339 UTC time the credential stops working, 15 minutes after it was issued. Ask again for a new one rather than extending.
17269
+ */
17270
+ expireTime: string;
17271
+ };
17101
17272
  /**
17102
17273
  * One page of a promotion's rollouts, in plan order.
17103
17274
  */
@@ -17195,7 +17366,7 @@ export type DevopsEnvironmentUpdate = {
17195
17366
  */
17196
17367
  requireApproval?: boolean;
17197
17368
  /**
17198
- * Minutes a promotion into this environment stays under observation.
17369
+ * Minutes a promotion into this environment stays in observing after its deploy finishes; 0 means no window. This is the value that decides the window, not the project setting observationWindowMinutes, which is no longer read. The window applies to release-stage environments, and while it runs the environment is held: promotions queue behind it until promotions.conclude.
17199
17370
  */
17200
17371
  observeMinutes?: number;
17201
17372
  /**
@@ -17206,9 +17377,13 @@ export type DevopsEnvironmentUpdate = {
17206
17377
  * Suffix such as -develop that this environment adds to site hostnames, or null for none.
17207
17378
  */
17208
17379
  domainSuffix?: string | null;
17380
+ /**
17381
+ * 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.
17382
+ */
17383
+ stage?: 'integration' | 'release';
17209
17384
  };
17210
17385
  /**
17211
- * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries.
17386
+ * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries.
17212
17387
  */
17213
17388
  updateMask?: Array<string>;
17214
17389
  };
@@ -17249,7 +17424,11 @@ export type DevopsEnvironment = {
17249
17424
  */
17250
17425
  tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
17251
17426
  /**
17252
- * 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.
17427
+ * 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.
17428
+ */
17429
+ stage: 'integration' | 'release';
17430
+ /**
17431
+ * 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.
17253
17432
  */
17254
17433
  order: number;
17255
17434
  /**
@@ -17881,6 +18060,10 @@ export type DevopsChangeOpenPullRequestRequest = {
17881
18060
  * The pull request for a change's branch.
17882
18061
  */
17883
18062
  export type DevopsChangePullRequestOpened = {
18063
+ /**
18064
+ * 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.
18065
+ */
18066
+ id?: string;
17884
18067
  /**
17885
18068
  * The pull request's number on the git host.
17886
18069
  */
@@ -18046,7 +18229,7 @@ export type DevopsPullRequest = {
18046
18229
  kind: 'user' | 'agent' | 'bot';
18047
18230
  };
18048
18231
  /**
18049
- * 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.
18232
+ * 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.
18050
18233
  */
18051
18234
  mergeableState: string;
18052
18235
  /**
@@ -18136,6 +18319,7 @@ export type DevopsPullRequest = {
18136
18319
  time?: string;
18137
18320
  }>;
18138
18321
  };
18322
+ review?: DevopsReviewVerdict;
18139
18323
  /**
18140
18324
  * The commit it landed as, present only once it is merged.
18141
18325
  */
@@ -18171,7 +18355,7 @@ export type DevopsPullRequestMergeRequest = {
18171
18355
  requestId?: string;
18172
18356
  };
18173
18357
  /**
18174
- * A gatekeeper's judgement of a change declared direct, recorded against one commit.
18358
+ * A reviewer's verdict on a pull request, recorded against one commit, after the fact; the merge gate never waits for it.
18175
18359
  */
18176
18360
  export type DevopsPullRequestVerdictRequest = {
18177
18361
  /**
@@ -18200,6 +18384,19 @@ export type DevopsPullRequestCloseRequest = {
18200
18384
  */
18201
18385
  reason: string;
18202
18386
  };
18387
+ /**
18388
+ * Your verdict on a pull request that lives on the platform's own Git.
18389
+ */
18390
+ export type DevopsPullRequestReviewRequest = {
18391
+ /**
18392
+ * The verdict. A value outside this set is refused with INVALID_ARGUMENT.
18393
+ */
18394
+ state: 'approved' | 'changes_requested' | 'commented';
18395
+ /**
18396
+ * 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.
18397
+ */
18398
+ body?: string;
18399
+ };
18203
18400
  /**
18204
18401
  * One page of an organization's connections.
18205
18402
  */
@@ -18433,7 +18630,7 @@ export type DevopsSegmentUpdate = {
18433
18630
  */
18434
18631
  export type DevopsWorkspaceList = {
18435
18632
  /**
18436
- * The project's workspaces, development first, then integration, then runtime.
18633
+ * The project's workspaces, development first, then integration, then release.
18437
18634
  */
18438
18635
  items: Array<DevopsWorkspace>;
18439
18636
  };
@@ -18570,9 +18767,9 @@ export type DevopsUnit = {
18570
18767
  transitions?: Array<DevopsUnitTransition>;
18571
18768
  };
18572
18769
  /**
18573
- * Where in the delivery line a workspace or unit sits: development merges changes, integration deploys and finds problems, runtime deploys and serves steadily.
18770
+ * 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).
18574
18771
  */
18575
- export type DevopsWorkspaceStage = 'development' | 'integration' | 'runtime';
18772
+ export type DevopsWorkspaceStage = 'development' | 'integration' | 'release';
18576
18773
  /**
18577
18774
  * The phase a unit was last observed in; it is an observed fact, not the request, so it changes as the sandbox answers.
18578
18775
  */
@@ -18594,6 +18791,23 @@ export type DevopsUnitPage = {
18594
18791
  */
18595
18792
  nextPageToken: string;
18596
18793
  };
18794
+ /**
18795
+ * One page of a project's cleanup ledger, newest decision first.
18796
+ */
18797
+ export type DevopsCleanupPage = {
18798
+ /**
18799
+ * The ledger rows on this page.
18800
+ */
18801
+ items: Array<DevopsCleanupEntry>;
18802
+ /**
18803
+ * How many rows the project's ledger holds across every page; returned on the first page only.
18804
+ */
18805
+ totalSize?: number;
18806
+ /**
18807
+ * Cursor for the next page; an empty string means this was the last page.
18808
+ */
18809
+ nextPageToken: string;
18810
+ };
18597
18811
  /**
18598
18812
  * A field the unit retrieve can inline; only the values listed are accepted, and any other value is refused with INVALID_ARGUMENT.
18599
18813
  */
@@ -21680,9 +21894,9 @@ export type RegistryGitLog = {
21680
21894
  has_more: boolean;
21681
21895
  };
21682
21896
  /**
21683
- * 一个 git 提交。
21897
+ * 一个 git 提交,需要时连同它改动的文件。
21684
21898
  */
21685
- export type RegistryGitCommit = {
21899
+ export type RegistryGitCommitDetail = {
21686
21900
  /**
21687
21901
  * 对象类型标记,固定为 registry.git.commit。
21688
21902
  */
@@ -21711,6 +21925,14 @@ export type RegistryGitCommit = {
21711
21925
  * 父提交的对象 id,按顺序。
21712
21926
  */
21713
21927
  parents: Array<string>;
21928
+ /**
21929
+ * 相对第一个父提交改动的文件;只在请求带 changed_files=true 时才有。
21930
+ */
21931
+ changed_files?: Array<RegistryGitChangedFile>;
21932
+ /**
21933
+ * changed_files 被上限截断时为 true,此时不要当作改动的全部;只在请求带 changed_files=true 时才有。
21934
+ */
21935
+ changed_files_truncated?: boolean;
21714
21936
  };
21715
21937
  /**
21716
21938
  * 一个树的条目清单。
@@ -21729,6 +21951,94 @@ export type RegistryGitTree = {
21729
21951
  */
21730
21952
  entries: Array<RegistryGitTreeEntry>;
21731
21953
  };
21954
+ /**
21955
+ * 一页分支和标签。
21956
+ */
21957
+ export type RegistryGitRefs = {
21958
+ /**
21959
+ * 对象类型标记,固定为 registry.git.refs。
21960
+ */
21961
+ object: string;
21962
+ /**
21963
+ * 这一页的引用,按名字排序。
21964
+ */
21965
+ refs: Array<RegistryGitRefItem>;
21966
+ /**
21967
+ * 是否还有下一页(page 加 1 取下一页)。
21968
+ */
21969
+ has_more: boolean;
21970
+ };
21971
+ /**
21972
+ * 一个引用换成的提交 id。
21973
+ */
21974
+ export type RegistryGitResolvedRef = {
21975
+ /**
21976
+ * 对象类型标记,固定为 registry.git.resolved_ref。
21977
+ */
21978
+ object: string;
21979
+ /**
21980
+ * 请求里的引用,原样返回。
21981
+ */
21982
+ ref: string;
21983
+ /**
21984
+ * 这个引用指向的提交 id。
21985
+ */
21986
+ sha: string;
21987
+ };
21988
+ /**
21989
+ * 两个引用的比较结果。
21990
+ */
21991
+ export type RegistryGitComparison = {
21992
+ /**
21993
+ * 对象类型标记,固定为 registry.git.comparison。
21994
+ */
21995
+ object: string;
21996
+ /**
21997
+ * head 相对 base 的关系。
21998
+ */
21999
+ status: 'identical' | 'ahead' | 'behind' | 'diverged';
22000
+ /**
22001
+ * 找到的最近共同祖先的提交 id;没有找到(历史无关,或读取上限内没走到)时为 null。
22002
+ */
22003
+ merge_base: string | null;
22004
+ /**
22005
+ * head 相对 merge_base 改动的文件;merge_base 为 null 时相对 base。
22006
+ */
22007
+ files: Array<RegistryGitChangedFile>;
22008
+ /**
22009
+ * head 比 base 多出的提交,最新的在前。
22010
+ */
22011
+ commits: Array<RegistryGitComparedCommit>;
22012
+ /**
22013
+ * 为 true 表示 files 被上限截断,或没找到 merge_base 而无法确定 files;此时不要当作完整结果。
22014
+ */
22015
+ truncated: boolean;
22016
+ /**
22017
+ * 为 true 表示 commits 不完整(读取上限,或合并提交藏起了被合并分支上的提交);此时不要当作 head 多出的全部提交。
22018
+ */
22019
+ commits_truncated: boolean;
22020
+ };
22021
+ /**
22022
+ * 一个提交或树下的全部条目。
22023
+ */
22024
+ export type RegistryGitTreeRecursive = {
22025
+ /**
22026
+ * 对象类型标记,固定为 registry.git.tree_recursive。
22027
+ */
22028
+ object: string;
22029
+ /**
22030
+ * 请求里读的提交或树对象 id,原样返回。
22031
+ */
22032
+ sha: string;
22033
+ /**
22034
+ * 为 true 表示撞到条目或树读取上限,entries 只是前一部分,不是全部。
22035
+ */
22036
+ truncated: boolean;
22037
+ /**
22038
+ * 全部条目,按路径排序,目录也在其中。
22039
+ */
22040
+ entries: Array<RegistryGitTreeNode>;
22041
+ };
21732
22042
  /**
21733
22043
  * 一个版本的文件清单;文件不多,一次返回全部。
21734
22044
  */
@@ -32210,39 +32520,84 @@ export type OrganizationMetric = {
32210
32520
  unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
32211
32521
  };
32212
32522
  /**
32213
- * One stored revision of a subject's spec, kept for history.
32523
+ * The subject a spec belongs to and the revision it is at; read from the system, a writer sends back revision, labels, annotations and change_note.
32214
32524
  */
32215
- export type OrganizationSpecRevision = {
32216
- kind: OrganizationSpecKind;
32525
+ export type OrganizationSpecMetadata = {
32217
32526
  /**
32218
32527
  * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
32219
32528
  */
32220
32529
  id: string;
32221
32530
  /**
32222
- * Revision number of this stored body, rising from 1; diff and get accept it as revision.
32531
+ * The subject's own name (the organization's, department's, job's, level's or position's title); null for an assignment or when it cannot be read.
32532
+ */
32533
+ name: string | null;
32534
+ /**
32535
+ * Revision, 0 until the first write and raised by one on every revise; send it as metadata.revision.
32223
32536
  */
32224
32537
  revision: number;
32225
32538
  /**
32226
- * 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.
32539
+ * Short tags for grouping, at most 20 keys; a key is lowercase letters, digits, dot, underscore, slash or hyphen up to 63 characters and a value is a string up to 63 characters. Returned verbatim.
32227
32540
  */
32228
- spec: {
32541
+ labels: {
32542
+ [key: string]: string;
32543
+ };
32544
+ /**
32545
+ * Free notes for people and tools, at most 20 keys with string values up to 1000 characters. Returned verbatim.
32546
+ */
32547
+ annotations: {
32548
+ [key: string]: string;
32549
+ };
32550
+ /**
32551
+ * Why this revision was written, up to 500 characters; each revision has its own, null when none was given.
32552
+ */
32553
+ change_note: string | null;
32554
+ /**
32555
+ * UTC instant (RFC 3339) this revision was written; null when the subject never had a spec written.
32556
+ */
32557
+ update_time: string | null;
32558
+ /**
32559
+ * Actor address that wrote this revision (human:usr_... or agent:agent_...); null until the first write.
32560
+ */
32561
+ updated_by: string | null;
32562
+ };
32563
+ /**
32564
+ * What a unit says. Only document and provision are accepted; everything else is refused with its path.
32565
+ */
32566
+ export type OrganizationSpecBody = {
32567
+ /**
32568
+ * Markdown text of this unit, injected into each holder's memory as its own entry and never merged with other layers.
32569
+ */
32570
+ document?: string;
32571
+ /**
32572
+ * What the unit provisions its holders with: a map from block name to block value, merged along the chain of a seat and sent through verbatim. Registered blocks are agent, computer, phone, roles, grants, repositories, schedules and browser, plus remove to take inherited collection items away; GET /organization/v1/spec_schema describes each one.
32573
+ */
32574
+ provision?: {
32229
32575
  [key: string]: unknown;
32230
32576
  };
32577
+ };
32578
+ /**
32579
+ * How the holders whose last reconcile ran on this spec are doing.
32580
+ */
32581
+ export type OrganizationSpecStatusSummary = {
32231
32582
  /**
32232
- * UTC instant (RFC 3339) when this revision was written.
32583
+ * Holders whose last reconcile had this spec in one of their seats' chains.
32233
32584
  */
32234
- create_time: string;
32585
+ holders: number;
32235
32586
  /**
32236
- * Actor address that wrote this revision (human:usr_... or agent:agent_...).
32587
+ * Of those, holders with no failed block.
32237
32588
  */
32238
- created_by: string;
32589
+ ready: number;
32590
+ /**
32591
+ * Of those, holders with at least one failed block.
32592
+ */
32593
+ failing: number;
32239
32594
  };
32240
32595
  /**
32241
32596
  * One difference between two revisions of a spec.
32242
32597
  */
32243
32598
  export type OrganizationSpecChange = {
32244
32599
  /**
32245
- * Path of the changed value inside the spec body, such as agent.model or repositories[github:org/repo].
32600
+ * Full path of the changed value inside the envelope, such as spec.document, spec.provision.agent.model or spec.provision.repositories[github:org/repo].
32246
32601
  */
32247
32602
  path: string;
32248
32603
  /**
@@ -32258,6 +32613,18 @@ export type OrganizationSpecChange = {
32258
32613
  */
32259
32614
  after?: unknown;
32260
32615
  };
32616
+ /**
32617
+ * One stored revision of a subject's spec, kept for history; metadata.update_time and updated_by are when and by whom this revision was written.
32618
+ */
32619
+ export type OrganizationSpecRevision = {
32620
+ /**
32621
+ * The language of this envelope, always organization/v1.
32622
+ */
32623
+ api_version: 'organization/v1';
32624
+ kind: OrganizationSpecKind;
32625
+ metadata: OrganizationSpecMetadata;
32626
+ spec: OrganizationSpecBody;
32627
+ };
32261
32628
  /**
32262
32629
  * One layer the effective spec was merged from, least specific first.
32263
32630
  */
@@ -33384,7 +33751,7 @@ export type ApplicationModule = {
33384
33751
  content_base64: string;
33385
33752
  };
33386
33753
  /**
33387
- * One binding. Supported types: d1, kv_namespace, r2_bucket (omit the resource id to create a component owned by this Worker), secret_text (text is write-only), plain_text, json, praxis_token (name PRAXIS_API_TOKEN enables platform API access as the owner organization without injecting a token), and assets (at most one per version; requires assets on the version). praxis_vault_ref is not available. Any other Cloudflare binding type (service, queue, durable_object_namespace, ai, …) is refused with UNSUPPORTED.
33754
+ * One binding. Supported types: d1, kv_namespace, r2_bucket (omit the resource id to create a component owned by this Worker), secret_text (text is write-only), plain_text, json, praxis_token (name PRAXIS_API_TOKEN enables platform API calls, reaching what the Worker's grants name, without injecting a token), and assets (at most one per version; requires assets on the version). praxis_vault_ref is not available. Any other Cloudflare binding type (service, queue, durable_object_namespace, ai, …) is refused with UNSUPPORTED.
33388
33755
  */
33389
33756
  export type ApplicationBinding = {
33390
33757
  /**
@@ -35807,9 +36174,13 @@ export type DevopsTestPlanPackage = {
35807
36174
  */
35808
36175
  inputHash: string;
35809
36176
  /**
35810
- * What evidence exists for this (package, input hash): passed when the newest recorded run covered every case of the package at the gate's sizes and they passed, failed when the newest row failed, and missing when there is no row for the pair at all.
36177
+ * What evidence exists for this (package, input hash): passed when the newest recorded run covered every case of the package at the gate's sizes and they passed, failed when the newest row failed, missing when there is no row for the pair at all, and not_applicable when the package has no test cases, because the merge gate asks evidence for cases and so asks nothing of it.
35811
36178
  */
35812
- evidence: 'passed' | 'failed' | 'missing';
36179
+ evidence: 'passed' | 'failed' | 'missing' | 'not_applicable';
36180
+ /**
36181
+ * Present only when evidence is not_applicable: why it does not apply.
36182
+ */
36183
+ reason?: string;
35813
36184
  /**
35814
36185
  * The run the answering evidence row came from, for looking up what ran and how; absent when evidence is missing, because then no row answered.
35815
36186
  */
@@ -35852,14 +36223,43 @@ export type DevopsTestPlanCase = {
35852
36223
  */
35853
36224
  run?: string;
35854
36225
  };
36226
+ /**
36227
+ * The case counts of one package in the summary view of a test plan.
36228
+ */
36229
+ export type DevopsTestPlanCaseCounts = {
36230
+ /**
36231
+ * The package directory these counts are for.
36232
+ */
36233
+ package: string;
36234
+ /**
36235
+ * Cases this diff requires evidence for; the merge asks for nothing else.
36236
+ */
36237
+ required: number;
36238
+ /**
36239
+ * Cases this diff cannot affect, which need no evidence.
36240
+ */
36241
+ unaffected: number;
36242
+ /**
36243
+ * Required cases that already have a passing row at their deps hash.
36244
+ */
36245
+ evidenced: number;
36246
+ /**
36247
+ * Required cases with no evidence row at their deps hash.
36248
+ */
36249
+ missing: number;
36250
+ /**
36251
+ * Required cases whose newest evidence at their deps hash failed.
36252
+ */
36253
+ failed: number;
36254
+ };
35855
36255
  /**
35856
36256
  * The git repository a project is bound to, and how far the service's mirror of it has been read.
35857
36257
  */
35858
36258
  export type DevopsRepositoryRef = {
35859
36259
  /**
35860
- * The git host serving this repository; only github is bound today, and the value decides how fullName is read.
36260
+ * The git host serving this repository; the value decides how fullName is read.
35861
36261
  */
35862
- provider: 'github';
36262
+ provider: 'github' | 'platform';
35863
36263
  /**
35864
36264
  * Owner and repository name as the git host spells them, which is what a person sees in a clone URL.
35865
36265
  */
@@ -35869,7 +36269,7 @@ export type DevopsRepositoryRef = {
35869
36269
  */
35870
36270
  defaultBranch: string;
35871
36271
  /**
35872
- * The git host connection that authorizes reads of this repository; the connection itself is outside this domain's operations.
36272
+ * 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.
35873
36273
  */
35874
36274
  connection: string;
35875
36275
  /**
@@ -35887,7 +36287,7 @@ export type DevopsProjectSettings = {
35887
36287
  */
35888
36288
  releaseSchedule: null | DevopsReleaseSchedule;
35889
36289
  /**
35890
- * How many minutes a production promotion stays in observing before it may be concluded, counted from the moment the deploy finished.
36290
+ * Not read, kept for old records: the observation window is the observeMinutes of the environment a promotion deploys into, which wins over this value. Read and set environments observeMinutes.
35891
36291
  */
35892
36292
  observationWindowMinutes: number;
35893
36293
  /**
@@ -35903,6 +36303,8 @@ export type DevopsProjectSettings = {
35903
36303
  */
35904
36304
  requireGate: boolean;
35905
36305
  gate?: DevopsGatePolicy;
36306
+ retention?: DevopsProjectRetention;
36307
+ deploy?: DevopsProjectDeploySettings;
35906
36308
  };
35907
36309
  /**
35908
36310
  * When the project cuts releases by itself, in a five-field cron and the zone it is read in.
@@ -36326,7 +36728,7 @@ export type DevopsEnvironmentQueue = {
36326
36728
  */
36327
36729
  active?: string;
36328
36730
  /**
36329
- * How many promotions are queued behind the active one; they run in the order they were created.
36731
+ * How many promotions of the environment's own queue are in state queued; they run in the order they were created. Async-lane promotions hold a per-target lock instead and are not counted.
36330
36732
  */
36331
36733
  waiting: number;
36332
36734
  };
@@ -36692,9 +37094,9 @@ export type DevopsChangePullRequestRef = {
36692
37094
  */
36693
37095
  export type DevopsChangeStageDetail = {
36694
37096
  /**
36695
- * The change's position; with several pull requests it is the slice furthest behind.
37097
+ * 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.
36696
37098
  */
36697
- stage: 'developing' | 'reviewing' | 'merged' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
37099
+ stage: 'developing' | 'reviewing' | 'integrating' | 'integrated' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
36698
37100
  /**
36699
37101
  * The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one.
36700
37102
  */
@@ -36801,6 +37203,32 @@ export type DevopsMergeGate = {
36801
37203
  */
36802
37204
  decideTime?: string;
36803
37205
  };
37206
+ /**
37207
+ * 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.
37208
+ */
37209
+ export type DevopsReviewVerdict = {
37210
+ /**
37211
+ * passed when the reviewer found nothing wrong, failed when they found something to fix or roll back.
37212
+ */
37213
+ result: 'passed' | 'failed';
37214
+ /**
37215
+ * What the reviewer found, in a sentence a reader can act on.
37216
+ */
37217
+ reason: string;
37218
+ by: DevopsActor;
37219
+ /**
37220
+ * The commit the review is about.
37221
+ */
37222
+ headSha: string;
37223
+ /**
37224
+ * RFC 3339 UTC time the verdict was recorded.
37225
+ */
37226
+ time: string;
37227
+ /**
37228
+ * True when the pull request had already merged when the verdict was recorded; a failed verdict with merged true is a finding.
37229
+ */
37230
+ merged: boolean;
37231
+ };
36804
37232
  /**
36805
37233
  * The GitHub account an installation belongs to.
36806
37234
  */
@@ -36917,7 +37345,7 @@ export type DevopsWorkspaceUpdateFields = {
36917
37345
  enabled?: boolean;
36918
37346
  };
36919
37347
  /**
36920
- * 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.
37348
+ * 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.
36921
37349
  */
36922
37350
  vaults?: Array<string>;
36923
37351
  };
@@ -37069,6 +37497,63 @@ export type DevopsUnitTransition = {
37069
37497
  */
37070
37498
  error: null | DevopsUnitTransitionError;
37071
37499
  };
37500
+ /**
37501
+ * One cleanup action the job decided and carried out (or tried to).
37502
+ */
37503
+ export type DevopsCleanupEntry = {
37504
+ /**
37505
+ * The ledger row's id.
37506
+ */
37507
+ id: string;
37508
+ /**
37509
+ * Always cleanup.
37510
+ */
37511
+ object: string;
37512
+ /**
37513
+ * When the action was decided (RFC 3339).
37514
+ */
37515
+ createTime: string;
37516
+ /**
37517
+ * When the action was last touched: done, or decided when it is not done yet.
37518
+ */
37519
+ updateTime: string;
37520
+ /**
37521
+ * The Console page of the project the action belongs to.
37522
+ */
37523
+ viewerUrl: string;
37524
+ /**
37525
+ * The project the action belongs to.
37526
+ */
37527
+ project: string;
37528
+ /**
37529
+ * What was cleaned.
37530
+ */
37531
+ kind: 'branch' | 'unit' | 'evidence' | 'prebuild';
37532
+ /**
37533
+ * Which one: branch name and pull request number, unit id, evidence table and cutoff day, or prebuild id.
37534
+ */
37535
+ subject: string;
37536
+ /**
37537
+ * archive keeps the record and drops the heavy content; delete removes it.
37538
+ */
37539
+ action: 'archive' | 'delete';
37540
+ /**
37541
+ * 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.
37542
+ */
37543
+ reason: string;
37544
+ /**
37545
+ * When the job decided the action (RFC 3339).
37546
+ */
37547
+ decidedAt: string;
37548
+ /**
37549
+ * When the action was carried out; null while it is not done.
37550
+ */
37551
+ doneAt: string | null;
37552
+ /**
37553
+ * Why the last attempt failed; null once it is done. A failed action stays open and is tried again by the next run.
37554
+ */
37555
+ error: string | null;
37556
+ };
37072
37557
  /**
37073
37558
  * Counts of files still attached to the store or batch, grouped by ingestion status.
37074
37559
  */
@@ -38637,6 +39122,56 @@ export type RegistryRegistryError = {
38637
39122
  };
38638
39123
  };
38639
39124
  };
39125
+ /**
39126
+ * 一个 git 提交。
39127
+ */
39128
+ export type RegistryGitCommit = {
39129
+ /**
39130
+ * 对象类型标记,固定为 registry.git.commit。
39131
+ */
39132
+ object: string;
39133
+ /**
39134
+ * 提交的对象 id。
39135
+ */
39136
+ sha: string;
39137
+ /**
39138
+ * 提交信息原文,含换行。
39139
+ */
39140
+ message: string;
39141
+ /**
39142
+ * 作者名;仓库没有给出名字时是空串。
39143
+ */
39144
+ author: string;
39145
+ /**
39146
+ * 作者邮箱;仓库给了才有。
39147
+ */
39148
+ author_email?: string;
39149
+ /**
39150
+ * 提交时间的 RFC 3339 时间戳;后端没给时是空串。
39151
+ */
39152
+ committed_at: string;
39153
+ /**
39154
+ * 父提交的对象 id,按顺序。
39155
+ */
39156
+ parents: Array<string>;
39157
+ };
39158
+ /**
39159
+ * 一次提交或比较改动的一个文件。
39160
+ */
39161
+ export type RegistryGitChangedFile = {
39162
+ /**
39163
+ * 文件路径,相对仓库根;改名时是新路径。
39164
+ */
39165
+ path: string;
39166
+ /**
39167
+ * 这个文件怎么变的。
39168
+ */
39169
+ status: 'added' | 'modified' | 'removed' | 'renamed';
39170
+ /**
39171
+ * 改名前的路径;只有 status 为 renamed 时才有。
39172
+ */
39173
+ previous_path?: string;
39174
+ };
38640
39175
  /**
38641
39176
  * 树里的一个条目。
38642
39177
  */
@@ -38662,6 +39197,65 @@ export type RegistryGitTreeEntry = {
38662
39197
  */
38663
39198
  size?: number;
38664
39199
  };
39200
+ /**
39201
+ * 一个分支或标签。
39202
+ */
39203
+ export type RegistryGitRefItem = {
39204
+ /**
39205
+ * 引用的全名,分支以 refs/heads/ 开头,标签以 refs/tags/ 开头。
39206
+ */
39207
+ ref: string;
39208
+ /**
39209
+ * 它指向的提交 id;带注解的标签给的是标签下面的提交。
39210
+ */
39211
+ sha: string;
39212
+ /**
39213
+ * 引用的种类,分支或标签,由全名的前缀决定。
39214
+ */
39215
+ type: 'branch' | 'tag';
39216
+ };
39217
+ /**
39218
+ * 比较结果里的一个提交。
39219
+ */
39220
+ export type RegistryGitComparedCommit = {
39221
+ /**
39222
+ * 提交的对象 id。
39223
+ */
39224
+ sha: string;
39225
+ /**
39226
+ * 提交信息的第一行。
39227
+ */
39228
+ subject: string;
39229
+ /**
39230
+ * 这个提交的作者名;仓库没有给出名字时是空串。
39231
+ */
39232
+ author: string;
39233
+ };
39234
+ /**
39235
+ * 递归树里的一个条目。
39236
+ */
39237
+ export type RegistryGitTreeNode = {
39238
+ /**
39239
+ * 相对根的完整路径,用斜杠分隔。
39240
+ */
39241
+ path: string;
39242
+ /**
39243
+ * 条目指向的对象类型;commit 是子模块,不展开。
39244
+ */
39245
+ type: 'blob' | 'tree' | 'commit';
39246
+ /**
39247
+ * git 的模式位,例如 100644、100755、120000 或 040000。
39248
+ */
39249
+ mode: string;
39250
+ /**
39251
+ * 条目指向的对象 id。
39252
+ */
39253
+ sha: string;
39254
+ /**
39255
+ * 对象大小(字节),后端给出时才有。
39256
+ */
39257
+ size?: number;
39258
+ };
38665
39259
  /**
38666
39260
  * 一个版本解压后的一个文件条目。
38667
39261
  */
@@ -44599,6 +45193,40 @@ export type DevopsMirrorState = {
44599
45193
  */
44600
45194
  error?: string;
44601
45195
  };
45196
+ /**
45197
+ * 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.
45198
+ */
45199
+ export type DevopsProjectRetention = {
45200
+ /**
45201
+ * 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.
45202
+ */
45203
+ deleteMergedBranch?: boolean;
45204
+ /**
45205
+ * 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.
45206
+ */
45207
+ stoppedUnitDays?: number;
45208
+ /**
45209
+ * 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.
45210
+ */
45211
+ evidenceDays?: number;
45212
+ /**
45213
+ * How many ready prebuilds each workspace keeps, newest first; older ones are archived and their snapshots deleted. Default 2.
45214
+ */
45215
+ prebuildVersions?: number;
45216
+ };
45217
+ /**
45218
+ * How the project deploys. Every item may be left out; an update naming one item replaces the whole deploy object.
45219
+ */
45220
+ export type DevopsProjectDeploySettings = {
45221
+ /**
45222
+ * Which version of the deploy engine (the published @deepraxis/cli, which carries praxis devops deploy, the OpenTofu orchestration and the built-in cloudflare and npm adapters) runs this project's promotions. latest, the default, is the newest version on npm's latest tag; dev is the newest on the dev tag, meant for develop; anything else must be an exact version such as 0.6.0 that is published on npm. The setting is resolved to an exact version when a promotion is created and recorded on it as engineVersion. A request the resolved version cannot serve is refused at create with ENGINE_TOO_OLD, naming the option and the first version that has it (for example dependencies skip needs 0.6.0); a registry that cannot be read, or a pin that is not published, is refused with ENGINE_UNAVAILABLE.
45223
+ */
45224
+ engine?: string;
45225
+ /**
45226
+ * Which machine a promotion is built on. slim, the default, is the 4 vCPU / 8 GB builder the pipeline has always used; spot is a 16 vCPU / 32 GB Alibaba Cloud ECI spot machine, created ephemeral and interruptible, on which the CLI overlaps sixteen deploy targets instead of four. A spot machine can be reclaimed by the vendor mid-run; when that happens the run is started once more on a fresh machine, and a second loss fails the promotion. Leave it out and the project keeps using slim.
45227
+ */
45228
+ builder?: 'slim' | 'spot';
45229
+ };
44602
45230
  /**
44603
45231
  * One target's render result inside a release.
44604
45232
  */
@@ -44670,7 +45298,7 @@ export type DevopsPlanRefusal = {
44670
45298
  /**
44671
45299
  * Which rule refused, which is the value a caller branches on; the remaining fields carry that rule's own evidence.
44672
45300
  */
44673
- 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';
45301
+ 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';
44674
45302
  /**
44675
45303
  * The commit this refusal is about, present for the pick rules; it is the pick the request carried.
44676
45304
  */
@@ -48622,7 +49250,7 @@ export type DevopsEnvironmentQuery = string;
48622
49250
  */
48623
49251
  export type DevopsSegmentIdPath = string;
48624
49252
  /**
48625
- * 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.
49253
+ * 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.
48626
49254
  */
48627
49255
  export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
48628
49256
  /**
@@ -48693,6 +49321,34 @@ export type RegistryGitLogOffset = number;
48693
49321
  * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
48694
49322
  */
48695
49323
  export type RegistryGitObjectId = string;
49324
+ /**
49325
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
49326
+ */
49327
+ export type RegistryGitChangedFiles = boolean;
49328
+ /**
49329
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
49330
+ */
49331
+ export type RegistryGitRefPrefix = 'refs/heads/' | 'refs/tags/';
49332
+ /**
49333
+ * 页码,从 1 起,默认 1。
49334
+ */
49335
+ export type RegistryGitRefsPage = number;
49336
+ /**
49337
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
49338
+ */
49339
+ export type RegistryGitRefsSize = number;
49340
+ /**
49341
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
49342
+ */
49343
+ export type RegistryGitResolveRef = string;
49344
+ /**
49345
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
49346
+ */
49347
+ export type RegistryGitCompareBase = string;
49348
+ /**
49349
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
49350
+ */
49351
+ export type RegistryGitCompareHead = string;
48696
49352
  /**
48697
49353
  * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
48698
49354
  */
@@ -53716,9 +54372,13 @@ export type GetAgentEmbedPolicyResponses = {
53716
54372
  */
53717
54373
  daily_session_cap: number | null;
53718
54374
  /**
53719
- * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
54375
+ * The most this agent's share links may spend in one UTC day, in millionths of `currency` (whole minor units), or null for no spending cap. The name is historical: the amount is in the account's currency, not always USD. Default 5000000 (5 units).
53720
54376
  */
53721
54377
  daily_spend_cap_micro_usd: number | null;
54378
+ /**
54379
+ * The currency daily_spend_cap_micro_usd is in: the account's settlement currency (CNY for a mainland account, USD for a global one), or null for a policy saved before the currency was recorded, which is read in the account's settlement currency. Read only: it is set with the budgets in the console.
54380
+ */
54381
+ currency?: 'USD' | 'CNY' | null;
53722
54382
  };
53723
54383
  };
53724
54384
  };
@@ -53766,7 +54426,7 @@ export type UpdateAgentEmbedPolicyData = {
53766
54426
  */
53767
54427
  daily_session_cap?: number | null;
53768
54428
  /**
53769
- * The most the agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap.
54429
+ * The most the agent's share links may spend in one UTC day, in millionths of the account's currency (whole minor units; see `currency` on the share_links you read back), or null for no spending cap.
53770
54430
  */
53771
54431
  daily_spend_cap_micro_usd?: number | null;
53772
54432
  };
@@ -53854,9 +54514,13 @@ export type UpdateAgentEmbedPolicyResponses = {
53854
54514
  */
53855
54515
  daily_session_cap: number | null;
53856
54516
  /**
53857
- * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
54517
+ * The most this agent's share links may spend in one UTC day, in millionths of `currency` (whole minor units), or null for no spending cap. The name is historical: the amount is in the account's currency, not always USD. Default 5000000 (5 units).
53858
54518
  */
53859
54519
  daily_spend_cap_micro_usd: number | null;
54520
+ /**
54521
+ * The currency daily_spend_cap_micro_usd is in: the account's settlement currency (CNY for a mainland account, USD for a global one), or null for a policy saved before the currency was recorded, which is read in the account's settlement currency. Read only: it is set with the budgets in the console.
54522
+ */
54523
+ currency?: 'USD' | 'CNY' | null;
53860
54524
  };
53861
54525
  };
53862
54526
  };
@@ -56307,8 +56971,14 @@ export type ComputersFilesContentResponses = {
56307
56971
  206: Blob | File;
56308
56972
  };
56309
56973
  export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
56310
- export type PreviewComputerFileData = {
56311
- body?: never;
56974
+ export type UpdateComputerFileContentData = {
56975
+ body: Blob | File;
56976
+ headers: {
56977
+ /**
56978
+ * The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted.
56979
+ */
56980
+ 'If-Match': string;
56981
+ };
56312
56982
  path: {
56313
56983
  /**
56314
56984
  * Computer id from computer creation or listing; a computer another tenant owns is not found.
@@ -56317,23 +56987,15 @@ export type PreviewComputerFileData = {
56317
56987
  };
56318
56988
  query: {
56319
56989
  /**
56320
- * Absolute path of the file on the computer, or a /workspace/ relative path.
56990
+ * Absolute path of the existing file on the computer, or a /workspace/ relative path.
56321
56991
  */
56322
56992
  path: string;
56323
- /**
56324
- * The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake.
56325
- */
56326
- v?: string;
56327
- /**
56328
- * The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE.
56329
- */
56330
- variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
56331
56993
  };
56332
- url: '/agent/v1/computers/{computer_id}/files/preview';
56994
+ url: '/agent/v1/computers/{computer_id}/files/content';
56333
56995
  };
56334
- export type PreviewComputerFileErrors = {
56996
+ export type UpdateComputerFileContentErrors = {
56335
56997
  /**
56336
- * INVALID_PARAMS: path is missing, a query parameter is unsupported, the pinned version is malformed, or PREVIEW_VARIANT_UNAVAILABLE: this file has no such variant.
56998
+ * INVALID_PARAMS: path is missing, a query parameter is unsupported, or the path is a directory (IS_DIRECTORY).
56337
56999
  */
56338
57000
  400: {
56339
57001
  type: 'error';
@@ -56379,7 +57041,7 @@ export type PreviewComputerFileErrors = {
56379
57041
  request_id: string;
56380
57042
  };
56381
57043
  /**
56382
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57044
+ * READ_ONLY: the path is under /attachments or /skills.
56383
57045
  */
56384
57046
  403: {
56385
57047
  type: 'error';
@@ -56402,7 +57064,7 @@ export type PreviewComputerFileErrors = {
56402
57064
  request_id: string;
56403
57065
  };
56404
57066
  /**
56405
- * Computer or path not found; foreign computers are indistinguishable from absent computers.
57067
+ * Computer or path not found; foreign computers are indistinguishable from absent computers, and a write never creates a file.
56406
57068
  */
56407
57069
  404: {
56408
57070
  type: 'error';
@@ -56425,9 +57087,9 @@ export type PreviewComputerFileErrors = {
56425
57087
  request_id: string;
56426
57088
  };
56427
57089
  /**
56428
- * STALE_DIGEST: the file changed while its product was read; ask again.
57090
+ * FILE_VERSION_MISMATCH: the file changed since the version in If-Match; error.current_version is its version now. Nothing was written.
56429
57091
  */
56430
- 409: {
57092
+ 412: {
56431
57093
  type: 'error';
56432
57094
  error: {
56433
57095
  /**
@@ -56441,6 +57103,10 @@ export type PreviewComputerFileErrors = {
56441
57103
  * How to recover, for computer failures.
56442
57104
  */
56443
57105
  hint?: string;
57106
+ /**
57107
+ * The file's version now (<size>-<mtimeMs>); read the file again and write with this version.
57108
+ */
57109
+ current_version?: string;
56444
57110
  };
56445
57111
  /**
56446
57112
  * Equals the X-Request-Id response header.
@@ -56448,7 +57114,288 @@ export type PreviewComputerFileErrors = {
56448
57114
  request_id: string;
56449
57115
  };
56450
57116
  /**
56451
- * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
57117
+ * FILE_TOO_LARGE: the body exceeds 16 MiB.
57118
+ */
57119
+ 413: {
57120
+ type: 'error';
57121
+ error: {
57122
+ /**
57123
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57124
+ */
57125
+ type: string;
57126
+ message: string;
57127
+ code: string;
57128
+ retryable: boolean;
57129
+ /**
57130
+ * How to recover, for computer failures.
57131
+ */
57132
+ hint?: string;
57133
+ };
57134
+ /**
57135
+ * Equals the X-Request-Id response header.
57136
+ */
57137
+ request_id: string;
57138
+ };
57139
+ /**
57140
+ * FILE_VERSION_REQUIRED: If-Match is missing. Nothing was written.
57141
+ */
57142
+ 428: {
57143
+ type: 'error';
57144
+ error: {
57145
+ /**
57146
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57147
+ */
57148
+ type: string;
57149
+ message: string;
57150
+ code: string;
57151
+ retryable: boolean;
57152
+ /**
57153
+ * How to recover, for computer failures.
57154
+ */
57155
+ hint?: string;
57156
+ };
57157
+ /**
57158
+ * Equals the X-Request-Id response header.
57159
+ */
57160
+ request_id: string;
57161
+ };
57162
+ /**
57163
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57164
+ */
57165
+ 429: {
57166
+ type: 'error';
57167
+ error: {
57168
+ /**
57169
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57170
+ */
57171
+ type: string;
57172
+ message: string;
57173
+ code: string;
57174
+ retryable: boolean;
57175
+ /**
57176
+ * How to recover, for computer failures.
57177
+ */
57178
+ hint?: string;
57179
+ };
57180
+ /**
57181
+ * Equals the X-Request-Id response header.
57182
+ */
57183
+ request_id: string;
57184
+ };
57185
+ /**
57186
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57187
+ */
57188
+ 500: {
57189
+ type: 'error';
57190
+ error: {
57191
+ /**
57192
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57193
+ */
57194
+ type: string;
57195
+ message: string;
57196
+ code: string;
57197
+ retryable: boolean;
57198
+ /**
57199
+ * How to recover, for computer failures.
57200
+ */
57201
+ hint?: string;
57202
+ };
57203
+ /**
57204
+ * Equals the X-Request-Id response header.
57205
+ */
57206
+ request_id: string;
57207
+ };
57208
+ /**
57209
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57210
+ */
57211
+ 503: {
57212
+ type: 'error';
57213
+ error: {
57214
+ /**
57215
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57216
+ */
57217
+ type: string;
57218
+ message: string;
57219
+ code: string;
57220
+ retryable: boolean;
57221
+ /**
57222
+ * How to recover, for computer failures.
57223
+ */
57224
+ hint?: string;
57225
+ };
57226
+ /**
57227
+ * Equals the X-Request-Id response header.
57228
+ */
57229
+ request_id: string;
57230
+ };
57231
+ };
57232
+ export type UpdateComputerFileContentError = UpdateComputerFileContentErrors[keyof UpdateComputerFileContentErrors];
57233
+ export type UpdateComputerFileContentResponses = {
57234
+ /**
57235
+ * The file after the write.
57236
+ */
57237
+ 200: {
57238
+ /**
57239
+ * Absolute path of the file that was written.
57240
+ */
57241
+ path: string;
57242
+ /**
57243
+ * Size of the file now, in bytes.
57244
+ */
57245
+ size: number;
57246
+ /**
57247
+ * Modification time of the file now, when the machine reports one.
57248
+ */
57249
+ mtime: string | null;
57250
+ /**
57251
+ * The file's version now (<size>-<mtimeMs>); send it as If-Match on the next write.
57252
+ */
57253
+ version: string;
57254
+ };
57255
+ };
57256
+ export type UpdateComputerFileContentResponse = UpdateComputerFileContentResponses[keyof UpdateComputerFileContentResponses];
57257
+ export type PreviewComputerFileData = {
57258
+ body?: never;
57259
+ path: {
57260
+ /**
57261
+ * Computer id from computer creation or listing; a computer another tenant owns is not found.
57262
+ */
57263
+ computer_id: string;
57264
+ };
57265
+ query: {
57266
+ /**
57267
+ * Absolute path of the file on the computer, or a /workspace/ relative path.
57268
+ */
57269
+ path: string;
57270
+ /**
57271
+ * The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake.
57272
+ */
57273
+ v?: string;
57274
+ /**
57275
+ * The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE.
57276
+ */
57277
+ variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
57278
+ };
57279
+ url: '/agent/v1/computers/{computer_id}/files/preview';
57280
+ };
57281
+ export type PreviewComputerFileErrors = {
57282
+ /**
57283
+ * INVALID_PARAMS: path is missing, a query parameter is unsupported, the pinned version is malformed, or PREVIEW_VARIANT_UNAVAILABLE: this file has no such variant.
57284
+ */
57285
+ 400: {
57286
+ type: 'error';
57287
+ error: {
57288
+ /**
57289
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57290
+ */
57291
+ type: string;
57292
+ message: string;
57293
+ code: string;
57294
+ retryable: boolean;
57295
+ /**
57296
+ * How to recover, for computer failures.
57297
+ */
57298
+ hint?: string;
57299
+ };
57300
+ /**
57301
+ * Equals the X-Request-Id response header.
57302
+ */
57303
+ request_id: string;
57304
+ };
57305
+ /**
57306
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57307
+ */
57308
+ 401: {
57309
+ type: 'error';
57310
+ error: {
57311
+ /**
57312
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57313
+ */
57314
+ type: string;
57315
+ message: string;
57316
+ code: string;
57317
+ retryable: boolean;
57318
+ /**
57319
+ * How to recover, for computer failures.
57320
+ */
57321
+ hint?: string;
57322
+ };
57323
+ /**
57324
+ * Equals the X-Request-Id response header.
57325
+ */
57326
+ request_id: string;
57327
+ };
57328
+ /**
57329
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57330
+ */
57331
+ 403: {
57332
+ type: 'error';
57333
+ error: {
57334
+ /**
57335
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57336
+ */
57337
+ type: string;
57338
+ message: string;
57339
+ code: string;
57340
+ retryable: boolean;
57341
+ /**
57342
+ * How to recover, for computer failures.
57343
+ */
57344
+ hint?: string;
57345
+ };
57346
+ /**
57347
+ * Equals the X-Request-Id response header.
57348
+ */
57349
+ request_id: string;
57350
+ };
57351
+ /**
57352
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
57353
+ */
57354
+ 404: {
57355
+ type: 'error';
57356
+ error: {
57357
+ /**
57358
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57359
+ */
57360
+ type: string;
57361
+ message: string;
57362
+ code: string;
57363
+ retryable: boolean;
57364
+ /**
57365
+ * How to recover, for computer failures.
57366
+ */
57367
+ hint?: string;
57368
+ };
57369
+ /**
57370
+ * Equals the X-Request-Id response header.
57371
+ */
57372
+ request_id: string;
57373
+ };
57374
+ /**
57375
+ * STALE_DIGEST: the file changed while its product was read; ask again.
57376
+ */
57377
+ 409: {
57378
+ type: 'error';
57379
+ error: {
57380
+ /**
57381
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57382
+ */
57383
+ type: string;
57384
+ message: string;
57385
+ code: string;
57386
+ retryable: boolean;
57387
+ /**
57388
+ * How to recover, for computer failures.
57389
+ */
57390
+ hint?: string;
57391
+ };
57392
+ /**
57393
+ * Equals the X-Request-Id response header.
57394
+ */
57395
+ request_id: string;
57396
+ };
57397
+ /**
57398
+ * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
56452
57399
  */
56453
57400
  413: {
56454
57401
  type: 'error';
@@ -71645,9 +72592,9 @@ export type CreateOrganizationFeedbackData = {
71645
72592
  };
71646
72593
  };
71647
72594
  /**
71648
- * Use console for Console reports or api for API callers (default); machine tokens always store codemode regardless of this value.
72595
+ * 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.
71649
72596
  */
71650
- source?: 'console' | 'api';
72597
+ source?: 'console' | 'api' | 'codemode';
71651
72598
  /**
71652
72599
  * Up to five attachments; decoded bytes must not exceed 10 MiB per attachment or 20 MiB in total.
71653
72600
  */
@@ -74706,12 +75653,17 @@ export type ReviseOrganizationSpecData = {
74706
75653
  */
74707
75654
  id: string;
74708
75655
  };
74709
- query?: never;
75656
+ query?: {
75657
+ /**
75658
+ * true checks everything and writes nothing, answering the preview; false or omitted writes.
75659
+ */
75660
+ dry_run?: boolean;
75661
+ };
74710
75662
  url: '/organization/v1/specs/{kind}/{id}';
74711
75663
  };
74712
75664
  export type ReviseOrganizationSpecErrors = {
74713
75665
  /**
74714
- * 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.
75666
+ * INVALID_PARAMS; the spec or metadata.revision is missing or not an integer, api_version is not organization/v1, labels or annotations exceed their limits, a block is outside the registry or a body field is unknown. The message names the field or block to fix.
74715
75667
  */
74716
75668
  400: OrganizationProblem;
74717
75669
  /**
@@ -74734,9 +75686,9 @@ export type ReviseOrganizationSpecErrors = {
74734
75686
  export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
74735
75687
  export type ReviseOrganizationSpecResponses = {
74736
75688
  /**
74737
- * The spec after the revision, at the new revision number.
75689
+ * The spec after the revision at the new revision number; with dry_run=true, the preview instead and nothing is written.
74738
75690
  */
74739
- 200: OrganizationSpec;
75691
+ 200: OrganizationSpec | OrganizationSpecDryRun;
74740
75692
  };
74741
75693
  export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
74742
75694
  export type ListOrganizationSpecRevisionsData = {
@@ -74884,6 +75836,30 @@ export type GetOrganizationEffectiveSpecResponses = {
74884
75836
  200: OrganizationEffectiveSpec;
74885
75837
  };
74886
75838
  export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
75839
+ export type GetOrganizationSpecSchemaData = {
75840
+ body?: never;
75841
+ path?: never;
75842
+ query?: never;
75843
+ url: '/organization/v1/spec_schema';
75844
+ };
75845
+ export type GetOrganizationSpecSchemaErrors = {
75846
+ /**
75847
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75848
+ */
75849
+ 401: unknown;
75850
+ /**
75851
+ * 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.
75852
+ */
75853
+ 403: OrganizationProblem;
75854
+ };
75855
+ export type GetOrganizationSpecSchemaError = GetOrganizationSpecSchemaErrors[keyof GetOrganizationSpecSchemaErrors];
75856
+ export type GetOrganizationSpecSchemaResponses = {
75857
+ /**
75858
+ * The JSON Schema of a spec body.
75859
+ */
75860
+ 200: OrganizationSpecSchema;
75861
+ };
75862
+ export type GetOrganizationSpecSchemaResponse = GetOrganizationSpecSchemaResponses[keyof GetOrganizationSpecSchemaResponses];
74887
75863
  export type PlanOrganizationReconcileData = {
74888
75864
  body?: never;
74889
75865
  path?: never;
@@ -76571,6 +77547,10 @@ export type ClaimByodPairingData = {
76571
77547
  * The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
76572
77548
  */
76573
77549
  os_version?: string;
77550
+ /**
77551
+ * A stable key the app reads from the phone itself (Android: ANDROID_ID), 8 to 128 characters of letters, digits, underscore and hyphen; any other value answers INVALID_PARAMS. The service keeps only a hash scoped to the organization and platform. When the same organization already has a device with this key, even a disconnected one, the claim reuses that device: the same device_id comes back with a new credential, the old connection is closed, and its name is kept. Omit it and every claim registers a new device.
77552
+ */
77553
+ device_key?: string;
76574
77554
  };
76575
77555
  path: {
76576
77556
  /**
@@ -76605,7 +77585,7 @@ export type ClaimByodPairingResponses = {
76605
77585
  */
76606
77586
  credential: string;
76607
77587
  /**
76608
- * 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.
77588
+ * 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.
76609
77589
  */
76610
77590
  socket_url: string;
76611
77591
  };
@@ -99498,6 +100478,10 @@ export type DevopsTestPlanGetData = {
99498
100478
  * 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.
99499
100479
  */
99500
100480
  base?: string;
100481
+ /**
100482
+ * 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.
100483
+ */
100484
+ view?: 'full' | 'summary';
99501
100485
  };
99502
100486
  url: '/devops/v1/projects/{project}/test-plan';
99503
100487
  };
@@ -99572,6 +100556,97 @@ export type DevopsProjectsListResponses = {
99572
100556
  200: DevopsProjectPage;
99573
100557
  };
99574
100558
  export type DevopsProjectsListResponse = DevopsProjectsListResponses[keyof DevopsProjectsListResponses];
100559
+ export type DevopsProjectsCreateData = {
100560
+ /**
100561
+ * The project's name and where its code lives: a git package of our own Git, or a GitHub repository.
100562
+ */
100563
+ body: DevopsProjectCreate;
100564
+ path?: never;
100565
+ query?: never;
100566
+ url: '/devops/v1/projects';
100567
+ };
100568
+ export type DevopsProjectsCreateErrors = {
100569
+ /**
100570
+ * 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.
100571
+ */
100572
+ 400: DevopsDevOpsError;
100573
+ /**
100574
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100575
+ */
100576
+ 401: DevopsDevOpsError;
100577
+ /**
100578
+ * 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.
100579
+ */
100580
+ 403: DevopsDevOpsError;
100581
+ /**
100582
+ * 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.
100583
+ */
100584
+ 404: DevopsDevOpsError;
100585
+ /**
100586
+ * 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.
100587
+ */
100588
+ 409: DevopsDevOpsError;
100589
+ /**
100590
+ * 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.
100591
+ */
100592
+ 500: DevopsDevOpsError;
100593
+ };
100594
+ export type DevopsProjectsCreateError = DevopsProjectsCreateErrors[keyof DevopsProjectsCreateErrors];
100595
+ export type DevopsProjectsCreateResponses = {
100596
+ /**
100597
+ * The created project with its repository binding, settings and labels.
100598
+ */
100599
+ 200: DevopsProject;
100600
+ };
100601
+ export type DevopsProjectsCreateResponse = DevopsProjectsCreateResponses[keyof DevopsProjectsCreateResponses];
100602
+ export type DevopsProjectsInitializeDefaultBranchData = {
100603
+ /**
100604
+ * The existing branch to start the default branch from.
100605
+ */
100606
+ body: DevopsDefaultBranchInitialize;
100607
+ path: {
100608
+ /**
100609
+ * The project identifier returned by the project list, not the project's display name or its repository name.
100610
+ */
100611
+ id: string;
100612
+ };
100613
+ query?: never;
100614
+ url: '/devops/v1/projects/{id}/default-branch:initialize';
100615
+ };
100616
+ export type DevopsProjectsInitializeDefaultBranchErrors = {
100617
+ /**
100618
+ * 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.
100619
+ */
100620
+ 400: DevopsDevOpsError;
100621
+ /**
100622
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100623
+ */
100624
+ 401: DevopsDevOpsError;
100625
+ /**
100626
+ * 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.
100627
+ */
100628
+ 403: DevopsDevOpsError;
100629
+ /**
100630
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
100631
+ */
100632
+ 404: DevopsDevOpsError;
100633
+ /**
100634
+ * DEFAULT_BRANCH_EXISTS means the default branch is already there; it is never moved by this call.
100635
+ */
100636
+ 409: DevopsDevOpsError;
100637
+ /**
100638
+ * 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.
100639
+ */
100640
+ 500: DevopsDevOpsError;
100641
+ };
100642
+ export type DevopsProjectsInitializeDefaultBranchError = DevopsProjectsInitializeDefaultBranchErrors[keyof DevopsProjectsInitializeDefaultBranchErrors];
100643
+ export type DevopsProjectsInitializeDefaultBranchResponses = {
100644
+ /**
100645
+ * The default branch now exists: its name, the branch it was started from and the commit it points at.
100646
+ */
100647
+ 200: DevopsDefaultBranchInitialized;
100648
+ };
100649
+ export type DevopsProjectsInitializeDefaultBranchResponse = DevopsProjectsInitializeDefaultBranchResponses[keyof DevopsProjectsInitializeDefaultBranchResponses];
99575
100650
  export type DevopsProjectsGetData = {
99576
100651
  body?: never;
99577
100652
  path: {
@@ -99891,6 +100966,10 @@ export type DevopsPromotionsListData = {
99891
100966
  * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
99892
100967
  */
99893
100968
  pageToken?: string;
100969
+ /**
100970
+ * true lists only the forced expresses (promotions created with dependencies skip), which is how a reviewer finds them after the fact; false lists only the others; omit it for every promotion.
100971
+ */
100972
+ forced?: boolean;
99894
100973
  };
99895
100974
  url: '/devops/v1/projects/{project}/promotions';
99896
100975
  };
@@ -100142,6 +101221,55 @@ export type DevopsPromotionsConcludeResponses = {
100142
101221
  200: DevopsPromotion;
100143
101222
  };
100144
101223
  export type DevopsPromotionsConcludeResponse = DevopsPromotionsConcludeResponses[keyof DevopsPromotionsConcludeResponses];
101224
+ export type DevopsPromotionsCheckoutCredentialData = {
101225
+ body?: never;
101226
+ path: {
101227
+ /**
101228
+ * The promotion identifier returned by a promotion list or create answer.
101229
+ */
101230
+ id: string;
101231
+ };
101232
+ query?: never;
101233
+ url: '/devops/v1/promotions/{id}:checkoutCredential';
101234
+ };
101235
+ export type DevopsPromotionsCheckoutCredentialErrors = {
101236
+ /**
101237
+ * 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.
101238
+ */
101239
+ 400: DevopsDevOpsError;
101240
+ /**
101241
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
101242
+ */
101243
+ 401: DevopsDevOpsError;
101244
+ /**
101245
+ * 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.
101246
+ */
101247
+ 403: DevopsDevOpsError;
101248
+ /**
101249
+ * 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.
101250
+ */
101251
+ 404: DevopsDevOpsError;
101252
+ /**
101253
+ * 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.
101254
+ */
101255
+ 409: DevopsDevOpsError;
101256
+ /**
101257
+ * 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.
101258
+ */
101259
+ 500: DevopsDevOpsError;
101260
+ /**
101261
+ * REGISTRY_UNAVAILABLE means the platform's Git registry would not issue a credential just now; the machine retries the request shortly.
101262
+ */
101263
+ 502: DevopsDevOpsError;
101264
+ };
101265
+ export type DevopsPromotionsCheckoutCredentialError = DevopsPromotionsCheckoutCredentialErrors[keyof DevopsPromotionsCheckoutCredentialErrors];
101266
+ export type DevopsPromotionsCheckoutCredentialResponses = {
101267
+ /**
101268
+ * 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.
101269
+ */
101270
+ 200: DevopsCheckoutCredential;
101271
+ };
101272
+ export type DevopsPromotionsCheckoutCredentialResponse = DevopsPromotionsCheckoutCredentialResponses[keyof DevopsPromotionsCheckoutCredentialResponses];
100145
101273
  export type DevopsRolloutsListData = {
100146
101274
  body?: never;
100147
101275
  path: {
@@ -101560,7 +102688,7 @@ export type DevopsChangesOpenPullRequestErrors = {
101560
102688
  export type DevopsChangesOpenPullRequestError = DevopsChangesOpenPullRequestErrors[keyof DevopsChangesOpenPullRequestErrors];
101561
102689
  export type DevopsChangesOpenPullRequestResponses = {
101562
102690
  /**
101563
- * 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.
102691
+ * 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.
101564
102692
  */
101565
102693
  200: DevopsChangePullRequestOpened;
101566
102694
  };
@@ -101635,6 +102763,10 @@ export type DevopsPullRequestsListData = {
101635
102763
  * 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.
101636
102764
  */
101637
102765
  reviewer?: string;
102766
+ /**
102767
+ * 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.
102768
+ */
102769
+ reviewed?: boolean;
101638
102770
  };
101639
102771
  url: '/devops/v1/projects/{project}/pull-requests';
101640
102772
  };
@@ -101784,7 +102916,7 @@ export type DevopsPullRequestsMergeErrors = {
101784
102916
  */
101785
102917
  404: DevopsDevOpsError;
101786
102918
  /**
101787
- * 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.
102919
+ * 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.
101788
102920
  */
101789
102921
  409: DevopsDevOpsError;
101790
102922
  /**
@@ -101836,7 +102968,7 @@ export type DevopsPullRequestsRecordVerdictErrors = {
101836
102968
  export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
101837
102969
  export type DevopsPullRequestsRecordVerdictResponses = {
101838
102970
  /**
101839
- * The pull request with the gate it now reaches, the exposure-judged check showing the verdict and its reason.
102971
+ * The pull request with the review recorded on it; its gate is unchanged.
101840
102972
  */
101841
102973
  200: DevopsPullRequest;
101842
102974
  };
@@ -101886,6 +103018,51 @@ export type DevopsPullRequestsCloseResponses = {
101886
103018
  200: DevopsPullRequest;
101887
103019
  };
101888
103020
  export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
103021
+ export type DevopsPullRequestsReviewsCreateData = {
103022
+ body: DevopsPullRequestReviewRequest;
103023
+ path: {
103024
+ /**
103025
+ * 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.
103026
+ */
103027
+ id: string;
103028
+ };
103029
+ query?: never;
103030
+ url: '/devops/v1/pull-requests/{id}/reviews';
103031
+ };
103032
+ export type DevopsPullRequestsReviewsCreateErrors = {
103033
+ /**
103034
+ * 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.
103035
+ */
103036
+ 400: DevopsDevOpsError;
103037
+ /**
103038
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
103039
+ */
103040
+ 401: DevopsDevOpsError;
103041
+ /**
103042
+ * 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.
103043
+ */
103044
+ 403: DevopsDevOpsError;
103045
+ /**
103046
+ * 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.
103047
+ */
103048
+ 404: DevopsDevOpsError;
103049
+ /**
103050
+ * PULL_REQUEST_NOT_OPEN when the pull request is merged or closed: nothing was recorded.
103051
+ */
103052
+ 409: DevopsDevOpsError;
103053
+ /**
103054
+ * 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.
103055
+ */
103056
+ 500: DevopsDevOpsError;
103057
+ };
103058
+ export type DevopsPullRequestsReviewsCreateError = DevopsPullRequestsReviewsCreateErrors[keyof DevopsPullRequestsReviewsCreateErrors];
103059
+ export type DevopsPullRequestsReviewsCreateResponses = {
103060
+ /**
103061
+ * 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.
103062
+ */
103063
+ 200: DevopsPullRequest;
103064
+ };
103065
+ export type DevopsPullRequestsReviewsCreateResponse = DevopsPullRequestsReviewsCreateResponses[keyof DevopsPullRequestsReviewsCreateResponses];
101889
103066
  export type DevopsConnectionsListData = {
101890
103067
  body?: never;
101891
103068
  path?: never;
@@ -102344,7 +103521,7 @@ export type DevopsWorkspacesGetData = {
102344
103521
  */
102345
103522
  project: string;
102346
103523
  /**
102347
- * 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.
103524
+ * 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.
102348
103525
  */
102349
103526
  stage: DevopsWorkspaceStage;
102350
103527
  };
@@ -102389,7 +103566,7 @@ export type DevopsWorkspacesUpdateData = {
102389
103566
  */
102390
103567
  project: string;
102391
103568
  /**
102392
- * 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.
103569
+ * 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.
102393
103570
  */
102394
103571
  stage: DevopsWorkspaceStage;
102395
103572
  };
@@ -102533,6 +103710,56 @@ export type DevopsUnitsCreateResponses = {
102533
103710
  200: DevopsUnit;
102534
103711
  };
102535
103712
  export type DevopsUnitsCreateResponse = DevopsUnitsCreateResponses[keyof DevopsUnitsCreateResponses];
103713
+ export type DevopsCleanupsListData = {
103714
+ body?: never;
103715
+ path: {
103716
+ /**
103717
+ * Identifies the project whose data you are reading, from the project list or create answer.
103718
+ */
103719
+ project: string;
103720
+ };
103721
+ query?: {
103722
+ /**
103723
+ * 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.
103724
+ */
103725
+ pageSize?: number;
103726
+ /**
103727
+ * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
103728
+ */
103729
+ pageToken?: string;
103730
+ };
103731
+ url: '/devops/v1/projects/{project}/cleanups';
103732
+ };
103733
+ export type DevopsCleanupsListErrors = {
103734
+ /**
103735
+ * 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.
103736
+ */
103737
+ 400: DevopsDevOpsError;
103738
+ /**
103739
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
103740
+ */
103741
+ 401: DevopsDevOpsError;
103742
+ /**
103743
+ * 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.
103744
+ */
103745
+ 403: DevopsDevOpsError;
103746
+ /**
103747
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
103748
+ */
103749
+ 404: DevopsDevOpsError;
103750
+ /**
103751
+ * 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.
103752
+ */
103753
+ 500: DevopsDevOpsError;
103754
+ };
103755
+ export type DevopsCleanupsListError = DevopsCleanupsListErrors[keyof DevopsCleanupsListErrors];
103756
+ export type DevopsCleanupsListResponses = {
103757
+ /**
103758
+ * One page of the project's cleanup ledger, newest decision first.
103759
+ */
103760
+ 200: DevopsCleanupPage;
103761
+ };
103762
+ export type DevopsCleanupsListResponse = DevopsCleanupsListResponses[keyof DevopsCleanupsListResponses];
102536
103763
  export type DevopsUnitsDeleteData = {
102537
103764
  body?: never;
102538
103765
  path: {
@@ -109768,7 +110995,12 @@ export type RegistryGitCommitsRetrieveData = {
109768
110995
  */
109769
110996
  sha: string;
109770
110997
  };
109771
- query?: never;
110998
+ query?: {
110999
+ /**
111000
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
111001
+ */
111002
+ changed_files?: boolean;
111003
+ };
109772
111004
  url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
109773
111005
  };
109774
111006
  export type RegistryGitCommitsRetrieveErrors = {
@@ -109798,7 +111030,7 @@ export type RegistryGitCommitsRetrieveResponses = {
109798
111030
  /**
109799
111031
  * 这个提交。
109800
111032
  */
109801
- 200: RegistryGitCommit;
111033
+ 200: RegistryGitCommitDetail;
109802
111034
  };
109803
111035
  export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
109804
111036
  export type RegistryGitTreesRetrieveData = {
@@ -109846,6 +111078,201 @@ export type RegistryGitTreesRetrieveResponses = {
109846
111078
  200: RegistryGitTree;
109847
111079
  };
109848
111080
  export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
111081
+ export type RegistryGitRefsData = {
111082
+ body?: never;
111083
+ path: {
111084
+ /**
111085
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111086
+ */
111087
+ package_id: string;
111088
+ };
111089
+ query?: {
111090
+ /**
111091
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
111092
+ */
111093
+ prefix?: 'refs/heads/' | 'refs/tags/';
111094
+ /**
111095
+ * 页码,从 1 起,默认 1。
111096
+ */
111097
+ page?: number;
111098
+ /**
111099
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
111100
+ */
111101
+ size?: number;
111102
+ };
111103
+ url: '/registry/v1/packages/{package_id}/git/refs';
111104
+ };
111105
+ export type RegistryGitRefsErrors = {
111106
+ /**
111107
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111108
+ */
111109
+ 400: RegistryRegistryError;
111110
+ /**
111111
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111112
+ */
111113
+ 401: RegistryRegistryError;
111114
+ /**
111115
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111116
+ */
111117
+ 404: RegistryRegistryError;
111118
+ /**
111119
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111120
+ */
111121
+ 500: RegistryRegistryError;
111122
+ /**
111123
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111124
+ */
111125
+ 503: RegistryRegistryError;
111126
+ };
111127
+ export type RegistryGitRefsError = RegistryGitRefsErrors[keyof RegistryGitRefsErrors];
111128
+ export type RegistryGitRefsResponses = {
111129
+ /**
111130
+ * 分支和标签的一页。
111131
+ */
111132
+ 200: RegistryGitRefs;
111133
+ };
111134
+ export type RegistryGitRefsResponse = RegistryGitRefsResponses[keyof RegistryGitRefsResponses];
111135
+ export type RegistryGitResolveData = {
111136
+ body?: never;
111137
+ path: {
111138
+ /**
111139
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111140
+ */
111141
+ package_id: string;
111142
+ };
111143
+ query: {
111144
+ /**
111145
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
111146
+ */
111147
+ ref: string;
111148
+ };
111149
+ url: '/registry/v1/packages/{package_id}/git/resolve';
111150
+ };
111151
+ export type RegistryGitResolveErrors = {
111152
+ /**
111153
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111154
+ */
111155
+ 400: RegistryRegistryError;
111156
+ /**
111157
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111158
+ */
111159
+ 401: RegistryRegistryError;
111160
+ /**
111161
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111162
+ */
111163
+ 404: RegistryRegistryError;
111164
+ /**
111165
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111166
+ */
111167
+ 500: RegistryRegistryError;
111168
+ /**
111169
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111170
+ */
111171
+ 503: RegistryRegistryError;
111172
+ };
111173
+ export type RegistryGitResolveError = RegistryGitResolveErrors[keyof RegistryGitResolveErrors];
111174
+ export type RegistryGitResolveResponses = {
111175
+ /**
111176
+ * 这个引用指向的提交。
111177
+ */
111178
+ 200: RegistryGitResolvedRef;
111179
+ };
111180
+ export type RegistryGitResolveResponse = RegistryGitResolveResponses[keyof RegistryGitResolveResponses];
111181
+ export type RegistryGitCompareData = {
111182
+ body?: never;
111183
+ path: {
111184
+ /**
111185
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111186
+ */
111187
+ package_id: string;
111188
+ };
111189
+ query: {
111190
+ /**
111191
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
111192
+ */
111193
+ base: string;
111194
+ /**
111195
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
111196
+ */
111197
+ head: string;
111198
+ };
111199
+ url: '/registry/v1/packages/{package_id}/git/compare';
111200
+ };
111201
+ export type RegistryGitCompareErrors = {
111202
+ /**
111203
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111204
+ */
111205
+ 400: RegistryRegistryError;
111206
+ /**
111207
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111208
+ */
111209
+ 401: RegistryRegistryError;
111210
+ /**
111211
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111212
+ */
111213
+ 404: RegistryRegistryError;
111214
+ /**
111215
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111216
+ */
111217
+ 500: RegistryRegistryError;
111218
+ /**
111219
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111220
+ */
111221
+ 503: RegistryRegistryError;
111222
+ };
111223
+ export type RegistryGitCompareError = RegistryGitCompareErrors[keyof RegistryGitCompareErrors];
111224
+ export type RegistryGitCompareResponses = {
111225
+ /**
111226
+ * 两个引用的关系、改动的文件和多出的提交。
111227
+ */
111228
+ 200: RegistryGitComparison;
111229
+ };
111230
+ export type RegistryGitCompareResponse = RegistryGitCompareResponses[keyof RegistryGitCompareResponses];
111231
+ export type RegistryGitTreesRecursiveData = {
111232
+ body?: never;
111233
+ path: {
111234
+ /**
111235
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111236
+ */
111237
+ package_id: string;
111238
+ /**
111239
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
111240
+ */
111241
+ sha: string;
111242
+ };
111243
+ query?: never;
111244
+ url: '/registry/v1/packages/{package_id}/git/trees/{sha}/recursive';
111245
+ };
111246
+ export type RegistryGitTreesRecursiveErrors = {
111247
+ /**
111248
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111249
+ */
111250
+ 400: RegistryRegistryError;
111251
+ /**
111252
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111253
+ */
111254
+ 401: RegistryRegistryError;
111255
+ /**
111256
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111257
+ */
111258
+ 404: RegistryRegistryError;
111259
+ /**
111260
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111261
+ */
111262
+ 500: RegistryRegistryError;
111263
+ /**
111264
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111265
+ */
111266
+ 503: RegistryRegistryError;
111267
+ };
111268
+ export type RegistryGitTreesRecursiveError = RegistryGitTreesRecursiveErrors[keyof RegistryGitTreesRecursiveErrors];
111269
+ export type RegistryGitTreesRecursiveResponses = {
111270
+ /**
111271
+ * 这个对象下的全部条目。
111272
+ */
111273
+ 200: RegistryGitTreeRecursive;
111274
+ };
111275
+ export type RegistryGitTreesRecursiveResponse = RegistryGitTreesRecursiveResponses[keyof RegistryGitTreesRecursiveResponses];
109849
111276
  export type RegistryGitFilesRetrieveData = {
109850
111277
  body?: never;
109851
111278
  path: {