@m6d/cortex 0.4.0 → 0.5.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +882 -127
  2. package/dist/index.js +109 -46
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1564,8 +1564,14 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1564
1564
  }, z.core.$strict>>;
1565
1565
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1566
1566
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
1567
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
1568
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
1567
+ rateLimits: z.ZodPrefault<z.ZodObject<{
1568
+ allUsers: z.ZodPrefault<z.ZodObject<{
1569
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1570
+ }, z.core.$strict>>;
1571
+ perUser: z.ZodPrefault<z.ZodObject<{
1572
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1573
+ }, z.core.$strict>>;
1574
+ }, z.core.$strict>>;
1569
1575
  projectOutput: z.ZodDefault<z.ZodBoolean>;
1570
1576
  pinned: z.ZodDefault<z.ZodBoolean>;
1571
1577
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1578,24 +1584,68 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1578
1584
  agents: z.ZodArray<z.ZodString>;
1579
1585
  }, z.core.$strict>
1580
1586
  ]>;
1581
- overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1582
- description: "description";
1583
- timeoutMs: "timeoutMs";
1584
- maxResponseBytes: "maxResponseBytes";
1585
- rateLimitRequests: "rateLimitRequests";
1586
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
1587
- pinned: "pinned";
1588
- tags: "tags";
1589
- }>>>;
1590
1587
  name: z.ZodString;
1591
1588
  description: z.ZodString;
1592
1589
  url: z.ZodURL;
1593
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
1590
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1594
1591
  header: z.ZodString;
1595
1592
  prefix: z.ZodDefault<z.ZodString>;
1596
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
1593
+ from: z.ZodType<{
1594
+ kind: "variable";
1595
+ name: string;
1596
+ } | {
1597
+ kind: "credential";
1598
+ name: string;
1599
+ } | {
1600
+ kind: "constant";
1601
+ value: string;
1602
+ } | {
1603
+ kind: "runToken";
1604
+ }, {
1605
+ kind: "variable";
1606
+ name: string;
1607
+ } | {
1608
+ kind: "credential";
1609
+ name: string;
1610
+ } | {
1611
+ kind: "constant";
1612
+ value: string;
1613
+ } | {
1614
+ kind: "runToken";
1615
+ }, z.core.$ZodTypeInternals<{
1616
+ kind: "variable";
1617
+ name: string;
1618
+ } | {
1619
+ kind: "credential";
1620
+ name: string;
1621
+ } | {
1622
+ kind: "constant";
1623
+ value: string;
1624
+ } | {
1625
+ kind: "runToken";
1626
+ }, {
1627
+ kind: "variable";
1628
+ name: string;
1629
+ } | {
1630
+ kind: "credential";
1631
+ name: string;
1632
+ } | {
1633
+ kind: "constant";
1634
+ value: string;
1635
+ } | {
1636
+ kind: "runToken";
1637
+ }>>;
1597
1638
  }, z.core.$strict>>>;
1598
1639
  requiresApproval: z.ZodDefault<z.ZodBoolean>;
1640
+ overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1641
+ description: "description";
1642
+ headers: "headers";
1643
+ timeoutMs: "timeoutMs";
1644
+ maxResponseBytes: "maxResponseBytes";
1645
+ rateLimits: "rateLimits";
1646
+ pinned: "pinned";
1647
+ tags: "tags";
1648
+ }>>>;
1599
1649
  responseWrap: z.ZodOptional<z.ZodEnum<{
1600
1650
  value: "value";
1601
1651
  items: "items";
@@ -1850,19 +1900,69 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1850
1900
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1851
1901
  "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1852
1902
  }, z.core.$strict>>;
1853
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
1903
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1854
1904
  header: z.ZodString;
1855
1905
  prefix: z.ZodDefault<z.ZodString>;
1856
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
1906
+ from: z.ZodType<{
1907
+ kind: "variable";
1908
+ name: string;
1909
+ } | {
1910
+ kind: "credential";
1911
+ name: string;
1912
+ } | {
1913
+ kind: "constant";
1914
+ value: string;
1915
+ } | {
1916
+ kind: "runToken";
1917
+ }, {
1918
+ kind: "variable";
1919
+ name: string;
1920
+ } | {
1921
+ kind: "credential";
1922
+ name: string;
1923
+ } | {
1924
+ kind: "constant";
1925
+ value: string;
1926
+ } | {
1927
+ kind: "runToken";
1928
+ }, z.core.$ZodTypeInternals<{
1929
+ kind: "variable";
1930
+ name: string;
1931
+ } | {
1932
+ kind: "credential";
1933
+ name: string;
1934
+ } | {
1935
+ kind: "constant";
1936
+ value: string;
1937
+ } | {
1938
+ kind: "runToken";
1939
+ }, {
1940
+ kind: "variable";
1941
+ name: string;
1942
+ } | {
1943
+ kind: "credential";
1944
+ name: string;
1945
+ } | {
1946
+ kind: "constant";
1947
+ value: string;
1948
+ } | {
1949
+ kind: "runToken";
1950
+ }>>;
1857
1951
  }, z.core.$strict>>>;
1858
1952
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1859
1953
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
1860
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
1861
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
1862
1954
  url: z.ZodURL;
1863
- projectOutput: z.ZodDefault<z.ZodBoolean>;
1955
+ rateLimits: z.ZodPrefault<z.ZodObject<{
1956
+ allUsers: z.ZodPrefault<z.ZodObject<{
1957
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1958
+ }, z.core.$strict>>;
1959
+ perUser: z.ZodPrefault<z.ZodObject<{
1960
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1961
+ }, z.core.$strict>>;
1962
+ }, z.core.$strict>>;
1864
1963
  pinned: z.ZodDefault<z.ZodBoolean>;
1865
1964
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1965
+ projectOutput: z.ZodDefault<z.ZodBoolean>;
1866
1966
  audience: z.ZodUnion<readonly [
1867
1967
  z.ZodLiteral<"all">,
1868
1968
  z.ZodObject<{
@@ -1874,10 +1974,10 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1874
1974
  ]>;
1875
1975
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1876
1976
  description: "description";
1977
+ headers: "headers";
1877
1978
  timeoutMs: "timeoutMs";
1878
1979
  maxResponseBytes: "maxResponseBytes";
1879
- rateLimitRequests: "rateLimitRequests";
1880
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
1980
+ rateLimits: "rateLimits";
1881
1981
  pinned: "pinned";
1882
1982
  tags: "tags";
1883
1983
  }>>>;
@@ -2130,8 +2230,14 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
2130
2230
  }, z.core.$strict>>;
2131
2231
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2132
2232
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
2133
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
2134
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
2233
+ rateLimits: z.ZodPrefault<z.ZodObject<{
2234
+ allUsers: z.ZodPrefault<z.ZodObject<{
2235
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2236
+ }, z.core.$strict>>;
2237
+ perUser: z.ZodPrefault<z.ZodObject<{
2238
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2239
+ }, z.core.$strict>>;
2240
+ }, z.core.$strict>>;
2135
2241
  projectOutput: z.ZodDefault<z.ZodBoolean>;
2136
2242
  pinned: z.ZodDefault<z.ZodBoolean>;
2137
2243
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2144,24 +2250,68 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
2144
2250
  agents: z.ZodArray<z.ZodString>;
2145
2251
  }, z.core.$strict>
2146
2252
  ]>;
2147
- overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2148
- description: "description";
2149
- timeoutMs: "timeoutMs";
2150
- maxResponseBytes: "maxResponseBytes";
2151
- rateLimitRequests: "rateLimitRequests";
2152
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
2153
- pinned: "pinned";
2154
- tags: "tags";
2155
- }>>>;
2156
2253
  name: z.ZodString;
2157
2254
  description: z.ZodString;
2158
2255
  url: z.ZodURL;
2159
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
2256
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2160
2257
  header: z.ZodString;
2161
2258
  prefix: z.ZodDefault<z.ZodString>;
2162
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
2259
+ from: z.ZodType<{
2260
+ kind: "variable";
2261
+ name: string;
2262
+ } | {
2263
+ kind: "credential";
2264
+ name: string;
2265
+ } | {
2266
+ kind: "constant";
2267
+ value: string;
2268
+ } | {
2269
+ kind: "runToken";
2270
+ }, {
2271
+ kind: "variable";
2272
+ name: string;
2273
+ } | {
2274
+ kind: "credential";
2275
+ name: string;
2276
+ } | {
2277
+ kind: "constant";
2278
+ value: string;
2279
+ } | {
2280
+ kind: "runToken";
2281
+ }, z.core.$ZodTypeInternals<{
2282
+ kind: "variable";
2283
+ name: string;
2284
+ } | {
2285
+ kind: "credential";
2286
+ name: string;
2287
+ } | {
2288
+ kind: "constant";
2289
+ value: string;
2290
+ } | {
2291
+ kind: "runToken";
2292
+ }, {
2293
+ kind: "variable";
2294
+ name: string;
2295
+ } | {
2296
+ kind: "credential";
2297
+ name: string;
2298
+ } | {
2299
+ kind: "constant";
2300
+ value: string;
2301
+ } | {
2302
+ kind: "runToken";
2303
+ }>>;
2163
2304
  }, z.core.$strict>>>;
2164
2305
  requiresApproval: z.ZodDefault<z.ZodBoolean>;
2306
+ overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2307
+ description: "description";
2308
+ headers: "headers";
2309
+ timeoutMs: "timeoutMs";
2310
+ maxResponseBytes: "maxResponseBytes";
2311
+ rateLimits: "rateLimits";
2312
+ pinned: "pinned";
2313
+ tags: "tags";
2314
+ }>>>;
2165
2315
  soapVersion: z.ZodEnum<{
2166
2316
  1.1: "1.1";
2167
2317
  1.2: "1.2";
@@ -2527,8 +2677,14 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
2527
2677
  }, z.core.$strict>>;
2528
2678
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2529
2679
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
2530
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
2531
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
2680
+ rateLimits: z.ZodPrefault<z.ZodObject<{
2681
+ allUsers: z.ZodPrefault<z.ZodObject<{
2682
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2683
+ }, z.core.$strict>>;
2684
+ perUser: z.ZodPrefault<z.ZodObject<{
2685
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2686
+ }, z.core.$strict>>;
2687
+ }, z.core.$strict>>;
2532
2688
  projectOutput: z.ZodDefault<z.ZodBoolean>;
2533
2689
  pinned: z.ZodDefault<z.ZodBoolean>;
2534
2690
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2545,8 +2701,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
2545
2701
  description: "description";
2546
2702
  timeoutMs: "timeoutMs";
2547
2703
  maxResponseBytes: "maxResponseBytes";
2548
- rateLimitRequests: "rateLimitRequests";
2549
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
2704
+ rateLimits: "rateLimits";
2550
2705
  pinned: "pinned";
2551
2706
  tags: "tags";
2552
2707
  }>>>;
@@ -2882,12 +3037,64 @@ export type ManifestTrigger = z.input<typeof manifestTriggerSchema>;
2882
3037
  declare const manifestDatasetHostSchema: z.ZodObject<{
2883
3038
  name: z.ZodString;
2884
3039
  url: z.ZodURL;
2885
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3040
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2886
3041
  header: z.ZodString;
2887
3042
  prefix: z.ZodDefault<z.ZodString>;
2888
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3043
+ from: z.ZodType<{
3044
+ kind: "variable";
3045
+ name: string;
3046
+ } | {
3047
+ kind: "credential";
3048
+ name: string;
3049
+ } | {
3050
+ kind: "constant";
3051
+ value: string;
3052
+ } | {
3053
+ kind: "runToken";
3054
+ }, {
3055
+ kind: "variable";
3056
+ name: string;
3057
+ } | {
3058
+ kind: "credential";
3059
+ name: string;
3060
+ } | {
3061
+ kind: "constant";
3062
+ value: string;
3063
+ } | {
3064
+ kind: "runToken";
3065
+ }, z.core.$ZodTypeInternals<{
3066
+ kind: "variable";
3067
+ name: string;
3068
+ } | {
3069
+ kind: "credential";
3070
+ name: string;
3071
+ } | {
3072
+ kind: "constant";
3073
+ value: string;
3074
+ } | {
3075
+ kind: "runToken";
3076
+ }, {
3077
+ kind: "variable";
3078
+ name: string;
3079
+ } | {
3080
+ kind: "credential";
3081
+ name: string;
3082
+ } | {
3083
+ kind: "constant";
3084
+ value: string;
3085
+ } | {
3086
+ kind: "runToken";
3087
+ }>>;
2889
3088
  }, z.core.$strict>>>;
2890
3089
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3090
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3091
+ allUsers: z.ZodPrefault<z.ZodObject<{
3092
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3093
+ }, z.core.$strict>>;
3094
+ perUser: z.ZodPrefault<z.ZodObject<{
3095
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3096
+ }, z.core.$strict>>;
3097
+ }, z.core.$strict>>;
2891
3098
  expose: z.ZodArray<z.ZodString>;
2892
3099
  pinned: z.ZodDefault<z.ZodArray<z.ZodString>>;
2893
3100
  audience: z.ZodUnion<readonly [
@@ -2900,17 +3107,63 @@ declare const manifestDatasetHostSchema: z.ZodObject<{
2900
3107
  }, z.core.$strict>
2901
3108
  ]>;
2902
3109
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3110
+ headers: "headers";
2903
3111
  timeoutMs: "timeoutMs";
3112
+ rateLimits: "rateLimits";
2904
3113
  }>>>;
2905
3114
  }, z.core.$strict>;
2906
3115
  export type ManifestDatasetHost = z.input<typeof manifestDatasetHostSchema>;
2907
3116
  declare const manifestMcpServerSchema: z.ZodObject<{
2908
3117
  name: z.ZodString;
2909
3118
  url: z.ZodURL;
2910
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3119
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2911
3120
  header: z.ZodString;
2912
3121
  prefix: z.ZodDefault<z.ZodString>;
2913
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3122
+ from: z.ZodType<{
3123
+ kind: "variable";
3124
+ name: string;
3125
+ } | {
3126
+ kind: "credential";
3127
+ name: string;
3128
+ } | {
3129
+ kind: "constant";
3130
+ value: string;
3131
+ } | {
3132
+ kind: "runToken";
3133
+ }, {
3134
+ kind: "variable";
3135
+ name: string;
3136
+ } | {
3137
+ kind: "credential";
3138
+ name: string;
3139
+ } | {
3140
+ kind: "constant";
3141
+ value: string;
3142
+ } | {
3143
+ kind: "runToken";
3144
+ }, z.core.$ZodTypeInternals<{
3145
+ kind: "variable";
3146
+ name: string;
3147
+ } | {
3148
+ kind: "credential";
3149
+ name: string;
3150
+ } | {
3151
+ kind: "constant";
3152
+ value: string;
3153
+ } | {
3154
+ kind: "runToken";
3155
+ }, {
3156
+ kind: "variable";
3157
+ name: string;
3158
+ } | {
3159
+ kind: "credential";
3160
+ name: string;
3161
+ } | {
3162
+ kind: "constant";
3163
+ value: string;
3164
+ } | {
3165
+ kind: "runToken";
3166
+ }>>;
2914
3167
  }, z.core.$strict>>>;
2915
3168
  include: z.ZodDefault<z.ZodArray<z.ZodString>>;
2916
3169
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2924,6 +3177,7 @@ declare const manifestMcpServerSchema: z.ZodObject<{
2924
3177
  }, z.core.$strict>
2925
3178
  ]>;
2926
3179
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3180
+ headers: "headers";
2927
3181
  include: "include";
2928
3182
  exclude: "exclude";
2929
3183
  }>>>;
@@ -2936,10 +3190,34 @@ declare const manifestWebhookSchema: z.ZodObject<{
2936
3190
  approval_requested: "approval_requested";
2937
3191
  }>;
2938
3192
  url: z.ZodURL;
2939
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3193
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2940
3194
  header: z.ZodString;
2941
3195
  prefix: z.ZodDefault<z.ZodString>;
2942
- credential: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
3196
+ from: z.ZodType<{
3197
+ kind: "credential";
3198
+ name: string;
3199
+ } | {
3200
+ kind: "constant";
3201
+ value: string;
3202
+ }, {
3203
+ kind: "credential";
3204
+ name: string;
3205
+ } | {
3206
+ kind: "constant";
3207
+ value: string;
3208
+ }, z.core.$ZodTypeInternals<{
3209
+ kind: "credential";
3210
+ name: string;
3211
+ } | {
3212
+ kind: "constant";
3213
+ value: string;
3214
+ }, {
3215
+ kind: "credential";
3216
+ name: string;
3217
+ } | {
3218
+ kind: "constant";
3219
+ value: string;
3220
+ }>>;
2943
3221
  }, z.core.$strict>>>;
2944
3222
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2945
3223
  audience: z.ZodUnion<readonly [
@@ -2953,6 +3231,7 @@ declare const manifestWebhookSchema: z.ZodObject<{
2953
3231
  ]>;
2954
3232
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2955
3233
  description: "description";
3234
+ headers: "headers";
2956
3235
  timeoutMs: "timeoutMs";
2957
3236
  }>>>;
2958
3237
  }, z.core.$strict>;
@@ -3001,6 +3280,12 @@ declare const manifestAgentSchema: z.ZodObject<{
3001
3280
  }, z.core.$strict>,
3002
3281
  z.ZodObject<{
3003
3282
  kind: z.ZodLiteral<"anonymous">;
3283
+ recaptcha: z.ZodOptional<z.ZodObject<{
3284
+ siteKey: z.ZodString;
3285
+ projectId: z.ZodString;
3286
+ secret: z.ZodString;
3287
+ minScore: z.ZodDefault<z.ZodNumber>;
3288
+ }, z.core.$strict>>;
3004
3289
  }, z.core.$strict>,
3005
3290
  z.ZodObject<{
3006
3291
  kind: z.ZodLiteral<"server">;
@@ -3039,9 +3324,16 @@ declare const manifestAgentSchema: z.ZodObject<{
3039
3324
  en: "en";
3040
3325
  ar: "ar";
3041
3326
  }>>;
3042
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3043
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
3044
- dailyExecutionQuota: z.ZodDefault<z.ZodNumber>;
3327
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3328
+ allUsers: z.ZodPrefault<z.ZodObject<{
3329
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3330
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3331
+ }, z.core.$strict>>;
3332
+ perUser: z.ZodPrefault<z.ZodObject<{
3333
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3334
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3335
+ }, z.core.$strict>>;
3336
+ }, z.core.$strict>>;
3045
3337
  context: z.ZodPrefault<z.ZodObject<{
3046
3338
  maxContextTokens: z.ZodDefault<z.ZodNumber>;
3047
3339
  summarizationThreshold: z.ZodDefault<z.ZodNumber>;
@@ -3102,6 +3394,12 @@ declare const manifestSchema: z.ZodObject<{
3102
3394
  }, z.core.$strict>,
3103
3395
  z.ZodObject<{
3104
3396
  kind: z.ZodLiteral<"anonymous">;
3397
+ recaptcha: z.ZodOptional<z.ZodObject<{
3398
+ siteKey: z.ZodString;
3399
+ projectId: z.ZodString;
3400
+ secret: z.ZodString;
3401
+ minScore: z.ZodDefault<z.ZodNumber>;
3402
+ }, z.core.$strict>>;
3105
3403
  }, z.core.$strict>,
3106
3404
  z.ZodObject<{
3107
3405
  kind: z.ZodLiteral<"server">;
@@ -3140,9 +3438,16 @@ declare const manifestSchema: z.ZodObject<{
3140
3438
  en: "en";
3141
3439
  ar: "ar";
3142
3440
  }>>;
3143
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3144
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
3145
- dailyExecutionQuota: z.ZodDefault<z.ZodNumber>;
3441
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3442
+ allUsers: z.ZodPrefault<z.ZodObject<{
3443
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3444
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3445
+ }, z.core.$strict>>;
3446
+ perUser: z.ZodPrefault<z.ZodObject<{
3447
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3448
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3449
+ }, z.core.$strict>>;
3450
+ }, z.core.$strict>>;
3146
3451
  context: z.ZodPrefault<z.ZodObject<{
3147
3452
  maxContextTokens: z.ZodDefault<z.ZodNumber>;
3148
3453
  summarizationThreshold: z.ZodDefault<z.ZodNumber>;
@@ -3295,8 +3600,14 @@ declare const manifestSchema: z.ZodObject<{
3295
3600
  }, z.core.$strict>>;
3296
3601
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3297
3602
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3298
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3299
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
3603
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3604
+ allUsers: z.ZodPrefault<z.ZodObject<{
3605
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3606
+ }, z.core.$strict>>;
3607
+ perUser: z.ZodPrefault<z.ZodObject<{
3608
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3609
+ }, z.core.$strict>>;
3610
+ }, z.core.$strict>>;
3300
3611
  projectOutput: z.ZodDefault<z.ZodBoolean>;
3301
3612
  pinned: z.ZodDefault<z.ZodBoolean>;
3302
3613
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3309,24 +3620,68 @@ declare const manifestSchema: z.ZodObject<{
3309
3620
  agents: z.ZodArray<z.ZodString>;
3310
3621
  }, z.core.$strict>
3311
3622
  ]>;
3312
- overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3313
- description: "description";
3314
- timeoutMs: "timeoutMs";
3315
- maxResponseBytes: "maxResponseBytes";
3316
- rateLimitRequests: "rateLimitRequests";
3317
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
3318
- pinned: "pinned";
3319
- tags: "tags";
3320
- }>>>;
3321
3623
  name: z.ZodString;
3322
3624
  description: z.ZodString;
3323
3625
  url: z.ZodURL;
3324
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3626
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3325
3627
  header: z.ZodString;
3326
3628
  prefix: z.ZodDefault<z.ZodString>;
3327
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3629
+ from: z.ZodType<{
3630
+ kind: "variable";
3631
+ name: string;
3632
+ } | {
3633
+ kind: "credential";
3634
+ name: string;
3635
+ } | {
3636
+ kind: "constant";
3637
+ value: string;
3638
+ } | {
3639
+ kind: "runToken";
3640
+ }, {
3641
+ kind: "variable";
3642
+ name: string;
3643
+ } | {
3644
+ kind: "credential";
3645
+ name: string;
3646
+ } | {
3647
+ kind: "constant";
3648
+ value: string;
3649
+ } | {
3650
+ kind: "runToken";
3651
+ }, z.core.$ZodTypeInternals<{
3652
+ kind: "variable";
3653
+ name: string;
3654
+ } | {
3655
+ kind: "credential";
3656
+ name: string;
3657
+ } | {
3658
+ kind: "constant";
3659
+ value: string;
3660
+ } | {
3661
+ kind: "runToken";
3662
+ }, {
3663
+ kind: "variable";
3664
+ name: string;
3665
+ } | {
3666
+ kind: "credential";
3667
+ name: string;
3668
+ } | {
3669
+ kind: "constant";
3670
+ value: string;
3671
+ } | {
3672
+ kind: "runToken";
3673
+ }>>;
3328
3674
  }, z.core.$strict>>>;
3329
3675
  requiresApproval: z.ZodDefault<z.ZodBoolean>;
3676
+ overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3677
+ description: "description";
3678
+ headers: "headers";
3679
+ timeoutMs: "timeoutMs";
3680
+ maxResponseBytes: "maxResponseBytes";
3681
+ rateLimits: "rateLimits";
3682
+ pinned: "pinned";
3683
+ tags: "tags";
3684
+ }>>>;
3330
3685
  responseWrap: z.ZodOptional<z.ZodEnum<{
3331
3686
  value: "value";
3332
3687
  items: "items";
@@ -3581,19 +3936,69 @@ declare const manifestSchema: z.ZodObject<{
3581
3936
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3582
3937
  "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3583
3938
  }, z.core.$strict>>;
3584
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3939
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3585
3940
  header: z.ZodString;
3586
3941
  prefix: z.ZodDefault<z.ZodString>;
3587
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3942
+ from: z.ZodType<{
3943
+ kind: "variable";
3944
+ name: string;
3945
+ } | {
3946
+ kind: "credential";
3947
+ name: string;
3948
+ } | {
3949
+ kind: "constant";
3950
+ value: string;
3951
+ } | {
3952
+ kind: "runToken";
3953
+ }, {
3954
+ kind: "variable";
3955
+ name: string;
3956
+ } | {
3957
+ kind: "credential";
3958
+ name: string;
3959
+ } | {
3960
+ kind: "constant";
3961
+ value: string;
3962
+ } | {
3963
+ kind: "runToken";
3964
+ }, z.core.$ZodTypeInternals<{
3965
+ kind: "variable";
3966
+ name: string;
3967
+ } | {
3968
+ kind: "credential";
3969
+ name: string;
3970
+ } | {
3971
+ kind: "constant";
3972
+ value: string;
3973
+ } | {
3974
+ kind: "runToken";
3975
+ }, {
3976
+ kind: "variable";
3977
+ name: string;
3978
+ } | {
3979
+ kind: "credential";
3980
+ name: string;
3981
+ } | {
3982
+ kind: "constant";
3983
+ value: string;
3984
+ } | {
3985
+ kind: "runToken";
3986
+ }>>;
3588
3987
  }, z.core.$strict>>>;
3589
3988
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3590
3989
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3591
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3592
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
3593
3990
  url: z.ZodURL;
3594
- projectOutput: z.ZodDefault<z.ZodBoolean>;
3991
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3992
+ allUsers: z.ZodPrefault<z.ZodObject<{
3993
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3994
+ }, z.core.$strict>>;
3995
+ perUser: z.ZodPrefault<z.ZodObject<{
3996
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3997
+ }, z.core.$strict>>;
3998
+ }, z.core.$strict>>;
3595
3999
  pinned: z.ZodDefault<z.ZodBoolean>;
3596
4000
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
4001
+ projectOutput: z.ZodDefault<z.ZodBoolean>;
3597
4002
  audience: z.ZodUnion<readonly [
3598
4003
  z.ZodLiteral<"all">,
3599
4004
  z.ZodObject<{
@@ -3605,10 +4010,10 @@ declare const manifestSchema: z.ZodObject<{
3605
4010
  ]>;
3606
4011
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3607
4012
  description: "description";
4013
+ headers: "headers";
3608
4014
  timeoutMs: "timeoutMs";
3609
4015
  maxResponseBytes: "maxResponseBytes";
3610
- rateLimitRequests: "rateLimitRequests";
3611
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
4016
+ rateLimits: "rateLimits";
3612
4017
  pinned: "pinned";
3613
4018
  tags: "tags";
3614
4019
  }>>>;
@@ -3861,8 +4266,14 @@ declare const manifestSchema: z.ZodObject<{
3861
4266
  }, z.core.$strict>>;
3862
4267
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3863
4268
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3864
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3865
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
4269
+ rateLimits: z.ZodPrefault<z.ZodObject<{
4270
+ allUsers: z.ZodPrefault<z.ZodObject<{
4271
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4272
+ }, z.core.$strict>>;
4273
+ perUser: z.ZodPrefault<z.ZodObject<{
4274
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4275
+ }, z.core.$strict>>;
4276
+ }, z.core.$strict>>;
3866
4277
  projectOutput: z.ZodDefault<z.ZodBoolean>;
3867
4278
  pinned: z.ZodDefault<z.ZodBoolean>;
3868
4279
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3875,24 +4286,68 @@ declare const manifestSchema: z.ZodObject<{
3875
4286
  agents: z.ZodArray<z.ZodString>;
3876
4287
  }, z.core.$strict>
3877
4288
  ]>;
3878
- overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3879
- description: "description";
3880
- timeoutMs: "timeoutMs";
3881
- maxResponseBytes: "maxResponseBytes";
3882
- rateLimitRequests: "rateLimitRequests";
3883
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
3884
- pinned: "pinned";
3885
- tags: "tags";
3886
- }>>>;
3887
4289
  name: z.ZodString;
3888
4290
  description: z.ZodString;
3889
4291
  url: z.ZodURL;
3890
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
4292
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3891
4293
  header: z.ZodString;
3892
4294
  prefix: z.ZodDefault<z.ZodString>;
3893
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
4295
+ from: z.ZodType<{
4296
+ kind: "variable";
4297
+ name: string;
4298
+ } | {
4299
+ kind: "credential";
4300
+ name: string;
4301
+ } | {
4302
+ kind: "constant";
4303
+ value: string;
4304
+ } | {
4305
+ kind: "runToken";
4306
+ }, {
4307
+ kind: "variable";
4308
+ name: string;
4309
+ } | {
4310
+ kind: "credential";
4311
+ name: string;
4312
+ } | {
4313
+ kind: "constant";
4314
+ value: string;
4315
+ } | {
4316
+ kind: "runToken";
4317
+ }, z.core.$ZodTypeInternals<{
4318
+ kind: "variable";
4319
+ name: string;
4320
+ } | {
4321
+ kind: "credential";
4322
+ name: string;
4323
+ } | {
4324
+ kind: "constant";
4325
+ value: string;
4326
+ } | {
4327
+ kind: "runToken";
4328
+ }, {
4329
+ kind: "variable";
4330
+ name: string;
4331
+ } | {
4332
+ kind: "credential";
4333
+ name: string;
4334
+ } | {
4335
+ kind: "constant";
4336
+ value: string;
4337
+ } | {
4338
+ kind: "runToken";
4339
+ }>>;
3894
4340
  }, z.core.$strict>>>;
3895
4341
  requiresApproval: z.ZodDefault<z.ZodBoolean>;
4342
+ overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4343
+ description: "description";
4344
+ headers: "headers";
4345
+ timeoutMs: "timeoutMs";
4346
+ maxResponseBytes: "maxResponseBytes";
4347
+ rateLimits: "rateLimits";
4348
+ pinned: "pinned";
4349
+ tags: "tags";
4350
+ }>>>;
3896
4351
  soapVersion: z.ZodEnum<{
3897
4352
  1.1: "1.1";
3898
4353
  1.2: "1.2";
@@ -4258,8 +4713,14 @@ declare const manifestSchema: z.ZodObject<{
4258
4713
  }, z.core.$strict>>;
4259
4714
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4260
4715
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
4261
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
4262
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
4716
+ rateLimits: z.ZodPrefault<z.ZodObject<{
4717
+ allUsers: z.ZodPrefault<z.ZodObject<{
4718
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4719
+ }, z.core.$strict>>;
4720
+ perUser: z.ZodPrefault<z.ZodObject<{
4721
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4722
+ }, z.core.$strict>>;
4723
+ }, z.core.$strict>>;
4263
4724
  projectOutput: z.ZodDefault<z.ZodBoolean>;
4264
4725
  pinned: z.ZodDefault<z.ZodBoolean>;
4265
4726
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -4276,8 +4737,7 @@ declare const manifestSchema: z.ZodObject<{
4276
4737
  description: "description";
4277
4738
  timeoutMs: "timeoutMs";
4278
4739
  maxResponseBytes: "maxResponseBytes";
4279
- rateLimitRequests: "rateLimitRequests";
4280
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
4740
+ rateLimits: "rateLimits";
4281
4741
  pinned: "pinned";
4282
4742
  tags: "tags";
4283
4743
  }>>>;
@@ -4289,10 +4749,54 @@ declare const manifestSchema: z.ZodObject<{
4289
4749
  openapi: z.ZodDefault<z.ZodArray<z.ZodObject<{
4290
4750
  name: z.ZodString;
4291
4751
  url: z.ZodURL;
4292
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
4752
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4293
4753
  header: z.ZodString;
4294
4754
  prefix: z.ZodDefault<z.ZodString>;
4295
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
4755
+ from: z.ZodType<{
4756
+ kind: "variable";
4757
+ name: string;
4758
+ } | {
4759
+ kind: "credential";
4760
+ name: string;
4761
+ } | {
4762
+ kind: "constant";
4763
+ value: string;
4764
+ } | {
4765
+ kind: "runToken";
4766
+ }, {
4767
+ kind: "variable";
4768
+ name: string;
4769
+ } | {
4770
+ kind: "credential";
4771
+ name: string;
4772
+ } | {
4773
+ kind: "constant";
4774
+ value: string;
4775
+ } | {
4776
+ kind: "runToken";
4777
+ }, z.core.$ZodTypeInternals<{
4778
+ kind: "variable";
4779
+ name: string;
4780
+ } | {
4781
+ kind: "credential";
4782
+ name: string;
4783
+ } | {
4784
+ kind: "constant";
4785
+ value: string;
4786
+ } | {
4787
+ kind: "runToken";
4788
+ }, {
4789
+ kind: "variable";
4790
+ name: string;
4791
+ } | {
4792
+ kind: "credential";
4793
+ name: string;
4794
+ } | {
4795
+ kind: "constant";
4796
+ value: string;
4797
+ } | {
4798
+ kind: "runToken";
4799
+ }>>;
4296
4800
  }, z.core.$strict>>>;
4297
4801
  resultPath: z.ZodOptional<z.ZodString>;
4298
4802
  pinned: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -4309,6 +4813,15 @@ declare const manifestSchema: z.ZodObject<{
4309
4813
  agents: z.ZodArray<z.ZodString>;
4310
4814
  }, z.core.$strict>
4311
4815
  ]>;
4816
+ overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4817
+ description: "description";
4818
+ headers: "headers";
4819
+ timeoutMs: "timeoutMs";
4820
+ maxResponseBytes: "maxResponseBytes";
4821
+ rateLimits: "rateLimits";
4822
+ pinned: "pinned";
4823
+ tags: "tags";
4824
+ }>>>;
4312
4825
  }, z.core.$strict>>>;
4313
4826
  services: z.ZodDefault<z.ZodArray<z.ZodObject<{
4314
4827
  key: z.ZodString;
@@ -4633,12 +5146,64 @@ declare const manifestSchema: z.ZodObject<{
4633
5146
  datasetHosts: z.ZodDefault<z.ZodArray<z.ZodObject<{
4634
5147
  name: z.ZodString;
4635
5148
  url: z.ZodURL;
4636
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
5149
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4637
5150
  header: z.ZodString;
4638
5151
  prefix: z.ZodDefault<z.ZodString>;
4639
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
5152
+ from: z.ZodType<{
5153
+ kind: "variable";
5154
+ name: string;
5155
+ } | {
5156
+ kind: "credential";
5157
+ name: string;
5158
+ } | {
5159
+ kind: "constant";
5160
+ value: string;
5161
+ } | {
5162
+ kind: "runToken";
5163
+ }, {
5164
+ kind: "variable";
5165
+ name: string;
5166
+ } | {
5167
+ kind: "credential";
5168
+ name: string;
5169
+ } | {
5170
+ kind: "constant";
5171
+ value: string;
5172
+ } | {
5173
+ kind: "runToken";
5174
+ }, z.core.$ZodTypeInternals<{
5175
+ kind: "variable";
5176
+ name: string;
5177
+ } | {
5178
+ kind: "credential";
5179
+ name: string;
5180
+ } | {
5181
+ kind: "constant";
5182
+ value: string;
5183
+ } | {
5184
+ kind: "runToken";
5185
+ }, {
5186
+ kind: "variable";
5187
+ name: string;
5188
+ } | {
5189
+ kind: "credential";
5190
+ name: string;
5191
+ } | {
5192
+ kind: "constant";
5193
+ value: string;
5194
+ } | {
5195
+ kind: "runToken";
5196
+ }>>;
4640
5197
  }, z.core.$strict>>>;
4641
5198
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5199
+ rateLimits: z.ZodPrefault<z.ZodObject<{
5200
+ allUsers: z.ZodPrefault<z.ZodObject<{
5201
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5202
+ }, z.core.$strict>>;
5203
+ perUser: z.ZodPrefault<z.ZodObject<{
5204
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5205
+ }, z.core.$strict>>;
5206
+ }, z.core.$strict>>;
4642
5207
  expose: z.ZodArray<z.ZodString>;
4643
5208
  pinned: z.ZodDefault<z.ZodArray<z.ZodString>>;
4644
5209
  audience: z.ZodUnion<readonly [
@@ -4651,16 +5216,62 @@ declare const manifestSchema: z.ZodObject<{
4651
5216
  }, z.core.$strict>
4652
5217
  ]>;
4653
5218
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5219
+ headers: "headers";
4654
5220
  timeoutMs: "timeoutMs";
5221
+ rateLimits: "rateLimits";
4655
5222
  }>>>;
4656
5223
  }, z.core.$strict>>>;
4657
5224
  mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4658
5225
  name: z.ZodString;
4659
5226
  url: z.ZodURL;
4660
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
5227
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4661
5228
  header: z.ZodString;
4662
5229
  prefix: z.ZodDefault<z.ZodString>;
4663
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
5230
+ from: z.ZodType<{
5231
+ kind: "variable";
5232
+ name: string;
5233
+ } | {
5234
+ kind: "credential";
5235
+ name: string;
5236
+ } | {
5237
+ kind: "constant";
5238
+ value: string;
5239
+ } | {
5240
+ kind: "runToken";
5241
+ }, {
5242
+ kind: "variable";
5243
+ name: string;
5244
+ } | {
5245
+ kind: "credential";
5246
+ name: string;
5247
+ } | {
5248
+ kind: "constant";
5249
+ value: string;
5250
+ } | {
5251
+ kind: "runToken";
5252
+ }, z.core.$ZodTypeInternals<{
5253
+ kind: "variable";
5254
+ name: string;
5255
+ } | {
5256
+ kind: "credential";
5257
+ name: string;
5258
+ } | {
5259
+ kind: "constant";
5260
+ value: string;
5261
+ } | {
5262
+ kind: "runToken";
5263
+ }, {
5264
+ kind: "variable";
5265
+ name: string;
5266
+ } | {
5267
+ kind: "credential";
5268
+ name: string;
5269
+ } | {
5270
+ kind: "constant";
5271
+ value: string;
5272
+ } | {
5273
+ kind: "runToken";
5274
+ }>>;
4664
5275
  }, z.core.$strict>>>;
4665
5276
  include: z.ZodDefault<z.ZodArray<z.ZodString>>;
4666
5277
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -4674,6 +5285,7 @@ declare const manifestSchema: z.ZodObject<{
4674
5285
  }, z.core.$strict>
4675
5286
  ]>;
4676
5287
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5288
+ headers: "headers";
4677
5289
  include: "include";
4678
5290
  exclude: "exclude";
4679
5291
  }>>>;
@@ -4685,10 +5297,34 @@ declare const manifestSchema: z.ZodObject<{
4685
5297
  approval_requested: "approval_requested";
4686
5298
  }>;
4687
5299
  url: z.ZodURL;
4688
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
5300
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4689
5301
  header: z.ZodString;
4690
5302
  prefix: z.ZodDefault<z.ZodString>;
4691
- credential: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
5303
+ from: z.ZodType<{
5304
+ kind: "credential";
5305
+ name: string;
5306
+ } | {
5307
+ kind: "constant";
5308
+ value: string;
5309
+ }, {
5310
+ kind: "credential";
5311
+ name: string;
5312
+ } | {
5313
+ kind: "constant";
5314
+ value: string;
5315
+ }, z.core.$ZodTypeInternals<{
5316
+ kind: "credential";
5317
+ name: string;
5318
+ } | {
5319
+ kind: "constant";
5320
+ value: string;
5321
+ }, {
5322
+ kind: "credential";
5323
+ name: string;
5324
+ } | {
5325
+ kind: "constant";
5326
+ value: string;
5327
+ }>>;
4692
5328
  }, z.core.$strict>>>;
4693
5329
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4694
5330
  audience: z.ZodUnion<readonly [
@@ -4702,6 +5338,7 @@ declare const manifestSchema: z.ZodObject<{
4702
5338
  ]>;
4703
5339
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4704
5340
  description: "description";
5341
+ headers: "headers";
4705
5342
  timeoutMs: "timeoutMs";
4706
5343
  }>>>;
4707
5344
  }, z.core.$strict>>>;
@@ -4747,6 +5384,12 @@ export declare function defineManifest(manifest: Manifest): {
4747
5384
  audience?: string | undefined;
4748
5385
  } | {
4749
5386
  kind: "anonymous";
5387
+ recaptcha?: {
5388
+ siteKey: string;
5389
+ projectId: string;
5390
+ secret: string;
5391
+ minScore?: number | undefined;
5392
+ } | undefined;
4750
5393
  } | {
4751
5394
  kind: "server";
4752
5395
  };
@@ -4775,9 +5418,16 @@ export declare function defineManifest(manifest: Manifest): {
4775
5418
  media?: ("mermaid" | "vega-lite" | "map" | "report")[] | undefined;
4776
5419
  messageTrigger?: boolean | undefined;
4777
5420
  defaultLocale?: "en" | "ar" | undefined;
4778
- rateLimitRequests?: number | undefined;
4779
- rateLimitWindowSeconds?: number | undefined;
4780
- dailyExecutionQuota?: number | undefined;
5421
+ rateLimits?: {
5422
+ allUsers?: {
5423
+ messagesPerMinute?: number | null | undefined;
5424
+ tokensPerDay?: number | null | undefined;
5425
+ } | undefined;
5426
+ perUser?: {
5427
+ messagesPerMinute?: number | null | undefined;
5428
+ tokensPerDay?: number | null | undefined;
5429
+ } | undefined;
5430
+ } | undefined;
4781
5431
  context?: {
4782
5432
  maxContextTokens?: number | undefined;
4783
5433
  summarizationThreshold?: number | undefined;
@@ -4869,18 +5519,35 @@ export declare function defineManifest(manifest: Manifest): {
4869
5519
  } | undefined;
4870
5520
  timeoutMs?: number | undefined;
4871
5521
  maxResponseBytes?: number | undefined;
4872
- rateLimitRequests?: number | undefined;
4873
- rateLimitWindowSeconds?: number | undefined;
5522
+ rateLimits?: {
5523
+ allUsers?: {
5524
+ callsPerMinute?: number | null | undefined;
5525
+ } | undefined;
5526
+ perUser?: {
5527
+ callsPerMinute?: number | null | undefined;
5528
+ } | undefined;
5529
+ } | undefined;
4874
5530
  projectOutput?: boolean | undefined;
4875
5531
  pinned?: boolean | undefined;
4876
5532
  tags?: string[] | undefined;
4877
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
4878
- credentials?: {
5533
+ headers?: {
4879
5534
  header: string;
4880
- credential: string | null;
5535
+ from: {
5536
+ kind: "variable";
5537
+ name: string;
5538
+ } | {
5539
+ kind: "credential";
5540
+ name: string;
5541
+ } | {
5542
+ kind: "constant";
5543
+ value: string;
5544
+ } | {
5545
+ kind: "runToken";
5546
+ };
4881
5547
  prefix?: string | undefined;
4882
5548
  }[] | undefined;
4883
5549
  requiresApproval?: boolean | undefined;
5550
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
4884
5551
  responseWrap?: "value" | "items" | undefined;
4885
5552
  requestMediaType?: "application/x-www-form-urlencoded" | "multipart/form-data" | undefined;
4886
5553
  resultPath?: string | undefined;
@@ -5013,19 +5680,36 @@ export declare function defineManifest(manifest: Manifest): {
5013
5680
  required?: string[] | undefined;
5014
5681
  "x-order"?: string[] | undefined;
5015
5682
  } | undefined;
5016
- credentials?: {
5683
+ headers?: {
5017
5684
  header: string;
5018
- credential: string | null;
5685
+ from: {
5686
+ kind: "variable";
5687
+ name: string;
5688
+ } | {
5689
+ kind: "credential";
5690
+ name: string;
5691
+ } | {
5692
+ kind: "constant";
5693
+ value: string;
5694
+ } | {
5695
+ kind: "runToken";
5696
+ };
5019
5697
  prefix?: string | undefined;
5020
5698
  }[] | undefined;
5021
5699
  timeoutMs?: number | undefined;
5022
5700
  maxResponseBytes?: number | undefined;
5023
- rateLimitRequests?: number | undefined;
5024
- rateLimitWindowSeconds?: number | undefined;
5025
- projectOutput?: boolean | undefined;
5701
+ rateLimits?: {
5702
+ allUsers?: {
5703
+ callsPerMinute?: number | null | undefined;
5704
+ } | undefined;
5705
+ perUser?: {
5706
+ callsPerMinute?: number | null | undefined;
5707
+ } | undefined;
5708
+ } | undefined;
5026
5709
  pinned?: boolean | undefined;
5027
5710
  tags?: string[] | undefined;
5028
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
5711
+ projectOutput?: boolean | undefined;
5712
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
5029
5713
  inputSchema?: {
5030
5714
  type: "object";
5031
5715
  properties?: Record<string, {
@@ -5158,18 +5842,35 @@ export declare function defineManifest(manifest: Manifest): {
5158
5842
  } | undefined;
5159
5843
  timeoutMs?: number | undefined;
5160
5844
  maxResponseBytes?: number | undefined;
5161
- rateLimitRequests?: number | undefined;
5162
- rateLimitWindowSeconds?: number | undefined;
5845
+ rateLimits?: {
5846
+ allUsers?: {
5847
+ callsPerMinute?: number | null | undefined;
5848
+ } | undefined;
5849
+ perUser?: {
5850
+ callsPerMinute?: number | null | undefined;
5851
+ } | undefined;
5852
+ } | undefined;
5163
5853
  projectOutput?: boolean | undefined;
5164
5854
  pinned?: boolean | undefined;
5165
5855
  tags?: string[] | undefined;
5166
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
5167
- credentials?: {
5856
+ headers?: {
5168
5857
  header: string;
5169
- credential: string | null;
5858
+ from: {
5859
+ kind: "variable";
5860
+ name: string;
5861
+ } | {
5862
+ kind: "credential";
5863
+ name: string;
5864
+ } | {
5865
+ kind: "constant";
5866
+ value: string;
5867
+ } | {
5868
+ kind: "runToken";
5869
+ };
5170
5870
  prefix?: string | undefined;
5171
5871
  }[] | undefined;
5172
5872
  requiresApproval?: boolean | undefined;
5873
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
5173
5874
  tokenCall?: {
5174
5875
  envelopeTemplate: string;
5175
5876
  soapAction: string;
@@ -5360,12 +6061,18 @@ export declare function defineManifest(manifest: Manifest): {
5360
6061
  } | undefined;
5361
6062
  timeoutMs?: number | undefined;
5362
6063
  maxResponseBytes?: number | undefined;
5363
- rateLimitRequests?: number | undefined;
5364
- rateLimitWindowSeconds?: number | undefined;
6064
+ rateLimits?: {
6065
+ allUsers?: {
6066
+ callsPerMinute?: number | null | undefined;
6067
+ } | undefined;
6068
+ perUser?: {
6069
+ callsPerMinute?: number | null | undefined;
6070
+ } | undefined;
6071
+ } | undefined;
5365
6072
  projectOutput?: boolean | undefined;
5366
6073
  pinned?: boolean | undefined;
5367
6074
  tags?: string[] | undefined;
5368
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
6075
+ overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
5369
6076
  })[] | undefined;
5370
6077
  openapi?: {
5371
6078
  name: string;
@@ -5375,9 +6082,20 @@ export declare function defineManifest(manifest: Manifest): {
5375
6082
  } | {
5376
6083
  agents: string[];
5377
6084
  };
5378
- credentials?: {
6085
+ headers?: {
5379
6086
  header: string;
5380
- credential: string | null;
6087
+ from: {
6088
+ kind: "variable";
6089
+ name: string;
6090
+ } | {
6091
+ kind: "credential";
6092
+ name: string;
6093
+ } | {
6094
+ kind: "constant";
6095
+ value: string;
6096
+ } | {
6097
+ kind: "runToken";
6098
+ };
5381
6099
  prefix?: string | undefined;
5382
6100
  }[] | undefined;
5383
6101
  resultPath?: string | undefined;
@@ -5386,6 +6104,7 @@ export declare function defineManifest(manifest: Manifest): {
5386
6104
  never?: string[] | undefined;
5387
6105
  always?: string[] | undefined;
5388
6106
  } | undefined;
6107
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
5389
6108
  }[] | undefined;
5390
6109
  services?: {
5391
6110
  key: string;
@@ -5565,14 +6284,33 @@ export declare function defineManifest(manifest: Manifest): {
5565
6284
  } | {
5566
6285
  agents: string[];
5567
6286
  };
5568
- credentials?: {
6287
+ headers?: {
5569
6288
  header: string;
5570
- credential: string | null;
6289
+ from: {
6290
+ kind: "variable";
6291
+ name: string;
6292
+ } | {
6293
+ kind: "credential";
6294
+ name: string;
6295
+ } | {
6296
+ kind: "constant";
6297
+ value: string;
6298
+ } | {
6299
+ kind: "runToken";
6300
+ };
5571
6301
  prefix?: string | undefined;
5572
6302
  }[] | undefined;
5573
6303
  timeoutMs?: number | undefined;
6304
+ rateLimits?: {
6305
+ allUsers?: {
6306
+ queriesPerMinute?: number | null | undefined;
6307
+ } | undefined;
6308
+ perUser?: {
6309
+ queriesPerMinute?: number | null | undefined;
6310
+ } | undefined;
6311
+ } | undefined;
5574
6312
  pinned?: string[] | undefined;
5575
- overridable?: "timeoutMs"[] | undefined;
6313
+ overridable?: ("headers" | "timeoutMs" | "rateLimits")[] | undefined;
5576
6314
  }[] | undefined;
5577
6315
  mcpServers?: {
5578
6316
  name: string;
@@ -5582,14 +6320,25 @@ export declare function defineManifest(manifest: Manifest): {
5582
6320
  } | {
5583
6321
  agents: string[];
5584
6322
  };
5585
- credentials?: {
6323
+ headers?: {
5586
6324
  header: string;
5587
- credential: string | null;
6325
+ from: {
6326
+ kind: "variable";
6327
+ name: string;
6328
+ } | {
6329
+ kind: "credential";
6330
+ name: string;
6331
+ } | {
6332
+ kind: "constant";
6333
+ value: string;
6334
+ } | {
6335
+ kind: "runToken";
6336
+ };
5588
6337
  prefix?: string | undefined;
5589
6338
  }[] | undefined;
5590
6339
  include?: string[] | undefined;
5591
6340
  exclude?: string[] | undefined;
5592
- overridable?: ("include" | "exclude")[] | undefined;
6341
+ overridable?: ("headers" | "include" | "exclude")[] | undefined;
5593
6342
  }[] | undefined;
5594
6343
  webhooks?: {
5595
6344
  name: string;
@@ -5601,13 +6350,19 @@ export declare function defineManifest(manifest: Manifest): {
5601
6350
  agents: string[];
5602
6351
  };
5603
6352
  description?: string | undefined;
5604
- credentials?: {
6353
+ headers?: {
5605
6354
  header: string;
5606
- credential: string;
6355
+ from: {
6356
+ kind: "credential";
6357
+ name: string;
6358
+ } | {
6359
+ kind: "constant";
6360
+ value: string;
6361
+ };
5607
6362
  prefix?: string | undefined;
5608
6363
  }[] | undefined;
5609
6364
  timeoutMs?: number | undefined;
5610
- overridable?: ("description" | "timeoutMs")[] | undefined;
6365
+ overridable?: ("description" | "headers" | "timeoutMs")[] | undefined;
5611
6366
  }[] | undefined;
5612
6367
  collections?: {
5613
6368
  name: string;