@tai42/api-client 2.0.0 → 4.0.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 +136 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +15 -2
- 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 +810 -6
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +128 -7
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +70 -3
- package/src/index.ts +12 -0
- package/src/schemas.ts +148 -7
package/dist/schemas.d.ts
CHANGED
|
@@ -79,31 +79,41 @@ export type ToolMediaResult = z.infer<typeof toolMediaResult>;
|
|
|
79
79
|
* FastMCP `meta` under `tai42/hidden`; a tool that never declared it is not hidden).
|
|
80
80
|
* The tool_meta overlay's tri-state override is merged on top client-side; this read
|
|
81
81
|
* exposes only the declaration.
|
|
82
|
+
*
|
|
83
|
+
* `badges` are the tool's plugin-DECLARED capability labels — purely INFORMATIONAL
|
|
84
|
+
* (e.g. `network`, `filesystem`), never a gate the server enforces. The overlay's
|
|
85
|
+
* own badges are merged on top client-side; this read exposes only the declaration.
|
|
82
86
|
*/
|
|
83
87
|
export declare const toolTagEntry: z.ZodObject<{
|
|
84
88
|
name: z.ZodString;
|
|
85
89
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
90
|
+
badges: z.ZodArray<z.ZodString, "many">;
|
|
86
91
|
hidden: z.ZodBoolean;
|
|
87
92
|
}, "strip", z.ZodTypeAny, {
|
|
88
93
|
name: string;
|
|
89
94
|
tags: string[];
|
|
95
|
+
badges: string[];
|
|
90
96
|
hidden: boolean;
|
|
91
97
|
}, {
|
|
92
98
|
name: string;
|
|
93
99
|
tags: string[];
|
|
100
|
+
badges: string[];
|
|
94
101
|
hidden: boolean;
|
|
95
102
|
}>;
|
|
96
103
|
export declare const toolTags: z.ZodArray<z.ZodObject<{
|
|
97
104
|
name: z.ZodString;
|
|
98
105
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
106
|
+
badges: z.ZodArray<z.ZodString, "many">;
|
|
99
107
|
hidden: z.ZodBoolean;
|
|
100
108
|
}, "strip", z.ZodTypeAny, {
|
|
101
109
|
name: string;
|
|
102
110
|
tags: string[];
|
|
111
|
+
badges: string[];
|
|
103
112
|
hidden: boolean;
|
|
104
113
|
}, {
|
|
105
114
|
name: string;
|
|
106
115
|
tags: string[];
|
|
116
|
+
badges: string[];
|
|
107
117
|
hidden: boolean;
|
|
108
118
|
}>, "many">;
|
|
109
119
|
export type ToolTagEntry = z.infer<typeof toolTagEntry>;
|
|
@@ -667,7 +677,9 @@ export type FolderRecord = z.infer<typeof folderRecord>;
|
|
|
667
677
|
* The organizational overlay for one tool, keyed by `tool_name`. `display_name`
|
|
668
678
|
* overrides the rendered label (`display_name ?? name`); `folder_id` places the tool
|
|
669
679
|
* in a folder (`null` = unfiled); `tags` is the user's editable categorization,
|
|
670
|
-
* merged with the tool's read-only native tags by the UI; `
|
|
680
|
+
* merged with the tool's read-only native tags by the UI; `badges` is the operator's
|
|
681
|
+
* editable capability-label overlay, merged with the tool's read-only plugin-declared
|
|
682
|
+
* badges by the UI (INFORMATIONAL, never an enforced gate); `hidden` is TRI-STATE —
|
|
671
683
|
* `null` = defer to the plugin declaration, `true` = force hidden, `false` = force
|
|
672
684
|
* visible. A drift throws `ApiSchemaError`.
|
|
673
685
|
*/
|
|
@@ -676,16 +688,19 @@ export declare const toolMetaRecord: z.ZodObject<{
|
|
|
676
688
|
display_name: z.ZodNullable<z.ZodString>;
|
|
677
689
|
folder_id: z.ZodNullable<z.ZodString>;
|
|
678
690
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
691
|
+
badges: z.ZodArray<z.ZodString, "many">;
|
|
679
692
|
hidden: z.ZodNullable<z.ZodBoolean>;
|
|
680
693
|
}, "strip", z.ZodTypeAny, {
|
|
681
694
|
tool_name: string;
|
|
682
695
|
tags: string[];
|
|
696
|
+
badges: string[];
|
|
683
697
|
hidden: boolean | null;
|
|
684
698
|
display_name: string | null;
|
|
685
699
|
folder_id: string | null;
|
|
686
700
|
}, {
|
|
687
701
|
tool_name: string;
|
|
688
702
|
tags: string[];
|
|
703
|
+
badges: string[];
|
|
689
704
|
hidden: boolean | null;
|
|
690
705
|
display_name: string | null;
|
|
691
706
|
folder_id: string | null;
|
|
@@ -715,16 +730,19 @@ export declare const toolMetaOverlay: z.ZodObject<{
|
|
|
715
730
|
display_name: z.ZodNullable<z.ZodString>;
|
|
716
731
|
folder_id: z.ZodNullable<z.ZodString>;
|
|
717
732
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
733
|
+
badges: z.ZodArray<z.ZodString, "many">;
|
|
718
734
|
hidden: z.ZodNullable<z.ZodBoolean>;
|
|
719
735
|
}, "strip", z.ZodTypeAny, {
|
|
720
736
|
tool_name: string;
|
|
721
737
|
tags: string[];
|
|
738
|
+
badges: string[];
|
|
722
739
|
hidden: boolean | null;
|
|
723
740
|
display_name: string | null;
|
|
724
741
|
folder_id: string | null;
|
|
725
742
|
}, {
|
|
726
743
|
tool_name: string;
|
|
727
744
|
tags: string[];
|
|
745
|
+
badges: string[];
|
|
728
746
|
hidden: boolean | null;
|
|
729
747
|
display_name: string | null;
|
|
730
748
|
folder_id: string | null;
|
|
@@ -738,6 +756,7 @@ export declare const toolMetaOverlay: z.ZodObject<{
|
|
|
738
756
|
meta: {
|
|
739
757
|
tool_name: string;
|
|
740
758
|
tags: string[];
|
|
759
|
+
badges: string[];
|
|
741
760
|
hidden: boolean | null;
|
|
742
761
|
display_name: string | null;
|
|
743
762
|
folder_id: string | null;
|
|
@@ -751,6 +770,7 @@ export declare const toolMetaOverlay: z.ZodObject<{
|
|
|
751
770
|
meta: {
|
|
752
771
|
tool_name: string;
|
|
753
772
|
tags: string[];
|
|
773
|
+
badges: string[];
|
|
754
774
|
hidden: boolean | null;
|
|
755
775
|
display_name: string | null;
|
|
756
776
|
folder_id: string | null;
|
|
@@ -4186,6 +4206,7 @@ export declare const conversationThreadsPage: z.ZodObject<{
|
|
|
4186
4206
|
page: z.ZodNumber;
|
|
4187
4207
|
page_size: z.ZodNumber;
|
|
4188
4208
|
next_page: z.ZodNullable<z.ZodNumber>;
|
|
4209
|
+
truncated: z.ZodBoolean;
|
|
4189
4210
|
items: z.ZodArray<z.ZodObject<{
|
|
4190
4211
|
thread_id: z.ZodString;
|
|
4191
4212
|
client_address: z.ZodString;
|
|
@@ -4217,6 +4238,7 @@ export declare const conversationThreadsPage: z.ZodObject<{
|
|
|
4217
4238
|
page: number;
|
|
4218
4239
|
page_size: number;
|
|
4219
4240
|
next_page: number | null;
|
|
4241
|
+
truncated: boolean;
|
|
4220
4242
|
}, {
|
|
4221
4243
|
items: {
|
|
4222
4244
|
thread_id: string;
|
|
@@ -4229,6 +4251,7 @@ export declare const conversationThreadsPage: z.ZodObject<{
|
|
|
4229
4251
|
page: number;
|
|
4230
4252
|
page_size: number;
|
|
4231
4253
|
next_page: number | null;
|
|
4254
|
+
truncated: boolean;
|
|
4232
4255
|
}>;
|
|
4233
4256
|
export type ConversationThreadsPage = z.infer<typeof conversationThreadsPage>;
|
|
4234
4257
|
/**
|
|
@@ -4317,6 +4340,7 @@ export declare const conversationTranscriptPage: z.ZodObject<{
|
|
|
4317
4340
|
page: z.ZodNumber;
|
|
4318
4341
|
page_size: z.ZodNumber;
|
|
4319
4342
|
next_page: z.ZodNullable<z.ZodNumber>;
|
|
4343
|
+
truncated: z.ZodBoolean;
|
|
4320
4344
|
items: z.ZodArray<z.ZodObject<{
|
|
4321
4345
|
message_id: z.ZodString;
|
|
4322
4346
|
route_name: z.ZodString;
|
|
@@ -4408,6 +4432,7 @@ export declare const conversationTranscriptPage: z.ZodObject<{
|
|
|
4408
4432
|
page: number;
|
|
4409
4433
|
page_size: number;
|
|
4410
4434
|
next_page: number | null;
|
|
4435
|
+
truncated: boolean;
|
|
4411
4436
|
order: "asc" | "desc";
|
|
4412
4437
|
}, {
|
|
4413
4438
|
items: {
|
|
@@ -4436,9 +4461,145 @@ export declare const conversationTranscriptPage: z.ZodObject<{
|
|
|
4436
4461
|
page: number;
|
|
4437
4462
|
page_size: number;
|
|
4438
4463
|
next_page: number | null;
|
|
4464
|
+
truncated: boolean;
|
|
4439
4465
|
order: "asc" | "desc";
|
|
4440
4466
|
}>;
|
|
4441
4467
|
export type ConversationTranscriptPage = z.infer<typeof conversationTranscriptPage>;
|
|
4468
|
+
/**
|
|
4469
|
+
* A route-scoped message search (`GET /api/conversations/{route}/messages/search?q`):
|
|
4470
|
+
* every record on the route whose text matches `q`, across threads, newest first.
|
|
4471
|
+
* The record shape is the transcript's exactly, so a hit renders with the same
|
|
4472
|
+
* projection. `truncated` says the match set outran the door's scan cap — surfaced
|
|
4473
|
+
* loudly, never a silent cut.
|
|
4474
|
+
*/
|
|
4475
|
+
export declare const conversationMessageSearchPage: z.ZodObject<{
|
|
4476
|
+
total: z.ZodNumber;
|
|
4477
|
+
page: z.ZodNumber;
|
|
4478
|
+
page_size: z.ZodNumber;
|
|
4479
|
+
next_page: z.ZodNullable<z.ZodNumber>;
|
|
4480
|
+
truncated: z.ZodBoolean;
|
|
4481
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4482
|
+
message_id: z.ZodString;
|
|
4483
|
+
route_name: z.ZodString;
|
|
4484
|
+
door: z.ZodEnum<["api", "channel"]>;
|
|
4485
|
+
thread_id: z.ZodString;
|
|
4486
|
+
client_address: z.ZodString;
|
|
4487
|
+
caller_principal: z.ZodNullable<z.ZodString>;
|
|
4488
|
+
inbound_text: z.ZodString;
|
|
4489
|
+
answer_status: z.ZodNullable<z.ZodEnum<["answered", "error", "silent"]>>;
|
|
4490
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
4491
|
+
origin: z.ZodEnum<["client", "operator"]>;
|
|
4492
|
+
delivery_status: z.ZodEnum<["accepted", "pending_delivery", "provisional", "delivered", "failed", "shed", "silent"]>;
|
|
4493
|
+
created_at: z.ZodNumber;
|
|
4494
|
+
updated_at: z.ZodNumber;
|
|
4495
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4496
|
+
our_identity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4497
|
+
provider_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4498
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4499
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4500
|
+
outbound_message_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4501
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
4502
|
+
}, "strip", z.ZodTypeAny, {
|
|
4503
|
+
created_at: number;
|
|
4504
|
+
origin: "client" | "operator";
|
|
4505
|
+
route_name: string;
|
|
4506
|
+
door: "channel" | "api";
|
|
4507
|
+
thread_id: string;
|
|
4508
|
+
client_address: string;
|
|
4509
|
+
message_id: string;
|
|
4510
|
+
caller_principal: string | null;
|
|
4511
|
+
inbound_text: string;
|
|
4512
|
+
answer_status: "error" | "silent" | "answered" | null;
|
|
4513
|
+
answer: string | null;
|
|
4514
|
+
delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
4515
|
+
updated_at: number;
|
|
4516
|
+
error?: string | null | undefined;
|
|
4517
|
+
channel?: string | null | undefined;
|
|
4518
|
+
our_identity?: string | null | undefined;
|
|
4519
|
+
callback_url?: string | null | undefined;
|
|
4520
|
+
provider_message_id?: string | null | undefined;
|
|
4521
|
+
outbound_message_ids?: string[] | undefined;
|
|
4522
|
+
attempts?: number | undefined;
|
|
4523
|
+
}, {
|
|
4524
|
+
created_at: number;
|
|
4525
|
+
origin: "client" | "operator";
|
|
4526
|
+
route_name: string;
|
|
4527
|
+
door: "channel" | "api";
|
|
4528
|
+
thread_id: string;
|
|
4529
|
+
client_address: string;
|
|
4530
|
+
message_id: string;
|
|
4531
|
+
caller_principal: string | null;
|
|
4532
|
+
inbound_text: string;
|
|
4533
|
+
answer_status: "error" | "silent" | "answered" | null;
|
|
4534
|
+
answer: string | null;
|
|
4535
|
+
delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
4536
|
+
updated_at: number;
|
|
4537
|
+
error?: string | null | undefined;
|
|
4538
|
+
channel?: string | null | undefined;
|
|
4539
|
+
our_identity?: string | null | undefined;
|
|
4540
|
+
callback_url?: string | null | undefined;
|
|
4541
|
+
provider_message_id?: string | null | undefined;
|
|
4542
|
+
outbound_message_ids?: string[] | undefined;
|
|
4543
|
+
attempts?: number | undefined;
|
|
4544
|
+
}>, "many">;
|
|
4545
|
+
}, "strip", z.ZodTypeAny, {
|
|
4546
|
+
items: {
|
|
4547
|
+
created_at: number;
|
|
4548
|
+
origin: "client" | "operator";
|
|
4549
|
+
route_name: string;
|
|
4550
|
+
door: "channel" | "api";
|
|
4551
|
+
thread_id: string;
|
|
4552
|
+
client_address: string;
|
|
4553
|
+
message_id: string;
|
|
4554
|
+
caller_principal: string | null;
|
|
4555
|
+
inbound_text: string;
|
|
4556
|
+
answer_status: "error" | "silent" | "answered" | null;
|
|
4557
|
+
answer: string | null;
|
|
4558
|
+
delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
4559
|
+
updated_at: number;
|
|
4560
|
+
error?: string | null | undefined;
|
|
4561
|
+
channel?: string | null | undefined;
|
|
4562
|
+
our_identity?: string | null | undefined;
|
|
4563
|
+
callback_url?: string | null | undefined;
|
|
4564
|
+
provider_message_id?: string | null | undefined;
|
|
4565
|
+
outbound_message_ids?: string[] | undefined;
|
|
4566
|
+
attempts?: number | undefined;
|
|
4567
|
+
}[];
|
|
4568
|
+
total: number;
|
|
4569
|
+
page: number;
|
|
4570
|
+
page_size: number;
|
|
4571
|
+
next_page: number | null;
|
|
4572
|
+
truncated: boolean;
|
|
4573
|
+
}, {
|
|
4574
|
+
items: {
|
|
4575
|
+
created_at: number;
|
|
4576
|
+
origin: "client" | "operator";
|
|
4577
|
+
route_name: string;
|
|
4578
|
+
door: "channel" | "api";
|
|
4579
|
+
thread_id: string;
|
|
4580
|
+
client_address: string;
|
|
4581
|
+
message_id: string;
|
|
4582
|
+
caller_principal: string | null;
|
|
4583
|
+
inbound_text: string;
|
|
4584
|
+
answer_status: "error" | "silent" | "answered" | null;
|
|
4585
|
+
answer: string | null;
|
|
4586
|
+
delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
4587
|
+
updated_at: number;
|
|
4588
|
+
error?: string | null | undefined;
|
|
4589
|
+
channel?: string | null | undefined;
|
|
4590
|
+
our_identity?: string | null | undefined;
|
|
4591
|
+
callback_url?: string | null | undefined;
|
|
4592
|
+
provider_message_id?: string | null | undefined;
|
|
4593
|
+
outbound_message_ids?: string[] | undefined;
|
|
4594
|
+
attempts?: number | undefined;
|
|
4595
|
+
}[];
|
|
4596
|
+
total: number;
|
|
4597
|
+
page: number;
|
|
4598
|
+
page_size: number;
|
|
4599
|
+
next_page: number | null;
|
|
4600
|
+
truncated: boolean;
|
|
4601
|
+
}>;
|
|
4602
|
+
export type ConversationMessageSearchPage = z.infer<typeof conversationMessageSearchPage>;
|
|
4442
4603
|
/**
|
|
4443
4604
|
* Who answers a thread's incoming messages: `agent` lets the flow reply on its
|
|
4444
4605
|
* own; `manual` holds the flow back so a human answers. `source` says whether the
|
|
@@ -6990,10 +7151,74 @@ export declare const runTrace: z.ZodObject<{
|
|
|
6990
7151
|
metadata?: unknown;
|
|
6991
7152
|
}>;
|
|
6992
7153
|
export type RunTrace = z.infer<typeof runTrace>;
|
|
7154
|
+
/**
|
|
7155
|
+
* The CLOSED HTTP-method enum fixed by the contract's RouteMethod, the one source
|
|
7156
|
+
* for every route-method field (declaration and install/preview responses alike):
|
|
7157
|
+
* a wire method the contract does not define fails loudly as drift rather than
|
|
7158
|
+
* passing through silently.
|
|
7159
|
+
*/
|
|
7160
|
+
export declare const routeMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
7161
|
+
export type RouteMethod = z.infer<typeof routeMethod>;
|
|
7162
|
+
/**
|
|
7163
|
+
* One HTTP route an item declares in its `tai-plugin.yml`: a `path` relative to
|
|
7164
|
+
* the item's mount base, the `methods` it answers, and whether it is served
|
|
7165
|
+
* `public` (without authentication). The absolute path an operator sees is
|
|
7166
|
+
* resolved from the base at install time.
|
|
7167
|
+
*/
|
|
7168
|
+
export declare const marketplaceRouteDecl: z.ZodObject<{
|
|
7169
|
+
path: z.ZodString;
|
|
7170
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
7171
|
+
public: z.ZodBoolean;
|
|
7172
|
+
}, "strip", z.ZodTypeAny, {
|
|
7173
|
+
path: string;
|
|
7174
|
+
public: boolean;
|
|
7175
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7176
|
+
}, {
|
|
7177
|
+
path: string;
|
|
7178
|
+
public: boolean;
|
|
7179
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7180
|
+
}>;
|
|
7181
|
+
export type MarketplaceRouteDecl = z.infer<typeof marketplaceRouteDecl>;
|
|
7182
|
+
/**
|
|
7183
|
+
* A route-carrying item's declared mount: the default `base` prefix the routes
|
|
7184
|
+
* hang off (an operator may remap it at install) and the `paths` it registers.
|
|
7185
|
+
*/
|
|
7186
|
+
export declare const marketplaceRoutesDecl: z.ZodObject<{
|
|
7187
|
+
base: z.ZodString;
|
|
7188
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
7189
|
+
path: z.ZodString;
|
|
7190
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
7191
|
+
public: z.ZodBoolean;
|
|
7192
|
+
}, "strip", z.ZodTypeAny, {
|
|
7193
|
+
path: string;
|
|
7194
|
+
public: boolean;
|
|
7195
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7196
|
+
}, {
|
|
7197
|
+
path: string;
|
|
7198
|
+
public: boolean;
|
|
7199
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7200
|
+
}>, "many">;
|
|
7201
|
+
}, "strip", z.ZodTypeAny, {
|
|
7202
|
+
base: string;
|
|
7203
|
+
paths: {
|
|
7204
|
+
path: string;
|
|
7205
|
+
public: boolean;
|
|
7206
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7207
|
+
}[];
|
|
7208
|
+
}, {
|
|
7209
|
+
base: string;
|
|
7210
|
+
paths: {
|
|
7211
|
+
path: string;
|
|
7212
|
+
public: boolean;
|
|
7213
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7214
|
+
}[];
|
|
7215
|
+
}>;
|
|
7216
|
+
export type MarketplaceRoutesDecl = z.infer<typeof marketplaceRoutesDecl>;
|
|
6993
7217
|
/**
|
|
6994
7218
|
* One contained item of a marketplace plugin's published version: its kind
|
|
6995
7219
|
* (tool / agent / extension / …), name, description, free-form tags, and the
|
|
6996
|
-
* logical group it belongs to (`null` when ungrouped).
|
|
7220
|
+
* logical group it belongs to (`null` when ungrouped). `routes` is present only
|
|
7221
|
+
* on a route-carrying item (a router or channel); absent/null on every other.
|
|
6997
7222
|
*/
|
|
6998
7223
|
export declare const marketplaceItem: z.ZodObject<{
|
|
6999
7224
|
kind: z.ZodString;
|
|
@@ -7001,18 +7226,64 @@ export declare const marketplaceItem: z.ZodObject<{
|
|
|
7001
7226
|
description: z.ZodString;
|
|
7002
7227
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
7003
7228
|
group: z.ZodNullable<z.ZodString>;
|
|
7229
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7230
|
+
base: z.ZodString;
|
|
7231
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
7232
|
+
path: z.ZodString;
|
|
7233
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
7234
|
+
public: z.ZodBoolean;
|
|
7235
|
+
}, "strip", z.ZodTypeAny, {
|
|
7236
|
+
path: string;
|
|
7237
|
+
public: boolean;
|
|
7238
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7239
|
+
}, {
|
|
7240
|
+
path: string;
|
|
7241
|
+
public: boolean;
|
|
7242
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7243
|
+
}>, "many">;
|
|
7244
|
+
}, "strip", z.ZodTypeAny, {
|
|
7245
|
+
base: string;
|
|
7246
|
+
paths: {
|
|
7247
|
+
path: string;
|
|
7248
|
+
public: boolean;
|
|
7249
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7250
|
+
}[];
|
|
7251
|
+
}, {
|
|
7252
|
+
base: string;
|
|
7253
|
+
paths: {
|
|
7254
|
+
path: string;
|
|
7255
|
+
public: boolean;
|
|
7256
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7257
|
+
}[];
|
|
7258
|
+
}>>>;
|
|
7004
7259
|
}, "strip", z.ZodTypeAny, {
|
|
7005
7260
|
name: string;
|
|
7006
7261
|
description: string;
|
|
7007
7262
|
tags: string[];
|
|
7008
7263
|
kind: string;
|
|
7009
7264
|
group: string | null;
|
|
7265
|
+
routes?: {
|
|
7266
|
+
base: string;
|
|
7267
|
+
paths: {
|
|
7268
|
+
path: string;
|
|
7269
|
+
public: boolean;
|
|
7270
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7271
|
+
}[];
|
|
7272
|
+
} | null | undefined;
|
|
7010
7273
|
}, {
|
|
7011
7274
|
name: string;
|
|
7012
7275
|
description: string;
|
|
7013
7276
|
tags: string[];
|
|
7014
7277
|
kind: string;
|
|
7015
7278
|
group: string | null;
|
|
7279
|
+
routes?: {
|
|
7280
|
+
base: string;
|
|
7281
|
+
paths: {
|
|
7282
|
+
path: string;
|
|
7283
|
+
public: boolean;
|
|
7284
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7285
|
+
}[];
|
|
7286
|
+
} | null | undefined;
|
|
7016
7287
|
}>;
|
|
7017
7288
|
export type MarketplaceItem = z.infer<typeof marketplaceItem>;
|
|
7018
7289
|
/**
|
|
@@ -7356,18 +7627,64 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
|
|
|
7356
7627
|
description: z.ZodString;
|
|
7357
7628
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
7358
7629
|
group: z.ZodNullable<z.ZodString>;
|
|
7630
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7631
|
+
base: z.ZodString;
|
|
7632
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
7633
|
+
path: z.ZodString;
|
|
7634
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
7635
|
+
public: z.ZodBoolean;
|
|
7636
|
+
}, "strip", z.ZodTypeAny, {
|
|
7637
|
+
path: string;
|
|
7638
|
+
public: boolean;
|
|
7639
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7640
|
+
}, {
|
|
7641
|
+
path: string;
|
|
7642
|
+
public: boolean;
|
|
7643
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7644
|
+
}>, "many">;
|
|
7645
|
+
}, "strip", z.ZodTypeAny, {
|
|
7646
|
+
base: string;
|
|
7647
|
+
paths: {
|
|
7648
|
+
path: string;
|
|
7649
|
+
public: boolean;
|
|
7650
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7651
|
+
}[];
|
|
7652
|
+
}, {
|
|
7653
|
+
base: string;
|
|
7654
|
+
paths: {
|
|
7655
|
+
path: string;
|
|
7656
|
+
public: boolean;
|
|
7657
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7658
|
+
}[];
|
|
7659
|
+
}>>>;
|
|
7359
7660
|
}, "strip", z.ZodTypeAny, {
|
|
7360
7661
|
name: string;
|
|
7361
7662
|
description: string;
|
|
7362
7663
|
tags: string[];
|
|
7363
7664
|
kind: string;
|
|
7364
7665
|
group: string | null;
|
|
7666
|
+
routes?: {
|
|
7667
|
+
base: string;
|
|
7668
|
+
paths: {
|
|
7669
|
+
path: string;
|
|
7670
|
+
public: boolean;
|
|
7671
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7672
|
+
}[];
|
|
7673
|
+
} | null | undefined;
|
|
7365
7674
|
}, {
|
|
7366
7675
|
name: string;
|
|
7367
7676
|
description: string;
|
|
7368
7677
|
tags: string[];
|
|
7369
7678
|
kind: string;
|
|
7370
7679
|
group: string | null;
|
|
7680
|
+
routes?: {
|
|
7681
|
+
base: string;
|
|
7682
|
+
paths: {
|
|
7683
|
+
path: string;
|
|
7684
|
+
public: boolean;
|
|
7685
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7686
|
+
}[];
|
|
7687
|
+
} | null | undefined;
|
|
7371
7688
|
}>, "many">;
|
|
7372
7689
|
spec: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7373
7690
|
provides: z.ZodArray<z.ZodObject<{
|
|
@@ -7474,6 +7791,14 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
|
|
|
7474
7791
|
tags: string[];
|
|
7475
7792
|
kind: string;
|
|
7476
7793
|
group: string | null;
|
|
7794
|
+
routes?: {
|
|
7795
|
+
base: string;
|
|
7796
|
+
paths: {
|
|
7797
|
+
path: string;
|
|
7798
|
+
public: boolean;
|
|
7799
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7800
|
+
}[];
|
|
7801
|
+
} | null | undefined;
|
|
7477
7802
|
}[];
|
|
7478
7803
|
version: string;
|
|
7479
7804
|
contract_range: string | null;
|
|
@@ -7519,6 +7844,14 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
|
|
|
7519
7844
|
tags: string[];
|
|
7520
7845
|
kind: string;
|
|
7521
7846
|
group: string | null;
|
|
7847
|
+
routes?: {
|
|
7848
|
+
base: string;
|
|
7849
|
+
paths: {
|
|
7850
|
+
path: string;
|
|
7851
|
+
public: boolean;
|
|
7852
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7853
|
+
}[];
|
|
7854
|
+
} | null | undefined;
|
|
7522
7855
|
}[];
|
|
7523
7856
|
version: string;
|
|
7524
7857
|
contract_range: string | null;
|
|
@@ -7620,18 +7953,64 @@ export declare const marketplacePluginDetail: z.ZodObject<{
|
|
|
7620
7953
|
description: z.ZodString;
|
|
7621
7954
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
7622
7955
|
group: z.ZodNullable<z.ZodString>;
|
|
7956
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7957
|
+
base: z.ZodString;
|
|
7958
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
7959
|
+
path: z.ZodString;
|
|
7960
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
7961
|
+
public: z.ZodBoolean;
|
|
7962
|
+
}, "strip", z.ZodTypeAny, {
|
|
7963
|
+
path: string;
|
|
7964
|
+
public: boolean;
|
|
7965
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7966
|
+
}, {
|
|
7967
|
+
path: string;
|
|
7968
|
+
public: boolean;
|
|
7969
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7970
|
+
}>, "many">;
|
|
7971
|
+
}, "strip", z.ZodTypeAny, {
|
|
7972
|
+
base: string;
|
|
7973
|
+
paths: {
|
|
7974
|
+
path: string;
|
|
7975
|
+
public: boolean;
|
|
7976
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7977
|
+
}[];
|
|
7978
|
+
}, {
|
|
7979
|
+
base: string;
|
|
7980
|
+
paths: {
|
|
7981
|
+
path: string;
|
|
7982
|
+
public: boolean;
|
|
7983
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7984
|
+
}[];
|
|
7985
|
+
}>>>;
|
|
7623
7986
|
}, "strip", z.ZodTypeAny, {
|
|
7624
7987
|
name: string;
|
|
7625
7988
|
description: string;
|
|
7626
7989
|
tags: string[];
|
|
7627
7990
|
kind: string;
|
|
7628
7991
|
group: string | null;
|
|
7992
|
+
routes?: {
|
|
7993
|
+
base: string;
|
|
7994
|
+
paths: {
|
|
7995
|
+
path: string;
|
|
7996
|
+
public: boolean;
|
|
7997
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
7998
|
+
}[];
|
|
7999
|
+
} | null | undefined;
|
|
7629
8000
|
}, {
|
|
7630
8001
|
name: string;
|
|
7631
8002
|
description: string;
|
|
7632
8003
|
tags: string[];
|
|
7633
8004
|
kind: string;
|
|
7634
8005
|
group: string | null;
|
|
8006
|
+
routes?: {
|
|
8007
|
+
base: string;
|
|
8008
|
+
paths: {
|
|
8009
|
+
path: string;
|
|
8010
|
+
public: boolean;
|
|
8011
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8012
|
+
}[];
|
|
8013
|
+
} | null | undefined;
|
|
7635
8014
|
}>, "many">;
|
|
7636
8015
|
spec: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7637
8016
|
provides: z.ZodArray<z.ZodObject<{
|
|
@@ -7738,6 +8117,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
|
|
|
7738
8117
|
tags: string[];
|
|
7739
8118
|
kind: string;
|
|
7740
8119
|
group: string | null;
|
|
8120
|
+
routes?: {
|
|
8121
|
+
base: string;
|
|
8122
|
+
paths: {
|
|
8123
|
+
path: string;
|
|
8124
|
+
public: boolean;
|
|
8125
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8126
|
+
}[];
|
|
8127
|
+
} | null | undefined;
|
|
7741
8128
|
}[];
|
|
7742
8129
|
version: string;
|
|
7743
8130
|
contract_range: string | null;
|
|
@@ -7783,6 +8170,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
|
|
|
7783
8170
|
tags: string[];
|
|
7784
8171
|
kind: string;
|
|
7785
8172
|
group: string | null;
|
|
8173
|
+
routes?: {
|
|
8174
|
+
base: string;
|
|
8175
|
+
paths: {
|
|
8176
|
+
path: string;
|
|
8177
|
+
public: boolean;
|
|
8178
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8179
|
+
}[];
|
|
8180
|
+
} | null | undefined;
|
|
7786
8181
|
}[];
|
|
7787
8182
|
version: string;
|
|
7788
8183
|
contract_range: string | null;
|
|
@@ -7867,6 +8262,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
|
|
|
7867
8262
|
tags: string[];
|
|
7868
8263
|
kind: string;
|
|
7869
8264
|
group: string | null;
|
|
8265
|
+
routes?: {
|
|
8266
|
+
base: string;
|
|
8267
|
+
paths: {
|
|
8268
|
+
path: string;
|
|
8269
|
+
public: boolean;
|
|
8270
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8271
|
+
}[];
|
|
8272
|
+
} | null | undefined;
|
|
7870
8273
|
}[];
|
|
7871
8274
|
version: string;
|
|
7872
8275
|
contract_range: string | null;
|
|
@@ -7937,6 +8340,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
|
|
|
7937
8340
|
tags: string[];
|
|
7938
8341
|
kind: string;
|
|
7939
8342
|
group: string | null;
|
|
8343
|
+
routes?: {
|
|
8344
|
+
base: string;
|
|
8345
|
+
paths: {
|
|
8346
|
+
path: string;
|
|
8347
|
+
public: boolean;
|
|
8348
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8349
|
+
}[];
|
|
8350
|
+
} | null | undefined;
|
|
7940
8351
|
}[];
|
|
7941
8352
|
version: string;
|
|
7942
8353
|
contract_range: string | null;
|
|
@@ -8033,6 +8444,36 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
|
8033
8444
|
description: z.ZodString;
|
|
8034
8445
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
8035
8446
|
group: z.ZodNullable<z.ZodString>;
|
|
8447
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8448
|
+
base: z.ZodString;
|
|
8449
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
8450
|
+
path: z.ZodString;
|
|
8451
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
8452
|
+
public: z.ZodBoolean;
|
|
8453
|
+
}, "strip", z.ZodTypeAny, {
|
|
8454
|
+
path: string;
|
|
8455
|
+
public: boolean;
|
|
8456
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8457
|
+
}, {
|
|
8458
|
+
path: string;
|
|
8459
|
+
public: boolean;
|
|
8460
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8461
|
+
}>, "many">;
|
|
8462
|
+
}, "strip", z.ZodTypeAny, {
|
|
8463
|
+
base: string;
|
|
8464
|
+
paths: {
|
|
8465
|
+
path: string;
|
|
8466
|
+
public: boolean;
|
|
8467
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8468
|
+
}[];
|
|
8469
|
+
}, {
|
|
8470
|
+
base: string;
|
|
8471
|
+
paths: {
|
|
8472
|
+
path: string;
|
|
8473
|
+
public: boolean;
|
|
8474
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8475
|
+
}[];
|
|
8476
|
+
}>>>;
|
|
8036
8477
|
}, "name" | "kind">, "strip", z.ZodTypeAny, {
|
|
8037
8478
|
name: string;
|
|
8038
8479
|
kind: string;
|
|
@@ -8040,6 +8481,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
|
8040
8481
|
name: string;
|
|
8041
8482
|
kind: string;
|
|
8042
8483
|
}>, "many">;
|
|
8484
|
+
route_mounts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
8043
8485
|
}, "strict", z.ZodTypeAny, {
|
|
8044
8486
|
items: {
|
|
8045
8487
|
name: string;
|
|
@@ -8057,6 +8499,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
|
8057
8499
|
status: "unknown" | "compatible" | "incompatible";
|
|
8058
8500
|
reason: string | null;
|
|
8059
8501
|
};
|
|
8502
|
+
route_mounts: Record<string, string>;
|
|
8060
8503
|
}, {
|
|
8061
8504
|
items: {
|
|
8062
8505
|
name: string;
|
|
@@ -8074,6 +8517,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
|
|
|
8074
8517
|
status: "unknown" | "compatible" | "incompatible";
|
|
8075
8518
|
reason: string | null;
|
|
8076
8519
|
};
|
|
8520
|
+
route_mounts: Record<string, string>;
|
|
8077
8521
|
}>;
|
|
8078
8522
|
export type MarketplaceInstalledPlugin = z.infer<typeof marketplaceInstalledPlugin>;
|
|
8079
8523
|
/** One plugin the boot pass quarantined instead of loading, with why. CLOSED. */
|
|
@@ -8118,6 +8562,36 @@ export declare const marketplaceInstalled: z.ZodObject<{
|
|
|
8118
8562
|
description: z.ZodString;
|
|
8119
8563
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
8120
8564
|
group: z.ZodNullable<z.ZodString>;
|
|
8565
|
+
routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8566
|
+
base: z.ZodString;
|
|
8567
|
+
paths: z.ZodArray<z.ZodObject<{
|
|
8568
|
+
path: z.ZodString;
|
|
8569
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
8570
|
+
public: z.ZodBoolean;
|
|
8571
|
+
}, "strip", z.ZodTypeAny, {
|
|
8572
|
+
path: string;
|
|
8573
|
+
public: boolean;
|
|
8574
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8575
|
+
}, {
|
|
8576
|
+
path: string;
|
|
8577
|
+
public: boolean;
|
|
8578
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8579
|
+
}>, "many">;
|
|
8580
|
+
}, "strip", z.ZodTypeAny, {
|
|
8581
|
+
base: string;
|
|
8582
|
+
paths: {
|
|
8583
|
+
path: string;
|
|
8584
|
+
public: boolean;
|
|
8585
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8586
|
+
}[];
|
|
8587
|
+
}, {
|
|
8588
|
+
base: string;
|
|
8589
|
+
paths: {
|
|
8590
|
+
path: string;
|
|
8591
|
+
public: boolean;
|
|
8592
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8593
|
+
}[];
|
|
8594
|
+
}>>>;
|
|
8121
8595
|
}, "name" | "kind">, "strip", z.ZodTypeAny, {
|
|
8122
8596
|
name: string;
|
|
8123
8597
|
kind: string;
|
|
@@ -8125,6 +8599,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
|
|
|
8125
8599
|
name: string;
|
|
8126
8600
|
kind: string;
|
|
8127
8601
|
}>, "many">;
|
|
8602
|
+
route_mounts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
8128
8603
|
}, "strict", z.ZodTypeAny, {
|
|
8129
8604
|
items: {
|
|
8130
8605
|
name: string;
|
|
@@ -8142,6 +8617,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
|
|
|
8142
8617
|
status: "unknown" | "compatible" | "incompatible";
|
|
8143
8618
|
reason: string | null;
|
|
8144
8619
|
};
|
|
8620
|
+
route_mounts: Record<string, string>;
|
|
8145
8621
|
}, {
|
|
8146
8622
|
items: {
|
|
8147
8623
|
name: string;
|
|
@@ -8159,6 +8635,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
|
|
|
8159
8635
|
status: "unknown" | "compatible" | "incompatible";
|
|
8160
8636
|
reason: string | null;
|
|
8161
8637
|
};
|
|
8638
|
+
route_mounts: Record<string, string>;
|
|
8162
8639
|
}>, "many">;
|
|
8163
8640
|
quarantined: z.ZodArray<z.ZodObject<{
|
|
8164
8641
|
name: z.ZodString;
|
|
@@ -8188,6 +8665,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
|
|
|
8188
8665
|
status: "unknown" | "compatible" | "incompatible";
|
|
8189
8666
|
reason: string | null;
|
|
8190
8667
|
};
|
|
8668
|
+
route_mounts: Record<string, string>;
|
|
8191
8669
|
}[];
|
|
8192
8670
|
quarantined: {
|
|
8193
8671
|
name: string;
|
|
@@ -8211,6 +8689,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
|
|
|
8211
8689
|
status: "unknown" | "compatible" | "incompatible";
|
|
8212
8690
|
reason: string | null;
|
|
8213
8691
|
};
|
|
8692
|
+
route_mounts: Record<string, string>;
|
|
8214
8693
|
}[];
|
|
8215
8694
|
quarantined: {
|
|
8216
8695
|
name: string;
|
|
@@ -8321,13 +8800,36 @@ export declare const marketplaceAdvisories: z.ZodObject<{
|
|
|
8321
8800
|
export declare const marketplaceCategories: z.ZodArray<z.ZodString, "many">;
|
|
8322
8801
|
/** The registry's controlled item-kind list, proxied through the skeleton. */
|
|
8323
8802
|
export declare const marketplaceKinds: z.ZodArray<z.ZodString, "many">;
|
|
8803
|
+
/**
|
|
8804
|
+
* One route the install / update actually mounted: the item that owns it, the
|
|
8805
|
+
* absolute `full_path` it now answers, the `methods`, and whether it is served
|
|
8806
|
+
* `public`. The receipt lists these so the operator sees what was opened where.
|
|
8807
|
+
*/
|
|
8808
|
+
export declare const marketplaceMountedRoute: z.ZodObject<{
|
|
8809
|
+
item: z.ZodString;
|
|
8810
|
+
full_path: z.ZodString;
|
|
8811
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
8812
|
+
public: z.ZodBoolean;
|
|
8813
|
+
}, "strip", z.ZodTypeAny, {
|
|
8814
|
+
public: boolean;
|
|
8815
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8816
|
+
item: string;
|
|
8817
|
+
full_path: string;
|
|
8818
|
+
}, {
|
|
8819
|
+
public: boolean;
|
|
8820
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8821
|
+
item: string;
|
|
8822
|
+
full_path: string;
|
|
8823
|
+
}>;
|
|
8824
|
+
export type MarketplaceMountedRoute = z.infer<typeof marketplaceMountedRoute>;
|
|
8324
8825
|
/**
|
|
8325
8826
|
* The receipt of an install / update: what landed and at which version.
|
|
8326
8827
|
* `notes` (env-selected items naming their activating env var) and any
|
|
8327
|
-
* non-critical `advisories` ride BOTH the install and update receipts.
|
|
8328
|
-
*
|
|
8329
|
-
*
|
|
8330
|
-
*
|
|
8828
|
+
* non-critical `advisories` ride BOTH the install and update receipts.
|
|
8829
|
+
* `routes` is the mounted-route list — empty for a plugin that registers none.
|
|
8830
|
+
* The wire also carries `package`, `reload`, and `pip_output`, which the receipt
|
|
8831
|
+
* does not model — zod's default strip drops them; the UI renders the receipt,
|
|
8832
|
+
* not the raw install log.
|
|
8331
8833
|
*/
|
|
8332
8834
|
export declare const marketplaceInstallResult: z.ZodObject<{
|
|
8333
8835
|
ref: z.ZodString;
|
|
@@ -8358,8 +8860,30 @@ export declare const marketplaceInstallResult: z.ZodObject<{
|
|
|
8358
8860
|
severity: string;
|
|
8359
8861
|
withdrawn_at: string | null;
|
|
8360
8862
|
}>, "many">;
|
|
8863
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
8864
|
+
item: z.ZodString;
|
|
8865
|
+
full_path: z.ZodString;
|
|
8866
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
8867
|
+
public: z.ZodBoolean;
|
|
8868
|
+
}, "strip", z.ZodTypeAny, {
|
|
8869
|
+
public: boolean;
|
|
8870
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8871
|
+
item: string;
|
|
8872
|
+
full_path: string;
|
|
8873
|
+
}, {
|
|
8874
|
+
public: boolean;
|
|
8875
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8876
|
+
item: string;
|
|
8877
|
+
full_path: string;
|
|
8878
|
+
}>, "many">;
|
|
8361
8879
|
}, "strip", z.ZodTypeAny, {
|
|
8362
8880
|
version: string;
|
|
8881
|
+
routes: {
|
|
8882
|
+
public: boolean;
|
|
8883
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8884
|
+
item: string;
|
|
8885
|
+
full_path: string;
|
|
8886
|
+
}[];
|
|
8363
8887
|
ref: string;
|
|
8364
8888
|
advisories: {
|
|
8365
8889
|
created_at: string;
|
|
@@ -8373,6 +8897,12 @@ export declare const marketplaceInstallResult: z.ZodObject<{
|
|
|
8373
8897
|
notes: string[];
|
|
8374
8898
|
}, {
|
|
8375
8899
|
version: string;
|
|
8900
|
+
routes: {
|
|
8901
|
+
public: boolean;
|
|
8902
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8903
|
+
item: string;
|
|
8904
|
+
full_path: string;
|
|
8905
|
+
}[];
|
|
8376
8906
|
ref: string;
|
|
8377
8907
|
advisories: {
|
|
8378
8908
|
created_at: string;
|
|
@@ -8386,6 +8916,280 @@ export declare const marketplaceInstallResult: z.ZodObject<{
|
|
|
8386
8916
|
notes: string[];
|
|
8387
8917
|
}>;
|
|
8388
8918
|
export type MarketplaceInstallResult = z.infer<typeof marketplaceInstallResult>;
|
|
8919
|
+
/** One resolved route in an install preview: the declared `path`, its resolved
|
|
8920
|
+
* absolute `full_path`, the `methods`, and whether it is `public`. */
|
|
8921
|
+
export declare const marketplacePreviewRoute: z.ZodObject<{
|
|
8922
|
+
path: z.ZodString;
|
|
8923
|
+
full_path: z.ZodString;
|
|
8924
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
8925
|
+
public: z.ZodBoolean;
|
|
8926
|
+
}, "strip", z.ZodTypeAny, {
|
|
8927
|
+
path: string;
|
|
8928
|
+
public: boolean;
|
|
8929
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8930
|
+
full_path: string;
|
|
8931
|
+
}, {
|
|
8932
|
+
path: string;
|
|
8933
|
+
public: boolean;
|
|
8934
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8935
|
+
full_path: string;
|
|
8936
|
+
}>;
|
|
8937
|
+
export type MarketplacePreviewRoute = z.infer<typeof marketplacePreviewRoute>;
|
|
8938
|
+
/** One route-carrying item in an install preview: its resolved `base` (the
|
|
8939
|
+
* override or the default), the `default_base` it declares, and the routes that
|
|
8940
|
+
* mount under it. */
|
|
8941
|
+
export declare const marketplacePreviewItem: z.ZodObject<{
|
|
8942
|
+
item: z.ZodString;
|
|
8943
|
+
kind: z.ZodString;
|
|
8944
|
+
base: z.ZodString;
|
|
8945
|
+
default_base: z.ZodString;
|
|
8946
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
8947
|
+
path: z.ZodString;
|
|
8948
|
+
full_path: z.ZodString;
|
|
8949
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
8950
|
+
public: z.ZodBoolean;
|
|
8951
|
+
}, "strip", z.ZodTypeAny, {
|
|
8952
|
+
path: string;
|
|
8953
|
+
public: boolean;
|
|
8954
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8955
|
+
full_path: string;
|
|
8956
|
+
}, {
|
|
8957
|
+
path: string;
|
|
8958
|
+
public: boolean;
|
|
8959
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8960
|
+
full_path: string;
|
|
8961
|
+
}>, "many">;
|
|
8962
|
+
}, "strip", z.ZodTypeAny, {
|
|
8963
|
+
kind: string;
|
|
8964
|
+
routes: {
|
|
8965
|
+
path: string;
|
|
8966
|
+
public: boolean;
|
|
8967
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8968
|
+
full_path: string;
|
|
8969
|
+
}[];
|
|
8970
|
+
base: string;
|
|
8971
|
+
item: string;
|
|
8972
|
+
default_base: string;
|
|
8973
|
+
}, {
|
|
8974
|
+
kind: string;
|
|
8975
|
+
routes: {
|
|
8976
|
+
path: string;
|
|
8977
|
+
public: boolean;
|
|
8978
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8979
|
+
full_path: string;
|
|
8980
|
+
}[];
|
|
8981
|
+
base: string;
|
|
8982
|
+
item: string;
|
|
8983
|
+
default_base: string;
|
|
8984
|
+
}>;
|
|
8985
|
+
export type MarketplacePreviewItem = z.infer<typeof marketplacePreviewItem>;
|
|
8986
|
+
/** One collision the preview found: a route whose resolved shape+method clashes
|
|
8987
|
+
* with an already-owned route. `conflict_owner` is `core` or `plugin:<ref>`; the
|
|
8988
|
+
* remedy is to remap the item's base. */
|
|
8989
|
+
export declare const marketplacePreviewCollision: z.ZodObject<{
|
|
8990
|
+
item: z.ZodString;
|
|
8991
|
+
full_path: z.ZodString;
|
|
8992
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
8993
|
+
conflict_owner: z.ZodString;
|
|
8994
|
+
conflict_path: z.ZodString;
|
|
8995
|
+
}, "strip", z.ZodTypeAny, {
|
|
8996
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
8997
|
+
item: string;
|
|
8998
|
+
full_path: string;
|
|
8999
|
+
conflict_owner: string;
|
|
9000
|
+
conflict_path: string;
|
|
9001
|
+
}, {
|
|
9002
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9003
|
+
item: string;
|
|
9004
|
+
full_path: string;
|
|
9005
|
+
conflict_owner: string;
|
|
9006
|
+
conflict_path: string;
|
|
9007
|
+
}>;
|
|
9008
|
+
export type MarketplacePreviewCollision = z.infer<typeof marketplacePreviewCollision>;
|
|
9009
|
+
/** One public route the operator is asked to accept: served WITHOUT
|
|
9010
|
+
* authentication once installed. */
|
|
9011
|
+
export declare const marketplacePreviewPublicRoute: z.ZodObject<{
|
|
9012
|
+
item: z.ZodString;
|
|
9013
|
+
full_path: z.ZodString;
|
|
9014
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
9015
|
+
}, "strip", z.ZodTypeAny, {
|
|
9016
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9017
|
+
item: string;
|
|
9018
|
+
full_path: string;
|
|
9019
|
+
}, {
|
|
9020
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9021
|
+
item: string;
|
|
9022
|
+
full_path: string;
|
|
9023
|
+
}>;
|
|
9024
|
+
export type MarketplacePreviewPublicRoute = z.infer<typeof marketplacePreviewPublicRoute>;
|
|
9025
|
+
/**
|
|
9026
|
+
* The install preview (`POST /api/marketplace/install/preview`): the resolved
|
|
9027
|
+
* routes per item with any base overrides applied, the collisions against the
|
|
9028
|
+
* live registry, the public routes requiring acceptance, and whether acceptance
|
|
9029
|
+
* is required at all. `new_public_routes` narrows to rows not already approved
|
|
9030
|
+
* (the update case); on a fresh install it equals `public_routes`.
|
|
9031
|
+
*/
|
|
9032
|
+
export declare const marketplaceInstallPreview: z.ZodObject<{
|
|
9033
|
+
ref: z.ZodString;
|
|
9034
|
+
version: z.ZodString;
|
|
9035
|
+
items: z.ZodArray<z.ZodObject<{
|
|
9036
|
+
item: z.ZodString;
|
|
9037
|
+
kind: z.ZodString;
|
|
9038
|
+
base: z.ZodString;
|
|
9039
|
+
default_base: z.ZodString;
|
|
9040
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
9041
|
+
path: z.ZodString;
|
|
9042
|
+
full_path: z.ZodString;
|
|
9043
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
9044
|
+
public: z.ZodBoolean;
|
|
9045
|
+
}, "strip", z.ZodTypeAny, {
|
|
9046
|
+
path: string;
|
|
9047
|
+
public: boolean;
|
|
9048
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9049
|
+
full_path: string;
|
|
9050
|
+
}, {
|
|
9051
|
+
path: string;
|
|
9052
|
+
public: boolean;
|
|
9053
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9054
|
+
full_path: string;
|
|
9055
|
+
}>, "many">;
|
|
9056
|
+
}, "strip", z.ZodTypeAny, {
|
|
9057
|
+
kind: string;
|
|
9058
|
+
routes: {
|
|
9059
|
+
path: string;
|
|
9060
|
+
public: boolean;
|
|
9061
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9062
|
+
full_path: string;
|
|
9063
|
+
}[];
|
|
9064
|
+
base: string;
|
|
9065
|
+
item: string;
|
|
9066
|
+
default_base: string;
|
|
9067
|
+
}, {
|
|
9068
|
+
kind: string;
|
|
9069
|
+
routes: {
|
|
9070
|
+
path: string;
|
|
9071
|
+
public: boolean;
|
|
9072
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9073
|
+
full_path: string;
|
|
9074
|
+
}[];
|
|
9075
|
+
base: string;
|
|
9076
|
+
item: string;
|
|
9077
|
+
default_base: string;
|
|
9078
|
+
}>, "many">;
|
|
9079
|
+
collisions: z.ZodArray<z.ZodObject<{
|
|
9080
|
+
item: z.ZodString;
|
|
9081
|
+
full_path: z.ZodString;
|
|
9082
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
9083
|
+
conflict_owner: z.ZodString;
|
|
9084
|
+
conflict_path: z.ZodString;
|
|
9085
|
+
}, "strip", z.ZodTypeAny, {
|
|
9086
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9087
|
+
item: string;
|
|
9088
|
+
full_path: string;
|
|
9089
|
+
conflict_owner: string;
|
|
9090
|
+
conflict_path: string;
|
|
9091
|
+
}, {
|
|
9092
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9093
|
+
item: string;
|
|
9094
|
+
full_path: string;
|
|
9095
|
+
conflict_owner: string;
|
|
9096
|
+
conflict_path: string;
|
|
9097
|
+
}>, "many">;
|
|
9098
|
+
public_routes: z.ZodArray<z.ZodObject<{
|
|
9099
|
+
item: z.ZodString;
|
|
9100
|
+
full_path: z.ZodString;
|
|
9101
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
9102
|
+
}, "strip", z.ZodTypeAny, {
|
|
9103
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9104
|
+
item: string;
|
|
9105
|
+
full_path: string;
|
|
9106
|
+
}, {
|
|
9107
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9108
|
+
item: string;
|
|
9109
|
+
full_path: string;
|
|
9110
|
+
}>, "many">;
|
|
9111
|
+
new_public_routes: z.ZodArray<z.ZodObject<{
|
|
9112
|
+
item: z.ZodString;
|
|
9113
|
+
full_path: z.ZodString;
|
|
9114
|
+
methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
|
|
9115
|
+
}, "strip", z.ZodTypeAny, {
|
|
9116
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9117
|
+
item: string;
|
|
9118
|
+
full_path: string;
|
|
9119
|
+
}, {
|
|
9120
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9121
|
+
item: string;
|
|
9122
|
+
full_path: string;
|
|
9123
|
+
}>, "many">;
|
|
9124
|
+
requires_public_acceptance: z.ZodBoolean;
|
|
9125
|
+
}, "strip", z.ZodTypeAny, {
|
|
9126
|
+
items: {
|
|
9127
|
+
kind: string;
|
|
9128
|
+
routes: {
|
|
9129
|
+
path: string;
|
|
9130
|
+
public: boolean;
|
|
9131
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9132
|
+
full_path: string;
|
|
9133
|
+
}[];
|
|
9134
|
+
base: string;
|
|
9135
|
+
item: string;
|
|
9136
|
+
default_base: string;
|
|
9137
|
+
}[];
|
|
9138
|
+
version: string;
|
|
9139
|
+
ref: string;
|
|
9140
|
+
collisions: {
|
|
9141
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9142
|
+
item: string;
|
|
9143
|
+
full_path: string;
|
|
9144
|
+
conflict_owner: string;
|
|
9145
|
+
conflict_path: string;
|
|
9146
|
+
}[];
|
|
9147
|
+
public_routes: {
|
|
9148
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9149
|
+
item: string;
|
|
9150
|
+
full_path: string;
|
|
9151
|
+
}[];
|
|
9152
|
+
new_public_routes: {
|
|
9153
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9154
|
+
item: string;
|
|
9155
|
+
full_path: string;
|
|
9156
|
+
}[];
|
|
9157
|
+
requires_public_acceptance: boolean;
|
|
9158
|
+
}, {
|
|
9159
|
+
items: {
|
|
9160
|
+
kind: string;
|
|
9161
|
+
routes: {
|
|
9162
|
+
path: string;
|
|
9163
|
+
public: boolean;
|
|
9164
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9165
|
+
full_path: string;
|
|
9166
|
+
}[];
|
|
9167
|
+
base: string;
|
|
9168
|
+
item: string;
|
|
9169
|
+
default_base: string;
|
|
9170
|
+
}[];
|
|
9171
|
+
version: string;
|
|
9172
|
+
ref: string;
|
|
9173
|
+
collisions: {
|
|
9174
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9175
|
+
item: string;
|
|
9176
|
+
full_path: string;
|
|
9177
|
+
conflict_owner: string;
|
|
9178
|
+
conflict_path: string;
|
|
9179
|
+
}[];
|
|
9180
|
+
public_routes: {
|
|
9181
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9182
|
+
item: string;
|
|
9183
|
+
full_path: string;
|
|
9184
|
+
}[];
|
|
9185
|
+
new_public_routes: {
|
|
9186
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
9187
|
+
item: string;
|
|
9188
|
+
full_path: string;
|
|
9189
|
+
}[];
|
|
9190
|
+
requires_public_acceptance: boolean;
|
|
9191
|
+
}>;
|
|
9192
|
+
export type MarketplaceInstallPreview = z.infer<typeof marketplaceInstallPreview>;
|
|
8389
9193
|
/**
|
|
8390
9194
|
* The receipt of an uninstall. `notes` carries operator warnings (e.g. a config
|
|
8391
9195
|
* provider still selected by its env var); render them like the install
|