@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
|
@@ -360,7 +360,7 @@ export const getAgentAppearance = (options) => (options.client ?? client).get({
|
|
|
360
360
|
/**
|
|
361
361
|
* Retrieve agent phone
|
|
362
362
|
*
|
|
363
|
-
* Read the agent's
|
|
363
|
+
* Read the agent's phone, or learn that it has none: use it before driving the phone or to show its state in a settings page. configured says whether a phone block is saved at all (false is not an error: the phone is off). A cloud phone's state is one of none, starting, booting, restoring, running, archiving or releasing — none means no instance exists (never built, already released, or gone), archiving means its app state is being packed, and releasing means a release was asked for and the cron has not finished. A BYOD phone (the organization's own device) has two states instead, online and offline, and reports byod_device as its byd_… id, sku null and no lease. sku and name come from the configuration when one exists. When a cloud phone is reachable, sandbox_id is the public sandbox id of its running instance; for a BYOD phone sandbox_id is the byd_… id itself: take either phone over through POST /sandbox/v1/sandboxes/{id}/act, or open the sandbox page's screen tab in the Console; lease_ends_at is when a cloud instance's lease runs out and the sandbox kills it, and is always null for a BYOD phone. archived_at and archive_error describe the last app-state archive, which a fresh instance restores on the next use; both are null for a BYOD phone, which is never archived. Reading never builds a phone. Only a general or assume agent may have one: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it; an agent drives its own phone only through its phone tool, which can act on the device but cannot read this state or release it.
|
|
364
364
|
*/
|
|
365
365
|
export const agentsPhoneRetrieve = (options) => (options.client ?? client).get({
|
|
366
366
|
security: [{
|
|
@@ -378,7 +378,7 @@ export const agentsPhoneRetrieve = (options) => (options.client ?? client).get({
|
|
|
378
378
|
/**
|
|
379
379
|
* Release agent phone
|
|
380
380
|
*
|
|
381
|
-
* Ask for the agent's cloud phone to go, and answer its state afterwards. The phone is not killed here: its app state is packed first (state archiving), then the instance is killed and the row cleared, so the state answers releasing until that sweep finishes and the next use builds a fresh instance and restores the archive. The configuration is never deleted — the phone block stays and turning the phone off is agents.update with phone null, a different door. With no phone configured, or one that was never built (state none), the call changes nothing and answers none, so it is safe to repeat; repeating it while a release is pending is idempotent. Only a general or assume agent may have a phone: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it.
|
|
381
|
+
* Ask for the agent's cloud phone to go, and answer its state afterwards. The phone is not killed here: its app state is packed first (state archiving), then the instance is killed and the row cleared, so the state answers releasing until that sweep finishes and the next use builds a fresh instance and restores the archive. The configuration is never deleted — the phone block stays and turning the phone off is agents.update with phone null, a different door. With no phone configured, or one that was never built (state none), the call changes nothing and answers none, so it is safe to repeat; repeating it while a release is pending is idempotent. A BYOD phone (the organization's own device) is not the platform's to kill, so the call changes nothing and answers online or offline. Only a general or assume agent may have a phone: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it.
|
|
382
382
|
*/
|
|
383
383
|
export const agentsPhoneRelease = (options) => (options.client ?? client).post({
|
|
384
384
|
security: [{
|
|
@@ -733,7 +733,7 @@ export const releaseComputerLease = (options) => (options.client ?? client).dele
|
|
|
733
733
|
/**
|
|
734
734
|
* List Toolsets
|
|
735
735
|
*
|
|
736
|
-
* Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write
|
|
736
|
+
* Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write and goal_read, which are listed so they can be switched off. Native additions require bash enabled; codemode requires bash (enabling it with bash disabled returns 400; keep bash enabled with permission_policy always_ask to restrict it); send_message also requires agent. To keep only some tools, set default_config.enabled to false and enable the wanted tools in configs; unlisted tools follow default_config. The catalog includes plugin names and versions. Sessions created through /anthropic/v1 expose only the eight official tools.
|
|
737
737
|
*/
|
|
738
738
|
export const listToolsets = (options) => (options?.client ?? client).get({
|
|
739
739
|
security: [{
|
|
@@ -889,7 +889,7 @@ export const createSessionArtifactContentUrl = (options) => (options.client ?? c
|
|
|
889
889
|
*
|
|
890
890
|
* List the requests a session is waiting on; an end-customer token reads its own session.
|
|
891
891
|
*
|
|
892
|
-
* Own-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (
|
|
892
|
+
* Own-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (always approval, a tool waiting for permission; question is kept for compatibility and is never returned), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.
|
|
893
893
|
*/
|
|
894
894
|
export const listSessionRequests = (options) => (options.client ?? client).get({
|
|
895
895
|
security: [{
|
|
@@ -1429,9 +1429,10 @@ export const browserSeleniumUnsupported = (options) => (options?.client ?? clien
|
|
|
1429
1429
|
/**
|
|
1430
1430
|
* List files
|
|
1431
1431
|
*
|
|
1432
|
-
* List live files owned by your tenant, optionally filtered by purpose or
|
|
1432
|
+
* List live files owned by your tenant, optionally filtered by purpose, session scope_id or up to 100 file ids. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.
|
|
1433
1433
|
*/
|
|
1434
1434
|
export const fileListFiles = (options) => (options?.client ?? client).get({
|
|
1435
|
+
querySerializer: { parameters: { ids: { array: { explode: false } } } },
|
|
1435
1436
|
security: [{
|
|
1436
1437
|
key: 'BearerAuth',
|
|
1437
1438
|
scheme: 'bearer',
|
|
@@ -3592,6 +3593,220 @@ export const reviseOrganizationKeyResult = (options) => (options.client ?? clien
|
|
|
3592
3593
|
...options.headers
|
|
3593
3594
|
}
|
|
3594
3595
|
});
|
|
3596
|
+
/**
|
|
3597
|
+
* List specs
|
|
3598
|
+
*
|
|
3599
|
+
* Lists the specs (规定) of the organization, most recently updated first; use it to find which subject already has a spec before reading or revising one. Narrow it with kind. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/specs?kind=job.
|
|
3600
|
+
*/
|
|
3601
|
+
export const listOrganizationSpecs = (options) => (options?.client ?? client).get({
|
|
3602
|
+
security: [{
|
|
3603
|
+
key: 'BearerAuth',
|
|
3604
|
+
scheme: 'bearer',
|
|
3605
|
+
type: 'http'
|
|
3606
|
+
}, {
|
|
3607
|
+
key: 'ApiKeyAuth',
|
|
3608
|
+
name: 'X-API-Key',
|
|
3609
|
+
type: 'apiKey'
|
|
3610
|
+
}],
|
|
3611
|
+
url: '/organization/v1/specs',
|
|
3612
|
+
...options
|
|
3613
|
+
});
|
|
3614
|
+
/**
|
|
3615
|
+
* Get a spec
|
|
3616
|
+
*
|
|
3617
|
+
* Reads one subject's live spec, or one historical revision with revision; a subject never written answers revision 0 with an empty spec, so a first revise sends expected_revision 0. Read-only. Errors: 400 INVALID_PARAMS for a non-integer revision; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject, or the named SPEC_REVISION_NOT_FOUND, does not exist. Example: GET /organization/v1/specs/job/jpr_123?revision=2.
|
|
3618
|
+
*/
|
|
3619
|
+
export const getOrganizationSpec = (options) => (options.client ?? client).get({
|
|
3620
|
+
security: [{
|
|
3621
|
+
key: 'BearerAuth',
|
|
3622
|
+
scheme: 'bearer',
|
|
3623
|
+
type: 'http'
|
|
3624
|
+
}, {
|
|
3625
|
+
key: 'ApiKeyAuth',
|
|
3626
|
+
name: 'X-API-Key',
|
|
3627
|
+
type: 'apiKey'
|
|
3628
|
+
}],
|
|
3629
|
+
url: '/organization/v1/specs/{kind}/{id}',
|
|
3630
|
+
...options
|
|
3631
|
+
});
|
|
3632
|
+
/**
|
|
3633
|
+
* Revise a spec
|
|
3634
|
+
*
|
|
3635
|
+
* Replaces the whole spec of a subject: expected_revision is the revision you last read (0 when none was written) and each success raises it by one, so a mismatch returns REVISION_CONFLICT and you must read again, merge and retry. The spec body is stored and returned verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove, and it is validated against the block registry. Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or expected_revision, a block outside the registry or an unknown body field; 403 PERMISSION_DENIED; 404 when the subject does not exist; 409 REVISION_CONFLICT. Example body: {"expected_revision":0,"spec":{"document":"Deliver reliably."}}.
|
|
3636
|
+
*/
|
|
3637
|
+
export const reviseOrganizationSpec = (options) => (options.client ?? client).put({
|
|
3638
|
+
security: [{
|
|
3639
|
+
key: 'BearerAuth',
|
|
3640
|
+
scheme: 'bearer',
|
|
3641
|
+
type: 'http'
|
|
3642
|
+
}, {
|
|
3643
|
+
key: 'ApiKeyAuth',
|
|
3644
|
+
name: 'X-API-Key',
|
|
3645
|
+
type: 'apiKey'
|
|
3646
|
+
}],
|
|
3647
|
+
url: '/organization/v1/specs/{kind}/{id}',
|
|
3648
|
+
...options,
|
|
3649
|
+
headers: {
|
|
3650
|
+
'Content-Type': 'application/json',
|
|
3651
|
+
...options.headers
|
|
3652
|
+
}
|
|
3653
|
+
});
|
|
3654
|
+
/**
|
|
3655
|
+
* List spec revisions
|
|
3656
|
+
*
|
|
3657
|
+
* Lists every stored revision of one subject's spec, newest first, each with its body, author and creation instant; use it to see what changed over time or to pick a revision to read or diff. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist.
|
|
3658
|
+
*/
|
|
3659
|
+
export const listOrganizationSpecRevisions = (options) => (options.client ?? client).get({
|
|
3660
|
+
security: [{
|
|
3661
|
+
key: 'BearerAuth',
|
|
3662
|
+
scheme: 'bearer',
|
|
3663
|
+
type: 'http'
|
|
3664
|
+
}, {
|
|
3665
|
+
key: 'ApiKeyAuth',
|
|
3666
|
+
name: 'X-API-Key',
|
|
3667
|
+
type: 'apiKey'
|
|
3668
|
+
}],
|
|
3669
|
+
url: '/organization/v1/specs/{kind}/{id}/revisions',
|
|
3670
|
+
...options
|
|
3671
|
+
});
|
|
3672
|
+
/**
|
|
3673
|
+
* Diff two spec revisions
|
|
3674
|
+
*
|
|
3675
|
+
* Compares two revisions of one subject's spec and lists the changes between them, each with its path and, for a change, the value before and after; revision 0 is the empty spec, so diffing 0 against 1 shows the first write. Read-only. Errors: 400 INVALID_PARAMS when from or to is missing or not an integer; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist, or SPEC_REVISION_NOT_FOUND when from or to was never written. Example: GET /organization/v1/specs/job/jpr_123/diff?from=1&to=2.
|
|
3676
|
+
*/
|
|
3677
|
+
export const diffOrganizationSpec = (options) => (options.client ?? client).get({
|
|
3678
|
+
security: [{
|
|
3679
|
+
key: 'BearerAuth',
|
|
3680
|
+
scheme: 'bearer',
|
|
3681
|
+
type: 'http'
|
|
3682
|
+
}, {
|
|
3683
|
+
key: 'ApiKeyAuth',
|
|
3684
|
+
name: 'X-API-Key',
|
|
3685
|
+
type: 'apiKey'
|
|
3686
|
+
}],
|
|
3687
|
+
url: '/organization/v1/specs/{kind}/{id}/diff',
|
|
3688
|
+
...options
|
|
3689
|
+
});
|
|
3690
|
+
/**
|
|
3691
|
+
* Read the effective spec
|
|
3692
|
+
*
|
|
3693
|
+
* Merges the spec chain of a seat or an actor and returns the one effective configuration: the merged capability blocks, the document of every layer, where each merged value came from, and anything only the merged result shows to be wrong. Give exactly one of actor (every seat the actor holds) or position_id (one seat, held or vacant, a preview before hiring); holder_kind defaults from the seat's holder. Read-only; nothing is changed. Errors: 400 INVALID_PARAMS when neither or both of actor and position_id are given, the actor address is malformed, holder_kind is neither agent nor human, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 POSITION_NOT_FOUND. Example: GET /organization/v1/effective_spec?actor=agent:agent_123.
|
|
3694
|
+
*/
|
|
3695
|
+
export const getOrganizationEffectiveSpec = (options) => (options?.client ?? client).get({
|
|
3696
|
+
security: [{
|
|
3697
|
+
key: 'BearerAuth',
|
|
3698
|
+
scheme: 'bearer',
|
|
3699
|
+
type: 'http'
|
|
3700
|
+
}, {
|
|
3701
|
+
key: 'ApiKeyAuth',
|
|
3702
|
+
name: 'X-API-Key',
|
|
3703
|
+
type: 'apiKey'
|
|
3704
|
+
}],
|
|
3705
|
+
url: '/organization/v1/effective_spec',
|
|
3706
|
+
...options
|
|
3707
|
+
});
|
|
3708
|
+
/**
|
|
3709
|
+
* Plan reconciliation
|
|
3710
|
+
*
|
|
3711
|
+
* Dry-runs the reconciler for one holder and returns what it would change: an action per block (hold, update, none, pending, blocked) with the value it would write, and the violations only the merged result shows. It changes nothing - no state, no agent and no memory. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/plan?actor=agent:agent_123.
|
|
3712
|
+
*/
|
|
3713
|
+
export const planOrganizationReconcile = (options) => (options.client ?? client).get({
|
|
3714
|
+
security: [{
|
|
3715
|
+
key: 'BearerAuth',
|
|
3716
|
+
scheme: 'bearer',
|
|
3717
|
+
type: 'http'
|
|
3718
|
+
}, {
|
|
3719
|
+
key: 'ApiKeyAuth',
|
|
3720
|
+
name: 'X-API-Key',
|
|
3721
|
+
type: 'apiKey'
|
|
3722
|
+
}],
|
|
3723
|
+
url: '/organization/v1/reconcile/plan',
|
|
3724
|
+
...options
|
|
3725
|
+
});
|
|
3726
|
+
/**
|
|
3727
|
+
* Read reconcile status
|
|
3728
|
+
*
|
|
3729
|
+
* Reads the reconciler's last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block's state (ready, pending, failed, waiting_human or paused), the drift between what is applied and what the specs want, and when it last applied. Read-only; it changes nothing. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/status?actor=agent:agent_123.
|
|
3730
|
+
*/
|
|
3731
|
+
export const getOrganizationReconcileStatus = (options) => (options.client ?? client).get({
|
|
3732
|
+
security: [{
|
|
3733
|
+
key: 'BearerAuth',
|
|
3734
|
+
scheme: 'bearer',
|
|
3735
|
+
type: 'http'
|
|
3736
|
+
}, {
|
|
3737
|
+
key: 'ApiKeyAuth',
|
|
3738
|
+
name: 'X-API-Key',
|
|
3739
|
+
type: 'apiKey'
|
|
3740
|
+
}],
|
|
3741
|
+
url: '/organization/v1/reconcile/status',
|
|
3742
|
+
...options
|
|
3743
|
+
});
|
|
3744
|
+
/**
|
|
3745
|
+
* Run reconciliation now
|
|
3746
|
+
*
|
|
3747
|
+
* Reconciles one holder now instead of waiting for the sweep: it plans, applies every update and returns the new status. Run plan first to see the changes without applying them. Requires an organization owner or admin. A block that cannot be applied now stays pending, waiting_human or failed, and the returned status says so. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {"actor":"agent:agent_123"}.
|
|
3748
|
+
*/
|
|
3749
|
+
export const runOrganizationReconcile = (options) => (options.client ?? client).post({
|
|
3750
|
+
security: [{
|
|
3751
|
+
key: 'BearerAuth',
|
|
3752
|
+
scheme: 'bearer',
|
|
3753
|
+
type: 'http'
|
|
3754
|
+
}, {
|
|
3755
|
+
key: 'ApiKeyAuth',
|
|
3756
|
+
name: 'X-API-Key',
|
|
3757
|
+
type: 'apiKey'
|
|
3758
|
+
}],
|
|
3759
|
+
url: '/organization/v1/reconcile/run',
|
|
3760
|
+
...options,
|
|
3761
|
+
headers: {
|
|
3762
|
+
'Content-Type': 'application/json',
|
|
3763
|
+
...options.headers
|
|
3764
|
+
}
|
|
3765
|
+
});
|
|
3766
|
+
/**
|
|
3767
|
+
* Pause reconciliation
|
|
3768
|
+
*
|
|
3769
|
+
* Stops the sweep from reconciling one holder until it is resumed: the holder's blocks keep their state and no further update is applied. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {"actor":"agent:agent_123"}.
|
|
3770
|
+
*/
|
|
3771
|
+
export const pauseOrganizationReconcile = (options) => (options.client ?? client).post({
|
|
3772
|
+
security: [{
|
|
3773
|
+
key: 'BearerAuth',
|
|
3774
|
+
scheme: 'bearer',
|
|
3775
|
+
type: 'http'
|
|
3776
|
+
}, {
|
|
3777
|
+
key: 'ApiKeyAuth',
|
|
3778
|
+
name: 'X-API-Key',
|
|
3779
|
+
type: 'apiKey'
|
|
3780
|
+
}],
|
|
3781
|
+
url: '/organization/v1/reconcile/pause',
|
|
3782
|
+
...options,
|
|
3783
|
+
headers: {
|
|
3784
|
+
'Content-Type': 'application/json',
|
|
3785
|
+
...options.headers
|
|
3786
|
+
}
|
|
3787
|
+
});
|
|
3788
|
+
/**
|
|
3789
|
+
* Resume reconciliation
|
|
3790
|
+
*
|
|
3791
|
+
* Restarts the sweep for a paused holder and reconciles it now, returning the new status. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {"actor":"agent:agent_123"}.
|
|
3792
|
+
*/
|
|
3793
|
+
export const resumeOrganizationReconcile = (options) => (options.client ?? client).post({
|
|
3794
|
+
security: [{
|
|
3795
|
+
key: 'BearerAuth',
|
|
3796
|
+
scheme: 'bearer',
|
|
3797
|
+
type: 'http'
|
|
3798
|
+
}, {
|
|
3799
|
+
key: 'ApiKeyAuth',
|
|
3800
|
+
name: 'X-API-Key',
|
|
3801
|
+
type: 'apiKey'
|
|
3802
|
+
}],
|
|
3803
|
+
url: '/organization/v1/reconcile/resume',
|
|
3804
|
+
...options,
|
|
3805
|
+
headers: {
|
|
3806
|
+
'Content-Type': 'application/json',
|
|
3807
|
+
...options.headers
|
|
3808
|
+
}
|
|
3809
|
+
});
|
|
3595
3810
|
/**
|
|
3596
3811
|
* Upgrade to a full sandbox
|
|
3597
3812
|
*
|
|
@@ -3948,6 +4163,140 @@ export const runSandboxCommand = (options) => (options.client ?? client).post({
|
|
|
3948
4163
|
...options.headers
|
|
3949
4164
|
}
|
|
3950
4165
|
});
|
|
4166
|
+
/**
|
|
4167
|
+
* Start adding a phone of your own
|
|
4168
|
+
*
|
|
4169
|
+
* Begin bringing your own device (BYOD): the platform answers an 8-character code, its ten-minute deadline and the QR payload your phone's app scans, and nothing is registered until the owner taps Allow on the phone. Show the QR payload (or the code) in your app; the phone opens GET /sandbox/v1/byod/pairings/{code} — with no credential — to show the organization and the deadline, then posts the claim once. The pairing stores the organization's display name, which the phone shows on its Allow screen, so create the pairing from a session or key that carries one. A code is spent by the first successful claim and cannot be reused; create a new pairing for another device. BYOD devices are separate from sandboxes: they never appear in listSandboxes and have no template, size or expiry. Example: POST /sandbox/v1/byod/pairings with no body returns {code:'K7M4PQRS',expires_at:'2026-11-22T13:10:00.000Z',qr:'praxis://byod/pair?code=K7M4PQRS&api=https%3A%2F%2Fapi.deepraxis.com'}.
|
|
4170
|
+
*/
|
|
4171
|
+
export const createByodPairing = (options) => (options?.client ?? client).post({
|
|
4172
|
+
security: [{
|
|
4173
|
+
key: 'BearerAuth',
|
|
4174
|
+
scheme: 'bearer',
|
|
4175
|
+
type: 'http'
|
|
4176
|
+
}, {
|
|
4177
|
+
key: 'ApiKeyAuth',
|
|
4178
|
+
name: 'X-API-Key',
|
|
4179
|
+
type: 'apiKey'
|
|
4180
|
+
}],
|
|
4181
|
+
url: '/sandbox/v1/byod/pairings',
|
|
4182
|
+
...options
|
|
4183
|
+
});
|
|
4184
|
+
/**
|
|
4185
|
+
* List your organization's own devices
|
|
4186
|
+
*
|
|
4187
|
+
* List the devices your organization has paired, oldest first, with each one's platform, name, model, OS version, live online fact and when it was last seen. Use it to find a device id before you act on it, rename it or disconnect it, or to show the BYOD page. A revoked device is not listed, so a device that disappears from this answer was disconnected; there is no paging because an organization's own devices are few. Each row carries capabilities and, for a desktop, the agent_dirs it registered. Example: GET /sandbox/v1/byod/devices returns {data:[{object:'byod_device',id:'byd_0123456789abcdefghijklmno',platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16',online:true,last_seen_at:'2026-11-22T12:58:00.000Z',created_at:'2026-11-22T12:40:00.000Z',capabilities:['display'],agent_dirs:[]}]}.
|
|
4188
|
+
*/
|
|
4189
|
+
export const listByodDevices = (options) => (options?.client ?? client).get({
|
|
4190
|
+
security: [{
|
|
4191
|
+
key: 'BearerAuth',
|
|
4192
|
+
scheme: 'bearer',
|
|
4193
|
+
type: 'http'
|
|
4194
|
+
}, {
|
|
4195
|
+
key: 'ApiKeyAuth',
|
|
4196
|
+
name: 'X-API-Key',
|
|
4197
|
+
type: 'apiKey'
|
|
4198
|
+
}],
|
|
4199
|
+
url: '/sandbox/v1/byod/devices',
|
|
4200
|
+
...options
|
|
4201
|
+
});
|
|
4202
|
+
/**
|
|
4203
|
+
* Read one of your organization's devices
|
|
4204
|
+
*
|
|
4205
|
+
* Read one BYOD device: the same fields listByodDevices returns, for a single device. Use it to poll whether a device is online before acting on it, or to refresh one row of the BYOD page after a rename. An unknown id and another organization's device both answer 404, so the answer never reveals that a foreign device exists. Example: GET /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno.
|
|
4206
|
+
*/
|
|
4207
|
+
export const getByodDevice = (options) => (options.client ?? client).get({
|
|
4208
|
+
security: [{
|
|
4209
|
+
key: 'BearerAuth',
|
|
4210
|
+
scheme: 'bearer',
|
|
4211
|
+
type: 'http'
|
|
4212
|
+
}, {
|
|
4213
|
+
key: 'ApiKeyAuth',
|
|
4214
|
+
name: 'X-API-Key',
|
|
4215
|
+
type: 'apiKey'
|
|
4216
|
+
}],
|
|
4217
|
+
url: '/sandbox/v1/byod/devices/{deviceID}',
|
|
4218
|
+
...options
|
|
4219
|
+
});
|
|
4220
|
+
/**
|
|
4221
|
+
* Rename one of your organization's devices
|
|
4222
|
+
*
|
|
4223
|
+
* Change a device's display name, and nothing else: pairing, credential, platform and connection are untouched. Use it to give a shared phone a name your team recognises. The body takes exactly one field, name, 1 to 64 characters after trimming; a missing, extra or wrongly typed field answers INVALID_PARAMS. An unknown id and another organization's device both answer 404. Example: PATCH /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno with {name:'Shelf phone'} returns the updated device.
|
|
4224
|
+
*/
|
|
4225
|
+
export const updateByodDevice = (options) => (options.client ?? client).patch({
|
|
4226
|
+
security: [{
|
|
4227
|
+
key: 'BearerAuth',
|
|
4228
|
+
scheme: 'bearer',
|
|
4229
|
+
type: 'http'
|
|
4230
|
+
}, {
|
|
4231
|
+
key: 'ApiKeyAuth',
|
|
4232
|
+
name: 'X-API-Key',
|
|
4233
|
+
type: 'apiKey'
|
|
4234
|
+
}],
|
|
4235
|
+
url: '/sandbox/v1/byod/devices/{deviceID}',
|
|
4236
|
+
...options,
|
|
4237
|
+
headers: {
|
|
4238
|
+
'Content-Type': 'application/json',
|
|
4239
|
+
...options.headers
|
|
4240
|
+
}
|
|
4241
|
+
});
|
|
4242
|
+
/**
|
|
4243
|
+
* Disconnect a device and revoke its credential
|
|
4244
|
+
*
|
|
4245
|
+
* Disconnect a paired device: the device's credential is revoked, its control connection is closed, and it stops appearing in listByodDevices. Use it when the phone is lost, lent or no longer wanted; the same disconnect is offered as one tap on the device itself. The operation is idempotent — disconnecting an already-disconnected device answers the same 200 — so a retry after a lost response is safe. The device is untouched: nothing is erased on the phone, and it can be paired again with a new pairing. Because a revoked device is not listed, a later listByodDevices no longer shows it. An unknown id and another organization's device both answer 404. Example: POST /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno/disconnect returns {id:'byd_0123456789abcdefghijklmno',object:'byod_device',disconnected:true}.
|
|
4246
|
+
*/
|
|
4247
|
+
export const disconnectByodDevice = (options) => (options.client ?? client).post({
|
|
4248
|
+
security: [{
|
|
4249
|
+
key: 'BearerAuth',
|
|
4250
|
+
scheme: 'bearer',
|
|
4251
|
+
type: 'http'
|
|
4252
|
+
}, {
|
|
4253
|
+
key: 'ApiKeyAuth',
|
|
4254
|
+
name: 'X-API-Key',
|
|
4255
|
+
type: 'apiKey'
|
|
4256
|
+
}],
|
|
4257
|
+
url: '/sandbox/v1/byod/devices/{deviceID}/disconnect',
|
|
4258
|
+
...options
|
|
4259
|
+
});
|
|
4260
|
+
/**
|
|
4261
|
+
* Read a pairing for the phone's Allow screen
|
|
4262
|
+
*
|
|
4263
|
+
* The phone's own read, called by the app that scanned the QR code or the code was typed into: it answers the organization's display name and the code's deadline, which the owner sees before tapping Allow. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and do not call it from server code. An unknown, spent or expired code answers 404, with nothing said about which of the three it is; that also covers a code another organization created. The read is a preview only: it registers nothing, and the claim is what spends the code. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS returns {organization_name:'烟火测试团队',expires_at:'2026-11-22T13:10:00.000Z'}.
|
|
4264
|
+
*/
|
|
4265
|
+
export const getByodPairing = (options) => (options.client ?? client).get({
|
|
4266
|
+
security: [{
|
|
4267
|
+
key: 'BearerAuth',
|
|
4268
|
+
scheme: 'bearer',
|
|
4269
|
+
type: 'http'
|
|
4270
|
+
}, {
|
|
4271
|
+
key: 'ApiKeyAuth',
|
|
4272
|
+
name: 'X-API-Key',
|
|
4273
|
+
type: 'apiKey'
|
|
4274
|
+
}],
|
|
4275
|
+
url: '/sandbox/v1/byod/pairings/{code}',
|
|
4276
|
+
...options
|
|
4277
|
+
});
|
|
4278
|
+
/**
|
|
4279
|
+
* Claim a pairing and register the phone
|
|
4280
|
+
*
|
|
4281
|
+
* The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno--sbx-develop.praxisusercontent.com/'}.
|
|
4282
|
+
*/
|
|
4283
|
+
export const claimByodPairing = (options) => (options.client ?? client).post({
|
|
4284
|
+
security: [{
|
|
4285
|
+
key: 'BearerAuth',
|
|
4286
|
+
scheme: 'bearer',
|
|
4287
|
+
type: 'http'
|
|
4288
|
+
}, {
|
|
4289
|
+
key: 'ApiKeyAuth',
|
|
4290
|
+
name: 'X-API-Key',
|
|
4291
|
+
type: 'apiKey'
|
|
4292
|
+
}],
|
|
4293
|
+
url: '/sandbox/v1/byod/pairings/{code}/claim',
|
|
4294
|
+
...options,
|
|
4295
|
+
headers: {
|
|
4296
|
+
'Content-Type': 'application/json',
|
|
4297
|
+
...options.headers
|
|
4298
|
+
}
|
|
4299
|
+
});
|
|
3951
4300
|
/**
|
|
3952
4301
|
* Delete session
|
|
3953
4302
|
*
|
|
@@ -4027,7 +4376,7 @@ export const agentsList = (options) => (options?.client ?? client).get({
|
|
|
4027
4376
|
/**
|
|
4028
4377
|
* Create agent
|
|
4029
4378
|
*
|
|
4030
|
-
* Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: "general" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: "agent_toolset_20260401"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: "agent_toolset_20260401", default_config: {enabled: false}, configs: [{name: "codemode", enabled: true}, {name: "bash", enabled: true, permission_policy: {type: "always_ask"}}]}]; every tool not listed, including todo_write
|
|
4379
|
+
* Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: "general" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: "agent_toolset_20260401"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: "agent_toolset_20260401", default_config: {enabled: false}, configs: [{name: "codemode", enabled: true}, {name: "bash", enabled: true, permission_policy: {type: "always_ask"}}]}]; every tool not listed, including todo_write and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 "model <id> is not in the model catalog" and an embedding, image or speech model returns 400 "model <id> cannot run an agent". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {"name":"helper","model":{"id":"deepseek-flash"},"tools":[{"type":"agent_toolset_20260401"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. A general or assume agent created without computer_id gets a new computer registered in the same request, named after the agent; a service agent with computer_id returns 400. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. phone gives the agent one phone, in one of two mutually exclusive forms: {sku, name?, archive: {exclude}} is a cloud Android device the platform builds on demand from that Sandbox SKU, and {byod, name?} is your organization's own device, named by a byd_… id it already owns (Brought Your Own Device), which the platform drives but never builds. A body naming both sku and byod returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. Only a general or assume agent may have a phone: a service agent with phone returns 400. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.
|
|
4031
4380
|
*/
|
|
4032
4381
|
export const agentsCreate = (options) => (options.client ?? client).post({
|
|
4033
4382
|
security: [{
|
|
@@ -4067,7 +4416,7 @@ export const agentsRetrieve = (options) => (options.client ?? client).get({
|
|
|
4067
4416
|
/**
|
|
4068
4417
|
* Update agent
|
|
4069
4418
|
*
|
|
4070
|
-
* Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.
|
|
4419
|
+
* Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. phone takes the same two mutually exclusive forms as agents.create: {sku, name?, archive} for a cloud device, or {byod, name?} for your organization's own device (a byd_… id); naming both returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. phone: null turns the phone off and releases a cloud device; a BYOD phone is the organization's and is never killed. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.
|
|
4071
4420
|
*/
|
|
4072
4421
|
export const agentsUpdate = (options) => (options.client ?? client).post({
|
|
4073
4422
|
security: [{
|
|
@@ -9349,7 +9698,7 @@ export const devopsTestExecutionsGet = (options) => (options.client ?? client).g
|
|
|
9349
9698
|
/**
|
|
9350
9699
|
* Upload an external test report
|
|
9351
9700
|
*
|
|
9352
|
-
* Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested.
|
|
9701
|
+
* Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested. With purpose evidence the report is also filed as test evidence, package by package: DevOps recomputes each package's input hash from ref.commit (so the commit must already be pushed; an unreadable commit records the run but no evidence), and writes passed or failed only for a package whose every case at the gate's sizes the report carries — a report of a few files leaves that package without evidence. Pass ref.branch and ref.pullRequest so the run says where it came from; devops.projects.retrieveTestPlan at the commit then shows what the gate will read.
|
|
9353
9702
|
*/
|
|
9354
9703
|
export const devopsTestReportsUpload = (options) => (options.client ?? client).post({
|
|
9355
9704
|
security: [{
|
|
@@ -9367,7 +9716,7 @@ export const devopsTestReportsUpload = (options) => (options.client ?? client).p
|
|
|
9367
9716
|
/**
|
|
9368
9717
|
* Retrieve the merge gate's test plan at a commit
|
|
9369
9718
|
*
|
|
9370
|
-
* Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — `praxis devops test
|
|
9719
|
+
* Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. The answer also carries cases: every feature scenario of the affected packages at the gate's sizes, each with required (whether this diff can affect it, chosen by the files the scenario was recorded running), the reason, the deps hash it is judged at and its own evidence. A merge needs evidence only for the required cases; run `praxis devops test <package> --record-impact` to record coverage and results. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — run `praxis devops test <package>` for each missing or failed package on a clean, pushed commit and the run files the evidence itself — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.
|
|
9371
9720
|
*/
|
|
9372
9721
|
export const devopsTestPlanGet = (options) => (options.client ?? client).get({
|
|
9373
9722
|
security: [{
|
|
@@ -9381,7 +9730,7 @@ export const devopsTestPlanGet = (options) => (options.client ?? client).get({
|
|
|
9381
9730
|
/**
|
|
9382
9731
|
* List projects
|
|
9383
9732
|
*
|
|
9384
|
-
* List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all.
|
|
9733
|
+
* List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all. The page always carries visibleProjects: how many projects the caller's own organization has in total, deleted ones excluded. Those are the projects visible to the credential's organization — the count filters by organization_id and is not a permission check — so an empty items array reads as "this organization has none yet" instead of leaving you to guess whether the read was lost or the credential points at another organization. It is the organization's total across all pages, not this page's length.
|
|
9385
9734
|
*/
|
|
9386
9735
|
export const devopsProjectsList = (options) => (options?.client ?? client).get({
|
|
9387
9736
|
security: [{
|
|
@@ -10153,7 +10502,7 @@ export const devopsPullRequestsList = (options) => (options.client ?? client).ge
|
|
|
10153
10502
|
/**
|
|
10154
10503
|
* Retrieve a pull request
|
|
10155
10504
|
*
|
|
10156
|
-
* Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the
|
|
10505
|
+
* Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the tests check is never pending, because DevOps runs no tests for a pull request: it is passed, or failed naming the missing or failed cases and the command `praxis devops test <package> --record-impact` the author runs on the pushed head; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the test runs reported at the head commit (uploaded by the author, never started by DevOps), newest first.
|
|
10157
10506
|
*/
|
|
10158
10507
|
export const devopsPullRequestsGet = (options) => (options.client ?? client).get({
|
|
10159
10508
|
security: [{
|
|
@@ -10167,7 +10516,7 @@ export const devopsPullRequestsGet = (options) => (options.client ?? client).get
|
|
|
10167
10516
|
/**
|
|
10168
10517
|
* Decide a pull request's merge gate again
|
|
10169
10518
|
*
|
|
10170
|
-
* Decide the merge gate again at the pull request's current head and report the result on GitHub as the "Praxis DevOps / gate" check run. Use it when a fact the gate reads has changed without a new push — a
|
|
10519
|
+
* Decide the merge gate again at the pull request's current head and report the result on GitHub as the "Praxis DevOps / gate" check run. Use it when a fact the gate reads has changed without a new push — a flag was registered, or a check that had no evidence now has some (test evidence uploaded for the head already decides the gate again by itself) — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.
|
|
10171
10520
|
*/
|
|
10172
10521
|
export const devopsPullRequestsRerunGate = (options) => (options.client ?? client).post({
|
|
10173
10522
|
security: [{
|