@tai42/api-client 2.0.0 → 3.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/schemas.d.ts CHANGED
@@ -6990,10 +6990,74 @@ export declare const runTrace: z.ZodObject<{
6990
6990
  metadata?: unknown;
6991
6991
  }>;
6992
6992
  export type RunTrace = z.infer<typeof runTrace>;
6993
+ /**
6994
+ * The CLOSED HTTP-method enum fixed by the contract's RouteMethod, the one source
6995
+ * for every route-method field (declaration and install/preview responses alike):
6996
+ * a wire method the contract does not define fails loudly as drift rather than
6997
+ * passing through silently.
6998
+ */
6999
+ export declare const routeMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
7000
+ export type RouteMethod = z.infer<typeof routeMethod>;
7001
+ /**
7002
+ * One HTTP route an item declares in its `tai-plugin.yml`: a `path` relative to
7003
+ * the item's mount base, the `methods` it answers, and whether it is served
7004
+ * `public` (without authentication). The absolute path an operator sees is
7005
+ * resolved from the base at install time.
7006
+ */
7007
+ export declare const marketplaceRouteDecl: z.ZodObject<{
7008
+ path: z.ZodString;
7009
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
7010
+ public: z.ZodBoolean;
7011
+ }, "strip", z.ZodTypeAny, {
7012
+ path: string;
7013
+ public: boolean;
7014
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7015
+ }, {
7016
+ path: string;
7017
+ public: boolean;
7018
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7019
+ }>;
7020
+ export type MarketplaceRouteDecl = z.infer<typeof marketplaceRouteDecl>;
7021
+ /**
7022
+ * A route-carrying item's declared mount: the default `base` prefix the routes
7023
+ * hang off (an operator may remap it at install) and the `paths` it registers.
7024
+ */
7025
+ export declare const marketplaceRoutesDecl: z.ZodObject<{
7026
+ base: z.ZodString;
7027
+ paths: z.ZodArray<z.ZodObject<{
7028
+ path: z.ZodString;
7029
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
7030
+ public: z.ZodBoolean;
7031
+ }, "strip", z.ZodTypeAny, {
7032
+ path: string;
7033
+ public: boolean;
7034
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7035
+ }, {
7036
+ path: string;
7037
+ public: boolean;
7038
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7039
+ }>, "many">;
7040
+ }, "strip", z.ZodTypeAny, {
7041
+ base: string;
7042
+ paths: {
7043
+ path: string;
7044
+ public: boolean;
7045
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7046
+ }[];
7047
+ }, {
7048
+ base: string;
7049
+ paths: {
7050
+ path: string;
7051
+ public: boolean;
7052
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7053
+ }[];
7054
+ }>;
7055
+ export type MarketplaceRoutesDecl = z.infer<typeof marketplaceRoutesDecl>;
6993
7056
  /**
6994
7057
  * One contained item of a marketplace plugin's published version: its kind
6995
7058
  * (tool / agent / extension / …), name, description, free-form tags, and the
6996
- * logical group it belongs to (`null` when ungrouped).
7059
+ * logical group it belongs to (`null` when ungrouped). `routes` is present only
7060
+ * on a route-carrying item (a router or channel); absent/null on every other.
6997
7061
  */
6998
7062
  export declare const marketplaceItem: z.ZodObject<{
6999
7063
  kind: z.ZodString;
@@ -7001,18 +7065,64 @@ export declare const marketplaceItem: z.ZodObject<{
7001
7065
  description: z.ZodString;
7002
7066
  tags: z.ZodArray<z.ZodString, "many">;
7003
7067
  group: z.ZodNullable<z.ZodString>;
7068
+ routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7069
+ base: z.ZodString;
7070
+ paths: z.ZodArray<z.ZodObject<{
7071
+ path: z.ZodString;
7072
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
7073
+ public: z.ZodBoolean;
7074
+ }, "strip", z.ZodTypeAny, {
7075
+ path: string;
7076
+ public: boolean;
7077
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7078
+ }, {
7079
+ path: string;
7080
+ public: boolean;
7081
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7082
+ }>, "many">;
7083
+ }, "strip", z.ZodTypeAny, {
7084
+ base: string;
7085
+ paths: {
7086
+ path: string;
7087
+ public: boolean;
7088
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7089
+ }[];
7090
+ }, {
7091
+ base: string;
7092
+ paths: {
7093
+ path: string;
7094
+ public: boolean;
7095
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7096
+ }[];
7097
+ }>>>;
7004
7098
  }, "strip", z.ZodTypeAny, {
7005
7099
  name: string;
7006
7100
  description: string;
7007
7101
  tags: string[];
7008
7102
  kind: string;
7009
7103
  group: string | null;
7104
+ routes?: {
7105
+ base: string;
7106
+ paths: {
7107
+ path: string;
7108
+ public: boolean;
7109
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7110
+ }[];
7111
+ } | null | undefined;
7010
7112
  }, {
7011
7113
  name: string;
7012
7114
  description: string;
7013
7115
  tags: string[];
7014
7116
  kind: string;
7015
7117
  group: string | null;
7118
+ routes?: {
7119
+ base: string;
7120
+ paths: {
7121
+ path: string;
7122
+ public: boolean;
7123
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7124
+ }[];
7125
+ } | null | undefined;
7016
7126
  }>;
7017
7127
  export type MarketplaceItem = z.infer<typeof marketplaceItem>;
7018
7128
  /**
@@ -7356,18 +7466,64 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7356
7466
  description: z.ZodString;
7357
7467
  tags: z.ZodArray<z.ZodString, "many">;
7358
7468
  group: z.ZodNullable<z.ZodString>;
7469
+ routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7470
+ base: z.ZodString;
7471
+ paths: z.ZodArray<z.ZodObject<{
7472
+ path: z.ZodString;
7473
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
7474
+ public: z.ZodBoolean;
7475
+ }, "strip", z.ZodTypeAny, {
7476
+ path: string;
7477
+ public: boolean;
7478
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7479
+ }, {
7480
+ path: string;
7481
+ public: boolean;
7482
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7483
+ }>, "many">;
7484
+ }, "strip", z.ZodTypeAny, {
7485
+ base: string;
7486
+ paths: {
7487
+ path: string;
7488
+ public: boolean;
7489
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7490
+ }[];
7491
+ }, {
7492
+ base: string;
7493
+ paths: {
7494
+ path: string;
7495
+ public: boolean;
7496
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7497
+ }[];
7498
+ }>>>;
7359
7499
  }, "strip", z.ZodTypeAny, {
7360
7500
  name: string;
7361
7501
  description: string;
7362
7502
  tags: string[];
7363
7503
  kind: string;
7364
7504
  group: string | null;
7505
+ routes?: {
7506
+ base: string;
7507
+ paths: {
7508
+ path: string;
7509
+ public: boolean;
7510
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7511
+ }[];
7512
+ } | null | undefined;
7365
7513
  }, {
7366
7514
  name: string;
7367
7515
  description: string;
7368
7516
  tags: string[];
7369
7517
  kind: string;
7370
7518
  group: string | null;
7519
+ routes?: {
7520
+ base: string;
7521
+ paths: {
7522
+ path: string;
7523
+ public: boolean;
7524
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7525
+ }[];
7526
+ } | null | undefined;
7371
7527
  }>, "many">;
7372
7528
  spec: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7373
7529
  provides: z.ZodArray<z.ZodObject<{
@@ -7474,6 +7630,14 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7474
7630
  tags: string[];
7475
7631
  kind: string;
7476
7632
  group: string | null;
7633
+ routes?: {
7634
+ base: string;
7635
+ paths: {
7636
+ path: string;
7637
+ public: boolean;
7638
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7639
+ }[];
7640
+ } | null | undefined;
7477
7641
  }[];
7478
7642
  version: string;
7479
7643
  contract_range: string | null;
@@ -7519,6 +7683,14 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7519
7683
  tags: string[];
7520
7684
  kind: string;
7521
7685
  group: string | null;
7686
+ routes?: {
7687
+ base: string;
7688
+ paths: {
7689
+ path: string;
7690
+ public: boolean;
7691
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7692
+ }[];
7693
+ } | null | undefined;
7522
7694
  }[];
7523
7695
  version: string;
7524
7696
  contract_range: string | null;
@@ -7620,18 +7792,64 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7620
7792
  description: z.ZodString;
7621
7793
  tags: z.ZodArray<z.ZodString, "many">;
7622
7794
  group: z.ZodNullable<z.ZodString>;
7795
+ routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7796
+ base: z.ZodString;
7797
+ paths: z.ZodArray<z.ZodObject<{
7798
+ path: z.ZodString;
7799
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
7800
+ public: z.ZodBoolean;
7801
+ }, "strip", z.ZodTypeAny, {
7802
+ path: string;
7803
+ public: boolean;
7804
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7805
+ }, {
7806
+ path: string;
7807
+ public: boolean;
7808
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7809
+ }>, "many">;
7810
+ }, "strip", z.ZodTypeAny, {
7811
+ base: string;
7812
+ paths: {
7813
+ path: string;
7814
+ public: boolean;
7815
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7816
+ }[];
7817
+ }, {
7818
+ base: string;
7819
+ paths: {
7820
+ path: string;
7821
+ public: boolean;
7822
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7823
+ }[];
7824
+ }>>>;
7623
7825
  }, "strip", z.ZodTypeAny, {
7624
7826
  name: string;
7625
7827
  description: string;
7626
7828
  tags: string[];
7627
7829
  kind: string;
7628
7830
  group: string | null;
7831
+ routes?: {
7832
+ base: string;
7833
+ paths: {
7834
+ path: string;
7835
+ public: boolean;
7836
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7837
+ }[];
7838
+ } | null | undefined;
7629
7839
  }, {
7630
7840
  name: string;
7631
7841
  description: string;
7632
7842
  tags: string[];
7633
7843
  kind: string;
7634
7844
  group: string | null;
7845
+ routes?: {
7846
+ base: string;
7847
+ paths: {
7848
+ path: string;
7849
+ public: boolean;
7850
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7851
+ }[];
7852
+ } | null | undefined;
7635
7853
  }>, "many">;
7636
7854
  spec: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7637
7855
  provides: z.ZodArray<z.ZodObject<{
@@ -7738,6 +7956,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7738
7956
  tags: string[];
7739
7957
  kind: string;
7740
7958
  group: string | null;
7959
+ routes?: {
7960
+ base: string;
7961
+ paths: {
7962
+ path: string;
7963
+ public: boolean;
7964
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7965
+ }[];
7966
+ } | null | undefined;
7741
7967
  }[];
7742
7968
  version: string;
7743
7969
  contract_range: string | null;
@@ -7783,6 +8009,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7783
8009
  tags: string[];
7784
8010
  kind: string;
7785
8011
  group: string | null;
8012
+ routes?: {
8013
+ base: string;
8014
+ paths: {
8015
+ path: string;
8016
+ public: boolean;
8017
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8018
+ }[];
8019
+ } | null | undefined;
7786
8020
  }[];
7787
8021
  version: string;
7788
8022
  contract_range: string | null;
@@ -7867,6 +8101,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7867
8101
  tags: string[];
7868
8102
  kind: string;
7869
8103
  group: string | null;
8104
+ routes?: {
8105
+ base: string;
8106
+ paths: {
8107
+ path: string;
8108
+ public: boolean;
8109
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8110
+ }[];
8111
+ } | null | undefined;
7870
8112
  }[];
7871
8113
  version: string;
7872
8114
  contract_range: string | null;
@@ -7937,6 +8179,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7937
8179
  tags: string[];
7938
8180
  kind: string;
7939
8181
  group: string | null;
8182
+ routes?: {
8183
+ base: string;
8184
+ paths: {
8185
+ path: string;
8186
+ public: boolean;
8187
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8188
+ }[];
8189
+ } | null | undefined;
7940
8190
  }[];
7941
8191
  version: string;
7942
8192
  contract_range: string | null;
@@ -8033,6 +8283,36 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8033
8283
  description: z.ZodString;
8034
8284
  tags: z.ZodArray<z.ZodString, "many">;
8035
8285
  group: z.ZodNullable<z.ZodString>;
8286
+ routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8287
+ base: z.ZodString;
8288
+ paths: z.ZodArray<z.ZodObject<{
8289
+ path: z.ZodString;
8290
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8291
+ public: z.ZodBoolean;
8292
+ }, "strip", z.ZodTypeAny, {
8293
+ path: string;
8294
+ public: boolean;
8295
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8296
+ }, {
8297
+ path: string;
8298
+ public: boolean;
8299
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8300
+ }>, "many">;
8301
+ }, "strip", z.ZodTypeAny, {
8302
+ base: string;
8303
+ paths: {
8304
+ path: string;
8305
+ public: boolean;
8306
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8307
+ }[];
8308
+ }, {
8309
+ base: string;
8310
+ paths: {
8311
+ path: string;
8312
+ public: boolean;
8313
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8314
+ }[];
8315
+ }>>>;
8036
8316
  }, "name" | "kind">, "strip", z.ZodTypeAny, {
8037
8317
  name: string;
8038
8318
  kind: string;
@@ -8040,6 +8320,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8040
8320
  name: string;
8041
8321
  kind: string;
8042
8322
  }>, "many">;
8323
+ route_mounts: z.ZodRecord<z.ZodString, z.ZodString>;
8043
8324
  }, "strict", z.ZodTypeAny, {
8044
8325
  items: {
8045
8326
  name: string;
@@ -8057,6 +8338,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8057
8338
  status: "unknown" | "compatible" | "incompatible";
8058
8339
  reason: string | null;
8059
8340
  };
8341
+ route_mounts: Record<string, string>;
8060
8342
  }, {
8061
8343
  items: {
8062
8344
  name: string;
@@ -8074,6 +8356,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8074
8356
  status: "unknown" | "compatible" | "incompatible";
8075
8357
  reason: string | null;
8076
8358
  };
8359
+ route_mounts: Record<string, string>;
8077
8360
  }>;
8078
8361
  export type MarketplaceInstalledPlugin = z.infer<typeof marketplaceInstalledPlugin>;
8079
8362
  /** One plugin the boot pass quarantined instead of loading, with why. CLOSED. */
@@ -8118,6 +8401,36 @@ export declare const marketplaceInstalled: z.ZodObject<{
8118
8401
  description: z.ZodString;
8119
8402
  tags: z.ZodArray<z.ZodString, "many">;
8120
8403
  group: z.ZodNullable<z.ZodString>;
8404
+ routes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8405
+ base: z.ZodString;
8406
+ paths: z.ZodArray<z.ZodObject<{
8407
+ path: z.ZodString;
8408
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8409
+ public: z.ZodBoolean;
8410
+ }, "strip", z.ZodTypeAny, {
8411
+ path: string;
8412
+ public: boolean;
8413
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8414
+ }, {
8415
+ path: string;
8416
+ public: boolean;
8417
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8418
+ }>, "many">;
8419
+ }, "strip", z.ZodTypeAny, {
8420
+ base: string;
8421
+ paths: {
8422
+ path: string;
8423
+ public: boolean;
8424
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8425
+ }[];
8426
+ }, {
8427
+ base: string;
8428
+ paths: {
8429
+ path: string;
8430
+ public: boolean;
8431
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8432
+ }[];
8433
+ }>>>;
8121
8434
  }, "name" | "kind">, "strip", z.ZodTypeAny, {
8122
8435
  name: string;
8123
8436
  kind: string;
@@ -8125,6 +8438,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8125
8438
  name: string;
8126
8439
  kind: string;
8127
8440
  }>, "many">;
8441
+ route_mounts: z.ZodRecord<z.ZodString, z.ZodString>;
8128
8442
  }, "strict", z.ZodTypeAny, {
8129
8443
  items: {
8130
8444
  name: string;
@@ -8142,6 +8456,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8142
8456
  status: "unknown" | "compatible" | "incompatible";
8143
8457
  reason: string | null;
8144
8458
  };
8459
+ route_mounts: Record<string, string>;
8145
8460
  }, {
8146
8461
  items: {
8147
8462
  name: string;
@@ -8159,6 +8474,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8159
8474
  status: "unknown" | "compatible" | "incompatible";
8160
8475
  reason: string | null;
8161
8476
  };
8477
+ route_mounts: Record<string, string>;
8162
8478
  }>, "many">;
8163
8479
  quarantined: z.ZodArray<z.ZodObject<{
8164
8480
  name: z.ZodString;
@@ -8188,6 +8504,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8188
8504
  status: "unknown" | "compatible" | "incompatible";
8189
8505
  reason: string | null;
8190
8506
  };
8507
+ route_mounts: Record<string, string>;
8191
8508
  }[];
8192
8509
  quarantined: {
8193
8510
  name: string;
@@ -8211,6 +8528,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8211
8528
  status: "unknown" | "compatible" | "incompatible";
8212
8529
  reason: string | null;
8213
8530
  };
8531
+ route_mounts: Record<string, string>;
8214
8532
  }[];
8215
8533
  quarantined: {
8216
8534
  name: string;
@@ -8321,13 +8639,36 @@ export declare const marketplaceAdvisories: z.ZodObject<{
8321
8639
  export declare const marketplaceCategories: z.ZodArray<z.ZodString, "many">;
8322
8640
  /** The registry's controlled item-kind list, proxied through the skeleton. */
8323
8641
  export declare const marketplaceKinds: z.ZodArray<z.ZodString, "many">;
8642
+ /**
8643
+ * One route the install / update actually mounted: the item that owns it, the
8644
+ * absolute `full_path` it now answers, the `methods`, and whether it is served
8645
+ * `public`. The receipt lists these so the operator sees what was opened where.
8646
+ */
8647
+ export declare const marketplaceMountedRoute: z.ZodObject<{
8648
+ item: z.ZodString;
8649
+ full_path: z.ZodString;
8650
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8651
+ public: z.ZodBoolean;
8652
+ }, "strip", z.ZodTypeAny, {
8653
+ public: boolean;
8654
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8655
+ item: string;
8656
+ full_path: string;
8657
+ }, {
8658
+ public: boolean;
8659
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8660
+ item: string;
8661
+ full_path: string;
8662
+ }>;
8663
+ export type MarketplaceMountedRoute = z.infer<typeof marketplaceMountedRoute>;
8324
8664
  /**
8325
8665
  * The receipt of an install / update: what landed and at which version.
8326
8666
  * `notes` (env-selected items naming their activating env var) and any
8327
- * non-critical `advisories` ride BOTH the install and update receipts. The wire
8328
- * also carries `package`, `reload`, and `pip_output`, which the receipt does not
8329
- * model — zod's default strip drops them; the UI renders the receipt, not the
8330
- * raw install log.
8667
+ * non-critical `advisories` ride BOTH the install and update receipts.
8668
+ * `routes` is the mounted-route list — empty for a plugin that registers none.
8669
+ * The wire also carries `package`, `reload`, and `pip_output`, which the receipt
8670
+ * does not model — zod's default strip drops them; the UI renders the receipt,
8671
+ * not the raw install log.
8331
8672
  */
8332
8673
  export declare const marketplaceInstallResult: z.ZodObject<{
8333
8674
  ref: z.ZodString;
@@ -8358,8 +8699,30 @@ export declare const marketplaceInstallResult: z.ZodObject<{
8358
8699
  severity: string;
8359
8700
  withdrawn_at: string | null;
8360
8701
  }>, "many">;
8702
+ routes: z.ZodArray<z.ZodObject<{
8703
+ item: z.ZodString;
8704
+ full_path: z.ZodString;
8705
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8706
+ public: z.ZodBoolean;
8707
+ }, "strip", z.ZodTypeAny, {
8708
+ public: boolean;
8709
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8710
+ item: string;
8711
+ full_path: string;
8712
+ }, {
8713
+ public: boolean;
8714
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8715
+ item: string;
8716
+ full_path: string;
8717
+ }>, "many">;
8361
8718
  }, "strip", z.ZodTypeAny, {
8362
8719
  version: string;
8720
+ routes: {
8721
+ public: boolean;
8722
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8723
+ item: string;
8724
+ full_path: string;
8725
+ }[];
8363
8726
  ref: string;
8364
8727
  advisories: {
8365
8728
  created_at: string;
@@ -8373,6 +8736,12 @@ export declare const marketplaceInstallResult: z.ZodObject<{
8373
8736
  notes: string[];
8374
8737
  }, {
8375
8738
  version: string;
8739
+ routes: {
8740
+ public: boolean;
8741
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8742
+ item: string;
8743
+ full_path: string;
8744
+ }[];
8376
8745
  ref: string;
8377
8746
  advisories: {
8378
8747
  created_at: string;
@@ -8386,6 +8755,280 @@ export declare const marketplaceInstallResult: z.ZodObject<{
8386
8755
  notes: string[];
8387
8756
  }>;
8388
8757
  export type MarketplaceInstallResult = z.infer<typeof marketplaceInstallResult>;
8758
+ /** One resolved route in an install preview: the declared `path`, its resolved
8759
+ * absolute `full_path`, the `methods`, and whether it is `public`. */
8760
+ export declare const marketplacePreviewRoute: z.ZodObject<{
8761
+ path: z.ZodString;
8762
+ full_path: z.ZodString;
8763
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8764
+ public: z.ZodBoolean;
8765
+ }, "strip", z.ZodTypeAny, {
8766
+ path: string;
8767
+ public: boolean;
8768
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8769
+ full_path: string;
8770
+ }, {
8771
+ path: string;
8772
+ public: boolean;
8773
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8774
+ full_path: string;
8775
+ }>;
8776
+ export type MarketplacePreviewRoute = z.infer<typeof marketplacePreviewRoute>;
8777
+ /** One route-carrying item in an install preview: its resolved `base` (the
8778
+ * override or the default), the `default_base` it declares, and the routes that
8779
+ * mount under it. */
8780
+ export declare const marketplacePreviewItem: z.ZodObject<{
8781
+ item: z.ZodString;
8782
+ kind: z.ZodString;
8783
+ base: z.ZodString;
8784
+ default_base: z.ZodString;
8785
+ routes: z.ZodArray<z.ZodObject<{
8786
+ path: z.ZodString;
8787
+ full_path: z.ZodString;
8788
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8789
+ public: z.ZodBoolean;
8790
+ }, "strip", z.ZodTypeAny, {
8791
+ path: string;
8792
+ public: boolean;
8793
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8794
+ full_path: string;
8795
+ }, {
8796
+ path: string;
8797
+ public: boolean;
8798
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8799
+ full_path: string;
8800
+ }>, "many">;
8801
+ }, "strip", z.ZodTypeAny, {
8802
+ kind: string;
8803
+ routes: {
8804
+ path: string;
8805
+ public: boolean;
8806
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8807
+ full_path: string;
8808
+ }[];
8809
+ base: string;
8810
+ item: string;
8811
+ default_base: string;
8812
+ }, {
8813
+ kind: string;
8814
+ routes: {
8815
+ path: string;
8816
+ public: boolean;
8817
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8818
+ full_path: string;
8819
+ }[];
8820
+ base: string;
8821
+ item: string;
8822
+ default_base: string;
8823
+ }>;
8824
+ export type MarketplacePreviewItem = z.infer<typeof marketplacePreviewItem>;
8825
+ /** One collision the preview found: a route whose resolved shape+method clashes
8826
+ * with an already-owned route. `conflict_owner` is `core` or `plugin:<ref>`; the
8827
+ * remedy is to remap the item's base. */
8828
+ export declare const marketplacePreviewCollision: z.ZodObject<{
8829
+ item: z.ZodString;
8830
+ full_path: z.ZodString;
8831
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8832
+ conflict_owner: z.ZodString;
8833
+ conflict_path: z.ZodString;
8834
+ }, "strip", z.ZodTypeAny, {
8835
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8836
+ item: string;
8837
+ full_path: string;
8838
+ conflict_owner: string;
8839
+ conflict_path: string;
8840
+ }, {
8841
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8842
+ item: string;
8843
+ full_path: string;
8844
+ conflict_owner: string;
8845
+ conflict_path: string;
8846
+ }>;
8847
+ export type MarketplacePreviewCollision = z.infer<typeof marketplacePreviewCollision>;
8848
+ /** One public route the operator is asked to accept: served WITHOUT
8849
+ * authentication once installed. */
8850
+ export declare const marketplacePreviewPublicRoute: z.ZodObject<{
8851
+ item: z.ZodString;
8852
+ full_path: z.ZodString;
8853
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8854
+ }, "strip", z.ZodTypeAny, {
8855
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8856
+ item: string;
8857
+ full_path: string;
8858
+ }, {
8859
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8860
+ item: string;
8861
+ full_path: string;
8862
+ }>;
8863
+ export type MarketplacePreviewPublicRoute = z.infer<typeof marketplacePreviewPublicRoute>;
8864
+ /**
8865
+ * The install preview (`POST /api/marketplace/install/preview`): the resolved
8866
+ * routes per item with any base overrides applied, the collisions against the
8867
+ * live registry, the public routes requiring acceptance, and whether acceptance
8868
+ * is required at all. `new_public_routes` narrows to rows not already approved
8869
+ * (the update case); on a fresh install it equals `public_routes`.
8870
+ */
8871
+ export declare const marketplaceInstallPreview: z.ZodObject<{
8872
+ ref: z.ZodString;
8873
+ version: z.ZodString;
8874
+ items: z.ZodArray<z.ZodObject<{
8875
+ item: z.ZodString;
8876
+ kind: z.ZodString;
8877
+ base: z.ZodString;
8878
+ default_base: z.ZodString;
8879
+ routes: z.ZodArray<z.ZodObject<{
8880
+ path: z.ZodString;
8881
+ full_path: z.ZodString;
8882
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8883
+ public: z.ZodBoolean;
8884
+ }, "strip", z.ZodTypeAny, {
8885
+ path: string;
8886
+ public: boolean;
8887
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8888
+ full_path: string;
8889
+ }, {
8890
+ path: string;
8891
+ public: boolean;
8892
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8893
+ full_path: string;
8894
+ }>, "many">;
8895
+ }, "strip", z.ZodTypeAny, {
8896
+ kind: string;
8897
+ routes: {
8898
+ path: string;
8899
+ public: boolean;
8900
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8901
+ full_path: string;
8902
+ }[];
8903
+ base: string;
8904
+ item: string;
8905
+ default_base: string;
8906
+ }, {
8907
+ kind: string;
8908
+ routes: {
8909
+ path: string;
8910
+ public: boolean;
8911
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8912
+ full_path: string;
8913
+ }[];
8914
+ base: string;
8915
+ item: string;
8916
+ default_base: string;
8917
+ }>, "many">;
8918
+ collisions: z.ZodArray<z.ZodObject<{
8919
+ item: z.ZodString;
8920
+ full_path: z.ZodString;
8921
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8922
+ conflict_owner: z.ZodString;
8923
+ conflict_path: z.ZodString;
8924
+ }, "strip", z.ZodTypeAny, {
8925
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8926
+ item: string;
8927
+ full_path: string;
8928
+ conflict_owner: string;
8929
+ conflict_path: string;
8930
+ }, {
8931
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8932
+ item: string;
8933
+ full_path: string;
8934
+ conflict_owner: string;
8935
+ conflict_path: string;
8936
+ }>, "many">;
8937
+ public_routes: z.ZodArray<z.ZodObject<{
8938
+ item: z.ZodString;
8939
+ full_path: z.ZodString;
8940
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8941
+ }, "strip", z.ZodTypeAny, {
8942
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8943
+ item: string;
8944
+ full_path: string;
8945
+ }, {
8946
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8947
+ item: string;
8948
+ full_path: string;
8949
+ }>, "many">;
8950
+ new_public_routes: z.ZodArray<z.ZodObject<{
8951
+ item: z.ZodString;
8952
+ full_path: z.ZodString;
8953
+ methods: z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>, "many">;
8954
+ }, "strip", z.ZodTypeAny, {
8955
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8956
+ item: string;
8957
+ full_path: string;
8958
+ }, {
8959
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8960
+ item: string;
8961
+ full_path: string;
8962
+ }>, "many">;
8963
+ requires_public_acceptance: z.ZodBoolean;
8964
+ }, "strip", z.ZodTypeAny, {
8965
+ items: {
8966
+ kind: string;
8967
+ routes: {
8968
+ path: string;
8969
+ public: boolean;
8970
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8971
+ full_path: string;
8972
+ }[];
8973
+ base: string;
8974
+ item: string;
8975
+ default_base: string;
8976
+ }[];
8977
+ version: string;
8978
+ ref: string;
8979
+ collisions: {
8980
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8981
+ item: string;
8982
+ full_path: string;
8983
+ conflict_owner: string;
8984
+ conflict_path: string;
8985
+ }[];
8986
+ public_routes: {
8987
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8988
+ item: string;
8989
+ full_path: string;
8990
+ }[];
8991
+ new_public_routes: {
8992
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8993
+ item: string;
8994
+ full_path: string;
8995
+ }[];
8996
+ requires_public_acceptance: boolean;
8997
+ }, {
8998
+ items: {
8999
+ kind: string;
9000
+ routes: {
9001
+ path: string;
9002
+ public: boolean;
9003
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
9004
+ full_path: string;
9005
+ }[];
9006
+ base: string;
9007
+ item: string;
9008
+ default_base: string;
9009
+ }[];
9010
+ version: string;
9011
+ ref: string;
9012
+ collisions: {
9013
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
9014
+ item: string;
9015
+ full_path: string;
9016
+ conflict_owner: string;
9017
+ conflict_path: string;
9018
+ }[];
9019
+ public_routes: {
9020
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
9021
+ item: string;
9022
+ full_path: string;
9023
+ }[];
9024
+ new_public_routes: {
9025
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
9026
+ item: string;
9027
+ full_path: string;
9028
+ }[];
9029
+ requires_public_acceptance: boolean;
9030
+ }>;
9031
+ export type MarketplaceInstallPreview = z.infer<typeof marketplaceInstallPreview>;
8389
9032
  /**
8390
9033
  * The receipt of an uninstall. `notes` carries operator warnings (e.g. a config
8391
9034
  * provider still selected by its env var); render them like the install