@tai42/api-client 0.2.0 → 0.4.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/client.d.ts +103 -26
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +33 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +363 -61
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +118 -18
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +73 -11
- package/src/index.ts +9 -0
- package/src/schemas.ts +144 -25
package/dist/schemas.d.ts
CHANGED
|
@@ -78,30 +78,39 @@ export declare const toolMediaResult: z.ZodEffects<z.ZodObject<{
|
|
|
78
78
|
}>;
|
|
79
79
|
export type ToolMediaResult = z.infer<typeof toolMediaResult>;
|
|
80
80
|
/**
|
|
81
|
-
* The ADDITIVE per-tool native
|
|
82
|
-
* flat `toolNames` contract (`GET /api/tools`, unchanged):
|
|
83
|
-
* tool's FastMCP `tags` —
|
|
84
|
-
* `
|
|
81
|
+
* The ADDITIVE per-tool native surface (`GET /api/tools/tags`). Distinct from the
|
|
82
|
+
* flat `toolNames` contract (`GET /api/tools`, unchanged): each entry carries the
|
|
83
|
+
* tool's read-only FastMCP `tags` — so the shared `ToolPicker` can group/filter its
|
|
84
|
+
* options — plus `hidden`, the tool's OWN plugin-declared visibility (read from the
|
|
85
|
+
* FastMCP `meta` under `tai42/hidden`; a tool that never declared it is not hidden).
|
|
86
|
+
* The tool_meta overlay's tri-state override is merged on top client-side; this read
|
|
87
|
+
* exposes only the declaration.
|
|
85
88
|
*/
|
|
86
89
|
export declare const toolTagEntry: z.ZodObject<{
|
|
87
90
|
name: z.ZodString;
|
|
88
91
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
92
|
+
hidden: z.ZodBoolean;
|
|
89
93
|
}, "strip", z.ZodTypeAny, {
|
|
90
94
|
name: string;
|
|
91
95
|
tags: string[];
|
|
96
|
+
hidden: boolean;
|
|
92
97
|
}, {
|
|
93
98
|
name: string;
|
|
94
99
|
tags: string[];
|
|
100
|
+
hidden: boolean;
|
|
95
101
|
}>;
|
|
96
102
|
export declare const toolTags: z.ZodArray<z.ZodObject<{
|
|
97
103
|
name: z.ZodString;
|
|
98
104
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
105
|
+
hidden: z.ZodBoolean;
|
|
99
106
|
}, "strip", z.ZodTypeAny, {
|
|
100
107
|
name: string;
|
|
101
108
|
tags: string[];
|
|
109
|
+
hidden: boolean;
|
|
102
110
|
}, {
|
|
103
111
|
name: string;
|
|
104
112
|
tags: string[];
|
|
113
|
+
hidden: boolean;
|
|
105
114
|
}>, "many">;
|
|
106
115
|
export type ToolTagEntry = z.infer<typeof toolTagEntry>;
|
|
107
116
|
export declare const extension: z.ZodObject<{
|
|
@@ -208,9 +217,9 @@ export declare const presetExtensions: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodSt
|
|
|
208
217
|
* One preset as `GET /api/presets` returns it. Every preset is versioned, so
|
|
209
218
|
* `active_version` is always an int; `conflicted` marks a QUARANTINED row (its
|
|
210
219
|
* name collided with a foreign tool at boot — delete-only). `extensions` are the
|
|
211
|
-
* ACTIVE version's extension combos
|
|
212
|
-
*
|
|
213
|
-
*
|
|
220
|
+
* ACTIVE version's extension combos and `output_schema` the optional author-set
|
|
221
|
+
* output JSON Schema. Categorization tags live in the tool_meta overlay
|
|
222
|
+
* (`GET /api/tool-meta`), never on the record. A drift throws `ApiSchemaError`;
|
|
214
223
|
* nothing is coerced.
|
|
215
224
|
*/
|
|
216
225
|
export declare const presetRecord: z.ZodObject<{
|
|
@@ -218,7 +227,6 @@ export declare const presetRecord: z.ZodObject<{
|
|
|
218
227
|
base_tool: z.ZodString;
|
|
219
228
|
description: z.ZodString;
|
|
220
229
|
active_version: z.ZodNumber;
|
|
221
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
222
230
|
extensions: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
223
231
|
name: z.ZodString;
|
|
224
232
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -235,7 +243,6 @@ export declare const presetRecord: z.ZodObject<{
|
|
|
235
243
|
}, "strip", z.ZodTypeAny, {
|
|
236
244
|
name: string;
|
|
237
245
|
description: string;
|
|
238
|
-
tags: string[];
|
|
239
246
|
base_tool: string;
|
|
240
247
|
active_version: number;
|
|
241
248
|
extensions: (string | {
|
|
@@ -248,7 +255,6 @@ export declare const presetRecord: z.ZodObject<{
|
|
|
248
255
|
}, {
|
|
249
256
|
name: string;
|
|
250
257
|
description: string;
|
|
251
|
-
tags: string[];
|
|
252
258
|
base_tool: string;
|
|
253
259
|
active_version: number;
|
|
254
260
|
extensions: (string | {
|
|
@@ -265,7 +271,6 @@ export declare const presetList: z.ZodArray<z.ZodObject<{
|
|
|
265
271
|
base_tool: z.ZodString;
|
|
266
272
|
description: z.ZodString;
|
|
267
273
|
active_version: z.ZodNumber;
|
|
268
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
269
274
|
extensions: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
270
275
|
name: z.ZodString;
|
|
271
276
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -282,7 +287,6 @@ export declare const presetList: z.ZodArray<z.ZodObject<{
|
|
|
282
287
|
}, "strip", z.ZodTypeAny, {
|
|
283
288
|
name: string;
|
|
284
289
|
description: string;
|
|
285
|
-
tags: string[];
|
|
286
290
|
base_tool: string;
|
|
287
291
|
active_version: number;
|
|
288
292
|
extensions: (string | {
|
|
@@ -295,7 +299,6 @@ export declare const presetList: z.ZodArray<z.ZodObject<{
|
|
|
295
299
|
}, {
|
|
296
300
|
name: string;
|
|
297
301
|
description: string;
|
|
298
|
-
tags: string[];
|
|
299
302
|
base_tool: string;
|
|
300
303
|
active_version: number;
|
|
301
304
|
extensions: (string | {
|
|
@@ -312,7 +315,6 @@ export declare const presetDetail: z.ZodObject<{
|
|
|
312
315
|
base_tool: z.ZodString;
|
|
313
316
|
description: z.ZodString;
|
|
314
317
|
active_version: z.ZodNumber;
|
|
315
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
316
318
|
extensions: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
317
319
|
name: z.ZodString;
|
|
318
320
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -331,7 +333,6 @@ export declare const presetDetail: z.ZodObject<{
|
|
|
331
333
|
}, "strip", z.ZodTypeAny, {
|
|
332
334
|
name: string;
|
|
333
335
|
description: string;
|
|
334
|
-
tags: string[];
|
|
335
336
|
base_tool: string;
|
|
336
337
|
active_version: number;
|
|
337
338
|
extensions: (string | {
|
|
@@ -345,7 +346,6 @@ export declare const presetDetail: z.ZodObject<{
|
|
|
345
346
|
}, {
|
|
346
347
|
name: string;
|
|
347
348
|
description: string;
|
|
348
|
-
tags: string[];
|
|
349
349
|
base_tool: string;
|
|
350
350
|
active_version: number;
|
|
351
351
|
extensions: (string | {
|
|
@@ -373,11 +373,9 @@ export declare const presetBody: z.ZodObject<{
|
|
|
373
373
|
name: string;
|
|
374
374
|
config: Record<string, unknown>;
|
|
375
375
|
}>]>, "many">, "many">;
|
|
376
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
377
376
|
output_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
377
|
}, "strip", z.ZodTypeAny, {
|
|
379
378
|
description: string;
|
|
380
|
-
tags: string[];
|
|
381
379
|
base_tool: string;
|
|
382
380
|
extensions: (string | {
|
|
383
381
|
name: string;
|
|
@@ -387,7 +385,6 @@ export declare const presetBody: z.ZodObject<{
|
|
|
387
385
|
fixed_kwargs: Record<string, unknown>;
|
|
388
386
|
}, {
|
|
389
387
|
description: string;
|
|
390
|
-
tags: string[];
|
|
391
388
|
base_tool: string;
|
|
392
389
|
extensions: (string | {
|
|
393
390
|
name: string;
|
|
@@ -400,7 +397,8 @@ export type PresetBody = z.infer<typeof presetBody>;
|
|
|
400
397
|
/**
|
|
401
398
|
* One immutable version row (`GET /api/presets/{name}/versions[/{version}]`).
|
|
402
399
|
* `is_current` flags the active version; `tags` here is the GENERIC per-version
|
|
403
|
-
* label list (kind-agnostic), distinct from the
|
|
400
|
+
* label list (kind-agnostic) — the only preset tags that remain, distinct from the
|
|
401
|
+
* removed record-level categorization and from the tool_meta overlay.
|
|
404
402
|
*/
|
|
405
403
|
export declare const presetVersion: z.ZodObject<{
|
|
406
404
|
version: z.ZodNumber;
|
|
@@ -418,11 +416,9 @@ export declare const presetVersion: z.ZodObject<{
|
|
|
418
416
|
name: string;
|
|
419
417
|
config: Record<string, unknown>;
|
|
420
418
|
}>]>, "many">, "many">;
|
|
421
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
422
419
|
output_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
423
420
|
}, "strip", z.ZodTypeAny, {
|
|
424
421
|
description: string;
|
|
425
|
-
tags: string[];
|
|
426
422
|
base_tool: string;
|
|
427
423
|
extensions: (string | {
|
|
428
424
|
name: string;
|
|
@@ -432,7 +428,6 @@ export declare const presetVersion: z.ZodObject<{
|
|
|
432
428
|
fixed_kwargs: Record<string, unknown>;
|
|
433
429
|
}, {
|
|
434
430
|
description: string;
|
|
435
|
-
tags: string[];
|
|
436
431
|
base_tool: string;
|
|
437
432
|
extensions: (string | {
|
|
438
433
|
name: string;
|
|
@@ -449,7 +444,6 @@ export declare const presetVersion: z.ZodObject<{
|
|
|
449
444
|
version: number;
|
|
450
445
|
body: {
|
|
451
446
|
description: string;
|
|
452
|
-
tags: string[];
|
|
453
447
|
base_tool: string;
|
|
454
448
|
extensions: (string | {
|
|
455
449
|
name: string;
|
|
@@ -465,7 +459,6 @@ export declare const presetVersion: z.ZodObject<{
|
|
|
465
459
|
version: number;
|
|
466
460
|
body: {
|
|
467
461
|
description: string;
|
|
468
|
-
tags: string[];
|
|
469
462
|
base_tool: string;
|
|
470
463
|
extensions: (string | {
|
|
471
464
|
name: string;
|
|
@@ -494,11 +487,9 @@ export declare const presetVersionList: z.ZodArray<z.ZodObject<{
|
|
|
494
487
|
name: string;
|
|
495
488
|
config: Record<string, unknown>;
|
|
496
489
|
}>]>, "many">, "many">;
|
|
497
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
498
490
|
output_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
499
491
|
}, "strip", z.ZodTypeAny, {
|
|
500
492
|
description: string;
|
|
501
|
-
tags: string[];
|
|
502
493
|
base_tool: string;
|
|
503
494
|
extensions: (string | {
|
|
504
495
|
name: string;
|
|
@@ -508,7 +499,6 @@ export declare const presetVersionList: z.ZodArray<z.ZodObject<{
|
|
|
508
499
|
fixed_kwargs: Record<string, unknown>;
|
|
509
500
|
}, {
|
|
510
501
|
description: string;
|
|
511
|
-
tags: string[];
|
|
512
502
|
base_tool: string;
|
|
513
503
|
extensions: (string | {
|
|
514
504
|
name: string;
|
|
@@ -525,7 +515,6 @@ export declare const presetVersionList: z.ZodArray<z.ZodObject<{
|
|
|
525
515
|
version: number;
|
|
526
516
|
body: {
|
|
527
517
|
description: string;
|
|
528
|
-
tags: string[];
|
|
529
518
|
base_tool: string;
|
|
530
519
|
extensions: (string | {
|
|
531
520
|
name: string;
|
|
@@ -541,7 +530,6 @@ export declare const presetVersionList: z.ZodArray<z.ZodObject<{
|
|
|
541
530
|
version: number;
|
|
542
531
|
body: {
|
|
543
532
|
description: string;
|
|
544
|
-
tags: string[];
|
|
545
533
|
base_tool: string;
|
|
546
534
|
extensions: (string | {
|
|
547
535
|
name: string;
|
|
@@ -644,6 +632,141 @@ export declare const presetVersionTags: z.ZodObject<{
|
|
|
644
632
|
version: number;
|
|
645
633
|
}>;
|
|
646
634
|
export type PresetVersionTags = z.infer<typeof presetVersionTags>;
|
|
635
|
+
/**
|
|
636
|
+
* One folder in the tool-organization tree (`tool_folders`). `parent_id` is `null`
|
|
637
|
+
* for a root folder and otherwise the containing folder's `id`; nesting is endless
|
|
638
|
+
* via the parent chain. Ids are UUID strings. A drift throws `ApiSchemaError`.
|
|
639
|
+
*/
|
|
640
|
+
export declare const folderRecord: z.ZodObject<{
|
|
641
|
+
id: z.ZodString;
|
|
642
|
+
name: z.ZodString;
|
|
643
|
+
parent_id: z.ZodNullable<z.ZodString>;
|
|
644
|
+
}, "strip", z.ZodTypeAny, {
|
|
645
|
+
name: string;
|
|
646
|
+
id: string;
|
|
647
|
+
parent_id: string | null;
|
|
648
|
+
}, {
|
|
649
|
+
name: string;
|
|
650
|
+
id: string;
|
|
651
|
+
parent_id: string | null;
|
|
652
|
+
}>;
|
|
653
|
+
export type FolderRecord = z.infer<typeof folderRecord>;
|
|
654
|
+
/**
|
|
655
|
+
* The organizational overlay for one tool, keyed by `tool_name`. `display_name`
|
|
656
|
+
* overrides the rendered label (`display_name ?? name`); `folder_id` places the tool
|
|
657
|
+
* in a folder (`null` = unfiled); `tags` is the user's editable categorization,
|
|
658
|
+
* merged with the tool's read-only native tags by the UI; `hidden` is TRI-STATE —
|
|
659
|
+
* `null` = defer to the plugin declaration, `true` = force hidden, `false` = force
|
|
660
|
+
* visible. A drift throws `ApiSchemaError`.
|
|
661
|
+
*/
|
|
662
|
+
export declare const toolMetaRecord: z.ZodObject<{
|
|
663
|
+
tool_name: z.ZodString;
|
|
664
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
665
|
+
folder_id: z.ZodNullable<z.ZodString>;
|
|
666
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
667
|
+
hidden: z.ZodNullable<z.ZodBoolean>;
|
|
668
|
+
}, "strip", z.ZodTypeAny, {
|
|
669
|
+
tool_name: string;
|
|
670
|
+
tags: string[];
|
|
671
|
+
hidden: boolean | null;
|
|
672
|
+
display_name: string | null;
|
|
673
|
+
folder_id: string | null;
|
|
674
|
+
}, {
|
|
675
|
+
tool_name: string;
|
|
676
|
+
tags: string[];
|
|
677
|
+
hidden: boolean | null;
|
|
678
|
+
display_name: string | null;
|
|
679
|
+
folder_id: string | null;
|
|
680
|
+
}>;
|
|
681
|
+
export type ToolMetaRecord = z.infer<typeof toolMetaRecord>;
|
|
682
|
+
/**
|
|
683
|
+
* `GET /api/tool-meta` — the whole overlay in one read: the flat folder tree plus
|
|
684
|
+
* every per-tool row. The UI builds the tree and merges the rows against the live
|
|
685
|
+
* tool list client-side. A drift throws `ApiSchemaError`.
|
|
686
|
+
*/
|
|
687
|
+
export declare const toolMetaOverlay: z.ZodObject<{
|
|
688
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
689
|
+
id: z.ZodString;
|
|
690
|
+
name: z.ZodString;
|
|
691
|
+
parent_id: z.ZodNullable<z.ZodString>;
|
|
692
|
+
}, "strip", z.ZodTypeAny, {
|
|
693
|
+
name: string;
|
|
694
|
+
id: string;
|
|
695
|
+
parent_id: string | null;
|
|
696
|
+
}, {
|
|
697
|
+
name: string;
|
|
698
|
+
id: string;
|
|
699
|
+
parent_id: string | null;
|
|
700
|
+
}>, "many">;
|
|
701
|
+
meta: z.ZodArray<z.ZodObject<{
|
|
702
|
+
tool_name: z.ZodString;
|
|
703
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
704
|
+
folder_id: z.ZodNullable<z.ZodString>;
|
|
705
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
706
|
+
hidden: z.ZodNullable<z.ZodBoolean>;
|
|
707
|
+
}, "strip", z.ZodTypeAny, {
|
|
708
|
+
tool_name: string;
|
|
709
|
+
tags: string[];
|
|
710
|
+
hidden: boolean | null;
|
|
711
|
+
display_name: string | null;
|
|
712
|
+
folder_id: string | null;
|
|
713
|
+
}, {
|
|
714
|
+
tool_name: string;
|
|
715
|
+
tags: string[];
|
|
716
|
+
hidden: boolean | null;
|
|
717
|
+
display_name: string | null;
|
|
718
|
+
folder_id: string | null;
|
|
719
|
+
}>, "many">;
|
|
720
|
+
}, "strip", z.ZodTypeAny, {
|
|
721
|
+
folders: {
|
|
722
|
+
name: string;
|
|
723
|
+
id: string;
|
|
724
|
+
parent_id: string | null;
|
|
725
|
+
}[];
|
|
726
|
+
meta: {
|
|
727
|
+
tool_name: string;
|
|
728
|
+
tags: string[];
|
|
729
|
+
hidden: boolean | null;
|
|
730
|
+
display_name: string | null;
|
|
731
|
+
folder_id: string | null;
|
|
732
|
+
}[];
|
|
733
|
+
}, {
|
|
734
|
+
folders: {
|
|
735
|
+
name: string;
|
|
736
|
+
id: string;
|
|
737
|
+
parent_id: string | null;
|
|
738
|
+
}[];
|
|
739
|
+
meta: {
|
|
740
|
+
tool_name: string;
|
|
741
|
+
tags: string[];
|
|
742
|
+
hidden: boolean | null;
|
|
743
|
+
display_name: string | null;
|
|
744
|
+
folder_id: string | null;
|
|
745
|
+
}[];
|
|
746
|
+
}>;
|
|
747
|
+
export type ToolMetaOverlay = z.infer<typeof toolMetaOverlay>;
|
|
748
|
+
/** `DELETE /api/tool-meta/tools/{tool_name}` — the dropped overlay row (idempotent). */
|
|
749
|
+
export declare const toolMetaDeleted: z.ZodObject<{
|
|
750
|
+
tool_name: z.ZodString;
|
|
751
|
+
deleted: z.ZodLiteral<true>;
|
|
752
|
+
}, "strip", z.ZodTypeAny, {
|
|
753
|
+
tool_name: string;
|
|
754
|
+
deleted: true;
|
|
755
|
+
}, {
|
|
756
|
+
tool_name: string;
|
|
757
|
+
deleted: true;
|
|
758
|
+
}>;
|
|
759
|
+
/** `DELETE /api/tool-meta/folders/{folder_id}` — the removed empty folder. */
|
|
760
|
+
export declare const folderDeleted: z.ZodObject<{
|
|
761
|
+
folder_id: z.ZodString;
|
|
762
|
+
deleted: z.ZodLiteral<true>;
|
|
763
|
+
}, "strip", z.ZodTypeAny, {
|
|
764
|
+
deleted: true;
|
|
765
|
+
folder_id: string;
|
|
766
|
+
}, {
|
|
767
|
+
deleted: true;
|
|
768
|
+
folder_id: string;
|
|
769
|
+
}>;
|
|
647
770
|
export declare const templateNames: z.ZodArray<z.ZodString, "many">;
|
|
648
771
|
export declare const templateDetail: z.ZodObject<{
|
|
649
772
|
template: z.ZodString;
|
|
@@ -1756,8 +1879,8 @@ export declare const providerView: z.ZodObject<{
|
|
|
1756
1879
|
description: string;
|
|
1757
1880
|
kind: "oauth" | "none";
|
|
1758
1881
|
id: string;
|
|
1759
|
-
origin: "system" | "community";
|
|
1760
1882
|
display_name: string;
|
|
1883
|
+
origin: "system" | "community";
|
|
1761
1884
|
icon_url: string;
|
|
1762
1885
|
category: string;
|
|
1763
1886
|
sub_services: {
|
|
@@ -1777,8 +1900,8 @@ export declare const providerView: z.ZodObject<{
|
|
|
1777
1900
|
description: string;
|
|
1778
1901
|
kind: "oauth" | "none";
|
|
1779
1902
|
id: string;
|
|
1780
|
-
origin: "system" | "community";
|
|
1781
1903
|
display_name: string;
|
|
1904
|
+
origin: "system" | "community";
|
|
1782
1905
|
icon_url: string;
|
|
1783
1906
|
category: string;
|
|
1784
1907
|
sub_services: {
|
|
@@ -1842,8 +1965,8 @@ export declare const providers: z.ZodArray<z.ZodObject<{
|
|
|
1842
1965
|
description: string;
|
|
1843
1966
|
kind: "oauth" | "none";
|
|
1844
1967
|
id: string;
|
|
1845
|
-
origin: "system" | "community";
|
|
1846
1968
|
display_name: string;
|
|
1969
|
+
origin: "system" | "community";
|
|
1847
1970
|
icon_url: string;
|
|
1848
1971
|
category: string;
|
|
1849
1972
|
sub_services: {
|
|
@@ -1863,8 +1986,8 @@ export declare const providers: z.ZodArray<z.ZodObject<{
|
|
|
1863
1986
|
description: string;
|
|
1864
1987
|
kind: "oauth" | "none";
|
|
1865
1988
|
id: string;
|
|
1866
|
-
origin: "system" | "community";
|
|
1867
1989
|
display_name: string;
|
|
1990
|
+
origin: "system" | "community";
|
|
1868
1991
|
icon_url: string;
|
|
1869
1992
|
category: string;
|
|
1870
1993
|
sub_services: {
|
|
@@ -5862,12 +5985,34 @@ export declare const marketplacePluginDetail: z.ZodObject<{
|
|
|
5862
5985
|
} | null;
|
|
5863
5986
|
}>;
|
|
5864
5987
|
export type MarketplacePluginDetail = z.infer<typeof marketplacePluginDetail>;
|
|
5988
|
+
/**
|
|
5989
|
+
* One installed plugin's compat verdict against the RUNNING tai42-contract:
|
|
5990
|
+
* `compatible` / `incompatible` per its declared contract range, `unknown` when
|
|
5991
|
+
* no verdict could be computed. `reason` is the human-readable explanation of a
|
|
5992
|
+
* non-`compatible` verdict, `null` when compatible. CLOSED (`.strict()`): the
|
|
5993
|
+
* server is built against exactly this shape, so an unknown key is drift and
|
|
5994
|
+
* throws instead of being stripped.
|
|
5995
|
+
*/
|
|
5996
|
+
export declare const marketplaceInstalledCompat: z.ZodObject<{
|
|
5997
|
+
status: z.ZodEnum<["compatible", "incompatible", "unknown"]>;
|
|
5998
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
5999
|
+
}, "strict", z.ZodTypeAny, {
|
|
6000
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6001
|
+
reason: string | null;
|
|
6002
|
+
}, {
|
|
6003
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6004
|
+
reason: string | null;
|
|
6005
|
+
}>;
|
|
6006
|
+
export type MarketplaceInstalledCompat = z.infer<typeof marketplaceInstalledCompat>;
|
|
5865
6007
|
/**
|
|
5866
6008
|
* One installed marketplace plugin as the local attribution store records it.
|
|
5867
|
-
* `latest` is the newest registry version (`null` when unknown);
|
|
5868
|
-
*
|
|
5869
|
-
*
|
|
5870
|
-
*
|
|
6009
|
+
* `latest` is the newest registry version (`null` when unknown);
|
|
6010
|
+
* `update_available` advertises only a newer COMPATIBLE version, and
|
|
6011
|
+
* `incompatible_newer` names the newest version blocked by the running
|
|
6012
|
+
* contract (`null` when none), so "an update exists but needs a newer core" is
|
|
6013
|
+
* visible. `missing_upstream` flags a plugin the registry no longer lists.
|
|
6014
|
+
* `compat` is the row's verdict against the running contract. CLOSED, like
|
|
6015
|
+
* every shape of the installed listing.
|
|
5871
6016
|
*/
|
|
5872
6017
|
export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
5873
6018
|
ref: z.ZodString;
|
|
@@ -5876,15 +6021,31 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
|
5876
6021
|
installed_at: z.ZodString;
|
|
5877
6022
|
latest: z.ZodNullable<z.ZodString>;
|
|
5878
6023
|
update_available: z.ZodBoolean;
|
|
6024
|
+
incompatible_newer: z.ZodNullable<z.ZodString>;
|
|
5879
6025
|
missing_upstream: z.ZodBoolean;
|
|
5880
|
-
|
|
6026
|
+
compat: z.ZodObject<{
|
|
6027
|
+
status: z.ZodEnum<["compatible", "incompatible", "unknown"]>;
|
|
6028
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6029
|
+
}, "strict", z.ZodTypeAny, {
|
|
6030
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6031
|
+
reason: string | null;
|
|
6032
|
+
}, {
|
|
6033
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6034
|
+
reason: string | null;
|
|
6035
|
+
}>;
|
|
6036
|
+
}, "strict", z.ZodTypeAny, {
|
|
5881
6037
|
version: string;
|
|
5882
6038
|
ref: string;
|
|
5883
6039
|
latest: string | null;
|
|
5884
6040
|
source: string;
|
|
5885
6041
|
installed_at: string;
|
|
5886
6042
|
update_available: boolean;
|
|
6043
|
+
incompatible_newer: string | null;
|
|
5887
6044
|
missing_upstream: boolean;
|
|
6045
|
+
compat: {
|
|
6046
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6047
|
+
reason: string | null;
|
|
6048
|
+
};
|
|
5888
6049
|
}, {
|
|
5889
6050
|
version: string;
|
|
5890
6051
|
ref: string;
|
|
@@ -5892,34 +6053,175 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
|
5892
6053
|
source: string;
|
|
5893
6054
|
installed_at: string;
|
|
5894
6055
|
update_available: boolean;
|
|
6056
|
+
incompatible_newer: string | null;
|
|
5895
6057
|
missing_upstream: boolean;
|
|
6058
|
+
compat: {
|
|
6059
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6060
|
+
reason: string | null;
|
|
6061
|
+
};
|
|
5896
6062
|
}>;
|
|
5897
|
-
export
|
|
6063
|
+
export type MarketplaceInstalledPlugin = z.infer<typeof marketplaceInstalledPlugin>;
|
|
6064
|
+
/** One plugin the boot pass quarantined instead of loading, with why. CLOSED. */
|
|
6065
|
+
export declare const marketplaceQuarantinedPlugin: z.ZodObject<{
|
|
6066
|
+
name: z.ZodString;
|
|
6067
|
+
reason: z.ZodString;
|
|
6068
|
+
}, "strict", z.ZodTypeAny, {
|
|
6069
|
+
name: string;
|
|
6070
|
+
reason: string;
|
|
6071
|
+
}, {
|
|
6072
|
+
name: string;
|
|
6073
|
+
reason: string;
|
|
6074
|
+
}>;
|
|
6075
|
+
export type MarketplaceQuarantinedPlugin = z.infer<typeof marketplaceQuarantinedPlugin>;
|
|
6076
|
+
/**
|
|
6077
|
+
* The installed inventory (`GET /api/marketplace/installed`): the attributed
|
|
6078
|
+
* rows plus every plugin the boot pass quarantined instead of loading. CLOSED.
|
|
6079
|
+
*/
|
|
6080
|
+
export declare const marketplaceInstalled: z.ZodObject<{
|
|
6081
|
+
installed: z.ZodArray<z.ZodObject<{
|
|
6082
|
+
ref: z.ZodString;
|
|
6083
|
+
version: z.ZodString;
|
|
6084
|
+
source: z.ZodString;
|
|
6085
|
+
installed_at: z.ZodString;
|
|
6086
|
+
latest: z.ZodNullable<z.ZodString>;
|
|
6087
|
+
update_available: z.ZodBoolean;
|
|
6088
|
+
incompatible_newer: z.ZodNullable<z.ZodString>;
|
|
6089
|
+
missing_upstream: z.ZodBoolean;
|
|
6090
|
+
compat: z.ZodObject<{
|
|
6091
|
+
status: z.ZodEnum<["compatible", "incompatible", "unknown"]>;
|
|
6092
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6093
|
+
}, "strict", z.ZodTypeAny, {
|
|
6094
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6095
|
+
reason: string | null;
|
|
6096
|
+
}, {
|
|
6097
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6098
|
+
reason: string | null;
|
|
6099
|
+
}>;
|
|
6100
|
+
}, "strict", z.ZodTypeAny, {
|
|
6101
|
+
version: string;
|
|
6102
|
+
ref: string;
|
|
6103
|
+
latest: string | null;
|
|
6104
|
+
source: string;
|
|
6105
|
+
installed_at: string;
|
|
6106
|
+
update_available: boolean;
|
|
6107
|
+
incompatible_newer: string | null;
|
|
6108
|
+
missing_upstream: boolean;
|
|
6109
|
+
compat: {
|
|
6110
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6111
|
+
reason: string | null;
|
|
6112
|
+
};
|
|
6113
|
+
}, {
|
|
6114
|
+
version: string;
|
|
6115
|
+
ref: string;
|
|
6116
|
+
latest: string | null;
|
|
6117
|
+
source: string;
|
|
6118
|
+
installed_at: string;
|
|
6119
|
+
update_available: boolean;
|
|
6120
|
+
incompatible_newer: string | null;
|
|
6121
|
+
missing_upstream: boolean;
|
|
6122
|
+
compat: {
|
|
6123
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6124
|
+
reason: string | null;
|
|
6125
|
+
};
|
|
6126
|
+
}>, "many">;
|
|
6127
|
+
quarantined: z.ZodArray<z.ZodObject<{
|
|
6128
|
+
name: z.ZodString;
|
|
6129
|
+
reason: z.ZodString;
|
|
6130
|
+
}, "strict", z.ZodTypeAny, {
|
|
6131
|
+
name: string;
|
|
6132
|
+
reason: string;
|
|
6133
|
+
}, {
|
|
6134
|
+
name: string;
|
|
6135
|
+
reason: string;
|
|
6136
|
+
}>, "many">;
|
|
6137
|
+
}, "strict", z.ZodTypeAny, {
|
|
6138
|
+
installed: {
|
|
6139
|
+
version: string;
|
|
6140
|
+
ref: string;
|
|
6141
|
+
latest: string | null;
|
|
6142
|
+
source: string;
|
|
6143
|
+
installed_at: string;
|
|
6144
|
+
update_available: boolean;
|
|
6145
|
+
incompatible_newer: string | null;
|
|
6146
|
+
missing_upstream: boolean;
|
|
6147
|
+
compat: {
|
|
6148
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6149
|
+
reason: string | null;
|
|
6150
|
+
};
|
|
6151
|
+
}[];
|
|
6152
|
+
quarantined: {
|
|
6153
|
+
name: string;
|
|
6154
|
+
reason: string;
|
|
6155
|
+
}[];
|
|
6156
|
+
}, {
|
|
6157
|
+
installed: {
|
|
6158
|
+
version: string;
|
|
6159
|
+
ref: string;
|
|
6160
|
+
latest: string | null;
|
|
6161
|
+
source: string;
|
|
6162
|
+
installed_at: string;
|
|
6163
|
+
update_available: boolean;
|
|
6164
|
+
incompatible_newer: string | null;
|
|
6165
|
+
missing_upstream: boolean;
|
|
6166
|
+
compat: {
|
|
6167
|
+
status: "unknown" | "compatible" | "incompatible";
|
|
6168
|
+
reason: string | null;
|
|
6169
|
+
};
|
|
6170
|
+
}[];
|
|
6171
|
+
quarantined: {
|
|
6172
|
+
name: string;
|
|
6173
|
+
reason: string;
|
|
6174
|
+
}[];
|
|
6175
|
+
}>;
|
|
6176
|
+
export type MarketplaceInstalled = z.infer<typeof marketplaceInstalled>;
|
|
6177
|
+
/**
|
|
6178
|
+
* One per-plugin outcome of `POST /api/marketplace/upgrade-all`: `upgraded`,
|
|
6179
|
+
* already `up-to-date`, `no-compatible-version` in the registry, or `failed`;
|
|
6180
|
+
* `detail` always carries the human-readable specifics. CLOSED.
|
|
6181
|
+
*/
|
|
6182
|
+
export declare const marketplaceUpgradeAllRow: z.ZodObject<{
|
|
5898
6183
|
ref: z.ZodString;
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
missing_upstream: z.ZodBoolean;
|
|
5905
|
-
}, "strip", z.ZodTypeAny, {
|
|
5906
|
-
version: string;
|
|
6184
|
+
outcome: z.ZodEnum<["upgraded", "up-to-date", "no-compatible-version", "failed"]>;
|
|
6185
|
+
detail: z.ZodString;
|
|
6186
|
+
}, "strict", z.ZodTypeAny, {
|
|
6187
|
+
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
6188
|
+
detail: string;
|
|
5907
6189
|
ref: string;
|
|
5908
|
-
latest: string | null;
|
|
5909
|
-
source: string;
|
|
5910
|
-
installed_at: string;
|
|
5911
|
-
update_available: boolean;
|
|
5912
|
-
missing_upstream: boolean;
|
|
5913
6190
|
}, {
|
|
5914
|
-
|
|
6191
|
+
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
6192
|
+
detail: string;
|
|
5915
6193
|
ref: string;
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
6194
|
+
}>;
|
|
6195
|
+
export type MarketplaceUpgradeAllRow = z.infer<typeof marketplaceUpgradeAllRow>;
|
|
6196
|
+
/** The whole upgrade-all readout: one outcome row per installed plugin. CLOSED. */
|
|
6197
|
+
export declare const marketplaceUpgradeAllResult: z.ZodObject<{
|
|
6198
|
+
results: z.ZodArray<z.ZodObject<{
|
|
6199
|
+
ref: z.ZodString;
|
|
6200
|
+
outcome: z.ZodEnum<["upgraded", "up-to-date", "no-compatible-version", "failed"]>;
|
|
6201
|
+
detail: z.ZodString;
|
|
6202
|
+
}, "strict", z.ZodTypeAny, {
|
|
6203
|
+
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
6204
|
+
detail: string;
|
|
6205
|
+
ref: string;
|
|
6206
|
+
}, {
|
|
6207
|
+
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
6208
|
+
detail: string;
|
|
6209
|
+
ref: string;
|
|
6210
|
+
}>, "many">;
|
|
6211
|
+
}, "strict", z.ZodTypeAny, {
|
|
6212
|
+
results: {
|
|
6213
|
+
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
6214
|
+
detail: string;
|
|
6215
|
+
ref: string;
|
|
6216
|
+
}[];
|
|
6217
|
+
}, {
|
|
6218
|
+
results: {
|
|
6219
|
+
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
6220
|
+
detail: string;
|
|
6221
|
+
ref: string;
|
|
6222
|
+
}[];
|
|
6223
|
+
}>;
|
|
6224
|
+
export type MarketplaceUpgradeAllResult = z.infer<typeof marketplaceUpgradeAllResult>;
|
|
5923
6225
|
/** The advisory state for installed plugins, with when it was last fetched. */
|
|
5924
6226
|
export declare const marketplaceAdvisories: z.ZodObject<{
|
|
5925
6227
|
advisories: z.ZodArray<z.ZodObject<{
|