@deepraxis/sdk 0.1.1-dev.fa8e340 → 0.1.1-dev.fc68b96

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.
@@ -1934,50 +1934,45 @@ export type AgentSseEvent = ({
1934
1934
  */
1935
1935
  event?: 'user.tool_confirmation';
1936
1936
  /**
1937
- * Praxis extension (AskUserQuestion, own face only): the confirmation of an AskUserQuestion call, with the answers it carried.
1937
+ * Decoded JSON payload of this frame; its shape is selected by the event name.
1938
1938
  */
1939
- data?: {
1939
+ data?: unknown & {
1940
1940
  /**
1941
- * Event id, unique within the session.
1941
+ * Unique identifier for this event.
1942
1942
  */
1943
1943
  id: string;
1944
1944
  /**
1945
- * Always `user.tool_confirmation`.
1945
+ * UserToolConfirmationResult enum
1946
1946
  */
1947
- type: 'user.tool_confirmation';
1947
+ result: 'allow' | 'deny';
1948
1948
  /**
1949
- * When the event was recorded, RFC 3339.
1949
+ * The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
1950
+ * corresponds to, which can be found in the last `session.status_idle`
1951
+ * [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
1952
+ * `stop_reason.event_ids` field.
1950
1953
  */
1951
- processed_at: string;
1954
+ tool_use_id: string;
1952
1955
  /**
1953
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
1956
+ * Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
1954
1957
  */
1955
- tool_use_id: string;
1958
+ type: 'user.tool_confirmation';
1956
1959
  /**
1957
- * Always `allow`.
1960
+ * Feedback for a deny result, at most 4000 characters. Appended to the model-visible refusal and persisted on the confirmation. Omit when no feedback is needed.
1958
1961
  */
1959
- result: 'allow';
1962
+ deny_message?: string;
1960
1963
  /**
1961
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
1964
+ * A timestamp in RFC 3339 format
1962
1965
  */
1963
- answers: {
1964
- [key: string]: string;
1965
- };
1966
+ processed_at?: null | string;
1966
1967
  /**
1967
- * Per-question notes, keyed by the question text.
1968
+ * Set by the server to the subagent thread this confirmation was routed to.
1969
+ * Omitted when it was routed to the primary thread.
1968
1970
  */
1969
- annotations?: {
1970
- [key: string]: {
1971
- /**
1972
- * The preview of the option the user chose.
1973
- */
1974
- preview?: string;
1975
- /**
1976
- * Free text the user added to their choice.
1977
- */
1978
- notes?: string;
1979
- };
1980
- };
1971
+ session_thread_id?: null | string;
1972
+ /**
1973
+ * With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
1974
+ */
1975
+ permission_mode?: 'yolo';
1981
1976
  };
1982
1977
  } | {
1983
1978
  /**
@@ -7785,6 +7780,243 @@ export type OrganizationReviseKeyResultRequest = {
7785
7780
  */
7786
7781
  done?: boolean;
7787
7782
  };
7783
+ /**
7784
+ * Which subject a spec describes; the organization is addressed by its own id and every other kind by that subject's id.
7785
+ */
7786
+ export type OrganizationSpecKind = 'organization' | 'department' | 'level' | 'job' | 'position' | 'assignment';
7787
+ /**
7788
+ * One page of specs.
7789
+ */
7790
+ export type OrganizationSpecList = {
7791
+ /**
7792
+ * Specs on this page.
7793
+ */
7794
+ data: Array<OrganizationSpec>;
7795
+ /**
7796
+ * Whether another page is available after this one.
7797
+ */
7798
+ has_more: boolean;
7799
+ /**
7800
+ * Cursor to pass as page to read the next page; null when no more items remain.
7801
+ */
7802
+ next_page: string | null;
7803
+ };
7804
+ /**
7805
+ * The live spec of one subject; a subject never written answers revision 0 with an empty body.
7806
+ */
7807
+ export type OrganizationSpec = {
7808
+ kind: OrganizationSpecKind;
7809
+ /**
7810
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
7811
+ */
7812
+ id: string;
7813
+ /**
7814
+ * Live revision, 0 until the first write and raised by one on every revise; send it as expected_revision.
7815
+ */
7816
+ revision: number;
7817
+ /**
7818
+ * The spec body: a map from block name to block value, stored and returned verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
7819
+ */
7820
+ spec: {
7821
+ [key: string]: unknown;
7822
+ };
7823
+ /**
7824
+ * UTC instant (RFC 3339) of the latest revision; null when the subject never had a spec written.
7825
+ */
7826
+ update_time: string | null;
7827
+ /**
7828
+ * Actor address that wrote the latest revision (human:usr_... or agent:agent_...); null until the first write.
7829
+ */
7830
+ updated_by: string | null;
7831
+ };
7832
+ /**
7833
+ * The whole new spec of one subject, replacing the previous one.
7834
+ */
7835
+ export type OrganizationReviseSpecRequest = {
7836
+ /**
7837
+ * The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one.
7838
+ */
7839
+ expected_revision: number;
7840
+ /**
7841
+ * The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
7842
+ */
7843
+ spec: {
7844
+ [key: string]: unknown;
7845
+ };
7846
+ };
7847
+ /**
7848
+ * One page of a subject's spec revisions, newest first.
7849
+ */
7850
+ export type OrganizationSpecRevisionList = {
7851
+ /**
7852
+ * Revisions on this page, newest first.
7853
+ */
7854
+ data: Array<OrganizationSpecRevision>;
7855
+ /**
7856
+ * Whether another page is available after this one.
7857
+ */
7858
+ has_more: boolean;
7859
+ /**
7860
+ * Cursor to pass as page to read the next page; null when no more items remain.
7861
+ */
7862
+ next_page: string | null;
7863
+ };
7864
+ /**
7865
+ * The changes between two revisions of one subject's spec; an empty changes array means the two revisions are equal.
7866
+ */
7867
+ export type OrganizationSpecDiff = {
7868
+ kind: OrganizationSpecKind;
7869
+ /**
7870
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
7871
+ */
7872
+ id: string;
7873
+ /**
7874
+ * The earlier revision that was compared from; 0 is the empty spec before the first write.
7875
+ */
7876
+ from: number;
7877
+ /**
7878
+ * The later revision that was compared to.
7879
+ */
7880
+ to: number;
7881
+ /**
7882
+ * The differences found, in path order.
7883
+ */
7884
+ changes: Array<OrganizationSpecChange>;
7885
+ };
7886
+ /**
7887
+ * The merged spec of one seat or actor - the one configuration that actually applies when every layer is reconciled.
7888
+ */
7889
+ export type OrganizationEffectiveSpec = {
7890
+ /**
7891
+ * Actor address the result is for (human:usr_... or agent:agent_...); null when the query was by position_id and the seat is vacant.
7892
+ */
7893
+ actor: string | null;
7894
+ /**
7895
+ * The holder kind the merge was made for, given or derived from the seat's holder.
7896
+ */
7897
+ holder_kind: 'agent' | 'human';
7898
+ /**
7899
+ * Every seat the result covers; the primary seat, if any, comes first.
7900
+ */
7901
+ seats: Array<{
7902
+ /**
7903
+ * Position id (pos_...) of this seat.
7904
+ */
7905
+ position_id: string;
7906
+ /**
7907
+ * Assignment id (asg_...) holding the seat; null while the seat is vacant.
7908
+ */
7909
+ assignment_id: string | null;
7910
+ /**
7911
+ * Whether this is the actor's primary seat, whose values win a clash.
7912
+ */
7913
+ primary: boolean;
7914
+ /**
7915
+ * The spec layers merged for this seat, least specific first.
7916
+ */
7917
+ layers: Array<OrganizationSpecLayerRef>;
7918
+ }>;
7919
+ /**
7920
+ * The document of every layer, each layer once; duplicates of the same layer are dropped.
7921
+ */
7922
+ documents: Array<OrganizationSpecDocument>;
7923
+ /**
7924
+ * The merged capability blocks: a map from block name to the value the chain resolved to. Blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
7925
+ */
7926
+ spec: {
7927
+ [key: string]: unknown;
7928
+ };
7929
+ /**
7930
+ * Where each merged value came from, keyed by the path inside the spec (such as agent.model or repositories[github:org/repo]).
7931
+ */
7932
+ origins: {
7933
+ [key: string]: string;
7934
+ };
7935
+ /**
7936
+ * Blocks this holder kind does not take and that were skipped without error, such as agent-only blocks for a human holder.
7937
+ */
7938
+ skipped: Array<string>;
7939
+ /**
7940
+ * Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
7941
+ */
7942
+ violations: Array<string>;
7943
+ };
7944
+ /**
7945
+ * What a dry run of the reconciler would do for one holder, without changing anything.
7946
+ */
7947
+ export type OrganizationReconcilePlan = {
7948
+ /**
7949
+ * Actor address the plan is for (agent:agent_... or human:usr_...).
7950
+ */
7951
+ actor: string;
7952
+ /**
7953
+ * The holder kind the merge was made for, derived from the actor address.
7954
+ */
7955
+ holder_kind: 'agent' | 'human';
7956
+ /**
7957
+ * One action per block the plan considered, in block order.
7958
+ */
7959
+ actions: Array<OrganizationReconcileAction>;
7960
+ /**
7961
+ * Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
7962
+ */
7963
+ violations: Array<string>;
7964
+ };
7965
+ /**
7966
+ * The reconciler's last result for one holder.
7967
+ */
7968
+ export type OrganizationReconcileStatus = {
7969
+ /**
7970
+ * Actor address this status is for (agent:agent_... or human:usr_...).
7971
+ */
7972
+ actor: string;
7973
+ /**
7974
+ * Whether the sweep is paused for this holder.
7975
+ */
7976
+ paused: boolean;
7977
+ /**
7978
+ * The seats and layer revisions the last run applied; empty before the first run.
7979
+ */
7980
+ observed: Array<{
7981
+ /**
7982
+ * Position id (pos_...) of this seat.
7983
+ */
7984
+ position_id: string;
7985
+ /**
7986
+ * Assignment id (asg_...) holding the seat; null while the seat is vacant.
7987
+ */
7988
+ assignment_id: string | null;
7989
+ /**
7990
+ * Whether this is the actor's primary seat, whose values win a clash.
7991
+ */
7992
+ primary: boolean;
7993
+ /**
7994
+ * The spec layers merged for this seat, least specific first.
7995
+ */
7996
+ layers: Array<OrganizationSpecLayerRef>;
7997
+ }>;
7998
+ /**
7999
+ * One row per capability block and the state it is in.
8000
+ */
8001
+ items: Array<OrganizationReconcileItem>;
8002
+ /**
8003
+ * Where what is applied differs from what the specs want; empty when nothing has drifted.
8004
+ */
8005
+ drift: Array<OrganizationReconcileDrift>;
8006
+ /**
8007
+ * UTC instant (RFC 3339) of the last run that applied changes; null when the holder was never reconciled.
8008
+ */
8009
+ applied_at: string | null;
8010
+ };
8011
+ /**
8012
+ * The holder to reconcile.
8013
+ */
8014
+ export type OrganizationReconcileActorRequest = {
8015
+ /**
8016
+ * Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged.
8017
+ */
8018
+ actor: string;
8019
+ };
7788
8020
  export type SandboxSandboxDetail = {
7789
8021
  /**
7790
8022
  * Identifier of the template from which is the sandbox created
@@ -16345,7 +16577,7 @@ export type DevopsReportUploadRequest = {
16345
16577
  */
16346
16578
  reportId: string;
16347
16579
  /**
16348
- * What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and counts when the merge gate reads the newest run at that commit. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence.
16580
+ * What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and is filed as evidence for each package it fully covers, which the merge gate and later stages read by the package's input hash. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence.
16349
16581
  */
16350
16582
  purpose?: 'evidence' | 'feedback';
16351
16583
  /**
@@ -16419,23 +16651,61 @@ export type DevopsTestPlan = {
16419
16651
  * One entry per required package, sorted by directory. Empty only when selection is nothing or failed.
16420
16652
  */
16421
16653
  packages: Array<DevopsTestPlanPackage>;
16654
+ /**
16655
+ * Every feature scenario of the affected packages at the gate's sizes, sorted by package and title, each with whether this diff requires it and what evidence answers it. This is the finer reading of packages: a merge asks for evidence only on the required cases.
16656
+ */
16657
+ cases: Array<DevopsTestPlanCase>;
16658
+ /**
16659
+ * Present only for view summary: one row per package that has cases, counting its cases. required is what this diff requires evidence for, unaffected is what it does not reach, and of the required ones evidenced have a passing row at their deps hash, missing have none and failed have a newest failing row (required = evidenced + missing + failed). In this view cases lists the required cases only.
16660
+ */
16661
+ caseCounts?: Array<DevopsTestPlanCaseCounts>;
16422
16662
  /**
16423
16663
  * The changed paths the ownership rule could not place, present only when selection is failed. Fix the rule or the paths: with no package named over paths that were not judged none, neither a pass nor a run is the truth.
16424
16664
  */
16425
16665
  failedPaths?: Array<string>;
16426
16666
  };
16427
16667
  /**
16428
- * One page of the organization's delivery projects, newest first.
16668
+ * A new project: its name and, for a project with code, where the code lives.
16429
16669
  */
16430
- export type DevopsProjectPage = {
16670
+ export type DevopsProjectCreate = {
16431
16671
  /**
16432
- * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16672
+ * Kebab-case name, unique within the organization.
16433
16673
  */
16434
- items: Array<DevopsProject>;
16674
+ name: string;
16435
16675
  /**
16436
- * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16676
+ * What the project is for, in your own words.
16437
16677
  */
16438
- nextPageToken: string;
16678
+ description?: string;
16679
+ /**
16680
+ * Where the code lives: github (the default) or platform, a git package of our own Git.
16681
+ */
16682
+ provider?: 'github' | 'platform';
16683
+ /**
16684
+ * provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository.
16685
+ */
16686
+ package?: string;
16687
+ /**
16688
+ * provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then.
16689
+ */
16690
+ initialRef?: string;
16691
+ /**
16692
+ * provider github only: the connection of a completed GitHub App install that can see the repository.
16693
+ */
16694
+ connection?: string;
16695
+ /**
16696
+ * provider github only: the repository as owner/name.
16697
+ */
16698
+ repository?: string;
16699
+ /**
16700
+ * Delivery settings; keys you leave out take their defaults.
16701
+ */
16702
+ settings?: {
16703
+ [key: string]: unknown;
16704
+ };
16705
+ /**
16706
+ * Idempotency key: repeat the call with the same value to be given the same answer.
16707
+ */
16708
+ requestId?: string;
16439
16709
  };
16440
16710
  /**
16441
16711
  * One delivery project — the unit a release, a promotion and a flag all belong to.
@@ -16481,6 +16751,49 @@ export type DevopsProject = {
16481
16751
  [key: string]: string;
16482
16752
  };
16483
16753
  };
16754
+ /**
16755
+ * One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
16756
+ */
16757
+ export type DevopsProjectPage = {
16758
+ /**
16759
+ * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16760
+ */
16761
+ items: Array<DevopsProject>;
16762
+ /**
16763
+ * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16764
+ */
16765
+ nextPageToken: string;
16766
+ /**
16767
+ * How many undeleted projects the caller's own organization has: 0 means the organization has none yet, not that the read returned nothing. Visible means visible to the credential's organization — the count filters rows by organization_id and is not a permission check, so it says nothing about what the caller may be granted. It is the organization's total across all pages, never this page's length: while paging it is at least the length of items, and equal on the first page when every project fits. Always present, so items: [] together with visibleProjects: 0 is an answer rather than an empty response to guess at; an organization without projects still answers 200.
16768
+ */
16769
+ visibleProjects: number;
16770
+ };
16771
+ /**
16772
+ * Where to start the default branch.
16773
+ */
16774
+ export type DevopsDefaultBranchInitialize = {
16775
+ /**
16776
+ * An existing branch of the repository, for example import. The default branch is created at its head.
16777
+ */
16778
+ from: string;
16779
+ };
16780
+ /**
16781
+ * The default branch that now exists.
16782
+ */
16783
+ export type DevopsDefaultBranchInitialized = {
16784
+ /**
16785
+ * The default branch the project declares, now created.
16786
+ */
16787
+ defaultBranch: string;
16788
+ /**
16789
+ * The branch it was started from.
16790
+ */
16791
+ from: string;
16792
+ /**
16793
+ * The commit the default branch points at, the head of from when it was read.
16794
+ */
16795
+ commit: string;
16796
+ };
16484
16797
  /**
16485
16798
  * A patch to a project; only the fields named in updateMask are written.
16486
16799
  */
@@ -16527,6 +16840,7 @@ export type DevopsProjectUpdate = {
16527
16840
  * Whether the merge gate is a required check on the git host.
16528
16841
  */
16529
16842
  requireGate?: boolean;
16843
+ gate?: DevopsGatePolicy;
16530
16844
  /**
16531
16845
  * Who publishes this project: mise (the default when absent) keeps the Mise pipeline; devops hands releases to the DevOps pipeline once the merge is done.
16532
16846
  */
@@ -16857,6 +17171,27 @@ export type DevopsPromotionConcludeRequest = {
16857
17171
  */
16858
17172
  reason: string;
16859
17173
  };
17174
+ /**
17175
+ * What a deploy machine fetches a platform-Git project's code with: the repository's clone URL and a pull-only credential for that one repository.
17176
+ */
17177
+ export type DevopsCheckoutCredential = {
17178
+ /**
17179
+ * The https clone URL of the project's repository on the platform's Git. It carries no credential; send the credential below through git's credential helper.
17180
+ */
17181
+ cloneUrl: string;
17182
+ /**
17183
+ * The user name git sends with the password.
17184
+ */
17185
+ username: string;
17186
+ /**
17187
+ * A secret: the pull credential. It reads this one repository and nothing else, and stops working at expireTime. Never print or store it.
17188
+ */
17189
+ password: string;
17190
+ /**
17191
+ * RFC 3339 UTC time the credential stops working, 15 minutes after it was issued. Ask again for a new one rather than extending.
17192
+ */
17193
+ expireTime: string;
17194
+ };
16860
17195
  /**
16861
17196
  * One page of a promotion's rollouts, in plan order.
16862
17197
  */
@@ -16965,9 +17300,13 @@ export type DevopsEnvironmentUpdate = {
16965
17300
  * Suffix such as -develop that this environment adds to site hostnames, or null for none.
16966
17301
  */
16967
17302
  domainSuffix?: string | null;
17303
+ /**
17304
+ * Which stage of the path the environment belongs to: integration environments receive every merge, release environments receive promotions only. Moving an environment between stages changes what the next merge deploys and what a promotion into a release environment waits for; the observation and blocking rules it already carries are not rewritten.
17305
+ */
17306
+ stage?: 'integration' | 'release';
16968
17307
  };
16969
17308
  /**
16970
- * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries.
17309
+ * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries.
16971
17310
  */
16972
17311
  updateMask?: Array<string>;
16973
17312
  };
@@ -17008,7 +17347,11 @@ export type DevopsEnvironment = {
17008
17347
  */
17009
17348
  tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
17010
17349
  /**
17011
- * Position in the promotion sequence, starting at 1 and contiguous; the environment one lower must have verified a release before it may be promoted here.
17350
+ * Which stage of the path this environment belongs to (Sean 2026-11-24: development, integration, release). Every merge is deployed to every integration-stage environment; a promotion into a release-stage environment needs the release deployed successfully to every integration-stage environment, and verification never gates it.
17351
+ */
17352
+ stage: 'integration' | 'release';
17353
+ /**
17354
+ * Position in the promotion sequence, starting at 1 and contiguous. A release-stage environment needs the release deployed in every integration-stage environment, wherever they sit in the order.
17012
17355
  */
17013
17356
  order: number;
17014
17357
  /**
@@ -17640,6 +17983,10 @@ export type DevopsChangeOpenPullRequestRequest = {
17640
17983
  * The pull request for a change's branch.
17641
17984
  */
17642
17985
  export type DevopsChangePullRequestOpened = {
17986
+ /**
17987
+ * The pull request's platform id (pr_…), which retrieve, rerunGate, merge and recordVerdict address. Always present on our own Git; on GitHub it is present once the webhook that records the pull request has arrived, and absent before.
17988
+ */
17989
+ id?: string;
17643
17990
  /**
17644
17991
  * The pull request's number on the git host.
17645
17992
  */
@@ -17662,7 +18009,11 @@ export type DevopsChangePullRequestOpened = {
17662
18009
  */
17663
18010
  export type DevopsChangeGitCredential = {
17664
18011
  /**
17665
- * The user name GitHub App installation tokens require.
18012
+ * The https clone URL of the repository the credential is for. The credential is good for the host of this URL only: git's credential helper answers a request for that host and no other.
18013
+ */
18014
+ url: string;
18015
+ /**
18016
+ * The user name the source host requires with the token (GitHub App installation tokens use `x-access-token`).
17666
18017
  */
17667
18018
  username: string;
17668
18019
  /**
@@ -17801,7 +18152,7 @@ export type DevopsPullRequest = {
17801
18152
  kind: 'user' | 'agent' | 'bot';
17802
18153
  };
17803
18154
  /**
17804
- * GitHub's own mergeability word, kept verbatim as an open set (clean, dirty, blocked, behind, unstable and so on); unknown when GitHub has not said.
18155
+ * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
17805
18156
  */
17806
18157
  mergeableState: string;
17807
18158
  /**
@@ -17891,6 +18242,7 @@ export type DevopsPullRequest = {
17891
18242
  time?: string;
17892
18243
  }>;
17893
18244
  };
18245
+ review?: DevopsReviewVerdict;
17894
18246
  /**
17895
18247
  * The commit it landed as, present only once it is merged.
17896
18248
  */
@@ -17926,7 +18278,7 @@ export type DevopsPullRequestMergeRequest = {
17926
18278
  requestId?: string;
17927
18279
  };
17928
18280
  /**
17929
- * A gatekeeper's judgement of a change declared direct, recorded against one commit.
18281
+ * A reviewer's verdict on a pull request, recorded against one commit, after the fact; the merge gate never waits for it.
17930
18282
  */
17931
18283
  export type DevopsPullRequestVerdictRequest = {
17932
18284
  /**
@@ -17955,6 +18307,19 @@ export type DevopsPullRequestCloseRequest = {
17955
18307
  */
17956
18308
  reason: string;
17957
18309
  };
18310
+ /**
18311
+ * Your verdict on a pull request that lives on the platform's own Git.
18312
+ */
18313
+ export type DevopsPullRequestReviewRequest = {
18314
+ /**
18315
+ * The verdict. A value outside this set is refused with INVALID_ARGUMENT.
18316
+ */
18317
+ state: 'approved' | 'changes_requested' | 'commented';
18318
+ /**
18319
+ * The words that go with the verdict. Accepted now and not stored yet: DevOps keeps no review thread, so say what must change on the change's own ticket as well.
18320
+ */
18321
+ body?: string;
18322
+ };
17958
18323
  /**
17959
18324
  * One page of an organization's connections.
17960
18325
  */
@@ -18188,7 +18553,7 @@ export type DevopsSegmentUpdate = {
18188
18553
  */
18189
18554
  export type DevopsWorkspaceList = {
18190
18555
  /**
18191
- * The project's workspaces, development first, then integration, then runtime.
18556
+ * The project's workspaces, development first, then integration, then release.
18192
18557
  */
18193
18558
  items: Array<DevopsWorkspace>;
18194
18559
  };
@@ -18325,9 +18690,9 @@ export type DevopsUnit = {
18325
18690
  transitions?: Array<DevopsUnitTransition>;
18326
18691
  };
18327
18692
  /**
18328
- * Where in the delivery line a workspace or unit sits: development merges changes, integration deploys and finds problems, runtime deploys and serves steadily.
18693
+ * Where in the delivery line a workspace or unit sits: development merges changes, integration deploys every merge and finds problems, release deploys and serves steadily (Sean 2026-11-24: development, integration, release).
18329
18694
  */
18330
- export type DevopsWorkspaceStage = 'development' | 'integration' | 'runtime';
18695
+ export type DevopsWorkspaceStage = 'development' | 'integration' | 'release';
18331
18696
  /**
18332
18697
  * The phase a unit was last observed in; it is an observed fact, not the request, so it changes as the sandbox answers.
18333
18698
  */
@@ -18349,6 +18714,23 @@ export type DevopsUnitPage = {
18349
18714
  */
18350
18715
  nextPageToken: string;
18351
18716
  };
18717
+ /**
18718
+ * One page of a project's cleanup ledger, newest decision first.
18719
+ */
18720
+ export type DevopsCleanupPage = {
18721
+ /**
18722
+ * The ledger rows on this page.
18723
+ */
18724
+ items: Array<DevopsCleanupEntry>;
18725
+ /**
18726
+ * How many rows the project's ledger holds across every page; returned on the first page only.
18727
+ */
18728
+ totalSize?: number;
18729
+ /**
18730
+ * Cursor for the next page; an empty string means this was the last page.
18731
+ */
18732
+ nextPageToken: string;
18733
+ };
18352
18734
  /**
18353
18735
  * A field the unit retrieve can inline; only the values listed are accepted, and any other value is refused with INVALID_ARGUMENT.
18354
18736
  */
@@ -21092,6 +21474,10 @@ export type RegistryCreateRepositoryInput = {
21092
21474
  * 库的说明;省略时不写。
21093
21475
  */
21094
21476
  description?: string;
21477
+ /**
21478
+ * 库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。
21479
+ */
21480
+ format?: 'oci' | 'git';
21095
21481
  };
21096
21482
  /**
21097
21483
  * 一个库:组织里包的分类容器。每个组织有一个 is_default 为 true 的默认库。
@@ -21121,6 +21507,10 @@ export type RegistryRepository = {
21121
21507
  * 是否这个组织的默认库;自动创建、不能删除,新包在没有指定库时进这里。
21122
21508
  */
21123
21509
  is_default: boolean;
21510
+ /**
21511
+ * 库里放什么;oci 放技能和插件,git 放 git 仓库;建库时定下,之后不能改。
21512
+ */
21513
+ format: 'oci' | 'git';
21124
21514
  /**
21125
21515
  * 库里当前的包数量;非零时这个库不能删。
21126
21516
  */
@@ -21206,6 +21596,44 @@ export type RegistryPublishInput = {
21206
21596
  */
21207
21597
  tags?: string;
21208
21598
  };
21599
+ /**
21600
+ * 在 git 库里建 git 包的 JSON 请求体;name 和 format 必填。
21601
+ */
21602
+ export type RegistryCreateGitPackageInput = {
21603
+ /**
21604
+ * 包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。
21605
+ */
21606
+ name: string;
21607
+ /**
21608
+ * 建的包是什么;JSON 请求只能建 git 包,所以固定为 git。
21609
+ */
21610
+ format: 'git';
21611
+ /**
21612
+ * 默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。
21613
+ */
21614
+ default_branch?: string;
21615
+ /**
21616
+ * 仓库的说明;省略时为空。
21617
+ */
21618
+ description?: string;
21619
+ /**
21620
+ * 从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。
21621
+ */
21622
+ import?: {
21623
+ /**
21624
+ * 要导入的公开仓库地址,必须是 https,匿名可读;私有仓库不支持。
21625
+ */
21626
+ url: string;
21627
+ /**
21628
+ * 只导入这个分支;省略则按远端的默认分支。
21629
+ */
21630
+ branch?: string;
21631
+ /**
21632
+ * 浅导入的提交深度;省略则导入完整历史。
21633
+ */
21634
+ depth?: number;
21635
+ };
21636
+ };
21209
21637
  /**
21210
21638
  * 一个包:库里的一个技能或插件,带它的最新版本和累计下载量。
21211
21639
  */
@@ -21227,9 +21655,9 @@ export type RegistryPackage = {
21227
21655
  */
21228
21656
  name: string;
21229
21657
  /**
21230
- * 包的种类;技能或插件。
21658
+ * 包的种类;技能、插件,或 git 仓库。
21231
21659
  */
21232
- kind: 'skill' | 'plugin';
21660
+ kind: 'skill' | 'plugin' | 'git';
21233
21661
  /**
21234
21662
  * 给人看的标题;来自上传内容或发布时的 title,没有时是 null。
21235
21663
  */
@@ -21254,6 +21682,22 @@ export type RegistryPackage = {
21254
21682
  * 这个包 archive 下载的累计次数,每次 archive 调用加一。
21255
21683
  */
21256
21684
  downloads: number;
21685
+ /**
21686
+ * 只有 git 包才有这个字段,固定为 git;技能和插件没有。
21687
+ */
21688
+ format?: 'git';
21689
+ /**
21690
+ * 只有 git 包才有;git clone 和 git push 用的地址,在我们自己的域名下(registry.deepraxis.com/git/...),认证见 packages.git-credential。
21691
+ */
21692
+ clone_url?: string;
21693
+ /**
21694
+ * 只有 git 包才有;默认分支名,建包时给,省略为 main。
21695
+ */
21696
+ default_branch?: string;
21697
+ /**
21698
+ * 只有 git 包才有;受保护的分支或标签,不能用普通凭据更新或删除,默认只保护默认分支;用 PATCH 改。
21699
+ */
21700
+ protected_refs?: Array<string>;
21257
21701
  /**
21258
21702
  * 包首次发布的时刻,ISO 8601 UTC。
21259
21703
  */
@@ -21313,6 +21757,44 @@ export type RegistryVersion = {
21313
21757
  */
21314
21758
  create_time: string;
21315
21759
  };
21760
+ /**
21761
+ * 换 git 凭据的请求体;只有 access 必填。
21762
+ */
21763
+ export type RegistryGitCredentialInput = {
21764
+ /**
21765
+ * 凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。
21766
+ */
21767
+ access: 'pull' | 'push' | 'push-protected';
21768
+ /**
21769
+ * 凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。
21770
+ */
21771
+ ttl_seconds?: number;
21772
+ };
21773
+ /**
21774
+ * 一个签发好的 git 凭据:用 HTTP Basic 的用户名和密码访问 url。
21775
+ */
21776
+ export type RegistryGitCredential = {
21777
+ /**
21778
+ * 对象类型标记,固定为 registry.git_credential。
21779
+ */
21780
+ object: string;
21781
+ /**
21782
+ * 这个包的 git 地址,克隆和推送都用它,不含凭据。
21783
+ */
21784
+ url: string;
21785
+ /**
21786
+ * HTTP Basic 的用户名,固定为 x-access-token。
21787
+ */
21788
+ username: 'x-access-token';
21789
+ /**
21790
+ * HTTP Basic 的密码,一个到 expires_at 失效的凭据;敏感,只在这个响应里给出,不要写进日志、提交或 clone 后保留的 remote 地址。
21791
+ */
21792
+ password: string;
21793
+ /**
21794
+ * 凭据失效的时刻,ISO 8601 UTC;过期后重新调用 git-credential。
21795
+ */
21796
+ expires_at: string;
21797
+ };
21316
21798
  /**
21317
21799
  * 一段提交历史。
21318
21800
  */
@@ -21335,9 +21817,9 @@ export type RegistryGitLog = {
21335
21817
  has_more: boolean;
21336
21818
  };
21337
21819
  /**
21338
- * 一个 git 提交。
21820
+ * 一个 git 提交,需要时连同它改动的文件。
21339
21821
  */
21340
- export type RegistryGitCommit = {
21822
+ export type RegistryGitCommitDetail = {
21341
21823
  /**
21342
21824
  * 对象类型标记,固定为 registry.git.commit。
21343
21825
  */
@@ -21366,6 +21848,14 @@ export type RegistryGitCommit = {
21366
21848
  * 父提交的对象 id,按顺序。
21367
21849
  */
21368
21850
  parents: Array<string>;
21851
+ /**
21852
+ * 相对第一个父提交改动的文件;只在请求带 changed_files=true 时才有。
21853
+ */
21854
+ changed_files?: Array<RegistryGitChangedFile>;
21855
+ /**
21856
+ * changed_files 被上限截断时为 true,此时不要当作改动的全部;只在请求带 changed_files=true 时才有。
21857
+ */
21858
+ changed_files_truncated?: boolean;
21369
21859
  };
21370
21860
  /**
21371
21861
  * 一个树的条目清单。
@@ -21384,6 +21874,94 @@ export type RegistryGitTree = {
21384
21874
  */
21385
21875
  entries: Array<RegistryGitTreeEntry>;
21386
21876
  };
21877
+ /**
21878
+ * 一页分支和标签。
21879
+ */
21880
+ export type RegistryGitRefs = {
21881
+ /**
21882
+ * 对象类型标记,固定为 registry.git.refs。
21883
+ */
21884
+ object: string;
21885
+ /**
21886
+ * 这一页的引用,按名字排序。
21887
+ */
21888
+ refs: Array<RegistryGitRefItem>;
21889
+ /**
21890
+ * 是否还有下一页(page 加 1 取下一页)。
21891
+ */
21892
+ has_more: boolean;
21893
+ };
21894
+ /**
21895
+ * 一个引用换成的提交 id。
21896
+ */
21897
+ export type RegistryGitResolvedRef = {
21898
+ /**
21899
+ * 对象类型标记,固定为 registry.git.resolved_ref。
21900
+ */
21901
+ object: string;
21902
+ /**
21903
+ * 请求里的引用,原样返回。
21904
+ */
21905
+ ref: string;
21906
+ /**
21907
+ * 这个引用指向的提交 id。
21908
+ */
21909
+ sha: string;
21910
+ };
21911
+ /**
21912
+ * 两个引用的比较结果。
21913
+ */
21914
+ export type RegistryGitComparison = {
21915
+ /**
21916
+ * 对象类型标记,固定为 registry.git.comparison。
21917
+ */
21918
+ object: string;
21919
+ /**
21920
+ * head 相对 base 的关系。
21921
+ */
21922
+ status: 'identical' | 'ahead' | 'behind' | 'diverged';
21923
+ /**
21924
+ * 找到的最近共同祖先的提交 id;没有找到(历史无关,或读取上限内没走到)时为 null。
21925
+ */
21926
+ merge_base: string | null;
21927
+ /**
21928
+ * head 相对 merge_base 改动的文件;merge_base 为 null 时相对 base。
21929
+ */
21930
+ files: Array<RegistryGitChangedFile>;
21931
+ /**
21932
+ * head 比 base 多出的提交,最新的在前。
21933
+ */
21934
+ commits: Array<RegistryGitComparedCommit>;
21935
+ /**
21936
+ * 为 true 表示 files 被上限截断,或没找到 merge_base 而无法确定 files;此时不要当作完整结果。
21937
+ */
21938
+ truncated: boolean;
21939
+ /**
21940
+ * 为 true 表示 commits 不完整(读取上限,或合并提交藏起了被合并分支上的提交);此时不要当作 head 多出的全部提交。
21941
+ */
21942
+ commits_truncated: boolean;
21943
+ };
21944
+ /**
21945
+ * 一个提交或树下的全部条目。
21946
+ */
21947
+ export type RegistryGitTreeRecursive = {
21948
+ /**
21949
+ * 对象类型标记,固定为 registry.git.tree_recursive。
21950
+ */
21951
+ object: string;
21952
+ /**
21953
+ * 请求里读的提交或树对象 id,原样返回。
21954
+ */
21955
+ sha: string;
21956
+ /**
21957
+ * 为 true 表示撞到条目或树读取上限,entries 只是前一部分,不是全部。
21958
+ */
21959
+ truncated: boolean;
21960
+ /**
21961
+ * 全部条目,按路径排序,目录也在其中。
21962
+ */
21963
+ entries: Array<RegistryGitTreeNode>;
21964
+ };
21387
21965
  /**
21388
21966
  * 一个版本的文件清单;文件不多,一次返回全部。
21389
21967
  */
@@ -21535,7 +22113,7 @@ export type SandboxNewSandboxV2 = {
21535
22113
  */
21536
22114
  volumeMounts?: Array<SandboxSandboxVolumeMount>;
21537
22115
  /**
21538
- * Own face, required: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
22116
+ * Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
21539
22117
  */
21540
22118
  ephemeral?: boolean;
21541
22119
  /**
@@ -21562,6 +22140,14 @@ export type SandboxNewSandboxV2 = {
21562
22140
  * Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
21563
22141
  */
21564
22142
  idleActivity?: 'traffic' | 'caller';
22143
+ /**
22144
+ * Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
22145
+ */
22146
+ sku?: string;
22147
+ /**
22148
+ * Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
22149
+ */
22150
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
21565
22151
  /**
21566
22152
  * Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
21567
22153
  */
@@ -26368,49 +26954,44 @@ export type AgentSseData = {
26368
26954
  * Praxis extension (MCP Apps, SEP-1865): `app` when the call was made by an MCP Apps view, `codemode` when a program run by the codemode tool called an MCP tool that declares a view (the event pair exists so a client can render that view; the model already has the result in the codemode tool result); absent for the model's own calls.
26369
26955
  */
26370
26956
  source?: 'app' | 'codemode';
26371
- } | {
26957
+ } | (unknown & {
26372
26958
  /**
26373
- * Event id, unique within the session.
26959
+ * Unique identifier for this event.
26374
26960
  */
26375
26961
  id: string;
26376
26962
  /**
26377
- * Always `user.tool_confirmation`.
26963
+ * UserToolConfirmationResult enum
26378
26964
  */
26379
- type: 'user.tool_confirmation';
26965
+ result: 'allow' | 'deny';
26380
26966
  /**
26381
- * When the event was recorded, RFC 3339.
26967
+ * The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
26968
+ * corresponds to, which can be found in the last `session.status_idle`
26969
+ * [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
26970
+ * `stop_reason.event_ids` field.
26382
26971
  */
26383
- processed_at: string;
26972
+ tool_use_id: string;
26384
26973
  /**
26385
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
26974
+ * Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
26386
26975
  */
26387
- tool_use_id: string;
26976
+ type: 'user.tool_confirmation';
26388
26977
  /**
26389
- * Always `allow`.
26978
+ * Feedback for a deny result, at most 4000 characters. Appended to the model-visible refusal and persisted on the confirmation. Omit when no feedback is needed.
26390
26979
  */
26391
- result: 'allow';
26980
+ deny_message?: string;
26392
26981
  /**
26393
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
26982
+ * A timestamp in RFC 3339 format
26394
26983
  */
26395
- answers: {
26396
- [key: string]: string;
26397
- };
26984
+ processed_at?: null | string;
26398
26985
  /**
26399
- * Per-question notes, keyed by the question text.
26986
+ * Set by the server to the subagent thread this confirmation was routed to.
26987
+ * Omitted when it was routed to the primary thread.
26400
26988
  */
26401
- annotations?: {
26402
- [key: string]: {
26403
- /**
26404
- * The preview of the option the user chose.
26405
- */
26406
- preview?: string;
26407
- /**
26408
- * Free text the user added to their choice.
26409
- */
26410
- notes?: string;
26411
- };
26412
- };
26413
- } | {
26989
+ session_thread_id?: null | string;
26990
+ /**
26991
+ * With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
26992
+ */
26993
+ permission_mode?: 'yolo';
26994
+ }) | {
26414
26995
  /**
26415
26996
  * Unique identifier for this event.
26416
26997
  */
@@ -31861,6 +32442,149 @@ export type OrganizationMetric = {
31861
32442
  */
31862
32443
  unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
31863
32444
  };
32445
+ /**
32446
+ * One stored revision of a subject's spec, kept for history.
32447
+ */
32448
+ export type OrganizationSpecRevision = {
32449
+ kind: OrganizationSpecKind;
32450
+ /**
32451
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
32452
+ */
32453
+ id: string;
32454
+ /**
32455
+ * Revision number of this stored body, rising from 1; diff and get accept it as revision.
32456
+ */
32457
+ revision: number;
32458
+ /**
32459
+ * The whole body as it was written at this revision, verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
32460
+ */
32461
+ spec: {
32462
+ [key: string]: unknown;
32463
+ };
32464
+ /**
32465
+ * UTC instant (RFC 3339) when this revision was written.
32466
+ */
32467
+ create_time: string;
32468
+ /**
32469
+ * Actor address that wrote this revision (human:usr_... or agent:agent_...).
32470
+ */
32471
+ created_by: string;
32472
+ };
32473
+ /**
32474
+ * One difference between two revisions of a spec.
32475
+ */
32476
+ export type OrganizationSpecChange = {
32477
+ /**
32478
+ * Path of the changed value inside the spec body, such as agent.model or repositories[github:org/repo].
32479
+ */
32480
+ path: string;
32481
+ /**
32482
+ * What happened at this path between the two revisions.
32483
+ */
32484
+ op: 'added' | 'removed' | 'changed';
32485
+ /**
32486
+ * The value at this path in the earlier revision, verbatim; absent when the value was added.
32487
+ */
32488
+ before?: unknown;
32489
+ /**
32490
+ * The value at this path in the later revision, verbatim; absent when the value was removed.
32491
+ */
32492
+ after?: unknown;
32493
+ };
32494
+ /**
32495
+ * One layer the effective spec was merged from, least specific first.
32496
+ */
32497
+ export type OrganizationSpecLayerRef = {
32498
+ kind: OrganizationSpecKind;
32499
+ /**
32500
+ * The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
32501
+ */
32502
+ id: string;
32503
+ /**
32504
+ * Revision of that layer's spec at the time it was merged.
32505
+ */
32506
+ revision: number;
32507
+ };
32508
+ /**
32509
+ * One document block collected from a layer of the effective spec, kept whole and never merged.
32510
+ */
32511
+ export type OrganizationSpecDocument = {
32512
+ /**
32513
+ * The layer the document came from, as kind:id such as job:jpr_123.
32514
+ */
32515
+ from: string;
32516
+ /**
32517
+ * Revision of that layer's spec the document was read at.
32518
+ */
32519
+ revision: number;
32520
+ /**
32521
+ * The document text itself, inferred from memory rather than merged into the capability blocks.
32522
+ */
32523
+ text: string;
32524
+ };
32525
+ /**
32526
+ * One action the reconciler would take for a block in a dry run.
32527
+ */
32528
+ export type OrganizationReconcileAction = {
32529
+ /**
32530
+ * Name of the block this action is about, such as agent.
32531
+ */
32532
+ block: string;
32533
+ /**
32534
+ * What the reconciler would do with this block.
32535
+ */
32536
+ action: 'hold' | 'update' | 'none' | 'pending' | 'blocked';
32537
+ /**
32538
+ * The value the action would write, or the reason it is blocked, verbatim.
32539
+ */
32540
+ detail: unknown;
32541
+ };
32542
+ /**
32543
+ * One capability block and the state the reconciler last left it in.
32544
+ */
32545
+ export type OrganizationReconcileItem = {
32546
+ /**
32547
+ * Name of the capability block this row is about, such as agent or computer.
32548
+ */
32549
+ block: string;
32550
+ /**
32551
+ * What the reconciler last did with this block.
32552
+ */
32553
+ state: 'ready' | 'pending' | 'failed' | 'waiting_human' | 'paused';
32554
+ /**
32555
+ * The resource the block was applied to, such as agent:agent_... ; null before it is bound.
32556
+ */
32557
+ binding: string | null;
32558
+ /**
32559
+ * Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
32560
+ */
32561
+ message: string | null;
32562
+ };
32563
+ /**
32564
+ * One value where what is applied differs from what the specs want.
32565
+ */
32566
+ export type OrganizationReconcileDrift = {
32567
+ /**
32568
+ * Name of the block the drifted value belongs to, such as agent.
32569
+ */
32570
+ block: string;
32571
+ /**
32572
+ * Path of the value inside the block, such as model.
32573
+ */
32574
+ field: string;
32575
+ /**
32576
+ * The value currently applied, verbatim; null when nothing is applied there yet.
32577
+ */
32578
+ found: unknown;
32579
+ /**
32580
+ * The value the specs resolved to, verbatim.
32581
+ */
32582
+ want: unknown;
32583
+ /**
32584
+ * UTC instant (RFC 3339) from which the drift has been observed.
32585
+ */
32586
+ since: string;
32587
+ };
31864
32588
  /**
31865
32589
  * Your own string key/value pairs stored with the sandbox; usable as a filter in listSandboxes.
31866
32590
  */
@@ -35324,14 +36048,80 @@ export type DevopsTestPlanPackage = {
35324
36048
  */
35325
36049
  run?: string;
35326
36050
  };
36051
+ /**
36052
+ * One feature scenario of an affected package at the gate's sizes: whether this diff requires evidence for it, and what evidence already answers it at its deps hash. Unit tests (*.test.ts) never appear here; they need no evidence.
36053
+ */
36054
+ export type DevopsTestPlanCase = {
36055
+ /**
36056
+ * The case id as the catalog holds it; the unit evidence is filed under.
36057
+ */
36058
+ case: string;
36059
+ /**
36060
+ * Repository-relative directory of the package the scenario lives in.
36061
+ */
36062
+ package: string;
36063
+ /**
36064
+ * The scenario title, to name a failed or missing case to a person.
36065
+ */
36066
+ title: string;
36067
+ /**
36068
+ * Whether this diff requires evidence for the case. Only required cases can hold a merge.
36069
+ */
36070
+ required: boolean;
36071
+ /**
36072
+ * Why the case is or is not required, chosen by coverage: no-impact when no run has recorded what the case executes and the diff touches its package, deps-changed when the diff meets the files the case depends on, always-affected when a root file, the BDD framework or the package manifest changed, unaffected otherwise.
36073
+ */
36074
+ reason: 'no-impact' | 'deps-changed' | 'always-affected' | 'unaffected';
36075
+ /**
36076
+ * The hash the case is judged at, computed by DevOps from the commit's tree over the case's dependency set (recorded files, its feature file and its package's step and support files). A case with no recorded coverage is judged at pkg: followed by its package's input hash.
36077
+ */
36078
+ depsHash: string;
36079
+ /**
36080
+ * What the newest recorded result says at this deps hash: passed, failed, or missing when no run has recorded the case there.
36081
+ */
36082
+ evidence: 'passed' | 'failed' | 'missing';
36083
+ /**
36084
+ * The run the answering result came from; absent when evidence is missing.
36085
+ */
36086
+ run?: string;
36087
+ };
36088
+ /**
36089
+ * The case counts of one package in the summary view of a test plan.
36090
+ */
36091
+ export type DevopsTestPlanCaseCounts = {
36092
+ /**
36093
+ * The package directory these counts are for.
36094
+ */
36095
+ package: string;
36096
+ /**
36097
+ * Cases this diff requires evidence for; the merge asks for nothing else.
36098
+ */
36099
+ required: number;
36100
+ /**
36101
+ * Cases this diff cannot affect, which need no evidence.
36102
+ */
36103
+ unaffected: number;
36104
+ /**
36105
+ * Required cases that already have a passing row at their deps hash.
36106
+ */
36107
+ evidenced: number;
36108
+ /**
36109
+ * Required cases with no evidence row at their deps hash.
36110
+ */
36111
+ missing: number;
36112
+ /**
36113
+ * Required cases whose newest evidence at their deps hash failed.
36114
+ */
36115
+ failed: number;
36116
+ };
35327
36117
  /**
35328
36118
  * The git repository a project is bound to, and how far the service's mirror of it has been read.
35329
36119
  */
35330
36120
  export type DevopsRepositoryRef = {
35331
36121
  /**
35332
- * The git host serving this repository; only github is bound today, and the value decides how fullName is read.
36122
+ * The git host serving this repository; the value decides how fullName is read.
35333
36123
  */
35334
- provider: 'github';
36124
+ provider: 'github' | 'platform';
35335
36125
  /**
35336
36126
  * Owner and repository name as the git host spells them, which is what a person sees in a clone URL.
35337
36127
  */
@@ -35341,7 +36131,7 @@ export type DevopsRepositoryRef = {
35341
36131
  */
35342
36132
  defaultBranch: string;
35343
36133
  /**
35344
- * The git host connection that authorizes reads of this repository; the connection itself is outside this domain's operations.
36134
+ * The git host connection that authorizes reads of this repository; null for a repository on our own Git, which needs none. The connection itself is outside this domain's operations.
35345
36135
  */
35346
36136
  connection: string;
35347
36137
  /**
@@ -35374,6 +36164,8 @@ export type DevopsProjectSettings = {
35374
36164
  * Whether the merge gate is registered with the git host as a required check; true means the host itself blocks a merge the gate has not passed.
35375
36165
  */
35376
36166
  requireGate: boolean;
36167
+ gate?: DevopsGatePolicy;
36168
+ retention?: DevopsProjectRetention;
35377
36169
  };
35378
36170
  /**
35379
36171
  * When the project cuts releases by itself, in a five-field cron and the zone it is read in.
@@ -35388,6 +36180,42 @@ export type DevopsReleaseSchedule = {
35388
36180
  */
35389
36181
  timeZone: string;
35390
36182
  };
36183
+ /**
36184
+ * The project's merge-gate policy. Writing gate replaces the whole policy, so send every field you want kept; a field left out returns to its default.
36185
+ */
36186
+ export type DevopsGatePolicy = {
36187
+ /**
36188
+ * How the merge gate's tests check reads on this project. evidence requires per-case test evidence: the check fails and names the command the author runs on the pushed head while a required case has no passing evidence. off does not gate tests: the check reports skipped, saying so, and no evidence is read. Absent means off, so a project that never wrote it keeps merging without test evidence until it is set to evidence.
36189
+ */
36190
+ tests?: 'evidence' | 'off';
36191
+ /**
36192
+ * One rule per gate check: its mode (enforce counts it, evaluate shows it without counting, off hides it) and whether an unavailable check blocks.
36193
+ */
36194
+ rules?: Array<{
36195
+ /**
36196
+ * The gate check this rule governs.
36197
+ */
36198
+ check: string;
36199
+ /**
36200
+ * enforce counts the check toward the gate, evaluate records it without counting, off drops it.
36201
+ */
36202
+ mode: 'enforce' | 'evaluate' | 'off';
36203
+ /**
36204
+ * What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
36205
+ */
36206
+ whenUnavailable: 'fail-closed' | 'fail-open';
36207
+ /**
36208
+ * The check's own parameters; passed through unread.
36209
+ */
36210
+ params?: {
36211
+ [key: string]: unknown;
36212
+ };
36213
+ }>;
36214
+ /**
36215
+ * Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
36216
+ */
36217
+ bypass?: Array<string>;
36218
+ };
35391
36219
  /**
35392
36220
  * One commit inside a release, so a reader can see what is about to ship without leaving this answer.
35393
36221
  */
@@ -36127,9 +36955,9 @@ export type DevopsChangePullRequestRef = {
36127
36955
  */
36128
36956
  export type DevopsChangeStageDetail = {
36129
36957
  /**
36130
- * The change's position; with several pull requests it is the slice furthest behind.
36958
+ * The change's position; with several pull requests it is the slice furthest behind. The path is development, integration, release: integrating and integrated are the integration stage.
36131
36959
  */
36132
- stage: 'developing' | 'reviewing' | 'merged' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
36960
+ stage: 'developing' | 'reviewing' | 'integrating' | 'integrated' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
36133
36961
  /**
36134
36962
  * The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one.
36135
36963
  */
@@ -36236,6 +37064,32 @@ export type DevopsMergeGate = {
36236
37064
  */
36237
37065
  decideTime?: string;
36238
37066
  };
37067
+ /**
37068
+ * A reviewer's verdict on a pull request, recorded after the merge gate decided; present once someone recorded one. It is a record, never a gate input: a failed verdict on a merged pull request is a finding for follow-up and the merge stands.
37069
+ */
37070
+ export type DevopsReviewVerdict = {
37071
+ /**
37072
+ * passed when the reviewer found nothing wrong, failed when they found something to fix or roll back.
37073
+ */
37074
+ result: 'passed' | 'failed';
37075
+ /**
37076
+ * What the reviewer found, in a sentence a reader can act on.
37077
+ */
37078
+ reason: string;
37079
+ by: DevopsActor;
37080
+ /**
37081
+ * The commit the review is about.
37082
+ */
37083
+ headSha: string;
37084
+ /**
37085
+ * RFC 3339 UTC time the verdict was recorded.
37086
+ */
37087
+ time: string;
37088
+ /**
37089
+ * True when the pull request had already merged when the verdict was recorded; a failed verdict with merged true is a finding.
37090
+ */
37091
+ merged: boolean;
37092
+ };
36239
37093
  /**
36240
37094
  * The GitHub account an installation belongs to.
36241
37095
  */
@@ -36352,7 +37206,7 @@ export type DevopsWorkspaceUpdateFields = {
36352
37206
  enabled?: boolean;
36353
37207
  };
36354
37208
  /**
36355
- * The vaults (by vault id, at most 10) this stage's units take their runtime environment from. Only the development workspace accepts it: a value here for integration or runtime is refused with INVALID_ARGUMENT. Each id must exist in this organization; the values are never read back through this API.
37209
+ * The vaults (by vault id, at most 10) this stage's units take their runtime environment from. Only the development workspace accepts it: a value here for integration or release is refused with INVALID_ARGUMENT. Each id must exist in this organization; the values are never read back through this API.
36356
37210
  */
36357
37211
  vaults?: Array<string>;
36358
37212
  };
@@ -36504,6 +37358,63 @@ export type DevopsUnitTransition = {
36504
37358
  */
36505
37359
  error: null | DevopsUnitTransitionError;
36506
37360
  };
37361
+ /**
37362
+ * One cleanup action the job decided and carried out (or tried to).
37363
+ */
37364
+ export type DevopsCleanupEntry = {
37365
+ /**
37366
+ * The ledger row's id.
37367
+ */
37368
+ id: string;
37369
+ /**
37370
+ * Always cleanup.
37371
+ */
37372
+ object: string;
37373
+ /**
37374
+ * When the action was decided (RFC 3339).
37375
+ */
37376
+ createTime: string;
37377
+ /**
37378
+ * When the action was last touched: done, or decided when it is not done yet.
37379
+ */
37380
+ updateTime: string;
37381
+ /**
37382
+ * The Console page of the project the action belongs to.
37383
+ */
37384
+ viewerUrl: string;
37385
+ /**
37386
+ * The project the action belongs to.
37387
+ */
37388
+ project: string;
37389
+ /**
37390
+ * What was cleaned.
37391
+ */
37392
+ kind: 'branch' | 'unit' | 'evidence' | 'prebuild';
37393
+ /**
37394
+ * Which one: branch name and pull request number, unit id, evidence table and cutoff day, or prebuild id.
37395
+ */
37396
+ subject: string;
37397
+ /**
37398
+ * archive keeps the record and drops the heavy content; delete removes it.
37399
+ */
37400
+ action: 'archive' | 'delete';
37401
+ /**
37402
+ * Why, as a stable code with its numbers, for example branch-merged, unit-stopped-30d, evidence-older-than-90d (37 rows) or prebuild-beyond-2.
37403
+ */
37404
+ reason: string;
37405
+ /**
37406
+ * When the job decided the action (RFC 3339).
37407
+ */
37408
+ decidedAt: string;
37409
+ /**
37410
+ * When the action was carried out; null while it is not done.
37411
+ */
37412
+ doneAt: string | null;
37413
+ /**
37414
+ * Why the last attempt failed; null once it is done. A failed action stays open and is tried again by the next run.
37415
+ */
37416
+ error: string | null;
37417
+ };
36507
37418
  /**
36508
37419
  * Counts of files still attached to the store or batch, grouped by ingestion status.
36509
37420
  */
@@ -38072,6 +38983,56 @@ export type RegistryRegistryError = {
38072
38983
  };
38073
38984
  };
38074
38985
  };
38986
+ /**
38987
+ * 一个 git 提交。
38988
+ */
38989
+ export type RegistryGitCommit = {
38990
+ /**
38991
+ * 对象类型标记,固定为 registry.git.commit。
38992
+ */
38993
+ object: string;
38994
+ /**
38995
+ * 提交的对象 id。
38996
+ */
38997
+ sha: string;
38998
+ /**
38999
+ * 提交信息原文,含换行。
39000
+ */
39001
+ message: string;
39002
+ /**
39003
+ * 作者名;仓库没有给出名字时是空串。
39004
+ */
39005
+ author: string;
39006
+ /**
39007
+ * 作者邮箱;仓库给了才有。
39008
+ */
39009
+ author_email?: string;
39010
+ /**
39011
+ * 提交时间的 RFC 3339 时间戳;后端没给时是空串。
39012
+ */
39013
+ committed_at: string;
39014
+ /**
39015
+ * 父提交的对象 id,按顺序。
39016
+ */
39017
+ parents: Array<string>;
39018
+ };
39019
+ /**
39020
+ * 一次提交或比较改动的一个文件。
39021
+ */
39022
+ export type RegistryGitChangedFile = {
39023
+ /**
39024
+ * 文件路径,相对仓库根;改名时是新路径。
39025
+ */
39026
+ path: string;
39027
+ /**
39028
+ * 这个文件怎么变的。
39029
+ */
39030
+ status: 'added' | 'modified' | 'removed' | 'renamed';
39031
+ /**
39032
+ * 改名前的路径;只有 status 为 renamed 时才有。
39033
+ */
39034
+ previous_path?: string;
39035
+ };
38075
39036
  /**
38076
39037
  * 树里的一个条目。
38077
39038
  */
@@ -38097,6 +39058,65 @@ export type RegistryGitTreeEntry = {
38097
39058
  */
38098
39059
  size?: number;
38099
39060
  };
39061
+ /**
39062
+ * 一个分支或标签。
39063
+ */
39064
+ export type RegistryGitRefItem = {
39065
+ /**
39066
+ * 引用的全名,分支以 refs/heads/ 开头,标签以 refs/tags/ 开头。
39067
+ */
39068
+ ref: string;
39069
+ /**
39070
+ * 它指向的提交 id;带注解的标签给的是标签下面的提交。
39071
+ */
39072
+ sha: string;
39073
+ /**
39074
+ * 引用的种类,分支或标签,由全名的前缀决定。
39075
+ */
39076
+ type: 'branch' | 'tag';
39077
+ };
39078
+ /**
39079
+ * 比较结果里的一个提交。
39080
+ */
39081
+ export type RegistryGitComparedCommit = {
39082
+ /**
39083
+ * 提交的对象 id。
39084
+ */
39085
+ sha: string;
39086
+ /**
39087
+ * 提交信息的第一行。
39088
+ */
39089
+ subject: string;
39090
+ /**
39091
+ * 这个提交的作者名;仓库没有给出名字时是空串。
39092
+ */
39093
+ author: string;
39094
+ };
39095
+ /**
39096
+ * 递归树里的一个条目。
39097
+ */
39098
+ export type RegistryGitTreeNode = {
39099
+ /**
39100
+ * 相对根的完整路径,用斜杠分隔。
39101
+ */
39102
+ path: string;
39103
+ /**
39104
+ * 条目指向的对象类型;commit 是子模块,不展开。
39105
+ */
39106
+ type: 'blob' | 'tree' | 'commit';
39107
+ /**
39108
+ * git 的模式位,例如 100644、100755、120000 或 040000。
39109
+ */
39110
+ mode: string;
39111
+ /**
39112
+ * 条目指向的对象 id。
39113
+ */
39114
+ sha: string;
39115
+ /**
39116
+ * 对象大小(字节),后端给出时才有。
39117
+ */
39118
+ size?: number;
39119
+ };
38100
39120
  /**
38101
39121
  * 一个版本解压后的一个文件条目。
38102
39122
  */
@@ -44034,6 +45054,27 @@ export type DevopsMirrorState = {
44034
45054
  */
44035
45055
  error?: string;
44036
45056
  };
45057
+ /**
45058
+ * What the project keeps and for how long. Every item has an industry default and may be left out; an update naming one item keeps the others as they were. The daily cleanup job reads these and records what it removed in the cleanup ledger. How long a running machine may sit idle before it pauses (30 minutes by default) is the development workspace's own idleTimeoutMinutes, not an item here.
45059
+ */
45060
+ export type DevopsProjectRetention = {
45061
+ /**
45062
+ * Delete a pull request's branch as soon as it merges, as GitHub's automatic head-branch deletion does. The default branch and any branch another open pull request still uses are never deleted. Default true.
45063
+ */
45064
+ deleteMergedBranch?: boolean;
45065
+ /**
45066
+ * Days a stopped unit whose change is still open is kept before it is deleted (the unit pushes its work to a WIP ref first and is kept when it cannot). A unit whose change has merged or been abandoned follows the workspace's own retentionDays instead. Default 30.
45067
+ */
45068
+ stoppedUnitDays?: number;
45069
+ /**
45070
+ * Days test evidence rows are kept. The evidence for the current deps hash of a package or case on the default branch is kept whatever its age, because test selection reads it. Default 90.
45071
+ */
45072
+ evidenceDays?: number;
45073
+ /**
45074
+ * How many ready prebuilds each workspace keeps, newest first; older ones are archived and their snapshots deleted. Default 2.
45075
+ */
45076
+ prebuildVersions?: number;
45077
+ };
44037
45078
  /**
44038
45079
  * One target's render result inside a release.
44039
45080
  */
@@ -44105,7 +45146,7 @@ export type DevopsPlanRefusal = {
44105
45146
  /**
44106
45147
  * Which rule refused, which is the value a caller branches on; the remaining fields carry that rule's own evidence.
44107
45148
  */
44108
- code: 'PICK_NOT_ON_MAIN' | 'PICK_NOT_ON_DEVELOP' | 'PICK_ALREADY_IN_PRODUCTION' | 'PICK_CONFLICT' | 'PATCH_HAS_MIGRATION' | 'PATCH_CHANGES_BINDING' | 'PATCH_CHANGES_CONTRACT' | 'BASE_NOT_UNIFORM' | 'NOT_VERIFIED_UPSTREAM' | 'CONFIG_MISSING' | 'MISSING_PATCH_PICKS' | 'RELEASE_NOT_READY' | 'RELEASE_ABANDONED' | 'DEADLINE_EXCEEDED' | 'EXECUTOR_UNAVAILABLE' | 'FEATURE_NOT_SUPPORTED';
45149
+ code: 'PICK_NOT_ON_MAIN' | 'PICK_NOT_ON_DEVELOP' | 'PICK_ALREADY_IN_PRODUCTION' | 'PICK_CONFLICT' | 'PATCH_HAS_MIGRATION' | 'PATCH_CHANGES_BINDING' | 'PATCH_CHANGES_CONTRACT' | 'BASE_NOT_UNIFORM' | 'NOT_DEPLOYED_UPSTREAM' | 'CONFIG_MISSING' | 'MISSING_PATCH_PICKS' | 'RELEASE_NOT_READY' | 'RELEASE_ABANDONED' | 'DEADLINE_EXCEEDED' | 'EXECUTOR_UNAVAILABLE' | 'FEATURE_NOT_SUPPORTED';
44109
45150
  /**
44110
45151
  * The commit this refusal is about, present for the pick rules; it is the pick the request carried.
44111
45152
  */
@@ -48057,7 +49098,7 @@ export type DevopsEnvironmentQuery = string;
48057
49098
  */
48058
49099
  export type DevopsSegmentIdPath = string;
48059
49100
  /**
48060
- * The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units.
49101
+ * The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units.
48061
49102
  */
48062
49103
  export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
48063
49104
  /**
@@ -48128,6 +49169,34 @@ export type RegistryGitLogOffset = number;
48128
49169
  * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
48129
49170
  */
48130
49171
  export type RegistryGitObjectId = string;
49172
+ /**
49173
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
49174
+ */
49175
+ export type RegistryGitChangedFiles = boolean;
49176
+ /**
49177
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
49178
+ */
49179
+ export type RegistryGitRefPrefix = 'refs/heads/' | 'refs/tags/';
49180
+ /**
49181
+ * 页码,从 1 起,默认 1。
49182
+ */
49183
+ export type RegistryGitRefsPage = number;
49184
+ /**
49185
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
49186
+ */
49187
+ export type RegistryGitRefsSize = number;
49188
+ /**
49189
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
49190
+ */
49191
+ export type RegistryGitResolveRef = string;
49192
+ /**
49193
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
49194
+ */
49195
+ export type RegistryGitCompareBase = string;
49196
+ /**
49197
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
49198
+ */
49199
+ export type RegistryGitCompareHead = string;
48131
49200
  /**
48132
49201
  * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
48133
49202
  */
@@ -49036,48 +50105,6 @@ export type ListAgentEventsResponses = {
49036
50105
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
49037
50106
  */
49038
50107
  processed_at: string;
49039
- } | {
49040
- /**
49041
- * Event id, unique within the session.
49042
- */
49043
- id: string;
49044
- /**
49045
- * Always `user.tool_confirmation`.
49046
- */
49047
- type: 'user.tool_confirmation';
49048
- /**
49049
- * When the event was recorded, RFC 3339.
49050
- */
49051
- processed_at: string;
49052
- /**
49053
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
49054
- */
49055
- tool_use_id: string;
49056
- /**
49057
- * Always `allow`.
49058
- */
49059
- result: 'allow';
49060
- /**
49061
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
49062
- */
49063
- answers: {
49064
- [key: string]: string;
49065
- };
49066
- /**
49067
- * Per-question notes, keyed by the question text.
49068
- */
49069
- annotations?: {
49070
- [key: string]: {
49071
- /**
49072
- * The preview of the option the user chose.
49073
- */
49074
- preview?: string;
49075
- /**
49076
- * Free text the user added to their choice.
49077
- */
49078
- notes?: string;
49079
- };
49080
- };
49081
50108
  }>;
49082
50109
  /**
49083
50110
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -49127,40 +50154,6 @@ export type SendAgentEventsData = {
49127
50154
  * Id of the event this event refers to.
49128
50155
  */
49129
50156
  event_id: string;
49130
- } | {
49131
- /**
49132
- * Always `user.tool_confirmation`.
49133
- */
49134
- type: 'user.tool_confirmation';
49135
- /**
49136
- * The id of the pending `agent.tool_use` event of the AskUserQuestion call.
49137
- */
49138
- tool_use_id: string;
49139
- /**
49140
- * Always `allow`; the questions are answered, or dismissed with an empty `answers`.
49141
- */
49142
- result: 'allow';
49143
- /**
49144
- * The user's answer to each question, keyed by the question text. A multi-select answer joins the chosen labels with a comma and a space; a free-text answer is the user's own words. A question left out was skipped.
49145
- */
49146
- answers: {
49147
- [key: string]: string;
49148
- };
49149
- /**
49150
- * Optional per-question notes, keyed by the question text.
49151
- */
49152
- annotations?: {
49153
- [key: string]: {
49154
- /**
49155
- * The preview of the option the user chose.
49156
- */
49157
- preview?: string;
49158
- /**
49159
- * Free text the user added to their choice.
49160
- */
49161
- notes?: string;
49162
- };
49163
- };
49164
50157
  }>;
49165
50158
  };
49166
50159
  path: {
@@ -49243,48 +50236,6 @@ export type SendAgentEventsResponses = {
49243
50236
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
49244
50237
  */
49245
50238
  processed_at: string;
49246
- } | {
49247
- /**
49248
- * Event id, unique within the session.
49249
- */
49250
- id: string;
49251
- /**
49252
- * Always `user.tool_confirmation`.
49253
- */
49254
- type: 'user.tool_confirmation';
49255
- /**
49256
- * When the event was recorded, RFC 3339.
49257
- */
49258
- processed_at: string;
49259
- /**
49260
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
49261
- */
49262
- tool_use_id: string;
49263
- /**
49264
- * Always `allow`.
49265
- */
49266
- result: 'allow';
49267
- /**
49268
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
49269
- */
49270
- answers: {
49271
- [key: string]: string;
49272
- };
49273
- /**
49274
- * Per-question notes, keyed by the question text.
49275
- */
49276
- annotations?: {
49277
- [key: string]: {
49278
- /**
49279
- * The preview of the option the user chose.
49280
- */
49281
- preview?: string;
49282
- /**
49283
- * Free text the user added to their choice.
49284
- */
49285
- notes?: string;
49286
- };
49287
- };
49288
50239
  }>;
49289
50240
  };
49290
50241
  };
@@ -53060,13 +54011,17 @@ export type AgentsPhoneRetrieveResponses = {
53060
54011
  */
53061
54012
  configured: boolean;
53062
54013
  /**
53063
- * What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
54014
+ * What the phone is doing now. A cloud phone: none means no phone built (or its instance is gone), so a later use builds one; starting, the sandbox is still creating the instance; booting, the instance is up and the phone program has not said hello yet; restoring, last time's app state is being put back on the instance; running, usable now; archiving, the app state is being packed before it is killed (a release begins here); releasing, a release was asked for and the cron has not finished archiving and killing it. A BYOD phone (the organization's own device) has two states instead: online and offline.
53064
54015
  */
53065
- state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
54016
+ state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
53066
54017
  /**
53067
- * The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
54018
+ * The sandbox SKU a cloud phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device. Always null for a BYOD phone, which is never built.
53068
54019
  */
53069
54020
  sku: string | null;
54021
+ /**
54022
+ * A BYOD phone's device id (byd_…), or null for a cloud phone. The device is the organization's own real phone; the platform drives it but never builds, archives or kills it.
54023
+ */
54024
+ byod_device: string | null;
53070
54025
  /**
53071
54026
  * What people and the model call this phone, or null when no phone is configured.
53072
54027
  */
@@ -53146,13 +54101,17 @@ export type AgentsPhoneReleaseResponses = {
53146
54101
  */
53147
54102
  configured: boolean;
53148
54103
  /**
53149
- * What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
54104
+ * What the phone is doing now. A cloud phone: none means no phone built (or its instance is gone), so a later use builds one; starting, the sandbox is still creating the instance; booting, the instance is up and the phone program has not said hello yet; restoring, last time's app state is being put back on the instance; running, usable now; archiving, the app state is being packed before it is killed (a release begins here); releasing, a release was asked for and the cron has not finished archiving and killing it. A BYOD phone (the organization's own device) has two states instead: online and offline.
53150
54105
  */
53151
- state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
54106
+ state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
53152
54107
  /**
53153
- * The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
54108
+ * The sandbox SKU a cloud phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device. Always null for a BYOD phone, which is never built.
53154
54109
  */
53155
54110
  sku: string | null;
54111
+ /**
54112
+ * A BYOD phone's device id (byd_…), or null for a cloud phone. The device is the organization's own real phone; the platform drives it but never builds, archives or kills it.
54113
+ */
54114
+ byod_device: string | null;
53156
54115
  /**
53157
54116
  * What people and the model call this phone, or null when no phone is configured.
53158
54117
  */
@@ -55852,8 +56811,14 @@ export type ComputersFilesContentResponses = {
55852
56811
  206: Blob | File;
55853
56812
  };
55854
56813
  export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
55855
- export type PreviewComputerFileData = {
55856
- body?: never;
56814
+ export type UpdateComputerFileContentData = {
56815
+ body: Blob | File;
56816
+ headers: {
56817
+ /**
56818
+ * The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted.
56819
+ */
56820
+ 'If-Match': string;
56821
+ };
55857
56822
  path: {
55858
56823
  /**
55859
56824
  * Computer id from computer creation or listing; a computer another tenant owns is not found.
@@ -55862,23 +56827,15 @@ export type PreviewComputerFileData = {
55862
56827
  };
55863
56828
  query: {
55864
56829
  /**
55865
- * Absolute path of the file on the computer, or a /workspace/ relative path.
56830
+ * Absolute path of the existing file on the computer, or a /workspace/ relative path.
55866
56831
  */
55867
56832
  path: string;
55868
- /**
55869
- * 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.
55870
- */
55871
- v?: string;
55872
- /**
55873
- * 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.
55874
- */
55875
- variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
55876
56833
  };
55877
- url: '/agent/v1/computers/{computer_id}/files/preview';
56834
+ url: '/agent/v1/computers/{computer_id}/files/content';
55878
56835
  };
55879
- export type PreviewComputerFileErrors = {
56836
+ export type UpdateComputerFileContentErrors = {
55880
56837
  /**
55881
- * 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.
56838
+ * INVALID_PARAMS: path is missing, a query parameter is unsupported, or the path is a directory (IS_DIRECTORY).
55882
56839
  */
55883
56840
  400: {
55884
56841
  type: 'error';
@@ -55924,7 +56881,7 @@ export type PreviewComputerFileErrors = {
55924
56881
  request_id: string;
55925
56882
  };
55926
56883
  /**
55927
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
56884
+ * READ_ONLY: the path is under /attachments or /skills.
55928
56885
  */
55929
56886
  403: {
55930
56887
  type: 'error';
@@ -55947,7 +56904,7 @@ export type PreviewComputerFileErrors = {
55947
56904
  request_id: string;
55948
56905
  };
55949
56906
  /**
55950
- * Computer or path not found; foreign computers are indistinguishable from absent computers.
56907
+ * Computer or path not found; foreign computers are indistinguishable from absent computers, and a write never creates a file.
55951
56908
  */
55952
56909
  404: {
55953
56910
  type: 'error';
@@ -55970,9 +56927,9 @@ export type PreviewComputerFileErrors = {
55970
56927
  request_id: string;
55971
56928
  };
55972
56929
  /**
55973
- * STALE_DIGEST: the file changed while its product was read; ask again.
56930
+ * FILE_VERSION_MISMATCH: the file changed since the version in If-Match; error.current_version is its version now. Nothing was written.
55974
56931
  */
55975
- 409: {
56932
+ 412: {
55976
56933
  type: 'error';
55977
56934
  error: {
55978
56935
  /**
@@ -55986,6 +56943,10 @@ export type PreviewComputerFileErrors = {
55986
56943
  * How to recover, for computer failures.
55987
56944
  */
55988
56945
  hint?: string;
56946
+ /**
56947
+ * The file's version now (<size>-<mtimeMs>); read the file again and write with this version.
56948
+ */
56949
+ current_version?: string;
55989
56950
  };
55990
56951
  /**
55991
56952
  * Equals the X-Request-Id response header.
@@ -55993,7 +56954,7 @@ export type PreviewComputerFileErrors = {
55993
56954
  request_id: string;
55994
56955
  };
55995
56956
  /**
55996
- * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
56957
+ * FILE_TOO_LARGE: the body exceeds 16 MiB.
55997
56958
  */
55998
56959
  413: {
55999
56960
  type: 'error';
@@ -56015,6 +56976,29 @@ export type PreviewComputerFileErrors = {
56015
56976
  */
56016
56977
  request_id: string;
56017
56978
  };
56979
+ /**
56980
+ * FILE_VERSION_REQUIRED: If-Match is missing. Nothing was written.
56981
+ */
56982
+ 428: {
56983
+ type: 'error';
56984
+ error: {
56985
+ /**
56986
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56987
+ */
56988
+ type: string;
56989
+ message: string;
56990
+ code: string;
56991
+ retryable: boolean;
56992
+ /**
56993
+ * How to recover, for computer failures.
56994
+ */
56995
+ hint?: string;
56996
+ };
56997
+ /**
56998
+ * Equals the X-Request-Id response header.
56999
+ */
57000
+ request_id: string;
57001
+ };
56018
57002
  /**
56019
57003
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56020
57004
  */
@@ -56062,7 +57046,7 @@ export type PreviewComputerFileErrors = {
56062
57046
  request_id: string;
56063
57047
  };
56064
57048
  /**
56065
- * PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
57049
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56066
57050
  */
56067
57051
  503: {
56068
57052
  type: 'error';
@@ -56085,76 +57069,175 @@ export type PreviewComputerFileErrors = {
56085
57069
  request_id: string;
56086
57070
  };
56087
57071
  };
56088
- export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
56089
- export type PreviewComputerFileResponses = {
57072
+ export type UpdateComputerFileContentError = UpdateComputerFileContentErrors[keyof UpdateComputerFileContentErrors];
57073
+ export type UpdateComputerFileContentResponses = {
56090
57074
  /**
56091
- * The preview product, or the fallback that sends the caller to the content door.
57075
+ * The file after the write.
56092
57076
  */
56093
57077
  200: {
56094
57078
  /**
56095
- * The product answered: image is a 1600 px WebP, pdf a linearized PDF, text the first 64 KiB of text or source, original the file's own bytes.
57079
+ * Absolute path of the file that was written.
56096
57080
  */
56097
- variant: 'image' | 'pdf' | 'text' | 'original';
57081
+ path: string;
56098
57082
  /**
56099
- * The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
57083
+ * Size of the file now, in bytes.
56100
57084
  */
56101
- version?: string;
57085
+ size: number;
56102
57086
  /**
56103
- * Media type of the product, or of the original bytes.
57087
+ * Modification time of the file now, when the machine reports one.
56104
57088
  */
56105
- mime_type?: string;
57089
+ mtime: string | null;
56106
57090
  /**
56107
- * Size of the product in bytes.
57091
+ * The file's version now (<size>-<mtimeMs>); send it as If-Match on the next write.
56108
57092
  */
56109
- size?: number;
57093
+ version: string;
57094
+ };
57095
+ };
57096
+ export type UpdateComputerFileContentResponse = UpdateComputerFileContentResponses[keyof UpdateComputerFileContentResponses];
57097
+ export type PreviewComputerFileData = {
57098
+ body?: never;
57099
+ path: {
56110
57100
  /**
56111
- * File id of the stored product in the File service, when the product was stored.
57101
+ * Computer id from computer creation or listing; a computer another tenant owns is not found.
56112
57102
  */
56113
- file_id?: string;
57103
+ computer_id: string;
57104
+ };
57105
+ query: {
56114
57106
  /**
56115
- * Signed read address of the product; the caller streams it and caches by the version it pinned.
57107
+ * Absolute path of the file on the computer, or a /workspace/ relative path.
56116
57108
  */
56117
- url?: string;
57109
+ path: string;
56118
57110
  /**
56119
- * When the signed read address stops working.
57111
+ * 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.
56120
57112
  */
56121
- expires_at?: string;
57113
+ v?: string;
56122
57114
  /**
56123
- * true when an existing product answered without regenerating it.
57115
+ * 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.
56124
57116
  */
56125
- cached: boolean;
57117
+ variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
57118
+ };
57119
+ url: '/agent/v1/computers/{computer_id}/files/preview';
57120
+ };
57121
+ export type PreviewComputerFileErrors = {
57122
+ /**
57123
+ * 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.
57124
+ */
57125
+ 400: {
57126
+ type: 'error';
57127
+ error: {
57128
+ /**
57129
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57130
+ */
57131
+ type: string;
57132
+ message: string;
57133
+ code: string;
57134
+ retryable: boolean;
57135
+ /**
57136
+ * How to recover, for computer failures.
57137
+ */
57138
+ hint?: string;
57139
+ };
56126
57140
  /**
56127
- * Present as content when no product was produced: the file is over the size threshold or the deployment has no File service. The caller reads the file through the content door.
57141
+ * Equals the X-Request-Id response header.
56128
57142
  */
56129
- fallback?: 'content';
57143
+ request_id: string;
57144
+ };
57145
+ /**
57146
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57147
+ */
57148
+ 401: {
57149
+ type: 'error';
57150
+ error: {
57151
+ /**
57152
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57153
+ */
57154
+ type: string;
57155
+ message: string;
57156
+ code: string;
57157
+ retryable: boolean;
57158
+ /**
57159
+ * How to recover, for computer failures.
57160
+ */
57161
+ hint?: string;
57162
+ };
56130
57163
  /**
56131
- * true only on a pre-generation request over the kind's threshold, where generation was skipped.
57164
+ * Equals the X-Request-Id response header.
56132
57165
  */
56133
- skipped?: boolean;
57166
+ request_id: string;
56134
57167
  };
56135
- };
56136
- export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
56137
- export type ComputersFilesConvertData = {
56138
- body?: never;
56139
- path: {
57168
+ /**
57169
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57170
+ */
57171
+ 403: {
57172
+ type: 'error';
57173
+ error: {
57174
+ /**
57175
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57176
+ */
57177
+ type: string;
57178
+ message: string;
57179
+ code: string;
57180
+ retryable: boolean;
57181
+ /**
57182
+ * How to recover, for computer failures.
57183
+ */
57184
+ hint?: string;
57185
+ };
56140
57186
  /**
56141
- * Computer id (cmp_...), as returned by computers.create or computers.list.
57187
+ * Equals the X-Request-Id response header.
56142
57188
  */
56143
- computer_id: string;
57189
+ request_id: string;
56144
57190
  };
56145
- query: {
57191
+ /**
57192
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
57193
+ */
57194
+ 404: {
57195
+ type: 'error';
57196
+ error: {
57197
+ /**
57198
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57199
+ */
57200
+ type: string;
57201
+ message: string;
57202
+ code: string;
57203
+ retryable: boolean;
57204
+ /**
57205
+ * How to recover, for computer failures.
57206
+ */
57207
+ hint?: string;
57208
+ };
56146
57209
  /**
56147
- * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
57210
+ * Equals the X-Request-Id response header.
56148
57211
  */
56149
- path: string;
57212
+ request_id: string;
56150
57213
  };
56151
- url: '/agent/v1/computers/{computer_id}/files/convert';
56152
- };
56153
- export type ComputersFilesConvertErrors = {
56154
57214
  /**
56155
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57215
+ * STALE_DIGEST: the file changed while its product was read; ask again.
56156
57216
  */
56157
- 400: {
57217
+ 409: {
57218
+ type: 'error';
57219
+ error: {
57220
+ /**
57221
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57222
+ */
57223
+ type: string;
57224
+ message: string;
57225
+ code: string;
57226
+ retryable: boolean;
57227
+ /**
57228
+ * How to recover, for computer failures.
57229
+ */
57230
+ hint?: string;
57231
+ };
57232
+ /**
57233
+ * Equals the X-Request-Id response header.
57234
+ */
57235
+ request_id: string;
57236
+ };
57237
+ /**
57238
+ * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
57239
+ */
57240
+ 413: {
56158
57241
  type: 'error';
56159
57242
  error: {
56160
57243
  /**
@@ -56177,7 +57260,7 @@ export type ComputersFilesConvertErrors = {
56177
57260
  /**
56178
57261
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56179
57262
  */
56180
- 401: {
57263
+ 429: {
56181
57264
  type: 'error';
56182
57265
  error: {
56183
57266
  /**
@@ -56200,7 +57283,7 @@ export type ComputersFilesConvertErrors = {
56200
57283
  /**
56201
57284
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56202
57285
  */
56203
- 403: {
57286
+ 500: {
56204
57287
  type: 'error';
56205
57288
  error: {
56206
57289
  /**
@@ -56221,9 +57304,9 @@ export type ComputersFilesConvertErrors = {
56221
57304
  request_id: string;
56222
57305
  };
56223
57306
  /**
56224
- * Computer or path not found; foreign computers are indistinguishable from absent computers.
57307
+ * PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
56225
57308
  */
56226
- 404: {
57309
+ 503: {
56227
57310
  type: 'error';
56228
57311
  error: {
56229
57312
  /**
@@ -56243,33 +57326,77 @@ export type ComputersFilesConvertErrors = {
56243
57326
  */
56244
57327
  request_id: string;
56245
57328
  };
57329
+ };
57330
+ export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
57331
+ export type PreviewComputerFileResponses = {
56246
57332
  /**
56247
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57333
+ * The preview product, or the fallback that sends the caller to the content door.
56248
57334
  */
56249
- 409: {
56250
- type: 'error';
56251
- error: {
56252
- /**
56253
- * Anthropic error type, such as invalid_request_error or not_found_error.
56254
- */
56255
- type: string;
56256
- message: string;
56257
- code: string;
56258
- retryable: boolean;
56259
- /**
56260
- * How to recover, for computer failures.
56261
- */
56262
- hint?: string;
56263
- };
57335
+ 200: {
56264
57336
  /**
56265
- * Equals the X-Request-Id response header.
57337
+ * The product answered: image is a 1600 px WebP, pdf a linearized PDF, text the first 64 KiB of text or source, original the file's own bytes.
56266
57338
  */
56267
- request_id: string;
57339
+ variant: 'image' | 'pdf' | 'text' | 'original';
57340
+ /**
57341
+ * The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
57342
+ */
57343
+ version?: string;
57344
+ /**
57345
+ * Media type of the product, or of the original bytes.
57346
+ */
57347
+ mime_type?: string;
57348
+ /**
57349
+ * Size of the product in bytes.
57350
+ */
57351
+ size?: number;
57352
+ /**
57353
+ * File id of the stored product in the File service, when the product was stored.
57354
+ */
57355
+ file_id?: string;
57356
+ /**
57357
+ * Signed read address of the product; the caller streams it and caches by the version it pinned.
57358
+ */
57359
+ url?: string;
57360
+ /**
57361
+ * When the signed read address stops working.
57362
+ */
57363
+ expires_at?: string;
57364
+ /**
57365
+ * true when an existing product answered without regenerating it.
57366
+ */
57367
+ cached: boolean;
57368
+ /**
57369
+ * Present as content when no product was produced: the file is over the size threshold or the deployment has no File service. The caller reads the file through the content door.
57370
+ */
57371
+ fallback?: 'content';
57372
+ /**
57373
+ * true only on a pre-generation request over the kind's threshold, where generation was skipped.
57374
+ */
57375
+ skipped?: boolean;
56268
57376
  };
57377
+ };
57378
+ export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
57379
+ export type ComputersFilesConvertData = {
57380
+ body?: never;
57381
+ path: {
57382
+ /**
57383
+ * Computer id (cmp_...), as returned by computers.create or computers.list.
57384
+ */
57385
+ computer_id: string;
57386
+ };
57387
+ query: {
57388
+ /**
57389
+ * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
57390
+ */
57391
+ path: string;
57392
+ };
57393
+ url: '/agent/v1/computers/{computer_id}/files/convert';
57394
+ };
57395
+ export type ComputersFilesConvertErrors = {
56269
57396
  /**
56270
57397
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56271
57398
  */
56272
- 413: {
57399
+ 400: {
56273
57400
  type: 'error';
56274
57401
  error: {
56275
57402
  /**
@@ -56292,7 +57419,7 @@ export type ComputersFilesConvertErrors = {
56292
57419
  /**
56293
57420
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56294
57421
  */
56295
- 429: {
57422
+ 401: {
56296
57423
  type: 'error';
56297
57424
  error: {
56298
57425
  /**
@@ -56315,7 +57442,7 @@ export type ComputersFilesConvertErrors = {
56315
57442
  /**
56316
57443
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56317
57444
  */
56318
- 500: {
57445
+ 403: {
56319
57446
  type: 'error';
56320
57447
  error: {
56321
57448
  /**
@@ -56336,9 +57463,9 @@ export type ComputersFilesConvertErrors = {
56336
57463
  request_id: string;
56337
57464
  };
56338
57465
  /**
56339
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57466
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
56340
57467
  */
56341
- 503: {
57468
+ 404: {
56342
57469
  type: 'error';
56343
57470
  error: {
56344
57471
  /**
@@ -56358,49 +57485,10 @@ export type ComputersFilesConvertErrors = {
56358
57485
  */
56359
57486
  request_id: string;
56360
57487
  };
56361
- };
56362
- export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
56363
- export type ComputersFilesConvertResponses = {
56364
- /**
56365
- * The converted PDF as base64
56366
- */
56367
- 200: {
56368
- /**
56369
- * The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
56370
- */
56371
- data: string;
56372
- /**
56373
- * Media type of the decoded bytes; always application/pdf.
56374
- */
56375
- mime: 'application/pdf';
56376
- /**
56377
- * true when an earlier conversion of the same file content was reused.
56378
- */
56379
- cached: boolean;
56380
- };
56381
- };
56382
- export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
56383
- export type ConnectComputerData = {
56384
- body?: {
56385
- /**
56386
- * Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
56387
- */
56388
- need?: 'light' | 'heavy';
56389
- };
56390
- path: {
56391
- /**
56392
- * Computer id (cmp_...), as returned by computers.create or computers.list.
56393
- */
56394
- computer_id: string;
56395
- };
56396
- query?: never;
56397
- url: '/agent/v1/computers/{computer_id}/connect';
56398
- };
56399
- export type ConnectComputerErrors = {
56400
57488
  /**
56401
- * INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
57489
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56402
57490
  */
56403
- 400: {
57491
+ 409: {
56404
57492
  type: 'error';
56405
57493
  error: {
56406
57494
  /**
@@ -56423,7 +57511,7 @@ export type ConnectComputerErrors = {
56423
57511
  /**
56424
57512
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56425
57513
  */
56426
- 401: {
57514
+ 413: {
56427
57515
  type: 'error';
56428
57516
  error: {
56429
57517
  /**
@@ -56446,7 +57534,7 @@ export type ConnectComputerErrors = {
56446
57534
  /**
56447
57535
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56448
57536
  */
56449
- 403: {
57537
+ 429: {
56450
57538
  type: 'error';
56451
57539
  error: {
56452
57540
  /**
@@ -56467,9 +57555,9 @@ export type ConnectComputerErrors = {
56467
57555
  request_id: string;
56468
57556
  };
56469
57557
  /**
56470
- * Computer or path not found; foreign computers are indistinguishable from absent computers.
57558
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56471
57559
  */
56472
- 404: {
57560
+ 500: {
56473
57561
  type: 'error';
56474
57562
  error: {
56475
57563
  /**
@@ -56492,7 +57580,7 @@ export type ConnectComputerErrors = {
56492
57580
  /**
56493
57581
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56494
57582
  */
56495
- 409: {
57583
+ 503: {
56496
57584
  type: 'error';
56497
57585
  error: {
56498
57586
  /**
@@ -56512,10 +57600,49 @@ export type ConnectComputerErrors = {
56512
57600
  */
56513
57601
  request_id: string;
56514
57602
  };
57603
+ };
57604
+ export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
57605
+ export type ComputersFilesConvertResponses = {
56515
57606
  /**
56516
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57607
+ * The converted PDF as base64
56517
57608
  */
56518
- 413: {
57609
+ 200: {
57610
+ /**
57611
+ * The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
57612
+ */
57613
+ data: string;
57614
+ /**
57615
+ * Media type of the decoded bytes; always application/pdf.
57616
+ */
57617
+ mime: 'application/pdf';
57618
+ /**
57619
+ * true when an earlier conversion of the same file content was reused.
57620
+ */
57621
+ cached: boolean;
57622
+ };
57623
+ };
57624
+ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
57625
+ export type ConnectComputerData = {
57626
+ body?: {
57627
+ /**
57628
+ * Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
57629
+ */
57630
+ need?: 'light' | 'heavy';
57631
+ };
57632
+ path: {
57633
+ /**
57634
+ * Computer id (cmp_...), as returned by computers.create or computers.list.
57635
+ */
57636
+ computer_id: string;
57637
+ };
57638
+ query?: never;
57639
+ url: '/agent/v1/computers/{computer_id}/connect';
57640
+ };
57641
+ export type ConnectComputerErrors = {
57642
+ /**
57643
+ * INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
57644
+ */
57645
+ 400: {
56519
57646
  type: 'error';
56520
57647
  error: {
56521
57648
  /**
@@ -56538,7 +57665,7 @@ export type ConnectComputerErrors = {
56538
57665
  /**
56539
57666
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56540
57667
  */
56541
- 429: {
57668
+ 401: {
56542
57669
  type: 'error';
56543
57670
  error: {
56544
57671
  /**
@@ -56561,7 +57688,7 @@ export type ConnectComputerErrors = {
56561
57688
  /**
56562
57689
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56563
57690
  */
56564
- 500: {
57691
+ 403: {
56565
57692
  type: 'error';
56566
57693
  error: {
56567
57694
  /**
@@ -56582,9 +57709,9 @@ export type ConnectComputerErrors = {
56582
57709
  request_id: string;
56583
57710
  };
56584
57711
  /**
56585
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57712
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
56586
57713
  */
56587
- 503: {
57714
+ 404: {
56588
57715
  type: 'error';
56589
57716
  error: {
56590
57717
  /**
@@ -56604,60 +57731,10 @@ export type ConnectComputerErrors = {
56604
57731
  */
56605
57732
  request_id: string;
56606
57733
  };
56607
- };
56608
- export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
56609
- export type ConnectComputerResponses = {
56610
- /**
56611
- * Computer result
56612
- */
56613
- 200: {
56614
- /**
56615
- * Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
56616
- */
56617
- sandbox_id: string;
56618
- /**
56619
- * Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
56620
- */
56621
- envd_access_token: string;
56622
- /**
56623
- * Sandbox template the computer's sandbox was created from.
56624
- */
56625
- template_id: string;
56626
- /**
56627
- * Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
56628
- */
56629
- tier: 'light' | 'heavy';
56630
- /**
56631
- * Id of the lease that keeps this connection's machine in service; renew it while the connection is open and release it on close. Null when no lease exists.
56632
- */
56633
- lease_id: string | null;
56634
- /**
56635
- * Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
56636
- */
56637
- lease_expires_at: string | null;
56638
- };
56639
- };
56640
- export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
56641
- export type RenewComputerLeaseData = {
56642
- body?: never;
56643
- path: {
56644
- /**
56645
- * Computer id (cmp_...), as returned by computers.create or computers.list.
56646
- */
56647
- computer_id: string;
56648
- /**
56649
- * lease_id from the connect response.
56650
- */
56651
- lease_id: string;
56652
- };
56653
- query?: never;
56654
- url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
56655
- };
56656
- export type RenewComputerLeaseErrors = {
56657
57734
  /**
56658
57735
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56659
57736
  */
56660
- 400: {
57737
+ 409: {
56661
57738
  type: 'error';
56662
57739
  error: {
56663
57740
  /**
@@ -56680,7 +57757,7 @@ export type RenewComputerLeaseErrors = {
56680
57757
  /**
56681
57758
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56682
57759
  */
56683
- 401: {
57760
+ 413: {
56684
57761
  type: 'error';
56685
57762
  error: {
56686
57763
  /**
@@ -56703,7 +57780,7 @@ export type RenewComputerLeaseErrors = {
56703
57780
  /**
56704
57781
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
56705
57782
  */
56706
- 403: {
57783
+ 429: {
56707
57784
  type: 'error';
56708
57785
  error: {
56709
57786
  /**
@@ -56724,9 +57801,174 @@ export type RenewComputerLeaseErrors = {
56724
57801
  request_id: string;
56725
57802
  };
56726
57803
  /**
56727
- * Computer or path not found; foreign computers are indistinguishable from absent computers.
57804
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56728
57805
  */
56729
- 404: {
57806
+ 500: {
57807
+ type: 'error';
57808
+ error: {
57809
+ /**
57810
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57811
+ */
57812
+ type: string;
57813
+ message: string;
57814
+ code: string;
57815
+ retryable: boolean;
57816
+ /**
57817
+ * How to recover, for computer failures.
57818
+ */
57819
+ hint?: string;
57820
+ };
57821
+ /**
57822
+ * Equals the X-Request-Id response header.
57823
+ */
57824
+ request_id: string;
57825
+ };
57826
+ /**
57827
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57828
+ */
57829
+ 503: {
57830
+ type: 'error';
57831
+ error: {
57832
+ /**
57833
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57834
+ */
57835
+ type: string;
57836
+ message: string;
57837
+ code: string;
57838
+ retryable: boolean;
57839
+ /**
57840
+ * How to recover, for computer failures.
57841
+ */
57842
+ hint?: string;
57843
+ };
57844
+ /**
57845
+ * Equals the X-Request-Id response header.
57846
+ */
57847
+ request_id: string;
57848
+ };
57849
+ };
57850
+ export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
57851
+ export type ConnectComputerResponses = {
57852
+ /**
57853
+ * Computer result
57854
+ */
57855
+ 200: {
57856
+ /**
57857
+ * Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
57858
+ */
57859
+ sandbox_id: string;
57860
+ /**
57861
+ * Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
57862
+ */
57863
+ envd_access_token: string;
57864
+ /**
57865
+ * Sandbox template the computer's sandbox was created from.
57866
+ */
57867
+ template_id: string;
57868
+ /**
57869
+ * Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
57870
+ */
57871
+ tier: 'light' | 'heavy';
57872
+ /**
57873
+ * Id of the lease that keeps this connection's machine in service; renew it while the connection is open and release it on close. Null when no lease exists.
57874
+ */
57875
+ lease_id: string | null;
57876
+ /**
57877
+ * Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
57878
+ */
57879
+ lease_expires_at: string | null;
57880
+ };
57881
+ };
57882
+ export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
57883
+ export type RenewComputerLeaseData = {
57884
+ body?: never;
57885
+ path: {
57886
+ /**
57887
+ * Computer id (cmp_...), as returned by computers.create or computers.list.
57888
+ */
57889
+ computer_id: string;
57890
+ /**
57891
+ * lease_id from the connect response.
57892
+ */
57893
+ lease_id: string;
57894
+ };
57895
+ query?: never;
57896
+ url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
57897
+ };
57898
+ export type RenewComputerLeaseErrors = {
57899
+ /**
57900
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57901
+ */
57902
+ 400: {
57903
+ type: 'error';
57904
+ error: {
57905
+ /**
57906
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57907
+ */
57908
+ type: string;
57909
+ message: string;
57910
+ code: string;
57911
+ retryable: boolean;
57912
+ /**
57913
+ * How to recover, for computer failures.
57914
+ */
57915
+ hint?: string;
57916
+ };
57917
+ /**
57918
+ * Equals the X-Request-Id response header.
57919
+ */
57920
+ request_id: string;
57921
+ };
57922
+ /**
57923
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57924
+ */
57925
+ 401: {
57926
+ type: 'error';
57927
+ error: {
57928
+ /**
57929
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57930
+ */
57931
+ type: string;
57932
+ message: string;
57933
+ code: string;
57934
+ retryable: boolean;
57935
+ /**
57936
+ * How to recover, for computer failures.
57937
+ */
57938
+ hint?: string;
57939
+ };
57940
+ /**
57941
+ * Equals the X-Request-Id response header.
57942
+ */
57943
+ request_id: string;
57944
+ };
57945
+ /**
57946
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57947
+ */
57948
+ 403: {
57949
+ type: 'error';
57950
+ error: {
57951
+ /**
57952
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57953
+ */
57954
+ type: string;
57955
+ message: string;
57956
+ code: string;
57957
+ retryable: boolean;
57958
+ /**
57959
+ * How to recover, for computer failures.
57960
+ */
57961
+ hint?: string;
57962
+ };
57963
+ /**
57964
+ * Equals the X-Request-Id response header.
57965
+ */
57966
+ request_id: string;
57967
+ };
57968
+ /**
57969
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
57970
+ */
57971
+ 404: {
56730
57972
  type: 'error';
56731
57973
  error: {
56732
57974
  /**
@@ -62949,7 +64191,7 @@ export type ListSessionRequestsResponses = {
62949
64191
  */
62950
64192
  object: 'request';
62951
64193
  /**
62952
- * question when the agent asked through the ask_user_question tool and waits for an answer; approval when any other tool waits for permission.
64194
+ * Always approval: a tool waits for permission. question is kept for compatibility and is never returned: the agent asks with a card or in words and the person answers with a message.
62953
64195
  */
62954
64196
  kind: 'question' | 'approval';
62955
64197
  /**
@@ -62957,11 +64199,11 @@ export type ListSessionRequestsResponses = {
62957
64199
  */
62958
64200
  status: 'pending';
62959
64201
  /**
62960
- * The tool the agent called, such as ask_user_question or bash.
64202
+ * The tool the agent called, such as bash.
62961
64203
  */
62962
64204
  tool_name: string;
62963
64205
  /**
62964
- * The tool call's input exactly as the agent.tool_use event shows it: for a question the questions and their options, for an approval the tool's arguments.
64206
+ * The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
62965
64207
  */
62966
64208
  input: unknown;
62967
64209
  /**
@@ -65770,6 +67012,10 @@ export type FileListFilesData = {
65770
67012
  * Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404.
65771
67013
  */
65772
67014
  scope_id?: string;
67015
+ /**
67016
+ * Return only these files, up to 100 IDs separated by commas, so metadata for many known files takes one call instead of one retrieve per file. An ID that is not a live file of your tenant is simply absent from the list, as a retrieve would answer 404; more than 100 IDs returns 400. Combines with the other filters.
67017
+ */
67018
+ ids?: Array<string>;
65773
67019
  /**
65774
67020
  * File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.
65775
67021
  */
@@ -71186,9 +72432,9 @@ export type CreateOrganizationFeedbackData = {
71186
72432
  };
71187
72433
  };
71188
72434
  /**
71189
- * Use console for Console reports or api for API callers (default); machine tokens always store codemode regardless of this value.
72435
+ * 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.
71190
72436
  */
71191
- source?: 'console' | 'api';
72437
+ source?: 'console' | 'api' | 'codemode';
71192
72438
  /**
71193
72439
  * Up to five attachments; decoded bytes must not exceed 10 MiB per attachment or 20 MiB in total.
71194
72440
  */
@@ -74148,6 +75394,433 @@ export type ReviseOrganizationKeyResultResponses = {
74148
75394
  200: OrganizationKeyResult;
74149
75395
  };
74150
75396
  export type ReviseOrganizationKeyResultResponse = ReviseOrganizationKeyResultResponses[keyof ReviseOrganizationKeyResultResponses];
75397
+ export type ListOrganizationSpecsData = {
75398
+ body?: never;
75399
+ path?: never;
75400
+ query?: {
75401
+ /**
75402
+ * Maximum items per page, from 1 to 100; defaults to 20.
75403
+ */
75404
+ limit?: number;
75405
+ /**
75406
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
75407
+ */
75408
+ page?: string;
75409
+ /**
75410
+ * Only specs of this subject kind; omit to list every kind together.
75411
+ */
75412
+ kind?: OrganizationSpecKind;
75413
+ };
75414
+ url: '/organization/v1/specs';
75415
+ };
75416
+ export type ListOrganizationSpecsErrors = {
75417
+ /**
75418
+ * INVALID_PARAMS; an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted values.
75419
+ */
75420
+ 400: OrganizationProblem;
75421
+ /**
75422
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75423
+ */
75424
+ 401: unknown;
75425
+ /**
75426
+ * 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.
75427
+ */
75428
+ 403: OrganizationProblem;
75429
+ };
75430
+ export type ListOrganizationSpecsError = ListOrganizationSpecsErrors[keyof ListOrganizationSpecsErrors];
75431
+ export type ListOrganizationSpecsResponses = {
75432
+ /**
75433
+ * One page of specs.
75434
+ */
75435
+ 200: OrganizationSpecList;
75436
+ };
75437
+ export type ListOrganizationSpecsResponse = ListOrganizationSpecsResponses[keyof ListOrganizationSpecsResponses];
75438
+ export type GetOrganizationSpecData = {
75439
+ body?: never;
75440
+ path: {
75441
+ /**
75442
+ * Kind of the subject whose spec to read.
75443
+ */
75444
+ kind: OrganizationSpecKind;
75445
+ /**
75446
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75447
+ */
75448
+ id: string;
75449
+ };
75450
+ query?: {
75451
+ /**
75452
+ * Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written.
75453
+ */
75454
+ revision?: number;
75455
+ };
75456
+ url: '/organization/v1/specs/{kind}/{id}';
75457
+ };
75458
+ export type GetOrganizationSpecErrors = {
75459
+ /**
75460
+ * INVALID_PARAMS; revision is not an integer, or a query parameter is unknown. Send revision as a whole number, or omit it for the live spec.
75461
+ */
75462
+ 400: OrganizationProblem;
75463
+ /**
75464
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75465
+ */
75466
+ 401: unknown;
75467
+ /**
75468
+ * 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.
75469
+ */
75470
+ 403: OrganizationProblem;
75471
+ /**
75472
+ * The subject is not in your organization, or the named revision does not exist: DEPARTMENT_NOT_FOUND, JOB_LEVEL_NOT_FOUND, JOB_NOT_FOUND, POSITION_NOT_FOUND, ASSIGNMENT_NOT_FOUND or SPEC_REVISION_NOT_FOUND. Copy an id from the subject's list, or read a revision the history returns.
75473
+ */
75474
+ 404: OrganizationProblem;
75475
+ };
75476
+ export type GetOrganizationSpecError = GetOrganizationSpecErrors[keyof GetOrganizationSpecErrors];
75477
+ export type GetOrganizationSpecResponses = {
75478
+ /**
75479
+ * The spec of the subject at the live or named revision.
75480
+ */
75481
+ 200: OrganizationSpec;
75482
+ };
75483
+ export type GetOrganizationSpecResponse = GetOrganizationSpecResponses[keyof GetOrganizationSpecResponses];
75484
+ export type ReviseOrganizationSpecData = {
75485
+ body: OrganizationReviseSpecRequest;
75486
+ path: {
75487
+ /**
75488
+ * Kind of the subject whose spec to revise.
75489
+ */
75490
+ kind: OrganizationSpecKind;
75491
+ /**
75492
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75493
+ */
75494
+ id: string;
75495
+ };
75496
+ query?: never;
75497
+ url: '/organization/v1/specs/{kind}/{id}';
75498
+ };
75499
+ export type ReviseOrganizationSpecErrors = {
75500
+ /**
75501
+ * 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.
75502
+ */
75503
+ 400: OrganizationProblem;
75504
+ /**
75505
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75506
+ */
75507
+ 401: unknown;
75508
+ /**
75509
+ * PERMISSION_DENIED; only an organization owner or admin, or the head of the subject's department or of a department above it, may revise a spec, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75510
+ */
75511
+ 403: OrganizationProblem;
75512
+ /**
75513
+ * The subject is not in your organization: DEPARTMENT_NOT_FOUND, JOB_LEVEL_NOT_FOUND, JOB_NOT_FOUND, POSITION_NOT_FOUND or ASSIGNMENT_NOT_FOUND. Copy an id from the subject's list.
75514
+ */
75515
+ 404: OrganizationProblem;
75516
+ /**
75517
+ * REVISION_CONFLICT; the spec moved on since you read it. Read it again, merge your change and retry with its current revision.
75518
+ */
75519
+ 409: OrganizationProblem;
75520
+ };
75521
+ export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
75522
+ export type ReviseOrganizationSpecResponses = {
75523
+ /**
75524
+ * The spec after the revision, at the new revision number.
75525
+ */
75526
+ 200: OrganizationSpec;
75527
+ };
75528
+ export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
75529
+ export type ListOrganizationSpecRevisionsData = {
75530
+ body?: never;
75531
+ path: {
75532
+ /**
75533
+ * Kind of the subject whose revision history to list.
75534
+ */
75535
+ kind: OrganizationSpecKind;
75536
+ /**
75537
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75538
+ */
75539
+ id: string;
75540
+ };
75541
+ query?: {
75542
+ /**
75543
+ * Maximum revisions per page, from 1 to 100; defaults to 20.
75544
+ */
75545
+ limit?: number;
75546
+ /**
75547
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
75548
+ */
75549
+ page?: string;
75550
+ };
75551
+ url: '/organization/v1/specs/{kind}/{id}/revisions';
75552
+ };
75553
+ export type ListOrganizationSpecRevisionsErrors = {
75554
+ /**
75555
+ * INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters.
75556
+ */
75557
+ 400: OrganizationProblem;
75558
+ /**
75559
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75560
+ */
75561
+ 401: unknown;
75562
+ /**
75563
+ * 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.
75564
+ */
75565
+ 403: OrganizationProblem;
75566
+ /**
75567
+ * The subject is not in your organization: DEPARTMENT_NOT_FOUND, JOB_LEVEL_NOT_FOUND, JOB_NOT_FOUND, POSITION_NOT_FOUND or ASSIGNMENT_NOT_FOUND. Copy an id from the subject's list.
75568
+ */
75569
+ 404: OrganizationProblem;
75570
+ };
75571
+ export type ListOrganizationSpecRevisionsError = ListOrganizationSpecRevisionsErrors[keyof ListOrganizationSpecRevisionsErrors];
75572
+ export type ListOrganizationSpecRevisionsResponses = {
75573
+ /**
75574
+ * One page of revisions, newest first.
75575
+ */
75576
+ 200: OrganizationSpecRevisionList;
75577
+ };
75578
+ export type ListOrganizationSpecRevisionsResponse = ListOrganizationSpecRevisionsResponses[keyof ListOrganizationSpecRevisionsResponses];
75579
+ export type DiffOrganizationSpecData = {
75580
+ body?: never;
75581
+ path: {
75582
+ /**
75583
+ * Kind of the subject whose revisions to compare.
75584
+ */
75585
+ kind: OrganizationSpecKind;
75586
+ /**
75587
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75588
+ */
75589
+ id: string;
75590
+ };
75591
+ query: {
75592
+ /**
75593
+ * The earlier revision to compare from; 0 is the empty spec before the first write.
75594
+ */
75595
+ from: number;
75596
+ /**
75597
+ * The later revision to compare to.
75598
+ */
75599
+ to: number;
75600
+ };
75601
+ url: '/organization/v1/specs/{kind}/{id}/diff';
75602
+ };
75603
+ export type DiffOrganizationSpecErrors = {
75604
+ /**
75605
+ * INVALID_PARAMS; from or to is missing or not an integer. Send both as whole numbers.
75606
+ */
75607
+ 400: OrganizationProblem;
75608
+ /**
75609
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75610
+ */
75611
+ 401: unknown;
75612
+ /**
75613
+ * 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.
75614
+ */
75615
+ 403: OrganizationProblem;
75616
+ /**
75617
+ * The subject is not in your organization, or from or to has no stored revision (SPEC_REVISION_NOT_FOUND). List the revision history and copy a revision it returns.
75618
+ */
75619
+ 404: OrganizationProblem;
75620
+ };
75621
+ export type DiffOrganizationSpecError = DiffOrganizationSpecErrors[keyof DiffOrganizationSpecErrors];
75622
+ export type DiffOrganizationSpecResponses = {
75623
+ /**
75624
+ * The changes between the two revisions, in path order.
75625
+ */
75626
+ 200: OrganizationSpecDiff;
75627
+ };
75628
+ export type DiffOrganizationSpecResponse = DiffOrganizationSpecResponses[keyof DiffOrganizationSpecResponses];
75629
+ export type GetOrganizationEffectiveSpecData = {
75630
+ body?: never;
75631
+ path?: never;
75632
+ query?: {
75633
+ /**
75634
+ * Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both.
75635
+ */
75636
+ actor?: string;
75637
+ /**
75638
+ * One seat to merge, held or vacant (pos_...); give this or actor, not both.
75639
+ */
75640
+ position_id?: string;
75641
+ /**
75642
+ * Which holder kind to merge for; omit to derive it from the seat's holder.
75643
+ */
75644
+ holder_kind?: 'agent' | 'human';
75645
+ };
75646
+ url: '/organization/v1/effective_spec';
75647
+ };
75648
+ export type GetOrganizationEffectiveSpecErrors = {
75649
+ /**
75650
+ * INVALID_PARAMS; neither or both of actor and position_id were given, the actor address is malformed, holder_kind is neither agent nor human, or a query parameter is unknown. Give exactly one of actor or position_id.
75651
+ */
75652
+ 400: OrganizationProblem;
75653
+ /**
75654
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75655
+ */
75656
+ 401: unknown;
75657
+ /**
75658
+ * 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.
75659
+ */
75660
+ 403: OrganizationProblem;
75661
+ /**
75662
+ * POSITION_NOT_FOUND; position_id is not a position of your organization. List positions and copy an id.
75663
+ */
75664
+ 404: OrganizationProblem;
75665
+ };
75666
+ export type GetOrganizationEffectiveSpecError = GetOrganizationEffectiveSpecErrors[keyof GetOrganizationEffectiveSpecErrors];
75667
+ export type GetOrganizationEffectiveSpecResponses = {
75668
+ /**
75669
+ * The merged effective spec of the seat or actor.
75670
+ */
75671
+ 200: OrganizationEffectiveSpec;
75672
+ };
75673
+ export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
75674
+ export type PlanOrganizationReconcileData = {
75675
+ body?: never;
75676
+ path?: never;
75677
+ query: {
75678
+ /**
75679
+ * The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged.
75680
+ */
75681
+ actor: string;
75682
+ };
75683
+ url: '/organization/v1/reconcile/plan';
75684
+ };
75685
+ export type PlanOrganizationReconcileErrors = {
75686
+ /**
75687
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
75688
+ */
75689
+ 400: OrganizationProblem;
75690
+ /**
75691
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75692
+ */
75693
+ 401: unknown;
75694
+ /**
75695
+ * 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.
75696
+ */
75697
+ 403: OrganizationProblem;
75698
+ };
75699
+ export type PlanOrganizationReconcileError = PlanOrganizationReconcileErrors[keyof PlanOrganizationReconcileErrors];
75700
+ export type PlanOrganizationReconcileResponses = {
75701
+ /**
75702
+ * The actions the reconciler would take for this holder, and the merged-result violations.
75703
+ */
75704
+ 200: OrganizationReconcilePlan;
75705
+ };
75706
+ export type PlanOrganizationReconcileResponse = PlanOrganizationReconcileResponses[keyof PlanOrganizationReconcileResponses];
75707
+ export type GetOrganizationReconcileStatusData = {
75708
+ body?: never;
75709
+ path?: never;
75710
+ query: {
75711
+ /**
75712
+ * The holder whose reconcile status to read (agent:agent_... or human:usr_...).
75713
+ */
75714
+ actor: string;
75715
+ };
75716
+ url: '/organization/v1/reconcile/status';
75717
+ };
75718
+ export type GetOrganizationReconcileStatusErrors = {
75719
+ /**
75720
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
75721
+ */
75722
+ 400: OrganizationProblem;
75723
+ /**
75724
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75725
+ */
75726
+ 401: unknown;
75727
+ /**
75728
+ * 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.
75729
+ */
75730
+ 403: OrganizationProblem;
75731
+ };
75732
+ export type GetOrganizationReconcileStatusError = GetOrganizationReconcileStatusErrors[keyof GetOrganizationReconcileStatusErrors];
75733
+ export type GetOrganizationReconcileStatusResponses = {
75734
+ /**
75735
+ * The last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
75736
+ */
75737
+ 200: OrganizationReconcileStatus;
75738
+ };
75739
+ export type GetOrganizationReconcileStatusResponse = GetOrganizationReconcileStatusResponses[keyof GetOrganizationReconcileStatusResponses];
75740
+ export type RunOrganizationReconcileData = {
75741
+ body: OrganizationReconcileActorRequest;
75742
+ path?: never;
75743
+ query?: never;
75744
+ url: '/organization/v1/reconcile/run';
75745
+ };
75746
+ export type RunOrganizationReconcileErrors = {
75747
+ /**
75748
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75749
+ */
75750
+ 400: OrganizationProblem;
75751
+ /**
75752
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75753
+ */
75754
+ 401: unknown;
75755
+ /**
75756
+ * PERMISSION_DENIED; only an organization owner or admin may run the reconciler, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75757
+ */
75758
+ 403: OrganizationProblem;
75759
+ };
75760
+ export type RunOrganizationReconcileError = RunOrganizationReconcileErrors[keyof RunOrganizationReconcileErrors];
75761
+ export type RunOrganizationReconcileResponses = {
75762
+ /**
75763
+ * The status after this run.
75764
+ */
75765
+ 200: OrganizationReconcileStatus;
75766
+ };
75767
+ export type RunOrganizationReconcileResponse = RunOrganizationReconcileResponses[keyof RunOrganizationReconcileResponses];
75768
+ export type PauseOrganizationReconcileData = {
75769
+ body: OrganizationReconcileActorRequest;
75770
+ path?: never;
75771
+ query?: never;
75772
+ url: '/organization/v1/reconcile/pause';
75773
+ };
75774
+ export type PauseOrganizationReconcileErrors = {
75775
+ /**
75776
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75777
+ */
75778
+ 400: OrganizationProblem;
75779
+ /**
75780
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75781
+ */
75782
+ 401: unknown;
75783
+ /**
75784
+ * PERMISSION_DENIED; only an organization owner or admin may pause the reconciler, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75785
+ */
75786
+ 403: OrganizationProblem;
75787
+ };
75788
+ export type PauseOrganizationReconcileError = PauseOrganizationReconcileErrors[keyof PauseOrganizationReconcileErrors];
75789
+ export type PauseOrganizationReconcileResponses = {
75790
+ /**
75791
+ * The status after pausing; paused is true.
75792
+ */
75793
+ 200: OrganizationReconcileStatus;
75794
+ };
75795
+ export type PauseOrganizationReconcileResponse = PauseOrganizationReconcileResponses[keyof PauseOrganizationReconcileResponses];
75796
+ export type ResumeOrganizationReconcileData = {
75797
+ body: OrganizationReconcileActorRequest;
75798
+ path?: never;
75799
+ query?: never;
75800
+ url: '/organization/v1/reconcile/resume';
75801
+ };
75802
+ export type ResumeOrganizationReconcileErrors = {
75803
+ /**
75804
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75805
+ */
75806
+ 400: OrganizationProblem;
75807
+ /**
75808
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75809
+ */
75810
+ 401: unknown;
75811
+ /**
75812
+ * PERMISSION_DENIED; only an organization owner or admin may resume the reconciler, and machine tokens are always refused (an agent's session token may read the organization, never change it).
75813
+ */
75814
+ 403: OrganizationProblem;
75815
+ };
75816
+ export type ResumeOrganizationReconcileError = ResumeOrganizationReconcileErrors[keyof ResumeOrganizationReconcileErrors];
75817
+ export type ResumeOrganizationReconcileResponses = {
75818
+ /**
75819
+ * The status after resuming; paused is false.
75820
+ */
75821
+ 200: OrganizationReconcileStatus;
75822
+ };
75823
+ export type ResumeOrganizationReconcileResponse = ResumeOrganizationReconcileResponses[keyof ResumeOrganizationReconcileResponses];
74151
75824
  export type UpgradeSandboxData = {
74152
75825
  body: {
74153
75826
  /**
@@ -75295,6 +76968,436 @@ export type RunSandboxCommandResponses = {
75295
76968
  };
75296
76969
  };
75297
76970
  export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
76971
+ export type CreateByodPairingData = {
76972
+ body?: never;
76973
+ path?: never;
76974
+ query?: never;
76975
+ url: '/sandbox/v1/byod/pairings';
76976
+ };
76977
+ export type CreateByodPairingErrors = {
76978
+ /**
76979
+ * INVALID_PARAMS: a body field is missing, wrongly typed or out of range, for example a name outside 1 to 64 characters. Fix the field and resend; retrying unchanged fails the same way.
76980
+ */
76981
+ 400: unknown;
76982
+ /**
76983
+ * Authentication required: supply an organization API key that carries a tenant.
76984
+ */
76985
+ 401: unknown;
76986
+ /**
76987
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
76988
+ */
76989
+ 503: unknown;
76990
+ };
76991
+ export type CreateByodPairingResponses = {
76992
+ /**
76993
+ * A pairing the caller started: the short code, its deadline and the string the phone's app scans.
76994
+ */
76995
+ 201: {
76996
+ /**
76997
+ * The 8-character pairing code, from ABCDEFGHJKLMNPQRSTUVWXYZ23456789 (I, O, 0 and 1 are left out). Show it or the QR payload to the phone; a code can be spent once, by one device.
76998
+ */
76999
+ code: string;
77000
+ /**
77001
+ * When the code stops working, ten minutes after it was created, as an ISO-8601 timestamp. A code that is spent or past this time answers 404 to the device.
77002
+ */
77003
+ expires_at: string;
77004
+ /**
77005
+ * The string the app scans: praxis://byod/pair?code=<code>&api=<api origin>. Render it as a QR code; the code can also be typed in.
77006
+ */
77007
+ qr: string;
77008
+ };
77009
+ };
77010
+ export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
77011
+ export type ListByodDevicesData = {
77012
+ body?: never;
77013
+ path?: never;
77014
+ query?: never;
77015
+ url: '/sandbox/v1/byod/devices';
77016
+ };
77017
+ export type ListByodDevicesErrors = {
77018
+ /**
77019
+ * Authentication required: supply an organization API key that carries a tenant.
77020
+ */
77021
+ 401: unknown;
77022
+ /**
77023
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77024
+ */
77025
+ 503: unknown;
77026
+ };
77027
+ export type ListByodDevicesResponses = {
77028
+ /**
77029
+ * The organization's BYOD devices.
77030
+ */
77031
+ 200: {
77032
+ /**
77033
+ * The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
77034
+ */
77035
+ data: Array<{
77036
+ /**
77037
+ * Resource type; always "byod_device".
77038
+ */
77039
+ object: 'byod_device';
77040
+ /**
77041
+ * Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
77042
+ */
77043
+ id: string;
77044
+ /**
77045
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
77046
+ */
77047
+ platform: 'android' | 'macos' | 'linux';
77048
+ /**
77049
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
77050
+ */
77051
+ name: string;
77052
+ /**
77053
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
77054
+ */
77055
+ model: string;
77056
+ /**
77057
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
77058
+ */
77059
+ os_version: string;
77060
+ /**
77061
+ * True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
77062
+ */
77063
+ online: boolean;
77064
+ /**
77065
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
77066
+ */
77067
+ last_seen_at: string | null;
77068
+ /**
77069
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
77070
+ */
77071
+ created_at: string;
77072
+ /**
77073
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
77074
+ */
77075
+ capabilities: Array<'display' | 'agent'>;
77076
+ /**
77077
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
77078
+ */
77079
+ agent_dirs: Array<string>;
77080
+ /**
77081
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
77082
+ */
77083
+ allow_bypass: boolean;
77084
+ }>;
77085
+ };
77086
+ };
77087
+ export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
77088
+ export type GetByodDeviceData = {
77089
+ body?: never;
77090
+ path: {
77091
+ /**
77092
+ * Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404.
77093
+ */
77094
+ deviceID: string;
77095
+ };
77096
+ query?: never;
77097
+ url: '/sandbox/v1/byod/devices/{deviceID}';
77098
+ };
77099
+ export type GetByodDeviceErrors = {
77100
+ /**
77101
+ * Authentication required: supply an organization API key that carries a tenant.
77102
+ */
77103
+ 401: unknown;
77104
+ /**
77105
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
77106
+ */
77107
+ 404: unknown;
77108
+ /**
77109
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77110
+ */
77111
+ 503: unknown;
77112
+ };
77113
+ export type GetByodDeviceResponses = {
77114
+ /**
77115
+ * One BYOD device: a phone or a desktop the organization paired and the platform did not build.
77116
+ */
77117
+ 200: {
77118
+ /**
77119
+ * Resource type; always "byod_device".
77120
+ */
77121
+ object: 'byod_device';
77122
+ /**
77123
+ * Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
77124
+ */
77125
+ id: string;
77126
+ /**
77127
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
77128
+ */
77129
+ platform: 'android' | 'macos' | 'linux';
77130
+ /**
77131
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
77132
+ */
77133
+ name: string;
77134
+ /**
77135
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
77136
+ */
77137
+ model: string;
77138
+ /**
77139
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
77140
+ */
77141
+ os_version: string;
77142
+ /**
77143
+ * True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
77144
+ */
77145
+ online: boolean;
77146
+ /**
77147
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
77148
+ */
77149
+ last_seen_at: string | null;
77150
+ /**
77151
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
77152
+ */
77153
+ created_at: string;
77154
+ /**
77155
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
77156
+ */
77157
+ capabilities: Array<'display' | 'agent'>;
77158
+ /**
77159
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
77160
+ */
77161
+ agent_dirs: Array<string>;
77162
+ /**
77163
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
77164
+ */
77165
+ allow_bypass: boolean;
77166
+ };
77167
+ };
77168
+ export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
77169
+ export type UpdateByodDeviceData = {
77170
+ /**
77171
+ * The one field a rename may send.
77172
+ */
77173
+ body: {
77174
+ /**
77175
+ * New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
77176
+ */
77177
+ name: string;
77178
+ };
77179
+ path: {
77180
+ /**
77181
+ * Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404.
77182
+ */
77183
+ deviceID: string;
77184
+ };
77185
+ query?: never;
77186
+ url: '/sandbox/v1/byod/devices/{deviceID}';
77187
+ };
77188
+ export type UpdateByodDeviceErrors = {
77189
+ /**
77190
+ * INVALID_PARAMS: a body field is missing, wrongly typed or out of range, for example a name outside 1 to 64 characters. Fix the field and resend; retrying unchanged fails the same way.
77191
+ */
77192
+ 400: unknown;
77193
+ /**
77194
+ * Authentication required: supply an organization API key that carries a tenant.
77195
+ */
77196
+ 401: unknown;
77197
+ /**
77198
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
77199
+ */
77200
+ 404: unknown;
77201
+ /**
77202
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77203
+ */
77204
+ 503: unknown;
77205
+ };
77206
+ export type UpdateByodDeviceResponses = {
77207
+ /**
77208
+ * One BYOD device: a phone or a desktop the organization paired and the platform did not build.
77209
+ */
77210
+ 200: {
77211
+ /**
77212
+ * Resource type; always "byod_device".
77213
+ */
77214
+ object: 'byod_device';
77215
+ /**
77216
+ * Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
77217
+ */
77218
+ id: string;
77219
+ /**
77220
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
77221
+ */
77222
+ platform: 'android' | 'macos' | 'linux';
77223
+ /**
77224
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
77225
+ */
77226
+ name: string;
77227
+ /**
77228
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
77229
+ */
77230
+ model: string;
77231
+ /**
77232
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
77233
+ */
77234
+ os_version: string;
77235
+ /**
77236
+ * True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
77237
+ */
77238
+ online: boolean;
77239
+ /**
77240
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
77241
+ */
77242
+ last_seen_at: string | null;
77243
+ /**
77244
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
77245
+ */
77246
+ created_at: string;
77247
+ /**
77248
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
77249
+ */
77250
+ capabilities: Array<'display' | 'agent'>;
77251
+ /**
77252
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
77253
+ */
77254
+ agent_dirs: Array<string>;
77255
+ /**
77256
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
77257
+ */
77258
+ allow_bypass: boolean;
77259
+ };
77260
+ };
77261
+ export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
77262
+ export type DisconnectByodDeviceData = {
77263
+ body?: never;
77264
+ path: {
77265
+ /**
77266
+ * Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404.
77267
+ */
77268
+ deviceID: string;
77269
+ };
77270
+ query?: never;
77271
+ url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
77272
+ };
77273
+ export type DisconnectByodDeviceErrors = {
77274
+ /**
77275
+ * Authentication required: supply an organization API key that carries a tenant.
77276
+ */
77277
+ 401: unknown;
77278
+ /**
77279
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
77280
+ */
77281
+ 404: unknown;
77282
+ /**
77283
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77284
+ */
77285
+ 503: unknown;
77286
+ };
77287
+ export type DisconnectByodDeviceResponses = {
77288
+ /**
77289
+ * The disconnected device.
77290
+ */
77291
+ 200: {
77292
+ /**
77293
+ * Id of the device that was disconnected.
77294
+ */
77295
+ id: string;
77296
+ /**
77297
+ * Resource type; always "byod_device".
77298
+ */
77299
+ object: 'byod_device';
77300
+ /**
77301
+ * Always true: the credential is revoked and the connection closed.
77302
+ */
77303
+ disconnected: true;
77304
+ };
77305
+ };
77306
+ export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
77307
+ export type GetByodPairingData = {
77308
+ body?: never;
77309
+ path: {
77310
+ /**
77311
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
77312
+ */
77313
+ code: string;
77314
+ };
77315
+ query?: never;
77316
+ url: '/sandbox/v1/byod/pairings/{code}';
77317
+ };
77318
+ export type GetByodPairingErrors = {
77319
+ /**
77320
+ * NOT_FOUND: no such pairing. The code is unknown, was already claimed, or has expired; the three are indistinguishable, so start a new pairing in the organization.
77321
+ */
77322
+ 404: unknown;
77323
+ };
77324
+ export type GetByodPairingResponses = {
77325
+ /**
77326
+ * What the Allow screen reads.
77327
+ */
77328
+ 200: {
77329
+ /**
77330
+ * Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
77331
+ */
77332
+ organization_name: string;
77333
+ /**
77334
+ * When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
77335
+ */
77336
+ expires_at: string;
77337
+ };
77338
+ };
77339
+ export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
77340
+ export type ClaimByodPairingData = {
77341
+ /**
77342
+ * What the phone's app knows about itself when it claims the pairing.
77343
+ */
77344
+ body: {
77345
+ /**
77346
+ * The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS.
77347
+ */
77348
+ platform: 'android' | 'macos' | 'linux';
77349
+ /**
77350
+ * Display name to register the device with, 1 to 64 characters; omitted or empty becomes the placeholder My device, which the caller can change later.
77351
+ */
77352
+ name?: string;
77353
+ /**
77354
+ * The device model the app reports, at most 128 characters; it is display only and can be omitted.
77355
+ */
77356
+ model?: string;
77357
+ /**
77358
+ * The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
77359
+ */
77360
+ os_version?: string;
77361
+ };
77362
+ path: {
77363
+ /**
77364
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
77365
+ */
77366
+ code: string;
77367
+ };
77368
+ query?: never;
77369
+ url: '/sandbox/v1/byod/pairings/{code}/claim';
77370
+ };
77371
+ export type ClaimByodPairingErrors = {
77372
+ /**
77373
+ * INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
77374
+ */
77375
+ 400: unknown;
77376
+ /**
77377
+ * NOT_FOUND: no such pairing. The code is unknown, was already claimed, or has expired; the three are indistinguishable, so start a new pairing in the organization.
77378
+ */
77379
+ 404: unknown;
77380
+ };
77381
+ export type ClaimByodPairingResponses = {
77382
+ /**
77383
+ * The device's registration and its one-time credential.
77384
+ */
77385
+ 201: {
77386
+ /**
77387
+ * Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
77388
+ */
77389
+ device_id: string;
77390
+ /**
77391
+ * The device credential, 32 random bytes as base64url, shown exactly once; store it in the phone's keystore and send it as Authorization: Bearer when dialing socket_url. A lost credential cannot be re-read: disconnect and pair again.
77392
+ */
77393
+ credential: string;
77394
+ /**
77395
+ * 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.
77396
+ */
77397
+ socket_url: string;
77398
+ };
77399
+ };
77400
+ export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
75298
77401
  export type SessionsDeleteData = {
75299
77402
  body?: never;
75300
77403
  path: {
@@ -77114,7 +79217,7 @@ export type AgentsCreateData = {
77114
79217
  }>;
77115
79218
  };
77116
79219
  /**
77117
- * Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
79220
+ * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
77118
79221
  */
77119
79222
  preset?: 'minimal' | 'data-editor' | 'full';
77120
79223
  /**
@@ -78981,7 +81084,7 @@ export type AgentsUpdateData = {
78981
81084
  }>;
78982
81085
  };
78983
81086
  /**
78984
- * Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
81087
+ * Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
78985
81088
  */
78986
81089
  preset?: 'minimal' | 'data-editor' | 'full';
78987
81090
  /**
@@ -82691,48 +84794,6 @@ export type SessionsEventsListResponses = {
82691
84794
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
82692
84795
  */
82693
84796
  processed_at: string;
82694
- } | {
82695
- /**
82696
- * Event id, unique within the session.
82697
- */
82698
- id: string;
82699
- /**
82700
- * Always `user.tool_confirmation`.
82701
- */
82702
- type: 'user.tool_confirmation';
82703
- /**
82704
- * When the event was recorded, RFC 3339.
82705
- */
82706
- processed_at: string;
82707
- /**
82708
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
82709
- */
82710
- tool_use_id: string;
82711
- /**
82712
- * Always `allow`.
82713
- */
82714
- result: 'allow';
82715
- /**
82716
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
82717
- */
82718
- answers: {
82719
- [key: string]: string;
82720
- };
82721
- /**
82722
- * Per-question notes, keyed by the question text.
82723
- */
82724
- annotations?: {
82725
- [key: string]: {
82726
- /**
82727
- * The preview of the option the user chose.
82728
- */
82729
- preview?: string;
82730
- /**
82731
- * Free text the user added to their choice.
82732
- */
82733
- notes?: string;
82734
- };
82735
- };
82736
84797
  }>;
82737
84798
  /**
82738
84799
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -82782,40 +84843,6 @@ export type SessionsEventsSendData = {
82782
84843
  * Id of the event this event refers to.
82783
84844
  */
82784
84845
  event_id: string;
82785
- } | {
82786
- /**
82787
- * Always `user.tool_confirmation`.
82788
- */
82789
- type: 'user.tool_confirmation';
82790
- /**
82791
- * The id of the pending `agent.tool_use` event of the AskUserQuestion call.
82792
- */
82793
- tool_use_id: string;
82794
- /**
82795
- * Always `allow`; the questions are answered, or dismissed with an empty `answers`.
82796
- */
82797
- result: 'allow';
82798
- /**
82799
- * The user's answer to each question, keyed by the question text. A multi-select answer joins the chosen labels with a comma and a space; a free-text answer is the user's own words. A question left out was skipped.
82800
- */
82801
- answers: {
82802
- [key: string]: string;
82803
- };
82804
- /**
82805
- * Optional per-question notes, keyed by the question text.
82806
- */
82807
- annotations?: {
82808
- [key: string]: {
82809
- /**
82810
- * The preview of the option the user chose.
82811
- */
82812
- preview?: string;
82813
- /**
82814
- * Free text the user added to their choice.
82815
- */
82816
- notes?: string;
82817
- };
82818
- };
82819
84846
  }>;
82820
84847
  };
82821
84848
  path: {
@@ -82910,48 +84937,6 @@ export type SessionsEventsSendResponses = {
82910
84937
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
82911
84938
  */
82912
84939
  processed_at: string;
82913
- } | {
82914
- /**
82915
- * Event id, unique within the session.
82916
- */
82917
- id: string;
82918
- /**
82919
- * Always `user.tool_confirmation`.
82920
- */
82921
- type: 'user.tool_confirmation';
82922
- /**
82923
- * When the event was recorded, RFC 3339.
82924
- */
82925
- processed_at: string;
82926
- /**
82927
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
82928
- */
82929
- tool_use_id: string;
82930
- /**
82931
- * Always `allow`.
82932
- */
82933
- result: 'allow';
82934
- /**
82935
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
82936
- */
82937
- answers: {
82938
- [key: string]: string;
82939
- };
82940
- /**
82941
- * Per-question notes, keyed by the question text.
82942
- */
82943
- annotations?: {
82944
- [key: string]: {
82945
- /**
82946
- * The preview of the option the user chose.
82947
- */
82948
- preview?: string;
82949
- /**
82950
- * Free text the user added to their choice.
82951
- */
82952
- notes?: string;
82953
- };
82954
- };
82955
84940
  }>;
82956
84941
  };
82957
84942
  };
@@ -98300,6 +100285,10 @@ export type DevopsTestPlanGetData = {
98300
100285
  * 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.
98301
100286
  */
98302
100287
  base?: string;
100288
+ /**
100289
+ * 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.
100290
+ */
100291
+ view?: 'full' | 'summary';
98303
100292
  };
98304
100293
  url: '/devops/v1/projects/{project}/test-plan';
98305
100294
  };
@@ -98374,6 +100363,97 @@ export type DevopsProjectsListResponses = {
98374
100363
  200: DevopsProjectPage;
98375
100364
  };
98376
100365
  export type DevopsProjectsListResponse = DevopsProjectsListResponses[keyof DevopsProjectsListResponses];
100366
+ export type DevopsProjectsCreateData = {
100367
+ /**
100368
+ * The project's name and where its code lives: a git package of our own Git, or a GitHub repository.
100369
+ */
100370
+ body: DevopsProjectCreate;
100371
+ path?: never;
100372
+ query?: never;
100373
+ url: '/devops/v1/projects';
100374
+ };
100375
+ export type DevopsProjectsCreateErrors = {
100376
+ /**
100377
+ * 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.
100378
+ */
100379
+ 400: DevopsDevOpsError;
100380
+ /**
100381
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100382
+ */
100383
+ 401: DevopsDevOpsError;
100384
+ /**
100385
+ * 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.
100386
+ */
100387
+ 403: DevopsDevOpsError;
100388
+ /**
100389
+ * 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.
100390
+ */
100391
+ 404: DevopsDevOpsError;
100392
+ /**
100393
+ * 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.
100394
+ */
100395
+ 409: DevopsDevOpsError;
100396
+ /**
100397
+ * 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.
100398
+ */
100399
+ 500: DevopsDevOpsError;
100400
+ };
100401
+ export type DevopsProjectsCreateError = DevopsProjectsCreateErrors[keyof DevopsProjectsCreateErrors];
100402
+ export type DevopsProjectsCreateResponses = {
100403
+ /**
100404
+ * The created project with its repository binding, settings and labels.
100405
+ */
100406
+ 200: DevopsProject;
100407
+ };
100408
+ export type DevopsProjectsCreateResponse = DevopsProjectsCreateResponses[keyof DevopsProjectsCreateResponses];
100409
+ export type DevopsProjectsInitializeDefaultBranchData = {
100410
+ /**
100411
+ * The existing branch to start the default branch from.
100412
+ */
100413
+ body: DevopsDefaultBranchInitialize;
100414
+ path: {
100415
+ /**
100416
+ * The project identifier returned by the project list, not the project's display name or its repository name.
100417
+ */
100418
+ id: string;
100419
+ };
100420
+ query?: never;
100421
+ url: '/devops/v1/projects/{id}/default-branch:initialize';
100422
+ };
100423
+ export type DevopsProjectsInitializeDefaultBranchErrors = {
100424
+ /**
100425
+ * 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.
100426
+ */
100427
+ 400: DevopsDevOpsError;
100428
+ /**
100429
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100430
+ */
100431
+ 401: DevopsDevOpsError;
100432
+ /**
100433
+ * 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.
100434
+ */
100435
+ 403: DevopsDevOpsError;
100436
+ /**
100437
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
100438
+ */
100439
+ 404: DevopsDevOpsError;
100440
+ /**
100441
+ * DEFAULT_BRANCH_EXISTS means the default branch is already there; it is never moved by this call.
100442
+ */
100443
+ 409: DevopsDevOpsError;
100444
+ /**
100445
+ * 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.
100446
+ */
100447
+ 500: DevopsDevOpsError;
100448
+ };
100449
+ export type DevopsProjectsInitializeDefaultBranchError = DevopsProjectsInitializeDefaultBranchErrors[keyof DevopsProjectsInitializeDefaultBranchErrors];
100450
+ export type DevopsProjectsInitializeDefaultBranchResponses = {
100451
+ /**
100452
+ * The default branch now exists: its name, the branch it was started from and the commit it points at.
100453
+ */
100454
+ 200: DevopsDefaultBranchInitialized;
100455
+ };
100456
+ export type DevopsProjectsInitializeDefaultBranchResponse = DevopsProjectsInitializeDefaultBranchResponses[keyof DevopsProjectsInitializeDefaultBranchResponses];
98377
100457
  export type DevopsProjectsGetData = {
98378
100458
  body?: never;
98379
100459
  path: {
@@ -98944,6 +101024,55 @@ export type DevopsPromotionsConcludeResponses = {
98944
101024
  200: DevopsPromotion;
98945
101025
  };
98946
101026
  export type DevopsPromotionsConcludeResponse = DevopsPromotionsConcludeResponses[keyof DevopsPromotionsConcludeResponses];
101027
+ export type DevopsPromotionsCheckoutCredentialData = {
101028
+ body?: never;
101029
+ path: {
101030
+ /**
101031
+ * The promotion identifier returned by a promotion list or create answer.
101032
+ */
101033
+ id: string;
101034
+ };
101035
+ query?: never;
101036
+ url: '/devops/v1/promotions/{id}:checkoutCredential';
101037
+ };
101038
+ export type DevopsPromotionsCheckoutCredentialErrors = {
101039
+ /**
101040
+ * 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.
101041
+ */
101042
+ 400: DevopsDevOpsError;
101043
+ /**
101044
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
101045
+ */
101046
+ 401: DevopsDevOpsError;
101047
+ /**
101048
+ * 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.
101049
+ */
101050
+ 403: DevopsDevOpsError;
101051
+ /**
101052
+ * 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.
101053
+ */
101054
+ 404: DevopsDevOpsError;
101055
+ /**
101056
+ * 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.
101057
+ */
101058
+ 409: DevopsDevOpsError;
101059
+ /**
101060
+ * 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.
101061
+ */
101062
+ 500: DevopsDevOpsError;
101063
+ /**
101064
+ * REGISTRY_UNAVAILABLE means the platform's Git registry would not issue a credential just now; the machine retries the request shortly.
101065
+ */
101066
+ 502: DevopsDevOpsError;
101067
+ };
101068
+ export type DevopsPromotionsCheckoutCredentialError = DevopsPromotionsCheckoutCredentialErrors[keyof DevopsPromotionsCheckoutCredentialErrors];
101069
+ export type DevopsPromotionsCheckoutCredentialResponses = {
101070
+ /**
101071
+ * 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.
101072
+ */
101073
+ 200: DevopsCheckoutCredential;
101074
+ };
101075
+ export type DevopsPromotionsCheckoutCredentialResponse = DevopsPromotionsCheckoutCredentialResponses[keyof DevopsPromotionsCheckoutCredentialResponses];
98947
101076
  export type DevopsRolloutsListData = {
98948
101077
  body?: never;
98949
101078
  path: {
@@ -100362,7 +102491,7 @@ export type DevopsChangesOpenPullRequestErrors = {
100362
102491
  export type DevopsChangesOpenPullRequestError = DevopsChangesOpenPullRequestErrors[keyof DevopsChangesOpenPullRequestErrors];
100363
102492
  export type DevopsChangesOpenPullRequestResponses = {
100364
102493
  /**
100365
- * 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.
102494
+ * 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.
100366
102495
  */
100367
102496
  200: DevopsChangePullRequestOpened;
100368
102497
  };
@@ -100437,6 +102566,10 @@ export type DevopsPullRequestsListData = {
100437
102566
  * 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.
100438
102567
  */
100439
102568
  reviewer?: string;
102569
+ /**
102570
+ * 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.
102571
+ */
102572
+ reviewed?: boolean;
100440
102573
  };
100441
102574
  url: '/devops/v1/projects/{project}/pull-requests';
100442
102575
  };
@@ -100586,7 +102719,7 @@ export type DevopsPullRequestsMergeErrors = {
100586
102719
  */
100587
102720
  404: DevopsDevOpsError;
100588
102721
  /**
100589
- * 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.
102722
+ * 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.
100590
102723
  */
100591
102724
  409: DevopsDevOpsError;
100592
102725
  /**
@@ -100638,7 +102771,7 @@ export type DevopsPullRequestsRecordVerdictErrors = {
100638
102771
  export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
100639
102772
  export type DevopsPullRequestsRecordVerdictResponses = {
100640
102773
  /**
100641
- * The pull request with the gate it now reaches, the exposure-judged check showing the verdict and its reason.
102774
+ * The pull request with the review recorded on it; its gate is unchanged.
100642
102775
  */
100643
102776
  200: DevopsPullRequest;
100644
102777
  };
@@ -100688,6 +102821,51 @@ export type DevopsPullRequestsCloseResponses = {
100688
102821
  200: DevopsPullRequest;
100689
102822
  };
100690
102823
  export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
102824
+ export type DevopsPullRequestsReviewsCreateData = {
102825
+ body: DevopsPullRequestReviewRequest;
102826
+ path: {
102827
+ /**
102828
+ * 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.
102829
+ */
102830
+ id: string;
102831
+ };
102832
+ query?: never;
102833
+ url: '/devops/v1/pull-requests/{id}/reviews';
102834
+ };
102835
+ export type DevopsPullRequestsReviewsCreateErrors = {
102836
+ /**
102837
+ * 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.
102838
+ */
102839
+ 400: DevopsDevOpsError;
102840
+ /**
102841
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
102842
+ */
102843
+ 401: DevopsDevOpsError;
102844
+ /**
102845
+ * 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.
102846
+ */
102847
+ 403: DevopsDevOpsError;
102848
+ /**
102849
+ * 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.
102850
+ */
102851
+ 404: DevopsDevOpsError;
102852
+ /**
102853
+ * PULL_REQUEST_NOT_OPEN when the pull request is merged or closed: nothing was recorded.
102854
+ */
102855
+ 409: DevopsDevOpsError;
102856
+ /**
102857
+ * 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.
102858
+ */
102859
+ 500: DevopsDevOpsError;
102860
+ };
102861
+ export type DevopsPullRequestsReviewsCreateError = DevopsPullRequestsReviewsCreateErrors[keyof DevopsPullRequestsReviewsCreateErrors];
102862
+ export type DevopsPullRequestsReviewsCreateResponses = {
102863
+ /**
102864
+ * 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.
102865
+ */
102866
+ 200: DevopsPullRequest;
102867
+ };
102868
+ export type DevopsPullRequestsReviewsCreateResponse = DevopsPullRequestsReviewsCreateResponses[keyof DevopsPullRequestsReviewsCreateResponses];
100691
102869
  export type DevopsConnectionsListData = {
100692
102870
  body?: never;
100693
102871
  path?: never;
@@ -101146,7 +103324,7 @@ export type DevopsWorkspacesGetData = {
101146
103324
  */
101147
103325
  project: string;
101148
103326
  /**
101149
- * 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.
103327
+ * 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.
101150
103328
  */
101151
103329
  stage: DevopsWorkspaceStage;
101152
103330
  };
@@ -101191,7 +103369,7 @@ export type DevopsWorkspacesUpdateData = {
101191
103369
  */
101192
103370
  project: string;
101193
103371
  /**
101194
- * 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.
103372
+ * 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.
101195
103373
  */
101196
103374
  stage: DevopsWorkspaceStage;
101197
103375
  };
@@ -101335,6 +103513,56 @@ export type DevopsUnitsCreateResponses = {
101335
103513
  200: DevopsUnit;
101336
103514
  };
101337
103515
  export type DevopsUnitsCreateResponse = DevopsUnitsCreateResponses[keyof DevopsUnitsCreateResponses];
103516
+ export type DevopsCleanupsListData = {
103517
+ body?: never;
103518
+ path: {
103519
+ /**
103520
+ * Identifies the project whose data you are reading, from the project list or create answer.
103521
+ */
103522
+ project: string;
103523
+ };
103524
+ query?: {
103525
+ /**
103526
+ * 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.
103527
+ */
103528
+ pageSize?: number;
103529
+ /**
103530
+ * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
103531
+ */
103532
+ pageToken?: string;
103533
+ };
103534
+ url: '/devops/v1/projects/{project}/cleanups';
103535
+ };
103536
+ export type DevopsCleanupsListErrors = {
103537
+ /**
103538
+ * 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.
103539
+ */
103540
+ 400: DevopsDevOpsError;
103541
+ /**
103542
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
103543
+ */
103544
+ 401: DevopsDevOpsError;
103545
+ /**
103546
+ * 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.
103547
+ */
103548
+ 403: DevopsDevOpsError;
103549
+ /**
103550
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
103551
+ */
103552
+ 404: DevopsDevOpsError;
103553
+ /**
103554
+ * 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.
103555
+ */
103556
+ 500: DevopsDevOpsError;
103557
+ };
103558
+ export type DevopsCleanupsListError = DevopsCleanupsListErrors[keyof DevopsCleanupsListErrors];
103559
+ export type DevopsCleanupsListResponses = {
103560
+ /**
103561
+ * One page of the project's cleanup ledger, newest decision first.
103562
+ */
103563
+ 200: DevopsCleanupPage;
103564
+ };
103565
+ export type DevopsCleanupsListResponse = DevopsCleanupsListResponses[keyof DevopsCleanupsListResponses];
101338
103566
  export type DevopsUnitsDeleteData = {
101339
103567
  body?: never;
101340
103568
  path: {
@@ -108275,9 +110503,9 @@ export type RegistryRepositoriesPackagesListResponses = {
108275
110503
  export type RegistryRepositoriesPackagesListResponse = RegistryRepositoriesPackagesListResponses[keyof RegistryRepositoriesPackagesListResponses];
108276
110504
  export type RegistryRepositoriesPackagesCreateData = {
108277
110505
  /**
108278
- * 要发布的包和它的第一个版本;archive 与 files 二选一。
110506
+ * oci 库发布技能或插件用 multipart(archive 与 files 二选一);git 库建 git 仓库用 JSON。
108279
110507
  */
108280
- body: RegistryPublishInput;
110508
+ body: RegistryCreateGitPackageInput;
108281
110509
  path: {
108282
110510
  /**
108283
110511
  * 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
@@ -108320,7 +110548,7 @@ export type RegistryRepositoriesPackagesCreateErrors = {
108320
110548
  export type RegistryRepositoriesPackagesCreateError = RegistryRepositoriesPackagesCreateErrors[keyof RegistryRepositoriesPackagesCreateErrors];
108321
110549
  export type RegistryRepositoriesPackagesCreateResponses = {
108322
110550
  /**
108323
- * 建好的包,latest_version 是刚发布的版本号。
110551
+ * 建好的包。技能和插件的 latest_version 是刚发布的版本号;git 包带 clone_url、default_branch 和 protected_refs。
108324
110552
  */
108325
110553
  201: RegistryPackage;
108326
110554
  };
@@ -108460,6 +110688,50 @@ export type RegistryPackagesVersionsCreateResponses = {
108460
110688
  201: RegistryVersion;
108461
110689
  };
108462
110690
  export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
110691
+ export type RegistryPackagesGitCredentialCreateData = {
110692
+ /**
110693
+ * 要的权限和有效期。
110694
+ */
110695
+ body: RegistryGitCredentialInput;
110696
+ path: {
110697
+ /**
110698
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110699
+ */
110700
+ package_id: string;
110701
+ };
110702
+ query?: never;
110703
+ url: '/registry/v1/packages/{package_id}/git-credential';
110704
+ };
110705
+ export type RegistryPackagesGitCredentialCreateErrors = {
110706
+ /**
110707
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110708
+ */
110709
+ 400: RegistryRegistryError;
110710
+ /**
110711
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110712
+ */
110713
+ 401: RegistryRegistryError;
110714
+ /**
110715
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110716
+ */
110717
+ 404: RegistryRegistryError;
110718
+ /**
110719
+ * FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
110720
+ */
110721
+ 409: RegistryRegistryError;
110722
+ /**
110723
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110724
+ */
110725
+ 500: RegistryRegistryError;
110726
+ };
110727
+ export type RegistryPackagesGitCredentialCreateError = RegistryPackagesGitCredentialCreateErrors[keyof RegistryPackagesGitCredentialCreateErrors];
110728
+ export type RegistryPackagesGitCredentialCreateResponses = {
110729
+ /**
110730
+ * 新签发的凭据,含克隆地址、固定用户名、密码和过期时间。
110731
+ */
110732
+ 201: RegistryGitCredential;
110733
+ };
110734
+ export type RegistryPackagesGitCredentialCreateResponse = RegistryPackagesGitCredentialCreateResponses[keyof RegistryPackagesGitCredentialCreateResponses];
108463
110735
  export type RegistryGitLogData = {
108464
110736
  body?: never;
108465
110737
  path: {
@@ -108526,7 +110798,12 @@ export type RegistryGitCommitsRetrieveData = {
108526
110798
  */
108527
110799
  sha: string;
108528
110800
  };
108529
- query?: never;
110801
+ query?: {
110802
+ /**
110803
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
110804
+ */
110805
+ changed_files?: boolean;
110806
+ };
108530
110807
  url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
108531
110808
  };
108532
110809
  export type RegistryGitCommitsRetrieveErrors = {
@@ -108556,7 +110833,7 @@ export type RegistryGitCommitsRetrieveResponses = {
108556
110833
  /**
108557
110834
  * 这个提交。
108558
110835
  */
108559
- 200: RegistryGitCommit;
110836
+ 200: RegistryGitCommitDetail;
108560
110837
  };
108561
110838
  export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
108562
110839
  export type RegistryGitTreesRetrieveData = {
@@ -108604,6 +110881,201 @@ export type RegistryGitTreesRetrieveResponses = {
108604
110881
  200: RegistryGitTree;
108605
110882
  };
108606
110883
  export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
110884
+ export type RegistryGitRefsData = {
110885
+ body?: never;
110886
+ path: {
110887
+ /**
110888
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110889
+ */
110890
+ package_id: string;
110891
+ };
110892
+ query?: {
110893
+ /**
110894
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
110895
+ */
110896
+ prefix?: 'refs/heads/' | 'refs/tags/';
110897
+ /**
110898
+ * 页码,从 1 起,默认 1。
110899
+ */
110900
+ page?: number;
110901
+ /**
110902
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
110903
+ */
110904
+ size?: number;
110905
+ };
110906
+ url: '/registry/v1/packages/{package_id}/git/refs';
110907
+ };
110908
+ export type RegistryGitRefsErrors = {
110909
+ /**
110910
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110911
+ */
110912
+ 400: RegistryRegistryError;
110913
+ /**
110914
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110915
+ */
110916
+ 401: RegistryRegistryError;
110917
+ /**
110918
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110919
+ */
110920
+ 404: RegistryRegistryError;
110921
+ /**
110922
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110923
+ */
110924
+ 500: RegistryRegistryError;
110925
+ /**
110926
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
110927
+ */
110928
+ 503: RegistryRegistryError;
110929
+ };
110930
+ export type RegistryGitRefsError = RegistryGitRefsErrors[keyof RegistryGitRefsErrors];
110931
+ export type RegistryGitRefsResponses = {
110932
+ /**
110933
+ * 分支和标签的一页。
110934
+ */
110935
+ 200: RegistryGitRefs;
110936
+ };
110937
+ export type RegistryGitRefsResponse = RegistryGitRefsResponses[keyof RegistryGitRefsResponses];
110938
+ export type RegistryGitResolveData = {
110939
+ body?: never;
110940
+ path: {
110941
+ /**
110942
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110943
+ */
110944
+ package_id: string;
110945
+ };
110946
+ query: {
110947
+ /**
110948
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
110949
+ */
110950
+ ref: string;
110951
+ };
110952
+ url: '/registry/v1/packages/{package_id}/git/resolve';
110953
+ };
110954
+ export type RegistryGitResolveErrors = {
110955
+ /**
110956
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110957
+ */
110958
+ 400: RegistryRegistryError;
110959
+ /**
110960
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110961
+ */
110962
+ 401: RegistryRegistryError;
110963
+ /**
110964
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110965
+ */
110966
+ 404: RegistryRegistryError;
110967
+ /**
110968
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110969
+ */
110970
+ 500: RegistryRegistryError;
110971
+ /**
110972
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
110973
+ */
110974
+ 503: RegistryRegistryError;
110975
+ };
110976
+ export type RegistryGitResolveError = RegistryGitResolveErrors[keyof RegistryGitResolveErrors];
110977
+ export type RegistryGitResolveResponses = {
110978
+ /**
110979
+ * 这个引用指向的提交。
110980
+ */
110981
+ 200: RegistryGitResolvedRef;
110982
+ };
110983
+ export type RegistryGitResolveResponse = RegistryGitResolveResponses[keyof RegistryGitResolveResponses];
110984
+ export type RegistryGitCompareData = {
110985
+ body?: never;
110986
+ path: {
110987
+ /**
110988
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110989
+ */
110990
+ package_id: string;
110991
+ };
110992
+ query: {
110993
+ /**
110994
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
110995
+ */
110996
+ base: string;
110997
+ /**
110998
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
110999
+ */
111000
+ head: string;
111001
+ };
111002
+ url: '/registry/v1/packages/{package_id}/git/compare';
111003
+ };
111004
+ export type RegistryGitCompareErrors = {
111005
+ /**
111006
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111007
+ */
111008
+ 400: RegistryRegistryError;
111009
+ /**
111010
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111011
+ */
111012
+ 401: RegistryRegistryError;
111013
+ /**
111014
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111015
+ */
111016
+ 404: RegistryRegistryError;
111017
+ /**
111018
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111019
+ */
111020
+ 500: RegistryRegistryError;
111021
+ /**
111022
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111023
+ */
111024
+ 503: RegistryRegistryError;
111025
+ };
111026
+ export type RegistryGitCompareError = RegistryGitCompareErrors[keyof RegistryGitCompareErrors];
111027
+ export type RegistryGitCompareResponses = {
111028
+ /**
111029
+ * 两个引用的关系、改动的文件和多出的提交。
111030
+ */
111031
+ 200: RegistryGitComparison;
111032
+ };
111033
+ export type RegistryGitCompareResponse = RegistryGitCompareResponses[keyof RegistryGitCompareResponses];
111034
+ export type RegistryGitTreesRecursiveData = {
111035
+ body?: never;
111036
+ path: {
111037
+ /**
111038
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111039
+ */
111040
+ package_id: string;
111041
+ /**
111042
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
111043
+ */
111044
+ sha: string;
111045
+ };
111046
+ query?: never;
111047
+ url: '/registry/v1/packages/{package_id}/git/trees/{sha}/recursive';
111048
+ };
111049
+ export type RegistryGitTreesRecursiveErrors = {
111050
+ /**
111051
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111052
+ */
111053
+ 400: RegistryRegistryError;
111054
+ /**
111055
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111056
+ */
111057
+ 401: RegistryRegistryError;
111058
+ /**
111059
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111060
+ */
111061
+ 404: RegistryRegistryError;
111062
+ /**
111063
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111064
+ */
111065
+ 500: RegistryRegistryError;
111066
+ /**
111067
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111068
+ */
111069
+ 503: RegistryRegistryError;
111070
+ };
111071
+ export type RegistryGitTreesRecursiveError = RegistryGitTreesRecursiveErrors[keyof RegistryGitTreesRecursiveErrors];
111072
+ export type RegistryGitTreesRecursiveResponses = {
111073
+ /**
111074
+ * 这个对象下的全部条目。
111075
+ */
111076
+ 200: RegistryGitTreeRecursive;
111077
+ };
111078
+ export type RegistryGitTreesRecursiveResponse = RegistryGitTreesRecursiveResponses[keyof RegistryGitTreesRecursiveResponses];
108607
111079
  export type RegistryGitFilesRetrieveData = {
108608
111080
  body?: never;
108609
111081
  path: {