@tai42/api-client 4.0.0 → 6.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
@@ -4034,6 +4034,109 @@ export declare const interactionAnswered: z.ZodObject<{
4034
4034
  interaction_id: string;
4035
4035
  }>;
4036
4036
  export type InteractionAnswered = z.infer<typeof interactionAnswered>;
4037
+ /**
4038
+ * A page of pending interactions from `GET /api/interactions?page=&pageSize=`. Each
4039
+ * item is the same record the stream's `interaction.add` frame carries. The pending
4040
+ * set is the paged base the tail-only stream applies live deltas over.
4041
+ */
4042
+ export declare const interactionsPage: z.ZodObject<{
4043
+ total: z.ZodNumber;
4044
+ page: z.ZodNumber;
4045
+ page_size: z.ZodNumber;
4046
+ next_page: z.ZodNullable<z.ZodNumber>;
4047
+ truncated: z.ZodBoolean;
4048
+ items: z.ZodArray<z.ZodObject<{
4049
+ interaction_id: z.ZodString;
4050
+ group_id: z.ZodString;
4051
+ question: z.ZodDefault<z.ZodString>;
4052
+ answer_format: z.ZodEnum<["text", "confirm", "select", "form", "external"]>;
4053
+ format_payload: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown>, Record<string, unknown> | null | undefined>;
4054
+ created_at: z.ZodString;
4055
+ timeout_at: z.ZodString;
4056
+ sensitive: z.ZodDefault<z.ZodBoolean>;
4057
+ server_verified: z.ZodOptional<z.ZodBoolean>;
4058
+ channel: z.ZodOptional<z.ZodString>;
4059
+ recipient: z.ZodOptional<z.ZodString>;
4060
+ origin: z.ZodOptional<z.ZodString>;
4061
+ audience: z.ZodOptional<z.ZodString>;
4062
+ media: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
4063
+ }, "strip", z.ZodTypeAny, {
4064
+ created_at: string;
4065
+ interaction_id: string;
4066
+ group_id: string;
4067
+ question: string;
4068
+ answer_format: "text" | "confirm" | "select" | "form" | "external";
4069
+ format_payload: Record<string, unknown>;
4070
+ timeout_at: string;
4071
+ sensitive: boolean;
4072
+ origin?: string | undefined;
4073
+ server_verified?: boolean | undefined;
4074
+ channel?: string | undefined;
4075
+ recipient?: string | undefined;
4076
+ audience?: string | undefined;
4077
+ media?: unknown[] | undefined;
4078
+ }, {
4079
+ created_at: string;
4080
+ interaction_id: string;
4081
+ group_id: string;
4082
+ answer_format: "text" | "confirm" | "select" | "form" | "external";
4083
+ timeout_at: string;
4084
+ origin?: string | undefined;
4085
+ question?: string | undefined;
4086
+ format_payload?: Record<string, unknown> | null | undefined;
4087
+ sensitive?: boolean | undefined;
4088
+ server_verified?: boolean | undefined;
4089
+ channel?: string | undefined;
4090
+ recipient?: string | undefined;
4091
+ audience?: string | undefined;
4092
+ media?: unknown[] | undefined;
4093
+ }>, "many">;
4094
+ }, "strip", z.ZodTypeAny, {
4095
+ items: {
4096
+ created_at: string;
4097
+ interaction_id: string;
4098
+ group_id: string;
4099
+ question: string;
4100
+ answer_format: "text" | "confirm" | "select" | "form" | "external";
4101
+ format_payload: Record<string, unknown>;
4102
+ timeout_at: string;
4103
+ sensitive: boolean;
4104
+ origin?: string | undefined;
4105
+ server_verified?: boolean | undefined;
4106
+ channel?: string | undefined;
4107
+ recipient?: string | undefined;
4108
+ audience?: string | undefined;
4109
+ media?: unknown[] | undefined;
4110
+ }[];
4111
+ total: number;
4112
+ page: number;
4113
+ page_size: number;
4114
+ next_page: number | null;
4115
+ truncated: boolean;
4116
+ }, {
4117
+ items: {
4118
+ created_at: string;
4119
+ interaction_id: string;
4120
+ group_id: string;
4121
+ answer_format: "text" | "confirm" | "select" | "form" | "external";
4122
+ timeout_at: string;
4123
+ origin?: string | undefined;
4124
+ question?: string | undefined;
4125
+ format_payload?: Record<string, unknown> | null | undefined;
4126
+ sensitive?: boolean | undefined;
4127
+ server_verified?: boolean | undefined;
4128
+ channel?: string | undefined;
4129
+ recipient?: string | undefined;
4130
+ audience?: string | undefined;
4131
+ media?: unknown[] | undefined;
4132
+ }[];
4133
+ total: number;
4134
+ page: number;
4135
+ page_size: number;
4136
+ next_page: number | null;
4137
+ truncated: boolean;
4138
+ }>;
4139
+ export type InteractionsPage = z.infer<typeof interactionsPage>;
4037
4140
  export declare const channels: z.ZodObject<{
4038
4141
  channels: z.ZodArray<z.ZodString, "many">;
4039
4142
  }, "strip", z.ZodTypeAny, {
@@ -6876,13 +6979,10 @@ export declare const run: z.ZodObject<{
6876
6979
  cost: z.ZodNullable<z.ZodNumber>;
6877
6980
  latencyMs: z.ZodNullable<z.ZodNumber>;
6878
6981
  totalTokens: z.ZodNullable<z.ZodNumber>;
6879
- model: z.ZodNullable<z.ZodString>;
6880
6982
  inputPreview: z.ZodType<unknown, z.ZodTypeDef, unknown>;
6881
6983
  outputPreview: z.ZodType<unknown, z.ZodTypeDef, unknown>;
6882
- fetchError: z.ZodNullable<z.ZodString>;
6883
6984
  }, "strip", z.ZodTypeAny, {
6884
6985
  status: "error" | "success";
6885
- model: string | null;
6886
6986
  tags: string[];
6887
6987
  id: string;
6888
6988
  totalTokens: number | null;
@@ -6890,12 +6990,10 @@ export declare const run: z.ZodObject<{
6890
6990
  traceId: string;
6891
6991
  createdAt: string | null;
6892
6992
  latencyMs: number | null;
6893
- fetchError: string | null;
6894
6993
  inputPreview?: unknown;
6895
6994
  outputPreview?: unknown;
6896
6995
  }, {
6897
6996
  status: "error" | "success";
6898
- model: string | null;
6899
6997
  tags: string[];
6900
6998
  id: string;
6901
6999
  totalTokens: number | null;
@@ -6903,7 +7001,6 @@ export declare const run: z.ZodObject<{
6903
7001
  traceId: string;
6904
7002
  createdAt: string | null;
6905
7003
  latencyMs: number | null;
6906
- fetchError: string | null;
6907
7004
  inputPreview?: unknown;
6908
7005
  outputPreview?: unknown;
6909
7006
  }>;
@@ -6918,13 +7015,10 @@ export declare const runsPage: z.ZodObject<{
6918
7015
  cost: z.ZodNullable<z.ZodNumber>;
6919
7016
  latencyMs: z.ZodNullable<z.ZodNumber>;
6920
7017
  totalTokens: z.ZodNullable<z.ZodNumber>;
6921
- model: z.ZodNullable<z.ZodString>;
6922
7018
  inputPreview: z.ZodType<unknown, z.ZodTypeDef, unknown>;
6923
7019
  outputPreview: z.ZodType<unknown, z.ZodTypeDef, unknown>;
6924
- fetchError: z.ZodNullable<z.ZodString>;
6925
7020
  }, "strip", z.ZodTypeAny, {
6926
7021
  status: "error" | "success";
6927
- model: string | null;
6928
7022
  tags: string[];
6929
7023
  id: string;
6930
7024
  totalTokens: number | null;
@@ -6932,12 +7026,10 @@ export declare const runsPage: z.ZodObject<{
6932
7026
  traceId: string;
6933
7027
  createdAt: string | null;
6934
7028
  latencyMs: number | null;
6935
- fetchError: string | null;
6936
7029
  inputPreview?: unknown;
6937
7030
  outputPreview?: unknown;
6938
7031
  }, {
6939
7032
  status: "error" | "success";
6940
- model: string | null;
6941
7033
  tags: string[];
6942
7034
  id: string;
6943
7035
  totalTokens: number | null;
@@ -6945,7 +7037,6 @@ export declare const runsPage: z.ZodObject<{
6945
7037
  traceId: string;
6946
7038
  createdAt: string | null;
6947
7039
  latencyMs: number | null;
6948
- fetchError: string | null;
6949
7040
  inputPreview?: unknown;
6950
7041
  outputPreview?: unknown;
6951
7042
  }>, "many">;
@@ -6954,7 +7045,6 @@ export declare const runsPage: z.ZodObject<{
6954
7045
  }, "strip", z.ZodTypeAny, {
6955
7046
  items: {
6956
7047
  status: "error" | "success";
6957
- model: string | null;
6958
7048
  tags: string[];
6959
7049
  id: string;
6960
7050
  totalTokens: number | null;
@@ -6962,7 +7052,6 @@ export declare const runsPage: z.ZodObject<{
6962
7052
  traceId: string;
6963
7053
  createdAt: string | null;
6964
7054
  latencyMs: number | null;
6965
- fetchError: string | null;
6966
7055
  inputPreview?: unknown;
6967
7056
  outputPreview?: unknown;
6968
7057
  }[];
@@ -6971,7 +7060,6 @@ export declare const runsPage: z.ZodObject<{
6971
7060
  }, {
6972
7061
  items: {
6973
7062
  status: "error" | "success";
6974
- model: string | null;
6975
7063
  tags: string[];
6976
7064
  id: string;
6977
7065
  totalTokens: number | null;
@@ -6979,7 +7067,6 @@ export declare const runsPage: z.ZodObject<{
6979
7067
  traceId: string;
6980
7068
  createdAt: string | null;
6981
7069
  latencyMs: number | null;
6982
- fetchError: string | null;
6983
7070
  inputPreview?: unknown;
6984
7071
  outputPreview?: unknown;
6985
7072
  }[];
@@ -7044,8 +7131,6 @@ export declare const runTrace: z.ZodObject<{
7044
7131
  input: z.ZodType<unknown, z.ZodTypeDef, unknown>;
7045
7132
  output: z.ZodType<unknown, z.ZodTypeDef, unknown>;
7046
7133
  metadata: z.ZodNullable<z.ZodType<unknown, z.ZodTypeDef, unknown>>;
7047
- availability: z.ZodEnum<["unavailable", "full", "partial"]>;
7048
- fetchError: z.ZodNullable<z.ZodString>;
7049
7134
  spans: z.ZodArray<z.ZodObject<{
7050
7135
  id: z.ZodString;
7051
7136
  parentId: z.ZodNullable<z.ZodString>;
@@ -7099,9 +7184,7 @@ export declare const runTrace: z.ZodObject<{
7099
7184
  tags: string[];
7100
7185
  totalCost: number | null;
7101
7186
  traceId: string;
7102
- fetchError: string | null;
7103
7187
  timestamp: string | null;
7104
- availability: "partial" | "unavailable" | "full";
7105
7188
  spans: {
7106
7189
  name: string | null;
7107
7190
  type: string | null;
@@ -7126,9 +7209,7 @@ export declare const runTrace: z.ZodObject<{
7126
7209
  tags: string[];
7127
7210
  totalCost: number | null;
7128
7211
  traceId: string;
7129
- fetchError: string | null;
7130
7212
  timestamp: string | null;
7131
- availability: "partial" | "unavailable" | "full";
7132
7213
  spans: {
7133
7214
  name: string | null;
7134
7215
  type: string | null;
@@ -7159,6 +7240,37 @@ export type RunTrace = z.infer<typeof runTrace>;
7159
7240
  */
7160
7241
  export declare const routeMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
7161
7242
  export type RouteMethod = z.infer<typeof routeMethod>;
7243
+ /**
7244
+ * How the plugin is delivered, derived server-side from whether its spec names a
7245
+ * package: `package` is pip-installed, `descriptor` (marketplace `source` `spec`)
7246
+ * installs nothing but the manifest entry. A CLOSED enum, so a wire value the
7247
+ * server does not derive fails loudly as drift.
7248
+ */
7249
+ export declare const marketplaceDelivery: z.ZodEnum<["package", "descriptor"]>;
7250
+ export type MarketplaceDelivery = z.infer<typeof marketplaceDelivery>;
7251
+ /**
7252
+ * The install-provenance vocabulary a listing/version resolves from: a pip index
7253
+ * (`pypi`), a git tag (`github`), or a descriptor yml (`spec`). CLOSED, so a wire
7254
+ * value outside it fails as drift.
7255
+ */
7256
+ export declare const marketplaceSource: z.ZodEnum<["pypi", "github", "spec"]>;
7257
+ export type MarketplaceSource = z.infer<typeof marketplaceSource>;
7258
+ /**
7259
+ * One env var an item requires before install: its `name` and whether its value is
7260
+ * a `secret` (an OAuth client secret is; a client id or a plain marker var is not).
7261
+ * The install dialog seeds each toggle from `secret` and collects the missing ones.
7262
+ */
7263
+ export declare const marketplaceRequiredEnvVar: z.ZodObject<{
7264
+ name: z.ZodString;
7265
+ secret: z.ZodBoolean;
7266
+ }, "strip", z.ZodTypeAny, {
7267
+ name: string;
7268
+ secret: boolean;
7269
+ }, {
7270
+ name: string;
7271
+ secret: boolean;
7272
+ }>;
7273
+ export type MarketplaceRequiredEnvVar = z.infer<typeof marketplaceRequiredEnvVar>;
7162
7274
  /**
7163
7275
  * One HTTP route an item declares in its `tai-plugin.yml`: a `path` relative to
7164
7276
  * the item's mount base, the `methods` it answers, and whether it is served
@@ -7219,6 +7331,12 @@ export type MarketplaceRoutesDecl = z.infer<typeof marketplaceRoutesDecl>;
7219
7331
  * (tool / agent / extension / …), name, description, free-form tags, and the
7220
7332
  * logical group it belongs to (`null` when ungrouped). `routes` is present only
7221
7333
  * on a route-carrying item (a router or channel); absent/null on every other.
7334
+ * `required_env` is the env vars the item needs before install — but the REGISTRY's
7335
+ * plugin-detail body does NOT carry it per item: required-env is server-computed
7336
+ * (`required_env_for_spec`) and rides the install PREVIEW, never the listing detail,
7337
+ * so the registry OMITS it here and it parses as `undefined`. Optional (not
7338
+ * defaulted) so the type mirrors the wire; the authority the install dialog collects
7339
+ * from is the preview's `required_env`/`missing_env`, never this field.
7222
7340
  */
7223
7341
  export declare const marketplaceItem: z.ZodObject<{
7224
7342
  kind: z.ZodString;
@@ -7256,6 +7374,16 @@ export declare const marketplaceItem: z.ZodObject<{
7256
7374
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7257
7375
  }[];
7258
7376
  }>>>;
7377
+ required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
7378
+ name: z.ZodString;
7379
+ secret: z.ZodBoolean;
7380
+ }, "strip", z.ZodTypeAny, {
7381
+ name: string;
7382
+ secret: boolean;
7383
+ }, {
7384
+ name: string;
7385
+ secret: boolean;
7386
+ }>, "many">>;
7259
7387
  }, "strip", z.ZodTypeAny, {
7260
7388
  name: string;
7261
7389
  description: string;
@@ -7270,6 +7398,10 @@ export declare const marketplaceItem: z.ZodObject<{
7270
7398
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7271
7399
  }[];
7272
7400
  } | null | undefined;
7401
+ required_env?: {
7402
+ name: string;
7403
+ secret: boolean;
7404
+ }[] | undefined;
7273
7405
  }, {
7274
7406
  name: string;
7275
7407
  description: string;
@@ -7284,6 +7416,10 @@ export declare const marketplaceItem: z.ZodObject<{
7284
7416
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7285
7417
  }[];
7286
7418
  } | null | undefined;
7419
+ required_env?: {
7420
+ name: string;
7421
+ secret: boolean;
7422
+ }[] | undefined;
7287
7423
  }>;
7288
7424
  export type MarketplaceItem = z.infer<typeof marketplaceItem>;
7289
7425
  /**
@@ -7336,7 +7472,7 @@ export declare const marketplaceSearchRow: z.ZodObject<{
7336
7472
  name: z.ZodString;
7337
7473
  display_name: z.ZodNullable<z.ZodString>;
7338
7474
  icon_url: z.ZodNullable<z.ZodString>;
7339
- package: z.ZodString;
7475
+ package: z.ZodNullable<z.ZodString>;
7340
7476
  description: z.ZodString;
7341
7477
  categories: z.ZodArray<z.ZodString, "many">;
7342
7478
  tags: z.ZodArray<z.ZodString, "many">;
@@ -7381,9 +7517,9 @@ export declare const marketplaceSearchRow: z.ZodObject<{
7381
7517
  name: string;
7382
7518
  count: number;
7383
7519
  }[];
7520
+ package: string | null;
7384
7521
  ref: string;
7385
7522
  namespace: string;
7386
- package: string;
7387
7523
  trust_tier: string;
7388
7524
  pricing: string;
7389
7525
  latest_version: string | null;
@@ -7406,9 +7542,9 @@ export declare const marketplaceSearchRow: z.ZodObject<{
7406
7542
  name: string;
7407
7543
  count: number;
7408
7544
  }[];
7545
+ package: string | null;
7409
7546
  ref: string;
7410
7547
  namespace: string;
7411
- package: string;
7412
7548
  trust_tier: string;
7413
7549
  pricing: string;
7414
7550
  latest_version: string | null;
@@ -7432,7 +7568,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
7432
7568
  name: z.ZodString;
7433
7569
  display_name: z.ZodNullable<z.ZodString>;
7434
7570
  icon_url: z.ZodNullable<z.ZodString>;
7435
- package: z.ZodString;
7571
+ package: z.ZodNullable<z.ZodString>;
7436
7572
  description: z.ZodString;
7437
7573
  categories: z.ZodArray<z.ZodString, "many">;
7438
7574
  tags: z.ZodArray<z.ZodString, "many">;
@@ -7477,9 +7613,9 @@ export declare const marketplaceSearchPage: z.ZodObject<{
7477
7613
  name: string;
7478
7614
  count: number;
7479
7615
  }[];
7616
+ package: string | null;
7480
7617
  ref: string;
7481
7618
  namespace: string;
7482
- package: string;
7483
7619
  trust_tier: string;
7484
7620
  pricing: string;
7485
7621
  latest_version: string | null;
@@ -7502,9 +7638,9 @@ export declare const marketplaceSearchPage: z.ZodObject<{
7502
7638
  name: string;
7503
7639
  count: number;
7504
7640
  }[];
7641
+ package: string | null;
7505
7642
  ref: string;
7506
7643
  namespace: string;
7507
- package: string;
7508
7644
  trust_tier: string;
7509
7645
  pricing: string;
7510
7646
  latest_version: string | null;
@@ -7535,9 +7671,9 @@ export declare const marketplaceSearchPage: z.ZodObject<{
7535
7671
  name: string;
7536
7672
  count: number;
7537
7673
  }[];
7674
+ package: string | null;
7538
7675
  ref: string;
7539
7676
  namespace: string;
7540
- package: string;
7541
7677
  trust_tier: string;
7542
7678
  pricing: string;
7543
7679
  latest_version: string | null;
@@ -7565,9 +7701,9 @@ export declare const marketplaceSearchPage: z.ZodObject<{
7565
7701
  name: string;
7566
7702
  count: number;
7567
7703
  }[];
7704
+ package: string | null;
7568
7705
  ref: string;
7569
7706
  namespace: string;
7570
- package: string;
7571
7707
  trust_tier: string;
7572
7708
  pricing: string;
7573
7709
  latest_version: string | null;
@@ -7605,15 +7741,13 @@ export declare const marketplaceVersion: z.ZodObject<{
7605
7741
  }>;
7606
7742
  export type MarketplaceVersion = z.infer<typeof marketplaceVersion>;
7607
7743
  /**
7608
- * The listing's latest published version as embedded in its detail: the version,
7609
- * the items it contains, and a minimal typed passthrough of the published spec.
7610
- *
7611
- * `spec` is carried so the install dialog can read an mcp-server item's public
7612
- * `mcp.env` marker strings (`provides[].mcp.env`) and collect its required `!ENV`
7613
- * vars before install. Only that path is typed; everything else on the spec is
7614
- * `.passthrough()`-preserved but unmodelled (zod would otherwise strip the whole
7615
- * `spec` as an unknown key). Nullable + optional: a listing with nothing published
7616
- * carries no spec.
7744
+ * The listing's latest published version as embedded in its detail: the version
7745
+ * (with the `marketplaceVersion` lifecycle fields) and the items it contains. The
7746
+ * registry's detail body carries NO per-version `delivery` field — delivery is
7747
+ * server-computed from whether the spec names a package, and the detail surface
7748
+ * derives it from the listing's `package` (null ⇒ `descriptor`, else `package`).
7749
+ * Env to collect comes from the install preview (`required_env` / `missing_env`),
7750
+ * never from these items.
7617
7751
  */
7618
7752
  export declare const marketplaceLatestVersion: z.ZodObject<{
7619
7753
  version: z.ZodString;
@@ -7657,6 +7791,16 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7657
7791
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7658
7792
  }[];
7659
7793
  }>>>;
7794
+ required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
7795
+ name: z.ZodString;
7796
+ secret: z.ZodBoolean;
7797
+ }, "strip", z.ZodTypeAny, {
7798
+ name: string;
7799
+ secret: boolean;
7800
+ }, {
7801
+ name: string;
7802
+ secret: boolean;
7803
+ }>, "many">>;
7660
7804
  }, "strip", z.ZodTypeAny, {
7661
7805
  name: string;
7662
7806
  description: string;
@@ -7671,6 +7815,10 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7671
7815
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7672
7816
  }[];
7673
7817
  } | null | undefined;
7818
+ required_env?: {
7819
+ name: string;
7820
+ secret: boolean;
7821
+ }[] | undefined;
7674
7822
  }, {
7675
7823
  name: string;
7676
7824
  description: string;
@@ -7685,104 +7833,11 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7685
7833
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7686
7834
  }[];
7687
7835
  } | null | undefined;
7836
+ required_env?: {
7837
+ name: string;
7838
+ secret: boolean;
7839
+ }[] | undefined;
7688
7840
  }>, "many">;
7689
- spec: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7690
- provides: z.ZodArray<z.ZodObject<{
7691
- kind: z.ZodString;
7692
- name: z.ZodString;
7693
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7694
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7695
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7696
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7697
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7698
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7699
- }, z.ZodTypeAny, "passthrough">>>>;
7700
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7701
- kind: z.ZodString;
7702
- name: z.ZodString;
7703
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7704
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7705
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7706
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7707
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7708
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7709
- }, z.ZodTypeAny, "passthrough">>>>;
7710
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7711
- kind: z.ZodString;
7712
- name: z.ZodString;
7713
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7714
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7715
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7716
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7717
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7718
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7719
- }, z.ZodTypeAny, "passthrough">>>>;
7720
- }, z.ZodTypeAny, "passthrough">>, "many">;
7721
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7722
- provides: z.ZodArray<z.ZodObject<{
7723
- kind: z.ZodString;
7724
- name: z.ZodString;
7725
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7726
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7727
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7728
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7729
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7730
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7731
- }, z.ZodTypeAny, "passthrough">>>>;
7732
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7733
- kind: z.ZodString;
7734
- name: z.ZodString;
7735
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7736
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7737
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7738
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7739
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7740
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7741
- }, z.ZodTypeAny, "passthrough">>>>;
7742
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7743
- kind: z.ZodString;
7744
- name: z.ZodString;
7745
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7746
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7747
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7748
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7749
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7750
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7751
- }, z.ZodTypeAny, "passthrough">>>>;
7752
- }, z.ZodTypeAny, "passthrough">>, "many">;
7753
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7754
- provides: z.ZodArray<z.ZodObject<{
7755
- kind: z.ZodString;
7756
- name: z.ZodString;
7757
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7758
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7759
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7760
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7761
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7762
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7763
- }, z.ZodTypeAny, "passthrough">>>>;
7764
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7765
- kind: z.ZodString;
7766
- name: z.ZodString;
7767
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7768
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7769
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7770
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7771
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7772
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7773
- }, z.ZodTypeAny, "passthrough">>>>;
7774
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7775
- kind: z.ZodString;
7776
- name: z.ZodString;
7777
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7778
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7779
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7780
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7781
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7782
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7783
- }, z.ZodTypeAny, "passthrough">>>>;
7784
- }, z.ZodTypeAny, "passthrough">>, "many">;
7785
- }, z.ZodTypeAny, "passthrough">>>>;
7786
7841
  }, "strip", z.ZodTypeAny, {
7787
7842
  status: string;
7788
7843
  items: {
@@ -7799,43 +7854,14 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7799
7854
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7800
7855
  }[];
7801
7856
  } | null | undefined;
7857
+ required_env?: {
7858
+ name: string;
7859
+ secret: boolean;
7860
+ }[] | undefined;
7802
7861
  }[];
7803
7862
  version: string;
7804
7863
  contract_range: string | null;
7805
7864
  published_at: string | null;
7806
- spec?: z.objectOutputType<{
7807
- provides: z.ZodArray<z.ZodObject<{
7808
- kind: z.ZodString;
7809
- name: z.ZodString;
7810
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7811
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7812
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7813
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7814
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7815
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7816
- }, z.ZodTypeAny, "passthrough">>>>;
7817
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7818
- kind: z.ZodString;
7819
- name: z.ZodString;
7820
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7821
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7822
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7823
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7824
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7825
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7826
- }, z.ZodTypeAny, "passthrough">>>>;
7827
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7828
- kind: z.ZodString;
7829
- name: z.ZodString;
7830
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7831
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7832
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7833
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7834
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7835
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7836
- }, z.ZodTypeAny, "passthrough">>>>;
7837
- }, z.ZodTypeAny, "passthrough">>, "many">;
7838
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
7839
7865
  }, {
7840
7866
  status: string;
7841
7867
  items: {
@@ -7852,43 +7878,14 @@ export declare const marketplaceLatestVersion: z.ZodObject<{
7852
7878
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7853
7879
  }[];
7854
7880
  } | null | undefined;
7881
+ required_env?: {
7882
+ name: string;
7883
+ secret: boolean;
7884
+ }[] | undefined;
7855
7885
  }[];
7856
7886
  version: string;
7857
7887
  contract_range: string | null;
7858
7888
  published_at: string | null;
7859
- spec?: z.objectInputType<{
7860
- provides: z.ZodArray<z.ZodObject<{
7861
- kind: z.ZodString;
7862
- name: z.ZodString;
7863
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7864
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7865
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7866
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7867
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7868
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7869
- }, z.ZodTypeAny, "passthrough">>>>;
7870
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7871
- kind: z.ZodString;
7872
- name: z.ZodString;
7873
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7874
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7875
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7876
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7877
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7878
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7879
- }, z.ZodTypeAny, "passthrough">>>>;
7880
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7881
- kind: z.ZodString;
7882
- name: z.ZodString;
7883
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7884
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7885
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7886
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7887
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7888
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
7889
- }, z.ZodTypeAny, "passthrough">>>>;
7890
- }, z.ZodTypeAny, "passthrough">>, "many">;
7891
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
7892
7889
  }>;
7893
7890
  export type MarketplaceLatestVersion = z.infer<typeof marketplaceLatestVersion>;
7894
7891
  /** One advisory row; `withdrawn_at` non-null means it no longer applies. */
@@ -7928,7 +7925,8 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7928
7925
  name: z.ZodString;
7929
7926
  display_name: z.ZodNullable<z.ZodString>;
7930
7927
  icon_url: z.ZodNullable<z.ZodString>;
7931
- package: z.ZodString;
7928
+ package: z.ZodNullable<z.ZodString>;
7929
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["pypi", "github", "spec"]>>>;
7932
7930
  description: z.ZodString;
7933
7931
  readme_md: z.ZodNullable<z.ZodString>;
7934
7932
  license: z.ZodNullable<z.ZodString>;
@@ -7983,6 +7981,16 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7983
7981
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7984
7982
  }[];
7985
7983
  }>>>;
7984
+ required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
7985
+ name: z.ZodString;
7986
+ secret: z.ZodBoolean;
7987
+ }, "strip", z.ZodTypeAny, {
7988
+ name: string;
7989
+ secret: boolean;
7990
+ }, {
7991
+ name: string;
7992
+ secret: boolean;
7993
+ }>, "many">>;
7986
7994
  }, "strip", z.ZodTypeAny, {
7987
7995
  name: string;
7988
7996
  description: string;
@@ -7997,6 +8005,10 @@ export declare const marketplacePluginDetail: z.ZodObject<{
7997
8005
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
7998
8006
  }[];
7999
8007
  } | null | undefined;
8008
+ required_env?: {
8009
+ name: string;
8010
+ secret: boolean;
8011
+ }[] | undefined;
8000
8012
  }, {
8001
8013
  name: string;
8002
8014
  description: string;
@@ -8011,104 +8023,11 @@ export declare const marketplacePluginDetail: z.ZodObject<{
8011
8023
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8012
8024
  }[];
8013
8025
  } | null | undefined;
8026
+ required_env?: {
8027
+ name: string;
8028
+ secret: boolean;
8029
+ }[] | undefined;
8014
8030
  }>, "many">;
8015
- spec: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8016
- provides: z.ZodArray<z.ZodObject<{
8017
- kind: z.ZodString;
8018
- name: z.ZodString;
8019
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8020
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8021
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8022
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8023
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8024
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8025
- }, z.ZodTypeAny, "passthrough">>>>;
8026
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8027
- kind: z.ZodString;
8028
- name: z.ZodString;
8029
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8030
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8031
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8032
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8033
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8034
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8035
- }, z.ZodTypeAny, "passthrough">>>>;
8036
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8037
- kind: z.ZodString;
8038
- name: z.ZodString;
8039
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8040
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8041
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8042
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8043
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8044
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8045
- }, z.ZodTypeAny, "passthrough">>>>;
8046
- }, z.ZodTypeAny, "passthrough">>, "many">;
8047
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8048
- provides: z.ZodArray<z.ZodObject<{
8049
- kind: z.ZodString;
8050
- name: z.ZodString;
8051
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8052
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8053
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8054
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8055
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8056
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8057
- }, z.ZodTypeAny, "passthrough">>>>;
8058
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8059
- kind: z.ZodString;
8060
- name: z.ZodString;
8061
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8062
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8063
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8064
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8065
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8066
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8067
- }, z.ZodTypeAny, "passthrough">>>>;
8068
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8069
- kind: z.ZodString;
8070
- name: z.ZodString;
8071
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8072
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8073
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8074
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8075
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8076
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8077
- }, z.ZodTypeAny, "passthrough">>>>;
8078
- }, z.ZodTypeAny, "passthrough">>, "many">;
8079
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8080
- provides: z.ZodArray<z.ZodObject<{
8081
- kind: z.ZodString;
8082
- name: z.ZodString;
8083
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8084
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8085
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8086
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8087
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8088
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8089
- }, z.ZodTypeAny, "passthrough">>>>;
8090
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8091
- kind: z.ZodString;
8092
- name: z.ZodString;
8093
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8094
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8095
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8096
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8097
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8098
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8099
- }, z.ZodTypeAny, "passthrough">>>>;
8100
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8101
- kind: z.ZodString;
8102
- name: z.ZodString;
8103
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8104
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8105
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8106
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8107
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8108
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8109
- }, z.ZodTypeAny, "passthrough">>>>;
8110
- }, z.ZodTypeAny, "passthrough">>, "many">;
8111
- }, z.ZodTypeAny, "passthrough">>>>;
8112
8031
  }, "strip", z.ZodTypeAny, {
8113
8032
  status: string;
8114
8033
  items: {
@@ -8125,43 +8044,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
8125
8044
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8126
8045
  }[];
8127
8046
  } | null | undefined;
8047
+ required_env?: {
8048
+ name: string;
8049
+ secret: boolean;
8050
+ }[] | undefined;
8128
8051
  }[];
8129
8052
  version: string;
8130
8053
  contract_range: string | null;
8131
8054
  published_at: string | null;
8132
- spec?: z.objectOutputType<{
8133
- provides: z.ZodArray<z.ZodObject<{
8134
- kind: z.ZodString;
8135
- name: z.ZodString;
8136
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8137
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8138
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8139
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8140
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8141
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8142
- }, z.ZodTypeAny, "passthrough">>>>;
8143
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8144
- kind: z.ZodString;
8145
- name: z.ZodString;
8146
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8147
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8148
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8149
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8150
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8151
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8152
- }, z.ZodTypeAny, "passthrough">>>>;
8153
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8154
- kind: z.ZodString;
8155
- name: z.ZodString;
8156
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8157
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8158
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8159
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8160
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8161
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8162
- }, z.ZodTypeAny, "passthrough">>>>;
8163
- }, z.ZodTypeAny, "passthrough">>, "many">;
8164
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
8165
8055
  }, {
8166
8056
  status: string;
8167
8057
  items: {
@@ -8178,43 +8068,14 @@ export declare const marketplacePluginDetail: z.ZodObject<{
8178
8068
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8179
8069
  }[];
8180
8070
  } | null | undefined;
8071
+ required_env?: {
8072
+ name: string;
8073
+ secret: boolean;
8074
+ }[] | undefined;
8181
8075
  }[];
8182
8076
  version: string;
8183
8077
  contract_range: string | null;
8184
8078
  published_at: string | null;
8185
- spec?: z.objectInputType<{
8186
- provides: z.ZodArray<z.ZodObject<{
8187
- kind: z.ZodString;
8188
- name: z.ZodString;
8189
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8190
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8191
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8192
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8193
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8194
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8195
- }, z.ZodTypeAny, "passthrough">>>>;
8196
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8197
- kind: z.ZodString;
8198
- name: z.ZodString;
8199
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8200
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8201
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8202
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8203
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8204
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8205
- }, z.ZodTypeAny, "passthrough">>>>;
8206
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8207
- kind: z.ZodString;
8208
- name: z.ZodString;
8209
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8210
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8211
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8212
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8213
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8214
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8215
- }, z.ZodTypeAny, "passthrough">>>>;
8216
- }, z.ZodTypeAny, "passthrough">>, "many">;
8217
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
8218
8079
  }>>;
8219
8080
  versions: z.ZodArray<z.ZodObject<{
8220
8081
  version: z.ZodString;
@@ -8245,8 +8106,8 @@ export declare const marketplacePluginDetail: z.ZodObject<{
8245
8106
  contract_range: string | null;
8246
8107
  published_at: string | null;
8247
8108
  }[];
8109
+ package: string | null;
8248
8110
  namespace: string;
8249
- package: string;
8250
8111
  trust_tier: string;
8251
8112
  pricing: string;
8252
8113
  downloads: number;
@@ -8270,44 +8131,16 @@ export declare const marketplacePluginDetail: z.ZodObject<{
8270
8131
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8271
8132
  }[];
8272
8133
  } | null | undefined;
8134
+ required_env?: {
8135
+ name: string;
8136
+ secret: boolean;
8137
+ }[] | undefined;
8273
8138
  }[];
8274
8139
  version: string;
8275
8140
  contract_range: string | null;
8276
8141
  published_at: string | null;
8277
- spec?: z.objectOutputType<{
8278
- provides: z.ZodArray<z.ZodObject<{
8279
- kind: z.ZodString;
8280
- name: z.ZodString;
8281
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8282
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8283
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8284
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8285
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8286
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8287
- }, z.ZodTypeAny, "passthrough">>>>;
8288
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8289
- kind: z.ZodString;
8290
- name: z.ZodString;
8291
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8292
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8293
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8294
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8295
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8296
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8297
- }, z.ZodTypeAny, "passthrough">>>>;
8298
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8299
- kind: z.ZodString;
8300
- name: z.ZodString;
8301
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8302
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8303
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8304
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8305
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8306
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8307
- }, z.ZodTypeAny, "passthrough">>>>;
8308
- }, z.ZodTypeAny, "passthrough">>, "many">;
8309
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
8310
8142
  } | null;
8143
+ source?: "pypi" | "github" | "spec" | null | undefined;
8311
8144
  premium?: boolean | null | undefined;
8312
8145
  docs_url?: string | null | undefined;
8313
8146
  }, {
@@ -8323,8 +8156,8 @@ export declare const marketplacePluginDetail: z.ZodObject<{
8323
8156
  contract_range: string | null;
8324
8157
  published_at: string | null;
8325
8158
  }[];
8159
+ package: string | null;
8326
8160
  namespace: string;
8327
- package: string;
8328
8161
  trust_tier: string;
8329
8162
  pricing: string;
8330
8163
  downloads: number;
@@ -8348,44 +8181,16 @@ export declare const marketplacePluginDetail: z.ZodObject<{
8348
8181
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8349
8182
  }[];
8350
8183
  } | null | undefined;
8184
+ required_env?: {
8185
+ name: string;
8186
+ secret: boolean;
8187
+ }[] | undefined;
8351
8188
  }[];
8352
8189
  version: string;
8353
8190
  contract_range: string | null;
8354
8191
  published_at: string | null;
8355
- spec?: z.objectInputType<{
8356
- provides: z.ZodArray<z.ZodObject<{
8357
- kind: z.ZodString;
8358
- name: z.ZodString;
8359
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8360
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8361
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8362
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8363
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8364
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8365
- }, z.ZodTypeAny, "passthrough">>>>;
8366
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8367
- kind: z.ZodString;
8368
- name: z.ZodString;
8369
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8370
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8371
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8372
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8373
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8374
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8375
- }, z.ZodTypeAny, "passthrough">>>>;
8376
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8377
- kind: z.ZodString;
8378
- name: z.ZodString;
8379
- mcp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8380
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8381
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8382
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8383
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8384
- env: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
8385
- }, z.ZodTypeAny, "passthrough">>>>;
8386
- }, z.ZodTypeAny, "passthrough">>, "many">;
8387
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
8388
8192
  } | null;
8193
+ source?: "pypi" | "github" | "spec" | null | undefined;
8389
8194
  premium?: boolean | null | undefined;
8390
8195
  docs_url?: string | null | undefined;
8391
8196
  }>;
@@ -8423,6 +8228,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8423
8228
  ref: z.ZodString;
8424
8229
  version: z.ZodString;
8425
8230
  source: z.ZodString;
8231
+ delivery: z.ZodEnum<["package", "descriptor"]>;
8426
8232
  installed_at: z.ZodString;
8427
8233
  latest: z.ZodNullable<z.ZodString>;
8428
8234
  update_available: z.ZodBoolean;
@@ -8474,6 +8280,16 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8474
8280
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8475
8281
  }[];
8476
8282
  }>>>;
8283
+ required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
8284
+ name: z.ZodString;
8285
+ secret: z.ZodBoolean;
8286
+ }, "strip", z.ZodTypeAny, {
8287
+ name: string;
8288
+ secret: boolean;
8289
+ }, {
8290
+ name: string;
8291
+ secret: boolean;
8292
+ }>, "many">>;
8477
8293
  }, "name" | "kind">, "strip", z.ZodTypeAny, {
8478
8294
  name: string;
8479
8295
  kind: string;
@@ -8491,6 +8307,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8491
8307
  source: string;
8492
8308
  ref: string;
8493
8309
  latest: string | null;
8310
+ delivery: "package" | "descriptor";
8494
8311
  installed_at: string;
8495
8312
  update_available: boolean;
8496
8313
  incompatible_newer: string | null;
@@ -8509,6 +8326,7 @@ export declare const marketplaceInstalledPlugin: z.ZodObject<{
8509
8326
  source: string;
8510
8327
  ref: string;
8511
8328
  latest: string | null;
8329
+ delivery: "package" | "descriptor";
8512
8330
  installed_at: string;
8513
8331
  update_available: boolean;
8514
8332
  incompatible_newer: string | null;
@@ -8541,6 +8359,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8541
8359
  ref: z.ZodString;
8542
8360
  version: z.ZodString;
8543
8361
  source: z.ZodString;
8362
+ delivery: z.ZodEnum<["package", "descriptor"]>;
8544
8363
  installed_at: z.ZodString;
8545
8364
  latest: z.ZodNullable<z.ZodString>;
8546
8365
  update_available: z.ZodBoolean;
@@ -8592,6 +8411,16 @@ export declare const marketplaceInstalled: z.ZodObject<{
8592
8411
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
8593
8412
  }[];
8594
8413
  }>>>;
8414
+ required_env: z.ZodOptional<z.ZodArray<z.ZodObject<{
8415
+ name: z.ZodString;
8416
+ secret: z.ZodBoolean;
8417
+ }, "strip", z.ZodTypeAny, {
8418
+ name: string;
8419
+ secret: boolean;
8420
+ }, {
8421
+ name: string;
8422
+ secret: boolean;
8423
+ }>, "many">>;
8595
8424
  }, "name" | "kind">, "strip", z.ZodTypeAny, {
8596
8425
  name: string;
8597
8426
  kind: string;
@@ -8609,6 +8438,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8609
8438
  source: string;
8610
8439
  ref: string;
8611
8440
  latest: string | null;
8441
+ delivery: "package" | "descriptor";
8612
8442
  installed_at: string;
8613
8443
  update_available: boolean;
8614
8444
  incompatible_newer: string | null;
@@ -8627,6 +8457,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8627
8457
  source: string;
8628
8458
  ref: string;
8629
8459
  latest: string | null;
8460
+ delivery: "package" | "descriptor";
8630
8461
  installed_at: string;
8631
8462
  update_available: boolean;
8632
8463
  incompatible_newer: string | null;
@@ -8657,6 +8488,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8657
8488
  source: string;
8658
8489
  ref: string;
8659
8490
  latest: string | null;
8491
+ delivery: "package" | "descriptor";
8660
8492
  installed_at: string;
8661
8493
  update_available: boolean;
8662
8494
  incompatible_newer: string | null;
@@ -8681,6 +8513,7 @@ export declare const marketplaceInstalled: z.ZodObject<{
8681
8513
  source: string;
8682
8514
  ref: string;
8683
8515
  latest: string | null;
8516
+ delivery: "package" | "descriptor";
8684
8517
  installed_at: string;
8685
8518
  update_available: boolean;
8686
8519
  incompatible_newer: string | null;
@@ -9028,6 +8861,11 @@ export type MarketplacePreviewPublicRoute = z.infer<typeof marketplacePreviewPub
9028
8861
  * live registry, the public routes requiring acceptance, and whether acceptance
9029
8862
  * is required at all. `new_public_routes` narrows to rows not already approved
9030
8863
  * (the update case); on a fresh install it equals `public_routes`.
8864
+ *
8865
+ * `required_env` is every env var the spec requires with its derived secret-ness;
8866
+ * `missing_env` is the bare names not already present in the env store union
8867
+ * process env (server-computed — the ONE authority the dialog collects), and
8868
+ * `delivery` is the one word the surface shows (`package` / `descriptor`).
9031
8869
  */
9032
8870
  export declare const marketplaceInstallPreview: z.ZodObject<{
9033
8871
  ref: z.ZodString;
@@ -9122,6 +8960,18 @@ export declare const marketplaceInstallPreview: z.ZodObject<{
9122
8960
  full_path: string;
9123
8961
  }>, "many">;
9124
8962
  requires_public_acceptance: z.ZodBoolean;
8963
+ required_env: z.ZodArray<z.ZodObject<{
8964
+ name: z.ZodString;
8965
+ secret: z.ZodBoolean;
8966
+ }, "strip", z.ZodTypeAny, {
8967
+ name: string;
8968
+ secret: boolean;
8969
+ }, {
8970
+ name: string;
8971
+ secret: boolean;
8972
+ }>, "many">;
8973
+ missing_env: z.ZodArray<z.ZodString, "many">;
8974
+ delivery: z.ZodEnum<["package", "descriptor"]>;
9125
8975
  }, "strip", z.ZodTypeAny, {
9126
8976
  items: {
9127
8977
  kind: string;
@@ -9136,7 +8986,12 @@ export declare const marketplaceInstallPreview: z.ZodObject<{
9136
8986
  default_base: string;
9137
8987
  }[];
9138
8988
  version: string;
8989
+ required_env: {
8990
+ name: string;
8991
+ secret: boolean;
8992
+ }[];
9139
8993
  ref: string;
8994
+ delivery: "package" | "descriptor";
9140
8995
  collisions: {
9141
8996
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
9142
8997
  item: string;
@@ -9155,6 +9010,7 @@ export declare const marketplaceInstallPreview: z.ZodObject<{
9155
9010
  full_path: string;
9156
9011
  }[];
9157
9012
  requires_public_acceptance: boolean;
9013
+ missing_env: string[];
9158
9014
  }, {
9159
9015
  items: {
9160
9016
  kind: string;
@@ -9169,7 +9025,12 @@ export declare const marketplaceInstallPreview: z.ZodObject<{
9169
9025
  default_base: string;
9170
9026
  }[];
9171
9027
  version: string;
9028
+ required_env: {
9029
+ name: string;
9030
+ secret: boolean;
9031
+ }[];
9172
9032
  ref: string;
9033
+ delivery: "package" | "descriptor";
9173
9034
  collisions: {
9174
9035
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
9175
9036
  item: string;
@@ -9188,6 +9049,7 @@ export declare const marketplaceInstallPreview: z.ZodObject<{
9188
9049
  full_path: string;
9189
9050
  }[];
9190
9051
  requires_public_acceptance: boolean;
9052
+ missing_env: string[];
9191
9053
  }>;
9192
9054
  export type MarketplaceInstallPreview = z.infer<typeof marketplaceInstallPreview>;
9193
9055
  /**