@deepraxis/sdk 0.1.1-dev.cdb6bda → 0.1.1-dev.cfb65a9
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 +116 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +205 -23
- package/dist/generated/sdk.gen.js +566 -24
- package/dist/generated/types.gen.d.ts +3042 -388
- package/dist/helpers/browser-connect.d.ts +2 -0
- package/dist/helpers/browser-connect.js +31 -9
- 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.js +1037 -42
- package/dist/resources.generated.d.ts +207 -61
- package/dist/resources.generated.js +69 -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
|
|
@@ -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,57 @@ 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>;
|
|
16405
16658
|
/**
|
|
16406
16659
|
* 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
16660
|
*/
|
|
16408
16661
|
failedPaths?: Array<string>;
|
|
16409
16662
|
};
|
|
16410
16663
|
/**
|
|
16411
|
-
*
|
|
16664
|
+
* A new project: its name and, for a project with code, where the code lives.
|
|
16412
16665
|
*/
|
|
16413
|
-
export type
|
|
16666
|
+
export type DevopsProjectCreate = {
|
|
16414
16667
|
/**
|
|
16415
|
-
*
|
|
16668
|
+
* Kebab-case name, unique within the organization.
|
|
16416
16669
|
*/
|
|
16417
|
-
|
|
16670
|
+
name: string;
|
|
16418
16671
|
/**
|
|
16419
|
-
*
|
|
16672
|
+
* What the project is for, in your own words.
|
|
16420
16673
|
*/
|
|
16421
|
-
|
|
16674
|
+
description?: string;
|
|
16675
|
+
/**
|
|
16676
|
+
* Where the code lives: github (the default) or platform, a git package of our own Git.
|
|
16677
|
+
*/
|
|
16678
|
+
provider?: 'github' | 'platform';
|
|
16679
|
+
/**
|
|
16680
|
+
* provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository.
|
|
16681
|
+
*/
|
|
16682
|
+
package?: string;
|
|
16683
|
+
/**
|
|
16684
|
+
* 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.
|
|
16685
|
+
*/
|
|
16686
|
+
initialRef?: string;
|
|
16687
|
+
/**
|
|
16688
|
+
* provider github only: the connection of a completed GitHub App install that can see the repository.
|
|
16689
|
+
*/
|
|
16690
|
+
connection?: string;
|
|
16691
|
+
/**
|
|
16692
|
+
* provider github only: the repository as owner/name.
|
|
16693
|
+
*/
|
|
16694
|
+
repository?: string;
|
|
16695
|
+
/**
|
|
16696
|
+
* Delivery settings; keys you leave out take their defaults.
|
|
16697
|
+
*/
|
|
16698
|
+
settings?: {
|
|
16699
|
+
[key: string]: unknown;
|
|
16700
|
+
};
|
|
16701
|
+
/**
|
|
16702
|
+
* Idempotency key: repeat the call with the same value to be given the same answer.
|
|
16703
|
+
*/
|
|
16704
|
+
requestId?: string;
|
|
16422
16705
|
};
|
|
16423
16706
|
/**
|
|
16424
16707
|
* One delivery project — the unit a release, a promotion and a flag all belong to.
|
|
@@ -16464,6 +16747,49 @@ export type DevopsProject = {
|
|
|
16464
16747
|
[key: string]: string;
|
|
16465
16748
|
};
|
|
16466
16749
|
};
|
|
16750
|
+
/**
|
|
16751
|
+
* One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
|
|
16752
|
+
*/
|
|
16753
|
+
export type DevopsProjectPage = {
|
|
16754
|
+
/**
|
|
16755
|
+
* The projects on this page, ordered by creation time descending; a project of another organization is never among them.
|
|
16756
|
+
*/
|
|
16757
|
+
items: Array<DevopsProject>;
|
|
16758
|
+
/**
|
|
16759
|
+
* Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
|
|
16760
|
+
*/
|
|
16761
|
+
nextPageToken: string;
|
|
16762
|
+
/**
|
|
16763
|
+
* 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.
|
|
16764
|
+
*/
|
|
16765
|
+
visibleProjects: number;
|
|
16766
|
+
};
|
|
16767
|
+
/**
|
|
16768
|
+
* Where to start the default branch.
|
|
16769
|
+
*/
|
|
16770
|
+
export type DevopsDefaultBranchInitialize = {
|
|
16771
|
+
/**
|
|
16772
|
+
* An existing branch of the repository, for example import. The default branch is created at its head.
|
|
16773
|
+
*/
|
|
16774
|
+
from: string;
|
|
16775
|
+
};
|
|
16776
|
+
/**
|
|
16777
|
+
* The default branch that now exists.
|
|
16778
|
+
*/
|
|
16779
|
+
export type DevopsDefaultBranchInitialized = {
|
|
16780
|
+
/**
|
|
16781
|
+
* The default branch the project declares, now created.
|
|
16782
|
+
*/
|
|
16783
|
+
defaultBranch: string;
|
|
16784
|
+
/**
|
|
16785
|
+
* The branch it was started from.
|
|
16786
|
+
*/
|
|
16787
|
+
from: string;
|
|
16788
|
+
/**
|
|
16789
|
+
* The commit the default branch points at, the head of from when it was read.
|
|
16790
|
+
*/
|
|
16791
|
+
commit: string;
|
|
16792
|
+
};
|
|
16467
16793
|
/**
|
|
16468
16794
|
* A patch to a project; only the fields named in updateMask are written.
|
|
16469
16795
|
*/
|
|
@@ -16510,6 +16836,7 @@ export type DevopsProjectUpdate = {
|
|
|
16510
16836
|
* Whether the merge gate is a required check on the git host.
|
|
16511
16837
|
*/
|
|
16512
16838
|
requireGate?: boolean;
|
|
16839
|
+
gate?: DevopsGatePolicy;
|
|
16513
16840
|
/**
|
|
16514
16841
|
* 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
16842
|
*/
|
|
@@ -17645,7 +17972,11 @@ export type DevopsChangePullRequestOpened = {
|
|
|
17645
17972
|
*/
|
|
17646
17973
|
export type DevopsChangeGitCredential = {
|
|
17647
17974
|
/**
|
|
17648
|
-
* The
|
|
17975
|
+
* 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.
|
|
17976
|
+
*/
|
|
17977
|
+
url: string;
|
|
17978
|
+
/**
|
|
17979
|
+
* The user name the source host requires with the token (GitHub App installation tokens use `x-access-token`).
|
|
17649
17980
|
*/
|
|
17650
17981
|
username: string;
|
|
17651
17982
|
/**
|
|
@@ -17784,7 +18115,7 @@ export type DevopsPullRequest = {
|
|
|
17784
18115
|
kind: 'user' | 'agent' | 'bot';
|
|
17785
18116
|
};
|
|
17786
18117
|
/**
|
|
17787
|
-
*
|
|
18118
|
+
* 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
18119
|
*/
|
|
17789
18120
|
mergeableState: string;
|
|
17790
18121
|
/**
|
|
@@ -17938,6 +18269,19 @@ export type DevopsPullRequestCloseRequest = {
|
|
|
17938
18269
|
*/
|
|
17939
18270
|
reason: string;
|
|
17940
18271
|
};
|
|
18272
|
+
/**
|
|
18273
|
+
* Your verdict on a pull request that lives on the platform's own Git.
|
|
18274
|
+
*/
|
|
18275
|
+
export type DevopsPullRequestReviewRequest = {
|
|
18276
|
+
/**
|
|
18277
|
+
* The verdict. A value outside this set is refused with INVALID_ARGUMENT.
|
|
18278
|
+
*/
|
|
18279
|
+
state: 'approved' | 'changes_requested' | 'commented';
|
|
18280
|
+
/**
|
|
18281
|
+
* 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.
|
|
18282
|
+
*/
|
|
18283
|
+
body?: string;
|
|
18284
|
+
};
|
|
17941
18285
|
/**
|
|
17942
18286
|
* One page of an organization's connections.
|
|
17943
18287
|
*/
|
|
@@ -19374,6 +19718,10 @@ export type MediaAsset = {
|
|
|
19374
19718
|
* 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
19719
|
*/
|
|
19376
19720
|
segments?: number;
|
|
19721
|
+
/**
|
|
19722
|
+
* 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.
|
|
19723
|
+
*/
|
|
19724
|
+
duration?: number;
|
|
19377
19725
|
};
|
|
19378
19726
|
};
|
|
19379
19727
|
};
|
|
@@ -21071,6 +21419,10 @@ export type RegistryCreateRepositoryInput = {
|
|
|
21071
21419
|
* 库的说明;省略时不写。
|
|
21072
21420
|
*/
|
|
21073
21421
|
description?: string;
|
|
21422
|
+
/**
|
|
21423
|
+
* 库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。
|
|
21424
|
+
*/
|
|
21425
|
+
format?: 'oci' | 'git';
|
|
21074
21426
|
};
|
|
21075
21427
|
/**
|
|
21076
21428
|
* 一个库:组织里包的分类容器。每个组织有一个 is_default 为 true 的默认库。
|
|
@@ -21100,6 +21452,10 @@ export type RegistryRepository = {
|
|
|
21100
21452
|
* 是否这个组织的默认库;自动创建、不能删除,新包在没有指定库时进这里。
|
|
21101
21453
|
*/
|
|
21102
21454
|
is_default: boolean;
|
|
21455
|
+
/**
|
|
21456
|
+
* 库里放什么;oci 放技能和插件,git 放 git 仓库;建库时定下,之后不能改。
|
|
21457
|
+
*/
|
|
21458
|
+
format: 'oci' | 'git';
|
|
21103
21459
|
/**
|
|
21104
21460
|
* 库里当前的包数量;非零时这个库不能删。
|
|
21105
21461
|
*/
|
|
@@ -21185,6 +21541,44 @@ export type RegistryPublishInput = {
|
|
|
21185
21541
|
*/
|
|
21186
21542
|
tags?: string;
|
|
21187
21543
|
};
|
|
21544
|
+
/**
|
|
21545
|
+
* 在 git 库里建 git 包的 JSON 请求体;name 和 format 必填。
|
|
21546
|
+
*/
|
|
21547
|
+
export type RegistryCreateGitPackageInput = {
|
|
21548
|
+
/**
|
|
21549
|
+
* 包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。
|
|
21550
|
+
*/
|
|
21551
|
+
name: string;
|
|
21552
|
+
/**
|
|
21553
|
+
* 建的包是什么;JSON 请求只能建 git 包,所以固定为 git。
|
|
21554
|
+
*/
|
|
21555
|
+
format: 'git';
|
|
21556
|
+
/**
|
|
21557
|
+
* 默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。
|
|
21558
|
+
*/
|
|
21559
|
+
default_branch?: string;
|
|
21560
|
+
/**
|
|
21561
|
+
* 仓库的说明;省略时为空。
|
|
21562
|
+
*/
|
|
21563
|
+
description?: string;
|
|
21564
|
+
/**
|
|
21565
|
+
* 从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。
|
|
21566
|
+
*/
|
|
21567
|
+
import?: {
|
|
21568
|
+
/**
|
|
21569
|
+
* 要导入的公开仓库地址,必须是 https,匿名可读;私有仓库不支持。
|
|
21570
|
+
*/
|
|
21571
|
+
url: string;
|
|
21572
|
+
/**
|
|
21573
|
+
* 只导入这个分支;省略则按远端的默认分支。
|
|
21574
|
+
*/
|
|
21575
|
+
branch?: string;
|
|
21576
|
+
/**
|
|
21577
|
+
* 浅导入的提交深度;省略则导入完整历史。
|
|
21578
|
+
*/
|
|
21579
|
+
depth?: number;
|
|
21580
|
+
};
|
|
21581
|
+
};
|
|
21188
21582
|
/**
|
|
21189
21583
|
* 一个包:库里的一个技能或插件,带它的最新版本和累计下载量。
|
|
21190
21584
|
*/
|
|
@@ -21206,9 +21600,9 @@ export type RegistryPackage = {
|
|
|
21206
21600
|
*/
|
|
21207
21601
|
name: string;
|
|
21208
21602
|
/**
|
|
21209
|
-
*
|
|
21603
|
+
* 包的种类;技能、插件,或 git 仓库。
|
|
21210
21604
|
*/
|
|
21211
|
-
kind: 'skill' | 'plugin';
|
|
21605
|
+
kind: 'skill' | 'plugin' | 'git';
|
|
21212
21606
|
/**
|
|
21213
21607
|
* 给人看的标题;来自上传内容或发布时的 title,没有时是 null。
|
|
21214
21608
|
*/
|
|
@@ -21233,6 +21627,22 @@ export type RegistryPackage = {
|
|
|
21233
21627
|
* 这个包 archive 下载的累计次数,每次 archive 调用加一。
|
|
21234
21628
|
*/
|
|
21235
21629
|
downloads: number;
|
|
21630
|
+
/**
|
|
21631
|
+
* 只有 git 包才有这个字段,固定为 git;技能和插件没有。
|
|
21632
|
+
*/
|
|
21633
|
+
format?: 'git';
|
|
21634
|
+
/**
|
|
21635
|
+
* 只有 git 包才有;git clone 和 git push 用的地址,在我们自己的域名下(registry.deepraxis.com/git/...),认证见 packages.git-credential。
|
|
21636
|
+
*/
|
|
21637
|
+
clone_url?: string;
|
|
21638
|
+
/**
|
|
21639
|
+
* 只有 git 包才有;默认分支名,建包时给,省略为 main。
|
|
21640
|
+
*/
|
|
21641
|
+
default_branch?: string;
|
|
21642
|
+
/**
|
|
21643
|
+
* 只有 git 包才有;受保护的分支或标签,不能用普通凭据更新或删除,默认只保护默认分支;用 PATCH 改。
|
|
21644
|
+
*/
|
|
21645
|
+
protected_refs?: Array<string>;
|
|
21236
21646
|
/**
|
|
21237
21647
|
* 包首次发布的时刻,ISO 8601 UTC。
|
|
21238
21648
|
*/
|
|
@@ -21292,6 +21702,44 @@ export type RegistryVersion = {
|
|
|
21292
21702
|
*/
|
|
21293
21703
|
create_time: string;
|
|
21294
21704
|
};
|
|
21705
|
+
/**
|
|
21706
|
+
* 换 git 凭据的请求体;只有 access 必填。
|
|
21707
|
+
*/
|
|
21708
|
+
export type RegistryGitCredentialInput = {
|
|
21709
|
+
/**
|
|
21710
|
+
* 凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。
|
|
21711
|
+
*/
|
|
21712
|
+
access: 'pull' | 'push' | 'push-protected';
|
|
21713
|
+
/**
|
|
21714
|
+
* 凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。
|
|
21715
|
+
*/
|
|
21716
|
+
ttl_seconds?: number;
|
|
21717
|
+
};
|
|
21718
|
+
/**
|
|
21719
|
+
* 一个签发好的 git 凭据:用 HTTP Basic 的用户名和密码访问 url。
|
|
21720
|
+
*/
|
|
21721
|
+
export type RegistryGitCredential = {
|
|
21722
|
+
/**
|
|
21723
|
+
* 对象类型标记,固定为 registry.git_credential。
|
|
21724
|
+
*/
|
|
21725
|
+
object: string;
|
|
21726
|
+
/**
|
|
21727
|
+
* 这个包的 git 地址,克隆和推送都用它,不含凭据。
|
|
21728
|
+
*/
|
|
21729
|
+
url: string;
|
|
21730
|
+
/**
|
|
21731
|
+
* HTTP Basic 的用户名,固定为 x-access-token。
|
|
21732
|
+
*/
|
|
21733
|
+
username: 'x-access-token';
|
|
21734
|
+
/**
|
|
21735
|
+
* HTTP Basic 的密码,一个到 expires_at 失效的凭据;敏感,只在这个响应里给出,不要写进日志、提交或 clone 后保留的 remote 地址。
|
|
21736
|
+
*/
|
|
21737
|
+
password: string;
|
|
21738
|
+
/**
|
|
21739
|
+
* 凭据失效的时刻,ISO 8601 UTC;过期后重新调用 git-credential。
|
|
21740
|
+
*/
|
|
21741
|
+
expires_at: string;
|
|
21742
|
+
};
|
|
21295
21743
|
/**
|
|
21296
21744
|
* 一段提交历史。
|
|
21297
21745
|
*/
|
|
@@ -21314,9 +21762,9 @@ export type RegistryGitLog = {
|
|
|
21314
21762
|
has_more: boolean;
|
|
21315
21763
|
};
|
|
21316
21764
|
/**
|
|
21317
|
-
* 一个 git
|
|
21765
|
+
* 一个 git 提交,需要时连同它改动的文件。
|
|
21318
21766
|
*/
|
|
21319
|
-
export type
|
|
21767
|
+
export type RegistryGitCommitDetail = {
|
|
21320
21768
|
/**
|
|
21321
21769
|
* 对象类型标记,固定为 registry.git.commit。
|
|
21322
21770
|
*/
|
|
@@ -21345,6 +21793,14 @@ export type RegistryGitCommit = {
|
|
|
21345
21793
|
* 父提交的对象 id,按顺序。
|
|
21346
21794
|
*/
|
|
21347
21795
|
parents: Array<string>;
|
|
21796
|
+
/**
|
|
21797
|
+
* 相对第一个父提交改动的文件;只在请求带 changed_files=true 时才有。
|
|
21798
|
+
*/
|
|
21799
|
+
changed_files?: Array<RegistryGitChangedFile>;
|
|
21800
|
+
/**
|
|
21801
|
+
* changed_files 被上限截断时为 true,此时不要当作改动的全部;只在请求带 changed_files=true 时才有。
|
|
21802
|
+
*/
|
|
21803
|
+
changed_files_truncated?: boolean;
|
|
21348
21804
|
};
|
|
21349
21805
|
/**
|
|
21350
21806
|
* 一个树的条目清单。
|
|
@@ -21363,6 +21819,94 @@ export type RegistryGitTree = {
|
|
|
21363
21819
|
*/
|
|
21364
21820
|
entries: Array<RegistryGitTreeEntry>;
|
|
21365
21821
|
};
|
|
21822
|
+
/**
|
|
21823
|
+
* 一页分支和标签。
|
|
21824
|
+
*/
|
|
21825
|
+
export type RegistryGitRefs = {
|
|
21826
|
+
/**
|
|
21827
|
+
* 对象类型标记,固定为 registry.git.refs。
|
|
21828
|
+
*/
|
|
21829
|
+
object: string;
|
|
21830
|
+
/**
|
|
21831
|
+
* 这一页的引用,按名字排序。
|
|
21832
|
+
*/
|
|
21833
|
+
refs: Array<RegistryGitRefItem>;
|
|
21834
|
+
/**
|
|
21835
|
+
* 是否还有下一页(page 加 1 取下一页)。
|
|
21836
|
+
*/
|
|
21837
|
+
has_more: boolean;
|
|
21838
|
+
};
|
|
21839
|
+
/**
|
|
21840
|
+
* 一个引用换成的提交 id。
|
|
21841
|
+
*/
|
|
21842
|
+
export type RegistryGitResolvedRef = {
|
|
21843
|
+
/**
|
|
21844
|
+
* 对象类型标记,固定为 registry.git.resolved_ref。
|
|
21845
|
+
*/
|
|
21846
|
+
object: string;
|
|
21847
|
+
/**
|
|
21848
|
+
* 请求里的引用,原样返回。
|
|
21849
|
+
*/
|
|
21850
|
+
ref: string;
|
|
21851
|
+
/**
|
|
21852
|
+
* 这个引用指向的提交 id。
|
|
21853
|
+
*/
|
|
21854
|
+
sha: string;
|
|
21855
|
+
};
|
|
21856
|
+
/**
|
|
21857
|
+
* 两个引用的比较结果。
|
|
21858
|
+
*/
|
|
21859
|
+
export type RegistryGitComparison = {
|
|
21860
|
+
/**
|
|
21861
|
+
* 对象类型标记,固定为 registry.git.comparison。
|
|
21862
|
+
*/
|
|
21863
|
+
object: string;
|
|
21864
|
+
/**
|
|
21865
|
+
* head 相对 base 的关系。
|
|
21866
|
+
*/
|
|
21867
|
+
status: 'identical' | 'ahead' | 'behind' | 'diverged';
|
|
21868
|
+
/**
|
|
21869
|
+
* 找到的最近共同祖先的提交 id;没有找到(历史无关,或读取上限内没走到)时为 null。
|
|
21870
|
+
*/
|
|
21871
|
+
merge_base: string | null;
|
|
21872
|
+
/**
|
|
21873
|
+
* head 相对 merge_base 改动的文件;merge_base 为 null 时相对 base。
|
|
21874
|
+
*/
|
|
21875
|
+
files: Array<RegistryGitChangedFile>;
|
|
21876
|
+
/**
|
|
21877
|
+
* head 比 base 多出的提交,最新的在前。
|
|
21878
|
+
*/
|
|
21879
|
+
commits: Array<RegistryGitComparedCommit>;
|
|
21880
|
+
/**
|
|
21881
|
+
* 为 true 表示 files 被上限截断,或没找到 merge_base 而无法确定 files;此时不要当作完整结果。
|
|
21882
|
+
*/
|
|
21883
|
+
truncated: boolean;
|
|
21884
|
+
/**
|
|
21885
|
+
* 为 true 表示 commits 不完整(读取上限,或合并提交藏起了被合并分支上的提交);此时不要当作 head 多出的全部提交。
|
|
21886
|
+
*/
|
|
21887
|
+
commits_truncated: boolean;
|
|
21888
|
+
};
|
|
21889
|
+
/**
|
|
21890
|
+
* 一个提交或树下的全部条目。
|
|
21891
|
+
*/
|
|
21892
|
+
export type RegistryGitTreeRecursive = {
|
|
21893
|
+
/**
|
|
21894
|
+
* 对象类型标记,固定为 registry.git.tree_recursive。
|
|
21895
|
+
*/
|
|
21896
|
+
object: string;
|
|
21897
|
+
/**
|
|
21898
|
+
* 请求里读的提交或树对象 id,原样返回。
|
|
21899
|
+
*/
|
|
21900
|
+
sha: string;
|
|
21901
|
+
/**
|
|
21902
|
+
* 为 true 表示撞到条目或树读取上限,entries 只是前一部分,不是全部。
|
|
21903
|
+
*/
|
|
21904
|
+
truncated: boolean;
|
|
21905
|
+
/**
|
|
21906
|
+
* 全部条目,按路径排序,目录也在其中。
|
|
21907
|
+
*/
|
|
21908
|
+
entries: Array<RegistryGitTreeNode>;
|
|
21909
|
+
};
|
|
21366
21910
|
/**
|
|
21367
21911
|
* 一个版本的文件清单;文件不多,一次返回全部。
|
|
21368
21912
|
*/
|
|
@@ -21513,6 +22057,59 @@ export type SandboxNewSandboxV2 = {
|
|
|
21513
22057
|
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
21514
22058
|
*/
|
|
21515
22059
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
22060
|
+
/**
|
|
22061
|
+
* 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.
|
|
22062
|
+
*/
|
|
22063
|
+
ephemeral?: boolean;
|
|
22064
|
+
/**
|
|
22065
|
+
* 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.
|
|
22066
|
+
*/
|
|
22067
|
+
size?: string;
|
|
22068
|
+
/**
|
|
22069
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
22070
|
+
*/
|
|
22071
|
+
name?: string;
|
|
22072
|
+
/**
|
|
22073
|
+
* 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.
|
|
22074
|
+
*/
|
|
22075
|
+
waitForReady?: boolean;
|
|
22076
|
+
/**
|
|
22077
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
22078
|
+
*/
|
|
22079
|
+
onExpire?: 'kill' | 'pause';
|
|
22080
|
+
/**
|
|
22081
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
22082
|
+
*/
|
|
22083
|
+
idleTimeout?: number;
|
|
22084
|
+
/**
|
|
22085
|
+
* 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.
|
|
22086
|
+
*/
|
|
22087
|
+
idleActivity?: 'traffic' | 'caller';
|
|
22088
|
+
/**
|
|
22089
|
+
* 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.
|
|
22090
|
+
*/
|
|
22091
|
+
sku?: string;
|
|
22092
|
+
/**
|
|
22093
|
+
* 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.
|
|
22094
|
+
*/
|
|
22095
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
22096
|
+
/**
|
|
22097
|
+
* 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.
|
|
22098
|
+
*/
|
|
22099
|
+
interruptible?: boolean;
|
|
22100
|
+
/**
|
|
22101
|
+
* 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.
|
|
22102
|
+
*/
|
|
22103
|
+
onLoss?: 'fail' | 'rebuild';
|
|
22104
|
+
/**
|
|
22105
|
+
* 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.
|
|
22106
|
+
*/
|
|
22107
|
+
outputs?: Array<{
|
|
22108
|
+
/**
|
|
22109
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
22110
|
+
*/
|
|
22111
|
+
path: string;
|
|
22112
|
+
}>;
|
|
21516
22113
|
};
|
|
21517
22114
|
/**
|
|
21518
22115
|
* Sandbox created from a template.
|
|
@@ -21555,7 +22152,7 @@ export type SandboxSandbox = {
|
|
|
21555
22152
|
machine?: 'light' | 'full' | 'none';
|
|
21556
22153
|
};
|
|
21557
22154
|
/**
|
|
21558
|
-
*
|
|
22155
|
+
* running while the sandbox's machine is up and drivable, paused while it is stopped and can be resumed. On the own face an android phone (templateID "android") has three device states of its own, because its machine running is not yet the phone program's readiness: starting while the vendor is still building the machine, booting while the machine runs but the phone program has not connected on the sandbox's control connection, and running once it has. Its detail and list rows also carry readyAt, the epoch-milliseconds instant the program said hello, null until it does; a linux sandbox only ever reads running or paused.
|
|
21559
22156
|
*/
|
|
21560
22157
|
export type SandboxSandboxState = 'running' | 'paused';
|
|
21561
22158
|
/**
|
|
@@ -24290,7 +24887,7 @@ export type VaultCreateSecretInput = {
|
|
|
24290
24887
|
*/
|
|
24291
24888
|
value: string;
|
|
24292
24889
|
/**
|
|
24293
|
-
* Allowed destinations for the secret.
|
|
24890
|
+
* 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
24891
|
*/
|
|
24295
24892
|
allowed_hosts?: Array<string>;
|
|
24296
24893
|
/**
|
|
@@ -24334,7 +24931,7 @@ export type VaultSecret = {
|
|
|
24334
24931
|
*/
|
|
24335
24932
|
kind: 'static' | 'oauth';
|
|
24336
24933
|
/**
|
|
24337
|
-
* Allowed destinations for the secret.
|
|
24934
|
+
* 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
24935
|
*/
|
|
24339
24936
|
allowed_hosts: Array<string>;
|
|
24340
24937
|
/**
|
|
@@ -24427,7 +25024,7 @@ export type VaultUpdateSecretInput = {
|
|
|
24427
25024
|
*/
|
|
24428
25025
|
value?: string;
|
|
24429
25026
|
/**
|
|
24430
|
-
* Allowed destinations for the secret. Omit it to keep the current list; an empty list removes the declaration,
|
|
25027
|
+
* 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
25028
|
*/
|
|
24432
25029
|
allowed_hosts?: Array<string>;
|
|
24433
25030
|
/**
|
|
@@ -26302,49 +26899,44 @@ export type AgentSseData = {
|
|
|
26302
26899
|
* 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
26900
|
*/
|
|
26304
26901
|
source?: 'app' | 'codemode';
|
|
26305
|
-
} | {
|
|
26902
|
+
} | (unknown & {
|
|
26306
26903
|
/**
|
|
26307
|
-
*
|
|
26904
|
+
* Unique identifier for this event.
|
|
26308
26905
|
*/
|
|
26309
26906
|
id: string;
|
|
26310
26907
|
/**
|
|
26311
|
-
*
|
|
26908
|
+
* UserToolConfirmationResult enum
|
|
26312
26909
|
*/
|
|
26313
|
-
|
|
26910
|
+
result: 'allow' | 'deny';
|
|
26314
26911
|
/**
|
|
26315
|
-
*
|
|
26912
|
+
* The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
|
|
26913
|
+
* corresponds to, which can be found in the last `session.status_idle`
|
|
26914
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
26915
|
+
* `stop_reason.event_ids` field.
|
|
26316
26916
|
*/
|
|
26317
|
-
|
|
26917
|
+
tool_use_id: string;
|
|
26318
26918
|
/**
|
|
26319
|
-
* The
|
|
26919
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
26320
26920
|
*/
|
|
26321
|
-
|
|
26921
|
+
type: 'user.tool_confirmation';
|
|
26322
26922
|
/**
|
|
26323
|
-
*
|
|
26923
|
+
* 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
26924
|
*/
|
|
26325
|
-
|
|
26925
|
+
deny_message?: string;
|
|
26326
26926
|
/**
|
|
26327
|
-
*
|
|
26927
|
+
* A timestamp in RFC 3339 format
|
|
26328
26928
|
*/
|
|
26329
|
-
|
|
26330
|
-
[key: string]: string;
|
|
26331
|
-
};
|
|
26929
|
+
processed_at?: null | string;
|
|
26332
26930
|
/**
|
|
26333
|
-
*
|
|
26931
|
+
* Set by the server to the subagent thread this confirmation was routed to.
|
|
26932
|
+
* Omitted when it was routed to the primary thread.
|
|
26334
26933
|
*/
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
/**
|
|
26342
|
-
* Free text the user added to their choice.
|
|
26343
|
-
*/
|
|
26344
|
-
notes?: string;
|
|
26345
|
-
};
|
|
26346
|
-
};
|
|
26347
|
-
} | {
|
|
26934
|
+
session_thread_id?: null | string;
|
|
26935
|
+
/**
|
|
26936
|
+
* 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.
|
|
26937
|
+
*/
|
|
26938
|
+
permission_mode?: 'yolo';
|
|
26939
|
+
}) | {
|
|
26348
26940
|
/**
|
|
26349
26941
|
* Unique identifier for this event.
|
|
26350
26942
|
*/
|
|
@@ -26987,6 +27579,76 @@ export type AgentSseData = {
|
|
|
26987
27579
|
message: string;
|
|
26988
27580
|
};
|
|
26989
27581
|
};
|
|
27582
|
+
/**
|
|
27583
|
+
* One amount in force for one price item.
|
|
27584
|
+
*/
|
|
27585
|
+
export type BillingPriceEntry = {
|
|
27586
|
+
/**
|
|
27587
|
+
* The price item key, stable and never reused, for example router:default/deepseek-v4-pro:input or sandbox:cpu_second.
|
|
27588
|
+
*/
|
|
27589
|
+
id: string;
|
|
27590
|
+
/**
|
|
27591
|
+
* The item key's namespace — the product that owns the meter (router, sandbox, search, browser, media, knowledge, agent, …); group the table by this.
|
|
27592
|
+
*/
|
|
27593
|
+
product: string;
|
|
27594
|
+
/**
|
|
27595
|
+
* The item key's subject when it has one, such as default/deepseek-v4-pro; null for a two-segment key.
|
|
27596
|
+
*/
|
|
27597
|
+
subject: string;
|
|
27598
|
+
/**
|
|
27599
|
+
* The item's display name from the price book.
|
|
27600
|
+
*/
|
|
27601
|
+
name: string;
|
|
27602
|
+
/**
|
|
27603
|
+
* The meter's unit as billing records it, for example token, cpu_second or request.
|
|
27604
|
+
*/
|
|
27605
|
+
unit: string;
|
|
27606
|
+
/**
|
|
27607
|
+
* 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.
|
|
27608
|
+
*/
|
|
27609
|
+
per: string;
|
|
27610
|
+
/**
|
|
27611
|
+
* When this amount took effect. It is at or before now by construction.
|
|
27612
|
+
*/
|
|
27613
|
+
effective_from: string;
|
|
27614
|
+
/**
|
|
27615
|
+
* Which amount of a multi-amount model this entry is; null when the item has exactly one amount.
|
|
27616
|
+
*/
|
|
27617
|
+
variant: {
|
|
27618
|
+
/**
|
|
27619
|
+
* This entry is one tier of a tiered price, chosen by the meter's tier selector.
|
|
27620
|
+
*/
|
|
27621
|
+
kind: 'tier';
|
|
27622
|
+
/**
|
|
27623
|
+
* The tier's upper bound of the selector; the last tier is null (no upper bound).
|
|
27624
|
+
*/
|
|
27625
|
+
up_to: string;
|
|
27626
|
+
} | {
|
|
27627
|
+
/**
|
|
27628
|
+
* This entry is one cell of a matrix price, priced for the dimension values in when.
|
|
27629
|
+
*/
|
|
27630
|
+
kind: 'cell';
|
|
27631
|
+
/**
|
|
27632
|
+
* The dimension values this cell prices, for example resolution 1080p.
|
|
27633
|
+
*/
|
|
27634
|
+
when: {
|
|
27635
|
+
[key: string]: string;
|
|
27636
|
+
};
|
|
27637
|
+
} | {
|
|
27638
|
+
/**
|
|
27639
|
+
* This entry is the matrix's default amount, used when no cell matches.
|
|
27640
|
+
*/
|
|
27641
|
+
kind: 'default';
|
|
27642
|
+
};
|
|
27643
|
+
/**
|
|
27644
|
+
* 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.
|
|
27645
|
+
*/
|
|
27646
|
+
usd: string;
|
|
27647
|
+
/**
|
|
27648
|
+
* 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.
|
|
27649
|
+
*/
|
|
27650
|
+
cny: string;
|
|
27651
|
+
};
|
|
26990
27652
|
/**
|
|
26991
27653
|
* File expiration policy
|
|
26992
27654
|
*
|
|
@@ -31725,6 +32387,149 @@ export type OrganizationMetric = {
|
|
|
31725
32387
|
*/
|
|
31726
32388
|
unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
|
|
31727
32389
|
};
|
|
32390
|
+
/**
|
|
32391
|
+
* One stored revision of a subject's spec, kept for history.
|
|
32392
|
+
*/
|
|
32393
|
+
export type OrganizationSpecRevision = {
|
|
32394
|
+
kind: OrganizationSpecKind;
|
|
32395
|
+
/**
|
|
32396
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32397
|
+
*/
|
|
32398
|
+
id: string;
|
|
32399
|
+
/**
|
|
32400
|
+
* Revision number of this stored body, rising from 1; diff and get accept it as revision.
|
|
32401
|
+
*/
|
|
32402
|
+
revision: number;
|
|
32403
|
+
/**
|
|
32404
|
+
* 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.
|
|
32405
|
+
*/
|
|
32406
|
+
spec: {
|
|
32407
|
+
[key: string]: unknown;
|
|
32408
|
+
};
|
|
32409
|
+
/**
|
|
32410
|
+
* UTC instant (RFC 3339) when this revision was written.
|
|
32411
|
+
*/
|
|
32412
|
+
create_time: string;
|
|
32413
|
+
/**
|
|
32414
|
+
* Actor address that wrote this revision (human:usr_... or agent:agent_...).
|
|
32415
|
+
*/
|
|
32416
|
+
created_by: string;
|
|
32417
|
+
};
|
|
32418
|
+
/**
|
|
32419
|
+
* One difference between two revisions of a spec.
|
|
32420
|
+
*/
|
|
32421
|
+
export type OrganizationSpecChange = {
|
|
32422
|
+
/**
|
|
32423
|
+
* Path of the changed value inside the spec body, such as agent.model or repositories[github:org/repo].
|
|
32424
|
+
*/
|
|
32425
|
+
path: string;
|
|
32426
|
+
/**
|
|
32427
|
+
* What happened at this path between the two revisions.
|
|
32428
|
+
*/
|
|
32429
|
+
op: 'added' | 'removed' | 'changed';
|
|
32430
|
+
/**
|
|
32431
|
+
* The value at this path in the earlier revision, verbatim; absent when the value was added.
|
|
32432
|
+
*/
|
|
32433
|
+
before?: unknown;
|
|
32434
|
+
/**
|
|
32435
|
+
* The value at this path in the later revision, verbatim; absent when the value was removed.
|
|
32436
|
+
*/
|
|
32437
|
+
after?: unknown;
|
|
32438
|
+
};
|
|
32439
|
+
/**
|
|
32440
|
+
* One layer the effective spec was merged from, least specific first.
|
|
32441
|
+
*/
|
|
32442
|
+
export type OrganizationSpecLayerRef = {
|
|
32443
|
+
kind: OrganizationSpecKind;
|
|
32444
|
+
/**
|
|
32445
|
+
* The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32446
|
+
*/
|
|
32447
|
+
id: string;
|
|
32448
|
+
/**
|
|
32449
|
+
* Revision of that layer's spec at the time it was merged.
|
|
32450
|
+
*/
|
|
32451
|
+
revision: number;
|
|
32452
|
+
};
|
|
32453
|
+
/**
|
|
32454
|
+
* One document block collected from a layer of the effective spec, kept whole and never merged.
|
|
32455
|
+
*/
|
|
32456
|
+
export type OrganizationSpecDocument = {
|
|
32457
|
+
/**
|
|
32458
|
+
* The layer the document came from, as kind:id such as job:jpr_123.
|
|
32459
|
+
*/
|
|
32460
|
+
from: string;
|
|
32461
|
+
/**
|
|
32462
|
+
* Revision of that layer's spec the document was read at.
|
|
32463
|
+
*/
|
|
32464
|
+
revision: number;
|
|
32465
|
+
/**
|
|
32466
|
+
* The document text itself, inferred from memory rather than merged into the capability blocks.
|
|
32467
|
+
*/
|
|
32468
|
+
text: string;
|
|
32469
|
+
};
|
|
32470
|
+
/**
|
|
32471
|
+
* One action the reconciler would take for a block in a dry run.
|
|
32472
|
+
*/
|
|
32473
|
+
export type OrganizationReconcileAction = {
|
|
32474
|
+
/**
|
|
32475
|
+
* Name of the block this action is about, such as agent.
|
|
32476
|
+
*/
|
|
32477
|
+
block: string;
|
|
32478
|
+
/**
|
|
32479
|
+
* What the reconciler would do with this block.
|
|
32480
|
+
*/
|
|
32481
|
+
action: 'hold' | 'update' | 'none' | 'pending' | 'blocked';
|
|
32482
|
+
/**
|
|
32483
|
+
* The value the action would write, or the reason it is blocked, verbatim.
|
|
32484
|
+
*/
|
|
32485
|
+
detail: unknown;
|
|
32486
|
+
};
|
|
32487
|
+
/**
|
|
32488
|
+
* One capability block and the state the reconciler last left it in.
|
|
32489
|
+
*/
|
|
32490
|
+
export type OrganizationReconcileItem = {
|
|
32491
|
+
/**
|
|
32492
|
+
* Name of the capability block this row is about, such as agent or computer.
|
|
32493
|
+
*/
|
|
32494
|
+
block: string;
|
|
32495
|
+
/**
|
|
32496
|
+
* What the reconciler last did with this block.
|
|
32497
|
+
*/
|
|
32498
|
+
state: 'ready' | 'pending' | 'failed' | 'waiting_human' | 'paused';
|
|
32499
|
+
/**
|
|
32500
|
+
* The resource the block was applied to, such as agent:agent_... ; null before it is bound.
|
|
32501
|
+
*/
|
|
32502
|
+
binding: string | null;
|
|
32503
|
+
/**
|
|
32504
|
+
* Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
|
|
32505
|
+
*/
|
|
32506
|
+
message: string | null;
|
|
32507
|
+
};
|
|
32508
|
+
/**
|
|
32509
|
+
* One value where what is applied differs from what the specs want.
|
|
32510
|
+
*/
|
|
32511
|
+
export type OrganizationReconcileDrift = {
|
|
32512
|
+
/**
|
|
32513
|
+
* Name of the block the drifted value belongs to, such as agent.
|
|
32514
|
+
*/
|
|
32515
|
+
block: string;
|
|
32516
|
+
/**
|
|
32517
|
+
* Path of the value inside the block, such as model.
|
|
32518
|
+
*/
|
|
32519
|
+
field: string;
|
|
32520
|
+
/**
|
|
32521
|
+
* The value currently applied, verbatim; null when nothing is applied there yet.
|
|
32522
|
+
*/
|
|
32523
|
+
found: unknown;
|
|
32524
|
+
/**
|
|
32525
|
+
* The value the specs resolved to, verbatim.
|
|
32526
|
+
*/
|
|
32527
|
+
want: unknown;
|
|
32528
|
+
/**
|
|
32529
|
+
* UTC instant (RFC 3339) from which the drift has been observed.
|
|
32530
|
+
*/
|
|
32531
|
+
since: string;
|
|
32532
|
+
};
|
|
31728
32533
|
/**
|
|
31729
32534
|
* Your own string key/value pairs stored with the sandbox; usable as a filter in listSandboxes.
|
|
31730
32535
|
*/
|
|
@@ -35188,14 +35993,51 @@ export type DevopsTestPlanPackage = {
|
|
|
35188
35993
|
*/
|
|
35189
35994
|
run?: string;
|
|
35190
35995
|
};
|
|
35996
|
+
/**
|
|
35997
|
+
* 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.
|
|
35998
|
+
*/
|
|
35999
|
+
export type DevopsTestPlanCase = {
|
|
36000
|
+
/**
|
|
36001
|
+
* The case id as the catalog holds it; the unit evidence is filed under.
|
|
36002
|
+
*/
|
|
36003
|
+
case: string;
|
|
36004
|
+
/**
|
|
36005
|
+
* Repository-relative directory of the package the scenario lives in.
|
|
36006
|
+
*/
|
|
36007
|
+
package: string;
|
|
36008
|
+
/**
|
|
36009
|
+
* The scenario title, to name a failed or missing case to a person.
|
|
36010
|
+
*/
|
|
36011
|
+
title: string;
|
|
36012
|
+
/**
|
|
36013
|
+
* Whether this diff requires evidence for the case. Only required cases can hold a merge.
|
|
36014
|
+
*/
|
|
36015
|
+
required: boolean;
|
|
36016
|
+
/**
|
|
36017
|
+
* 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.
|
|
36018
|
+
*/
|
|
36019
|
+
reason: 'no-impact' | 'deps-changed' | 'always-affected' | 'unaffected';
|
|
36020
|
+
/**
|
|
36021
|
+
* 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.
|
|
36022
|
+
*/
|
|
36023
|
+
depsHash: string;
|
|
36024
|
+
/**
|
|
36025
|
+
* What the newest recorded result says at this deps hash: passed, failed, or missing when no run has recorded the case there.
|
|
36026
|
+
*/
|
|
36027
|
+
evidence: 'passed' | 'failed' | 'missing';
|
|
36028
|
+
/**
|
|
36029
|
+
* The run the answering result came from; absent when evidence is missing.
|
|
36030
|
+
*/
|
|
36031
|
+
run?: string;
|
|
36032
|
+
};
|
|
35191
36033
|
/**
|
|
35192
36034
|
* The git repository a project is bound to, and how far the service's mirror of it has been read.
|
|
35193
36035
|
*/
|
|
35194
36036
|
export type DevopsRepositoryRef = {
|
|
35195
36037
|
/**
|
|
35196
|
-
* The git host serving this repository;
|
|
36038
|
+
* The git host serving this repository; the value decides how fullName is read.
|
|
35197
36039
|
*/
|
|
35198
|
-
provider: 'github';
|
|
36040
|
+
provider: 'github' | 'platform';
|
|
35199
36041
|
/**
|
|
35200
36042
|
* Owner and repository name as the git host spells them, which is what a person sees in a clone URL.
|
|
35201
36043
|
*/
|
|
@@ -35205,7 +36047,7 @@ export type DevopsRepositoryRef = {
|
|
|
35205
36047
|
*/
|
|
35206
36048
|
defaultBranch: string;
|
|
35207
36049
|
/**
|
|
35208
|
-
* The git host connection that authorizes reads of this repository;
|
|
36050
|
+
* 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
36051
|
*/
|
|
35210
36052
|
connection: string;
|
|
35211
36053
|
/**
|
|
@@ -35238,6 +36080,7 @@ export type DevopsProjectSettings = {
|
|
|
35238
36080
|
* 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
36081
|
*/
|
|
35240
36082
|
requireGate: boolean;
|
|
36083
|
+
gate?: DevopsGatePolicy;
|
|
35241
36084
|
};
|
|
35242
36085
|
/**
|
|
35243
36086
|
* When the project cuts releases by itself, in a five-field cron and the zone it is read in.
|
|
@@ -35252,6 +36095,42 @@ export type DevopsReleaseSchedule = {
|
|
|
35252
36095
|
*/
|
|
35253
36096
|
timeZone: string;
|
|
35254
36097
|
};
|
|
36098
|
+
/**
|
|
36099
|
+
* 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.
|
|
36100
|
+
*/
|
|
36101
|
+
export type DevopsGatePolicy = {
|
|
36102
|
+
/**
|
|
36103
|
+
* 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.
|
|
36104
|
+
*/
|
|
36105
|
+
tests?: 'evidence' | 'off';
|
|
36106
|
+
/**
|
|
36107
|
+
* One rule per gate check: its mode (enforce counts it, evaluate shows it without counting, off hides it) and whether an unavailable check blocks.
|
|
36108
|
+
*/
|
|
36109
|
+
rules?: Array<{
|
|
36110
|
+
/**
|
|
36111
|
+
* The gate check this rule governs.
|
|
36112
|
+
*/
|
|
36113
|
+
check: string;
|
|
36114
|
+
/**
|
|
36115
|
+
* enforce counts the check toward the gate, evaluate records it without counting, off drops it.
|
|
36116
|
+
*/
|
|
36117
|
+
mode: 'enforce' | 'evaluate' | 'off';
|
|
36118
|
+
/**
|
|
36119
|
+
* What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
|
|
36120
|
+
*/
|
|
36121
|
+
whenUnavailable: 'fail-closed' | 'fail-open';
|
|
36122
|
+
/**
|
|
36123
|
+
* The check's own parameters; passed through unread.
|
|
36124
|
+
*/
|
|
36125
|
+
params?: {
|
|
36126
|
+
[key: string]: unknown;
|
|
36127
|
+
};
|
|
36128
|
+
}>;
|
|
36129
|
+
/**
|
|
36130
|
+
* Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
|
|
36131
|
+
*/
|
|
36132
|
+
bypass?: Array<string>;
|
|
36133
|
+
};
|
|
35255
36134
|
/**
|
|
35256
36135
|
* One commit inside a release, so a reader can see what is about to ship without leaving this answer.
|
|
35257
36136
|
*/
|
|
@@ -37283,6 +38162,10 @@ export type MediaSearchAsset = {
|
|
|
37283
38162
|
* 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
38163
|
*/
|
|
37285
38164
|
segments?: number;
|
|
38165
|
+
/**
|
|
38166
|
+
* 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.
|
|
38167
|
+
*/
|
|
38168
|
+
duration?: number;
|
|
37286
38169
|
};
|
|
37287
38170
|
};
|
|
37288
38171
|
};
|
|
@@ -37573,6 +38456,14 @@ export type MediaSpeechCreateInput = {
|
|
|
37573
38456
|
* Language of the text, when the voice supports several.
|
|
37574
38457
|
*/
|
|
37575
38458
|
language?: string;
|
|
38459
|
+
/**
|
|
38460
|
+
* 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.
|
|
38461
|
+
*/
|
|
38462
|
+
model?: string;
|
|
38463
|
+
/**
|
|
38464
|
+
* 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.
|
|
38465
|
+
*/
|
|
38466
|
+
tier?: MediaMediaTier;
|
|
37576
38467
|
};
|
|
37577
38468
|
/**
|
|
37578
38469
|
* Body of a character element.
|
|
@@ -37924,6 +38815,56 @@ export type RegistryRegistryError = {
|
|
|
37924
38815
|
};
|
|
37925
38816
|
};
|
|
37926
38817
|
};
|
|
38818
|
+
/**
|
|
38819
|
+
* 一个 git 提交。
|
|
38820
|
+
*/
|
|
38821
|
+
export type RegistryGitCommit = {
|
|
38822
|
+
/**
|
|
38823
|
+
* 对象类型标记,固定为 registry.git.commit。
|
|
38824
|
+
*/
|
|
38825
|
+
object: string;
|
|
38826
|
+
/**
|
|
38827
|
+
* 提交的对象 id。
|
|
38828
|
+
*/
|
|
38829
|
+
sha: string;
|
|
38830
|
+
/**
|
|
38831
|
+
* 提交信息原文,含换行。
|
|
38832
|
+
*/
|
|
38833
|
+
message: string;
|
|
38834
|
+
/**
|
|
38835
|
+
* 作者名;仓库没有给出名字时是空串。
|
|
38836
|
+
*/
|
|
38837
|
+
author: string;
|
|
38838
|
+
/**
|
|
38839
|
+
* 作者邮箱;仓库给了才有。
|
|
38840
|
+
*/
|
|
38841
|
+
author_email?: string;
|
|
38842
|
+
/**
|
|
38843
|
+
* 提交时间的 RFC 3339 时间戳;后端没给时是空串。
|
|
38844
|
+
*/
|
|
38845
|
+
committed_at: string;
|
|
38846
|
+
/**
|
|
38847
|
+
* 父提交的对象 id,按顺序。
|
|
38848
|
+
*/
|
|
38849
|
+
parents: Array<string>;
|
|
38850
|
+
};
|
|
38851
|
+
/**
|
|
38852
|
+
* 一次提交或比较改动的一个文件。
|
|
38853
|
+
*/
|
|
38854
|
+
export type RegistryGitChangedFile = {
|
|
38855
|
+
/**
|
|
38856
|
+
* 文件路径,相对仓库根;改名时是新路径。
|
|
38857
|
+
*/
|
|
38858
|
+
path: string;
|
|
38859
|
+
/**
|
|
38860
|
+
* 这个文件怎么变的。
|
|
38861
|
+
*/
|
|
38862
|
+
status: 'added' | 'modified' | 'removed' | 'renamed';
|
|
38863
|
+
/**
|
|
38864
|
+
* 改名前的路径;只有 status 为 renamed 时才有。
|
|
38865
|
+
*/
|
|
38866
|
+
previous_path?: string;
|
|
38867
|
+
};
|
|
37927
38868
|
/**
|
|
37928
38869
|
* 树里的一个条目。
|
|
37929
38870
|
*/
|
|
@@ -37949,6 +38890,65 @@ export type RegistryGitTreeEntry = {
|
|
|
37949
38890
|
*/
|
|
37950
38891
|
size?: number;
|
|
37951
38892
|
};
|
|
38893
|
+
/**
|
|
38894
|
+
* 一个分支或标签。
|
|
38895
|
+
*/
|
|
38896
|
+
export type RegistryGitRefItem = {
|
|
38897
|
+
/**
|
|
38898
|
+
* 引用的全名,分支以 refs/heads/ 开头,标签以 refs/tags/ 开头。
|
|
38899
|
+
*/
|
|
38900
|
+
ref: string;
|
|
38901
|
+
/**
|
|
38902
|
+
* 它指向的提交 id;带注解的标签给的是标签下面的提交。
|
|
38903
|
+
*/
|
|
38904
|
+
sha: string;
|
|
38905
|
+
/**
|
|
38906
|
+
* 引用的种类,分支或标签,由全名的前缀决定。
|
|
38907
|
+
*/
|
|
38908
|
+
type: 'branch' | 'tag';
|
|
38909
|
+
};
|
|
38910
|
+
/**
|
|
38911
|
+
* 比较结果里的一个提交。
|
|
38912
|
+
*/
|
|
38913
|
+
export type RegistryGitComparedCommit = {
|
|
38914
|
+
/**
|
|
38915
|
+
* 提交的对象 id。
|
|
38916
|
+
*/
|
|
38917
|
+
sha: string;
|
|
38918
|
+
/**
|
|
38919
|
+
* 提交信息的第一行。
|
|
38920
|
+
*/
|
|
38921
|
+
subject: string;
|
|
38922
|
+
/**
|
|
38923
|
+
* 这个提交的作者名;仓库没有给出名字时是空串。
|
|
38924
|
+
*/
|
|
38925
|
+
author: string;
|
|
38926
|
+
};
|
|
38927
|
+
/**
|
|
38928
|
+
* 递归树里的一个条目。
|
|
38929
|
+
*/
|
|
38930
|
+
export type RegistryGitTreeNode = {
|
|
38931
|
+
/**
|
|
38932
|
+
* 相对根的完整路径,用斜杠分隔。
|
|
38933
|
+
*/
|
|
38934
|
+
path: string;
|
|
38935
|
+
/**
|
|
38936
|
+
* 条目指向的对象类型;commit 是子模块,不展开。
|
|
38937
|
+
*/
|
|
38938
|
+
type: 'blob' | 'tree' | 'commit';
|
|
38939
|
+
/**
|
|
38940
|
+
* git 的模式位,例如 100644、100755、120000 或 040000。
|
|
38941
|
+
*/
|
|
38942
|
+
mode: string;
|
|
38943
|
+
/**
|
|
38944
|
+
* 条目指向的对象 id。
|
|
38945
|
+
*/
|
|
38946
|
+
sha: string;
|
|
38947
|
+
/**
|
|
38948
|
+
* 对象大小(字节),后端给出时才有。
|
|
38949
|
+
*/
|
|
38950
|
+
size?: number;
|
|
38951
|
+
};
|
|
37952
38952
|
/**
|
|
37953
38953
|
* 一个版本解压后的一个文件条目。
|
|
37954
38954
|
*/
|
|
@@ -47068,6 +48068,10 @@ export type MediaAssetWritable = {
|
|
|
47068
48068
|
* 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
48069
|
*/
|
|
47070
48070
|
segments?: number;
|
|
48071
|
+
/**
|
|
48072
|
+
* 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.
|
|
48073
|
+
*/
|
|
48074
|
+
duration?: number;
|
|
47071
48075
|
};
|
|
47072
48076
|
};
|
|
47073
48077
|
};
|
|
@@ -47621,6 +48625,10 @@ export type MediaSearchAssetWritable = {
|
|
|
47621
48625
|
* 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
48626
|
*/
|
|
47623
48627
|
segments?: number;
|
|
48628
|
+
/**
|
|
48629
|
+
* 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.
|
|
48630
|
+
*/
|
|
48631
|
+
duration?: number;
|
|
47624
48632
|
};
|
|
47625
48633
|
};
|
|
47626
48634
|
};
|
|
@@ -47972,6 +48980,34 @@ export type RegistryGitLogOffset = number;
|
|
|
47972
48980
|
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
47973
48981
|
*/
|
|
47974
48982
|
export type RegistryGitObjectId = string;
|
|
48983
|
+
/**
|
|
48984
|
+
* 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
|
|
48985
|
+
*/
|
|
48986
|
+
export type RegistryGitChangedFiles = boolean;
|
|
48987
|
+
/**
|
|
48988
|
+
* 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
|
|
48989
|
+
*/
|
|
48990
|
+
export type RegistryGitRefPrefix = 'refs/heads/' | 'refs/tags/';
|
|
48991
|
+
/**
|
|
48992
|
+
* 页码,从 1 起,默认 1。
|
|
48993
|
+
*/
|
|
48994
|
+
export type RegistryGitRefsPage = number;
|
|
48995
|
+
/**
|
|
48996
|
+
* 这一页最多返回多少个引用,1 到 500,默认 100。
|
|
48997
|
+
*/
|
|
48998
|
+
export type RegistryGitRefsSize = number;
|
|
48999
|
+
/**
|
|
49000
|
+
* 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
|
|
49001
|
+
*/
|
|
49002
|
+
export type RegistryGitResolveRef = string;
|
|
49003
|
+
/**
|
|
49004
|
+
* 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
|
|
49005
|
+
*/
|
|
49006
|
+
export type RegistryGitCompareBase = string;
|
|
49007
|
+
/**
|
|
49008
|
+
* 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
|
|
49009
|
+
*/
|
|
49010
|
+
export type RegistryGitCompareHead = string;
|
|
47975
49011
|
/**
|
|
47976
49012
|
* 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
|
|
47977
49013
|
*/
|
|
@@ -48880,48 +49916,6 @@ export type ListAgentEventsResponses = {
|
|
|
48880
49916
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
48881
49917
|
*/
|
|
48882
49918
|
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
49919
|
}>;
|
|
48926
49920
|
/**
|
|
48927
49921
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -48971,40 +49965,6 @@ export type SendAgentEventsData = {
|
|
|
48971
49965
|
* Id of the event this event refers to.
|
|
48972
49966
|
*/
|
|
48973
49967
|
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
49968
|
}>;
|
|
49009
49969
|
};
|
|
49010
49970
|
path: {
|
|
@@ -49087,48 +50047,6 @@ export type SendAgentEventsResponses = {
|
|
|
49087
50047
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49088
50048
|
*/
|
|
49089
50049
|
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
50050
|
}>;
|
|
49133
50051
|
};
|
|
49134
50052
|
};
|
|
@@ -52848,6 +53766,186 @@ export type GetAgentAppearanceResponses = {
|
|
|
52848
53766
|
};
|
|
52849
53767
|
};
|
|
52850
53768
|
export type GetAgentAppearanceResponse = GetAgentAppearanceResponses[keyof GetAgentAppearanceResponses];
|
|
53769
|
+
export type AgentsPhoneRetrieveData = {
|
|
53770
|
+
body?: never;
|
|
53771
|
+
path: {
|
|
53772
|
+
/**
|
|
53773
|
+
* 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_….
|
|
53774
|
+
*/
|
|
53775
|
+
agent_id: string;
|
|
53776
|
+
};
|
|
53777
|
+
query?: never;
|
|
53778
|
+
url: '/agent/v1/agents/{agent_id}/phone';
|
|
53779
|
+
};
|
|
53780
|
+
export type AgentsPhoneRetrieveErrors = {
|
|
53781
|
+
/**
|
|
53782
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
53783
|
+
*/
|
|
53784
|
+
400: unknown;
|
|
53785
|
+
/**
|
|
53786
|
+
* 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.
|
|
53787
|
+
*/
|
|
53788
|
+
401: AgentError;
|
|
53789
|
+
/**
|
|
53790
|
+
* 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.
|
|
53791
|
+
*/
|
|
53792
|
+
403: AgentError;
|
|
53793
|
+
/**
|
|
53794
|
+
* 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).
|
|
53795
|
+
*/
|
|
53796
|
+
404: unknown;
|
|
53797
|
+
/**
|
|
53798
|
+
* Agent service failed
|
|
53799
|
+
*/
|
|
53800
|
+
502: unknown;
|
|
53801
|
+
/**
|
|
53802
|
+
* Agent service unavailable
|
|
53803
|
+
*/
|
|
53804
|
+
503: unknown;
|
|
53805
|
+
};
|
|
53806
|
+
export type AgentsPhoneRetrieveError = AgentsPhoneRetrieveErrors[keyof AgentsPhoneRetrieveErrors];
|
|
53807
|
+
export type AgentsPhoneRetrieveResponses = {
|
|
53808
|
+
/**
|
|
53809
|
+
* This agent's phone: whether one is configured, what it is doing, and the public sandbox id to take it over with.
|
|
53810
|
+
*/
|
|
53811
|
+
200: {
|
|
53812
|
+
/**
|
|
53813
|
+
* Object type, always agent_phone.
|
|
53814
|
+
*/
|
|
53815
|
+
object: 'agent_phone';
|
|
53816
|
+
/**
|
|
53817
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
53818
|
+
*/
|
|
53819
|
+
agent_id: string;
|
|
53820
|
+
/**
|
|
53821
|
+
* 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.
|
|
53822
|
+
*/
|
|
53823
|
+
configured: boolean;
|
|
53824
|
+
/**
|
|
53825
|
+
* 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.
|
|
53826
|
+
*/
|
|
53827
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53828
|
+
/**
|
|
53829
|
+
* 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.
|
|
53830
|
+
*/
|
|
53831
|
+
sku: string | null;
|
|
53832
|
+
/**
|
|
53833
|
+
* 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.
|
|
53834
|
+
*/
|
|
53835
|
+
byod_device: string | null;
|
|
53836
|
+
/**
|
|
53837
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53838
|
+
*/
|
|
53839
|
+
name: string | null;
|
|
53840
|
+
/**
|
|
53841
|
+
* 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.
|
|
53842
|
+
*/
|
|
53843
|
+
sandbox_id: string | null;
|
|
53844
|
+
/**
|
|
53845
|
+
* 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.
|
|
53846
|
+
*/
|
|
53847
|
+
lease_ends_at: string | null;
|
|
53848
|
+
/**
|
|
53849
|
+
* 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.
|
|
53850
|
+
*/
|
|
53851
|
+
archived_at: string | null;
|
|
53852
|
+
/**
|
|
53853
|
+
* 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.
|
|
53854
|
+
*/
|
|
53855
|
+
archive_error: string | null;
|
|
53856
|
+
};
|
|
53857
|
+
};
|
|
53858
|
+
export type AgentsPhoneRetrieveResponse = AgentsPhoneRetrieveResponses[keyof AgentsPhoneRetrieveResponses];
|
|
53859
|
+
export type AgentsPhoneReleaseData = {
|
|
53860
|
+
body?: never;
|
|
53861
|
+
path: {
|
|
53862
|
+
/**
|
|
53863
|
+
* 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_….
|
|
53864
|
+
*/
|
|
53865
|
+
agent_id: string;
|
|
53866
|
+
};
|
|
53867
|
+
query?: never;
|
|
53868
|
+
url: '/agent/v1/agents/{agent_id}/phone/release';
|
|
53869
|
+
};
|
|
53870
|
+
export type AgentsPhoneReleaseErrors = {
|
|
53871
|
+
/**
|
|
53872
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
53873
|
+
*/
|
|
53874
|
+
400: unknown;
|
|
53875
|
+
/**
|
|
53876
|
+
* 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.
|
|
53877
|
+
*/
|
|
53878
|
+
401: AgentError;
|
|
53879
|
+
/**
|
|
53880
|
+
* 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.
|
|
53881
|
+
*/
|
|
53882
|
+
403: AgentError;
|
|
53883
|
+
/**
|
|
53884
|
+
* 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).
|
|
53885
|
+
*/
|
|
53886
|
+
404: unknown;
|
|
53887
|
+
/**
|
|
53888
|
+
* Agent service failed
|
|
53889
|
+
*/
|
|
53890
|
+
502: unknown;
|
|
53891
|
+
/**
|
|
53892
|
+
* Agent service unavailable
|
|
53893
|
+
*/
|
|
53894
|
+
503: unknown;
|
|
53895
|
+
};
|
|
53896
|
+
export type AgentsPhoneReleaseError = AgentsPhoneReleaseErrors[keyof AgentsPhoneReleaseErrors];
|
|
53897
|
+
export type AgentsPhoneReleaseResponses = {
|
|
53898
|
+
/**
|
|
53899
|
+
* The phone with the release recorded: state releasing, or none when there was nothing to release.
|
|
53900
|
+
*/
|
|
53901
|
+
200: {
|
|
53902
|
+
/**
|
|
53903
|
+
* Object type, always agent_phone.
|
|
53904
|
+
*/
|
|
53905
|
+
object: 'agent_phone';
|
|
53906
|
+
/**
|
|
53907
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
53908
|
+
*/
|
|
53909
|
+
agent_id: string;
|
|
53910
|
+
/**
|
|
53911
|
+
* 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.
|
|
53912
|
+
*/
|
|
53913
|
+
configured: boolean;
|
|
53914
|
+
/**
|
|
53915
|
+
* 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.
|
|
53916
|
+
*/
|
|
53917
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53918
|
+
/**
|
|
53919
|
+
* 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.
|
|
53920
|
+
*/
|
|
53921
|
+
sku: string | null;
|
|
53922
|
+
/**
|
|
53923
|
+
* 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.
|
|
53924
|
+
*/
|
|
53925
|
+
byod_device: string | null;
|
|
53926
|
+
/**
|
|
53927
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53928
|
+
*/
|
|
53929
|
+
name: string | null;
|
|
53930
|
+
/**
|
|
53931
|
+
* 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.
|
|
53932
|
+
*/
|
|
53933
|
+
sandbox_id: string | null;
|
|
53934
|
+
/**
|
|
53935
|
+
* 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.
|
|
53936
|
+
*/
|
|
53937
|
+
lease_ends_at: string | null;
|
|
53938
|
+
/**
|
|
53939
|
+
* 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.
|
|
53940
|
+
*/
|
|
53941
|
+
archived_at: string | null;
|
|
53942
|
+
/**
|
|
53943
|
+
* 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.
|
|
53944
|
+
*/
|
|
53945
|
+
archive_error: string | null;
|
|
53946
|
+
};
|
|
53947
|
+
};
|
|
53948
|
+
export type AgentsPhoneReleaseResponse = AgentsPhoneReleaseResponses[keyof AgentsPhoneReleaseResponses];
|
|
52851
53949
|
export type GetAgentEmbedPolicyData = {
|
|
52852
53950
|
body?: never;
|
|
52853
53951
|
path: {
|
|
@@ -58795,6 +59893,23 @@ export type ForkSessionResponses = {
|
|
|
58795
59893
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
58796
59894
|
*/
|
|
58797
59895
|
cwd: string;
|
|
59896
|
+
/**
|
|
59897
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
59898
|
+
*/
|
|
59899
|
+
workspace?: {
|
|
59900
|
+
/**
|
|
59901
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
59902
|
+
*/
|
|
59903
|
+
kind: 'shared' | 'isolated';
|
|
59904
|
+
/**
|
|
59905
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
59906
|
+
*/
|
|
59907
|
+
path?: string;
|
|
59908
|
+
/**
|
|
59909
|
+
* The worktree's branch; present only when kind is isolated.
|
|
59910
|
+
*/
|
|
59911
|
+
branch?: string;
|
|
59912
|
+
};
|
|
58798
59913
|
/**
|
|
58799
59914
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
58800
59915
|
*/
|
|
@@ -60520,6 +61635,23 @@ export type RenameSessionResponses = {
|
|
|
60520
61635
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
60521
61636
|
*/
|
|
60522
61637
|
cwd: string;
|
|
61638
|
+
/**
|
|
61639
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
61640
|
+
*/
|
|
61641
|
+
workspace?: {
|
|
61642
|
+
/**
|
|
61643
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
61644
|
+
*/
|
|
61645
|
+
kind: 'shared' | 'isolated';
|
|
61646
|
+
/**
|
|
61647
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
61648
|
+
*/
|
|
61649
|
+
path?: string;
|
|
61650
|
+
/**
|
|
61651
|
+
* The worktree's branch; present only when kind is isolated.
|
|
61652
|
+
*/
|
|
61653
|
+
branch?: string;
|
|
61654
|
+
};
|
|
60523
61655
|
/**
|
|
60524
61656
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
60525
61657
|
*/
|
|
@@ -62251,6 +63383,23 @@ export type UpdateSessionAgentVersionResponses = {
|
|
|
62251
63383
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
62252
63384
|
*/
|
|
62253
63385
|
cwd: string;
|
|
63386
|
+
/**
|
|
63387
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
63388
|
+
*/
|
|
63389
|
+
workspace?: {
|
|
63390
|
+
/**
|
|
63391
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
63392
|
+
*/
|
|
63393
|
+
kind: 'shared' | 'isolated';
|
|
63394
|
+
/**
|
|
63395
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
63396
|
+
*/
|
|
63397
|
+
path?: string;
|
|
63398
|
+
/**
|
|
63399
|
+
* The worktree's branch; present only when kind is isolated.
|
|
63400
|
+
*/
|
|
63401
|
+
branch?: string;
|
|
63402
|
+
};
|
|
62254
63403
|
/**
|
|
62255
63404
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
62256
63405
|
*/
|
|
@@ -62570,7 +63719,7 @@ export type ListSessionRequestsResponses = {
|
|
|
62570
63719
|
*/
|
|
62571
63720
|
object: 'request';
|
|
62572
63721
|
/**
|
|
62573
|
-
* question
|
|
63722
|
+
* 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.
|
|
62574
63723
|
*/
|
|
62575
63724
|
kind: 'question' | 'approval';
|
|
62576
63725
|
/**
|
|
@@ -62578,11 +63727,11 @@ export type ListSessionRequestsResponses = {
|
|
|
62578
63727
|
*/
|
|
62579
63728
|
status: 'pending';
|
|
62580
63729
|
/**
|
|
62581
|
-
* The tool the agent called, such as
|
|
63730
|
+
* The tool the agent called, such as bash.
|
|
62582
63731
|
*/
|
|
62583
63732
|
tool_name: string;
|
|
62584
63733
|
/**
|
|
62585
|
-
* The tool call's input exactly as the agent.tool_use event shows it:
|
|
63734
|
+
* The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
|
|
62586
63735
|
*/
|
|
62587
63736
|
input: unknown;
|
|
62588
63737
|
/**
|
|
@@ -63387,6 +64536,29 @@ export type CreateAudioSpeechResponses = {
|
|
|
63387
64536
|
200: Blob | File;
|
|
63388
64537
|
};
|
|
63389
64538
|
export type CreateAudioSpeechResponse = CreateAudioSpeechResponses[keyof CreateAudioSpeechResponses];
|
|
64539
|
+
export type ListPublicPricesData = {
|
|
64540
|
+
body?: never;
|
|
64541
|
+
path?: never;
|
|
64542
|
+
query?: never;
|
|
64543
|
+
url: '/billing/v1/prices';
|
|
64544
|
+
};
|
|
64545
|
+
export type ListPublicPricesErrors = {
|
|
64546
|
+
/**
|
|
64547
|
+
* The price book could not be read (PRICE_LIST_UNAVAILABLE). Retry after a minute; do not show a price you cannot confirm.
|
|
64548
|
+
*/
|
|
64549
|
+
502: unknown;
|
|
64550
|
+
/**
|
|
64551
|
+
* The price book has not been published yet (UNAVAILABLE). Retry after a minute; there is no price to show.
|
|
64552
|
+
*/
|
|
64553
|
+
503: unknown;
|
|
64554
|
+
};
|
|
64555
|
+
export type ListPublicPricesResponses = {
|
|
64556
|
+
/**
|
|
64557
|
+
* 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.
|
|
64558
|
+
*/
|
|
64559
|
+
200: BillingPriceList;
|
|
64560
|
+
};
|
|
64561
|
+
export type ListPublicPricesResponse = ListPublicPricesResponses[keyof ListPublicPricesResponses];
|
|
63390
64562
|
export type BrowserListSessionsData = {
|
|
63391
64563
|
body?: never;
|
|
63392
64564
|
path?: never;
|
|
@@ -64039,7 +65211,7 @@ export type BrowserRunPageActionData = {
|
|
|
64039
65211
|
*/
|
|
64040
65212
|
name: string;
|
|
64041
65213
|
/**
|
|
64042
|
-
* cookie 值,最多 4096
|
|
65214
|
+
* cookie 值,最多 4096 个字符,可为空字符串但字段必须出现(省略或传 null 会被拒绝,错误会说明是哪个字段、违反了什么规则);它是凭据,不会出现在动作结果、事件或日志里。
|
|
64043
65215
|
*/
|
|
64044
65216
|
value: string;
|
|
64045
65217
|
/**
|
|
@@ -65368,6 +66540,10 @@ export type FileListFilesData = {
|
|
|
65368
66540
|
* 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.
|
|
65369
66541
|
*/
|
|
65370
66542
|
scope_id?: string;
|
|
66543
|
+
/**
|
|
66544
|
+
* 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.
|
|
66545
|
+
*/
|
|
66546
|
+
ids?: Array<string>;
|
|
65371
66547
|
/**
|
|
65372
66548
|
* File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.
|
|
65373
66549
|
*/
|
|
@@ -73746,6 +74922,433 @@ export type ReviseOrganizationKeyResultResponses = {
|
|
|
73746
74922
|
200: OrganizationKeyResult;
|
|
73747
74923
|
};
|
|
73748
74924
|
export type ReviseOrganizationKeyResultResponse = ReviseOrganizationKeyResultResponses[keyof ReviseOrganizationKeyResultResponses];
|
|
74925
|
+
export type ListOrganizationSpecsData = {
|
|
74926
|
+
body?: never;
|
|
74927
|
+
path?: never;
|
|
74928
|
+
query?: {
|
|
74929
|
+
/**
|
|
74930
|
+
* Maximum items per page, from 1 to 100; defaults to 20.
|
|
74931
|
+
*/
|
|
74932
|
+
limit?: number;
|
|
74933
|
+
/**
|
|
74934
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
74935
|
+
*/
|
|
74936
|
+
page?: string;
|
|
74937
|
+
/**
|
|
74938
|
+
* Only specs of this subject kind; omit to list every kind together.
|
|
74939
|
+
*/
|
|
74940
|
+
kind?: OrganizationSpecKind;
|
|
74941
|
+
};
|
|
74942
|
+
url: '/organization/v1/specs';
|
|
74943
|
+
};
|
|
74944
|
+
export type ListOrganizationSpecsErrors = {
|
|
74945
|
+
/**
|
|
74946
|
+
* 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.
|
|
74947
|
+
*/
|
|
74948
|
+
400: OrganizationProblem;
|
|
74949
|
+
/**
|
|
74950
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74951
|
+
*/
|
|
74952
|
+
401: unknown;
|
|
74953
|
+
/**
|
|
74954
|
+
* 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.
|
|
74955
|
+
*/
|
|
74956
|
+
403: OrganizationProblem;
|
|
74957
|
+
};
|
|
74958
|
+
export type ListOrganizationSpecsError = ListOrganizationSpecsErrors[keyof ListOrganizationSpecsErrors];
|
|
74959
|
+
export type ListOrganizationSpecsResponses = {
|
|
74960
|
+
/**
|
|
74961
|
+
* One page of specs.
|
|
74962
|
+
*/
|
|
74963
|
+
200: OrganizationSpecList;
|
|
74964
|
+
};
|
|
74965
|
+
export type ListOrganizationSpecsResponse = ListOrganizationSpecsResponses[keyof ListOrganizationSpecsResponses];
|
|
74966
|
+
export type GetOrganizationSpecData = {
|
|
74967
|
+
body?: never;
|
|
74968
|
+
path: {
|
|
74969
|
+
/**
|
|
74970
|
+
* Kind of the subject whose spec to read.
|
|
74971
|
+
*/
|
|
74972
|
+
kind: OrganizationSpecKind;
|
|
74973
|
+
/**
|
|
74974
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
74975
|
+
*/
|
|
74976
|
+
id: string;
|
|
74977
|
+
};
|
|
74978
|
+
query?: {
|
|
74979
|
+
/**
|
|
74980
|
+
* Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written.
|
|
74981
|
+
*/
|
|
74982
|
+
revision?: number;
|
|
74983
|
+
};
|
|
74984
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
74985
|
+
};
|
|
74986
|
+
export type GetOrganizationSpecErrors = {
|
|
74987
|
+
/**
|
|
74988
|
+
* 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.
|
|
74989
|
+
*/
|
|
74990
|
+
400: OrganizationProblem;
|
|
74991
|
+
/**
|
|
74992
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74993
|
+
*/
|
|
74994
|
+
401: unknown;
|
|
74995
|
+
/**
|
|
74996
|
+
* 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.
|
|
74997
|
+
*/
|
|
74998
|
+
403: OrganizationProblem;
|
|
74999
|
+
/**
|
|
75000
|
+
* 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.
|
|
75001
|
+
*/
|
|
75002
|
+
404: OrganizationProblem;
|
|
75003
|
+
};
|
|
75004
|
+
export type GetOrganizationSpecError = GetOrganizationSpecErrors[keyof GetOrganizationSpecErrors];
|
|
75005
|
+
export type GetOrganizationSpecResponses = {
|
|
75006
|
+
/**
|
|
75007
|
+
* The spec of the subject at the live or named revision.
|
|
75008
|
+
*/
|
|
75009
|
+
200: OrganizationSpec;
|
|
75010
|
+
};
|
|
75011
|
+
export type GetOrganizationSpecResponse = GetOrganizationSpecResponses[keyof GetOrganizationSpecResponses];
|
|
75012
|
+
export type ReviseOrganizationSpecData = {
|
|
75013
|
+
body: OrganizationReviseSpecRequest;
|
|
75014
|
+
path: {
|
|
75015
|
+
/**
|
|
75016
|
+
* Kind of the subject whose spec to revise.
|
|
75017
|
+
*/
|
|
75018
|
+
kind: OrganizationSpecKind;
|
|
75019
|
+
/**
|
|
75020
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75021
|
+
*/
|
|
75022
|
+
id: string;
|
|
75023
|
+
};
|
|
75024
|
+
query?: never;
|
|
75025
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
75026
|
+
};
|
|
75027
|
+
export type ReviseOrganizationSpecErrors = {
|
|
75028
|
+
/**
|
|
75029
|
+
* 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.
|
|
75030
|
+
*/
|
|
75031
|
+
400: OrganizationProblem;
|
|
75032
|
+
/**
|
|
75033
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75034
|
+
*/
|
|
75035
|
+
401: unknown;
|
|
75036
|
+
/**
|
|
75037
|
+
* 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).
|
|
75038
|
+
*/
|
|
75039
|
+
403: OrganizationProblem;
|
|
75040
|
+
/**
|
|
75041
|
+
* 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.
|
|
75042
|
+
*/
|
|
75043
|
+
404: OrganizationProblem;
|
|
75044
|
+
/**
|
|
75045
|
+
* REVISION_CONFLICT; the spec moved on since you read it. Read it again, merge your change and retry with its current revision.
|
|
75046
|
+
*/
|
|
75047
|
+
409: OrganizationProblem;
|
|
75048
|
+
};
|
|
75049
|
+
export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
|
|
75050
|
+
export type ReviseOrganizationSpecResponses = {
|
|
75051
|
+
/**
|
|
75052
|
+
* The spec after the revision, at the new revision number.
|
|
75053
|
+
*/
|
|
75054
|
+
200: OrganizationSpec;
|
|
75055
|
+
};
|
|
75056
|
+
export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
|
|
75057
|
+
export type ListOrganizationSpecRevisionsData = {
|
|
75058
|
+
body?: never;
|
|
75059
|
+
path: {
|
|
75060
|
+
/**
|
|
75061
|
+
* Kind of the subject whose revision history to list.
|
|
75062
|
+
*/
|
|
75063
|
+
kind: OrganizationSpecKind;
|
|
75064
|
+
/**
|
|
75065
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75066
|
+
*/
|
|
75067
|
+
id: string;
|
|
75068
|
+
};
|
|
75069
|
+
query?: {
|
|
75070
|
+
/**
|
|
75071
|
+
* Maximum revisions per page, from 1 to 100; defaults to 20.
|
|
75072
|
+
*/
|
|
75073
|
+
limit?: number;
|
|
75074
|
+
/**
|
|
75075
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
75076
|
+
*/
|
|
75077
|
+
page?: string;
|
|
75078
|
+
};
|
|
75079
|
+
url: '/organization/v1/specs/{kind}/{id}/revisions';
|
|
75080
|
+
};
|
|
75081
|
+
export type ListOrganizationSpecRevisionsErrors = {
|
|
75082
|
+
/**
|
|
75083
|
+
* INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters.
|
|
75084
|
+
*/
|
|
75085
|
+
400: OrganizationProblem;
|
|
75086
|
+
/**
|
|
75087
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75088
|
+
*/
|
|
75089
|
+
401: unknown;
|
|
75090
|
+
/**
|
|
75091
|
+
* 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.
|
|
75092
|
+
*/
|
|
75093
|
+
403: OrganizationProblem;
|
|
75094
|
+
/**
|
|
75095
|
+
* 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.
|
|
75096
|
+
*/
|
|
75097
|
+
404: OrganizationProblem;
|
|
75098
|
+
};
|
|
75099
|
+
export type ListOrganizationSpecRevisionsError = ListOrganizationSpecRevisionsErrors[keyof ListOrganizationSpecRevisionsErrors];
|
|
75100
|
+
export type ListOrganizationSpecRevisionsResponses = {
|
|
75101
|
+
/**
|
|
75102
|
+
* One page of revisions, newest first.
|
|
75103
|
+
*/
|
|
75104
|
+
200: OrganizationSpecRevisionList;
|
|
75105
|
+
};
|
|
75106
|
+
export type ListOrganizationSpecRevisionsResponse = ListOrganizationSpecRevisionsResponses[keyof ListOrganizationSpecRevisionsResponses];
|
|
75107
|
+
export type DiffOrganizationSpecData = {
|
|
75108
|
+
body?: never;
|
|
75109
|
+
path: {
|
|
75110
|
+
/**
|
|
75111
|
+
* Kind of the subject whose revisions to compare.
|
|
75112
|
+
*/
|
|
75113
|
+
kind: OrganizationSpecKind;
|
|
75114
|
+
/**
|
|
75115
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
75116
|
+
*/
|
|
75117
|
+
id: string;
|
|
75118
|
+
};
|
|
75119
|
+
query: {
|
|
75120
|
+
/**
|
|
75121
|
+
* The earlier revision to compare from; 0 is the empty spec before the first write.
|
|
75122
|
+
*/
|
|
75123
|
+
from: number;
|
|
75124
|
+
/**
|
|
75125
|
+
* The later revision to compare to.
|
|
75126
|
+
*/
|
|
75127
|
+
to: number;
|
|
75128
|
+
};
|
|
75129
|
+
url: '/organization/v1/specs/{kind}/{id}/diff';
|
|
75130
|
+
};
|
|
75131
|
+
export type DiffOrganizationSpecErrors = {
|
|
75132
|
+
/**
|
|
75133
|
+
* INVALID_PARAMS; from or to is missing or not an integer. Send both as whole numbers.
|
|
75134
|
+
*/
|
|
75135
|
+
400: OrganizationProblem;
|
|
75136
|
+
/**
|
|
75137
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75138
|
+
*/
|
|
75139
|
+
401: unknown;
|
|
75140
|
+
/**
|
|
75141
|
+
* 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.
|
|
75142
|
+
*/
|
|
75143
|
+
403: OrganizationProblem;
|
|
75144
|
+
/**
|
|
75145
|
+
* 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.
|
|
75146
|
+
*/
|
|
75147
|
+
404: OrganizationProblem;
|
|
75148
|
+
};
|
|
75149
|
+
export type DiffOrganizationSpecError = DiffOrganizationSpecErrors[keyof DiffOrganizationSpecErrors];
|
|
75150
|
+
export type DiffOrganizationSpecResponses = {
|
|
75151
|
+
/**
|
|
75152
|
+
* The changes between the two revisions, in path order.
|
|
75153
|
+
*/
|
|
75154
|
+
200: OrganizationSpecDiff;
|
|
75155
|
+
};
|
|
75156
|
+
export type DiffOrganizationSpecResponse = DiffOrganizationSpecResponses[keyof DiffOrganizationSpecResponses];
|
|
75157
|
+
export type GetOrganizationEffectiveSpecData = {
|
|
75158
|
+
body?: never;
|
|
75159
|
+
path?: never;
|
|
75160
|
+
query?: {
|
|
75161
|
+
/**
|
|
75162
|
+
* Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both.
|
|
75163
|
+
*/
|
|
75164
|
+
actor?: string;
|
|
75165
|
+
/**
|
|
75166
|
+
* One seat to merge, held or vacant (pos_...); give this or actor, not both.
|
|
75167
|
+
*/
|
|
75168
|
+
position_id?: string;
|
|
75169
|
+
/**
|
|
75170
|
+
* Which holder kind to merge for; omit to derive it from the seat's holder.
|
|
75171
|
+
*/
|
|
75172
|
+
holder_kind?: 'agent' | 'human';
|
|
75173
|
+
};
|
|
75174
|
+
url: '/organization/v1/effective_spec';
|
|
75175
|
+
};
|
|
75176
|
+
export type GetOrganizationEffectiveSpecErrors = {
|
|
75177
|
+
/**
|
|
75178
|
+
* 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.
|
|
75179
|
+
*/
|
|
75180
|
+
400: OrganizationProblem;
|
|
75181
|
+
/**
|
|
75182
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75183
|
+
*/
|
|
75184
|
+
401: unknown;
|
|
75185
|
+
/**
|
|
75186
|
+
* 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.
|
|
75187
|
+
*/
|
|
75188
|
+
403: OrganizationProblem;
|
|
75189
|
+
/**
|
|
75190
|
+
* POSITION_NOT_FOUND; position_id is not a position of your organization. List positions and copy an id.
|
|
75191
|
+
*/
|
|
75192
|
+
404: OrganizationProblem;
|
|
75193
|
+
};
|
|
75194
|
+
export type GetOrganizationEffectiveSpecError = GetOrganizationEffectiveSpecErrors[keyof GetOrganizationEffectiveSpecErrors];
|
|
75195
|
+
export type GetOrganizationEffectiveSpecResponses = {
|
|
75196
|
+
/**
|
|
75197
|
+
* The merged effective spec of the seat or actor.
|
|
75198
|
+
*/
|
|
75199
|
+
200: OrganizationEffectiveSpec;
|
|
75200
|
+
};
|
|
75201
|
+
export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
|
|
75202
|
+
export type PlanOrganizationReconcileData = {
|
|
75203
|
+
body?: never;
|
|
75204
|
+
path?: never;
|
|
75205
|
+
query: {
|
|
75206
|
+
/**
|
|
75207
|
+
* The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged.
|
|
75208
|
+
*/
|
|
75209
|
+
actor: string;
|
|
75210
|
+
};
|
|
75211
|
+
url: '/organization/v1/reconcile/plan';
|
|
75212
|
+
};
|
|
75213
|
+
export type PlanOrganizationReconcileErrors = {
|
|
75214
|
+
/**
|
|
75215
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
75216
|
+
*/
|
|
75217
|
+
400: OrganizationProblem;
|
|
75218
|
+
/**
|
|
75219
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75220
|
+
*/
|
|
75221
|
+
401: unknown;
|
|
75222
|
+
/**
|
|
75223
|
+
* 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.
|
|
75224
|
+
*/
|
|
75225
|
+
403: OrganizationProblem;
|
|
75226
|
+
};
|
|
75227
|
+
export type PlanOrganizationReconcileError = PlanOrganizationReconcileErrors[keyof PlanOrganizationReconcileErrors];
|
|
75228
|
+
export type PlanOrganizationReconcileResponses = {
|
|
75229
|
+
/**
|
|
75230
|
+
* The actions the reconciler would take for this holder, and the merged-result violations.
|
|
75231
|
+
*/
|
|
75232
|
+
200: OrganizationReconcilePlan;
|
|
75233
|
+
};
|
|
75234
|
+
export type PlanOrganizationReconcileResponse = PlanOrganizationReconcileResponses[keyof PlanOrganizationReconcileResponses];
|
|
75235
|
+
export type GetOrganizationReconcileStatusData = {
|
|
75236
|
+
body?: never;
|
|
75237
|
+
path?: never;
|
|
75238
|
+
query: {
|
|
75239
|
+
/**
|
|
75240
|
+
* The holder whose reconcile status to read (agent:agent_... or human:usr_...).
|
|
75241
|
+
*/
|
|
75242
|
+
actor: string;
|
|
75243
|
+
};
|
|
75244
|
+
url: '/organization/v1/reconcile/status';
|
|
75245
|
+
};
|
|
75246
|
+
export type GetOrganizationReconcileStatusErrors = {
|
|
75247
|
+
/**
|
|
75248
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
75249
|
+
*/
|
|
75250
|
+
400: OrganizationProblem;
|
|
75251
|
+
/**
|
|
75252
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75253
|
+
*/
|
|
75254
|
+
401: unknown;
|
|
75255
|
+
/**
|
|
75256
|
+
* 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.
|
|
75257
|
+
*/
|
|
75258
|
+
403: OrganizationProblem;
|
|
75259
|
+
};
|
|
75260
|
+
export type GetOrganizationReconcileStatusError = GetOrganizationReconcileStatusErrors[keyof GetOrganizationReconcileStatusErrors];
|
|
75261
|
+
export type GetOrganizationReconcileStatusResponses = {
|
|
75262
|
+
/**
|
|
75263
|
+
* The last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
|
|
75264
|
+
*/
|
|
75265
|
+
200: OrganizationReconcileStatus;
|
|
75266
|
+
};
|
|
75267
|
+
export type GetOrganizationReconcileStatusResponse = GetOrganizationReconcileStatusResponses[keyof GetOrganizationReconcileStatusResponses];
|
|
75268
|
+
export type RunOrganizationReconcileData = {
|
|
75269
|
+
body: OrganizationReconcileActorRequest;
|
|
75270
|
+
path?: never;
|
|
75271
|
+
query?: never;
|
|
75272
|
+
url: '/organization/v1/reconcile/run';
|
|
75273
|
+
};
|
|
75274
|
+
export type RunOrganizationReconcileErrors = {
|
|
75275
|
+
/**
|
|
75276
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75277
|
+
*/
|
|
75278
|
+
400: OrganizationProblem;
|
|
75279
|
+
/**
|
|
75280
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75281
|
+
*/
|
|
75282
|
+
401: unknown;
|
|
75283
|
+
/**
|
|
75284
|
+
* 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).
|
|
75285
|
+
*/
|
|
75286
|
+
403: OrganizationProblem;
|
|
75287
|
+
};
|
|
75288
|
+
export type RunOrganizationReconcileError = RunOrganizationReconcileErrors[keyof RunOrganizationReconcileErrors];
|
|
75289
|
+
export type RunOrganizationReconcileResponses = {
|
|
75290
|
+
/**
|
|
75291
|
+
* The status after this run.
|
|
75292
|
+
*/
|
|
75293
|
+
200: OrganizationReconcileStatus;
|
|
75294
|
+
};
|
|
75295
|
+
export type RunOrganizationReconcileResponse = RunOrganizationReconcileResponses[keyof RunOrganizationReconcileResponses];
|
|
75296
|
+
export type PauseOrganizationReconcileData = {
|
|
75297
|
+
body: OrganizationReconcileActorRequest;
|
|
75298
|
+
path?: never;
|
|
75299
|
+
query?: never;
|
|
75300
|
+
url: '/organization/v1/reconcile/pause';
|
|
75301
|
+
};
|
|
75302
|
+
export type PauseOrganizationReconcileErrors = {
|
|
75303
|
+
/**
|
|
75304
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75305
|
+
*/
|
|
75306
|
+
400: OrganizationProblem;
|
|
75307
|
+
/**
|
|
75308
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75309
|
+
*/
|
|
75310
|
+
401: unknown;
|
|
75311
|
+
/**
|
|
75312
|
+
* 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).
|
|
75313
|
+
*/
|
|
75314
|
+
403: OrganizationProblem;
|
|
75315
|
+
};
|
|
75316
|
+
export type PauseOrganizationReconcileError = PauseOrganizationReconcileErrors[keyof PauseOrganizationReconcileErrors];
|
|
75317
|
+
export type PauseOrganizationReconcileResponses = {
|
|
75318
|
+
/**
|
|
75319
|
+
* The status after pausing; paused is true.
|
|
75320
|
+
*/
|
|
75321
|
+
200: OrganizationReconcileStatus;
|
|
75322
|
+
};
|
|
75323
|
+
export type PauseOrganizationReconcileResponse = PauseOrganizationReconcileResponses[keyof PauseOrganizationReconcileResponses];
|
|
75324
|
+
export type ResumeOrganizationReconcileData = {
|
|
75325
|
+
body: OrganizationReconcileActorRequest;
|
|
75326
|
+
path?: never;
|
|
75327
|
+
query?: never;
|
|
75328
|
+
url: '/organization/v1/reconcile/resume';
|
|
75329
|
+
};
|
|
75330
|
+
export type ResumeOrganizationReconcileErrors = {
|
|
75331
|
+
/**
|
|
75332
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
75333
|
+
*/
|
|
75334
|
+
400: OrganizationProblem;
|
|
75335
|
+
/**
|
|
75336
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
75337
|
+
*/
|
|
75338
|
+
401: unknown;
|
|
75339
|
+
/**
|
|
75340
|
+
* 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).
|
|
75341
|
+
*/
|
|
75342
|
+
403: OrganizationProblem;
|
|
75343
|
+
};
|
|
75344
|
+
export type ResumeOrganizationReconcileError = ResumeOrganizationReconcileErrors[keyof ResumeOrganizationReconcileErrors];
|
|
75345
|
+
export type ResumeOrganizationReconcileResponses = {
|
|
75346
|
+
/**
|
|
75347
|
+
* The status after resuming; paused is false.
|
|
75348
|
+
*/
|
|
75349
|
+
200: OrganizationReconcileStatus;
|
|
75350
|
+
};
|
|
75351
|
+
export type ResumeOrganizationReconcileResponse = ResumeOrganizationReconcileResponses[keyof ResumeOrganizationReconcileResponses];
|
|
73749
75352
|
export type UpgradeSandboxData = {
|
|
73750
75353
|
body: {
|
|
73751
75354
|
/**
|
|
@@ -74284,6 +75887,268 @@ export type RenameSandboxResponses = {
|
|
|
74284
75887
|
};
|
|
74285
75888
|
};
|
|
74286
75889
|
export type RenameSandboxResponse = RenameSandboxResponses[keyof RenameSandboxResponses];
|
|
75890
|
+
export type ActOnSandboxDisplayData = {
|
|
75891
|
+
body: {
|
|
75892
|
+
/**
|
|
75893
|
+
* Action kind; exactly "snapshot".
|
|
75894
|
+
*/
|
|
75895
|
+
type: 'snapshot';
|
|
75896
|
+
} | {
|
|
75897
|
+
/**
|
|
75898
|
+
* Action kind; exactly "screenshot".
|
|
75899
|
+
*/
|
|
75900
|
+
type: 'screenshot';
|
|
75901
|
+
} | {
|
|
75902
|
+
/**
|
|
75903
|
+
* Action kind; exactly "tap".
|
|
75904
|
+
*/
|
|
75905
|
+
type: 'tap';
|
|
75906
|
+
/**
|
|
75907
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
75908
|
+
*/
|
|
75909
|
+
ref?: string;
|
|
75910
|
+
/**
|
|
75911
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
75912
|
+
*/
|
|
75913
|
+
x?: number;
|
|
75914
|
+
/**
|
|
75915
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
75916
|
+
*/
|
|
75917
|
+
y?: number;
|
|
75918
|
+
} | {
|
|
75919
|
+
/**
|
|
75920
|
+
* Action kind; exactly "long_press".
|
|
75921
|
+
*/
|
|
75922
|
+
type: 'long_press';
|
|
75923
|
+
/**
|
|
75924
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
75925
|
+
*/
|
|
75926
|
+
ref?: string;
|
|
75927
|
+
/**
|
|
75928
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
75929
|
+
*/
|
|
75930
|
+
x?: number;
|
|
75931
|
+
/**
|
|
75932
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
75933
|
+
*/
|
|
75934
|
+
y?: number;
|
|
75935
|
+
/**
|
|
75936
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
75937
|
+
*/
|
|
75938
|
+
durationMs?: number;
|
|
75939
|
+
} | {
|
|
75940
|
+
/**
|
|
75941
|
+
* Action kind; exactly "swipe".
|
|
75942
|
+
*/
|
|
75943
|
+
type: 'swipe';
|
|
75944
|
+
/**
|
|
75945
|
+
* Where the finger starts.
|
|
75946
|
+
*/
|
|
75947
|
+
from: {
|
|
75948
|
+
/**
|
|
75949
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
75950
|
+
*/
|
|
75951
|
+
x: number;
|
|
75952
|
+
/**
|
|
75953
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
75954
|
+
*/
|
|
75955
|
+
y: number;
|
|
75956
|
+
};
|
|
75957
|
+
/**
|
|
75958
|
+
* Where the finger ends.
|
|
75959
|
+
*/
|
|
75960
|
+
to: {
|
|
75961
|
+
/**
|
|
75962
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
75963
|
+
*/
|
|
75964
|
+
x: number;
|
|
75965
|
+
/**
|
|
75966
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
75967
|
+
*/
|
|
75968
|
+
y: number;
|
|
75969
|
+
};
|
|
75970
|
+
/**
|
|
75971
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
75972
|
+
*/
|
|
75973
|
+
durationMs?: number;
|
|
75974
|
+
} | {
|
|
75975
|
+
/**
|
|
75976
|
+
* Action kind; exactly "scroll".
|
|
75977
|
+
*/
|
|
75978
|
+
type: 'scroll';
|
|
75979
|
+
/**
|
|
75980
|
+
* Which way the view moves, as on a scroll wheel: down shows what is below. The finger swipes the opposite way, a quarter screen each side of the start point.
|
|
75981
|
+
*/
|
|
75982
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
75983
|
+
/**
|
|
75984
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
75985
|
+
*/
|
|
75986
|
+
ref?: string;
|
|
75987
|
+
} | {
|
|
75988
|
+
/**
|
|
75989
|
+
* Action kind; exactly "type".
|
|
75990
|
+
*/
|
|
75991
|
+
type: 'type';
|
|
75992
|
+
/**
|
|
75993
|
+
* Text to type, at most 10000 characters. ASCII only, because the phone types character by character; non-ASCII text is refused with INVALID_PARAMS.
|
|
75994
|
+
*/
|
|
75995
|
+
text: string;
|
|
75996
|
+
/**
|
|
75997
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
75998
|
+
*/
|
|
75999
|
+
ref?: string;
|
|
76000
|
+
} | {
|
|
76001
|
+
/**
|
|
76002
|
+
* Action kind; exactly "key".
|
|
76003
|
+
*/
|
|
76004
|
+
type: 'key';
|
|
76005
|
+
/**
|
|
76006
|
+
* Which key to press.
|
|
76007
|
+
*/
|
|
76008
|
+
key: 'back' | 'home' | 'recents' | 'enter' | 'delete' | 'power' | 'volume_up' | 'volume_down';
|
|
76009
|
+
} | {
|
|
76010
|
+
/**
|
|
76011
|
+
* Action kind; exactly "open_app".
|
|
76012
|
+
*/
|
|
76013
|
+
type: 'open_app';
|
|
76014
|
+
/**
|
|
76015
|
+
* Java package name of the app, such as com.android.settings.
|
|
76016
|
+
*/
|
|
76017
|
+
package: string;
|
|
76018
|
+
/**
|
|
76019
|
+
* Activity to open as android:name, such as com.example.app.MainActivity; omitted opens the package's launcher activity.
|
|
76020
|
+
*/
|
|
76021
|
+
activity?: string;
|
|
76022
|
+
} | {
|
|
76023
|
+
/**
|
|
76024
|
+
* Action kind; exactly "close_app".
|
|
76025
|
+
*/
|
|
76026
|
+
type: 'close_app';
|
|
76027
|
+
/**
|
|
76028
|
+
* Java package name of the app, such as com.android.settings.
|
|
76029
|
+
*/
|
|
76030
|
+
package: string;
|
|
76031
|
+
} | {
|
|
76032
|
+
/**
|
|
76033
|
+
* Action kind; exactly "open_url".
|
|
76034
|
+
*/
|
|
76035
|
+
type: 'open_url';
|
|
76036
|
+
/**
|
|
76037
|
+
* Absolute http or https URL to open in the phone's browser.
|
|
76038
|
+
*/
|
|
76039
|
+
url: string;
|
|
76040
|
+
} | {
|
|
76041
|
+
/**
|
|
76042
|
+
* Action kind; exactly "wait".
|
|
76043
|
+
*/
|
|
76044
|
+
type: 'wait';
|
|
76045
|
+
/**
|
|
76046
|
+
* How long to wait, in milliseconds, 1 to 10000, before the call returns.
|
|
76047
|
+
*/
|
|
76048
|
+
ms: number;
|
|
76049
|
+
};
|
|
76050
|
+
path: {
|
|
76051
|
+
/**
|
|
76052
|
+
* Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
|
|
76053
|
+
*/
|
|
76054
|
+
sandboxID: string;
|
|
76055
|
+
};
|
|
76056
|
+
query?: never;
|
|
76057
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/act';
|
|
76058
|
+
};
|
|
76059
|
+
export type ActOnSandboxDisplayErrors = {
|
|
76060
|
+
/**
|
|
76061
|
+
* INVALID_PARAMS: the body is not one known action, a field is missing, wrongly typed or outside its range, a target names both a ref and coordinates (or neither), a ref is not in the latest snapshot, or the text is not ASCII.
|
|
76062
|
+
*/
|
|
76063
|
+
400: unknown;
|
|
76064
|
+
/**
|
|
76065
|
+
* Authentication required: supply an organization API key.
|
|
76066
|
+
*/
|
|
76067
|
+
401: unknown;
|
|
76068
|
+
/**
|
|
76069
|
+
* NOT_FOUND: the sandbox is absent or belongs to another organization.
|
|
76070
|
+
*/
|
|
76071
|
+
404: unknown;
|
|
76072
|
+
/**
|
|
76073
|
+
* CAPABILITY_UNSUPPORTED: this sandbox is not a phone, so it has no screen; create one with templateID "android".
|
|
76074
|
+
*/
|
|
76075
|
+
501: unknown;
|
|
76076
|
+
/**
|
|
76077
|
+
* DEVICE_NOT_READY: the phone is not drivable yet, and the body names the state it is in — starting while its machine is still being built, booting while the machine runs but the phone program has not connected. Both carry retryable: true and Retry-After: 2; wait that long and send the action again. SERVICE_UNAVAILABLE: the phone is connected but answered nothing this time (its own timeout, or a connection that went away mid-action); retry the same way. The sandbox's state and readyAt on GET /sandbox/v1/sandboxes/{sandboxID} tell the same story: readyAt is the instant the phone program said hello, and its absence is booting.
|
|
76078
|
+
*/
|
|
76079
|
+
503: unknown;
|
|
76080
|
+
};
|
|
76081
|
+
export type ActOnSandboxDisplayResponses = {
|
|
76082
|
+
/**
|
|
76083
|
+
* The action's result: the UI hierarchy and refs for snapshot, image bytes for screenshot, the applied duration for a long press, or an acknowledgement with no data.
|
|
76084
|
+
*/
|
|
76085
|
+
200: {
|
|
76086
|
+
/**
|
|
76087
|
+
* Result kind; "snapshot" for this shape.
|
|
76088
|
+
*/
|
|
76089
|
+
type: 'snapshot';
|
|
76090
|
+
/**
|
|
76091
|
+
* The screen as an indented text list, one line per meaningful node: its role, its text in quotes and, for a node you can act on, its ref, such as - button "登录" [ref=e3]. Password text is masked.
|
|
76092
|
+
*/
|
|
76093
|
+
snapshot: string;
|
|
76094
|
+
/**
|
|
76095
|
+
* How many nodes received a ref that tap, long_press, scroll and type accept.
|
|
76096
|
+
*/
|
|
76097
|
+
refs: number;
|
|
76098
|
+
/**
|
|
76099
|
+
* True when the hierarchy was too large and was cut; the returned refs still name their nodes.
|
|
76100
|
+
*/
|
|
76101
|
+
truncated: boolean;
|
|
76102
|
+
/**
|
|
76103
|
+
* Package name of the app that was in the foreground at the snapshot, such as com.android.settings.
|
|
76104
|
+
*/
|
|
76105
|
+
package: string;
|
|
76106
|
+
} | {
|
|
76107
|
+
/**
|
|
76108
|
+
* Result kind; "screenshot" for this shape.
|
|
76109
|
+
*/
|
|
76110
|
+
type: 'screenshot';
|
|
76111
|
+
/**
|
|
76112
|
+
* Image MIME type of the encoded bytes; image/jpeg. In code mode, return "data:" + mediaType + ";base64," + data to see the image.
|
|
76113
|
+
*/
|
|
76114
|
+
mediaType: string;
|
|
76115
|
+
/**
|
|
76116
|
+
* Base64-encoded image bytes; decode before saving or viewing.
|
|
76117
|
+
*/
|
|
76118
|
+
data: string;
|
|
76119
|
+
/**
|
|
76120
|
+
* Image width in pixels.
|
|
76121
|
+
*/
|
|
76122
|
+
width: number;
|
|
76123
|
+
/**
|
|
76124
|
+
* Image height in pixels.
|
|
76125
|
+
*/
|
|
76126
|
+
height: number;
|
|
76127
|
+
/**
|
|
76128
|
+
* Decoded image size in bytes.
|
|
76129
|
+
*/
|
|
76130
|
+
bytes: number;
|
|
76131
|
+
} | {
|
|
76132
|
+
/**
|
|
76133
|
+
* Result kind; "ok" for an action with no result of its own.
|
|
76134
|
+
*/
|
|
76135
|
+
type: 'ok';
|
|
76136
|
+
/**
|
|
76137
|
+
* How long the phone took to run the action, in milliseconds.
|
|
76138
|
+
*/
|
|
76139
|
+
ms?: number;
|
|
76140
|
+
} | {
|
|
76141
|
+
/**
|
|
76142
|
+
* Result kind; "wait" for the wait action.
|
|
76143
|
+
*/
|
|
76144
|
+
type: 'wait';
|
|
76145
|
+
/**
|
|
76146
|
+
* How long the call waited, in milliseconds; echoes the requested ms.
|
|
76147
|
+
*/
|
|
76148
|
+
ms: number;
|
|
76149
|
+
};
|
|
76150
|
+
};
|
|
76151
|
+
export type ActOnSandboxDisplayResponse = ActOnSandboxDisplayResponses[keyof ActOnSandboxDisplayResponses];
|
|
74287
76152
|
export type RemoveSandboxFileData = {
|
|
74288
76153
|
body?: never;
|
|
74289
76154
|
path: {
|
|
@@ -74631,6 +76496,436 @@ export type RunSandboxCommandResponses = {
|
|
|
74631
76496
|
};
|
|
74632
76497
|
};
|
|
74633
76498
|
export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
|
|
76499
|
+
export type CreateByodPairingData = {
|
|
76500
|
+
body?: never;
|
|
76501
|
+
path?: never;
|
|
76502
|
+
query?: never;
|
|
76503
|
+
url: '/sandbox/v1/byod/pairings';
|
|
76504
|
+
};
|
|
76505
|
+
export type CreateByodPairingErrors = {
|
|
76506
|
+
/**
|
|
76507
|
+
* 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.
|
|
76508
|
+
*/
|
|
76509
|
+
400: unknown;
|
|
76510
|
+
/**
|
|
76511
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76512
|
+
*/
|
|
76513
|
+
401: unknown;
|
|
76514
|
+
/**
|
|
76515
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76516
|
+
*/
|
|
76517
|
+
503: unknown;
|
|
76518
|
+
};
|
|
76519
|
+
export type CreateByodPairingResponses = {
|
|
76520
|
+
/**
|
|
76521
|
+
* A pairing the caller started: the short code, its deadline and the string the phone's app scans.
|
|
76522
|
+
*/
|
|
76523
|
+
201: {
|
|
76524
|
+
/**
|
|
76525
|
+
* 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.
|
|
76526
|
+
*/
|
|
76527
|
+
code: string;
|
|
76528
|
+
/**
|
|
76529
|
+
* 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.
|
|
76530
|
+
*/
|
|
76531
|
+
expires_at: string;
|
|
76532
|
+
/**
|
|
76533
|
+
* 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.
|
|
76534
|
+
*/
|
|
76535
|
+
qr: string;
|
|
76536
|
+
};
|
|
76537
|
+
};
|
|
76538
|
+
export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
|
|
76539
|
+
export type ListByodDevicesData = {
|
|
76540
|
+
body?: never;
|
|
76541
|
+
path?: never;
|
|
76542
|
+
query?: never;
|
|
76543
|
+
url: '/sandbox/v1/byod/devices';
|
|
76544
|
+
};
|
|
76545
|
+
export type ListByodDevicesErrors = {
|
|
76546
|
+
/**
|
|
76547
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76548
|
+
*/
|
|
76549
|
+
401: unknown;
|
|
76550
|
+
/**
|
|
76551
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76552
|
+
*/
|
|
76553
|
+
503: unknown;
|
|
76554
|
+
};
|
|
76555
|
+
export type ListByodDevicesResponses = {
|
|
76556
|
+
/**
|
|
76557
|
+
* The organization's BYOD devices.
|
|
76558
|
+
*/
|
|
76559
|
+
200: {
|
|
76560
|
+
/**
|
|
76561
|
+
* The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
|
|
76562
|
+
*/
|
|
76563
|
+
data: Array<{
|
|
76564
|
+
/**
|
|
76565
|
+
* Resource type; always "byod_device".
|
|
76566
|
+
*/
|
|
76567
|
+
object: 'byod_device';
|
|
76568
|
+
/**
|
|
76569
|
+
* 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.
|
|
76570
|
+
*/
|
|
76571
|
+
id: string;
|
|
76572
|
+
/**
|
|
76573
|
+
* 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.
|
|
76574
|
+
*/
|
|
76575
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76576
|
+
/**
|
|
76577
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
76578
|
+
*/
|
|
76579
|
+
name: string;
|
|
76580
|
+
/**
|
|
76581
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
76582
|
+
*/
|
|
76583
|
+
model: string;
|
|
76584
|
+
/**
|
|
76585
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
76586
|
+
*/
|
|
76587
|
+
os_version: string;
|
|
76588
|
+
/**
|
|
76589
|
+
* 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.
|
|
76590
|
+
*/
|
|
76591
|
+
online: boolean;
|
|
76592
|
+
/**
|
|
76593
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
76594
|
+
*/
|
|
76595
|
+
last_seen_at: string | null;
|
|
76596
|
+
/**
|
|
76597
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
76598
|
+
*/
|
|
76599
|
+
created_at: string;
|
|
76600
|
+
/**
|
|
76601
|
+
* 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).
|
|
76602
|
+
*/
|
|
76603
|
+
capabilities: Array<'display' | 'agent'>;
|
|
76604
|
+
/**
|
|
76605
|
+
* 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.
|
|
76606
|
+
*/
|
|
76607
|
+
agent_dirs: Array<string>;
|
|
76608
|
+
/**
|
|
76609
|
+
* 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.
|
|
76610
|
+
*/
|
|
76611
|
+
allow_bypass: boolean;
|
|
76612
|
+
}>;
|
|
76613
|
+
};
|
|
76614
|
+
};
|
|
76615
|
+
export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
|
|
76616
|
+
export type GetByodDeviceData = {
|
|
76617
|
+
body?: never;
|
|
76618
|
+
path: {
|
|
76619
|
+
/**
|
|
76620
|
+
* 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.
|
|
76621
|
+
*/
|
|
76622
|
+
deviceID: string;
|
|
76623
|
+
};
|
|
76624
|
+
query?: never;
|
|
76625
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
76626
|
+
};
|
|
76627
|
+
export type GetByodDeviceErrors = {
|
|
76628
|
+
/**
|
|
76629
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76630
|
+
*/
|
|
76631
|
+
401: unknown;
|
|
76632
|
+
/**
|
|
76633
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
76634
|
+
*/
|
|
76635
|
+
404: unknown;
|
|
76636
|
+
/**
|
|
76637
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76638
|
+
*/
|
|
76639
|
+
503: unknown;
|
|
76640
|
+
};
|
|
76641
|
+
export type GetByodDeviceResponses = {
|
|
76642
|
+
/**
|
|
76643
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
76644
|
+
*/
|
|
76645
|
+
200: {
|
|
76646
|
+
/**
|
|
76647
|
+
* Resource type; always "byod_device".
|
|
76648
|
+
*/
|
|
76649
|
+
object: 'byod_device';
|
|
76650
|
+
/**
|
|
76651
|
+
* 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.
|
|
76652
|
+
*/
|
|
76653
|
+
id: string;
|
|
76654
|
+
/**
|
|
76655
|
+
* 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.
|
|
76656
|
+
*/
|
|
76657
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76658
|
+
/**
|
|
76659
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
76660
|
+
*/
|
|
76661
|
+
name: string;
|
|
76662
|
+
/**
|
|
76663
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
76664
|
+
*/
|
|
76665
|
+
model: string;
|
|
76666
|
+
/**
|
|
76667
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
76668
|
+
*/
|
|
76669
|
+
os_version: string;
|
|
76670
|
+
/**
|
|
76671
|
+
* 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.
|
|
76672
|
+
*/
|
|
76673
|
+
online: boolean;
|
|
76674
|
+
/**
|
|
76675
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
76676
|
+
*/
|
|
76677
|
+
last_seen_at: string | null;
|
|
76678
|
+
/**
|
|
76679
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
76680
|
+
*/
|
|
76681
|
+
created_at: string;
|
|
76682
|
+
/**
|
|
76683
|
+
* 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).
|
|
76684
|
+
*/
|
|
76685
|
+
capabilities: Array<'display' | 'agent'>;
|
|
76686
|
+
/**
|
|
76687
|
+
* 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.
|
|
76688
|
+
*/
|
|
76689
|
+
agent_dirs: Array<string>;
|
|
76690
|
+
/**
|
|
76691
|
+
* 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.
|
|
76692
|
+
*/
|
|
76693
|
+
allow_bypass: boolean;
|
|
76694
|
+
};
|
|
76695
|
+
};
|
|
76696
|
+
export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
|
|
76697
|
+
export type UpdateByodDeviceData = {
|
|
76698
|
+
/**
|
|
76699
|
+
* The one field a rename may send.
|
|
76700
|
+
*/
|
|
76701
|
+
body: {
|
|
76702
|
+
/**
|
|
76703
|
+
* New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
|
|
76704
|
+
*/
|
|
76705
|
+
name: string;
|
|
76706
|
+
};
|
|
76707
|
+
path: {
|
|
76708
|
+
/**
|
|
76709
|
+
* 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.
|
|
76710
|
+
*/
|
|
76711
|
+
deviceID: string;
|
|
76712
|
+
};
|
|
76713
|
+
query?: never;
|
|
76714
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
76715
|
+
};
|
|
76716
|
+
export type UpdateByodDeviceErrors = {
|
|
76717
|
+
/**
|
|
76718
|
+
* 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.
|
|
76719
|
+
*/
|
|
76720
|
+
400: unknown;
|
|
76721
|
+
/**
|
|
76722
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76723
|
+
*/
|
|
76724
|
+
401: unknown;
|
|
76725
|
+
/**
|
|
76726
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
76727
|
+
*/
|
|
76728
|
+
404: unknown;
|
|
76729
|
+
/**
|
|
76730
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76731
|
+
*/
|
|
76732
|
+
503: unknown;
|
|
76733
|
+
};
|
|
76734
|
+
export type UpdateByodDeviceResponses = {
|
|
76735
|
+
/**
|
|
76736
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
76737
|
+
*/
|
|
76738
|
+
200: {
|
|
76739
|
+
/**
|
|
76740
|
+
* Resource type; always "byod_device".
|
|
76741
|
+
*/
|
|
76742
|
+
object: 'byod_device';
|
|
76743
|
+
/**
|
|
76744
|
+
* 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.
|
|
76745
|
+
*/
|
|
76746
|
+
id: string;
|
|
76747
|
+
/**
|
|
76748
|
+
* 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.
|
|
76749
|
+
*/
|
|
76750
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76751
|
+
/**
|
|
76752
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
76753
|
+
*/
|
|
76754
|
+
name: string;
|
|
76755
|
+
/**
|
|
76756
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
76757
|
+
*/
|
|
76758
|
+
model: string;
|
|
76759
|
+
/**
|
|
76760
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
76761
|
+
*/
|
|
76762
|
+
os_version: string;
|
|
76763
|
+
/**
|
|
76764
|
+
* 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.
|
|
76765
|
+
*/
|
|
76766
|
+
online: boolean;
|
|
76767
|
+
/**
|
|
76768
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
76769
|
+
*/
|
|
76770
|
+
last_seen_at: string | null;
|
|
76771
|
+
/**
|
|
76772
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
76773
|
+
*/
|
|
76774
|
+
created_at: string;
|
|
76775
|
+
/**
|
|
76776
|
+
* 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).
|
|
76777
|
+
*/
|
|
76778
|
+
capabilities: Array<'display' | 'agent'>;
|
|
76779
|
+
/**
|
|
76780
|
+
* 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.
|
|
76781
|
+
*/
|
|
76782
|
+
agent_dirs: Array<string>;
|
|
76783
|
+
/**
|
|
76784
|
+
* 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.
|
|
76785
|
+
*/
|
|
76786
|
+
allow_bypass: boolean;
|
|
76787
|
+
};
|
|
76788
|
+
};
|
|
76789
|
+
export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
|
|
76790
|
+
export type DisconnectByodDeviceData = {
|
|
76791
|
+
body?: never;
|
|
76792
|
+
path: {
|
|
76793
|
+
/**
|
|
76794
|
+
* 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.
|
|
76795
|
+
*/
|
|
76796
|
+
deviceID: string;
|
|
76797
|
+
};
|
|
76798
|
+
query?: never;
|
|
76799
|
+
url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
|
|
76800
|
+
};
|
|
76801
|
+
export type DisconnectByodDeviceErrors = {
|
|
76802
|
+
/**
|
|
76803
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76804
|
+
*/
|
|
76805
|
+
401: unknown;
|
|
76806
|
+
/**
|
|
76807
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
76808
|
+
*/
|
|
76809
|
+
404: unknown;
|
|
76810
|
+
/**
|
|
76811
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76812
|
+
*/
|
|
76813
|
+
503: unknown;
|
|
76814
|
+
};
|
|
76815
|
+
export type DisconnectByodDeviceResponses = {
|
|
76816
|
+
/**
|
|
76817
|
+
* The disconnected device.
|
|
76818
|
+
*/
|
|
76819
|
+
200: {
|
|
76820
|
+
/**
|
|
76821
|
+
* Id of the device that was disconnected.
|
|
76822
|
+
*/
|
|
76823
|
+
id: string;
|
|
76824
|
+
/**
|
|
76825
|
+
* Resource type; always "byod_device".
|
|
76826
|
+
*/
|
|
76827
|
+
object: 'byod_device';
|
|
76828
|
+
/**
|
|
76829
|
+
* Always true: the credential is revoked and the connection closed.
|
|
76830
|
+
*/
|
|
76831
|
+
disconnected: true;
|
|
76832
|
+
};
|
|
76833
|
+
};
|
|
76834
|
+
export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
|
|
76835
|
+
export type GetByodPairingData = {
|
|
76836
|
+
body?: never;
|
|
76837
|
+
path: {
|
|
76838
|
+
/**
|
|
76839
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
76840
|
+
*/
|
|
76841
|
+
code: string;
|
|
76842
|
+
};
|
|
76843
|
+
query?: never;
|
|
76844
|
+
url: '/sandbox/v1/byod/pairings/{code}';
|
|
76845
|
+
};
|
|
76846
|
+
export type GetByodPairingErrors = {
|
|
76847
|
+
/**
|
|
76848
|
+
* 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.
|
|
76849
|
+
*/
|
|
76850
|
+
404: unknown;
|
|
76851
|
+
};
|
|
76852
|
+
export type GetByodPairingResponses = {
|
|
76853
|
+
/**
|
|
76854
|
+
* What the Allow screen reads.
|
|
76855
|
+
*/
|
|
76856
|
+
200: {
|
|
76857
|
+
/**
|
|
76858
|
+
* Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
|
|
76859
|
+
*/
|
|
76860
|
+
organization_name: string;
|
|
76861
|
+
/**
|
|
76862
|
+
* When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
|
|
76863
|
+
*/
|
|
76864
|
+
expires_at: string;
|
|
76865
|
+
};
|
|
76866
|
+
};
|
|
76867
|
+
export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
|
|
76868
|
+
export type ClaimByodPairingData = {
|
|
76869
|
+
/**
|
|
76870
|
+
* What the phone's app knows about itself when it claims the pairing.
|
|
76871
|
+
*/
|
|
76872
|
+
body: {
|
|
76873
|
+
/**
|
|
76874
|
+
* 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.
|
|
76875
|
+
*/
|
|
76876
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76877
|
+
/**
|
|
76878
|
+
* 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.
|
|
76879
|
+
*/
|
|
76880
|
+
name?: string;
|
|
76881
|
+
/**
|
|
76882
|
+
* The device model the app reports, at most 128 characters; it is display only and can be omitted.
|
|
76883
|
+
*/
|
|
76884
|
+
model?: string;
|
|
76885
|
+
/**
|
|
76886
|
+
* The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
|
|
76887
|
+
*/
|
|
76888
|
+
os_version?: string;
|
|
76889
|
+
};
|
|
76890
|
+
path: {
|
|
76891
|
+
/**
|
|
76892
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
76893
|
+
*/
|
|
76894
|
+
code: string;
|
|
76895
|
+
};
|
|
76896
|
+
query?: never;
|
|
76897
|
+
url: '/sandbox/v1/byod/pairings/{code}/claim';
|
|
76898
|
+
};
|
|
76899
|
+
export type ClaimByodPairingErrors = {
|
|
76900
|
+
/**
|
|
76901
|
+
* 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.
|
|
76902
|
+
*/
|
|
76903
|
+
400: unknown;
|
|
76904
|
+
/**
|
|
76905
|
+
* 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.
|
|
76906
|
+
*/
|
|
76907
|
+
404: unknown;
|
|
76908
|
+
};
|
|
76909
|
+
export type ClaimByodPairingResponses = {
|
|
76910
|
+
/**
|
|
76911
|
+
* The device's registration and its one-time credential.
|
|
76912
|
+
*/
|
|
76913
|
+
201: {
|
|
76914
|
+
/**
|
|
76915
|
+
* Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
|
|
76916
|
+
*/
|
|
76917
|
+
device_id: string;
|
|
76918
|
+
/**
|
|
76919
|
+
* 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.
|
|
76920
|
+
*/
|
|
76921
|
+
credential: string;
|
|
76922
|
+
/**
|
|
76923
|
+
* The control socket to dial, wss://49982-byd<hex>--sbx[-<env>].praxisusercontent.com/; connect with the credential in an Authorization: Bearer header. The connection carries the phone channel's frames.
|
|
76924
|
+
*/
|
|
76925
|
+
socket_url: string;
|
|
76926
|
+
};
|
|
76927
|
+
};
|
|
76928
|
+
export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
|
|
74634
76929
|
export type SessionsDeleteData = {
|
|
74635
76930
|
body?: never;
|
|
74636
76931
|
path: {
|
|
@@ -74859,6 +77154,23 @@ export type SessionsRetrieveResponses = {
|
|
|
74859
77154
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
74860
77155
|
*/
|
|
74861
77156
|
cwd: string;
|
|
77157
|
+
/**
|
|
77158
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
77159
|
+
*/
|
|
77160
|
+
workspace?: {
|
|
77161
|
+
/**
|
|
77162
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
77163
|
+
*/
|
|
77164
|
+
kind: 'shared' | 'isolated';
|
|
77165
|
+
/**
|
|
77166
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
77167
|
+
*/
|
|
77168
|
+
path?: string;
|
|
77169
|
+
/**
|
|
77170
|
+
* The worktree's branch; present only when kind is isolated.
|
|
77171
|
+
*/
|
|
77172
|
+
branch?: string;
|
|
77173
|
+
};
|
|
74862
77174
|
/**
|
|
74863
77175
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
74864
77176
|
*/
|
|
@@ -75154,6 +77466,23 @@ export type SessionsUpdateResponses = {
|
|
|
75154
77466
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
75155
77467
|
*/
|
|
75156
77468
|
cwd: string;
|
|
77469
|
+
/**
|
|
77470
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
77471
|
+
*/
|
|
77472
|
+
workspace?: {
|
|
77473
|
+
/**
|
|
77474
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
77475
|
+
*/
|
|
77476
|
+
kind: 'shared' | 'isolated';
|
|
77477
|
+
/**
|
|
77478
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
77479
|
+
*/
|
|
77480
|
+
path?: string;
|
|
77481
|
+
/**
|
|
77482
|
+
* The worktree's branch; present only when kind is isolated.
|
|
77483
|
+
*/
|
|
77484
|
+
branch?: string;
|
|
77485
|
+
};
|
|
75157
77486
|
/**
|
|
75158
77487
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
75159
77488
|
*/
|
|
@@ -76416,7 +78745,7 @@ export type AgentsCreateData = {
|
|
|
76416
78745
|
}>;
|
|
76417
78746
|
};
|
|
76418
78747
|
/**
|
|
76419
|
-
* Optional tool preset. minimal enables read, glob
|
|
78748
|
+
* 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.
|
|
76420
78749
|
*/
|
|
76421
78750
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
76422
78751
|
/**
|
|
@@ -78283,7 +80612,7 @@ export type AgentsUpdateData = {
|
|
|
78283
80612
|
}>;
|
|
78284
80613
|
};
|
|
78285
80614
|
/**
|
|
78286
|
-
* Optional tool preset. minimal enables read, glob
|
|
80615
|
+
* 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.
|
|
78287
80616
|
*/
|
|
78288
80617
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
78289
80618
|
/**
|
|
@@ -80503,6 +82832,23 @@ export type SessionsListResponses = {
|
|
|
80503
82832
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80504
82833
|
*/
|
|
80505
82834
|
cwd: string;
|
|
82835
|
+
/**
|
|
82836
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
82837
|
+
*/
|
|
82838
|
+
workspace?: {
|
|
82839
|
+
/**
|
|
82840
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
82841
|
+
*/
|
|
82842
|
+
kind: 'shared' | 'isolated';
|
|
82843
|
+
/**
|
|
82844
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
82845
|
+
*/
|
|
82846
|
+
path?: string;
|
|
82847
|
+
/**
|
|
82848
|
+
* The worktree's branch; present only when kind is isolated.
|
|
82849
|
+
*/
|
|
82850
|
+
branch?: string;
|
|
82851
|
+
};
|
|
80506
82852
|
/**
|
|
80507
82853
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
80508
82854
|
*/
|
|
@@ -80615,6 +82961,10 @@ export type SessionsCreateData = {
|
|
|
80615
82961
|
* Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd.
|
|
80616
82962
|
*/
|
|
80617
82963
|
cwd?: string;
|
|
82964
|
+
/**
|
|
82965
|
+
* Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared.
|
|
82966
|
+
*/
|
|
82967
|
+
workspace?: 'shared' | 'isolated';
|
|
80618
82968
|
/**
|
|
80619
82969
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
|
|
80620
82970
|
*/
|
|
@@ -80837,6 +83187,23 @@ export type SessionsCreateResponses = {
|
|
|
80837
83187
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80838
83188
|
*/
|
|
80839
83189
|
cwd: string;
|
|
83190
|
+
/**
|
|
83191
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
83192
|
+
*/
|
|
83193
|
+
workspace?: {
|
|
83194
|
+
/**
|
|
83195
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
83196
|
+
*/
|
|
83197
|
+
kind: 'shared' | 'isolated';
|
|
83198
|
+
/**
|
|
83199
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
83200
|
+
*/
|
|
83201
|
+
path?: string;
|
|
83202
|
+
/**
|
|
83203
|
+
* The worktree's branch; present only when kind is isolated.
|
|
83204
|
+
*/
|
|
83205
|
+
branch?: string;
|
|
83206
|
+
};
|
|
80840
83207
|
/**
|
|
80841
83208
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
80842
83209
|
*/
|
|
@@ -81091,6 +83458,23 @@ export type SessionsArchiveResponses = {
|
|
|
81091
83458
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
81092
83459
|
*/
|
|
81093
83460
|
cwd: string;
|
|
83461
|
+
/**
|
|
83462
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
83463
|
+
*/
|
|
83464
|
+
workspace?: {
|
|
83465
|
+
/**
|
|
83466
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
83467
|
+
*/
|
|
83468
|
+
kind: 'shared' | 'isolated';
|
|
83469
|
+
/**
|
|
83470
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
83471
|
+
*/
|
|
83472
|
+
path?: string;
|
|
83473
|
+
/**
|
|
83474
|
+
* The worktree's branch; present only when kind is isolated.
|
|
83475
|
+
*/
|
|
83476
|
+
branch?: string;
|
|
83477
|
+
};
|
|
81094
83478
|
/**
|
|
81095
83479
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
81096
83480
|
*/
|
|
@@ -81938,48 +84322,6 @@ export type SessionsEventsListResponses = {
|
|
|
81938
84322
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
81939
84323
|
*/
|
|
81940
84324
|
processed_at: string;
|
|
81941
|
-
} | {
|
|
81942
|
-
/**
|
|
81943
|
-
* Event id, unique within the session.
|
|
81944
|
-
*/
|
|
81945
|
-
id: string;
|
|
81946
|
-
/**
|
|
81947
|
-
* Always `user.tool_confirmation`.
|
|
81948
|
-
*/
|
|
81949
|
-
type: 'user.tool_confirmation';
|
|
81950
|
-
/**
|
|
81951
|
-
* When the event was recorded, RFC 3339.
|
|
81952
|
-
*/
|
|
81953
|
-
processed_at: string;
|
|
81954
|
-
/**
|
|
81955
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
81956
|
-
*/
|
|
81957
|
-
tool_use_id: string;
|
|
81958
|
-
/**
|
|
81959
|
-
* Always `allow`.
|
|
81960
|
-
*/
|
|
81961
|
-
result: 'allow';
|
|
81962
|
-
/**
|
|
81963
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
81964
|
-
*/
|
|
81965
|
-
answers: {
|
|
81966
|
-
[key: string]: string;
|
|
81967
|
-
};
|
|
81968
|
-
/**
|
|
81969
|
-
* Per-question notes, keyed by the question text.
|
|
81970
|
-
*/
|
|
81971
|
-
annotations?: {
|
|
81972
|
-
[key: string]: {
|
|
81973
|
-
/**
|
|
81974
|
-
* The preview of the option the user chose.
|
|
81975
|
-
*/
|
|
81976
|
-
preview?: string;
|
|
81977
|
-
/**
|
|
81978
|
-
* Free text the user added to their choice.
|
|
81979
|
-
*/
|
|
81980
|
-
notes?: string;
|
|
81981
|
-
};
|
|
81982
|
-
};
|
|
81983
84325
|
}>;
|
|
81984
84326
|
/**
|
|
81985
84327
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -82029,40 +84371,6 @@ export type SessionsEventsSendData = {
|
|
|
82029
84371
|
* Id of the event this event refers to.
|
|
82030
84372
|
*/
|
|
82031
84373
|
event_id: string;
|
|
82032
|
-
} | {
|
|
82033
|
-
/**
|
|
82034
|
-
* Always `user.tool_confirmation`.
|
|
82035
|
-
*/
|
|
82036
|
-
type: 'user.tool_confirmation';
|
|
82037
|
-
/**
|
|
82038
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
82039
|
-
*/
|
|
82040
|
-
tool_use_id: string;
|
|
82041
|
-
/**
|
|
82042
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
82043
|
-
*/
|
|
82044
|
-
result: 'allow';
|
|
82045
|
-
/**
|
|
82046
|
-
* 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.
|
|
82047
|
-
*/
|
|
82048
|
-
answers: {
|
|
82049
|
-
[key: string]: string;
|
|
82050
|
-
};
|
|
82051
|
-
/**
|
|
82052
|
-
* Optional per-question notes, keyed by the question text.
|
|
82053
|
-
*/
|
|
82054
|
-
annotations?: {
|
|
82055
|
-
[key: string]: {
|
|
82056
|
-
/**
|
|
82057
|
-
* The preview of the option the user chose.
|
|
82058
|
-
*/
|
|
82059
|
-
preview?: string;
|
|
82060
|
-
/**
|
|
82061
|
-
* Free text the user added to their choice.
|
|
82062
|
-
*/
|
|
82063
|
-
notes?: string;
|
|
82064
|
-
};
|
|
82065
|
-
};
|
|
82066
84374
|
}>;
|
|
82067
84375
|
};
|
|
82068
84376
|
path: {
|
|
@@ -82157,48 +84465,6 @@ export type SessionsEventsSendResponses = {
|
|
|
82157
84465
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82158
84466
|
*/
|
|
82159
84467
|
processed_at: string;
|
|
82160
|
-
} | {
|
|
82161
|
-
/**
|
|
82162
|
-
* Event id, unique within the session.
|
|
82163
|
-
*/
|
|
82164
|
-
id: string;
|
|
82165
|
-
/**
|
|
82166
|
-
* Always `user.tool_confirmation`.
|
|
82167
|
-
*/
|
|
82168
|
-
type: 'user.tool_confirmation';
|
|
82169
|
-
/**
|
|
82170
|
-
* When the event was recorded, RFC 3339.
|
|
82171
|
-
*/
|
|
82172
|
-
processed_at: string;
|
|
82173
|
-
/**
|
|
82174
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82175
|
-
*/
|
|
82176
|
-
tool_use_id: string;
|
|
82177
|
-
/**
|
|
82178
|
-
* Always `allow`.
|
|
82179
|
-
*/
|
|
82180
|
-
result: 'allow';
|
|
82181
|
-
/**
|
|
82182
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82183
|
-
*/
|
|
82184
|
-
answers: {
|
|
82185
|
-
[key: string]: string;
|
|
82186
|
-
};
|
|
82187
|
-
/**
|
|
82188
|
-
* Per-question notes, keyed by the question text.
|
|
82189
|
-
*/
|
|
82190
|
-
annotations?: {
|
|
82191
|
-
[key: string]: {
|
|
82192
|
-
/**
|
|
82193
|
-
* The preview of the option the user chose.
|
|
82194
|
-
*/
|
|
82195
|
-
preview?: string;
|
|
82196
|
-
/**
|
|
82197
|
-
* Free text the user added to their choice.
|
|
82198
|
-
*/
|
|
82199
|
-
notes?: string;
|
|
82200
|
-
};
|
|
82201
|
-
};
|
|
82202
84468
|
}>;
|
|
82203
84469
|
};
|
|
82204
84470
|
};
|
|
@@ -97621,6 +99887,97 @@ export type DevopsProjectsListResponses = {
|
|
|
97621
99887
|
200: DevopsProjectPage;
|
|
97622
99888
|
};
|
|
97623
99889
|
export type DevopsProjectsListResponse = DevopsProjectsListResponses[keyof DevopsProjectsListResponses];
|
|
99890
|
+
export type DevopsProjectsCreateData = {
|
|
99891
|
+
/**
|
|
99892
|
+
* The project's name and where its code lives: a git package of our own Git, or a GitHub repository.
|
|
99893
|
+
*/
|
|
99894
|
+
body: DevopsProjectCreate;
|
|
99895
|
+
path?: never;
|
|
99896
|
+
query?: never;
|
|
99897
|
+
url: '/devops/v1/projects';
|
|
99898
|
+
};
|
|
99899
|
+
export type DevopsProjectsCreateErrors = {
|
|
99900
|
+
/**
|
|
99901
|
+
* 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.
|
|
99902
|
+
*/
|
|
99903
|
+
400: DevopsDevOpsError;
|
|
99904
|
+
/**
|
|
99905
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
99906
|
+
*/
|
|
99907
|
+
401: DevopsDevOpsError;
|
|
99908
|
+
/**
|
|
99909
|
+
* 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.
|
|
99910
|
+
*/
|
|
99911
|
+
403: DevopsDevOpsError;
|
|
99912
|
+
/**
|
|
99913
|
+
* 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.
|
|
99914
|
+
*/
|
|
99915
|
+
404: DevopsDevOpsError;
|
|
99916
|
+
/**
|
|
99917
|
+
* 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.
|
|
99918
|
+
*/
|
|
99919
|
+
409: DevopsDevOpsError;
|
|
99920
|
+
/**
|
|
99921
|
+
* 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.
|
|
99922
|
+
*/
|
|
99923
|
+
500: DevopsDevOpsError;
|
|
99924
|
+
};
|
|
99925
|
+
export type DevopsProjectsCreateError = DevopsProjectsCreateErrors[keyof DevopsProjectsCreateErrors];
|
|
99926
|
+
export type DevopsProjectsCreateResponses = {
|
|
99927
|
+
/**
|
|
99928
|
+
* The created project with its repository binding, settings and labels.
|
|
99929
|
+
*/
|
|
99930
|
+
200: DevopsProject;
|
|
99931
|
+
};
|
|
99932
|
+
export type DevopsProjectsCreateResponse = DevopsProjectsCreateResponses[keyof DevopsProjectsCreateResponses];
|
|
99933
|
+
export type DevopsProjectsInitializeDefaultBranchData = {
|
|
99934
|
+
/**
|
|
99935
|
+
* The existing branch to start the default branch from.
|
|
99936
|
+
*/
|
|
99937
|
+
body: DevopsDefaultBranchInitialize;
|
|
99938
|
+
path: {
|
|
99939
|
+
/**
|
|
99940
|
+
* The project identifier returned by the project list, not the project's display name or its repository name.
|
|
99941
|
+
*/
|
|
99942
|
+
id: string;
|
|
99943
|
+
};
|
|
99944
|
+
query?: never;
|
|
99945
|
+
url: '/devops/v1/projects/{id}/default-branch:initialize';
|
|
99946
|
+
};
|
|
99947
|
+
export type DevopsProjectsInitializeDefaultBranchErrors = {
|
|
99948
|
+
/**
|
|
99949
|
+
* 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.
|
|
99950
|
+
*/
|
|
99951
|
+
400: DevopsDevOpsError;
|
|
99952
|
+
/**
|
|
99953
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
99954
|
+
*/
|
|
99955
|
+
401: DevopsDevOpsError;
|
|
99956
|
+
/**
|
|
99957
|
+
* 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.
|
|
99958
|
+
*/
|
|
99959
|
+
403: DevopsDevOpsError;
|
|
99960
|
+
/**
|
|
99961
|
+
* PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
|
|
99962
|
+
*/
|
|
99963
|
+
404: DevopsDevOpsError;
|
|
99964
|
+
/**
|
|
99965
|
+
* DEFAULT_BRANCH_EXISTS means the default branch is already there; it is never moved by this call.
|
|
99966
|
+
*/
|
|
99967
|
+
409: DevopsDevOpsError;
|
|
99968
|
+
/**
|
|
99969
|
+
* 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.
|
|
99970
|
+
*/
|
|
99971
|
+
500: DevopsDevOpsError;
|
|
99972
|
+
};
|
|
99973
|
+
export type DevopsProjectsInitializeDefaultBranchError = DevopsProjectsInitializeDefaultBranchErrors[keyof DevopsProjectsInitializeDefaultBranchErrors];
|
|
99974
|
+
export type DevopsProjectsInitializeDefaultBranchResponses = {
|
|
99975
|
+
/**
|
|
99976
|
+
* The default branch now exists: its name, the branch it was started from and the commit it points at.
|
|
99977
|
+
*/
|
|
99978
|
+
200: DevopsDefaultBranchInitialized;
|
|
99979
|
+
};
|
|
99980
|
+
export type DevopsProjectsInitializeDefaultBranchResponse = DevopsProjectsInitializeDefaultBranchResponses[keyof DevopsProjectsInitializeDefaultBranchResponses];
|
|
97624
99981
|
export type DevopsProjectsGetData = {
|
|
97625
99982
|
body?: never;
|
|
97626
99983
|
path: {
|
|
@@ -98130,7 +100487,7 @@ export type DevopsPromotionsRetryErrors = {
|
|
|
98130
100487
|
*/
|
|
98131
100488
|
404: DevopsDevOpsError;
|
|
98132
100489
|
/**
|
|
98133
|
-
*
|
|
100490
|
+
* 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.
|
|
98134
100491
|
*/
|
|
98135
100492
|
409: DevopsDevOpsError;
|
|
98136
100493
|
/**
|
|
@@ -99796,16 +102153,102 @@ export type DevopsPullRequestsRerunGateErrors = {
|
|
|
99796
102153
|
*/
|
|
99797
102154
|
500: DevopsDevOpsError;
|
|
99798
102155
|
};
|
|
99799
|
-
export type DevopsPullRequestsRerunGateError = DevopsPullRequestsRerunGateErrors[keyof DevopsPullRequestsRerunGateErrors];
|
|
99800
|
-
export type DevopsPullRequestsRerunGateResponses = {
|
|
102156
|
+
export type DevopsPullRequestsRerunGateError = DevopsPullRequestsRerunGateErrors[keyof DevopsPullRequestsRerunGateErrors];
|
|
102157
|
+
export type DevopsPullRequestsRerunGateResponses = {
|
|
102158
|
+
/**
|
|
102159
|
+
* The pull request with the gate this run decided at its head, and the gate's checks in the order the decision made them.
|
|
102160
|
+
*/
|
|
102161
|
+
200: DevopsPullRequest;
|
|
102162
|
+
};
|
|
102163
|
+
export type DevopsPullRequestsRerunGateResponse = DevopsPullRequestsRerunGateResponses[keyof DevopsPullRequestsRerunGateResponses];
|
|
102164
|
+
export type DevopsPullRequestsMergeData = {
|
|
102165
|
+
body?: DevopsPullRequestMergeRequest;
|
|
102166
|
+
path: {
|
|
102167
|
+
/**
|
|
102168
|
+
* 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.
|
|
102169
|
+
*/
|
|
102170
|
+
id: string;
|
|
102171
|
+
};
|
|
102172
|
+
query?: never;
|
|
102173
|
+
url: '/devops/v1/pull-requests/{id}:merge';
|
|
102174
|
+
};
|
|
102175
|
+
export type DevopsPullRequestsMergeErrors = {
|
|
102176
|
+
/**
|
|
102177
|
+
* 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.
|
|
102178
|
+
*/
|
|
102179
|
+
400: DevopsDevOpsError;
|
|
102180
|
+
/**
|
|
102181
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
102182
|
+
*/
|
|
102183
|
+
401: DevopsDevOpsError;
|
|
102184
|
+
/**
|
|
102185
|
+
* 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.
|
|
102186
|
+
*/
|
|
102187
|
+
403: DevopsDevOpsError;
|
|
102188
|
+
/**
|
|
102189
|
+
* 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.
|
|
102190
|
+
*/
|
|
102191
|
+
404: DevopsDevOpsError;
|
|
102192
|
+
/**
|
|
102193
|
+
* 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.
|
|
102194
|
+
*/
|
|
102195
|
+
409: DevopsDevOpsError;
|
|
102196
|
+
/**
|
|
102197
|
+
* 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.
|
|
102198
|
+
*/
|
|
102199
|
+
500: DevopsDevOpsError;
|
|
102200
|
+
};
|
|
102201
|
+
export type DevopsPullRequestsMergeError = DevopsPullRequestsMergeErrors[keyof DevopsPullRequestsMergeErrors];
|
|
102202
|
+
export type DevopsPullRequestsMergeResponses = {
|
|
102203
|
+
/**
|
|
102204
|
+
* The pull request as it now stands: state merged with its mergeCommitSha and mergeTime, or, with queue true, the queue state queued or building.
|
|
102205
|
+
*/
|
|
102206
|
+
200: DevopsPullRequest;
|
|
102207
|
+
};
|
|
102208
|
+
export type DevopsPullRequestsMergeResponse = DevopsPullRequestsMergeResponses[keyof DevopsPullRequestsMergeResponses];
|
|
102209
|
+
export type DevopsPullRequestsRecordVerdictData = {
|
|
102210
|
+
body: DevopsPullRequestVerdictRequest;
|
|
102211
|
+
path: {
|
|
102212
|
+
/**
|
|
102213
|
+
* 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.
|
|
102214
|
+
*/
|
|
102215
|
+
id: string;
|
|
102216
|
+
};
|
|
102217
|
+
query?: never;
|
|
102218
|
+
url: '/devops/v1/pull-requests/{id}:recordVerdict';
|
|
102219
|
+
};
|
|
102220
|
+
export type DevopsPullRequestsRecordVerdictErrors = {
|
|
102221
|
+
/**
|
|
102222
|
+
* 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.
|
|
102223
|
+
*/
|
|
102224
|
+
400: DevopsDevOpsError;
|
|
102225
|
+
/**
|
|
102226
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
102227
|
+
*/
|
|
102228
|
+
401: DevopsDevOpsError;
|
|
102229
|
+
/**
|
|
102230
|
+
* 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.
|
|
102231
|
+
*/
|
|
102232
|
+
403: DevopsDevOpsError;
|
|
102233
|
+
/**
|
|
102234
|
+
* 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.
|
|
102235
|
+
*/
|
|
102236
|
+
404: DevopsDevOpsError;
|
|
102237
|
+
/**
|
|
102238
|
+
* 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.
|
|
102239
|
+
*/
|
|
102240
|
+
500: DevopsDevOpsError;
|
|
102241
|
+
};
|
|
102242
|
+
export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
|
|
102243
|
+
export type DevopsPullRequestsRecordVerdictResponses = {
|
|
99801
102244
|
/**
|
|
99802
|
-
* The pull request with the gate
|
|
102245
|
+
* The pull request with the gate it now reaches, the exposure-judged check showing the verdict and its reason.
|
|
99803
102246
|
*/
|
|
99804
102247
|
200: DevopsPullRequest;
|
|
99805
102248
|
};
|
|
99806
|
-
export type
|
|
99807
|
-
export type
|
|
99808
|
-
body
|
|
102249
|
+
export type DevopsPullRequestsRecordVerdictResponse = DevopsPullRequestsRecordVerdictResponses[keyof DevopsPullRequestsRecordVerdictResponses];
|
|
102250
|
+
export type DevopsPullRequestsCloseData = {
|
|
102251
|
+
body: DevopsPullRequestCloseRequest;
|
|
99809
102252
|
path: {
|
|
99810
102253
|
/**
|
|
99811
102254
|
* 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.
|
|
@@ -99813,9 +102256,9 @@ export type DevopsPullRequestsMergeData = {
|
|
|
99813
102256
|
id: string;
|
|
99814
102257
|
};
|
|
99815
102258
|
query?: never;
|
|
99816
|
-
url: '/devops/v1/pull-requests/{id}:
|
|
102259
|
+
url: '/devops/v1/pull-requests/{id}:close';
|
|
99817
102260
|
};
|
|
99818
|
-
export type
|
|
102261
|
+
export type DevopsPullRequestsCloseErrors = {
|
|
99819
102262
|
/**
|
|
99820
102263
|
* 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.
|
|
99821
102264
|
*/
|
|
@@ -99833,7 +102276,7 @@ export type DevopsPullRequestsMergeErrors = {
|
|
|
99833
102276
|
*/
|
|
99834
102277
|
404: DevopsDevOpsError;
|
|
99835
102278
|
/**
|
|
99836
|
-
*
|
|
102279
|
+
* PULL_REQUEST_NOT_OPEN when the pull request is merged or is not open on GitHub: nothing was closed, and the message says which state GitHub reported.
|
|
99837
102280
|
*/
|
|
99838
102281
|
409: DevopsDevOpsError;
|
|
99839
102282
|
/**
|
|
@@ -99841,57 +102284,16 @@ export type DevopsPullRequestsMergeErrors = {
|
|
|
99841
102284
|
*/
|
|
99842
102285
|
500: DevopsDevOpsError;
|
|
99843
102286
|
};
|
|
99844
|
-
export type
|
|
99845
|
-
export type
|
|
99846
|
-
/**
|
|
99847
|
-
* The pull request as it now stands: state merged with its mergeCommitSha and mergeTime, or, with queue true, the queue state queued or building.
|
|
99848
|
-
*/
|
|
99849
|
-
200: DevopsPullRequest;
|
|
99850
|
-
};
|
|
99851
|
-
export type DevopsPullRequestsMergeResponse = DevopsPullRequestsMergeResponses[keyof DevopsPullRequestsMergeResponses];
|
|
99852
|
-
export type DevopsPullRequestsRecordVerdictData = {
|
|
99853
|
-
body: DevopsPullRequestVerdictRequest;
|
|
99854
|
-
path: {
|
|
99855
|
-
/**
|
|
99856
|
-
* 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.
|
|
99857
|
-
*/
|
|
99858
|
-
id: string;
|
|
99859
|
-
};
|
|
99860
|
-
query?: never;
|
|
99861
|
-
url: '/devops/v1/pull-requests/{id}:recordVerdict';
|
|
99862
|
-
};
|
|
99863
|
-
export type DevopsPullRequestsRecordVerdictErrors = {
|
|
99864
|
-
/**
|
|
99865
|
-
* 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.
|
|
99866
|
-
*/
|
|
99867
|
-
400: DevopsDevOpsError;
|
|
99868
|
-
/**
|
|
99869
|
-
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
99870
|
-
*/
|
|
99871
|
-
401: DevopsDevOpsError;
|
|
99872
|
-
/**
|
|
99873
|
-
* 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.
|
|
99874
|
-
*/
|
|
99875
|
-
403: DevopsDevOpsError;
|
|
99876
|
-
/**
|
|
99877
|
-
* 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.
|
|
99878
|
-
*/
|
|
99879
|
-
404: DevopsDevOpsError;
|
|
99880
|
-
/**
|
|
99881
|
-
* 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.
|
|
99882
|
-
*/
|
|
99883
|
-
500: DevopsDevOpsError;
|
|
99884
|
-
};
|
|
99885
|
-
export type DevopsPullRequestsRecordVerdictError = DevopsPullRequestsRecordVerdictErrors[keyof DevopsPullRequestsRecordVerdictErrors];
|
|
99886
|
-
export type DevopsPullRequestsRecordVerdictResponses = {
|
|
102287
|
+
export type DevopsPullRequestsCloseError = DevopsPullRequestsCloseErrors[keyof DevopsPullRequestsCloseErrors];
|
|
102288
|
+
export type DevopsPullRequestsCloseResponses = {
|
|
99887
102289
|
/**
|
|
99888
|
-
* The pull request
|
|
102290
|
+
* The pull request as it now stands: state closed with its closeTime, or, for one that was already closed, the answer it had before this call.
|
|
99889
102291
|
*/
|
|
99890
102292
|
200: DevopsPullRequest;
|
|
99891
102293
|
};
|
|
99892
|
-
export type
|
|
99893
|
-
export type
|
|
99894
|
-
body:
|
|
102294
|
+
export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
|
|
102295
|
+
export type DevopsPullRequestsReviewsCreateData = {
|
|
102296
|
+
body: DevopsPullRequestReviewRequest;
|
|
99895
102297
|
path: {
|
|
99896
102298
|
/**
|
|
99897
102299
|
* 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.
|
|
@@ -99899,9 +102301,9 @@ export type DevopsPullRequestsCloseData = {
|
|
|
99899
102301
|
id: string;
|
|
99900
102302
|
};
|
|
99901
102303
|
query?: never;
|
|
99902
|
-
url: '/devops/v1/pull-requests/{id}
|
|
102304
|
+
url: '/devops/v1/pull-requests/{id}/reviews';
|
|
99903
102305
|
};
|
|
99904
|
-
export type
|
|
102306
|
+
export type DevopsPullRequestsReviewsCreateErrors = {
|
|
99905
102307
|
/**
|
|
99906
102308
|
* 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.
|
|
99907
102309
|
*/
|
|
@@ -99919,7 +102321,7 @@ export type DevopsPullRequestsCloseErrors = {
|
|
|
99919
102321
|
*/
|
|
99920
102322
|
404: DevopsDevOpsError;
|
|
99921
102323
|
/**
|
|
99922
|
-
* PULL_REQUEST_NOT_OPEN when the pull request is merged or
|
|
102324
|
+
* PULL_REQUEST_NOT_OPEN when the pull request is merged or closed: nothing was recorded.
|
|
99923
102325
|
*/
|
|
99924
102326
|
409: DevopsDevOpsError;
|
|
99925
102327
|
/**
|
|
@@ -99927,14 +102329,14 @@ export type DevopsPullRequestsCloseErrors = {
|
|
|
99927
102329
|
*/
|
|
99928
102330
|
500: DevopsDevOpsError;
|
|
99929
102331
|
};
|
|
99930
|
-
export type
|
|
99931
|
-
export type
|
|
102332
|
+
export type DevopsPullRequestsReviewsCreateError = DevopsPullRequestsReviewsCreateErrors[keyof DevopsPullRequestsReviewsCreateErrors];
|
|
102333
|
+
export type DevopsPullRequestsReviewsCreateResponses = {
|
|
99932
102334
|
/**
|
|
99933
|
-
* The pull request as it now stands:
|
|
102335
|
+
* 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.
|
|
99934
102336
|
*/
|
|
99935
102337
|
200: DevopsPullRequest;
|
|
99936
102338
|
};
|
|
99937
|
-
export type
|
|
102339
|
+
export type DevopsPullRequestsReviewsCreateResponse = DevopsPullRequestsReviewsCreateResponses[keyof DevopsPullRequestsReviewsCreateResponses];
|
|
99938
102340
|
export type DevopsConnectionsListData = {
|
|
99939
102341
|
body?: never;
|
|
99940
102342
|
path?: never;
|
|
@@ -105433,6 +107835,14 @@ export type MediaCreateSpeechData = {
|
|
|
105433
107835
|
* Language of the text, when the voice supports several.
|
|
105434
107836
|
*/
|
|
105435
107837
|
language?: string;
|
|
107838
|
+
/**
|
|
107839
|
+
* 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.
|
|
107840
|
+
*/
|
|
107841
|
+
model?: string;
|
|
107842
|
+
/**
|
|
107843
|
+
* 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.
|
|
107844
|
+
*/
|
|
107845
|
+
tier?: MediaMediaTier;
|
|
105436
107846
|
};
|
|
105437
107847
|
headers?: {
|
|
105438
107848
|
/**
|
|
@@ -105467,7 +107877,7 @@ export type MediaCreateSpeechErrors = {
|
|
|
105467
107877
|
*/
|
|
105468
107878
|
404: MediaMediaError;
|
|
105469
107879
|
/**
|
|
105470
|
-
* 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.
|
|
107880
|
+
* 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.
|
|
105471
107881
|
*/
|
|
105472
107882
|
409: MediaMediaError;
|
|
105473
107883
|
/**
|
|
@@ -107514,9 +109924,9 @@ export type RegistryRepositoriesPackagesListResponses = {
|
|
|
107514
109924
|
export type RegistryRepositoriesPackagesListResponse = RegistryRepositoriesPackagesListResponses[keyof RegistryRepositoriesPackagesListResponses];
|
|
107515
109925
|
export type RegistryRepositoriesPackagesCreateData = {
|
|
107516
109926
|
/**
|
|
107517
|
-
*
|
|
109927
|
+
* oci 库发布技能或插件用 multipart(archive 与 files 二选一);git 库建 git 仓库用 JSON。
|
|
107518
109928
|
*/
|
|
107519
|
-
body:
|
|
109929
|
+
body: RegistryCreateGitPackageInput;
|
|
107520
109930
|
path: {
|
|
107521
109931
|
/**
|
|
107522
109932
|
* 库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。
|
|
@@ -107559,7 +109969,7 @@ export type RegistryRepositoriesPackagesCreateErrors = {
|
|
|
107559
109969
|
export type RegistryRepositoriesPackagesCreateError = RegistryRepositoriesPackagesCreateErrors[keyof RegistryRepositoriesPackagesCreateErrors];
|
|
107560
109970
|
export type RegistryRepositoriesPackagesCreateResponses = {
|
|
107561
109971
|
/**
|
|
107562
|
-
*
|
|
109972
|
+
* 建好的包。技能和插件的 latest_version 是刚发布的版本号;git 包带 clone_url、default_branch 和 protected_refs。
|
|
107563
109973
|
*/
|
|
107564
109974
|
201: RegistryPackage;
|
|
107565
109975
|
};
|
|
@@ -107699,6 +110109,50 @@ export type RegistryPackagesVersionsCreateResponses = {
|
|
|
107699
110109
|
201: RegistryVersion;
|
|
107700
110110
|
};
|
|
107701
110111
|
export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
|
|
110112
|
+
export type RegistryPackagesGitCredentialCreateData = {
|
|
110113
|
+
/**
|
|
110114
|
+
* 要的权限和有效期。
|
|
110115
|
+
*/
|
|
110116
|
+
body: RegistryGitCredentialInput;
|
|
110117
|
+
path: {
|
|
110118
|
+
/**
|
|
110119
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110120
|
+
*/
|
|
110121
|
+
package_id: string;
|
|
110122
|
+
};
|
|
110123
|
+
query?: never;
|
|
110124
|
+
url: '/registry/v1/packages/{package_id}/git-credential';
|
|
110125
|
+
};
|
|
110126
|
+
export type RegistryPackagesGitCredentialCreateErrors = {
|
|
110127
|
+
/**
|
|
110128
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110129
|
+
*/
|
|
110130
|
+
400: RegistryRegistryError;
|
|
110131
|
+
/**
|
|
110132
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110133
|
+
*/
|
|
110134
|
+
401: RegistryRegistryError;
|
|
110135
|
+
/**
|
|
110136
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110137
|
+
*/
|
|
110138
|
+
404: RegistryRegistryError;
|
|
110139
|
+
/**
|
|
110140
|
+
* FAILED_PRECONDITION 表示当前状态不允许这个操作——删默认库、删非空的库、发布不高于已发布最高版本的版本、撤回已经撤回的版本、安装已撤回的版本、插件装非最新版、技能同名冲突或已满 20 个。先按消息指出的条件调整(清空库、抬版本号、换未撤回的版本)再试。
|
|
110141
|
+
*/
|
|
110142
|
+
409: RegistryRegistryError;
|
|
110143
|
+
/**
|
|
110144
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110145
|
+
*/
|
|
110146
|
+
500: RegistryRegistryError;
|
|
110147
|
+
};
|
|
110148
|
+
export type RegistryPackagesGitCredentialCreateError = RegistryPackagesGitCredentialCreateErrors[keyof RegistryPackagesGitCredentialCreateErrors];
|
|
110149
|
+
export type RegistryPackagesGitCredentialCreateResponses = {
|
|
110150
|
+
/**
|
|
110151
|
+
* 新签发的凭据,含克隆地址、固定用户名、密码和过期时间。
|
|
110152
|
+
*/
|
|
110153
|
+
201: RegistryGitCredential;
|
|
110154
|
+
};
|
|
110155
|
+
export type RegistryPackagesGitCredentialCreateResponse = RegistryPackagesGitCredentialCreateResponses[keyof RegistryPackagesGitCredentialCreateResponses];
|
|
107702
110156
|
export type RegistryGitLogData = {
|
|
107703
110157
|
body?: never;
|
|
107704
110158
|
path: {
|
|
@@ -107765,7 +110219,12 @@ export type RegistryGitCommitsRetrieveData = {
|
|
|
107765
110219
|
*/
|
|
107766
110220
|
sha: string;
|
|
107767
110221
|
};
|
|
107768
|
-
query?:
|
|
110222
|
+
query?: {
|
|
110223
|
+
/**
|
|
110224
|
+
* 为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。
|
|
110225
|
+
*/
|
|
110226
|
+
changed_files?: boolean;
|
|
110227
|
+
};
|
|
107769
110228
|
url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
|
|
107770
110229
|
};
|
|
107771
110230
|
export type RegistryGitCommitsRetrieveErrors = {
|
|
@@ -107795,7 +110254,7 @@ export type RegistryGitCommitsRetrieveResponses = {
|
|
|
107795
110254
|
/**
|
|
107796
110255
|
* 这个提交。
|
|
107797
110256
|
*/
|
|
107798
|
-
200:
|
|
110257
|
+
200: RegistryGitCommitDetail;
|
|
107799
110258
|
};
|
|
107800
110259
|
export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
|
|
107801
110260
|
export type RegistryGitTreesRetrieveData = {
|
|
@@ -107843,6 +110302,201 @@ export type RegistryGitTreesRetrieveResponses = {
|
|
|
107843
110302
|
200: RegistryGitTree;
|
|
107844
110303
|
};
|
|
107845
110304
|
export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
|
|
110305
|
+
export type RegistryGitRefsData = {
|
|
110306
|
+
body?: never;
|
|
110307
|
+
path: {
|
|
110308
|
+
/**
|
|
110309
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110310
|
+
*/
|
|
110311
|
+
package_id: string;
|
|
110312
|
+
};
|
|
110313
|
+
query?: {
|
|
110314
|
+
/**
|
|
110315
|
+
* 只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。
|
|
110316
|
+
*/
|
|
110317
|
+
prefix?: 'refs/heads/' | 'refs/tags/';
|
|
110318
|
+
/**
|
|
110319
|
+
* 页码,从 1 起,默认 1。
|
|
110320
|
+
*/
|
|
110321
|
+
page?: number;
|
|
110322
|
+
/**
|
|
110323
|
+
* 这一页最多返回多少个引用,1 到 500,默认 100。
|
|
110324
|
+
*/
|
|
110325
|
+
size?: number;
|
|
110326
|
+
};
|
|
110327
|
+
url: '/registry/v1/packages/{package_id}/git/refs';
|
|
110328
|
+
};
|
|
110329
|
+
export type RegistryGitRefsErrors = {
|
|
110330
|
+
/**
|
|
110331
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110332
|
+
*/
|
|
110333
|
+
400: RegistryRegistryError;
|
|
110334
|
+
/**
|
|
110335
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110336
|
+
*/
|
|
110337
|
+
401: RegistryRegistryError;
|
|
110338
|
+
/**
|
|
110339
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110340
|
+
*/
|
|
110341
|
+
404: RegistryRegistryError;
|
|
110342
|
+
/**
|
|
110343
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110344
|
+
*/
|
|
110345
|
+
500: RegistryRegistryError;
|
|
110346
|
+
/**
|
|
110347
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
110348
|
+
*/
|
|
110349
|
+
503: RegistryRegistryError;
|
|
110350
|
+
};
|
|
110351
|
+
export type RegistryGitRefsError = RegistryGitRefsErrors[keyof RegistryGitRefsErrors];
|
|
110352
|
+
export type RegistryGitRefsResponses = {
|
|
110353
|
+
/**
|
|
110354
|
+
* 分支和标签的一页。
|
|
110355
|
+
*/
|
|
110356
|
+
200: RegistryGitRefs;
|
|
110357
|
+
};
|
|
110358
|
+
export type RegistryGitRefsResponse = RegistryGitRefsResponses[keyof RegistryGitRefsResponses];
|
|
110359
|
+
export type RegistryGitResolveData = {
|
|
110360
|
+
body?: never;
|
|
110361
|
+
path: {
|
|
110362
|
+
/**
|
|
110363
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110364
|
+
*/
|
|
110365
|
+
package_id: string;
|
|
110366
|
+
};
|
|
110367
|
+
query: {
|
|
110368
|
+
/**
|
|
110369
|
+
* 要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。
|
|
110370
|
+
*/
|
|
110371
|
+
ref: string;
|
|
110372
|
+
};
|
|
110373
|
+
url: '/registry/v1/packages/{package_id}/git/resolve';
|
|
110374
|
+
};
|
|
110375
|
+
export type RegistryGitResolveErrors = {
|
|
110376
|
+
/**
|
|
110377
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110378
|
+
*/
|
|
110379
|
+
400: RegistryRegistryError;
|
|
110380
|
+
/**
|
|
110381
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110382
|
+
*/
|
|
110383
|
+
401: RegistryRegistryError;
|
|
110384
|
+
/**
|
|
110385
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110386
|
+
*/
|
|
110387
|
+
404: RegistryRegistryError;
|
|
110388
|
+
/**
|
|
110389
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110390
|
+
*/
|
|
110391
|
+
500: RegistryRegistryError;
|
|
110392
|
+
/**
|
|
110393
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
110394
|
+
*/
|
|
110395
|
+
503: RegistryRegistryError;
|
|
110396
|
+
};
|
|
110397
|
+
export type RegistryGitResolveError = RegistryGitResolveErrors[keyof RegistryGitResolveErrors];
|
|
110398
|
+
export type RegistryGitResolveResponses = {
|
|
110399
|
+
/**
|
|
110400
|
+
* 这个引用指向的提交。
|
|
110401
|
+
*/
|
|
110402
|
+
200: RegistryGitResolvedRef;
|
|
110403
|
+
};
|
|
110404
|
+
export type RegistryGitResolveResponse = RegistryGitResolveResponses[keyof RegistryGitResolveResponses];
|
|
110405
|
+
export type RegistryGitCompareData = {
|
|
110406
|
+
body?: never;
|
|
110407
|
+
path: {
|
|
110408
|
+
/**
|
|
110409
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110410
|
+
*/
|
|
110411
|
+
package_id: string;
|
|
110412
|
+
};
|
|
110413
|
+
query: {
|
|
110414
|
+
/**
|
|
110415
|
+
* 比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。
|
|
110416
|
+
*/
|
|
110417
|
+
base: string;
|
|
110418
|
+
/**
|
|
110419
|
+
* 比较的终点:分支名、标签名、refs/… 全名或完整对象 id。
|
|
110420
|
+
*/
|
|
110421
|
+
head: string;
|
|
110422
|
+
};
|
|
110423
|
+
url: '/registry/v1/packages/{package_id}/git/compare';
|
|
110424
|
+
};
|
|
110425
|
+
export type RegistryGitCompareErrors = {
|
|
110426
|
+
/**
|
|
110427
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110428
|
+
*/
|
|
110429
|
+
400: RegistryRegistryError;
|
|
110430
|
+
/**
|
|
110431
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110432
|
+
*/
|
|
110433
|
+
401: RegistryRegistryError;
|
|
110434
|
+
/**
|
|
110435
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110436
|
+
*/
|
|
110437
|
+
404: RegistryRegistryError;
|
|
110438
|
+
/**
|
|
110439
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110440
|
+
*/
|
|
110441
|
+
500: RegistryRegistryError;
|
|
110442
|
+
/**
|
|
110443
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
110444
|
+
*/
|
|
110445
|
+
503: RegistryRegistryError;
|
|
110446
|
+
};
|
|
110447
|
+
export type RegistryGitCompareError = RegistryGitCompareErrors[keyof RegistryGitCompareErrors];
|
|
110448
|
+
export type RegistryGitCompareResponses = {
|
|
110449
|
+
/**
|
|
110450
|
+
* 两个引用的关系、改动的文件和多出的提交。
|
|
110451
|
+
*/
|
|
110452
|
+
200: RegistryGitComparison;
|
|
110453
|
+
};
|
|
110454
|
+
export type RegistryGitCompareResponse = RegistryGitCompareResponses[keyof RegistryGitCompareResponses];
|
|
110455
|
+
export type RegistryGitTreesRecursiveData = {
|
|
110456
|
+
body?: never;
|
|
110457
|
+
path: {
|
|
110458
|
+
/**
|
|
110459
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
110460
|
+
*/
|
|
110461
|
+
package_id: string;
|
|
110462
|
+
/**
|
|
110463
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
110464
|
+
*/
|
|
110465
|
+
sha: string;
|
|
110466
|
+
};
|
|
110467
|
+
query?: never;
|
|
110468
|
+
url: '/registry/v1/packages/{package_id}/git/trees/{sha}/recursive';
|
|
110469
|
+
};
|
|
110470
|
+
export type RegistryGitTreesRecursiveErrors = {
|
|
110471
|
+
/**
|
|
110472
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
110473
|
+
*/
|
|
110474
|
+
400: RegistryRegistryError;
|
|
110475
|
+
/**
|
|
110476
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
110477
|
+
*/
|
|
110478
|
+
401: RegistryRegistryError;
|
|
110479
|
+
/**
|
|
110480
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
110481
|
+
*/
|
|
110482
|
+
404: RegistryRegistryError;
|
|
110483
|
+
/**
|
|
110484
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
110485
|
+
*/
|
|
110486
|
+
500: RegistryRegistryError;
|
|
110487
|
+
/**
|
|
110488
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
110489
|
+
*/
|
|
110490
|
+
503: RegistryRegistryError;
|
|
110491
|
+
};
|
|
110492
|
+
export type RegistryGitTreesRecursiveError = RegistryGitTreesRecursiveErrors[keyof RegistryGitTreesRecursiveErrors];
|
|
110493
|
+
export type RegistryGitTreesRecursiveResponses = {
|
|
110494
|
+
/**
|
|
110495
|
+
* 这个对象下的全部条目。
|
|
110496
|
+
*/
|
|
110497
|
+
200: RegistryGitTreeRecursive;
|
|
110498
|
+
};
|
|
110499
|
+
export type RegistryGitTreesRecursiveResponse = RegistryGitTreesRecursiveResponses[keyof RegistryGitTreesRecursiveResponses];
|
|
107846
110500
|
export type RegistryGitFilesRetrieveData = {
|
|
107847
110501
|
body?: never;
|
|
107848
110502
|
path: {
|