@deepraxis/sdk 0.2.0-dev.4379954 → 0.2.0-dev.62855e4
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 +8 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +9 -3
- package/dist/generated/sdk.gen.js +20 -2
- package/dist/generated/types.gen.d.ts +147 -21
- package/dist/operations.generated.js +42 -2
- package/dist/resources.generated.d.ts +15 -0
- package/dist/resources.generated.js +3 -0
- package/package.json +1 -1
|
@@ -3859,12 +3859,16 @@ export type BrowserSessionCreateResult = {
|
|
|
3859
3859
|
* 该地址返回 501;不支持 Selenium。
|
|
3860
3860
|
*/
|
|
3861
3861
|
seleniumRemoteUrl: string;
|
|
3862
|
+
/**
|
|
3863
|
+
* true 表示本次按 name 复用了已在运行的同名会话(HTTP 200),没有新开会话;false 表示新开了会话(HTTP 201)。
|
|
3864
|
+
*/
|
|
3865
|
+
reused: boolean;
|
|
3862
3866
|
};
|
|
3863
3867
|
export type BrowserError = {
|
|
3864
3868
|
statusCode: number;
|
|
3865
3869
|
error: string;
|
|
3866
3870
|
message: string;
|
|
3867
|
-
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3871
|
+
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'SESSION_NAME_IN_USE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3868
3872
|
};
|
|
3869
3873
|
export type BrowserSession = {
|
|
3870
3874
|
/**
|
|
@@ -19565,6 +19569,32 @@ export type DevopsChangeMarkLastSliceRequest = {
|
|
|
19565
19569
|
*/
|
|
19566
19570
|
lastSlice: boolean;
|
|
19567
19571
|
};
|
|
19572
|
+
/**
|
|
19573
|
+
* Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
|
|
19574
|
+
*/
|
|
19575
|
+
export type DevopsChangeSliceCreateRequest = {
|
|
19576
|
+
/**
|
|
19577
|
+
* Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
|
|
19578
|
+
*/
|
|
19579
|
+
from?: string;
|
|
19580
|
+
};
|
|
19581
|
+
/**
|
|
19582
|
+
* The slice that was opened.
|
|
19583
|
+
*/
|
|
19584
|
+
export type DevopsChangeSliceOpened = {
|
|
19585
|
+
/**
|
|
19586
|
+
* The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
|
|
19587
|
+
*/
|
|
19588
|
+
branch: string;
|
|
19589
|
+
/**
|
|
19590
|
+
* The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
|
|
19591
|
+
*/
|
|
19592
|
+
directory: string;
|
|
19593
|
+
/**
|
|
19594
|
+
* The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
|
|
19595
|
+
*/
|
|
19596
|
+
unit: string;
|
|
19597
|
+
};
|
|
19568
19598
|
/**
|
|
19569
19599
|
* What the pull request says. Every field is optional: without a title the change's own title is used.
|
|
19570
19600
|
*/
|
|
@@ -19581,6 +19611,10 @@ export type DevopsChangeOpenPullRequestRequest = {
|
|
|
19581
19611
|
* Open it as a draft. Defaults to false.
|
|
19582
19612
|
*/
|
|
19583
19613
|
draft?: boolean;
|
|
19614
|
+
/**
|
|
19615
|
+
* The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
|
|
19616
|
+
*/
|
|
19617
|
+
head?: string;
|
|
19584
19618
|
};
|
|
19585
19619
|
/**
|
|
19586
19620
|
* The pull request for a change's branch.
|
|
@@ -52005,6 +52039,10 @@ export type DevopsLockId = string;
|
|
|
52005
52039
|
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
52006
52040
|
*/
|
|
52007
52041
|
export type DevopsChangeIdPath = string;
|
|
52042
|
+
/**
|
|
52043
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
52044
|
+
*/
|
|
52045
|
+
export type DevopsChangePathParam = string;
|
|
52008
52046
|
/**
|
|
52009
52047
|
* The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
|
|
52010
52048
|
*/
|
|
@@ -68882,7 +68920,7 @@ export type BrowserListSessionsErrors = {
|
|
|
68882
68920
|
*/
|
|
68883
68921
|
404: BrowserError;
|
|
68884
68922
|
/**
|
|
68885
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68923
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68886
68924
|
*/
|
|
68887
68925
|
409: BrowserError;
|
|
68888
68926
|
/**
|
|
@@ -68959,7 +68997,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
68959
68997
|
*/
|
|
68960
68998
|
404: BrowserError;
|
|
68961
68999
|
/**
|
|
68962
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69000
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
68963
69001
|
*/
|
|
68964
69002
|
409: BrowserError;
|
|
68965
69003
|
/**
|
|
@@ -68993,6 +69031,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
68993
69031
|
};
|
|
68994
69032
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
68995
69033
|
export type BrowserCreateSessionResponses = {
|
|
69034
|
+
/**
|
|
69035
|
+
* 请求成功。
|
|
69036
|
+
*/
|
|
69037
|
+
200: BrowserSessionCreateResult;
|
|
68996
69038
|
/**
|
|
68997
69039
|
* 请求成功。
|
|
68998
69040
|
*/
|
|
@@ -69037,7 +69079,7 @@ export type BrowserGetSessionErrors = {
|
|
|
69037
69079
|
*/
|
|
69038
69080
|
404: BrowserError;
|
|
69039
69081
|
/**
|
|
69040
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69082
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69041
69083
|
*/
|
|
69042
69084
|
409: BrowserError;
|
|
69043
69085
|
/**
|
|
@@ -69115,7 +69157,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69115
69157
|
*/
|
|
69116
69158
|
404: BrowserError;
|
|
69117
69159
|
/**
|
|
69118
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69160
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69119
69161
|
*/
|
|
69120
69162
|
409: BrowserError;
|
|
69121
69163
|
/**
|
|
@@ -69188,7 +69230,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69188
69230
|
*/
|
|
69189
69231
|
404: BrowserError;
|
|
69190
69232
|
/**
|
|
69191
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69233
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69192
69234
|
*/
|
|
69193
69235
|
409: BrowserError;
|
|
69194
69236
|
/**
|
|
@@ -69274,7 +69316,7 @@ export type BrowserListEventsErrors = {
|
|
|
69274
69316
|
*/
|
|
69275
69317
|
404: BrowserError;
|
|
69276
69318
|
/**
|
|
69277
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69319
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69278
69320
|
*/
|
|
69279
69321
|
409: BrowserError;
|
|
69280
69322
|
/**
|
|
@@ -69553,7 +69595,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69553
69595
|
*/
|
|
69554
69596
|
404: BrowserError;
|
|
69555
69597
|
/**
|
|
69556
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69598
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69557
69599
|
*/
|
|
69558
69600
|
409: BrowserError;
|
|
69559
69601
|
/**
|
|
@@ -69771,7 +69813,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69771
69813
|
*/
|
|
69772
69814
|
404: BrowserError;
|
|
69773
69815
|
/**
|
|
69774
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69816
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69775
69817
|
*/
|
|
69776
69818
|
409: BrowserError;
|
|
69777
69819
|
/**
|
|
@@ -69844,7 +69886,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69844
69886
|
*/
|
|
69845
69887
|
404: BrowserError;
|
|
69846
69888
|
/**
|
|
69847
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69889
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69848
69890
|
*/
|
|
69849
69891
|
409: BrowserError;
|
|
69850
69892
|
/**
|
|
@@ -69926,7 +69968,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69926
69968
|
*/
|
|
69927
69969
|
404: BrowserError;
|
|
69928
69970
|
/**
|
|
69929
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69971
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
69930
69972
|
*/
|
|
69931
69973
|
409: BrowserError;
|
|
69932
69974
|
/**
|
|
@@ -70004,7 +70046,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
70004
70046
|
*/
|
|
70005
70047
|
404: BrowserError;
|
|
70006
70048
|
/**
|
|
70007
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70049
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70008
70050
|
*/
|
|
70009
70051
|
409: BrowserError;
|
|
70010
70052
|
/**
|
|
@@ -70085,7 +70127,7 @@ export type BrowserListContextsErrors = {
|
|
|
70085
70127
|
*/
|
|
70086
70128
|
404: BrowserError;
|
|
70087
70129
|
/**
|
|
70088
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70130
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70089
70131
|
*/
|
|
70090
70132
|
409: BrowserError;
|
|
70091
70133
|
/**
|
|
@@ -70177,7 +70219,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70177
70219
|
*/
|
|
70178
70220
|
404: BrowserError;
|
|
70179
70221
|
/**
|
|
70180
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70222
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70181
70223
|
*/
|
|
70182
70224
|
409: BrowserError;
|
|
70183
70225
|
/**
|
|
@@ -70250,7 +70292,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70250
70292
|
*/
|
|
70251
70293
|
404: BrowserError;
|
|
70252
70294
|
/**
|
|
70253
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70295
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70254
70296
|
*/
|
|
70255
70297
|
409: BrowserError;
|
|
70256
70298
|
/**
|
|
@@ -70328,7 +70370,7 @@ export type BrowserGetContextErrors = {
|
|
|
70328
70370
|
*/
|
|
70329
70371
|
404: BrowserError;
|
|
70330
70372
|
/**
|
|
70331
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70373
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70332
70374
|
*/
|
|
70333
70375
|
409: BrowserError;
|
|
70334
70376
|
/**
|
|
@@ -70412,7 +70454,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70412
70454
|
*/
|
|
70413
70455
|
404: BrowserError;
|
|
70414
70456
|
/**
|
|
70415
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70457
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70416
70458
|
*/
|
|
70417
70459
|
409: BrowserError;
|
|
70418
70460
|
/**
|
|
@@ -70517,7 +70559,7 @@ export type BrowserConnectErrors = {
|
|
|
70517
70559
|
*/
|
|
70518
70560
|
404: BrowserError;
|
|
70519
70561
|
/**
|
|
70520
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70562
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70521
70563
|
*/
|
|
70522
70564
|
409: BrowserError;
|
|
70523
70565
|
/**
|
|
@@ -70592,7 +70634,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70592
70634
|
*/
|
|
70593
70635
|
404: BrowserError;
|
|
70594
70636
|
/**
|
|
70595
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70637
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70596
70638
|
*/
|
|
70597
70639
|
409: BrowserError;
|
|
70598
70640
|
/**
|
|
@@ -70658,7 +70700,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70658
70700
|
*/
|
|
70659
70701
|
404: BrowserError;
|
|
70660
70702
|
/**
|
|
70661
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70703
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70662
70704
|
*/
|
|
70663
70705
|
409: BrowserError;
|
|
70664
70706
|
/**
|
|
@@ -70731,7 +70773,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70731
70773
|
*/
|
|
70732
70774
|
404: BrowserError;
|
|
70733
70775
|
/**
|
|
70734
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70776
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
70735
70777
|
*/
|
|
70736
70778
|
409: BrowserError;
|
|
70737
70779
|
/**
|
|
@@ -79939,6 +79981,19 @@ export type ListByodDevicesResponses = {
|
|
|
79939
79981
|
* 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.
|
|
79940
79982
|
*/
|
|
79941
79983
|
agent_dirs: Array<string>;
|
|
79984
|
+
/**
|
|
79985
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
79986
|
+
*/
|
|
79987
|
+
agent_bindings: Array<{
|
|
79988
|
+
/**
|
|
79989
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
79990
|
+
*/
|
|
79991
|
+
dir: string;
|
|
79992
|
+
/**
|
|
79993
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
79994
|
+
*/
|
|
79995
|
+
agent: string;
|
|
79996
|
+
}>;
|
|
79942
79997
|
/**
|
|
79943
79998
|
* 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.
|
|
79944
79999
|
*/
|
|
@@ -80021,6 +80076,19 @@ export type GetByodDeviceResponses = {
|
|
|
80021
80076
|
* 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.
|
|
80022
80077
|
*/
|
|
80023
80078
|
agent_dirs: Array<string>;
|
|
80079
|
+
/**
|
|
80080
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
80081
|
+
*/
|
|
80082
|
+
agent_bindings: Array<{
|
|
80083
|
+
/**
|
|
80084
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80085
|
+
*/
|
|
80086
|
+
dir: string;
|
|
80087
|
+
/**
|
|
80088
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
80089
|
+
*/
|
|
80090
|
+
agent: string;
|
|
80091
|
+
}>;
|
|
80024
80092
|
/**
|
|
80025
80093
|
* 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.
|
|
80026
80094
|
*/
|
|
@@ -80114,6 +80182,19 @@ export type UpdateByodDeviceResponses = {
|
|
|
80114
80182
|
* 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.
|
|
80115
80183
|
*/
|
|
80116
80184
|
agent_dirs: Array<string>;
|
|
80185
|
+
/**
|
|
80186
|
+
* Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
|
|
80187
|
+
*/
|
|
80188
|
+
agent_bindings: Array<{
|
|
80189
|
+
/**
|
|
80190
|
+
* The absolute directory the desktop bound to an agent with praxis agent connect.
|
|
80191
|
+
*/
|
|
80192
|
+
dir: string;
|
|
80193
|
+
/**
|
|
80194
|
+
* The agent the directory is bound to: its identity number or its agent id.
|
|
80195
|
+
*/
|
|
80196
|
+
agent: string;
|
|
80197
|
+
}>;
|
|
80117
80198
|
/**
|
|
80118
80199
|
* 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.
|
|
80119
80200
|
*/
|
|
@@ -111179,6 +111260,51 @@ export type DevopsChangesMarkLastSliceResponses = {
|
|
|
111179
111260
|
200: DevopsChange;
|
|
111180
111261
|
};
|
|
111181
111262
|
export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
|
|
111263
|
+
export type DevopsChangesSlicesCreateData = {
|
|
111264
|
+
body?: DevopsChangeSliceCreateRequest;
|
|
111265
|
+
path: {
|
|
111266
|
+
/**
|
|
111267
|
+
* Identifies the project whose data you are reading, from the project list or create answer.
|
|
111268
|
+
*/
|
|
111269
|
+
project: string;
|
|
111270
|
+
/**
|
|
111271
|
+
* The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
|
|
111272
|
+
*/
|
|
111273
|
+
change: string;
|
|
111274
|
+
};
|
|
111275
|
+
query?: never;
|
|
111276
|
+
url: '/devops/v1/projects/{project}/changes/{change}/slices';
|
|
111277
|
+
};
|
|
111278
|
+
export type DevopsChangesSlicesCreateErrors = {
|
|
111279
|
+
/**
|
|
111280
|
+
* INVALID_ARGUMENT means the change is abandoned, or from names a branch that does not belong to this change; nothing was cut. Open a new change, or pick from the change's own branches.
|
|
111281
|
+
*/
|
|
111282
|
+
400: DevopsDevOpsError;
|
|
111283
|
+
/**
|
|
111284
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
111285
|
+
*/
|
|
111286
|
+
401: DevopsDevOpsError;
|
|
111287
|
+
/**
|
|
111288
|
+
* The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
|
|
111289
|
+
*/
|
|
111290
|
+
403: DevopsDevOpsError;
|
|
111291
|
+
/**
|
|
111292
|
+
* CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
|
|
111293
|
+
*/
|
|
111294
|
+
404: DevopsDevOpsError;
|
|
111295
|
+
/**
|
|
111296
|
+
* INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
|
|
111297
|
+
*/
|
|
111298
|
+
500: DevopsDevOpsError;
|
|
111299
|
+
};
|
|
111300
|
+
export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
|
|
111301
|
+
export type DevopsChangesSlicesCreateResponses = {
|
|
111302
|
+
/**
|
|
111303
|
+
* The new slice: its branch, the directory to work in and the workspace that holds it. Calling again opens a further slice; it does not return the previous one.
|
|
111304
|
+
*/
|
|
111305
|
+
200: DevopsChangeSliceOpened;
|
|
111306
|
+
};
|
|
111307
|
+
export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
|
|
111182
111308
|
export type DevopsChangesOpenPullRequestData = {
|
|
111183
111309
|
body?: DevopsChangeOpenPullRequestRequest;
|
|
111184
111310
|
path: {
|
|
@@ -7890,7 +7890,7 @@ export const operations = [
|
|
|
7890
7890
|
"resource": "browser.sessions",
|
|
7891
7891
|
"method": "create",
|
|
7892
7892
|
"summary": "创建浏览器会话",
|
|
7893
|
-
"description": "创建云端 Chrome,返回自带凭证的 connectUrl
|
|
7893
|
+
"description": "创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
|
|
7894
7894
|
"http": "POST",
|
|
7895
7895
|
"path": "/browser/v1/sessions",
|
|
7896
7896
|
"streaming": "no",
|
|
@@ -14994,7 +14994,7 @@ export const operations = [
|
|
|
14994
14994
|
"resource": "devops.changes",
|
|
14995
14995
|
"method": "openPullRequest",
|
|
14996
14996
|
"summary": "Open a change's pull request",
|
|
14997
|
-
"description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
|
|
14997
|
+
"description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. For a later slice opened with `slices.create`, pass head set to that slice's branch (<id>--<n>): the pull request is opened from it instead of the change's own branch, and a branch that belongs to another change is refused with INVALID_ARGUMENT. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
|
|
14998
14998
|
"http": "POST",
|
|
14999
14999
|
"path": "/devops/v1/changes/{id}:openPullRequest",
|
|
15000
15000
|
"streaming": "no",
|
|
@@ -15027,6 +15027,12 @@ export const operations = [
|
|
|
15027
15027
|
"type": "boolean",
|
|
15028
15028
|
"required": false,
|
|
15029
15029
|
"description": "Open it as a draft. Defaults to false."
|
|
15030
|
+
},
|
|
15031
|
+
{
|
|
15032
|
+
"name": "head",
|
|
15033
|
+
"type": "string",
|
|
15034
|
+
"required": false,
|
|
15035
|
+
"description": "The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT."
|
|
15030
15036
|
}
|
|
15031
15037
|
]
|
|
15032
15038
|
}
|
|
@@ -15945,6 +15951,40 @@ export const operations = [
|
|
|
15945
15951
|
}
|
|
15946
15952
|
}
|
|
15947
15953
|
},
|
|
15954
|
+
{
|
|
15955
|
+
"resource": "devops.changes.slices",
|
|
15956
|
+
"method": "create",
|
|
15957
|
+
"summary": "Open a new slice",
|
|
15958
|
+
"description": "Open one more slice of a change: another pull request on the same change, developed beside the ones already open. Use it when a second piece of the change can be built in parallel; for the change's first pull request there is nothing to open — work on the branch `praxis devops change checkout` gave you. The call cuts the next slice branch, named <id>--<n> where n is one more than the highest slice number the change's pull requests and its workspace already hold (so two calls give two different slices), and gives it its own git worktree in the change's workspace. If the change has no live workspace one is opened. Everything after that is automatic: the branch name, the worktree, removing the worktree once its pull request merges, and restacking a slice cut from another onto the default branch when that slice merges. A restack that conflicts is aborted and reported with the conflicting files; resolve those by hand on the slice branch, nothing is resolved for you. Without from the slice is cut from the default branch; with from set to another branch of the same change it is cut from that slice (the right choice when it builds on it). An abandoned change is refused with INVALID_ARGUMENT. The change id is the branch name <type>/<slug>; give it as it comes back — the SDK and the CLI encode the slash themselves. The workspace may still be starting when the call returns: directory is the path the worktree will have once it is available, and exists at once when the workspace is already running. From a terminal: `praxis devops changes slice <change>`.",
|
|
15959
|
+
"http": "POST",
|
|
15960
|
+
"path": "/devops/v1/projects/{project}/changes/{change}/slices",
|
|
15961
|
+
"streaming": "no",
|
|
15962
|
+
"pagination": false,
|
|
15963
|
+
"pathParams": [
|
|
15964
|
+
{
|
|
15965
|
+
"name": "project",
|
|
15966
|
+
"sdkName": "project",
|
|
15967
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
15968
|
+
},
|
|
15969
|
+
{
|
|
15970
|
+
"name": "change",
|
|
15971
|
+
"sdkName": "change",
|
|
15972
|
+
"description": "The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves."
|
|
15973
|
+
}
|
|
15974
|
+
],
|
|
15975
|
+
"query": [],
|
|
15976
|
+
"body": {
|
|
15977
|
+
"required": false,
|
|
15978
|
+
"fields": [
|
|
15979
|
+
{
|
|
15980
|
+
"name": "from",
|
|
15981
|
+
"type": "string",
|
|
15982
|
+
"required": false,
|
|
15983
|
+
"description": "Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges."
|
|
15984
|
+
}
|
|
15985
|
+
]
|
|
15986
|
+
}
|
|
15987
|
+
},
|
|
15948
15988
|
{
|
|
15949
15989
|
"resource": "devops.projects.cleanups",
|
|
15950
15990
|
"method": "list",
|
|
@@ -6708,6 +6708,9 @@ export declare function createDevops(transport: Transport): {
|
|
|
6708
6708
|
markLastSlice: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesMarkLastSliceData>) => Promise<Types.DevopsChange>;
|
|
6709
6709
|
openPullRequest: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesOpenPullRequestData>) => Promise<Types.DevopsChangePullRequestOpened>;
|
|
6710
6710
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesGetData>) => Promise<Types.DevopsChange>;
|
|
6711
|
+
slices: {
|
|
6712
|
+
create: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesSlicesCreateData>) => Promise<Types.DevopsChangeSliceOpened>;
|
|
6713
|
+
};
|
|
6711
6714
|
};
|
|
6712
6715
|
connections: {
|
|
6713
6716
|
complete: (options: import("./core/transport.js").CallOptions<Types.DevopsConnectionsCompleteData>) => Promise<Types.DevopsConnection>;
|
|
@@ -8188,6 +8191,10 @@ export declare function createSandbox(transport: Transport): {
|
|
|
8188
8191
|
created_at: string;
|
|
8189
8192
|
capabilities: Array<"display" | "agent">;
|
|
8190
8193
|
agent_dirs: Array<string>;
|
|
8194
|
+
agent_bindings: Array<{
|
|
8195
|
+
dir: string;
|
|
8196
|
+
agent: string;
|
|
8197
|
+
}>;
|
|
8191
8198
|
allow_bypass: boolean;
|
|
8192
8199
|
}>;
|
|
8193
8200
|
}>;
|
|
@@ -8203,6 +8210,10 @@ export declare function createSandbox(transport: Transport): {
|
|
|
8203
8210
|
created_at: string;
|
|
8204
8211
|
capabilities: Array<"display" | "agent">;
|
|
8205
8212
|
agent_dirs: Array<string>;
|
|
8213
|
+
agent_bindings: Array<{
|
|
8214
|
+
dir: string;
|
|
8215
|
+
agent: string;
|
|
8216
|
+
}>;
|
|
8206
8217
|
allow_bypass: boolean;
|
|
8207
8218
|
}>;
|
|
8208
8219
|
update: (options: import("./core/transport.js").CallOptions<Types.UpdateByodDeviceData>) => Promise<{
|
|
@@ -8217,6 +8228,10 @@ export declare function createSandbox(transport: Transport): {
|
|
|
8217
8228
|
created_at: string;
|
|
8218
8229
|
capabilities: Array<"display" | "agent">;
|
|
8219
8230
|
agent_dirs: Array<string>;
|
|
8231
|
+
agent_bindings: Array<{
|
|
8232
|
+
dir: string;
|
|
8233
|
+
agent: string;
|
|
8234
|
+
}>;
|
|
8220
8235
|
allow_bypass: boolean;
|
|
8221
8236
|
}>;
|
|
8222
8237
|
};
|
|
@@ -890,6 +890,9 @@ export function createDevops(transport) {
|
|
|
890
890
|
markLastSlice: bind(transport, sdk.devopsChangesMarkLastSlice),
|
|
891
891
|
openPullRequest: bind(transport, sdk.devopsChangesOpenPullRequest),
|
|
892
892
|
retrieve: bind(transport, sdk.devopsChangesGet),
|
|
893
|
+
slices: {
|
|
894
|
+
create: bind(transport, sdk.devopsChangesSlicesCreate),
|
|
895
|
+
},
|
|
893
896
|
},
|
|
894
897
|
connections: {
|
|
895
898
|
complete: bind(transport, sdk.devopsConnectionsComplete),
|