@deepraxis/sdk 0.1.1-dev.1048c59 → 0.1.1-dev.10da273
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 +69 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +121 -13
- package/dist/generated/sdk.gen.js +361 -12
- package/dist/generated/types.gen.d.ts +1382 -306
- package/dist/operations.generated.js +530 -16
- package/dist/resources.generated.d.ts +100 -62
- package/dist/resources.generated.js +40 -0
- package/package.json +1 -1
|
@@ -1934,50 +1934,45 @@ export type AgentSseEvent = ({
|
|
|
1934
1934
|
*/
|
|
1935
1935
|
event?: 'user.tool_confirmation';
|
|
1936
1936
|
/**
|
|
1937
|
-
*
|
|
1937
|
+
* Decoded JSON payload of this frame; its shape is selected by the event name.
|
|
1938
1938
|
*/
|
|
1939
|
-
data?: {
|
|
1939
|
+
data?: unknown & {
|
|
1940
1940
|
/**
|
|
1941
|
-
*
|
|
1941
|
+
* Unique identifier for this event.
|
|
1942
1942
|
*/
|
|
1943
1943
|
id: string;
|
|
1944
1944
|
/**
|
|
1945
|
-
*
|
|
1945
|
+
* UserToolConfirmationResult enum
|
|
1946
1946
|
*/
|
|
1947
|
-
|
|
1947
|
+
result: 'allow' | 'deny';
|
|
1948
1948
|
/**
|
|
1949
|
-
*
|
|
1949
|
+
* The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
|
|
1950
|
+
* corresponds to, which can be found in the last `session.status_idle`
|
|
1951
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
1952
|
+
* `stop_reason.event_ids` field.
|
|
1950
1953
|
*/
|
|
1951
|
-
|
|
1954
|
+
tool_use_id: string;
|
|
1952
1955
|
/**
|
|
1953
|
-
* The
|
|
1956
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
1954
1957
|
*/
|
|
1955
|
-
|
|
1958
|
+
type: 'user.tool_confirmation';
|
|
1956
1959
|
/**
|
|
1957
|
-
*
|
|
1960
|
+
* Feedback for a deny result, at most 4000 characters. Appended to the model-visible refusal and persisted on the confirmation. Omit when no feedback is needed.
|
|
1958
1961
|
*/
|
|
1959
|
-
|
|
1962
|
+
deny_message?: string;
|
|
1960
1963
|
/**
|
|
1961
|
-
*
|
|
1964
|
+
* A timestamp in RFC 3339 format
|
|
1962
1965
|
*/
|
|
1963
|
-
|
|
1964
|
-
[key: string]: string;
|
|
1965
|
-
};
|
|
1966
|
+
processed_at?: null | string;
|
|
1966
1967
|
/**
|
|
1967
|
-
*
|
|
1968
|
+
* Set by the server to the subagent thread this confirmation was routed to.
|
|
1969
|
+
* Omitted when it was routed to the primary thread.
|
|
1968
1970
|
*/
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
preview?: string;
|
|
1975
|
-
/**
|
|
1976
|
-
* Free text the user added to their choice.
|
|
1977
|
-
*/
|
|
1978
|
-
notes?: string;
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1971
|
+
session_thread_id?: null | string;
|
|
1972
|
+
/**
|
|
1973
|
+
* With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
|
|
1974
|
+
*/
|
|
1975
|
+
permission_mode?: 'yolo';
|
|
1981
1976
|
};
|
|
1982
1977
|
} | {
|
|
1983
1978
|
/**
|
|
@@ -7785,6 +7780,243 @@ export type OrganizationReviseKeyResultRequest = {
|
|
|
7785
7780
|
*/
|
|
7786
7781
|
done?: boolean;
|
|
7787
7782
|
};
|
|
7783
|
+
/**
|
|
7784
|
+
* Which subject a spec describes; the organization is addressed by its own id and every other kind by that subject's id.
|
|
7785
|
+
*/
|
|
7786
|
+
export type OrganizationSpecKind = 'organization' | 'department' | 'level' | 'job' | 'position' | 'assignment';
|
|
7787
|
+
/**
|
|
7788
|
+
* One page of specs.
|
|
7789
|
+
*/
|
|
7790
|
+
export type OrganizationSpecList = {
|
|
7791
|
+
/**
|
|
7792
|
+
* Specs on this page.
|
|
7793
|
+
*/
|
|
7794
|
+
data: Array<OrganizationSpec>;
|
|
7795
|
+
/**
|
|
7796
|
+
* Whether another page is available after this one.
|
|
7797
|
+
*/
|
|
7798
|
+
has_more: boolean;
|
|
7799
|
+
/**
|
|
7800
|
+
* Cursor to pass as page to read the next page; null when no more items remain.
|
|
7801
|
+
*/
|
|
7802
|
+
next_page: string | null;
|
|
7803
|
+
};
|
|
7804
|
+
/**
|
|
7805
|
+
* The live spec of one subject; a subject never written answers revision 0 with an empty body.
|
|
7806
|
+
*/
|
|
7807
|
+
export type OrganizationSpec = {
|
|
7808
|
+
kind: OrganizationSpecKind;
|
|
7809
|
+
/**
|
|
7810
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
7811
|
+
*/
|
|
7812
|
+
id: string;
|
|
7813
|
+
/**
|
|
7814
|
+
* Live revision, 0 until the first write and raised by one on every revise; send it as expected_revision.
|
|
7815
|
+
*/
|
|
7816
|
+
revision: number;
|
|
7817
|
+
/**
|
|
7818
|
+
* The spec body: a map from block name to block value, stored and returned verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
|
|
7819
|
+
*/
|
|
7820
|
+
spec: {
|
|
7821
|
+
[key: string]: unknown;
|
|
7822
|
+
};
|
|
7823
|
+
/**
|
|
7824
|
+
* UTC instant (RFC 3339) of the latest revision; null when the subject never had a spec written.
|
|
7825
|
+
*/
|
|
7826
|
+
update_time: string | null;
|
|
7827
|
+
/**
|
|
7828
|
+
* Actor address that wrote the latest revision (human:usr_... or agent:agent_...); null until the first write.
|
|
7829
|
+
*/
|
|
7830
|
+
updated_by: string | null;
|
|
7831
|
+
};
|
|
7832
|
+
/**
|
|
7833
|
+
* The whole new spec of one subject, replacing the previous one.
|
|
7834
|
+
*/
|
|
7835
|
+
export type OrganizationReviseSpecRequest = {
|
|
7836
|
+
/**
|
|
7837
|
+
* The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one.
|
|
7838
|
+
*/
|
|
7839
|
+
expected_revision: number;
|
|
7840
|
+
/**
|
|
7841
|
+
* The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
|
|
7842
|
+
*/
|
|
7843
|
+
spec: {
|
|
7844
|
+
[key: string]: unknown;
|
|
7845
|
+
};
|
|
7846
|
+
};
|
|
7847
|
+
/**
|
|
7848
|
+
* One page of a subject's spec revisions, newest first.
|
|
7849
|
+
*/
|
|
7850
|
+
export type OrganizationSpecRevisionList = {
|
|
7851
|
+
/**
|
|
7852
|
+
* Revisions on this page, newest first.
|
|
7853
|
+
*/
|
|
7854
|
+
data: Array<OrganizationSpecRevision>;
|
|
7855
|
+
/**
|
|
7856
|
+
* Whether another page is available after this one.
|
|
7857
|
+
*/
|
|
7858
|
+
has_more: boolean;
|
|
7859
|
+
/**
|
|
7860
|
+
* Cursor to pass as page to read the next page; null when no more items remain.
|
|
7861
|
+
*/
|
|
7862
|
+
next_page: string | null;
|
|
7863
|
+
};
|
|
7864
|
+
/**
|
|
7865
|
+
* The changes between two revisions of one subject's spec; an empty changes array means the two revisions are equal.
|
|
7866
|
+
*/
|
|
7867
|
+
export type OrganizationSpecDiff = {
|
|
7868
|
+
kind: OrganizationSpecKind;
|
|
7869
|
+
/**
|
|
7870
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
7871
|
+
*/
|
|
7872
|
+
id: string;
|
|
7873
|
+
/**
|
|
7874
|
+
* The earlier revision that was compared from; 0 is the empty spec before the first write.
|
|
7875
|
+
*/
|
|
7876
|
+
from: number;
|
|
7877
|
+
/**
|
|
7878
|
+
* The later revision that was compared to.
|
|
7879
|
+
*/
|
|
7880
|
+
to: number;
|
|
7881
|
+
/**
|
|
7882
|
+
* The differences found, in path order.
|
|
7883
|
+
*/
|
|
7884
|
+
changes: Array<OrganizationSpecChange>;
|
|
7885
|
+
};
|
|
7886
|
+
/**
|
|
7887
|
+
* The merged spec of one seat or actor - the one configuration that actually applies when every layer is reconciled.
|
|
7888
|
+
*/
|
|
7889
|
+
export type OrganizationEffectiveSpec = {
|
|
7890
|
+
/**
|
|
7891
|
+
* Actor address the result is for (human:usr_... or agent:agent_...); null when the query was by position_id and the seat is vacant.
|
|
7892
|
+
*/
|
|
7893
|
+
actor: string | null;
|
|
7894
|
+
/**
|
|
7895
|
+
* The holder kind the merge was made for, given or derived from the seat's holder.
|
|
7896
|
+
*/
|
|
7897
|
+
holder_kind: 'agent' | 'human';
|
|
7898
|
+
/**
|
|
7899
|
+
* Every seat the result covers; the primary seat, if any, comes first.
|
|
7900
|
+
*/
|
|
7901
|
+
seats: Array<{
|
|
7902
|
+
/**
|
|
7903
|
+
* Position id (pos_...) of this seat.
|
|
7904
|
+
*/
|
|
7905
|
+
position_id: string;
|
|
7906
|
+
/**
|
|
7907
|
+
* Assignment id (asg_...) holding the seat; null while the seat is vacant.
|
|
7908
|
+
*/
|
|
7909
|
+
assignment_id: string | null;
|
|
7910
|
+
/**
|
|
7911
|
+
* Whether this is the actor's primary seat, whose values win a clash.
|
|
7912
|
+
*/
|
|
7913
|
+
primary: boolean;
|
|
7914
|
+
/**
|
|
7915
|
+
* The spec layers merged for this seat, least specific first.
|
|
7916
|
+
*/
|
|
7917
|
+
layers: Array<OrganizationSpecLayerRef>;
|
|
7918
|
+
}>;
|
|
7919
|
+
/**
|
|
7920
|
+
* The document of every layer, each layer once; duplicates of the same layer are dropped.
|
|
7921
|
+
*/
|
|
7922
|
+
documents: Array<OrganizationSpecDocument>;
|
|
7923
|
+
/**
|
|
7924
|
+
* The merged capability blocks: a map from block name to the value the chain resolved to. Blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove.
|
|
7925
|
+
*/
|
|
7926
|
+
spec: {
|
|
7927
|
+
[key: string]: unknown;
|
|
7928
|
+
};
|
|
7929
|
+
/**
|
|
7930
|
+
* Where each merged value came from, keyed by the path inside the spec (such as agent.model or repositories[github:org/repo]).
|
|
7931
|
+
*/
|
|
7932
|
+
origins: {
|
|
7933
|
+
[key: string]: string;
|
|
7934
|
+
};
|
|
7935
|
+
/**
|
|
7936
|
+
* Blocks this holder kind does not take and that were skipped without error, such as agent-only blocks for a human holder.
|
|
7937
|
+
*/
|
|
7938
|
+
skipped: Array<string>;
|
|
7939
|
+
/**
|
|
7940
|
+
* Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
|
|
7941
|
+
*/
|
|
7942
|
+
violations: Array<string>;
|
|
7943
|
+
};
|
|
7944
|
+
/**
|
|
7945
|
+
* What a dry run of the reconciler would do for one holder, without changing anything.
|
|
7946
|
+
*/
|
|
7947
|
+
export type OrganizationReconcilePlan = {
|
|
7948
|
+
/**
|
|
7949
|
+
* Actor address the plan is for (agent:agent_... or human:usr_...).
|
|
7950
|
+
*/
|
|
7951
|
+
actor: string;
|
|
7952
|
+
/**
|
|
7953
|
+
* The holder kind the merge was made for, derived from the actor address.
|
|
7954
|
+
*/
|
|
7955
|
+
holder_kind: 'agent' | 'human';
|
|
7956
|
+
/**
|
|
7957
|
+
* One action per block the plan considered, in block order.
|
|
7958
|
+
*/
|
|
7959
|
+
actions: Array<OrganizationReconcileAction>;
|
|
7960
|
+
/**
|
|
7961
|
+
* Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean.
|
|
7962
|
+
*/
|
|
7963
|
+
violations: Array<string>;
|
|
7964
|
+
};
|
|
7965
|
+
/**
|
|
7966
|
+
* The reconciler's last result for one holder.
|
|
7967
|
+
*/
|
|
7968
|
+
export type OrganizationReconcileStatus = {
|
|
7969
|
+
/**
|
|
7970
|
+
* Actor address this status is for (agent:agent_... or human:usr_...).
|
|
7971
|
+
*/
|
|
7972
|
+
actor: string;
|
|
7973
|
+
/**
|
|
7974
|
+
* Whether the sweep is paused for this holder.
|
|
7975
|
+
*/
|
|
7976
|
+
paused: boolean;
|
|
7977
|
+
/**
|
|
7978
|
+
* The seats and layer revisions the last run applied; empty before the first run.
|
|
7979
|
+
*/
|
|
7980
|
+
observed: Array<{
|
|
7981
|
+
/**
|
|
7982
|
+
* Position id (pos_...) of this seat.
|
|
7983
|
+
*/
|
|
7984
|
+
position_id: string;
|
|
7985
|
+
/**
|
|
7986
|
+
* Assignment id (asg_...) holding the seat; null while the seat is vacant.
|
|
7987
|
+
*/
|
|
7988
|
+
assignment_id: string | null;
|
|
7989
|
+
/**
|
|
7990
|
+
* Whether this is the actor's primary seat, whose values win a clash.
|
|
7991
|
+
*/
|
|
7992
|
+
primary: boolean;
|
|
7993
|
+
/**
|
|
7994
|
+
* The spec layers merged for this seat, least specific first.
|
|
7995
|
+
*/
|
|
7996
|
+
layers: Array<OrganizationSpecLayerRef>;
|
|
7997
|
+
}>;
|
|
7998
|
+
/**
|
|
7999
|
+
* One row per capability block and the state it is in.
|
|
8000
|
+
*/
|
|
8001
|
+
items: Array<OrganizationReconcileItem>;
|
|
8002
|
+
/**
|
|
8003
|
+
* Where what is applied differs from what the specs want; empty when nothing has drifted.
|
|
8004
|
+
*/
|
|
8005
|
+
drift: Array<OrganizationReconcileDrift>;
|
|
8006
|
+
/**
|
|
8007
|
+
* UTC instant (RFC 3339) of the last run that applied changes; null when the holder was never reconciled.
|
|
8008
|
+
*/
|
|
8009
|
+
applied_at: string | null;
|
|
8010
|
+
};
|
|
8011
|
+
/**
|
|
8012
|
+
* The holder to reconcile.
|
|
8013
|
+
*/
|
|
8014
|
+
export type OrganizationReconcileActorRequest = {
|
|
8015
|
+
/**
|
|
8016
|
+
* Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged.
|
|
8017
|
+
*/
|
|
8018
|
+
actor: string;
|
|
8019
|
+
};
|
|
7788
8020
|
export type SandboxSandboxDetail = {
|
|
7789
8021
|
/**
|
|
7790
8022
|
* Identifier of the template from which is the sandbox created
|
|
@@ -16345,7 +16577,7 @@ export type DevopsReportUploadRequest = {
|
|
|
16345
16577
|
*/
|
|
16346
16578
|
reportId: string;
|
|
16347
16579
|
/**
|
|
16348
|
-
* What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and
|
|
16580
|
+
* What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and is filed as evidence for each package it fully covers, which the merge gate and later stages read by the package's input hash. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence.
|
|
16349
16581
|
*/
|
|
16350
16582
|
purpose?: 'evidence' | 'feedback';
|
|
16351
16583
|
/**
|
|
@@ -16419,13 +16651,17 @@ export type DevopsTestPlan = {
|
|
|
16419
16651
|
* One entry per required package, sorted by directory. Empty only when selection is nothing or failed.
|
|
16420
16652
|
*/
|
|
16421
16653
|
packages: Array<DevopsTestPlanPackage>;
|
|
16654
|
+
/**
|
|
16655
|
+
* Every feature scenario of the affected packages at the gate's sizes, sorted by package and title, each with whether this diff requires it and what evidence answers it. This is the finer reading of packages: a merge asks for evidence only on the required cases.
|
|
16656
|
+
*/
|
|
16657
|
+
cases: Array<DevopsTestPlanCase>;
|
|
16422
16658
|
/**
|
|
16423
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.
|
|
16424
16660
|
*/
|
|
16425
16661
|
failedPaths?: Array<string>;
|
|
16426
16662
|
};
|
|
16427
16663
|
/**
|
|
16428
|
-
* One page of the organization's delivery projects, newest first.
|
|
16664
|
+
* One page of the organization's delivery projects, newest first, and how many projects the organization has in total.
|
|
16429
16665
|
*/
|
|
16430
16666
|
export type DevopsProjectPage = {
|
|
16431
16667
|
/**
|
|
@@ -16436,6 +16672,10 @@ export type DevopsProjectPage = {
|
|
|
16436
16672
|
* Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
|
|
16437
16673
|
*/
|
|
16438
16674
|
nextPageToken: string;
|
|
16675
|
+
/**
|
|
16676
|
+
* 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.
|
|
16677
|
+
*/
|
|
16678
|
+
visibleProjects: number;
|
|
16439
16679
|
};
|
|
16440
16680
|
/**
|
|
16441
16681
|
* One delivery project — the unit a release, a promotion and a flag all belong to.
|
|
@@ -19391,6 +19631,10 @@ export type MediaAsset = {
|
|
|
19391
19631
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
19392
19632
|
*/
|
|
19393
19633
|
segments?: number;
|
|
19634
|
+
/**
|
|
19635
|
+
* 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.
|
|
19636
|
+
*/
|
|
19637
|
+
duration?: number;
|
|
19394
19638
|
};
|
|
19395
19639
|
};
|
|
19396
19640
|
};
|
|
@@ -21531,7 +21775,7 @@ export type SandboxNewSandboxV2 = {
|
|
|
21531
21775
|
*/
|
|
21532
21776
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
21533
21777
|
/**
|
|
21534
|
-
* Own face, required: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
|
|
21778
|
+
* Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
|
|
21535
21779
|
*/
|
|
21536
21780
|
ephemeral?: boolean;
|
|
21537
21781
|
/**
|
|
@@ -21558,6 +21802,18 @@ export type SandboxNewSandboxV2 = {
|
|
|
21558
21802
|
* Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
|
|
21559
21803
|
*/
|
|
21560
21804
|
idleActivity?: 'traffic' | 'caller';
|
|
21805
|
+
/**
|
|
21806
|
+
* 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.
|
|
21807
|
+
*/
|
|
21808
|
+
sku?: string;
|
|
21809
|
+
/**
|
|
21810
|
+
* 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.
|
|
21811
|
+
*/
|
|
21812
|
+
kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
|
|
21813
|
+
/**
|
|
21814
|
+
* 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.
|
|
21815
|
+
*/
|
|
21816
|
+
interruptible?: boolean;
|
|
21561
21817
|
/**
|
|
21562
21818
|
* Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
|
|
21563
21819
|
*/
|
|
@@ -26360,49 +26616,44 @@ export type AgentSseData = {
|
|
|
26360
26616
|
* Praxis extension (MCP Apps, SEP-1865): `app` when the call was made by an MCP Apps view, `codemode` when a program run by the codemode tool called an MCP tool that declares a view (the event pair exists so a client can render that view; the model already has the result in the codemode tool result); absent for the model's own calls.
|
|
26361
26617
|
*/
|
|
26362
26618
|
source?: 'app' | 'codemode';
|
|
26363
|
-
} | {
|
|
26619
|
+
} | (unknown & {
|
|
26364
26620
|
/**
|
|
26365
|
-
*
|
|
26621
|
+
* Unique identifier for this event.
|
|
26366
26622
|
*/
|
|
26367
26623
|
id: string;
|
|
26368
26624
|
/**
|
|
26369
|
-
*
|
|
26625
|
+
* UserToolConfirmationResult enum
|
|
26370
26626
|
*/
|
|
26371
|
-
|
|
26627
|
+
result: 'allow' | 'deny';
|
|
26372
26628
|
/**
|
|
26373
|
-
*
|
|
26629
|
+
* The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result
|
|
26630
|
+
* corresponds to, which can be found in the last `session.status_idle`
|
|
26631
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
26632
|
+
* `stop_reason.event_ids` field.
|
|
26374
26633
|
*/
|
|
26375
|
-
|
|
26634
|
+
tool_use_id: string;
|
|
26376
26635
|
/**
|
|
26377
|
-
* The
|
|
26636
|
+
* Always `user.tool_confirmation`. The user's decision to allow or deny a tool call that waits for approval.
|
|
26378
26637
|
*/
|
|
26379
|
-
|
|
26638
|
+
type: 'user.tool_confirmation';
|
|
26380
26639
|
/**
|
|
26381
|
-
*
|
|
26640
|
+
* 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.
|
|
26382
26641
|
*/
|
|
26383
|
-
|
|
26642
|
+
deny_message?: string;
|
|
26384
26643
|
/**
|
|
26385
|
-
*
|
|
26644
|
+
* A timestamp in RFC 3339 format
|
|
26386
26645
|
*/
|
|
26387
|
-
|
|
26388
|
-
[key: string]: string;
|
|
26389
|
-
};
|
|
26646
|
+
processed_at?: null | string;
|
|
26390
26647
|
/**
|
|
26391
|
-
*
|
|
26648
|
+
* Set by the server to the subagent thread this confirmation was routed to.
|
|
26649
|
+
* Omitted when it was routed to the primary thread.
|
|
26392
26650
|
*/
|
|
26393
|
-
|
|
26394
|
-
|
|
26395
|
-
|
|
26396
|
-
|
|
26397
|
-
|
|
26398
|
-
|
|
26399
|
-
/**
|
|
26400
|
-
* Free text the user added to their choice.
|
|
26401
|
-
*/
|
|
26402
|
-
notes?: string;
|
|
26403
|
-
};
|
|
26404
|
-
};
|
|
26405
|
-
} | {
|
|
26651
|
+
session_thread_id?: null | string;
|
|
26652
|
+
/**
|
|
26653
|
+
* 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.
|
|
26654
|
+
*/
|
|
26655
|
+
permission_mode?: 'yolo';
|
|
26656
|
+
}) | {
|
|
26406
26657
|
/**
|
|
26407
26658
|
* Unique identifier for this event.
|
|
26408
26659
|
*/
|
|
@@ -31853,6 +32104,149 @@ export type OrganizationMetric = {
|
|
|
31853
32104
|
*/
|
|
31854
32105
|
unit: 'none' | 'percent' | 'currency_micro_usd' | 'count' | 'seconds';
|
|
31855
32106
|
};
|
|
32107
|
+
/**
|
|
32108
|
+
* One stored revision of a subject's spec, kept for history.
|
|
32109
|
+
*/
|
|
32110
|
+
export type OrganizationSpecRevision = {
|
|
32111
|
+
kind: OrganizationSpecKind;
|
|
32112
|
+
/**
|
|
32113
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32114
|
+
*/
|
|
32115
|
+
id: string;
|
|
32116
|
+
/**
|
|
32117
|
+
* Revision number of this stored body, rising from 1; diff and get accept it as revision.
|
|
32118
|
+
*/
|
|
32119
|
+
revision: number;
|
|
32120
|
+
/**
|
|
32121
|
+
* 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.
|
|
32122
|
+
*/
|
|
32123
|
+
spec: {
|
|
32124
|
+
[key: string]: unknown;
|
|
32125
|
+
};
|
|
32126
|
+
/**
|
|
32127
|
+
* UTC instant (RFC 3339) when this revision was written.
|
|
32128
|
+
*/
|
|
32129
|
+
create_time: string;
|
|
32130
|
+
/**
|
|
32131
|
+
* Actor address that wrote this revision (human:usr_... or agent:agent_...).
|
|
32132
|
+
*/
|
|
32133
|
+
created_by: string;
|
|
32134
|
+
};
|
|
32135
|
+
/**
|
|
32136
|
+
* One difference between two revisions of a spec.
|
|
32137
|
+
*/
|
|
32138
|
+
export type OrganizationSpecChange = {
|
|
32139
|
+
/**
|
|
32140
|
+
* Path of the changed value inside the spec body, such as agent.model or repositories[github:org/repo].
|
|
32141
|
+
*/
|
|
32142
|
+
path: string;
|
|
32143
|
+
/**
|
|
32144
|
+
* What happened at this path between the two revisions.
|
|
32145
|
+
*/
|
|
32146
|
+
op: 'added' | 'removed' | 'changed';
|
|
32147
|
+
/**
|
|
32148
|
+
* The value at this path in the earlier revision, verbatim; absent when the value was added.
|
|
32149
|
+
*/
|
|
32150
|
+
before?: unknown;
|
|
32151
|
+
/**
|
|
32152
|
+
* The value at this path in the later revision, verbatim; absent when the value was removed.
|
|
32153
|
+
*/
|
|
32154
|
+
after?: unknown;
|
|
32155
|
+
};
|
|
32156
|
+
/**
|
|
32157
|
+
* One layer the effective spec was merged from, least specific first.
|
|
32158
|
+
*/
|
|
32159
|
+
export type OrganizationSpecLayerRef = {
|
|
32160
|
+
kind: OrganizationSpecKind;
|
|
32161
|
+
/**
|
|
32162
|
+
* The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
32163
|
+
*/
|
|
32164
|
+
id: string;
|
|
32165
|
+
/**
|
|
32166
|
+
* Revision of that layer's spec at the time it was merged.
|
|
32167
|
+
*/
|
|
32168
|
+
revision: number;
|
|
32169
|
+
};
|
|
32170
|
+
/**
|
|
32171
|
+
* One document block collected from a layer of the effective spec, kept whole and never merged.
|
|
32172
|
+
*/
|
|
32173
|
+
export type OrganizationSpecDocument = {
|
|
32174
|
+
/**
|
|
32175
|
+
* The layer the document came from, as kind:id such as job:jpr_123.
|
|
32176
|
+
*/
|
|
32177
|
+
from: string;
|
|
32178
|
+
/**
|
|
32179
|
+
* Revision of that layer's spec the document was read at.
|
|
32180
|
+
*/
|
|
32181
|
+
revision: number;
|
|
32182
|
+
/**
|
|
32183
|
+
* The document text itself, inferred from memory rather than merged into the capability blocks.
|
|
32184
|
+
*/
|
|
32185
|
+
text: string;
|
|
32186
|
+
};
|
|
32187
|
+
/**
|
|
32188
|
+
* One action the reconciler would take for a block in a dry run.
|
|
32189
|
+
*/
|
|
32190
|
+
export type OrganizationReconcileAction = {
|
|
32191
|
+
/**
|
|
32192
|
+
* Name of the block this action is about, such as agent.
|
|
32193
|
+
*/
|
|
32194
|
+
block: string;
|
|
32195
|
+
/**
|
|
32196
|
+
* What the reconciler would do with this block.
|
|
32197
|
+
*/
|
|
32198
|
+
action: 'hold' | 'update' | 'none' | 'pending' | 'blocked';
|
|
32199
|
+
/**
|
|
32200
|
+
* The value the action would write, or the reason it is blocked, verbatim.
|
|
32201
|
+
*/
|
|
32202
|
+
detail: unknown;
|
|
32203
|
+
};
|
|
32204
|
+
/**
|
|
32205
|
+
* One capability block and the state the reconciler last left it in.
|
|
32206
|
+
*/
|
|
32207
|
+
export type OrganizationReconcileItem = {
|
|
32208
|
+
/**
|
|
32209
|
+
* Name of the capability block this row is about, such as agent or computer.
|
|
32210
|
+
*/
|
|
32211
|
+
block: string;
|
|
32212
|
+
/**
|
|
32213
|
+
* What the reconciler last did with this block.
|
|
32214
|
+
*/
|
|
32215
|
+
state: 'ready' | 'pending' | 'failed' | 'waiting_human' | 'paused';
|
|
32216
|
+
/**
|
|
32217
|
+
* The resource the block was applied to, such as agent:agent_... ; null before it is bound.
|
|
32218
|
+
*/
|
|
32219
|
+
binding: string | null;
|
|
32220
|
+
/**
|
|
32221
|
+
* Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
|
|
32222
|
+
*/
|
|
32223
|
+
message: string | null;
|
|
32224
|
+
};
|
|
32225
|
+
/**
|
|
32226
|
+
* One value where what is applied differs from what the specs want.
|
|
32227
|
+
*/
|
|
32228
|
+
export type OrganizationReconcileDrift = {
|
|
32229
|
+
/**
|
|
32230
|
+
* Name of the block the drifted value belongs to, such as agent.
|
|
32231
|
+
*/
|
|
32232
|
+
block: string;
|
|
32233
|
+
/**
|
|
32234
|
+
* Path of the value inside the block, such as model.
|
|
32235
|
+
*/
|
|
32236
|
+
field: string;
|
|
32237
|
+
/**
|
|
32238
|
+
* The value currently applied, verbatim; null when nothing is applied there yet.
|
|
32239
|
+
*/
|
|
32240
|
+
found: unknown;
|
|
32241
|
+
/**
|
|
32242
|
+
* The value the specs resolved to, verbatim.
|
|
32243
|
+
*/
|
|
32244
|
+
want: unknown;
|
|
32245
|
+
/**
|
|
32246
|
+
* UTC instant (RFC 3339) from which the drift has been observed.
|
|
32247
|
+
*/
|
|
32248
|
+
since: string;
|
|
32249
|
+
};
|
|
31856
32250
|
/**
|
|
31857
32251
|
* Your own string key/value pairs stored with the sandbox; usable as a filter in listSandboxes.
|
|
31858
32252
|
*/
|
|
@@ -35316,6 +35710,43 @@ export type DevopsTestPlanPackage = {
|
|
|
35316
35710
|
*/
|
|
35317
35711
|
run?: string;
|
|
35318
35712
|
};
|
|
35713
|
+
/**
|
|
35714
|
+
* 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.
|
|
35715
|
+
*/
|
|
35716
|
+
export type DevopsTestPlanCase = {
|
|
35717
|
+
/**
|
|
35718
|
+
* The case id as the catalog holds it; the unit evidence is filed under.
|
|
35719
|
+
*/
|
|
35720
|
+
case: string;
|
|
35721
|
+
/**
|
|
35722
|
+
* Repository-relative directory of the package the scenario lives in.
|
|
35723
|
+
*/
|
|
35724
|
+
package: string;
|
|
35725
|
+
/**
|
|
35726
|
+
* The scenario title, to name a failed or missing case to a person.
|
|
35727
|
+
*/
|
|
35728
|
+
title: string;
|
|
35729
|
+
/**
|
|
35730
|
+
* Whether this diff requires evidence for the case. Only required cases can hold a merge.
|
|
35731
|
+
*/
|
|
35732
|
+
required: boolean;
|
|
35733
|
+
/**
|
|
35734
|
+
* 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.
|
|
35735
|
+
*/
|
|
35736
|
+
reason: 'no-impact' | 'deps-changed' | 'always-affected' | 'unaffected';
|
|
35737
|
+
/**
|
|
35738
|
+
* 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.
|
|
35739
|
+
*/
|
|
35740
|
+
depsHash: string;
|
|
35741
|
+
/**
|
|
35742
|
+
* What the newest recorded result says at this deps hash: passed, failed, or missing when no run has recorded the case there.
|
|
35743
|
+
*/
|
|
35744
|
+
evidence: 'passed' | 'failed' | 'missing';
|
|
35745
|
+
/**
|
|
35746
|
+
* The run the answering result came from; absent when evidence is missing.
|
|
35747
|
+
*/
|
|
35748
|
+
run?: string;
|
|
35749
|
+
};
|
|
35319
35750
|
/**
|
|
35320
35751
|
* The git repository a project is bound to, and how far the service's mirror of it has been read.
|
|
35321
35752
|
*/
|
|
@@ -37411,6 +37842,10 @@ export type MediaSearchAsset = {
|
|
|
37411
37842
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
37412
37843
|
*/
|
|
37413
37844
|
segments?: number;
|
|
37845
|
+
/**
|
|
37846
|
+
* 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.
|
|
37847
|
+
*/
|
|
37848
|
+
duration?: number;
|
|
37414
37849
|
};
|
|
37415
37850
|
};
|
|
37416
37851
|
};
|
|
@@ -47204,6 +47639,10 @@ export type MediaAssetWritable = {
|
|
|
47204
47639
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
47205
47640
|
*/
|
|
47206
47641
|
segments?: number;
|
|
47642
|
+
/**
|
|
47643
|
+
* 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.
|
|
47644
|
+
*/
|
|
47645
|
+
duration?: number;
|
|
47207
47646
|
};
|
|
47208
47647
|
};
|
|
47209
47648
|
};
|
|
@@ -47757,6 +48196,10 @@ export type MediaSearchAssetWritable = {
|
|
|
47757
48196
|
* Number of same-length segments the proxy video is cut into, so a frame can be requested at any second of a long asset; absent while one proxy answers every second.
|
|
47758
48197
|
*/
|
|
47759
48198
|
segments?: number;
|
|
48199
|
+
/**
|
|
48200
|
+
* 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.
|
|
48201
|
+
*/
|
|
48202
|
+
duration?: number;
|
|
47760
48203
|
};
|
|
47761
48204
|
};
|
|
47762
48205
|
};
|
|
@@ -49016,48 +49459,6 @@ export type ListAgentEventsResponses = {
|
|
|
49016
49459
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49017
49460
|
*/
|
|
49018
49461
|
processed_at: string;
|
|
49019
|
-
} | {
|
|
49020
|
-
/**
|
|
49021
|
-
* Event id, unique within the session.
|
|
49022
|
-
*/
|
|
49023
|
-
id: string;
|
|
49024
|
-
/**
|
|
49025
|
-
* Always `user.tool_confirmation`.
|
|
49026
|
-
*/
|
|
49027
|
-
type: 'user.tool_confirmation';
|
|
49028
|
-
/**
|
|
49029
|
-
* When the event was recorded, RFC 3339.
|
|
49030
|
-
*/
|
|
49031
|
-
processed_at: string;
|
|
49032
|
-
/**
|
|
49033
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
49034
|
-
*/
|
|
49035
|
-
tool_use_id: string;
|
|
49036
|
-
/**
|
|
49037
|
-
* Always `allow`.
|
|
49038
|
-
*/
|
|
49039
|
-
result: 'allow';
|
|
49040
|
-
/**
|
|
49041
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
49042
|
-
*/
|
|
49043
|
-
answers: {
|
|
49044
|
-
[key: string]: string;
|
|
49045
|
-
};
|
|
49046
|
-
/**
|
|
49047
|
-
* Per-question notes, keyed by the question text.
|
|
49048
|
-
*/
|
|
49049
|
-
annotations?: {
|
|
49050
|
-
[key: string]: {
|
|
49051
|
-
/**
|
|
49052
|
-
* The preview of the option the user chose.
|
|
49053
|
-
*/
|
|
49054
|
-
preview?: string;
|
|
49055
|
-
/**
|
|
49056
|
-
* Free text the user added to their choice.
|
|
49057
|
-
*/
|
|
49058
|
-
notes?: string;
|
|
49059
|
-
};
|
|
49060
|
-
};
|
|
49061
49462
|
}>;
|
|
49062
49463
|
/**
|
|
49063
49464
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -49107,40 +49508,6 @@ export type SendAgentEventsData = {
|
|
|
49107
49508
|
* Id of the event this event refers to.
|
|
49108
49509
|
*/
|
|
49109
49510
|
event_id: string;
|
|
49110
|
-
} | {
|
|
49111
|
-
/**
|
|
49112
|
-
* Always `user.tool_confirmation`.
|
|
49113
|
-
*/
|
|
49114
|
-
type: 'user.tool_confirmation';
|
|
49115
|
-
/**
|
|
49116
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
49117
|
-
*/
|
|
49118
|
-
tool_use_id: string;
|
|
49119
|
-
/**
|
|
49120
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
49121
|
-
*/
|
|
49122
|
-
result: 'allow';
|
|
49123
|
-
/**
|
|
49124
|
-
* The user's answer to each question, keyed by the question text. A multi-select answer joins the chosen labels with a comma and a space; a free-text answer is the user's own words. A question left out was skipped.
|
|
49125
|
-
*/
|
|
49126
|
-
answers: {
|
|
49127
|
-
[key: string]: string;
|
|
49128
|
-
};
|
|
49129
|
-
/**
|
|
49130
|
-
* Optional per-question notes, keyed by the question text.
|
|
49131
|
-
*/
|
|
49132
|
-
annotations?: {
|
|
49133
|
-
[key: string]: {
|
|
49134
|
-
/**
|
|
49135
|
-
* The preview of the option the user chose.
|
|
49136
|
-
*/
|
|
49137
|
-
preview?: string;
|
|
49138
|
-
/**
|
|
49139
|
-
* Free text the user added to their choice.
|
|
49140
|
-
*/
|
|
49141
|
-
notes?: string;
|
|
49142
|
-
};
|
|
49143
|
-
};
|
|
49144
49511
|
}>;
|
|
49145
49512
|
};
|
|
49146
49513
|
path: {
|
|
@@ -49223,48 +49590,6 @@ export type SendAgentEventsResponses = {
|
|
|
49223
49590
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
49224
49591
|
*/
|
|
49225
49592
|
processed_at: string;
|
|
49226
|
-
} | {
|
|
49227
|
-
/**
|
|
49228
|
-
* Event id, unique within the session.
|
|
49229
|
-
*/
|
|
49230
|
-
id: string;
|
|
49231
|
-
/**
|
|
49232
|
-
* Always `user.tool_confirmation`.
|
|
49233
|
-
*/
|
|
49234
|
-
type: 'user.tool_confirmation';
|
|
49235
|
-
/**
|
|
49236
|
-
* When the event was recorded, RFC 3339.
|
|
49237
|
-
*/
|
|
49238
|
-
processed_at: string;
|
|
49239
|
-
/**
|
|
49240
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
49241
|
-
*/
|
|
49242
|
-
tool_use_id: string;
|
|
49243
|
-
/**
|
|
49244
|
-
* Always `allow`.
|
|
49245
|
-
*/
|
|
49246
|
-
result: 'allow';
|
|
49247
|
-
/**
|
|
49248
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
49249
|
-
*/
|
|
49250
|
-
answers: {
|
|
49251
|
-
[key: string]: string;
|
|
49252
|
-
};
|
|
49253
|
-
/**
|
|
49254
|
-
* Per-question notes, keyed by the question text.
|
|
49255
|
-
*/
|
|
49256
|
-
annotations?: {
|
|
49257
|
-
[key: string]: {
|
|
49258
|
-
/**
|
|
49259
|
-
* The preview of the option the user chose.
|
|
49260
|
-
*/
|
|
49261
|
-
preview?: string;
|
|
49262
|
-
/**
|
|
49263
|
-
* Free text the user added to their choice.
|
|
49264
|
-
*/
|
|
49265
|
-
notes?: string;
|
|
49266
|
-
};
|
|
49267
|
-
};
|
|
49268
49593
|
}>;
|
|
49269
49594
|
};
|
|
49270
49595
|
};
|
|
@@ -53040,13 +53365,17 @@ export type AgentsPhoneRetrieveResponses = {
|
|
|
53040
53365
|
*/
|
|
53041
53366
|
configured: boolean;
|
|
53042
53367
|
/**
|
|
53043
|
-
* What the phone is doing now.
|
|
53368
|
+
* What the phone is doing now. A cloud phone: none means no phone built (or its instance is gone), so a later use builds one; starting, the sandbox is still creating the instance; booting, the instance is up and the phone program has not said hello yet; restoring, last time's app state is being put back on the instance; running, usable now; archiving, the app state is being packed before it is killed (a release begins here); releasing, a release was asked for and the cron has not finished archiving and killing it. A BYOD phone (the organization's own device) has two states instead: online and offline.
|
|
53044
53369
|
*/
|
|
53045
|
-
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
53370
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53046
53371
|
/**
|
|
53047
|
-
* The sandbox SKU
|
|
53372
|
+
* The sandbox SKU a cloud phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device. Always null for a BYOD phone, which is never built.
|
|
53048
53373
|
*/
|
|
53049
53374
|
sku: string | null;
|
|
53375
|
+
/**
|
|
53376
|
+
* 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.
|
|
53377
|
+
*/
|
|
53378
|
+
byod_device: string | null;
|
|
53050
53379
|
/**
|
|
53051
53380
|
* What people and the model call this phone, or null when no phone is configured.
|
|
53052
53381
|
*/
|
|
@@ -53126,13 +53455,17 @@ export type AgentsPhoneReleaseResponses = {
|
|
|
53126
53455
|
*/
|
|
53127
53456
|
configured: boolean;
|
|
53128
53457
|
/**
|
|
53129
|
-
* What the phone is doing now.
|
|
53458
|
+
* What the phone is doing now. A cloud phone: none means no phone built (or its instance is gone), so a later use builds one; starting, the sandbox is still creating the instance; booting, the instance is up and the phone program has not said hello yet; restoring, last time's app state is being put back on the instance; running, usable now; archiving, the app state is being packed before it is killed (a release begins here); releasing, a release was asked for and the cron has not finished archiving and killing it. A BYOD phone (the organization's own device) has two states instead: online and offline.
|
|
53130
53459
|
*/
|
|
53131
|
-
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
53460
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing' | 'online' | 'offline';
|
|
53132
53461
|
/**
|
|
53133
|
-
* The sandbox SKU
|
|
53462
|
+
* The sandbox SKU a cloud phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device. Always null for a BYOD phone, which is never built.
|
|
53134
53463
|
*/
|
|
53135
53464
|
sku: string | null;
|
|
53465
|
+
/**
|
|
53466
|
+
* 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.
|
|
53467
|
+
*/
|
|
53468
|
+
byod_device: string | null;
|
|
53136
53469
|
/**
|
|
53137
53470
|
* What people and the model call this phone, or null when no phone is configured.
|
|
53138
53471
|
*/
|
|
@@ -62929,7 +63262,7 @@ export type ListSessionRequestsResponses = {
|
|
|
62929
63262
|
*/
|
|
62930
63263
|
object: 'request';
|
|
62931
63264
|
/**
|
|
62932
|
-
* question
|
|
63265
|
+
* Always approval: a tool waits for permission. question is kept for compatibility and is never returned: the agent asks with a card or in words and the person answers with a message.
|
|
62933
63266
|
*/
|
|
62934
63267
|
kind: 'question' | 'approval';
|
|
62935
63268
|
/**
|
|
@@ -62937,11 +63270,11 @@ export type ListSessionRequestsResponses = {
|
|
|
62937
63270
|
*/
|
|
62938
63271
|
status: 'pending';
|
|
62939
63272
|
/**
|
|
62940
|
-
* The tool the agent called, such as
|
|
63273
|
+
* The tool the agent called, such as bash.
|
|
62941
63274
|
*/
|
|
62942
63275
|
tool_name: string;
|
|
62943
63276
|
/**
|
|
62944
|
-
* The tool call's input exactly as the agent.tool_use event shows it:
|
|
63277
|
+
* The tool call's input exactly as the agent.tool_use event shows it: the tool's arguments.
|
|
62945
63278
|
*/
|
|
62946
63279
|
input: unknown;
|
|
62947
63280
|
/**
|
|
@@ -65750,6 +66083,10 @@ export type FileListFilesData = {
|
|
|
65750
66083
|
* Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404.
|
|
65751
66084
|
*/
|
|
65752
66085
|
scope_id?: string;
|
|
66086
|
+
/**
|
|
66087
|
+
* 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.
|
|
66088
|
+
*/
|
|
66089
|
+
ids?: Array<string>;
|
|
65753
66090
|
/**
|
|
65754
66091
|
* File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.
|
|
65755
66092
|
*/
|
|
@@ -74128,6 +74465,433 @@ export type ReviseOrganizationKeyResultResponses = {
|
|
|
74128
74465
|
200: OrganizationKeyResult;
|
|
74129
74466
|
};
|
|
74130
74467
|
export type ReviseOrganizationKeyResultResponse = ReviseOrganizationKeyResultResponses[keyof ReviseOrganizationKeyResultResponses];
|
|
74468
|
+
export type ListOrganizationSpecsData = {
|
|
74469
|
+
body?: never;
|
|
74470
|
+
path?: never;
|
|
74471
|
+
query?: {
|
|
74472
|
+
/**
|
|
74473
|
+
* Maximum items per page, from 1 to 100; defaults to 20.
|
|
74474
|
+
*/
|
|
74475
|
+
limit?: number;
|
|
74476
|
+
/**
|
|
74477
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
74478
|
+
*/
|
|
74479
|
+
page?: string;
|
|
74480
|
+
/**
|
|
74481
|
+
* Only specs of this subject kind; omit to list every kind together.
|
|
74482
|
+
*/
|
|
74483
|
+
kind?: OrganizationSpecKind;
|
|
74484
|
+
};
|
|
74485
|
+
url: '/organization/v1/specs';
|
|
74486
|
+
};
|
|
74487
|
+
export type ListOrganizationSpecsErrors = {
|
|
74488
|
+
/**
|
|
74489
|
+
* 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.
|
|
74490
|
+
*/
|
|
74491
|
+
400: OrganizationProblem;
|
|
74492
|
+
/**
|
|
74493
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74494
|
+
*/
|
|
74495
|
+
401: unknown;
|
|
74496
|
+
/**
|
|
74497
|
+
* 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.
|
|
74498
|
+
*/
|
|
74499
|
+
403: OrganizationProblem;
|
|
74500
|
+
};
|
|
74501
|
+
export type ListOrganizationSpecsError = ListOrganizationSpecsErrors[keyof ListOrganizationSpecsErrors];
|
|
74502
|
+
export type ListOrganizationSpecsResponses = {
|
|
74503
|
+
/**
|
|
74504
|
+
* One page of specs.
|
|
74505
|
+
*/
|
|
74506
|
+
200: OrganizationSpecList;
|
|
74507
|
+
};
|
|
74508
|
+
export type ListOrganizationSpecsResponse = ListOrganizationSpecsResponses[keyof ListOrganizationSpecsResponses];
|
|
74509
|
+
export type GetOrganizationSpecData = {
|
|
74510
|
+
body?: never;
|
|
74511
|
+
path: {
|
|
74512
|
+
/**
|
|
74513
|
+
* Kind of the subject whose spec to read.
|
|
74514
|
+
*/
|
|
74515
|
+
kind: OrganizationSpecKind;
|
|
74516
|
+
/**
|
|
74517
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
74518
|
+
*/
|
|
74519
|
+
id: string;
|
|
74520
|
+
};
|
|
74521
|
+
query?: {
|
|
74522
|
+
/**
|
|
74523
|
+
* Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written.
|
|
74524
|
+
*/
|
|
74525
|
+
revision?: number;
|
|
74526
|
+
};
|
|
74527
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
74528
|
+
};
|
|
74529
|
+
export type GetOrganizationSpecErrors = {
|
|
74530
|
+
/**
|
|
74531
|
+
* 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.
|
|
74532
|
+
*/
|
|
74533
|
+
400: OrganizationProblem;
|
|
74534
|
+
/**
|
|
74535
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74536
|
+
*/
|
|
74537
|
+
401: unknown;
|
|
74538
|
+
/**
|
|
74539
|
+
* 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.
|
|
74540
|
+
*/
|
|
74541
|
+
403: OrganizationProblem;
|
|
74542
|
+
/**
|
|
74543
|
+
* 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.
|
|
74544
|
+
*/
|
|
74545
|
+
404: OrganizationProblem;
|
|
74546
|
+
};
|
|
74547
|
+
export type GetOrganizationSpecError = GetOrganizationSpecErrors[keyof GetOrganizationSpecErrors];
|
|
74548
|
+
export type GetOrganizationSpecResponses = {
|
|
74549
|
+
/**
|
|
74550
|
+
* The spec of the subject at the live or named revision.
|
|
74551
|
+
*/
|
|
74552
|
+
200: OrganizationSpec;
|
|
74553
|
+
};
|
|
74554
|
+
export type GetOrganizationSpecResponse = GetOrganizationSpecResponses[keyof GetOrganizationSpecResponses];
|
|
74555
|
+
export type ReviseOrganizationSpecData = {
|
|
74556
|
+
body: OrganizationReviseSpecRequest;
|
|
74557
|
+
path: {
|
|
74558
|
+
/**
|
|
74559
|
+
* Kind of the subject whose spec to revise.
|
|
74560
|
+
*/
|
|
74561
|
+
kind: OrganizationSpecKind;
|
|
74562
|
+
/**
|
|
74563
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
74564
|
+
*/
|
|
74565
|
+
id: string;
|
|
74566
|
+
};
|
|
74567
|
+
query?: never;
|
|
74568
|
+
url: '/organization/v1/specs/{kind}/{id}';
|
|
74569
|
+
};
|
|
74570
|
+
export type ReviseOrganizationSpecErrors = {
|
|
74571
|
+
/**
|
|
74572
|
+
* 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.
|
|
74573
|
+
*/
|
|
74574
|
+
400: OrganizationProblem;
|
|
74575
|
+
/**
|
|
74576
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74577
|
+
*/
|
|
74578
|
+
401: unknown;
|
|
74579
|
+
/**
|
|
74580
|
+
* 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).
|
|
74581
|
+
*/
|
|
74582
|
+
403: OrganizationProblem;
|
|
74583
|
+
/**
|
|
74584
|
+
* 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.
|
|
74585
|
+
*/
|
|
74586
|
+
404: OrganizationProblem;
|
|
74587
|
+
/**
|
|
74588
|
+
* REVISION_CONFLICT; the spec moved on since you read it. Read it again, merge your change and retry with its current revision.
|
|
74589
|
+
*/
|
|
74590
|
+
409: OrganizationProblem;
|
|
74591
|
+
};
|
|
74592
|
+
export type ReviseOrganizationSpecError = ReviseOrganizationSpecErrors[keyof ReviseOrganizationSpecErrors];
|
|
74593
|
+
export type ReviseOrganizationSpecResponses = {
|
|
74594
|
+
/**
|
|
74595
|
+
* The spec after the revision, at the new revision number.
|
|
74596
|
+
*/
|
|
74597
|
+
200: OrganizationSpec;
|
|
74598
|
+
};
|
|
74599
|
+
export type ReviseOrganizationSpecResponse = ReviseOrganizationSpecResponses[keyof ReviseOrganizationSpecResponses];
|
|
74600
|
+
export type ListOrganizationSpecRevisionsData = {
|
|
74601
|
+
body?: never;
|
|
74602
|
+
path: {
|
|
74603
|
+
/**
|
|
74604
|
+
* Kind of the subject whose revision history to list.
|
|
74605
|
+
*/
|
|
74606
|
+
kind: OrganizationSpecKind;
|
|
74607
|
+
/**
|
|
74608
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
74609
|
+
*/
|
|
74610
|
+
id: string;
|
|
74611
|
+
};
|
|
74612
|
+
query?: {
|
|
74613
|
+
/**
|
|
74614
|
+
* Maximum revisions per page, from 1 to 100; defaults to 20.
|
|
74615
|
+
*/
|
|
74616
|
+
limit?: number;
|
|
74617
|
+
/**
|
|
74618
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
74619
|
+
*/
|
|
74620
|
+
page?: string;
|
|
74621
|
+
};
|
|
74622
|
+
url: '/organization/v1/specs/{kind}/{id}/revisions';
|
|
74623
|
+
};
|
|
74624
|
+
export type ListOrganizationSpecRevisionsErrors = {
|
|
74625
|
+
/**
|
|
74626
|
+
* INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters.
|
|
74627
|
+
*/
|
|
74628
|
+
400: OrganizationProblem;
|
|
74629
|
+
/**
|
|
74630
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74631
|
+
*/
|
|
74632
|
+
401: unknown;
|
|
74633
|
+
/**
|
|
74634
|
+
* 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.
|
|
74635
|
+
*/
|
|
74636
|
+
403: OrganizationProblem;
|
|
74637
|
+
/**
|
|
74638
|
+
* 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.
|
|
74639
|
+
*/
|
|
74640
|
+
404: OrganizationProblem;
|
|
74641
|
+
};
|
|
74642
|
+
export type ListOrganizationSpecRevisionsError = ListOrganizationSpecRevisionsErrors[keyof ListOrganizationSpecRevisionsErrors];
|
|
74643
|
+
export type ListOrganizationSpecRevisionsResponses = {
|
|
74644
|
+
/**
|
|
74645
|
+
* One page of revisions, newest first.
|
|
74646
|
+
*/
|
|
74647
|
+
200: OrganizationSpecRevisionList;
|
|
74648
|
+
};
|
|
74649
|
+
export type ListOrganizationSpecRevisionsResponse = ListOrganizationSpecRevisionsResponses[keyof ListOrganizationSpecRevisionsResponses];
|
|
74650
|
+
export type DiffOrganizationSpecData = {
|
|
74651
|
+
body?: never;
|
|
74652
|
+
path: {
|
|
74653
|
+
/**
|
|
74654
|
+
* Kind of the subject whose revisions to compare.
|
|
74655
|
+
*/
|
|
74656
|
+
kind: OrganizationSpecKind;
|
|
74657
|
+
/**
|
|
74658
|
+
* The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...).
|
|
74659
|
+
*/
|
|
74660
|
+
id: string;
|
|
74661
|
+
};
|
|
74662
|
+
query: {
|
|
74663
|
+
/**
|
|
74664
|
+
* The earlier revision to compare from; 0 is the empty spec before the first write.
|
|
74665
|
+
*/
|
|
74666
|
+
from: number;
|
|
74667
|
+
/**
|
|
74668
|
+
* The later revision to compare to.
|
|
74669
|
+
*/
|
|
74670
|
+
to: number;
|
|
74671
|
+
};
|
|
74672
|
+
url: '/organization/v1/specs/{kind}/{id}/diff';
|
|
74673
|
+
};
|
|
74674
|
+
export type DiffOrganizationSpecErrors = {
|
|
74675
|
+
/**
|
|
74676
|
+
* INVALID_PARAMS; from or to is missing or not an integer. Send both as whole numbers.
|
|
74677
|
+
*/
|
|
74678
|
+
400: OrganizationProblem;
|
|
74679
|
+
/**
|
|
74680
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74681
|
+
*/
|
|
74682
|
+
401: unknown;
|
|
74683
|
+
/**
|
|
74684
|
+
* 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.
|
|
74685
|
+
*/
|
|
74686
|
+
403: OrganizationProblem;
|
|
74687
|
+
/**
|
|
74688
|
+
* 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.
|
|
74689
|
+
*/
|
|
74690
|
+
404: OrganizationProblem;
|
|
74691
|
+
};
|
|
74692
|
+
export type DiffOrganizationSpecError = DiffOrganizationSpecErrors[keyof DiffOrganizationSpecErrors];
|
|
74693
|
+
export type DiffOrganizationSpecResponses = {
|
|
74694
|
+
/**
|
|
74695
|
+
* The changes between the two revisions, in path order.
|
|
74696
|
+
*/
|
|
74697
|
+
200: OrganizationSpecDiff;
|
|
74698
|
+
};
|
|
74699
|
+
export type DiffOrganizationSpecResponse = DiffOrganizationSpecResponses[keyof DiffOrganizationSpecResponses];
|
|
74700
|
+
export type GetOrganizationEffectiveSpecData = {
|
|
74701
|
+
body?: never;
|
|
74702
|
+
path?: never;
|
|
74703
|
+
query?: {
|
|
74704
|
+
/**
|
|
74705
|
+
* Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both.
|
|
74706
|
+
*/
|
|
74707
|
+
actor?: string;
|
|
74708
|
+
/**
|
|
74709
|
+
* One seat to merge, held or vacant (pos_...); give this or actor, not both.
|
|
74710
|
+
*/
|
|
74711
|
+
position_id?: string;
|
|
74712
|
+
/**
|
|
74713
|
+
* Which holder kind to merge for; omit to derive it from the seat's holder.
|
|
74714
|
+
*/
|
|
74715
|
+
holder_kind?: 'agent' | 'human';
|
|
74716
|
+
};
|
|
74717
|
+
url: '/organization/v1/effective_spec';
|
|
74718
|
+
};
|
|
74719
|
+
export type GetOrganizationEffectiveSpecErrors = {
|
|
74720
|
+
/**
|
|
74721
|
+
* 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.
|
|
74722
|
+
*/
|
|
74723
|
+
400: OrganizationProblem;
|
|
74724
|
+
/**
|
|
74725
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74726
|
+
*/
|
|
74727
|
+
401: unknown;
|
|
74728
|
+
/**
|
|
74729
|
+
* 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.
|
|
74730
|
+
*/
|
|
74731
|
+
403: OrganizationProblem;
|
|
74732
|
+
/**
|
|
74733
|
+
* POSITION_NOT_FOUND; position_id is not a position of your organization. List positions and copy an id.
|
|
74734
|
+
*/
|
|
74735
|
+
404: OrganizationProblem;
|
|
74736
|
+
};
|
|
74737
|
+
export type GetOrganizationEffectiveSpecError = GetOrganizationEffectiveSpecErrors[keyof GetOrganizationEffectiveSpecErrors];
|
|
74738
|
+
export type GetOrganizationEffectiveSpecResponses = {
|
|
74739
|
+
/**
|
|
74740
|
+
* The merged effective spec of the seat or actor.
|
|
74741
|
+
*/
|
|
74742
|
+
200: OrganizationEffectiveSpec;
|
|
74743
|
+
};
|
|
74744
|
+
export type GetOrganizationEffectiveSpecResponse = GetOrganizationEffectiveSpecResponses[keyof GetOrganizationEffectiveSpecResponses];
|
|
74745
|
+
export type PlanOrganizationReconcileData = {
|
|
74746
|
+
body?: never;
|
|
74747
|
+
path?: never;
|
|
74748
|
+
query: {
|
|
74749
|
+
/**
|
|
74750
|
+
* The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged.
|
|
74751
|
+
*/
|
|
74752
|
+
actor: string;
|
|
74753
|
+
};
|
|
74754
|
+
url: '/organization/v1/reconcile/plan';
|
|
74755
|
+
};
|
|
74756
|
+
export type PlanOrganizationReconcileErrors = {
|
|
74757
|
+
/**
|
|
74758
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
74759
|
+
*/
|
|
74760
|
+
400: OrganizationProblem;
|
|
74761
|
+
/**
|
|
74762
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74763
|
+
*/
|
|
74764
|
+
401: unknown;
|
|
74765
|
+
/**
|
|
74766
|
+
* 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.
|
|
74767
|
+
*/
|
|
74768
|
+
403: OrganizationProblem;
|
|
74769
|
+
};
|
|
74770
|
+
export type PlanOrganizationReconcileError = PlanOrganizationReconcileErrors[keyof PlanOrganizationReconcileErrors];
|
|
74771
|
+
export type PlanOrganizationReconcileResponses = {
|
|
74772
|
+
/**
|
|
74773
|
+
* The actions the reconciler would take for this holder, and the merged-result violations.
|
|
74774
|
+
*/
|
|
74775
|
+
200: OrganizationReconcilePlan;
|
|
74776
|
+
};
|
|
74777
|
+
export type PlanOrganizationReconcileResponse = PlanOrganizationReconcileResponses[keyof PlanOrganizationReconcileResponses];
|
|
74778
|
+
export type GetOrganizationReconcileStatusData = {
|
|
74779
|
+
body?: never;
|
|
74780
|
+
path?: never;
|
|
74781
|
+
query: {
|
|
74782
|
+
/**
|
|
74783
|
+
* The holder whose reconcile status to read (agent:agent_... or human:usr_...).
|
|
74784
|
+
*/
|
|
74785
|
+
actor: string;
|
|
74786
|
+
};
|
|
74787
|
+
url: '/organization/v1/reconcile/status';
|
|
74788
|
+
};
|
|
74789
|
+
export type GetOrganizationReconcileStatusErrors = {
|
|
74790
|
+
/**
|
|
74791
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a query parameter is unknown.
|
|
74792
|
+
*/
|
|
74793
|
+
400: OrganizationProblem;
|
|
74794
|
+
/**
|
|
74795
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74796
|
+
*/
|
|
74797
|
+
401: unknown;
|
|
74798
|
+
/**
|
|
74799
|
+
* 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.
|
|
74800
|
+
*/
|
|
74801
|
+
403: OrganizationProblem;
|
|
74802
|
+
};
|
|
74803
|
+
export type GetOrganizationReconcileStatusError = GetOrganizationReconcileStatusErrors[keyof GetOrganizationReconcileStatusErrors];
|
|
74804
|
+
export type GetOrganizationReconcileStatusResponses = {
|
|
74805
|
+
/**
|
|
74806
|
+
* The last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
|
|
74807
|
+
*/
|
|
74808
|
+
200: OrganizationReconcileStatus;
|
|
74809
|
+
};
|
|
74810
|
+
export type GetOrganizationReconcileStatusResponse = GetOrganizationReconcileStatusResponses[keyof GetOrganizationReconcileStatusResponses];
|
|
74811
|
+
export type RunOrganizationReconcileData = {
|
|
74812
|
+
body: OrganizationReconcileActorRequest;
|
|
74813
|
+
path?: never;
|
|
74814
|
+
query?: never;
|
|
74815
|
+
url: '/organization/v1/reconcile/run';
|
|
74816
|
+
};
|
|
74817
|
+
export type RunOrganizationReconcileErrors = {
|
|
74818
|
+
/**
|
|
74819
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
74820
|
+
*/
|
|
74821
|
+
400: OrganizationProblem;
|
|
74822
|
+
/**
|
|
74823
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74824
|
+
*/
|
|
74825
|
+
401: unknown;
|
|
74826
|
+
/**
|
|
74827
|
+
* 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).
|
|
74828
|
+
*/
|
|
74829
|
+
403: OrganizationProblem;
|
|
74830
|
+
};
|
|
74831
|
+
export type RunOrganizationReconcileError = RunOrganizationReconcileErrors[keyof RunOrganizationReconcileErrors];
|
|
74832
|
+
export type RunOrganizationReconcileResponses = {
|
|
74833
|
+
/**
|
|
74834
|
+
* The status after this run.
|
|
74835
|
+
*/
|
|
74836
|
+
200: OrganizationReconcileStatus;
|
|
74837
|
+
};
|
|
74838
|
+
export type RunOrganizationReconcileResponse = RunOrganizationReconcileResponses[keyof RunOrganizationReconcileResponses];
|
|
74839
|
+
export type PauseOrganizationReconcileData = {
|
|
74840
|
+
body: OrganizationReconcileActorRequest;
|
|
74841
|
+
path?: never;
|
|
74842
|
+
query?: never;
|
|
74843
|
+
url: '/organization/v1/reconcile/pause';
|
|
74844
|
+
};
|
|
74845
|
+
export type PauseOrganizationReconcileErrors = {
|
|
74846
|
+
/**
|
|
74847
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
74848
|
+
*/
|
|
74849
|
+
400: OrganizationProblem;
|
|
74850
|
+
/**
|
|
74851
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74852
|
+
*/
|
|
74853
|
+
401: unknown;
|
|
74854
|
+
/**
|
|
74855
|
+
* 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).
|
|
74856
|
+
*/
|
|
74857
|
+
403: OrganizationProblem;
|
|
74858
|
+
};
|
|
74859
|
+
export type PauseOrganizationReconcileError = PauseOrganizationReconcileErrors[keyof PauseOrganizationReconcileErrors];
|
|
74860
|
+
export type PauseOrganizationReconcileResponses = {
|
|
74861
|
+
/**
|
|
74862
|
+
* The status after pausing; paused is true.
|
|
74863
|
+
*/
|
|
74864
|
+
200: OrganizationReconcileStatus;
|
|
74865
|
+
};
|
|
74866
|
+
export type PauseOrganizationReconcileResponse = PauseOrganizationReconcileResponses[keyof PauseOrganizationReconcileResponses];
|
|
74867
|
+
export type ResumeOrganizationReconcileData = {
|
|
74868
|
+
body: OrganizationReconcileActorRequest;
|
|
74869
|
+
path?: never;
|
|
74870
|
+
query?: never;
|
|
74871
|
+
url: '/organization/v1/reconcile/resume';
|
|
74872
|
+
};
|
|
74873
|
+
export type ResumeOrganizationReconcileErrors = {
|
|
74874
|
+
/**
|
|
74875
|
+
* INVALID_PARAMS; actor is missing or is not an actor address (agent:... or human:...), or a body field is unknown.
|
|
74876
|
+
*/
|
|
74877
|
+
400: OrganizationProblem;
|
|
74878
|
+
/**
|
|
74879
|
+
* Missing or invalid credential; provide a valid organization API key or sign in to the Console.
|
|
74880
|
+
*/
|
|
74881
|
+
401: unknown;
|
|
74882
|
+
/**
|
|
74883
|
+
* 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).
|
|
74884
|
+
*/
|
|
74885
|
+
403: OrganizationProblem;
|
|
74886
|
+
};
|
|
74887
|
+
export type ResumeOrganizationReconcileError = ResumeOrganizationReconcileErrors[keyof ResumeOrganizationReconcileErrors];
|
|
74888
|
+
export type ResumeOrganizationReconcileResponses = {
|
|
74889
|
+
/**
|
|
74890
|
+
* The status after resuming; paused is false.
|
|
74891
|
+
*/
|
|
74892
|
+
200: OrganizationReconcileStatus;
|
|
74893
|
+
};
|
|
74894
|
+
export type ResumeOrganizationReconcileResponse = ResumeOrganizationReconcileResponses[keyof ResumeOrganizationReconcileResponses];
|
|
74131
74895
|
export type UpgradeSandboxData = {
|
|
74132
74896
|
body: {
|
|
74133
74897
|
/**
|
|
@@ -75275,6 +76039,436 @@ export type RunSandboxCommandResponses = {
|
|
|
75275
76039
|
};
|
|
75276
76040
|
};
|
|
75277
76041
|
export type RunSandboxCommandResponse = RunSandboxCommandResponses[keyof RunSandboxCommandResponses];
|
|
76042
|
+
export type CreateByodPairingData = {
|
|
76043
|
+
body?: never;
|
|
76044
|
+
path?: never;
|
|
76045
|
+
query?: never;
|
|
76046
|
+
url: '/sandbox/v1/byod/pairings';
|
|
76047
|
+
};
|
|
76048
|
+
export type CreateByodPairingErrors = {
|
|
76049
|
+
/**
|
|
76050
|
+
* 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.
|
|
76051
|
+
*/
|
|
76052
|
+
400: unknown;
|
|
76053
|
+
/**
|
|
76054
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76055
|
+
*/
|
|
76056
|
+
401: unknown;
|
|
76057
|
+
/**
|
|
76058
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76059
|
+
*/
|
|
76060
|
+
503: unknown;
|
|
76061
|
+
};
|
|
76062
|
+
export type CreateByodPairingResponses = {
|
|
76063
|
+
/**
|
|
76064
|
+
* A pairing the caller started: the short code, its deadline and the string the phone's app scans.
|
|
76065
|
+
*/
|
|
76066
|
+
201: {
|
|
76067
|
+
/**
|
|
76068
|
+
* 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.
|
|
76069
|
+
*/
|
|
76070
|
+
code: string;
|
|
76071
|
+
/**
|
|
76072
|
+
* 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.
|
|
76073
|
+
*/
|
|
76074
|
+
expires_at: string;
|
|
76075
|
+
/**
|
|
76076
|
+
* 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.
|
|
76077
|
+
*/
|
|
76078
|
+
qr: string;
|
|
76079
|
+
};
|
|
76080
|
+
};
|
|
76081
|
+
export type CreateByodPairingResponse = CreateByodPairingResponses[keyof CreateByodPairingResponses];
|
|
76082
|
+
export type ListByodDevicesData = {
|
|
76083
|
+
body?: never;
|
|
76084
|
+
path?: never;
|
|
76085
|
+
query?: never;
|
|
76086
|
+
url: '/sandbox/v1/byod/devices';
|
|
76087
|
+
};
|
|
76088
|
+
export type ListByodDevicesErrors = {
|
|
76089
|
+
/**
|
|
76090
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76091
|
+
*/
|
|
76092
|
+
401: unknown;
|
|
76093
|
+
/**
|
|
76094
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76095
|
+
*/
|
|
76096
|
+
503: unknown;
|
|
76097
|
+
};
|
|
76098
|
+
export type ListByodDevicesResponses = {
|
|
76099
|
+
/**
|
|
76100
|
+
* The organization's BYOD devices.
|
|
76101
|
+
*/
|
|
76102
|
+
200: {
|
|
76103
|
+
/**
|
|
76104
|
+
* The organization's devices that are not disconnected, oldest first; a disconnected device is left out.
|
|
76105
|
+
*/
|
|
76106
|
+
data: Array<{
|
|
76107
|
+
/**
|
|
76108
|
+
* Resource type; always "byod_device".
|
|
76109
|
+
*/
|
|
76110
|
+
object: 'byod_device';
|
|
76111
|
+
/**
|
|
76112
|
+
* 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.
|
|
76113
|
+
*/
|
|
76114
|
+
id: string;
|
|
76115
|
+
/**
|
|
76116
|
+
* 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.
|
|
76117
|
+
*/
|
|
76118
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76119
|
+
/**
|
|
76120
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
76121
|
+
*/
|
|
76122
|
+
name: string;
|
|
76123
|
+
/**
|
|
76124
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
76125
|
+
*/
|
|
76126
|
+
model: string;
|
|
76127
|
+
/**
|
|
76128
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
76129
|
+
*/
|
|
76130
|
+
os_version: string;
|
|
76131
|
+
/**
|
|
76132
|
+
* 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.
|
|
76133
|
+
*/
|
|
76134
|
+
online: boolean;
|
|
76135
|
+
/**
|
|
76136
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
76137
|
+
*/
|
|
76138
|
+
last_seen_at: string | null;
|
|
76139
|
+
/**
|
|
76140
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
76141
|
+
*/
|
|
76142
|
+
created_at: string;
|
|
76143
|
+
/**
|
|
76144
|
+
* 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).
|
|
76145
|
+
*/
|
|
76146
|
+
capabilities: Array<'display' | 'agent'>;
|
|
76147
|
+
/**
|
|
76148
|
+
* 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.
|
|
76149
|
+
*/
|
|
76150
|
+
agent_dirs: Array<string>;
|
|
76151
|
+
/**
|
|
76152
|
+
* 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.
|
|
76153
|
+
*/
|
|
76154
|
+
allow_bypass: boolean;
|
|
76155
|
+
}>;
|
|
76156
|
+
};
|
|
76157
|
+
};
|
|
76158
|
+
export type ListByodDevicesResponse = ListByodDevicesResponses[keyof ListByodDevicesResponses];
|
|
76159
|
+
export type GetByodDeviceData = {
|
|
76160
|
+
body?: never;
|
|
76161
|
+
path: {
|
|
76162
|
+
/**
|
|
76163
|
+
* 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.
|
|
76164
|
+
*/
|
|
76165
|
+
deviceID: string;
|
|
76166
|
+
};
|
|
76167
|
+
query?: never;
|
|
76168
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
76169
|
+
};
|
|
76170
|
+
export type GetByodDeviceErrors = {
|
|
76171
|
+
/**
|
|
76172
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76173
|
+
*/
|
|
76174
|
+
401: unknown;
|
|
76175
|
+
/**
|
|
76176
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
76177
|
+
*/
|
|
76178
|
+
404: unknown;
|
|
76179
|
+
/**
|
|
76180
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76181
|
+
*/
|
|
76182
|
+
503: unknown;
|
|
76183
|
+
};
|
|
76184
|
+
export type GetByodDeviceResponses = {
|
|
76185
|
+
/**
|
|
76186
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
76187
|
+
*/
|
|
76188
|
+
200: {
|
|
76189
|
+
/**
|
|
76190
|
+
* Resource type; always "byod_device".
|
|
76191
|
+
*/
|
|
76192
|
+
object: 'byod_device';
|
|
76193
|
+
/**
|
|
76194
|
+
* 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.
|
|
76195
|
+
*/
|
|
76196
|
+
id: string;
|
|
76197
|
+
/**
|
|
76198
|
+
* 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.
|
|
76199
|
+
*/
|
|
76200
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76201
|
+
/**
|
|
76202
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
76203
|
+
*/
|
|
76204
|
+
name: string;
|
|
76205
|
+
/**
|
|
76206
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
76207
|
+
*/
|
|
76208
|
+
model: string;
|
|
76209
|
+
/**
|
|
76210
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
76211
|
+
*/
|
|
76212
|
+
os_version: string;
|
|
76213
|
+
/**
|
|
76214
|
+
* 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.
|
|
76215
|
+
*/
|
|
76216
|
+
online: boolean;
|
|
76217
|
+
/**
|
|
76218
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
76219
|
+
*/
|
|
76220
|
+
last_seen_at: string | null;
|
|
76221
|
+
/**
|
|
76222
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
76223
|
+
*/
|
|
76224
|
+
created_at: string;
|
|
76225
|
+
/**
|
|
76226
|
+
* 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).
|
|
76227
|
+
*/
|
|
76228
|
+
capabilities: Array<'display' | 'agent'>;
|
|
76229
|
+
/**
|
|
76230
|
+
* 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.
|
|
76231
|
+
*/
|
|
76232
|
+
agent_dirs: Array<string>;
|
|
76233
|
+
/**
|
|
76234
|
+
* 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.
|
|
76235
|
+
*/
|
|
76236
|
+
allow_bypass: boolean;
|
|
76237
|
+
};
|
|
76238
|
+
};
|
|
76239
|
+
export type GetByodDeviceResponse = GetByodDeviceResponses[keyof GetByodDeviceResponses];
|
|
76240
|
+
export type UpdateByodDeviceData = {
|
|
76241
|
+
/**
|
|
76242
|
+
* The one field a rename may send.
|
|
76243
|
+
*/
|
|
76244
|
+
body: {
|
|
76245
|
+
/**
|
|
76246
|
+
* New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique.
|
|
76247
|
+
*/
|
|
76248
|
+
name: string;
|
|
76249
|
+
};
|
|
76250
|
+
path: {
|
|
76251
|
+
/**
|
|
76252
|
+
* 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.
|
|
76253
|
+
*/
|
|
76254
|
+
deviceID: string;
|
|
76255
|
+
};
|
|
76256
|
+
query?: never;
|
|
76257
|
+
url: '/sandbox/v1/byod/devices/{deviceID}';
|
|
76258
|
+
};
|
|
76259
|
+
export type UpdateByodDeviceErrors = {
|
|
76260
|
+
/**
|
|
76261
|
+
* 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.
|
|
76262
|
+
*/
|
|
76263
|
+
400: unknown;
|
|
76264
|
+
/**
|
|
76265
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76266
|
+
*/
|
|
76267
|
+
401: unknown;
|
|
76268
|
+
/**
|
|
76269
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
76270
|
+
*/
|
|
76271
|
+
404: unknown;
|
|
76272
|
+
/**
|
|
76273
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76274
|
+
*/
|
|
76275
|
+
503: unknown;
|
|
76276
|
+
};
|
|
76277
|
+
export type UpdateByodDeviceResponses = {
|
|
76278
|
+
/**
|
|
76279
|
+
* One BYOD device: a phone or a desktop the organization paired and the platform did not build.
|
|
76280
|
+
*/
|
|
76281
|
+
200: {
|
|
76282
|
+
/**
|
|
76283
|
+
* Resource type; always "byod_device".
|
|
76284
|
+
*/
|
|
76285
|
+
object: 'byod_device';
|
|
76286
|
+
/**
|
|
76287
|
+
* 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.
|
|
76288
|
+
*/
|
|
76289
|
+
id: string;
|
|
76290
|
+
/**
|
|
76291
|
+
* 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.
|
|
76292
|
+
*/
|
|
76293
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76294
|
+
/**
|
|
76295
|
+
* Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
|
|
76296
|
+
*/
|
|
76297
|
+
name: string;
|
|
76298
|
+
/**
|
|
76299
|
+
* Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
|
|
76300
|
+
*/
|
|
76301
|
+
model: string;
|
|
76302
|
+
/**
|
|
76303
|
+
* Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
|
|
76304
|
+
*/
|
|
76305
|
+
os_version: string;
|
|
76306
|
+
/**
|
|
76307
|
+
* 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.
|
|
76308
|
+
*/
|
|
76309
|
+
online: boolean;
|
|
76310
|
+
/**
|
|
76311
|
+
* When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
|
|
76312
|
+
*/
|
|
76313
|
+
last_seen_at: string | null;
|
|
76314
|
+
/**
|
|
76315
|
+
* When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
|
|
76316
|
+
*/
|
|
76317
|
+
created_at: string;
|
|
76318
|
+
/**
|
|
76319
|
+
* 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).
|
|
76320
|
+
*/
|
|
76321
|
+
capabilities: Array<'display' | 'agent'>;
|
|
76322
|
+
/**
|
|
76323
|
+
* 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.
|
|
76324
|
+
*/
|
|
76325
|
+
agent_dirs: Array<string>;
|
|
76326
|
+
/**
|
|
76327
|
+
* 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.
|
|
76328
|
+
*/
|
|
76329
|
+
allow_bypass: boolean;
|
|
76330
|
+
};
|
|
76331
|
+
};
|
|
76332
|
+
export type UpdateByodDeviceResponse = UpdateByodDeviceResponses[keyof UpdateByodDeviceResponses];
|
|
76333
|
+
export type DisconnectByodDeviceData = {
|
|
76334
|
+
body?: never;
|
|
76335
|
+
path: {
|
|
76336
|
+
/**
|
|
76337
|
+
* 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.
|
|
76338
|
+
*/
|
|
76339
|
+
deviceID: string;
|
|
76340
|
+
};
|
|
76341
|
+
query?: never;
|
|
76342
|
+
url: '/sandbox/v1/byod/devices/{deviceID}/disconnect';
|
|
76343
|
+
};
|
|
76344
|
+
export type DisconnectByodDeviceErrors = {
|
|
76345
|
+
/**
|
|
76346
|
+
* Authentication required: supply an organization API key that carries a tenant.
|
|
76347
|
+
*/
|
|
76348
|
+
401: unknown;
|
|
76349
|
+
/**
|
|
76350
|
+
* NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable.
|
|
76351
|
+
*/
|
|
76352
|
+
404: unknown;
|
|
76353
|
+
/**
|
|
76354
|
+
* SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
|
|
76355
|
+
*/
|
|
76356
|
+
503: unknown;
|
|
76357
|
+
};
|
|
76358
|
+
export type DisconnectByodDeviceResponses = {
|
|
76359
|
+
/**
|
|
76360
|
+
* The disconnected device.
|
|
76361
|
+
*/
|
|
76362
|
+
200: {
|
|
76363
|
+
/**
|
|
76364
|
+
* Id of the device that was disconnected.
|
|
76365
|
+
*/
|
|
76366
|
+
id: string;
|
|
76367
|
+
/**
|
|
76368
|
+
* Resource type; always "byod_device".
|
|
76369
|
+
*/
|
|
76370
|
+
object: 'byod_device';
|
|
76371
|
+
/**
|
|
76372
|
+
* Always true: the credential is revoked and the connection closed.
|
|
76373
|
+
*/
|
|
76374
|
+
disconnected: true;
|
|
76375
|
+
};
|
|
76376
|
+
};
|
|
76377
|
+
export type DisconnectByodDeviceResponse = DisconnectByodDeviceResponses[keyof DisconnectByodDeviceResponses];
|
|
76378
|
+
export type GetByodPairingData = {
|
|
76379
|
+
body?: never;
|
|
76380
|
+
path: {
|
|
76381
|
+
/**
|
|
76382
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
76383
|
+
*/
|
|
76384
|
+
code: string;
|
|
76385
|
+
};
|
|
76386
|
+
query?: never;
|
|
76387
|
+
url: '/sandbox/v1/byod/pairings/{code}';
|
|
76388
|
+
};
|
|
76389
|
+
export type GetByodPairingErrors = {
|
|
76390
|
+
/**
|
|
76391
|
+
* 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.
|
|
76392
|
+
*/
|
|
76393
|
+
404: unknown;
|
|
76394
|
+
};
|
|
76395
|
+
export type GetByodPairingResponses = {
|
|
76396
|
+
/**
|
|
76397
|
+
* What the Allow screen reads.
|
|
76398
|
+
*/
|
|
76399
|
+
200: {
|
|
76400
|
+
/**
|
|
76401
|
+
* Display name of the organization that started the pairing. Empty when the caller created it without a name; show a neutral label then.
|
|
76402
|
+
*/
|
|
76403
|
+
organization_name: string;
|
|
76404
|
+
/**
|
|
76405
|
+
* When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed.
|
|
76406
|
+
*/
|
|
76407
|
+
expires_at: string;
|
|
76408
|
+
};
|
|
76409
|
+
};
|
|
76410
|
+
export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
|
|
76411
|
+
export type ClaimByodPairingData = {
|
|
76412
|
+
/**
|
|
76413
|
+
* What the phone's app knows about itself when it claims the pairing.
|
|
76414
|
+
*/
|
|
76415
|
+
body: {
|
|
76416
|
+
/**
|
|
76417
|
+
* 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.
|
|
76418
|
+
*/
|
|
76419
|
+
platform: 'android' | 'macos' | 'linux';
|
|
76420
|
+
/**
|
|
76421
|
+
* 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.
|
|
76422
|
+
*/
|
|
76423
|
+
name?: string;
|
|
76424
|
+
/**
|
|
76425
|
+
* The device model the app reports, at most 128 characters; it is display only and can be omitted.
|
|
76426
|
+
*/
|
|
76427
|
+
model?: string;
|
|
76428
|
+
/**
|
|
76429
|
+
* The operating-system version the app reports, at most 64 characters; it is display only and can be omitted.
|
|
76430
|
+
*/
|
|
76431
|
+
os_version?: string;
|
|
76432
|
+
};
|
|
76433
|
+
path: {
|
|
76434
|
+
/**
|
|
76435
|
+
* The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
|
|
76436
|
+
*/
|
|
76437
|
+
code: string;
|
|
76438
|
+
};
|
|
76439
|
+
query?: never;
|
|
76440
|
+
url: '/sandbox/v1/byod/pairings/{code}/claim';
|
|
76441
|
+
};
|
|
76442
|
+
export type ClaimByodPairingErrors = {
|
|
76443
|
+
/**
|
|
76444
|
+
* 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.
|
|
76445
|
+
*/
|
|
76446
|
+
400: unknown;
|
|
76447
|
+
/**
|
|
76448
|
+
* 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.
|
|
76449
|
+
*/
|
|
76450
|
+
404: unknown;
|
|
76451
|
+
};
|
|
76452
|
+
export type ClaimByodPairingResponses = {
|
|
76453
|
+
/**
|
|
76454
|
+
* The device's registration and its one-time credential.
|
|
76455
|
+
*/
|
|
76456
|
+
201: {
|
|
76457
|
+
/**
|
|
76458
|
+
* Device id, `byd_` followed by 26 lowercase hex characters; the caller uses it from now on wherever a sandbox id is used.
|
|
76459
|
+
*/
|
|
76460
|
+
device_id: string;
|
|
76461
|
+
/**
|
|
76462
|
+
* 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.
|
|
76463
|
+
*/
|
|
76464
|
+
credential: string;
|
|
76465
|
+
/**
|
|
76466
|
+
* 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.
|
|
76467
|
+
*/
|
|
76468
|
+
socket_url: string;
|
|
76469
|
+
};
|
|
76470
|
+
};
|
|
76471
|
+
export type ClaimByodPairingResponse = ClaimByodPairingResponses[keyof ClaimByodPairingResponses];
|
|
75278
76472
|
export type SessionsDeleteData = {
|
|
75279
76473
|
body?: never;
|
|
75280
76474
|
path: {
|
|
@@ -77094,7 +78288,7 @@ export type AgentsCreateData = {
|
|
|
77094
78288
|
}>;
|
|
77095
78289
|
};
|
|
77096
78290
|
/**
|
|
77097
|
-
* Optional tool preset. minimal enables read, glob
|
|
78291
|
+
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
77098
78292
|
*/
|
|
77099
78293
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
77100
78294
|
/**
|
|
@@ -78961,7 +80155,7 @@ export type AgentsUpdateData = {
|
|
|
78961
80155
|
}>;
|
|
78962
80156
|
};
|
|
78963
80157
|
/**
|
|
78964
|
-
* Optional tool preset. minimal enables read, glob
|
|
80158
|
+
* Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
78965
80159
|
*/
|
|
78966
80160
|
preset?: 'minimal' | 'data-editor' | 'full';
|
|
78967
80161
|
/**
|
|
@@ -82671,48 +83865,6 @@ export type SessionsEventsListResponses = {
|
|
|
82671
83865
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82672
83866
|
*/
|
|
82673
83867
|
processed_at: string;
|
|
82674
|
-
} | {
|
|
82675
|
-
/**
|
|
82676
|
-
* Event id, unique within the session.
|
|
82677
|
-
*/
|
|
82678
|
-
id: string;
|
|
82679
|
-
/**
|
|
82680
|
-
* Always `user.tool_confirmation`.
|
|
82681
|
-
*/
|
|
82682
|
-
type: 'user.tool_confirmation';
|
|
82683
|
-
/**
|
|
82684
|
-
* When the event was recorded, RFC 3339.
|
|
82685
|
-
*/
|
|
82686
|
-
processed_at: string;
|
|
82687
|
-
/**
|
|
82688
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82689
|
-
*/
|
|
82690
|
-
tool_use_id: string;
|
|
82691
|
-
/**
|
|
82692
|
-
* Always `allow`.
|
|
82693
|
-
*/
|
|
82694
|
-
result: 'allow';
|
|
82695
|
-
/**
|
|
82696
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82697
|
-
*/
|
|
82698
|
-
answers: {
|
|
82699
|
-
[key: string]: string;
|
|
82700
|
-
};
|
|
82701
|
-
/**
|
|
82702
|
-
* Per-question notes, keyed by the question text.
|
|
82703
|
-
*/
|
|
82704
|
-
annotations?: {
|
|
82705
|
-
[key: string]: {
|
|
82706
|
-
/**
|
|
82707
|
-
* The preview of the option the user chose.
|
|
82708
|
-
*/
|
|
82709
|
-
preview?: string;
|
|
82710
|
-
/**
|
|
82711
|
-
* Free text the user added to their choice.
|
|
82712
|
-
*/
|
|
82713
|
-
notes?: string;
|
|
82714
|
-
};
|
|
82715
|
-
};
|
|
82716
83868
|
}>;
|
|
82717
83869
|
/**
|
|
82718
83870
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -82762,40 +83914,6 @@ export type SessionsEventsSendData = {
|
|
|
82762
83914
|
* Id of the event this event refers to.
|
|
82763
83915
|
*/
|
|
82764
83916
|
event_id: string;
|
|
82765
|
-
} | {
|
|
82766
|
-
/**
|
|
82767
|
-
* Always `user.tool_confirmation`.
|
|
82768
|
-
*/
|
|
82769
|
-
type: 'user.tool_confirmation';
|
|
82770
|
-
/**
|
|
82771
|
-
* The id of the pending `agent.tool_use` event of the AskUserQuestion call.
|
|
82772
|
-
*/
|
|
82773
|
-
tool_use_id: string;
|
|
82774
|
-
/**
|
|
82775
|
-
* Always `allow`; the questions are answered, or dismissed with an empty `answers`.
|
|
82776
|
-
*/
|
|
82777
|
-
result: 'allow';
|
|
82778
|
-
/**
|
|
82779
|
-
* The user's answer to each question, keyed by the question text. A multi-select answer joins the chosen labels with a comma and a space; a free-text answer is the user's own words. A question left out was skipped.
|
|
82780
|
-
*/
|
|
82781
|
-
answers: {
|
|
82782
|
-
[key: string]: string;
|
|
82783
|
-
};
|
|
82784
|
-
/**
|
|
82785
|
-
* Optional per-question notes, keyed by the question text.
|
|
82786
|
-
*/
|
|
82787
|
-
annotations?: {
|
|
82788
|
-
[key: string]: {
|
|
82789
|
-
/**
|
|
82790
|
-
* The preview of the option the user chose.
|
|
82791
|
-
*/
|
|
82792
|
-
preview?: string;
|
|
82793
|
-
/**
|
|
82794
|
-
* Free text the user added to their choice.
|
|
82795
|
-
*/
|
|
82796
|
-
notes?: string;
|
|
82797
|
-
};
|
|
82798
|
-
};
|
|
82799
83917
|
}>;
|
|
82800
83918
|
};
|
|
82801
83919
|
path: {
|
|
@@ -82890,48 +84008,6 @@ export type SessionsEventsSendResponses = {
|
|
|
82890
84008
|
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
82891
84009
|
*/
|
|
82892
84010
|
processed_at: string;
|
|
82893
|
-
} | {
|
|
82894
|
-
/**
|
|
82895
|
-
* Event id, unique within the session.
|
|
82896
|
-
*/
|
|
82897
|
-
id: string;
|
|
82898
|
-
/**
|
|
82899
|
-
* Always `user.tool_confirmation`.
|
|
82900
|
-
*/
|
|
82901
|
-
type: 'user.tool_confirmation';
|
|
82902
|
-
/**
|
|
82903
|
-
* When the event was recorded, RFC 3339.
|
|
82904
|
-
*/
|
|
82905
|
-
processed_at: string;
|
|
82906
|
-
/**
|
|
82907
|
-
* The id of the AskUserQuestion `agent.tool_use` event this answers.
|
|
82908
|
-
*/
|
|
82909
|
-
tool_use_id: string;
|
|
82910
|
-
/**
|
|
82911
|
-
* Always `allow`.
|
|
82912
|
-
*/
|
|
82913
|
-
result: 'allow';
|
|
82914
|
-
/**
|
|
82915
|
-
* The user's answer to each question, keyed by the question text; empty when the questions were dismissed.
|
|
82916
|
-
*/
|
|
82917
|
-
answers: {
|
|
82918
|
-
[key: string]: string;
|
|
82919
|
-
};
|
|
82920
|
-
/**
|
|
82921
|
-
* Per-question notes, keyed by the question text.
|
|
82922
|
-
*/
|
|
82923
|
-
annotations?: {
|
|
82924
|
-
[key: string]: {
|
|
82925
|
-
/**
|
|
82926
|
-
* The preview of the option the user chose.
|
|
82927
|
-
*/
|
|
82928
|
-
preview?: string;
|
|
82929
|
-
/**
|
|
82930
|
-
* Free text the user added to their choice.
|
|
82931
|
-
*/
|
|
82932
|
-
notes?: string;
|
|
82933
|
-
};
|
|
82934
|
-
};
|
|
82935
84011
|
}>;
|
|
82936
84012
|
};
|
|
82937
84013
|
};
|