@deepraxis/sdk 0.1.1-dev.7b675c8 → 0.1.1-dev.7bd666d
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.
- package/METHODS.md +105 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +200 -24
- package/dist/generated/sdk.gen.js +554 -25
- package/dist/generated/types.gen.d.ts +3055 -539
- package/dist/operations.generated.d.ts +1 -0
- package/dist/operations.generated.js +1240 -104
- package/dist/resources.generated.d.ts +127 -63
- package/dist/resources.generated.js +61 -0
- package/package.json +1 -1
|
@@ -1934,50 +1934,45 @@ export type AgentSseEvent = ({
|
|
|
1934
1934
|
*/
|
|
1935
1935
|
event?: 'user.tool_confirmation';
|
|
1936
1936
|
/**
|
|
1937
|
-
*
|
|
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
|
-
*
|
|
1941
|
+
* Unique identifier for this event.
|
|
1942
1942
|
*/
|
|
1943
1943
|
id: string;
|
|
1944
1944
|
/**
|
|
1945
|
-
*
|
|
1945
|
+
* UserToolConfirmationResult enum
|
|
1946
1946
|
*/
|
|
1947
|
-
|
|
1947
|
+
result: 'allow' | 'deny';
|
|
1948
1948
|
/**
|
|
1949
|
-
*
|
|
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
|
-
|
|
1954
|
+
tool_use_id: string;
|
|
1952
1955
|
/**
|
|
1953
|
-
* The
|
|
1956
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
1954
1957
|
*/
|
|
1955
|
-
|
|
1958
|
+
type: 'user.tool_confirmation';
|
|
1956
1959
|
/**
|
|
1957
|
-
*
|
|
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
|
-
|
|
1962
|
+
deny_message?: string;
|
|
1960
1963
|
/**
|
|
1961
|
-
*
|
|
1964
|
+
* A timestamp in RFC 3339 format
|
|
1962
1965
|
*/
|
|
1963
|
-
|
|
1964
|
-
[key: string]: string;
|
|
1965
|
-
};
|
|
1966
|
+
processed_at?: null | string;
|
|
1966
1967
|
/**
|
|
1967
|
-
*
|
|
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
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
preview?: string;
|
|
1975
|
-
/**
|
|
1976
|
-
* Free text the user added to their choice.
|
|
1977
|
-
*/
|
|
1978
|
-
notes?: string;
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1971
|
+
session_thread_id?: null | string;
|
|
1972
|
+
/**
|
|
1973
|
+
* With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
|
|
1974
|
+
*/
|
|
1975
|
+
permission_mode?: 'yolo';
|
|
1981
1976
|
};
|
|
1982
1977
|
} | {
|
|
1983
1978
|
/**
|
|
@@ -7785,6 +7780,243 @@ export type OrganizationReviseKeyResultRequest = {
|
|
|
7785
7780
|
*/
|
|
7786
7781
|
done?: boolean;
|
|
7787
7782
|
};
|
|
7783
|
+
/**
|
|
7784
|
+
* Which subject a spec describes; the organization is addressed by its own id and every other kind by that subject's id.
|
|
7785
|
+
*/
|
|
7786
|
+
export type OrganizationSpecKind = 'organization' | 'department' | 'level' | 'job' | 'position' | 'assignment';
|
|
7787
|
+
/**
|
|
7788
|
+
* One page of specs.
|
|
7789
|
+
*/
|
|
7790
|
+
export type OrganizationSpecList = {
|
|
7791
|
+
/**
|
|
7792
|
+
* Specs on this page.
|
|
7793
|
+
*/
|
|
7794
|
+
data: Array<OrganizationSpec>;
|
|
7795
|
+
/**
|
|
7796
|
+
* Whether another page is available after this one.
|
|
7797
|
+
*/
|
|
7798
|
+
has_more: boolean;
|
|
7799
|
+
/**
|
|
7800
|
+
* Cursor to pass as page to read the next page; null when no more items remain.
|
|
7801
|
+
*/
|
|
7802
|
+
next_page: string | null;
|
|
7803
|
+
};
|
|
7804
|
+
/**
|
|
7805
|
+
* The live spec of one subject; a subject never written answers revision 0 with an empty body.
|
|
7806
|
+
*/
|
|
7807
|
+
export type OrganizationSpec = {
|
|
7808
|
+
kind: OrganizationSpecKind;
|
|
7809
|
+
/**
|
|
7810
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
7811
|
+
*/
|
|
7812
|
+
id: string;
|
|
7813
|
+
/**
|
|
7814
|
+
* Live revision, 0 until the first write and raised by one on every revise; send it as expected_revision.
|
|
7815
|
+
*/
|
|
7816
|
+
revision: number;
|
|
7817
|
+
/**
|
|
7818
|
+
* The spec body: a map from block name to block value, stored and returned verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
|
|
7819
|
+
*/
|
|
7820
|
+
spec: {
|
|
7821
|
+
[key: string]: unknown;
|
|
7822
|
+
};
|
|
7823
|
+
/**
|
|
7824
|
+
* UTC instant (RFC 3339) of the latest revision; null when the subject never had a spec written.
|
|
7825
|
+
*/
|
|
7826
|
+
update_time: string | null;
|
|
7827
|
+
/**
|
|
7828
|
+
* Actor address that wrote the latest revision (human:usr_... or agent:agent_...); null until the first write.
|
|
7829
|
+
*/
|
|
7830
|
+
updated_by: string | null;
|
|
7831
|
+
};
|
|
7832
|
+
/**
|
|
7833
|
+
* The whole new spec of one subject, replacing the previous one.
|
|
7834
|
+
*/
|
|
7835
|
+
export type OrganizationReviseSpecRequest = {
|
|
7836
|
+
/**
|
|
7837
|
+
* The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one.
|
|
7838
|
+
*/
|
|
7839
|
+
expected_revision: number;
|
|
7840
|
+
/**
|
|
7841
|
+
* The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
|
|
7842
|
+
*/
|
|
7843
|
+
spec: {
|
|
7844
|
+
[key: string]: unknown;
|
|
7845
|
+
};
|
|
7846
|
+
};
|
|
7847
|
+
/**
|
|
7848
|
+
* One page of a subject's spec revisions, newest first.
|
|
7849
|
+
*/
|
|
7850
|
+
export type OrganizationSpecRevisionList = {
|
|
7851
|
+
/**
|
|
7852
|
+
* Revisions on this page, newest first.
|
|
7853
|
+
*/
|
|
7854
|
+
data: Array<OrganizationSpecRevision>;
|
|
7855
|
+
/**
|
|
7856
|
+
* Whether another page is available after this one.
|
|
7857
|
+
*/
|
|
7858
|
+
has_more: boolean;
|
|
7859
|
+
/**
|
|
7860
|
+
* Cursor to pass as page to read the next page; null when no more items remain.
|
|
7861
|
+
*/
|
|
7862
|
+
next_page: string | null;
|
|
7863
|
+
};
|
|
7864
|
+
/**
|
|
7865
|
+
* The changes between two revisions of one subject's spec; an empty changes array means the two revisions are equal.
|
|
7866
|
+
*/
|
|
7867
|
+
export type OrganizationSpecDiff = {
|
|
7868
|
+
kind: OrganizationSpecKind;
|
|
7869
|
+
/**
|
|
7870
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
7871
|
+
*/
|
|
7872
|
+
id: string;
|
|
7873
|
+
/**
|
|
7874
|
+
* The earlier revision that was compared from; 0 is the empty spec before the first write.
|
|
7875
|
+
*/
|
|
7876
|
+
from: number;
|
|
7877
|
+
/**
|
|
7878
|
+
* The later revision that was compared to.
|
|
7879
|
+
*/
|
|
7880
|
+
to: number;
|
|
7881
|
+
/**
|
|
7882
|
+
* The differences found, in path order.
|
|
7883
|
+
*/
|
|
7884
|
+
changes: Array<OrganizationSpecChange>;
|
|
7885
|
+
};
|
|
7886
|
+
/**
|
|
7887
|
+
* The merged spec of one seat or actor - the one configuration that actually applies when every layer is reconciled.
|
|
7888
|
+
*/
|
|
7889
|
+
export type OrganizationEffectiveSpec = {
|
|
7890
|
+
/**
|
|
7891
|
+
* Actor address the result is for (human:usr_... or agent:agent_...); null when the query was by position_id and the seat is vacant.
|
|
7892
|
+
*/
|
|
7893
|
+
actor: string | null;
|
|
7894
|
+
/**
|
|
7895
|
+
* The holder kind the merge was made for, given or derived from the seat's holder.
|
|
7896
|
+
*/
|
|
7897
|
+
holder_kind: 'agent' | 'human';
|
|
7898
|
+
/**
|
|
7899
|
+
* Every seat the result covers; the primary seat, if any, comes first.
|
|
7900
|
+
*/
|
|
7901
|
+
seats: Array<{
|
|
7902
|
+
/**
|
|
7903
|
+
* Position id (pos_...) of this seat.
|
|
7904
|
+
*/
|
|
7905
|
+
position_id: string;
|
|
7906
|
+
/**
|
|
7907
|
+
* Assignment id (asg_...) holding the seat; null while the seat is vacant.
|
|
7908
|
+
*/
|
|
7909
|
+
assignment_id: string | null;
|
|
7910
|
+
/**
|
|
7911
|
+
* Whether this is the actor's primary seat, whose values win a clash.
|
|
7912
|
+
*/
|
|
7913
|
+
primary: boolean;
|
|
7914
|
+
/**
|
|
7915
|
+
* The spec layers merged for this seat, least specific first.
|
|
7916
|
+
*/
|
|
7917
|
+
layers: Array<OrganizationSpecLayerRef>;
|
|
7918
|
+
}>;
|
|
7919
|
+
/**
|
|
7920
|
+
* The document of every layer, each layer once; duplicates of the same layer are dropped.
|
|
7921
|
+
*/
|
|
7922
|
+
documents: Array<OrganizationSpecDocument>;
|
|
7923
|
+
/**
|
|
7924
|
+
* The merged capability blocks: a map from block name to the value the chain resolved to. Blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
|
|
7925
|
+
*/
|
|
7926
|
+
spec: {
|
|
7927
|
+
[key: string]: unknown;
|
|
7928
|
+
};
|
|
7929
|
+
/**
|
|
7930
|
+
* Where each merged value came from, keyed by the path inside the spec (such as agent.model or repositories[github:org/repo]).
|
|
7931
|
+
*/
|
|
7932
|
+
origins: {
|
|
7933
|
+
[key: string]: string;
|
|
7934
|
+
};
|
|
7935
|
+
/**
|
|
7936
|
+
* Blocks this holder kind does not take and that were skipped without error, such as agent-only blocks for a human holder.
|
|
7937
|
+
*/
|
|
7938
|
+
skipped: Array<string>;
|
|
7939
|
+
/**
|
|
7940
|
+
* Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
|
|
7941
|
+
*/
|
|
7942
|
+
violations: Array<string>;
|
|
7943
|
+
};
|
|
7944
|
+
/**
|
|
7945
|
+
* What a dry run of the reconciler would do for one holder, without changing anything.
|
|
7946
|
+
*/
|
|
7947
|
+
export type OrganizationReconcilePlan = {
|
|
7948
|
+
/**
|
|
7949
|
+
* Actor address the plan is for (agent:agent_... or human:usr_...).
|
|
7950
|
+
*/
|
|
7951
|
+
actor: string;
|
|
7952
|
+
/**
|
|
7953
|
+
* The holder kind the merge was made for, derived from the actor address.
|
|
7954
|
+
*/
|
|
7955
|
+
holder_kind: 'agent' | 'human';
|
|
7956
|
+
/**
|
|
7957
|
+
* One action per block the plan considered, in block order.
|
|
7958
|
+
*/
|
|
7959
|
+
actions: Array<OrganizationReconcileAction>;
|
|
7960
|
+
/**
|
|
7961
|
+
* Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
|
|
7962
|
+
*/
|
|
7963
|
+
violations: Array<string>;
|
|
7964
|
+
};
|
|
7965
|
+
/**
|
|
7966
|
+
* The reconciler's last result for one holder.
|
|
7967
|
+
*/
|
|
7968
|
+
export type OrganizationReconcileStatus = {
|
|
7969
|
+
/**
|
|
7970
|
+
* Actor address this status is for (agent:agent_... or human:usr_...).
|
|
7971
|
+
*/
|
|
7972
|
+
actor: string;
|
|
7973
|
+
/**
|
|
7974
|
+
* Whether the sweep is paused for this holder.
|
|
7975
|
+
*/
|
|
7976
|
+
paused: boolean;
|
|
7977
|
+
/**
|
|
7978
|
+
* The seats and layer revisions the last run applied; empty before the first run.
|
|
7979
|
+
*/
|
|
7980
|
+
observed: Array<{
|
|
7981
|
+
/**
|
|
7982
|
+
* Position id (pos_...) of this seat.
|
|
7983
|
+
*/
|
|
7984
|
+
position_id: string;
|
|
7985
|
+
/**
|
|
7986
|
+
* Assignment id (asg_...) holding the seat; null while the seat is vacant.
|
|
7987
|
+
*/
|
|
7988
|
+
assignment_id: string | null;
|
|
7989
|
+
/**
|
|
7990
|
+
* Whether this is the actor's primary seat, whose values win a clash.
|
|
7991
|
+
*/
|
|
7992
|
+
primary: boolean;
|
|
7993
|
+
/**
|
|
7994
|
+
* The spec layers merged for this seat, least specific first.
|
|
7995
|
+
*/
|
|
7996
|
+
layers: Array<OrganizationSpecLayerRef>;
|
|
7997
|
+
}>;
|
|
7998
|
+
/**
|
|
7999
|
+
* One row per capability block and the state it is in.
|
|
8000
|
+
*/
|
|
8001
|
+
items: Array<OrganizationReconcileItem>;
|
|
8002
|
+
/**
|
|
8003
|
+
* Where what is applied differs from what the specs want; empty when nothing has drifted.
|
|
8004
|
+
*/
|
|
8005
|
+
drift: Array<OrganizationReconcileDrift>;
|
|
8006
|
+
/**
|
|
8007
|
+
* UTC instant (RFC 3339) of the last run that applied changes; null when the holder was never reconciled.
|
|
8008
|
+
*/
|
|
8009
|
+
applied_at: string | null;
|
|
8010
|
+
};
|
|
8011
|
+
/**
|
|
8012
|
+
* The holder to reconcile.
|
|
8013
|
+
*/
|
|
8014
|
+
export type OrganizationReconcileActorRequest = {
|
|
8015
|
+
/**
|
|
8016
|
+
* Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged.
|
|
8017
|
+
*/
|
|
8018
|
+
actor: string;
|
|
8019
|
+
};
|
|
7788
8020
|
export type SandboxSandboxDetail = {
|
|
7789
8021
|
/**
|
|
7790
8022
|
* Identifier of the template from which is the sandbox created
|
|
@@ -9780,9 +10012,9 @@ export type ApplicationGrant = {
|
|
|
9780
10012
|
/**
|
|
9781
10013
|
* Resource type.
|
|
9782
10014
|
*/
|
|
9783
|
-
type: 'database' | '
|
|
10015
|
+
type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'content' | 'feedback';
|
|
9784
10016
|
/**
|
|
9785
|
-
*
|
|
10017
|
+
* ID of the granted resource; * for models and whole-service types.
|
|
9786
10018
|
*/
|
|
9787
10019
|
id: string;
|
|
9788
10020
|
};
|
|
@@ -9807,9 +10039,9 @@ export type ApplicationCreateGrantInput = {
|
|
|
9807
10039
|
/**
|
|
9808
10040
|
* Resource type.
|
|
9809
10041
|
*/
|
|
9810
|
-
type: 'database' | '
|
|
10042
|
+
type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'content' | 'feedback';
|
|
9811
10043
|
/**
|
|
9812
|
-
*
|
|
10044
|
+
* ID of the granted resource in your organization; * for models and whole-service types.
|
|
9813
10045
|
*/
|
|
9814
10046
|
id: string;
|
|
9815
10047
|
};
|
|
@@ -16345,7 +16577,7 @@ export type DevopsReportUploadRequest = {
|
|
|
16345
16577
|
*/
|
|
16346
16578
|
reportId: string;
|
|
16347
16579
|
/**
|
|
16348
|
-
* What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and
|
|
16580
|
+
* What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and is filed as evidence for each package it fully covers, which the merge gate and later stages read by the package's input hash. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence.
|
|
16349
16581
|
*/
|
|
16350
16582
|
purpose?: 'evidence' | 'feedback';
|
|
16351
16583
|
/**
|
|
@@ -16419,23 +16651,61 @@ export type DevopsTestPlan = {
|
|
|
16419
16651
|
* One entry per required package, sorted by directory. Empty only when selection is nothing or failed.
|
|
16420
16652
|
*/
|
|
16421
16653
|
packages: Array<DevopsTestPlanPackage>;
|
|
16654
|
+
/**
|
|
16655
|
+
* Every feature scenario of the affected packages at the gate's sizes, sorted by package and title, each with whether this diff requires it and what evidence answers it. This is the finer reading of packages: a merge asks for evidence only on the required cases.
|
|
16656
|
+
*/
|
|
16657
|
+
cases: Array<DevopsTestPlanCase>;
|
|
16658
|
+
/**
|
|
16659
|
+
* Present only for view summary: one row per package that has cases, counting its cases. required is what this diff requires evidence for, unaffected is what it does not reach, and of the required ones evidenced have a passing row at their deps hash, missing have none and failed have a newest failing row (required = evidenced + missing + failed). In this view cases lists the required cases only.
|
|
16660
|
+
*/
|
|
16661
|
+
caseCounts?: Array<DevopsTestPlanCaseCounts>;
|
|
16422
16662
|
/**
|
|
16423
16663
|
* The changed paths the ownership rule could not place, present only when selection is failed. Fix the rule or the paths: with no package named over paths that were not judged none, neither a pass nor a run is the truth.
|
|
16424
16664
|
*/
|
|
16425
16665
|
failedPaths?: Array<string>;
|
|
16426
16666
|
};
|
|
16427
16667
|
/**
|
|
16428
|
-
*
|
|
16668
|
+
* A new project: its name and, for a project with code, where the code lives.
|
|
16429
16669
|
*/
|
|
16430
|
-
export type
|
|
16670
|
+
export type DevopsProjectCreate = {
|
|
16431
16671
|
/**
|
|
16432
|
-
*
|
|
16672
|
+
* Kebab-case name, unique within the organization.
|
|
16433
16673
|
*/
|
|
16434
|
-
|
|
16674
|
+
name: string;
|
|
16435
16675
|
/**
|
|
16436
|
-
*
|
|
16676
|
+
* What the project is for, in your own words.
|
|
16437
16677
|
*/
|
|
16438
|
-
|
|
16678
|
+
description?: string;
|
|
16679
|
+
/**
|
|
16680
|
+
* Where the code lives: github (the default) or platform, a git package of our own Git.
|
|
16681
|
+
*/
|
|
16682
|
+
provider?: 'github' | 'platform';
|
|
16683
|
+
/**
|
|
16684
|
+
* provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository.
|
|
16685
|
+
*/
|
|
16686
|
+
package?: string;
|
|
16687
|
+
/**
|
|
16688
|
+
* provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then.
|
|
16689
|
+
*/
|
|
16690
|
+
initialRef?: string;
|
|
16691
|
+
/**
|
|
16692
|
+
* provider github only: the connection of a completed GitHub App install that can see the repository.
|
|
16693
|
+
*/
|
|
16694
|
+
connection?: string;
|
|
16695
|
+
/**
|
|
16696
|
+
* provider github only: the repository as owner/name.
|
|
16697
|
+
*/
|
|
16698
|
+
repository?: string;
|
|
16699
|
+
/**
|
|
16700
|
+
* Delivery settings; keys you leave out take their defaults.
|
|
16701
|
+
*/
|
|
16702
|
+
settings?: {
|
|
16703
|
+
[key: string]: unknown;
|
|
16704
|
+
};
|
|
16705
|
+
/**
|
|
16706
|
+
* Idempotency key: repeat the call with the same value to be given the same answer.
|
|
16707
|
+
*/
|
|
16708
|
+
requestId?: string;
|
|
16439
16709
|
};
|
|
16440
16710
|
/**
|
|
16441
16711
|
* One delivery project — the unit a release, a promotion and a flag all belong to.
|
|
@@ -16481,6 +16751,49 @@ export type DevopsProject = {
|
|
|
16481
16751
|
[key: string]: string;
|
|
16482
16752
|
};
|
|
16483
16753
|
};
|
|
16754
|
+
/**
|
|
16755
|
+
* One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
|
|
16756
|
+
*/
|
|
16757
|
+
export type DevopsProjectPage = {
|
|
16758
|
+
/**
|
|
16759
|
+
* The projects on this page, ordered by creation time descending; a project of another organization is never among them.
|
|
16760
|
+
*/
|
|
16761
|
+
items: Array<DevopsProject>;
|
|
16762
|
+
/**
|
|
16763
|
+
* Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
|
|
16764
|
+
*/
|
|
16765
|
+
nextPageToken: string;
|
|
16766
|
+
/**
|
|
16767
|
+
* How many undeleted projects the caller's own organization has: 0 means the organization has none yet, not that the read returned nothing. Visible means visible to the credential's organization — the count filters rows by organization_id and is not a permission check, so it says nothing about what the caller may be granted. It is the organization's total across all pages, never this page's length: while paging it is at least the length of items, and equal on the first page when every project fits. Always present, so items: [] together with visibleProjects: 0 is an answer rather than an empty response to guess at; an organization without projects still answers 200.
|
|
16768
|
+
*/
|
|
16769
|
+
visibleProjects: number;
|
|
16770
|
+
};
|
|
16771
|
+
/**
|
|
16772
|
+
* Where to start the default branch.
|
|
16773
|
+
*/
|
|
16774
|
+
export type DevopsDefaultBranchInitialize = {
|
|
16775
|
+
/**
|
|
16776
|
+
* An existing branch of the repository, for example import. The default branch is created at its head.
|
|
16777
|
+
*/
|
|
16778
|
+
from: string;
|
|
16779
|
+
};
|
|
16780
|
+
/**
|
|
16781
|
+
* The default branch that now exists.
|
|
16782
|
+
*/
|
|
16783
|
+
export type DevopsDefaultBranchInitialized = {
|
|
16784
|
+
/**
|
|
16785
|
+
* The default branch the project declares, now created.
|
|
16786
|
+
*/
|
|
16787
|
+
defaultBranch: string;
|
|
16788
|
+
/**
|
|
16789
|
+
* The branch it was started from.
|
|
16790
|
+
*/
|
|
16791
|
+
from: string;
|
|
16792
|
+
/**
|
|
16793
|
+
* The commit the default branch points at, the head of from when it was read.
|
|
16794
|
+
*/
|
|
16795
|
+
commit: string;
|
|
16796
|
+
};
|
|
16484
16797
|
/**
|
|
16485
16798
|
* A patch to a project; only the fields named in updateMask are written.
|
|
16486
16799
|
*/
|
|
@@ -16527,6 +16840,7 @@ export type DevopsProjectUpdate = {
|
|
|
16527
16840
|
* Whether the merge gate is a required check on the git host.
|
|
16528
16841
|
*/
|
|
16529
16842
|
requireGate?: boolean;
|
|
16843
|
+
gate?: DevopsGatePolicy;
|
|
16530
16844
|
/**
|
|
16531
16845
|
* Who publishes this project: mise (the default when absent) keeps the Mise pipeline; devops hands releases to the DevOps pipeline once the merge is done.
|
|
16532
16846
|
*/
|
|
@@ -16706,6 +17020,10 @@ export type DevopsPromotionCreate = {
|
|
|
16706
17020
|
*/
|
|
16707
17021
|
reason: string;
|
|
16708
17022
|
}>;
|
|
17023
|
+
/**
|
|
17024
|
+
* 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.
|
|
17025
|
+
*/
|
|
17026
|
+
dependencies?: 'include' | 'skip';
|
|
16709
17027
|
/**
|
|
16710
17028
|
* 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.
|
|
16711
17029
|
*/
|
|
@@ -16759,6 +17077,14 @@ export type DevopsPromotion = {
|
|
|
16759
17077
|
* How this promotion came about; it decides which gates apply, so read it before judging a refusal.
|
|
16760
17078
|
*/
|
|
16761
17079
|
path: 'regular' | 'patch' | 'targeted' | 'rollback';
|
|
17080
|
+
/**
|
|
17081
|
+
* 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.
|
|
17082
|
+
*/
|
|
17083
|
+
dependencies?: 'skip';
|
|
17084
|
+
/**
|
|
17085
|
+
* 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.
|
|
17086
|
+
*/
|
|
17087
|
+
skippedDependencies?: Array<string>;
|
|
16762
17088
|
/**
|
|
16763
17089
|
* 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.
|
|
16764
17090
|
*/
|
|
@@ -16786,6 +17112,10 @@ export type DevopsPromotion = {
|
|
|
16786
17112
|
verification?: Array<DevopsVerificationInfo>;
|
|
16787
17113
|
observation?: DevopsObservation;
|
|
16788
17114
|
executor?: DevopsPromotionExecutor;
|
|
17115
|
+
/**
|
|
17116
|
+
* 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.
|
|
17117
|
+
*/
|
|
17118
|
+
lane?: 'main' | 'async';
|
|
16789
17119
|
/**
|
|
16790
17120
|
* The promotion that replaced this one, present only when state is superseded; read it to follow the work to where it went.
|
|
16791
17121
|
*/
|
|
@@ -16857,6 +17187,27 @@ export type DevopsPromotionConcludeRequest = {
|
|
|
16857
17187
|
*/
|
|
16858
17188
|
reason: string;
|
|
16859
17189
|
};
|
|
17190
|
+
/**
|
|
17191
|
+
* 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.
|
|
17192
|
+
*/
|
|
17193
|
+
export type DevopsCheckoutCredential = {
|
|
17194
|
+
/**
|
|
17195
|
+
* 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.
|
|
17196
|
+
*/
|
|
17197
|
+
cloneUrl: string;
|
|
17198
|
+
/**
|
|
17199
|
+
* The user name git sends with the password.
|
|
17200
|
+
*/
|
|
17201
|
+
username: string;
|
|
17202
|
+
/**
|
|
17203
|
+
* A secret: the pull credential. It reads this one repository and nothing else, and stops working at expireTime. Never print or store it.
|
|
17204
|
+
*/
|
|
17205
|
+
password: string;
|
|
17206
|
+
/**
|
|
17207
|
+
* RFC 3339 UTC time the credential stops working, 15 minutes after it was issued. Ask again for a new one rather than extending.
|
|
17208
|
+
*/
|
|
17209
|
+
expireTime: string;
|
|
17210
|
+
};
|
|
16860
17211
|
/**
|
|
16861
17212
|
* One page of a promotion's rollouts, in plan order.
|
|
16862
17213
|
*/
|
|
@@ -16965,9 +17316,13 @@ export type DevopsEnvironmentUpdate = {
|
|
|
16965
17316
|
* Suffix such as -develop that this environment adds to site hostnames, or null for none.
|
|
16966
17317
|
*/
|
|
16967
17318
|
domainSuffix?: string | null;
|
|
17319
|
+
/**
|
|
17320
|
+
* 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.
|
|
17321
|
+
*/
|
|
17322
|
+
stage?: 'integration' | 'release';
|
|
16968
17323
|
};
|
|
16969
17324
|
/**
|
|
16970
|
-
* Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries.
|
|
17325
|
+
* Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries.
|
|
16971
17326
|
*/
|
|
16972
17327
|
updateMask?: Array<string>;
|
|
16973
17328
|
};
|
|
@@ -17008,7 +17363,11 @@ export type DevopsEnvironment = {
|
|
|
17008
17363
|
*/
|
|
17009
17364
|
tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
|
|
17010
17365
|
/**
|
|
17011
|
-
*
|
|
17366
|
+
* 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.
|
|
17367
|
+
*/
|
|
17368
|
+
stage: 'integration' | 'release';
|
|
17369
|
+
/**
|
|
17370
|
+
* Position in the promotion sequence, starting at 1 and contiguous. A release-stage environment needs the release deployed in every integration-stage environment, wherever they sit in the order.
|
|
17012
17371
|
*/
|
|
17013
17372
|
order: number;
|
|
17014
17373
|
/**
|
|
@@ -17640,6 +17999,10 @@ export type DevopsChangeOpenPullRequestRequest = {
|
|
|
17640
17999
|
* The pull request for a change's branch.
|
|
17641
18000
|
*/
|
|
17642
18001
|
export type DevopsChangePullRequestOpened = {
|
|
18002
|
+
/**
|
|
18003
|
+
* 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.
|
|
18004
|
+
*/
|
|
18005
|
+
id?: string;
|
|
17643
18006
|
/**
|
|
17644
18007
|
* The pull request's number on the git host.
|
|
17645
18008
|
*/
|
|
@@ -17662,7 +18025,11 @@ export type DevopsChangePullRequestOpened = {
|
|
|
17662
18025
|
*/
|
|
17663
18026
|
export type DevopsChangeGitCredential = {
|
|
17664
18027
|
/**
|
|
17665
|
-
* The
|
|
18028
|
+
* 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.
|
|
18029
|
+
*/
|
|
18030
|
+
url: string;
|
|
18031
|
+
/**
|
|
18032
|
+
* The user name the source host requires with the token (GitHub App installation tokens use `x-access-token`).
|
|
17666
18033
|
*/
|
|
17667
18034
|
username: string;
|
|
17668
18035
|
/**
|
|
@@ -17801,7 +18168,7 @@ export type DevopsPullRequest = {
|
|
|
17801
18168
|
kind: 'user' | 'agent' | 'bot';
|
|
17802
18169
|
};
|
|
17803
18170
|
/**
|
|
17804
|
-
*
|
|
18171
|
+
* The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
|
|
17805
18172
|
*/
|
|
17806
18173
|
mergeableState: string;
|
|
17807
18174
|
/**
|
|
@@ -17891,6 +18258,7 @@ export type DevopsPullRequest = {
|
|
|
17891
18258
|
time?: string;
|
|
17892
18259
|
}>;
|
|
17893
18260
|
};
|
|
18261
|
+
review?: DevopsReviewVerdict;
|
|
17894
18262
|
/**
|
|
17895
18263
|
* The commit it landed as, present only once it is merged.
|
|
17896
18264
|
*/
|
|
@@ -17926,7 +18294,7 @@ export type DevopsPullRequestMergeRequest = {
|
|
|
17926
18294
|
requestId?: string;
|
|
17927
18295
|
};
|
|
17928
18296
|
/**
|
|
17929
|
-
* A
|
|
18297
|
+
* A reviewer's verdict on a pull request, recorded against one commit, after the fact; the merge gate never waits for it.
|
|
17930
18298
|
*/
|
|
17931
18299
|
export type DevopsPullRequestVerdictRequest = {
|
|
17932
18300
|
/**
|
|
@@ -17955,6 +18323,19 @@ export type DevopsPullRequestCloseRequest = {
|
|
|
17955
18323
|
*/
|
|
17956
18324
|
reason: string;
|
|
17957
18325
|
};
|
|
18326
|
+
/**
|
|
18327
|
+
* Your verdict on a pull request that lives on the platform's own Git.
|
|
18328
|
+
*/
|
|
18329
|
+
export type DevopsPullRequestReviewRequest = {
|
|
18330
|
+
/**
|
|
18331
|
+
* The verdict. A value outside this set is refused with INVALID_ARGUMENT.
|
|
18332
|
+
*/
|
|
18333
|
+
state: 'approved' | 'changes_requested' | 'commented';
|
|
18334
|
+
/**
|
|
18335
|
+
* 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.
|
|
18336
|
+
*/
|
|
18337
|
+
body?: string;
|
|
18338
|
+
};
|
|
17958
18339
|
/**
|
|
17959
18340
|
* One page of an organization's connections.
|
|
17960
18341
|
*/
|
|
@@ -18188,7 +18569,7 @@ export type DevopsSegmentUpdate = {
|
|
|
18188
18569
|
*/
|
|
18189
18570
|
export type DevopsWorkspaceList = {
|
|
18190
18571
|
/**
|
|
18191
|
-
* The project's workspaces, development first, then integration, then
|
|
18572
|
+
* The project's workspaces, development first, then integration, then release.
|
|
18192
18573
|
*/
|
|
18193
18574
|
items: Array<DevopsWorkspace>;
|
|
18194
18575
|
};
|
|
@@ -18325,9 +18706,9 @@ export type DevopsUnit = {
|
|
|
18325
18706
|
transitions?: Array<DevopsUnitTransition>;
|
|
18326
18707
|
};
|
|
18327
18708
|
/**
|
|
18328
|
-
* Where in the delivery line a workspace or unit sits: development merges changes, integration deploys and finds problems,
|
|
18709
|
+
* Where in the delivery line a workspace or unit sits: development merges changes, integration deploys every merge and finds problems, release deploys and serves steadily (Sean 2026-11-24: development, integration, release).
|
|
18329
18710
|
*/
|
|
18330
|
-
export type DevopsWorkspaceStage = 'development' | 'integration' | '
|
|
18711
|
+
export type DevopsWorkspaceStage = 'development' | 'integration' | 'release';
|
|
18331
18712
|
/**
|
|
18332
18713
|
* The phase a unit was last observed in; it is an observed fact, not the request, so it changes as the sandbox answers.
|
|
18333
18714
|
*/
|
|
@@ -18349,6 +18730,23 @@ export type DevopsUnitPage = {
|
|
|
18349
18730
|
*/
|
|
18350
18731
|
nextPageToken: string;
|
|
18351
18732
|
};
|
|
18733
|
+
/**
|
|
18734
|
+
* One page of a project's cleanup ledger, newest decision first.
|
|
18735
|
+
*/
|
|
18736
|
+
export type DevopsCleanupPage = {
|
|
18737
|
+
/**
|
|
18738
|
+
* The ledger rows on this page.
|
|
18739
|
+
*/
|
|
18740
|
+
items: Array<DevopsCleanupEntry>;
|
|
18741
|
+
/**
|
|
18742
|
+
* How many rows the project's ledger holds across every page; returned on the first page only.
|
|
18743
|
+
*/
|
|
18744
|
+
totalSize?: number;
|
|
18745
|
+
/**
|
|
18746
|
+
* Cursor for the next page; an empty string means this was the last page.
|
|
18747
|
+
*/
|
|
18748
|
+
nextPageToken: string;
|
|
18749
|
+
};
|
|
18352
18750
|
/**
|
|
18353
18751
|
* A field the unit retrieve can inline; only the values listed are accepted, and any other value is refused with INVALID_ARGUMENT.
|
|
18354
18752
|
*/
|
|
@@ -19391,6 +19789,10 @@ export type MediaAsset = {
|
|
|
19391
19789
|
* 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.
|
|
19392
19790
|
*/
|
|
19393
19791
|
segments?: number;
|
|
19792
|
+
/**
|
|
19793
|
+
* 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.
|
|
19794
|
+
*/
|
|
19795
|
+
duration?: number;
|
|
19394
19796
|
};
|
|
19395
19797
|
};
|
|
19396
19798
|
};
|
|
@@ -21088,6 +21490,10 @@ export type RegistryCreateRepositoryInput = {
|
|
|
21088
21490
|
* 库的说明;省略时不写。
|
|
21089
21491
|
*/
|
|
21090
21492
|
description?: string;
|
|
21493
|
+
/**
|
|
21494
|
+
* 库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。
|
|
21495
|
+
*/
|
|
21496
|
+
format?: 'oci' | 'git';
|
|
21091
21497
|
};
|
|
21092
21498
|
/**
|
|
21093
21499
|
* 一个库:组织里包的分类容器。每个组织有一个 is_default 为 true 的默认库。
|
|
@@ -21117,6 +21523,10 @@ export type RegistryRepository = {
|
|
|
21117
21523
|
* 是否这个组织的默认库;自动创建、不能删除,新包在没有指定库时进这里。
|
|
21118
21524
|
*/
|
|
21119
21525
|
is_default: boolean;
|
|
21526
|
+
/**
|
|
21527
|
+
* 库里放什么;oci 放技能和插件,git 放 git 仓库;建库时定下,之后不能改。
|
|
21528
|
+
*/
|
|
21529
|
+
format: 'oci' | 'git';
|
|
21120
21530
|
/**
|
|
21121
21531
|
* 库里当前的包数量;非零时这个库不能删。
|
|
21122
21532
|
*/
|
|
@@ -21202,6 +21612,44 @@ export type RegistryPublishInput = {
|
|
|
21202
21612
|
*/
|
|
21203
21613
|
tags?: string;
|
|
21204
21614
|
};
|
|
21615
|
+
/**
|
|
21616
|
+
* 在 git 库里建 git 包的 JSON 请求体;name 和 format 必填。
|
|
21617
|
+
*/
|
|
21618
|
+
export type RegistryCreateGitPackageInput = {
|
|
21619
|
+
/**
|
|
21620
|
+
* 包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。
|
|
21621
|
+
*/
|
|
21622
|
+
name: string;
|
|
21623
|
+
/**
|
|
21624
|
+
* 建的包是什么;JSON 请求只能建 git 包,所以固定为 git。
|
|
21625
|
+
*/
|
|
21626
|
+
format: 'git';
|
|
21627
|
+
/**
|
|
21628
|
+
* 默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。
|
|
21629
|
+
*/
|
|
21630
|
+
default_branch?: string;
|
|
21631
|
+
/**
|
|
21632
|
+
* 仓库的说明;省略时为空。
|
|
21633
|
+
*/
|
|
21634
|
+
description?: string;
|
|
21635
|
+
/**
|
|
21636
|
+
* 从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。
|
|
21637
|
+
*/
|
|
21638
|
+
import?: {
|
|
21639
|
+
/**
|
|
21640
|
+
* 要导入的公开仓库地址,必须是 https,匿名可读;私有仓库不支持。
|
|
21641
|
+
*/
|
|
21642
|
+
url: string;
|
|
21643
|
+
/**
|
|
21644
|
+
* 只导入这个分支;省略则按远端的默认分支。
|
|
21645
|
+
*/
|
|
21646
|
+
branch?: string;
|
|
21647
|
+
/**
|
|
21648
|
+
* 浅导入的提交深度;省略则导入完整历史。
|
|
21649
|
+
*/
|
|
21650
|
+
depth?: number;
|
|
21651
|
+
};
|
|
21652
|
+
};
|
|
21205
21653
|
/**
|
|
21206
21654
|
* 一个包:库里的一个技能或插件,带它的最新版本和累计下载量。
|
|
21207
21655
|
*/
|
|
@@ -21223,9 +21671,9 @@ export type RegistryPackage = {
|
|
|
21223
21671
|
*/
|
|
21224
21672
|
name: string;
|
|
21225
21673
|
/**
|
|
21226
|
-
*
|
|
21674
|
+
* 包的种类;技能、插件,或 git 仓库。
|
|
21227
21675
|
*/
|
|
21228
|
-
kind: 'skill' | 'plugin';
|
|
21676
|
+
kind: 'skill' | 'plugin' | 'git';
|
|
21229
21677
|
/**
|
|
21230
21678
|
* 给人看的标题;来自上传内容或发布时的 title,没有时是 null。
|
|
21231
21679
|
*/
|
|
@@ -21250,6 +21698,22 @@ export type RegistryPackage = {
|
|
|
21250
21698
|
* 这个包 archive 下载的累计次数,每次 archive 调用加一。
|
|
21251
21699
|
*/
|
|
21252
21700
|
downloads: number;
|
|
21701
|
+
/**
|
|
21702
|
+
* 只有 git 包才有这个字段,固定为 git;技能和插件没有。
|
|
21703
|
+
*/
|
|
21704
|
+
format?: 'git';
|
|
21705
|
+
/**
|
|
21706
|
+
* 只有 git 包才有;git clone 和 git push 用的地址,在我们自己的域名下(registry.deepraxis.com/git/...),认证见 packages.git-credential。
|
|
21707
|
+
*/
|
|
21708
|
+
clone_url?: string;
|
|
21709
|
+
/**
|
|
21710
|
+
* 只有 git 包才有;默认分支名,建包时给,省略为 main。
|
|
21711
|
+
*/
|
|
21712
|
+
default_branch?: string;
|
|
21713
|
+
/**
|
|
21714
|
+
* 只有 git 包才有;受保护的分支或标签,不能用普通凭据更新或删除,默认只保护默认分支;用 PATCH 改。
|
|
21715
|
+
*/
|
|
21716
|
+
protected_refs?: Array<string>;
|
|
21253
21717
|
/**
|
|
21254
21718
|
* 包首次发布的时刻,ISO 8601 UTC。
|
|
21255
21719
|
*/
|
|
@@ -21309,6 +21773,44 @@ export type RegistryVersion = {
|
|
|
21309
21773
|
*/
|
|
21310
21774
|
create_time: string;
|
|
21311
21775
|
};
|
|
21776
|
+
/**
|
|
21777
|
+
* 换 git 凭据的请求体;只有 access 必填。
|
|
21778
|
+
*/
|
|
21779
|
+
export type RegistryGitCredentialInput = {
|
|
21780
|
+
/**
|
|
21781
|
+
* 凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。
|
|
21782
|
+
*/
|
|
21783
|
+
access: 'pull' | 'push' | 'push-protected';
|
|
21784
|
+
/**
|
|
21785
|
+
* 凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。
|
|
21786
|
+
*/
|
|
21787
|
+
ttl_seconds?: number;
|
|
21788
|
+
};
|
|
21789
|
+
/**
|
|
21790
|
+
* 一个签发好的 git 凭据:用 HTTP Basic 的用户名和密码访问 url。
|
|
21791
|
+
*/
|
|
21792
|
+
export type RegistryGitCredential = {
|
|
21793
|
+
/**
|
|
21794
|
+
* 对象类型标记,固定为 registry.git_credential。
|
|
21795
|
+
*/
|
|
21796
|
+
object: string;
|
|
21797
|
+
/**
|
|
21798
|
+
* 这个包的 git 地址,克隆和推送都用它,不含凭据。
|
|
21799
|
+
*/
|
|
21800
|
+
url: string;
|
|
21801
|
+
/**
|
|
21802
|
+
* HTTP Basic 的用户名,固定为 x-access-token。
|
|
21803
|
+
*/
|
|
21804
|
+
username: 'x-access-token';
|
|
21805
|
+
/**
|
|
21806
|
+
* HTTP Basic 的密码,一个到 expires_at 失效的凭据;敏感,只在这个响应里给出,不要写进日志、提交或 clone 后保留的 remote 地址。
|
|
21807
|
+
*/
|
|
21808
|
+
password: string;
|
|
21809
|
+
/**
|
|
21810
|
+
* 凭据失效的时刻,ISO 8601 UTC;过期后重新调用 git-credential。
|
|
21811
|
+
*/
|
|
21812
|
+
expires_at: string;
|
|
21813
|
+
};
|
|
21312
21814
|
/**
|
|
21313
21815
|
* 一段提交历史。
|
|
21314
21816
|
*/
|
|
@@ -21331,9 +21833,9 @@ export type RegistryGitLog = {
|
|
|
21331
21833
|
has_more: boolean;
|
|
21332
21834
|
};
|
|
21333
21835
|
/**
|
|
21334
|
-
* 一个 git
|
|
21836
|
+
* 一个 git 提交,需要时连同它改动的文件。
|
|
21335
21837
|
*/
|
|
21336
|
-
export type
|
|
21838
|
+
export type RegistryGitCommitDetail = {
|
|
21337
21839
|
/**
|
|
21338
21840
|
* 对象类型标记,固定为 registry.git.commit。
|
|
21339
21841
|
*/
|
|
@@ -21362,6 +21864,14 @@ export type RegistryGitCommit = {
|
|
|
21362
21864
|
* 父提交的对象 id,按顺序。
|
|
21363
21865
|
*/
|
|
21364
21866
|
parents: Array<string>;
|
|
21867
|
+
/**
|
|
21868
|
+
* 相对第一个父提交改动的文件;只在请求带 changed_files=true 时才有。
|
|
21869
|
+
*/
|
|
21870
|
+
changed_files?: Array<RegistryGitChangedFile>;
|
|
21871
|
+
/**
|
|
21872
|
+
* changed_files 被上限截断时为 true,此时不要当作改动的全部;只在请求带 changed_files=true 时才有。
|
|
21873
|
+
*/
|
|
21874
|
+
changed_files_truncated?: boolean;
|
|
21365
21875
|
};
|
|
21366
21876
|
/**
|
|
21367
21877
|
* 一个树的条目清单。
|
|
@@ -21380,6 +21890,94 @@ export type RegistryGitTree = {
|
|
|
21380
21890
|
*/
|
|
21381
21891
|
entries: Array<RegistryGitTreeEntry>;
|
|
21382
21892
|
};
|
|
21893
|
+
/**
|
|
21894
|
+
* 一页分支和标签。
|
|
21895
|
+
*/
|
|
21896
|
+
export type RegistryGitRefs = {
|
|
21897
|
+
/**
|
|
21898
|
+
* 对象类型标记,固定为 registry.git.refs。
|
|
21899
|
+
*/
|
|
21900
|
+
object: string;
|
|
21901
|
+
/**
|
|
21902
|
+
* 这一页的引用,按名字排序。
|
|
21903
|
+
*/
|
|
21904
|
+
refs: Array<RegistryGitRefItem>;
|
|
21905
|
+
/**
|
|
21906
|
+
* 是否还有下一页(page 加 1 取下一页)。
|
|
21907
|
+
*/
|
|
21908
|
+
has_more: boolean;
|
|
21909
|
+
};
|
|
21910
|
+
/**
|
|
21911
|
+
* 一个引用换成的提交 id。
|
|
21912
|
+
*/
|
|
21913
|
+
export type RegistryGitResolvedRef = {
|
|
21914
|
+
/**
|
|
21915
|
+
* 对象类型标记,固定为 registry.git.resolved_ref。
|
|
21916
|
+
*/
|
|
21917
|
+
object: string;
|
|
21918
|
+
/**
|
|
21919
|
+
* 请求里的引用,原样返回。
|
|
21920
|
+
*/
|
|
21921
|
+
ref: string;
|
|
21922
|
+
/**
|
|
21923
|
+
* 这个引用指向的提交 id。
|
|
21924
|
+
*/
|
|
21925
|
+
sha: string;
|
|
21926
|
+
};
|
|
21927
|
+
/**
|
|
21928
|
+
* 两个引用的比较结果。
|
|
21929
|
+
*/
|
|
21930
|
+
export type RegistryGitComparison = {
|
|
21931
|
+
/**
|
|
21932
|
+
* 对象类型标记,固定为 registry.git.comparison。
|
|
21933
|
+
*/
|
|
21934
|
+
object: string;
|
|
21935
|
+
/**
|
|
21936
|
+
* head 相对 base 的关系。
|
|
21937
|
+
*/
|
|
21938
|
+
status: 'identical' | 'ahead' | 'behind' | 'diverged';
|
|
21939
|
+
/**
|
|
21940
|
+
* 找到的最近共同祖先的提交 id;没有找到(历史无关,或读取上限内没走到)时为 null。
|
|
21941
|
+
*/
|
|
21942
|
+
merge_base: string | null;
|
|
21943
|
+
/**
|
|
21944
|
+
* head 相对 merge_base 改动的文件;merge_base 为 null 时相对 base。
|
|
21945
|
+
*/
|
|
21946
|
+
files: Array<RegistryGitChangedFile>;
|
|
21947
|
+
/**
|
|
21948
|
+
* head 比 base 多出的提交,最新的在前。
|
|
21949
|
+
*/
|
|
21950
|
+
commits: Array<RegistryGitComparedCommit>;
|
|
21951
|
+
/**
|
|
21952
|
+
* 为 true 表示 files 被上限截断,或没找到 merge_base 而无法确定 files;此时不要当作完整结果。
|
|
21953
|
+
*/
|
|
21954
|
+
truncated: boolean;
|
|
21955
|
+
/**
|
|
21956
|
+
* 为 true 表示 commits 不完整(读取上限,或合并提交藏起了被合并分支上的提交);此时不要当作 head 多出的全部提交。
|
|
21957
|
+
*/
|
|
21958
|
+
commits_truncated: boolean;
|
|
21959
|
+
};
|
|
21960
|
+
/**
|
|
21961
|
+
* 一个提交或树下的全部条目。
|
|
21962
|
+
*/
|
|
21963
|
+
export type RegistryGitTreeRecursive = {
|
|
21964
|
+
/**
|
|
21965
|
+
* 对象类型标记,固定为 registry.git.tree_recursive。
|
|
21966
|
+
*/
|
|
21967
|
+
object: string;
|
|
21968
|
+
/**
|
|
21969
|
+
* 请求里读的提交或树对象 id,原样返回。
|
|
21970
|
+
*/
|
|
21971
|
+
sha: string;
|
|
21972
|
+
/**
|
|
21973
|
+
* 为 true 表示撞到条目或树读取上限,entries 只是前一部分,不是全部。
|
|
21974
|
+
*/
|
|
21975
|
+
truncated: boolean;
|
|
21976
|
+
/**
|
|
21977
|
+
* 全部条目,按路径排序,目录也在其中。
|
|
21978
|
+
*/
|
|
21979
|
+
entries: Array<RegistryGitTreeNode>;
|
|
21980
|
+
};
|
|
21383
21981
|
/**
|
|
21384
21982
|
* 一个版本的文件清单;文件不多,一次返回全部。
|
|
21385
21983
|
*/
|
|
@@ -21531,7 +22129,7 @@ export type SandboxNewSandboxV2 = {
|
|
|
21531
22129
|
*/
|
|
21532
22130
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
21533
22131
|
/**
|
|
21534
|
-
* 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.
|
|
22132
|
+
* 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.
|
|
21535
22133
|
*/
|
|
21536
22134
|
ephemeral?: boolean;
|
|
21537
22135
|
/**
|
|
@@ -21558,6 +22156,18 @@ export type SandboxNewSandboxV2 = {
|
|
|
21558
22156
|
* 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.
|
|
21559
22157
|
*/
|
|
21560
22158
|
idleActivity?: 'traffic' | 'caller';
|
|
22159
|
+
/**
|
|
22160
|
+
* 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.
|
|
22161
|
+
*/
|
|
22162
|
+
sku?: string;
|
|
22163
|
+
/**
|
|
22164
|
+
* 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.
|
|
22165
|
+
*/
|
|
22166
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
22167
|
+
/**
|
|
22168
|
+
* 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.
|
|
22169
|
+
*/
|
|
22170
|
+
interruptible?: boolean;
|
|
21561
22171
|
/**
|
|
21562
22172
|
* 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.
|
|
21563
22173
|
*/
|
|
@@ -26360,49 +26970,44 @@ export type AgentSseData = {
|
|
|
26360
26970
|
* 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.
|
|
26361
26971
|
*/
|
|
26362
26972
|
source?: 'app' | 'codemode';
|
|
26363
|
-
} | {
|
|
26973
|
+
} | (unknown & {
|
|
26364
26974
|
/**
|
|
26365
|
-
*
|
|
26975
|
+
* Unique identifier for this event.
|
|
26366
26976
|
*/
|
|
26367
26977
|
id: string;
|
|
26368
26978
|
/**
|
|
26369
|
-
*
|
|
26979
|
+
* UserToolConfirmationResult enum
|
|
26370
26980
|
*/
|
|
26371
|
-
|
|
26981
|
+
result: 'allow' | 'deny';
|
|
26372
26982
|
/**
|
|
26373
|
-
*
|
|
26983
|
+
* The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
|
|
26984
|
+
* corresponds to, which can be found in the last `session.status_idle`
|
|
26985
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
26986
|
+
* `stop_reason.event_ids` field.
|
|
26374
26987
|
*/
|
|
26375
|
-
|
|
26988
|
+
tool_use_id: string;
|
|
26376
26989
|
/**
|
|
26377
|
-
* The
|
|
26990
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
26378
26991
|
*/
|
|
26379
|
-
|
|
26992
|
+
type: 'user.tool_confirmation';
|
|
26993
|
+
/**
|
|
26994
|
+
* 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.
|
|
26995
|
+
*/
|
|
26996
|
+
deny_message?: string;
|
|
26380
26997
|
/**
|
|
26381
|
-
*
|
|
26998
|
+
* A timestamp in RFC 3339 format
|
|
26382
26999
|
*/
|
|
26383
|
-
|
|
27000
|
+
processed_at?: null | string;
|
|
26384
27001
|
/**
|
|
26385
|
-
*
|
|
27002
|
+
* Set by the server to the subagent thread this confirmation was routed to.
|
|
27003
|
+
* Omitted when it was routed to the primary thread.
|
|
26386
27004
|
*/
|
|
26387
|
-
|
|
26388
|
-
[key: string]: string;
|
|
26389
|
-
};
|
|
27005
|
+
session_thread_id?: null | string;
|
|
26390
27006
|
/**
|
|
26391
|
-
*
|
|
27007
|
+
* 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.
|
|
26392
27008
|
*/
|
|
26393
|
-
|
|
26394
|
-
|
|
26395
|
-
/**
|
|
26396
|
-
* The preview of the option the user chose.
|
|
26397
|
-
*/
|
|
26398
|
-
preview?: string;
|
|
26399
|
-
/**
|
|
26400
|
-
* Free text the user added to their choice.
|
|
26401
|
-
*/
|
|
26402
|
-
notes?: string;
|
|
26403
|
-
};
|
|
26404
|
-
};
|
|
26405
|
-
} | {
|
|
27009
|
+
permission_mode?: 'yolo';
|
|
27010
|
+
}) | {
|
|
26406
27011
|
/**
|
|
26407
27012
|
* Unique identifier for this event.
|
|
26408
27013
|
*/
|
|
@@ -31853,6 +32458,149 @@ export type OrganizationMetric = {
|
|
|
31853
32458
|
*/
|
|
31854
32459
|
unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
|
|
31855
32460
|
};
|
|
32461
|
+
/**
|
|
32462
|
+
* One stored revision of a subject's spec, kept for history.
|
|
32463
|
+
*/
|
|
32464
|
+
export type OrganizationSpecRevision = {
|
|
32465
|
+
kind: OrganizationSpecKind;
|
|
32466
|
+
/**
|
|
32467
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32468
|
+
*/
|
|
32469
|
+
id: string;
|
|
32470
|
+
/**
|
|
32471
|
+
* Revision number of this stored body, rising from 1; diff and get accept it as revision.
|
|
32472
|
+
*/
|
|
32473
|
+
revision: number;
|
|
32474
|
+
/**
|
|
32475
|
+
* The whole body as it was written at this revision, verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
|
|
32476
|
+
*/
|
|
32477
|
+
spec: {
|
|
32478
|
+
[key: string]: unknown;
|
|
32479
|
+
};
|
|
32480
|
+
/**
|
|
32481
|
+
* UTC instant (RFC 3339) when this revision was written.
|
|
32482
|
+
*/
|
|
32483
|
+
create_time: string;
|
|
32484
|
+
/**
|
|
32485
|
+
* Actor address that wrote this revision (human:usr_... or agent:agent_...).
|
|
32486
|
+
*/
|
|
32487
|
+
created_by: string;
|
|
32488
|
+
};
|
|
32489
|
+
/**
|
|
32490
|
+
* One difference between two revisions of a spec.
|
|
32491
|
+
*/
|
|
32492
|
+
export type OrganizationSpecChange = {
|
|
32493
|
+
/**
|
|
32494
|
+
* Path of the changed value inside the spec body, such as agent.model or repositories[github:org/repo].
|
|
32495
|
+
*/
|
|
32496
|
+
path: string;
|
|
32497
|
+
/**
|
|
32498
|
+
* What happened at this path between the two revisions.
|
|
32499
|
+
*/
|
|
32500
|
+
op: 'added' | 'removed' | 'changed';
|
|
32501
|
+
/**
|
|
32502
|
+
* The value at this path in the earlier revision, verbatim; absent when the value was added.
|
|
32503
|
+
*/
|
|
32504
|
+
before?: unknown;
|
|
32505
|
+
/**
|
|
32506
|
+
* The value at this path in the later revision, verbatim; absent when the value was removed.
|
|
32507
|
+
*/
|
|
32508
|
+
after?: unknown;
|
|
32509
|
+
};
|
|
32510
|
+
/**
|
|
32511
|
+
* One layer the effective spec was merged from, least specific first.
|
|
32512
|
+
*/
|
|
32513
|
+
export type OrganizationSpecLayerRef = {
|
|
32514
|
+
kind: OrganizationSpecKind;
|
|
32515
|
+
/**
|
|
32516
|
+
* The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32517
|
+
*/
|
|
32518
|
+
id: string;
|
|
32519
|
+
/**
|
|
32520
|
+
* Revision of that layer's spec at the time it was merged.
|
|
32521
|
+
*/
|
|
32522
|
+
revision: number;
|
|
32523
|
+
};
|
|
32524
|
+
/**
|
|
32525
|
+
* One document block collected from a layer of the effective spec, kept whole and never merged.
|
|
32526
|
+
*/
|
|
32527
|
+
export type OrganizationSpecDocument = {
|
|
32528
|
+
/**
|
|
32529
|
+
* The layer the document came from, as kind:id such as job:jpr_123.
|
|
32530
|
+
*/
|
|
32531
|
+
from: string;
|
|
32532
|
+
/**
|
|
32533
|
+
* Revision of that layer's spec the document was read at.
|
|
32534
|
+
*/
|
|
32535
|
+
revision: number;
|
|
32536
|
+
/**
|
|
32537
|
+
* The document text itself, inferred from memory rather than merged into the capability blocks.
|
|
32538
|
+
*/
|
|
32539
|
+
text: string;
|
|
32540
|
+
};
|
|
32541
|
+
/**
|
|
32542
|
+
* One action the reconciler would take for a block in a dry run.
|
|
32543
|
+
*/
|
|
32544
|
+
export type OrganizationReconcileAction = {
|
|
32545
|
+
/**
|
|
32546
|
+
* Name of the block this action is about, such as agent.
|
|
32547
|
+
*/
|
|
32548
|
+
block: string;
|
|
32549
|
+
/**
|
|
32550
|
+
* What the reconciler would do with this block.
|
|
32551
|
+
*/
|
|
32552
|
+
action: 'hold' | 'update' | 'none' | 'pending' | 'blocked';
|
|
32553
|
+
/**
|
|
32554
|
+
* The value the action would write, or the reason it is blocked, verbatim.
|
|
32555
|
+
*/
|
|
32556
|
+
detail: unknown;
|
|
32557
|
+
};
|
|
32558
|
+
/**
|
|
32559
|
+
* One capability block and the state the reconciler last left it in.
|
|
32560
|
+
*/
|
|
32561
|
+
export type OrganizationReconcileItem = {
|
|
32562
|
+
/**
|
|
32563
|
+
* Name of the capability block this row is about, such as agent or computer.
|
|
32564
|
+
*/
|
|
32565
|
+
block: string;
|
|
32566
|
+
/**
|
|
32567
|
+
* What the reconciler last did with this block.
|
|
32568
|
+
*/
|
|
32569
|
+
state: 'ready' | 'pending' | 'failed' | 'waiting_human' | 'paused';
|
|
32570
|
+
/**
|
|
32571
|
+
* The resource the block was applied to, such as agent:agent_... ; null before it is bound.
|
|
32572
|
+
*/
|
|
32573
|
+
binding: string | null;
|
|
32574
|
+
/**
|
|
32575
|
+
* Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
|
|
32576
|
+
*/
|
|
32577
|
+
message: string | null;
|
|
32578
|
+
};
|
|
32579
|
+
/**
|
|
32580
|
+
* One value where what is applied differs from what the specs want.
|
|
32581
|
+
*/
|
|
32582
|
+
export type OrganizationReconcileDrift = {
|
|
32583
|
+
/**
|
|
32584
|
+
* Name of the block the drifted value belongs to, such as agent.
|
|
32585
|
+
*/
|
|
32586
|
+
block: string;
|
|
32587
|
+
/**
|
|
32588
|
+
* Path of the value inside the block, such as model.
|
|
32589
|
+
*/
|
|
32590
|
+
field: string;
|
|
32591
|
+
/**
|
|
32592
|
+
* The value currently applied, verbatim; null when nothing is applied there yet.
|
|
32593
|
+
*/
|
|
32594
|
+
found: unknown;
|
|
32595
|
+
/**
|
|
32596
|
+
* The value the specs resolved to, verbatim.
|
|
32597
|
+
*/
|
|
32598
|
+
want: unknown;
|
|
32599
|
+
/**
|
|
32600
|
+
* UTC instant (RFC 3339) from which the drift has been observed.
|
|
32601
|
+
*/
|
|
32602
|
+
since: string;
|
|
32603
|
+
};
|
|
31856
32604
|
/**
|
|
31857
32605
|
* Your own string key/value pairs stored with the sandbox; usable as a filter in listSandboxes.
|
|
31858
32606
|
*/
|
|
@@ -35316,14 +36064,80 @@ export type DevopsTestPlanPackage = {
|
|
|
35316
36064
|
*/
|
|
35317
36065
|
run?: string;
|
|
35318
36066
|
};
|
|
36067
|
+
/**
|
|
36068
|
+
* 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.
|
|
36069
|
+
*/
|
|
36070
|
+
export type DevopsTestPlanCase = {
|
|
36071
|
+
/**
|
|
36072
|
+
* The case id as the catalog holds it; the unit evidence is filed under.
|
|
36073
|
+
*/
|
|
36074
|
+
case: string;
|
|
36075
|
+
/**
|
|
36076
|
+
* Repository-relative directory of the package the scenario lives in.
|
|
36077
|
+
*/
|
|
36078
|
+
package: string;
|
|
36079
|
+
/**
|
|
36080
|
+
* The scenario title, to name a failed or missing case to a person.
|
|
36081
|
+
*/
|
|
36082
|
+
title: string;
|
|
36083
|
+
/**
|
|
36084
|
+
* Whether this diff requires evidence for the case. Only required cases can hold a merge.
|
|
36085
|
+
*/
|
|
36086
|
+
required: boolean;
|
|
36087
|
+
/**
|
|
36088
|
+
* 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.
|
|
36089
|
+
*/
|
|
36090
|
+
reason: 'no-impact' | 'deps-changed' | 'always-affected' | 'unaffected';
|
|
36091
|
+
/**
|
|
36092
|
+
* 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.
|
|
36093
|
+
*/
|
|
36094
|
+
depsHash: string;
|
|
36095
|
+
/**
|
|
36096
|
+
* What the newest recorded result says at this deps hash: passed, failed, or missing when no run has recorded the case there.
|
|
36097
|
+
*/
|
|
36098
|
+
evidence: 'passed' | 'failed' | 'missing';
|
|
36099
|
+
/**
|
|
36100
|
+
* The run the answering result came from; absent when evidence is missing.
|
|
36101
|
+
*/
|
|
36102
|
+
run?: string;
|
|
36103
|
+
};
|
|
36104
|
+
/**
|
|
36105
|
+
* The case counts of one package in the summary view of a test plan.
|
|
36106
|
+
*/
|
|
36107
|
+
export type DevopsTestPlanCaseCounts = {
|
|
36108
|
+
/**
|
|
36109
|
+
* The package directory these counts are for.
|
|
36110
|
+
*/
|
|
36111
|
+
package: string;
|
|
36112
|
+
/**
|
|
36113
|
+
* Cases this diff requires evidence for; the merge asks for nothing else.
|
|
36114
|
+
*/
|
|
36115
|
+
required: number;
|
|
36116
|
+
/**
|
|
36117
|
+
* Cases this diff cannot affect, which need no evidence.
|
|
36118
|
+
*/
|
|
36119
|
+
unaffected: number;
|
|
36120
|
+
/**
|
|
36121
|
+
* Required cases that already have a passing row at their deps hash.
|
|
36122
|
+
*/
|
|
36123
|
+
evidenced: number;
|
|
36124
|
+
/**
|
|
36125
|
+
* Required cases with no evidence row at their deps hash.
|
|
36126
|
+
*/
|
|
36127
|
+
missing: number;
|
|
36128
|
+
/**
|
|
36129
|
+
* Required cases whose newest evidence at their deps hash failed.
|
|
36130
|
+
*/
|
|
36131
|
+
failed: number;
|
|
36132
|
+
};
|
|
35319
36133
|
/**
|
|
35320
36134
|
* The git repository a project is bound to, and how far the service's mirror of it has been read.
|
|
35321
36135
|
*/
|
|
35322
36136
|
export type DevopsRepositoryRef = {
|
|
35323
36137
|
/**
|
|
35324
|
-
* The git host serving this repository;
|
|
36138
|
+
* The git host serving this repository; the value decides how fullName is read.
|
|
35325
36139
|
*/
|
|
35326
|
-
provider: 'github';
|
|
36140
|
+
provider: 'github' | 'platform';
|
|
35327
36141
|
/**
|
|
35328
36142
|
* Owner and repository name as the git host spells them, which is what a person sees in a clone URL.
|
|
35329
36143
|
*/
|
|
@@ -35333,7 +36147,7 @@ export type DevopsRepositoryRef = {
|
|
|
35333
36147
|
*/
|
|
35334
36148
|
defaultBranch: string;
|
|
35335
36149
|
/**
|
|
35336
|
-
* The git host connection that authorizes reads of this repository;
|
|
36150
|
+
* 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.
|
|
35337
36151
|
*/
|
|
35338
36152
|
connection: string;
|
|
35339
36153
|
/**
|
|
@@ -35366,6 +36180,8 @@ export type DevopsProjectSettings = {
|
|
|
35366
36180
|
* 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.
|
|
35367
36181
|
*/
|
|
35368
36182
|
requireGate: boolean;
|
|
36183
|
+
gate?: DevopsGatePolicy;
|
|
36184
|
+
retention?: DevopsProjectRetention;
|
|
35369
36185
|
};
|
|
35370
36186
|
/**
|
|
35371
36187
|
* When the project cuts releases by itself, in a five-field cron and the zone it is read in.
|
|
@@ -35380,6 +36196,42 @@ export type DevopsReleaseSchedule = {
|
|
|
35380
36196
|
*/
|
|
35381
36197
|
timeZone: string;
|
|
35382
36198
|
};
|
|
36199
|
+
/**
|
|
36200
|
+
* 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.
|
|
36201
|
+
*/
|
|
36202
|
+
export type DevopsGatePolicy = {
|
|
36203
|
+
/**
|
|
36204
|
+
* 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.
|
|
36205
|
+
*/
|
|
36206
|
+
tests?: 'evidence' | 'off';
|
|
36207
|
+
/**
|
|
36208
|
+
* One rule per gate check: its mode (enforce counts it, evaluate shows it without counting, off hides it) and whether an unavailable check blocks.
|
|
36209
|
+
*/
|
|
36210
|
+
rules?: Array<{
|
|
36211
|
+
/**
|
|
36212
|
+
* The gate check this rule governs.
|
|
36213
|
+
*/
|
|
36214
|
+
check: string;
|
|
36215
|
+
/**
|
|
36216
|
+
* enforce counts the check toward the gate, evaluate records it without counting, off drops it.
|
|
36217
|
+
*/
|
|
36218
|
+
mode: 'enforce' | 'evaluate' | 'off';
|
|
36219
|
+
/**
|
|
36220
|
+
* What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
|
|
36221
|
+
*/
|
|
36222
|
+
whenUnavailable: 'fail-closed' | 'fail-open';
|
|
36223
|
+
/**
|
|
36224
|
+
* The check's own parameters; passed through unread.
|
|
36225
|
+
*/
|
|
36226
|
+
params?: {
|
|
36227
|
+
[key: string]: unknown;
|
|
36228
|
+
};
|
|
36229
|
+
}>;
|
|
36230
|
+
/**
|
|
36231
|
+
* Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
|
|
36232
|
+
*/
|
|
36233
|
+
bypass?: Array<string>;
|
|
36234
|
+
};
|
|
35383
36235
|
/**
|
|
35384
36236
|
* One commit inside a release, so a reader can see what is about to ship without leaving this answer.
|
|
35385
36237
|
*/
|
|
@@ -36119,9 +36971,9 @@ export type DevopsChangePullRequestRef = {
|
|
|
36119
36971
|
*/
|
|
36120
36972
|
export type DevopsChangeStageDetail = {
|
|
36121
36973
|
/**
|
|
36122
|
-
* The change's position; with several pull requests it is the slice furthest behind.
|
|
36974
|
+
* 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.
|
|
36123
36975
|
*/
|
|
36124
|
-
stage: 'developing' | 'reviewing' | '
|
|
36976
|
+
stage: 'developing' | 'reviewing' | 'integrating' | 'integrated' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
|
|
36125
36977
|
/**
|
|
36126
36978
|
* The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one.
|
|
36127
36979
|
*/
|
|
@@ -36228,6 +37080,32 @@ export type DevopsMergeGate = {
|
|
|
36228
37080
|
*/
|
|
36229
37081
|
decideTime?: string;
|
|
36230
37082
|
};
|
|
37083
|
+
/**
|
|
37084
|
+
* 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.
|
|
37085
|
+
*/
|
|
37086
|
+
export type DevopsReviewVerdict = {
|
|
37087
|
+
/**
|
|
37088
|
+
* passed when the reviewer found nothing wrong, failed when they found something to fix or roll back.
|
|
37089
|
+
*/
|
|
37090
|
+
result: 'passed' | 'failed';
|
|
37091
|
+
/**
|
|
37092
|
+
* What the reviewer found, in a sentence a reader can act on.
|
|
37093
|
+
*/
|
|
37094
|
+
reason: string;
|
|
37095
|
+
by: DevopsActor;
|
|
37096
|
+
/**
|
|
37097
|
+
* The commit the review is about.
|
|
37098
|
+
*/
|
|
37099
|
+
headSha: string;
|
|
37100
|
+
/**
|
|
37101
|
+
* RFC 3339 UTC time the verdict was recorded.
|
|
37102
|
+
*/
|
|
37103
|
+
time: string;
|
|
37104
|
+
/**
|
|
37105
|
+
* True when the pull request had already merged when the verdict was recorded; a failed verdict with merged true is a finding.
|
|
37106
|
+
*/
|
|
37107
|
+
merged: boolean;
|
|
37108
|
+
};
|
|
36231
37109
|
/**
|
|
36232
37110
|
* The GitHub account an installation belongs to.
|
|
36233
37111
|
*/
|
|
@@ -36344,7 +37222,7 @@ export type DevopsWorkspaceUpdateFields = {
|
|
|
36344
37222
|
enabled?: boolean;
|
|
36345
37223
|
};
|
|
36346
37224
|
/**
|
|
36347
|
-
* 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
|
|
37225
|
+
* 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.
|
|
36348
37226
|
*/
|
|
36349
37227
|
vaults?: Array<string>;
|
|
36350
37228
|
};
|
|
@@ -36496,6 +37374,63 @@ export type DevopsUnitTransition = {
|
|
|
36496
37374
|
*/
|
|
36497
37375
|
error: null | DevopsUnitTransitionError;
|
|
36498
37376
|
};
|
|
37377
|
+
/**
|
|
37378
|
+
* One cleanup action the job decided and carried out (or tried to).
|
|
37379
|
+
*/
|
|
37380
|
+
export type DevopsCleanupEntry = {
|
|
37381
|
+
/**
|
|
37382
|
+
* The ledger row's id.
|
|
37383
|
+
*/
|
|
37384
|
+
id: string;
|
|
37385
|
+
/**
|
|
37386
|
+
* Always cleanup.
|
|
37387
|
+
*/
|
|
37388
|
+
object: string;
|
|
37389
|
+
/**
|
|
37390
|
+
* When the action was decided (RFC 3339).
|
|
37391
|
+
*/
|
|
37392
|
+
createTime: string;
|
|
37393
|
+
/**
|
|
37394
|
+
* When the action was last touched: done, or decided when it is not done yet.
|
|
37395
|
+
*/
|
|
37396
|
+
updateTime: string;
|
|
37397
|
+
/**
|
|
37398
|
+
* The Console page of the project the action belongs to.
|
|
37399
|
+
*/
|
|
37400
|
+
viewerUrl: string;
|
|
37401
|
+
/**
|
|
37402
|
+
* The project the action belongs to.
|
|
37403
|
+
*/
|
|
37404
|
+
project: string;
|
|
37405
|
+
/**
|
|
37406
|
+
* What was cleaned.
|
|
37407
|
+
*/
|
|
37408
|
+
kind: 'branch' | 'unit' | 'evidence' | 'prebuild';
|
|
37409
|
+
/**
|
|
37410
|
+
* Which one: branch name and pull request number, unit id, evidence table and cutoff day, or prebuild id.
|
|
37411
|
+
*/
|
|
37412
|
+
subject: string;
|
|
37413
|
+
/**
|
|
37414
|
+
* archive keeps the record and drops the heavy content; delete removes it.
|
|
37415
|
+
*/
|
|
37416
|
+
action: 'archive' | 'delete';
|
|
37417
|
+
/**
|
|
37418
|
+
* 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.
|
|
37419
|
+
*/
|
|
37420
|
+
reason: string;
|
|
37421
|
+
/**
|
|
37422
|
+
* When the job decided the action (RFC 3339).
|
|
37423
|
+
*/
|
|
37424
|
+
decidedAt: string;
|
|
37425
|
+
/**
|
|
37426
|
+
* When the action was carried out; null while it is not done.
|
|
37427
|
+
*/
|
|
37428
|
+
doneAt: string | null;
|
|
37429
|
+
/**
|
|
37430
|
+
* Why the last attempt failed; null once it is done. A failed action stays open and is tried again by the next run.
|
|
37431
|
+
*/
|
|
37432
|
+
error: string | null;
|
|
37433
|
+
};
|
|
36499
37434
|
/**
|
|
36500
37435
|
* Counts of files still attached to the store or batch, grouped by ingestion status.
|
|
36501
37436
|
*/
|
|
@@ -37411,6 +38346,10 @@ export type MediaSearchAsset = {
|
|
|
37411
38346
|
* 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.
|
|
37412
38347
|
*/
|
|
37413
38348
|
segments?: number;
|
|
38349
|
+
/**
|
|
38350
|
+
* 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.
|
|
38351
|
+
*/
|
|
38352
|
+
duration?: number;
|
|
37414
38353
|
};
|
|
37415
38354
|
};
|
|
37416
38355
|
};
|
|
@@ -38060,6 +38999,56 @@ export type RegistryRegistryError = {
|
|
|
38060
38999
|
};
|
|
38061
39000
|
};
|
|
38062
39001
|
};
|
|
39002
|
+
/**
|
|
39003
|
+
* 一个 git 提交。
|
|
39004
|
+
*/
|
|
39005
|
+
export type RegistryGitCommit = {
|
|
39006
|
+
/**
|
|
39007
|
+
* 对象类型标记,固定为 registry.git.commit。
|
|
39008
|
+
*/
|
|
39009
|
+
object: string;
|
|
39010
|
+
/**
|
|
39011
|
+
* 提交的对象 id。
|
|
39012
|
+
*/
|
|
39013
|
+
sha: string;
|
|
39014
|
+
/**
|
|
39015
|
+
* 提交信息原文,含换行。
|
|
39016
|
+
*/
|
|
39017
|
+
message: string;
|
|
39018
|
+
/**
|
|
39019
|
+
* 作者名;仓库没有给出名字时是空串。
|
|
39020
|
+
*/
|
|
39021
|
+
author: string;
|
|
39022
|
+
/**
|
|
39023
|
+
* 作者邮箱;仓库给了才有。
|
|
39024
|
+
*/
|
|
39025
|
+
author_email?: string;
|
|
39026
|
+
/**
|
|
39027
|
+
* 提交时间的 RFC 3339 时间戳;后端没给时是空串。
|
|
39028
|
+
*/
|
|
39029
|
+
committed_at: string;
|
|
39030
|
+
/**
|
|
39031
|
+
* 父提交的对象 id,按顺序。
|
|
39032
|
+
*/
|
|
39033
|
+
parents: Array<string>;
|
|
39034
|
+
};
|
|
39035
|
+
/**
|
|
39036
|
+
* 一次提交或比较改动的一个文件。
|
|
39037
|
+
*/
|
|
39038
|
+
export type RegistryGitChangedFile = {
|
|
39039
|
+
/**
|
|
39040
|
+
* 文件路径,相对仓库根;改名时是新路径。
|
|
39041
|
+
*/
|
|
39042
|
+
path: string;
|
|
39043
|
+
/**
|
|
39044
|
+
* 这个文件怎么变的。
|
|
39045
|
+
*/
|
|
39046
|
+
status: 'added' | 'modified' | 'removed' | 'renamed';
|
|
39047
|
+
/**
|
|
39048
|
+
* 改名前的路径;只有 status 为 renamed 时才有。
|
|
39049
|
+
*/
|
|
39050
|
+
previous_path?: string;
|
|
39051
|
+
};
|
|
38063
39052
|
/**
|
|
38064
39053
|
* 树里的一个条目。
|
|
38065
39054
|
*/
|
|
@@ -38085,6 +39074,65 @@ export type RegistryGitTreeEntry = {
|
|
|
38085
39074
|
*/
|
|
38086
39075
|
size?: number;
|
|
38087
39076
|
};
|
|
39077
|
+
/**
|
|
39078
|
+
* 一个分支或标签。
|
|
39079
|
+
*/
|
|
39080
|
+
export type RegistryGitRefItem = {
|
|
39081
|
+
/**
|
|
39082
|
+
* 引用的全名,分支以 refs/heads/ 开头,标签以 refs/tags/ 开头。
|
|
39083
|
+
*/
|
|
39084
|
+
ref: string;
|
|
39085
|
+
/**
|
|
39086
|
+
* 它指向的提交 id;带注解的标签给的是标签下面的提交。
|
|
39087
|
+
*/
|
|
39088
|
+
sha: string;
|
|
39089
|
+
/**
|
|
39090
|
+
* 引用的种类,分支或标签,由全名的前缀决定。
|
|
39091
|
+
*/
|
|
39092
|
+
type: 'branch' | 'tag';
|
|
39093
|
+
};
|
|
39094
|
+
/**
|
|
39095
|
+
* 比较结果里的一个提交。
|
|
39096
|
+
*/
|
|
39097
|
+
export type RegistryGitComparedCommit = {
|
|
39098
|
+
/**
|
|
39099
|
+
* 提交的对象 id。
|
|
39100
|
+
*/
|
|
39101
|
+
sha: string;
|
|
39102
|
+
/**
|
|
39103
|
+
* 提交信息的第一行。
|
|
39104
|
+
*/
|
|
39105
|
+
subject: string;
|
|
39106
|
+
/**
|
|
39107
|
+
* 这个提交的作者名;仓库没有给出名字时是空串。
|
|
39108
|
+
*/
|
|
39109
|
+
author: string;
|
|
39110
|
+
};
|
|
39111
|
+
/**
|
|
39112
|
+
* 递归树里的一个条目。
|
|
39113
|
+
*/
|
|
39114
|
+
export type RegistryGitTreeNode = {
|
|
39115
|
+
/**
|
|
39116
|
+
* 相对根的完整路径,用斜杠分隔。
|
|
39117
|
+
*/
|
|
39118
|
+
path: string;
|
|
39119
|
+
/**
|
|
39120
|
+
* 条目指向的对象类型;commit 是子模块,不展开。
|
|
39121
|
+
*/
|
|
39122
|
+
type: 'blob' | 'tree' | 'commit';
|
|
39123
|
+
/**
|
|
39124
|
+
* git 的模式位,例如 100644、100755、120000 或 040000。
|
|
39125
|
+
*/
|
|
39126
|
+
mode: string;
|
|
39127
|
+
/**
|
|
39128
|
+
* 条目指向的对象 id。
|
|
39129
|
+
*/
|
|
39130
|
+
sha: string;
|
|
39131
|
+
/**
|
|
39132
|
+
* 对象大小(字节),后端给出时才有。
|
|
39133
|
+
*/
|
|
39134
|
+
size?: number;
|
|
39135
|
+
};
|
|
38088
39136
|
/**
|
|
38089
39137
|
* 一个版本解压后的一个文件条目。
|
|
38090
39138
|
*/
|
|
@@ -44022,6 +45070,27 @@ export type DevopsMirrorState = {
|
|
|
44022
45070
|
*/
|
|
44023
45071
|
error?: string;
|
|
44024
45072
|
};
|
|
45073
|
+
/**
|
|
45074
|
+
* 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.
|
|
45075
|
+
*/
|
|
45076
|
+
export type DevopsProjectRetention = {
|
|
45077
|
+
/**
|
|
45078
|
+
* 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.
|
|
45079
|
+
*/
|
|
45080
|
+
deleteMergedBranch?: boolean;
|
|
45081
|
+
/**
|
|
45082
|
+
* 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.
|
|
45083
|
+
*/
|
|
45084
|
+
stoppedUnitDays?: number;
|
|
45085
|
+
/**
|
|
45086
|
+
* 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.
|
|
45087
|
+
*/
|
|
45088
|
+
evidenceDays?: number;
|
|
45089
|
+
/**
|
|
45090
|
+
* How many ready prebuilds each workspace keeps, newest first; older ones are archived and their snapshots deleted. Default 2.
|
|
45091
|
+
*/
|
|
45092
|
+
prebuildVersions?: number;
|
|
45093
|
+
};
|
|
44025
45094
|
/**
|
|
44026
45095
|
* One target's render result inside a release.
|
|
44027
45096
|
*/
|
|
@@ -44093,7 +45162,7 @@ export type DevopsPlanRefusal = {
|
|
|
44093
45162
|
/**
|
|
44094
45163
|
* Which rule refused, which is the value a caller branches on; the remaining fields carry that rule's own evidence.
|
|
44095
45164
|
*/
|
|
44096
|
-
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' | '
|
|
45165
|
+
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';
|
|
44097
45166
|
/**
|
|
44098
45167
|
* The commit this refusal is about, present for the pick rules; it is the pick the request carried.
|
|
44099
45168
|
*/
|
|
@@ -47204,6 +48273,10 @@ export type MediaAssetWritable = {
|
|
|
47204
48273
|
* 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.
|
|
47205
48274
|
*/
|
|
47206
48275
|
segments?: number;
|
|
48276
|
+
/**
|
|
48277
|
+
* 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.
|
|
48278
|
+
*/
|
|
48279
|
+
duration?: number;
|
|
47207
48280
|
};
|
|
47208
48281
|
};
|
|
47209
48282
|
};
|
|
@@ -47757,6 +48830,10 @@ export type MediaSearchAssetWritable = {
|
|
|
47757
48830
|
* 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.
|
|
47758
48831
|
*/
|
|
47759
48832
|
segments?: number;
|
|
48833
|
+
/**
|
|
48834
|
+
* 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.
|
|
48835
|
+
*/
|
|
48836
|
+
duration?: number;
|
|
47760
48837
|
};
|
|
47761
48838
|
};
|
|
47762
48839
|
};
|
|
@@ -48037,7 +49114,7 @@ export type DevopsEnvironmentQuery = string;
|
|
|
48037
49114
|
*/
|
|
48038
49115
|
export type DevopsSegmentIdPath = string;
|
|
48039
49116
|
/**
|
|
48040
|
-
* The stage whose workspace you address: development, integration or
|
|
49117
|
+
* 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.
|
|
48041
49118
|
*/
|
|
48042
49119
|
export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
|
|
48043
49120
|
/**
|
|
@@ -48108,6 +49185,34 @@ export type RegistryGitLogOffset = number;
|
|
|
48108
49185
|
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
48109
49186
|
*/
|
|
48110
49187
|
export type RegistryGitObjectId = string;
|
|
49188
|
+
/**
|
|
49189
|
+
* 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
|
|
49190
|
+
*/
|
|
49191
|
+
export type RegistryGitChangedFiles = boolean;
|
|
49192
|
+
/**
|
|
49193
|
+
* 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
|
|
49194
|
+
*/
|
|
49195
|
+
export type RegistryGitRefPrefix = 'refs/heads/' | 'refs/tags/';
|
|
49196
|
+
/**
|
|
49197
|
+
* 页码,从 1 起,默认 1。
|
|
49198
|
+
*/
|
|
49199
|
+
export type RegistryGitRefsPage = number;
|
|
49200
|
+
/**
|
|
49201
|
+
* 这一页最多返回多少个引用,1 到 500,默认 100。
|
|
49202
|
+
*/
|
|
49203
|
+
export type RegistryGitRefsSize = number;
|
|
49204
|
+
/**
|
|
49205
|
+
* 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
|
|
49206
|
+
*/
|
|
49207
|
+
export type RegistryGitResolveRef = string;
|
|
49208
|
+
/**
|
|
49209
|
+
* 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
|
|
49210
|
+
*/
|
|
49211
|
+
export type RegistryGitCompareBase = string;
|
|
49212
|
+
/**
|
|
49213
|
+
* 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
|
|
49214
|
+
*/
|
|
49215
|
+
export type RegistryGitCompareHead = string;
|
|
48111
49216
|
/**
|
|
48112
49217
|
* 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
|
|
48113
49218
|
*/
|
|
@@ -49016,48 +50121,6 @@ export type ListAgentEventsResponses = {
|
|
|
49016
50121
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49017
50122
|
*/
|
|
49018
50123
|
processed_at: string;
|
|
49019
|
-
} | {
|
|
49020
|
-
/**
|
|
49021
|
-
* Event id, unique within the session.
|
|
49022
|
-
*/
|
|
49023
|
-
id: string;
|
|
49024
|
-
/**
|
|
49025
|
-
* Always `user.tool_confirmation`.
|
|
49026
|
-
*/
|
|
49027
|
-
type: 'user.tool_confirmation';
|
|
49028
|
-
/**
|
|
49029
|
-
* When the event was recorded, RFC 3339.
|
|
49030
|
-
*/
|
|
49031
|
-
processed_at: string;
|
|
49032
|
-
/**
|
|
49033
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
49034
|
-
*/
|
|
49035
|
-
tool_use_id: string;
|
|
49036
|
-
/**
|
|
49037
|
-
* Always `allow`.
|
|
49038
|
-
*/
|
|
49039
|
-
result: 'allow';
|
|
49040
|
-
/**
|
|
49041
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
49042
|
-
*/
|
|
49043
|
-
answers: {
|
|
49044
|
-
[key: string]: string;
|
|
49045
|
-
};
|
|
49046
|
-
/**
|
|
49047
|
-
* Per-question notes, keyed by the question text.
|
|
49048
|
-
*/
|
|
49049
|
-
annotations?: {
|
|
49050
|
-
[key: string]: {
|
|
49051
|
-
/**
|
|
49052
|
-
* The preview of the option the user chose.
|
|
49053
|
-
*/
|
|
49054
|
-
preview?: string;
|
|
49055
|
-
/**
|
|
49056
|
-
* Free text the user added to their choice.
|
|
49057
|
-
*/
|
|
49058
|
-
notes?: string;
|
|
49059
|
-
};
|
|
49060
|
-
};
|
|
49061
50124
|
}>;
|
|
49062
50125
|
/**
|
|
49063
50126
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -49107,40 +50170,6 @@ export type SendAgentEventsData = {
|
|
|
49107
50170
|
* Id of the event this event refers to.
|
|
49108
50171
|
*/
|
|
49109
50172
|
event_id: string;
|
|
49110
|
-
} | {
|
|
49111
|
-
/**
|
|
49112
|
-
* Always `user.tool_confirmation`.
|
|
49113
|
-
*/
|
|
49114
|
-
type: 'user.tool_confirmation';
|
|
49115
|
-
/**
|
|
49116
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
49117
|
-
*/
|
|
49118
|
-
tool_use_id: string;
|
|
49119
|
-
/**
|
|
49120
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
49121
|
-
*/
|
|
49122
|
-
result: 'allow';
|
|
49123
|
-
/**
|
|
49124
|
-
* 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.
|
|
49125
|
-
*/
|
|
49126
|
-
answers: {
|
|
49127
|
-
[key: string]: string;
|
|
49128
|
-
};
|
|
49129
|
-
/**
|
|
49130
|
-
* Optional per-question notes, keyed by the question text.
|
|
49131
|
-
*/
|
|
49132
|
-
annotations?: {
|
|
49133
|
-
[key: string]: {
|
|
49134
|
-
/**
|
|
49135
|
-
* The preview of the option the user chose.
|
|
49136
|
-
*/
|
|
49137
|
-
preview?: string;
|
|
49138
|
-
/**
|
|
49139
|
-
* Free text the user added to their choice.
|
|
49140
|
-
*/
|
|
49141
|
-
notes?: string;
|
|
49142
|
-
};
|
|
49143
|
-
};
|
|
49144
50173
|
}>;
|
|
49145
50174
|
};
|
|
49146
50175
|
path: {
|
|
@@ -49223,48 +50252,6 @@ export type SendAgentEventsResponses = {
|
|
|
49223
50252
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49224
50253
|
*/
|
|
49225
50254
|
processed_at: string;
|
|
49226
|
-
} | {
|
|
49227
|
-
/**
|
|
49228
|
-
* Event id, unique within the session.
|
|
49229
|
-
*/
|
|
49230
|
-
id: string;
|
|
49231
|
-
/**
|
|
49232
|
-
* Always `user.tool_confirmation`.
|
|
49233
|
-
*/
|
|
49234
|
-
type: 'user.tool_confirmation';
|
|
49235
|
-
/**
|
|
49236
|
-
* When the event was recorded, RFC 3339.
|
|
49237
|
-
*/
|
|
49238
|
-
processed_at: string;
|
|
49239
|
-
/**
|
|
49240
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
49241
|
-
*/
|
|
49242
|
-
tool_use_id: string;
|
|
49243
|
-
/**
|
|
49244
|
-
* Always `allow`.
|
|
49245
|
-
*/
|
|
49246
|
-
result: 'allow';
|
|
49247
|
-
/**
|
|
49248
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
49249
|
-
*/
|
|
49250
|
-
answers: {
|
|
49251
|
-
[key: string]: string;
|
|
49252
|
-
};
|
|
49253
|
-
/**
|
|
49254
|
-
* Per-question notes, keyed by the question text.
|
|
49255
|
-
*/
|
|
49256
|
-
annotations?: {
|
|
49257
|
-
[key: string]: {
|
|
49258
|
-
/**
|
|
49259
|
-
* The preview of the option the user chose.
|
|
49260
|
-
*/
|
|
49261
|
-
preview?: string;
|
|
49262
|
-
/**
|
|
49263
|
-
* Free text the user added to their choice.
|
|
49264
|
-
*/
|
|
49265
|
-
notes?: string;
|
|
49266
|
-
};
|
|
49267
|
-
};
|
|
49268
50255
|
}>;
|
|
49269
50256
|
};
|
|
49270
50257
|
};
|
|
@@ -53040,13 +54027,17 @@ export type AgentsPhoneRetrieveResponses = {
|
|
|
53040
54027
|
*/
|
|
53041
54028
|
configured: boolean;
|
|
53042
54029
|
/**
|
|
53043
|
-
* What the phone is doing now.
|
|
54030
|
+
* 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.
|
|
53044
54031
|
*/
|
|
53045
|
-
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
54032
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53046
54033
|
/**
|
|
53047
|
-
* The sandbox SKU
|
|
54034
|
+
* 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.
|
|
53048
54035
|
*/
|
|
53049
54036
|
sku: string | null;
|
|
54037
|
+
/**
|
|
54038
|
+
* 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.
|
|
54039
|
+
*/
|
|
54040
|
+
byod_device: string | null;
|
|
53050
54041
|
/**
|
|
53051
54042
|
* What people and the model call this phone, or null when no phone is configured.
|
|
53052
54043
|
*/
|
|
@@ -53126,13 +54117,17 @@ export type AgentsPhoneReleaseResponses = {
|
|
|
53126
54117
|
*/
|
|
53127
54118
|
configured: boolean;
|
|
53128
54119
|
/**
|
|
53129
|
-
* What the phone is doing now.
|
|
54120
|
+
* 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.
|
|
53130
54121
|
*/
|
|
53131
|
-
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
54122
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53132
54123
|
/**
|
|
53133
|
-
* The sandbox SKU
|
|
54124
|
+
* 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.
|
|
53134
54125
|
*/
|
|
53135
54126
|
sku: string | null;
|
|
54127
|
+
/**
|
|
54128
|
+
* 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.
|
|
54129
|
+
*/
|
|
54130
|
+
byod_device: string | null;
|
|
53136
54131
|
/**
|
|
53137
54132
|
* What people and the model call this phone, or null when no phone is configured.
|
|
53138
54133
|
*/
|
|
@@ -55832,8 +56827,14 @@ export type ComputersFilesContentResponses = {
|
|
|
55832
56827
|
206: Blob | File;
|
|
55833
56828
|
};
|
|
55834
56829
|
export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
|
|
55835
|
-
export type
|
|
55836
|
-
body
|
|
56830
|
+
export type UpdateComputerFileContentData = {
|
|
56831
|
+
body: Blob | File;
|
|
56832
|
+
headers: {
|
|
56833
|
+
/**
|
|
56834
|
+
* The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted.
|
|
56835
|
+
*/
|
|
56836
|
+
'If-Match': string;
|
|
56837
|
+
};
|
|
55837
56838
|
path: {
|
|
55838
56839
|
/**
|
|
55839
56840
|
* Computer id from computer creation or listing; a computer another tenant owns is not found.
|
|
@@ -55842,23 +56843,15 @@ export type PreviewComputerFileData = {
|
|
|
55842
56843
|
};
|
|
55843
56844
|
query: {
|
|
55844
56845
|
/**
|
|
55845
|
-
* Absolute path of the file on the computer, or a /workspace/ relative path.
|
|
56846
|
+
* Absolute path of the existing file on the computer, or a /workspace/ relative path.
|
|
55846
56847
|
*/
|
|
55847
56848
|
path: string;
|
|
55848
|
-
/**
|
|
55849
|
-
* 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.
|
|
55850
|
-
*/
|
|
55851
|
-
v?: string;
|
|
55852
|
-
/**
|
|
55853
|
-
* 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.
|
|
55854
|
-
*/
|
|
55855
|
-
variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
|
|
55856
56849
|
};
|
|
55857
|
-
url: '/agent/v1/computers/{computer_id}/files/
|
|
56850
|
+
url: '/agent/v1/computers/{computer_id}/files/content';
|
|
55858
56851
|
};
|
|
55859
|
-
export type
|
|
56852
|
+
export type UpdateComputerFileContentErrors = {
|
|
55860
56853
|
/**
|
|
55861
|
-
* INVALID_PARAMS: path is missing, a query parameter is unsupported, the
|
|
56854
|
+
* INVALID_PARAMS: path is missing, a query parameter is unsupported, or the path is a directory (IS_DIRECTORY).
|
|
55862
56855
|
*/
|
|
55863
56856
|
400: {
|
|
55864
56857
|
type: 'error';
|
|
@@ -55904,7 +56897,7 @@ export type PreviewComputerFileErrors = {
|
|
|
55904
56897
|
request_id: string;
|
|
55905
56898
|
};
|
|
55906
56899
|
/**
|
|
55907
|
-
*
|
|
56900
|
+
* READ_ONLY: the path is under /attachments or /skills.
|
|
55908
56901
|
*/
|
|
55909
56902
|
403: {
|
|
55910
56903
|
type: 'error';
|
|
@@ -55927,7 +56920,7 @@ export type PreviewComputerFileErrors = {
|
|
|
55927
56920
|
request_id: string;
|
|
55928
56921
|
};
|
|
55929
56922
|
/**
|
|
55930
|
-
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
56923
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers, and a write never creates a file.
|
|
55931
56924
|
*/
|
|
55932
56925
|
404: {
|
|
55933
56926
|
type: 'error';
|
|
@@ -55950,9 +56943,9 @@ export type PreviewComputerFileErrors = {
|
|
|
55950
56943
|
request_id: string;
|
|
55951
56944
|
};
|
|
55952
56945
|
/**
|
|
55953
|
-
*
|
|
56946
|
+
* FILE_VERSION_MISMATCH: the file changed since the version in If-Match; error.current_version is its version now. Nothing was written.
|
|
55954
56947
|
*/
|
|
55955
|
-
|
|
56948
|
+
412: {
|
|
55956
56949
|
type: 'error';
|
|
55957
56950
|
error: {
|
|
55958
56951
|
/**
|
|
@@ -55966,6 +56959,10 @@ export type PreviewComputerFileErrors = {
|
|
|
55966
56959
|
* How to recover, for computer failures.
|
|
55967
56960
|
*/
|
|
55968
56961
|
hint?: string;
|
|
56962
|
+
/**
|
|
56963
|
+
* The file's version now (<size>-<mtimeMs>); read the file again and write with this version.
|
|
56964
|
+
*/
|
|
56965
|
+
current_version?: string;
|
|
55969
56966
|
};
|
|
55970
56967
|
/**
|
|
55971
56968
|
* Equals the X-Request-Id response header.
|
|
@@ -55973,7 +56970,7 @@ export type PreviewComputerFileErrors = {
|
|
|
55973
56970
|
request_id: string;
|
|
55974
56971
|
};
|
|
55975
56972
|
/**
|
|
55976
|
-
* FILE_TOO_LARGE: the
|
|
56973
|
+
* FILE_TOO_LARGE: the body exceeds 16 MiB.
|
|
55977
56974
|
*/
|
|
55978
56975
|
413: {
|
|
55979
56976
|
type: 'error';
|
|
@@ -55995,6 +56992,29 @@ export type PreviewComputerFileErrors = {
|
|
|
55995
56992
|
*/
|
|
55996
56993
|
request_id: string;
|
|
55997
56994
|
};
|
|
56995
|
+
/**
|
|
56996
|
+
* FILE_VERSION_REQUIRED: If-Match is missing. Nothing was written.
|
|
56997
|
+
*/
|
|
56998
|
+
428: {
|
|
56999
|
+
type: 'error';
|
|
57000
|
+
error: {
|
|
57001
|
+
/**
|
|
57002
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57003
|
+
*/
|
|
57004
|
+
type: string;
|
|
57005
|
+
message: string;
|
|
57006
|
+
code: string;
|
|
57007
|
+
retryable: boolean;
|
|
57008
|
+
/**
|
|
57009
|
+
* How to recover, for computer failures.
|
|
57010
|
+
*/
|
|
57011
|
+
hint?: string;
|
|
57012
|
+
};
|
|
57013
|
+
/**
|
|
57014
|
+
* Equals the X-Request-Id response header.
|
|
57015
|
+
*/
|
|
57016
|
+
request_id: string;
|
|
57017
|
+
};
|
|
55998
57018
|
/**
|
|
55999
57019
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56000
57020
|
*/
|
|
@@ -56042,7 +57062,7 @@ export type PreviewComputerFileErrors = {
|
|
|
56042
57062
|
request_id: string;
|
|
56043
57063
|
};
|
|
56044
57064
|
/**
|
|
56045
|
-
*
|
|
57065
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56046
57066
|
*/
|
|
56047
57067
|
503: {
|
|
56048
57068
|
type: 'error';
|
|
@@ -56065,76 +57085,175 @@ export type PreviewComputerFileErrors = {
|
|
|
56065
57085
|
request_id: string;
|
|
56066
57086
|
};
|
|
56067
57087
|
};
|
|
56068
|
-
export type
|
|
56069
|
-
export type
|
|
57088
|
+
export type UpdateComputerFileContentError = UpdateComputerFileContentErrors[keyof UpdateComputerFileContentErrors];
|
|
57089
|
+
export type UpdateComputerFileContentResponses = {
|
|
56070
57090
|
/**
|
|
56071
|
-
* The
|
|
57091
|
+
* The file after the write.
|
|
56072
57092
|
*/
|
|
56073
57093
|
200: {
|
|
56074
57094
|
/**
|
|
56075
|
-
*
|
|
57095
|
+
* Absolute path of the file that was written.
|
|
56076
57096
|
*/
|
|
56077
|
-
|
|
57097
|
+
path: string;
|
|
56078
57098
|
/**
|
|
56079
|
-
*
|
|
57099
|
+
* Size of the file now, in bytes.
|
|
56080
57100
|
*/
|
|
56081
|
-
|
|
57101
|
+
size: number;
|
|
56082
57102
|
/**
|
|
56083
|
-
*
|
|
57103
|
+
* Modification time of the file now, when the machine reports one.
|
|
56084
57104
|
*/
|
|
56085
|
-
|
|
57105
|
+
mtime: string | null;
|
|
56086
57106
|
/**
|
|
56087
|
-
*
|
|
57107
|
+
* The file's version now (<size>-<mtimeMs>); send it as If-Match on the next write.
|
|
56088
57108
|
*/
|
|
56089
|
-
|
|
57109
|
+
version: string;
|
|
57110
|
+
};
|
|
57111
|
+
};
|
|
57112
|
+
export type UpdateComputerFileContentResponse = UpdateComputerFileContentResponses[keyof UpdateComputerFileContentResponses];
|
|
57113
|
+
export type PreviewComputerFileData = {
|
|
57114
|
+
body?: never;
|
|
57115
|
+
path: {
|
|
56090
57116
|
/**
|
|
56091
|
-
*
|
|
57117
|
+
* Computer id from computer creation or listing; a computer another tenant owns is not found.
|
|
56092
57118
|
*/
|
|
56093
|
-
|
|
57119
|
+
computer_id: string;
|
|
57120
|
+
};
|
|
57121
|
+
query: {
|
|
56094
57122
|
/**
|
|
56095
|
-
*
|
|
57123
|
+
* Absolute path of the file on the computer, or a /workspace/ relative path.
|
|
56096
57124
|
*/
|
|
56097
|
-
|
|
57125
|
+
path: string;
|
|
56098
57126
|
/**
|
|
56099
|
-
*
|
|
57127
|
+
* 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.
|
|
56100
57128
|
*/
|
|
56101
|
-
|
|
57129
|
+
v?: string;
|
|
56102
57130
|
/**
|
|
56103
|
-
*
|
|
57131
|
+
* 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.
|
|
56104
57132
|
*/
|
|
56105
|
-
|
|
57133
|
+
variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
|
|
57134
|
+
};
|
|
57135
|
+
url: '/agent/v1/computers/{computer_id}/files/preview';
|
|
57136
|
+
};
|
|
57137
|
+
export type PreviewComputerFileErrors = {
|
|
57138
|
+
/**
|
|
57139
|
+
* 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.
|
|
57140
|
+
*/
|
|
57141
|
+
400: {
|
|
57142
|
+
type: 'error';
|
|
57143
|
+
error: {
|
|
57144
|
+
/**
|
|
57145
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57146
|
+
*/
|
|
57147
|
+
type: string;
|
|
57148
|
+
message: string;
|
|
57149
|
+
code: string;
|
|
57150
|
+
retryable: boolean;
|
|
57151
|
+
/**
|
|
57152
|
+
* How to recover, for computer failures.
|
|
57153
|
+
*/
|
|
57154
|
+
hint?: string;
|
|
57155
|
+
};
|
|
56106
57156
|
/**
|
|
56107
|
-
*
|
|
57157
|
+
* Equals the X-Request-Id response header.
|
|
56108
57158
|
*/
|
|
56109
|
-
|
|
57159
|
+
request_id: string;
|
|
57160
|
+
};
|
|
57161
|
+
/**
|
|
57162
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57163
|
+
*/
|
|
57164
|
+
401: {
|
|
57165
|
+
type: 'error';
|
|
57166
|
+
error: {
|
|
57167
|
+
/**
|
|
57168
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57169
|
+
*/
|
|
57170
|
+
type: string;
|
|
57171
|
+
message: string;
|
|
57172
|
+
code: string;
|
|
57173
|
+
retryable: boolean;
|
|
57174
|
+
/**
|
|
57175
|
+
* How to recover, for computer failures.
|
|
57176
|
+
*/
|
|
57177
|
+
hint?: string;
|
|
57178
|
+
};
|
|
56110
57179
|
/**
|
|
56111
|
-
*
|
|
57180
|
+
* Equals the X-Request-Id response header.
|
|
56112
57181
|
*/
|
|
56113
|
-
|
|
57182
|
+
request_id: string;
|
|
56114
57183
|
};
|
|
56115
|
-
|
|
56116
|
-
|
|
56117
|
-
|
|
56118
|
-
|
|
56119
|
-
|
|
57184
|
+
/**
|
|
57185
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57186
|
+
*/
|
|
57187
|
+
403: {
|
|
57188
|
+
type: 'error';
|
|
57189
|
+
error: {
|
|
57190
|
+
/**
|
|
57191
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57192
|
+
*/
|
|
57193
|
+
type: string;
|
|
57194
|
+
message: string;
|
|
57195
|
+
code: string;
|
|
57196
|
+
retryable: boolean;
|
|
57197
|
+
/**
|
|
57198
|
+
* How to recover, for computer failures.
|
|
57199
|
+
*/
|
|
57200
|
+
hint?: string;
|
|
57201
|
+
};
|
|
56120
57202
|
/**
|
|
56121
|
-
*
|
|
57203
|
+
* Equals the X-Request-Id response header.
|
|
56122
57204
|
*/
|
|
56123
|
-
|
|
57205
|
+
request_id: string;
|
|
56124
57206
|
};
|
|
56125
|
-
|
|
57207
|
+
/**
|
|
57208
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
57209
|
+
*/
|
|
57210
|
+
404: {
|
|
57211
|
+
type: 'error';
|
|
57212
|
+
error: {
|
|
57213
|
+
/**
|
|
57214
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57215
|
+
*/
|
|
57216
|
+
type: string;
|
|
57217
|
+
message: string;
|
|
57218
|
+
code: string;
|
|
57219
|
+
retryable: boolean;
|
|
57220
|
+
/**
|
|
57221
|
+
* How to recover, for computer failures.
|
|
57222
|
+
*/
|
|
57223
|
+
hint?: string;
|
|
57224
|
+
};
|
|
56126
57225
|
/**
|
|
56127
|
-
*
|
|
57226
|
+
* Equals the X-Request-Id response header.
|
|
56128
57227
|
*/
|
|
56129
|
-
|
|
57228
|
+
request_id: string;
|
|
56130
57229
|
};
|
|
56131
|
-
url: '/agent/v1/computers/{computer_id}/files/convert';
|
|
56132
|
-
};
|
|
56133
|
-
export type ComputersFilesConvertErrors = {
|
|
56134
57230
|
/**
|
|
56135
|
-
*
|
|
57231
|
+
* STALE_DIGEST: the file changed while its product was read; ask again.
|
|
56136
57232
|
*/
|
|
56137
|
-
|
|
57233
|
+
409: {
|
|
57234
|
+
type: 'error';
|
|
57235
|
+
error: {
|
|
57236
|
+
/**
|
|
57237
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57238
|
+
*/
|
|
57239
|
+
type: string;
|
|
57240
|
+
message: string;
|
|
57241
|
+
code: string;
|
|
57242
|
+
retryable: boolean;
|
|
57243
|
+
/**
|
|
57244
|
+
* How to recover, for computer failures.
|
|
57245
|
+
*/
|
|
57246
|
+
hint?: string;
|
|
57247
|
+
};
|
|
57248
|
+
/**
|
|
57249
|
+
* Equals the X-Request-Id response header.
|
|
57250
|
+
*/
|
|
57251
|
+
request_id: string;
|
|
57252
|
+
};
|
|
57253
|
+
/**
|
|
57254
|
+
* FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
|
|
57255
|
+
*/
|
|
57256
|
+
413: {
|
|
56138
57257
|
type: 'error';
|
|
56139
57258
|
error: {
|
|
56140
57259
|
/**
|
|
@@ -56157,7 +57276,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
56157
57276
|
/**
|
|
56158
57277
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56159
57278
|
*/
|
|
56160
|
-
|
|
57279
|
+
429: {
|
|
56161
57280
|
type: 'error';
|
|
56162
57281
|
error: {
|
|
56163
57282
|
/**
|
|
@@ -56180,7 +57299,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
56180
57299
|
/**
|
|
56181
57300
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56182
57301
|
*/
|
|
56183
|
-
|
|
57302
|
+
500: {
|
|
56184
57303
|
type: 'error';
|
|
56185
57304
|
error: {
|
|
56186
57305
|
/**
|
|
@@ -56201,9 +57320,9 @@ export type ComputersFilesConvertErrors = {
|
|
|
56201
57320
|
request_id: string;
|
|
56202
57321
|
};
|
|
56203
57322
|
/**
|
|
56204
|
-
*
|
|
57323
|
+
* PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
|
|
56205
57324
|
*/
|
|
56206
|
-
|
|
57325
|
+
503: {
|
|
56207
57326
|
type: 'error';
|
|
56208
57327
|
error: {
|
|
56209
57328
|
/**
|
|
@@ -56223,33 +57342,77 @@ export type ComputersFilesConvertErrors = {
|
|
|
56223
57342
|
*/
|
|
56224
57343
|
request_id: string;
|
|
56225
57344
|
};
|
|
57345
|
+
};
|
|
57346
|
+
export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
|
|
57347
|
+
export type PreviewComputerFileResponses = {
|
|
56226
57348
|
/**
|
|
56227
|
-
*
|
|
57349
|
+
* The preview product, or the fallback that sends the caller to the content door.
|
|
56228
57350
|
*/
|
|
56229
|
-
|
|
56230
|
-
type: 'error';
|
|
56231
|
-
error: {
|
|
56232
|
-
/**
|
|
56233
|
-
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56234
|
-
*/
|
|
56235
|
-
type: string;
|
|
56236
|
-
message: string;
|
|
56237
|
-
code: string;
|
|
56238
|
-
retryable: boolean;
|
|
56239
|
-
/**
|
|
56240
|
-
* How to recover, for computer failures.
|
|
56241
|
-
*/
|
|
56242
|
-
hint?: string;
|
|
56243
|
-
};
|
|
57351
|
+
200: {
|
|
56244
57352
|
/**
|
|
56245
|
-
*
|
|
57353
|
+
* 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.
|
|
56246
57354
|
*/
|
|
56247
|
-
|
|
57355
|
+
variant: 'image' | 'pdf' | 'text' | 'original';
|
|
57356
|
+
/**
|
|
57357
|
+
* The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
|
|
57358
|
+
*/
|
|
57359
|
+
version?: string;
|
|
57360
|
+
/**
|
|
57361
|
+
* Media type of the product, or of the original bytes.
|
|
57362
|
+
*/
|
|
57363
|
+
mime_type?: string;
|
|
57364
|
+
/**
|
|
57365
|
+
* Size of the product in bytes.
|
|
57366
|
+
*/
|
|
57367
|
+
size?: number;
|
|
57368
|
+
/**
|
|
57369
|
+
* File id of the stored product in the File service, when the product was stored.
|
|
57370
|
+
*/
|
|
57371
|
+
file_id?: string;
|
|
57372
|
+
/**
|
|
57373
|
+
* Signed read address of the product; the caller streams it and caches by the version it pinned.
|
|
57374
|
+
*/
|
|
57375
|
+
url?: string;
|
|
57376
|
+
/**
|
|
57377
|
+
* When the signed read address stops working.
|
|
57378
|
+
*/
|
|
57379
|
+
expires_at?: string;
|
|
57380
|
+
/**
|
|
57381
|
+
* true when an existing product answered without regenerating it.
|
|
57382
|
+
*/
|
|
57383
|
+
cached: boolean;
|
|
57384
|
+
/**
|
|
57385
|
+
* 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.
|
|
57386
|
+
*/
|
|
57387
|
+
fallback?: 'content';
|
|
57388
|
+
/**
|
|
57389
|
+
* true only on a pre-generation request over the kind's threshold, where generation was skipped.
|
|
57390
|
+
*/
|
|
57391
|
+
skipped?: boolean;
|
|
56248
57392
|
};
|
|
57393
|
+
};
|
|
57394
|
+
export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
|
|
57395
|
+
export type ComputersFilesConvertData = {
|
|
57396
|
+
body?: never;
|
|
57397
|
+
path: {
|
|
57398
|
+
/**
|
|
57399
|
+
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
57400
|
+
*/
|
|
57401
|
+
computer_id: string;
|
|
57402
|
+
};
|
|
57403
|
+
query: {
|
|
57404
|
+
/**
|
|
57405
|
+
* Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
|
|
57406
|
+
*/
|
|
57407
|
+
path: string;
|
|
57408
|
+
};
|
|
57409
|
+
url: '/agent/v1/computers/{computer_id}/files/convert';
|
|
57410
|
+
};
|
|
57411
|
+
export type ComputersFilesConvertErrors = {
|
|
56249
57412
|
/**
|
|
56250
57413
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56251
57414
|
*/
|
|
56252
|
-
|
|
57415
|
+
400: {
|
|
56253
57416
|
type: 'error';
|
|
56254
57417
|
error: {
|
|
56255
57418
|
/**
|
|
@@ -56272,7 +57435,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
56272
57435
|
/**
|
|
56273
57436
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56274
57437
|
*/
|
|
56275
|
-
|
|
57438
|
+
401: {
|
|
56276
57439
|
type: 'error';
|
|
56277
57440
|
error: {
|
|
56278
57441
|
/**
|
|
@@ -56295,7 +57458,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
56295
57458
|
/**
|
|
56296
57459
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56297
57460
|
*/
|
|
56298
|
-
|
|
57461
|
+
403: {
|
|
56299
57462
|
type: 'error';
|
|
56300
57463
|
error: {
|
|
56301
57464
|
/**
|
|
@@ -56316,9 +57479,9 @@ export type ComputersFilesConvertErrors = {
|
|
|
56316
57479
|
request_id: string;
|
|
56317
57480
|
};
|
|
56318
57481
|
/**
|
|
56319
|
-
*
|
|
57482
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
56320
57483
|
*/
|
|
56321
|
-
|
|
57484
|
+
404: {
|
|
56322
57485
|
type: 'error';
|
|
56323
57486
|
error: {
|
|
56324
57487
|
/**
|
|
@@ -56338,49 +57501,10 @@ export type ComputersFilesConvertErrors = {
|
|
|
56338
57501
|
*/
|
|
56339
57502
|
request_id: string;
|
|
56340
57503
|
};
|
|
56341
|
-
};
|
|
56342
|
-
export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
|
|
56343
|
-
export type ComputersFilesConvertResponses = {
|
|
56344
|
-
/**
|
|
56345
|
-
* The converted PDF as base64
|
|
56346
|
-
*/
|
|
56347
|
-
200: {
|
|
56348
|
-
/**
|
|
56349
|
-
* The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
|
|
56350
|
-
*/
|
|
56351
|
-
data: string;
|
|
56352
|
-
/**
|
|
56353
|
-
* Media type of the decoded bytes; always application/pdf.
|
|
56354
|
-
*/
|
|
56355
|
-
mime: 'application/pdf';
|
|
56356
|
-
/**
|
|
56357
|
-
* true when an earlier conversion of the same file content was reused.
|
|
56358
|
-
*/
|
|
56359
|
-
cached: boolean;
|
|
56360
|
-
};
|
|
56361
|
-
};
|
|
56362
|
-
export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
|
|
56363
|
-
export type ConnectComputerData = {
|
|
56364
|
-
body?: {
|
|
56365
|
-
/**
|
|
56366
|
-
* Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
|
|
56367
|
-
*/
|
|
56368
|
-
need?: 'light' | 'heavy';
|
|
56369
|
-
};
|
|
56370
|
-
path: {
|
|
56371
|
-
/**
|
|
56372
|
-
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
56373
|
-
*/
|
|
56374
|
-
computer_id: string;
|
|
56375
|
-
};
|
|
56376
|
-
query?: never;
|
|
56377
|
-
url: '/agent/v1/computers/{computer_id}/connect';
|
|
56378
|
-
};
|
|
56379
|
-
export type ConnectComputerErrors = {
|
|
56380
57504
|
/**
|
|
56381
|
-
*
|
|
57505
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56382
57506
|
*/
|
|
56383
|
-
|
|
57507
|
+
409: {
|
|
56384
57508
|
type: 'error';
|
|
56385
57509
|
error: {
|
|
56386
57510
|
/**
|
|
@@ -56403,7 +57527,7 @@ export type ConnectComputerErrors = {
|
|
|
56403
57527
|
/**
|
|
56404
57528
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56405
57529
|
*/
|
|
56406
|
-
|
|
57530
|
+
413: {
|
|
56407
57531
|
type: 'error';
|
|
56408
57532
|
error: {
|
|
56409
57533
|
/**
|
|
@@ -56426,7 +57550,7 @@ export type ConnectComputerErrors = {
|
|
|
56426
57550
|
/**
|
|
56427
57551
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56428
57552
|
*/
|
|
56429
|
-
|
|
57553
|
+
429: {
|
|
56430
57554
|
type: 'error';
|
|
56431
57555
|
error: {
|
|
56432
57556
|
/**
|
|
@@ -56447,9 +57571,9 @@ export type ConnectComputerErrors = {
|
|
|
56447
57571
|
request_id: string;
|
|
56448
57572
|
};
|
|
56449
57573
|
/**
|
|
56450
|
-
*
|
|
57574
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56451
57575
|
*/
|
|
56452
|
-
|
|
57576
|
+
500: {
|
|
56453
57577
|
type: 'error';
|
|
56454
57578
|
error: {
|
|
56455
57579
|
/**
|
|
@@ -56472,7 +57596,7 @@ export type ConnectComputerErrors = {
|
|
|
56472
57596
|
/**
|
|
56473
57597
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56474
57598
|
*/
|
|
56475
|
-
|
|
57599
|
+
503: {
|
|
56476
57600
|
type: 'error';
|
|
56477
57601
|
error: {
|
|
56478
57602
|
/**
|
|
@@ -56492,10 +57616,49 @@ export type ConnectComputerErrors = {
|
|
|
56492
57616
|
*/
|
|
56493
57617
|
request_id: string;
|
|
56494
57618
|
};
|
|
57619
|
+
};
|
|
57620
|
+
export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
|
|
57621
|
+
export type ComputersFilesConvertResponses = {
|
|
56495
57622
|
/**
|
|
56496
|
-
*
|
|
57623
|
+
* The converted PDF as base64
|
|
56497
57624
|
*/
|
|
56498
|
-
|
|
57625
|
+
200: {
|
|
57626
|
+
/**
|
|
57627
|
+
* The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
|
|
57628
|
+
*/
|
|
57629
|
+
data: string;
|
|
57630
|
+
/**
|
|
57631
|
+
* Media type of the decoded bytes; always application/pdf.
|
|
57632
|
+
*/
|
|
57633
|
+
mime: 'application/pdf';
|
|
57634
|
+
/**
|
|
57635
|
+
* true when an earlier conversion of the same file content was reused.
|
|
57636
|
+
*/
|
|
57637
|
+
cached: boolean;
|
|
57638
|
+
};
|
|
57639
|
+
};
|
|
57640
|
+
export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
|
|
57641
|
+
export type ConnectComputerData = {
|
|
57642
|
+
body?: {
|
|
57643
|
+
/**
|
|
57644
|
+
* Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
|
|
57645
|
+
*/
|
|
57646
|
+
need?: 'light' | 'heavy';
|
|
57647
|
+
};
|
|
57648
|
+
path: {
|
|
57649
|
+
/**
|
|
57650
|
+
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
57651
|
+
*/
|
|
57652
|
+
computer_id: string;
|
|
57653
|
+
};
|
|
57654
|
+
query?: never;
|
|
57655
|
+
url: '/agent/v1/computers/{computer_id}/connect';
|
|
57656
|
+
};
|
|
57657
|
+
export type ConnectComputerErrors = {
|
|
57658
|
+
/**
|
|
57659
|
+
* INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
|
|
57660
|
+
*/
|
|
57661
|
+
400: {
|
|
56499
57662
|
type: 'error';
|
|
56500
57663
|
error: {
|
|
56501
57664
|
/**
|
|
@@ -56518,7 +57681,7 @@ export type ConnectComputerErrors = {
|
|
|
56518
57681
|
/**
|
|
56519
57682
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56520
57683
|
*/
|
|
56521
|
-
|
|
57684
|
+
401: {
|
|
56522
57685
|
type: 'error';
|
|
56523
57686
|
error: {
|
|
56524
57687
|
/**
|
|
@@ -56541,7 +57704,7 @@ export type ConnectComputerErrors = {
|
|
|
56541
57704
|
/**
|
|
56542
57705
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56543
57706
|
*/
|
|
56544
|
-
|
|
57707
|
+
403: {
|
|
56545
57708
|
type: 'error';
|
|
56546
57709
|
error: {
|
|
56547
57710
|
/**
|
|
@@ -56562,9 +57725,9 @@ export type ConnectComputerErrors = {
|
|
|
56562
57725
|
request_id: string;
|
|
56563
57726
|
};
|
|
56564
57727
|
/**
|
|
56565
|
-
*
|
|
57728
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
56566
57729
|
*/
|
|
56567
|
-
|
|
57730
|
+
404: {
|
|
56568
57731
|
type: 'error';
|
|
56569
57732
|
error: {
|
|
56570
57733
|
/**
|
|
@@ -56584,60 +57747,10 @@ export type ConnectComputerErrors = {
|
|
|
56584
57747
|
*/
|
|
56585
57748
|
request_id: string;
|
|
56586
57749
|
};
|
|
56587
|
-
};
|
|
56588
|
-
export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
|
|
56589
|
-
export type ConnectComputerResponses = {
|
|
56590
|
-
/**
|
|
56591
|
-
* Computer result
|
|
56592
|
-
*/
|
|
56593
|
-
200: {
|
|
56594
|
-
/**
|
|
56595
|
-
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
56596
|
-
*/
|
|
56597
|
-
sandbox_id: string;
|
|
56598
|
-
/**
|
|
56599
|
-
* Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
|
|
56600
|
-
*/
|
|
56601
|
-
envd_access_token: string;
|
|
56602
|
-
/**
|
|
56603
|
-
* Sandbox template the computer's sandbox was created from.
|
|
56604
|
-
*/
|
|
56605
|
-
template_id: string;
|
|
56606
|
-
/**
|
|
56607
|
-
* Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
|
|
56608
|
-
*/
|
|
56609
|
-
tier: 'light' | 'heavy';
|
|
56610
|
-
/**
|
|
56611
|
-
* Id of the lease that keeps this connection's machine in service; renew it while the connection is open and release it on close. Null when no lease exists.
|
|
56612
|
-
*/
|
|
56613
|
-
lease_id: string | null;
|
|
56614
|
-
/**
|
|
56615
|
-
* Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
|
|
56616
|
-
*/
|
|
56617
|
-
lease_expires_at: string | null;
|
|
56618
|
-
};
|
|
56619
|
-
};
|
|
56620
|
-
export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
|
|
56621
|
-
export type RenewComputerLeaseData = {
|
|
56622
|
-
body?: never;
|
|
56623
|
-
path: {
|
|
56624
|
-
/**
|
|
56625
|
-
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
56626
|
-
*/
|
|
56627
|
-
computer_id: string;
|
|
56628
|
-
/**
|
|
56629
|
-
* lease_id from the connect response.
|
|
56630
|
-
*/
|
|
56631
|
-
lease_id: string;
|
|
56632
|
-
};
|
|
56633
|
-
query?: never;
|
|
56634
|
-
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
|
|
56635
|
-
};
|
|
56636
|
-
export type RenewComputerLeaseErrors = {
|
|
56637
57750
|
/**
|
|
56638
57751
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56639
57752
|
*/
|
|
56640
|
-
|
|
57753
|
+
409: {
|
|
56641
57754
|
type: 'error';
|
|
56642
57755
|
error: {
|
|
56643
57756
|
/**
|
|
@@ -56660,7 +57773,7 @@ export type RenewComputerLeaseErrors = {
|
|
|
56660
57773
|
/**
|
|
56661
57774
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56662
57775
|
*/
|
|
56663
|
-
|
|
57776
|
+
413: {
|
|
56664
57777
|
type: 'error';
|
|
56665
57778
|
error: {
|
|
56666
57779
|
/**
|
|
@@ -56683,7 +57796,7 @@ export type RenewComputerLeaseErrors = {
|
|
|
56683
57796
|
/**
|
|
56684
57797
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56685
57798
|
*/
|
|
56686
|
-
|
|
57799
|
+
429: {
|
|
56687
57800
|
type: 'error';
|
|
56688
57801
|
error: {
|
|
56689
57802
|
/**
|
|
@@ -56704,9 +57817,174 @@ export type RenewComputerLeaseErrors = {
|
|
|
56704
57817
|
request_id: string;
|
|
56705
57818
|
};
|
|
56706
57819
|
/**
|
|
56707
|
-
*
|
|
57820
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56708
57821
|
*/
|
|
56709
|
-
|
|
57822
|
+
500: {
|
|
57823
|
+
type: 'error';
|
|
57824
|
+
error: {
|
|
57825
|
+
/**
|
|
57826
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57827
|
+
*/
|
|
57828
|
+
type: string;
|
|
57829
|
+
message: string;
|
|
57830
|
+
code: string;
|
|
57831
|
+
retryable: boolean;
|
|
57832
|
+
/**
|
|
57833
|
+
* How to recover, for computer failures.
|
|
57834
|
+
*/
|
|
57835
|
+
hint?: string;
|
|
57836
|
+
};
|
|
57837
|
+
/**
|
|
57838
|
+
* Equals the X-Request-Id response header.
|
|
57839
|
+
*/
|
|
57840
|
+
request_id: string;
|
|
57841
|
+
};
|
|
57842
|
+
/**
|
|
57843
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57844
|
+
*/
|
|
57845
|
+
503: {
|
|
57846
|
+
type: 'error';
|
|
57847
|
+
error: {
|
|
57848
|
+
/**
|
|
57849
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57850
|
+
*/
|
|
57851
|
+
type: string;
|
|
57852
|
+
message: string;
|
|
57853
|
+
code: string;
|
|
57854
|
+
retryable: boolean;
|
|
57855
|
+
/**
|
|
57856
|
+
* How to recover, for computer failures.
|
|
57857
|
+
*/
|
|
57858
|
+
hint?: string;
|
|
57859
|
+
};
|
|
57860
|
+
/**
|
|
57861
|
+
* Equals the X-Request-Id response header.
|
|
57862
|
+
*/
|
|
57863
|
+
request_id: string;
|
|
57864
|
+
};
|
|
57865
|
+
};
|
|
57866
|
+
export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
|
|
57867
|
+
export type ConnectComputerResponses = {
|
|
57868
|
+
/**
|
|
57869
|
+
* Computer result
|
|
57870
|
+
*/
|
|
57871
|
+
200: {
|
|
57872
|
+
/**
|
|
57873
|
+
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
57874
|
+
*/
|
|
57875
|
+
sandbox_id: string;
|
|
57876
|
+
/**
|
|
57877
|
+
* Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
|
|
57878
|
+
*/
|
|
57879
|
+
envd_access_token: string;
|
|
57880
|
+
/**
|
|
57881
|
+
* Sandbox template the computer's sandbox was created from.
|
|
57882
|
+
*/
|
|
57883
|
+
template_id: string;
|
|
57884
|
+
/**
|
|
57885
|
+
* Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
|
|
57886
|
+
*/
|
|
57887
|
+
tier: 'light' | 'heavy';
|
|
57888
|
+
/**
|
|
57889
|
+
* Id of the lease that keeps this connection's machine in service; renew it while the connection is open and release it on close. Null when no lease exists.
|
|
57890
|
+
*/
|
|
57891
|
+
lease_id: string | null;
|
|
57892
|
+
/**
|
|
57893
|
+
* Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
|
|
57894
|
+
*/
|
|
57895
|
+
lease_expires_at: string | null;
|
|
57896
|
+
};
|
|
57897
|
+
};
|
|
57898
|
+
export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
|
|
57899
|
+
export type RenewComputerLeaseData = {
|
|
57900
|
+
body?: never;
|
|
57901
|
+
path: {
|
|
57902
|
+
/**
|
|
57903
|
+
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
57904
|
+
*/
|
|
57905
|
+
computer_id: string;
|
|
57906
|
+
/**
|
|
57907
|
+
* lease_id from the connect response.
|
|
57908
|
+
*/
|
|
57909
|
+
lease_id: string;
|
|
57910
|
+
};
|
|
57911
|
+
query?: never;
|
|
57912
|
+
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
|
|
57913
|
+
};
|
|
57914
|
+
export type RenewComputerLeaseErrors = {
|
|
57915
|
+
/**
|
|
57916
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57917
|
+
*/
|
|
57918
|
+
400: {
|
|
57919
|
+
type: 'error';
|
|
57920
|
+
error: {
|
|
57921
|
+
/**
|
|
57922
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57923
|
+
*/
|
|
57924
|
+
type: string;
|
|
57925
|
+
message: string;
|
|
57926
|
+
code: string;
|
|
57927
|
+
retryable: boolean;
|
|
57928
|
+
/**
|
|
57929
|
+
* How to recover, for computer failures.
|
|
57930
|
+
*/
|
|
57931
|
+
hint?: string;
|
|
57932
|
+
};
|
|
57933
|
+
/**
|
|
57934
|
+
* Equals the X-Request-Id response header.
|
|
57935
|
+
*/
|
|
57936
|
+
request_id: string;
|
|
57937
|
+
};
|
|
57938
|
+
/**
|
|
57939
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57940
|
+
*/
|
|
57941
|
+
401: {
|
|
57942
|
+
type: 'error';
|
|
57943
|
+
error: {
|
|
57944
|
+
/**
|
|
57945
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57946
|
+
*/
|
|
57947
|
+
type: string;
|
|
57948
|
+
message: string;
|
|
57949
|
+
code: string;
|
|
57950
|
+
retryable: boolean;
|
|
57951
|
+
/**
|
|
57952
|
+
* How to recover, for computer failures.
|
|
57953
|
+
*/
|
|
57954
|
+
hint?: string;
|
|
57955
|
+
};
|
|
57956
|
+
/**
|
|
57957
|
+
* Equals the X-Request-Id response header.
|
|
57958
|
+
*/
|
|
57959
|
+
request_id: string;
|
|
57960
|
+
};
|
|
57961
|
+
/**
|
|
57962
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57963
|
+
*/
|
|
57964
|
+
403: {
|
|
57965
|
+
type: 'error';
|
|
57966
|
+
error: {
|
|
57967
|
+
/**
|
|
57968
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57969
|
+
*/
|
|
57970
|
+
type: string;
|
|
57971
|
+
message: string;
|
|
57972
|
+
code: string;
|
|
57973
|
+
retryable: boolean;
|
|
57974
|
+
/**
|
|
57975
|
+
* How to recover, for computer failures.
|
|
57976
|
+
*/
|
|
57977
|
+
hint?: string;
|
|
57978
|
+
};
|
|
57979
|
+
/**
|
|
57980
|
+
* Equals the X-Request-Id response header.
|
|
57981
|
+
*/
|
|
57982
|
+
request_id: string;
|
|
57983
|
+
};
|
|
57984
|
+
/**
|
|
57985
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
57986
|
+
*/
|
|
57987
|
+
404: {
|
|
56710
57988
|
type: 'error';
|
|
56711
57989
|
error: {
|
|
56712
57990
|
/**
|
|
@@ -62929,7 +64207,7 @@ export type ListSessionRequestsResponses = {
|
|
|
62929
64207
|
*/
|
|
62930
64208
|
object: 'request';
|
|
62931
64209
|
/**
|
|
62932
|
-
* question
|
|
64210
|
+
* 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.
|
|
62933
64211
|
*/
|
|
62934
64212
|
kind: 'question' | 'approval';
|
|
62935
64213
|
/**
|
|
@@ -62937,11 +64215,11 @@ export type ListSessionRequestsResponses = {
|
|
|
62937
64215
|
*/
|
|
62938
64216
|
status: 'pending';
|
|
62939
64217
|
/**
|
|
62940
|
-
* The tool the agent called, such as
|
|
64218
|
+
* The tool the agent called, such as bash.
|
|
62941
64219
|
*/
|
|
62942
64220
|
tool_name: string;
|
|
62943
64221
|
/**
|
|
62944
|
-
* The tool call's input exactly as the agent.tool_use event shows it:
|
|
64222
|
+
* The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
|
|
62945
64223
|
*/
|
|
62946
64224
|
input: unknown;
|
|
62947
64225
|
/**
|
|
@@ -65750,6 +67028,10 @@ export type FileListFilesData = {
|
|
|
65750
67028
|
* 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.
|
|
65751
67029
|
*/
|
|
65752
67030
|
scope_id?: string;
|
|
67031
|
+
/**
|
|
67032
|
+
* 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.
|
|
67033
|
+
*/
|
|
67034
|
+
ids?: Array<string>;
|
|
65753
67035
|
/**
|
|
65754
67036
|
* File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.
|
|
65755
67037
|
*/
|
|
@@ -71166,9 +72448,9 @@ export type CreateOrganizationFeedbackData = {
|
|
|
71166
72448
|
};
|
|
71167
72449
|
};
|
|
71168
72450
|
/**
|
|
71169
|
-
* Use console for Console reports or api for API callers (default)
|
|
72451
|
+
* 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.
|
|
71170
72452
|
*/
|
|
71171
|
-
source?: 'console' | 'api';
|
|
72453
|
+
source?: 'console' | 'api' | 'codemode';
|
|
71172
72454
|
/**
|
|
71173
72455
|
* Up to five attachments; decoded bytes must not exceed 10 MiB per attachment or 20 MiB in total.
|
|
71174
72456
|
*/
|
|
@@ -74128,6 +75410,433 @@ export type ReviseOrganizationKeyResultResponses = {
|
|
|
74128
75410
|
200: OrganizationKeyResult;
|
|
74129
75411
|
};
|
|
74130
75412
|
export type ReviseOrganizationKeyResultResponse = ReviseOrganizationKeyResultResponses[keyof ReviseOrganizationKeyResultResponses];
|
|
75413
|
+
export type ListOrganizationSpecsData = {
|
|
75414
|
+
body?: never;
|
|
75415
|
+
path?: never;
|
|
75416
|
+
query?: {
|
|
75417
|
+
/**
|
|
75418
|
+
* Maximum items per page, from 1 to 100; defaults to 20.
|
|
75419
|
+
*/
|
|
75420
|
+
limit?: number;
|
|
75421
|
+
/**
|
|
75422
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
75423
|
+
*/
|
|
75424
|
+
page?: string;
|
|
75425
|
+
/**
|
|
75426
|
+
* Only specs of this subject kind; omit to list every kind together.
|
|
75427
|
+
*/
|
|
75428
|
+
kind?: OrganizationSpecKind;
|
|
75429
|
+
};
|
|
75430
|
+
url: '/organization/v1/specs';
|
|
75431
|
+
};
|
|
75432
|
+
export type ListOrganizationSpecsErrors = {
|
|
75433
|
+
/**
|
|
75434
|
+
* 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.
|
|
75435
|
+
*/
|
|
75436
|
+
400: OrganizationProblem;
|
|
75437
|
+
/**
|
|
75438
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75439
|
+
*/
|
|
75440
|
+
401: unknown;
|
|
75441
|
+
/**
|
|
75442
|
+
* 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.
|
|
75443
|
+
*/
|
|
75444
|
+
403: OrganizationProblem;
|
|
75445
|
+
};
|
|
75446
|
+
export type ListOrganizationSpecsError = ListOrganizationSpecsErrors[keyof ListOrganizationSpecsErrors];
|
|
75447
|
+
export type ListOrganizationSpecsResponses = {
|
|
75448
|
+
/**
|
|
75449
|
+
* One page of specs.
|
|
75450
|
+
*/
|
|
75451
|
+
200: OrganizationSpecList;
|
|
75452
|
+
};
|
|
75453
|
+
export type ListOrganizationSpecsResponse = ListOrganizationSpecsResponses[keyof ListOrganizationSpecsResponses];
|
|
75454
|
+
export type GetOrganizationSpecData = {
|
|
75455
|
+
body?: never;
|
|
75456
|
+
path: {
|
|
75457
|
+
/**
|
|
75458
|
+
* Kind of the subject whose spec to read.
|
|
75459
|
+
*/
|
|
75460
|
+
kind: OrganizationSpecKind;
|
|
75461
|
+
/**
|
|
75462
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75463
|
+
*/
|
|
75464
|
+
id: string;
|
|
75465
|
+
};
|
|
75466
|
+
query?: {
|
|
75467
|
+
/**
|
|
75468
|
+
* Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written.
|
|
75469
|
+
*/
|
|
75470
|
+
revision?: number;
|
|
75471
|
+
};
|
|
75472
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
75473
|
+
};
|
|
75474
|
+
export type GetOrganizationSpecErrors = {
|
|
75475
|
+
/**
|
|
75476
|
+
* 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.
|
|
75477
|
+
*/
|
|
75478
|
+
400: OrganizationProblem;
|
|
75479
|
+
/**
|
|
75480
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75481
|
+
*/
|
|
75482
|
+
401: unknown;
|
|
75483
|
+
/**
|
|
75484
|
+
* 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.
|
|
75485
|
+
*/
|
|
75486
|
+
403: OrganizationProblem;
|
|
75487
|
+
/**
|
|
75488
|
+
* 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.
|
|
75489
|
+
*/
|
|
75490
|
+
404: OrganizationProblem;
|
|
75491
|
+
};
|
|
75492
|
+
export type GetOrganizationSpecError = GetOrganizationSpecErrors[keyof GetOrganizationSpecErrors];
|
|
75493
|
+
export type GetOrganizationSpecResponses = {
|
|
75494
|
+
/**
|
|
75495
|
+
* The spec of the subject at the live or named revision.
|
|
75496
|
+
*/
|
|
75497
|
+
200: OrganizationSpec;
|
|
75498
|
+
};
|
|
75499
|
+
export type GetOrganizationSpecResponse = GetOrganizationSpecResponses[keyof GetOrganizationSpecResponses];
|
|
75500
|
+
export type ReviseOrganizationSpecData = {
|
|
75501
|
+
body: OrganizationReviseSpecRequest;
|
|
75502
|
+
path: {
|
|
75503
|
+
/**
|
|
75504
|
+
* Kind of the subject whose spec to revise.
|
|
75505
|
+
*/
|
|
75506
|
+
kind: OrganizationSpecKind;
|
|
75507
|
+
/**
|
|
75508
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75509
|
+
*/
|
|
75510
|
+
id: string;
|
|
75511
|
+
};
|
|
75512
|
+
query?: never;
|
|
75513
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
75514
|
+
};
|
|
75515
|
+
export type ReviseOrganizationSpecErrors = {
|
|
75516
|
+
/**
|
|
75517
|
+
* INVALID_PARAMS; the spec is missing, expected_revision is not an integer, a block is outside the registry or a body field is unknown. The message names the field or block to fix.
|
|
75518
|
+
*/
|
|
75519
|
+
400: OrganizationProblem;
|
|
75520
|
+
/**
|
|
75521
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75522
|
+
*/
|
|
75523
|
+
401: unknown;
|
|
75524
|
+
/**
|
|
75525
|
+
* 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).
|
|
75526
|
+
*/
|
|
75527
|
+
403: OrganizationProblem;
|
|
75528
|
+
/**
|
|
75529
|
+
* 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.
|
|
75530
|
+
*/
|
|
75531
|
+
404: OrganizationProblem;
|
|
75532
|
+
/**
|
|
75533
|
+
* REVISION_CONFLICT; the spec moved on since you read it. Read it again, merge your change and retry with its current revision.
|
|
75534
|
+
*/
|
|
75535
|
+
409: OrganizationProblem;
|
|
75536
|
+
};
|
|
75537
|
+
export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
|
|
75538
|
+
export type ReviseOrganizationSpecResponses = {
|
|
75539
|
+
/**
|
|
75540
|
+
* The spec after the revision, at the new revision number.
|
|
75541
|
+
*/
|
|
75542
|
+
200: OrganizationSpec;
|
|
75543
|
+
};
|
|
75544
|
+
export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
|
|
75545
|
+
export type ListOrganizationSpecRevisionsData = {
|
|
75546
|
+
body?: never;
|
|
75547
|
+
path: {
|
|
75548
|
+
/**
|
|
75549
|
+
* Kind of the subject whose revision history to list.
|
|
75550
|
+
*/
|
|
75551
|
+
kind: OrganizationSpecKind;
|
|
75552
|
+
/**
|
|
75553
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75554
|
+
*/
|
|
75555
|
+
id: string;
|
|
75556
|
+
};
|
|
75557
|
+
query?: {
|
|
75558
|
+
/**
|
|
75559
|
+
* Maximum revisions per page, from 1 to 100; defaults to 20.
|
|
75560
|
+
*/
|
|
75561
|
+
limit?: number;
|
|
75562
|
+
/**
|
|
75563
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
75564
|
+
*/
|
|
75565
|
+
page?: string;
|
|
75566
|
+
};
|
|
75567
|
+
url: '/organization/v1/specs/{kind}/{id}/revisions';
|
|
75568
|
+
};
|
|
75569
|
+
export type ListOrganizationSpecRevisionsErrors = {
|
|
75570
|
+
/**
|
|
75571
|
+
* INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters.
|
|
75572
|
+
*/
|
|
75573
|
+
400: OrganizationProblem;
|
|
75574
|
+
/**
|
|
75575
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75576
|
+
*/
|
|
75577
|
+
401: unknown;
|
|
75578
|
+
/**
|
|
75579
|
+
* 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.
|
|
75580
|
+
*/
|
|
75581
|
+
403: OrganizationProblem;
|
|
75582
|
+
/**
|
|
75583
|
+
* 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.
|
|
75584
|
+
*/
|
|
75585
|
+
404: OrganizationProblem;
|
|
75586
|
+
};
|
|
75587
|
+
export type ListOrganizationSpecRevisionsError = ListOrganizationSpecRevisionsErrors[keyof ListOrganizationSpecRevisionsErrors];
|
|
75588
|
+
export type ListOrganizationSpecRevisionsResponses = {
|
|
75589
|
+
/**
|
|
75590
|
+
* One page of revisions, newest first.
|
|
75591
|
+
*/
|
|
75592
|
+
200: OrganizationSpecRevisionList;
|
|
75593
|
+
};
|
|
75594
|
+
export type ListOrganizationSpecRevisionsResponse = ListOrganizationSpecRevisionsResponses[keyof ListOrganizationSpecRevisionsResponses];
|
|
75595
|
+
export type DiffOrganizationSpecData = {
|
|
75596
|
+
body?: never;
|
|
75597
|
+
path: {
|
|
75598
|
+
/**
|
|
75599
|
+
* Kind of the subject whose revisions to compare.
|
|
75600
|
+
*/
|
|
75601
|
+
kind: OrganizationSpecKind;
|
|
75602
|
+
/**
|
|
75603
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75604
|
+
*/
|
|
75605
|
+
id: string;
|
|
75606
|
+
};
|
|
75607
|
+
query: {
|
|
75608
|
+
/**
|
|
75609
|
+
* The earlier revision to compare from; 0 is the empty spec before the first write.
|
|
75610
|
+
*/
|
|
75611
|
+
from: number;
|
|
75612
|
+
/**
|
|
75613
|
+
* The later revision to compare to.
|
|
75614
|
+
*/
|
|
75615
|
+
to: number;
|
|
75616
|
+
};
|
|
75617
|
+
url: '/organization/v1/specs/{kind}/{id}/diff';
|
|
75618
|
+
};
|
|
75619
|
+
export type DiffOrganizationSpecErrors = {
|
|
75620
|
+
/**
|
|
75621
|
+
* INVALID_PARAMS; from or to is missing or not an integer. Send both as whole numbers.
|
|
75622
|
+
*/
|
|
75623
|
+
400: OrganizationProblem;
|
|
75624
|
+
/**
|
|
75625
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75626
|
+
*/
|
|
75627
|
+
401: unknown;
|
|
75628
|
+
/**
|
|
75629
|
+
* 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.
|
|
75630
|
+
*/
|
|
75631
|
+
403: OrganizationProblem;
|
|
75632
|
+
/**
|
|
75633
|
+
* 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.
|
|
75634
|
+
*/
|
|
75635
|
+
404: OrganizationProblem;
|
|
75636
|
+
};
|
|
75637
|
+
export type DiffOrganizationSpecError = DiffOrganizationSpecErrors[keyof DiffOrganizationSpecErrors];
|
|
75638
|
+
export type DiffOrganizationSpecResponses = {
|
|
75639
|
+
/**
|
|
75640
|
+
* The changes between the two revisions, in path order.
|
|
75641
|
+
*/
|
|
75642
|
+
200: OrganizationSpecDiff;
|
|
75643
|
+
};
|
|
75644
|
+
export type DiffOrganizationSpecResponse = DiffOrganizationSpecResponses[keyof DiffOrganizationSpecResponses];
|
|
75645
|
+
export type GetOrganizationEffectiveSpecData = {
|
|
75646
|
+
body?: never;
|
|
75647
|
+
path?: never;
|
|
75648
|
+
query?: {
|
|
75649
|
+
/**
|
|
75650
|
+
* Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both.
|
|
75651
|
+
*/
|
|
75652
|
+
actor?: string;
|
|
75653
|
+
/**
|
|
75654
|
+
* One seat to merge, held or vacant (pos_...); give this or actor, not both.
|
|
75655
|
+
*/
|
|
75656
|
+
position_id?: string;
|
|
75657
|
+
/**
|
|
75658
|
+
* Which holder kind to merge for; omit to derive it from the seat's holder.
|
|
75659
|
+
*/
|
|
75660
|
+
holder_kind?: 'agent' | 'human';
|
|
75661
|
+
};
|
|
75662
|
+
url: '/organization/v1/effective_spec';
|
|
75663
|
+
};
|
|
75664
|
+
export type GetOrganizationEffectiveSpecErrors = {
|
|
75665
|
+
/**
|
|
75666
|
+
* 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.
|
|
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; 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.
|
|
75675
|
+
*/
|
|
75676
|
+
403: OrganizationProblem;
|
|
75677
|
+
/**
|
|
75678
|
+
* POSITION_NOT_FOUND; position_id is not a position of your organization. List positions and copy an id.
|
|
75679
|
+
*/
|
|
75680
|
+
404: OrganizationProblem;
|
|
75681
|
+
};
|
|
75682
|
+
export type GetOrganizationEffectiveSpecError = GetOrganizationEffectiveSpecErrors[keyof GetOrganizationEffectiveSpecErrors];
|
|
75683
|
+
export type GetOrganizationEffectiveSpecResponses = {
|
|
75684
|
+
/**
|
|
75685
|
+
* The merged effective spec of the seat or actor.
|
|
75686
|
+
*/
|
|
75687
|
+
200: OrganizationEffectiveSpec;
|
|
75688
|
+
};
|
|
75689
|
+
export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
|
|
75690
|
+
export type PlanOrganizationReconcileData = {
|
|
75691
|
+
body?: never;
|
|
75692
|
+
path?: never;
|
|
75693
|
+
query: {
|
|
75694
|
+
/**
|
|
75695
|
+
* The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged.
|
|
75696
|
+
*/
|
|
75697
|
+
actor: string;
|
|
75698
|
+
};
|
|
75699
|
+
url: '/organization/v1/reconcile/plan';
|
|
75700
|
+
};
|
|
75701
|
+
export type PlanOrganizationReconcileErrors = {
|
|
75702
|
+
/**
|
|
75703
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
75704
|
+
*/
|
|
75705
|
+
400: OrganizationProblem;
|
|
75706
|
+
/**
|
|
75707
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75708
|
+
*/
|
|
75709
|
+
401: unknown;
|
|
75710
|
+
/**
|
|
75711
|
+
* 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.
|
|
75712
|
+
*/
|
|
75713
|
+
403: OrganizationProblem;
|
|
75714
|
+
};
|
|
75715
|
+
export type PlanOrganizationReconcileError = PlanOrganizationReconcileErrors[keyof PlanOrganizationReconcileErrors];
|
|
75716
|
+
export type PlanOrganizationReconcileResponses = {
|
|
75717
|
+
/**
|
|
75718
|
+
* The actions the reconciler would take for this holder, and the merged-result violations.
|
|
75719
|
+
*/
|
|
75720
|
+
200: OrganizationReconcilePlan;
|
|
75721
|
+
};
|
|
75722
|
+
export type PlanOrganizationReconcileResponse = PlanOrganizationReconcileResponses[keyof PlanOrganizationReconcileResponses];
|
|
75723
|
+
export type GetOrganizationReconcileStatusData = {
|
|
75724
|
+
body?: never;
|
|
75725
|
+
path?: never;
|
|
75726
|
+
query: {
|
|
75727
|
+
/**
|
|
75728
|
+
* The holder whose reconcile status to read (agent:agent_... or human:usr_...).
|
|
75729
|
+
*/
|
|
75730
|
+
actor: string;
|
|
75731
|
+
};
|
|
75732
|
+
url: '/organization/v1/reconcile/status';
|
|
75733
|
+
};
|
|
75734
|
+
export type GetOrganizationReconcileStatusErrors = {
|
|
75735
|
+
/**
|
|
75736
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
75737
|
+
*/
|
|
75738
|
+
400: OrganizationProblem;
|
|
75739
|
+
/**
|
|
75740
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75741
|
+
*/
|
|
75742
|
+
401: unknown;
|
|
75743
|
+
/**
|
|
75744
|
+
* 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.
|
|
75745
|
+
*/
|
|
75746
|
+
403: OrganizationProblem;
|
|
75747
|
+
};
|
|
75748
|
+
export type GetOrganizationReconcileStatusError = GetOrganizationReconcileStatusErrors[keyof GetOrganizationReconcileStatusErrors];
|
|
75749
|
+
export type GetOrganizationReconcileStatusResponses = {
|
|
75750
|
+
/**
|
|
75751
|
+
* The last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
|
|
75752
|
+
*/
|
|
75753
|
+
200: OrganizationReconcileStatus;
|
|
75754
|
+
};
|
|
75755
|
+
export type GetOrganizationReconcileStatusResponse = GetOrganizationReconcileStatusResponses[keyof GetOrganizationReconcileStatusResponses];
|
|
75756
|
+
export type RunOrganizationReconcileData = {
|
|
75757
|
+
body: OrganizationReconcileActorRequest;
|
|
75758
|
+
path?: never;
|
|
75759
|
+
query?: never;
|
|
75760
|
+
url: '/organization/v1/reconcile/run';
|
|
75761
|
+
};
|
|
75762
|
+
export type RunOrganizationReconcileErrors = {
|
|
75763
|
+
/**
|
|
75764
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75765
|
+
*/
|
|
75766
|
+
400: OrganizationProblem;
|
|
75767
|
+
/**
|
|
75768
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75769
|
+
*/
|
|
75770
|
+
401: unknown;
|
|
75771
|
+
/**
|
|
75772
|
+
* 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).
|
|
75773
|
+
*/
|
|
75774
|
+
403: OrganizationProblem;
|
|
75775
|
+
};
|
|
75776
|
+
export type RunOrganizationReconcileError = RunOrganizationReconcileErrors[keyof RunOrganizationReconcileErrors];
|
|
75777
|
+
export type RunOrganizationReconcileResponses = {
|
|
75778
|
+
/**
|
|
75779
|
+
* The status after this run.
|
|
75780
|
+
*/
|
|
75781
|
+
200: OrganizationReconcileStatus;
|
|
75782
|
+
};
|
|
75783
|
+
export type RunOrganizationReconcileResponse = RunOrganizationReconcileResponses[keyof RunOrganizationReconcileResponses];
|
|
75784
|
+
export type PauseOrganizationReconcileData = {
|
|
75785
|
+
body: OrganizationReconcileActorRequest;
|
|
75786
|
+
path?: never;
|
|
75787
|
+
query?: never;
|
|
75788
|
+
url: '/organization/v1/reconcile/pause';
|
|
75789
|
+
};
|
|
75790
|
+
export type PauseOrganizationReconcileErrors = {
|
|
75791
|
+
/**
|
|
75792
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75793
|
+
*/
|
|
75794
|
+
400: OrganizationProblem;
|
|
75795
|
+
/**
|
|
75796
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75797
|
+
*/
|
|
75798
|
+
401: unknown;
|
|
75799
|
+
/**
|
|
75800
|
+
* 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).
|
|
75801
|
+
*/
|
|
75802
|
+
403: OrganizationProblem;
|
|
75803
|
+
};
|
|
75804
|
+
export type PauseOrganizationReconcileError = PauseOrganizationReconcileErrors[keyof PauseOrganizationReconcileErrors];
|
|
75805
|
+
export type PauseOrganizationReconcileResponses = {
|
|
75806
|
+
/**
|
|
75807
|
+
* The status after pausing; paused is true.
|
|
75808
|
+
*/
|
|
75809
|
+
200: OrganizationReconcileStatus;
|
|
75810
|
+
};
|
|
75811
|
+
export type PauseOrganizationReconcileResponse = PauseOrganizationReconcileResponses[keyof PauseOrganizationReconcileResponses];
|
|
75812
|
+
export type ResumeOrganizationReconcileData = {
|
|
75813
|
+
body: OrganizationReconcileActorRequest;
|
|
75814
|
+
path?: never;
|
|
75815
|
+
query?: never;
|
|
75816
|
+
url: '/organization/v1/reconcile/resume';
|
|
75817
|
+
};
|
|
75818
|
+
export type ResumeOrganizationReconcileErrors = {
|
|
75819
|
+
/**
|
|
75820
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75821
|
+
*/
|
|
75822
|
+
400: OrganizationProblem;
|
|
75823
|
+
/**
|
|
75824
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75825
|
+
*/
|
|
75826
|
+
401: unknown;
|
|
75827
|
+
/**
|
|
75828
|
+
* 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).
|
|
75829
|
+
*/
|
|
75830
|
+
403: OrganizationProblem;
|
|
75831
|
+
};
|
|
75832
|
+
export type ResumeOrganizationReconcileError = ResumeOrganizationReconcileErrors[keyof ResumeOrganizationReconcileErrors];
|
|
75833
|
+
export type ResumeOrganizationReconcileResponses = {
|
|
75834
|
+
/**
|
|
75835
|
+
* The status after resuming; paused is false.
|
|
75836
|
+
*/
|
|
75837
|
+
200: OrganizationReconcileStatus;
|
|
75838
|
+
};
|
|
75839
|
+
export type ResumeOrganizationReconcileResponse = ResumeOrganizationReconcileResponses[keyof ResumeOrganizationReconcileResponses];
|
|
74131
75840
|
export type UpgradeSandboxData = {
|
|
74132
75841
|
body: {
|
|
74133
75842
|
/**
|
|
@@ -75275,6 +76984,440 @@ export type RunSandboxCommandResponses = {
|
|
|
75275
76984
|
};
|
|
75276
76985
|
};
|
|
75277
76986
|
export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
|
|
76987
|
+
export type CreateByodPairingData = {
|
|
76988
|
+
body?: never;
|
|
76989
|
+
path?: never;
|
|
76990
|
+
query?: never;
|
|
76991
|
+
url: '/sandbox/v1/byod/pairings';
|
|
76992
|
+
};
|
|
76993
|
+
export type CreateByodPairingErrors = {
|
|
76994
|
+
/**
|
|
76995
|
+
* 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.
|
|
76996
|
+
*/
|
|
76997
|
+
400: unknown;
|
|
76998
|
+
/**
|
|
76999
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77000
|
+
*/
|
|
77001
|
+
401: unknown;
|
|
77002
|
+
/**
|
|
77003
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77004
|
+
*/
|
|
77005
|
+
503: unknown;
|
|
77006
|
+
};
|
|
77007
|
+
export type CreateByodPairingResponses = {
|
|
77008
|
+
/**
|
|
77009
|
+
* A pairing the caller started: the short code, its deadline and the string the phone's app scans.
|
|
77010
|
+
*/
|
|
77011
|
+
201: {
|
|
77012
|
+
/**
|
|
77013
|
+
* 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.
|
|
77014
|
+
*/
|
|
77015
|
+
code: string;
|
|
77016
|
+
/**
|
|
77017
|
+
* 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.
|
|
77018
|
+
*/
|
|
77019
|
+
expires_at: string;
|
|
77020
|
+
/**
|
|
77021
|
+
* 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.
|
|
77022
|
+
*/
|
|
77023
|
+
qr: string;
|
|
77024
|
+
};
|
|
77025
|
+
};
|
|
77026
|
+
export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
|
|
77027
|
+
export type ListByodDevicesData = {
|
|
77028
|
+
body?: never;
|
|
77029
|
+
path?: never;
|
|
77030
|
+
query?: never;
|
|
77031
|
+
url: '/sandbox/v1/byod/devices';
|
|
77032
|
+
};
|
|
77033
|
+
export type ListByodDevicesErrors = {
|
|
77034
|
+
/**
|
|
77035
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77036
|
+
*/
|
|
77037
|
+
401: unknown;
|
|
77038
|
+
/**
|
|
77039
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77040
|
+
*/
|
|
77041
|
+
503: unknown;
|
|
77042
|
+
};
|
|
77043
|
+
export type ListByodDevicesResponses = {
|
|
77044
|
+
/**
|
|
77045
|
+
* The organization's BYOD devices.
|
|
77046
|
+
*/
|
|
77047
|
+
200: {
|
|
77048
|
+
/**
|
|
77049
|
+
* The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
|
|
77050
|
+
*/
|
|
77051
|
+
data: Array<{
|
|
77052
|
+
/**
|
|
77053
|
+
* Resource type; always "byod_device".
|
|
77054
|
+
*/
|
|
77055
|
+
object: 'byod_device';
|
|
77056
|
+
/**
|
|
77057
|
+
* 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.
|
|
77058
|
+
*/
|
|
77059
|
+
id: string;
|
|
77060
|
+
/**
|
|
77061
|
+
* 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.
|
|
77062
|
+
*/
|
|
77063
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77064
|
+
/**
|
|
77065
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
77066
|
+
*/
|
|
77067
|
+
name: string;
|
|
77068
|
+
/**
|
|
77069
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
77070
|
+
*/
|
|
77071
|
+
model: string;
|
|
77072
|
+
/**
|
|
77073
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
77074
|
+
*/
|
|
77075
|
+
os_version: string;
|
|
77076
|
+
/**
|
|
77077
|
+
* 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.
|
|
77078
|
+
*/
|
|
77079
|
+
online: boolean;
|
|
77080
|
+
/**
|
|
77081
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
77082
|
+
*/
|
|
77083
|
+
last_seen_at: string | null;
|
|
77084
|
+
/**
|
|
77085
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
77086
|
+
*/
|
|
77087
|
+
created_at: string;
|
|
77088
|
+
/**
|
|
77089
|
+
* 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).
|
|
77090
|
+
*/
|
|
77091
|
+
capabilities: Array<'display' | 'agent'>;
|
|
77092
|
+
/**
|
|
77093
|
+
* 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.
|
|
77094
|
+
*/
|
|
77095
|
+
agent_dirs: Array<string>;
|
|
77096
|
+
/**
|
|
77097
|
+
* 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.
|
|
77098
|
+
*/
|
|
77099
|
+
allow_bypass: boolean;
|
|
77100
|
+
}>;
|
|
77101
|
+
};
|
|
77102
|
+
};
|
|
77103
|
+
export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
|
|
77104
|
+
export type GetByodDeviceData = {
|
|
77105
|
+
body?: never;
|
|
77106
|
+
path: {
|
|
77107
|
+
/**
|
|
77108
|
+
* 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.
|
|
77109
|
+
*/
|
|
77110
|
+
deviceID: string;
|
|
77111
|
+
};
|
|
77112
|
+
query?: never;
|
|
77113
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
77114
|
+
};
|
|
77115
|
+
export type GetByodDeviceErrors = {
|
|
77116
|
+
/**
|
|
77117
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77118
|
+
*/
|
|
77119
|
+
401: unknown;
|
|
77120
|
+
/**
|
|
77121
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
77122
|
+
*/
|
|
77123
|
+
404: unknown;
|
|
77124
|
+
/**
|
|
77125
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77126
|
+
*/
|
|
77127
|
+
503: unknown;
|
|
77128
|
+
};
|
|
77129
|
+
export type GetByodDeviceResponses = {
|
|
77130
|
+
/**
|
|
77131
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
77132
|
+
*/
|
|
77133
|
+
200: {
|
|
77134
|
+
/**
|
|
77135
|
+
* Resource type; always "byod_device".
|
|
77136
|
+
*/
|
|
77137
|
+
object: 'byod_device';
|
|
77138
|
+
/**
|
|
77139
|
+
* 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.
|
|
77140
|
+
*/
|
|
77141
|
+
id: string;
|
|
77142
|
+
/**
|
|
77143
|
+
* 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.
|
|
77144
|
+
*/
|
|
77145
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77146
|
+
/**
|
|
77147
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
77148
|
+
*/
|
|
77149
|
+
name: string;
|
|
77150
|
+
/**
|
|
77151
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
77152
|
+
*/
|
|
77153
|
+
model: string;
|
|
77154
|
+
/**
|
|
77155
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
77156
|
+
*/
|
|
77157
|
+
os_version: string;
|
|
77158
|
+
/**
|
|
77159
|
+
* 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.
|
|
77160
|
+
*/
|
|
77161
|
+
online: boolean;
|
|
77162
|
+
/**
|
|
77163
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
77164
|
+
*/
|
|
77165
|
+
last_seen_at: string | null;
|
|
77166
|
+
/**
|
|
77167
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
77168
|
+
*/
|
|
77169
|
+
created_at: string;
|
|
77170
|
+
/**
|
|
77171
|
+
* 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).
|
|
77172
|
+
*/
|
|
77173
|
+
capabilities: Array<'display' | 'agent'>;
|
|
77174
|
+
/**
|
|
77175
|
+
* 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.
|
|
77176
|
+
*/
|
|
77177
|
+
agent_dirs: Array<string>;
|
|
77178
|
+
/**
|
|
77179
|
+
* 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.
|
|
77180
|
+
*/
|
|
77181
|
+
allow_bypass: boolean;
|
|
77182
|
+
};
|
|
77183
|
+
};
|
|
77184
|
+
export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
|
|
77185
|
+
export type UpdateByodDeviceData = {
|
|
77186
|
+
/**
|
|
77187
|
+
* The one field a rename may send.
|
|
77188
|
+
*/
|
|
77189
|
+
body: {
|
|
77190
|
+
/**
|
|
77191
|
+
* New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
|
|
77192
|
+
*/
|
|
77193
|
+
name: string;
|
|
77194
|
+
};
|
|
77195
|
+
path: {
|
|
77196
|
+
/**
|
|
77197
|
+
* 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.
|
|
77198
|
+
*/
|
|
77199
|
+
deviceID: string;
|
|
77200
|
+
};
|
|
77201
|
+
query?: never;
|
|
77202
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
77203
|
+
};
|
|
77204
|
+
export type UpdateByodDeviceErrors = {
|
|
77205
|
+
/**
|
|
77206
|
+
* 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.
|
|
77207
|
+
*/
|
|
77208
|
+
400: unknown;
|
|
77209
|
+
/**
|
|
77210
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77211
|
+
*/
|
|
77212
|
+
401: unknown;
|
|
77213
|
+
/**
|
|
77214
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
77215
|
+
*/
|
|
77216
|
+
404: unknown;
|
|
77217
|
+
/**
|
|
77218
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77219
|
+
*/
|
|
77220
|
+
503: unknown;
|
|
77221
|
+
};
|
|
77222
|
+
export type UpdateByodDeviceResponses = {
|
|
77223
|
+
/**
|
|
77224
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
77225
|
+
*/
|
|
77226
|
+
200: {
|
|
77227
|
+
/**
|
|
77228
|
+
* Resource type; always "byod_device".
|
|
77229
|
+
*/
|
|
77230
|
+
object: 'byod_device';
|
|
77231
|
+
/**
|
|
77232
|
+
* 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.
|
|
77233
|
+
*/
|
|
77234
|
+
id: string;
|
|
77235
|
+
/**
|
|
77236
|
+
* 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.
|
|
77237
|
+
*/
|
|
77238
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77239
|
+
/**
|
|
77240
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
77241
|
+
*/
|
|
77242
|
+
name: string;
|
|
77243
|
+
/**
|
|
77244
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
77245
|
+
*/
|
|
77246
|
+
model: string;
|
|
77247
|
+
/**
|
|
77248
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
77249
|
+
*/
|
|
77250
|
+
os_version: string;
|
|
77251
|
+
/**
|
|
77252
|
+
* 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.
|
|
77253
|
+
*/
|
|
77254
|
+
online: boolean;
|
|
77255
|
+
/**
|
|
77256
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
77257
|
+
*/
|
|
77258
|
+
last_seen_at: string | null;
|
|
77259
|
+
/**
|
|
77260
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
77261
|
+
*/
|
|
77262
|
+
created_at: string;
|
|
77263
|
+
/**
|
|
77264
|
+
* 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).
|
|
77265
|
+
*/
|
|
77266
|
+
capabilities: Array<'display' | 'agent'>;
|
|
77267
|
+
/**
|
|
77268
|
+
* 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.
|
|
77269
|
+
*/
|
|
77270
|
+
agent_dirs: Array<string>;
|
|
77271
|
+
/**
|
|
77272
|
+
* 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.
|
|
77273
|
+
*/
|
|
77274
|
+
allow_bypass: boolean;
|
|
77275
|
+
};
|
|
77276
|
+
};
|
|
77277
|
+
export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
|
|
77278
|
+
export type DisconnectByodDeviceData = {
|
|
77279
|
+
body?: never;
|
|
77280
|
+
path: {
|
|
77281
|
+
/**
|
|
77282
|
+
* 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.
|
|
77283
|
+
*/
|
|
77284
|
+
deviceID: string;
|
|
77285
|
+
};
|
|
77286
|
+
query?: never;
|
|
77287
|
+
url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
|
|
77288
|
+
};
|
|
77289
|
+
export type DisconnectByodDeviceErrors = {
|
|
77290
|
+
/**
|
|
77291
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77292
|
+
*/
|
|
77293
|
+
401: unknown;
|
|
77294
|
+
/**
|
|
77295
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
77296
|
+
*/
|
|
77297
|
+
404: unknown;
|
|
77298
|
+
/**
|
|
77299
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77300
|
+
*/
|
|
77301
|
+
503: unknown;
|
|
77302
|
+
};
|
|
77303
|
+
export type DisconnectByodDeviceResponses = {
|
|
77304
|
+
/**
|
|
77305
|
+
* The disconnected device.
|
|
77306
|
+
*/
|
|
77307
|
+
200: {
|
|
77308
|
+
/**
|
|
77309
|
+
* Id of the device that was disconnected.
|
|
77310
|
+
*/
|
|
77311
|
+
id: string;
|
|
77312
|
+
/**
|
|
77313
|
+
* Resource type; always "byod_device".
|
|
77314
|
+
*/
|
|
77315
|
+
object: 'byod_device';
|
|
77316
|
+
/**
|
|
77317
|
+
* Always true: the credential is revoked and the connection closed.
|
|
77318
|
+
*/
|
|
77319
|
+
disconnected: true;
|
|
77320
|
+
};
|
|
77321
|
+
};
|
|
77322
|
+
export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
|
|
77323
|
+
export type GetByodPairingData = {
|
|
77324
|
+
body?: never;
|
|
77325
|
+
path: {
|
|
77326
|
+
/**
|
|
77327
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
77328
|
+
*/
|
|
77329
|
+
code: string;
|
|
77330
|
+
};
|
|
77331
|
+
query?: never;
|
|
77332
|
+
url: '/sandbox/v1/byod/pairings/{code}';
|
|
77333
|
+
};
|
|
77334
|
+
export type GetByodPairingErrors = {
|
|
77335
|
+
/**
|
|
77336
|
+
* 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.
|
|
77337
|
+
*/
|
|
77338
|
+
404: unknown;
|
|
77339
|
+
};
|
|
77340
|
+
export type GetByodPairingResponses = {
|
|
77341
|
+
/**
|
|
77342
|
+
* What the Allow screen reads.
|
|
77343
|
+
*/
|
|
77344
|
+
200: {
|
|
77345
|
+
/**
|
|
77346
|
+
* Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
|
|
77347
|
+
*/
|
|
77348
|
+
organization_name: string;
|
|
77349
|
+
/**
|
|
77350
|
+
* When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
|
|
77351
|
+
*/
|
|
77352
|
+
expires_at: string;
|
|
77353
|
+
};
|
|
77354
|
+
};
|
|
77355
|
+
export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
|
|
77356
|
+
export type ClaimByodPairingData = {
|
|
77357
|
+
/**
|
|
77358
|
+
* What the phone's app knows about itself when it claims the pairing.
|
|
77359
|
+
*/
|
|
77360
|
+
body: {
|
|
77361
|
+
/**
|
|
77362
|
+
* 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.
|
|
77363
|
+
*/
|
|
77364
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77365
|
+
/**
|
|
77366
|
+
* 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.
|
|
77367
|
+
*/
|
|
77368
|
+
name?: string;
|
|
77369
|
+
/**
|
|
77370
|
+
* The device model the app reports, at most 128 characters; it is display only and can be omitted.
|
|
77371
|
+
*/
|
|
77372
|
+
model?: string;
|
|
77373
|
+
/**
|
|
77374
|
+
* The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
|
|
77375
|
+
*/
|
|
77376
|
+
os_version?: string;
|
|
77377
|
+
/**
|
|
77378
|
+
* 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.
|
|
77379
|
+
*/
|
|
77380
|
+
device_key?: string;
|
|
77381
|
+
};
|
|
77382
|
+
path: {
|
|
77383
|
+
/**
|
|
77384
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
77385
|
+
*/
|
|
77386
|
+
code: string;
|
|
77387
|
+
};
|
|
77388
|
+
query?: never;
|
|
77389
|
+
url: '/sandbox/v1/byod/pairings/{code}/claim';
|
|
77390
|
+
};
|
|
77391
|
+
export type ClaimByodPairingErrors = {
|
|
77392
|
+
/**
|
|
77393
|
+
* 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.
|
|
77394
|
+
*/
|
|
77395
|
+
400: unknown;
|
|
77396
|
+
/**
|
|
77397
|
+
* 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.
|
|
77398
|
+
*/
|
|
77399
|
+
404: unknown;
|
|
77400
|
+
};
|
|
77401
|
+
export type ClaimByodPairingResponses = {
|
|
77402
|
+
/**
|
|
77403
|
+
* The device's registration and its one-time credential.
|
|
77404
|
+
*/
|
|
77405
|
+
201: {
|
|
77406
|
+
/**
|
|
77407
|
+
* Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
|
|
77408
|
+
*/
|
|
77409
|
+
device_id: string;
|
|
77410
|
+
/**
|
|
77411
|
+
* 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.
|
|
77412
|
+
*/
|
|
77413
|
+
credential: string;
|
|
77414
|
+
/**
|
|
77415
|
+
* 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.
|
|
77416
|
+
*/
|
|
77417
|
+
socket_url: string;
|
|
77418
|
+
};
|
|
77419
|
+
};
|
|
77420
|
+
export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
|
|
75278
77421
|
export type SessionsDeleteData = {
|
|
75279
77422
|
body?: never;
|
|
75280
77423
|
path: {
|
|
@@ -77094,7 +79237,7 @@ export type AgentsCreateData = {
|
|
|
77094
79237
|
}>;
|
|
77095
79238
|
};
|
|
77096
79239
|
/**
|
|
77097
|
-
* Optional tool preset. minimal enables read, glob
|
|
79240
|
+
* 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.
|
|
77098
79241
|
*/
|
|
77099
79242
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
77100
79243
|
/**
|
|
@@ -78961,7 +81104,7 @@ export type AgentsUpdateData = {
|
|
|
78961
81104
|
}>;
|
|
78962
81105
|
};
|
|
78963
81106
|
/**
|
|
78964
|
-
* Optional tool preset. minimal enables read, glob
|
|
81107
|
+
* 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.
|
|
78965
81108
|
*/
|
|
78966
81109
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
78967
81110
|
/**
|
|
@@ -82671,48 +84814,6 @@ export type SessionsEventsListResponses = {
|
|
|
82671
84814
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82672
84815
|
*/
|
|
82673
84816
|
processed_at: string;
|
|
82674
|
-
} | {
|
|
82675
|
-
/**
|
|
82676
|
-
* Event id, unique within the session.
|
|
82677
|
-
*/
|
|
82678
|
-
id: string;
|
|
82679
|
-
/**
|
|
82680
|
-
* Always `user.tool_confirmation`.
|
|
82681
|
-
*/
|
|
82682
|
-
type: 'user.tool_confirmation';
|
|
82683
|
-
/**
|
|
82684
|
-
* When the event was recorded, RFC 3339.
|
|
82685
|
-
*/
|
|
82686
|
-
processed_at: string;
|
|
82687
|
-
/**
|
|
82688
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82689
|
-
*/
|
|
82690
|
-
tool_use_id: string;
|
|
82691
|
-
/**
|
|
82692
|
-
* Always `allow`.
|
|
82693
|
-
*/
|
|
82694
|
-
result: 'allow';
|
|
82695
|
-
/**
|
|
82696
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82697
|
-
*/
|
|
82698
|
-
answers: {
|
|
82699
|
-
[key: string]: string;
|
|
82700
|
-
};
|
|
82701
|
-
/**
|
|
82702
|
-
* Per-question notes, keyed by the question text.
|
|
82703
|
-
*/
|
|
82704
|
-
annotations?: {
|
|
82705
|
-
[key: string]: {
|
|
82706
|
-
/**
|
|
82707
|
-
* The preview of the option the user chose.
|
|
82708
|
-
*/
|
|
82709
|
-
preview?: string;
|
|
82710
|
-
/**
|
|
82711
|
-
* Free text the user added to their choice.
|
|
82712
|
-
*/
|
|
82713
|
-
notes?: string;
|
|
82714
|
-
};
|
|
82715
|
-
};
|
|
82716
84817
|
}>;
|
|
82717
84818
|
/**
|
|
82718
84819
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -82762,40 +84863,6 @@ export type SessionsEventsSendData = {
|
|
|
82762
84863
|
* Id of the event this event refers to.
|
|
82763
84864
|
*/
|
|
82764
84865
|
event_id: string;
|
|
82765
|
-
} | {
|
|
82766
|
-
/**
|
|
82767
|
-
* Always `user.tool_confirmation`.
|
|
82768
|
-
*/
|
|
82769
|
-
type: 'user.tool_confirmation';
|
|
82770
|
-
/**
|
|
82771
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
82772
|
-
*/
|
|
82773
|
-
tool_use_id: string;
|
|
82774
|
-
/**
|
|
82775
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
82776
|
-
*/
|
|
82777
|
-
result: 'allow';
|
|
82778
|
-
/**
|
|
82779
|
-
* 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.
|
|
82780
|
-
*/
|
|
82781
|
-
answers: {
|
|
82782
|
-
[key: string]: string;
|
|
82783
|
-
};
|
|
82784
|
-
/**
|
|
82785
|
-
* Optional per-question notes, keyed by the question text.
|
|
82786
|
-
*/
|
|
82787
|
-
annotations?: {
|
|
82788
|
-
[key: string]: {
|
|
82789
|
-
/**
|
|
82790
|
-
* The preview of the option the user chose.
|
|
82791
|
-
*/
|
|
82792
|
-
preview?: string;
|
|
82793
|
-
/**
|
|
82794
|
-
* Free text the user added to their choice.
|
|
82795
|
-
*/
|
|
82796
|
-
notes?: string;
|
|
82797
|
-
};
|
|
82798
|
-
};
|
|
82799
84866
|
}>;
|
|
82800
84867
|
};
|
|
82801
84868
|
path: {
|
|
@@ -82890,48 +84957,6 @@ export type SessionsEventsSendResponses = {
|
|
|
82890
84957
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82891
84958
|
*/
|
|
82892
84959
|
processed_at: string;
|
|
82893
|
-
} | {
|
|
82894
|
-
/**
|
|
82895
|
-
* Event id, unique within the session.
|
|
82896
|
-
*/
|
|
82897
|
-
id: string;
|
|
82898
|
-
/**
|
|
82899
|
-
* Always `user.tool_confirmation`.
|
|
82900
|
-
*/
|
|
82901
|
-
type: 'user.tool_confirmation';
|
|
82902
|
-
/**
|
|
82903
|
-
* When the event was recorded, RFC 3339.
|
|
82904
|
-
*/
|
|
82905
|
-
processed_at: string;
|
|
82906
|
-
/**
|
|
82907
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82908
|
-
*/
|
|
82909
|
-
tool_use_id: string;
|
|
82910
|
-
/**
|
|
82911
|
-
* Always `allow`.
|
|
82912
|
-
*/
|
|
82913
|
-
result: 'allow';
|
|
82914
|
-
/**
|
|
82915
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82916
|
-
*/
|
|
82917
|
-
answers: {
|
|
82918
|
-
[key: string]: string;
|
|
82919
|
-
};
|
|
82920
|
-
/**
|
|
82921
|
-
* Per-question notes, keyed by the question text.
|
|
82922
|
-
*/
|
|
82923
|
-
annotations?: {
|
|
82924
|
-
[key: string]: {
|
|
82925
|
-
/**
|
|
82926
|
-
* The preview of the option the user chose.
|
|
82927
|
-
*/
|
|
82928
|
-
preview?: string;
|
|
82929
|
-
/**
|
|
82930
|
-
* Free text the user added to their choice.
|
|
82931
|
-
*/
|
|
82932
|
-
notes?: string;
|
|
82933
|
-
};
|
|
82934
|
-
};
|
|
82935
84960
|
}>;
|
|
82936
84961
|
};
|
|
82937
84962
|
};
|
|
@@ -98280,6 +100305,10 @@ export type DevopsTestPlanGetData = {
|
|
|
98280
100305
|
* 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.
|
|
98281
100306
|
*/
|
|
98282
100307
|
base?: string;
|
|
100308
|
+
/**
|
|
100309
|
+
* 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.
|
|
100310
|
+
*/
|
|
100311
|
+
view?: 'full' | 'summary';
|
|
98283
100312
|
};
|
|
98284
100313
|
url: '/devops/v1/projects/{project}/test-plan';
|
|
98285
100314
|
};
|
|
@@ -98354,6 +100383,97 @@ export type DevopsProjectsListResponses = {
|
|
|
98354
100383
|
200: DevopsProjectPage;
|
|
98355
100384
|
};
|
|
98356
100385
|
export type DevopsProjectsListResponse = DevopsProjectsListResponses[keyof DevopsProjectsListResponses];
|
|
100386
|
+
export type DevopsProjectsCreateData = {
|
|
100387
|
+
/**
|
|
100388
|
+
* The project's name and where its code lives: a git package of our own Git, or a GitHub repository.
|
|
100389
|
+
*/
|
|
100390
|
+
body: DevopsProjectCreate;
|
|
100391
|
+
path?: never;
|
|
100392
|
+
query?: never;
|
|
100393
|
+
url: '/devops/v1/projects';
|
|
100394
|
+
};
|
|
100395
|
+
export type DevopsProjectsCreateErrors = {
|
|
100396
|
+
/**
|
|
100397
|
+
* 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.
|
|
100398
|
+
*/
|
|
100399
|
+
400: DevopsDevOpsError;
|
|
100400
|
+
/**
|
|
100401
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
100402
|
+
*/
|
|
100403
|
+
401: DevopsDevOpsError;
|
|
100404
|
+
/**
|
|
100405
|
+
* 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.
|
|
100406
|
+
*/
|
|
100407
|
+
403: DevopsDevOpsError;
|
|
100408
|
+
/**
|
|
100409
|
+
* 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.
|
|
100410
|
+
*/
|
|
100411
|
+
404: DevopsDevOpsError;
|
|
100412
|
+
/**
|
|
100413
|
+
* 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.
|
|
100414
|
+
*/
|
|
100415
|
+
409: DevopsDevOpsError;
|
|
100416
|
+
/**
|
|
100417
|
+
* 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.
|
|
100418
|
+
*/
|
|
100419
|
+
500: DevopsDevOpsError;
|
|
100420
|
+
};
|
|
100421
|
+
export type DevopsProjectsCreateError = DevopsProjectsCreateErrors[keyof DevopsProjectsCreateErrors];
|
|
100422
|
+
export type DevopsProjectsCreateResponses = {
|
|
100423
|
+
/**
|
|
100424
|
+
* The created project with its repository binding, settings and labels.
|
|
100425
|
+
*/
|
|
100426
|
+
200: DevopsProject;
|
|
100427
|
+
};
|
|
100428
|
+
export type DevopsProjectsCreateResponse = DevopsProjectsCreateResponses[keyof DevopsProjectsCreateResponses];
|
|
100429
|
+
export type DevopsProjectsInitializeDefaultBranchData = {
|
|
100430
|
+
/**
|
|
100431
|
+
* The existing branch to start the default branch from.
|
|
100432
|
+
*/
|
|
100433
|
+
body: DevopsDefaultBranchInitialize;
|
|
100434
|
+
path: {
|
|
100435
|
+
/**
|
|
100436
|
+
* The project identifier returned by the project list, not the project's display name or its repository name.
|
|
100437
|
+
*/
|
|
100438
|
+
id: string;
|
|
100439
|
+
};
|
|
100440
|
+
query?: never;
|
|
100441
|
+
url: '/devops/v1/projects/{id}/default-branch:initialize';
|
|
100442
|
+
};
|
|
100443
|
+
export type DevopsProjectsInitializeDefaultBranchErrors = {
|
|
100444
|
+
/**
|
|
100445
|
+
* 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.
|
|
100446
|
+
*/
|
|
100447
|
+
400: DevopsDevOpsError;
|
|
100448
|
+
/**
|
|
100449
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
100450
|
+
*/
|
|
100451
|
+
401: DevopsDevOpsError;
|
|
100452
|
+
/**
|
|
100453
|
+
* 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.
|
|
100454
|
+
*/
|
|
100455
|
+
403: DevopsDevOpsError;
|
|
100456
|
+
/**
|
|
100457
|
+
* PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
|
|
100458
|
+
*/
|
|
100459
|
+
404: DevopsDevOpsError;
|
|
100460
|
+
/**
|
|
100461
|
+
* DEFAULT_BRANCH_EXISTS means the default branch is already there; it is never moved by this call.
|
|
100462
|
+
*/
|
|
100463
|
+
409: DevopsDevOpsError;
|
|
100464
|
+
/**
|
|
100465
|
+
* 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.
|
|
100466
|
+
*/
|
|
100467
|
+
500: DevopsDevOpsError;
|
|
100468
|
+
};
|
|
100469
|
+
export type DevopsProjectsInitializeDefaultBranchError = DevopsProjectsInitializeDefaultBranchErrors[keyof DevopsProjectsInitializeDefaultBranchErrors];
|
|
100470
|
+
export type DevopsProjectsInitializeDefaultBranchResponses = {
|
|
100471
|
+
/**
|
|
100472
|
+
* The default branch now exists: its name, the branch it was started from and the commit it points at.
|
|
100473
|
+
*/
|
|
100474
|
+
200: DevopsDefaultBranchInitialized;
|
|
100475
|
+
};
|
|
100476
|
+
export type DevopsProjectsInitializeDefaultBranchResponse = DevopsProjectsInitializeDefaultBranchResponses[keyof DevopsProjectsInitializeDefaultBranchResponses];
|
|
98357
100477
|
export type DevopsProjectsGetData = {
|
|
98358
100478
|
body?: never;
|
|
98359
100479
|
path: {
|
|
@@ -98673,6 +100793,10 @@ export type DevopsPromotionsListData = {
|
|
|
98673
100793
|
* The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
|
|
98674
100794
|
*/
|
|
98675
100795
|
pageToken?: string;
|
|
100796
|
+
/**
|
|
100797
|
+
* 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.
|
|
100798
|
+
*/
|
|
100799
|
+
forced?: boolean;
|
|
98676
100800
|
};
|
|
98677
100801
|
url: '/devops/v1/projects/{project}/promotions';
|
|
98678
100802
|
};
|
|
@@ -98924,6 +101048,55 @@ export type DevopsPromotionsConcludeResponses = {
|
|
|
98924
101048
|
200: DevopsPromotion;
|
|
98925
101049
|
};
|
|
98926
101050
|
export type DevopsPromotionsConcludeResponse = DevopsPromotionsConcludeResponses[keyof DevopsPromotionsConcludeResponses];
|
|
101051
|
+
export type DevopsPromotionsCheckoutCredentialData = {
|
|
101052
|
+
body?: never;
|
|
101053
|
+
path: {
|
|
101054
|
+
/**
|
|
101055
|
+
* The promotion identifier returned by a promotion list or create answer.
|
|
101056
|
+
*/
|
|
101057
|
+
id: string;
|
|
101058
|
+
};
|
|
101059
|
+
query?: never;
|
|
101060
|
+
url: '/devops/v1/promotions/{id}:checkoutCredential';
|
|
101061
|
+
};
|
|
101062
|
+
export type DevopsPromotionsCheckoutCredentialErrors = {
|
|
101063
|
+
/**
|
|
101064
|
+
* 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.
|
|
101065
|
+
*/
|
|
101066
|
+
400: DevopsDevOpsError;
|
|
101067
|
+
/**
|
|
101068
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
101069
|
+
*/
|
|
101070
|
+
401: DevopsDevOpsError;
|
|
101071
|
+
/**
|
|
101072
|
+
* 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.
|
|
101073
|
+
*/
|
|
101074
|
+
403: DevopsDevOpsError;
|
|
101075
|
+
/**
|
|
101076
|
+
* 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.
|
|
101077
|
+
*/
|
|
101078
|
+
404: DevopsDevOpsError;
|
|
101079
|
+
/**
|
|
101080
|
+
* 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.
|
|
101081
|
+
*/
|
|
101082
|
+
409: DevopsDevOpsError;
|
|
101083
|
+
/**
|
|
101084
|
+
* 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.
|
|
101085
|
+
*/
|
|
101086
|
+
500: DevopsDevOpsError;
|
|
101087
|
+
/**
|
|
101088
|
+
* REGISTRY_UNAVAILABLE means the platform's Git registry would not issue a credential just now; the machine retries the request shortly.
|
|
101089
|
+
*/
|
|
101090
|
+
502: DevopsDevOpsError;
|
|
101091
|
+
};
|
|
101092
|
+
export type DevopsPromotionsCheckoutCredentialError = DevopsPromotionsCheckoutCredentialErrors[keyof DevopsPromotionsCheckoutCredentialErrors];
|
|
101093
|
+
export type DevopsPromotionsCheckoutCredentialResponses = {
|
|
101094
|
+
/**
|
|
101095
|
+
* 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.
|
|
101096
|
+
*/
|
|
101097
|
+
200: DevopsCheckoutCredential;
|
|
101098
|
+
};
|
|
101099
|
+
export type DevopsPromotionsCheckoutCredentialResponse = DevopsPromotionsCheckoutCredentialResponses[keyof DevopsPromotionsCheckoutCredentialResponses];
|
|
98927
101100
|
export type DevopsRolloutsListData = {
|
|
98928
101101
|
body?: never;
|
|
98929
101102
|
path: {
|
|
@@ -100342,7 +102515,7 @@ export type DevopsChangesOpenPullRequestErrors = {
|
|
|
100342
102515
|
export type DevopsChangesOpenPullRequestError = DevopsChangesOpenPullRequestErrors[keyof DevopsChangesOpenPullRequestErrors];
|
|
100343
102516
|
export type DevopsChangesOpenPullRequestResponses = {
|
|
100344
102517
|
/**
|
|
100345
|
-
* The pull request for the change's branch: its number,
|
|
102518
|
+
* 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.
|
|
100346
102519
|
*/
|
|
100347
102520
|
200: DevopsChangePullRequestOpened;
|
|
100348
102521
|
};
|
|
@@ -100417,6 +102590,10 @@ export type DevopsPullRequestsListData = {
|
|
|
100417
102590
|
* 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.
|
|
100418
102591
|
*/
|
|
100419
102592
|
reviewer?: string;
|
|
102593
|
+
/**
|
|
102594
|
+
* 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.
|
|
102595
|
+
*/
|
|
102596
|
+
reviewed?: boolean;
|
|
100420
102597
|
};
|
|
100421
102598
|
url: '/devops/v1/projects/{project}/pull-requests';
|
|
100422
102599
|
};
|
|
@@ -100566,7 +102743,7 @@ export type DevopsPullRequestsMergeErrors = {
|
|
|
100566
102743
|
*/
|
|
100567
102744
|
404: DevopsDevOpsError;
|
|
100568
102745
|
/**
|
|
100569
|
-
* 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.
|
|
102746
|
+
* 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.
|
|
100570
102747
|
*/
|
|
100571
102748
|
409: DevopsDevOpsError;
|
|
100572
102749
|
/**
|
|
@@ -100618,7 +102795,7 @@ export type DevopsPullRequestsRecordVerdictErrors = {
|
|
|
100618
102795
|
export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
|
|
100619
102796
|
export type DevopsPullRequestsRecordVerdictResponses = {
|
|
100620
102797
|
/**
|
|
100621
|
-
* The pull request with the
|
|
102798
|
+
* The pull request with the review recorded on it; its gate is unchanged.
|
|
100622
102799
|
*/
|
|
100623
102800
|
200: DevopsPullRequest;
|
|
100624
102801
|
};
|
|
@@ -100668,6 +102845,51 @@ export type DevopsPullRequestsCloseResponses = {
|
|
|
100668
102845
|
200: DevopsPullRequest;
|
|
100669
102846
|
};
|
|
100670
102847
|
export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
|
|
102848
|
+
export type DevopsPullRequestsReviewsCreateData = {
|
|
102849
|
+
body: DevopsPullRequestReviewRequest;
|
|
102850
|
+
path: {
|
|
102851
|
+
/**
|
|
102852
|
+
* 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.
|
|
102853
|
+
*/
|
|
102854
|
+
id: string;
|
|
102855
|
+
};
|
|
102856
|
+
query?: never;
|
|
102857
|
+
url: '/devops/v1/pull-requests/{id}/reviews';
|
|
102858
|
+
};
|
|
102859
|
+
export type DevopsPullRequestsReviewsCreateErrors = {
|
|
102860
|
+
/**
|
|
102861
|
+
* 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.
|
|
102862
|
+
*/
|
|
102863
|
+
400: DevopsDevOpsError;
|
|
102864
|
+
/**
|
|
102865
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
102866
|
+
*/
|
|
102867
|
+
401: DevopsDevOpsError;
|
|
102868
|
+
/**
|
|
102869
|
+
* 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.
|
|
102870
|
+
*/
|
|
102871
|
+
403: DevopsDevOpsError;
|
|
102872
|
+
/**
|
|
102873
|
+
* 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.
|
|
102874
|
+
*/
|
|
102875
|
+
404: DevopsDevOpsError;
|
|
102876
|
+
/**
|
|
102877
|
+
* PULL_REQUEST_NOT_OPEN when the pull request is merged or closed: nothing was recorded.
|
|
102878
|
+
*/
|
|
102879
|
+
409: DevopsDevOpsError;
|
|
102880
|
+
/**
|
|
102881
|
+
* 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.
|
|
102882
|
+
*/
|
|
102883
|
+
500: DevopsDevOpsError;
|
|
102884
|
+
};
|
|
102885
|
+
export type DevopsPullRequestsReviewsCreateError = DevopsPullRequestsReviewsCreateErrors[keyof DevopsPullRequestsReviewsCreateErrors];
|
|
102886
|
+
export type DevopsPullRequestsReviewsCreateResponses = {
|
|
102887
|
+
/**
|
|
102888
|
+
* 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.
|
|
102889
|
+
*/
|
|
102890
|
+
200: DevopsPullRequest;
|
|
102891
|
+
};
|
|
102892
|
+
export type DevopsPullRequestsReviewsCreateResponse = DevopsPullRequestsReviewsCreateResponses[keyof DevopsPullRequestsReviewsCreateResponses];
|
|
100671
102893
|
export type DevopsConnectionsListData = {
|
|
100672
102894
|
body?: never;
|
|
100673
102895
|
path?: never;
|
|
@@ -101126,7 +103348,7 @@ export type DevopsWorkspacesGetData = {
|
|
|
101126
103348
|
*/
|
|
101127
103349
|
project: string;
|
|
101128
103350
|
/**
|
|
101129
|
-
* The stage whose workspace you address: development, integration or
|
|
103351
|
+
* 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.
|
|
101130
103352
|
*/
|
|
101131
103353
|
stage: DevopsWorkspaceStage;
|
|
101132
103354
|
};
|
|
@@ -101171,7 +103393,7 @@ export type DevopsWorkspacesUpdateData = {
|
|
|
101171
103393
|
*/
|
|
101172
103394
|
project: string;
|
|
101173
103395
|
/**
|
|
101174
|
-
* The stage whose workspace you address: development, integration or
|
|
103396
|
+
* 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.
|
|
101175
103397
|
*/
|
|
101176
103398
|
stage: DevopsWorkspaceStage;
|
|
101177
103399
|
};
|
|
@@ -101315,6 +103537,56 @@ export type DevopsUnitsCreateResponses = {
|
|
|
101315
103537
|
200: DevopsUnit;
|
|
101316
103538
|
};
|
|
101317
103539
|
export type DevopsUnitsCreateResponse = DevopsUnitsCreateResponses[keyof DevopsUnitsCreateResponses];
|
|
103540
|
+
export type DevopsCleanupsListData = {
|
|
103541
|
+
body?: never;
|
|
103542
|
+
path: {
|
|
103543
|
+
/**
|
|
103544
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
103545
|
+
*/
|
|
103546
|
+
project: string;
|
|
103547
|
+
};
|
|
103548
|
+
query?: {
|
|
103549
|
+
/**
|
|
103550
|
+
* 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.
|
|
103551
|
+
*/
|
|
103552
|
+
pageSize?: number;
|
|
103553
|
+
/**
|
|
103554
|
+
* The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
|
|
103555
|
+
*/
|
|
103556
|
+
pageToken?: string;
|
|
103557
|
+
};
|
|
103558
|
+
url: '/devops/v1/projects/{project}/cleanups';
|
|
103559
|
+
};
|
|
103560
|
+
export type DevopsCleanupsListErrors = {
|
|
103561
|
+
/**
|
|
103562
|
+
* 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.
|
|
103563
|
+
*/
|
|
103564
|
+
400: DevopsDevOpsError;
|
|
103565
|
+
/**
|
|
103566
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
103567
|
+
*/
|
|
103568
|
+
401: DevopsDevOpsError;
|
|
103569
|
+
/**
|
|
103570
|
+
* 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.
|
|
103571
|
+
*/
|
|
103572
|
+
403: DevopsDevOpsError;
|
|
103573
|
+
/**
|
|
103574
|
+
* PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
|
|
103575
|
+
*/
|
|
103576
|
+
404: DevopsDevOpsError;
|
|
103577
|
+
/**
|
|
103578
|
+
* 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.
|
|
103579
|
+
*/
|
|
103580
|
+
500: DevopsDevOpsError;
|
|
103581
|
+
};
|
|
103582
|
+
export type DevopsCleanupsListError = DevopsCleanupsListErrors[keyof DevopsCleanupsListErrors];
|
|
103583
|
+
export type DevopsCleanupsListResponses = {
|
|
103584
|
+
/**
|
|
103585
|
+
* One page of the project's cleanup ledger, newest decision first.
|
|
103586
|
+
*/
|
|
103587
|
+
200: DevopsCleanupPage;
|
|
103588
|
+
};
|
|
103589
|
+
export type DevopsCleanupsListResponse = DevopsCleanupsListResponses[keyof DevopsCleanupsListResponses];
|
|
101318
103590
|
export type DevopsUnitsDeleteData = {
|
|
101319
103591
|
body?: never;
|
|
101320
103592
|
path: {
|
|
@@ -108255,9 +110527,9 @@ export type RegistryRepositoriesPackagesListResponses = {
|
|
|
108255
110527
|
export type RegistryRepositoriesPackagesListResponse = RegistryRepositoriesPackagesListResponses[keyof RegistryRepositoriesPackagesListResponses];
|
|
108256
110528
|
export type RegistryRepositoriesPackagesCreateData = {
|
|
108257
110529
|
/**
|
|
108258
|
-
*
|
|
110530
|
+
* oci 库发布技能或插件用 multipart(archive 与 files 二选一);git 库建 git 仓库用 JSON。
|
|
108259
110531
|
*/
|
|
108260
|
-
body:
|
|
110532
|
+
body: RegistryCreateGitPackageInput;
|
|
108261
110533
|
path: {
|
|
108262
110534
|
/**
|
|
108263
110535
|
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
@@ -108300,7 +110572,7 @@ export type RegistryRepositoriesPackagesCreateErrors = {
|
|
|
108300
110572
|
export type RegistryRepositoriesPackagesCreateError = RegistryRepositoriesPackagesCreateErrors[keyof RegistryRepositoriesPackagesCreateErrors];
|
|
108301
110573
|
export type RegistryRepositoriesPackagesCreateResponses = {
|
|
108302
110574
|
/**
|
|
108303
|
-
*
|
|
110575
|
+
* 建好的包。技能和插件的 latest_version 是刚发布的版本号;git 包带 clone_url、default_branch 和 protected_refs。
|
|
108304
110576
|
*/
|
|
108305
110577
|
201: RegistryPackage;
|
|
108306
110578
|
};
|
|
@@ -108440,6 +110712,50 @@ export type RegistryPackagesVersionsCreateResponses = {
|
|
|
108440
110712
|
201: RegistryVersion;
|
|
108441
110713
|
};
|
|
108442
110714
|
export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
|
|
110715
|
+
export type RegistryPackagesGitCredentialCreateData = {
|
|
110716
|
+
/**
|
|
110717
|
+
* 要的权限和有效期。
|
|
110718
|
+
*/
|
|
110719
|
+
body: RegistryGitCredentialInput;
|
|
110720
|
+
path: {
|
|
110721
|
+
/**
|
|
110722
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110723
|
+
*/
|
|
110724
|
+
package_id: string;
|
|
110725
|
+
};
|
|
110726
|
+
query?: never;
|
|
110727
|
+
url: '/registry/v1/packages/{package_id}/git-credential';
|
|
110728
|
+
};
|
|
110729
|
+
export type RegistryPackagesGitCredentialCreateErrors = {
|
|
110730
|
+
/**
|
|
110731
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110732
|
+
*/
|
|
110733
|
+
400: RegistryRegistryError;
|
|
110734
|
+
/**
|
|
110735
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110736
|
+
*/
|
|
110737
|
+
401: RegistryRegistryError;
|
|
110738
|
+
/**
|
|
110739
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110740
|
+
*/
|
|
110741
|
+
404: RegistryRegistryError;
|
|
110742
|
+
/**
|
|
110743
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
110744
|
+
*/
|
|
110745
|
+
409: RegistryRegistryError;
|
|
110746
|
+
/**
|
|
110747
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110748
|
+
*/
|
|
110749
|
+
500: RegistryRegistryError;
|
|
110750
|
+
};
|
|
110751
|
+
export type RegistryPackagesGitCredentialCreateError = RegistryPackagesGitCredentialCreateErrors[keyof RegistryPackagesGitCredentialCreateErrors];
|
|
110752
|
+
export type RegistryPackagesGitCredentialCreateResponses = {
|
|
110753
|
+
/**
|
|
110754
|
+
* 新签发的凭据,含克隆地址、固定用户名、密码和过期时间。
|
|
110755
|
+
*/
|
|
110756
|
+
201: RegistryGitCredential;
|
|
110757
|
+
};
|
|
110758
|
+
export type RegistryPackagesGitCredentialCreateResponse = RegistryPackagesGitCredentialCreateResponses[keyof RegistryPackagesGitCredentialCreateResponses];
|
|
108443
110759
|
export type RegistryGitLogData = {
|
|
108444
110760
|
body?: never;
|
|
108445
110761
|
path: {
|
|
@@ -108506,7 +110822,12 @@ export type RegistryGitCommitsRetrieveData = {
|
|
|
108506
110822
|
*/
|
|
108507
110823
|
sha: string;
|
|
108508
110824
|
};
|
|
108509
|
-
query?:
|
|
110825
|
+
query?: {
|
|
110826
|
+
/**
|
|
110827
|
+
* 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
|
|
110828
|
+
*/
|
|
110829
|
+
changed_files?: boolean;
|
|
110830
|
+
};
|
|
108510
110831
|
url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
|
|
108511
110832
|
};
|
|
108512
110833
|
export type RegistryGitCommitsRetrieveErrors = {
|
|
@@ -108536,7 +110857,7 @@ export type RegistryGitCommitsRetrieveResponses = {
|
|
|
108536
110857
|
/**
|
|
108537
110858
|
* 这个提交。
|
|
108538
110859
|
*/
|
|
108539
|
-
200:
|
|
110860
|
+
200: RegistryGitCommitDetail;
|
|
108540
110861
|
};
|
|
108541
110862
|
export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
|
|
108542
110863
|
export type RegistryGitTreesRetrieveData = {
|
|
@@ -108584,6 +110905,201 @@ export type RegistryGitTreesRetrieveResponses = {
|
|
|
108584
110905
|
200: RegistryGitTree;
|
|
108585
110906
|
};
|
|
108586
110907
|
export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
|
|
110908
|
+
export type RegistryGitRefsData = {
|
|
110909
|
+
body?: never;
|
|
110910
|
+
path: {
|
|
110911
|
+
/**
|
|
110912
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110913
|
+
*/
|
|
110914
|
+
package_id: string;
|
|
110915
|
+
};
|
|
110916
|
+
query?: {
|
|
110917
|
+
/**
|
|
110918
|
+
* 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
|
|
110919
|
+
*/
|
|
110920
|
+
prefix?: 'refs/heads/' | 'refs/tags/';
|
|
110921
|
+
/**
|
|
110922
|
+
* 页码,从 1 起,默认 1。
|
|
110923
|
+
*/
|
|
110924
|
+
page?: number;
|
|
110925
|
+
/**
|
|
110926
|
+
* 这一页最多返回多少个引用,1 到 500,默认 100。
|
|
110927
|
+
*/
|
|
110928
|
+
size?: number;
|
|
110929
|
+
};
|
|
110930
|
+
url: '/registry/v1/packages/{package_id}/git/refs';
|
|
110931
|
+
};
|
|
110932
|
+
export type RegistryGitRefsErrors = {
|
|
110933
|
+
/**
|
|
110934
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110935
|
+
*/
|
|
110936
|
+
400: RegistryRegistryError;
|
|
110937
|
+
/**
|
|
110938
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110939
|
+
*/
|
|
110940
|
+
401: RegistryRegistryError;
|
|
110941
|
+
/**
|
|
110942
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110943
|
+
*/
|
|
110944
|
+
404: RegistryRegistryError;
|
|
110945
|
+
/**
|
|
110946
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110947
|
+
*/
|
|
110948
|
+
500: RegistryRegistryError;
|
|
110949
|
+
/**
|
|
110950
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
110951
|
+
*/
|
|
110952
|
+
503: RegistryRegistryError;
|
|
110953
|
+
};
|
|
110954
|
+
export type RegistryGitRefsError = RegistryGitRefsErrors[keyof RegistryGitRefsErrors];
|
|
110955
|
+
export type RegistryGitRefsResponses = {
|
|
110956
|
+
/**
|
|
110957
|
+
* 分支和标签的一页。
|
|
110958
|
+
*/
|
|
110959
|
+
200: RegistryGitRefs;
|
|
110960
|
+
};
|
|
110961
|
+
export type RegistryGitRefsResponse = RegistryGitRefsResponses[keyof RegistryGitRefsResponses];
|
|
110962
|
+
export type RegistryGitResolveData = {
|
|
110963
|
+
body?: never;
|
|
110964
|
+
path: {
|
|
110965
|
+
/**
|
|
110966
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110967
|
+
*/
|
|
110968
|
+
package_id: string;
|
|
110969
|
+
};
|
|
110970
|
+
query: {
|
|
110971
|
+
/**
|
|
110972
|
+
* 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
|
|
110973
|
+
*/
|
|
110974
|
+
ref: string;
|
|
110975
|
+
};
|
|
110976
|
+
url: '/registry/v1/packages/{package_id}/git/resolve';
|
|
110977
|
+
};
|
|
110978
|
+
export type RegistryGitResolveErrors = {
|
|
110979
|
+
/**
|
|
110980
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110981
|
+
*/
|
|
110982
|
+
400: RegistryRegistryError;
|
|
110983
|
+
/**
|
|
110984
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110985
|
+
*/
|
|
110986
|
+
401: RegistryRegistryError;
|
|
110987
|
+
/**
|
|
110988
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110989
|
+
*/
|
|
110990
|
+
404: RegistryRegistryError;
|
|
110991
|
+
/**
|
|
110992
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110993
|
+
*/
|
|
110994
|
+
500: RegistryRegistryError;
|
|
110995
|
+
/**
|
|
110996
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
110997
|
+
*/
|
|
110998
|
+
503: RegistryRegistryError;
|
|
110999
|
+
};
|
|
111000
|
+
export type RegistryGitResolveError = RegistryGitResolveErrors[keyof RegistryGitResolveErrors];
|
|
111001
|
+
export type RegistryGitResolveResponses = {
|
|
111002
|
+
/**
|
|
111003
|
+
* 这个引用指向的提交。
|
|
111004
|
+
*/
|
|
111005
|
+
200: RegistryGitResolvedRef;
|
|
111006
|
+
};
|
|
111007
|
+
export type RegistryGitResolveResponse = RegistryGitResolveResponses[keyof RegistryGitResolveResponses];
|
|
111008
|
+
export type RegistryGitCompareData = {
|
|
111009
|
+
body?: never;
|
|
111010
|
+
path: {
|
|
111011
|
+
/**
|
|
111012
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
111013
|
+
*/
|
|
111014
|
+
package_id: string;
|
|
111015
|
+
};
|
|
111016
|
+
query: {
|
|
111017
|
+
/**
|
|
111018
|
+
* 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
|
|
111019
|
+
*/
|
|
111020
|
+
base: string;
|
|
111021
|
+
/**
|
|
111022
|
+
* 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
|
|
111023
|
+
*/
|
|
111024
|
+
head: string;
|
|
111025
|
+
};
|
|
111026
|
+
url: '/registry/v1/packages/{package_id}/git/compare';
|
|
111027
|
+
};
|
|
111028
|
+
export type RegistryGitCompareErrors = {
|
|
111029
|
+
/**
|
|
111030
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
111031
|
+
*/
|
|
111032
|
+
400: RegistryRegistryError;
|
|
111033
|
+
/**
|
|
111034
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
111035
|
+
*/
|
|
111036
|
+
401: RegistryRegistryError;
|
|
111037
|
+
/**
|
|
111038
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
111039
|
+
*/
|
|
111040
|
+
404: RegistryRegistryError;
|
|
111041
|
+
/**
|
|
111042
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
111043
|
+
*/
|
|
111044
|
+
500: RegistryRegistryError;
|
|
111045
|
+
/**
|
|
111046
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
111047
|
+
*/
|
|
111048
|
+
503: RegistryRegistryError;
|
|
111049
|
+
};
|
|
111050
|
+
export type RegistryGitCompareError = RegistryGitCompareErrors[keyof RegistryGitCompareErrors];
|
|
111051
|
+
export type RegistryGitCompareResponses = {
|
|
111052
|
+
/**
|
|
111053
|
+
* 两个引用的关系、改动的文件和多出的提交。
|
|
111054
|
+
*/
|
|
111055
|
+
200: RegistryGitComparison;
|
|
111056
|
+
};
|
|
111057
|
+
export type RegistryGitCompareResponse = RegistryGitCompareResponses[keyof RegistryGitCompareResponses];
|
|
111058
|
+
export type RegistryGitTreesRecursiveData = {
|
|
111059
|
+
body?: never;
|
|
111060
|
+
path: {
|
|
111061
|
+
/**
|
|
111062
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
111063
|
+
*/
|
|
111064
|
+
package_id: string;
|
|
111065
|
+
/**
|
|
111066
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
111067
|
+
*/
|
|
111068
|
+
sha: string;
|
|
111069
|
+
};
|
|
111070
|
+
query?: never;
|
|
111071
|
+
url: '/registry/v1/packages/{package_id}/git/trees/{sha}/recursive';
|
|
111072
|
+
};
|
|
111073
|
+
export type RegistryGitTreesRecursiveErrors = {
|
|
111074
|
+
/**
|
|
111075
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
111076
|
+
*/
|
|
111077
|
+
400: RegistryRegistryError;
|
|
111078
|
+
/**
|
|
111079
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
111080
|
+
*/
|
|
111081
|
+
401: RegistryRegistryError;
|
|
111082
|
+
/**
|
|
111083
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
111084
|
+
*/
|
|
111085
|
+
404: RegistryRegistryError;
|
|
111086
|
+
/**
|
|
111087
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
111088
|
+
*/
|
|
111089
|
+
500: RegistryRegistryError;
|
|
111090
|
+
/**
|
|
111091
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
111092
|
+
*/
|
|
111093
|
+
503: RegistryRegistryError;
|
|
111094
|
+
};
|
|
111095
|
+
export type RegistryGitTreesRecursiveError = RegistryGitTreesRecursiveErrors[keyof RegistryGitTreesRecursiveErrors];
|
|
111096
|
+
export type RegistryGitTreesRecursiveResponses = {
|
|
111097
|
+
/**
|
|
111098
|
+
* 这个对象下的全部条目。
|
|
111099
|
+
*/
|
|
111100
|
+
200: RegistryGitTreeRecursive;
|
|
111101
|
+
};
|
|
111102
|
+
export type RegistryGitTreesRecursiveResponse = RegistryGitTreesRecursiveResponses[keyof RegistryGitTreesRecursiveResponses];
|
|
108587
111103
|
export type RegistryGitFilesRetrieveData = {
|
|
108588
111104
|
body?: never;
|
|
108589
111105
|
path: {
|