@kya-os/contracts 1.5.4-canary.3 → 1.6.1

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.
@@ -121,6 +121,12 @@ export declare const delegationConfigSchema: z.ZodObject<{
121
121
  requireAuthForUnknown?: boolean | undefined;
122
122
  }>;
123
123
  }, "strip", z.ZodTypeAny, {
124
+ authorization: {
125
+ authorizationUrl?: string | undefined;
126
+ minReputationScore?: number | undefined;
127
+ resumeTokenTtl?: number | undefined;
128
+ requireAuthForUnknown?: boolean | undefined;
129
+ };
124
130
  enabled: boolean;
125
131
  enforceStrictly: boolean;
126
132
  verifier: {
@@ -128,13 +134,13 @@ export declare const delegationConfigSchema: z.ZodObject<{
128
134
  apiUrl?: string | undefined;
129
135
  cacheTtl?: number | undefined;
130
136
  };
137
+ }, {
131
138
  authorization: {
132
139
  authorizationUrl?: string | undefined;
133
140
  minReputationScore?: number | undefined;
134
141
  resumeTokenTtl?: number | undefined;
135
142
  requireAuthForUnknown?: boolean | undefined;
136
143
  };
137
- }, {
138
144
  enabled: boolean;
139
145
  enforceStrictly: boolean;
140
146
  verifier: {
@@ -142,12 +148,6 @@ export declare const delegationConfigSchema: z.ZodObject<{
142
148
  apiUrl?: string | undefined;
143
149
  cacheTtl?: number | undefined;
144
150
  };
145
- authorization: {
146
- authorizationUrl?: string | undefined;
147
- minReputationScore?: number | undefined;
148
- resumeTokenTtl?: number | undefined;
149
- requireAuthForUnknown?: boolean | undefined;
150
- };
151
151
  }>;
152
152
  /**
153
153
  * Tool protection configuration schema
@@ -168,14 +168,110 @@ export declare const toolProtectionConfigSchema: z.ZodObject<{
168
168
  requiresDelegation: z.ZodBoolean;
169
169
  requiredScopes: z.ZodArray<z.ZodString, "many">;
170
170
  riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
171
+ oauthProvider: z.ZodOptional<z.ZodString>;
172
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
173
+ type: z.ZodLiteral<"oauth">;
174
+ provider: z.ZodString;
175
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ type: "oauth";
178
+ provider: string;
179
+ requiredScopes?: string[] | undefined;
180
+ }, {
181
+ type: "oauth";
182
+ provider: string;
183
+ requiredScopes?: string[] | undefined;
184
+ }>, z.ZodObject<{
185
+ type: z.ZodLiteral<"mdl">;
186
+ issuer: z.ZodString;
187
+ credentialType: z.ZodOptional<z.ZodString>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ type: "mdl";
190
+ issuer: string;
191
+ credentialType?: string | undefined;
192
+ }, {
193
+ type: "mdl";
194
+ issuer: string;
195
+ credentialType?: string | undefined;
196
+ }>, z.ZodObject<{
197
+ type: z.ZodLiteral<"idv">;
198
+ provider: z.ZodString;
199
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ type: "idv";
202
+ provider: string;
203
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
204
+ }, {
205
+ type: "idv";
206
+ provider: string;
207
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
208
+ }>, z.ZodObject<{
209
+ type: z.ZodLiteral<"credential">;
210
+ credentialType: z.ZodString;
211
+ issuer: z.ZodOptional<z.ZodString>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ type: "credential";
214
+ credentialType: string;
215
+ issuer?: string | undefined;
216
+ }, {
217
+ type: "credential";
218
+ credentialType: string;
219
+ issuer?: string | undefined;
220
+ }>, z.ZodObject<{
221
+ type: z.ZodLiteral<"none">;
222
+ }, "strip", z.ZodTypeAny, {
223
+ type: "none";
224
+ }, {
225
+ type: "none";
226
+ }>]>>;
171
227
  }, "strip", z.ZodTypeAny, {
172
228
  requiresDelegation: boolean;
173
229
  requiredScopes: string[];
230
+ authorization?: {
231
+ type: "oauth";
232
+ provider: string;
233
+ requiredScopes?: string[] | undefined;
234
+ } | {
235
+ type: "mdl";
236
+ issuer: string;
237
+ credentialType?: string | undefined;
238
+ } | {
239
+ type: "idv";
240
+ provider: string;
241
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
242
+ } | {
243
+ type: "credential";
244
+ credentialType: string;
245
+ issuer?: string | undefined;
246
+ } | {
247
+ type: "none";
248
+ } | undefined;
174
249
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
250
+ oauthProvider?: string | undefined;
175
251
  }, {
176
252
  requiresDelegation: boolean;
177
253
  requiredScopes: string[];
254
+ authorization?: {
255
+ type: "oauth";
256
+ provider: string;
257
+ requiredScopes?: string[] | undefined;
258
+ } | {
259
+ type: "mdl";
260
+ issuer: string;
261
+ credentialType?: string | undefined;
262
+ } | {
263
+ type: "idv";
264
+ provider: string;
265
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
266
+ } | {
267
+ type: "credential";
268
+ credentialType: string;
269
+ issuer?: string | undefined;
270
+ } | {
271
+ type: "none";
272
+ } | undefined;
178
273
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
274
+ oauthProvider?: string | undefined;
179
275
  }>>>;
180
276
  }, "strip", z.ZodTypeAny, {
181
277
  source: "agentshield" | "inline" | "file";
@@ -186,7 +282,27 @@ export declare const toolProtectionConfigSchema: z.ZodObject<{
186
282
  fallback?: Record<string, {
187
283
  requiresDelegation: boolean;
188
284
  requiredScopes: string[];
285
+ authorization?: {
286
+ type: "oauth";
287
+ provider: string;
288
+ requiredScopes?: string[] | undefined;
289
+ } | {
290
+ type: "mdl";
291
+ issuer: string;
292
+ credentialType?: string | undefined;
293
+ } | {
294
+ type: "idv";
295
+ provider: string;
296
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
297
+ } | {
298
+ type: "credential";
299
+ credentialType: string;
300
+ issuer?: string | undefined;
301
+ } | {
302
+ type: "none";
303
+ } | undefined;
189
304
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
305
+ oauthProvider?: string | undefined;
190
306
  }> | undefined;
191
307
  }, {
192
308
  source: "agentshield" | "inline" | "file";
@@ -197,7 +313,27 @@ export declare const toolProtectionConfigSchema: z.ZodObject<{
197
313
  fallback?: Record<string, {
198
314
  requiresDelegation: boolean;
199
315
  requiredScopes: string[];
316
+ authorization?: {
317
+ type: "oauth";
318
+ provider: string;
319
+ requiredScopes?: string[] | undefined;
320
+ } | {
321
+ type: "mdl";
322
+ issuer: string;
323
+ credentialType?: string | undefined;
324
+ } | {
325
+ type: "idv";
326
+ provider: string;
327
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
328
+ } | {
329
+ type: "credential";
330
+ credentialType: string;
331
+ issuer?: string | undefined;
332
+ } | {
333
+ type: "none";
334
+ } | undefined;
200
335
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
336
+ oauthProvider?: string | undefined;
201
337
  }> | undefined;
202
338
  }>;
203
339
  /**
@@ -838,6 +974,12 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
838
974
  requireAuthForUnknown?: boolean | undefined;
839
975
  }>;
840
976
  }, "strip", z.ZodTypeAny, {
977
+ authorization: {
978
+ authorizationUrl?: string | undefined;
979
+ minReputationScore?: number | undefined;
980
+ resumeTokenTtl?: number | undefined;
981
+ requireAuthForUnknown?: boolean | undefined;
982
+ };
841
983
  enabled: boolean;
842
984
  enforceStrictly: boolean;
843
985
  verifier: {
@@ -845,13 +987,13 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
845
987
  apiUrl?: string | undefined;
846
988
  cacheTtl?: number | undefined;
847
989
  };
990
+ }, {
848
991
  authorization: {
849
992
  authorizationUrl?: string | undefined;
850
993
  minReputationScore?: number | undefined;
851
994
  resumeTokenTtl?: number | undefined;
852
995
  requireAuthForUnknown?: boolean | undefined;
853
996
  };
854
- }, {
855
997
  enabled: boolean;
856
998
  enforceStrictly: boolean;
857
999
  verifier: {
@@ -859,12 +1001,6 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
859
1001
  apiUrl?: string | undefined;
860
1002
  cacheTtl?: number | undefined;
861
1003
  };
862
- authorization: {
863
- authorizationUrl?: string | undefined;
864
- minReputationScore?: number | undefined;
865
- resumeTokenTtl?: number | undefined;
866
- requireAuthForUnknown?: boolean | undefined;
867
- };
868
1004
  }>;
869
1005
  toolProtection: z.ZodObject<{
870
1006
  source: z.ZodEnum<["agentshield", "inline", "file"]>;
@@ -882,14 +1018,110 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
882
1018
  requiresDelegation: z.ZodBoolean;
883
1019
  requiredScopes: z.ZodArray<z.ZodString, "many">;
884
1020
  riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1021
+ oauthProvider: z.ZodOptional<z.ZodString>;
1022
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1023
+ type: z.ZodLiteral<"oauth">;
1024
+ provider: z.ZodString;
1025
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ type: "oauth";
1028
+ provider: string;
1029
+ requiredScopes?: string[] | undefined;
1030
+ }, {
1031
+ type: "oauth";
1032
+ provider: string;
1033
+ requiredScopes?: string[] | undefined;
1034
+ }>, z.ZodObject<{
1035
+ type: z.ZodLiteral<"mdl">;
1036
+ issuer: z.ZodString;
1037
+ credentialType: z.ZodOptional<z.ZodString>;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ type: "mdl";
1040
+ issuer: string;
1041
+ credentialType?: string | undefined;
1042
+ }, {
1043
+ type: "mdl";
1044
+ issuer: string;
1045
+ credentialType?: string | undefined;
1046
+ }>, z.ZodObject<{
1047
+ type: z.ZodLiteral<"idv">;
1048
+ provider: z.ZodString;
1049
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ type: "idv";
1052
+ provider: string;
1053
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1054
+ }, {
1055
+ type: "idv";
1056
+ provider: string;
1057
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1058
+ }>, z.ZodObject<{
1059
+ type: z.ZodLiteral<"credential">;
1060
+ credentialType: z.ZodString;
1061
+ issuer: z.ZodOptional<z.ZodString>;
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ type: "credential";
1064
+ credentialType: string;
1065
+ issuer?: string | undefined;
1066
+ }, {
1067
+ type: "credential";
1068
+ credentialType: string;
1069
+ issuer?: string | undefined;
1070
+ }>, z.ZodObject<{
1071
+ type: z.ZodLiteral<"none">;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ type: "none";
1074
+ }, {
1075
+ type: "none";
1076
+ }>]>>;
885
1077
  }, "strip", z.ZodTypeAny, {
886
1078
  requiresDelegation: boolean;
887
1079
  requiredScopes: string[];
1080
+ authorization?: {
1081
+ type: "oauth";
1082
+ provider: string;
1083
+ requiredScopes?: string[] | undefined;
1084
+ } | {
1085
+ type: "mdl";
1086
+ issuer: string;
1087
+ credentialType?: string | undefined;
1088
+ } | {
1089
+ type: "idv";
1090
+ provider: string;
1091
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1092
+ } | {
1093
+ type: "credential";
1094
+ credentialType: string;
1095
+ issuer?: string | undefined;
1096
+ } | {
1097
+ type: "none";
1098
+ } | undefined;
888
1099
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1100
+ oauthProvider?: string | undefined;
889
1101
  }, {
890
1102
  requiresDelegation: boolean;
891
1103
  requiredScopes: string[];
1104
+ authorization?: {
1105
+ type: "oauth";
1106
+ provider: string;
1107
+ requiredScopes?: string[] | undefined;
1108
+ } | {
1109
+ type: "mdl";
1110
+ issuer: string;
1111
+ credentialType?: string | undefined;
1112
+ } | {
1113
+ type: "idv";
1114
+ provider: string;
1115
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1116
+ } | {
1117
+ type: "credential";
1118
+ credentialType: string;
1119
+ issuer?: string | undefined;
1120
+ } | {
1121
+ type: "none";
1122
+ } | undefined;
892
1123
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1124
+ oauthProvider?: string | undefined;
893
1125
  }>>>;
894
1126
  }, "strip", z.ZodTypeAny, {
895
1127
  source: "agentshield" | "inline" | "file";
@@ -900,7 +1132,27 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
900
1132
  fallback?: Record<string, {
901
1133
  requiresDelegation: boolean;
902
1134
  requiredScopes: string[];
1135
+ authorization?: {
1136
+ type: "oauth";
1137
+ provider: string;
1138
+ requiredScopes?: string[] | undefined;
1139
+ } | {
1140
+ type: "mdl";
1141
+ issuer: string;
1142
+ credentialType?: string | undefined;
1143
+ } | {
1144
+ type: "idv";
1145
+ provider: string;
1146
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1147
+ } | {
1148
+ type: "credential";
1149
+ credentialType: string;
1150
+ issuer?: string | undefined;
1151
+ } | {
1152
+ type: "none";
1153
+ } | undefined;
903
1154
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1155
+ oauthProvider?: string | undefined;
904
1156
  }> | undefined;
905
1157
  }, {
906
1158
  source: "agentshield" | "inline" | "file";
@@ -911,7 +1163,27 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
911
1163
  fallback?: Record<string, {
912
1164
  requiresDelegation: boolean;
913
1165
  requiredScopes: string[];
1166
+ authorization?: {
1167
+ type: "oauth";
1168
+ provider: string;
1169
+ requiredScopes?: string[] | undefined;
1170
+ } | {
1171
+ type: "mdl";
1172
+ issuer: string;
1173
+ credentialType?: string | undefined;
1174
+ } | {
1175
+ type: "idv";
1176
+ provider: string;
1177
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1178
+ } | {
1179
+ type: "credential";
1180
+ credentialType: string;
1181
+ issuer?: string | undefined;
1182
+ } | {
1183
+ type: "none";
1184
+ } | undefined;
914
1185
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1186
+ oauthProvider?: string | undefined;
915
1187
  }> | undefined;
916
1188
  }>;
917
1189
  audit: z.ZodObject<{
@@ -1237,6 +1509,51 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1237
1509
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
1238
1510
  }>;
1239
1511
  }, "strip", z.ZodTypeAny, {
1512
+ platform: {
1513
+ type: "cloudflare" | "node" | "vercel";
1514
+ cloudflare?: {
1515
+ workers: {
1516
+ cpuMs: number;
1517
+ memoryMb: number;
1518
+ };
1519
+ kvNamespaces: {
1520
+ name: string;
1521
+ purpose: "cache" | "delegations" | "sessions" | "general";
1522
+ }[];
1523
+ environmentVariables: {
1524
+ value: string;
1525
+ name: string;
1526
+ source: "wrangler.toml" | "secrets" | ".dev.vars";
1527
+ }[];
1528
+ } | undefined;
1529
+ node?: {
1530
+ server: {
1531
+ timeout: number;
1532
+ port: number;
1533
+ host: string;
1534
+ cors: boolean;
1535
+ };
1536
+ storage: {
1537
+ type: "memory" | "redis" | "postgres" | "mongodb";
1538
+ connection?: {
1539
+ port?: number | undefined;
1540
+ host?: string | undefined;
1541
+ database?: string | undefined;
1542
+ } | undefined;
1543
+ };
1544
+ } | undefined;
1545
+ vercel?: {
1546
+ environmentVariables: {
1547
+ value: string;
1548
+ name: string;
1549
+ source: "vercel-dashboard" | ".env.local";
1550
+ }[];
1551
+ edgeRuntime?: {
1552
+ maxDuration?: number | undefined;
1553
+ regions?: string[] | undefined;
1554
+ } | undefined;
1555
+ } | undefined;
1556
+ };
1240
1557
  session: {
1241
1558
  ttlMinutes: number;
1242
1559
  timestampSkewSeconds: number;
@@ -1250,6 +1567,12 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1250
1567
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
1251
1568
  };
1252
1569
  delegation: {
1570
+ authorization: {
1571
+ authorizationUrl?: string | undefined;
1572
+ minReputationScore?: number | undefined;
1573
+ resumeTokenTtl?: number | undefined;
1574
+ requireAuthForUnknown?: boolean | undefined;
1575
+ };
1253
1576
  enabled: boolean;
1254
1577
  enforceStrictly: boolean;
1255
1578
  verifier: {
@@ -1257,12 +1580,6 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1257
1580
  apiUrl?: string | undefined;
1258
1581
  cacheTtl?: number | undefined;
1259
1582
  };
1260
- authorization: {
1261
- authorizationUrl?: string | undefined;
1262
- minReputationScore?: number | undefined;
1263
- resumeTokenTtl?: number | undefined;
1264
- requireAuthForUnknown?: boolean | undefined;
1265
- };
1266
1583
  };
1267
1584
  identity: {
1268
1585
  environment: "development" | "production";
@@ -1292,7 +1609,27 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1292
1609
  fallback?: Record<string, {
1293
1610
  requiresDelegation: boolean;
1294
1611
  requiredScopes: string[];
1612
+ authorization?: {
1613
+ type: "oauth";
1614
+ provider: string;
1615
+ requiredScopes?: string[] | undefined;
1616
+ } | {
1617
+ type: "mdl";
1618
+ issuer: string;
1619
+ credentialType?: string | undefined;
1620
+ } | {
1621
+ type: "idv";
1622
+ provider: string;
1623
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1624
+ } | {
1625
+ type: "credential";
1626
+ credentialType: string;
1627
+ issuer?: string | undefined;
1628
+ } | {
1629
+ type: "none";
1630
+ } | undefined;
1295
1631
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1632
+ oauthProvider?: string | undefined;
1296
1633
  }> | undefined;
1297
1634
  };
1298
1635
  audit: {
@@ -1300,12 +1637,13 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1300
1637
  includeProofHashes: boolean;
1301
1638
  includePayloads: boolean;
1302
1639
  };
1640
+ }, {
1303
1641
  platform: {
1304
1642
  type: "cloudflare" | "node" | "vercel";
1305
1643
  cloudflare?: {
1306
1644
  workers: {
1307
- cpuMs: number;
1308
- memoryMb: number;
1645
+ cpuMs?: number | undefined;
1646
+ memoryMb?: number | undefined;
1309
1647
  };
1310
1648
  kvNamespaces: {
1311
1649
  name: string;
@@ -1319,10 +1657,10 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1319
1657
  } | undefined;
1320
1658
  node?: {
1321
1659
  server: {
1322
- timeout: number;
1323
- port: number;
1324
- host: string;
1325
- cors: boolean;
1660
+ timeout?: number | undefined;
1661
+ port?: number | undefined;
1662
+ host?: string | undefined;
1663
+ cors?: boolean | undefined;
1326
1664
  };
1327
1665
  storage: {
1328
1666
  type: "memory" | "redis" | "postgres" | "mongodb";
@@ -1345,7 +1683,6 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1345
1683
  } | undefined;
1346
1684
  } | undefined;
1347
1685
  };
1348
- }, {
1349
1686
  session: {
1350
1687
  ttlMinutes?: number | undefined;
1351
1688
  timestampSkewSeconds?: number | undefined;
@@ -1359,6 +1696,12 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1359
1696
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
1360
1697
  };
1361
1698
  delegation: {
1699
+ authorization: {
1700
+ authorizationUrl?: string | undefined;
1701
+ minReputationScore?: number | undefined;
1702
+ resumeTokenTtl?: number | undefined;
1703
+ requireAuthForUnknown?: boolean | undefined;
1704
+ };
1362
1705
  enabled: boolean;
1363
1706
  enforceStrictly: boolean;
1364
1707
  verifier: {
@@ -1366,12 +1709,6 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1366
1709
  apiUrl?: string | undefined;
1367
1710
  cacheTtl?: number | undefined;
1368
1711
  };
1369
- authorization: {
1370
- authorizationUrl?: string | undefined;
1371
- minReputationScore?: number | undefined;
1372
- resumeTokenTtl?: number | undefined;
1373
- requireAuthForUnknown?: boolean | undefined;
1374
- };
1375
1712
  };
1376
1713
  identity: {
1377
1714
  environment: "development" | "production";
@@ -1401,7 +1738,27 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1401
1738
  fallback?: Record<string, {
1402
1739
  requiresDelegation: boolean;
1403
1740
  requiredScopes: string[];
1741
+ authorization?: {
1742
+ type: "oauth";
1743
+ provider: string;
1744
+ requiredScopes?: string[] | undefined;
1745
+ } | {
1746
+ type: "mdl";
1747
+ issuer: string;
1748
+ credentialType?: string | undefined;
1749
+ } | {
1750
+ type: "idv";
1751
+ provider: string;
1752
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1753
+ } | {
1754
+ type: "credential";
1755
+ credentialType: string;
1756
+ issuer?: string | undefined;
1757
+ } | {
1758
+ type: "none";
1759
+ } | undefined;
1404
1760
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1761
+ oauthProvider?: string | undefined;
1405
1762
  }> | undefined;
1406
1763
  };
1407
1764
  audit: {
@@ -1409,51 +1766,6 @@ export declare const mcpIServerConfigSchema: z.ZodObject<{
1409
1766
  includeProofHashes: boolean;
1410
1767
  includePayloads: boolean;
1411
1768
  };
1412
- platform: {
1413
- type: "cloudflare" | "node" | "vercel";
1414
- cloudflare?: {
1415
- workers: {
1416
- cpuMs?: number | undefined;
1417
- memoryMb?: number | undefined;
1418
- };
1419
- kvNamespaces: {
1420
- name: string;
1421
- purpose: "cache" | "delegations" | "sessions" | "general";
1422
- }[];
1423
- environmentVariables: {
1424
- value: string;
1425
- name: string;
1426
- source: "wrangler.toml" | "secrets" | ".dev.vars";
1427
- }[];
1428
- } | undefined;
1429
- node?: {
1430
- server: {
1431
- timeout?: number | undefined;
1432
- port?: number | undefined;
1433
- host?: string | undefined;
1434
- cors?: boolean | undefined;
1435
- };
1436
- storage: {
1437
- type: "memory" | "redis" | "postgres" | "mongodb";
1438
- connection?: {
1439
- port?: number | undefined;
1440
- host?: string | undefined;
1441
- database?: string | undefined;
1442
- } | undefined;
1443
- };
1444
- } | undefined;
1445
- vercel?: {
1446
- environmentVariables: {
1447
- value: string;
1448
- name: string;
1449
- source: "vercel-dashboard" | ".env.local";
1450
- }[];
1451
- edgeRuntime?: {
1452
- maxDuration?: number | undefined;
1453
- regions?: string[] | undefined;
1454
- } | undefined;
1455
- } | undefined;
1456
- };
1457
1769
  }>;
1458
1770
  /**
1459
1771
  * Get server config request schema
@@ -1577,6 +1889,12 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
1577
1889
  requireAuthForUnknown?: boolean | undefined;
1578
1890
  }>;
1579
1891
  }, "strip", z.ZodTypeAny, {
1892
+ authorization: {
1893
+ authorizationUrl?: string | undefined;
1894
+ minReputationScore?: number | undefined;
1895
+ resumeTokenTtl?: number | undefined;
1896
+ requireAuthForUnknown?: boolean | undefined;
1897
+ };
1580
1898
  enabled: boolean;
1581
1899
  enforceStrictly: boolean;
1582
1900
  verifier: {
@@ -1584,13 +1902,13 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
1584
1902
  apiUrl?: string | undefined;
1585
1903
  cacheTtl?: number | undefined;
1586
1904
  };
1905
+ }, {
1587
1906
  authorization: {
1588
1907
  authorizationUrl?: string | undefined;
1589
1908
  minReputationScore?: number | undefined;
1590
1909
  resumeTokenTtl?: number | undefined;
1591
1910
  requireAuthForUnknown?: boolean | undefined;
1592
1911
  };
1593
- }, {
1594
1912
  enabled: boolean;
1595
1913
  enforceStrictly: boolean;
1596
1914
  verifier: {
@@ -1598,12 +1916,6 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
1598
1916
  apiUrl?: string | undefined;
1599
1917
  cacheTtl?: number | undefined;
1600
1918
  };
1601
- authorization: {
1602
- authorizationUrl?: string | undefined;
1603
- minReputationScore?: number | undefined;
1604
- resumeTokenTtl?: number | undefined;
1605
- requireAuthForUnknown?: boolean | undefined;
1606
- };
1607
1919
  }>;
1608
1920
  toolProtection: z.ZodObject<{
1609
1921
  source: z.ZodEnum<["agentshield", "inline", "file"]>;
@@ -1621,14 +1933,110 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
1621
1933
  requiresDelegation: z.ZodBoolean;
1622
1934
  requiredScopes: z.ZodArray<z.ZodString, "many">;
1623
1935
  riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1936
+ oauthProvider: z.ZodOptional<z.ZodString>;
1937
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1938
+ type: z.ZodLiteral<"oauth">;
1939
+ provider: z.ZodString;
1940
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ type: "oauth";
1943
+ provider: string;
1944
+ requiredScopes?: string[] | undefined;
1945
+ }, {
1946
+ type: "oauth";
1947
+ provider: string;
1948
+ requiredScopes?: string[] | undefined;
1949
+ }>, z.ZodObject<{
1950
+ type: z.ZodLiteral<"mdl">;
1951
+ issuer: z.ZodString;
1952
+ credentialType: z.ZodOptional<z.ZodString>;
1953
+ }, "strip", z.ZodTypeAny, {
1954
+ type: "mdl";
1955
+ issuer: string;
1956
+ credentialType?: string | undefined;
1957
+ }, {
1958
+ type: "mdl";
1959
+ issuer: string;
1960
+ credentialType?: string | undefined;
1961
+ }>, z.ZodObject<{
1962
+ type: z.ZodLiteral<"idv">;
1963
+ provider: z.ZodString;
1964
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ type: "idv";
1967
+ provider: string;
1968
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1969
+ }, {
1970
+ type: "idv";
1971
+ provider: string;
1972
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1973
+ }>, z.ZodObject<{
1974
+ type: z.ZodLiteral<"credential">;
1975
+ credentialType: z.ZodString;
1976
+ issuer: z.ZodOptional<z.ZodString>;
1977
+ }, "strip", z.ZodTypeAny, {
1978
+ type: "credential";
1979
+ credentialType: string;
1980
+ issuer?: string | undefined;
1981
+ }, {
1982
+ type: "credential";
1983
+ credentialType: string;
1984
+ issuer?: string | undefined;
1985
+ }>, z.ZodObject<{
1986
+ type: z.ZodLiteral<"none">;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ type: "none";
1989
+ }, {
1990
+ type: "none";
1991
+ }>]>>;
1624
1992
  }, "strip", z.ZodTypeAny, {
1625
1993
  requiresDelegation: boolean;
1626
1994
  requiredScopes: string[];
1995
+ authorization?: {
1996
+ type: "oauth";
1997
+ provider: string;
1998
+ requiredScopes?: string[] | undefined;
1999
+ } | {
2000
+ type: "mdl";
2001
+ issuer: string;
2002
+ credentialType?: string | undefined;
2003
+ } | {
2004
+ type: "idv";
2005
+ provider: string;
2006
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2007
+ } | {
2008
+ type: "credential";
2009
+ credentialType: string;
2010
+ issuer?: string | undefined;
2011
+ } | {
2012
+ type: "none";
2013
+ } | undefined;
1627
2014
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2015
+ oauthProvider?: string | undefined;
1628
2016
  }, {
1629
2017
  requiresDelegation: boolean;
1630
2018
  requiredScopes: string[];
2019
+ authorization?: {
2020
+ type: "oauth";
2021
+ provider: string;
2022
+ requiredScopes?: string[] | undefined;
2023
+ } | {
2024
+ type: "mdl";
2025
+ issuer: string;
2026
+ credentialType?: string | undefined;
2027
+ } | {
2028
+ type: "idv";
2029
+ provider: string;
2030
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2031
+ } | {
2032
+ type: "credential";
2033
+ credentialType: string;
2034
+ issuer?: string | undefined;
2035
+ } | {
2036
+ type: "none";
2037
+ } | undefined;
1631
2038
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2039
+ oauthProvider?: string | undefined;
1632
2040
  }>>>;
1633
2041
  }, "strip", z.ZodTypeAny, {
1634
2042
  source: "agentshield" | "inline" | "file";
@@ -1639,7 +2047,27 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
1639
2047
  fallback?: Record<string, {
1640
2048
  requiresDelegation: boolean;
1641
2049
  requiredScopes: string[];
2050
+ authorization?: {
2051
+ type: "oauth";
2052
+ provider: string;
2053
+ requiredScopes?: string[] | undefined;
2054
+ } | {
2055
+ type: "mdl";
2056
+ issuer: string;
2057
+ credentialType?: string | undefined;
2058
+ } | {
2059
+ type: "idv";
2060
+ provider: string;
2061
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2062
+ } | {
2063
+ type: "credential";
2064
+ credentialType: string;
2065
+ issuer?: string | undefined;
2066
+ } | {
2067
+ type: "none";
2068
+ } | undefined;
1642
2069
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2070
+ oauthProvider?: string | undefined;
1643
2071
  }> | undefined;
1644
2072
  }, {
1645
2073
  source: "agentshield" | "inline" | "file";
@@ -1650,7 +2078,27 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
1650
2078
  fallback?: Record<string, {
1651
2079
  requiresDelegation: boolean;
1652
2080
  requiredScopes: string[];
2081
+ authorization?: {
2082
+ type: "oauth";
2083
+ provider: string;
2084
+ requiredScopes?: string[] | undefined;
2085
+ } | {
2086
+ type: "mdl";
2087
+ issuer: string;
2088
+ credentialType?: string | undefined;
2089
+ } | {
2090
+ type: "idv";
2091
+ provider: string;
2092
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2093
+ } | {
2094
+ type: "credential";
2095
+ credentialType: string;
2096
+ issuer?: string | undefined;
2097
+ } | {
2098
+ type: "none";
2099
+ } | undefined;
1653
2100
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2101
+ oauthProvider?: string | undefined;
1654
2102
  }> | undefined;
1655
2103
  }>;
1656
2104
  audit: z.ZodObject<{
@@ -1976,69 +2424,6 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
1976
2424
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
1977
2425
  }>;
1978
2426
  }, "strip", z.ZodTypeAny, {
1979
- session: {
1980
- ttlMinutes: number;
1981
- timestampSkewSeconds: number;
1982
- absoluteLifetime?: number | undefined;
1983
- };
1984
- metadata: {
1985
- version: string;
1986
- lastUpdated: string;
1987
- source: "code" | "dashboard" | "mixed";
1988
- serverUrl?: string | undefined;
1989
- deploymentStatus?: "error" | "active" | "inactive" | undefined;
1990
- };
1991
- delegation: {
1992
- enabled: boolean;
1993
- enforceStrictly: boolean;
1994
- verifier: {
1995
- type: "custom" | "kta" | "memory" | "redis" | "dynamodb" | "cloudflare-kv" | "agentshield";
1996
- apiUrl?: string | undefined;
1997
- cacheTtl?: number | undefined;
1998
- };
1999
- authorization: {
2000
- authorizationUrl?: string | undefined;
2001
- minReputationScore?: number | undefined;
2002
- resumeTokenTtl?: number | undefined;
2003
- requireAuthForUnknown?: boolean | undefined;
2004
- };
2005
- };
2006
- identity: {
2007
- environment: "development" | "production";
2008
- serverDid: string;
2009
- storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
2010
- agentDid?: string | undefined;
2011
- };
2012
- proofing: {
2013
- enabled: boolean;
2014
- destinations: {
2015
- type: "custom" | "kta" | "agentshield";
2016
- apiUrl: string;
2017
- apiKey?: string | undefined;
2018
- }[];
2019
- batchQueue: {
2020
- maxBatchSize: number;
2021
- flushIntervalMs: number;
2022
- maxRetries: number;
2023
- };
2024
- };
2025
- toolProtection: {
2026
- source: "agentshield" | "inline" | "file";
2027
- agentShield?: {
2028
- apiUrl: string;
2029
- cacheTtl: number;
2030
- } | undefined;
2031
- fallback?: Record<string, {
2032
- requiresDelegation: boolean;
2033
- requiredScopes: string[];
2034
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2035
- }> | undefined;
2036
- };
2037
- audit: {
2038
- enabled: boolean;
2039
- includeProofHashes: boolean;
2040
- includePayloads: boolean;
2041
- };
2042
2427
  platform: {
2043
2428
  type: "cloudflare" | "node" | "vercel";
2044
2429
  cloudflare?: {
@@ -2084,10 +2469,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2084
2469
  } | undefined;
2085
2470
  } | undefined;
2086
2471
  };
2087
- }, {
2088
2472
  session: {
2089
- ttlMinutes?: number | undefined;
2090
- timestampSkewSeconds?: number | undefined;
2473
+ ttlMinutes: number;
2474
+ timestampSkewSeconds: number;
2091
2475
  absoluteLifetime?: number | undefined;
2092
2476
  };
2093
2477
  metadata: {
@@ -2098,6 +2482,12 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2098
2482
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
2099
2483
  };
2100
2484
  delegation: {
2485
+ authorization: {
2486
+ authorizationUrl?: string | undefined;
2487
+ minReputationScore?: number | undefined;
2488
+ resumeTokenTtl?: number | undefined;
2489
+ requireAuthForUnknown?: boolean | undefined;
2490
+ };
2101
2491
  enabled: boolean;
2102
2492
  enforceStrictly: boolean;
2103
2493
  verifier: {
@@ -2105,12 +2495,6 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2105
2495
  apiUrl?: string | undefined;
2106
2496
  cacheTtl?: number | undefined;
2107
2497
  };
2108
- authorization: {
2109
- authorizationUrl?: string | undefined;
2110
- minReputationScore?: number | undefined;
2111
- resumeTokenTtl?: number | undefined;
2112
- requireAuthForUnknown?: boolean | undefined;
2113
- };
2114
2498
  };
2115
2499
  identity: {
2116
2500
  environment: "development" | "production";
@@ -2126,9 +2510,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2126
2510
  apiKey?: string | undefined;
2127
2511
  }[];
2128
2512
  batchQueue: {
2129
- maxBatchSize?: number | undefined;
2130
- flushIntervalMs?: number | undefined;
2131
- maxRetries?: number | undefined;
2513
+ maxBatchSize: number;
2514
+ flushIntervalMs: number;
2515
+ maxRetries: number;
2132
2516
  };
2133
2517
  };
2134
2518
  toolProtection: {
@@ -2140,7 +2524,27 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2140
2524
  fallback?: Record<string, {
2141
2525
  requiresDelegation: boolean;
2142
2526
  requiredScopes: string[];
2527
+ authorization?: {
2528
+ type: "oauth";
2529
+ provider: string;
2530
+ requiredScopes?: string[] | undefined;
2531
+ } | {
2532
+ type: "mdl";
2533
+ issuer: string;
2534
+ credentialType?: string | undefined;
2535
+ } | {
2536
+ type: "idv";
2537
+ provider: string;
2538
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2539
+ } | {
2540
+ type: "credential";
2541
+ credentialType: string;
2542
+ issuer?: string | undefined;
2543
+ } | {
2544
+ type: "none";
2545
+ } | undefined;
2143
2546
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2547
+ oauthProvider?: string | undefined;
2144
2548
  }> | undefined;
2145
2549
  };
2146
2550
  audit: {
@@ -2148,6 +2552,7 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2148
2552
  includeProofHashes: boolean;
2149
2553
  includePayloads: boolean;
2150
2554
  };
2555
+ }, {
2151
2556
  platform: {
2152
2557
  type: "cloudflare" | "node" | "vercel";
2153
2558
  cloudflare?: {
@@ -2193,12 +2598,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2193
2598
  } | undefined;
2194
2599
  } | undefined;
2195
2600
  };
2196
- }>;
2197
- }, "strip", z.ZodTypeAny, {
2198
- config: {
2199
2601
  session: {
2200
- ttlMinutes: number;
2201
- timestampSkewSeconds: number;
2602
+ ttlMinutes?: number | undefined;
2603
+ timestampSkewSeconds?: number | undefined;
2202
2604
  absoluteLifetime?: number | undefined;
2203
2605
  };
2204
2606
  metadata: {
@@ -2209,6 +2611,12 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2209
2611
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
2210
2612
  };
2211
2613
  delegation: {
2614
+ authorization: {
2615
+ authorizationUrl?: string | undefined;
2616
+ minReputationScore?: number | undefined;
2617
+ resumeTokenTtl?: number | undefined;
2618
+ requireAuthForUnknown?: boolean | undefined;
2619
+ };
2212
2620
  enabled: boolean;
2213
2621
  enforceStrictly: boolean;
2214
2622
  verifier: {
@@ -2216,12 +2624,6 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2216
2624
  apiUrl?: string | undefined;
2217
2625
  cacheTtl?: number | undefined;
2218
2626
  };
2219
- authorization: {
2220
- authorizationUrl?: string | undefined;
2221
- minReputationScore?: number | undefined;
2222
- resumeTokenTtl?: number | undefined;
2223
- requireAuthForUnknown?: boolean | undefined;
2224
- };
2225
2627
  };
2226
2628
  identity: {
2227
2629
  environment: "development" | "production";
@@ -2237,9 +2639,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2237
2639
  apiKey?: string | undefined;
2238
2640
  }[];
2239
2641
  batchQueue: {
2240
- maxBatchSize: number;
2241
- flushIntervalMs: number;
2242
- maxRetries: number;
2642
+ maxBatchSize?: number | undefined;
2643
+ flushIntervalMs?: number | undefined;
2644
+ maxRetries?: number | undefined;
2243
2645
  };
2244
2646
  };
2245
2647
  toolProtection: {
@@ -2251,7 +2653,27 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2251
2653
  fallback?: Record<string, {
2252
2654
  requiresDelegation: boolean;
2253
2655
  requiredScopes: string[];
2656
+ authorization?: {
2657
+ type: "oauth";
2658
+ provider: string;
2659
+ requiredScopes?: string[] | undefined;
2660
+ } | {
2661
+ type: "mdl";
2662
+ issuer: string;
2663
+ credentialType?: string | undefined;
2664
+ } | {
2665
+ type: "idv";
2666
+ provider: string;
2667
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2668
+ } | {
2669
+ type: "credential";
2670
+ credentialType: string;
2671
+ issuer?: string | undefined;
2672
+ } | {
2673
+ type: "none";
2674
+ } | undefined;
2254
2675
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2676
+ oauthProvider?: string | undefined;
2255
2677
  }> | undefined;
2256
2678
  };
2257
2679
  audit: {
@@ -2259,6 +2681,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2259
2681
  includeProofHashes: boolean;
2260
2682
  includePayloads: boolean;
2261
2683
  };
2684
+ }>;
2685
+ }, "strip", z.ZodTypeAny, {
2686
+ config: {
2262
2687
  platform: {
2263
2688
  type: "cloudflare" | "node" | "vercel";
2264
2689
  cloudflare?: {
@@ -2304,12 +2729,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2304
2729
  } | undefined;
2305
2730
  } | undefined;
2306
2731
  };
2307
- };
2308
- }, {
2309
- config: {
2310
2732
  session: {
2311
- ttlMinutes?: number | undefined;
2312
- timestampSkewSeconds?: number | undefined;
2733
+ ttlMinutes: number;
2734
+ timestampSkewSeconds: number;
2313
2735
  absoluteLifetime?: number | undefined;
2314
2736
  };
2315
2737
  metadata: {
@@ -2320,6 +2742,12 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2320
2742
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
2321
2743
  };
2322
2744
  delegation: {
2745
+ authorization: {
2746
+ authorizationUrl?: string | undefined;
2747
+ minReputationScore?: number | undefined;
2748
+ resumeTokenTtl?: number | undefined;
2749
+ requireAuthForUnknown?: boolean | undefined;
2750
+ };
2323
2751
  enabled: boolean;
2324
2752
  enforceStrictly: boolean;
2325
2753
  verifier: {
@@ -2327,12 +2755,6 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2327
2755
  apiUrl?: string | undefined;
2328
2756
  cacheTtl?: number | undefined;
2329
2757
  };
2330
- authorization: {
2331
- authorizationUrl?: string | undefined;
2332
- minReputationScore?: number | undefined;
2333
- resumeTokenTtl?: number | undefined;
2334
- requireAuthForUnknown?: boolean | undefined;
2335
- };
2336
2758
  };
2337
2759
  identity: {
2338
2760
  environment: "development" | "production";
@@ -2348,9 +2770,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2348
2770
  apiKey?: string | undefined;
2349
2771
  }[];
2350
2772
  batchQueue: {
2351
- maxBatchSize?: number | undefined;
2352
- flushIntervalMs?: number | undefined;
2353
- maxRetries?: number | undefined;
2773
+ maxBatchSize: number;
2774
+ flushIntervalMs: number;
2775
+ maxRetries: number;
2354
2776
  };
2355
2777
  };
2356
2778
  toolProtection: {
@@ -2362,7 +2784,27 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2362
2784
  fallback?: Record<string, {
2363
2785
  requiresDelegation: boolean;
2364
2786
  requiredScopes: string[];
2787
+ authorization?: {
2788
+ type: "oauth";
2789
+ provider: string;
2790
+ requiredScopes?: string[] | undefined;
2791
+ } | {
2792
+ type: "mdl";
2793
+ issuer: string;
2794
+ credentialType?: string | undefined;
2795
+ } | {
2796
+ type: "idv";
2797
+ provider: string;
2798
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2799
+ } | {
2800
+ type: "credential";
2801
+ credentialType: string;
2802
+ issuer?: string | undefined;
2803
+ } | {
2804
+ type: "none";
2805
+ } | undefined;
2365
2806
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2807
+ oauthProvider?: string | undefined;
2366
2808
  }> | undefined;
2367
2809
  };
2368
2810
  audit: {
@@ -2370,6 +2812,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2370
2812
  includeProofHashes: boolean;
2371
2813
  includePayloads: boolean;
2372
2814
  };
2815
+ };
2816
+ }, {
2817
+ config: {
2373
2818
  platform: {
2374
2819
  type: "cloudflare" | "node" | "vercel";
2375
2820
  cloudflare?: {
@@ -2415,25 +2860,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2415
2860
  } | undefined;
2416
2861
  } | undefined;
2417
2862
  };
2418
- };
2419
- }>;
2420
- metadata: z.ZodOptional<z.ZodObject<{
2421
- requestId: z.ZodOptional<z.ZodString>;
2422
- timestamp: z.ZodOptional<z.ZodString>;
2423
- }, "strip", z.ZodTypeAny, {
2424
- timestamp?: string | undefined;
2425
- requestId?: string | undefined;
2426
- }, {
2427
- timestamp?: string | undefined;
2428
- requestId?: string | undefined;
2429
- }>>;
2430
- }, "strip", z.ZodTypeAny, {
2431
- success: boolean;
2432
- data: {
2433
- config: {
2434
2863
  session: {
2435
- ttlMinutes: number;
2436
- timestampSkewSeconds: number;
2864
+ ttlMinutes?: number | undefined;
2865
+ timestampSkewSeconds?: number | undefined;
2437
2866
  absoluteLifetime?: number | undefined;
2438
2867
  };
2439
2868
  metadata: {
@@ -2444,6 +2873,12 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2444
2873
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
2445
2874
  };
2446
2875
  delegation: {
2876
+ authorization: {
2877
+ authorizationUrl?: string | undefined;
2878
+ minReputationScore?: number | undefined;
2879
+ resumeTokenTtl?: number | undefined;
2880
+ requireAuthForUnknown?: boolean | undefined;
2881
+ };
2447
2882
  enabled: boolean;
2448
2883
  enforceStrictly: boolean;
2449
2884
  verifier: {
@@ -2451,12 +2886,6 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2451
2886
  apiUrl?: string | undefined;
2452
2887
  cacheTtl?: number | undefined;
2453
2888
  };
2454
- authorization: {
2455
- authorizationUrl?: string | undefined;
2456
- minReputationScore?: number | undefined;
2457
- resumeTokenTtl?: number | undefined;
2458
- requireAuthForUnknown?: boolean | undefined;
2459
- };
2460
2889
  };
2461
2890
  identity: {
2462
2891
  environment: "development" | "production";
@@ -2472,9 +2901,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2472
2901
  apiKey?: string | undefined;
2473
2902
  }[];
2474
2903
  batchQueue: {
2475
- maxBatchSize: number;
2476
- flushIntervalMs: number;
2477
- maxRetries: number;
2904
+ maxBatchSize?: number | undefined;
2905
+ flushIntervalMs?: number | undefined;
2906
+ maxRetries?: number | undefined;
2478
2907
  };
2479
2908
  };
2480
2909
  toolProtection: {
@@ -2486,7 +2915,27 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2486
2915
  fallback?: Record<string, {
2487
2916
  requiresDelegation: boolean;
2488
2917
  requiredScopes: string[];
2918
+ authorization?: {
2919
+ type: "oauth";
2920
+ provider: string;
2921
+ requiredScopes?: string[] | undefined;
2922
+ } | {
2923
+ type: "mdl";
2924
+ issuer: string;
2925
+ credentialType?: string | undefined;
2926
+ } | {
2927
+ type: "idv";
2928
+ provider: string;
2929
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
2930
+ } | {
2931
+ type: "credential";
2932
+ credentialType: string;
2933
+ issuer?: string | undefined;
2934
+ } | {
2935
+ type: "none";
2936
+ } | undefined;
2489
2937
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
2938
+ oauthProvider?: string | undefined;
2490
2939
  }> | undefined;
2491
2940
  };
2492
2941
  audit: {
@@ -2494,6 +2943,22 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2494
2943
  includeProofHashes: boolean;
2495
2944
  includePayloads: boolean;
2496
2945
  };
2946
+ };
2947
+ }>;
2948
+ metadata: z.ZodOptional<z.ZodObject<{
2949
+ requestId: z.ZodOptional<z.ZodString>;
2950
+ timestamp: z.ZodOptional<z.ZodString>;
2951
+ }, "strip", z.ZodTypeAny, {
2952
+ timestamp?: string | undefined;
2953
+ requestId?: string | undefined;
2954
+ }, {
2955
+ timestamp?: string | undefined;
2956
+ requestId?: string | undefined;
2957
+ }>>;
2958
+ }, "strip", z.ZodTypeAny, {
2959
+ success: boolean;
2960
+ data: {
2961
+ config: {
2497
2962
  platform: {
2498
2963
  type: "cloudflare" | "node" | "vercel";
2499
2964
  cloudflare?: {
@@ -2539,19 +3004,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2539
3004
  } | undefined;
2540
3005
  } | undefined;
2541
3006
  };
2542
- };
2543
- };
2544
- metadata?: {
2545
- timestamp?: string | undefined;
2546
- requestId?: string | undefined;
2547
- } | undefined;
2548
- }, {
2549
- success: boolean;
2550
- data: {
2551
- config: {
2552
3007
  session: {
2553
- ttlMinutes?: number | undefined;
2554
- timestampSkewSeconds?: number | undefined;
3008
+ ttlMinutes: number;
3009
+ timestampSkewSeconds: number;
2555
3010
  absoluteLifetime?: number | undefined;
2556
3011
  };
2557
3012
  metadata: {
@@ -2562,6 +3017,12 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2562
3017
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
2563
3018
  };
2564
3019
  delegation: {
3020
+ authorization: {
3021
+ authorizationUrl?: string | undefined;
3022
+ minReputationScore?: number | undefined;
3023
+ resumeTokenTtl?: number | undefined;
3024
+ requireAuthForUnknown?: boolean | undefined;
3025
+ };
2565
3026
  enabled: boolean;
2566
3027
  enforceStrictly: boolean;
2567
3028
  verifier: {
@@ -2569,12 +3030,6 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2569
3030
  apiUrl?: string | undefined;
2570
3031
  cacheTtl?: number | undefined;
2571
3032
  };
2572
- authorization: {
2573
- authorizationUrl?: string | undefined;
2574
- minReputationScore?: number | undefined;
2575
- resumeTokenTtl?: number | undefined;
2576
- requireAuthForUnknown?: boolean | undefined;
2577
- };
2578
3033
  };
2579
3034
  identity: {
2580
3035
  environment: "development" | "production";
@@ -2590,9 +3045,9 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2590
3045
  apiKey?: string | undefined;
2591
3046
  }[];
2592
3047
  batchQueue: {
2593
- maxBatchSize?: number | undefined;
2594
- flushIntervalMs?: number | undefined;
2595
- maxRetries?: number | undefined;
3048
+ maxBatchSize: number;
3049
+ flushIntervalMs: number;
3050
+ maxRetries: number;
2596
3051
  };
2597
3052
  };
2598
3053
  toolProtection: {
@@ -2604,7 +3059,27 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2604
3059
  fallback?: Record<string, {
2605
3060
  requiresDelegation: boolean;
2606
3061
  requiredScopes: string[];
3062
+ authorization?: {
3063
+ type: "oauth";
3064
+ provider: string;
3065
+ requiredScopes?: string[] | undefined;
3066
+ } | {
3067
+ type: "mdl";
3068
+ issuer: string;
3069
+ credentialType?: string | undefined;
3070
+ } | {
3071
+ type: "idv";
3072
+ provider: string;
3073
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3074
+ } | {
3075
+ type: "credential";
3076
+ credentialType: string;
3077
+ issuer?: string | undefined;
3078
+ } | {
3079
+ type: "none";
3080
+ } | undefined;
2607
3081
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
3082
+ oauthProvider?: string | undefined;
2608
3083
  }> | undefined;
2609
3084
  };
2610
3085
  audit: {
@@ -2612,6 +3087,16 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2612
3087
  includeProofHashes: boolean;
2613
3088
  includePayloads: boolean;
2614
3089
  };
3090
+ };
3091
+ };
3092
+ metadata?: {
3093
+ timestamp?: string | undefined;
3094
+ requestId?: string | undefined;
3095
+ } | undefined;
3096
+ }, {
3097
+ success: boolean;
3098
+ data: {
3099
+ config: {
2615
3100
  platform: {
2616
3101
  type: "cloudflare" | "node" | "vercel";
2617
3102
  cloudflare?: {
@@ -2657,60 +3142,143 @@ export declare const getServerConfigResponseSchema: z.ZodObject<{
2657
3142
  } | undefined;
2658
3143
  } | undefined;
2659
3144
  };
2660
- };
2661
- };
2662
- metadata?: {
2663
- timestamp?: string | undefined;
2664
- requestId?: string | undefined;
2665
- } | undefined;
2666
- }>;
2667
- /**
2668
- * Update server config request schema
2669
- */
2670
- export declare const updateServerConfigRequestSchema: z.ZodObject<{
2671
- projectId: z.ZodString;
2672
- config: z.ZodObject<{
2673
- identity: z.ZodOptional<z.ZodObject<{
2674
- /**
2675
- * @deprecated Use serverDid instead. Will be removed in v2.0
2676
- */
2677
- agentDid: z.ZodOptional<z.ZodString>;
2678
- serverDid: z.ZodString;
2679
- environment: z.ZodEnum<["development", "production"]>;
2680
- storageLocation: z.ZodEnum<["cloudflare-kv", "file-system", "env-vars"]>;
2681
- }, "strip", z.ZodTypeAny, {
2682
- environment: "development" | "production";
2683
- serverDid: string;
2684
- storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
2685
- agentDid?: string | undefined;
2686
- }, {
2687
- environment: "development" | "production";
2688
- serverDid: string;
2689
- storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
2690
- agentDid?: string | undefined;
2691
- }>>;
2692
- proofing: z.ZodOptional<z.ZodObject<{
2693
- enabled: z.ZodBoolean;
2694
- destinations: z.ZodArray<z.ZodObject<{
2695
- type: z.ZodEnum<["agentshield", "kta", "custom"]>;
2696
- apiUrl: z.ZodString;
2697
- apiKey: z.ZodOptional<z.ZodString>;
2698
- }, "strip", z.ZodTypeAny, {
2699
- type: "custom" | "kta" | "agentshield";
2700
- apiUrl: string;
2701
- apiKey?: string | undefined;
2702
- }, {
2703
- type: "custom" | "kta" | "agentshield";
2704
- apiUrl: string;
2705
- apiKey?: string | undefined;
2706
- }>, "many">;
2707
- batchQueue: z.ZodObject<{
2708
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
2709
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
2710
- maxRetries: z.ZodDefault<z.ZodNumber>;
2711
- }, "strip", z.ZodTypeAny, {
2712
- maxBatchSize: number;
2713
- flushIntervalMs: number;
3145
+ session: {
3146
+ ttlMinutes?: number | undefined;
3147
+ timestampSkewSeconds?: number | undefined;
3148
+ absoluteLifetime?: number | undefined;
3149
+ };
3150
+ metadata: {
3151
+ version: string;
3152
+ lastUpdated: string;
3153
+ source: "code" | "dashboard" | "mixed";
3154
+ serverUrl?: string | undefined;
3155
+ deploymentStatus?: "error" | "active" | "inactive" | undefined;
3156
+ };
3157
+ delegation: {
3158
+ authorization: {
3159
+ authorizationUrl?: string | undefined;
3160
+ minReputationScore?: number | undefined;
3161
+ resumeTokenTtl?: number | undefined;
3162
+ requireAuthForUnknown?: boolean | undefined;
3163
+ };
3164
+ enabled: boolean;
3165
+ enforceStrictly: boolean;
3166
+ verifier: {
3167
+ type: "custom" | "kta" | "memory" | "redis" | "dynamodb" | "cloudflare-kv" | "agentshield";
3168
+ apiUrl?: string | undefined;
3169
+ cacheTtl?: number | undefined;
3170
+ };
3171
+ };
3172
+ identity: {
3173
+ environment: "development" | "production";
3174
+ serverDid: string;
3175
+ storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
3176
+ agentDid?: string | undefined;
3177
+ };
3178
+ proofing: {
3179
+ enabled: boolean;
3180
+ destinations: {
3181
+ type: "custom" | "kta" | "agentshield";
3182
+ apiUrl: string;
3183
+ apiKey?: string | undefined;
3184
+ }[];
3185
+ batchQueue: {
3186
+ maxBatchSize?: number | undefined;
3187
+ flushIntervalMs?: number | undefined;
3188
+ maxRetries?: number | undefined;
3189
+ };
3190
+ };
3191
+ toolProtection: {
3192
+ source: "agentshield" | "inline" | "file";
3193
+ agentShield?: {
3194
+ apiUrl: string;
3195
+ cacheTtl: number;
3196
+ } | undefined;
3197
+ fallback?: Record<string, {
3198
+ requiresDelegation: boolean;
3199
+ requiredScopes: string[];
3200
+ authorization?: {
3201
+ type: "oauth";
3202
+ provider: string;
3203
+ requiredScopes?: string[] | undefined;
3204
+ } | {
3205
+ type: "mdl";
3206
+ issuer: string;
3207
+ credentialType?: string | undefined;
3208
+ } | {
3209
+ type: "idv";
3210
+ provider: string;
3211
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3212
+ } | {
3213
+ type: "credential";
3214
+ credentialType: string;
3215
+ issuer?: string | undefined;
3216
+ } | {
3217
+ type: "none";
3218
+ } | undefined;
3219
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
3220
+ oauthProvider?: string | undefined;
3221
+ }> | undefined;
3222
+ };
3223
+ audit: {
3224
+ enabled: boolean;
3225
+ includeProofHashes: boolean;
3226
+ includePayloads: boolean;
3227
+ };
3228
+ };
3229
+ };
3230
+ metadata?: {
3231
+ timestamp?: string | undefined;
3232
+ requestId?: string | undefined;
3233
+ } | undefined;
3234
+ }>;
3235
+ /**
3236
+ * Update server config request schema
3237
+ */
3238
+ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3239
+ projectId: z.ZodString;
3240
+ config: z.ZodObject<{
3241
+ identity: z.ZodOptional<z.ZodObject<{
3242
+ /**
3243
+ * @deprecated Use serverDid instead. Will be removed in v2.0
3244
+ */
3245
+ agentDid: z.ZodOptional<z.ZodString>;
3246
+ serverDid: z.ZodString;
3247
+ environment: z.ZodEnum<["development", "production"]>;
3248
+ storageLocation: z.ZodEnum<["cloudflare-kv", "file-system", "env-vars"]>;
3249
+ }, "strip", z.ZodTypeAny, {
3250
+ environment: "development" | "production";
3251
+ serverDid: string;
3252
+ storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
3253
+ agentDid?: string | undefined;
3254
+ }, {
3255
+ environment: "development" | "production";
3256
+ serverDid: string;
3257
+ storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
3258
+ agentDid?: string | undefined;
3259
+ }>>;
3260
+ proofing: z.ZodOptional<z.ZodObject<{
3261
+ enabled: z.ZodBoolean;
3262
+ destinations: z.ZodArray<z.ZodObject<{
3263
+ type: z.ZodEnum<["agentshield", "kta", "custom"]>;
3264
+ apiUrl: z.ZodString;
3265
+ apiKey: z.ZodOptional<z.ZodString>;
3266
+ }, "strip", z.ZodTypeAny, {
3267
+ type: "custom" | "kta" | "agentshield";
3268
+ apiUrl: string;
3269
+ apiKey?: string | undefined;
3270
+ }, {
3271
+ type: "custom" | "kta" | "agentshield";
3272
+ apiUrl: string;
3273
+ apiKey?: string | undefined;
3274
+ }>, "many">;
3275
+ batchQueue: z.ZodObject<{
3276
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
3277
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
3278
+ maxRetries: z.ZodDefault<z.ZodNumber>;
3279
+ }, "strip", z.ZodTypeAny, {
3280
+ maxBatchSize: number;
3281
+ flushIntervalMs: number;
2714
3282
  maxRetries: number;
2715
3283
  }, {
2716
3284
  maxBatchSize?: number | undefined;
@@ -2775,6 +3343,12 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
2775
3343
  requireAuthForUnknown?: boolean | undefined;
2776
3344
  }>;
2777
3345
  }, "strip", z.ZodTypeAny, {
3346
+ authorization: {
3347
+ authorizationUrl?: string | undefined;
3348
+ minReputationScore?: number | undefined;
3349
+ resumeTokenTtl?: number | undefined;
3350
+ requireAuthForUnknown?: boolean | undefined;
3351
+ };
2778
3352
  enabled: boolean;
2779
3353
  enforceStrictly: boolean;
2780
3354
  verifier: {
@@ -2782,13 +3356,13 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
2782
3356
  apiUrl?: string | undefined;
2783
3357
  cacheTtl?: number | undefined;
2784
3358
  };
3359
+ }, {
2785
3360
  authorization: {
2786
3361
  authorizationUrl?: string | undefined;
2787
3362
  minReputationScore?: number | undefined;
2788
3363
  resumeTokenTtl?: number | undefined;
2789
3364
  requireAuthForUnknown?: boolean | undefined;
2790
3365
  };
2791
- }, {
2792
3366
  enabled: boolean;
2793
3367
  enforceStrictly: boolean;
2794
3368
  verifier: {
@@ -2796,12 +3370,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
2796
3370
  apiUrl?: string | undefined;
2797
3371
  cacheTtl?: number | undefined;
2798
3372
  };
2799
- authorization: {
2800
- authorizationUrl?: string | undefined;
2801
- minReputationScore?: number | undefined;
2802
- resumeTokenTtl?: number | undefined;
2803
- requireAuthForUnknown?: boolean | undefined;
2804
- };
2805
3373
  }>>;
2806
3374
  toolProtection: z.ZodOptional<z.ZodObject<{
2807
3375
  source: z.ZodEnum<["agentshield", "inline", "file"]>;
@@ -2819,14 +3387,110 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
2819
3387
  requiresDelegation: z.ZodBoolean;
2820
3388
  requiredScopes: z.ZodArray<z.ZodString, "many">;
2821
3389
  riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
3390
+ oauthProvider: z.ZodOptional<z.ZodString>;
3391
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3392
+ type: z.ZodLiteral<"oauth">;
3393
+ provider: z.ZodString;
3394
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3395
+ }, "strip", z.ZodTypeAny, {
3396
+ type: "oauth";
3397
+ provider: string;
3398
+ requiredScopes?: string[] | undefined;
3399
+ }, {
3400
+ type: "oauth";
3401
+ provider: string;
3402
+ requiredScopes?: string[] | undefined;
3403
+ }>, z.ZodObject<{
3404
+ type: z.ZodLiteral<"mdl">;
3405
+ issuer: z.ZodString;
3406
+ credentialType: z.ZodOptional<z.ZodString>;
3407
+ }, "strip", z.ZodTypeAny, {
3408
+ type: "mdl";
3409
+ issuer: string;
3410
+ credentialType?: string | undefined;
3411
+ }, {
3412
+ type: "mdl";
3413
+ issuer: string;
3414
+ credentialType?: string | undefined;
3415
+ }>, z.ZodObject<{
3416
+ type: z.ZodLiteral<"idv">;
3417
+ provider: z.ZodString;
3418
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3419
+ }, "strip", z.ZodTypeAny, {
3420
+ type: "idv";
3421
+ provider: string;
3422
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3423
+ }, {
3424
+ type: "idv";
3425
+ provider: string;
3426
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3427
+ }>, z.ZodObject<{
3428
+ type: z.ZodLiteral<"credential">;
3429
+ credentialType: z.ZodString;
3430
+ issuer: z.ZodOptional<z.ZodString>;
3431
+ }, "strip", z.ZodTypeAny, {
3432
+ type: "credential";
3433
+ credentialType: string;
3434
+ issuer?: string | undefined;
3435
+ }, {
3436
+ type: "credential";
3437
+ credentialType: string;
3438
+ issuer?: string | undefined;
3439
+ }>, z.ZodObject<{
3440
+ type: z.ZodLiteral<"none">;
3441
+ }, "strip", z.ZodTypeAny, {
3442
+ type: "none";
3443
+ }, {
3444
+ type: "none";
3445
+ }>]>>;
2822
3446
  }, "strip", z.ZodTypeAny, {
2823
3447
  requiresDelegation: boolean;
2824
3448
  requiredScopes: string[];
3449
+ authorization?: {
3450
+ type: "oauth";
3451
+ provider: string;
3452
+ requiredScopes?: string[] | undefined;
3453
+ } | {
3454
+ type: "mdl";
3455
+ issuer: string;
3456
+ credentialType?: string | undefined;
3457
+ } | {
3458
+ type: "idv";
3459
+ provider: string;
3460
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3461
+ } | {
3462
+ type: "credential";
3463
+ credentialType: string;
3464
+ issuer?: string | undefined;
3465
+ } | {
3466
+ type: "none";
3467
+ } | undefined;
2825
3468
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
3469
+ oauthProvider?: string | undefined;
2826
3470
  }, {
2827
3471
  requiresDelegation: boolean;
2828
3472
  requiredScopes: string[];
3473
+ authorization?: {
3474
+ type: "oauth";
3475
+ provider: string;
3476
+ requiredScopes?: string[] | undefined;
3477
+ } | {
3478
+ type: "mdl";
3479
+ issuer: string;
3480
+ credentialType?: string | undefined;
3481
+ } | {
3482
+ type: "idv";
3483
+ provider: string;
3484
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3485
+ } | {
3486
+ type: "credential";
3487
+ credentialType: string;
3488
+ issuer?: string | undefined;
3489
+ } | {
3490
+ type: "none";
3491
+ } | undefined;
2829
3492
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
3493
+ oauthProvider?: string | undefined;
2830
3494
  }>>>;
2831
3495
  }, "strip", z.ZodTypeAny, {
2832
3496
  source: "agentshield" | "inline" | "file";
@@ -2837,7 +3501,27 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
2837
3501
  fallback?: Record<string, {
2838
3502
  requiresDelegation: boolean;
2839
3503
  requiredScopes: string[];
3504
+ authorization?: {
3505
+ type: "oauth";
3506
+ provider: string;
3507
+ requiredScopes?: string[] | undefined;
3508
+ } | {
3509
+ type: "mdl";
3510
+ issuer: string;
3511
+ credentialType?: string | undefined;
3512
+ } | {
3513
+ type: "idv";
3514
+ provider: string;
3515
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3516
+ } | {
3517
+ type: "credential";
3518
+ credentialType: string;
3519
+ issuer?: string | undefined;
3520
+ } | {
3521
+ type: "none";
3522
+ } | undefined;
2840
3523
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
3524
+ oauthProvider?: string | undefined;
2841
3525
  }> | undefined;
2842
3526
  }, {
2843
3527
  source: "agentshield" | "inline" | "file";
@@ -2848,7 +3532,27 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
2848
3532
  fallback?: Record<string, {
2849
3533
  requiresDelegation: boolean;
2850
3534
  requiredScopes: string[];
3535
+ authorization?: {
3536
+ type: "oauth";
3537
+ provider: string;
3538
+ requiredScopes?: string[] | undefined;
3539
+ } | {
3540
+ type: "mdl";
3541
+ issuer: string;
3542
+ credentialType?: string | undefined;
3543
+ } | {
3544
+ type: "idv";
3545
+ provider: string;
3546
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3547
+ } | {
3548
+ type: "credential";
3549
+ credentialType: string;
3550
+ issuer?: string | undefined;
3551
+ } | {
3552
+ type: "none";
3553
+ } | undefined;
2851
3554
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
3555
+ oauthProvider?: string | undefined;
2852
3556
  }> | undefined;
2853
3557
  }>>;
2854
3558
  audit: z.ZodOptional<z.ZodObject<{
@@ -3174,6 +3878,51 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3174
3878
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
3175
3879
  }>>;
3176
3880
  }, "strip", z.ZodTypeAny, {
3881
+ platform?: {
3882
+ type: "cloudflare" | "node" | "vercel";
3883
+ cloudflare?: {
3884
+ workers: {
3885
+ cpuMs: number;
3886
+ memoryMb: number;
3887
+ };
3888
+ kvNamespaces: {
3889
+ name: string;
3890
+ purpose: "cache" | "delegations" | "sessions" | "general";
3891
+ }[];
3892
+ environmentVariables: {
3893
+ value: string;
3894
+ name: string;
3895
+ source: "wrangler.toml" | "secrets" | ".dev.vars";
3896
+ }[];
3897
+ } | undefined;
3898
+ node?: {
3899
+ server: {
3900
+ timeout: number;
3901
+ port: number;
3902
+ host: string;
3903
+ cors: boolean;
3904
+ };
3905
+ storage: {
3906
+ type: "memory" | "redis" | "postgres" | "mongodb";
3907
+ connection?: {
3908
+ port?: number | undefined;
3909
+ host?: string | undefined;
3910
+ database?: string | undefined;
3911
+ } | undefined;
3912
+ };
3913
+ } | undefined;
3914
+ vercel?: {
3915
+ environmentVariables: {
3916
+ value: string;
3917
+ name: string;
3918
+ source: "vercel-dashboard" | ".env.local";
3919
+ }[];
3920
+ edgeRuntime?: {
3921
+ maxDuration?: number | undefined;
3922
+ regions?: string[] | undefined;
3923
+ } | undefined;
3924
+ } | undefined;
3925
+ } | undefined;
3177
3926
  session?: {
3178
3927
  ttlMinutes: number;
3179
3928
  timestampSkewSeconds: number;
@@ -3187,6 +3936,12 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3187
3936
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
3188
3937
  } | undefined;
3189
3938
  delegation?: {
3939
+ authorization: {
3940
+ authorizationUrl?: string | undefined;
3941
+ minReputationScore?: number | undefined;
3942
+ resumeTokenTtl?: number | undefined;
3943
+ requireAuthForUnknown?: boolean | undefined;
3944
+ };
3190
3945
  enabled: boolean;
3191
3946
  enforceStrictly: boolean;
3192
3947
  verifier: {
@@ -3194,12 +3949,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3194
3949
  apiUrl?: string | undefined;
3195
3950
  cacheTtl?: number | undefined;
3196
3951
  };
3197
- authorization: {
3198
- authorizationUrl?: string | undefined;
3199
- minReputationScore?: number | undefined;
3200
- resumeTokenTtl?: number | undefined;
3201
- requireAuthForUnknown?: boolean | undefined;
3202
- };
3203
3952
  } | undefined;
3204
3953
  identity?: {
3205
3954
  environment: "development" | "production";
@@ -3229,7 +3978,27 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3229
3978
  fallback?: Record<string, {
3230
3979
  requiresDelegation: boolean;
3231
3980
  requiredScopes: string[];
3981
+ authorization?: {
3982
+ type: "oauth";
3983
+ provider: string;
3984
+ requiredScopes?: string[] | undefined;
3985
+ } | {
3986
+ type: "mdl";
3987
+ issuer: string;
3988
+ credentialType?: string | undefined;
3989
+ } | {
3990
+ type: "idv";
3991
+ provider: string;
3992
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3993
+ } | {
3994
+ type: "credential";
3995
+ credentialType: string;
3996
+ issuer?: string | undefined;
3997
+ } | {
3998
+ type: "none";
3999
+ } | undefined;
3232
4000
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4001
+ oauthProvider?: string | undefined;
3233
4002
  }> | undefined;
3234
4003
  } | undefined;
3235
4004
  audit?: {
@@ -3237,12 +4006,13 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3237
4006
  includeProofHashes: boolean;
3238
4007
  includePayloads: boolean;
3239
4008
  } | undefined;
4009
+ }, {
3240
4010
  platform?: {
3241
4011
  type: "cloudflare" | "node" | "vercel";
3242
4012
  cloudflare?: {
3243
4013
  workers: {
3244
- cpuMs: number;
3245
- memoryMb: number;
4014
+ cpuMs?: number | undefined;
4015
+ memoryMb?: number | undefined;
3246
4016
  };
3247
4017
  kvNamespaces: {
3248
4018
  name: string;
@@ -3256,10 +4026,10 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3256
4026
  } | undefined;
3257
4027
  node?: {
3258
4028
  server: {
3259
- timeout: number;
3260
- port: number;
3261
- host: string;
3262
- cors: boolean;
4029
+ timeout?: number | undefined;
4030
+ port?: number | undefined;
4031
+ host?: string | undefined;
4032
+ cors?: boolean | undefined;
3263
4033
  };
3264
4034
  storage: {
3265
4035
  type: "memory" | "redis" | "postgres" | "mongodb";
@@ -3282,7 +4052,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3282
4052
  } | undefined;
3283
4053
  } | undefined;
3284
4054
  } | undefined;
3285
- }, {
3286
4055
  session?: {
3287
4056
  ttlMinutes?: number | undefined;
3288
4057
  timestampSkewSeconds?: number | undefined;
@@ -3296,6 +4065,12 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3296
4065
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
3297
4066
  } | undefined;
3298
4067
  delegation?: {
4068
+ authorization: {
4069
+ authorizationUrl?: string | undefined;
4070
+ minReputationScore?: number | undefined;
4071
+ resumeTokenTtl?: number | undefined;
4072
+ requireAuthForUnknown?: boolean | undefined;
4073
+ };
3299
4074
  enabled: boolean;
3300
4075
  enforceStrictly: boolean;
3301
4076
  verifier: {
@@ -3303,12 +4078,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3303
4078
  apiUrl?: string | undefined;
3304
4079
  cacheTtl?: number | undefined;
3305
4080
  };
3306
- authorization: {
3307
- authorizationUrl?: string | undefined;
3308
- minReputationScore?: number | undefined;
3309
- resumeTokenTtl?: number | undefined;
3310
- requireAuthForUnknown?: boolean | undefined;
3311
- };
3312
4081
  } | undefined;
3313
4082
  identity?: {
3314
4083
  environment: "development" | "production";
@@ -3338,7 +4107,27 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3338
4107
  fallback?: Record<string, {
3339
4108
  requiresDelegation: boolean;
3340
4109
  requiredScopes: string[];
4110
+ authorization?: {
4111
+ type: "oauth";
4112
+ provider: string;
4113
+ requiredScopes?: string[] | undefined;
4114
+ } | {
4115
+ type: "mdl";
4116
+ issuer: string;
4117
+ credentialType?: string | undefined;
4118
+ } | {
4119
+ type: "idv";
4120
+ provider: string;
4121
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4122
+ } | {
4123
+ type: "credential";
4124
+ credentialType: string;
4125
+ issuer?: string | undefined;
4126
+ } | {
4127
+ type: "none";
4128
+ } | undefined;
3341
4129
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4130
+ oauthProvider?: string | undefined;
3342
4131
  }> | undefined;
3343
4132
  } | undefined;
3344
4133
  audit?: {
@@ -3346,12 +4135,16 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3346
4135
  includeProofHashes: boolean;
3347
4136
  includePayloads: boolean;
3348
4137
  } | undefined;
4138
+ }>;
4139
+ }, "strip", z.ZodTypeAny, {
4140
+ projectId: string;
4141
+ config: {
3349
4142
  platform?: {
3350
4143
  type: "cloudflare" | "node" | "vercel";
3351
4144
  cloudflare?: {
3352
4145
  workers: {
3353
- cpuMs?: number | undefined;
3354
- memoryMb?: number | undefined;
4146
+ cpuMs: number;
4147
+ memoryMb: number;
3355
4148
  };
3356
4149
  kvNamespaces: {
3357
4150
  name: string;
@@ -3365,10 +4158,10 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3365
4158
  } | undefined;
3366
4159
  node?: {
3367
4160
  server: {
3368
- timeout?: number | undefined;
3369
- port?: number | undefined;
3370
- host?: string | undefined;
3371
- cors?: boolean | undefined;
4161
+ timeout: number;
4162
+ port: number;
4163
+ host: string;
4164
+ cors: boolean;
3372
4165
  };
3373
4166
  storage: {
3374
4167
  type: "memory" | "redis" | "postgres" | "mongodb";
@@ -3391,10 +4184,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3391
4184
  } | undefined;
3392
4185
  } | undefined;
3393
4186
  } | undefined;
3394
- }>;
3395
- }, "strip", z.ZodTypeAny, {
3396
- projectId: string;
3397
- config: {
3398
4187
  session?: {
3399
4188
  ttlMinutes: number;
3400
4189
  timestampSkewSeconds: number;
@@ -3408,19 +4197,19 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3408
4197
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
3409
4198
  } | undefined;
3410
4199
  delegation?: {
3411
- enabled: boolean;
3412
- enforceStrictly: boolean;
3413
- verifier: {
3414
- type: "custom" | "kta" | "memory" | "redis" | "dynamodb" | "cloudflare-kv" | "agentshield";
3415
- apiUrl?: string | undefined;
3416
- cacheTtl?: number | undefined;
3417
- };
3418
4200
  authorization: {
3419
4201
  authorizationUrl?: string | undefined;
3420
4202
  minReputationScore?: number | undefined;
3421
4203
  resumeTokenTtl?: number | undefined;
3422
4204
  requireAuthForUnknown?: boolean | undefined;
3423
4205
  };
4206
+ enabled: boolean;
4207
+ enforceStrictly: boolean;
4208
+ verifier: {
4209
+ type: "custom" | "kta" | "memory" | "redis" | "dynamodb" | "cloudflare-kv" | "agentshield";
4210
+ apiUrl?: string | undefined;
4211
+ cacheTtl?: number | undefined;
4212
+ };
3424
4213
  } | undefined;
3425
4214
  identity?: {
3426
4215
  environment: "development" | "production";
@@ -3450,7 +4239,27 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3450
4239
  fallback?: Record<string, {
3451
4240
  requiresDelegation: boolean;
3452
4241
  requiredScopes: string[];
4242
+ authorization?: {
4243
+ type: "oauth";
4244
+ provider: string;
4245
+ requiredScopes?: string[] | undefined;
4246
+ } | {
4247
+ type: "mdl";
4248
+ issuer: string;
4249
+ credentialType?: string | undefined;
4250
+ } | {
4251
+ type: "idv";
4252
+ provider: string;
4253
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4254
+ } | {
4255
+ type: "credential";
4256
+ credentialType: string;
4257
+ issuer?: string | undefined;
4258
+ } | {
4259
+ type: "none";
4260
+ } | undefined;
3453
4261
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4262
+ oauthProvider?: string | undefined;
3454
4263
  }> | undefined;
3455
4264
  } | undefined;
3456
4265
  audit?: {
@@ -3458,12 +4267,16 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3458
4267
  includeProofHashes: boolean;
3459
4268
  includePayloads: boolean;
3460
4269
  } | undefined;
4270
+ };
4271
+ }, {
4272
+ projectId: string;
4273
+ config: {
3461
4274
  platform?: {
3462
4275
  type: "cloudflare" | "node" | "vercel";
3463
4276
  cloudflare?: {
3464
4277
  workers: {
3465
- cpuMs: number;
3466
- memoryMb: number;
4278
+ cpuMs?: number | undefined;
4279
+ memoryMb?: number | undefined;
3467
4280
  };
3468
4281
  kvNamespaces: {
3469
4282
  name: string;
@@ -3477,10 +4290,10 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3477
4290
  } | undefined;
3478
4291
  node?: {
3479
4292
  server: {
3480
- timeout: number;
3481
- port: number;
3482
- host: string;
3483
- cors: boolean;
4293
+ timeout?: number | undefined;
4294
+ port?: number | undefined;
4295
+ host?: string | undefined;
4296
+ cors?: boolean | undefined;
3484
4297
  };
3485
4298
  storage: {
3486
4299
  type: "memory" | "redis" | "postgres" | "mongodb";
@@ -3503,10 +4316,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3503
4316
  } | undefined;
3504
4317
  } | undefined;
3505
4318
  } | undefined;
3506
- };
3507
- }, {
3508
- projectId: string;
3509
- config: {
3510
4319
  session?: {
3511
4320
  ttlMinutes?: number | undefined;
3512
4321
  timestampSkewSeconds?: number | undefined;
@@ -3520,6 +4329,12 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3520
4329
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
3521
4330
  } | undefined;
3522
4331
  delegation?: {
4332
+ authorization: {
4333
+ authorizationUrl?: string | undefined;
4334
+ minReputationScore?: number | undefined;
4335
+ resumeTokenTtl?: number | undefined;
4336
+ requireAuthForUnknown?: boolean | undefined;
4337
+ };
3523
4338
  enabled: boolean;
3524
4339
  enforceStrictly: boolean;
3525
4340
  verifier: {
@@ -3527,12 +4342,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3527
4342
  apiUrl?: string | undefined;
3528
4343
  cacheTtl?: number | undefined;
3529
4344
  };
3530
- authorization: {
3531
- authorizationUrl?: string | undefined;
3532
- minReputationScore?: number | undefined;
3533
- resumeTokenTtl?: number | undefined;
3534
- requireAuthForUnknown?: boolean | undefined;
3535
- };
3536
4345
  } | undefined;
3537
4346
  identity?: {
3538
4347
  environment: "development" | "production";
@@ -3562,7 +4371,27 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3562
4371
  fallback?: Record<string, {
3563
4372
  requiresDelegation: boolean;
3564
4373
  requiredScopes: string[];
4374
+ authorization?: {
4375
+ type: "oauth";
4376
+ provider: string;
4377
+ requiredScopes?: string[] | undefined;
4378
+ } | {
4379
+ type: "mdl";
4380
+ issuer: string;
4381
+ credentialType?: string | undefined;
4382
+ } | {
4383
+ type: "idv";
4384
+ provider: string;
4385
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4386
+ } | {
4387
+ type: "credential";
4388
+ credentialType: string;
4389
+ issuer?: string | undefined;
4390
+ } | {
4391
+ type: "none";
4392
+ } | undefined;
3565
4393
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4394
+ oauthProvider?: string | undefined;
3566
4395
  }> | undefined;
3567
4396
  } | undefined;
3568
4397
  audit?: {
@@ -3570,51 +4399,6 @@ export declare const updateServerConfigRequestSchema: z.ZodObject<{
3570
4399
  includeProofHashes: boolean;
3571
4400
  includePayloads: boolean;
3572
4401
  } | undefined;
3573
- platform?: {
3574
- type: "cloudflare" | "node" | "vercel";
3575
- cloudflare?: {
3576
- workers: {
3577
- cpuMs?: number | undefined;
3578
- memoryMb?: number | undefined;
3579
- };
3580
- kvNamespaces: {
3581
- name: string;
3582
- purpose: "cache" | "delegations" | "sessions" | "general";
3583
- }[];
3584
- environmentVariables: {
3585
- value: string;
3586
- name: string;
3587
- source: "wrangler.toml" | "secrets" | ".dev.vars";
3588
- }[];
3589
- } | undefined;
3590
- node?: {
3591
- server: {
3592
- timeout?: number | undefined;
3593
- port?: number | undefined;
3594
- host?: string | undefined;
3595
- cors?: boolean | undefined;
3596
- };
3597
- storage: {
3598
- type: "memory" | "redis" | "postgres" | "mongodb";
3599
- connection?: {
3600
- port?: number | undefined;
3601
- host?: string | undefined;
3602
- database?: string | undefined;
3603
- } | undefined;
3604
- };
3605
- } | undefined;
3606
- vercel?: {
3607
- environmentVariables: {
3608
- value: string;
3609
- name: string;
3610
- source: "vercel-dashboard" | ".env.local";
3611
- }[];
3612
- edgeRuntime?: {
3613
- maxDuration?: number | undefined;
3614
- regions?: string[] | undefined;
3615
- } | undefined;
3616
- } | undefined;
3617
- } | undefined;
3618
4402
  };
3619
4403
  }>;
3620
4404
  /**
@@ -3729,6 +4513,12 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
3729
4513
  requireAuthForUnknown?: boolean | undefined;
3730
4514
  }>;
3731
4515
  }, "strip", z.ZodTypeAny, {
4516
+ authorization: {
4517
+ authorizationUrl?: string | undefined;
4518
+ minReputationScore?: number | undefined;
4519
+ resumeTokenTtl?: number | undefined;
4520
+ requireAuthForUnknown?: boolean | undefined;
4521
+ };
3732
4522
  enabled: boolean;
3733
4523
  enforceStrictly: boolean;
3734
4524
  verifier: {
@@ -3736,13 +4526,13 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
3736
4526
  apiUrl?: string | undefined;
3737
4527
  cacheTtl?: number | undefined;
3738
4528
  };
4529
+ }, {
3739
4530
  authorization: {
3740
4531
  authorizationUrl?: string | undefined;
3741
4532
  minReputationScore?: number | undefined;
3742
4533
  resumeTokenTtl?: number | undefined;
3743
4534
  requireAuthForUnknown?: boolean | undefined;
3744
4535
  };
3745
- }, {
3746
4536
  enabled: boolean;
3747
4537
  enforceStrictly: boolean;
3748
4538
  verifier: {
@@ -3750,12 +4540,6 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
3750
4540
  apiUrl?: string | undefined;
3751
4541
  cacheTtl?: number | undefined;
3752
4542
  };
3753
- authorization: {
3754
- authorizationUrl?: string | undefined;
3755
- minReputationScore?: number | undefined;
3756
- resumeTokenTtl?: number | undefined;
3757
- requireAuthForUnknown?: boolean | undefined;
3758
- };
3759
4543
  }>;
3760
4544
  toolProtection: z.ZodObject<{
3761
4545
  source: z.ZodEnum<["agentshield", "inline", "file"]>;
@@ -3773,14 +4557,110 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
3773
4557
  requiresDelegation: z.ZodBoolean;
3774
4558
  requiredScopes: z.ZodArray<z.ZodString, "many">;
3775
4559
  riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
4560
+ oauthProvider: z.ZodOptional<z.ZodString>;
4561
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4562
+ type: z.ZodLiteral<"oauth">;
4563
+ provider: z.ZodString;
4564
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4565
+ }, "strip", z.ZodTypeAny, {
4566
+ type: "oauth";
4567
+ provider: string;
4568
+ requiredScopes?: string[] | undefined;
4569
+ }, {
4570
+ type: "oauth";
4571
+ provider: string;
4572
+ requiredScopes?: string[] | undefined;
4573
+ }>, z.ZodObject<{
4574
+ type: z.ZodLiteral<"mdl">;
4575
+ issuer: z.ZodString;
4576
+ credentialType: z.ZodOptional<z.ZodString>;
4577
+ }, "strip", z.ZodTypeAny, {
4578
+ type: "mdl";
4579
+ issuer: string;
4580
+ credentialType?: string | undefined;
4581
+ }, {
4582
+ type: "mdl";
4583
+ issuer: string;
4584
+ credentialType?: string | undefined;
4585
+ }>, z.ZodObject<{
4586
+ type: z.ZodLiteral<"idv">;
4587
+ provider: z.ZodString;
4588
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
4589
+ }, "strip", z.ZodTypeAny, {
4590
+ type: "idv";
4591
+ provider: string;
4592
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4593
+ }, {
4594
+ type: "idv";
4595
+ provider: string;
4596
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4597
+ }>, z.ZodObject<{
4598
+ type: z.ZodLiteral<"credential">;
4599
+ credentialType: z.ZodString;
4600
+ issuer: z.ZodOptional<z.ZodString>;
4601
+ }, "strip", z.ZodTypeAny, {
4602
+ type: "credential";
4603
+ credentialType: string;
4604
+ issuer?: string | undefined;
4605
+ }, {
4606
+ type: "credential";
4607
+ credentialType: string;
4608
+ issuer?: string | undefined;
4609
+ }>, z.ZodObject<{
4610
+ type: z.ZodLiteral<"none">;
4611
+ }, "strip", z.ZodTypeAny, {
4612
+ type: "none";
4613
+ }, {
4614
+ type: "none";
4615
+ }>]>>;
3776
4616
  }, "strip", z.ZodTypeAny, {
3777
4617
  requiresDelegation: boolean;
3778
4618
  requiredScopes: string[];
4619
+ authorization?: {
4620
+ type: "oauth";
4621
+ provider: string;
4622
+ requiredScopes?: string[] | undefined;
4623
+ } | {
4624
+ type: "mdl";
4625
+ issuer: string;
4626
+ credentialType?: string | undefined;
4627
+ } | {
4628
+ type: "idv";
4629
+ provider: string;
4630
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4631
+ } | {
4632
+ type: "credential";
4633
+ credentialType: string;
4634
+ issuer?: string | undefined;
4635
+ } | {
4636
+ type: "none";
4637
+ } | undefined;
3779
4638
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4639
+ oauthProvider?: string | undefined;
3780
4640
  }, {
3781
4641
  requiresDelegation: boolean;
3782
4642
  requiredScopes: string[];
4643
+ authorization?: {
4644
+ type: "oauth";
4645
+ provider: string;
4646
+ requiredScopes?: string[] | undefined;
4647
+ } | {
4648
+ type: "mdl";
4649
+ issuer: string;
4650
+ credentialType?: string | undefined;
4651
+ } | {
4652
+ type: "idv";
4653
+ provider: string;
4654
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4655
+ } | {
4656
+ type: "credential";
4657
+ credentialType: string;
4658
+ issuer?: string | undefined;
4659
+ } | {
4660
+ type: "none";
4661
+ } | undefined;
3783
4662
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4663
+ oauthProvider?: string | undefined;
3784
4664
  }>>>;
3785
4665
  }, "strip", z.ZodTypeAny, {
3786
4666
  source: "agentshield" | "inline" | "file";
@@ -3791,7 +4671,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
3791
4671
  fallback?: Record<string, {
3792
4672
  requiresDelegation: boolean;
3793
4673
  requiredScopes: string[];
4674
+ authorization?: {
4675
+ type: "oauth";
4676
+ provider: string;
4677
+ requiredScopes?: string[] | undefined;
4678
+ } | {
4679
+ type: "mdl";
4680
+ issuer: string;
4681
+ credentialType?: string | undefined;
4682
+ } | {
4683
+ type: "idv";
4684
+ provider: string;
4685
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4686
+ } | {
4687
+ type: "credential";
4688
+ credentialType: string;
4689
+ issuer?: string | undefined;
4690
+ } | {
4691
+ type: "none";
4692
+ } | undefined;
3794
4693
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4694
+ oauthProvider?: string | undefined;
3795
4695
  }> | undefined;
3796
4696
  }, {
3797
4697
  source: "agentshield" | "inline" | "file";
@@ -3802,7 +4702,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
3802
4702
  fallback?: Record<string, {
3803
4703
  requiresDelegation: boolean;
3804
4704
  requiredScopes: string[];
4705
+ authorization?: {
4706
+ type: "oauth";
4707
+ provider: string;
4708
+ requiredScopes?: string[] | undefined;
4709
+ } | {
4710
+ type: "mdl";
4711
+ issuer: string;
4712
+ credentialType?: string | undefined;
4713
+ } | {
4714
+ type: "idv";
4715
+ provider: string;
4716
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
4717
+ } | {
4718
+ type: "credential";
4719
+ credentialType: string;
4720
+ issuer?: string | undefined;
4721
+ } | {
4722
+ type: "none";
4723
+ } | undefined;
3805
4724
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4725
+ oauthProvider?: string | undefined;
3806
4726
  }> | undefined;
3807
4727
  }>;
3808
4728
  audit: z.ZodObject<{
@@ -4128,69 +5048,6 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4128
5048
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
4129
5049
  }>;
4130
5050
  }, "strip", z.ZodTypeAny, {
4131
- session: {
4132
- ttlMinutes: number;
4133
- timestampSkewSeconds: number;
4134
- absoluteLifetime?: number | undefined;
4135
- };
4136
- metadata: {
4137
- version: string;
4138
- lastUpdated: string;
4139
- source: "code" | "dashboard" | "mixed";
4140
- serverUrl?: string | undefined;
4141
- deploymentStatus?: "error" | "active" | "inactive" | undefined;
4142
- };
4143
- delegation: {
4144
- enabled: boolean;
4145
- enforceStrictly: boolean;
4146
- verifier: {
4147
- type: "custom" | "kta" | "memory" | "redis" | "dynamodb" | "cloudflare-kv" | "agentshield";
4148
- apiUrl?: string | undefined;
4149
- cacheTtl?: number | undefined;
4150
- };
4151
- authorization: {
4152
- authorizationUrl?: string | undefined;
4153
- minReputationScore?: number | undefined;
4154
- resumeTokenTtl?: number | undefined;
4155
- requireAuthForUnknown?: boolean | undefined;
4156
- };
4157
- };
4158
- identity: {
4159
- environment: "development" | "production";
4160
- serverDid: string;
4161
- storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
4162
- agentDid?: string | undefined;
4163
- };
4164
- proofing: {
4165
- enabled: boolean;
4166
- destinations: {
4167
- type: "custom" | "kta" | "agentshield";
4168
- apiUrl: string;
4169
- apiKey?: string | undefined;
4170
- }[];
4171
- batchQueue: {
4172
- maxBatchSize: number;
4173
- flushIntervalMs: number;
4174
- maxRetries: number;
4175
- };
4176
- };
4177
- toolProtection: {
4178
- source: "agentshield" | "inline" | "file";
4179
- agentShield?: {
4180
- apiUrl: string;
4181
- cacheTtl: number;
4182
- } | undefined;
4183
- fallback?: Record<string, {
4184
- requiresDelegation: boolean;
4185
- requiredScopes: string[];
4186
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
4187
- }> | undefined;
4188
- };
4189
- audit: {
4190
- enabled: boolean;
4191
- includeProofHashes: boolean;
4192
- includePayloads: boolean;
4193
- };
4194
5051
  platform: {
4195
5052
  type: "cloudflare" | "node" | "vercel";
4196
5053
  cloudflare?: {
@@ -4236,10 +5093,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4236
5093
  } | undefined;
4237
5094
  } | undefined;
4238
5095
  };
4239
- }, {
4240
5096
  session: {
4241
- ttlMinutes?: number | undefined;
4242
- timestampSkewSeconds?: number | undefined;
5097
+ ttlMinutes: number;
5098
+ timestampSkewSeconds: number;
4243
5099
  absoluteLifetime?: number | undefined;
4244
5100
  };
4245
5101
  metadata: {
@@ -4250,6 +5106,12 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4250
5106
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
4251
5107
  };
4252
5108
  delegation: {
5109
+ authorization: {
5110
+ authorizationUrl?: string | undefined;
5111
+ minReputationScore?: number | undefined;
5112
+ resumeTokenTtl?: number | undefined;
5113
+ requireAuthForUnknown?: boolean | undefined;
5114
+ };
4253
5115
  enabled: boolean;
4254
5116
  enforceStrictly: boolean;
4255
5117
  verifier: {
@@ -4257,12 +5119,6 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4257
5119
  apiUrl?: string | undefined;
4258
5120
  cacheTtl?: number | undefined;
4259
5121
  };
4260
- authorization: {
4261
- authorizationUrl?: string | undefined;
4262
- minReputationScore?: number | undefined;
4263
- resumeTokenTtl?: number | undefined;
4264
- requireAuthForUnknown?: boolean | undefined;
4265
- };
4266
5122
  };
4267
5123
  identity: {
4268
5124
  environment: "development" | "production";
@@ -4278,9 +5134,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4278
5134
  apiKey?: string | undefined;
4279
5135
  }[];
4280
5136
  batchQueue: {
4281
- maxBatchSize?: number | undefined;
4282
- flushIntervalMs?: number | undefined;
4283
- maxRetries?: number | undefined;
5137
+ maxBatchSize: number;
5138
+ flushIntervalMs: number;
5139
+ maxRetries: number;
4284
5140
  };
4285
5141
  };
4286
5142
  toolProtection: {
@@ -4292,7 +5148,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4292
5148
  fallback?: Record<string, {
4293
5149
  requiresDelegation: boolean;
4294
5150
  requiredScopes: string[];
5151
+ authorization?: {
5152
+ type: "oauth";
5153
+ provider: string;
5154
+ requiredScopes?: string[] | undefined;
5155
+ } | {
5156
+ type: "mdl";
5157
+ issuer: string;
5158
+ credentialType?: string | undefined;
5159
+ } | {
5160
+ type: "idv";
5161
+ provider: string;
5162
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
5163
+ } | {
5164
+ type: "credential";
5165
+ credentialType: string;
5166
+ issuer?: string | undefined;
5167
+ } | {
5168
+ type: "none";
5169
+ } | undefined;
4295
5170
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
5171
+ oauthProvider?: string | undefined;
4296
5172
  }> | undefined;
4297
5173
  };
4298
5174
  audit: {
@@ -4300,6 +5176,7 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4300
5176
  includeProofHashes: boolean;
4301
5177
  includePayloads: boolean;
4302
5178
  };
5179
+ }, {
4303
5180
  platform: {
4304
5181
  type: "cloudflare" | "node" | "vercel";
4305
5182
  cloudflare?: {
@@ -4345,25 +5222,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4345
5222
  } | undefined;
4346
5223
  } | undefined;
4347
5224
  };
4348
- }>;
4349
- changes: z.ZodArray<z.ZodObject<{
4350
- path: z.ZodString;
4351
- oldValue: z.ZodUnknown;
4352
- newValue: z.ZodUnknown;
4353
- }, "strip", z.ZodTypeAny, {
4354
- path: string;
4355
- oldValue?: unknown;
4356
- newValue?: unknown;
4357
- }, {
4358
- path: string;
4359
- oldValue?: unknown;
4360
- newValue?: unknown;
4361
- }>, "many">;
4362
- }, "strip", z.ZodTypeAny, {
4363
- config: {
4364
5225
  session: {
4365
- ttlMinutes: number;
4366
- timestampSkewSeconds: number;
5226
+ ttlMinutes?: number | undefined;
5227
+ timestampSkewSeconds?: number | undefined;
4367
5228
  absoluteLifetime?: number | undefined;
4368
5229
  };
4369
5230
  metadata: {
@@ -4374,6 +5235,12 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4374
5235
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
4375
5236
  };
4376
5237
  delegation: {
5238
+ authorization: {
5239
+ authorizationUrl?: string | undefined;
5240
+ minReputationScore?: number | undefined;
5241
+ resumeTokenTtl?: number | undefined;
5242
+ requireAuthForUnknown?: boolean | undefined;
5243
+ };
4377
5244
  enabled: boolean;
4378
5245
  enforceStrictly: boolean;
4379
5246
  verifier: {
@@ -4381,12 +5248,6 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4381
5248
  apiUrl?: string | undefined;
4382
5249
  cacheTtl?: number | undefined;
4383
5250
  };
4384
- authorization: {
4385
- authorizationUrl?: string | undefined;
4386
- minReputationScore?: number | undefined;
4387
- resumeTokenTtl?: number | undefined;
4388
- requireAuthForUnknown?: boolean | undefined;
4389
- };
4390
5251
  };
4391
5252
  identity: {
4392
5253
  environment: "development" | "production";
@@ -4402,9 +5263,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4402
5263
  apiKey?: string | undefined;
4403
5264
  }[];
4404
5265
  batchQueue: {
4405
- maxBatchSize: number;
4406
- flushIntervalMs: number;
4407
- maxRetries: number;
5266
+ maxBatchSize?: number | undefined;
5267
+ flushIntervalMs?: number | undefined;
5268
+ maxRetries?: number | undefined;
4408
5269
  };
4409
5270
  };
4410
5271
  toolProtection: {
@@ -4416,7 +5277,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4416
5277
  fallback?: Record<string, {
4417
5278
  requiresDelegation: boolean;
4418
5279
  requiredScopes: string[];
5280
+ authorization?: {
5281
+ type: "oauth";
5282
+ provider: string;
5283
+ requiredScopes?: string[] | undefined;
5284
+ } | {
5285
+ type: "mdl";
5286
+ issuer: string;
5287
+ credentialType?: string | undefined;
5288
+ } | {
5289
+ type: "idv";
5290
+ provider: string;
5291
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
5292
+ } | {
5293
+ type: "credential";
5294
+ credentialType: string;
5295
+ issuer?: string | undefined;
5296
+ } | {
5297
+ type: "none";
5298
+ } | undefined;
4419
5299
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
5300
+ oauthProvider?: string | undefined;
4420
5301
  }> | undefined;
4421
5302
  };
4422
5303
  audit: {
@@ -4424,6 +5305,22 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4424
5305
  includeProofHashes: boolean;
4425
5306
  includePayloads: boolean;
4426
5307
  };
5308
+ }>;
5309
+ changes: z.ZodArray<z.ZodObject<{
5310
+ path: z.ZodString;
5311
+ oldValue: z.ZodUnknown;
5312
+ newValue: z.ZodUnknown;
5313
+ }, "strip", z.ZodTypeAny, {
5314
+ path: string;
5315
+ oldValue?: unknown;
5316
+ newValue?: unknown;
5317
+ }, {
5318
+ path: string;
5319
+ oldValue?: unknown;
5320
+ newValue?: unknown;
5321
+ }>, "many">;
5322
+ }, "strip", z.ZodTypeAny, {
5323
+ config: {
4427
5324
  platform: {
4428
5325
  type: "cloudflare" | "node" | "vercel";
4429
5326
  cloudflare?: {
@@ -4469,17 +5366,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4469
5366
  } | undefined;
4470
5367
  } | undefined;
4471
5368
  };
4472
- };
4473
- changes: {
4474
- path: string;
4475
- oldValue?: unknown;
4476
- newValue?: unknown;
4477
- }[];
4478
- }, {
4479
- config: {
4480
5369
  session: {
4481
- ttlMinutes?: number | undefined;
4482
- timestampSkewSeconds?: number | undefined;
5370
+ ttlMinutes: number;
5371
+ timestampSkewSeconds: number;
4483
5372
  absoluteLifetime?: number | undefined;
4484
5373
  };
4485
5374
  metadata: {
@@ -4490,6 +5379,12 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4490
5379
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
4491
5380
  };
4492
5381
  delegation: {
5382
+ authorization: {
5383
+ authorizationUrl?: string | undefined;
5384
+ minReputationScore?: number | undefined;
5385
+ resumeTokenTtl?: number | undefined;
5386
+ requireAuthForUnknown?: boolean | undefined;
5387
+ };
4493
5388
  enabled: boolean;
4494
5389
  enforceStrictly: boolean;
4495
5390
  verifier: {
@@ -4497,12 +5392,6 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4497
5392
  apiUrl?: string | undefined;
4498
5393
  cacheTtl?: number | undefined;
4499
5394
  };
4500
- authorization: {
4501
- authorizationUrl?: string | undefined;
4502
- minReputationScore?: number | undefined;
4503
- resumeTokenTtl?: number | undefined;
4504
- requireAuthForUnknown?: boolean | undefined;
4505
- };
4506
5395
  };
4507
5396
  identity: {
4508
5397
  environment: "development" | "production";
@@ -4518,9 +5407,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4518
5407
  apiKey?: string | undefined;
4519
5408
  }[];
4520
5409
  batchQueue: {
4521
- maxBatchSize?: number | undefined;
4522
- flushIntervalMs?: number | undefined;
4523
- maxRetries?: number | undefined;
5410
+ maxBatchSize: number;
5411
+ flushIntervalMs: number;
5412
+ maxRetries: number;
4524
5413
  };
4525
5414
  };
4526
5415
  toolProtection: {
@@ -4532,7 +5421,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4532
5421
  fallback?: Record<string, {
4533
5422
  requiresDelegation: boolean;
4534
5423
  requiredScopes: string[];
5424
+ authorization?: {
5425
+ type: "oauth";
5426
+ provider: string;
5427
+ requiredScopes?: string[] | undefined;
5428
+ } | {
5429
+ type: "mdl";
5430
+ issuer: string;
5431
+ credentialType?: string | undefined;
5432
+ } | {
5433
+ type: "idv";
5434
+ provider: string;
5435
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
5436
+ } | {
5437
+ type: "credential";
5438
+ credentialType: string;
5439
+ issuer?: string | undefined;
5440
+ } | {
5441
+ type: "none";
5442
+ } | undefined;
4535
5443
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
5444
+ oauthProvider?: string | undefined;
4536
5445
  }> | undefined;
4537
5446
  };
4538
5447
  audit: {
@@ -4540,6 +5449,14 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4540
5449
  includeProofHashes: boolean;
4541
5450
  includePayloads: boolean;
4542
5451
  };
5452
+ };
5453
+ changes: {
5454
+ path: string;
5455
+ oldValue?: unknown;
5456
+ newValue?: unknown;
5457
+ }[];
5458
+ }, {
5459
+ config: {
4543
5460
  platform: {
4544
5461
  type: "cloudflare" | "node" | "vercel";
4545
5462
  cloudflare?: {
@@ -4585,30 +5502,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4585
5502
  } | undefined;
4586
5503
  } | undefined;
4587
5504
  };
4588
- };
4589
- changes: {
4590
- path: string;
4591
- oldValue?: unknown;
4592
- newValue?: unknown;
4593
- }[];
4594
- }>;
4595
- metadata: z.ZodOptional<z.ZodObject<{
4596
- requestId: z.ZodOptional<z.ZodString>;
4597
- timestamp: z.ZodOptional<z.ZodString>;
4598
- }, "strip", z.ZodTypeAny, {
4599
- timestamp?: string | undefined;
4600
- requestId?: string | undefined;
4601
- }, {
4602
- timestamp?: string | undefined;
4603
- requestId?: string | undefined;
4604
- }>>;
4605
- }, "strip", z.ZodTypeAny, {
4606
- success: boolean;
4607
- data: {
4608
- config: {
4609
5505
  session: {
4610
- ttlMinutes: number;
4611
- timestampSkewSeconds: number;
5506
+ ttlMinutes?: number | undefined;
5507
+ timestampSkewSeconds?: number | undefined;
4612
5508
  absoluteLifetime?: number | undefined;
4613
5509
  };
4614
5510
  metadata: {
@@ -4619,6 +5515,12 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4619
5515
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
4620
5516
  };
4621
5517
  delegation: {
5518
+ authorization: {
5519
+ authorizationUrl?: string | undefined;
5520
+ minReputationScore?: number | undefined;
5521
+ resumeTokenTtl?: number | undefined;
5522
+ requireAuthForUnknown?: boolean | undefined;
5523
+ };
4622
5524
  enabled: boolean;
4623
5525
  enforceStrictly: boolean;
4624
5526
  verifier: {
@@ -4626,12 +5528,6 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4626
5528
  apiUrl?: string | undefined;
4627
5529
  cacheTtl?: number | undefined;
4628
5530
  };
4629
- authorization: {
4630
- authorizationUrl?: string | undefined;
4631
- minReputationScore?: number | undefined;
4632
- resumeTokenTtl?: number | undefined;
4633
- requireAuthForUnknown?: boolean | undefined;
4634
- };
4635
5531
  };
4636
5532
  identity: {
4637
5533
  environment: "development" | "production";
@@ -4647,9 +5543,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4647
5543
  apiKey?: string | undefined;
4648
5544
  }[];
4649
5545
  batchQueue: {
4650
- maxBatchSize: number;
4651
- flushIntervalMs: number;
4652
- maxRetries: number;
5546
+ maxBatchSize?: number | undefined;
5547
+ flushIntervalMs?: number | undefined;
5548
+ maxRetries?: number | undefined;
4653
5549
  };
4654
5550
  };
4655
5551
  toolProtection: {
@@ -4661,7 +5557,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4661
5557
  fallback?: Record<string, {
4662
5558
  requiresDelegation: boolean;
4663
5559
  requiredScopes: string[];
5560
+ authorization?: {
5561
+ type: "oauth";
5562
+ provider: string;
5563
+ requiredScopes?: string[] | undefined;
5564
+ } | {
5565
+ type: "mdl";
5566
+ issuer: string;
5567
+ credentialType?: string | undefined;
5568
+ } | {
5569
+ type: "idv";
5570
+ provider: string;
5571
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
5572
+ } | {
5573
+ type: "credential";
5574
+ credentialType: string;
5575
+ issuer?: string | undefined;
5576
+ } | {
5577
+ type: "none";
5578
+ } | undefined;
4664
5579
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
5580
+ oauthProvider?: string | undefined;
4665
5581
  }> | undefined;
4666
5582
  };
4667
5583
  audit: {
@@ -4669,6 +5585,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4669
5585
  includeProofHashes: boolean;
4670
5586
  includePayloads: boolean;
4671
5587
  };
5588
+ };
5589
+ changes: {
5590
+ path: string;
5591
+ oldValue?: unknown;
5592
+ newValue?: unknown;
5593
+ }[];
5594
+ }>;
5595
+ metadata: z.ZodOptional<z.ZodObject<{
5596
+ requestId: z.ZodOptional<z.ZodString>;
5597
+ timestamp: z.ZodOptional<z.ZodString>;
5598
+ }, "strip", z.ZodTypeAny, {
5599
+ timestamp?: string | undefined;
5600
+ requestId?: string | undefined;
5601
+ }, {
5602
+ timestamp?: string | undefined;
5603
+ requestId?: string | undefined;
5604
+ }>>;
5605
+ }, "strip", z.ZodTypeAny, {
5606
+ success: boolean;
5607
+ data: {
5608
+ config: {
4672
5609
  platform: {
4673
5610
  type: "cloudflare" | "node" | "vercel";
4674
5611
  cloudflare?: {
@@ -4714,24 +5651,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4714
5651
  } | undefined;
4715
5652
  } | undefined;
4716
5653
  };
4717
- };
4718
- changes: {
4719
- path: string;
4720
- oldValue?: unknown;
4721
- newValue?: unknown;
4722
- }[];
4723
- };
4724
- metadata?: {
4725
- timestamp?: string | undefined;
4726
- requestId?: string | undefined;
4727
- } | undefined;
4728
- }, {
4729
- success: boolean;
4730
- data: {
4731
- config: {
4732
5654
  session: {
4733
- ttlMinutes?: number | undefined;
4734
- timestampSkewSeconds?: number | undefined;
5655
+ ttlMinutes: number;
5656
+ timestampSkewSeconds: number;
4735
5657
  absoluteLifetime?: number | undefined;
4736
5658
  };
4737
5659
  metadata: {
@@ -4742,6 +5664,12 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4742
5664
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
4743
5665
  };
4744
5666
  delegation: {
5667
+ authorization: {
5668
+ authorizationUrl?: string | undefined;
5669
+ minReputationScore?: number | undefined;
5670
+ resumeTokenTtl?: number | undefined;
5671
+ requireAuthForUnknown?: boolean | undefined;
5672
+ };
4745
5673
  enabled: boolean;
4746
5674
  enforceStrictly: boolean;
4747
5675
  verifier: {
@@ -4749,12 +5677,6 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4749
5677
  apiUrl?: string | undefined;
4750
5678
  cacheTtl?: number | undefined;
4751
5679
  };
4752
- authorization: {
4753
- authorizationUrl?: string | undefined;
4754
- minReputationScore?: number | undefined;
4755
- resumeTokenTtl?: number | undefined;
4756
- requireAuthForUnknown?: boolean | undefined;
4757
- };
4758
5680
  };
4759
5681
  identity: {
4760
5682
  environment: "development" | "production";
@@ -4770,9 +5692,9 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4770
5692
  apiKey?: string | undefined;
4771
5693
  }[];
4772
5694
  batchQueue: {
4773
- maxBatchSize?: number | undefined;
4774
- flushIntervalMs?: number | undefined;
4775
- maxRetries?: number | undefined;
5695
+ maxBatchSize: number;
5696
+ flushIntervalMs: number;
5697
+ maxRetries: number;
4776
5698
  };
4777
5699
  };
4778
5700
  toolProtection: {
@@ -4784,7 +5706,27 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4784
5706
  fallback?: Record<string, {
4785
5707
  requiresDelegation: boolean;
4786
5708
  requiredScopes: string[];
5709
+ authorization?: {
5710
+ type: "oauth";
5711
+ provider: string;
5712
+ requiredScopes?: string[] | undefined;
5713
+ } | {
5714
+ type: "mdl";
5715
+ issuer: string;
5716
+ credentialType?: string | undefined;
5717
+ } | {
5718
+ type: "idv";
5719
+ provider: string;
5720
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
5721
+ } | {
5722
+ type: "credential";
5723
+ credentialType: string;
5724
+ issuer?: string | undefined;
5725
+ } | {
5726
+ type: "none";
5727
+ } | undefined;
4787
5728
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
5729
+ oauthProvider?: string | undefined;
4788
5730
  }> | undefined;
4789
5731
  };
4790
5732
  audit: {
@@ -4792,6 +5734,21 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4792
5734
  includeProofHashes: boolean;
4793
5735
  includePayloads: boolean;
4794
5736
  };
5737
+ };
5738
+ changes: {
5739
+ path: string;
5740
+ oldValue?: unknown;
5741
+ newValue?: unknown;
5742
+ }[];
5743
+ };
5744
+ metadata?: {
5745
+ timestamp?: string | undefined;
5746
+ requestId?: string | undefined;
5747
+ } | undefined;
5748
+ }, {
5749
+ success: boolean;
5750
+ data: {
5751
+ config: {
4795
5752
  platform: {
4796
5753
  type: "cloudflare" | "node" | "vercel";
4797
5754
  cloudflare?: {
@@ -4825,17 +5782,100 @@ export declare const updateServerConfigResponseSchema: z.ZodObject<{
4825
5782
  } | undefined;
4826
5783
  };
4827
5784
  } | undefined;
4828
- vercel?: {
4829
- environmentVariables: {
4830
- value: string;
4831
- name: string;
4832
- source: "vercel-dashboard" | ".env.local";
4833
- }[];
4834
- edgeRuntime?: {
4835
- maxDuration?: number | undefined;
4836
- regions?: string[] | undefined;
5785
+ vercel?: {
5786
+ environmentVariables: {
5787
+ value: string;
5788
+ name: string;
5789
+ source: "vercel-dashboard" | ".env.local";
5790
+ }[];
5791
+ edgeRuntime?: {
5792
+ maxDuration?: number | undefined;
5793
+ regions?: string[] | undefined;
5794
+ } | undefined;
5795
+ } | undefined;
5796
+ };
5797
+ session: {
5798
+ ttlMinutes?: number | undefined;
5799
+ timestampSkewSeconds?: number | undefined;
5800
+ absoluteLifetime?: number | undefined;
5801
+ };
5802
+ metadata: {
5803
+ version: string;
5804
+ lastUpdated: string;
5805
+ source: "code" | "dashboard" | "mixed";
5806
+ serverUrl?: string | undefined;
5807
+ deploymentStatus?: "error" | "active" | "inactive" | undefined;
5808
+ };
5809
+ delegation: {
5810
+ authorization: {
5811
+ authorizationUrl?: string | undefined;
5812
+ minReputationScore?: number | undefined;
5813
+ resumeTokenTtl?: number | undefined;
5814
+ requireAuthForUnknown?: boolean | undefined;
5815
+ };
5816
+ enabled: boolean;
5817
+ enforceStrictly: boolean;
5818
+ verifier: {
5819
+ type: "custom" | "kta" | "memory" | "redis" | "dynamodb" | "cloudflare-kv" | "agentshield";
5820
+ apiUrl?: string | undefined;
5821
+ cacheTtl?: number | undefined;
5822
+ };
5823
+ };
5824
+ identity: {
5825
+ environment: "development" | "production";
5826
+ serverDid: string;
5827
+ storageLocation: "cloudflare-kv" | "file-system" | "env-vars";
5828
+ agentDid?: string | undefined;
5829
+ };
5830
+ proofing: {
5831
+ enabled: boolean;
5832
+ destinations: {
5833
+ type: "custom" | "kta" | "agentshield";
5834
+ apiUrl: string;
5835
+ apiKey?: string | undefined;
5836
+ }[];
5837
+ batchQueue: {
5838
+ maxBatchSize?: number | undefined;
5839
+ flushIntervalMs?: number | undefined;
5840
+ maxRetries?: number | undefined;
5841
+ };
5842
+ };
5843
+ toolProtection: {
5844
+ source: "agentshield" | "inline" | "file";
5845
+ agentShield?: {
5846
+ apiUrl: string;
5847
+ cacheTtl: number;
5848
+ } | undefined;
5849
+ fallback?: Record<string, {
5850
+ requiresDelegation: boolean;
5851
+ requiredScopes: string[];
5852
+ authorization?: {
5853
+ type: "oauth";
5854
+ provider: string;
5855
+ requiredScopes?: string[] | undefined;
5856
+ } | {
5857
+ type: "mdl";
5858
+ issuer: string;
5859
+ credentialType?: string | undefined;
5860
+ } | {
5861
+ type: "idv";
5862
+ provider: string;
5863
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
5864
+ } | {
5865
+ type: "credential";
5866
+ credentialType: string;
5867
+ issuer?: string | undefined;
5868
+ } | {
5869
+ type: "none";
4837
5870
  } | undefined;
4838
- } | undefined;
5871
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
5872
+ oauthProvider?: string | undefined;
5873
+ }> | undefined;
5874
+ };
5875
+ audit: {
5876
+ enabled: boolean;
5877
+ includeProofHashes: boolean;
5878
+ includePayloads: boolean;
4839
5879
  };
4840
5880
  };
4841
5881
  changes: {
@@ -4960,6 +6000,12 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
4960
6000
  requireAuthForUnknown?: boolean | undefined;
4961
6001
  }>;
4962
6002
  }, "strip", z.ZodTypeAny, {
6003
+ authorization: {
6004
+ authorizationUrl?: string | undefined;
6005
+ minReputationScore?: number | undefined;
6006
+ resumeTokenTtl?: number | undefined;
6007
+ requireAuthForUnknown?: boolean | undefined;
6008
+ };
4963
6009
  enabled: boolean;
4964
6010
  enforceStrictly: boolean;
4965
6011
  verifier: {
@@ -4967,13 +6013,13 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
4967
6013
  apiUrl?: string | undefined;
4968
6014
  cacheTtl?: number | undefined;
4969
6015
  };
6016
+ }, {
4970
6017
  authorization: {
4971
6018
  authorizationUrl?: string | undefined;
4972
6019
  minReputationScore?: number | undefined;
4973
6020
  resumeTokenTtl?: number | undefined;
4974
6021
  requireAuthForUnknown?: boolean | undefined;
4975
6022
  };
4976
- }, {
4977
6023
  enabled: boolean;
4978
6024
  enforceStrictly: boolean;
4979
6025
  verifier: {
@@ -4981,12 +6027,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
4981
6027
  apiUrl?: string | undefined;
4982
6028
  cacheTtl?: number | undefined;
4983
6029
  };
4984
- authorization: {
4985
- authorizationUrl?: string | undefined;
4986
- minReputationScore?: number | undefined;
4987
- resumeTokenTtl?: number | undefined;
4988
- requireAuthForUnknown?: boolean | undefined;
4989
- };
4990
6030
  }>>;
4991
6031
  toolProtection: z.ZodOptional<z.ZodObject<{
4992
6032
  source: z.ZodEnum<["agentshield", "inline", "file"]>;
@@ -5004,14 +6044,110 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5004
6044
  requiresDelegation: z.ZodBoolean;
5005
6045
  requiredScopes: z.ZodArray<z.ZodString, "many">;
5006
6046
  riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
6047
+ oauthProvider: z.ZodOptional<z.ZodString>;
6048
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6049
+ type: z.ZodLiteral<"oauth">;
6050
+ provider: z.ZodString;
6051
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6052
+ }, "strip", z.ZodTypeAny, {
6053
+ type: "oauth";
6054
+ provider: string;
6055
+ requiredScopes?: string[] | undefined;
6056
+ }, {
6057
+ type: "oauth";
6058
+ provider: string;
6059
+ requiredScopes?: string[] | undefined;
6060
+ }>, z.ZodObject<{
6061
+ type: z.ZodLiteral<"mdl">;
6062
+ issuer: z.ZodString;
6063
+ credentialType: z.ZodOptional<z.ZodString>;
6064
+ }, "strip", z.ZodTypeAny, {
6065
+ type: "mdl";
6066
+ issuer: string;
6067
+ credentialType?: string | undefined;
6068
+ }, {
6069
+ type: "mdl";
6070
+ issuer: string;
6071
+ credentialType?: string | undefined;
6072
+ }>, z.ZodObject<{
6073
+ type: z.ZodLiteral<"idv">;
6074
+ provider: z.ZodString;
6075
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
6076
+ }, "strip", z.ZodTypeAny, {
6077
+ type: "idv";
6078
+ provider: string;
6079
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6080
+ }, {
6081
+ type: "idv";
6082
+ provider: string;
6083
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6084
+ }>, z.ZodObject<{
6085
+ type: z.ZodLiteral<"credential">;
6086
+ credentialType: z.ZodString;
6087
+ issuer: z.ZodOptional<z.ZodString>;
6088
+ }, "strip", z.ZodTypeAny, {
6089
+ type: "credential";
6090
+ credentialType: string;
6091
+ issuer?: string | undefined;
6092
+ }, {
6093
+ type: "credential";
6094
+ credentialType: string;
6095
+ issuer?: string | undefined;
6096
+ }>, z.ZodObject<{
6097
+ type: z.ZodLiteral<"none">;
6098
+ }, "strip", z.ZodTypeAny, {
6099
+ type: "none";
6100
+ }, {
6101
+ type: "none";
6102
+ }>]>>;
5007
6103
  }, "strip", z.ZodTypeAny, {
5008
6104
  requiresDelegation: boolean;
5009
6105
  requiredScopes: string[];
6106
+ authorization?: {
6107
+ type: "oauth";
6108
+ provider: string;
6109
+ requiredScopes?: string[] | undefined;
6110
+ } | {
6111
+ type: "mdl";
6112
+ issuer: string;
6113
+ credentialType?: string | undefined;
6114
+ } | {
6115
+ type: "idv";
6116
+ provider: string;
6117
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6118
+ } | {
6119
+ type: "credential";
6120
+ credentialType: string;
6121
+ issuer?: string | undefined;
6122
+ } | {
6123
+ type: "none";
6124
+ } | undefined;
5010
6125
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
6126
+ oauthProvider?: string | undefined;
5011
6127
  }, {
5012
6128
  requiresDelegation: boolean;
5013
6129
  requiredScopes: string[];
6130
+ authorization?: {
6131
+ type: "oauth";
6132
+ provider: string;
6133
+ requiredScopes?: string[] | undefined;
6134
+ } | {
6135
+ type: "mdl";
6136
+ issuer: string;
6137
+ credentialType?: string | undefined;
6138
+ } | {
6139
+ type: "idv";
6140
+ provider: string;
6141
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6142
+ } | {
6143
+ type: "credential";
6144
+ credentialType: string;
6145
+ issuer?: string | undefined;
6146
+ } | {
6147
+ type: "none";
6148
+ } | undefined;
5014
6149
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
6150
+ oauthProvider?: string | undefined;
5015
6151
  }>>>;
5016
6152
  }, "strip", z.ZodTypeAny, {
5017
6153
  source: "agentshield" | "inline" | "file";
@@ -5022,7 +6158,27 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5022
6158
  fallback?: Record<string, {
5023
6159
  requiresDelegation: boolean;
5024
6160
  requiredScopes: string[];
6161
+ authorization?: {
6162
+ type: "oauth";
6163
+ provider: string;
6164
+ requiredScopes?: string[] | undefined;
6165
+ } | {
6166
+ type: "mdl";
6167
+ issuer: string;
6168
+ credentialType?: string | undefined;
6169
+ } | {
6170
+ type: "idv";
6171
+ provider: string;
6172
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6173
+ } | {
6174
+ type: "credential";
6175
+ credentialType: string;
6176
+ issuer?: string | undefined;
6177
+ } | {
6178
+ type: "none";
6179
+ } | undefined;
5025
6180
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
6181
+ oauthProvider?: string | undefined;
5026
6182
  }> | undefined;
5027
6183
  }, {
5028
6184
  source: "agentshield" | "inline" | "file";
@@ -5033,7 +6189,27 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5033
6189
  fallback?: Record<string, {
5034
6190
  requiresDelegation: boolean;
5035
6191
  requiredScopes: string[];
6192
+ authorization?: {
6193
+ type: "oauth";
6194
+ provider: string;
6195
+ requiredScopes?: string[] | undefined;
6196
+ } | {
6197
+ type: "mdl";
6198
+ issuer: string;
6199
+ credentialType?: string | undefined;
6200
+ } | {
6201
+ type: "idv";
6202
+ provider: string;
6203
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6204
+ } | {
6205
+ type: "credential";
6206
+ credentialType: string;
6207
+ issuer?: string | undefined;
6208
+ } | {
6209
+ type: "none";
6210
+ } | undefined;
5036
6211
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
6212
+ oauthProvider?: string | undefined;
5037
6213
  }> | undefined;
5038
6214
  }>>;
5039
6215
  audit: z.ZodOptional<z.ZodObject<{
@@ -5359,6 +6535,51 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5359
6535
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
5360
6536
  }>>;
5361
6537
  }, "strip", z.ZodTypeAny, {
6538
+ platform?: {
6539
+ type: "cloudflare" | "node" | "vercel";
6540
+ cloudflare?: {
6541
+ workers: {
6542
+ cpuMs: number;
6543
+ memoryMb: number;
6544
+ };
6545
+ kvNamespaces: {
6546
+ name: string;
6547
+ purpose: "cache" | "delegations" | "sessions" | "general";
6548
+ }[];
6549
+ environmentVariables: {
6550
+ value: string;
6551
+ name: string;
6552
+ source: "wrangler.toml" | "secrets" | ".dev.vars";
6553
+ }[];
6554
+ } | undefined;
6555
+ node?: {
6556
+ server: {
6557
+ timeout: number;
6558
+ port: number;
6559
+ host: string;
6560
+ cors: boolean;
6561
+ };
6562
+ storage: {
6563
+ type: "memory" | "redis" | "postgres" | "mongodb";
6564
+ connection?: {
6565
+ port?: number | undefined;
6566
+ host?: string | undefined;
6567
+ database?: string | undefined;
6568
+ } | undefined;
6569
+ };
6570
+ } | undefined;
6571
+ vercel?: {
6572
+ environmentVariables: {
6573
+ value: string;
6574
+ name: string;
6575
+ source: "vercel-dashboard" | ".env.local";
6576
+ }[];
6577
+ edgeRuntime?: {
6578
+ maxDuration?: number | undefined;
6579
+ regions?: string[] | undefined;
6580
+ } | undefined;
6581
+ } | undefined;
6582
+ } | undefined;
5362
6583
  session?: {
5363
6584
  ttlMinutes: number;
5364
6585
  timestampSkewSeconds: number;
@@ -5372,6 +6593,12 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5372
6593
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
5373
6594
  } | undefined;
5374
6595
  delegation?: {
6596
+ authorization: {
6597
+ authorizationUrl?: string | undefined;
6598
+ minReputationScore?: number | undefined;
6599
+ resumeTokenTtl?: number | undefined;
6600
+ requireAuthForUnknown?: boolean | undefined;
6601
+ };
5375
6602
  enabled: boolean;
5376
6603
  enforceStrictly: boolean;
5377
6604
  verifier: {
@@ -5379,12 +6606,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5379
6606
  apiUrl?: string | undefined;
5380
6607
  cacheTtl?: number | undefined;
5381
6608
  };
5382
- authorization: {
5383
- authorizationUrl?: string | undefined;
5384
- minReputationScore?: number | undefined;
5385
- resumeTokenTtl?: number | undefined;
5386
- requireAuthForUnknown?: boolean | undefined;
5387
- };
5388
6609
  } | undefined;
5389
6610
  identity?: {
5390
6611
  environment: "development" | "production";
@@ -5414,7 +6635,27 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5414
6635
  fallback?: Record<string, {
5415
6636
  requiresDelegation: boolean;
5416
6637
  requiredScopes: string[];
6638
+ authorization?: {
6639
+ type: "oauth";
6640
+ provider: string;
6641
+ requiredScopes?: string[] | undefined;
6642
+ } | {
6643
+ type: "mdl";
6644
+ issuer: string;
6645
+ credentialType?: string | undefined;
6646
+ } | {
6647
+ type: "idv";
6648
+ provider: string;
6649
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6650
+ } | {
6651
+ type: "credential";
6652
+ credentialType: string;
6653
+ issuer?: string | undefined;
6654
+ } | {
6655
+ type: "none";
6656
+ } | undefined;
5417
6657
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
6658
+ oauthProvider?: string | undefined;
5418
6659
  }> | undefined;
5419
6660
  } | undefined;
5420
6661
  audit?: {
@@ -5422,12 +6663,13 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5422
6663
  includeProofHashes: boolean;
5423
6664
  includePayloads: boolean;
5424
6665
  } | undefined;
6666
+ }, {
5425
6667
  platform?: {
5426
6668
  type: "cloudflare" | "node" | "vercel";
5427
6669
  cloudflare?: {
5428
6670
  workers: {
5429
- cpuMs: number;
5430
- memoryMb: number;
6671
+ cpuMs?: number | undefined;
6672
+ memoryMb?: number | undefined;
5431
6673
  };
5432
6674
  kvNamespaces: {
5433
6675
  name: string;
@@ -5441,10 +6683,10 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5441
6683
  } | undefined;
5442
6684
  node?: {
5443
6685
  server: {
5444
- timeout: number;
5445
- port: number;
5446
- host: string;
5447
- cors: boolean;
6686
+ timeout?: number | undefined;
6687
+ port?: number | undefined;
6688
+ host?: string | undefined;
6689
+ cors?: boolean | undefined;
5448
6690
  };
5449
6691
  storage: {
5450
6692
  type: "memory" | "redis" | "postgres" | "mongodb";
@@ -5467,7 +6709,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5467
6709
  } | undefined;
5468
6710
  } | undefined;
5469
6711
  } | undefined;
5470
- }, {
5471
6712
  session?: {
5472
6713
  ttlMinutes?: number | undefined;
5473
6714
  timestampSkewSeconds?: number | undefined;
@@ -5481,6 +6722,12 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5481
6722
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
5482
6723
  } | undefined;
5483
6724
  delegation?: {
6725
+ authorization: {
6726
+ authorizationUrl?: string | undefined;
6727
+ minReputationScore?: number | undefined;
6728
+ resumeTokenTtl?: number | undefined;
6729
+ requireAuthForUnknown?: boolean | undefined;
6730
+ };
5484
6731
  enabled: boolean;
5485
6732
  enforceStrictly: boolean;
5486
6733
  verifier: {
@@ -5488,12 +6735,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5488
6735
  apiUrl?: string | undefined;
5489
6736
  cacheTtl?: number | undefined;
5490
6737
  };
5491
- authorization: {
5492
- authorizationUrl?: string | undefined;
5493
- minReputationScore?: number | undefined;
5494
- resumeTokenTtl?: number | undefined;
5495
- requireAuthForUnknown?: boolean | undefined;
5496
- };
5497
6738
  } | undefined;
5498
6739
  identity?: {
5499
6740
  environment: "development" | "production";
@@ -5523,7 +6764,27 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5523
6764
  fallback?: Record<string, {
5524
6765
  requiresDelegation: boolean;
5525
6766
  requiredScopes: string[];
6767
+ authorization?: {
6768
+ type: "oauth";
6769
+ provider: string;
6770
+ requiredScopes?: string[] | undefined;
6771
+ } | {
6772
+ type: "mdl";
6773
+ issuer: string;
6774
+ credentialType?: string | undefined;
6775
+ } | {
6776
+ type: "idv";
6777
+ provider: string;
6778
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6779
+ } | {
6780
+ type: "credential";
6781
+ credentialType: string;
6782
+ issuer?: string | undefined;
6783
+ } | {
6784
+ type: "none";
6785
+ } | undefined;
5526
6786
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
6787
+ oauthProvider?: string | undefined;
5527
6788
  }> | undefined;
5528
6789
  } | undefined;
5529
6790
  audit?: {
@@ -5531,12 +6792,16 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5531
6792
  includeProofHashes: boolean;
5532
6793
  includePayloads: boolean;
5533
6794
  } | undefined;
6795
+ }>;
6796
+ }, "strip", z.ZodTypeAny, {
6797
+ projectId: string;
6798
+ config: {
5534
6799
  platform?: {
5535
6800
  type: "cloudflare" | "node" | "vercel";
5536
6801
  cloudflare?: {
5537
6802
  workers: {
5538
- cpuMs?: number | undefined;
5539
- memoryMb?: number | undefined;
6803
+ cpuMs: number;
6804
+ memoryMb: number;
5540
6805
  };
5541
6806
  kvNamespaces: {
5542
6807
  name: string;
@@ -5550,10 +6815,10 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5550
6815
  } | undefined;
5551
6816
  node?: {
5552
6817
  server: {
5553
- timeout?: number | undefined;
5554
- port?: number | undefined;
5555
- host?: string | undefined;
5556
- cors?: boolean | undefined;
6818
+ timeout: number;
6819
+ port: number;
6820
+ host: string;
6821
+ cors: boolean;
5557
6822
  };
5558
6823
  storage: {
5559
6824
  type: "memory" | "redis" | "postgres" | "mongodb";
@@ -5576,10 +6841,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5576
6841
  } | undefined;
5577
6842
  } | undefined;
5578
6843
  } | undefined;
5579
- }>;
5580
- }, "strip", z.ZodTypeAny, {
5581
- projectId: string;
5582
- config: {
5583
6844
  session?: {
5584
6845
  ttlMinutes: number;
5585
6846
  timestampSkewSeconds: number;
@@ -5593,6 +6854,12 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5593
6854
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
5594
6855
  } | undefined;
5595
6856
  delegation?: {
6857
+ authorization: {
6858
+ authorizationUrl?: string | undefined;
6859
+ minReputationScore?: number | undefined;
6860
+ resumeTokenTtl?: number | undefined;
6861
+ requireAuthForUnknown?: boolean | undefined;
6862
+ };
5596
6863
  enabled: boolean;
5597
6864
  enforceStrictly: boolean;
5598
6865
  verifier: {
@@ -5600,12 +6867,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5600
6867
  apiUrl?: string | undefined;
5601
6868
  cacheTtl?: number | undefined;
5602
6869
  };
5603
- authorization: {
5604
- authorizationUrl?: string | undefined;
5605
- minReputationScore?: number | undefined;
5606
- resumeTokenTtl?: number | undefined;
5607
- requireAuthForUnknown?: boolean | undefined;
5608
- };
5609
6870
  } | undefined;
5610
6871
  identity?: {
5611
6872
  environment: "development" | "production";
@@ -5635,7 +6896,27 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5635
6896
  fallback?: Record<string, {
5636
6897
  requiresDelegation: boolean;
5637
6898
  requiredScopes: string[];
6899
+ authorization?: {
6900
+ type: "oauth";
6901
+ provider: string;
6902
+ requiredScopes?: string[] | undefined;
6903
+ } | {
6904
+ type: "mdl";
6905
+ issuer: string;
6906
+ credentialType?: string | undefined;
6907
+ } | {
6908
+ type: "idv";
6909
+ provider: string;
6910
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
6911
+ } | {
6912
+ type: "credential";
6913
+ credentialType: string;
6914
+ issuer?: string | undefined;
6915
+ } | {
6916
+ type: "none";
6917
+ } | undefined;
5638
6918
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
6919
+ oauthProvider?: string | undefined;
5639
6920
  }> | undefined;
5640
6921
  } | undefined;
5641
6922
  audit?: {
@@ -5643,12 +6924,16 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5643
6924
  includeProofHashes: boolean;
5644
6925
  includePayloads: boolean;
5645
6926
  } | undefined;
6927
+ };
6928
+ }, {
6929
+ projectId: string;
6930
+ config: {
5646
6931
  platform?: {
5647
6932
  type: "cloudflare" | "node" | "vercel";
5648
6933
  cloudflare?: {
5649
6934
  workers: {
5650
- cpuMs: number;
5651
- memoryMb: number;
6935
+ cpuMs?: number | undefined;
6936
+ memoryMb?: number | undefined;
5652
6937
  };
5653
6938
  kvNamespaces: {
5654
6939
  name: string;
@@ -5662,10 +6947,10 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5662
6947
  } | undefined;
5663
6948
  node?: {
5664
6949
  server: {
5665
- timeout: number;
5666
- port: number;
5667
- host: string;
5668
- cors: boolean;
6950
+ timeout?: number | undefined;
6951
+ port?: number | undefined;
6952
+ host?: string | undefined;
6953
+ cors?: boolean | undefined;
5669
6954
  };
5670
6955
  storage: {
5671
6956
  type: "memory" | "redis" | "postgres" | "mongodb";
@@ -5688,10 +6973,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5688
6973
  } | undefined;
5689
6974
  } | undefined;
5690
6975
  } | undefined;
5691
- };
5692
- }, {
5693
- projectId: string;
5694
- config: {
5695
6976
  session?: {
5696
6977
  ttlMinutes?: number | undefined;
5697
6978
  timestampSkewSeconds?: number | undefined;
@@ -5705,6 +6986,12 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5705
6986
  deploymentStatus?: "error" | "active" | "inactive" | undefined;
5706
6987
  } | undefined;
5707
6988
  delegation?: {
6989
+ authorization: {
6990
+ authorizationUrl?: string | undefined;
6991
+ minReputationScore?: number | undefined;
6992
+ resumeTokenTtl?: number | undefined;
6993
+ requireAuthForUnknown?: boolean | undefined;
6994
+ };
5708
6995
  enabled: boolean;
5709
6996
  enforceStrictly: boolean;
5710
6997
  verifier: {
@@ -5712,12 +6999,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5712
6999
  apiUrl?: string | undefined;
5713
7000
  cacheTtl?: number | undefined;
5714
7001
  };
5715
- authorization: {
5716
- authorizationUrl?: string | undefined;
5717
- minReputationScore?: number | undefined;
5718
- resumeTokenTtl?: number | undefined;
5719
- requireAuthForUnknown?: boolean | undefined;
5720
- };
5721
7002
  } | undefined;
5722
7003
  identity?: {
5723
7004
  environment: "development" | "production";
@@ -5747,7 +7028,27 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5747
7028
  fallback?: Record<string, {
5748
7029
  requiresDelegation: boolean;
5749
7030
  requiredScopes: string[];
7031
+ authorization?: {
7032
+ type: "oauth";
7033
+ provider: string;
7034
+ requiredScopes?: string[] | undefined;
7035
+ } | {
7036
+ type: "mdl";
7037
+ issuer: string;
7038
+ credentialType?: string | undefined;
7039
+ } | {
7040
+ type: "idv";
7041
+ provider: string;
7042
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
7043
+ } | {
7044
+ type: "credential";
7045
+ credentialType: string;
7046
+ issuer?: string | undefined;
7047
+ } | {
7048
+ type: "none";
7049
+ } | undefined;
5750
7050
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
7051
+ oauthProvider?: string | undefined;
5751
7052
  }> | undefined;
5752
7053
  } | undefined;
5753
7054
  audit?: {
@@ -5755,51 +7056,6 @@ export declare const validateServerConfigRequestSchema: z.ZodObject<{
5755
7056
  includeProofHashes: boolean;
5756
7057
  includePayloads: boolean;
5757
7058
  } | undefined;
5758
- platform?: {
5759
- type: "cloudflare" | "node" | "vercel";
5760
- cloudflare?: {
5761
- workers: {
5762
- cpuMs?: number | undefined;
5763
- memoryMb?: number | undefined;
5764
- };
5765
- kvNamespaces: {
5766
- name: string;
5767
- purpose: "cache" | "delegations" | "sessions" | "general";
5768
- }[];
5769
- environmentVariables: {
5770
- value: string;
5771
- name: string;
5772
- source: "wrangler.toml" | "secrets" | ".dev.vars";
5773
- }[];
5774
- } | undefined;
5775
- node?: {
5776
- server: {
5777
- timeout?: number | undefined;
5778
- port?: number | undefined;
5779
- host?: string | undefined;
5780
- cors?: boolean | undefined;
5781
- };
5782
- storage: {
5783
- type: "memory" | "redis" | "postgres" | "mongodb";
5784
- connection?: {
5785
- port?: number | undefined;
5786
- host?: string | undefined;
5787
- database?: string | undefined;
5788
- } | undefined;
5789
- };
5790
- } | undefined;
5791
- vercel?: {
5792
- environmentVariables: {
5793
- value: string;
5794
- name: string;
5795
- source: "vercel-dashboard" | ".env.local";
5796
- }[];
5797
- edgeRuntime?: {
5798
- maxDuration?: number | undefined;
5799
- regions?: string[] | undefined;
5800
- } | undefined;
5801
- } | undefined;
5802
- } | undefined;
5803
7059
  };
5804
7060
  }>;
5805
7061
  /**