@app-vitals/agent-lib 1.82.0 → 1.84.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/admin-types.ts +94 -1
- package/package.json +1 -1
package/admin-types.ts
CHANGED
|
@@ -3782,6 +3782,77 @@ export interface paths {
|
|
|
3782
3782
|
patch?: never;
|
|
3783
3783
|
trace?: never;
|
|
3784
3784
|
};
|
|
3785
|
+
"/github-enterprise/refresh": {
|
|
3786
|
+
parameters: {
|
|
3787
|
+
query?: never;
|
|
3788
|
+
header?: never;
|
|
3789
|
+
path?: never;
|
|
3790
|
+
cookie?: never;
|
|
3791
|
+
};
|
|
3792
|
+
get?: never;
|
|
3793
|
+
put?: never;
|
|
3794
|
+
/**
|
|
3795
|
+
* Request a refresh of the GitHub cache
|
|
3796
|
+
* @description Admin-only. Marks the cached GitHub repo lists stale and clears retry waits so the background refresher works them next, then returns at once. It makes no GitHub call and does not wait for the refresher; reload the page to see progress. The refresher still honours its per-org lease and rate-limit window.
|
|
3797
|
+
*/
|
|
3798
|
+
post: {
|
|
3799
|
+
parameters: {
|
|
3800
|
+
query?: never;
|
|
3801
|
+
header?: never;
|
|
3802
|
+
path?: never;
|
|
3803
|
+
cookie?: never;
|
|
3804
|
+
};
|
|
3805
|
+
requestBody?: never;
|
|
3806
|
+
responses: {
|
|
3807
|
+
/** @description Refresh requested */
|
|
3808
|
+
202: {
|
|
3809
|
+
headers: {
|
|
3810
|
+
[name: string]: unknown;
|
|
3811
|
+
};
|
|
3812
|
+
content: {
|
|
3813
|
+
"application/json": {
|
|
3814
|
+
/** @enum {string} */
|
|
3815
|
+
status: "accepted";
|
|
3816
|
+
snapshots: number;
|
|
3817
|
+
accessPairs: number;
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
3820
|
+
};
|
|
3821
|
+
/** @description Unauthorized */
|
|
3822
|
+
401: {
|
|
3823
|
+
headers: {
|
|
3824
|
+
[name: string]: unknown;
|
|
3825
|
+
};
|
|
3826
|
+
content: {
|
|
3827
|
+
"application/json": components["schemas"]["Error"];
|
|
3828
|
+
};
|
|
3829
|
+
};
|
|
3830
|
+
/** @description Forbidden (non-admin caller) */
|
|
3831
|
+
403: {
|
|
3832
|
+
headers: {
|
|
3833
|
+
[name: string]: unknown;
|
|
3834
|
+
};
|
|
3835
|
+
content: {
|
|
3836
|
+
"application/json": components["schemas"]["Error"];
|
|
3837
|
+
};
|
|
3838
|
+
};
|
|
3839
|
+
/** @description Refresh is not available */
|
|
3840
|
+
503: {
|
|
3841
|
+
headers: {
|
|
3842
|
+
[name: string]: unknown;
|
|
3843
|
+
};
|
|
3844
|
+
content: {
|
|
3845
|
+
"application/json": components["schemas"]["Error"];
|
|
3846
|
+
};
|
|
3847
|
+
};
|
|
3848
|
+
};
|
|
3849
|
+
};
|
|
3850
|
+
delete?: never;
|
|
3851
|
+
options?: never;
|
|
3852
|
+
head?: never;
|
|
3853
|
+
patch?: never;
|
|
3854
|
+
trace?: never;
|
|
3855
|
+
};
|
|
3785
3856
|
"/github-enterprise/apps/{role}/validate": {
|
|
3786
3857
|
parameters: {
|
|
3787
3858
|
query?: never;
|
|
@@ -5963,6 +6034,14 @@ export interface components {
|
|
|
5963
6034
|
lastError?: string;
|
|
5964
6035
|
/** @description When the GitHub rate limit resets (ISO 8601). */
|
|
5965
6036
|
rateLimitResetAt?: string;
|
|
6037
|
+
/** @description Failed refresh attempts; absent when zero. */
|
|
6038
|
+
attempts?: number;
|
|
6039
|
+
/** @description Next refresh attempt while backing off (ISO 8601). */
|
|
6040
|
+
nextAttemptAt?: string;
|
|
6041
|
+
/** @description Holder of a live refresh lease, if any. */
|
|
6042
|
+
leaseHolder?: string;
|
|
6043
|
+
/** @description Last refresh tick on the snapshot (ISO 8601). */
|
|
6044
|
+
lastTickAt?: string;
|
|
5966
6045
|
orgs: {
|
|
5967
6046
|
org: string;
|
|
5968
6047
|
/** @description Whether the cached crawl is complete. While false the list may be partial. */
|
|
@@ -5976,10 +6055,24 @@ export interface components {
|
|
|
5976
6055
|
lastError?: string;
|
|
5977
6056
|
/** @description When the GitHub rate limit resets (ISO 8601). */
|
|
5978
6057
|
rateLimitResetAt?: string;
|
|
6058
|
+
/** @description Failed refresh attempts; absent when zero. */
|
|
6059
|
+
attempts?: number;
|
|
6060
|
+
/** @description Next refresh attempt while backing off (ISO 8601). */
|
|
6061
|
+
nextAttemptAt?: string;
|
|
6062
|
+
/** @description Holder of a live refresh lease, if any. */
|
|
6063
|
+
leaseHolder?: string;
|
|
6064
|
+
/** @description Last refresh tick on the snapshot (ISO 8601). */
|
|
6065
|
+
lastTickAt?: string;
|
|
5979
6066
|
repos: {
|
|
5980
6067
|
fullName: string;
|
|
5981
6068
|
/** @description Whether the agent's bound GitHub user can push, from cached access rows. Omitted when no username is bound or the org's access data is incomplete (a missing or errored pair is never reported as false). */
|
|
5982
6069
|
userCanPush?: boolean;
|
|
6070
|
+
/** @description When the bound user's access to this repo was last checked (ISO 8601), when a cached row exists. */
|
|
6071
|
+
accessCheckedAt?: string;
|
|
6072
|
+
/** @description Failed access checks for this repo since the last success, when any. */
|
|
6073
|
+
accessAttempts?: number;
|
|
6074
|
+
/** @description Last access-check error for this repo, when any. */
|
|
6075
|
+
accessError?: string;
|
|
5983
6076
|
}[];
|
|
5984
6077
|
}[];
|
|
5985
6078
|
};
|
|
@@ -5996,7 +6089,7 @@ export interface components {
|
|
|
5996
6089
|
appRemoves?: string[];
|
|
5997
6090
|
/** @description Configured agent repos the bound user can no longer push to. The agent's repos are never added to. */
|
|
5998
6091
|
agentRemoves?: string[];
|
|
5999
|
-
/** @description Orgs whose access listing is missing, partial or failed, or whose lookup App is not installed or installed on selected repositories only; nothing there is added or removed. */
|
|
6092
|
+
/** @description Orgs whose access listing is missing, partial or failed, whose cached access data is incomplete or stale, or whose lookup App is not installed or installed on selected repositories only; nothing there is added or removed. `reason` says why (for stale data, when it was checked). */
|
|
6000
6093
|
skippedOrgs?: {
|
|
6001
6094
|
org: string;
|
|
6002
6095
|
reason: string;
|