@deepraxis/sdk 0.1.1-dev.15e627b → 0.1.1-dev.161a576

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  /**
@@ -2821,6 +2816,23 @@ export type AgentSseEvent = ({
2821
2816
  event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
2822
2817
  data: AgentSseData;
2823
2818
  };
2819
+ /**
2820
+ * The price book in force at the moment of the read.
2821
+ */
2822
+ export type BillingPriceList = {
2823
+ /**
2824
+ * The published catalog version this body was cut from; it changes on any price write.
2825
+ */
2826
+ pricing_version: string;
2827
+ /**
2828
+ * The latest effective_from among the listed entries; null when no item has a price in force yet.
2829
+ */
2830
+ effective_at: string;
2831
+ /**
2832
+ * One entry per amount in force, ordered by item id and then by the model's own tier/cell order.
2833
+ */
2834
+ items: Array<BillingPriceEntry>;
2835
+ };
2824
2836
  export type BrowserSessionCreateParams = {
2825
2837
  /**
2826
2838
  * 可省略;账户使用 default 项目。
@@ -7768,6 +7780,279 @@ export type OrganizationReviseKeyResultRequest = {
7768
7780
  */
7769
7781
  done?: boolean;
7770
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 spec of one subject in the organization/v1 envelope; a subject never written answers revision 0 with an empty body.
7806
+ */
7807
+ export type OrganizationSpec = {
7808
+ /**
7809
+ * The language of this envelope, always organization/v1.
7810
+ */
7811
+ api_version: 'organization/v1';
7812
+ kind: OrganizationSpecKind;
7813
+ metadata: OrganizationSpecMetadata;
7814
+ spec: OrganizationSpecBody;
7815
+ /**
7816
+ * Reconcile summary; given when one spec is read, null in a list and for a past revision.
7817
+ */
7818
+ status: OrganizationSpecStatusSummary | null;
7819
+ };
7820
+ /**
7821
+ * The whole new spec of one subject, replacing the previous one.
7822
+ */
7823
+ export type OrganizationReviseSpecRequest = {
7824
+ /**
7825
+ * The language of the envelope; omit it or send organization/v1, anything else is refused.
7826
+ */
7827
+ api_version?: 'organization/v1';
7828
+ /**
7829
+ * The revision you read and the labels, annotations and note of this revision. Other fields of a read metadata (id, name, update_time, updated_by) may be sent back and are ignored.
7830
+ */
7831
+ metadata: {
7832
+ /**
7833
+ * The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one.
7834
+ */
7835
+ revision: number;
7836
+ /**
7837
+ * Replaces the labels of the previous revision; omit it to keep them. At most 20 keys, each matching ^[a-z0-9]([a-z0-9._/-]{0,61}[a-z0-9])?$, with string values up to 63 characters.
7838
+ */
7839
+ labels?: {
7840
+ [key: string]: string;
7841
+ };
7842
+ /**
7843
+ * Replaces the annotations of the previous revision; omit it to keep them. At most 20 keys with string values up to 1000 characters.
7844
+ */
7845
+ annotations?: {
7846
+ [key: string]: string;
7847
+ };
7848
+ /**
7849
+ * Why this revision is written, up to 500 characters; it belongs to this revision only and is not carried over.
7850
+ */
7851
+ change_note?: string;
7852
+ };
7853
+ spec: OrganizationSpecBody;
7854
+ };
7855
+ /**
7856
+ * The preview of a revise made with dry_run=true; nothing was written.
7857
+ */
7858
+ export type OrganizationSpecDryRun = {
7859
+ /**
7860
+ * Always true; tells the preview from a written spec.
7861
+ */
7862
+ dry_run: true;
7863
+ spec: OrganizationSpec;
7864
+ /**
7865
+ * What the write would change against the live spec, in path order.
7866
+ */
7867
+ changes: Array<OrganizationSpecChange>;
7868
+ /**
7869
+ * The reconcile plan of every holder in office whose chain contains this subject, computed as if the new spec were already written; at most 50.
7870
+ */
7871
+ plans: Array<OrganizationReconcilePlan>;
7872
+ /**
7873
+ * Present and true when more than 50 holders are affected and only the first 50 have a plan.
7874
+ */
7875
+ plans_truncated?: true;
7876
+ };
7877
+ /**
7878
+ * One page of a subject's spec revisions, newest first.
7879
+ */
7880
+ export type OrganizationSpecRevisionList = {
7881
+ /**
7882
+ * Revisions on this page, newest first.
7883
+ */
7884
+ data: Array<OrganizationSpecRevision>;
7885
+ /**
7886
+ * Whether another page is available after this one.
7887
+ */
7888
+ has_more: boolean;
7889
+ /**
7890
+ * Cursor to pass as page to read the next page; null when no more items remain.
7891
+ */
7892
+ next_page: string | null;
7893
+ };
7894
+ /**
7895
+ * The changes between two revisions of one subject's spec; an empty changes array means the two revisions are equal.
7896
+ */
7897
+ export type OrganizationSpecDiff = {
7898
+ kind: OrganizationSpecKind;
7899
+ /**
7900
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
7901
+ */
7902
+ id: string;
7903
+ /**
7904
+ * The earlier revision that was compared from; 0 is the empty spec before the first write.
7905
+ */
7906
+ from: number;
7907
+ /**
7908
+ * The later revision that was compared to.
7909
+ */
7910
+ to: number;
7911
+ /**
7912
+ * The differences found, in path order.
7913
+ */
7914
+ changes: Array<OrganizationSpecChange>;
7915
+ };
7916
+ /**
7917
+ * The merged spec of one seat or actor - the one configuration that actually applies when every layer is reconciled.
7918
+ */
7919
+ export type OrganizationEffectiveSpec = {
7920
+ /**
7921
+ * Actor address the result is for (human:usr_... or agent:agent_...); null when the query was by position_id and the seat is vacant.
7922
+ */
7923
+ actor: string | null;
7924
+ /**
7925
+ * The holder kind the merge was made for, given or derived from the seat's holder.
7926
+ */
7927
+ holder_kind: 'agent' | 'human';
7928
+ /**
7929
+ * Every seat the result covers; the primary seat, if any, comes first.
7930
+ */
7931
+ seats: Array<{
7932
+ /**
7933
+ * Position id (pos_...) of this seat.
7934
+ */
7935
+ position_id: string;
7936
+ /**
7937
+ * Assignment id (asg_...) holding the seat; null while the seat is vacant.
7938
+ */
7939
+ assignment_id: string | null;
7940
+ /**
7941
+ * Whether this is the actor's primary seat, whose values win a clash.
7942
+ */
7943
+ primary: boolean;
7944
+ /**
7945
+ * The spec layers merged for this seat, least specific first.
7946
+ */
7947
+ layers: Array<OrganizationSpecLayerRef>;
7948
+ }>;
7949
+ /**
7950
+ * The document of every layer, each layer once; duplicates of the same layer are dropped.
7951
+ */
7952
+ documents: Array<OrganizationSpecDocument>;
7953
+ /**
7954
+ * The merged provision: a map from block name to the value the chain resolved to, in the shape of a written spec.provision with remove left out. Blocks are agent, computer, phone, roles, grants, repositories, schedules and browser.
7955
+ */
7956
+ provision: {
7957
+ [key: string]: unknown;
7958
+ };
7959
+ /**
7960
+ * Where each merged value came from, keyed by the path inside the spec (such as provision.agent.model or provision.repositories[github:org/repo]).
7961
+ */
7962
+ origins: {
7963
+ [key: string]: string;
7964
+ };
7965
+ /**
7966
+ * Blocks this holder kind does not take and that were skipped without error, such as agent-only blocks for a human holder.
7967
+ */
7968
+ skipped: Array<string>;
7969
+ /**
7970
+ * Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
7971
+ */
7972
+ violations: Array<string>;
7973
+ };
7974
+ /**
7975
+ * The JSON Schema (draft 2020-12) of a spec body, generated from the block registry and returned without any key renamed; its x-praxis-* keywords describe merging, holders and what reconcile applies.
7976
+ */
7977
+ export type OrganizationSpecSchema = {
7978
+ [key: string]: unknown;
7979
+ };
7980
+ /**
7981
+ * What a dry run of the reconciler would do for one holder, without changing anything.
7982
+ */
7983
+ export type OrganizationReconcilePlan = {
7984
+ /**
7985
+ * Actor address the plan is for (agent:agent_... or human:usr_...).
7986
+ */
7987
+ actor: string;
7988
+ /**
7989
+ * The holder kind the merge was made for, derived from the actor address.
7990
+ */
7991
+ holder_kind: 'agent' | 'human';
7992
+ /**
7993
+ * One action per block the plan considered, in block order.
7994
+ */
7995
+ actions: Array<OrganizationReconcileAction>;
7996
+ /**
7997
+ * Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
7998
+ */
7999
+ violations: Array<string>;
8000
+ };
8001
+ /**
8002
+ * The reconciler's last result for one holder.
8003
+ */
8004
+ export type OrganizationReconcileStatus = {
8005
+ /**
8006
+ * Actor address this status is for (agent:agent_... or human:usr_...).
8007
+ */
8008
+ actor: string;
8009
+ /**
8010
+ * Whether the sweep is paused for this holder.
8011
+ */
8012
+ paused: boolean;
8013
+ /**
8014
+ * The seats and layer revisions the last run applied; empty before the first run.
8015
+ */
8016
+ observed: Array<{
8017
+ /**
8018
+ * Position id (pos_...) of this seat.
8019
+ */
8020
+ position_id: string;
8021
+ /**
8022
+ * Assignment id (asg_...) holding the seat; null while the seat is vacant.
8023
+ */
8024
+ assignment_id: string | null;
8025
+ /**
8026
+ * Whether this is the actor's primary seat, whose values win a clash.
8027
+ */
8028
+ primary: boolean;
8029
+ /**
8030
+ * The spec layers merged for this seat, least specific first.
8031
+ */
8032
+ layers: Array<OrganizationSpecLayerRef>;
8033
+ }>;
8034
+ /**
8035
+ * One row per capability block and the state it is in.
8036
+ */
8037
+ items: Array<OrganizationReconcileItem>;
8038
+ /**
8039
+ * Where what is applied differs from what the specs want; empty when nothing has drifted.
8040
+ */
8041
+ drift: Array<OrganizationReconcileDrift>;
8042
+ /**
8043
+ * UTC instant (RFC 3339) of the last run that applied changes; null when the holder was never reconciled.
8044
+ */
8045
+ applied_at: string | null;
8046
+ };
8047
+ /**
8048
+ * The holder to reconcile.
8049
+ */
8050
+ export type OrganizationReconcileActorRequest = {
8051
+ /**
8052
+ * Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged.
8053
+ */
8054
+ actor: string;
8055
+ };
7771
8056
  export type SandboxSandboxDetail = {
7772
8057
  /**
7773
8058
  * Identifier of the template from which is the sandbox created
@@ -9763,9 +10048,9 @@ export type ApplicationGrant = {
9763
10048
  /**
9764
10049
  * Resource type.
9765
10050
  */
9766
- type: 'database' | 'files' | 'knowledge' | 'models';
10051
+ type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'feedback' | 'organization';
9767
10052
  /**
9768
- * Database or knowledge base ID; * for files and models.
10053
+ * ID of the granted resource; * for models and whole-service types.
9769
10054
  */
9770
10055
  id: string;
9771
10056
  };
@@ -9790,9 +10075,9 @@ export type ApplicationCreateGrantInput = {
9790
10075
  /**
9791
10076
  * Resource type.
9792
10077
  */
9793
- type: 'database' | 'files' | 'knowledge' | 'models';
10078
+ type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'feedback' | 'organization';
9794
10079
  /**
9795
- * Database or knowledge base ID in your organization; * for files and models.
10080
+ * ID of the granted resource in your organization; * for models and whole-service types.
9796
10081
  */
9797
10082
  id: string;
9798
10083
  };
@@ -16328,7 +16613,7 @@ export type DevopsReportUploadRequest = {
16328
16613
  */
16329
16614
  reportId: string;
16330
16615
  /**
16331
- * 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.
16616
+ * 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.
16332
16617
  */
16333
16618
  purpose?: 'evidence' | 'feedback';
16334
16619
  /**
@@ -16402,23 +16687,61 @@ export type DevopsTestPlan = {
16402
16687
  * One entry per required package, sorted by directory. Empty only when selection is nothing or failed.
16403
16688
  */
16404
16689
  packages: Array<DevopsTestPlanPackage>;
16690
+ /**
16691
+ * Every feature scenario of the affected packages at the gate's sizes, sorted by package and title, each with whether this diff requires it and what evidence answers it. This is the finer reading of packages: a merge asks for evidence only on the required cases.
16692
+ */
16693
+ cases: Array<DevopsTestPlanCase>;
16694
+ /**
16695
+ * Present only for view summary: one row per package that has cases, counting its cases. required is what this diff requires evidence for, unaffected is what it does not reach, and of the required ones evidenced have a passing row at their deps hash, missing have none and failed have a newest failing row (required = evidenced + missing + failed). In this view cases lists the required cases only.
16696
+ */
16697
+ caseCounts?: Array<DevopsTestPlanCaseCounts>;
16405
16698
  /**
16406
16699
  * The changed paths the ownership rule could not place, present only when selection is failed. Fix the rule or the paths: with no package named over paths that were not judged none, neither a pass nor a run is the truth.
16407
16700
  */
16408
16701
  failedPaths?: Array<string>;
16409
16702
  };
16410
16703
  /**
16411
- * One page of the organization's delivery projects, newest first.
16704
+ * A new project: its name and, for a project with code, where the code lives.
16412
16705
  */
16413
- export type DevopsProjectPage = {
16706
+ export type DevopsProjectCreate = {
16414
16707
  /**
16415
- * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16708
+ * Kebab-case name, unique within the organization.
16416
16709
  */
16417
- items: Array<DevopsProject>;
16710
+ name: string;
16418
16711
  /**
16419
- * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16712
+ * What the project is for, in your own words.
16420
16713
  */
16421
- nextPageToken: string;
16714
+ description?: string;
16715
+ /**
16716
+ * Where the code lives: github (the default) or platform, a git package of our own Git.
16717
+ */
16718
+ provider?: 'github' | 'platform';
16719
+ /**
16720
+ * provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository.
16721
+ */
16722
+ package?: string;
16723
+ /**
16724
+ * provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then.
16725
+ */
16726
+ initialRef?: string;
16727
+ /**
16728
+ * provider github only: the connection of a completed GitHub App install that can see the repository.
16729
+ */
16730
+ connection?: string;
16731
+ /**
16732
+ * provider github only: the repository as owner/name.
16733
+ */
16734
+ repository?: string;
16735
+ /**
16736
+ * Delivery settings; keys you leave out take their defaults.
16737
+ */
16738
+ settings?: {
16739
+ [key: string]: unknown;
16740
+ };
16741
+ /**
16742
+ * Idempotency key: repeat the call with the same value to be given the same answer.
16743
+ */
16744
+ requestId?: string;
16422
16745
  };
16423
16746
  /**
16424
16747
  * One delivery project — the unit a release, a promotion and a flag all belong to.
@@ -16464,6 +16787,49 @@ export type DevopsProject = {
16464
16787
  [key: string]: string;
16465
16788
  };
16466
16789
  };
16790
+ /**
16791
+ * One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
16792
+ */
16793
+ export type DevopsProjectPage = {
16794
+ /**
16795
+ * The projects on this page, ordered by creation time descending; a project of another organization is never among them.
16796
+ */
16797
+ items: Array<DevopsProject>;
16798
+ /**
16799
+ * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
16800
+ */
16801
+ nextPageToken: string;
16802
+ /**
16803
+ * How many undeleted projects the caller's own organization has: 0 means the organization has none yet, not that the read returned nothing. Visible means visible to the credential's organization — the count filters rows by organization_id and is not a permission check, so it says nothing about what the caller may be granted. It is the organization's total across all pages, never this page's length: while paging it is at least the length of items, and equal on the first page when every project fits. Always present, so items: [] together with visibleProjects: 0 is an answer rather than an empty response to guess at; an organization without projects still answers 200.
16804
+ */
16805
+ visibleProjects: number;
16806
+ };
16807
+ /**
16808
+ * Where to start the default branch.
16809
+ */
16810
+ export type DevopsDefaultBranchInitialize = {
16811
+ /**
16812
+ * An existing branch of the repository, for example import. The default branch is created at its head.
16813
+ */
16814
+ from: string;
16815
+ };
16816
+ /**
16817
+ * The default branch that now exists.
16818
+ */
16819
+ export type DevopsDefaultBranchInitialized = {
16820
+ /**
16821
+ * The default branch the project declares, now created.
16822
+ */
16823
+ defaultBranch: string;
16824
+ /**
16825
+ * The branch it was started from.
16826
+ */
16827
+ from: string;
16828
+ /**
16829
+ * The commit the default branch points at, the head of from when it was read.
16830
+ */
16831
+ commit: string;
16832
+ };
16467
16833
  /**
16468
16834
  * A patch to a project; only the fields named in updateMask are written.
16469
16835
  */
@@ -16495,7 +16861,7 @@ export type DevopsProjectUpdate = {
16495
16861
  */
16496
16862
  releaseSchedule?: null | DevopsReleaseSchedule;
16497
16863
  /**
16498
- * New observation window in minutes for production promotions.
16864
+ * Not read: the observation window of a promotion is the observeMinutes of the environment it deploys into (and only for a release-stage environment), so changing this value changes nothing. Set environments.update observeMinutes instead.
16499
16865
  */
16500
16866
  observationWindowMinutes?: number;
16501
16867
  /**
@@ -16510,6 +16876,7 @@ export type DevopsProjectUpdate = {
16510
16876
  * Whether the merge gate is a required check on the git host.
16511
16877
  */
16512
16878
  requireGate?: boolean;
16879
+ gate?: DevopsGatePolicy;
16513
16880
  /**
16514
16881
  * 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.
16515
16882
  */
@@ -16689,6 +17056,10 @@ export type DevopsPromotionCreate = {
16689
17056
  */
16690
17057
  reason: string;
16691
17058
  }>;
17059
+ /**
17060
+ * Targeted only. include (the default) is the ordinary dependency order: naming a target also deploys the callees it needs, first. skip is a FORCED EXPRESS: only the targets you name deploy, nothing is added, and the callees stay at whatever the environment runs. Use it when the closure would carry other people's unreleased changes (a targeted promotion of one service can plan dozens of targets whose checkpoints lag). It is recorded for after-the-fact review: the promotion answers dependencies skip and skippedDependencies (what include would have added), and the project's promotion list filters on forced. The one refusal is DEPENDENCY_NOT_LIVE (FAILED_PRECONDITION): a named target bound to a callee that has never been deployed to this environment, which names the target and the callee. Release facts record who calls whom but not which entrypoint a binding names, so liveness is decided per callee, not per entrypoint. skip is refused with INVALID_ARGUMENT for any path but targeted, and together with withoutCallees (it already leaves every callee behind). A named async target still goes to its own async promotion.
17061
+ */
17062
+ dependencies?: 'include' | 'skip';
16692
17063
  /**
16693
17064
  * Gates to skip, each naming the approval that authorizes it; a bypass is refused unless the project allows skipping upstream and the approval covers this release, environment and gate.
16694
17065
  */
@@ -16742,6 +17113,18 @@ export type DevopsPromotion = {
16742
17113
  * How this promotion came about; it decides which gates apply, so read it before judging a refusal.
16743
17114
  */
16744
17115
  path: 'regular' | 'patch' | 'targeted' | 'rollback';
17116
+ /**
17117
+ * Present, as skip, only on a forced express: a targeted promotion created with dependencies skip deployed exactly the targets it named and added nothing. Read-only; absent on every other promotion.
17118
+ */
17119
+ dependencies?: 'skip';
17120
+ /**
17121
+ * On a forced express only: the targets the ordinary dependency order would have added to the plan and this promotion did not deploy, for the reviewer. Display only; nothing here deployed.
17122
+ */
17123
+ skippedDependencies?: Array<string>;
17124
+ /**
17125
+ * The exact version of the deploy engine (the published @deepraxis/cli) this promotion runs with. It is resolved once when the promotion is created, from the project's settings.deploy.engine (latest, dev or a pinned version), and recorded here; a retry, the rollout that follows an approved plan and a replan run this same version, so one promotion runs one engine. A rollback runs the engine the project names now, not the one of the release it returns to. Read-only. Absent on a promotion created before engines were recorded.
17126
+ */
17127
+ engineVersion?: string;
16745
17128
  /**
16746
17129
  * The plan this promotion executes, or null for a promotion created before a plan was recorded. Read layers and refusals here rather than re-deriving them.
16747
17130
  */
@@ -16751,9 +17134,30 @@ export type DevopsPromotion = {
16751
17134
  */
16752
17135
  state: 'queued' | 'pending_release' | 'awaiting_approval' | 'deploying' | 'verifying' | 'observing' | 'halted' | 'cancelling' | 'succeeded' | 'failed' | 'errored' | 'approval_rejected' | 'cancelled' | 'superseded';
16753
17136
  /**
16754
- * The executor's own sentence about the current state, present while it is running and after it stops; it carries detail the state value cannot.
17137
+ * The executor's own sentence about the current state, present while it is running and after it stops; it carries detail the state value cannot. A queued promotion says which promotion it waits for and what releases it.
16755
17138
  */
16756
17139
  stateDescription?: string;
17140
+ /**
17141
+ * Only on promotions.retrieve, and only once a rollout has ended: what the rollouts really did. A promotion can succeed with deployed 0 and identical above 0, which means every target was skipped as artifact_identical.
17142
+ */
17143
+ summary?: {
17144
+ /**
17145
+ * Targets that were built and deployed.
17146
+ */
17147
+ deployed?: number;
17148
+ /**
17149
+ * Targets skipped as artifact_identical: the built artifact is byte-for-byte what the environment already runs, as when the change was only a comment, so nothing was deployed.
17150
+ */
17151
+ identical?: number;
17152
+ /**
17153
+ * Targets whose rollout ended any other way (failed, cancelled, skipped for another reason).
17154
+ */
17155
+ other?: number;
17156
+ };
17157
+ /**
17158
+ * Present and true only on the answer to a validateOnly call: nothing was stored, id is the placeholder prm_validate_only and state is the one a real call would start in.
17159
+ */
17160
+ validateOnly?: boolean;
16757
17161
  approval: DevopsApprovalState;
16758
17162
  /**
16759
17163
  * RFC 3339 UTC time the approval was decided; absent while it is still needed or was never required.
@@ -16769,6 +17173,10 @@ export type DevopsPromotion = {
16769
17173
  verification?: Array<DevopsVerificationInfo>;
16770
17174
  observation?: DevopsObservation;
16771
17175
  executor?: DevopsPromotionExecutor;
17176
+ /**
17177
+ * The lane the promotion runs in, read-only. async marks the promotion of one async target (a slow target such as the docs site, named in the project file under devops.deploy.async): it does not take the environment queue, it runs beside the main promotion and waits only for an earlier async promotion of the same target, and its success or failure moves that target alone. Absent means main.
17178
+ */
17179
+ lane?: 'main' | 'async';
16772
17180
  /**
16773
17181
  * The promotion that replaced this one, present only when state is superseded; read it to follow the work to where it went.
16774
17182
  */
@@ -16840,6 +17248,27 @@ export type DevopsPromotionConcludeRequest = {
16840
17248
  */
16841
17249
  reason: string;
16842
17250
  };
17251
+ /**
17252
+ * What a deploy machine fetches a platform-Git project's code with: the repository's clone URL and a pull-only credential for that one repository.
17253
+ */
17254
+ export type DevopsCheckoutCredential = {
17255
+ /**
17256
+ * The https clone URL of the project's repository on the platform's Git. It carries no credential; send the credential below through git's credential helper.
17257
+ */
17258
+ cloneUrl: string;
17259
+ /**
17260
+ * The user name git sends with the password.
17261
+ */
17262
+ username: string;
17263
+ /**
17264
+ * A secret: the pull credential. It reads this one repository and nothing else, and stops working at expireTime. Never print or store it.
17265
+ */
17266
+ password: string;
17267
+ /**
17268
+ * RFC 3339 UTC time the credential stops working, 15 minutes after it was issued. Ask again for a new one rather than extending.
17269
+ */
17270
+ expireTime: string;
17271
+ };
16843
17272
  /**
16844
17273
  * One page of a promotion's rollouts, in plan order.
16845
17274
  */
@@ -16937,7 +17366,7 @@ export type DevopsEnvironmentUpdate = {
16937
17366
  */
16938
17367
  requireApproval?: boolean;
16939
17368
  /**
16940
- * Minutes a promotion into this environment stays under observation.
17369
+ * Minutes a promotion into this environment stays in observing after its deploy finishes; 0 means no window. This is the value that decides the window, not the project setting observationWindowMinutes, which is no longer read. The window applies to release-stage environments, and while it runs the environment is held: promotions queue behind it until promotions.conclude.
16941
17370
  */
16942
17371
  observeMinutes?: number;
16943
17372
  /**
@@ -16948,9 +17377,13 @@ export type DevopsEnvironmentUpdate = {
16948
17377
  * Suffix such as -develop that this environment adds to site hostnames, or null for none.
16949
17378
  */
16950
17379
  domainSuffix?: string | null;
17380
+ /**
17381
+ * Which stage of the path the environment belongs to: integration environments receive every merge, release environments receive promotions only. Moving an environment between stages changes what the next merge deploys and what a promotion into a release environment waits for; the observation and blocking rules it already carries are not rewritten.
17382
+ */
17383
+ stage?: 'integration' | 'release';
16951
17384
  };
16952
17385
  /**
16953
- * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries.
17386
+ * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries.
16954
17387
  */
16955
17388
  updateMask?: Array<string>;
16956
17389
  };
@@ -16991,7 +17424,11 @@ export type DevopsEnvironment = {
16991
17424
  */
16992
17425
  tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
16993
17426
  /**
16994
- * Position in the promotion sequence, starting at 1 and contiguous; the environment one lower must have verified a release before it may be promoted here.
17427
+ * Which stage of the path this environment belongs to (Sean 2026-11-24: development, integration, release). Every merge is deployed to every integration-stage environment; a promotion into a release-stage environment needs the release deployed successfully to every integration-stage environment, and verification never gates it.
17428
+ */
17429
+ stage: 'integration' | 'release';
17430
+ /**
17431
+ * Position in the promotion sequence, starting at 1 and contiguous. A release-stage environment needs the release deployed in every integration-stage environment, wherever they sit in the order.
16995
17432
  */
16996
17433
  order: number;
16997
17434
  /**
@@ -17623,6 +18060,10 @@ export type DevopsChangeOpenPullRequestRequest = {
17623
18060
  * The pull request for a change's branch.
17624
18061
  */
17625
18062
  export type DevopsChangePullRequestOpened = {
18063
+ /**
18064
+ * The pull request's platform id (pr_…), which retrieve, rerunGate, merge and recordVerdict address. Always present on our own Git; on GitHub it is present once the webhook that records the pull request has arrived, and absent before.
18065
+ */
18066
+ id?: string;
17626
18067
  /**
17627
18068
  * The pull request's number on the git host.
17628
18069
  */
@@ -17645,7 +18086,11 @@ export type DevopsChangePullRequestOpened = {
17645
18086
  */
17646
18087
  export type DevopsChangeGitCredential = {
17647
18088
  /**
17648
- * The user name GitHub App installation tokens require.
18089
+ * 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.
18090
+ */
18091
+ url: string;
18092
+ /**
18093
+ * The user name the source host requires with the token (GitHub App installation tokens use `x-access-token`).
17649
18094
  */
17650
18095
  username: string;
17651
18096
  /**
@@ -17784,7 +18229,7 @@ export type DevopsPullRequest = {
17784
18229
  kind: 'user' | 'agent' | 'bot';
17785
18230
  };
17786
18231
  /**
17787
- * GitHub's own mergeability word, kept verbatim as an open set (clean, dirty, blocked, behind, unstable and so on); unknown when GitHub has not said.
18232
+ * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
17788
18233
  */
17789
18234
  mergeableState: string;
17790
18235
  /**
@@ -17874,6 +18319,7 @@ export type DevopsPullRequest = {
17874
18319
  time?: string;
17875
18320
  }>;
17876
18321
  };
18322
+ review?: DevopsReviewVerdict;
17877
18323
  /**
17878
18324
  * The commit it landed as, present only once it is merged.
17879
18325
  */
@@ -17909,7 +18355,7 @@ export type DevopsPullRequestMergeRequest = {
17909
18355
  requestId?: string;
17910
18356
  };
17911
18357
  /**
17912
- * A gatekeeper's judgement of a change declared direct, recorded against one commit.
18358
+ * A reviewer's verdict on a pull request, recorded against one commit, after the fact; the merge gate never waits for it.
17913
18359
  */
17914
18360
  export type DevopsPullRequestVerdictRequest = {
17915
18361
  /**
@@ -17938,6 +18384,19 @@ export type DevopsPullRequestCloseRequest = {
17938
18384
  */
17939
18385
  reason: string;
17940
18386
  };
18387
+ /**
18388
+ * Your verdict on a pull request that lives on the platform's own Git.
18389
+ */
18390
+ export type DevopsPullRequestReviewRequest = {
18391
+ /**
18392
+ * The verdict. A value outside this set is refused with INVALID_ARGUMENT.
18393
+ */
18394
+ state: 'approved' | 'changes_requested' | 'commented';
18395
+ /**
18396
+ * The words that go with the verdict. Accepted now and not stored yet: DevOps keeps no review thread, so say what must change on the change's own ticket as well.
18397
+ */
18398
+ body?: string;
18399
+ };
17941
18400
  /**
17942
18401
  * One page of an organization's connections.
17943
18402
  */
@@ -18171,7 +18630,7 @@ export type DevopsSegmentUpdate = {
18171
18630
  */
18172
18631
  export type DevopsWorkspaceList = {
18173
18632
  /**
18174
- * The project's workspaces, development first, then integration, then runtime.
18633
+ * The project's workspaces, development first, then integration, then release.
18175
18634
  */
18176
18635
  items: Array<DevopsWorkspace>;
18177
18636
  };
@@ -18308,9 +18767,9 @@ export type DevopsUnit = {
18308
18767
  transitions?: Array<DevopsUnitTransition>;
18309
18768
  };
18310
18769
  /**
18311
- * Where in the delivery line a workspace or unit sits: development merges changes, integration deploys and finds problems, runtime deploys and serves steadily.
18770
+ * Where in the delivery line a workspace or unit sits: development merges changes, integration deploys every merge and finds problems, release deploys and serves steadily (Sean 2026-11-24: development, integration, release).
18312
18771
  */
18313
- export type DevopsWorkspaceStage = 'development' | 'integration' | 'runtime';
18772
+ export type DevopsWorkspaceStage = 'development' | 'integration' | 'release';
18314
18773
  /**
18315
18774
  * The phase a unit was last observed in; it is an observed fact, not the request, so it changes as the sandbox answers.
18316
18775
  */
@@ -18332,6 +18791,23 @@ export type DevopsUnitPage = {
18332
18791
  */
18333
18792
  nextPageToken: string;
18334
18793
  };
18794
+ /**
18795
+ * One page of a project's cleanup ledger, newest decision first.
18796
+ */
18797
+ export type DevopsCleanupPage = {
18798
+ /**
18799
+ * The ledger rows on this page.
18800
+ */
18801
+ items: Array<DevopsCleanupEntry>;
18802
+ /**
18803
+ * How many rows the project's ledger holds across every page; returned on the first page only.
18804
+ */
18805
+ totalSize?: number;
18806
+ /**
18807
+ * Cursor for the next page; an empty string means this was the last page.
18808
+ */
18809
+ nextPageToken: string;
18810
+ };
18335
18811
  /**
18336
18812
  * A field the unit retrieve can inline; only the values listed are accepted, and any other value is refused with INVALID_ARGUMENT.
18337
18813
  */
@@ -19374,6 +19850,10 @@ export type MediaAsset = {
19374
19850
  * Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
19375
19851
  */
19376
19852
  segments?: number;
19853
+ /**
19854
+ * Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
19855
+ */
19856
+ duration?: number;
19377
19857
  };
19378
19858
  };
19379
19859
  };
@@ -21071,6 +21551,10 @@ export type RegistryCreateRepositoryInput = {
21071
21551
  * 库的说明;省略时不写。
21072
21552
  */
21073
21553
  description?: string;
21554
+ /**
21555
+ * 库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。
21556
+ */
21557
+ format?: 'oci' | 'git';
21074
21558
  };
21075
21559
  /**
21076
21560
  * 一个库:组织里包的分类容器。每个组织有一个 is_default 为 true 的默认库。
@@ -21100,6 +21584,10 @@ export type RegistryRepository = {
21100
21584
  * 是否这个组织的默认库;自动创建、不能删除,新包在没有指定库时进这里。
21101
21585
  */
21102
21586
  is_default: boolean;
21587
+ /**
21588
+ * 库里放什么;oci 放技能和插件,git 放 git 仓库;建库时定下,之后不能改。
21589
+ */
21590
+ format: 'oci' | 'git';
21103
21591
  /**
21104
21592
  * 库里当前的包数量;非零时这个库不能删。
21105
21593
  */
@@ -21185,6 +21673,44 @@ export type RegistryPublishInput = {
21185
21673
  */
21186
21674
  tags?: string;
21187
21675
  };
21676
+ /**
21677
+ * 在 git 库里建 git 包的 JSON 请求体;name 和 format 必填。
21678
+ */
21679
+ export type RegistryCreateGitPackageInput = {
21680
+ /**
21681
+ * 包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。
21682
+ */
21683
+ name: string;
21684
+ /**
21685
+ * 建的包是什么;JSON 请求只能建 git 包,所以固定为 git。
21686
+ */
21687
+ format: 'git';
21688
+ /**
21689
+ * 默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。
21690
+ */
21691
+ default_branch?: string;
21692
+ /**
21693
+ * 仓库的说明;省略时为空。
21694
+ */
21695
+ description?: string;
21696
+ /**
21697
+ * 从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。
21698
+ */
21699
+ import?: {
21700
+ /**
21701
+ * 要导入的公开仓库地址,必须是 https,匿名可读;私有仓库不支持。
21702
+ */
21703
+ url: string;
21704
+ /**
21705
+ * 只导入这个分支;省略则按远端的默认分支。
21706
+ */
21707
+ branch?: string;
21708
+ /**
21709
+ * 浅导入的提交深度;省略则导入完整历史。
21710
+ */
21711
+ depth?: number;
21712
+ };
21713
+ };
21188
21714
  /**
21189
21715
  * 一个包:库里的一个技能或插件,带它的最新版本和累计下载量。
21190
21716
  */
@@ -21206,9 +21732,9 @@ export type RegistryPackage = {
21206
21732
  */
21207
21733
  name: string;
21208
21734
  /**
21209
- * 包的种类;技能或插件。
21735
+ * 包的种类;技能、插件,或 git 仓库。
21210
21736
  */
21211
- kind: 'skill' | 'plugin';
21737
+ kind: 'skill' | 'plugin' | 'git';
21212
21738
  /**
21213
21739
  * 给人看的标题;来自上传内容或发布时的 title,没有时是 null。
21214
21740
  */
@@ -21233,6 +21759,22 @@ export type RegistryPackage = {
21233
21759
  * 这个包 archive 下载的累计次数,每次 archive 调用加一。
21234
21760
  */
21235
21761
  downloads: number;
21762
+ /**
21763
+ * 只有 git 包才有这个字段,固定为 git;技能和插件没有。
21764
+ */
21765
+ format?: 'git';
21766
+ /**
21767
+ * 只有 git 包才有;git clone 和 git push 用的地址,在我们自己的域名下(registry.deepraxis.com/git/...),认证见 packages.git-credential。
21768
+ */
21769
+ clone_url?: string;
21770
+ /**
21771
+ * 只有 git 包才有;默认分支名,建包时给,省略为 main。
21772
+ */
21773
+ default_branch?: string;
21774
+ /**
21775
+ * 只有 git 包才有;受保护的分支或标签,不能用普通凭据更新或删除,默认只保护默认分支;用 PATCH 改。
21776
+ */
21777
+ protected_refs?: Array<string>;
21236
21778
  /**
21237
21779
  * 包首次发布的时刻,ISO 8601 UTC。
21238
21780
  */
@@ -21292,6 +21834,44 @@ export type RegistryVersion = {
21292
21834
  */
21293
21835
  create_time: string;
21294
21836
  };
21837
+ /**
21838
+ * 换 git 凭据的请求体;只有 access 必填。
21839
+ */
21840
+ export type RegistryGitCredentialInput = {
21841
+ /**
21842
+ * 凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。
21843
+ */
21844
+ access: 'pull' | 'push' | 'push-protected';
21845
+ /**
21846
+ * 凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。
21847
+ */
21848
+ ttl_seconds?: number;
21849
+ };
21850
+ /**
21851
+ * 一个签发好的 git 凭据:用 HTTP Basic 的用户名和密码访问 url。
21852
+ */
21853
+ export type RegistryGitCredential = {
21854
+ /**
21855
+ * 对象类型标记,固定为 registry.git_credential。
21856
+ */
21857
+ object: string;
21858
+ /**
21859
+ * 这个包的 git 地址,克隆和推送都用它,不含凭据。
21860
+ */
21861
+ url: string;
21862
+ /**
21863
+ * HTTP Basic 的用户名,固定为 x-access-token。
21864
+ */
21865
+ username: 'x-access-token';
21866
+ /**
21867
+ * HTTP Basic 的密码,一个到 expires_at 失效的凭据;敏感,只在这个响应里给出,不要写进日志、提交或 clone 后保留的 remote 地址。
21868
+ */
21869
+ password: string;
21870
+ /**
21871
+ * 凭据失效的时刻,ISO 8601 UTC;过期后重新调用 git-credential。
21872
+ */
21873
+ expires_at: string;
21874
+ };
21295
21875
  /**
21296
21876
  * 一段提交历史。
21297
21877
  */
@@ -21314,9 +21894,9 @@ export type RegistryGitLog = {
21314
21894
  has_more: boolean;
21315
21895
  };
21316
21896
  /**
21317
- * 一个 git 提交。
21897
+ * 一个 git 提交,需要时连同它改动的文件。
21318
21898
  */
21319
- export type RegistryGitCommit = {
21899
+ export type RegistryGitCommitDetail = {
21320
21900
  /**
21321
21901
  * 对象类型标记,固定为 registry.git.commit。
21322
21902
  */
@@ -21345,6 +21925,14 @@ export type RegistryGitCommit = {
21345
21925
  * 父提交的对象 id,按顺序。
21346
21926
  */
21347
21927
  parents: Array<string>;
21928
+ /**
21929
+ * 相对第一个父提交改动的文件;只在请求带 changed_files=true 时才有。
21930
+ */
21931
+ changed_files?: Array<RegistryGitChangedFile>;
21932
+ /**
21933
+ * changed_files 被上限截断时为 true,此时不要当作改动的全部;只在请求带 changed_files=true 时才有。
21934
+ */
21935
+ changed_files_truncated?: boolean;
21348
21936
  };
21349
21937
  /**
21350
21938
  * 一个树的条目清单。
@@ -21363,6 +21951,94 @@ export type RegistryGitTree = {
21363
21951
  */
21364
21952
  entries: Array<RegistryGitTreeEntry>;
21365
21953
  };
21954
+ /**
21955
+ * 一页分支和标签。
21956
+ */
21957
+ export type RegistryGitRefs = {
21958
+ /**
21959
+ * 对象类型标记,固定为 registry.git.refs。
21960
+ */
21961
+ object: string;
21962
+ /**
21963
+ * 这一页的引用,按名字排序。
21964
+ */
21965
+ refs: Array<RegistryGitRefItem>;
21966
+ /**
21967
+ * 是否还有下一页(page 加 1 取下一页)。
21968
+ */
21969
+ has_more: boolean;
21970
+ };
21971
+ /**
21972
+ * 一个引用换成的提交 id。
21973
+ */
21974
+ export type RegistryGitResolvedRef = {
21975
+ /**
21976
+ * 对象类型标记,固定为 registry.git.resolved_ref。
21977
+ */
21978
+ object: string;
21979
+ /**
21980
+ * 请求里的引用,原样返回。
21981
+ */
21982
+ ref: string;
21983
+ /**
21984
+ * 这个引用指向的提交 id。
21985
+ */
21986
+ sha: string;
21987
+ };
21988
+ /**
21989
+ * 两个引用的比较结果。
21990
+ */
21991
+ export type RegistryGitComparison = {
21992
+ /**
21993
+ * 对象类型标记,固定为 registry.git.comparison。
21994
+ */
21995
+ object: string;
21996
+ /**
21997
+ * head 相对 base 的关系。
21998
+ */
21999
+ status: 'identical' | 'ahead' | 'behind' | 'diverged';
22000
+ /**
22001
+ * 找到的最近共同祖先的提交 id;没有找到(历史无关,或读取上限内没走到)时为 null。
22002
+ */
22003
+ merge_base: string | null;
22004
+ /**
22005
+ * head 相对 merge_base 改动的文件;merge_base 为 null 时相对 base。
22006
+ */
22007
+ files: Array<RegistryGitChangedFile>;
22008
+ /**
22009
+ * head 比 base 多出的提交,最新的在前。
22010
+ */
22011
+ commits: Array<RegistryGitComparedCommit>;
22012
+ /**
22013
+ * 为 true 表示 files 被上限截断,或没找到 merge_base 而无法确定 files;此时不要当作完整结果。
22014
+ */
22015
+ truncated: boolean;
22016
+ /**
22017
+ * 为 true 表示 commits 不完整(读取上限,或合并提交藏起了被合并分支上的提交);此时不要当作 head 多出的全部提交。
22018
+ */
22019
+ commits_truncated: boolean;
22020
+ };
22021
+ /**
22022
+ * 一个提交或树下的全部条目。
22023
+ */
22024
+ export type RegistryGitTreeRecursive = {
22025
+ /**
22026
+ * 对象类型标记,固定为 registry.git.tree_recursive。
22027
+ */
22028
+ object: string;
22029
+ /**
22030
+ * 请求里读的提交或树对象 id,原样返回。
22031
+ */
22032
+ sha: string;
22033
+ /**
22034
+ * 为 true 表示撞到条目或树读取上限,entries 只是前一部分,不是全部。
22035
+ */
22036
+ truncated: boolean;
22037
+ /**
22038
+ * 全部条目,按路径排序,目录也在其中。
22039
+ */
22040
+ entries: Array<RegistryGitTreeNode>;
22041
+ };
21366
22042
  /**
21367
22043
  * 一个版本的文件清单;文件不多,一次返回全部。
21368
22044
  */
@@ -21514,7 +22190,7 @@ export type SandboxNewSandboxV2 = {
21514
22190
  */
21515
22191
  volumeMounts?: Array<SandboxSandboxVolumeMount>;
21516
22192
  /**
21517
- * 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.
22193
+ * 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.
21518
22194
  */
21519
22195
  ephemeral?: boolean;
21520
22196
  /**
@@ -21541,6 +22217,18 @@ export type SandboxNewSandboxV2 = {
21541
22217
  * 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.
21542
22218
  */
21543
22219
  idleActivity?: 'traffic' | 'caller';
22220
+ /**
22221
+ * 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.
22222
+ */
22223
+ sku?: string;
22224
+ /**
22225
+ * 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.
22226
+ */
22227
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
22228
+ /**
22229
+ * 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.
22230
+ */
22231
+ interruptible?: boolean;
21544
22232
  /**
21545
22233
  * Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
21546
22234
  */
@@ -24331,7 +25019,7 @@ export type VaultCreateSecretInput = {
24331
25019
  */
24332
25020
  value: string;
24333
25021
  /**
24334
- * Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.
25022
+ * Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
24335
25023
  */
24336
25024
  allowed_hosts?: Array<string>;
24337
25025
  /**
@@ -24375,7 +25063,7 @@ export type VaultSecret = {
24375
25063
  */
24376
25064
  kind: 'static' | 'oauth';
24377
25065
  /**
24378
- * Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.
25066
+ * Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
24379
25067
  */
24380
25068
  allowed_hosts: Array<string>;
24381
25069
  /**
@@ -24468,7 +25156,7 @@ export type VaultUpdateSecretInput = {
24468
25156
  */
24469
25157
  value?: string;
24470
25158
  /**
24471
- * Allowed destinations for the secret. Omit it to keep the current list; an empty list removes the declaration, leaving the credential for name-based resolution only — host-based redemption never matches. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.
25159
+ * Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host. Omit it to keep the current list; an empty list removes the declaration, so every redemption is denied and only name-based resolution still returns the value. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
24472
25160
  */
24473
25161
  allowed_hosts?: Array<string>;
24474
25162
  /**
@@ -26343,49 +27031,44 @@ export type AgentSseData = {
26343
27031
  * 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.
26344
27032
  */
26345
27033
  source?: 'app' | 'codemode';
26346
- } | {
27034
+ } | (unknown & {
26347
27035
  /**
26348
- * Event id, unique within the session.
27036
+ * Unique identifier for this event.
26349
27037
  */
26350
27038
  id: string;
26351
27039
  /**
26352
- * Always `user.tool_confirmation`.
27040
+ * UserToolConfirmationResult enum
26353
27041
  */
26354
- type: 'user.tool_confirmation';
27042
+ result: 'allow' | 'deny';
26355
27043
  /**
26356
- * When the event was recorded, RFC 3339.
27044
+ * The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
27045
+ * corresponds to, which can be found in the last `session.status_idle`
27046
+ * [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
27047
+ * `stop_reason.event_ids` field.
26357
27048
  */
26358
- processed_at: string;
27049
+ tool_use_id: string;
26359
27050
  /**
26360
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
27051
+ * Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
26361
27052
  */
26362
- tool_use_id: string;
27053
+ type: 'user.tool_confirmation';
26363
27054
  /**
26364
- * Always `allow`.
27055
+ * 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.
26365
27056
  */
26366
- result: 'allow';
27057
+ deny_message?: string;
26367
27058
  /**
26368
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
27059
+ * A timestamp in RFC 3339 format
26369
27060
  */
26370
- answers: {
26371
- [key: string]: string;
26372
- };
27061
+ processed_at?: null | string;
26373
27062
  /**
26374
- * Per-question notes, keyed by the question text.
27063
+ * Set by the server to the subagent thread this confirmation was routed to.
27064
+ * Omitted when it was routed to the primary thread.
26375
27065
  */
26376
- annotations?: {
26377
- [key: string]: {
26378
- /**
26379
- * The preview of the option the user chose.
26380
- */
26381
- preview?: string;
26382
- /**
26383
- * Free text the user added to their choice.
26384
- */
26385
- notes?: string;
26386
- };
26387
- };
26388
- } | {
27066
+ session_thread_id?: null | string;
27067
+ /**
27068
+ * 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.
27069
+ */
27070
+ permission_mode?: 'yolo';
27071
+ }) | {
26389
27072
  /**
26390
27073
  * Unique identifier for this event.
26391
27074
  */
@@ -27028,6 +27711,76 @@ export type AgentSseData = {
27028
27711
  message: string;
27029
27712
  };
27030
27713
  };
27714
+ /**
27715
+ * One amount in force for one price item.
27716
+ */
27717
+ export type BillingPriceEntry = {
27718
+ /**
27719
+ * The price item key, stable and never reused, for example router:default/deepseek-v4-pro:input or sandbox:cpu_second.
27720
+ */
27721
+ id: string;
27722
+ /**
27723
+ * The item key's namespace — the product that owns the meter (router, sandbox, search, browser, media, knowledge, agent, …); group the table by this.
27724
+ */
27725
+ product: string;
27726
+ /**
27727
+ * The item key's subject when it has one, such as default/deepseek-v4-pro; null for a two-segment key.
27728
+ */
27729
+ subject: string;
27730
+ /**
27731
+ * The item's display name from the price book.
27732
+ */
27733
+ name: string;
27734
+ /**
27735
+ * The meter's unit as billing records it, for example token, cpu_second or request.
27736
+ */
27737
+ unit: string;
27738
+ /**
27739
+ * How many units one amount covers, as a decimal integer string; 1000000 for per-million-token meters, 1 for a per-request or per-second meter.
27740
+ */
27741
+ per: string;
27742
+ /**
27743
+ * When this amount took effect. It is at or before now by construction.
27744
+ */
27745
+ effective_from: string;
27746
+ /**
27747
+ * Which amount of a multi-amount model this entry is; null when the item has exactly one amount.
27748
+ */
27749
+ variant: {
27750
+ /**
27751
+ * This entry is one tier of a tiered price, chosen by the meter's tier selector.
27752
+ */
27753
+ kind: 'tier';
27754
+ /**
27755
+ * The tier's upper bound of the selector; the last tier is null (no upper bound).
27756
+ */
27757
+ up_to: string;
27758
+ } | {
27759
+ /**
27760
+ * This entry is one cell of a matrix price, priced for the dimension values in when.
27761
+ */
27762
+ kind: 'cell';
27763
+ /**
27764
+ * The dimension values this cell prices, for example resolution 1080p.
27765
+ */
27766
+ when: {
27767
+ [key: string]: string;
27768
+ };
27769
+ } | {
27770
+ /**
27771
+ * This entry is the matrix's default amount, used when no cell matches.
27772
+ */
27773
+ kind: 'default';
27774
+ };
27775
+ /**
27776
+ * The stored USD amount in major units as a decimal string, or null when the item does not price USD; never 0 as a stand-in.
27777
+ */
27778
+ usd: string;
27779
+ /**
27780
+ * The stored CNY amount in major units as a decimal string, or null when the item does not price CNY; it is what a CNY account is charged, never 0 as a stand-in.
27781
+ */
27782
+ cny: string;
27783
+ };
27031
27784
  /**
27032
27785
  * File expiration policy
27033
27786
  *
@@ -31766,6 +32519,206 @@ export type OrganizationMetric = {
31766
32519
  */
31767
32520
  unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
31768
32521
  };
32522
+ /**
32523
+ * The subject a spec belongs to and the revision it is at; read from the system, a writer sends back revision, labels, annotations and change_note.
32524
+ */
32525
+ export type OrganizationSpecMetadata = {
32526
+ /**
32527
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
32528
+ */
32529
+ id: string;
32530
+ /**
32531
+ * The subject's own name (the organization's, department's, job's, level's or position's title); null for an assignment or when it cannot be read.
32532
+ */
32533
+ name: string | null;
32534
+ /**
32535
+ * Revision, 0 until the first write and raised by one on every revise; send it as metadata.revision.
32536
+ */
32537
+ revision: number;
32538
+ /**
32539
+ * Short tags for grouping, at most 20 keys; a key is lowercase letters, digits, dot, underscore, slash or hyphen up to 63 characters and a value is a string up to 63 characters. Returned verbatim.
32540
+ */
32541
+ labels: {
32542
+ [key: string]: string;
32543
+ };
32544
+ /**
32545
+ * Free notes for people and tools, at most 20 keys with string values up to 1000 characters. Returned verbatim.
32546
+ */
32547
+ annotations: {
32548
+ [key: string]: string;
32549
+ };
32550
+ /**
32551
+ * Why this revision was written, up to 500 characters; each revision has its own, null when none was given.
32552
+ */
32553
+ change_note: string | null;
32554
+ /**
32555
+ * UTC instant (RFC 3339) this revision was written; null when the subject never had a spec written.
32556
+ */
32557
+ update_time: string | null;
32558
+ /**
32559
+ * Actor address that wrote this revision (human:usr_... or agent:agent_...); null until the first write.
32560
+ */
32561
+ updated_by: string | null;
32562
+ };
32563
+ /**
32564
+ * What a unit says. Only document and provision are accepted; everything else is refused with its path.
32565
+ */
32566
+ export type OrganizationSpecBody = {
32567
+ /**
32568
+ * Markdown text of this unit, injected into each holder's memory as its own entry and never merged with other layers.
32569
+ */
32570
+ document?: string;
32571
+ /**
32572
+ * What the unit provisions its holders with: a map from block name to block value, merged along the chain of a seat and sent through verbatim. Registered blocks are agent, computer, phone, roles, grants, repositories, schedules and browser, plus remove to take inherited collection items away; GET /organization/v1/spec_schema describes each one.
32573
+ */
32574
+ provision?: {
32575
+ [key: string]: unknown;
32576
+ };
32577
+ };
32578
+ /**
32579
+ * How the holders whose last reconcile ran on this spec are doing.
32580
+ */
32581
+ export type OrganizationSpecStatusSummary = {
32582
+ /**
32583
+ * Holders whose last reconcile had this spec in one of their seats' chains.
32584
+ */
32585
+ holders: number;
32586
+ /**
32587
+ * Of those, holders with no failed block.
32588
+ */
32589
+ ready: number;
32590
+ /**
32591
+ * Of those, holders with at least one failed block.
32592
+ */
32593
+ failing: number;
32594
+ };
32595
+ /**
32596
+ * One difference between two revisions of a spec.
32597
+ */
32598
+ export type OrganizationSpecChange = {
32599
+ /**
32600
+ * Full path of the changed value inside the envelope, such as spec.document, spec.provision.agent.model or spec.provision.repositories[github:org/repo].
32601
+ */
32602
+ path: string;
32603
+ /**
32604
+ * What happened at this path between the two revisions.
32605
+ */
32606
+ op: 'added' | 'removed' | 'changed';
32607
+ /**
32608
+ * The value at this path in the earlier revision, verbatim; absent when the value was added.
32609
+ */
32610
+ before?: unknown;
32611
+ /**
32612
+ * The value at this path in the later revision, verbatim; absent when the value was removed.
32613
+ */
32614
+ after?: unknown;
32615
+ };
32616
+ /**
32617
+ * One stored revision of a subject's spec, kept for history; metadata.update_time and updated_by are when and by whom this revision was written.
32618
+ */
32619
+ export type OrganizationSpecRevision = {
32620
+ /**
32621
+ * The language of this envelope, always organization/v1.
32622
+ */
32623
+ api_version: 'organization/v1';
32624
+ kind: OrganizationSpecKind;
32625
+ metadata: OrganizationSpecMetadata;
32626
+ spec: OrganizationSpecBody;
32627
+ };
32628
+ /**
32629
+ * One layer the effective spec was merged from, least specific first.
32630
+ */
32631
+ export type OrganizationSpecLayerRef = {
32632
+ kind: OrganizationSpecKind;
32633
+ /**
32634
+ * The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
32635
+ */
32636
+ id: string;
32637
+ /**
32638
+ * Revision of that layer's spec at the time it was merged.
32639
+ */
32640
+ revision: number;
32641
+ };
32642
+ /**
32643
+ * One document block collected from a layer of the effective spec, kept whole and never merged.
32644
+ */
32645
+ export type OrganizationSpecDocument = {
32646
+ /**
32647
+ * The layer the document came from, as kind:id such as job:jpr_123.
32648
+ */
32649
+ from: string;
32650
+ /**
32651
+ * Revision of that layer's spec the document was read at.
32652
+ */
32653
+ revision: number;
32654
+ /**
32655
+ * The document text itself, inferred from memory rather than merged into the capability blocks.
32656
+ */
32657
+ text: string;
32658
+ };
32659
+ /**
32660
+ * One action the reconciler would take for a block in a dry run.
32661
+ */
32662
+ export type OrganizationReconcileAction = {
32663
+ /**
32664
+ * Name of the block this action is about, such as agent.
32665
+ */
32666
+ block: string;
32667
+ /**
32668
+ * What the reconciler would do with this block.
32669
+ */
32670
+ action: 'hold' | 'update' | 'none' | 'pending' | 'blocked';
32671
+ /**
32672
+ * The value the action would write, or the reason it is blocked, verbatim.
32673
+ */
32674
+ detail: unknown;
32675
+ };
32676
+ /**
32677
+ * One capability block and the state the reconciler last left it in.
32678
+ */
32679
+ export type OrganizationReconcileItem = {
32680
+ /**
32681
+ * Name of the capability block this row is about, such as agent or computer.
32682
+ */
32683
+ block: string;
32684
+ /**
32685
+ * What the reconciler last did with this block.
32686
+ */
32687
+ state: 'ready' | 'pending' | 'failed' | 'waiting_human' | 'paused';
32688
+ /**
32689
+ * The resource the block was applied to, such as agent:agent_... ; null before it is bound.
32690
+ */
32691
+ binding: string | null;
32692
+ /**
32693
+ * Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
32694
+ */
32695
+ message: string | null;
32696
+ };
32697
+ /**
32698
+ * One value where what is applied differs from what the specs want.
32699
+ */
32700
+ export type OrganizationReconcileDrift = {
32701
+ /**
32702
+ * Name of the block the drifted value belongs to, such as agent.
32703
+ */
32704
+ block: string;
32705
+ /**
32706
+ * Path of the value inside the block, such as model.
32707
+ */
32708
+ field: string;
32709
+ /**
32710
+ * The value currently applied, verbatim; null when nothing is applied there yet.
32711
+ */
32712
+ found: unknown;
32713
+ /**
32714
+ * The value the specs resolved to, verbatim.
32715
+ */
32716
+ want: unknown;
32717
+ /**
32718
+ * UTC instant (RFC 3339) from which the drift has been observed.
32719
+ */
32720
+ since: string;
32721
+ };
31769
32722
  /**
31770
32723
  * Your own string key/value pairs stored with the sandbox; usable as a filter in listSandboxes.
31771
32724
  */
@@ -32798,7 +33751,7 @@ export type ApplicationModule = {
32798
33751
  content_base64: string;
32799
33752
  };
32800
33753
  /**
32801
- * One binding. Supported types: d1, kv_namespace, r2_bucket (omit the resource id to create a component owned by this Worker), secret_text (text is write-only), plain_text, json, praxis_token (name PRAXIS_API_TOKEN enables platform API access as the owner organization without injecting a token), and assets (at most one per version; requires assets on the version). praxis_vault_ref is not available. Any other Cloudflare binding type (service, queue, durable_object_namespace, ai, …) is refused with UNSUPPORTED.
33754
+ * One binding. Supported types: d1, kv_namespace, r2_bucket (omit the resource id to create a component owned by this Worker), secret_text (text is write-only), plain_text, json, praxis_token (name PRAXIS_API_TOKEN enables platform API calls, reaching what the Worker's grants name, without injecting a token), and assets (at most one per version; requires assets on the version). praxis_vault_ref is not available. Any other Cloudflare binding type (service, queue, durable_object_namespace, ai, …) is refused with UNSUPPORTED.
32802
33755
  */
32803
33756
  export type ApplicationBinding = {
32804
33757
  /**
@@ -35221,22 +36174,92 @@ export type DevopsTestPlanPackage = {
35221
36174
  */
35222
36175
  inputHash: string;
35223
36176
  /**
35224
- * What evidence exists for this (package, input hash): passed when the newest recorded run covered every case of the package at the gate's sizes and they passed, failed when the newest row failed, and missing when there is no row for the pair at all.
36177
+ * What evidence exists for this (package, input hash): passed when the newest recorded run covered every case of the package at the gate's sizes and they passed, failed when the newest row failed, missing when there is no row for the pair at all, and not_applicable when the package has no test cases, because the merge gate asks evidence for cases and so asks nothing of it.
35225
36178
  */
35226
- evidence: 'passed' | 'failed' | 'missing';
36179
+ evidence: 'passed' | 'failed' | 'missing' | 'not_applicable';
36180
+ /**
36181
+ * Present only when evidence is not_applicable: why it does not apply.
36182
+ */
36183
+ reason?: string;
35227
36184
  /**
35228
36185
  * The run the answering evidence row came from, for looking up what ran and how; absent when evidence is missing, because then no row answered.
35229
36186
  */
35230
36187
  run?: string;
35231
36188
  };
36189
+ /**
36190
+ * 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.
36191
+ */
36192
+ export type DevopsTestPlanCase = {
36193
+ /**
36194
+ * The case id as the catalog holds it; the unit evidence is filed under.
36195
+ */
36196
+ case: string;
36197
+ /**
36198
+ * Repository-relative directory of the package the scenario lives in.
36199
+ */
36200
+ package: string;
36201
+ /**
36202
+ * The scenario title, to name a failed or missing case to a person.
36203
+ */
36204
+ title: string;
36205
+ /**
36206
+ * Whether this diff requires evidence for the case. Only required cases can hold a merge.
36207
+ */
36208
+ required: boolean;
36209
+ /**
36210
+ * 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.
36211
+ */
36212
+ reason: 'no-impact' | 'deps-changed' | 'always-affected' | 'unaffected';
36213
+ /**
36214
+ * 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.
36215
+ */
36216
+ depsHash: string;
36217
+ /**
36218
+ * What the newest recorded result says at this deps hash: passed, failed, or missing when no run has recorded the case there.
36219
+ */
36220
+ evidence: 'passed' | 'failed' | 'missing';
36221
+ /**
36222
+ * The run the answering result came from; absent when evidence is missing.
36223
+ */
36224
+ run?: string;
36225
+ };
36226
+ /**
36227
+ * The case counts of one package in the summary view of a test plan.
36228
+ */
36229
+ export type DevopsTestPlanCaseCounts = {
36230
+ /**
36231
+ * The package directory these counts are for.
36232
+ */
36233
+ package: string;
36234
+ /**
36235
+ * Cases this diff requires evidence for; the merge asks for nothing else.
36236
+ */
36237
+ required: number;
36238
+ /**
36239
+ * Cases this diff cannot affect, which need no evidence.
36240
+ */
36241
+ unaffected: number;
36242
+ /**
36243
+ * Required cases that already have a passing row at their deps hash.
36244
+ */
36245
+ evidenced: number;
36246
+ /**
36247
+ * Required cases with no evidence row at their deps hash.
36248
+ */
36249
+ missing: number;
36250
+ /**
36251
+ * Required cases whose newest evidence at their deps hash failed.
36252
+ */
36253
+ failed: number;
36254
+ };
35232
36255
  /**
35233
36256
  * The git repository a project is bound to, and how far the service's mirror of it has been read.
35234
36257
  */
35235
36258
  export type DevopsRepositoryRef = {
35236
36259
  /**
35237
- * The git host serving this repository; only github is bound today, and the value decides how fullName is read.
36260
+ * The git host serving this repository; the value decides how fullName is read.
35238
36261
  */
35239
- provider: 'github';
36262
+ provider: 'github' | 'platform';
35240
36263
  /**
35241
36264
  * Owner and repository name as the git host spells them, which is what a person sees in a clone URL.
35242
36265
  */
@@ -35246,7 +36269,7 @@ export type DevopsRepositoryRef = {
35246
36269
  */
35247
36270
  defaultBranch: string;
35248
36271
  /**
35249
- * The git host connection that authorizes reads of this repository; the connection itself is outside this domain's operations.
36272
+ * The git host connection that authorizes reads of this repository; null for a repository on our own Git, which needs none. The connection itself is outside this domain's operations.
35250
36273
  */
35251
36274
  connection: string;
35252
36275
  /**
@@ -35264,7 +36287,7 @@ export type DevopsProjectSettings = {
35264
36287
  */
35265
36288
  releaseSchedule: null | DevopsReleaseSchedule;
35266
36289
  /**
35267
- * How many minutes a production promotion stays in observing before it may be concluded, counted from the moment the deploy finished.
36290
+ * Not read, kept for old records: the observation window is the observeMinutes of the environment a promotion deploys into, which wins over this value. Read and set environments observeMinutes.
35268
36291
  */
35269
36292
  observationWindowMinutes: number;
35270
36293
  /**
@@ -35279,6 +36302,9 @@ export type DevopsProjectSettings = {
35279
36302
  * 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.
35280
36303
  */
35281
36304
  requireGate: boolean;
36305
+ gate?: DevopsGatePolicy;
36306
+ retention?: DevopsProjectRetention;
36307
+ deploy?: DevopsProjectDeploySettings;
35282
36308
  };
35283
36309
  /**
35284
36310
  * When the project cuts releases by itself, in a five-field cron and the zone it is read in.
@@ -35293,6 +36319,42 @@ export type DevopsReleaseSchedule = {
35293
36319
  */
35294
36320
  timeZone: string;
35295
36321
  };
36322
+ /**
36323
+ * 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.
36324
+ */
36325
+ export type DevopsGatePolicy = {
36326
+ /**
36327
+ * 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.
36328
+ */
36329
+ tests?: 'evidence' | 'off';
36330
+ /**
36331
+ * One rule per gate check: its mode (enforce counts it, evaluate shows it without counting, off hides it) and whether an unavailable check blocks.
36332
+ */
36333
+ rules?: Array<{
36334
+ /**
36335
+ * The gate check this rule governs.
36336
+ */
36337
+ check: string;
36338
+ /**
36339
+ * enforce counts the check toward the gate, evaluate records it without counting, off drops it.
36340
+ */
36341
+ mode: 'enforce' | 'evaluate' | 'off';
36342
+ /**
36343
+ * What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
36344
+ */
36345
+ whenUnavailable: 'fail-closed' | 'fail-open';
36346
+ /**
36347
+ * The check's own parameters; passed through unread.
36348
+ */
36349
+ params?: {
36350
+ [key: string]: unknown;
36351
+ };
36352
+ }>;
36353
+ /**
36354
+ * Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
36355
+ */
36356
+ bypass?: Array<string>;
36357
+ };
35296
36358
  /**
35297
36359
  * One commit inside a release, so a reader can see what is about to ship without leaving this answer.
35298
36360
  */
@@ -35666,7 +36728,7 @@ export type DevopsEnvironmentQueue = {
35666
36728
  */
35667
36729
  active?: string;
35668
36730
  /**
35669
- * How many promotions are queued behind the active one; they run in the order they were created.
36731
+ * How many promotions of the environment's own queue are in state queued; they run in the order they were created. Async-lane promotions hold a per-target lock instead and are not counted.
35670
36732
  */
35671
36733
  waiting: number;
35672
36734
  };
@@ -36032,9 +37094,9 @@ export type DevopsChangePullRequestRef = {
36032
37094
  */
36033
37095
  export type DevopsChangeStageDetail = {
36034
37096
  /**
36035
- * The change's position; with several pull requests it is the slice furthest behind.
37097
+ * The change's position; with several pull requests it is the slice furthest behind. The path is development, integration, release: integrating and integrated are the integration stage.
36036
37098
  */
36037
- stage: 'developing' | 'reviewing' | 'merged' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
37099
+ stage: 'developing' | 'reviewing' | 'integrating' | 'integrated' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
36038
37100
  /**
36039
37101
  * The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one.
36040
37102
  */
@@ -36141,6 +37203,32 @@ export type DevopsMergeGate = {
36141
37203
  */
36142
37204
  decideTime?: string;
36143
37205
  };
37206
+ /**
37207
+ * A reviewer's verdict on a pull request, recorded after the merge gate decided; present once someone recorded one. It is a record, never a gate input: a failed verdict on a merged pull request is a finding for follow-up and the merge stands.
37208
+ */
37209
+ export type DevopsReviewVerdict = {
37210
+ /**
37211
+ * passed when the reviewer found nothing wrong, failed when they found something to fix or roll back.
37212
+ */
37213
+ result: 'passed' | 'failed';
37214
+ /**
37215
+ * What the reviewer found, in a sentence a reader can act on.
37216
+ */
37217
+ reason: string;
37218
+ by: DevopsActor;
37219
+ /**
37220
+ * The commit the review is about.
37221
+ */
37222
+ headSha: string;
37223
+ /**
37224
+ * RFC 3339 UTC time the verdict was recorded.
37225
+ */
37226
+ time: string;
37227
+ /**
37228
+ * True when the pull request had already merged when the verdict was recorded; a failed verdict with merged true is a finding.
37229
+ */
37230
+ merged: boolean;
37231
+ };
36144
37232
  /**
36145
37233
  * The GitHub account an installation belongs to.
36146
37234
  */
@@ -36257,7 +37345,7 @@ export type DevopsWorkspaceUpdateFields = {
36257
37345
  enabled?: boolean;
36258
37346
  };
36259
37347
  /**
36260
- * The vaults (by vault id, at most 10) this stage's units take their runtime environment from. Only the development workspace accepts it: a value here for integration or runtime is refused with INVALID_ARGUMENT. Each id must exist in this organization; the values are never read back through this API.
37348
+ * The vaults (by vault id, at most 10) this stage's units take their runtime environment from. Only the development workspace accepts it: a value here for integration or release is refused with INVALID_ARGUMENT. Each id must exist in this organization; the values are never read back through this API.
36261
37349
  */
36262
37350
  vaults?: Array<string>;
36263
37351
  };
@@ -36409,6 +37497,63 @@ export type DevopsUnitTransition = {
36409
37497
  */
36410
37498
  error: null | DevopsUnitTransitionError;
36411
37499
  };
37500
+ /**
37501
+ * One cleanup action the job decided and carried out (or tried to).
37502
+ */
37503
+ export type DevopsCleanupEntry = {
37504
+ /**
37505
+ * The ledger row's id.
37506
+ */
37507
+ id: string;
37508
+ /**
37509
+ * Always cleanup.
37510
+ */
37511
+ object: string;
37512
+ /**
37513
+ * When the action was decided (RFC 3339).
37514
+ */
37515
+ createTime: string;
37516
+ /**
37517
+ * When the action was last touched: done, or decided when it is not done yet.
37518
+ */
37519
+ updateTime: string;
37520
+ /**
37521
+ * The Console page of the project the action belongs to.
37522
+ */
37523
+ viewerUrl: string;
37524
+ /**
37525
+ * The project the action belongs to.
37526
+ */
37527
+ project: string;
37528
+ /**
37529
+ * What was cleaned.
37530
+ */
37531
+ kind: 'branch' | 'unit' | 'evidence' | 'prebuild';
37532
+ /**
37533
+ * Which one: branch name and pull request number, unit id, evidence table and cutoff day, or prebuild id.
37534
+ */
37535
+ subject: string;
37536
+ /**
37537
+ * archive keeps the record and drops the heavy content; delete removes it.
37538
+ */
37539
+ action: 'archive' | 'delete';
37540
+ /**
37541
+ * Why, as a stable code with its numbers, for example branch-merged, unit-stopped-30d, evidence-older-than-90d (37 rows) or prebuild-beyond-2.
37542
+ */
37543
+ reason: string;
37544
+ /**
37545
+ * When the job decided the action (RFC 3339).
37546
+ */
37547
+ decidedAt: string;
37548
+ /**
37549
+ * When the action was carried out; null while it is not done.
37550
+ */
37551
+ doneAt: string | null;
37552
+ /**
37553
+ * Why the last attempt failed; null once it is done. A failed action stays open and is tried again by the next run.
37554
+ */
37555
+ error: string | null;
37556
+ };
36412
37557
  /**
36413
37558
  * Counts of files still attached to the store or batch, grouped by ingestion status.
36414
37559
  */
@@ -37324,6 +38469,10 @@ export type MediaSearchAsset = {
37324
38469
  * Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
37325
38470
  */
37326
38471
  segments?: number;
38472
+ /**
38473
+ * Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
38474
+ */
38475
+ duration?: number;
37327
38476
  };
37328
38477
  };
37329
38478
  };
@@ -37973,6 +39122,56 @@ export type RegistryRegistryError = {
37973
39122
  };
37974
39123
  };
37975
39124
  };
39125
+ /**
39126
+ * 一个 git 提交。
39127
+ */
39128
+ export type RegistryGitCommit = {
39129
+ /**
39130
+ * 对象类型标记,固定为 registry.git.commit。
39131
+ */
39132
+ object: string;
39133
+ /**
39134
+ * 提交的对象 id。
39135
+ */
39136
+ sha: string;
39137
+ /**
39138
+ * 提交信息原文,含换行。
39139
+ */
39140
+ message: string;
39141
+ /**
39142
+ * 作者名;仓库没有给出名字时是空串。
39143
+ */
39144
+ author: string;
39145
+ /**
39146
+ * 作者邮箱;仓库给了才有。
39147
+ */
39148
+ author_email?: string;
39149
+ /**
39150
+ * 提交时间的 RFC 3339 时间戳;后端没给时是空串。
39151
+ */
39152
+ committed_at: string;
39153
+ /**
39154
+ * 父提交的对象 id,按顺序。
39155
+ */
39156
+ parents: Array<string>;
39157
+ };
39158
+ /**
39159
+ * 一次提交或比较改动的一个文件。
39160
+ */
39161
+ export type RegistryGitChangedFile = {
39162
+ /**
39163
+ * 文件路径,相对仓库根;改名时是新路径。
39164
+ */
39165
+ path: string;
39166
+ /**
39167
+ * 这个文件怎么变的。
39168
+ */
39169
+ status: 'added' | 'modified' | 'removed' | 'renamed';
39170
+ /**
39171
+ * 改名前的路径;只有 status 为 renamed 时才有。
39172
+ */
39173
+ previous_path?: string;
39174
+ };
37976
39175
  /**
37977
39176
  * 树里的一个条目。
37978
39177
  */
@@ -37998,6 +39197,65 @@ export type RegistryGitTreeEntry = {
37998
39197
  */
37999
39198
  size?: number;
38000
39199
  };
39200
+ /**
39201
+ * 一个分支或标签。
39202
+ */
39203
+ export type RegistryGitRefItem = {
39204
+ /**
39205
+ * 引用的全名,分支以 refs/heads/ 开头,标签以 refs/tags/ 开头。
39206
+ */
39207
+ ref: string;
39208
+ /**
39209
+ * 它指向的提交 id;带注解的标签给的是标签下面的提交。
39210
+ */
39211
+ sha: string;
39212
+ /**
39213
+ * 引用的种类,分支或标签,由全名的前缀决定。
39214
+ */
39215
+ type: 'branch' | 'tag';
39216
+ };
39217
+ /**
39218
+ * 比较结果里的一个提交。
39219
+ */
39220
+ export type RegistryGitComparedCommit = {
39221
+ /**
39222
+ * 提交的对象 id。
39223
+ */
39224
+ sha: string;
39225
+ /**
39226
+ * 提交信息的第一行。
39227
+ */
39228
+ subject: string;
39229
+ /**
39230
+ * 这个提交的作者名;仓库没有给出名字时是空串。
39231
+ */
39232
+ author: string;
39233
+ };
39234
+ /**
39235
+ * 递归树里的一个条目。
39236
+ */
39237
+ export type RegistryGitTreeNode = {
39238
+ /**
39239
+ * 相对根的完整路径,用斜杠分隔。
39240
+ */
39241
+ path: string;
39242
+ /**
39243
+ * 条目指向的对象类型;commit 是子模块,不展开。
39244
+ */
39245
+ type: 'blob' | 'tree' | 'commit';
39246
+ /**
39247
+ * git 的模式位,例如 100644、100755、120000 或 040000。
39248
+ */
39249
+ mode: string;
39250
+ /**
39251
+ * 条目指向的对象 id。
39252
+ */
39253
+ sha: string;
39254
+ /**
39255
+ * 对象大小(字节),后端给出时才有。
39256
+ */
39257
+ size?: number;
39258
+ };
38001
39259
  /**
38002
39260
  * 一个版本解压后的一个文件条目。
38003
39261
  */
@@ -43935,6 +45193,40 @@ export type DevopsMirrorState = {
43935
45193
  */
43936
45194
  error?: string;
43937
45195
  };
45196
+ /**
45197
+ * What the project keeps and for how long. Every item has an industry default and may be left out; an update naming one item keeps the others as they were. The daily cleanup job reads these and records what it removed in the cleanup ledger. How long a running machine may sit idle before it pauses (30 minutes by default) is the development workspace's own idleTimeoutMinutes, not an item here.
45198
+ */
45199
+ export type DevopsProjectRetention = {
45200
+ /**
45201
+ * Delete a pull request's branch as soon as it merges, as GitHub's automatic head-branch deletion does. The default branch and any branch another open pull request still uses are never deleted. Default true.
45202
+ */
45203
+ deleteMergedBranch?: boolean;
45204
+ /**
45205
+ * Days a stopped unit whose change is still open is kept before it is deleted (the unit pushes its work to a WIP ref first and is kept when it cannot). A unit whose change has merged or been abandoned follows the workspace's own retentionDays instead. Default 30.
45206
+ */
45207
+ stoppedUnitDays?: number;
45208
+ /**
45209
+ * Days test evidence rows are kept. The evidence for the current deps hash of a package or case on the default branch is kept whatever its age, because test selection reads it. Default 90.
45210
+ */
45211
+ evidenceDays?: number;
45212
+ /**
45213
+ * How many ready prebuilds each workspace keeps, newest first; older ones are archived and their snapshots deleted. Default 2.
45214
+ */
45215
+ prebuildVersions?: number;
45216
+ };
45217
+ /**
45218
+ * How the project deploys. Every item may be left out; an update naming one item replaces the whole deploy object.
45219
+ */
45220
+ export type DevopsProjectDeploySettings = {
45221
+ /**
45222
+ * Which version of the deploy engine (the published @deepraxis/cli, which carries praxis devops deploy, the OpenTofu orchestration and the built-in cloudflare and npm adapters) runs this project's promotions. latest, the default, is the newest version on npm's latest tag; dev is the newest on the dev tag, meant for develop; anything else must be an exact version such as 0.6.0 that is published on npm. The setting is resolved to an exact version when a promotion is created and recorded on it as engineVersion. A request the resolved version cannot serve is refused at create with ENGINE_TOO_OLD, naming the option and the first version that has it (for example dependencies skip needs 0.6.0); a registry that cannot be read, or a pin that is not published, is refused with ENGINE_UNAVAILABLE.
45223
+ */
45224
+ engine?: string;
45225
+ /**
45226
+ * Which machine a promotion is built on. slim, the default, is the 4 vCPU / 8 GB builder the pipeline has always used; spot is a 16 vCPU / 32 GB Alibaba Cloud ECI spot machine, created ephemeral and interruptible, on which the CLI overlaps sixteen deploy targets instead of four. A spot machine can be reclaimed by the vendor mid-run; when that happens the run is started once more on a fresh machine, and a second loss fails the promotion. Leave it out and the project keeps using slim.
45227
+ */
45228
+ builder?: 'slim' | 'spot';
45229
+ };
43938
45230
  /**
43939
45231
  * One target's render result inside a release.
43940
45232
  */
@@ -44006,7 +45298,7 @@ export type DevopsPlanRefusal = {
44006
45298
  /**
44007
45299
  * Which rule refused, which is the value a caller branches on; the remaining fields carry that rule's own evidence.
44008
45300
  */
44009
- code: 'PICK_NOT_ON_MAIN' | 'PICK_NOT_ON_DEVELOP' | 'PICK_ALREADY_IN_PRODUCTION' | 'PICK_CONFLICT' | 'PATCH_HAS_MIGRATION' | 'PATCH_CHANGES_BINDING' | 'PATCH_CHANGES_CONTRACT' | 'BASE_NOT_UNIFORM' | 'NOT_VERIFIED_UPSTREAM' | 'CONFIG_MISSING' | 'MISSING_PATCH_PICKS' | 'RELEASE_NOT_READY' | 'RELEASE_ABANDONED' | 'DEADLINE_EXCEEDED' | 'EXECUTOR_UNAVAILABLE' | 'FEATURE_NOT_SUPPORTED';
45301
+ code: 'PICK_NOT_ON_MAIN' | 'PICK_NOT_ON_DEVELOP' | 'PICK_ALREADY_IN_PRODUCTION' | 'PICK_CONFLICT' | 'PATCH_HAS_MIGRATION' | 'PATCH_CHANGES_BINDING' | 'PATCH_CHANGES_CONTRACT' | 'BASE_NOT_UNIFORM' | 'NOT_DEPLOYED_UPSTREAM' | 'CONFIG_MISSING' | 'MISSING_PATCH_PICKS' | 'RELEASE_NOT_READY' | 'RELEASE_ABANDONED' | 'DEADLINE_EXCEEDED' | 'EXECUTOR_UNAVAILABLE' | 'FEATURE_NOT_SUPPORTED';
44010
45302
  /**
44011
45303
  * The commit this refusal is about, present for the pick rules; it is the pick the request carried.
44012
45304
  */
@@ -47117,6 +48409,10 @@ export type MediaAssetWritable = {
47117
48409
  * Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
47118
48410
  */
47119
48411
  segments?: number;
48412
+ /**
48413
+ * Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
48414
+ */
48415
+ duration?: number;
47120
48416
  };
47121
48417
  };
47122
48418
  };
@@ -47670,6 +48966,10 @@ export type MediaSearchAssetWritable = {
47670
48966
  * Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
47671
48967
  */
47672
48968
  segments?: number;
48969
+ /**
48970
+ * Length of the proxy video in seconds. Shorter than the asset duration when the source picture ends before its sound; frames past it show the last frame. Absent on proxies made before this was recorded.
48971
+ */
48972
+ duration?: number;
47673
48973
  };
47674
48974
  };
47675
48975
  };
@@ -47950,7 +49250,7 @@ export type DevopsEnvironmentQuery = string;
47950
49250
  */
47951
49251
  export type DevopsSegmentIdPath = string;
47952
49252
  /**
47953
- * The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units.
49253
+ * The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units.
47954
49254
  */
47955
49255
  export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
47956
49256
  /**
@@ -48021,6 +49321,34 @@ export type RegistryGitLogOffset = number;
48021
49321
  * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
48022
49322
  */
48023
49323
  export type RegistryGitObjectId = string;
49324
+ /**
49325
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
49326
+ */
49327
+ export type RegistryGitChangedFiles = boolean;
49328
+ /**
49329
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
49330
+ */
49331
+ export type RegistryGitRefPrefix = 'refs/heads/' | 'refs/tags/';
49332
+ /**
49333
+ * 页码,从 1 起,默认 1。
49334
+ */
49335
+ export type RegistryGitRefsPage = number;
49336
+ /**
49337
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
49338
+ */
49339
+ export type RegistryGitRefsSize = number;
49340
+ /**
49341
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
49342
+ */
49343
+ export type RegistryGitResolveRef = string;
49344
+ /**
49345
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
49346
+ */
49347
+ export type RegistryGitCompareBase = string;
49348
+ /**
49349
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
49350
+ */
49351
+ export type RegistryGitCompareHead = string;
48024
49352
  /**
48025
49353
  * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
48026
49354
  */
@@ -48929,48 +50257,6 @@ export type ListAgentEventsResponses = {
48929
50257
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
48930
50258
  */
48931
50259
  processed_at: string;
48932
- } | {
48933
- /**
48934
- * Event id, unique within the session.
48935
- */
48936
- id: string;
48937
- /**
48938
- * Always `user.tool_confirmation`.
48939
- */
48940
- type: 'user.tool_confirmation';
48941
- /**
48942
- * When the event was recorded, RFC 3339.
48943
- */
48944
- processed_at: string;
48945
- /**
48946
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
48947
- */
48948
- tool_use_id: string;
48949
- /**
48950
- * Always `allow`.
48951
- */
48952
- result: 'allow';
48953
- /**
48954
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
48955
- */
48956
- answers: {
48957
- [key: string]: string;
48958
- };
48959
- /**
48960
- * Per-question notes, keyed by the question text.
48961
- */
48962
- annotations?: {
48963
- [key: string]: {
48964
- /**
48965
- * The preview of the option the user chose.
48966
- */
48967
- preview?: string;
48968
- /**
48969
- * Free text the user added to their choice.
48970
- */
48971
- notes?: string;
48972
- };
48973
- };
48974
50260
  }>;
48975
50261
  /**
48976
50262
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -49020,40 +50306,6 @@ export type SendAgentEventsData = {
49020
50306
  * Id of the event this event refers to.
49021
50307
  */
49022
50308
  event_id: string;
49023
- } | {
49024
- /**
49025
- * Always `user.tool_confirmation`.
49026
- */
49027
- type: 'user.tool_confirmation';
49028
- /**
49029
- * The id of the pending `agent.tool_use` event of the AskUserQuestion call.
49030
- */
49031
- tool_use_id: string;
49032
- /**
49033
- * Always `allow`; the questions are answered, or dismissed with an empty `answers`.
49034
- */
49035
- result: 'allow';
49036
- /**
49037
- * 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.
49038
- */
49039
- answers: {
49040
- [key: string]: string;
49041
- };
49042
- /**
49043
- * Optional per-question notes, keyed by the question text.
49044
- */
49045
- annotations?: {
49046
- [key: string]: {
49047
- /**
49048
- * The preview of the option the user chose.
49049
- */
49050
- preview?: string;
49051
- /**
49052
- * Free text the user added to their choice.
49053
- */
49054
- notes?: string;
49055
- };
49056
- };
49057
50309
  }>;
49058
50310
  };
49059
50311
  path: {
@@ -49136,48 +50388,6 @@ export type SendAgentEventsResponses = {
49136
50388
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
49137
50389
  */
49138
50390
  processed_at: string;
49139
- } | {
49140
- /**
49141
- * Event id, unique within the session.
49142
- */
49143
- id: string;
49144
- /**
49145
- * Always `user.tool_confirmation`.
49146
- */
49147
- type: 'user.tool_confirmation';
49148
- /**
49149
- * When the event was recorded, RFC 3339.
49150
- */
49151
- processed_at: string;
49152
- /**
49153
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
49154
- */
49155
- tool_use_id: string;
49156
- /**
49157
- * Always `allow`.
49158
- */
49159
- result: 'allow';
49160
- /**
49161
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
49162
- */
49163
- answers: {
49164
- [key: string]: string;
49165
- };
49166
- /**
49167
- * Per-question notes, keyed by the question text.
49168
- */
49169
- annotations?: {
49170
- [key: string]: {
49171
- /**
49172
- * The preview of the option the user chose.
49173
- */
49174
- preview?: string;
49175
- /**
49176
- * Free text the user added to their choice.
49177
- */
49178
- notes?: string;
49179
- };
49180
- };
49181
50391
  }>;
49182
50392
  };
49183
50393
  };
@@ -52953,13 +54163,17 @@ export type AgentsPhoneRetrieveResponses = {
52953
54163
  */
52954
54164
  configured: boolean;
52955
54165
  /**
52956
- * 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.
54166
+ * 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.
52957
54167
  */
52958
- state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
54168
+ state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
52959
54169
  /**
52960
- * 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.
54170
+ * 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.
52961
54171
  */
52962
54172
  sku: string | null;
54173
+ /**
54174
+ * 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.
54175
+ */
54176
+ byod_device: string | null;
52963
54177
  /**
52964
54178
  * What people and the model call this phone, or null when no phone is configured.
52965
54179
  */
@@ -53039,13 +54253,17 @@ export type AgentsPhoneReleaseResponses = {
53039
54253
  */
53040
54254
  configured: boolean;
53041
54255
  /**
53042
- * 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.
54256
+ * 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.
53043
54257
  */
53044
- state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
54258
+ state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
53045
54259
  /**
53046
- * 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.
54260
+ * 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.
53047
54261
  */
53048
54262
  sku: string | null;
54263
+ /**
54264
+ * 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.
54265
+ */
54266
+ byod_device: string | null;
53049
54267
  /**
53050
54268
  * What people and the model call this phone, or null when no phone is configured.
53051
54269
  */
@@ -53154,9 +54372,13 @@ export type GetAgentEmbedPolicyResponses = {
53154
54372
  */
53155
54373
  daily_session_cap: number | null;
53156
54374
  /**
53157
- * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
54375
+ * The most this agent's share links may spend in one UTC day, in millionths of `currency` (whole minor units), or null for no spending cap. The name is historical: the amount is in the account's currency, not always USD. Default 5000000 (5 units).
53158
54376
  */
53159
54377
  daily_spend_cap_micro_usd: number | null;
54378
+ /**
54379
+ * The currency daily_spend_cap_micro_usd is in: the account's settlement currency (CNY for a mainland account, USD for a global one), or null for a policy saved before the currency was recorded, which is read in the account's settlement currency. Read only: it is set with the budgets in the console.
54380
+ */
54381
+ currency?: 'USD' | 'CNY' | null;
53160
54382
  };
53161
54383
  };
53162
54384
  };
@@ -53204,7 +54426,7 @@ export type UpdateAgentEmbedPolicyData = {
53204
54426
  */
53205
54427
  daily_session_cap?: number | null;
53206
54428
  /**
53207
- * The most the agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap.
54429
+ * The most the agent's share links may spend in one UTC day, in millionths of the account's currency (whole minor units; see `currency` on the share_links you read back), or null for no spending cap.
53208
54430
  */
53209
54431
  daily_spend_cap_micro_usd?: number | null;
53210
54432
  };
@@ -53292,9 +54514,13 @@ export type UpdateAgentEmbedPolicyResponses = {
53292
54514
  */
53293
54515
  daily_session_cap: number | null;
53294
54516
  /**
53295
- * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
54517
+ * The most this agent's share links may spend in one UTC day, in millionths of `currency` (whole minor units), or null for no spending cap. The name is historical: the amount is in the account's currency, not always USD. Default 5000000 (5 units).
53296
54518
  */
53297
54519
  daily_spend_cap_micro_usd: number | null;
54520
+ /**
54521
+ * The currency daily_spend_cap_micro_usd is in: the account's settlement currency (CNY for a mainland account, USD for a global one), or null for a policy saved before the currency was recorded, which is read in the account's settlement currency. Read only: it is set with the budgets in the console.
54522
+ */
54523
+ currency?: 'USD' | 'CNY' | null;
53298
54524
  };
53299
54525
  };
53300
54526
  };
@@ -55745,8 +56971,14 @@ export type ComputersFilesContentResponses = {
55745
56971
  206: Blob | File;
55746
56972
  };
55747
56973
  export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
55748
- export type PreviewComputerFileData = {
55749
- body?: never;
56974
+ export type UpdateComputerFileContentData = {
56975
+ body: Blob | File;
56976
+ headers: {
56977
+ /**
56978
+ * The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted.
56979
+ */
56980
+ 'If-Match': string;
56981
+ };
55750
56982
  path: {
55751
56983
  /**
55752
56984
  * Computer id from computer creation or listing; a computer another tenant owns is not found.
@@ -55755,23 +56987,15 @@ export type PreviewComputerFileData = {
55755
56987
  };
55756
56988
  query: {
55757
56989
  /**
55758
- * Absolute path of the file on the computer, or a /workspace/ relative path.
56990
+ * Absolute path of the existing file on the computer, or a /workspace/ relative path.
55759
56991
  */
55760
56992
  path: string;
55761
- /**
55762
- * 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.
55763
- */
55764
- v?: string;
55765
- /**
55766
- * 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.
55767
- */
55768
- variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
55769
56993
  };
55770
- url: '/agent/v1/computers/{computer_id}/files/preview';
56994
+ url: '/agent/v1/computers/{computer_id}/files/content';
55771
56995
  };
55772
- export type PreviewComputerFileErrors = {
56996
+ export type UpdateComputerFileContentErrors = {
55773
56997
  /**
55774
- * INVALID_PARAMS: path is missing, a query parameter is unsupported, the pinned version is malformed, or PREVIEW_VARIANT_UNAVAILABLE: this file has no such variant.
56998
+ * INVALID_PARAMS: path is missing, a query parameter is unsupported, or the path is a directory (IS_DIRECTORY).
55775
56999
  */
55776
57000
  400: {
55777
57001
  type: 'error';
@@ -55817,7 +57041,7 @@ export type PreviewComputerFileErrors = {
55817
57041
  request_id: string;
55818
57042
  };
55819
57043
  /**
55820
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57044
+ * READ_ONLY: the path is under /attachments or /skills.
55821
57045
  */
55822
57046
  403: {
55823
57047
  type: 'error';
@@ -55840,7 +57064,7 @@ export type PreviewComputerFileErrors = {
55840
57064
  request_id: string;
55841
57065
  };
55842
57066
  /**
55843
- * Computer or path not found; foreign computers are indistinguishable from absent computers.
57067
+ * Computer or path not found; foreign computers are indistinguishable from absent computers, and a write never creates a file.
55844
57068
  */
55845
57069
  404: {
55846
57070
  type: 'error';
@@ -55863,9 +57087,9 @@ export type PreviewComputerFileErrors = {
55863
57087
  request_id: string;
55864
57088
  };
55865
57089
  /**
55866
- * STALE_DIGEST: the file changed while its product was read; ask again.
57090
+ * FILE_VERSION_MISMATCH: the file changed since the version in If-Match; error.current_version is its version now. Nothing was written.
55867
57091
  */
55868
- 409: {
57092
+ 412: {
55869
57093
  type: 'error';
55870
57094
  error: {
55871
57095
  /**
@@ -55879,6 +57103,10 @@ export type PreviewComputerFileErrors = {
55879
57103
  * How to recover, for computer failures.
55880
57104
  */
55881
57105
  hint?: string;
57106
+ /**
57107
+ * The file's version now (<size>-<mtimeMs>); read the file again and write with this version.
57108
+ */
57109
+ current_version?: string;
55882
57110
  };
55883
57111
  /**
55884
57112
  * Equals the X-Request-Id response header.
@@ -55886,7 +57114,7 @@ export type PreviewComputerFileErrors = {
55886
57114
  request_id: string;
55887
57115
  };
55888
57116
  /**
55889
- * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
57117
+ * FILE_TOO_LARGE: the body exceeds 16 MiB.
55890
57118
  */
55891
57119
  413: {
55892
57120
  type: 'error';
@@ -55908,6 +57136,29 @@ export type PreviewComputerFileErrors = {
55908
57136
  */
55909
57137
  request_id: string;
55910
57138
  };
57139
+ /**
57140
+ * FILE_VERSION_REQUIRED: If-Match is missing. Nothing was written.
57141
+ */
57142
+ 428: {
57143
+ type: 'error';
57144
+ error: {
57145
+ /**
57146
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57147
+ */
57148
+ type: string;
57149
+ message: string;
57150
+ code: string;
57151
+ retryable: boolean;
57152
+ /**
57153
+ * How to recover, for computer failures.
57154
+ */
57155
+ hint?: string;
57156
+ };
57157
+ /**
57158
+ * Equals the X-Request-Id response header.
57159
+ */
57160
+ request_id: string;
57161
+ };
55911
57162
  /**
55912
57163
  * Platform error in the one /agent/v1 error body; computer failures add error.hint
55913
57164
  */
@@ -55955,7 +57206,7 @@ export type PreviewComputerFileErrors = {
55955
57206
  request_id: string;
55956
57207
  };
55957
57208
  /**
55958
- * PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
57209
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55959
57210
  */
55960
57211
  503: {
55961
57212
  type: 'error';
@@ -55978,74 +57229,332 @@ export type PreviewComputerFileErrors = {
55978
57229
  request_id: string;
55979
57230
  };
55980
57231
  };
55981
- export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
55982
- export type PreviewComputerFileResponses = {
57232
+ export type UpdateComputerFileContentError = UpdateComputerFileContentErrors[keyof UpdateComputerFileContentErrors];
57233
+ export type UpdateComputerFileContentResponses = {
55983
57234
  /**
55984
- * The preview product, or the fallback that sends the caller to the content door.
57235
+ * The file after the write.
55985
57236
  */
55986
57237
  200: {
55987
57238
  /**
55988
- * 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.
55989
- */
55990
- variant: 'image' | 'pdf' | 'text' | 'original';
55991
- /**
55992
- * The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
55993
- */
55994
- version?: string;
55995
- /**
55996
- * Media type of the product, or of the original bytes.
55997
- */
55998
- mime_type?: string;
55999
- /**
56000
- * Size of the product in bytes.
56001
- */
56002
- size?: number;
56003
- /**
56004
- * File id of the stored product in the File service, when the product was stored.
56005
- */
56006
- file_id?: string;
56007
- /**
56008
- * Signed read address of the product; the caller streams it and caches by the version it pinned.
56009
- */
56010
- url?: string;
56011
- /**
56012
- * When the signed read address stops working.
57239
+ * Absolute path of the file that was written.
56013
57240
  */
56014
- expires_at?: string;
57241
+ path: string;
56015
57242
  /**
56016
- * true when an existing product answered without regenerating it.
57243
+ * Size of the file now, in bytes.
56017
57244
  */
56018
- cached: boolean;
57245
+ size: number;
56019
57246
  /**
56020
- * 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.
57247
+ * Modification time of the file now, when the machine reports one.
56021
57248
  */
56022
- fallback?: 'content';
57249
+ mtime: string | null;
56023
57250
  /**
56024
- * true only on a pre-generation request over the kind's threshold, where generation was skipped.
57251
+ * The file's version now (<size>-<mtimeMs>); send it as If-Match on the next write.
56025
57252
  */
56026
- skipped?: boolean;
57253
+ version: string;
56027
57254
  };
56028
57255
  };
56029
- export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
56030
- export type ComputersFilesConvertData = {
57256
+ export type UpdateComputerFileContentResponse = UpdateComputerFileContentResponses[keyof UpdateComputerFileContentResponses];
57257
+ export type PreviewComputerFileData = {
56031
57258
  body?: never;
56032
57259
  path: {
56033
57260
  /**
56034
- * Computer id (cmp_...), as returned by computers.create or computers.list.
57261
+ * Computer id from computer creation or listing; a computer another tenant owns is not found.
56035
57262
  */
56036
57263
  computer_id: string;
56037
57264
  };
56038
57265
  query: {
56039
57266
  /**
56040
- * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
57267
+ * Absolute path of the file on the computer, or a /workspace/ relative path.
56041
57268
  */
56042
57269
  path: string;
57270
+ /**
57271
+ * The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake.
57272
+ */
57273
+ v?: string;
57274
+ /**
57275
+ * The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE.
57276
+ */
57277
+ variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
56043
57278
  };
56044
- url: '/agent/v1/computers/{computer_id}/files/convert';
57279
+ url: '/agent/v1/computers/{computer_id}/files/preview';
56045
57280
  };
56046
- export type ComputersFilesConvertErrors = {
57281
+ export type PreviewComputerFileErrors = {
56047
57282
  /**
56048
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
57283
+ * INVALID_PARAMS: path is missing, a query parameter is unsupported, the pinned version is malformed, or PREVIEW_VARIANT_UNAVAILABLE: this file has no such variant.
57284
+ */
57285
+ 400: {
57286
+ type: 'error';
57287
+ error: {
57288
+ /**
57289
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57290
+ */
57291
+ type: string;
57292
+ message: string;
57293
+ code: string;
57294
+ retryable: boolean;
57295
+ /**
57296
+ * How to recover, for computer failures.
57297
+ */
57298
+ hint?: string;
57299
+ };
57300
+ /**
57301
+ * Equals the X-Request-Id response header.
57302
+ */
57303
+ request_id: string;
57304
+ };
57305
+ /**
57306
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57307
+ */
57308
+ 401: {
57309
+ type: 'error';
57310
+ error: {
57311
+ /**
57312
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57313
+ */
57314
+ type: string;
57315
+ message: string;
57316
+ code: string;
57317
+ retryable: boolean;
57318
+ /**
57319
+ * How to recover, for computer failures.
57320
+ */
57321
+ hint?: string;
57322
+ };
57323
+ /**
57324
+ * Equals the X-Request-Id response header.
57325
+ */
57326
+ request_id: string;
57327
+ };
57328
+ /**
57329
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57330
+ */
57331
+ 403: {
57332
+ type: 'error';
57333
+ error: {
57334
+ /**
57335
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57336
+ */
57337
+ type: string;
57338
+ message: string;
57339
+ code: string;
57340
+ retryable: boolean;
57341
+ /**
57342
+ * How to recover, for computer failures.
57343
+ */
57344
+ hint?: string;
57345
+ };
57346
+ /**
57347
+ * Equals the X-Request-Id response header.
57348
+ */
57349
+ request_id: string;
57350
+ };
57351
+ /**
57352
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
57353
+ */
57354
+ 404: {
57355
+ type: 'error';
57356
+ error: {
57357
+ /**
57358
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57359
+ */
57360
+ type: string;
57361
+ message: string;
57362
+ code: string;
57363
+ retryable: boolean;
57364
+ /**
57365
+ * How to recover, for computer failures.
57366
+ */
57367
+ hint?: string;
57368
+ };
57369
+ /**
57370
+ * Equals the X-Request-Id response header.
57371
+ */
57372
+ request_id: string;
57373
+ };
57374
+ /**
57375
+ * STALE_DIGEST: the file changed while its product was read; ask again.
57376
+ */
57377
+ 409: {
57378
+ type: 'error';
57379
+ error: {
57380
+ /**
57381
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57382
+ */
57383
+ type: string;
57384
+ message: string;
57385
+ code: string;
57386
+ retryable: boolean;
57387
+ /**
57388
+ * How to recover, for computer failures.
57389
+ */
57390
+ hint?: string;
57391
+ };
57392
+ /**
57393
+ * Equals the X-Request-Id response header.
57394
+ */
57395
+ request_id: string;
57396
+ };
57397
+ /**
57398
+ * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
57399
+ */
57400
+ 413: {
57401
+ type: 'error';
57402
+ error: {
57403
+ /**
57404
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57405
+ */
57406
+ type: string;
57407
+ message: string;
57408
+ code: string;
57409
+ retryable: boolean;
57410
+ /**
57411
+ * How to recover, for computer failures.
57412
+ */
57413
+ hint?: string;
57414
+ };
57415
+ /**
57416
+ * Equals the X-Request-Id response header.
57417
+ */
57418
+ request_id: string;
57419
+ };
57420
+ /**
57421
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57422
+ */
57423
+ 429: {
57424
+ type: 'error';
57425
+ error: {
57426
+ /**
57427
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57428
+ */
57429
+ type: string;
57430
+ message: string;
57431
+ code: string;
57432
+ retryable: boolean;
57433
+ /**
57434
+ * How to recover, for computer failures.
57435
+ */
57436
+ hint?: string;
57437
+ };
57438
+ /**
57439
+ * Equals the X-Request-Id response header.
57440
+ */
57441
+ request_id: string;
57442
+ };
57443
+ /**
57444
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
57445
+ */
57446
+ 500: {
57447
+ type: 'error';
57448
+ error: {
57449
+ /**
57450
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57451
+ */
57452
+ type: string;
57453
+ message: string;
57454
+ code: string;
57455
+ retryable: boolean;
57456
+ /**
57457
+ * How to recover, for computer failures.
57458
+ */
57459
+ hint?: string;
57460
+ };
57461
+ /**
57462
+ * Equals the X-Request-Id response header.
57463
+ */
57464
+ request_id: string;
57465
+ };
57466
+ /**
57467
+ * PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
57468
+ */
57469
+ 503: {
57470
+ type: 'error';
57471
+ error: {
57472
+ /**
57473
+ * Anthropic error type, such as invalid_request_error or not_found_error.
57474
+ */
57475
+ type: string;
57476
+ message: string;
57477
+ code: string;
57478
+ retryable: boolean;
57479
+ /**
57480
+ * How to recover, for computer failures.
57481
+ */
57482
+ hint?: string;
57483
+ };
57484
+ /**
57485
+ * Equals the X-Request-Id response header.
57486
+ */
57487
+ request_id: string;
57488
+ };
57489
+ };
57490
+ export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
57491
+ export type PreviewComputerFileResponses = {
57492
+ /**
57493
+ * The preview product, or the fallback that sends the caller to the content door.
57494
+ */
57495
+ 200: {
57496
+ /**
57497
+ * 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.
57498
+ */
57499
+ variant: 'image' | 'pdf' | 'text' | 'original';
57500
+ /**
57501
+ * The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
57502
+ */
57503
+ version?: string;
57504
+ /**
57505
+ * Media type of the product, or of the original bytes.
57506
+ */
57507
+ mime_type?: string;
57508
+ /**
57509
+ * Size of the product in bytes.
57510
+ */
57511
+ size?: number;
57512
+ /**
57513
+ * File id of the stored product in the File service, when the product was stored.
57514
+ */
57515
+ file_id?: string;
57516
+ /**
57517
+ * Signed read address of the product; the caller streams it and caches by the version it pinned.
57518
+ */
57519
+ url?: string;
57520
+ /**
57521
+ * When the signed read address stops working.
57522
+ */
57523
+ expires_at?: string;
57524
+ /**
57525
+ * true when an existing product answered without regenerating it.
57526
+ */
57527
+ cached: boolean;
57528
+ /**
57529
+ * 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.
57530
+ */
57531
+ fallback?: 'content';
57532
+ /**
57533
+ * true only on a pre-generation request over the kind's threshold, where generation was skipped.
57534
+ */
57535
+ skipped?: boolean;
57536
+ };
57537
+ };
57538
+ export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
57539
+ export type ComputersFilesConvertData = {
57540
+ body?: never;
57541
+ path: {
57542
+ /**
57543
+ * Computer id (cmp_...), as returned by computers.create or computers.list.
57544
+ */
57545
+ computer_id: string;
57546
+ };
57547
+ query: {
57548
+ /**
57549
+ * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
57550
+ */
57551
+ path: string;
57552
+ };
57553
+ url: '/agent/v1/computers/{computer_id}/files/convert';
57554
+ };
57555
+ export type ComputersFilesConvertErrors = {
57556
+ /**
57557
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56049
57558
  */
56050
57559
  400: {
56051
57560
  type: 'error';
@@ -62842,7 +64351,7 @@ export type ListSessionRequestsResponses = {
62842
64351
  */
62843
64352
  object: 'request';
62844
64353
  /**
62845
- * question when the agent asked through the ask_user_question tool and waits for an answer; approval when any other tool waits for permission.
64354
+ * 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.
62846
64355
  */
62847
64356
  kind: 'question' | 'approval';
62848
64357
  /**
@@ -62850,11 +64359,11 @@ export type ListSessionRequestsResponses = {
62850
64359
  */
62851
64360
  status: 'pending';
62852
64361
  /**
62853
- * The tool the agent called, such as ask_user_question or bash.
64362
+ * The tool the agent called, such as bash.
62854
64363
  */
62855
64364
  tool_name: string;
62856
64365
  /**
62857
- * 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.
64366
+ * The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
62858
64367
  */
62859
64368
  input: unknown;
62860
64369
  /**
@@ -63659,6 +65168,29 @@ export type CreateAudioSpeechResponses = {
63659
65168
  200: Blob | File;
63660
65169
  };
63661
65170
  export type CreateAudioSpeechResponse = CreateAudioSpeechResponses[keyof CreateAudioSpeechResponses];
65171
+ export type ListPublicPricesData = {
65172
+ body?: never;
65173
+ path?: never;
65174
+ query?: never;
65175
+ url: '/billing/v1/prices';
65176
+ };
65177
+ export type ListPublicPricesErrors = {
65178
+ /**
65179
+ * The price book could not be read (PRICE_LIST_UNAVAILABLE). Retry after a minute; do not show a price you cannot confirm.
65180
+ */
65181
+ 502: unknown;
65182
+ /**
65183
+ * The price book has not been published yet (UNAVAILABLE). Retry after a minute; there is no price to show.
65184
+ */
65185
+ 503: unknown;
65186
+ };
65187
+ export type ListPublicPricesResponses = {
65188
+ /**
65189
+ * The catalog in force. price_list.items is grouped by nothing — order by product and name to render a table; a null amount means the currency is not priced, not that it is free.
65190
+ */
65191
+ 200: BillingPriceList;
65192
+ };
65193
+ export type ListPublicPricesResponse = ListPublicPricesResponses[keyof ListPublicPricesResponses];
63662
65194
  export type BrowserListSessionsData = {
63663
65195
  body?: never;
63664
65196
  path?: never;
@@ -65640,6 +67172,10 @@ export type FileListFilesData = {
65640
67172
  * 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.
65641
67173
  */
65642
67174
  scope_id?: string;
67175
+ /**
67176
+ * 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.
67177
+ */
67178
+ ids?: Array<string>;
65643
67179
  /**
65644
67180
  * File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.
65645
67181
  */
@@ -71056,9 +72592,9 @@ export type CreateOrganizationFeedbackData = {
71056
72592
  };
71057
72593
  };
71058
72594
  /**
71059
- * Use console for Console reports or api for API callers (default); machine tokens always store codemode regardless of this value.
72595
+ * Use console for Console reports or api for API callers (default). Machine tokens always store codemode regardless of this value and may send codemode; any other caller that sends codemode is refused.
71060
72596
  */
71061
- source?: 'console' | 'api';
72597
+ source?: 'console' | 'api' | 'codemode';
71062
72598
  /**
71063
72599
  * Up to five attachments; decoded bytes must not exceed 10 MiB per attachment or 20 MiB in total.
71064
72600
  */
@@ -74018,6 +75554,462 @@ export type ReviseOrganizationKeyResultResponses = {
74018
75554
  200: OrganizationKeyResult;
74019
75555
  };
74020
75556
  export type ReviseOrganizationKeyResultResponse = ReviseOrganizationKeyResultResponses[keyof ReviseOrganizationKeyResultResponses];
75557
+ export type ListOrganizationSpecsData = {
75558
+ body?: never;
75559
+ path?: never;
75560
+ query?: {
75561
+ /**
75562
+ * Maximum items per page, from 1 to 100; defaults to 20.
75563
+ */
75564
+ limit?: number;
75565
+ /**
75566
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
75567
+ */
75568
+ page?: string;
75569
+ /**
75570
+ * Only specs of this subject kind; omit to list every kind together.
75571
+ */
75572
+ kind?: OrganizationSpecKind;
75573
+ };
75574
+ url: '/organization/v1/specs';
75575
+ };
75576
+ export type ListOrganizationSpecsErrors = {
75577
+ /**
75578
+ * 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.
75579
+ */
75580
+ 400: OrganizationProblem;
75581
+ /**
75582
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75583
+ */
75584
+ 401: unknown;
75585
+ /**
75586
+ * 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.
75587
+ */
75588
+ 403: OrganizationProblem;
75589
+ };
75590
+ export type ListOrganizationSpecsError = ListOrganizationSpecsErrors[keyof ListOrganizationSpecsErrors];
75591
+ export type ListOrganizationSpecsResponses = {
75592
+ /**
75593
+ * One page of specs.
75594
+ */
75595
+ 200: OrganizationSpecList;
75596
+ };
75597
+ export type ListOrganizationSpecsResponse = ListOrganizationSpecsResponses[keyof ListOrganizationSpecsResponses];
75598
+ export type GetOrganizationSpecData = {
75599
+ body?: never;
75600
+ path: {
75601
+ /**
75602
+ * Kind of the subject whose spec to read.
75603
+ */
75604
+ kind: OrganizationSpecKind;
75605
+ /**
75606
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75607
+ */
75608
+ id: string;
75609
+ };
75610
+ query?: {
75611
+ /**
75612
+ * Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written.
75613
+ */
75614
+ revision?: number;
75615
+ };
75616
+ url: '/organization/v1/specs/{kind}/{id}';
75617
+ };
75618
+ export type GetOrganizationSpecErrors = {
75619
+ /**
75620
+ * 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.
75621
+ */
75622
+ 400: OrganizationProblem;
75623
+ /**
75624
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75625
+ */
75626
+ 401: unknown;
75627
+ /**
75628
+ * 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.
75629
+ */
75630
+ 403: OrganizationProblem;
75631
+ /**
75632
+ * 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.
75633
+ */
75634
+ 404: OrganizationProblem;
75635
+ };
75636
+ export type GetOrganizationSpecError = GetOrganizationSpecErrors[keyof GetOrganizationSpecErrors];
75637
+ export type GetOrganizationSpecResponses = {
75638
+ /**
75639
+ * The spec of the subject at the live or named revision.
75640
+ */
75641
+ 200: OrganizationSpec;
75642
+ };
75643
+ export type GetOrganizationSpecResponse = GetOrganizationSpecResponses[keyof GetOrganizationSpecResponses];
75644
+ export type ReviseOrganizationSpecData = {
75645
+ body: OrganizationReviseSpecRequest;
75646
+ path: {
75647
+ /**
75648
+ * Kind of the subject whose spec to revise.
75649
+ */
75650
+ kind: OrganizationSpecKind;
75651
+ /**
75652
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75653
+ */
75654
+ id: string;
75655
+ };
75656
+ query?: {
75657
+ /**
75658
+ * true checks everything and writes nothing, answering the preview; false or omitted writes.
75659
+ */
75660
+ dry_run?: boolean;
75661
+ };
75662
+ url: '/organization/v1/specs/{kind}/{id}';
75663
+ };
75664
+ export type ReviseOrganizationSpecErrors = {
75665
+ /**
75666
+ * INVALID_PARAMS; the spec or metadata.revision is missing or not an integer, api_version is not organization/v1, labels or annotations exceed their limits, a block is outside the registry or a body field is unknown. The message names the field or block to fix.
75667
+ */
75668
+ 400: OrganizationProblem;
75669
+ /**
75670
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75671
+ */
75672
+ 401: unknown;
75673
+ /**
75674
+ * 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).
75675
+ */
75676
+ 403: OrganizationProblem;
75677
+ /**
75678
+ * 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.
75679
+ */
75680
+ 404: OrganizationProblem;
75681
+ /**
75682
+ * REVISION_CONFLICT; the spec moved on since you read it. Read it again, merge your change and retry with its current revision.
75683
+ */
75684
+ 409: OrganizationProblem;
75685
+ };
75686
+ export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
75687
+ export type ReviseOrganizationSpecResponses = {
75688
+ /**
75689
+ * The spec after the revision at the new revision number; with dry_run=true, the preview instead and nothing is written.
75690
+ */
75691
+ 200: OrganizationSpec | OrganizationSpecDryRun;
75692
+ };
75693
+ export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
75694
+ export type ListOrganizationSpecRevisionsData = {
75695
+ body?: never;
75696
+ path: {
75697
+ /**
75698
+ * Kind of the subject whose revision history to list.
75699
+ */
75700
+ kind: OrganizationSpecKind;
75701
+ /**
75702
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75703
+ */
75704
+ id: string;
75705
+ };
75706
+ query?: {
75707
+ /**
75708
+ * Maximum revisions per page, from 1 to 100; defaults to 20.
75709
+ */
75710
+ limit?: number;
75711
+ /**
75712
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
75713
+ */
75714
+ page?: string;
75715
+ };
75716
+ url: '/organization/v1/specs/{kind}/{id}/revisions';
75717
+ };
75718
+ export type ListOrganizationSpecRevisionsErrors = {
75719
+ /**
75720
+ * INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters.
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
+ * 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.
75733
+ */
75734
+ 404: OrganizationProblem;
75735
+ };
75736
+ export type ListOrganizationSpecRevisionsError = ListOrganizationSpecRevisionsErrors[keyof ListOrganizationSpecRevisionsErrors];
75737
+ export type ListOrganizationSpecRevisionsResponses = {
75738
+ /**
75739
+ * One page of revisions, newest first.
75740
+ */
75741
+ 200: OrganizationSpecRevisionList;
75742
+ };
75743
+ export type ListOrganizationSpecRevisionsResponse = ListOrganizationSpecRevisionsResponses[keyof ListOrganizationSpecRevisionsResponses];
75744
+ export type DiffOrganizationSpecData = {
75745
+ body?: never;
75746
+ path: {
75747
+ /**
75748
+ * Kind of the subject whose revisions to compare.
75749
+ */
75750
+ kind: OrganizationSpecKind;
75751
+ /**
75752
+ * The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
75753
+ */
75754
+ id: string;
75755
+ };
75756
+ query: {
75757
+ /**
75758
+ * The earlier revision to compare from; 0 is the empty spec before the first write.
75759
+ */
75760
+ from: number;
75761
+ /**
75762
+ * The later revision to compare to.
75763
+ */
75764
+ to: number;
75765
+ };
75766
+ url: '/organization/v1/specs/{kind}/{id}/diff';
75767
+ };
75768
+ export type DiffOrganizationSpecErrors = {
75769
+ /**
75770
+ * INVALID_PARAMS; from or to is missing or not an integer. Send both as whole numbers.
75771
+ */
75772
+ 400: OrganizationProblem;
75773
+ /**
75774
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75775
+ */
75776
+ 401: unknown;
75777
+ /**
75778
+ * 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.
75779
+ */
75780
+ 403: OrganizationProblem;
75781
+ /**
75782
+ * 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.
75783
+ */
75784
+ 404: OrganizationProblem;
75785
+ };
75786
+ export type DiffOrganizationSpecError = DiffOrganizationSpecErrors[keyof DiffOrganizationSpecErrors];
75787
+ export type DiffOrganizationSpecResponses = {
75788
+ /**
75789
+ * The changes between the two revisions, in path order.
75790
+ */
75791
+ 200: OrganizationSpecDiff;
75792
+ };
75793
+ export type DiffOrganizationSpecResponse = DiffOrganizationSpecResponses[keyof DiffOrganizationSpecResponses];
75794
+ export type GetOrganizationEffectiveSpecData = {
75795
+ body?: never;
75796
+ path?: never;
75797
+ query?: {
75798
+ /**
75799
+ * Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both.
75800
+ */
75801
+ actor?: string;
75802
+ /**
75803
+ * One seat to merge, held or vacant (pos_...); give this or actor, not both.
75804
+ */
75805
+ position_id?: string;
75806
+ /**
75807
+ * Which holder kind to merge for; omit to derive it from the seat's holder.
75808
+ */
75809
+ holder_kind?: 'agent' | 'human';
75810
+ };
75811
+ url: '/organization/v1/effective_spec';
75812
+ };
75813
+ export type GetOrganizationEffectiveSpecErrors = {
75814
+ /**
75815
+ * 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.
75816
+ */
75817
+ 400: OrganizationProblem;
75818
+ /**
75819
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75820
+ */
75821
+ 401: unknown;
75822
+ /**
75823
+ * 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.
75824
+ */
75825
+ 403: OrganizationProblem;
75826
+ /**
75827
+ * POSITION_NOT_FOUND; position_id is not a position of your organization. List positions and copy an id.
75828
+ */
75829
+ 404: OrganizationProblem;
75830
+ };
75831
+ export type GetOrganizationEffectiveSpecError = GetOrganizationEffectiveSpecErrors[keyof GetOrganizationEffectiveSpecErrors];
75832
+ export type GetOrganizationEffectiveSpecResponses = {
75833
+ /**
75834
+ * The merged effective spec of the seat or actor.
75835
+ */
75836
+ 200: OrganizationEffectiveSpec;
75837
+ };
75838
+ export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
75839
+ export type GetOrganizationSpecSchemaData = {
75840
+ body?: never;
75841
+ path?: never;
75842
+ query?: never;
75843
+ url: '/organization/v1/spec_schema';
75844
+ };
75845
+ export type GetOrganizationSpecSchemaErrors = {
75846
+ /**
75847
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75848
+ */
75849
+ 401: unknown;
75850
+ /**
75851
+ * PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent's own session token.
75852
+ */
75853
+ 403: OrganizationProblem;
75854
+ };
75855
+ export type GetOrganizationSpecSchemaError = GetOrganizationSpecSchemaErrors[keyof GetOrganizationSpecSchemaErrors];
75856
+ export type GetOrganizationSpecSchemaResponses = {
75857
+ /**
75858
+ * The JSON Schema of a spec body.
75859
+ */
75860
+ 200: OrganizationSpecSchema;
75861
+ };
75862
+ export type GetOrganizationSpecSchemaResponse = GetOrganizationSpecSchemaResponses[keyof GetOrganizationSpecSchemaResponses];
75863
+ export type PlanOrganizationReconcileData = {
75864
+ body?: never;
75865
+ path?: never;
75866
+ query: {
75867
+ /**
75868
+ * The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged.
75869
+ */
75870
+ actor: string;
75871
+ };
75872
+ url: '/organization/v1/reconcile/plan';
75873
+ };
75874
+ export type PlanOrganizationReconcileErrors = {
75875
+ /**
75876
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
75877
+ */
75878
+ 400: OrganizationProblem;
75879
+ /**
75880
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75881
+ */
75882
+ 401: unknown;
75883
+ /**
75884
+ * 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.
75885
+ */
75886
+ 403: OrganizationProblem;
75887
+ };
75888
+ export type PlanOrganizationReconcileError = PlanOrganizationReconcileErrors[keyof PlanOrganizationReconcileErrors];
75889
+ export type PlanOrganizationReconcileResponses = {
75890
+ /**
75891
+ * The actions the reconciler would take for this holder, and the merged-result violations.
75892
+ */
75893
+ 200: OrganizationReconcilePlan;
75894
+ };
75895
+ export type PlanOrganizationReconcileResponse = PlanOrganizationReconcileResponses[keyof PlanOrganizationReconcileResponses];
75896
+ export type GetOrganizationReconcileStatusData = {
75897
+ body?: never;
75898
+ path?: never;
75899
+ query: {
75900
+ /**
75901
+ * The holder whose reconcile status to read (agent:agent_... or human:usr_...).
75902
+ */
75903
+ actor: string;
75904
+ };
75905
+ url: '/organization/v1/reconcile/status';
75906
+ };
75907
+ export type GetOrganizationReconcileStatusErrors = {
75908
+ /**
75909
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
75910
+ */
75911
+ 400: OrganizationProblem;
75912
+ /**
75913
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75914
+ */
75915
+ 401: unknown;
75916
+ /**
75917
+ * 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.
75918
+ */
75919
+ 403: OrganizationProblem;
75920
+ };
75921
+ export type GetOrganizationReconcileStatusError = GetOrganizationReconcileStatusErrors[keyof GetOrganizationReconcileStatusErrors];
75922
+ export type GetOrganizationReconcileStatusResponses = {
75923
+ /**
75924
+ * The last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
75925
+ */
75926
+ 200: OrganizationReconcileStatus;
75927
+ };
75928
+ export type GetOrganizationReconcileStatusResponse = GetOrganizationReconcileStatusResponses[keyof GetOrganizationReconcileStatusResponses];
75929
+ export type RunOrganizationReconcileData = {
75930
+ body: OrganizationReconcileActorRequest;
75931
+ path?: never;
75932
+ query?: never;
75933
+ url: '/organization/v1/reconcile/run';
75934
+ };
75935
+ export type RunOrganizationReconcileErrors = {
75936
+ /**
75937
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75938
+ */
75939
+ 400: OrganizationProblem;
75940
+ /**
75941
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75942
+ */
75943
+ 401: unknown;
75944
+ /**
75945
+ * 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).
75946
+ */
75947
+ 403: OrganizationProblem;
75948
+ };
75949
+ export type RunOrganizationReconcileError = RunOrganizationReconcileErrors[keyof RunOrganizationReconcileErrors];
75950
+ export type RunOrganizationReconcileResponses = {
75951
+ /**
75952
+ * The status after this run.
75953
+ */
75954
+ 200: OrganizationReconcileStatus;
75955
+ };
75956
+ export type RunOrganizationReconcileResponse = RunOrganizationReconcileResponses[keyof RunOrganizationReconcileResponses];
75957
+ export type PauseOrganizationReconcileData = {
75958
+ body: OrganizationReconcileActorRequest;
75959
+ path?: never;
75960
+ query?: never;
75961
+ url: '/organization/v1/reconcile/pause';
75962
+ };
75963
+ export type PauseOrganizationReconcileErrors = {
75964
+ /**
75965
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75966
+ */
75967
+ 400: OrganizationProblem;
75968
+ /**
75969
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75970
+ */
75971
+ 401: unknown;
75972
+ /**
75973
+ * 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).
75974
+ */
75975
+ 403: OrganizationProblem;
75976
+ };
75977
+ export type PauseOrganizationReconcileError = PauseOrganizationReconcileErrors[keyof PauseOrganizationReconcileErrors];
75978
+ export type PauseOrganizationReconcileResponses = {
75979
+ /**
75980
+ * The status after pausing; paused is true.
75981
+ */
75982
+ 200: OrganizationReconcileStatus;
75983
+ };
75984
+ export type PauseOrganizationReconcileResponse = PauseOrganizationReconcileResponses[keyof PauseOrganizationReconcileResponses];
75985
+ export type ResumeOrganizationReconcileData = {
75986
+ body: OrganizationReconcileActorRequest;
75987
+ path?: never;
75988
+ query?: never;
75989
+ url: '/organization/v1/reconcile/resume';
75990
+ };
75991
+ export type ResumeOrganizationReconcileErrors = {
75992
+ /**
75993
+ * INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
75994
+ */
75995
+ 400: OrganizationProblem;
75996
+ /**
75997
+ * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
75998
+ */
75999
+ 401: unknown;
76000
+ /**
76001
+ * 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).
76002
+ */
76003
+ 403: OrganizationProblem;
76004
+ };
76005
+ export type ResumeOrganizationReconcileError = ResumeOrganizationReconcileErrors[keyof ResumeOrganizationReconcileErrors];
76006
+ export type ResumeOrganizationReconcileResponses = {
76007
+ /**
76008
+ * The status after resuming; paused is false.
76009
+ */
76010
+ 200: OrganizationReconcileStatus;
76011
+ };
76012
+ export type ResumeOrganizationReconcileResponse = ResumeOrganizationReconcileResponses[keyof ResumeOrganizationReconcileResponses];
74021
76013
  export type UpgradeSandboxData = {
74022
76014
  body: {
74023
76015
  /**
@@ -75165,6 +77157,440 @@ export type RunSandboxCommandResponses = {
75165
77157
  };
75166
77158
  };
75167
77159
  export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
77160
+ export type CreateByodPairingData = {
77161
+ body?: never;
77162
+ path?: never;
77163
+ query?: never;
77164
+ url: '/sandbox/v1/byod/pairings';
77165
+ };
77166
+ export type CreateByodPairingErrors = {
77167
+ /**
77168
+ * 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.
77169
+ */
77170
+ 400: unknown;
77171
+ /**
77172
+ * Authentication required: supply an organization API key that carries a tenant.
77173
+ */
77174
+ 401: unknown;
77175
+ /**
77176
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77177
+ */
77178
+ 503: unknown;
77179
+ };
77180
+ export type CreateByodPairingResponses = {
77181
+ /**
77182
+ * A pairing the caller started: the short code, its deadline and the string the phone's app scans.
77183
+ */
77184
+ 201: {
77185
+ /**
77186
+ * 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.
77187
+ */
77188
+ code: string;
77189
+ /**
77190
+ * 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.
77191
+ */
77192
+ expires_at: string;
77193
+ /**
77194
+ * 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.
77195
+ */
77196
+ qr: string;
77197
+ };
77198
+ };
77199
+ export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
77200
+ export type ListByodDevicesData = {
77201
+ body?: never;
77202
+ path?: never;
77203
+ query?: never;
77204
+ url: '/sandbox/v1/byod/devices';
77205
+ };
77206
+ export type ListByodDevicesErrors = {
77207
+ /**
77208
+ * Authentication required: supply an organization API key that carries a tenant.
77209
+ */
77210
+ 401: unknown;
77211
+ /**
77212
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77213
+ */
77214
+ 503: unknown;
77215
+ };
77216
+ export type ListByodDevicesResponses = {
77217
+ /**
77218
+ * The organization's BYOD devices.
77219
+ */
77220
+ 200: {
77221
+ /**
77222
+ * The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
77223
+ */
77224
+ data: Array<{
77225
+ /**
77226
+ * Resource type; always "byod_device".
77227
+ */
77228
+ object: 'byod_device';
77229
+ /**
77230
+ * 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.
77231
+ */
77232
+ id: string;
77233
+ /**
77234
+ * 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.
77235
+ */
77236
+ platform: 'android' | 'macos' | 'linux';
77237
+ /**
77238
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
77239
+ */
77240
+ name: string;
77241
+ /**
77242
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
77243
+ */
77244
+ model: string;
77245
+ /**
77246
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
77247
+ */
77248
+ os_version: string;
77249
+ /**
77250
+ * 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.
77251
+ */
77252
+ online: boolean;
77253
+ /**
77254
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
77255
+ */
77256
+ last_seen_at: string | null;
77257
+ /**
77258
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
77259
+ */
77260
+ created_at: string;
77261
+ /**
77262
+ * 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).
77263
+ */
77264
+ capabilities: Array<'display' | 'agent'>;
77265
+ /**
77266
+ * 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.
77267
+ */
77268
+ agent_dirs: Array<string>;
77269
+ /**
77270
+ * 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.
77271
+ */
77272
+ allow_bypass: boolean;
77273
+ }>;
77274
+ };
77275
+ };
77276
+ export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
77277
+ export type GetByodDeviceData = {
77278
+ body?: never;
77279
+ path: {
77280
+ /**
77281
+ * 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.
77282
+ */
77283
+ deviceID: string;
77284
+ };
77285
+ query?: never;
77286
+ url: '/sandbox/v1/byod/devices/{deviceID}';
77287
+ };
77288
+ export type GetByodDeviceErrors = {
77289
+ /**
77290
+ * Authentication required: supply an organization API key that carries a tenant.
77291
+ */
77292
+ 401: unknown;
77293
+ /**
77294
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
77295
+ */
77296
+ 404: unknown;
77297
+ /**
77298
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77299
+ */
77300
+ 503: unknown;
77301
+ };
77302
+ export type GetByodDeviceResponses = {
77303
+ /**
77304
+ * One BYOD device: a phone or a desktop the organization paired and the platform did not build.
77305
+ */
77306
+ 200: {
77307
+ /**
77308
+ * Resource type; always "byod_device".
77309
+ */
77310
+ object: 'byod_device';
77311
+ /**
77312
+ * 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.
77313
+ */
77314
+ id: string;
77315
+ /**
77316
+ * 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.
77317
+ */
77318
+ platform: 'android' | 'macos' | 'linux';
77319
+ /**
77320
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
77321
+ */
77322
+ name: string;
77323
+ /**
77324
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
77325
+ */
77326
+ model: string;
77327
+ /**
77328
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
77329
+ */
77330
+ os_version: string;
77331
+ /**
77332
+ * 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.
77333
+ */
77334
+ online: boolean;
77335
+ /**
77336
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
77337
+ */
77338
+ last_seen_at: string | null;
77339
+ /**
77340
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
77341
+ */
77342
+ created_at: string;
77343
+ /**
77344
+ * 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).
77345
+ */
77346
+ capabilities: Array<'display' | 'agent'>;
77347
+ /**
77348
+ * 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.
77349
+ */
77350
+ agent_dirs: Array<string>;
77351
+ /**
77352
+ * 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.
77353
+ */
77354
+ allow_bypass: boolean;
77355
+ };
77356
+ };
77357
+ export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
77358
+ export type UpdateByodDeviceData = {
77359
+ /**
77360
+ * The one field a rename may send.
77361
+ */
77362
+ body: {
77363
+ /**
77364
+ * New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
77365
+ */
77366
+ name: string;
77367
+ };
77368
+ path: {
77369
+ /**
77370
+ * 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.
77371
+ */
77372
+ deviceID: string;
77373
+ };
77374
+ query?: never;
77375
+ url: '/sandbox/v1/byod/devices/{deviceID}';
77376
+ };
77377
+ export type UpdateByodDeviceErrors = {
77378
+ /**
77379
+ * 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.
77380
+ */
77381
+ 400: unknown;
77382
+ /**
77383
+ * Authentication required: supply an organization API key that carries a tenant.
77384
+ */
77385
+ 401: unknown;
77386
+ /**
77387
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
77388
+ */
77389
+ 404: unknown;
77390
+ /**
77391
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77392
+ */
77393
+ 503: unknown;
77394
+ };
77395
+ export type UpdateByodDeviceResponses = {
77396
+ /**
77397
+ * One BYOD device: a phone or a desktop the organization paired and the platform did not build.
77398
+ */
77399
+ 200: {
77400
+ /**
77401
+ * Resource type; always "byod_device".
77402
+ */
77403
+ object: 'byod_device';
77404
+ /**
77405
+ * 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.
77406
+ */
77407
+ id: string;
77408
+ /**
77409
+ * 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.
77410
+ */
77411
+ platform: 'android' | 'macos' | 'linux';
77412
+ /**
77413
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
77414
+ */
77415
+ name: string;
77416
+ /**
77417
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
77418
+ */
77419
+ model: string;
77420
+ /**
77421
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
77422
+ */
77423
+ os_version: string;
77424
+ /**
77425
+ * 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.
77426
+ */
77427
+ online: boolean;
77428
+ /**
77429
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
77430
+ */
77431
+ last_seen_at: string | null;
77432
+ /**
77433
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
77434
+ */
77435
+ created_at: string;
77436
+ /**
77437
+ * 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).
77438
+ */
77439
+ capabilities: Array<'display' | 'agent'>;
77440
+ /**
77441
+ * 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.
77442
+ */
77443
+ agent_dirs: Array<string>;
77444
+ /**
77445
+ * 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.
77446
+ */
77447
+ allow_bypass: boolean;
77448
+ };
77449
+ };
77450
+ export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
77451
+ export type DisconnectByodDeviceData = {
77452
+ body?: never;
77453
+ path: {
77454
+ /**
77455
+ * 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.
77456
+ */
77457
+ deviceID: string;
77458
+ };
77459
+ query?: never;
77460
+ url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
77461
+ };
77462
+ export type DisconnectByodDeviceErrors = {
77463
+ /**
77464
+ * Authentication required: supply an organization API key that carries a tenant.
77465
+ */
77466
+ 401: unknown;
77467
+ /**
77468
+ * NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
77469
+ */
77470
+ 404: unknown;
77471
+ /**
77472
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
77473
+ */
77474
+ 503: unknown;
77475
+ };
77476
+ export type DisconnectByodDeviceResponses = {
77477
+ /**
77478
+ * The disconnected device.
77479
+ */
77480
+ 200: {
77481
+ /**
77482
+ * Id of the device that was disconnected.
77483
+ */
77484
+ id: string;
77485
+ /**
77486
+ * Resource type; always "byod_device".
77487
+ */
77488
+ object: 'byod_device';
77489
+ /**
77490
+ * Always true: the credential is revoked and the connection closed.
77491
+ */
77492
+ disconnected: true;
77493
+ };
77494
+ };
77495
+ export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
77496
+ export type GetByodPairingData = {
77497
+ body?: never;
77498
+ path: {
77499
+ /**
77500
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
77501
+ */
77502
+ code: string;
77503
+ };
77504
+ query?: never;
77505
+ url: '/sandbox/v1/byod/pairings/{code}';
77506
+ };
77507
+ export type GetByodPairingErrors = {
77508
+ /**
77509
+ * 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.
77510
+ */
77511
+ 404: unknown;
77512
+ };
77513
+ export type GetByodPairingResponses = {
77514
+ /**
77515
+ * What the Allow screen reads.
77516
+ */
77517
+ 200: {
77518
+ /**
77519
+ * Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
77520
+ */
77521
+ organization_name: string;
77522
+ /**
77523
+ * When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
77524
+ */
77525
+ expires_at: string;
77526
+ };
77527
+ };
77528
+ export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
77529
+ export type ClaimByodPairingData = {
77530
+ /**
77531
+ * What the phone's app knows about itself when it claims the pairing.
77532
+ */
77533
+ body: {
77534
+ /**
77535
+ * 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.
77536
+ */
77537
+ platform: 'android' | 'macos' | 'linux';
77538
+ /**
77539
+ * 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.
77540
+ */
77541
+ name?: string;
77542
+ /**
77543
+ * The device model the app reports, at most 128 characters; it is display only and can be omitted.
77544
+ */
77545
+ model?: string;
77546
+ /**
77547
+ * The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
77548
+ */
77549
+ os_version?: string;
77550
+ /**
77551
+ * A stable key the app reads from the phone itself (Android: ANDROID_ID), 8 to 128 characters of letters, digits, underscore and hyphen; any other value answers INVALID_PARAMS. The service keeps only a hash scoped to the organization and platform. When the same organization already has a device with this key, even a disconnected one, the claim reuses that device: the same device_id comes back with a new credential, the old connection is closed, and its name is kept. Omit it and every claim registers a new device.
77552
+ */
77553
+ device_key?: string;
77554
+ };
77555
+ path: {
77556
+ /**
77557
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
77558
+ */
77559
+ code: string;
77560
+ };
77561
+ query?: never;
77562
+ url: '/sandbox/v1/byod/pairings/{code}/claim';
77563
+ };
77564
+ export type ClaimByodPairingErrors = {
77565
+ /**
77566
+ * 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.
77567
+ */
77568
+ 400: unknown;
77569
+ /**
77570
+ * 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.
77571
+ */
77572
+ 404: unknown;
77573
+ };
77574
+ export type ClaimByodPairingResponses = {
77575
+ /**
77576
+ * The device's registration and its one-time credential.
77577
+ */
77578
+ 201: {
77579
+ /**
77580
+ * Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
77581
+ */
77582
+ device_id: string;
77583
+ /**
77584
+ * 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.
77585
+ */
77586
+ credential: string;
77587
+ /**
77588
+ * The control socket to dial, wss://49982-byd<hex>.sandbox[-<env>].praxisusercontent.com/; connect with the credential in an Authorization: Bearer header. The connection carries the phone channel's frames.
77589
+ */
77590
+ socket_url: string;
77591
+ };
77592
+ };
77593
+ export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
75168
77594
  export type SessionsDeleteData = {
75169
77595
  body?: never;
75170
77596
  path: {
@@ -76984,7 +79410,7 @@ export type AgentsCreateData = {
76984
79410
  }>;
76985
79411
  };
76986
79412
  /**
76987
- * 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.
79413
+ * 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.
76988
79414
  */
76989
79415
  preset?: 'minimal' | 'data-editor' | 'full';
76990
79416
  /**
@@ -78851,7 +81277,7 @@ export type AgentsUpdateData = {
78851
81277
  }>;
78852
81278
  };
78853
81279
  /**
78854
- * 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.
81280
+ * 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.
78855
81281
  */
78856
81282
  preset?: 'minimal' | 'data-editor' | 'full';
78857
81283
  /**
@@ -82561,48 +84987,6 @@ export type SessionsEventsListResponses = {
82561
84987
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
82562
84988
  */
82563
84989
  processed_at: string;
82564
- } | {
82565
- /**
82566
- * Event id, unique within the session.
82567
- */
82568
- id: string;
82569
- /**
82570
- * Always `user.tool_confirmation`.
82571
- */
82572
- type: 'user.tool_confirmation';
82573
- /**
82574
- * When the event was recorded, RFC 3339.
82575
- */
82576
- processed_at: string;
82577
- /**
82578
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
82579
- */
82580
- tool_use_id: string;
82581
- /**
82582
- * Always `allow`.
82583
- */
82584
- result: 'allow';
82585
- /**
82586
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
82587
- */
82588
- answers: {
82589
- [key: string]: string;
82590
- };
82591
- /**
82592
- * Per-question notes, keyed by the question text.
82593
- */
82594
- annotations?: {
82595
- [key: string]: {
82596
- /**
82597
- * The preview of the option the user chose.
82598
- */
82599
- preview?: string;
82600
- /**
82601
- * Free text the user added to their choice.
82602
- */
82603
- notes?: string;
82604
- };
82605
- };
82606
84990
  }>;
82607
84991
  /**
82608
84992
  * Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
@@ -82652,40 +85036,6 @@ export type SessionsEventsSendData = {
82652
85036
  * Id of the event this event refers to.
82653
85037
  */
82654
85038
  event_id: string;
82655
- } | {
82656
- /**
82657
- * Always `user.tool_confirmation`.
82658
- */
82659
- type: 'user.tool_confirmation';
82660
- /**
82661
- * The id of the pending `agent.tool_use` event of the AskUserQuestion call.
82662
- */
82663
- tool_use_id: string;
82664
- /**
82665
- * Always `allow`; the questions are answered, or dismissed with an empty `answers`.
82666
- */
82667
- result: 'allow';
82668
- /**
82669
- * 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.
82670
- */
82671
- answers: {
82672
- [key: string]: string;
82673
- };
82674
- /**
82675
- * Optional per-question notes, keyed by the question text.
82676
- */
82677
- annotations?: {
82678
- [key: string]: {
82679
- /**
82680
- * The preview of the option the user chose.
82681
- */
82682
- preview?: string;
82683
- /**
82684
- * Free text the user added to their choice.
82685
- */
82686
- notes?: string;
82687
- };
82688
- };
82689
85039
  }>;
82690
85040
  };
82691
85041
  path: {
@@ -82780,48 +85130,6 @@ export type SessionsEventsSendResponses = {
82780
85130
  * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
82781
85131
  */
82782
85132
  processed_at: string;
82783
- } | {
82784
- /**
82785
- * Event id, unique within the session.
82786
- */
82787
- id: string;
82788
- /**
82789
- * Always `user.tool_confirmation`.
82790
- */
82791
- type: 'user.tool_confirmation';
82792
- /**
82793
- * When the event was recorded, RFC 3339.
82794
- */
82795
- processed_at: string;
82796
- /**
82797
- * The id of the AskUserQuestion `agent.tool_use` event this answers.
82798
- */
82799
- tool_use_id: string;
82800
- /**
82801
- * Always `allow`.
82802
- */
82803
- result: 'allow';
82804
- /**
82805
- * The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
82806
- */
82807
- answers: {
82808
- [key: string]: string;
82809
- };
82810
- /**
82811
- * Per-question notes, keyed by the question text.
82812
- */
82813
- annotations?: {
82814
- [key: string]: {
82815
- /**
82816
- * The preview of the option the user chose.
82817
- */
82818
- preview?: string;
82819
- /**
82820
- * Free text the user added to their choice.
82821
- */
82822
- notes?: string;
82823
- };
82824
- };
82825
85133
  }>;
82826
85134
  };
82827
85135
  };
@@ -98170,6 +100478,10 @@ export type DevopsTestPlanGetData = {
98170
100478
  * What the diff is measured against: a commit id or a branch name. Defaults to the project's default branch. A base that is neither a branch of the project's repository nor a readable commit is refused as COMMIT_NOT_FOUND, so a typo cannot silently plan against the whole repository.
98171
100479
  */
98172
100480
  base?: string;
100481
+ /**
100482
+ * How much of the plan to return: full lists every feature scenario of the affected packages, summary returns per package only the counts (caseCounts) and lists only the cases this diff requires. A change that touches no tested code (a README) answers tens of kilobytes in the full view, because every case is listed as unaffected; ask for the summary first and use the full view only to explain one case.
100483
+ */
100484
+ view?: 'full' | 'summary';
98173
100485
  };
98174
100486
  url: '/devops/v1/projects/{project}/test-plan';
98175
100487
  };
@@ -98244,6 +100556,97 @@ export type DevopsProjectsListResponses = {
98244
100556
  200: DevopsProjectPage;
98245
100557
  };
98246
100558
  export type DevopsProjectsListResponse = DevopsProjectsListResponses[keyof DevopsProjectsListResponses];
100559
+ export type DevopsProjectsCreateData = {
100560
+ /**
100561
+ * The project's name and where its code lives: a git package of our own Git, or a GitHub repository.
100562
+ */
100563
+ body: DevopsProjectCreate;
100564
+ path?: never;
100565
+ query?: never;
100566
+ url: '/devops/v1/projects';
100567
+ };
100568
+ export type DevopsProjectsCreateErrors = {
100569
+ /**
100570
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
100571
+ */
100572
+ 400: DevopsDevOpsError;
100573
+ /**
100574
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100575
+ */
100576
+ 401: DevopsDevOpsError;
100577
+ /**
100578
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
100579
+ */
100580
+ 403: DevopsDevOpsError;
100581
+ /**
100582
+ * CONNECTION_NOT_FOUND means no connection with that id exists in this organization, or it belongs to another organization; list the connections and use an id from that answer. A deleted connection is still readable until it is removed, so this answer means the id itself is unknown.
100583
+ */
100584
+ 404: DevopsDevOpsError;
100585
+ /**
100586
+ * PROJECT_NAME_TAKEN means the name is used in this organization; REPOSITORY_ALREADY_BOUND means the package or repository already backs a project; DEFAULT_BRANCH_EXISTS means initialRef was given but the default branch already exists. Nothing was created.
100587
+ */
100588
+ 409: DevopsDevOpsError;
100589
+ /**
100590
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
100591
+ */
100592
+ 500: DevopsDevOpsError;
100593
+ };
100594
+ export type DevopsProjectsCreateError = DevopsProjectsCreateErrors[keyof DevopsProjectsCreateErrors];
100595
+ export type DevopsProjectsCreateResponses = {
100596
+ /**
100597
+ * The created project with its repository binding, settings and labels.
100598
+ */
100599
+ 200: DevopsProject;
100600
+ };
100601
+ export type DevopsProjectsCreateResponse = DevopsProjectsCreateResponses[keyof DevopsProjectsCreateResponses];
100602
+ export type DevopsProjectsInitializeDefaultBranchData = {
100603
+ /**
100604
+ * The existing branch to start the default branch from.
100605
+ */
100606
+ body: DevopsDefaultBranchInitialize;
100607
+ path: {
100608
+ /**
100609
+ * The project identifier returned by the project list, not the project's display name or its repository name.
100610
+ */
100611
+ id: string;
100612
+ };
100613
+ query?: never;
100614
+ url: '/devops/v1/projects/{id}/default-branch:initialize';
100615
+ };
100616
+ export type DevopsProjectsInitializeDefaultBranchErrors = {
100617
+ /**
100618
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
100619
+ */
100620
+ 400: DevopsDevOpsError;
100621
+ /**
100622
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100623
+ */
100624
+ 401: DevopsDevOpsError;
100625
+ /**
100626
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
100627
+ */
100628
+ 403: DevopsDevOpsError;
100629
+ /**
100630
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
100631
+ */
100632
+ 404: DevopsDevOpsError;
100633
+ /**
100634
+ * DEFAULT_BRANCH_EXISTS means the default branch is already there; it is never moved by this call.
100635
+ */
100636
+ 409: DevopsDevOpsError;
100637
+ /**
100638
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
100639
+ */
100640
+ 500: DevopsDevOpsError;
100641
+ };
100642
+ export type DevopsProjectsInitializeDefaultBranchError = DevopsProjectsInitializeDefaultBranchErrors[keyof DevopsProjectsInitializeDefaultBranchErrors];
100643
+ export type DevopsProjectsInitializeDefaultBranchResponses = {
100644
+ /**
100645
+ * The default branch now exists: its name, the branch it was started from and the commit it points at.
100646
+ */
100647
+ 200: DevopsDefaultBranchInitialized;
100648
+ };
100649
+ export type DevopsProjectsInitializeDefaultBranchResponse = DevopsProjectsInitializeDefaultBranchResponses[keyof DevopsProjectsInitializeDefaultBranchResponses];
98247
100650
  export type DevopsProjectsGetData = {
98248
100651
  body?: never;
98249
100652
  path: {
@@ -98563,6 +100966,10 @@ export type DevopsPromotionsListData = {
98563
100966
  * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
98564
100967
  */
98565
100968
  pageToken?: string;
100969
+ /**
100970
+ * true lists only the forced expresses (promotions created with dependencies skip), which is how a reviewer finds them after the fact; false lists only the others; omit it for every promotion.
100971
+ */
100972
+ forced?: boolean;
98566
100973
  };
98567
100974
  url: '/devops/v1/projects/{project}/promotions';
98568
100975
  };
@@ -98753,7 +101160,7 @@ export type DevopsPromotionsRetryErrors = {
98753
101160
  */
98754
101161
  404: DevopsDevOpsError;
98755
101162
  /**
98756
- * ROLLOUT_NOT_HALTED or PROMOTION_ALREADY_FINISHED means there is nothing to continue: the promotion is still running, or it ended. Read it to see which of the two, and cancel a running one instead if that is the intent.
101163
+ * PROMOTION_NOT_RETRYABLE means this promotion has nothing to continue (its message names the state and what to do instead: cancel a running one to stop it, or promote the release again). PROMOTION_RUN_STILL_RUNNING means the halted attempt's run has not stopped yet — it was asked to cancel and the retry created nothing, because planning its targets now would deploy them a second time; read the promotion again shortly, or wait for the queue's own deadline to end the halted run.
98757
101164
  */
98758
101165
  409: DevopsDevOpsError;
98759
101166
  /**
@@ -98814,6 +101221,55 @@ export type DevopsPromotionsConcludeResponses = {
98814
101221
  200: DevopsPromotion;
98815
101222
  };
98816
101223
  export type DevopsPromotionsConcludeResponse = DevopsPromotionsConcludeResponses[keyof DevopsPromotionsConcludeResponses];
101224
+ export type DevopsPromotionsCheckoutCredentialData = {
101225
+ body?: never;
101226
+ path: {
101227
+ /**
101228
+ * The promotion identifier returned by a promotion list or create answer.
101229
+ */
101230
+ id: string;
101231
+ };
101232
+ query?: never;
101233
+ url: '/devops/v1/promotions/{id}:checkoutCredential';
101234
+ };
101235
+ export type DevopsPromotionsCheckoutCredentialErrors = {
101236
+ /**
101237
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
101238
+ */
101239
+ 400: DevopsDevOpsError;
101240
+ /**
101241
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
101242
+ */
101243
+ 401: DevopsDevOpsError;
101244
+ /**
101245
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
101246
+ */
101247
+ 403: DevopsDevOpsError;
101248
+ /**
101249
+ * PROMOTION_NOT_FOUND means no promotion with that id exists in this organization; list the project's promotions and use an id from that answer.
101250
+ */
101251
+ 404: DevopsDevOpsError;
101252
+ /**
101253
+ * PROMOTION_NOT_RUNNING means the promotion is not in a state where a deploy machine runs, so there is nothing to fetch for; read the promotion to see its state. SOURCE_NOT_PLATFORM means the project's code is on GitHub, which has no checkout credential from this call.
101254
+ */
101255
+ 409: DevopsDevOpsError;
101256
+ /**
101257
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
101258
+ */
101259
+ 500: DevopsDevOpsError;
101260
+ /**
101261
+ * REGISTRY_UNAVAILABLE means the platform's Git registry would not issue a credential just now; the machine retries the request shortly.
101262
+ */
101263
+ 502: DevopsDevOpsError;
101264
+ };
101265
+ export type DevopsPromotionsCheckoutCredentialError = DevopsPromotionsCheckoutCredentialErrors[keyof DevopsPromotionsCheckoutCredentialErrors];
101266
+ export type DevopsPromotionsCheckoutCredentialResponses = {
101267
+ /**
101268
+ * The clone URL and a pull-only credential for that repository, valid until expireTime. Treat password as a secret: hand it to git through a credential helper and never print or store it.
101269
+ */
101270
+ 200: DevopsCheckoutCredential;
101271
+ };
101272
+ export type DevopsPromotionsCheckoutCredentialResponse = DevopsPromotionsCheckoutCredentialResponses[keyof DevopsPromotionsCheckoutCredentialResponses];
98817
101273
  export type DevopsRolloutsListData = {
98818
101274
  body?: never;
98819
101275
  path: {
@@ -100232,7 +102688,7 @@ export type DevopsChangesOpenPullRequestErrors = {
100232
102688
  export type DevopsChangesOpenPullRequestError = DevopsChangesOpenPullRequestErrors[keyof DevopsChangesOpenPullRequestErrors];
100233
102689
  export type DevopsChangesOpenPullRequestResponses = {
100234
102690
  /**
100235
- * The pull request for the change's branch: its number, its link, whether this call opened it, and whether it rewrote an already open one.
102691
+ * The pull request for the change's branch: its id, number, link, whether this call opened it, and whether it rewrote an already open one.
100236
102692
  */
100237
102693
  200: DevopsChangePullRequestOpened;
100238
102694
  };
@@ -100307,6 +102763,10 @@ export type DevopsPullRequestsListData = {
100307
102763
  * A GitHub login to build the "waiting on me" list: only pull requests where that person is a requested reviewer and has not answered yet are returned. Somebody who already approved, requested changes or commented is no longer waiting on, so they do not appear.
100308
102764
  */
100309
102765
  reviewer?: string;
102766
+ /**
102767
+ * Review is after-the-fact sampling (Sean 2026-11-24). false lists the pull requests nobody has recorded a review verdict for — send it with filter state=merged to get the merged pull requests still waiting for a sample; true lists the ones that have a review. Omit it to ignore reviews.
102768
+ */
102769
+ reviewed?: boolean;
100310
102770
  };
100311
102771
  url: '/devops/v1/projects/{project}/pull-requests';
100312
102772
  };
@@ -100456,7 +102916,7 @@ export type DevopsPullRequestsMergeErrors = {
100456
102916
  */
100457
102917
  404: DevopsDevOpsError;
100458
102918
  /**
100459
- * GATE_NOT_PASSED when the gate has not passed at the current head, PULL_REQUEST_NOT_OPEN when the pull request is not open, HEAD_MOVED when its head moved past the commit the gate decided on, or MERGE_REFUSED when GitHub refuses the merge for its own reason (a conflict, or a check of GitHub's that is not green) — the message carries its words.
102919
+ * GATE_NOT_PASSED when the gate has not passed at the current head, PULL_REQUEST_NOT_OPEN when the pull request is not open, HEAD_MOVED when its head moved past the commit the gate decided on, or MERGE_REFUSED when GitHub refuses the merge for its own reason (a conflict, or a check of GitHub's that is not green) — the message carries its words. On our own Git the failures of the write itself are named too: GIT_AUTH_FAILED (the repository refused the credential DevOps wrote with), GIT_NOT_FAST_FORWARD (the base kept moving), GIT_CONFLICT, GIT_WRITE_FAILED for any other git failure — each carries git's words with credentials masked — and PLATFORM_UNSUPPORTED for something our own Git cannot do yet.
100460
102920
  */
100461
102921
  409: DevopsDevOpsError;
100462
102922
  /**
@@ -100508,7 +102968,7 @@ export type DevopsPullRequestsRecordVerdictErrors = {
100508
102968
  export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
100509
102969
  export type DevopsPullRequestsRecordVerdictResponses = {
100510
102970
  /**
100511
- * The pull request with the gate it now reaches, the exposure-judged check showing the verdict and its reason.
102971
+ * The pull request with the review recorded on it; its gate is unchanged.
100512
102972
  */
100513
102973
  200: DevopsPullRequest;
100514
102974
  };
@@ -100558,6 +103018,51 @@ export type DevopsPullRequestsCloseResponses = {
100558
103018
  200: DevopsPullRequest;
100559
103019
  };
100560
103020
  export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
103021
+ export type DevopsPullRequestsReviewsCreateData = {
103022
+ body: DevopsPullRequestReviewRequest;
103023
+ path: {
103024
+ /**
103025
+ * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
103026
+ */
103027
+ id: string;
103028
+ };
103029
+ query?: never;
103030
+ url: '/devops/v1/pull-requests/{id}/reviews';
103031
+ };
103032
+ export type DevopsPullRequestsReviewsCreateErrors = {
103033
+ /**
103034
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
103035
+ */
103036
+ 400: DevopsDevOpsError;
103037
+ /**
103038
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
103039
+ */
103040
+ 401: DevopsDevOpsError;
103041
+ /**
103042
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
103043
+ */
103044
+ 403: DevopsDevOpsError;
103045
+ /**
103046
+ * PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
103047
+ */
103048
+ 404: DevopsDevOpsError;
103049
+ /**
103050
+ * PULL_REQUEST_NOT_OPEN when the pull request is merged or closed: nothing was recorded.
103051
+ */
103052
+ 409: DevopsDevOpsError;
103053
+ /**
103054
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
103055
+ */
103056
+ 500: DevopsDevOpsError;
103057
+ };
103058
+ export type DevopsPullRequestsReviewsCreateError = DevopsPullRequestsReviewsCreateErrors[keyof DevopsPullRequestsReviewsCreateErrors];
103059
+ export type DevopsPullRequestsReviewsCreateResponses = {
103060
+ /**
103061
+ * The pull request as it now stands: your entry in reviewers carries the state you gave, and the gate is the one decided after it.
103062
+ */
103063
+ 200: DevopsPullRequest;
103064
+ };
103065
+ export type DevopsPullRequestsReviewsCreateResponse = DevopsPullRequestsReviewsCreateResponses[keyof DevopsPullRequestsReviewsCreateResponses];
100561
103066
  export type DevopsConnectionsListData = {
100562
103067
  body?: never;
100563
103068
  path?: never;
@@ -101016,7 +103521,7 @@ export type DevopsWorkspacesGetData = {
101016
103521
  */
101017
103522
  project: string;
101018
103523
  /**
101019
- * The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units.
103524
+ * The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units.
101020
103525
  */
101021
103526
  stage: DevopsWorkspaceStage;
101022
103527
  };
@@ -101061,7 +103566,7 @@ export type DevopsWorkspacesUpdateData = {
101061
103566
  */
101062
103567
  project: string;
101063
103568
  /**
101064
- * The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units.
103569
+ * The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units.
101065
103570
  */
101066
103571
  stage: DevopsWorkspaceStage;
101067
103572
  };
@@ -101205,6 +103710,56 @@ export type DevopsUnitsCreateResponses = {
101205
103710
  200: DevopsUnit;
101206
103711
  };
101207
103712
  export type DevopsUnitsCreateResponse = DevopsUnitsCreateResponses[keyof DevopsUnitsCreateResponses];
103713
+ export type DevopsCleanupsListData = {
103714
+ body?: never;
103715
+ path: {
103716
+ /**
103717
+ * Identifies the project whose data you are reading, from the project list or create answer.
103718
+ */
103719
+ project: string;
103720
+ };
103721
+ query?: {
103722
+ /**
103723
+ * How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
103724
+ */
103725
+ pageSize?: number;
103726
+ /**
103727
+ * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
103728
+ */
103729
+ pageToken?: string;
103730
+ };
103731
+ url: '/devops/v1/projects/{project}/cleanups';
103732
+ };
103733
+ export type DevopsCleanupsListErrors = {
103734
+ /**
103735
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
103736
+ */
103737
+ 400: DevopsDevOpsError;
103738
+ /**
103739
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
103740
+ */
103741
+ 401: DevopsDevOpsError;
103742
+ /**
103743
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
103744
+ */
103745
+ 403: DevopsDevOpsError;
103746
+ /**
103747
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
103748
+ */
103749
+ 404: DevopsDevOpsError;
103750
+ /**
103751
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
103752
+ */
103753
+ 500: DevopsDevOpsError;
103754
+ };
103755
+ export type DevopsCleanupsListError = DevopsCleanupsListErrors[keyof DevopsCleanupsListErrors];
103756
+ export type DevopsCleanupsListResponses = {
103757
+ /**
103758
+ * One page of the project's cleanup ledger, newest decision first.
103759
+ */
103760
+ 200: DevopsCleanupPage;
103761
+ };
103762
+ export type DevopsCleanupsListResponse = DevopsCleanupsListResponses[keyof DevopsCleanupsListResponses];
101208
103763
  export type DevopsUnitsDeleteData = {
101209
103764
  body?: never;
101210
103765
  path: {
@@ -108145,9 +110700,9 @@ export type RegistryRepositoriesPackagesListResponses = {
108145
110700
  export type RegistryRepositoriesPackagesListResponse = RegistryRepositoriesPackagesListResponses[keyof RegistryRepositoriesPackagesListResponses];
108146
110701
  export type RegistryRepositoriesPackagesCreateData = {
108147
110702
  /**
108148
- * 要发布的包和它的第一个版本;archive 与 files 二选一。
110703
+ * oci 库发布技能或插件用 multipart(archive 与 files 二选一);git 库建 git 仓库用 JSON。
108149
110704
  */
108150
- body: RegistryPublishInput;
110705
+ body: RegistryCreateGitPackageInput;
108151
110706
  path: {
108152
110707
  /**
108153
110708
  * 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
@@ -108190,7 +110745,7 @@ export type RegistryRepositoriesPackagesCreateErrors = {
108190
110745
  export type RegistryRepositoriesPackagesCreateError = RegistryRepositoriesPackagesCreateErrors[keyof RegistryRepositoriesPackagesCreateErrors];
108191
110746
  export type RegistryRepositoriesPackagesCreateResponses = {
108192
110747
  /**
108193
- * 建好的包,latest_version 是刚发布的版本号。
110748
+ * 建好的包。技能和插件的 latest_version 是刚发布的版本号;git 包带 clone_url、default_branch 和 protected_refs。
108194
110749
  */
108195
110750
  201: RegistryPackage;
108196
110751
  };
@@ -108330,6 +110885,50 @@ export type RegistryPackagesVersionsCreateResponses = {
108330
110885
  201: RegistryVersion;
108331
110886
  };
108332
110887
  export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
110888
+ export type RegistryPackagesGitCredentialCreateData = {
110889
+ /**
110890
+ * 要的权限和有效期。
110891
+ */
110892
+ body: RegistryGitCredentialInput;
110893
+ path: {
110894
+ /**
110895
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
110896
+ */
110897
+ package_id: string;
110898
+ };
110899
+ query?: never;
110900
+ url: '/registry/v1/packages/{package_id}/git-credential';
110901
+ };
110902
+ export type RegistryPackagesGitCredentialCreateErrors = {
110903
+ /**
110904
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
110905
+ */
110906
+ 400: RegistryRegistryError;
110907
+ /**
110908
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
110909
+ */
110910
+ 401: RegistryRegistryError;
110911
+ /**
110912
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
110913
+ */
110914
+ 404: RegistryRegistryError;
110915
+ /**
110916
+ * FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
110917
+ */
110918
+ 409: RegistryRegistryError;
110919
+ /**
110920
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
110921
+ */
110922
+ 500: RegistryRegistryError;
110923
+ };
110924
+ export type RegistryPackagesGitCredentialCreateError = RegistryPackagesGitCredentialCreateErrors[keyof RegistryPackagesGitCredentialCreateErrors];
110925
+ export type RegistryPackagesGitCredentialCreateResponses = {
110926
+ /**
110927
+ * 新签发的凭据,含克隆地址、固定用户名、密码和过期时间。
110928
+ */
110929
+ 201: RegistryGitCredential;
110930
+ };
110931
+ export type RegistryPackagesGitCredentialCreateResponse = RegistryPackagesGitCredentialCreateResponses[keyof RegistryPackagesGitCredentialCreateResponses];
108333
110932
  export type RegistryGitLogData = {
108334
110933
  body?: never;
108335
110934
  path: {
@@ -108396,7 +110995,12 @@ export type RegistryGitCommitsRetrieveData = {
108396
110995
  */
108397
110996
  sha: string;
108398
110997
  };
108399
- query?: never;
110998
+ query?: {
110999
+ /**
111000
+ * 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
111001
+ */
111002
+ changed_files?: boolean;
111003
+ };
108400
111004
  url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
108401
111005
  };
108402
111006
  export type RegistryGitCommitsRetrieveErrors = {
@@ -108426,7 +111030,7 @@ export type RegistryGitCommitsRetrieveResponses = {
108426
111030
  /**
108427
111031
  * 这个提交。
108428
111032
  */
108429
- 200: RegistryGitCommit;
111033
+ 200: RegistryGitCommitDetail;
108430
111034
  };
108431
111035
  export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
108432
111036
  export type RegistryGitTreesRetrieveData = {
@@ -108474,6 +111078,201 @@ export type RegistryGitTreesRetrieveResponses = {
108474
111078
  200: RegistryGitTree;
108475
111079
  };
108476
111080
  export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
111081
+ export type RegistryGitRefsData = {
111082
+ body?: never;
111083
+ path: {
111084
+ /**
111085
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111086
+ */
111087
+ package_id: string;
111088
+ };
111089
+ query?: {
111090
+ /**
111091
+ * 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
111092
+ */
111093
+ prefix?: 'refs/heads/' | 'refs/tags/';
111094
+ /**
111095
+ * 页码,从 1 起,默认 1。
111096
+ */
111097
+ page?: number;
111098
+ /**
111099
+ * 这一页最多返回多少个引用,1 到 500,默认 100。
111100
+ */
111101
+ size?: number;
111102
+ };
111103
+ url: '/registry/v1/packages/{package_id}/git/refs';
111104
+ };
111105
+ export type RegistryGitRefsErrors = {
111106
+ /**
111107
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111108
+ */
111109
+ 400: RegistryRegistryError;
111110
+ /**
111111
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111112
+ */
111113
+ 401: RegistryRegistryError;
111114
+ /**
111115
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111116
+ */
111117
+ 404: RegistryRegistryError;
111118
+ /**
111119
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111120
+ */
111121
+ 500: RegistryRegistryError;
111122
+ /**
111123
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111124
+ */
111125
+ 503: RegistryRegistryError;
111126
+ };
111127
+ export type RegistryGitRefsError = RegistryGitRefsErrors[keyof RegistryGitRefsErrors];
111128
+ export type RegistryGitRefsResponses = {
111129
+ /**
111130
+ * 分支和标签的一页。
111131
+ */
111132
+ 200: RegistryGitRefs;
111133
+ };
111134
+ export type RegistryGitRefsResponse = RegistryGitRefsResponses[keyof RegistryGitRefsResponses];
111135
+ export type RegistryGitResolveData = {
111136
+ body?: never;
111137
+ path: {
111138
+ /**
111139
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111140
+ */
111141
+ package_id: string;
111142
+ };
111143
+ query: {
111144
+ /**
111145
+ * 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
111146
+ */
111147
+ ref: string;
111148
+ };
111149
+ url: '/registry/v1/packages/{package_id}/git/resolve';
111150
+ };
111151
+ export type RegistryGitResolveErrors = {
111152
+ /**
111153
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111154
+ */
111155
+ 400: RegistryRegistryError;
111156
+ /**
111157
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111158
+ */
111159
+ 401: RegistryRegistryError;
111160
+ /**
111161
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111162
+ */
111163
+ 404: RegistryRegistryError;
111164
+ /**
111165
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111166
+ */
111167
+ 500: RegistryRegistryError;
111168
+ /**
111169
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111170
+ */
111171
+ 503: RegistryRegistryError;
111172
+ };
111173
+ export type RegistryGitResolveError = RegistryGitResolveErrors[keyof RegistryGitResolveErrors];
111174
+ export type RegistryGitResolveResponses = {
111175
+ /**
111176
+ * 这个引用指向的提交。
111177
+ */
111178
+ 200: RegistryGitResolvedRef;
111179
+ };
111180
+ export type RegistryGitResolveResponse = RegistryGitResolveResponses[keyof RegistryGitResolveResponses];
111181
+ export type RegistryGitCompareData = {
111182
+ body?: never;
111183
+ path: {
111184
+ /**
111185
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111186
+ */
111187
+ package_id: string;
111188
+ };
111189
+ query: {
111190
+ /**
111191
+ * 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
111192
+ */
111193
+ base: string;
111194
+ /**
111195
+ * 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
111196
+ */
111197
+ head: string;
111198
+ };
111199
+ url: '/registry/v1/packages/{package_id}/git/compare';
111200
+ };
111201
+ export type RegistryGitCompareErrors = {
111202
+ /**
111203
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111204
+ */
111205
+ 400: RegistryRegistryError;
111206
+ /**
111207
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111208
+ */
111209
+ 401: RegistryRegistryError;
111210
+ /**
111211
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111212
+ */
111213
+ 404: RegistryRegistryError;
111214
+ /**
111215
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111216
+ */
111217
+ 500: RegistryRegistryError;
111218
+ /**
111219
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111220
+ */
111221
+ 503: RegistryRegistryError;
111222
+ };
111223
+ export type RegistryGitCompareError = RegistryGitCompareErrors[keyof RegistryGitCompareErrors];
111224
+ export type RegistryGitCompareResponses = {
111225
+ /**
111226
+ * 两个引用的关系、改动的文件和多出的提交。
111227
+ */
111228
+ 200: RegistryGitComparison;
111229
+ };
111230
+ export type RegistryGitCompareResponse = RegistryGitCompareResponses[keyof RegistryGitCompareResponses];
111231
+ export type RegistryGitTreesRecursiveData = {
111232
+ body?: never;
111233
+ path: {
111234
+ /**
111235
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
111236
+ */
111237
+ package_id: string;
111238
+ /**
111239
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
111240
+ */
111241
+ sha: string;
111242
+ };
111243
+ query?: never;
111244
+ url: '/registry/v1/packages/{package_id}/git/trees/{sha}/recursive';
111245
+ };
111246
+ export type RegistryGitTreesRecursiveErrors = {
111247
+ /**
111248
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
111249
+ */
111250
+ 400: RegistryRegistryError;
111251
+ /**
111252
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
111253
+ */
111254
+ 401: RegistryRegistryError;
111255
+ /**
111256
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
111257
+ */
111258
+ 404: RegistryRegistryError;
111259
+ /**
111260
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
111261
+ */
111262
+ 500: RegistryRegistryError;
111263
+ /**
111264
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
111265
+ */
111266
+ 503: RegistryRegistryError;
111267
+ };
111268
+ export type RegistryGitTreesRecursiveError = RegistryGitTreesRecursiveErrors[keyof RegistryGitTreesRecursiveErrors];
111269
+ export type RegistryGitTreesRecursiveResponses = {
111270
+ /**
111271
+ * 这个对象下的全部条目。
111272
+ */
111273
+ 200: RegistryGitTreeRecursive;
111274
+ };
111275
+ export type RegistryGitTreesRecursiveResponse = RegistryGitTreesRecursiveResponses[keyof RegistryGitTreesRecursiveResponses];
108477
111276
  export type RegistryGitFilesRetrieveData = {
108478
111277
  body?: never;
108479
111278
  path: {