@app-vitals/agent-lib 1.6.0 → 1.7.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 +103 -0
- package/package.json +1 -1
package/admin-types.ts
CHANGED
|
@@ -2514,6 +2514,87 @@ export interface paths {
|
|
|
2514
2514
|
patch?: never;
|
|
2515
2515
|
trace?: never;
|
|
2516
2516
|
};
|
|
2517
|
+
"/agents/{id}/baked-marketplaces": {
|
|
2518
|
+
parameters: {
|
|
2519
|
+
query?: never;
|
|
2520
|
+
header?: never;
|
|
2521
|
+
path?: never;
|
|
2522
|
+
cookie?: never;
|
|
2523
|
+
};
|
|
2524
|
+
get?: never;
|
|
2525
|
+
/**
|
|
2526
|
+
* Report the marketplaces baked into the agent's image
|
|
2527
|
+
* @description Runtime-only report, authenticated with the agent's own key. Overwrites the stored list of baked marketplace names (the image's current state); it is exposed read-only as `bakedMarketplaces` on GET /agents/{id}. Other callers, including another agent's key, get 403.
|
|
2528
|
+
*/
|
|
2529
|
+
put: {
|
|
2530
|
+
parameters: {
|
|
2531
|
+
query?: never;
|
|
2532
|
+
header?: never;
|
|
2533
|
+
path: {
|
|
2534
|
+
id: string;
|
|
2535
|
+
};
|
|
2536
|
+
cookie?: never;
|
|
2537
|
+
};
|
|
2538
|
+
requestBody?: {
|
|
2539
|
+
content: {
|
|
2540
|
+
"application/json": components["schemas"]["PutBakedMarketplacesBody"];
|
|
2541
|
+
};
|
|
2542
|
+
};
|
|
2543
|
+
responses: {
|
|
2544
|
+
/** @description Baked marketplaces stored */
|
|
2545
|
+
200: {
|
|
2546
|
+
headers: {
|
|
2547
|
+
[name: string]: unknown;
|
|
2548
|
+
};
|
|
2549
|
+
content: {
|
|
2550
|
+
"application/json": components["schemas"]["BakedMarketplacesResult"];
|
|
2551
|
+
};
|
|
2552
|
+
};
|
|
2553
|
+
/** @description Bad request */
|
|
2554
|
+
400: {
|
|
2555
|
+
headers: {
|
|
2556
|
+
[name: string]: unknown;
|
|
2557
|
+
};
|
|
2558
|
+
content: {
|
|
2559
|
+
"application/json": components["schemas"]["Error"];
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
/** @description Unauthorized */
|
|
2563
|
+
401: {
|
|
2564
|
+
headers: {
|
|
2565
|
+
[name: string]: unknown;
|
|
2566
|
+
};
|
|
2567
|
+
content: {
|
|
2568
|
+
"application/json": components["schemas"]["Error"];
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
/** @description Forbidden — only the agent's own key may report */
|
|
2572
|
+
403: {
|
|
2573
|
+
headers: {
|
|
2574
|
+
[name: string]: unknown;
|
|
2575
|
+
};
|
|
2576
|
+
content: {
|
|
2577
|
+
"application/json": components["schemas"]["Error"];
|
|
2578
|
+
};
|
|
2579
|
+
};
|
|
2580
|
+
/** @description Agent not found */
|
|
2581
|
+
404: {
|
|
2582
|
+
headers: {
|
|
2583
|
+
[name: string]: unknown;
|
|
2584
|
+
};
|
|
2585
|
+
content: {
|
|
2586
|
+
"application/json": components["schemas"]["Error"];
|
|
2587
|
+
};
|
|
2588
|
+
};
|
|
2589
|
+
};
|
|
2590
|
+
};
|
|
2591
|
+
post?: never;
|
|
2592
|
+
delete?: never;
|
|
2593
|
+
options?: never;
|
|
2594
|
+
head?: never;
|
|
2595
|
+
patch?: never;
|
|
2596
|
+
trace?: never;
|
|
2597
|
+
};
|
|
2517
2598
|
"/agents/{id}/github-installations": {
|
|
2518
2599
|
parameters: {
|
|
2519
2600
|
query?: never;
|
|
@@ -3325,6 +3406,11 @@ export interface components {
|
|
|
3325
3406
|
trialExpiresAt?: string | null;
|
|
3326
3407
|
/** Format: date-time */
|
|
3327
3408
|
trialExpiryWarnedAt?: string | null;
|
|
3409
|
+
/** @example [
|
|
3410
|
+
* "vitals-os",
|
|
3411
|
+
* "shipwright"
|
|
3412
|
+
* ] */
|
|
3413
|
+
bakedMarketplaces?: string[];
|
|
3328
3414
|
/** @example true */
|
|
3329
3415
|
autoPostReviews: boolean;
|
|
3330
3416
|
/** @example false */
|
|
@@ -4345,6 +4431,23 @@ export interface components {
|
|
|
4345
4431
|
*/
|
|
4346
4432
|
error?: "not_found" | "forbidden" | "rate_limited" | "network";
|
|
4347
4433
|
};
|
|
4434
|
+
PutBakedMarketplacesBody: {
|
|
4435
|
+
/**
|
|
4436
|
+
* @example [
|
|
4437
|
+
* "vitals-os",
|
|
4438
|
+
* "shipwright"
|
|
4439
|
+
* ]
|
|
4440
|
+
*/
|
|
4441
|
+
names: string[];
|
|
4442
|
+
};
|
|
4443
|
+
BakedMarketplacesResult: {
|
|
4444
|
+
/**
|
|
4445
|
+
* @example [
|
|
4446
|
+
* "vitals-os"
|
|
4447
|
+
* ]
|
|
4448
|
+
*/
|
|
4449
|
+
bakedMarketplaces: string[];
|
|
4450
|
+
};
|
|
4348
4451
|
PutGitHubInstallationsBody: {
|
|
4349
4452
|
/**
|
|
4350
4453
|
* Format: date-time
|