@deepraxis/sdk 0.1.1-dev.22936b5 → 0.1.1-dev.23e4fb5
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 +122 -1
- package/README.md +3 -3
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +227 -33
- package/dist/generated/sdk.gen.js +605 -34
- package/dist/generated/types.gen.d.ts +3234 -354
- package/dist/helpers/browser-connect.js +5 -4
- package/dist/helpers/browser-decisions.d.ts +13 -0
- package/dist/helpers/browser-decisions.js +11 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -2
- package/dist/operations.generated.d.ts +1 -0
- package/dist/operations.generated.js +1326 -58
- package/dist/resources.generated.d.ts +157 -61
- package/dist/resources.generated.js +73 -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
|
/**
|
|
@@ -2821,6 +2816,23 @@ export type AgentSseEvent = ({
|
|
|
2821
2816
|
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
2822
2817
|
data: AgentSseData;
|
|
2823
2818
|
};
|
|
2819
|
+
/**
|
|
2820
|
+
* The price book in force at the moment of the read.
|
|
2821
|
+
*/
|
|
2822
|
+
export type BillingPriceList = {
|
|
2823
|
+
/**
|
|
2824
|
+
* The published catalog version this body was cut from; it changes on any price write.
|
|
2825
|
+
*/
|
|
2826
|
+
pricing_version: string;
|
|
2827
|
+
/**
|
|
2828
|
+
* The latest effective_from among the listed entries; null when no item has a price in force yet.
|
|
2829
|
+
*/
|
|
2830
|
+
effective_at: string;
|
|
2831
|
+
/**
|
|
2832
|
+
* One entry per amount in force, ordered by item id and then by the model's own tier/cell order.
|
|
2833
|
+
*/
|
|
2834
|
+
items: Array<BillingPriceEntry>;
|
|
2835
|
+
};
|
|
2824
2836
|
export type BrowserSessionCreateParams = {
|
|
2825
2837
|
/**
|
|
2826
2838
|
* 可省略;账户使用 default 项目。
|
|
@@ -7768,6 +7780,243 @@ export type OrganizationReviseKeyResultRequest = {
|
|
|
7768
7780
|
*/
|
|
7769
7781
|
done?: boolean;
|
|
7770
7782
|
};
|
|
7783
|
+
/**
|
|
7784
|
+
* Which subject a spec describes; the organization is addressed by its own id and every other kind by that subject's id.
|
|
7785
|
+
*/
|
|
7786
|
+
export type OrganizationSpecKind = 'organization' | 'department' | 'level' | 'job' | 'position' | 'assignment';
|
|
7787
|
+
/**
|
|
7788
|
+
* One page of specs.
|
|
7789
|
+
*/
|
|
7790
|
+
export type OrganizationSpecList = {
|
|
7791
|
+
/**
|
|
7792
|
+
* Specs on this page.
|
|
7793
|
+
*/
|
|
7794
|
+
data: Array<OrganizationSpec>;
|
|
7795
|
+
/**
|
|
7796
|
+
* Whether another page is available after this one.
|
|
7797
|
+
*/
|
|
7798
|
+
has_more: boolean;
|
|
7799
|
+
/**
|
|
7800
|
+
* Cursor to pass as page to read the next page; null when no more items remain.
|
|
7801
|
+
*/
|
|
7802
|
+
next_page: string | null;
|
|
7803
|
+
};
|
|
7804
|
+
/**
|
|
7805
|
+
* The 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
|
+
};
|
|
7771
8020
|
export type SandboxSandboxDetail = {
|
|
7772
8021
|
/**
|
|
7773
8022
|
* Identifier of the template from which is the sandbox created
|
|
@@ -9763,9 +10012,9 @@ export type ApplicationGrant = {
|
|
|
9763
10012
|
/**
|
|
9764
10013
|
* Resource type.
|
|
9765
10014
|
*/
|
|
9766
|
-
type: 'database' | '
|
|
10015
|
+
type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'feedback' | 'organization';
|
|
9767
10016
|
/**
|
|
9768
|
-
*
|
|
10017
|
+
* ID of the granted resource; * for models and whole-service types.
|
|
9769
10018
|
*/
|
|
9770
10019
|
id: string;
|
|
9771
10020
|
};
|
|
@@ -9790,9 +10039,9 @@ export type ApplicationCreateGrantInput = {
|
|
|
9790
10039
|
/**
|
|
9791
10040
|
* Resource type.
|
|
9792
10041
|
*/
|
|
9793
|
-
type: 'database' | '
|
|
10042
|
+
type: 'database' | 'knowledge' | 'models' | 'file' | 'media_library' | 'workflow' | 'script' | 'agent' | 'application' | 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut' | 'studio' | 'ontology' | 'workspace' | 'feedback' | 'organization';
|
|
9794
10043
|
/**
|
|
9795
|
-
*
|
|
10044
|
+
* ID of the granted resource in your organization; * for models and whole-service types.
|
|
9796
10045
|
*/
|
|
9797
10046
|
id: string;
|
|
9798
10047
|
};
|
|
@@ -16328,7 +16577,7 @@ export type DevopsReportUploadRequest = {
|
|
|
16328
16577
|
*/
|
|
16329
16578
|
reportId: string;
|
|
16330
16579
|
/**
|
|
16331
|
-
* What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and
|
|
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.
|
|
16332
16581
|
*/
|
|
16333
16582
|
purpose?: 'evidence' | 'feedback';
|
|
16334
16583
|
/**
|
|
@@ -16402,23 +16651,61 @@ export type DevopsTestPlan = {
|
|
|
16402
16651
|
* One entry per required package, sorted by directory. Empty only when selection is nothing or failed.
|
|
16403
16652
|
*/
|
|
16404
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>;
|
|
16405
16662
|
/**
|
|
16406
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.
|
|
16407
16664
|
*/
|
|
16408
16665
|
failedPaths?: Array<string>;
|
|
16409
16666
|
};
|
|
16410
16667
|
/**
|
|
16411
|
-
*
|
|
16668
|
+
* A new project: its name and, for a project with code, where the code lives.
|
|
16412
16669
|
*/
|
|
16413
|
-
export type
|
|
16670
|
+
export type DevopsProjectCreate = {
|
|
16414
16671
|
/**
|
|
16415
|
-
*
|
|
16672
|
+
* Kebab-case name, unique within the organization.
|
|
16416
16673
|
*/
|
|
16417
|
-
|
|
16674
|
+
name: string;
|
|
16418
16675
|
/**
|
|
16419
|
-
*
|
|
16676
|
+
* What the project is for, in your own words.
|
|
16420
16677
|
*/
|
|
16421
|
-
|
|
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;
|
|
16422
16709
|
};
|
|
16423
16710
|
/**
|
|
16424
16711
|
* One delivery project — the unit a release, a promotion and a flag all belong to.
|
|
@@ -16464,6 +16751,49 @@ export type DevopsProject = {
|
|
|
16464
16751
|
[key: string]: string;
|
|
16465
16752
|
};
|
|
16466
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
|
+
};
|
|
16467
16797
|
/**
|
|
16468
16798
|
* A patch to a project; only the fields named in updateMask are written.
|
|
16469
16799
|
*/
|
|
@@ -16495,7 +16825,7 @@ export type DevopsProjectUpdate = {
|
|
|
16495
16825
|
*/
|
|
16496
16826
|
releaseSchedule?: null | DevopsReleaseSchedule;
|
|
16497
16827
|
/**
|
|
16498
|
-
*
|
|
16828
|
+
* Not read: the observation window of a promotion is the observeMinutes of the environment it deploys into (and only for a release-stage environment), so changing this value changes nothing. Set environments.update observeMinutes instead.
|
|
16499
16829
|
*/
|
|
16500
16830
|
observationWindowMinutes?: number;
|
|
16501
16831
|
/**
|
|
@@ -16510,6 +16840,7 @@ export type DevopsProjectUpdate = {
|
|
|
16510
16840
|
* Whether the merge gate is a required check on the git host.
|
|
16511
16841
|
*/
|
|
16512
16842
|
requireGate?: boolean;
|
|
16843
|
+
gate?: DevopsGatePolicy;
|
|
16513
16844
|
/**
|
|
16514
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.
|
|
16515
16846
|
*/
|
|
@@ -16689,6 +17020,10 @@ export type DevopsPromotionCreate = {
|
|
|
16689
17020
|
*/
|
|
16690
17021
|
reason: string;
|
|
16691
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';
|
|
16692
17027
|
/**
|
|
16693
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.
|
|
16694
17029
|
*/
|
|
@@ -16742,6 +17077,14 @@ export type DevopsPromotion = {
|
|
|
16742
17077
|
* How this promotion came about; it decides which gates apply, so read it before judging a refusal.
|
|
16743
17078
|
*/
|
|
16744
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>;
|
|
16745
17088
|
/**
|
|
16746
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.
|
|
16747
17090
|
*/
|
|
@@ -16751,9 +17094,30 @@ export type DevopsPromotion = {
|
|
|
16751
17094
|
*/
|
|
16752
17095
|
state: 'queued' | 'pending_release' | 'awaiting_approval' | 'deploying' | 'verifying' | 'observing' | 'halted' | 'cancelling' | 'succeeded' | 'failed' | 'errored' | 'approval_rejected' | 'cancelled' | 'superseded';
|
|
16753
17096
|
/**
|
|
16754
|
-
* The executor's own sentence about the current state, present while it is running and after it stops; it carries detail the state value cannot.
|
|
17097
|
+
* The executor's own sentence about the current state, present while it is running and after it stops; it carries detail the state value cannot. A queued promotion says which promotion it waits for and what releases it.
|
|
16755
17098
|
*/
|
|
16756
17099
|
stateDescription?: string;
|
|
17100
|
+
/**
|
|
17101
|
+
* Only on promotions.retrieve, and only once a rollout has ended: what the rollouts really did. A promotion can succeed with deployed 0 and identical above 0, which means every target was skipped as artifact_identical.
|
|
17102
|
+
*/
|
|
17103
|
+
summary?: {
|
|
17104
|
+
/**
|
|
17105
|
+
* Targets that were built and deployed.
|
|
17106
|
+
*/
|
|
17107
|
+
deployed?: number;
|
|
17108
|
+
/**
|
|
17109
|
+
* Targets skipped as artifact_identical: the built artifact is byte-for-byte what the environment already runs, as when the change was only a comment, so nothing was deployed.
|
|
17110
|
+
*/
|
|
17111
|
+
identical?: number;
|
|
17112
|
+
/**
|
|
17113
|
+
* Targets whose rollout ended any other way (failed, cancelled, skipped for another reason).
|
|
17114
|
+
*/
|
|
17115
|
+
other?: number;
|
|
17116
|
+
};
|
|
17117
|
+
/**
|
|
17118
|
+
* Present and true only on the answer to a validateOnly call: nothing was stored, id is the placeholder prm_validate_only and state is the one a real call would start in.
|
|
17119
|
+
*/
|
|
17120
|
+
validateOnly?: boolean;
|
|
16757
17121
|
approval: DevopsApprovalState;
|
|
16758
17122
|
/**
|
|
16759
17123
|
* RFC 3339 UTC time the approval was decided; absent while it is still needed or was never required.
|
|
@@ -16769,6 +17133,10 @@ export type DevopsPromotion = {
|
|
|
16769
17133
|
verification?: Array<DevopsVerificationInfo>;
|
|
16770
17134
|
observation?: DevopsObservation;
|
|
16771
17135
|
executor?: DevopsPromotionExecutor;
|
|
17136
|
+
/**
|
|
17137
|
+
* 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.
|
|
17138
|
+
*/
|
|
17139
|
+
lane?: 'main' | 'async';
|
|
16772
17140
|
/**
|
|
16773
17141
|
* The promotion that replaced this one, present only when state is superseded; read it to follow the work to where it went.
|
|
16774
17142
|
*/
|
|
@@ -16840,6 +17208,27 @@ export type DevopsPromotionConcludeRequest = {
|
|
|
16840
17208
|
*/
|
|
16841
17209
|
reason: string;
|
|
16842
17210
|
};
|
|
17211
|
+
/**
|
|
17212
|
+
* 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.
|
|
17213
|
+
*/
|
|
17214
|
+
export type DevopsCheckoutCredential = {
|
|
17215
|
+
/**
|
|
17216
|
+
* 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.
|
|
17217
|
+
*/
|
|
17218
|
+
cloneUrl: string;
|
|
17219
|
+
/**
|
|
17220
|
+
* The user name git sends with the password.
|
|
17221
|
+
*/
|
|
17222
|
+
username: string;
|
|
17223
|
+
/**
|
|
17224
|
+
* A secret: the pull credential. It reads this one repository and nothing else, and stops working at expireTime. Never print or store it.
|
|
17225
|
+
*/
|
|
17226
|
+
password: string;
|
|
17227
|
+
/**
|
|
17228
|
+
* RFC 3339 UTC time the credential stops working, 15 minutes after it was issued. Ask again for a new one rather than extending.
|
|
17229
|
+
*/
|
|
17230
|
+
expireTime: string;
|
|
17231
|
+
};
|
|
16843
17232
|
/**
|
|
16844
17233
|
* One page of a promotion's rollouts, in plan order.
|
|
16845
17234
|
*/
|
|
@@ -16937,7 +17326,7 @@ export type DevopsEnvironmentUpdate = {
|
|
|
16937
17326
|
*/
|
|
16938
17327
|
requireApproval?: boolean;
|
|
16939
17328
|
/**
|
|
16940
|
-
* Minutes a promotion into this environment stays
|
|
17329
|
+
* Minutes a promotion into this environment stays in observing after its deploy finishes; 0 means no window. This is the value that decides the window, not the project setting observationWindowMinutes, which is no longer read. The window applies to release-stage environments, and while it runs the environment is held: promotions queue behind it until promotions.conclude.
|
|
16941
17330
|
*/
|
|
16942
17331
|
observeMinutes?: number;
|
|
16943
17332
|
/**
|
|
@@ -16948,9 +17337,13 @@ export type DevopsEnvironmentUpdate = {
|
|
|
16948
17337
|
* Suffix such as -develop that this environment adds to site hostnames, or null for none.
|
|
16949
17338
|
*/
|
|
16950
17339
|
domainSuffix?: string | null;
|
|
17340
|
+
/**
|
|
17341
|
+
* 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.
|
|
17342
|
+
*/
|
|
17343
|
+
stage?: 'integration' | 'release';
|
|
16951
17344
|
};
|
|
16952
17345
|
/**
|
|
16953
|
-
* Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries.
|
|
17346
|
+
* Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries.
|
|
16954
17347
|
*/
|
|
16955
17348
|
updateMask?: Array<string>;
|
|
16956
17349
|
};
|
|
@@ -16991,7 +17384,11 @@ export type DevopsEnvironment = {
|
|
|
16991
17384
|
*/
|
|
16992
17385
|
tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
|
|
16993
17386
|
/**
|
|
16994
|
-
*
|
|
17387
|
+
* 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.
|
|
17388
|
+
*/
|
|
17389
|
+
stage: 'integration' | 'release';
|
|
17390
|
+
/**
|
|
17391
|
+
* Position in the promotion sequence, starting at 1 and contiguous. A release-stage environment needs the release deployed in every integration-stage environment, wherever they sit in the order.
|
|
16995
17392
|
*/
|
|
16996
17393
|
order: number;
|
|
16997
17394
|
/**
|
|
@@ -17623,6 +18020,10 @@ export type DevopsChangeOpenPullRequestRequest = {
|
|
|
17623
18020
|
* The pull request for a change's branch.
|
|
17624
18021
|
*/
|
|
17625
18022
|
export type DevopsChangePullRequestOpened = {
|
|
18023
|
+
/**
|
|
18024
|
+
* 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.
|
|
18025
|
+
*/
|
|
18026
|
+
id?: string;
|
|
17626
18027
|
/**
|
|
17627
18028
|
* The pull request's number on the git host.
|
|
17628
18029
|
*/
|
|
@@ -17645,7 +18046,11 @@ export type DevopsChangePullRequestOpened = {
|
|
|
17645
18046
|
*/
|
|
17646
18047
|
export type DevopsChangeGitCredential = {
|
|
17647
18048
|
/**
|
|
17648
|
-
* The
|
|
18049
|
+
* 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.
|
|
18050
|
+
*/
|
|
18051
|
+
url: string;
|
|
18052
|
+
/**
|
|
18053
|
+
* The user name the source host requires with the token (GitHub App installation tokens use `x-access-token`).
|
|
17649
18054
|
*/
|
|
17650
18055
|
username: string;
|
|
17651
18056
|
/**
|
|
@@ -17784,7 +18189,7 @@ export type DevopsPullRequest = {
|
|
|
17784
18189
|
kind: 'user' | 'agent' | 'bot';
|
|
17785
18190
|
};
|
|
17786
18191
|
/**
|
|
17787
|
-
*
|
|
18192
|
+
* The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
|
|
17788
18193
|
*/
|
|
17789
18194
|
mergeableState: string;
|
|
17790
18195
|
/**
|
|
@@ -17874,6 +18279,7 @@ export type DevopsPullRequest = {
|
|
|
17874
18279
|
time?: string;
|
|
17875
18280
|
}>;
|
|
17876
18281
|
};
|
|
18282
|
+
review?: DevopsReviewVerdict;
|
|
17877
18283
|
/**
|
|
17878
18284
|
* The commit it landed as, present only once it is merged.
|
|
17879
18285
|
*/
|
|
@@ -17909,7 +18315,7 @@ export type DevopsPullRequestMergeRequest = {
|
|
|
17909
18315
|
requestId?: string;
|
|
17910
18316
|
};
|
|
17911
18317
|
/**
|
|
17912
|
-
* A
|
|
18318
|
+
* A reviewer's verdict on a pull request, recorded against one commit, after the fact; the merge gate never waits for it.
|
|
17913
18319
|
*/
|
|
17914
18320
|
export type DevopsPullRequestVerdictRequest = {
|
|
17915
18321
|
/**
|
|
@@ -17938,6 +18344,19 @@ export type DevopsPullRequestCloseRequest = {
|
|
|
17938
18344
|
*/
|
|
17939
18345
|
reason: string;
|
|
17940
18346
|
};
|
|
18347
|
+
/**
|
|
18348
|
+
* Your verdict on a pull request that lives on the platform's own Git.
|
|
18349
|
+
*/
|
|
18350
|
+
export type DevopsPullRequestReviewRequest = {
|
|
18351
|
+
/**
|
|
18352
|
+
* The verdict. A value outside this set is refused with INVALID_ARGUMENT.
|
|
18353
|
+
*/
|
|
18354
|
+
state: 'approved' | 'changes_requested' | 'commented';
|
|
18355
|
+
/**
|
|
18356
|
+
* 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.
|
|
18357
|
+
*/
|
|
18358
|
+
body?: string;
|
|
18359
|
+
};
|
|
17941
18360
|
/**
|
|
17942
18361
|
* One page of an organization's connections.
|
|
17943
18362
|
*/
|
|
@@ -18171,7 +18590,7 @@ export type DevopsSegmentUpdate = {
|
|
|
18171
18590
|
*/
|
|
18172
18591
|
export type DevopsWorkspaceList = {
|
|
18173
18592
|
/**
|
|
18174
|
-
* The project's workspaces, development first, then integration, then
|
|
18593
|
+
* The project's workspaces, development first, then integration, then release.
|
|
18175
18594
|
*/
|
|
18176
18595
|
items: Array<DevopsWorkspace>;
|
|
18177
18596
|
};
|
|
@@ -18308,9 +18727,9 @@ export type DevopsUnit = {
|
|
|
18308
18727
|
transitions?: Array<DevopsUnitTransition>;
|
|
18309
18728
|
};
|
|
18310
18729
|
/**
|
|
18311
|
-
* Where in the delivery line a workspace or unit sits: development merges changes, integration deploys and finds problems,
|
|
18730
|
+
* Where in the delivery line a workspace or unit sits: development merges changes, integration deploys every merge and finds problems, release deploys and serves steadily (Sean 2026-11-24: development, integration, release).
|
|
18312
18731
|
*/
|
|
18313
|
-
export type DevopsWorkspaceStage = 'development' | 'integration' | '
|
|
18732
|
+
export type DevopsWorkspaceStage = 'development' | 'integration' | 'release';
|
|
18314
18733
|
/**
|
|
18315
18734
|
* The phase a unit was last observed in; it is an observed fact, not the request, so it changes as the sandbox answers.
|
|
18316
18735
|
*/
|
|
@@ -18332,6 +18751,23 @@ export type DevopsUnitPage = {
|
|
|
18332
18751
|
*/
|
|
18333
18752
|
nextPageToken: string;
|
|
18334
18753
|
};
|
|
18754
|
+
/**
|
|
18755
|
+
* One page of a project's cleanup ledger, newest decision first.
|
|
18756
|
+
*/
|
|
18757
|
+
export type DevopsCleanupPage = {
|
|
18758
|
+
/**
|
|
18759
|
+
* The ledger rows on this page.
|
|
18760
|
+
*/
|
|
18761
|
+
items: Array<DevopsCleanupEntry>;
|
|
18762
|
+
/**
|
|
18763
|
+
* How many rows the project's ledger holds across every page; returned on the first page only.
|
|
18764
|
+
*/
|
|
18765
|
+
totalSize?: number;
|
|
18766
|
+
/**
|
|
18767
|
+
* Cursor for the next page; an empty string means this was the last page.
|
|
18768
|
+
*/
|
|
18769
|
+
nextPageToken: string;
|
|
18770
|
+
};
|
|
18335
18771
|
/**
|
|
18336
18772
|
* A field the unit retrieve can inline; only the values listed are accepted, and any other value is refused with INVALID_ARGUMENT.
|
|
18337
18773
|
*/
|
|
@@ -19374,6 +19810,10 @@ export type MediaAsset = {
|
|
|
19374
19810
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
19375
19811
|
*/
|
|
19376
19812
|
segments?: number;
|
|
19813
|
+
/**
|
|
19814
|
+
* 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.
|
|
19815
|
+
*/
|
|
19816
|
+
duration?: number;
|
|
19377
19817
|
};
|
|
19378
19818
|
};
|
|
19379
19819
|
};
|
|
@@ -21071,6 +21511,10 @@ export type RegistryCreateRepositoryInput = {
|
|
|
21071
21511
|
* 库的说明;省略时不写。
|
|
21072
21512
|
*/
|
|
21073
21513
|
description?: string;
|
|
21514
|
+
/**
|
|
21515
|
+
* 库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。
|
|
21516
|
+
*/
|
|
21517
|
+
format?: 'oci' | 'git';
|
|
21074
21518
|
};
|
|
21075
21519
|
/**
|
|
21076
21520
|
* 一个库:组织里包的分类容器。每个组织有一个 is_default 为 true 的默认库。
|
|
@@ -21100,6 +21544,10 @@ export type RegistryRepository = {
|
|
|
21100
21544
|
* 是否这个组织的默认库;自动创建、不能删除,新包在没有指定库时进这里。
|
|
21101
21545
|
*/
|
|
21102
21546
|
is_default: boolean;
|
|
21547
|
+
/**
|
|
21548
|
+
* 库里放什么;oci 放技能和插件,git 放 git 仓库;建库时定下,之后不能改。
|
|
21549
|
+
*/
|
|
21550
|
+
format: 'oci' | 'git';
|
|
21103
21551
|
/**
|
|
21104
21552
|
* 库里当前的包数量;非零时这个库不能删。
|
|
21105
21553
|
*/
|
|
@@ -21185,6 +21633,44 @@ export type RegistryPublishInput = {
|
|
|
21185
21633
|
*/
|
|
21186
21634
|
tags?: string;
|
|
21187
21635
|
};
|
|
21636
|
+
/**
|
|
21637
|
+
* 在 git 库里建 git 包的 JSON 请求体;name 和 format 必填。
|
|
21638
|
+
*/
|
|
21639
|
+
export type RegistryCreateGitPackageInput = {
|
|
21640
|
+
/**
|
|
21641
|
+
* 包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。
|
|
21642
|
+
*/
|
|
21643
|
+
name: string;
|
|
21644
|
+
/**
|
|
21645
|
+
* 建的包是什么;JSON 请求只能建 git 包,所以固定为 git。
|
|
21646
|
+
*/
|
|
21647
|
+
format: 'git';
|
|
21648
|
+
/**
|
|
21649
|
+
* 默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。
|
|
21650
|
+
*/
|
|
21651
|
+
default_branch?: string;
|
|
21652
|
+
/**
|
|
21653
|
+
* 仓库的说明;省略时为空。
|
|
21654
|
+
*/
|
|
21655
|
+
description?: string;
|
|
21656
|
+
/**
|
|
21657
|
+
* 从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。
|
|
21658
|
+
*/
|
|
21659
|
+
import?: {
|
|
21660
|
+
/**
|
|
21661
|
+
* 要导入的公开仓库地址,必须是 https,匿名可读;私有仓库不支持。
|
|
21662
|
+
*/
|
|
21663
|
+
url: string;
|
|
21664
|
+
/**
|
|
21665
|
+
* 只导入这个分支;省略则按远端的默认分支。
|
|
21666
|
+
*/
|
|
21667
|
+
branch?: string;
|
|
21668
|
+
/**
|
|
21669
|
+
* 浅导入的提交深度;省略则导入完整历史。
|
|
21670
|
+
*/
|
|
21671
|
+
depth?: number;
|
|
21672
|
+
};
|
|
21673
|
+
};
|
|
21188
21674
|
/**
|
|
21189
21675
|
* 一个包:库里的一个技能或插件,带它的最新版本和累计下载量。
|
|
21190
21676
|
*/
|
|
@@ -21206,9 +21692,9 @@ export type RegistryPackage = {
|
|
|
21206
21692
|
*/
|
|
21207
21693
|
name: string;
|
|
21208
21694
|
/**
|
|
21209
|
-
*
|
|
21695
|
+
* 包的种类;技能、插件,或 git 仓库。
|
|
21210
21696
|
*/
|
|
21211
|
-
kind: 'skill' | 'plugin';
|
|
21697
|
+
kind: 'skill' | 'plugin' | 'git';
|
|
21212
21698
|
/**
|
|
21213
21699
|
* 给人看的标题;来自上传内容或发布时的 title,没有时是 null。
|
|
21214
21700
|
*/
|
|
@@ -21233,6 +21719,22 @@ export type RegistryPackage = {
|
|
|
21233
21719
|
* 这个包 archive 下载的累计次数,每次 archive 调用加一。
|
|
21234
21720
|
*/
|
|
21235
21721
|
downloads: number;
|
|
21722
|
+
/**
|
|
21723
|
+
* 只有 git 包才有这个字段,固定为 git;技能和插件没有。
|
|
21724
|
+
*/
|
|
21725
|
+
format?: 'git';
|
|
21726
|
+
/**
|
|
21727
|
+
* 只有 git 包才有;git clone 和 git push 用的地址,在我们自己的域名下(registry.deepraxis.com/git/...),认证见 packages.git-credential。
|
|
21728
|
+
*/
|
|
21729
|
+
clone_url?: string;
|
|
21730
|
+
/**
|
|
21731
|
+
* 只有 git 包才有;默认分支名,建包时给,省略为 main。
|
|
21732
|
+
*/
|
|
21733
|
+
default_branch?: string;
|
|
21734
|
+
/**
|
|
21735
|
+
* 只有 git 包才有;受保护的分支或标签,不能用普通凭据更新或删除,默认只保护默认分支;用 PATCH 改。
|
|
21736
|
+
*/
|
|
21737
|
+
protected_refs?: Array<string>;
|
|
21236
21738
|
/**
|
|
21237
21739
|
* 包首次发布的时刻,ISO 8601 UTC。
|
|
21238
21740
|
*/
|
|
@@ -21292,6 +21794,44 @@ export type RegistryVersion = {
|
|
|
21292
21794
|
*/
|
|
21293
21795
|
create_time: string;
|
|
21294
21796
|
};
|
|
21797
|
+
/**
|
|
21798
|
+
* 换 git 凭据的请求体;只有 access 必填。
|
|
21799
|
+
*/
|
|
21800
|
+
export type RegistryGitCredentialInput = {
|
|
21801
|
+
/**
|
|
21802
|
+
* 凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。
|
|
21803
|
+
*/
|
|
21804
|
+
access: 'pull' | 'push' | 'push-protected';
|
|
21805
|
+
/**
|
|
21806
|
+
* 凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。
|
|
21807
|
+
*/
|
|
21808
|
+
ttl_seconds?: number;
|
|
21809
|
+
};
|
|
21810
|
+
/**
|
|
21811
|
+
* 一个签发好的 git 凭据:用 HTTP Basic 的用户名和密码访问 url。
|
|
21812
|
+
*/
|
|
21813
|
+
export type RegistryGitCredential = {
|
|
21814
|
+
/**
|
|
21815
|
+
* 对象类型标记,固定为 registry.git_credential。
|
|
21816
|
+
*/
|
|
21817
|
+
object: string;
|
|
21818
|
+
/**
|
|
21819
|
+
* 这个包的 git 地址,克隆和推送都用它,不含凭据。
|
|
21820
|
+
*/
|
|
21821
|
+
url: string;
|
|
21822
|
+
/**
|
|
21823
|
+
* HTTP Basic 的用户名,固定为 x-access-token。
|
|
21824
|
+
*/
|
|
21825
|
+
username: 'x-access-token';
|
|
21826
|
+
/**
|
|
21827
|
+
* HTTP Basic 的密码,一个到 expires_at 失效的凭据;敏感,只在这个响应里给出,不要写进日志、提交或 clone 后保留的 remote 地址。
|
|
21828
|
+
*/
|
|
21829
|
+
password: string;
|
|
21830
|
+
/**
|
|
21831
|
+
* 凭据失效的时刻,ISO 8601 UTC;过期后重新调用 git-credential。
|
|
21832
|
+
*/
|
|
21833
|
+
expires_at: string;
|
|
21834
|
+
};
|
|
21295
21835
|
/**
|
|
21296
21836
|
* 一段提交历史。
|
|
21297
21837
|
*/
|
|
@@ -21314,9 +21854,9 @@ export type RegistryGitLog = {
|
|
|
21314
21854
|
has_more: boolean;
|
|
21315
21855
|
};
|
|
21316
21856
|
/**
|
|
21317
|
-
* 一个 git
|
|
21857
|
+
* 一个 git 提交,需要时连同它改动的文件。
|
|
21318
21858
|
*/
|
|
21319
|
-
export type
|
|
21859
|
+
export type RegistryGitCommitDetail = {
|
|
21320
21860
|
/**
|
|
21321
21861
|
* 对象类型标记,固定为 registry.git.commit。
|
|
21322
21862
|
*/
|
|
@@ -21345,6 +21885,14 @@ export type RegistryGitCommit = {
|
|
|
21345
21885
|
* 父提交的对象 id,按顺序。
|
|
21346
21886
|
*/
|
|
21347
21887
|
parents: Array<string>;
|
|
21888
|
+
/**
|
|
21889
|
+
* 相对第一个父提交改动的文件;只在请求带 changed_files=true 时才有。
|
|
21890
|
+
*/
|
|
21891
|
+
changed_files?: Array<RegistryGitChangedFile>;
|
|
21892
|
+
/**
|
|
21893
|
+
* changed_files 被上限截断时为 true,此时不要当作改动的全部;只在请求带 changed_files=true 时才有。
|
|
21894
|
+
*/
|
|
21895
|
+
changed_files_truncated?: boolean;
|
|
21348
21896
|
};
|
|
21349
21897
|
/**
|
|
21350
21898
|
* 一个树的条目清单。
|
|
@@ -21363,6 +21911,94 @@ export type RegistryGitTree = {
|
|
|
21363
21911
|
*/
|
|
21364
21912
|
entries: Array<RegistryGitTreeEntry>;
|
|
21365
21913
|
};
|
|
21914
|
+
/**
|
|
21915
|
+
* 一页分支和标签。
|
|
21916
|
+
*/
|
|
21917
|
+
export type RegistryGitRefs = {
|
|
21918
|
+
/**
|
|
21919
|
+
* 对象类型标记,固定为 registry.git.refs。
|
|
21920
|
+
*/
|
|
21921
|
+
object: string;
|
|
21922
|
+
/**
|
|
21923
|
+
* 这一页的引用,按名字排序。
|
|
21924
|
+
*/
|
|
21925
|
+
refs: Array<RegistryGitRefItem>;
|
|
21926
|
+
/**
|
|
21927
|
+
* 是否还有下一页(page 加 1 取下一页)。
|
|
21928
|
+
*/
|
|
21929
|
+
has_more: boolean;
|
|
21930
|
+
};
|
|
21931
|
+
/**
|
|
21932
|
+
* 一个引用换成的提交 id。
|
|
21933
|
+
*/
|
|
21934
|
+
export type RegistryGitResolvedRef = {
|
|
21935
|
+
/**
|
|
21936
|
+
* 对象类型标记,固定为 registry.git.resolved_ref。
|
|
21937
|
+
*/
|
|
21938
|
+
object: string;
|
|
21939
|
+
/**
|
|
21940
|
+
* 请求里的引用,原样返回。
|
|
21941
|
+
*/
|
|
21942
|
+
ref: string;
|
|
21943
|
+
/**
|
|
21944
|
+
* 这个引用指向的提交 id。
|
|
21945
|
+
*/
|
|
21946
|
+
sha: string;
|
|
21947
|
+
};
|
|
21948
|
+
/**
|
|
21949
|
+
* 两个引用的比较结果。
|
|
21950
|
+
*/
|
|
21951
|
+
export type RegistryGitComparison = {
|
|
21952
|
+
/**
|
|
21953
|
+
* 对象类型标记,固定为 registry.git.comparison。
|
|
21954
|
+
*/
|
|
21955
|
+
object: string;
|
|
21956
|
+
/**
|
|
21957
|
+
* head 相对 base 的关系。
|
|
21958
|
+
*/
|
|
21959
|
+
status: 'identical' | 'ahead' | 'behind' | 'diverged';
|
|
21960
|
+
/**
|
|
21961
|
+
* 找到的最近共同祖先的提交 id;没有找到(历史无关,或读取上限内没走到)时为 null。
|
|
21962
|
+
*/
|
|
21963
|
+
merge_base: string | null;
|
|
21964
|
+
/**
|
|
21965
|
+
* head 相对 merge_base 改动的文件;merge_base 为 null 时相对 base。
|
|
21966
|
+
*/
|
|
21967
|
+
files: Array<RegistryGitChangedFile>;
|
|
21968
|
+
/**
|
|
21969
|
+
* head 比 base 多出的提交,最新的在前。
|
|
21970
|
+
*/
|
|
21971
|
+
commits: Array<RegistryGitComparedCommit>;
|
|
21972
|
+
/**
|
|
21973
|
+
* 为 true 表示 files 被上限截断,或没找到 merge_base 而无法确定 files;此时不要当作完整结果。
|
|
21974
|
+
*/
|
|
21975
|
+
truncated: boolean;
|
|
21976
|
+
/**
|
|
21977
|
+
* 为 true 表示 commits 不完整(读取上限,或合并提交藏起了被合并分支上的提交);此时不要当作 head 多出的全部提交。
|
|
21978
|
+
*/
|
|
21979
|
+
commits_truncated: boolean;
|
|
21980
|
+
};
|
|
21981
|
+
/**
|
|
21982
|
+
* 一个提交或树下的全部条目。
|
|
21983
|
+
*/
|
|
21984
|
+
export type RegistryGitTreeRecursive = {
|
|
21985
|
+
/**
|
|
21986
|
+
* 对象类型标记,固定为 registry.git.tree_recursive。
|
|
21987
|
+
*/
|
|
21988
|
+
object: string;
|
|
21989
|
+
/**
|
|
21990
|
+
* 请求里读的提交或树对象 id,原样返回。
|
|
21991
|
+
*/
|
|
21992
|
+
sha: string;
|
|
21993
|
+
/**
|
|
21994
|
+
* 为 true 表示撞到条目或树读取上限,entries 只是前一部分,不是全部。
|
|
21995
|
+
*/
|
|
21996
|
+
truncated: boolean;
|
|
21997
|
+
/**
|
|
21998
|
+
* 全部条目,按路径排序,目录也在其中。
|
|
21999
|
+
*/
|
|
22000
|
+
entries: Array<RegistryGitTreeNode>;
|
|
22001
|
+
};
|
|
21366
22002
|
/**
|
|
21367
22003
|
* 一个版本的文件清单;文件不多,一次返回全部。
|
|
21368
22004
|
*/
|
|
@@ -21513,6 +22149,59 @@ export type SandboxNewSandboxV2 = {
|
|
|
21513
22149
|
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
21514
22150
|
*/
|
|
21515
22151
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
22152
|
+
/**
|
|
22153
|
+
* 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.
|
|
22154
|
+
*/
|
|
22155
|
+
ephemeral?: boolean;
|
|
22156
|
+
/**
|
|
22157
|
+
* Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
|
|
22158
|
+
*/
|
|
22159
|
+
size?: string;
|
|
22160
|
+
/**
|
|
22161
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
22162
|
+
*/
|
|
22163
|
+
name?: string;
|
|
22164
|
+
/**
|
|
22165
|
+
* Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
|
|
22166
|
+
*/
|
|
22167
|
+
waitForReady?: boolean;
|
|
22168
|
+
/**
|
|
22169
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
22170
|
+
*/
|
|
22171
|
+
onExpire?: 'kill' | 'pause';
|
|
22172
|
+
/**
|
|
22173
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
22174
|
+
*/
|
|
22175
|
+
idleTimeout?: number;
|
|
22176
|
+
/**
|
|
22177
|
+
* 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.
|
|
22178
|
+
*/
|
|
22179
|
+
idleActivity?: 'traffic' | 'caller';
|
|
22180
|
+
/**
|
|
22181
|
+
* 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.
|
|
22182
|
+
*/
|
|
22183
|
+
sku?: string;
|
|
22184
|
+
/**
|
|
22185
|
+
* 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.
|
|
22186
|
+
*/
|
|
22187
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
22188
|
+
/**
|
|
22189
|
+
* 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.
|
|
22190
|
+
*/
|
|
22191
|
+
interruptible?: boolean;
|
|
22192
|
+
/**
|
|
22193
|
+
* 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.
|
|
22194
|
+
*/
|
|
22195
|
+
onLoss?: 'fail' | 'rebuild';
|
|
22196
|
+
/**
|
|
22197
|
+
* Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
|
|
22198
|
+
*/
|
|
22199
|
+
outputs?: Array<{
|
|
22200
|
+
/**
|
|
22201
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
22202
|
+
*/
|
|
22203
|
+
path: string;
|
|
22204
|
+
}>;
|
|
21516
22205
|
};
|
|
21517
22206
|
/**
|
|
21518
22207
|
* Sandbox created from a template.
|
|
@@ -24290,7 +24979,7 @@ export type VaultCreateSecretInput = {
|
|
|
24290
24979
|
*/
|
|
24291
24980
|
value: string;
|
|
24292
24981
|
/**
|
|
24293
|
-
* Allowed destinations for the secret.
|
|
24982
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24294
24983
|
*/
|
|
24295
24984
|
allowed_hosts?: Array<string>;
|
|
24296
24985
|
/**
|
|
@@ -24334,7 +25023,7 @@ export type VaultSecret = {
|
|
|
24334
25023
|
*/
|
|
24335
25024
|
kind: 'static' | 'oauth';
|
|
24336
25025
|
/**
|
|
24337
|
-
* Allowed destinations for the secret.
|
|
25026
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24338
25027
|
*/
|
|
24339
25028
|
allowed_hosts: Array<string>;
|
|
24340
25029
|
/**
|
|
@@ -24427,7 +25116,7 @@ export type VaultUpdateSecretInput = {
|
|
|
24427
25116
|
*/
|
|
24428
25117
|
value?: string;
|
|
24429
25118
|
/**
|
|
24430
|
-
* Allowed destinations for the secret. Omit it to keep the current list; an empty list removes the declaration,
|
|
25119
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host. Omit it to keep the current list; an empty list removes the declaration, so every redemption is denied and only name-based resolution still returns the value. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24431
25120
|
*/
|
|
24432
25121
|
allowed_hosts?: Array<string>;
|
|
24433
25122
|
/**
|
|
@@ -26302,49 +26991,44 @@ export type AgentSseData = {
|
|
|
26302
26991
|
* 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.
|
|
26303
26992
|
*/
|
|
26304
26993
|
source?: 'app' | 'codemode';
|
|
26305
|
-
} | {
|
|
26994
|
+
} | (unknown & {
|
|
26306
26995
|
/**
|
|
26307
|
-
*
|
|
26996
|
+
* Unique identifier for this event.
|
|
26308
26997
|
*/
|
|
26309
26998
|
id: string;
|
|
26310
26999
|
/**
|
|
26311
|
-
*
|
|
27000
|
+
* UserToolConfirmationResult enum
|
|
26312
27001
|
*/
|
|
26313
|
-
|
|
27002
|
+
result: 'allow' | 'deny';
|
|
26314
27003
|
/**
|
|
26315
|
-
*
|
|
27004
|
+
* The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
|
|
27005
|
+
* corresponds to, which can be found in the last `session.status_idle`
|
|
27006
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
27007
|
+
* `stop_reason.event_ids` field.
|
|
26316
27008
|
*/
|
|
26317
|
-
|
|
27009
|
+
tool_use_id: string;
|
|
26318
27010
|
/**
|
|
26319
|
-
* The
|
|
27011
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
26320
27012
|
*/
|
|
26321
|
-
|
|
27013
|
+
type: 'user.tool_confirmation';
|
|
26322
27014
|
/**
|
|
26323
|
-
*
|
|
27015
|
+
* 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.
|
|
26324
27016
|
*/
|
|
26325
|
-
|
|
27017
|
+
deny_message?: string;
|
|
26326
27018
|
/**
|
|
26327
|
-
*
|
|
27019
|
+
* A timestamp in RFC 3339 format
|
|
26328
27020
|
*/
|
|
26329
|
-
|
|
26330
|
-
[key: string]: string;
|
|
26331
|
-
};
|
|
27021
|
+
processed_at?: null | string;
|
|
26332
27022
|
/**
|
|
26333
|
-
*
|
|
27023
|
+
* Set by the server to the subagent thread this confirmation was routed to.
|
|
27024
|
+
* Omitted when it was routed to the primary thread.
|
|
26334
27025
|
*/
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
/**
|
|
26342
|
-
* Free text the user added to their choice.
|
|
26343
|
-
*/
|
|
26344
|
-
notes?: string;
|
|
26345
|
-
};
|
|
26346
|
-
};
|
|
26347
|
-
} | {
|
|
27026
|
+
session_thread_id?: null | string;
|
|
27027
|
+
/**
|
|
27028
|
+
* 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.
|
|
27029
|
+
*/
|
|
27030
|
+
permission_mode?: 'yolo';
|
|
27031
|
+
}) | {
|
|
26348
27032
|
/**
|
|
26349
27033
|
* Unique identifier for this event.
|
|
26350
27034
|
*/
|
|
@@ -26987,6 +27671,76 @@ export type AgentSseData = {
|
|
|
26987
27671
|
message: string;
|
|
26988
27672
|
};
|
|
26989
27673
|
};
|
|
27674
|
+
/**
|
|
27675
|
+
* One amount in force for one price item.
|
|
27676
|
+
*/
|
|
27677
|
+
export type BillingPriceEntry = {
|
|
27678
|
+
/**
|
|
27679
|
+
* The price item key, stable and never reused, for example router:default/deepseek-v4-pro:input or sandbox:cpu_second.
|
|
27680
|
+
*/
|
|
27681
|
+
id: string;
|
|
27682
|
+
/**
|
|
27683
|
+
* The item key's namespace — the product that owns the meter (router, sandbox, search, browser, media, knowledge, agent, …); group the table by this.
|
|
27684
|
+
*/
|
|
27685
|
+
product: string;
|
|
27686
|
+
/**
|
|
27687
|
+
* The item key's subject when it has one, such as default/deepseek-v4-pro; null for a two-segment key.
|
|
27688
|
+
*/
|
|
27689
|
+
subject: string;
|
|
27690
|
+
/**
|
|
27691
|
+
* The item's display name from the price book.
|
|
27692
|
+
*/
|
|
27693
|
+
name: string;
|
|
27694
|
+
/**
|
|
27695
|
+
* The meter's unit as billing records it, for example token, cpu_second or request.
|
|
27696
|
+
*/
|
|
27697
|
+
unit: string;
|
|
27698
|
+
/**
|
|
27699
|
+
* How many units one amount covers, as a decimal integer string; 1000000 for per-million-token meters, 1 for a per-request or per-second meter.
|
|
27700
|
+
*/
|
|
27701
|
+
per: string;
|
|
27702
|
+
/**
|
|
27703
|
+
* When this amount took effect. It is at or before now by construction.
|
|
27704
|
+
*/
|
|
27705
|
+
effective_from: string;
|
|
27706
|
+
/**
|
|
27707
|
+
* Which amount of a multi-amount model this entry is; null when the item has exactly one amount.
|
|
27708
|
+
*/
|
|
27709
|
+
variant: {
|
|
27710
|
+
/**
|
|
27711
|
+
* This entry is one tier of a tiered price, chosen by the meter's tier selector.
|
|
27712
|
+
*/
|
|
27713
|
+
kind: 'tier';
|
|
27714
|
+
/**
|
|
27715
|
+
* The tier's upper bound of the selector; the last tier is null (no upper bound).
|
|
27716
|
+
*/
|
|
27717
|
+
up_to: string;
|
|
27718
|
+
} | {
|
|
27719
|
+
/**
|
|
27720
|
+
* This entry is one cell of a matrix price, priced for the dimension values in when.
|
|
27721
|
+
*/
|
|
27722
|
+
kind: 'cell';
|
|
27723
|
+
/**
|
|
27724
|
+
* The dimension values this cell prices, for example resolution 1080p.
|
|
27725
|
+
*/
|
|
27726
|
+
when: {
|
|
27727
|
+
[key: string]: string;
|
|
27728
|
+
};
|
|
27729
|
+
} | {
|
|
27730
|
+
/**
|
|
27731
|
+
* This entry is the matrix's default amount, used when no cell matches.
|
|
27732
|
+
*/
|
|
27733
|
+
kind: 'default';
|
|
27734
|
+
};
|
|
27735
|
+
/**
|
|
27736
|
+
* The stored USD amount in major units as a decimal string, or null when the item does not price USD; never 0 as a stand-in.
|
|
27737
|
+
*/
|
|
27738
|
+
usd: string;
|
|
27739
|
+
/**
|
|
27740
|
+
* The stored CNY amount in major units as a decimal string, or null when the item does not price CNY; it is what a CNY account is charged, never 0 as a stand-in.
|
|
27741
|
+
*/
|
|
27742
|
+
cny: string;
|
|
27743
|
+
};
|
|
26990
27744
|
/**
|
|
26991
27745
|
* File expiration policy
|
|
26992
27746
|
*
|
|
@@ -31725,6 +32479,149 @@ export type OrganizationMetric = {
|
|
|
31725
32479
|
*/
|
|
31726
32480
|
unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
|
|
31727
32481
|
};
|
|
32482
|
+
/**
|
|
32483
|
+
* One stored revision of a subject's spec, kept for history.
|
|
32484
|
+
*/
|
|
32485
|
+
export type OrganizationSpecRevision = {
|
|
32486
|
+
kind: OrganizationSpecKind;
|
|
32487
|
+
/**
|
|
32488
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32489
|
+
*/
|
|
32490
|
+
id: string;
|
|
32491
|
+
/**
|
|
32492
|
+
* Revision number of this stored body, rising from 1; diff and get accept it as revision.
|
|
32493
|
+
*/
|
|
32494
|
+
revision: number;
|
|
32495
|
+
/**
|
|
32496
|
+
* 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.
|
|
32497
|
+
*/
|
|
32498
|
+
spec: {
|
|
32499
|
+
[key: string]: unknown;
|
|
32500
|
+
};
|
|
32501
|
+
/**
|
|
32502
|
+
* UTC instant (RFC 3339) when this revision was written.
|
|
32503
|
+
*/
|
|
32504
|
+
create_time: string;
|
|
32505
|
+
/**
|
|
32506
|
+
* Actor address that wrote this revision (human:usr_... or agent:agent_...).
|
|
32507
|
+
*/
|
|
32508
|
+
created_by: string;
|
|
32509
|
+
};
|
|
32510
|
+
/**
|
|
32511
|
+
* One difference between two revisions of a spec.
|
|
32512
|
+
*/
|
|
32513
|
+
export type OrganizationSpecChange = {
|
|
32514
|
+
/**
|
|
32515
|
+
* Path of the changed value inside the spec body, such as agent.model or repositories[github:org/repo].
|
|
32516
|
+
*/
|
|
32517
|
+
path: string;
|
|
32518
|
+
/**
|
|
32519
|
+
* What happened at this path between the two revisions.
|
|
32520
|
+
*/
|
|
32521
|
+
op: 'added' | 'removed' | 'changed';
|
|
32522
|
+
/**
|
|
32523
|
+
* The value at this path in the earlier revision, verbatim; absent when the value was added.
|
|
32524
|
+
*/
|
|
32525
|
+
before?: unknown;
|
|
32526
|
+
/**
|
|
32527
|
+
* The value at this path in the later revision, verbatim; absent when the value was removed.
|
|
32528
|
+
*/
|
|
32529
|
+
after?: unknown;
|
|
32530
|
+
};
|
|
32531
|
+
/**
|
|
32532
|
+
* One layer the effective spec was merged from, least specific first.
|
|
32533
|
+
*/
|
|
32534
|
+
export type OrganizationSpecLayerRef = {
|
|
32535
|
+
kind: OrganizationSpecKind;
|
|
32536
|
+
/**
|
|
32537
|
+
* The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32538
|
+
*/
|
|
32539
|
+
id: string;
|
|
32540
|
+
/**
|
|
32541
|
+
* Revision of that layer's spec at the time it was merged.
|
|
32542
|
+
*/
|
|
32543
|
+
revision: number;
|
|
32544
|
+
};
|
|
32545
|
+
/**
|
|
32546
|
+
* One document block collected from a layer of the effective spec, kept whole and never merged.
|
|
32547
|
+
*/
|
|
32548
|
+
export type OrganizationSpecDocument = {
|
|
32549
|
+
/**
|
|
32550
|
+
* The layer the document came from, as kind:id such as job:jpr_123.
|
|
32551
|
+
*/
|
|
32552
|
+
from: string;
|
|
32553
|
+
/**
|
|
32554
|
+
* Revision of that layer's spec the document was read at.
|
|
32555
|
+
*/
|
|
32556
|
+
revision: number;
|
|
32557
|
+
/**
|
|
32558
|
+
* The document text itself, inferred from memory rather than merged into the capability blocks.
|
|
32559
|
+
*/
|
|
32560
|
+
text: string;
|
|
32561
|
+
};
|
|
32562
|
+
/**
|
|
32563
|
+
* One action the reconciler would take for a block in a dry run.
|
|
32564
|
+
*/
|
|
32565
|
+
export type OrganizationReconcileAction = {
|
|
32566
|
+
/**
|
|
32567
|
+
* Name of the block this action is about, such as agent.
|
|
32568
|
+
*/
|
|
32569
|
+
block: string;
|
|
32570
|
+
/**
|
|
32571
|
+
* What the reconciler would do with this block.
|
|
32572
|
+
*/
|
|
32573
|
+
action: 'hold' | 'update' | 'none' | 'pending' | 'blocked';
|
|
32574
|
+
/**
|
|
32575
|
+
* The value the action would write, or the reason it is blocked, verbatim.
|
|
32576
|
+
*/
|
|
32577
|
+
detail: unknown;
|
|
32578
|
+
};
|
|
32579
|
+
/**
|
|
32580
|
+
* One capability block and the state the reconciler last left it in.
|
|
32581
|
+
*/
|
|
32582
|
+
export type OrganizationReconcileItem = {
|
|
32583
|
+
/**
|
|
32584
|
+
* Name of the capability block this row is about, such as agent or computer.
|
|
32585
|
+
*/
|
|
32586
|
+
block: string;
|
|
32587
|
+
/**
|
|
32588
|
+
* What the reconciler last did with this block.
|
|
32589
|
+
*/
|
|
32590
|
+
state: 'ready' | 'pending' | 'failed' | 'waiting_human' | 'paused';
|
|
32591
|
+
/**
|
|
32592
|
+
* The resource the block was applied to, such as agent:agent_... ; null before it is bound.
|
|
32593
|
+
*/
|
|
32594
|
+
binding: string | null;
|
|
32595
|
+
/**
|
|
32596
|
+
* Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
|
|
32597
|
+
*/
|
|
32598
|
+
message: string | null;
|
|
32599
|
+
};
|
|
32600
|
+
/**
|
|
32601
|
+
* One value where what is applied differs from what the specs want.
|
|
32602
|
+
*/
|
|
32603
|
+
export type OrganizationReconcileDrift = {
|
|
32604
|
+
/**
|
|
32605
|
+
* Name of the block the drifted value belongs to, such as agent.
|
|
32606
|
+
*/
|
|
32607
|
+
block: string;
|
|
32608
|
+
/**
|
|
32609
|
+
* Path of the value inside the block, such as model.
|
|
32610
|
+
*/
|
|
32611
|
+
field: string;
|
|
32612
|
+
/**
|
|
32613
|
+
* The value currently applied, verbatim; null when nothing is applied there yet.
|
|
32614
|
+
*/
|
|
32615
|
+
found: unknown;
|
|
32616
|
+
/**
|
|
32617
|
+
* The value the specs resolved to, verbatim.
|
|
32618
|
+
*/
|
|
32619
|
+
want: unknown;
|
|
32620
|
+
/**
|
|
32621
|
+
* UTC instant (RFC 3339) from which the drift has been observed.
|
|
32622
|
+
*/
|
|
32623
|
+
since: string;
|
|
32624
|
+
};
|
|
31728
32625
|
/**
|
|
31729
32626
|
* Your own string key/value pairs stored with the sandbox; usable as a filter in listSandboxes.
|
|
31730
32627
|
*/
|
|
@@ -32757,7 +33654,7 @@ export type ApplicationModule = {
|
|
|
32757
33654
|
content_base64: string;
|
|
32758
33655
|
};
|
|
32759
33656
|
/**
|
|
32760
|
-
* One binding. Supported types: d1, kv_namespace, r2_bucket (omit the resource id to create a component owned by this Worker), secret_text (text is write-only), plain_text, json, praxis_token (name PRAXIS_API_TOKEN enables platform API
|
|
33657
|
+
* One binding. Supported types: d1, kv_namespace, r2_bucket (omit the resource id to create a component owned by this Worker), secret_text (text is write-only), plain_text, json, praxis_token (name PRAXIS_API_TOKEN enables platform API calls, reaching what the Worker's grants name, without injecting a token), and assets (at most one per version; requires assets on the version). praxis_vault_ref is not available. Any other Cloudflare binding type (service, queue, durable_object_namespace, ai, …) is refused with UNSUPPORTED.
|
|
32761
33658
|
*/
|
|
32762
33659
|
export type ApplicationBinding = {
|
|
32763
33660
|
/**
|
|
@@ -35180,22 +36077,92 @@ export type DevopsTestPlanPackage = {
|
|
|
35180
36077
|
*/
|
|
35181
36078
|
inputHash: string;
|
|
35182
36079
|
/**
|
|
35183
|
-
* What evidence exists for this (package, input hash): passed when the newest recorded run covered every case of the package at the gate's sizes and they passed, failed when the newest row failed,
|
|
36080
|
+
* What evidence exists for this (package, input hash): passed when the newest recorded run covered every case of the package at the gate's sizes and they passed, failed when the newest row failed, missing when there is no row for the pair at all, and not_applicable when the package has no test cases, because the merge gate asks evidence for cases and so asks nothing of it.
|
|
35184
36081
|
*/
|
|
35185
|
-
evidence: 'passed' | 'failed' | 'missing';
|
|
36082
|
+
evidence: 'passed' | 'failed' | 'missing' | 'not_applicable';
|
|
36083
|
+
/**
|
|
36084
|
+
* Present only when evidence is not_applicable: why it does not apply.
|
|
36085
|
+
*/
|
|
36086
|
+
reason?: string;
|
|
35186
36087
|
/**
|
|
35187
36088
|
* The run the answering evidence row came from, for looking up what ran and how; absent when evidence is missing, because then no row answered.
|
|
35188
36089
|
*/
|
|
35189
36090
|
run?: string;
|
|
35190
36091
|
};
|
|
36092
|
+
/**
|
|
36093
|
+
* 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.
|
|
36094
|
+
*/
|
|
36095
|
+
export type DevopsTestPlanCase = {
|
|
36096
|
+
/**
|
|
36097
|
+
* The case id as the catalog holds it; the unit evidence is filed under.
|
|
36098
|
+
*/
|
|
36099
|
+
case: string;
|
|
36100
|
+
/**
|
|
36101
|
+
* Repository-relative directory of the package the scenario lives in.
|
|
36102
|
+
*/
|
|
36103
|
+
package: string;
|
|
36104
|
+
/**
|
|
36105
|
+
* The scenario title, to name a failed or missing case to a person.
|
|
36106
|
+
*/
|
|
36107
|
+
title: string;
|
|
36108
|
+
/**
|
|
36109
|
+
* Whether this diff requires evidence for the case. Only required cases can hold a merge.
|
|
36110
|
+
*/
|
|
36111
|
+
required: boolean;
|
|
36112
|
+
/**
|
|
36113
|
+
* 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.
|
|
36114
|
+
*/
|
|
36115
|
+
reason: 'no-impact' | 'deps-changed' | 'always-affected' | 'unaffected';
|
|
36116
|
+
/**
|
|
36117
|
+
* 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.
|
|
36118
|
+
*/
|
|
36119
|
+
depsHash: string;
|
|
36120
|
+
/**
|
|
36121
|
+
* What the newest recorded result says at this deps hash: passed, failed, or missing when no run has recorded the case there.
|
|
36122
|
+
*/
|
|
36123
|
+
evidence: 'passed' | 'failed' | 'missing';
|
|
36124
|
+
/**
|
|
36125
|
+
* The run the answering result came from; absent when evidence is missing.
|
|
36126
|
+
*/
|
|
36127
|
+
run?: string;
|
|
36128
|
+
};
|
|
36129
|
+
/**
|
|
36130
|
+
* The case counts of one package in the summary view of a test plan.
|
|
36131
|
+
*/
|
|
36132
|
+
export type DevopsTestPlanCaseCounts = {
|
|
36133
|
+
/**
|
|
36134
|
+
* The package directory these counts are for.
|
|
36135
|
+
*/
|
|
36136
|
+
package: string;
|
|
36137
|
+
/**
|
|
36138
|
+
* Cases this diff requires evidence for; the merge asks for nothing else.
|
|
36139
|
+
*/
|
|
36140
|
+
required: number;
|
|
36141
|
+
/**
|
|
36142
|
+
* Cases this diff cannot affect, which need no evidence.
|
|
36143
|
+
*/
|
|
36144
|
+
unaffected: number;
|
|
36145
|
+
/**
|
|
36146
|
+
* Required cases that already have a passing row at their deps hash.
|
|
36147
|
+
*/
|
|
36148
|
+
evidenced: number;
|
|
36149
|
+
/**
|
|
36150
|
+
* Required cases with no evidence row at their deps hash.
|
|
36151
|
+
*/
|
|
36152
|
+
missing: number;
|
|
36153
|
+
/**
|
|
36154
|
+
* Required cases whose newest evidence at their deps hash failed.
|
|
36155
|
+
*/
|
|
36156
|
+
failed: number;
|
|
36157
|
+
};
|
|
35191
36158
|
/**
|
|
35192
36159
|
* The git repository a project is bound to, and how far the service's mirror of it has been read.
|
|
35193
36160
|
*/
|
|
35194
36161
|
export type DevopsRepositoryRef = {
|
|
35195
36162
|
/**
|
|
35196
|
-
* The git host serving this repository;
|
|
36163
|
+
* The git host serving this repository; the value decides how fullName is read.
|
|
35197
36164
|
*/
|
|
35198
|
-
provider: 'github';
|
|
36165
|
+
provider: 'github' | 'platform';
|
|
35199
36166
|
/**
|
|
35200
36167
|
* Owner and repository name as the git host spells them, which is what a person sees in a clone URL.
|
|
35201
36168
|
*/
|
|
@@ -35205,7 +36172,7 @@ export type DevopsRepositoryRef = {
|
|
|
35205
36172
|
*/
|
|
35206
36173
|
defaultBranch: string;
|
|
35207
36174
|
/**
|
|
35208
|
-
* The git host connection that authorizes reads of this repository;
|
|
36175
|
+
* 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.
|
|
35209
36176
|
*/
|
|
35210
36177
|
connection: string;
|
|
35211
36178
|
/**
|
|
@@ -35223,7 +36190,7 @@ export type DevopsProjectSettings = {
|
|
|
35223
36190
|
*/
|
|
35224
36191
|
releaseSchedule: null | DevopsReleaseSchedule;
|
|
35225
36192
|
/**
|
|
35226
|
-
*
|
|
36193
|
+
* Not read, kept for old records: the observation window is the observeMinutes of the environment a promotion deploys into, which wins over this value. Read and set environments observeMinutes.
|
|
35227
36194
|
*/
|
|
35228
36195
|
observationWindowMinutes: number;
|
|
35229
36196
|
/**
|
|
@@ -35238,6 +36205,8 @@ export type DevopsProjectSettings = {
|
|
|
35238
36205
|
* 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.
|
|
35239
36206
|
*/
|
|
35240
36207
|
requireGate: boolean;
|
|
36208
|
+
gate?: DevopsGatePolicy;
|
|
36209
|
+
retention?: DevopsProjectRetention;
|
|
35241
36210
|
};
|
|
35242
36211
|
/**
|
|
35243
36212
|
* When the project cuts releases by itself, in a five-field cron and the zone it is read in.
|
|
@@ -35252,6 +36221,42 @@ export type DevopsReleaseSchedule = {
|
|
|
35252
36221
|
*/
|
|
35253
36222
|
timeZone: string;
|
|
35254
36223
|
};
|
|
36224
|
+
/**
|
|
36225
|
+
* 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.
|
|
36226
|
+
*/
|
|
36227
|
+
export type DevopsGatePolicy = {
|
|
36228
|
+
/**
|
|
36229
|
+
* 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.
|
|
36230
|
+
*/
|
|
36231
|
+
tests?: 'evidence' | 'off';
|
|
36232
|
+
/**
|
|
36233
|
+
* One rule per gate check: its mode (enforce counts it, evaluate shows it without counting, off hides it) and whether an unavailable check blocks.
|
|
36234
|
+
*/
|
|
36235
|
+
rules?: Array<{
|
|
36236
|
+
/**
|
|
36237
|
+
* The gate check this rule governs.
|
|
36238
|
+
*/
|
|
36239
|
+
check: string;
|
|
36240
|
+
/**
|
|
36241
|
+
* enforce counts the check toward the gate, evaluate records it without counting, off drops it.
|
|
36242
|
+
*/
|
|
36243
|
+
mode: 'enforce' | 'evaluate' | 'off';
|
|
36244
|
+
/**
|
|
36245
|
+
* What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
|
|
36246
|
+
*/
|
|
36247
|
+
whenUnavailable: 'fail-closed' | 'fail-open';
|
|
36248
|
+
/**
|
|
36249
|
+
* The check's own parameters; passed through unread.
|
|
36250
|
+
*/
|
|
36251
|
+
params?: {
|
|
36252
|
+
[key: string]: unknown;
|
|
36253
|
+
};
|
|
36254
|
+
}>;
|
|
36255
|
+
/**
|
|
36256
|
+
* Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
|
|
36257
|
+
*/
|
|
36258
|
+
bypass?: Array<string>;
|
|
36259
|
+
};
|
|
35255
36260
|
/**
|
|
35256
36261
|
* One commit inside a release, so a reader can see what is about to ship without leaving this answer.
|
|
35257
36262
|
*/
|
|
@@ -35625,7 +36630,7 @@ export type DevopsEnvironmentQueue = {
|
|
|
35625
36630
|
*/
|
|
35626
36631
|
active?: string;
|
|
35627
36632
|
/**
|
|
35628
|
-
* How many promotions
|
|
36633
|
+
* How many promotions of the environment's own queue are in state queued; they run in the order they were created. Async-lane promotions hold a per-target lock instead and are not counted.
|
|
35629
36634
|
*/
|
|
35630
36635
|
waiting: number;
|
|
35631
36636
|
};
|
|
@@ -35991,9 +36996,9 @@ export type DevopsChangePullRequestRef = {
|
|
|
35991
36996
|
*/
|
|
35992
36997
|
export type DevopsChangeStageDetail = {
|
|
35993
36998
|
/**
|
|
35994
|
-
* The change's position; with several pull requests it is the slice furthest behind.
|
|
36999
|
+
* 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.
|
|
35995
37000
|
*/
|
|
35996
|
-
stage: 'developing' | 'reviewing' | '
|
|
37001
|
+
stage: 'developing' | 'reviewing' | 'integrating' | 'integrated' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
|
|
35997
37002
|
/**
|
|
35998
37003
|
* The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one.
|
|
35999
37004
|
*/
|
|
@@ -36100,6 +37105,32 @@ export type DevopsMergeGate = {
|
|
|
36100
37105
|
*/
|
|
36101
37106
|
decideTime?: string;
|
|
36102
37107
|
};
|
|
37108
|
+
/**
|
|
37109
|
+
* 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.
|
|
37110
|
+
*/
|
|
37111
|
+
export type DevopsReviewVerdict = {
|
|
37112
|
+
/**
|
|
37113
|
+
* passed when the reviewer found nothing wrong, failed when they found something to fix or roll back.
|
|
37114
|
+
*/
|
|
37115
|
+
result: 'passed' | 'failed';
|
|
37116
|
+
/**
|
|
37117
|
+
* What the reviewer found, in a sentence a reader can act on.
|
|
37118
|
+
*/
|
|
37119
|
+
reason: string;
|
|
37120
|
+
by: DevopsActor;
|
|
37121
|
+
/**
|
|
37122
|
+
* The commit the review is about.
|
|
37123
|
+
*/
|
|
37124
|
+
headSha: string;
|
|
37125
|
+
/**
|
|
37126
|
+
* RFC 3339 UTC time the verdict was recorded.
|
|
37127
|
+
*/
|
|
37128
|
+
time: string;
|
|
37129
|
+
/**
|
|
37130
|
+
* True when the pull request had already merged when the verdict was recorded; a failed verdict with merged true is a finding.
|
|
37131
|
+
*/
|
|
37132
|
+
merged: boolean;
|
|
37133
|
+
};
|
|
36103
37134
|
/**
|
|
36104
37135
|
* The GitHub account an installation belongs to.
|
|
36105
37136
|
*/
|
|
@@ -36216,7 +37247,7 @@ export type DevopsWorkspaceUpdateFields = {
|
|
|
36216
37247
|
enabled?: boolean;
|
|
36217
37248
|
};
|
|
36218
37249
|
/**
|
|
36219
|
-
* 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
|
|
37250
|
+
* 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.
|
|
36220
37251
|
*/
|
|
36221
37252
|
vaults?: Array<string>;
|
|
36222
37253
|
};
|
|
@@ -36368,6 +37399,63 @@ export type DevopsUnitTransition = {
|
|
|
36368
37399
|
*/
|
|
36369
37400
|
error: null | DevopsUnitTransitionError;
|
|
36370
37401
|
};
|
|
37402
|
+
/**
|
|
37403
|
+
* One cleanup action the job decided and carried out (or tried to).
|
|
37404
|
+
*/
|
|
37405
|
+
export type DevopsCleanupEntry = {
|
|
37406
|
+
/**
|
|
37407
|
+
* The ledger row's id.
|
|
37408
|
+
*/
|
|
37409
|
+
id: string;
|
|
37410
|
+
/**
|
|
37411
|
+
* Always cleanup.
|
|
37412
|
+
*/
|
|
37413
|
+
object: string;
|
|
37414
|
+
/**
|
|
37415
|
+
* When the action was decided (RFC 3339).
|
|
37416
|
+
*/
|
|
37417
|
+
createTime: string;
|
|
37418
|
+
/**
|
|
37419
|
+
* When the action was last touched: done, or decided when it is not done yet.
|
|
37420
|
+
*/
|
|
37421
|
+
updateTime: string;
|
|
37422
|
+
/**
|
|
37423
|
+
* The Console page of the project the action belongs to.
|
|
37424
|
+
*/
|
|
37425
|
+
viewerUrl: string;
|
|
37426
|
+
/**
|
|
37427
|
+
* The project the action belongs to.
|
|
37428
|
+
*/
|
|
37429
|
+
project: string;
|
|
37430
|
+
/**
|
|
37431
|
+
* What was cleaned.
|
|
37432
|
+
*/
|
|
37433
|
+
kind: 'branch' | 'unit' | 'evidence' | 'prebuild';
|
|
37434
|
+
/**
|
|
37435
|
+
* Which one: branch name and pull request number, unit id, evidence table and cutoff day, or prebuild id.
|
|
37436
|
+
*/
|
|
37437
|
+
subject: string;
|
|
37438
|
+
/**
|
|
37439
|
+
* archive keeps the record and drops the heavy content; delete removes it.
|
|
37440
|
+
*/
|
|
37441
|
+
action: 'archive' | 'delete';
|
|
37442
|
+
/**
|
|
37443
|
+
* 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.
|
|
37444
|
+
*/
|
|
37445
|
+
reason: string;
|
|
37446
|
+
/**
|
|
37447
|
+
* When the job decided the action (RFC 3339).
|
|
37448
|
+
*/
|
|
37449
|
+
decidedAt: string;
|
|
37450
|
+
/**
|
|
37451
|
+
* When the action was carried out; null while it is not done.
|
|
37452
|
+
*/
|
|
37453
|
+
doneAt: string | null;
|
|
37454
|
+
/**
|
|
37455
|
+
* Why the last attempt failed; null once it is done. A failed action stays open and is tried again by the next run.
|
|
37456
|
+
*/
|
|
37457
|
+
error: string | null;
|
|
37458
|
+
};
|
|
36371
37459
|
/**
|
|
36372
37460
|
* Counts of files still attached to the store or batch, grouped by ingestion status.
|
|
36373
37461
|
*/
|
|
@@ -37283,6 +38371,10 @@ export type MediaSearchAsset = {
|
|
|
37283
38371
|
* 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.
|
|
37284
38372
|
*/
|
|
37285
38373
|
segments?: number;
|
|
38374
|
+
/**
|
|
38375
|
+
* 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.
|
|
38376
|
+
*/
|
|
38377
|
+
duration?: number;
|
|
37286
38378
|
};
|
|
37287
38379
|
};
|
|
37288
38380
|
};
|
|
@@ -37573,6 +38665,14 @@ export type MediaSpeechCreateInput = {
|
|
|
37573
38665
|
* Language of the text, when the voice supports several.
|
|
37574
38666
|
*/
|
|
37575
38667
|
language?: string;
|
|
38668
|
+
/**
|
|
38669
|
+
* Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
38670
|
+
*/
|
|
38671
|
+
model?: string;
|
|
38672
|
+
/**
|
|
38673
|
+
* Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced the best value, quality puts the result first. A tier picks among the speech models that carry the voice this request names, so a voice the chosen model does not offer is never selected and then refused, and a platform-designed voice is bound to its own model. Send tier or model, never both. Omitted, the library’s speech model answers, or its default tier once the media-tier-defaults switch is on.
|
|
38674
|
+
*/
|
|
38675
|
+
tier?: MediaMediaTier;
|
|
37576
38676
|
};
|
|
37577
38677
|
/**
|
|
37578
38678
|
* Body of a character element.
|
|
@@ -37924,6 +39024,56 @@ export type RegistryRegistryError = {
|
|
|
37924
39024
|
};
|
|
37925
39025
|
};
|
|
37926
39026
|
};
|
|
39027
|
+
/**
|
|
39028
|
+
* 一个 git 提交。
|
|
39029
|
+
*/
|
|
39030
|
+
export type RegistryGitCommit = {
|
|
39031
|
+
/**
|
|
39032
|
+
* 对象类型标记,固定为 registry.git.commit。
|
|
39033
|
+
*/
|
|
39034
|
+
object: string;
|
|
39035
|
+
/**
|
|
39036
|
+
* 提交的对象 id。
|
|
39037
|
+
*/
|
|
39038
|
+
sha: string;
|
|
39039
|
+
/**
|
|
39040
|
+
* 提交信息原文,含换行。
|
|
39041
|
+
*/
|
|
39042
|
+
message: string;
|
|
39043
|
+
/**
|
|
39044
|
+
* 作者名;仓库没有给出名字时是空串。
|
|
39045
|
+
*/
|
|
39046
|
+
author: string;
|
|
39047
|
+
/**
|
|
39048
|
+
* 作者邮箱;仓库给了才有。
|
|
39049
|
+
*/
|
|
39050
|
+
author_email?: string;
|
|
39051
|
+
/**
|
|
39052
|
+
* 提交时间的 RFC 3339 时间戳;后端没给时是空串。
|
|
39053
|
+
*/
|
|
39054
|
+
committed_at: string;
|
|
39055
|
+
/**
|
|
39056
|
+
* 父提交的对象 id,按顺序。
|
|
39057
|
+
*/
|
|
39058
|
+
parents: Array<string>;
|
|
39059
|
+
};
|
|
39060
|
+
/**
|
|
39061
|
+
* 一次提交或比较改动的一个文件。
|
|
39062
|
+
*/
|
|
39063
|
+
export type RegistryGitChangedFile = {
|
|
39064
|
+
/**
|
|
39065
|
+
* 文件路径,相对仓库根;改名时是新路径。
|
|
39066
|
+
*/
|
|
39067
|
+
path: string;
|
|
39068
|
+
/**
|
|
39069
|
+
* 这个文件怎么变的。
|
|
39070
|
+
*/
|
|
39071
|
+
status: 'added' | 'modified' | 'removed' | 'renamed';
|
|
39072
|
+
/**
|
|
39073
|
+
* 改名前的路径;只有 status 为 renamed 时才有。
|
|
39074
|
+
*/
|
|
39075
|
+
previous_path?: string;
|
|
39076
|
+
};
|
|
37927
39077
|
/**
|
|
37928
39078
|
* 树里的一个条目。
|
|
37929
39079
|
*/
|
|
@@ -37949,6 +39099,65 @@ export type RegistryGitTreeEntry = {
|
|
|
37949
39099
|
*/
|
|
37950
39100
|
size?: number;
|
|
37951
39101
|
};
|
|
39102
|
+
/**
|
|
39103
|
+
* 一个分支或标签。
|
|
39104
|
+
*/
|
|
39105
|
+
export type RegistryGitRefItem = {
|
|
39106
|
+
/**
|
|
39107
|
+
* 引用的全名,分支以 refs/heads/ 开头,标签以 refs/tags/ 开头。
|
|
39108
|
+
*/
|
|
39109
|
+
ref: string;
|
|
39110
|
+
/**
|
|
39111
|
+
* 它指向的提交 id;带注解的标签给的是标签下面的提交。
|
|
39112
|
+
*/
|
|
39113
|
+
sha: string;
|
|
39114
|
+
/**
|
|
39115
|
+
* 引用的种类,分支或标签,由全名的前缀决定。
|
|
39116
|
+
*/
|
|
39117
|
+
type: 'branch' | 'tag';
|
|
39118
|
+
};
|
|
39119
|
+
/**
|
|
39120
|
+
* 比较结果里的一个提交。
|
|
39121
|
+
*/
|
|
39122
|
+
export type RegistryGitComparedCommit = {
|
|
39123
|
+
/**
|
|
39124
|
+
* 提交的对象 id。
|
|
39125
|
+
*/
|
|
39126
|
+
sha: string;
|
|
39127
|
+
/**
|
|
39128
|
+
* 提交信息的第一行。
|
|
39129
|
+
*/
|
|
39130
|
+
subject: string;
|
|
39131
|
+
/**
|
|
39132
|
+
* 这个提交的作者名;仓库没有给出名字时是空串。
|
|
39133
|
+
*/
|
|
39134
|
+
author: string;
|
|
39135
|
+
};
|
|
39136
|
+
/**
|
|
39137
|
+
* 递归树里的一个条目。
|
|
39138
|
+
*/
|
|
39139
|
+
export type RegistryGitTreeNode = {
|
|
39140
|
+
/**
|
|
39141
|
+
* 相对根的完整路径,用斜杠分隔。
|
|
39142
|
+
*/
|
|
39143
|
+
path: string;
|
|
39144
|
+
/**
|
|
39145
|
+
* 条目指向的对象类型;commit 是子模块,不展开。
|
|
39146
|
+
*/
|
|
39147
|
+
type: 'blob' | 'tree' | 'commit';
|
|
39148
|
+
/**
|
|
39149
|
+
* git 的模式位,例如 100644、100755、120000 或 040000。
|
|
39150
|
+
*/
|
|
39151
|
+
mode: string;
|
|
39152
|
+
/**
|
|
39153
|
+
* 条目指向的对象 id。
|
|
39154
|
+
*/
|
|
39155
|
+
sha: string;
|
|
39156
|
+
/**
|
|
39157
|
+
* 对象大小(字节),后端给出时才有。
|
|
39158
|
+
*/
|
|
39159
|
+
size?: number;
|
|
39160
|
+
};
|
|
37952
39161
|
/**
|
|
37953
39162
|
* 一个版本解压后的一个文件条目。
|
|
37954
39163
|
*/
|
|
@@ -43886,6 +45095,27 @@ export type DevopsMirrorState = {
|
|
|
43886
45095
|
*/
|
|
43887
45096
|
error?: string;
|
|
43888
45097
|
};
|
|
45098
|
+
/**
|
|
45099
|
+
* 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.
|
|
45100
|
+
*/
|
|
45101
|
+
export type DevopsProjectRetention = {
|
|
45102
|
+
/**
|
|
45103
|
+
* 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.
|
|
45104
|
+
*/
|
|
45105
|
+
deleteMergedBranch?: boolean;
|
|
45106
|
+
/**
|
|
45107
|
+
* 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.
|
|
45108
|
+
*/
|
|
45109
|
+
stoppedUnitDays?: number;
|
|
45110
|
+
/**
|
|
45111
|
+
* 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.
|
|
45112
|
+
*/
|
|
45113
|
+
evidenceDays?: number;
|
|
45114
|
+
/**
|
|
45115
|
+
* How many ready prebuilds each workspace keeps, newest first; older ones are archived and their snapshots deleted. Default 2.
|
|
45116
|
+
*/
|
|
45117
|
+
prebuildVersions?: number;
|
|
45118
|
+
};
|
|
43889
45119
|
/**
|
|
43890
45120
|
* One target's render result inside a release.
|
|
43891
45121
|
*/
|
|
@@ -43957,7 +45187,7 @@ export type DevopsPlanRefusal = {
|
|
|
43957
45187
|
/**
|
|
43958
45188
|
* Which rule refused, which is the value a caller branches on; the remaining fields carry that rule's own evidence.
|
|
43959
45189
|
*/
|
|
43960
|
-
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' | '
|
|
45190
|
+
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';
|
|
43961
45191
|
/**
|
|
43962
45192
|
* The commit this refusal is about, present for the pick rules; it is the pick the request carried.
|
|
43963
45193
|
*/
|
|
@@ -47068,6 +48298,10 @@ export type MediaAssetWritable = {
|
|
|
47068
48298
|
* 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.
|
|
47069
48299
|
*/
|
|
47070
48300
|
segments?: number;
|
|
48301
|
+
/**
|
|
48302
|
+
* 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.
|
|
48303
|
+
*/
|
|
48304
|
+
duration?: number;
|
|
47071
48305
|
};
|
|
47072
48306
|
};
|
|
47073
48307
|
};
|
|
@@ -47621,6 +48855,10 @@ export type MediaSearchAssetWritable = {
|
|
|
47621
48855
|
* 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.
|
|
47622
48856
|
*/
|
|
47623
48857
|
segments?: number;
|
|
48858
|
+
/**
|
|
48859
|
+
* 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.
|
|
48860
|
+
*/
|
|
48861
|
+
duration?: number;
|
|
47624
48862
|
};
|
|
47625
48863
|
};
|
|
47626
48864
|
};
|
|
@@ -47901,7 +49139,7 @@ export type DevopsEnvironmentQuery = string;
|
|
|
47901
49139
|
*/
|
|
47902
49140
|
export type DevopsSegmentIdPath = string;
|
|
47903
49141
|
/**
|
|
47904
|
-
* The stage whose workspace you address: development, integration or
|
|
49142
|
+
* 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.
|
|
47905
49143
|
*/
|
|
47906
49144
|
export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
|
|
47907
49145
|
/**
|
|
@@ -47972,6 +49210,34 @@ export type RegistryGitLogOffset = number;
|
|
|
47972
49210
|
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
47973
49211
|
*/
|
|
47974
49212
|
export type RegistryGitObjectId = string;
|
|
49213
|
+
/**
|
|
49214
|
+
* 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
|
|
49215
|
+
*/
|
|
49216
|
+
export type RegistryGitChangedFiles = boolean;
|
|
49217
|
+
/**
|
|
49218
|
+
* 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
|
|
49219
|
+
*/
|
|
49220
|
+
export type RegistryGitRefPrefix = 'refs/heads/' | 'refs/tags/';
|
|
49221
|
+
/**
|
|
49222
|
+
* 页码,从 1 起,默认 1。
|
|
49223
|
+
*/
|
|
49224
|
+
export type RegistryGitRefsPage = number;
|
|
49225
|
+
/**
|
|
49226
|
+
* 这一页最多返回多少个引用,1 到 500,默认 100。
|
|
49227
|
+
*/
|
|
49228
|
+
export type RegistryGitRefsSize = number;
|
|
49229
|
+
/**
|
|
49230
|
+
* 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
|
|
49231
|
+
*/
|
|
49232
|
+
export type RegistryGitResolveRef = string;
|
|
49233
|
+
/**
|
|
49234
|
+
* 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
|
|
49235
|
+
*/
|
|
49236
|
+
export type RegistryGitCompareBase = string;
|
|
49237
|
+
/**
|
|
49238
|
+
* 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
|
|
49239
|
+
*/
|
|
49240
|
+
export type RegistryGitCompareHead = string;
|
|
47975
49241
|
/**
|
|
47976
49242
|
* 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
|
|
47977
49243
|
*/
|
|
@@ -48880,48 +50146,6 @@ export type ListAgentEventsResponses = {
|
|
|
48880
50146
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
48881
50147
|
*/
|
|
48882
50148
|
processed_at: string;
|
|
48883
|
-
} | {
|
|
48884
|
-
/**
|
|
48885
|
-
* Event id, unique within the session.
|
|
48886
|
-
*/
|
|
48887
|
-
id: string;
|
|
48888
|
-
/**
|
|
48889
|
-
* Always `user.tool_confirmation`.
|
|
48890
|
-
*/
|
|
48891
|
-
type: 'user.tool_confirmation';
|
|
48892
|
-
/**
|
|
48893
|
-
* When the event was recorded, RFC 3339.
|
|
48894
|
-
*/
|
|
48895
|
-
processed_at: string;
|
|
48896
|
-
/**
|
|
48897
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
48898
|
-
*/
|
|
48899
|
-
tool_use_id: string;
|
|
48900
|
-
/**
|
|
48901
|
-
* Always `allow`.
|
|
48902
|
-
*/
|
|
48903
|
-
result: 'allow';
|
|
48904
|
-
/**
|
|
48905
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
48906
|
-
*/
|
|
48907
|
-
answers: {
|
|
48908
|
-
[key: string]: string;
|
|
48909
|
-
};
|
|
48910
|
-
/**
|
|
48911
|
-
* Per-question notes, keyed by the question text.
|
|
48912
|
-
*/
|
|
48913
|
-
annotations?: {
|
|
48914
|
-
[key: string]: {
|
|
48915
|
-
/**
|
|
48916
|
-
* The preview of the option the user chose.
|
|
48917
|
-
*/
|
|
48918
|
-
preview?: string;
|
|
48919
|
-
/**
|
|
48920
|
-
* Free text the user added to their choice.
|
|
48921
|
-
*/
|
|
48922
|
-
notes?: string;
|
|
48923
|
-
};
|
|
48924
|
-
};
|
|
48925
50149
|
}>;
|
|
48926
50150
|
/**
|
|
48927
50151
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -48971,40 +50195,6 @@ export type SendAgentEventsData = {
|
|
|
48971
50195
|
* Id of the event this event refers to.
|
|
48972
50196
|
*/
|
|
48973
50197
|
event_id: string;
|
|
48974
|
-
} | {
|
|
48975
|
-
/**
|
|
48976
|
-
* Always `user.tool_confirmation`.
|
|
48977
|
-
*/
|
|
48978
|
-
type: 'user.tool_confirmation';
|
|
48979
|
-
/**
|
|
48980
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
48981
|
-
*/
|
|
48982
|
-
tool_use_id: string;
|
|
48983
|
-
/**
|
|
48984
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
48985
|
-
*/
|
|
48986
|
-
result: 'allow';
|
|
48987
|
-
/**
|
|
48988
|
-
* 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.
|
|
48989
|
-
*/
|
|
48990
|
-
answers: {
|
|
48991
|
-
[key: string]: string;
|
|
48992
|
-
};
|
|
48993
|
-
/**
|
|
48994
|
-
* Optional per-question notes, keyed by the question text.
|
|
48995
|
-
*/
|
|
48996
|
-
annotations?: {
|
|
48997
|
-
[key: string]: {
|
|
48998
|
-
/**
|
|
48999
|
-
* The preview of the option the user chose.
|
|
49000
|
-
*/
|
|
49001
|
-
preview?: string;
|
|
49002
|
-
/**
|
|
49003
|
-
* Free text the user added to their choice.
|
|
49004
|
-
*/
|
|
49005
|
-
notes?: string;
|
|
49006
|
-
};
|
|
49007
|
-
};
|
|
49008
50198
|
}>;
|
|
49009
50199
|
};
|
|
49010
50200
|
path: {
|
|
@@ -49087,48 +50277,6 @@ export type SendAgentEventsResponses = {
|
|
|
49087
50277
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49088
50278
|
*/
|
|
49089
50279
|
processed_at: string;
|
|
49090
|
-
} | {
|
|
49091
|
-
/**
|
|
49092
|
-
* Event id, unique within the session.
|
|
49093
|
-
*/
|
|
49094
|
-
id: string;
|
|
49095
|
-
/**
|
|
49096
|
-
* Always `user.tool_confirmation`.
|
|
49097
|
-
*/
|
|
49098
|
-
type: 'user.tool_confirmation';
|
|
49099
|
-
/**
|
|
49100
|
-
* When the event was recorded, RFC 3339.
|
|
49101
|
-
*/
|
|
49102
|
-
processed_at: string;
|
|
49103
|
-
/**
|
|
49104
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
49105
|
-
*/
|
|
49106
|
-
tool_use_id: string;
|
|
49107
|
-
/**
|
|
49108
|
-
* Always `allow`.
|
|
49109
|
-
*/
|
|
49110
|
-
result: 'allow';
|
|
49111
|
-
/**
|
|
49112
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
49113
|
-
*/
|
|
49114
|
-
answers: {
|
|
49115
|
-
[key: string]: string;
|
|
49116
|
-
};
|
|
49117
|
-
/**
|
|
49118
|
-
* Per-question notes, keyed by the question text.
|
|
49119
|
-
*/
|
|
49120
|
-
annotations?: {
|
|
49121
|
-
[key: string]: {
|
|
49122
|
-
/**
|
|
49123
|
-
* The preview of the option the user chose.
|
|
49124
|
-
*/
|
|
49125
|
-
preview?: string;
|
|
49126
|
-
/**
|
|
49127
|
-
* Free text the user added to their choice.
|
|
49128
|
-
*/
|
|
49129
|
-
notes?: string;
|
|
49130
|
-
};
|
|
49131
|
-
};
|
|
49132
50280
|
}>;
|
|
49133
50281
|
};
|
|
49134
50282
|
};
|
|
@@ -52848,6 +53996,186 @@ export type GetAgentAppearanceResponses = {
|
|
|
52848
53996
|
};
|
|
52849
53997
|
};
|
|
52850
53998
|
export type GetAgentAppearanceResponse = GetAgentAppearanceResponses[keyof GetAgentAppearanceResponses];
|
|
53999
|
+
export type AgentsPhoneRetrieveData = {
|
|
54000
|
+
body?: never;
|
|
54001
|
+
path: {
|
|
54002
|
+
/**
|
|
54003
|
+
* Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
54004
|
+
*/
|
|
54005
|
+
agent_id: string;
|
|
54006
|
+
};
|
|
54007
|
+
query?: never;
|
|
54008
|
+
url: '/agent/v1/agents/{agent_id}/phone';
|
|
54009
|
+
};
|
|
54010
|
+
export type AgentsPhoneRetrieveErrors = {
|
|
54011
|
+
/**
|
|
54012
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
54013
|
+
*/
|
|
54014
|
+
400: unknown;
|
|
54015
|
+
/**
|
|
54016
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
54017
|
+
*/
|
|
54018
|
+
401: AgentError;
|
|
54019
|
+
/**
|
|
54020
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
54021
|
+
*/
|
|
54022
|
+
403: AgentError;
|
|
54023
|
+
/**
|
|
54024
|
+
* AGENT_NOT_FOUND: no agent with this reference belongs to your organization, this credential cannot see it, or it is a service agent (which never has a phone).
|
|
54025
|
+
*/
|
|
54026
|
+
404: unknown;
|
|
54027
|
+
/**
|
|
54028
|
+
* Agent service failed
|
|
54029
|
+
*/
|
|
54030
|
+
502: unknown;
|
|
54031
|
+
/**
|
|
54032
|
+
* Agent service unavailable
|
|
54033
|
+
*/
|
|
54034
|
+
503: unknown;
|
|
54035
|
+
};
|
|
54036
|
+
export type AgentsPhoneRetrieveError = AgentsPhoneRetrieveErrors[keyof AgentsPhoneRetrieveErrors];
|
|
54037
|
+
export type AgentsPhoneRetrieveResponses = {
|
|
54038
|
+
/**
|
|
54039
|
+
* This agent's phone: whether one is configured, what it is doing, and the public sandbox id to take it over with.
|
|
54040
|
+
*/
|
|
54041
|
+
200: {
|
|
54042
|
+
/**
|
|
54043
|
+
* Object type, always agent_phone.
|
|
54044
|
+
*/
|
|
54045
|
+
object: 'agent_phone';
|
|
54046
|
+
/**
|
|
54047
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
54048
|
+
*/
|
|
54049
|
+
agent_id: string;
|
|
54050
|
+
/**
|
|
54051
|
+
* Whether this agent has a phone configured at all. false means no phone block is saved (the phone is off); it is not an error.
|
|
54052
|
+
*/
|
|
54053
|
+
configured: boolean;
|
|
54054
|
+
/**
|
|
54055
|
+
* 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.
|
|
54056
|
+
*/
|
|
54057
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
54058
|
+
/**
|
|
54059
|
+
* 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.
|
|
54060
|
+
*/
|
|
54061
|
+
sku: string | null;
|
|
54062
|
+
/**
|
|
54063
|
+
* 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.
|
|
54064
|
+
*/
|
|
54065
|
+
byod_device: string | null;
|
|
54066
|
+
/**
|
|
54067
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
54068
|
+
*/
|
|
54069
|
+
name: string | null;
|
|
54070
|
+
/**
|
|
54071
|
+
* The public sandbox id of the running instance, or null when there is no instance. Take the phone over with it: POST /sandbox/v1/sandboxes/{id}/act, or the Console sandbox page's screen tab.
|
|
54072
|
+
*/
|
|
54073
|
+
sandbox_id: string | null;
|
|
54074
|
+
/**
|
|
54075
|
+
* When the current instance's lease runs out, in RFC 3339; the sandbox kills the phone then. Null when there is no instance; every use extends the lease.
|
|
54076
|
+
*/
|
|
54077
|
+
lease_ends_at: string | null;
|
|
54078
|
+
/**
|
|
54079
|
+
* When the app state was last packed for this phone, in RFC 3339; null when it never was. The archive is what a fresh instance restores on the next use.
|
|
54080
|
+
*/
|
|
54081
|
+
archived_at: string | null;
|
|
54082
|
+
/**
|
|
54083
|
+
* Why the last app-state archive failed, or null. A phone that could not be packed is still released, but the last state is not kept.
|
|
54084
|
+
*/
|
|
54085
|
+
archive_error: string | null;
|
|
54086
|
+
};
|
|
54087
|
+
};
|
|
54088
|
+
export type AgentsPhoneRetrieveResponse = AgentsPhoneRetrieveResponses[keyof AgentsPhoneRetrieveResponses];
|
|
54089
|
+
export type AgentsPhoneReleaseData = {
|
|
54090
|
+
body?: never;
|
|
54091
|
+
path: {
|
|
54092
|
+
/**
|
|
54093
|
+
* Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
54094
|
+
*/
|
|
54095
|
+
agent_id: string;
|
|
54096
|
+
};
|
|
54097
|
+
query?: never;
|
|
54098
|
+
url: '/agent/v1/agents/{agent_id}/phone/release';
|
|
54099
|
+
};
|
|
54100
|
+
export type AgentsPhoneReleaseErrors = {
|
|
54101
|
+
/**
|
|
54102
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
54103
|
+
*/
|
|
54104
|
+
400: unknown;
|
|
54105
|
+
/**
|
|
54106
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
54107
|
+
*/
|
|
54108
|
+
401: AgentError;
|
|
54109
|
+
/**
|
|
54110
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
54111
|
+
*/
|
|
54112
|
+
403: AgentError;
|
|
54113
|
+
/**
|
|
54114
|
+
* AGENT_NOT_FOUND: no agent with this reference belongs to your organization, this credential cannot see it, or it is a service agent (which never has a phone).
|
|
54115
|
+
*/
|
|
54116
|
+
404: unknown;
|
|
54117
|
+
/**
|
|
54118
|
+
* Agent service failed
|
|
54119
|
+
*/
|
|
54120
|
+
502: unknown;
|
|
54121
|
+
/**
|
|
54122
|
+
* Agent service unavailable
|
|
54123
|
+
*/
|
|
54124
|
+
503: unknown;
|
|
54125
|
+
};
|
|
54126
|
+
export type AgentsPhoneReleaseError = AgentsPhoneReleaseErrors[keyof AgentsPhoneReleaseErrors];
|
|
54127
|
+
export type AgentsPhoneReleaseResponses = {
|
|
54128
|
+
/**
|
|
54129
|
+
* The phone with the release recorded: state releasing, or none when there was nothing to release.
|
|
54130
|
+
*/
|
|
54131
|
+
200: {
|
|
54132
|
+
/**
|
|
54133
|
+
* Object type, always agent_phone.
|
|
54134
|
+
*/
|
|
54135
|
+
object: 'agent_phone';
|
|
54136
|
+
/**
|
|
54137
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
54138
|
+
*/
|
|
54139
|
+
agent_id: string;
|
|
54140
|
+
/**
|
|
54141
|
+
* Whether this agent has a phone configured at all. false means no phone block is saved (the phone is off); it is not an error.
|
|
54142
|
+
*/
|
|
54143
|
+
configured: boolean;
|
|
54144
|
+
/**
|
|
54145
|
+
* 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.
|
|
54146
|
+
*/
|
|
54147
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
54148
|
+
/**
|
|
54149
|
+
* 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.
|
|
54150
|
+
*/
|
|
54151
|
+
sku: string | null;
|
|
54152
|
+
/**
|
|
54153
|
+
* 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.
|
|
54154
|
+
*/
|
|
54155
|
+
byod_device: string | null;
|
|
54156
|
+
/**
|
|
54157
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
54158
|
+
*/
|
|
54159
|
+
name: string | null;
|
|
54160
|
+
/**
|
|
54161
|
+
* The public sandbox id of the running instance, or null when there is no instance. Take the phone over with it: POST /sandbox/v1/sandboxes/{id}/act, or the Console sandbox page's screen tab.
|
|
54162
|
+
*/
|
|
54163
|
+
sandbox_id: string | null;
|
|
54164
|
+
/**
|
|
54165
|
+
* When the current instance's lease runs out, in RFC 3339; the sandbox kills the phone then. Null when there is no instance; every use extends the lease.
|
|
54166
|
+
*/
|
|
54167
|
+
lease_ends_at: string | null;
|
|
54168
|
+
/**
|
|
54169
|
+
* When the app state was last packed for this phone, in RFC 3339; null when it never was. The archive is what a fresh instance restores on the next use.
|
|
54170
|
+
*/
|
|
54171
|
+
archived_at: string | null;
|
|
54172
|
+
/**
|
|
54173
|
+
* Why the last app-state archive failed, or null. A phone that could not be packed is still released, but the last state is not kept.
|
|
54174
|
+
*/
|
|
54175
|
+
archive_error: string | null;
|
|
54176
|
+
};
|
|
54177
|
+
};
|
|
54178
|
+
export type AgentsPhoneReleaseResponse = AgentsPhoneReleaseResponses[keyof AgentsPhoneReleaseResponses];
|
|
52851
54179
|
export type GetAgentEmbedPolicyData = {
|
|
52852
54180
|
body?: never;
|
|
52853
54181
|
path: {
|
|
@@ -55524,6 +56852,289 @@ export type ComputersFilesContentResponses = {
|
|
|
55524
56852
|
206: Blob | File;
|
|
55525
56853
|
};
|
|
55526
56854
|
export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
|
|
56855
|
+
export type UpdateComputerFileContentData = {
|
|
56856
|
+
body: Blob | File;
|
|
56857
|
+
headers: {
|
|
56858
|
+
/**
|
|
56859
|
+
* The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted.
|
|
56860
|
+
*/
|
|
56861
|
+
'If-Match': string;
|
|
56862
|
+
};
|
|
56863
|
+
path: {
|
|
56864
|
+
/**
|
|
56865
|
+
* Computer id from computer creation or listing; a computer another tenant owns is not found.
|
|
56866
|
+
*/
|
|
56867
|
+
computer_id: string;
|
|
56868
|
+
};
|
|
56869
|
+
query: {
|
|
56870
|
+
/**
|
|
56871
|
+
* Absolute path of the existing file on the computer, or a /workspace/ relative path.
|
|
56872
|
+
*/
|
|
56873
|
+
path: string;
|
|
56874
|
+
};
|
|
56875
|
+
url: '/agent/v1/computers/{computer_id}/files/content';
|
|
56876
|
+
};
|
|
56877
|
+
export type UpdateComputerFileContentErrors = {
|
|
56878
|
+
/**
|
|
56879
|
+
* INVALID_PARAMS: path is missing, a query parameter is unsupported, or the path is a directory (IS_DIRECTORY).
|
|
56880
|
+
*/
|
|
56881
|
+
400: {
|
|
56882
|
+
type: 'error';
|
|
56883
|
+
error: {
|
|
56884
|
+
/**
|
|
56885
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56886
|
+
*/
|
|
56887
|
+
type: string;
|
|
56888
|
+
message: string;
|
|
56889
|
+
code: string;
|
|
56890
|
+
retryable: boolean;
|
|
56891
|
+
/**
|
|
56892
|
+
* How to recover, for computer failures.
|
|
56893
|
+
*/
|
|
56894
|
+
hint?: string;
|
|
56895
|
+
};
|
|
56896
|
+
/**
|
|
56897
|
+
* Equals the X-Request-Id response header.
|
|
56898
|
+
*/
|
|
56899
|
+
request_id: string;
|
|
56900
|
+
};
|
|
56901
|
+
/**
|
|
56902
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56903
|
+
*/
|
|
56904
|
+
401: {
|
|
56905
|
+
type: 'error';
|
|
56906
|
+
error: {
|
|
56907
|
+
/**
|
|
56908
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56909
|
+
*/
|
|
56910
|
+
type: string;
|
|
56911
|
+
message: string;
|
|
56912
|
+
code: string;
|
|
56913
|
+
retryable: boolean;
|
|
56914
|
+
/**
|
|
56915
|
+
* How to recover, for computer failures.
|
|
56916
|
+
*/
|
|
56917
|
+
hint?: string;
|
|
56918
|
+
};
|
|
56919
|
+
/**
|
|
56920
|
+
* Equals the X-Request-Id response header.
|
|
56921
|
+
*/
|
|
56922
|
+
request_id: string;
|
|
56923
|
+
};
|
|
56924
|
+
/**
|
|
56925
|
+
* READ_ONLY: the path is under /attachments or /skills.
|
|
56926
|
+
*/
|
|
56927
|
+
403: {
|
|
56928
|
+
type: 'error';
|
|
56929
|
+
error: {
|
|
56930
|
+
/**
|
|
56931
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56932
|
+
*/
|
|
56933
|
+
type: string;
|
|
56934
|
+
message: string;
|
|
56935
|
+
code: string;
|
|
56936
|
+
retryable: boolean;
|
|
56937
|
+
/**
|
|
56938
|
+
* How to recover, for computer failures.
|
|
56939
|
+
*/
|
|
56940
|
+
hint?: string;
|
|
56941
|
+
};
|
|
56942
|
+
/**
|
|
56943
|
+
* Equals the X-Request-Id response header.
|
|
56944
|
+
*/
|
|
56945
|
+
request_id: string;
|
|
56946
|
+
};
|
|
56947
|
+
/**
|
|
56948
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers, and a write never creates a file.
|
|
56949
|
+
*/
|
|
56950
|
+
404: {
|
|
56951
|
+
type: 'error';
|
|
56952
|
+
error: {
|
|
56953
|
+
/**
|
|
56954
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56955
|
+
*/
|
|
56956
|
+
type: string;
|
|
56957
|
+
message: string;
|
|
56958
|
+
code: string;
|
|
56959
|
+
retryable: boolean;
|
|
56960
|
+
/**
|
|
56961
|
+
* How to recover, for computer failures.
|
|
56962
|
+
*/
|
|
56963
|
+
hint?: string;
|
|
56964
|
+
};
|
|
56965
|
+
/**
|
|
56966
|
+
* Equals the X-Request-Id response header.
|
|
56967
|
+
*/
|
|
56968
|
+
request_id: string;
|
|
56969
|
+
};
|
|
56970
|
+
/**
|
|
56971
|
+
* FILE_VERSION_MISMATCH: the file changed since the version in If-Match; error.current_version is its version now. Nothing was written.
|
|
56972
|
+
*/
|
|
56973
|
+
412: {
|
|
56974
|
+
type: 'error';
|
|
56975
|
+
error: {
|
|
56976
|
+
/**
|
|
56977
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56978
|
+
*/
|
|
56979
|
+
type: string;
|
|
56980
|
+
message: string;
|
|
56981
|
+
code: string;
|
|
56982
|
+
retryable: boolean;
|
|
56983
|
+
/**
|
|
56984
|
+
* How to recover, for computer failures.
|
|
56985
|
+
*/
|
|
56986
|
+
hint?: string;
|
|
56987
|
+
/**
|
|
56988
|
+
* The file's version now (<size>-<mtimeMs>); read the file again and write with this version.
|
|
56989
|
+
*/
|
|
56990
|
+
current_version?: string;
|
|
56991
|
+
};
|
|
56992
|
+
/**
|
|
56993
|
+
* Equals the X-Request-Id response header.
|
|
56994
|
+
*/
|
|
56995
|
+
request_id: string;
|
|
56996
|
+
};
|
|
56997
|
+
/**
|
|
56998
|
+
* FILE_TOO_LARGE: the body exceeds 16 MiB.
|
|
56999
|
+
*/
|
|
57000
|
+
413: {
|
|
57001
|
+
type: 'error';
|
|
57002
|
+
error: {
|
|
57003
|
+
/**
|
|
57004
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57005
|
+
*/
|
|
57006
|
+
type: string;
|
|
57007
|
+
message: string;
|
|
57008
|
+
code: string;
|
|
57009
|
+
retryable: boolean;
|
|
57010
|
+
/**
|
|
57011
|
+
* How to recover, for computer failures.
|
|
57012
|
+
*/
|
|
57013
|
+
hint?: string;
|
|
57014
|
+
};
|
|
57015
|
+
/**
|
|
57016
|
+
* Equals the X-Request-Id response header.
|
|
57017
|
+
*/
|
|
57018
|
+
request_id: string;
|
|
57019
|
+
};
|
|
57020
|
+
/**
|
|
57021
|
+
* FILE_VERSION_REQUIRED: If-Match is missing. Nothing was written.
|
|
57022
|
+
*/
|
|
57023
|
+
428: {
|
|
57024
|
+
type: 'error';
|
|
57025
|
+
error: {
|
|
57026
|
+
/**
|
|
57027
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57028
|
+
*/
|
|
57029
|
+
type: string;
|
|
57030
|
+
message: string;
|
|
57031
|
+
code: string;
|
|
57032
|
+
retryable: boolean;
|
|
57033
|
+
/**
|
|
57034
|
+
* How to recover, for computer failures.
|
|
57035
|
+
*/
|
|
57036
|
+
hint?: string;
|
|
57037
|
+
};
|
|
57038
|
+
/**
|
|
57039
|
+
* Equals the X-Request-Id response header.
|
|
57040
|
+
*/
|
|
57041
|
+
request_id: string;
|
|
57042
|
+
};
|
|
57043
|
+
/**
|
|
57044
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57045
|
+
*/
|
|
57046
|
+
429: {
|
|
57047
|
+
type: 'error';
|
|
57048
|
+
error: {
|
|
57049
|
+
/**
|
|
57050
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57051
|
+
*/
|
|
57052
|
+
type: string;
|
|
57053
|
+
message: string;
|
|
57054
|
+
code: string;
|
|
57055
|
+
retryable: boolean;
|
|
57056
|
+
/**
|
|
57057
|
+
* How to recover, for computer failures.
|
|
57058
|
+
*/
|
|
57059
|
+
hint?: string;
|
|
57060
|
+
};
|
|
57061
|
+
/**
|
|
57062
|
+
* Equals the X-Request-Id response header.
|
|
57063
|
+
*/
|
|
57064
|
+
request_id: string;
|
|
57065
|
+
};
|
|
57066
|
+
/**
|
|
57067
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57068
|
+
*/
|
|
57069
|
+
500: {
|
|
57070
|
+
type: 'error';
|
|
57071
|
+
error: {
|
|
57072
|
+
/**
|
|
57073
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57074
|
+
*/
|
|
57075
|
+
type: string;
|
|
57076
|
+
message: string;
|
|
57077
|
+
code: string;
|
|
57078
|
+
retryable: boolean;
|
|
57079
|
+
/**
|
|
57080
|
+
* How to recover, for computer failures.
|
|
57081
|
+
*/
|
|
57082
|
+
hint?: string;
|
|
57083
|
+
};
|
|
57084
|
+
/**
|
|
57085
|
+
* Equals the X-Request-Id response header.
|
|
57086
|
+
*/
|
|
57087
|
+
request_id: string;
|
|
57088
|
+
};
|
|
57089
|
+
/**
|
|
57090
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
57091
|
+
*/
|
|
57092
|
+
503: {
|
|
57093
|
+
type: 'error';
|
|
57094
|
+
error: {
|
|
57095
|
+
/**
|
|
57096
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
57097
|
+
*/
|
|
57098
|
+
type: string;
|
|
57099
|
+
message: string;
|
|
57100
|
+
code: string;
|
|
57101
|
+
retryable: boolean;
|
|
57102
|
+
/**
|
|
57103
|
+
* How to recover, for computer failures.
|
|
57104
|
+
*/
|
|
57105
|
+
hint?: string;
|
|
57106
|
+
};
|
|
57107
|
+
/**
|
|
57108
|
+
* Equals the X-Request-Id response header.
|
|
57109
|
+
*/
|
|
57110
|
+
request_id: string;
|
|
57111
|
+
};
|
|
57112
|
+
};
|
|
57113
|
+
export type UpdateComputerFileContentError = UpdateComputerFileContentErrors[keyof UpdateComputerFileContentErrors];
|
|
57114
|
+
export type UpdateComputerFileContentResponses = {
|
|
57115
|
+
/**
|
|
57116
|
+
* The file after the write.
|
|
57117
|
+
*/
|
|
57118
|
+
200: {
|
|
57119
|
+
/**
|
|
57120
|
+
* Absolute path of the file that was written.
|
|
57121
|
+
*/
|
|
57122
|
+
path: string;
|
|
57123
|
+
/**
|
|
57124
|
+
* Size of the file now, in bytes.
|
|
57125
|
+
*/
|
|
57126
|
+
size: number;
|
|
57127
|
+
/**
|
|
57128
|
+
* Modification time of the file now, when the machine reports one.
|
|
57129
|
+
*/
|
|
57130
|
+
mtime: string | null;
|
|
57131
|
+
/**
|
|
57132
|
+
* The file's version now (<size>-<mtimeMs>); send it as If-Match on the next write.
|
|
57133
|
+
*/
|
|
57134
|
+
version: string;
|
|
57135
|
+
};
|
|
57136
|
+
};
|
|
57137
|
+
export type UpdateComputerFileContentResponse = UpdateComputerFileContentResponses[keyof UpdateComputerFileContentResponses];
|
|
55527
57138
|
export type PreviewComputerFileData = {
|
|
55528
57139
|
body?: never;
|
|
55529
57140
|
path: {
|
|
@@ -62621,7 +64232,7 @@ export type ListSessionRequestsResponses = {
|
|
|
62621
64232
|
*/
|
|
62622
64233
|
object: 'request';
|
|
62623
64234
|
/**
|
|
62624
|
-
* question
|
|
64235
|
+
* 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.
|
|
62625
64236
|
*/
|
|
62626
64237
|
kind: 'question' | 'approval';
|
|
62627
64238
|
/**
|
|
@@ -62629,11 +64240,11 @@ export type ListSessionRequestsResponses = {
|
|
|
62629
64240
|
*/
|
|
62630
64241
|
status: 'pending';
|
|
62631
64242
|
/**
|
|
62632
|
-
* The tool the agent called, such as
|
|
64243
|
+
* The tool the agent called, such as bash.
|
|
62633
64244
|
*/
|
|
62634
64245
|
tool_name: string;
|
|
62635
64246
|
/**
|
|
62636
|
-
* The tool call's input exactly as the agent.tool_use event shows it:
|
|
64247
|
+
* The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
|
|
62637
64248
|
*/
|
|
62638
64249
|
input: unknown;
|
|
62639
64250
|
/**
|
|
@@ -63438,6 +65049,29 @@ export type CreateAudioSpeechResponses = {
|
|
|
63438
65049
|
200: Blob | File;
|
|
63439
65050
|
};
|
|
63440
65051
|
export type CreateAudioSpeechResponse = CreateAudioSpeechResponses[keyof CreateAudioSpeechResponses];
|
|
65052
|
+
export type ListPublicPricesData = {
|
|
65053
|
+
body?: never;
|
|
65054
|
+
path?: never;
|
|
65055
|
+
query?: never;
|
|
65056
|
+
url: '/billing/v1/prices';
|
|
65057
|
+
};
|
|
65058
|
+
export type ListPublicPricesErrors = {
|
|
65059
|
+
/**
|
|
65060
|
+
* The price book could not be read (PRICE_LIST_UNAVAILABLE). Retry after a minute; do not show a price you cannot confirm.
|
|
65061
|
+
*/
|
|
65062
|
+
502: unknown;
|
|
65063
|
+
/**
|
|
65064
|
+
* The price book has not been published yet (UNAVAILABLE). Retry after a minute; there is no price to show.
|
|
65065
|
+
*/
|
|
65066
|
+
503: unknown;
|
|
65067
|
+
};
|
|
65068
|
+
export type ListPublicPricesResponses = {
|
|
65069
|
+
/**
|
|
65070
|
+
* The catalog in force. price_list.items is grouped by nothing — order by product and name to render a table; a null amount means the currency is not priced, not that it is free.
|
|
65071
|
+
*/
|
|
65072
|
+
200: BillingPriceList;
|
|
65073
|
+
};
|
|
65074
|
+
export type ListPublicPricesResponse = ListPublicPricesResponses[keyof ListPublicPricesResponses];
|
|
63441
65075
|
export type BrowserListSessionsData = {
|
|
63442
65076
|
body?: never;
|
|
63443
65077
|
path?: never;
|
|
@@ -64090,7 +65724,7 @@ export type BrowserRunPageActionData = {
|
|
|
64090
65724
|
*/
|
|
64091
65725
|
name: string;
|
|
64092
65726
|
/**
|
|
64093
|
-
* cookie 值,最多 4096
|
|
65727
|
+
* cookie 值,最多 4096 个字符,可为空字符串但字段必须出现(省略或传 null 会被拒绝,错误会说明是哪个字段、违反了什么规则);它是凭据,不会出现在动作结果、事件或日志里。
|
|
64094
65728
|
*/
|
|
64095
65729
|
value: string;
|
|
64096
65730
|
/**
|
|
@@ -65419,6 +67053,10 @@ export type FileListFilesData = {
|
|
|
65419
67053
|
* 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.
|
|
65420
67054
|
*/
|
|
65421
67055
|
scope_id?: string;
|
|
67056
|
+
/**
|
|
67057
|
+
* 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.
|
|
67058
|
+
*/
|
|
67059
|
+
ids?: Array<string>;
|
|
65422
67060
|
/**
|
|
65423
67061
|
* File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.
|
|
65424
67062
|
*/
|
|
@@ -70835,9 +72473,9 @@ export type CreateOrganizationFeedbackData = {
|
|
|
70835
72473
|
};
|
|
70836
72474
|
};
|
|
70837
72475
|
/**
|
|
70838
|
-
* Use console for Console reports or api for API callers (default)
|
|
72476
|
+
* 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.
|
|
70839
72477
|
*/
|
|
70840
|
-
source?: 'console' | 'api';
|
|
72478
|
+
source?: 'console' | 'api' | 'codemode';
|
|
70841
72479
|
/**
|
|
70842
72480
|
* Up to five attachments; decoded bytes must not exceed 10 MiB per attachment or 20 MiB in total.
|
|
70843
72481
|
*/
|
|
@@ -73797,6 +75435,433 @@ export type ReviseOrganizationKeyResultResponses = {
|
|
|
73797
75435
|
200: OrganizationKeyResult;
|
|
73798
75436
|
};
|
|
73799
75437
|
export type ReviseOrganizationKeyResultResponse = ReviseOrganizationKeyResultResponses[keyof ReviseOrganizationKeyResultResponses];
|
|
75438
|
+
export type ListOrganizationSpecsData = {
|
|
75439
|
+
body?: never;
|
|
75440
|
+
path?: never;
|
|
75441
|
+
query?: {
|
|
75442
|
+
/**
|
|
75443
|
+
* Maximum items per page, from 1 to 100; defaults to 20.
|
|
75444
|
+
*/
|
|
75445
|
+
limit?: number;
|
|
75446
|
+
/**
|
|
75447
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
75448
|
+
*/
|
|
75449
|
+
page?: string;
|
|
75450
|
+
/**
|
|
75451
|
+
* Only specs of this subject kind; omit to list every kind together.
|
|
75452
|
+
*/
|
|
75453
|
+
kind?: OrganizationSpecKind;
|
|
75454
|
+
};
|
|
75455
|
+
url: '/organization/v1/specs';
|
|
75456
|
+
};
|
|
75457
|
+
export type ListOrganizationSpecsErrors = {
|
|
75458
|
+
/**
|
|
75459
|
+
* 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.
|
|
75460
|
+
*/
|
|
75461
|
+
400: OrganizationProblem;
|
|
75462
|
+
/**
|
|
75463
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75464
|
+
*/
|
|
75465
|
+
401: unknown;
|
|
75466
|
+
/**
|
|
75467
|
+
* 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.
|
|
75468
|
+
*/
|
|
75469
|
+
403: OrganizationProblem;
|
|
75470
|
+
};
|
|
75471
|
+
export type ListOrganizationSpecsError = ListOrganizationSpecsErrors[keyof ListOrganizationSpecsErrors];
|
|
75472
|
+
export type ListOrganizationSpecsResponses = {
|
|
75473
|
+
/**
|
|
75474
|
+
* One page of specs.
|
|
75475
|
+
*/
|
|
75476
|
+
200: OrganizationSpecList;
|
|
75477
|
+
};
|
|
75478
|
+
export type ListOrganizationSpecsResponse = ListOrganizationSpecsResponses[keyof ListOrganizationSpecsResponses];
|
|
75479
|
+
export type GetOrganizationSpecData = {
|
|
75480
|
+
body?: never;
|
|
75481
|
+
path: {
|
|
75482
|
+
/**
|
|
75483
|
+
* Kind of the subject whose spec to read.
|
|
75484
|
+
*/
|
|
75485
|
+
kind: OrganizationSpecKind;
|
|
75486
|
+
/**
|
|
75487
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75488
|
+
*/
|
|
75489
|
+
id: string;
|
|
75490
|
+
};
|
|
75491
|
+
query?: {
|
|
75492
|
+
/**
|
|
75493
|
+
* Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written.
|
|
75494
|
+
*/
|
|
75495
|
+
revision?: number;
|
|
75496
|
+
};
|
|
75497
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
75498
|
+
};
|
|
75499
|
+
export type GetOrganizationSpecErrors = {
|
|
75500
|
+
/**
|
|
75501
|
+
* 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.
|
|
75502
|
+
*/
|
|
75503
|
+
400: OrganizationProblem;
|
|
75504
|
+
/**
|
|
75505
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75506
|
+
*/
|
|
75507
|
+
401: unknown;
|
|
75508
|
+
/**
|
|
75509
|
+
* PERMISSION_DENIED; 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.
|
|
75510
|
+
*/
|
|
75511
|
+
403: OrganizationProblem;
|
|
75512
|
+
/**
|
|
75513
|
+
* 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.
|
|
75514
|
+
*/
|
|
75515
|
+
404: OrganizationProblem;
|
|
75516
|
+
};
|
|
75517
|
+
export type GetOrganizationSpecError = GetOrganizationSpecErrors[keyof GetOrganizationSpecErrors];
|
|
75518
|
+
export type GetOrganizationSpecResponses = {
|
|
75519
|
+
/**
|
|
75520
|
+
* The spec of the subject at the live or named revision.
|
|
75521
|
+
*/
|
|
75522
|
+
200: OrganizationSpec;
|
|
75523
|
+
};
|
|
75524
|
+
export type GetOrganizationSpecResponse = GetOrganizationSpecResponses[keyof GetOrganizationSpecResponses];
|
|
75525
|
+
export type ReviseOrganizationSpecData = {
|
|
75526
|
+
body: OrganizationReviseSpecRequest;
|
|
75527
|
+
path: {
|
|
75528
|
+
/**
|
|
75529
|
+
* Kind of the subject whose spec to revise.
|
|
75530
|
+
*/
|
|
75531
|
+
kind: OrganizationSpecKind;
|
|
75532
|
+
/**
|
|
75533
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75534
|
+
*/
|
|
75535
|
+
id: string;
|
|
75536
|
+
};
|
|
75537
|
+
query?: never;
|
|
75538
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
75539
|
+
};
|
|
75540
|
+
export type ReviseOrganizationSpecErrors = {
|
|
75541
|
+
/**
|
|
75542
|
+
* 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.
|
|
75543
|
+
*/
|
|
75544
|
+
400: OrganizationProblem;
|
|
75545
|
+
/**
|
|
75546
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75547
|
+
*/
|
|
75548
|
+
401: unknown;
|
|
75549
|
+
/**
|
|
75550
|
+
* 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).
|
|
75551
|
+
*/
|
|
75552
|
+
403: OrganizationProblem;
|
|
75553
|
+
/**
|
|
75554
|
+
* 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.
|
|
75555
|
+
*/
|
|
75556
|
+
404: OrganizationProblem;
|
|
75557
|
+
/**
|
|
75558
|
+
* REVISION_CONFLICT; the spec moved on since you read it. Read it again, merge your change and retry with its current revision.
|
|
75559
|
+
*/
|
|
75560
|
+
409: OrganizationProblem;
|
|
75561
|
+
};
|
|
75562
|
+
export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
|
|
75563
|
+
export type ReviseOrganizationSpecResponses = {
|
|
75564
|
+
/**
|
|
75565
|
+
* The spec after the revision, at the new revision number.
|
|
75566
|
+
*/
|
|
75567
|
+
200: OrganizationSpec;
|
|
75568
|
+
};
|
|
75569
|
+
export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
|
|
75570
|
+
export type ListOrganizationSpecRevisionsData = {
|
|
75571
|
+
body?: never;
|
|
75572
|
+
path: {
|
|
75573
|
+
/**
|
|
75574
|
+
* Kind of the subject whose revision history to list.
|
|
75575
|
+
*/
|
|
75576
|
+
kind: OrganizationSpecKind;
|
|
75577
|
+
/**
|
|
75578
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75579
|
+
*/
|
|
75580
|
+
id: string;
|
|
75581
|
+
};
|
|
75582
|
+
query?: {
|
|
75583
|
+
/**
|
|
75584
|
+
* Maximum revisions per page, from 1 to 100; defaults to 20.
|
|
75585
|
+
*/
|
|
75586
|
+
limit?: number;
|
|
75587
|
+
/**
|
|
75588
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
75589
|
+
*/
|
|
75590
|
+
page?: string;
|
|
75591
|
+
};
|
|
75592
|
+
url: '/organization/v1/specs/{kind}/{id}/revisions';
|
|
75593
|
+
};
|
|
75594
|
+
export type ListOrganizationSpecRevisionsErrors = {
|
|
75595
|
+
/**
|
|
75596
|
+
* INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters.
|
|
75597
|
+
*/
|
|
75598
|
+
400: OrganizationProblem;
|
|
75599
|
+
/**
|
|
75600
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75601
|
+
*/
|
|
75602
|
+
401: unknown;
|
|
75603
|
+
/**
|
|
75604
|
+
* 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.
|
|
75605
|
+
*/
|
|
75606
|
+
403: OrganizationProblem;
|
|
75607
|
+
/**
|
|
75608
|
+
* 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.
|
|
75609
|
+
*/
|
|
75610
|
+
404: OrganizationProblem;
|
|
75611
|
+
};
|
|
75612
|
+
export type ListOrganizationSpecRevisionsError = ListOrganizationSpecRevisionsErrors[keyof ListOrganizationSpecRevisionsErrors];
|
|
75613
|
+
export type ListOrganizationSpecRevisionsResponses = {
|
|
75614
|
+
/**
|
|
75615
|
+
* One page of revisions, newest first.
|
|
75616
|
+
*/
|
|
75617
|
+
200: OrganizationSpecRevisionList;
|
|
75618
|
+
};
|
|
75619
|
+
export type ListOrganizationSpecRevisionsResponse = ListOrganizationSpecRevisionsResponses[keyof ListOrganizationSpecRevisionsResponses];
|
|
75620
|
+
export type DiffOrganizationSpecData = {
|
|
75621
|
+
body?: never;
|
|
75622
|
+
path: {
|
|
75623
|
+
/**
|
|
75624
|
+
* Kind of the subject whose revisions to compare.
|
|
75625
|
+
*/
|
|
75626
|
+
kind: OrganizationSpecKind;
|
|
75627
|
+
/**
|
|
75628
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75629
|
+
*/
|
|
75630
|
+
id: string;
|
|
75631
|
+
};
|
|
75632
|
+
query: {
|
|
75633
|
+
/**
|
|
75634
|
+
* The earlier revision to compare from; 0 is the empty spec before the first write.
|
|
75635
|
+
*/
|
|
75636
|
+
from: number;
|
|
75637
|
+
/**
|
|
75638
|
+
* The later revision to compare to.
|
|
75639
|
+
*/
|
|
75640
|
+
to: number;
|
|
75641
|
+
};
|
|
75642
|
+
url: '/organization/v1/specs/{kind}/{id}/diff';
|
|
75643
|
+
};
|
|
75644
|
+
export type DiffOrganizationSpecErrors = {
|
|
75645
|
+
/**
|
|
75646
|
+
* INVALID_PARAMS; from or to is missing or not an integer. Send both as whole numbers.
|
|
75647
|
+
*/
|
|
75648
|
+
400: OrganizationProblem;
|
|
75649
|
+
/**
|
|
75650
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75651
|
+
*/
|
|
75652
|
+
401: unknown;
|
|
75653
|
+
/**
|
|
75654
|
+
* 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.
|
|
75655
|
+
*/
|
|
75656
|
+
403: OrganizationProblem;
|
|
75657
|
+
/**
|
|
75658
|
+
* 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.
|
|
75659
|
+
*/
|
|
75660
|
+
404: OrganizationProblem;
|
|
75661
|
+
};
|
|
75662
|
+
export type DiffOrganizationSpecError = DiffOrganizationSpecErrors[keyof DiffOrganizationSpecErrors];
|
|
75663
|
+
export type DiffOrganizationSpecResponses = {
|
|
75664
|
+
/**
|
|
75665
|
+
* The changes between the two revisions, in path order.
|
|
75666
|
+
*/
|
|
75667
|
+
200: OrganizationSpecDiff;
|
|
75668
|
+
};
|
|
75669
|
+
export type DiffOrganizationSpecResponse = DiffOrganizationSpecResponses[keyof DiffOrganizationSpecResponses];
|
|
75670
|
+
export type GetOrganizationEffectiveSpecData = {
|
|
75671
|
+
body?: never;
|
|
75672
|
+
path?: never;
|
|
75673
|
+
query?: {
|
|
75674
|
+
/**
|
|
75675
|
+
* Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both.
|
|
75676
|
+
*/
|
|
75677
|
+
actor?: string;
|
|
75678
|
+
/**
|
|
75679
|
+
* One seat to merge, held or vacant (pos_...); give this or actor, not both.
|
|
75680
|
+
*/
|
|
75681
|
+
position_id?: string;
|
|
75682
|
+
/**
|
|
75683
|
+
* Which holder kind to merge for; omit to derive it from the seat's holder.
|
|
75684
|
+
*/
|
|
75685
|
+
holder_kind?: 'agent' | 'human';
|
|
75686
|
+
};
|
|
75687
|
+
url: '/organization/v1/effective_spec';
|
|
75688
|
+
};
|
|
75689
|
+
export type GetOrganizationEffectiveSpecErrors = {
|
|
75690
|
+
/**
|
|
75691
|
+
* 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.
|
|
75692
|
+
*/
|
|
75693
|
+
400: OrganizationProblem;
|
|
75694
|
+
/**
|
|
75695
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75696
|
+
*/
|
|
75697
|
+
401: unknown;
|
|
75698
|
+
/**
|
|
75699
|
+
* 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.
|
|
75700
|
+
*/
|
|
75701
|
+
403: OrganizationProblem;
|
|
75702
|
+
/**
|
|
75703
|
+
* POSITION_NOT_FOUND; position_id is not a position of your organization. List positions and copy an id.
|
|
75704
|
+
*/
|
|
75705
|
+
404: OrganizationProblem;
|
|
75706
|
+
};
|
|
75707
|
+
export type GetOrganizationEffectiveSpecError = GetOrganizationEffectiveSpecErrors[keyof GetOrganizationEffectiveSpecErrors];
|
|
75708
|
+
export type GetOrganizationEffectiveSpecResponses = {
|
|
75709
|
+
/**
|
|
75710
|
+
* The merged effective spec of the seat or actor.
|
|
75711
|
+
*/
|
|
75712
|
+
200: OrganizationEffectiveSpec;
|
|
75713
|
+
};
|
|
75714
|
+
export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
|
|
75715
|
+
export type PlanOrganizationReconcileData = {
|
|
75716
|
+
body?: never;
|
|
75717
|
+
path?: never;
|
|
75718
|
+
query: {
|
|
75719
|
+
/**
|
|
75720
|
+
* The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged.
|
|
75721
|
+
*/
|
|
75722
|
+
actor: string;
|
|
75723
|
+
};
|
|
75724
|
+
url: '/organization/v1/reconcile/plan';
|
|
75725
|
+
};
|
|
75726
|
+
export type PlanOrganizationReconcileErrors = {
|
|
75727
|
+
/**
|
|
75728
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
75729
|
+
*/
|
|
75730
|
+
400: OrganizationProblem;
|
|
75731
|
+
/**
|
|
75732
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75733
|
+
*/
|
|
75734
|
+
401: unknown;
|
|
75735
|
+
/**
|
|
75736
|
+
* 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.
|
|
75737
|
+
*/
|
|
75738
|
+
403: OrganizationProblem;
|
|
75739
|
+
};
|
|
75740
|
+
export type PlanOrganizationReconcileError = PlanOrganizationReconcileErrors[keyof PlanOrganizationReconcileErrors];
|
|
75741
|
+
export type PlanOrganizationReconcileResponses = {
|
|
75742
|
+
/**
|
|
75743
|
+
* The actions the reconciler would take for this holder, and the merged-result violations.
|
|
75744
|
+
*/
|
|
75745
|
+
200: OrganizationReconcilePlan;
|
|
75746
|
+
};
|
|
75747
|
+
export type PlanOrganizationReconcileResponse = PlanOrganizationReconcileResponses[keyof PlanOrganizationReconcileResponses];
|
|
75748
|
+
export type GetOrganizationReconcileStatusData = {
|
|
75749
|
+
body?: never;
|
|
75750
|
+
path?: never;
|
|
75751
|
+
query: {
|
|
75752
|
+
/**
|
|
75753
|
+
* The holder whose reconcile status to read (agent:agent_... or human:usr_...).
|
|
75754
|
+
*/
|
|
75755
|
+
actor: string;
|
|
75756
|
+
};
|
|
75757
|
+
url: '/organization/v1/reconcile/status';
|
|
75758
|
+
};
|
|
75759
|
+
export type GetOrganizationReconcileStatusErrors = {
|
|
75760
|
+
/**
|
|
75761
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
75762
|
+
*/
|
|
75763
|
+
400: OrganizationProblem;
|
|
75764
|
+
/**
|
|
75765
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75766
|
+
*/
|
|
75767
|
+
401: unknown;
|
|
75768
|
+
/**
|
|
75769
|
+
* 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.
|
|
75770
|
+
*/
|
|
75771
|
+
403: OrganizationProblem;
|
|
75772
|
+
};
|
|
75773
|
+
export type GetOrganizationReconcileStatusError = GetOrganizationReconcileStatusErrors[keyof GetOrganizationReconcileStatusErrors];
|
|
75774
|
+
export type GetOrganizationReconcileStatusResponses = {
|
|
75775
|
+
/**
|
|
75776
|
+
* The last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
|
|
75777
|
+
*/
|
|
75778
|
+
200: OrganizationReconcileStatus;
|
|
75779
|
+
};
|
|
75780
|
+
export type GetOrganizationReconcileStatusResponse = GetOrganizationReconcileStatusResponses[keyof GetOrganizationReconcileStatusResponses];
|
|
75781
|
+
export type RunOrganizationReconcileData = {
|
|
75782
|
+
body: OrganizationReconcileActorRequest;
|
|
75783
|
+
path?: never;
|
|
75784
|
+
query?: never;
|
|
75785
|
+
url: '/organization/v1/reconcile/run';
|
|
75786
|
+
};
|
|
75787
|
+
export type RunOrganizationReconcileErrors = {
|
|
75788
|
+
/**
|
|
75789
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75790
|
+
*/
|
|
75791
|
+
400: OrganizationProblem;
|
|
75792
|
+
/**
|
|
75793
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75794
|
+
*/
|
|
75795
|
+
401: unknown;
|
|
75796
|
+
/**
|
|
75797
|
+
* 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).
|
|
75798
|
+
*/
|
|
75799
|
+
403: OrganizationProblem;
|
|
75800
|
+
};
|
|
75801
|
+
export type RunOrganizationReconcileError = RunOrganizationReconcileErrors[keyof RunOrganizationReconcileErrors];
|
|
75802
|
+
export type RunOrganizationReconcileResponses = {
|
|
75803
|
+
/**
|
|
75804
|
+
* The status after this run.
|
|
75805
|
+
*/
|
|
75806
|
+
200: OrganizationReconcileStatus;
|
|
75807
|
+
};
|
|
75808
|
+
export type RunOrganizationReconcileResponse = RunOrganizationReconcileResponses[keyof RunOrganizationReconcileResponses];
|
|
75809
|
+
export type PauseOrganizationReconcileData = {
|
|
75810
|
+
body: OrganizationReconcileActorRequest;
|
|
75811
|
+
path?: never;
|
|
75812
|
+
query?: never;
|
|
75813
|
+
url: '/organization/v1/reconcile/pause';
|
|
75814
|
+
};
|
|
75815
|
+
export type PauseOrganizationReconcileErrors = {
|
|
75816
|
+
/**
|
|
75817
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75818
|
+
*/
|
|
75819
|
+
400: OrganizationProblem;
|
|
75820
|
+
/**
|
|
75821
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75822
|
+
*/
|
|
75823
|
+
401: unknown;
|
|
75824
|
+
/**
|
|
75825
|
+
* 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).
|
|
75826
|
+
*/
|
|
75827
|
+
403: OrganizationProblem;
|
|
75828
|
+
};
|
|
75829
|
+
export type PauseOrganizationReconcileError = PauseOrganizationReconcileErrors[keyof PauseOrganizationReconcileErrors];
|
|
75830
|
+
export type PauseOrganizationReconcileResponses = {
|
|
75831
|
+
/**
|
|
75832
|
+
* The status after pausing; paused is true.
|
|
75833
|
+
*/
|
|
75834
|
+
200: OrganizationReconcileStatus;
|
|
75835
|
+
};
|
|
75836
|
+
export type PauseOrganizationReconcileResponse = PauseOrganizationReconcileResponses[keyof PauseOrganizationReconcileResponses];
|
|
75837
|
+
export type ResumeOrganizationReconcileData = {
|
|
75838
|
+
body: OrganizationReconcileActorRequest;
|
|
75839
|
+
path?: never;
|
|
75840
|
+
query?: never;
|
|
75841
|
+
url: '/organization/v1/reconcile/resume';
|
|
75842
|
+
};
|
|
75843
|
+
export type ResumeOrganizationReconcileErrors = {
|
|
75844
|
+
/**
|
|
75845
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75846
|
+
*/
|
|
75847
|
+
400: OrganizationProblem;
|
|
75848
|
+
/**
|
|
75849
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75850
|
+
*/
|
|
75851
|
+
401: unknown;
|
|
75852
|
+
/**
|
|
75853
|
+
* 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).
|
|
75854
|
+
*/
|
|
75855
|
+
403: OrganizationProblem;
|
|
75856
|
+
};
|
|
75857
|
+
export type ResumeOrganizationReconcileError = ResumeOrganizationReconcileErrors[keyof ResumeOrganizationReconcileErrors];
|
|
75858
|
+
export type ResumeOrganizationReconcileResponses = {
|
|
75859
|
+
/**
|
|
75860
|
+
* The status after resuming; paused is false.
|
|
75861
|
+
*/
|
|
75862
|
+
200: OrganizationReconcileStatus;
|
|
75863
|
+
};
|
|
75864
|
+
export type ResumeOrganizationReconcileResponse = ResumeOrganizationReconcileResponses[keyof ResumeOrganizationReconcileResponses];
|
|
73800
75865
|
export type UpgradeSandboxData = {
|
|
73801
75866
|
body: {
|
|
73802
75867
|
/**
|
|
@@ -74944,6 +77009,440 @@ export type RunSandboxCommandResponses = {
|
|
|
74944
77009
|
};
|
|
74945
77010
|
};
|
|
74946
77011
|
export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
|
|
77012
|
+
export type CreateByodPairingData = {
|
|
77013
|
+
body?: never;
|
|
77014
|
+
path?: never;
|
|
77015
|
+
query?: never;
|
|
77016
|
+
url: '/sandbox/v1/byod/pairings';
|
|
77017
|
+
};
|
|
77018
|
+
export type CreateByodPairingErrors = {
|
|
77019
|
+
/**
|
|
77020
|
+
* 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.
|
|
77021
|
+
*/
|
|
77022
|
+
400: unknown;
|
|
77023
|
+
/**
|
|
77024
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77025
|
+
*/
|
|
77026
|
+
401: unknown;
|
|
77027
|
+
/**
|
|
77028
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77029
|
+
*/
|
|
77030
|
+
503: unknown;
|
|
77031
|
+
};
|
|
77032
|
+
export type CreateByodPairingResponses = {
|
|
77033
|
+
/**
|
|
77034
|
+
* A pairing the caller started: the short code, its deadline and the string the phone's app scans.
|
|
77035
|
+
*/
|
|
77036
|
+
201: {
|
|
77037
|
+
/**
|
|
77038
|
+
* 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.
|
|
77039
|
+
*/
|
|
77040
|
+
code: string;
|
|
77041
|
+
/**
|
|
77042
|
+
* 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.
|
|
77043
|
+
*/
|
|
77044
|
+
expires_at: string;
|
|
77045
|
+
/**
|
|
77046
|
+
* 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.
|
|
77047
|
+
*/
|
|
77048
|
+
qr: string;
|
|
77049
|
+
};
|
|
77050
|
+
};
|
|
77051
|
+
export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
|
|
77052
|
+
export type ListByodDevicesData = {
|
|
77053
|
+
body?: never;
|
|
77054
|
+
path?: never;
|
|
77055
|
+
query?: never;
|
|
77056
|
+
url: '/sandbox/v1/byod/devices';
|
|
77057
|
+
};
|
|
77058
|
+
export type ListByodDevicesErrors = {
|
|
77059
|
+
/**
|
|
77060
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77061
|
+
*/
|
|
77062
|
+
401: unknown;
|
|
77063
|
+
/**
|
|
77064
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77065
|
+
*/
|
|
77066
|
+
503: unknown;
|
|
77067
|
+
};
|
|
77068
|
+
export type ListByodDevicesResponses = {
|
|
77069
|
+
/**
|
|
77070
|
+
* The organization's BYOD devices.
|
|
77071
|
+
*/
|
|
77072
|
+
200: {
|
|
77073
|
+
/**
|
|
77074
|
+
* The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
|
|
77075
|
+
*/
|
|
77076
|
+
data: Array<{
|
|
77077
|
+
/**
|
|
77078
|
+
* Resource type; always "byod_device".
|
|
77079
|
+
*/
|
|
77080
|
+
object: 'byod_device';
|
|
77081
|
+
/**
|
|
77082
|
+
* 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.
|
|
77083
|
+
*/
|
|
77084
|
+
id: string;
|
|
77085
|
+
/**
|
|
77086
|
+
* 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.
|
|
77087
|
+
*/
|
|
77088
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77089
|
+
/**
|
|
77090
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
77091
|
+
*/
|
|
77092
|
+
name: string;
|
|
77093
|
+
/**
|
|
77094
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
77095
|
+
*/
|
|
77096
|
+
model: string;
|
|
77097
|
+
/**
|
|
77098
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
77099
|
+
*/
|
|
77100
|
+
os_version: string;
|
|
77101
|
+
/**
|
|
77102
|
+
* 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.
|
|
77103
|
+
*/
|
|
77104
|
+
online: boolean;
|
|
77105
|
+
/**
|
|
77106
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
77107
|
+
*/
|
|
77108
|
+
last_seen_at: string | null;
|
|
77109
|
+
/**
|
|
77110
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
77111
|
+
*/
|
|
77112
|
+
created_at: string;
|
|
77113
|
+
/**
|
|
77114
|
+
* 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).
|
|
77115
|
+
*/
|
|
77116
|
+
capabilities: Array<'display' | 'agent'>;
|
|
77117
|
+
/**
|
|
77118
|
+
* 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.
|
|
77119
|
+
*/
|
|
77120
|
+
agent_dirs: Array<string>;
|
|
77121
|
+
/**
|
|
77122
|
+
* 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.
|
|
77123
|
+
*/
|
|
77124
|
+
allow_bypass: boolean;
|
|
77125
|
+
}>;
|
|
77126
|
+
};
|
|
77127
|
+
};
|
|
77128
|
+
export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
|
|
77129
|
+
export type GetByodDeviceData = {
|
|
77130
|
+
body?: never;
|
|
77131
|
+
path: {
|
|
77132
|
+
/**
|
|
77133
|
+
* 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.
|
|
77134
|
+
*/
|
|
77135
|
+
deviceID: string;
|
|
77136
|
+
};
|
|
77137
|
+
query?: never;
|
|
77138
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
77139
|
+
};
|
|
77140
|
+
export type GetByodDeviceErrors = {
|
|
77141
|
+
/**
|
|
77142
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77143
|
+
*/
|
|
77144
|
+
401: unknown;
|
|
77145
|
+
/**
|
|
77146
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
77147
|
+
*/
|
|
77148
|
+
404: unknown;
|
|
77149
|
+
/**
|
|
77150
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77151
|
+
*/
|
|
77152
|
+
503: unknown;
|
|
77153
|
+
};
|
|
77154
|
+
export type GetByodDeviceResponses = {
|
|
77155
|
+
/**
|
|
77156
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
77157
|
+
*/
|
|
77158
|
+
200: {
|
|
77159
|
+
/**
|
|
77160
|
+
* Resource type; always "byod_device".
|
|
77161
|
+
*/
|
|
77162
|
+
object: 'byod_device';
|
|
77163
|
+
/**
|
|
77164
|
+
* 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.
|
|
77165
|
+
*/
|
|
77166
|
+
id: string;
|
|
77167
|
+
/**
|
|
77168
|
+
* 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.
|
|
77169
|
+
*/
|
|
77170
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77171
|
+
/**
|
|
77172
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
77173
|
+
*/
|
|
77174
|
+
name: string;
|
|
77175
|
+
/**
|
|
77176
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
77177
|
+
*/
|
|
77178
|
+
model: string;
|
|
77179
|
+
/**
|
|
77180
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
77181
|
+
*/
|
|
77182
|
+
os_version: string;
|
|
77183
|
+
/**
|
|
77184
|
+
* 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.
|
|
77185
|
+
*/
|
|
77186
|
+
online: boolean;
|
|
77187
|
+
/**
|
|
77188
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
77189
|
+
*/
|
|
77190
|
+
last_seen_at: string | null;
|
|
77191
|
+
/**
|
|
77192
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
77193
|
+
*/
|
|
77194
|
+
created_at: string;
|
|
77195
|
+
/**
|
|
77196
|
+
* 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).
|
|
77197
|
+
*/
|
|
77198
|
+
capabilities: Array<'display' | 'agent'>;
|
|
77199
|
+
/**
|
|
77200
|
+
* 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.
|
|
77201
|
+
*/
|
|
77202
|
+
agent_dirs: Array<string>;
|
|
77203
|
+
/**
|
|
77204
|
+
* 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.
|
|
77205
|
+
*/
|
|
77206
|
+
allow_bypass: boolean;
|
|
77207
|
+
};
|
|
77208
|
+
};
|
|
77209
|
+
export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
|
|
77210
|
+
export type UpdateByodDeviceData = {
|
|
77211
|
+
/**
|
|
77212
|
+
* The one field a rename may send.
|
|
77213
|
+
*/
|
|
77214
|
+
body: {
|
|
77215
|
+
/**
|
|
77216
|
+
* New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
|
|
77217
|
+
*/
|
|
77218
|
+
name: string;
|
|
77219
|
+
};
|
|
77220
|
+
path: {
|
|
77221
|
+
/**
|
|
77222
|
+
* 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.
|
|
77223
|
+
*/
|
|
77224
|
+
deviceID: string;
|
|
77225
|
+
};
|
|
77226
|
+
query?: never;
|
|
77227
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
77228
|
+
};
|
|
77229
|
+
export type UpdateByodDeviceErrors = {
|
|
77230
|
+
/**
|
|
77231
|
+
* 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.
|
|
77232
|
+
*/
|
|
77233
|
+
400: unknown;
|
|
77234
|
+
/**
|
|
77235
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77236
|
+
*/
|
|
77237
|
+
401: unknown;
|
|
77238
|
+
/**
|
|
77239
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
77240
|
+
*/
|
|
77241
|
+
404: unknown;
|
|
77242
|
+
/**
|
|
77243
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77244
|
+
*/
|
|
77245
|
+
503: unknown;
|
|
77246
|
+
};
|
|
77247
|
+
export type UpdateByodDeviceResponses = {
|
|
77248
|
+
/**
|
|
77249
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
77250
|
+
*/
|
|
77251
|
+
200: {
|
|
77252
|
+
/**
|
|
77253
|
+
* Resource type; always "byod_device".
|
|
77254
|
+
*/
|
|
77255
|
+
object: 'byod_device';
|
|
77256
|
+
/**
|
|
77257
|
+
* 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.
|
|
77258
|
+
*/
|
|
77259
|
+
id: string;
|
|
77260
|
+
/**
|
|
77261
|
+
* 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.
|
|
77262
|
+
*/
|
|
77263
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77264
|
+
/**
|
|
77265
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
77266
|
+
*/
|
|
77267
|
+
name: string;
|
|
77268
|
+
/**
|
|
77269
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
77270
|
+
*/
|
|
77271
|
+
model: string;
|
|
77272
|
+
/**
|
|
77273
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
77274
|
+
*/
|
|
77275
|
+
os_version: string;
|
|
77276
|
+
/**
|
|
77277
|
+
* 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.
|
|
77278
|
+
*/
|
|
77279
|
+
online: boolean;
|
|
77280
|
+
/**
|
|
77281
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
77282
|
+
*/
|
|
77283
|
+
last_seen_at: string | null;
|
|
77284
|
+
/**
|
|
77285
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
77286
|
+
*/
|
|
77287
|
+
created_at: string;
|
|
77288
|
+
/**
|
|
77289
|
+
* 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).
|
|
77290
|
+
*/
|
|
77291
|
+
capabilities: Array<'display' | 'agent'>;
|
|
77292
|
+
/**
|
|
77293
|
+
* 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.
|
|
77294
|
+
*/
|
|
77295
|
+
agent_dirs: Array<string>;
|
|
77296
|
+
/**
|
|
77297
|
+
* 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.
|
|
77298
|
+
*/
|
|
77299
|
+
allow_bypass: boolean;
|
|
77300
|
+
};
|
|
77301
|
+
};
|
|
77302
|
+
export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
|
|
77303
|
+
export type DisconnectByodDeviceData = {
|
|
77304
|
+
body?: never;
|
|
77305
|
+
path: {
|
|
77306
|
+
/**
|
|
77307
|
+
* 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.
|
|
77308
|
+
*/
|
|
77309
|
+
deviceID: string;
|
|
77310
|
+
};
|
|
77311
|
+
query?: never;
|
|
77312
|
+
url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
|
|
77313
|
+
};
|
|
77314
|
+
export type DisconnectByodDeviceErrors = {
|
|
77315
|
+
/**
|
|
77316
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
77317
|
+
*/
|
|
77318
|
+
401: unknown;
|
|
77319
|
+
/**
|
|
77320
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
77321
|
+
*/
|
|
77322
|
+
404: unknown;
|
|
77323
|
+
/**
|
|
77324
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
77325
|
+
*/
|
|
77326
|
+
503: unknown;
|
|
77327
|
+
};
|
|
77328
|
+
export type DisconnectByodDeviceResponses = {
|
|
77329
|
+
/**
|
|
77330
|
+
* The disconnected device.
|
|
77331
|
+
*/
|
|
77332
|
+
200: {
|
|
77333
|
+
/**
|
|
77334
|
+
* Id of the device that was disconnected.
|
|
77335
|
+
*/
|
|
77336
|
+
id: string;
|
|
77337
|
+
/**
|
|
77338
|
+
* Resource type; always "byod_device".
|
|
77339
|
+
*/
|
|
77340
|
+
object: 'byod_device';
|
|
77341
|
+
/**
|
|
77342
|
+
* Always true: the credential is revoked and the connection closed.
|
|
77343
|
+
*/
|
|
77344
|
+
disconnected: true;
|
|
77345
|
+
};
|
|
77346
|
+
};
|
|
77347
|
+
export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
|
|
77348
|
+
export type GetByodPairingData = {
|
|
77349
|
+
body?: never;
|
|
77350
|
+
path: {
|
|
77351
|
+
/**
|
|
77352
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
77353
|
+
*/
|
|
77354
|
+
code: string;
|
|
77355
|
+
};
|
|
77356
|
+
query?: never;
|
|
77357
|
+
url: '/sandbox/v1/byod/pairings/{code}';
|
|
77358
|
+
};
|
|
77359
|
+
export type GetByodPairingErrors = {
|
|
77360
|
+
/**
|
|
77361
|
+
* 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.
|
|
77362
|
+
*/
|
|
77363
|
+
404: unknown;
|
|
77364
|
+
};
|
|
77365
|
+
export type GetByodPairingResponses = {
|
|
77366
|
+
/**
|
|
77367
|
+
* What the Allow screen reads.
|
|
77368
|
+
*/
|
|
77369
|
+
200: {
|
|
77370
|
+
/**
|
|
77371
|
+
* Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
|
|
77372
|
+
*/
|
|
77373
|
+
organization_name: string;
|
|
77374
|
+
/**
|
|
77375
|
+
* When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
|
|
77376
|
+
*/
|
|
77377
|
+
expires_at: string;
|
|
77378
|
+
};
|
|
77379
|
+
};
|
|
77380
|
+
export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
|
|
77381
|
+
export type ClaimByodPairingData = {
|
|
77382
|
+
/**
|
|
77383
|
+
* What the phone's app knows about itself when it claims the pairing.
|
|
77384
|
+
*/
|
|
77385
|
+
body: {
|
|
77386
|
+
/**
|
|
77387
|
+
* 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.
|
|
77388
|
+
*/
|
|
77389
|
+
platform: 'android' | 'macos' | 'linux';
|
|
77390
|
+
/**
|
|
77391
|
+
* 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.
|
|
77392
|
+
*/
|
|
77393
|
+
name?: string;
|
|
77394
|
+
/**
|
|
77395
|
+
* The device model the app reports, at most 128 characters; it is display only and can be omitted.
|
|
77396
|
+
*/
|
|
77397
|
+
model?: string;
|
|
77398
|
+
/**
|
|
77399
|
+
* The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
|
|
77400
|
+
*/
|
|
77401
|
+
os_version?: string;
|
|
77402
|
+
/**
|
|
77403
|
+
* 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.
|
|
77404
|
+
*/
|
|
77405
|
+
device_key?: string;
|
|
77406
|
+
};
|
|
77407
|
+
path: {
|
|
77408
|
+
/**
|
|
77409
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
77410
|
+
*/
|
|
77411
|
+
code: string;
|
|
77412
|
+
};
|
|
77413
|
+
query?: never;
|
|
77414
|
+
url: '/sandbox/v1/byod/pairings/{code}/claim';
|
|
77415
|
+
};
|
|
77416
|
+
export type ClaimByodPairingErrors = {
|
|
77417
|
+
/**
|
|
77418
|
+
* 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.
|
|
77419
|
+
*/
|
|
77420
|
+
400: unknown;
|
|
77421
|
+
/**
|
|
77422
|
+
* 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.
|
|
77423
|
+
*/
|
|
77424
|
+
404: unknown;
|
|
77425
|
+
};
|
|
77426
|
+
export type ClaimByodPairingResponses = {
|
|
77427
|
+
/**
|
|
77428
|
+
* The device's registration and its one-time credential.
|
|
77429
|
+
*/
|
|
77430
|
+
201: {
|
|
77431
|
+
/**
|
|
77432
|
+
* Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
|
|
77433
|
+
*/
|
|
77434
|
+
device_id: string;
|
|
77435
|
+
/**
|
|
77436
|
+
* 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.
|
|
77437
|
+
*/
|
|
77438
|
+
credential: string;
|
|
77439
|
+
/**
|
|
77440
|
+
* 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.
|
|
77441
|
+
*/
|
|
77442
|
+
socket_url: string;
|
|
77443
|
+
};
|
|
77444
|
+
};
|
|
77445
|
+
export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
|
|
74947
77446
|
export type SessionsDeleteData = {
|
|
74948
77447
|
body?: never;
|
|
74949
77448
|
path: {
|
|
@@ -76763,7 +79262,7 @@ export type AgentsCreateData = {
|
|
|
76763
79262
|
}>;
|
|
76764
79263
|
};
|
|
76765
79264
|
/**
|
|
76766
|
-
* Optional tool preset. minimal enables read, glob
|
|
79265
|
+
* 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.
|
|
76767
79266
|
*/
|
|
76768
79267
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
76769
79268
|
/**
|
|
@@ -78630,7 +81129,7 @@ export type AgentsUpdateData = {
|
|
|
78630
81129
|
}>;
|
|
78631
81130
|
};
|
|
78632
81131
|
/**
|
|
78633
|
-
* Optional tool preset. minimal enables read, glob
|
|
81132
|
+
* 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.
|
|
78634
81133
|
*/
|
|
78635
81134
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
78636
81135
|
/**
|
|
@@ -82340,48 +84839,6 @@ export type SessionsEventsListResponses = {
|
|
|
82340
84839
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82341
84840
|
*/
|
|
82342
84841
|
processed_at: string;
|
|
82343
|
-
} | {
|
|
82344
|
-
/**
|
|
82345
|
-
* Event id, unique within the session.
|
|
82346
|
-
*/
|
|
82347
|
-
id: string;
|
|
82348
|
-
/**
|
|
82349
|
-
* Always `user.tool_confirmation`.
|
|
82350
|
-
*/
|
|
82351
|
-
type: 'user.tool_confirmation';
|
|
82352
|
-
/**
|
|
82353
|
-
* When the event was recorded, RFC 3339.
|
|
82354
|
-
*/
|
|
82355
|
-
processed_at: string;
|
|
82356
|
-
/**
|
|
82357
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82358
|
-
*/
|
|
82359
|
-
tool_use_id: string;
|
|
82360
|
-
/**
|
|
82361
|
-
* Always `allow`.
|
|
82362
|
-
*/
|
|
82363
|
-
result: 'allow';
|
|
82364
|
-
/**
|
|
82365
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82366
|
-
*/
|
|
82367
|
-
answers: {
|
|
82368
|
-
[key: string]: string;
|
|
82369
|
-
};
|
|
82370
|
-
/**
|
|
82371
|
-
* Per-question notes, keyed by the question text.
|
|
82372
|
-
*/
|
|
82373
|
-
annotations?: {
|
|
82374
|
-
[key: string]: {
|
|
82375
|
-
/**
|
|
82376
|
-
* The preview of the option the user chose.
|
|
82377
|
-
*/
|
|
82378
|
-
preview?: string;
|
|
82379
|
-
/**
|
|
82380
|
-
* Free text the user added to their choice.
|
|
82381
|
-
*/
|
|
82382
|
-
notes?: string;
|
|
82383
|
-
};
|
|
82384
|
-
};
|
|
82385
84842
|
}>;
|
|
82386
84843
|
/**
|
|
82387
84844
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -82431,40 +84888,6 @@ export type SessionsEventsSendData = {
|
|
|
82431
84888
|
* Id of the event this event refers to.
|
|
82432
84889
|
*/
|
|
82433
84890
|
event_id: string;
|
|
82434
|
-
} | {
|
|
82435
|
-
/**
|
|
82436
|
-
* Always `user.tool_confirmation`.
|
|
82437
|
-
*/
|
|
82438
|
-
type: 'user.tool_confirmation';
|
|
82439
|
-
/**
|
|
82440
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
82441
|
-
*/
|
|
82442
|
-
tool_use_id: string;
|
|
82443
|
-
/**
|
|
82444
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
82445
|
-
*/
|
|
82446
|
-
result: 'allow';
|
|
82447
|
-
/**
|
|
82448
|
-
* 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.
|
|
82449
|
-
*/
|
|
82450
|
-
answers: {
|
|
82451
|
-
[key: string]: string;
|
|
82452
|
-
};
|
|
82453
|
-
/**
|
|
82454
|
-
* Optional per-question notes, keyed by the question text.
|
|
82455
|
-
*/
|
|
82456
|
-
annotations?: {
|
|
82457
|
-
[key: string]: {
|
|
82458
|
-
/**
|
|
82459
|
-
* The preview of the option the user chose.
|
|
82460
|
-
*/
|
|
82461
|
-
preview?: string;
|
|
82462
|
-
/**
|
|
82463
|
-
* Free text the user added to their choice.
|
|
82464
|
-
*/
|
|
82465
|
-
notes?: string;
|
|
82466
|
-
};
|
|
82467
|
-
};
|
|
82468
84891
|
}>;
|
|
82469
84892
|
};
|
|
82470
84893
|
path: {
|
|
@@ -82559,48 +84982,6 @@ export type SessionsEventsSendResponses = {
|
|
|
82559
84982
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82560
84983
|
*/
|
|
82561
84984
|
processed_at: string;
|
|
82562
|
-
} | {
|
|
82563
|
-
/**
|
|
82564
|
-
* Event id, unique within the session.
|
|
82565
|
-
*/
|
|
82566
|
-
id: string;
|
|
82567
|
-
/**
|
|
82568
|
-
* Always `user.tool_confirmation`.
|
|
82569
|
-
*/
|
|
82570
|
-
type: 'user.tool_confirmation';
|
|
82571
|
-
/**
|
|
82572
|
-
* When the event was recorded, RFC 3339.
|
|
82573
|
-
*/
|
|
82574
|
-
processed_at: string;
|
|
82575
|
-
/**
|
|
82576
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82577
|
-
*/
|
|
82578
|
-
tool_use_id: string;
|
|
82579
|
-
/**
|
|
82580
|
-
* Always `allow`.
|
|
82581
|
-
*/
|
|
82582
|
-
result: 'allow';
|
|
82583
|
-
/**
|
|
82584
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82585
|
-
*/
|
|
82586
|
-
answers: {
|
|
82587
|
-
[key: string]: string;
|
|
82588
|
-
};
|
|
82589
|
-
/**
|
|
82590
|
-
* Per-question notes, keyed by the question text.
|
|
82591
|
-
*/
|
|
82592
|
-
annotations?: {
|
|
82593
|
-
[key: string]: {
|
|
82594
|
-
/**
|
|
82595
|
-
* The preview of the option the user chose.
|
|
82596
|
-
*/
|
|
82597
|
-
preview?: string;
|
|
82598
|
-
/**
|
|
82599
|
-
* Free text the user added to their choice.
|
|
82600
|
-
*/
|
|
82601
|
-
notes?: string;
|
|
82602
|
-
};
|
|
82603
|
-
};
|
|
82604
84985
|
}>;
|
|
82605
84986
|
};
|
|
82606
84987
|
};
|
|
@@ -97949,6 +100330,10 @@ export type DevopsTestPlanGetData = {
|
|
|
97949
100330
|
* 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.
|
|
97950
100331
|
*/
|
|
97951
100332
|
base?: string;
|
|
100333
|
+
/**
|
|
100334
|
+
* 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.
|
|
100335
|
+
*/
|
|
100336
|
+
view?: 'full' | 'summary';
|
|
97952
100337
|
};
|
|
97953
100338
|
url: '/devops/v1/projects/{project}/test-plan';
|
|
97954
100339
|
};
|
|
@@ -98023,6 +100408,97 @@ export type DevopsProjectsListResponses = {
|
|
|
98023
100408
|
200: DevopsProjectPage;
|
|
98024
100409
|
};
|
|
98025
100410
|
export type DevopsProjectsListResponse = DevopsProjectsListResponses[keyof DevopsProjectsListResponses];
|
|
100411
|
+
export type DevopsProjectsCreateData = {
|
|
100412
|
+
/**
|
|
100413
|
+
* The project's name and where its code lives: a git package of our own Git, or a GitHub repository.
|
|
100414
|
+
*/
|
|
100415
|
+
body: DevopsProjectCreate;
|
|
100416
|
+
path?: never;
|
|
100417
|
+
query?: never;
|
|
100418
|
+
url: '/devops/v1/projects';
|
|
100419
|
+
};
|
|
100420
|
+
export type DevopsProjectsCreateErrors = {
|
|
100421
|
+
/**
|
|
100422
|
+
* 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.
|
|
100423
|
+
*/
|
|
100424
|
+
400: DevopsDevOpsError;
|
|
100425
|
+
/**
|
|
100426
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
100427
|
+
*/
|
|
100428
|
+
401: DevopsDevOpsError;
|
|
100429
|
+
/**
|
|
100430
|
+
* 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.
|
|
100431
|
+
*/
|
|
100432
|
+
403: DevopsDevOpsError;
|
|
100433
|
+
/**
|
|
100434
|
+
* 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.
|
|
100435
|
+
*/
|
|
100436
|
+
404: DevopsDevOpsError;
|
|
100437
|
+
/**
|
|
100438
|
+
* 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.
|
|
100439
|
+
*/
|
|
100440
|
+
409: DevopsDevOpsError;
|
|
100441
|
+
/**
|
|
100442
|
+
* 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.
|
|
100443
|
+
*/
|
|
100444
|
+
500: DevopsDevOpsError;
|
|
100445
|
+
};
|
|
100446
|
+
export type DevopsProjectsCreateError = DevopsProjectsCreateErrors[keyof DevopsProjectsCreateErrors];
|
|
100447
|
+
export type DevopsProjectsCreateResponses = {
|
|
100448
|
+
/**
|
|
100449
|
+
* The created project with its repository binding, settings and labels.
|
|
100450
|
+
*/
|
|
100451
|
+
200: DevopsProject;
|
|
100452
|
+
};
|
|
100453
|
+
export type DevopsProjectsCreateResponse = DevopsProjectsCreateResponses[keyof DevopsProjectsCreateResponses];
|
|
100454
|
+
export type DevopsProjectsInitializeDefaultBranchData = {
|
|
100455
|
+
/**
|
|
100456
|
+
* The existing branch to start the default branch from.
|
|
100457
|
+
*/
|
|
100458
|
+
body: DevopsDefaultBranchInitialize;
|
|
100459
|
+
path: {
|
|
100460
|
+
/**
|
|
100461
|
+
* The project identifier returned by the project list, not the project's display name or its repository name.
|
|
100462
|
+
*/
|
|
100463
|
+
id: string;
|
|
100464
|
+
};
|
|
100465
|
+
query?: never;
|
|
100466
|
+
url: '/devops/v1/projects/{id}/default-branch:initialize';
|
|
100467
|
+
};
|
|
100468
|
+
export type DevopsProjectsInitializeDefaultBranchErrors = {
|
|
100469
|
+
/**
|
|
100470
|
+
* 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.
|
|
100471
|
+
*/
|
|
100472
|
+
400: DevopsDevOpsError;
|
|
100473
|
+
/**
|
|
100474
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
100475
|
+
*/
|
|
100476
|
+
401: DevopsDevOpsError;
|
|
100477
|
+
/**
|
|
100478
|
+
* 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.
|
|
100479
|
+
*/
|
|
100480
|
+
403: DevopsDevOpsError;
|
|
100481
|
+
/**
|
|
100482
|
+
* PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
|
|
100483
|
+
*/
|
|
100484
|
+
404: DevopsDevOpsError;
|
|
100485
|
+
/**
|
|
100486
|
+
* DEFAULT_BRANCH_EXISTS means the default branch is already there; it is never moved by this call.
|
|
100487
|
+
*/
|
|
100488
|
+
409: DevopsDevOpsError;
|
|
100489
|
+
/**
|
|
100490
|
+
* 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.
|
|
100491
|
+
*/
|
|
100492
|
+
500: DevopsDevOpsError;
|
|
100493
|
+
};
|
|
100494
|
+
export type DevopsProjectsInitializeDefaultBranchError = DevopsProjectsInitializeDefaultBranchErrors[keyof DevopsProjectsInitializeDefaultBranchErrors];
|
|
100495
|
+
export type DevopsProjectsInitializeDefaultBranchResponses = {
|
|
100496
|
+
/**
|
|
100497
|
+
* The default branch now exists: its name, the branch it was started from and the commit it points at.
|
|
100498
|
+
*/
|
|
100499
|
+
200: DevopsDefaultBranchInitialized;
|
|
100500
|
+
};
|
|
100501
|
+
export type DevopsProjectsInitializeDefaultBranchResponse = DevopsProjectsInitializeDefaultBranchResponses[keyof DevopsProjectsInitializeDefaultBranchResponses];
|
|
98026
100502
|
export type DevopsProjectsGetData = {
|
|
98027
100503
|
body?: never;
|
|
98028
100504
|
path: {
|
|
@@ -98342,6 +100818,10 @@ export type DevopsPromotionsListData = {
|
|
|
98342
100818
|
* The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
|
|
98343
100819
|
*/
|
|
98344
100820
|
pageToken?: string;
|
|
100821
|
+
/**
|
|
100822
|
+
* 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.
|
|
100823
|
+
*/
|
|
100824
|
+
forced?: boolean;
|
|
98345
100825
|
};
|
|
98346
100826
|
url: '/devops/v1/projects/{project}/promotions';
|
|
98347
100827
|
};
|
|
@@ -98532,7 +101012,7 @@ export type DevopsPromotionsRetryErrors = {
|
|
|
98532
101012
|
*/
|
|
98533
101013
|
404: DevopsDevOpsError;
|
|
98534
101014
|
/**
|
|
98535
|
-
*
|
|
101015
|
+
* PROMOTION_NOT_RETRYABLE means this promotion has nothing to continue (its message names the state and what to do instead: cancel a running one to stop it, or promote the release again). PROMOTION_RUN_STILL_RUNNING means the halted attempt's run has not stopped yet — it was asked to cancel and the retry created nothing, because planning its targets now would deploy them a second time; read the promotion again shortly, or wait for the queue's own deadline to end the halted run.
|
|
98536
101016
|
*/
|
|
98537
101017
|
409: DevopsDevOpsError;
|
|
98538
101018
|
/**
|
|
@@ -98593,6 +101073,55 @@ export type DevopsPromotionsConcludeResponses = {
|
|
|
98593
101073
|
200: DevopsPromotion;
|
|
98594
101074
|
};
|
|
98595
101075
|
export type DevopsPromotionsConcludeResponse = DevopsPromotionsConcludeResponses[keyof DevopsPromotionsConcludeResponses];
|
|
101076
|
+
export type DevopsPromotionsCheckoutCredentialData = {
|
|
101077
|
+
body?: never;
|
|
101078
|
+
path: {
|
|
101079
|
+
/**
|
|
101080
|
+
* The promotion identifier returned by a promotion list or create answer.
|
|
101081
|
+
*/
|
|
101082
|
+
id: string;
|
|
101083
|
+
};
|
|
101084
|
+
query?: never;
|
|
101085
|
+
url: '/devops/v1/promotions/{id}:checkoutCredential';
|
|
101086
|
+
};
|
|
101087
|
+
export type DevopsPromotionsCheckoutCredentialErrors = {
|
|
101088
|
+
/**
|
|
101089
|
+
* 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.
|
|
101090
|
+
*/
|
|
101091
|
+
400: DevopsDevOpsError;
|
|
101092
|
+
/**
|
|
101093
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
101094
|
+
*/
|
|
101095
|
+
401: DevopsDevOpsError;
|
|
101096
|
+
/**
|
|
101097
|
+
* 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.
|
|
101098
|
+
*/
|
|
101099
|
+
403: DevopsDevOpsError;
|
|
101100
|
+
/**
|
|
101101
|
+
* 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.
|
|
101102
|
+
*/
|
|
101103
|
+
404: DevopsDevOpsError;
|
|
101104
|
+
/**
|
|
101105
|
+
* 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.
|
|
101106
|
+
*/
|
|
101107
|
+
409: DevopsDevOpsError;
|
|
101108
|
+
/**
|
|
101109
|
+
* 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.
|
|
101110
|
+
*/
|
|
101111
|
+
500: DevopsDevOpsError;
|
|
101112
|
+
/**
|
|
101113
|
+
* REGISTRY_UNAVAILABLE means the platform's Git registry would not issue a credential just now; the machine retries the request shortly.
|
|
101114
|
+
*/
|
|
101115
|
+
502: DevopsDevOpsError;
|
|
101116
|
+
};
|
|
101117
|
+
export type DevopsPromotionsCheckoutCredentialError = DevopsPromotionsCheckoutCredentialErrors[keyof DevopsPromotionsCheckoutCredentialErrors];
|
|
101118
|
+
export type DevopsPromotionsCheckoutCredentialResponses = {
|
|
101119
|
+
/**
|
|
101120
|
+
* 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.
|
|
101121
|
+
*/
|
|
101122
|
+
200: DevopsCheckoutCredential;
|
|
101123
|
+
};
|
|
101124
|
+
export type DevopsPromotionsCheckoutCredentialResponse = DevopsPromotionsCheckoutCredentialResponses[keyof DevopsPromotionsCheckoutCredentialResponses];
|
|
98596
101125
|
export type DevopsRolloutsListData = {
|
|
98597
101126
|
body?: never;
|
|
98598
101127
|
path: {
|
|
@@ -100011,7 +102540,7 @@ export type DevopsChangesOpenPullRequestErrors = {
|
|
|
100011
102540
|
export type DevopsChangesOpenPullRequestError = DevopsChangesOpenPullRequestErrors[keyof DevopsChangesOpenPullRequestErrors];
|
|
100012
102541
|
export type DevopsChangesOpenPullRequestResponses = {
|
|
100013
102542
|
/**
|
|
100014
|
-
* The pull request for the change's branch: its number,
|
|
102543
|
+
* 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.
|
|
100015
102544
|
*/
|
|
100016
102545
|
200: DevopsChangePullRequestOpened;
|
|
100017
102546
|
};
|
|
@@ -100086,6 +102615,10 @@ export type DevopsPullRequestsListData = {
|
|
|
100086
102615
|
* 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.
|
|
100087
102616
|
*/
|
|
100088
102617
|
reviewer?: string;
|
|
102618
|
+
/**
|
|
102619
|
+
* 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.
|
|
102620
|
+
*/
|
|
102621
|
+
reviewed?: boolean;
|
|
100089
102622
|
};
|
|
100090
102623
|
url: '/devops/v1/projects/{project}/pull-requests';
|
|
100091
102624
|
};
|
|
@@ -100235,7 +102768,7 @@ export type DevopsPullRequestsMergeErrors = {
|
|
|
100235
102768
|
*/
|
|
100236
102769
|
404: DevopsDevOpsError;
|
|
100237
102770
|
/**
|
|
100238
|
-
* 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.
|
|
102771
|
+
* 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.
|
|
100239
102772
|
*/
|
|
100240
102773
|
409: DevopsDevOpsError;
|
|
100241
102774
|
/**
|
|
@@ -100287,7 +102820,7 @@ export type DevopsPullRequestsRecordVerdictErrors = {
|
|
|
100287
102820
|
export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
|
|
100288
102821
|
export type DevopsPullRequestsRecordVerdictResponses = {
|
|
100289
102822
|
/**
|
|
100290
|
-
* The pull request with the
|
|
102823
|
+
* The pull request with the review recorded on it; its gate is unchanged.
|
|
100291
102824
|
*/
|
|
100292
102825
|
200: DevopsPullRequest;
|
|
100293
102826
|
};
|
|
@@ -100337,6 +102870,51 @@ export type DevopsPullRequestsCloseResponses = {
|
|
|
100337
102870
|
200: DevopsPullRequest;
|
|
100338
102871
|
};
|
|
100339
102872
|
export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
|
|
102873
|
+
export type DevopsPullRequestsReviewsCreateData = {
|
|
102874
|
+
body: DevopsPullRequestReviewRequest;
|
|
102875
|
+
path: {
|
|
102876
|
+
/**
|
|
102877
|
+
* 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.
|
|
102878
|
+
*/
|
|
102879
|
+
id: string;
|
|
102880
|
+
};
|
|
102881
|
+
query?: never;
|
|
102882
|
+
url: '/devops/v1/pull-requests/{id}/reviews';
|
|
102883
|
+
};
|
|
102884
|
+
export type DevopsPullRequestsReviewsCreateErrors = {
|
|
102885
|
+
/**
|
|
102886
|
+
* 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.
|
|
102887
|
+
*/
|
|
102888
|
+
400: DevopsDevOpsError;
|
|
102889
|
+
/**
|
|
102890
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
102891
|
+
*/
|
|
102892
|
+
401: DevopsDevOpsError;
|
|
102893
|
+
/**
|
|
102894
|
+
* 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.
|
|
102895
|
+
*/
|
|
102896
|
+
403: DevopsDevOpsError;
|
|
102897
|
+
/**
|
|
102898
|
+
* 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.
|
|
102899
|
+
*/
|
|
102900
|
+
404: DevopsDevOpsError;
|
|
102901
|
+
/**
|
|
102902
|
+
* PULL_REQUEST_NOT_OPEN when the pull request is merged or closed: nothing was recorded.
|
|
102903
|
+
*/
|
|
102904
|
+
409: DevopsDevOpsError;
|
|
102905
|
+
/**
|
|
102906
|
+
* 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.
|
|
102907
|
+
*/
|
|
102908
|
+
500: DevopsDevOpsError;
|
|
102909
|
+
};
|
|
102910
|
+
export type DevopsPullRequestsReviewsCreateError = DevopsPullRequestsReviewsCreateErrors[keyof DevopsPullRequestsReviewsCreateErrors];
|
|
102911
|
+
export type DevopsPullRequestsReviewsCreateResponses = {
|
|
102912
|
+
/**
|
|
102913
|
+
* 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.
|
|
102914
|
+
*/
|
|
102915
|
+
200: DevopsPullRequest;
|
|
102916
|
+
};
|
|
102917
|
+
export type DevopsPullRequestsReviewsCreateResponse = DevopsPullRequestsReviewsCreateResponses[keyof DevopsPullRequestsReviewsCreateResponses];
|
|
100340
102918
|
export type DevopsConnectionsListData = {
|
|
100341
102919
|
body?: never;
|
|
100342
102920
|
path?: never;
|
|
@@ -100795,7 +103373,7 @@ export type DevopsWorkspacesGetData = {
|
|
|
100795
103373
|
*/
|
|
100796
103374
|
project: string;
|
|
100797
103375
|
/**
|
|
100798
|
-
* The stage whose workspace you address: development, integration or
|
|
103376
|
+
* 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.
|
|
100799
103377
|
*/
|
|
100800
103378
|
stage: DevopsWorkspaceStage;
|
|
100801
103379
|
};
|
|
@@ -100840,7 +103418,7 @@ export type DevopsWorkspacesUpdateData = {
|
|
|
100840
103418
|
*/
|
|
100841
103419
|
project: string;
|
|
100842
103420
|
/**
|
|
100843
|
-
* The stage whose workspace you address: development, integration or
|
|
103421
|
+
* 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.
|
|
100844
103422
|
*/
|
|
100845
103423
|
stage: DevopsWorkspaceStage;
|
|
100846
103424
|
};
|
|
@@ -100984,6 +103562,56 @@ export type DevopsUnitsCreateResponses = {
|
|
|
100984
103562
|
200: DevopsUnit;
|
|
100985
103563
|
};
|
|
100986
103564
|
export type DevopsUnitsCreateResponse = DevopsUnitsCreateResponses[keyof DevopsUnitsCreateResponses];
|
|
103565
|
+
export type DevopsCleanupsListData = {
|
|
103566
|
+
body?: never;
|
|
103567
|
+
path: {
|
|
103568
|
+
/**
|
|
103569
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
103570
|
+
*/
|
|
103571
|
+
project: string;
|
|
103572
|
+
};
|
|
103573
|
+
query?: {
|
|
103574
|
+
/**
|
|
103575
|
+
* 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.
|
|
103576
|
+
*/
|
|
103577
|
+
pageSize?: number;
|
|
103578
|
+
/**
|
|
103579
|
+
* The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
|
|
103580
|
+
*/
|
|
103581
|
+
pageToken?: string;
|
|
103582
|
+
};
|
|
103583
|
+
url: '/devops/v1/projects/{project}/cleanups';
|
|
103584
|
+
};
|
|
103585
|
+
export type DevopsCleanupsListErrors = {
|
|
103586
|
+
/**
|
|
103587
|
+
* 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.
|
|
103588
|
+
*/
|
|
103589
|
+
400: DevopsDevOpsError;
|
|
103590
|
+
/**
|
|
103591
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
103592
|
+
*/
|
|
103593
|
+
401: DevopsDevOpsError;
|
|
103594
|
+
/**
|
|
103595
|
+
* 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.
|
|
103596
|
+
*/
|
|
103597
|
+
403: DevopsDevOpsError;
|
|
103598
|
+
/**
|
|
103599
|
+
* PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
|
|
103600
|
+
*/
|
|
103601
|
+
404: DevopsDevOpsError;
|
|
103602
|
+
/**
|
|
103603
|
+
* 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.
|
|
103604
|
+
*/
|
|
103605
|
+
500: DevopsDevOpsError;
|
|
103606
|
+
};
|
|
103607
|
+
export type DevopsCleanupsListError = DevopsCleanupsListErrors[keyof DevopsCleanupsListErrors];
|
|
103608
|
+
export type DevopsCleanupsListResponses = {
|
|
103609
|
+
/**
|
|
103610
|
+
* One page of the project's cleanup ledger, newest decision first.
|
|
103611
|
+
*/
|
|
103612
|
+
200: DevopsCleanupPage;
|
|
103613
|
+
};
|
|
103614
|
+
export type DevopsCleanupsListResponse = DevopsCleanupsListResponses[keyof DevopsCleanupsListResponses];
|
|
100987
103615
|
export type DevopsUnitsDeleteData = {
|
|
100988
103616
|
body?: never;
|
|
100989
103617
|
path: {
|
|
@@ -105835,6 +108463,14 @@ export type MediaCreateSpeechData = {
|
|
|
105835
108463
|
* Language of the text, when the voice supports several.
|
|
105836
108464
|
*/
|
|
105837
108465
|
language?: string;
|
|
108466
|
+
/**
|
|
108467
|
+
* Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
108468
|
+
*/
|
|
108469
|
+
model?: string;
|
|
108470
|
+
/**
|
|
108471
|
+
* Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced the best value, quality puts the result first. A tier picks among the speech models that carry the voice this request names, so a voice the chosen model does not offer is never selected and then refused, and a platform-designed voice is bound to its own model. Send tier or model, never both. Omitted, the library’s speech model answers, or its default tier once the media-tier-defaults switch is on.
|
|
108472
|
+
*/
|
|
108473
|
+
tier?: MediaMediaTier;
|
|
105838
108474
|
};
|
|
105839
108475
|
headers?: {
|
|
105840
108476
|
/**
|
|
@@ -105869,7 +108505,7 @@ export type MediaCreateSpeechErrors = {
|
|
|
105869
108505
|
*/
|
|
105870
108506
|
404: MediaMediaError;
|
|
105871
108507
|
/**
|
|
105872
|
-
* MODEL_PENDING: neither the request nor the library settings name a speech model, so there is nothing to synthesise with; set models.speech on the library or name model on the request. JOB_INVALID_STATE: the job cannot start from its current state; start a new job rather than resuming this one.
|
|
108508
|
+
* MODEL_PENDING: neither the request nor the library settings name a speech model, so there is nothing to synthesise with; set models.speech on the library or name model or tier on the request. JOB_INVALID_STATE: the job cannot start from its current state; start a new job rather than resuming this one.
|
|
105873
108509
|
*/
|
|
105874
108510
|
409: MediaMediaError;
|
|
105875
108511
|
/**
|
|
@@ -107916,9 +110552,9 @@ export type RegistryRepositoriesPackagesListResponses = {
|
|
|
107916
110552
|
export type RegistryRepositoriesPackagesListResponse = RegistryRepositoriesPackagesListResponses[keyof RegistryRepositoriesPackagesListResponses];
|
|
107917
110553
|
export type RegistryRepositoriesPackagesCreateData = {
|
|
107918
110554
|
/**
|
|
107919
|
-
*
|
|
110555
|
+
* oci 库发布技能或插件用 multipart(archive 与 files 二选一);git 库建 git 仓库用 JSON。
|
|
107920
110556
|
*/
|
|
107921
|
-
body:
|
|
110557
|
+
body: RegistryCreateGitPackageInput;
|
|
107922
110558
|
path: {
|
|
107923
110559
|
/**
|
|
107924
110560
|
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
@@ -107961,7 +110597,7 @@ export type RegistryRepositoriesPackagesCreateErrors = {
|
|
|
107961
110597
|
export type RegistryRepositoriesPackagesCreateError = RegistryRepositoriesPackagesCreateErrors[keyof RegistryRepositoriesPackagesCreateErrors];
|
|
107962
110598
|
export type RegistryRepositoriesPackagesCreateResponses = {
|
|
107963
110599
|
/**
|
|
107964
|
-
*
|
|
110600
|
+
* 建好的包。技能和插件的 latest_version 是刚发布的版本号;git 包带 clone_url、default_branch 和 protected_refs。
|
|
107965
110601
|
*/
|
|
107966
110602
|
201: RegistryPackage;
|
|
107967
110603
|
};
|
|
@@ -108101,6 +110737,50 @@ export type RegistryPackagesVersionsCreateResponses = {
|
|
|
108101
110737
|
201: RegistryVersion;
|
|
108102
110738
|
};
|
|
108103
110739
|
export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
|
|
110740
|
+
export type RegistryPackagesGitCredentialCreateData = {
|
|
110741
|
+
/**
|
|
110742
|
+
* 要的权限和有效期。
|
|
110743
|
+
*/
|
|
110744
|
+
body: RegistryGitCredentialInput;
|
|
110745
|
+
path: {
|
|
110746
|
+
/**
|
|
110747
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110748
|
+
*/
|
|
110749
|
+
package_id: string;
|
|
110750
|
+
};
|
|
110751
|
+
query?: never;
|
|
110752
|
+
url: '/registry/v1/packages/{package_id}/git-credential';
|
|
110753
|
+
};
|
|
110754
|
+
export type RegistryPackagesGitCredentialCreateErrors = {
|
|
110755
|
+
/**
|
|
110756
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110757
|
+
*/
|
|
110758
|
+
400: RegistryRegistryError;
|
|
110759
|
+
/**
|
|
110760
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110761
|
+
*/
|
|
110762
|
+
401: RegistryRegistryError;
|
|
110763
|
+
/**
|
|
110764
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110765
|
+
*/
|
|
110766
|
+
404: RegistryRegistryError;
|
|
110767
|
+
/**
|
|
110768
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
110769
|
+
*/
|
|
110770
|
+
409: RegistryRegistryError;
|
|
110771
|
+
/**
|
|
110772
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110773
|
+
*/
|
|
110774
|
+
500: RegistryRegistryError;
|
|
110775
|
+
};
|
|
110776
|
+
export type RegistryPackagesGitCredentialCreateError = RegistryPackagesGitCredentialCreateErrors[keyof RegistryPackagesGitCredentialCreateErrors];
|
|
110777
|
+
export type RegistryPackagesGitCredentialCreateResponses = {
|
|
110778
|
+
/**
|
|
110779
|
+
* 新签发的凭据,含克隆地址、固定用户名、密码和过期时间。
|
|
110780
|
+
*/
|
|
110781
|
+
201: RegistryGitCredential;
|
|
110782
|
+
};
|
|
110783
|
+
export type RegistryPackagesGitCredentialCreateResponse = RegistryPackagesGitCredentialCreateResponses[keyof RegistryPackagesGitCredentialCreateResponses];
|
|
108104
110784
|
export type RegistryGitLogData = {
|
|
108105
110785
|
body?: never;
|
|
108106
110786
|
path: {
|
|
@@ -108167,7 +110847,12 @@ export type RegistryGitCommitsRetrieveData = {
|
|
|
108167
110847
|
*/
|
|
108168
110848
|
sha: string;
|
|
108169
110849
|
};
|
|
108170
|
-
query?:
|
|
110850
|
+
query?: {
|
|
110851
|
+
/**
|
|
110852
|
+
* 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
|
|
110853
|
+
*/
|
|
110854
|
+
changed_files?: boolean;
|
|
110855
|
+
};
|
|
108171
110856
|
url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
|
|
108172
110857
|
};
|
|
108173
110858
|
export type RegistryGitCommitsRetrieveErrors = {
|
|
@@ -108197,7 +110882,7 @@ export type RegistryGitCommitsRetrieveResponses = {
|
|
|
108197
110882
|
/**
|
|
108198
110883
|
* 这个提交。
|
|
108199
110884
|
*/
|
|
108200
|
-
200:
|
|
110885
|
+
200: RegistryGitCommitDetail;
|
|
108201
110886
|
};
|
|
108202
110887
|
export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
|
|
108203
110888
|
export type RegistryGitTreesRetrieveData = {
|
|
@@ -108245,6 +110930,201 @@ export type RegistryGitTreesRetrieveResponses = {
|
|
|
108245
110930
|
200: RegistryGitTree;
|
|
108246
110931
|
};
|
|
108247
110932
|
export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
|
|
110933
|
+
export type RegistryGitRefsData = {
|
|
110934
|
+
body?: never;
|
|
110935
|
+
path: {
|
|
110936
|
+
/**
|
|
110937
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110938
|
+
*/
|
|
110939
|
+
package_id: string;
|
|
110940
|
+
};
|
|
110941
|
+
query?: {
|
|
110942
|
+
/**
|
|
110943
|
+
* 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
|
|
110944
|
+
*/
|
|
110945
|
+
prefix?: 'refs/heads/' | 'refs/tags/';
|
|
110946
|
+
/**
|
|
110947
|
+
* 页码,从 1 起,默认 1。
|
|
110948
|
+
*/
|
|
110949
|
+
page?: number;
|
|
110950
|
+
/**
|
|
110951
|
+
* 这一页最多返回多少个引用,1 到 500,默认 100。
|
|
110952
|
+
*/
|
|
110953
|
+
size?: number;
|
|
110954
|
+
};
|
|
110955
|
+
url: '/registry/v1/packages/{package_id}/git/refs';
|
|
110956
|
+
};
|
|
110957
|
+
export type RegistryGitRefsErrors = {
|
|
110958
|
+
/**
|
|
110959
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110960
|
+
*/
|
|
110961
|
+
400: RegistryRegistryError;
|
|
110962
|
+
/**
|
|
110963
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110964
|
+
*/
|
|
110965
|
+
401: RegistryRegistryError;
|
|
110966
|
+
/**
|
|
110967
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110968
|
+
*/
|
|
110969
|
+
404: RegistryRegistryError;
|
|
110970
|
+
/**
|
|
110971
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110972
|
+
*/
|
|
110973
|
+
500: RegistryRegistryError;
|
|
110974
|
+
/**
|
|
110975
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
110976
|
+
*/
|
|
110977
|
+
503: RegistryRegistryError;
|
|
110978
|
+
};
|
|
110979
|
+
export type RegistryGitRefsError = RegistryGitRefsErrors[keyof RegistryGitRefsErrors];
|
|
110980
|
+
export type RegistryGitRefsResponses = {
|
|
110981
|
+
/**
|
|
110982
|
+
* 分支和标签的一页。
|
|
110983
|
+
*/
|
|
110984
|
+
200: RegistryGitRefs;
|
|
110985
|
+
};
|
|
110986
|
+
export type RegistryGitRefsResponse = RegistryGitRefsResponses[keyof RegistryGitRefsResponses];
|
|
110987
|
+
export type RegistryGitResolveData = {
|
|
110988
|
+
body?: never;
|
|
110989
|
+
path: {
|
|
110990
|
+
/**
|
|
110991
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110992
|
+
*/
|
|
110993
|
+
package_id: string;
|
|
110994
|
+
};
|
|
110995
|
+
query: {
|
|
110996
|
+
/**
|
|
110997
|
+
* 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
|
|
110998
|
+
*/
|
|
110999
|
+
ref: string;
|
|
111000
|
+
};
|
|
111001
|
+
url: '/registry/v1/packages/{package_id}/git/resolve';
|
|
111002
|
+
};
|
|
111003
|
+
export type RegistryGitResolveErrors = {
|
|
111004
|
+
/**
|
|
111005
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
111006
|
+
*/
|
|
111007
|
+
400: RegistryRegistryError;
|
|
111008
|
+
/**
|
|
111009
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
111010
|
+
*/
|
|
111011
|
+
401: RegistryRegistryError;
|
|
111012
|
+
/**
|
|
111013
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
111014
|
+
*/
|
|
111015
|
+
404: RegistryRegistryError;
|
|
111016
|
+
/**
|
|
111017
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
111018
|
+
*/
|
|
111019
|
+
500: RegistryRegistryError;
|
|
111020
|
+
/**
|
|
111021
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
111022
|
+
*/
|
|
111023
|
+
503: RegistryRegistryError;
|
|
111024
|
+
};
|
|
111025
|
+
export type RegistryGitResolveError = RegistryGitResolveErrors[keyof RegistryGitResolveErrors];
|
|
111026
|
+
export type RegistryGitResolveResponses = {
|
|
111027
|
+
/**
|
|
111028
|
+
* 这个引用指向的提交。
|
|
111029
|
+
*/
|
|
111030
|
+
200: RegistryGitResolvedRef;
|
|
111031
|
+
};
|
|
111032
|
+
export type RegistryGitResolveResponse = RegistryGitResolveResponses[keyof RegistryGitResolveResponses];
|
|
111033
|
+
export type RegistryGitCompareData = {
|
|
111034
|
+
body?: never;
|
|
111035
|
+
path: {
|
|
111036
|
+
/**
|
|
111037
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
111038
|
+
*/
|
|
111039
|
+
package_id: string;
|
|
111040
|
+
};
|
|
111041
|
+
query: {
|
|
111042
|
+
/**
|
|
111043
|
+
* 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
|
|
111044
|
+
*/
|
|
111045
|
+
base: string;
|
|
111046
|
+
/**
|
|
111047
|
+
* 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
|
|
111048
|
+
*/
|
|
111049
|
+
head: string;
|
|
111050
|
+
};
|
|
111051
|
+
url: '/registry/v1/packages/{package_id}/git/compare';
|
|
111052
|
+
};
|
|
111053
|
+
export type RegistryGitCompareErrors = {
|
|
111054
|
+
/**
|
|
111055
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
111056
|
+
*/
|
|
111057
|
+
400: RegistryRegistryError;
|
|
111058
|
+
/**
|
|
111059
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
111060
|
+
*/
|
|
111061
|
+
401: RegistryRegistryError;
|
|
111062
|
+
/**
|
|
111063
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
111064
|
+
*/
|
|
111065
|
+
404: RegistryRegistryError;
|
|
111066
|
+
/**
|
|
111067
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
111068
|
+
*/
|
|
111069
|
+
500: RegistryRegistryError;
|
|
111070
|
+
/**
|
|
111071
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
111072
|
+
*/
|
|
111073
|
+
503: RegistryRegistryError;
|
|
111074
|
+
};
|
|
111075
|
+
export type RegistryGitCompareError = RegistryGitCompareErrors[keyof RegistryGitCompareErrors];
|
|
111076
|
+
export type RegistryGitCompareResponses = {
|
|
111077
|
+
/**
|
|
111078
|
+
* 两个引用的关系、改动的文件和多出的提交。
|
|
111079
|
+
*/
|
|
111080
|
+
200: RegistryGitComparison;
|
|
111081
|
+
};
|
|
111082
|
+
export type RegistryGitCompareResponse = RegistryGitCompareResponses[keyof RegistryGitCompareResponses];
|
|
111083
|
+
export type RegistryGitTreesRecursiveData = {
|
|
111084
|
+
body?: never;
|
|
111085
|
+
path: {
|
|
111086
|
+
/**
|
|
111087
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
111088
|
+
*/
|
|
111089
|
+
package_id: string;
|
|
111090
|
+
/**
|
|
111091
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
111092
|
+
*/
|
|
111093
|
+
sha: string;
|
|
111094
|
+
};
|
|
111095
|
+
query?: never;
|
|
111096
|
+
url: '/registry/v1/packages/{package_id}/git/trees/{sha}/recursive';
|
|
111097
|
+
};
|
|
111098
|
+
export type RegistryGitTreesRecursiveErrors = {
|
|
111099
|
+
/**
|
|
111100
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
111101
|
+
*/
|
|
111102
|
+
400: RegistryRegistryError;
|
|
111103
|
+
/**
|
|
111104
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
111105
|
+
*/
|
|
111106
|
+
401: RegistryRegistryError;
|
|
111107
|
+
/**
|
|
111108
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
111109
|
+
*/
|
|
111110
|
+
404: RegistryRegistryError;
|
|
111111
|
+
/**
|
|
111112
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
111113
|
+
*/
|
|
111114
|
+
500: RegistryRegistryError;
|
|
111115
|
+
/**
|
|
111116
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
111117
|
+
*/
|
|
111118
|
+
503: RegistryRegistryError;
|
|
111119
|
+
};
|
|
111120
|
+
export type RegistryGitTreesRecursiveError = RegistryGitTreesRecursiveErrors[keyof RegistryGitTreesRecursiveErrors];
|
|
111121
|
+
export type RegistryGitTreesRecursiveResponses = {
|
|
111122
|
+
/**
|
|
111123
|
+
* 这个对象下的全部条目。
|
|
111124
|
+
*/
|
|
111125
|
+
200: RegistryGitTreeRecursive;
|
|
111126
|
+
};
|
|
111127
|
+
export type RegistryGitTreesRecursiveResponse = RegistryGitTreesRecursiveResponses[keyof RegistryGitTreesRecursiveResponses];
|
|
108248
111128
|
export type RegistryGitFilesRetrieveData = {
|
|
108249
111129
|
body?: never;
|
|
108250
111130
|
path: {
|