@axivoy/api 1.28.0 → 1.30.0
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/dist/generated/schema.d.ts +693 -0
- package/package.json +1 -1
|
@@ -421,6 +421,72 @@ export interface paths {
|
|
|
421
421
|
patch?: never;
|
|
422
422
|
trace?: never;
|
|
423
423
|
};
|
|
424
|
+
"/ops/agents.get": {
|
|
425
|
+
parameters: {
|
|
426
|
+
query?: never;
|
|
427
|
+
header?: never;
|
|
428
|
+
path?: never;
|
|
429
|
+
cookie?: never;
|
|
430
|
+
};
|
|
431
|
+
get?: never;
|
|
432
|
+
put?: never;
|
|
433
|
+
/**
|
|
434
|
+
* Get an AI agent
|
|
435
|
+
* @description One AI agent: whether it is on, who turned it off and why, its limits and usage, what it may do, its versions, and what its latest rehearsals would have done.
|
|
436
|
+
*
|
|
437
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
438
|
+
*/
|
|
439
|
+
post: operations["ops.agents.get"];
|
|
440
|
+
delete?: never;
|
|
441
|
+
options?: never;
|
|
442
|
+
head?: never;
|
|
443
|
+
patch?: never;
|
|
444
|
+
trace?: never;
|
|
445
|
+
};
|
|
446
|
+
"/ops/agents.list": {
|
|
447
|
+
parameters: {
|
|
448
|
+
query?: never;
|
|
449
|
+
header?: never;
|
|
450
|
+
path?: never;
|
|
451
|
+
cookie?: never;
|
|
452
|
+
};
|
|
453
|
+
get?: never;
|
|
454
|
+
put?: never;
|
|
455
|
+
/**
|
|
456
|
+
* List AI agents
|
|
457
|
+
* @description The workspace's AI agents: whether each is on, who turned it off and why, holds Axivoy placed, its limits, and runs, refusals and AI credits used so far.
|
|
458
|
+
*
|
|
459
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
460
|
+
*/
|
|
461
|
+
post: operations["ops.agents.list"];
|
|
462
|
+
delete?: never;
|
|
463
|
+
options?: never;
|
|
464
|
+
head?: never;
|
|
465
|
+
patch?: never;
|
|
466
|
+
trace?: never;
|
|
467
|
+
};
|
|
468
|
+
"/ops/agents.rehearse": {
|
|
469
|
+
parameters: {
|
|
470
|
+
query?: never;
|
|
471
|
+
header?: never;
|
|
472
|
+
path?: never;
|
|
473
|
+
cookie?: never;
|
|
474
|
+
};
|
|
475
|
+
get?: never;
|
|
476
|
+
put?: never;
|
|
477
|
+
/**
|
|
478
|
+
* Try an agent without changing anything
|
|
479
|
+
* @description Runs one turn of an agent version on a real record without changing or sending anything, or on practice data in the sandbox, and records what it would have done on the run timeline.
|
|
480
|
+
*
|
|
481
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
482
|
+
*/
|
|
483
|
+
post: operations["ops.agents.rehearse"];
|
|
484
|
+
delete?: never;
|
|
485
|
+
options?: never;
|
|
486
|
+
head?: never;
|
|
487
|
+
patch?: never;
|
|
488
|
+
trace?: never;
|
|
489
|
+
};
|
|
424
490
|
"/ops/agents.runs.cancel": {
|
|
425
491
|
parameters: {
|
|
426
492
|
query?: never;
|
|
@@ -20574,6 +20640,633 @@ export interface operations {
|
|
|
20574
20640
|
};
|
|
20575
20641
|
};
|
|
20576
20642
|
};
|
|
20643
|
+
"ops.agents.get": {
|
|
20644
|
+
parameters: {
|
|
20645
|
+
query?: never;
|
|
20646
|
+
header?: {
|
|
20647
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
20648
|
+
"Idempotency-Key"?: string;
|
|
20649
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
20650
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
20651
|
+
};
|
|
20652
|
+
path?: never;
|
|
20653
|
+
cookie?: never;
|
|
20654
|
+
};
|
|
20655
|
+
requestBody?: {
|
|
20656
|
+
content: {
|
|
20657
|
+
/**
|
|
20658
|
+
* @example {
|
|
20659
|
+
* "agent_key": "fixture_desk"
|
|
20660
|
+
* }
|
|
20661
|
+
*/
|
|
20662
|
+
"application/json": {
|
|
20663
|
+
/** @description The agent's key, for example recruiting_desk. */
|
|
20664
|
+
agent_key: string;
|
|
20665
|
+
};
|
|
20666
|
+
};
|
|
20667
|
+
};
|
|
20668
|
+
responses: {
|
|
20669
|
+
/** @description The operation ran. */
|
|
20670
|
+
200: {
|
|
20671
|
+
headers: {
|
|
20672
|
+
[name: string]: unknown;
|
|
20673
|
+
};
|
|
20674
|
+
content: {
|
|
20675
|
+
/**
|
|
20676
|
+
* @example {
|
|
20677
|
+
* "result": {
|
|
20678
|
+
* "key": "fixture_desk",
|
|
20679
|
+
* "name": "Fixture desk",
|
|
20680
|
+
* "origin": "axivoy",
|
|
20681
|
+
* "owner_name": null,
|
|
20682
|
+
* "status": "on",
|
|
20683
|
+
* "disabled_at": null,
|
|
20684
|
+
* "disabled_cause": null,
|
|
20685
|
+
* "disabled_reason": null,
|
|
20686
|
+
* "disabled_by": null,
|
|
20687
|
+
* "platform_holds": [],
|
|
20688
|
+
* "limit_reached": null,
|
|
20689
|
+
* "active_version": 1,
|
|
20690
|
+
* "max_runs_per_day": null,
|
|
20691
|
+
* "max_tool_calls_per_run": null,
|
|
20692
|
+
* "monthly_credit_budget": null,
|
|
20693
|
+
* "runs_today": 0,
|
|
20694
|
+
* "credits_used_this_month": 0,
|
|
20695
|
+
* "credits_last_hour": 0,
|
|
20696
|
+
* "refusals_last_hour": 0,
|
|
20697
|
+
* "open_runs": 0,
|
|
20698
|
+
* "rehearsals_running": 0,
|
|
20699
|
+
* "last_run_at": null,
|
|
20700
|
+
* "subscription_count": 0,
|
|
20701
|
+
* "operations": [],
|
|
20702
|
+
* "versions": [
|
|
20703
|
+
* {
|
|
20704
|
+
* "version": 1,
|
|
20705
|
+
* "live": true,
|
|
20706
|
+
* "created_at": "2026-10-20T20:56:41Z",
|
|
20707
|
+
* "created_by": null,
|
|
20708
|
+
* "max_runs_per_day": null,
|
|
20709
|
+
* "max_tool_calls_per_run": null,
|
|
20710
|
+
* "monthly_credit_budget": null
|
|
20711
|
+
* }
|
|
20712
|
+
* ],
|
|
20713
|
+
* "rehearsals": []
|
|
20714
|
+
* }
|
|
20715
|
+
* }
|
|
20716
|
+
*/
|
|
20717
|
+
"application/json": {
|
|
20718
|
+
result: {
|
|
20719
|
+
/** @description The agent's key, for example recruiting_desk */
|
|
20720
|
+
key: string;
|
|
20721
|
+
/** @description The agent's name */
|
|
20722
|
+
name: string;
|
|
20723
|
+
/** @description axivoy (made by Axivoy) or tenant (built in this workspace) */
|
|
20724
|
+
origin: string;
|
|
20725
|
+
/** @description Who owns the agent; null for Axivoy's agents */
|
|
20726
|
+
owner_name?: string | null;
|
|
20727
|
+
/** @description on, off, auto_paused, paused_by_axivoy or at_limit */
|
|
20728
|
+
status: string;
|
|
20729
|
+
/**
|
|
20730
|
+
* Format: date-time
|
|
20731
|
+
* @description When it was turned off
|
|
20732
|
+
*/
|
|
20733
|
+
disabled_at?: string | null;
|
|
20734
|
+
/** @description person or circuit_breaker */
|
|
20735
|
+
disabled_cause?: string | null;
|
|
20736
|
+
/** @description Why it was turned off, in the words of whoever did it */
|
|
20737
|
+
disabled_reason?: string | null;
|
|
20738
|
+
/** @description Who turned it off; null when the breaker did */
|
|
20739
|
+
disabled_by?: string | null;
|
|
20740
|
+
/** @description Holds Axivoy placed on the agent */
|
|
20741
|
+
platform_holds: {
|
|
20742
|
+
/** @description pause_tenant, pause_definition or pin_version */
|
|
20743
|
+
kind: string;
|
|
20744
|
+
/** @description The pinned version, for pin_version */
|
|
20745
|
+
version?: number | null;
|
|
20746
|
+
/**
|
|
20747
|
+
* Format: date-time
|
|
20748
|
+
* @description When Axivoy placed it
|
|
20749
|
+
*/
|
|
20750
|
+
since?: string | null;
|
|
20751
|
+
}[];
|
|
20752
|
+
/** @description max_runs_per_day or monthly_credit_budget when one is used up */
|
|
20753
|
+
limit_reached?: string | null;
|
|
20754
|
+
/** @description The live version */
|
|
20755
|
+
active_version?: number | null;
|
|
20756
|
+
/** @description Runs per UTC day; null when unlimited */
|
|
20757
|
+
max_runs_per_day?: number | null;
|
|
20758
|
+
/** @description Tool calls per run; null when unlimited */
|
|
20759
|
+
max_tool_calls_per_run?: number | null;
|
|
20760
|
+
/** @description AI credits per UTC month; null when unlimited */
|
|
20761
|
+
monthly_credit_budget?: number | null;
|
|
20762
|
+
/** @description Runs started this UTC day */
|
|
20763
|
+
runs_today: number;
|
|
20764
|
+
/** @description AI credits used this UTC month */
|
|
20765
|
+
credits_used_this_month: number;
|
|
20766
|
+
/** @description AI credits used in the last hour */
|
|
20767
|
+
credits_last_hour: number;
|
|
20768
|
+
/** @description Tool calls that failed or were refused in the last hour */
|
|
20769
|
+
refusals_last_hour: number;
|
|
20770
|
+
/** @description Runs not finished yet */
|
|
20771
|
+
open_runs: number;
|
|
20772
|
+
/** @description Rehearsals not finished yet */
|
|
20773
|
+
rehearsals_running: number;
|
|
20774
|
+
/**
|
|
20775
|
+
* Format: date-time
|
|
20776
|
+
* @description When the latest run started
|
|
20777
|
+
*/
|
|
20778
|
+
last_run_at?: string | null;
|
|
20779
|
+
/** @description Event subscriptions on the live version */
|
|
20780
|
+
subscription_count: number;
|
|
20781
|
+
/** @description What the live version may do */
|
|
20782
|
+
operations: {
|
|
20783
|
+
/** @description The tool key */
|
|
20784
|
+
key: string;
|
|
20785
|
+
/** @description The operation the tool runs, when it runs one */
|
|
20786
|
+
operation?: string | null;
|
|
20787
|
+
/** @description off, propose or auto, as the version sets it */
|
|
20788
|
+
configured_authority: string;
|
|
20789
|
+
/** @description What it may actually do, capped by the ceiling for the agent's origin */
|
|
20790
|
+
effective_authority: string;
|
|
20791
|
+
}[];
|
|
20792
|
+
/** @description Newest first, up to 20 */
|
|
20793
|
+
versions: {
|
|
20794
|
+
/** @description Version number */
|
|
20795
|
+
version: number;
|
|
20796
|
+
/** @description Whether this is the live version */
|
|
20797
|
+
live: boolean;
|
|
20798
|
+
/**
|
|
20799
|
+
* Format: date-time
|
|
20800
|
+
* @description When it was made
|
|
20801
|
+
*/
|
|
20802
|
+
created_at?: string | null;
|
|
20803
|
+
/** @description Who made it; null when Axivoy did */
|
|
20804
|
+
created_by?: string | null;
|
|
20805
|
+
/** @description Runs per UTC day */
|
|
20806
|
+
max_runs_per_day?: number | null;
|
|
20807
|
+
/** @description Tool calls per run */
|
|
20808
|
+
max_tool_calls_per_run?: number | null;
|
|
20809
|
+
/** @description AI credits per UTC month */
|
|
20810
|
+
monthly_credit_budget?: number | null;
|
|
20811
|
+
}[];
|
|
20812
|
+
/** @description Latest five rehearsals, newest first */
|
|
20813
|
+
rehearsals: {
|
|
20814
|
+
/** @description The rehearsal run */
|
|
20815
|
+
run_id: number;
|
|
20816
|
+
/** @description dry_run or sandbox */
|
|
20817
|
+
mode: string;
|
|
20818
|
+
/** @description The version it tried */
|
|
20819
|
+
version?: number | null;
|
|
20820
|
+
/** @description running or finished */
|
|
20821
|
+
status: string;
|
|
20822
|
+
/** @description Where it stopped: waiting:{on}, done, a pause reason or limit:{limit} */
|
|
20823
|
+
stopped_on?: string | null;
|
|
20824
|
+
/**
|
|
20825
|
+
* Format: date-time
|
|
20826
|
+
* @description When it started
|
|
20827
|
+
*/
|
|
20828
|
+
started_at?: string | null;
|
|
20829
|
+
/** @description Steps recorded */
|
|
20830
|
+
steps: number;
|
|
20831
|
+
/** @description AI credits it used */
|
|
20832
|
+
credits: number;
|
|
20833
|
+
/** @description What it would have done, in order */
|
|
20834
|
+
actions: {
|
|
20835
|
+
/** @description The tool it would have called */
|
|
20836
|
+
tool: string;
|
|
20837
|
+
/** @description The tool's name */
|
|
20838
|
+
label: string;
|
|
20839
|
+
/** @description do, ask_first or refused */
|
|
20840
|
+
would: string;
|
|
20841
|
+
/** @description The first text the call carried, shortened */
|
|
20842
|
+
detail?: string | null;
|
|
20843
|
+
}[];
|
|
20844
|
+
}[];
|
|
20845
|
+
};
|
|
20846
|
+
};
|
|
20847
|
+
};
|
|
20848
|
+
};
|
|
20849
|
+
202: components["responses"]["Proposal"];
|
|
20850
|
+
/** @description Refused: credits_exhausted. */
|
|
20851
|
+
402: {
|
|
20852
|
+
headers: {
|
|
20853
|
+
[name: string]: unknown;
|
|
20854
|
+
};
|
|
20855
|
+
content: {
|
|
20856
|
+
"application/json": components["schemas"]["OperationError"];
|
|
20857
|
+
};
|
|
20858
|
+
};
|
|
20859
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
20860
|
+
403: {
|
|
20861
|
+
headers: {
|
|
20862
|
+
[name: string]: unknown;
|
|
20863
|
+
};
|
|
20864
|
+
content: {
|
|
20865
|
+
"application/json": components["schemas"]["OperationError"];
|
|
20866
|
+
};
|
|
20867
|
+
};
|
|
20868
|
+
/** @description Refused: not_found. */
|
|
20869
|
+
404: {
|
|
20870
|
+
headers: {
|
|
20871
|
+
[name: string]: unknown;
|
|
20872
|
+
};
|
|
20873
|
+
content: {
|
|
20874
|
+
"application/json": components["schemas"]["OperationError"];
|
|
20875
|
+
};
|
|
20876
|
+
};
|
|
20877
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
20878
|
+
409: {
|
|
20879
|
+
headers: {
|
|
20880
|
+
[name: string]: unknown;
|
|
20881
|
+
};
|
|
20882
|
+
content: {
|
|
20883
|
+
"application/json": components["schemas"]["OperationError"];
|
|
20884
|
+
};
|
|
20885
|
+
};
|
|
20886
|
+
/** @description Refused: operation_retired. */
|
|
20887
|
+
410: {
|
|
20888
|
+
headers: {
|
|
20889
|
+
[name: string]: unknown;
|
|
20890
|
+
};
|
|
20891
|
+
content: {
|
|
20892
|
+
"application/json": components["schemas"]["OperationError"];
|
|
20893
|
+
};
|
|
20894
|
+
};
|
|
20895
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
20896
|
+
422: {
|
|
20897
|
+
headers: {
|
|
20898
|
+
[name: string]: unknown;
|
|
20899
|
+
};
|
|
20900
|
+
content: {
|
|
20901
|
+
"application/json": components["schemas"]["OperationError"];
|
|
20902
|
+
};
|
|
20903
|
+
};
|
|
20904
|
+
/** @description Refused: rate_limited. */
|
|
20905
|
+
429: {
|
|
20906
|
+
headers: {
|
|
20907
|
+
[name: string]: unknown;
|
|
20908
|
+
};
|
|
20909
|
+
content: {
|
|
20910
|
+
"application/json": components["schemas"]["OperationError"];
|
|
20911
|
+
};
|
|
20912
|
+
};
|
|
20913
|
+
};
|
|
20914
|
+
};
|
|
20915
|
+
"ops.agents.list": {
|
|
20916
|
+
parameters: {
|
|
20917
|
+
query?: never;
|
|
20918
|
+
header?: {
|
|
20919
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
20920
|
+
"Idempotency-Key"?: string;
|
|
20921
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
20922
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
20923
|
+
};
|
|
20924
|
+
path?: never;
|
|
20925
|
+
cookie?: never;
|
|
20926
|
+
};
|
|
20927
|
+
requestBody?: {
|
|
20928
|
+
content: {
|
|
20929
|
+
/** @example {} */
|
|
20930
|
+
"application/json": {
|
|
20931
|
+
/** @description Cursor from the previous page's next_cursor. */
|
|
20932
|
+
cursor?: string | null;
|
|
20933
|
+
/** @description Rows per page (default 25). */
|
|
20934
|
+
limit?: number | null;
|
|
20935
|
+
/**
|
|
20936
|
+
* Format: date-time
|
|
20937
|
+
* @description Only rows changed at or after this instant, oldest change first, with deleted rows as tombstones.
|
|
20938
|
+
*/
|
|
20939
|
+
updated_since?: string | null;
|
|
20940
|
+
};
|
|
20941
|
+
};
|
|
20942
|
+
};
|
|
20943
|
+
responses: {
|
|
20944
|
+
/** @description The operation ran. */
|
|
20945
|
+
200: {
|
|
20946
|
+
headers: {
|
|
20947
|
+
[name: string]: unknown;
|
|
20948
|
+
};
|
|
20949
|
+
content: {
|
|
20950
|
+
/**
|
|
20951
|
+
* @example {
|
|
20952
|
+
* "result": {
|
|
20953
|
+
* "items": [
|
|
20954
|
+
* {
|
|
20955
|
+
* "id": 1,
|
|
20956
|
+
* "key": "fixture_desk",
|
|
20957
|
+
* "name": "Fixture desk",
|
|
20958
|
+
* "origin": "axivoy",
|
|
20959
|
+
* "owner_name": null,
|
|
20960
|
+
* "status": "off",
|
|
20961
|
+
* "disabled_at": "2026-10-20T20:56:40Z",
|
|
20962
|
+
* "disabled_cause": "person",
|
|
20963
|
+
* "disabled_reason": "Too chatty",
|
|
20964
|
+
* "disabled_by": "Dayne Huel",
|
|
20965
|
+
* "platform_holds": [],
|
|
20966
|
+
* "limit_reached": null,
|
|
20967
|
+
* "active_version": 1,
|
|
20968
|
+
* "max_runs_per_day": null,
|
|
20969
|
+
* "max_tool_calls_per_run": null,
|
|
20970
|
+
* "monthly_credit_budget": null,
|
|
20971
|
+
* "runs_today": 1,
|
|
20972
|
+
* "credits_used_this_month": 0,
|
|
20973
|
+
* "credits_last_hour": 0,
|
|
20974
|
+
* "refusals_last_hour": 0,
|
|
20975
|
+
* "open_runs": 1,
|
|
20976
|
+
* "rehearsals_running": 0,
|
|
20977
|
+
* "last_run_at": "2026-10-20T20:56:40Z",
|
|
20978
|
+
* "deleted": null
|
|
20979
|
+
* }
|
|
20980
|
+
* ],
|
|
20981
|
+
* "next_cursor": null
|
|
20982
|
+
* }
|
|
20983
|
+
* }
|
|
20984
|
+
*/
|
|
20985
|
+
"application/json": {
|
|
20986
|
+
result: {
|
|
20987
|
+
/** @description One page of rows. */
|
|
20988
|
+
items: {
|
|
20989
|
+
/** @description The row's id. */
|
|
20990
|
+
id: number;
|
|
20991
|
+
/** @description The agent's key, for example recruiting_desk */
|
|
20992
|
+
key: string;
|
|
20993
|
+
/** @description The agent's name */
|
|
20994
|
+
name: string;
|
|
20995
|
+
/** @description axivoy (made by Axivoy) or tenant (built in this workspace) */
|
|
20996
|
+
origin: string;
|
|
20997
|
+
/** @description Who owns the agent; null for Axivoy's agents */
|
|
20998
|
+
owner_name?: string | null;
|
|
20999
|
+
/** @description on, off, auto_paused, paused_by_axivoy or at_limit */
|
|
21000
|
+
status: string;
|
|
21001
|
+
/**
|
|
21002
|
+
* Format: date-time
|
|
21003
|
+
* @description When it was turned off
|
|
21004
|
+
*/
|
|
21005
|
+
disabled_at?: string | null;
|
|
21006
|
+
/** @description person or circuit_breaker */
|
|
21007
|
+
disabled_cause?: string | null;
|
|
21008
|
+
/** @description Why it was turned off, in the words of whoever did it */
|
|
21009
|
+
disabled_reason?: string | null;
|
|
21010
|
+
/** @description Who turned it off; null when the breaker did */
|
|
21011
|
+
disabled_by?: string | null;
|
|
21012
|
+
/** @description Holds Axivoy placed on the agent */
|
|
21013
|
+
platform_holds: {
|
|
21014
|
+
/** @description pause_tenant, pause_definition or pin_version */
|
|
21015
|
+
kind: string;
|
|
21016
|
+
/** @description The pinned version, for pin_version */
|
|
21017
|
+
version?: number | null;
|
|
21018
|
+
/**
|
|
21019
|
+
* Format: date-time
|
|
21020
|
+
* @description When Axivoy placed it
|
|
21021
|
+
*/
|
|
21022
|
+
since?: string | null;
|
|
21023
|
+
}[];
|
|
21024
|
+
/** @description max_runs_per_day or monthly_credit_budget when one is used up */
|
|
21025
|
+
limit_reached?: string | null;
|
|
21026
|
+
/** @description The live version */
|
|
21027
|
+
active_version?: number | null;
|
|
21028
|
+
/** @description Runs per UTC day; null when unlimited */
|
|
21029
|
+
max_runs_per_day?: number | null;
|
|
21030
|
+
/** @description Tool calls per run; null when unlimited */
|
|
21031
|
+
max_tool_calls_per_run?: number | null;
|
|
21032
|
+
/** @description AI credits per UTC month; null when unlimited */
|
|
21033
|
+
monthly_credit_budget?: number | null;
|
|
21034
|
+
/** @description Runs started this UTC day */
|
|
21035
|
+
runs_today: number;
|
|
21036
|
+
/** @description AI credits used this UTC month */
|
|
21037
|
+
credits_used_this_month: number;
|
|
21038
|
+
/** @description AI credits used in the last hour */
|
|
21039
|
+
credits_last_hour: number;
|
|
21040
|
+
/** @description Tool calls that failed or were refused in the last hour */
|
|
21041
|
+
refusals_last_hour: number;
|
|
21042
|
+
/** @description Runs not finished yet */
|
|
21043
|
+
open_runs: number;
|
|
21044
|
+
/** @description Rehearsals not finished yet */
|
|
21045
|
+
rehearsals_running: number;
|
|
21046
|
+
/**
|
|
21047
|
+
* Format: date-time
|
|
21048
|
+
* @description When the latest run started
|
|
21049
|
+
*/
|
|
21050
|
+
last_run_at?: string | null;
|
|
21051
|
+
/** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
|
|
21052
|
+
deleted?: boolean | null;
|
|
21053
|
+
}[];
|
|
21054
|
+
/** @description Pass as cursor for the next page; null on the last page. */
|
|
21055
|
+
next_cursor?: string | null;
|
|
21056
|
+
};
|
|
21057
|
+
};
|
|
21058
|
+
};
|
|
21059
|
+
};
|
|
21060
|
+
202: components["responses"]["Proposal"];
|
|
21061
|
+
/** @description Refused: credits_exhausted. */
|
|
21062
|
+
402: {
|
|
21063
|
+
headers: {
|
|
21064
|
+
[name: string]: unknown;
|
|
21065
|
+
};
|
|
21066
|
+
content: {
|
|
21067
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21068
|
+
};
|
|
21069
|
+
};
|
|
21070
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
21071
|
+
403: {
|
|
21072
|
+
headers: {
|
|
21073
|
+
[name: string]: unknown;
|
|
21074
|
+
};
|
|
21075
|
+
content: {
|
|
21076
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21077
|
+
};
|
|
21078
|
+
};
|
|
21079
|
+
/** @description Refused: not_found. */
|
|
21080
|
+
404: {
|
|
21081
|
+
headers: {
|
|
21082
|
+
[name: string]: unknown;
|
|
21083
|
+
};
|
|
21084
|
+
content: {
|
|
21085
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21086
|
+
};
|
|
21087
|
+
};
|
|
21088
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
21089
|
+
409: {
|
|
21090
|
+
headers: {
|
|
21091
|
+
[name: string]: unknown;
|
|
21092
|
+
};
|
|
21093
|
+
content: {
|
|
21094
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21095
|
+
};
|
|
21096
|
+
};
|
|
21097
|
+
/** @description Refused: operation_retired. */
|
|
21098
|
+
410: {
|
|
21099
|
+
headers: {
|
|
21100
|
+
[name: string]: unknown;
|
|
21101
|
+
};
|
|
21102
|
+
content: {
|
|
21103
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21104
|
+
};
|
|
21105
|
+
};
|
|
21106
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
21107
|
+
422: {
|
|
21108
|
+
headers: {
|
|
21109
|
+
[name: string]: unknown;
|
|
21110
|
+
};
|
|
21111
|
+
content: {
|
|
21112
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21113
|
+
};
|
|
21114
|
+
};
|
|
21115
|
+
/** @description Refused: rate_limited. */
|
|
21116
|
+
429: {
|
|
21117
|
+
headers: {
|
|
21118
|
+
[name: string]: unknown;
|
|
21119
|
+
};
|
|
21120
|
+
content: {
|
|
21121
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21122
|
+
};
|
|
21123
|
+
};
|
|
21124
|
+
};
|
|
21125
|
+
};
|
|
21126
|
+
"ops.agents.rehearse": {
|
|
21127
|
+
parameters: {
|
|
21128
|
+
query?: never;
|
|
21129
|
+
header?: {
|
|
21130
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
21131
|
+
"Idempotency-Key"?: string;
|
|
21132
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
21133
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
21134
|
+
};
|
|
21135
|
+
path?: never;
|
|
21136
|
+
cookie?: never;
|
|
21137
|
+
};
|
|
21138
|
+
requestBody?: {
|
|
21139
|
+
content: {
|
|
21140
|
+
/**
|
|
21141
|
+
* @example {
|
|
21142
|
+
* "agent_key": "fake_desk",
|
|
21143
|
+
* "mode": "dry_run",
|
|
21144
|
+
* "subject": {
|
|
21145
|
+
* "id": 1
|
|
21146
|
+
* }
|
|
21147
|
+
* }
|
|
21148
|
+
*/
|
|
21149
|
+
"application/json": {
|
|
21150
|
+
/** @description The agent's key, for example recruiting_desk. */
|
|
21151
|
+
agent_key: string;
|
|
21152
|
+
/** @description The version to try; the live version when left out. */
|
|
21153
|
+
version?: number;
|
|
21154
|
+
/**
|
|
21155
|
+
* @description dry_run: real records, nothing changed or sent. sandbox: practice data in the workspace's sandbox.
|
|
21156
|
+
* @enum {string}
|
|
21157
|
+
*/
|
|
21158
|
+
mode: "dry_run" | "sandbox";
|
|
21159
|
+
/** @description The record to try it on. Dry run: the record of the agent's latest run when left out. Sandbox: the newest practice record. */
|
|
21160
|
+
subject?: {
|
|
21161
|
+
/** @description The record type the agent works on; checked against the agent. */
|
|
21162
|
+
type?: string;
|
|
21163
|
+
/** @description The record id. */
|
|
21164
|
+
id: number;
|
|
21165
|
+
};
|
|
21166
|
+
/** @description Dry run only: a recorded event (its id from events.list) to replay as the trigger; its record becomes the subject. */
|
|
21167
|
+
event_id?: string;
|
|
21168
|
+
/** @description Sandbox only: one of the agent's scenario keys. Seeds that scenario's practice record and wakes the agent with its event, so the same situation can be tried on any version. */
|
|
21169
|
+
scenario?: string;
|
|
21170
|
+
};
|
|
21171
|
+
};
|
|
21172
|
+
};
|
|
21173
|
+
responses: {
|
|
21174
|
+
/** @description The operation ran. */
|
|
21175
|
+
200: {
|
|
21176
|
+
headers: {
|
|
21177
|
+
[name: string]: unknown;
|
|
21178
|
+
};
|
|
21179
|
+
content: {
|
|
21180
|
+
/**
|
|
21181
|
+
* @example {
|
|
21182
|
+
* "result": {
|
|
21183
|
+
* "message": "Trying it without changing anything. The result shows here when it stops.",
|
|
21184
|
+
* "task_id": "a171294f-f44f-49d9-a87b-6912387bf1e0",
|
|
21185
|
+
* "run_id": 1,
|
|
21186
|
+
* "status": "running"
|
|
21187
|
+
* }
|
|
21188
|
+
* }
|
|
21189
|
+
*/
|
|
21190
|
+
"application/json": {
|
|
21191
|
+
result: {
|
|
21192
|
+
/** @description What happened, in the operator's words */
|
|
21193
|
+
message: string;
|
|
21194
|
+
/** @description Poll tasks.get; operation.task.completed fires when the rehearsal stops */
|
|
21195
|
+
task_id: string;
|
|
21196
|
+
/** @description The rehearsal run; its timeline shows what the agent would have done */
|
|
21197
|
+
run_id: number;
|
|
21198
|
+
/** @description running */
|
|
21199
|
+
status: string;
|
|
21200
|
+
};
|
|
21201
|
+
};
|
|
21202
|
+
};
|
|
21203
|
+
};
|
|
21204
|
+
202: components["responses"]["Proposal"];
|
|
21205
|
+
/** @description Refused: credits_exhausted. */
|
|
21206
|
+
402: {
|
|
21207
|
+
headers: {
|
|
21208
|
+
[name: string]: unknown;
|
|
21209
|
+
};
|
|
21210
|
+
content: {
|
|
21211
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21212
|
+
};
|
|
21213
|
+
};
|
|
21214
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
21215
|
+
403: {
|
|
21216
|
+
headers: {
|
|
21217
|
+
[name: string]: unknown;
|
|
21218
|
+
};
|
|
21219
|
+
content: {
|
|
21220
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21221
|
+
};
|
|
21222
|
+
};
|
|
21223
|
+
/** @description Refused: not_found. */
|
|
21224
|
+
404: {
|
|
21225
|
+
headers: {
|
|
21226
|
+
[name: string]: unknown;
|
|
21227
|
+
};
|
|
21228
|
+
content: {
|
|
21229
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21230
|
+
};
|
|
21231
|
+
};
|
|
21232
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
21233
|
+
409: {
|
|
21234
|
+
headers: {
|
|
21235
|
+
[name: string]: unknown;
|
|
21236
|
+
};
|
|
21237
|
+
content: {
|
|
21238
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21239
|
+
};
|
|
21240
|
+
};
|
|
21241
|
+
/** @description Refused: operation_retired. */
|
|
21242
|
+
410: {
|
|
21243
|
+
headers: {
|
|
21244
|
+
[name: string]: unknown;
|
|
21245
|
+
};
|
|
21246
|
+
content: {
|
|
21247
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21248
|
+
};
|
|
21249
|
+
};
|
|
21250
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
21251
|
+
422: {
|
|
21252
|
+
headers: {
|
|
21253
|
+
[name: string]: unknown;
|
|
21254
|
+
};
|
|
21255
|
+
content: {
|
|
21256
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21257
|
+
};
|
|
21258
|
+
};
|
|
21259
|
+
/** @description Refused: rate_limited. */
|
|
21260
|
+
429: {
|
|
21261
|
+
headers: {
|
|
21262
|
+
[name: string]: unknown;
|
|
21263
|
+
};
|
|
21264
|
+
content: {
|
|
21265
|
+
"application/json": components["schemas"]["OperationError"];
|
|
21266
|
+
};
|
|
21267
|
+
};
|
|
21268
|
+
};
|
|
21269
|
+
};
|
|
20577
21270
|
"ops.agents.runs.cancel": {
|
|
20578
21271
|
parameters: {
|
|
20579
21272
|
query?: never;
|