@kya-os/checkpoint-shared 1.4.0 → 1.5.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/beacon-types/index.d.mts +448 -432
  3. package/dist/beacon-types/index.d.mts.map +1 -0
  4. package/dist/beacon-types/index.d.ts +448 -432
  5. package/dist/beacon-types/index.d.ts.map +1 -0
  6. package/dist/beacon-types/index.js +286 -182
  7. package/dist/beacon-types/index.mjs +284 -180
  8. package/dist/beacon-types/index.mjs.map +1 -0
  9. package/dist/browser-posture-cookie-Dmq9Brf_.d.mts +5 -0
  10. package/dist/browser-posture-cookie-Dmq9Brf_.d.mts.map +1 -0
  11. package/dist/browser-posture-cookie-Dmq9Brf_.d.ts +5 -0
  12. package/dist/browser-posture-cookie-Dmq9Brf_.d.ts.map +1 -0
  13. package/dist/browser-posture-cookie.d.mts +2 -0
  14. package/dist/browser-posture-cookie.d.ts +2 -0
  15. package/dist/browser-posture-cookie.js +1 -0
  16. package/dist/browser-posture-cookie.mjs +2 -0
  17. package/dist/browser-posture-cookie.mjs.map +1 -0
  18. package/dist/browser-posture-report.d.mts +48 -44
  19. package/dist/browser-posture-report.d.mts.map +1 -0
  20. package/dist/browser-posture-report.d.ts +48 -44
  21. package/dist/browser-posture-report.d.ts.map +1 -0
  22. package/dist/browser-posture-report.js +1 -1
  23. package/dist/browser-posture-report.mjs +2 -1
  24. package/dist/browser-posture-report.mjs.map +1 -0
  25. package/dist/browser-posture.d.mts +82 -75
  26. package/dist/browser-posture.d.mts.map +1 -0
  27. package/dist/browser-posture.d.ts +82 -75
  28. package/dist/browser-posture.d.ts.map +1 -0
  29. package/dist/browser-posture.js +167 -18993
  30. package/dist/browser-posture.mjs +166 -18990
  31. package/dist/browser-posture.mjs.map +1 -0
  32. package/dist/browser.d.mts +323 -316
  33. package/dist/browser.d.mts.map +1 -0
  34. package/dist/browser.d.ts +323 -316
  35. package/dist/browser.d.ts.map +1 -0
  36. package/dist/browser.js +1 -1
  37. package/dist/browser.mjs +2 -1
  38. package/dist/browser.mjs.map +1 -0
  39. package/dist/canonical-signer/index.d.mts +38 -33
  40. package/dist/canonical-signer/index.d.mts.map +1 -0
  41. package/dist/canonical-signer/index.d.ts +38 -33
  42. package/dist/canonical-signer/index.d.ts.map +1 -0
  43. package/dist/canonical-signer/index.js +411 -181
  44. package/dist/canonical-signer/index.mjs +383 -175
  45. package/dist/canonical-signer/index.mjs.map +1 -0
  46. package/dist/clearance.d.mts +30 -0
  47. package/dist/clearance.d.mts.map +1 -0
  48. package/dist/clearance.d.ts +30 -0
  49. package/dist/clearance.d.ts.map +1 -0
  50. package/dist/clearance.js +120 -0
  51. package/dist/clearance.mjs +112 -0
  52. package/dist/clearance.mjs.map +1 -0
  53. package/dist/client-ip-1y2iXAYW.js +237 -0
  54. package/dist/client-ip-HOfe6ucV.mjs +215 -0
  55. package/dist/client-ip-HOfe6ucV.mjs.map +1 -0
  56. package/dist/deploy/index.d.mts +339 -339
  57. package/dist/deploy/index.d.mts.map +1 -0
  58. package/dist/deploy/index.d.ts +339 -339
  59. package/dist/deploy/index.d.ts.map +1 -0
  60. package/dist/deploy/index.js +505 -413
  61. package/dist/deploy/index.mjs +504 -410
  62. package/dist/deploy/index.mjs.map +1 -0
  63. package/dist/errors/index.d.mts +101 -101
  64. package/dist/errors/index.d.mts.map +1 -0
  65. package/dist/errors/index.d.ts +101 -101
  66. package/dist/errors/index.d.ts.map +1 -0
  67. package/dist/errors/index.js +341 -314
  68. package/dist/errors/index.mjs +340 -311
  69. package/dist/errors/index.mjs.map +1 -0
  70. package/dist/external-jr_S4iSS.d.mts +4187 -0
  71. package/dist/external-jr_S4iSS.d.mts.map +1 -0
  72. package/dist/external-jr_S4iSS.d.ts +4187 -0
  73. package/dist/external-jr_S4iSS.d.ts.map +1 -0
  74. package/dist/gateway/index.d.mts +138 -132
  75. package/dist/gateway/index.d.mts.map +1 -0
  76. package/dist/gateway/index.d.ts +138 -132
  77. package/dist/gateway/index.d.ts.map +1 -0
  78. package/dist/gateway/index.js +117 -81
  79. package/dist/gateway/index.mjs +116 -78
  80. package/dist/gateway/index.mjs.map +1 -0
  81. package/dist/gateway-client-ip.d.mts +59 -0
  82. package/dist/gateway-client-ip.d.mts.map +1 -0
  83. package/dist/gateway-client-ip.d.ts +59 -0
  84. package/dist/gateway-client-ip.d.ts.map +1 -0
  85. package/dist/gateway-client-ip.js +149 -0
  86. package/dist/gateway-client-ip.mjs +139 -0
  87. package/dist/gateway-client-ip.mjs.map +1 -0
  88. package/dist/index.d.mts +14901 -14246
  89. package/dist/index.d.mts.map +1 -0
  90. package/dist/index.d.ts +14901 -14246
  91. package/dist/index.d.ts.map +1 -0
  92. package/dist/index.js +15180 -31025
  93. package/dist/index.mjs +15065 -30942
  94. package/dist/index.mjs.map +1 -0
  95. package/dist/mcpi/agentshield-api/index.d.mts +45 -44
  96. package/dist/mcpi/agentshield-api/index.d.mts.map +1 -0
  97. package/dist/mcpi/agentshield-api/index.d.ts +45 -44
  98. package/dist/mcpi/agentshield-api/index.d.ts.map +1 -0
  99. package/dist/mcpi/agentshield-api/index.js +0 -2
  100. package/dist/mcpi/agentshield-api/index.mjs +1 -1
  101. package/dist/mcpi/approval-grant/index.d.mts +63 -61
  102. package/dist/mcpi/approval-grant/index.d.mts.map +1 -0
  103. package/dist/mcpi/approval-grant/index.d.ts +63 -61
  104. package/dist/mcpi/approval-grant/index.d.ts.map +1 -0
  105. package/dist/mcpi/approval-grant/index.js +220 -140
  106. package/dist/mcpi/approval-grant/index.mjs +219 -137
  107. package/dist/mcpi/approval-grant/index.mjs.map +1 -0
  108. package/dist/mcpi/dashboard-config/index.d.mts +2323 -2318
  109. package/dist/mcpi/dashboard-config/index.d.mts.map +1 -0
  110. package/dist/mcpi/dashboard-config/index.d.ts +2323 -2318
  111. package/dist/mcpi/dashboard-config/index.d.ts.map +1 -0
  112. package/dist/mcpi/dashboard-config/index.js +605 -458
  113. package/dist/mcpi/dashboard-config/index.mjs +604 -455
  114. package/dist/mcpi/dashboard-config/index.mjs.map +1 -0
  115. package/dist/mcpi/multibase-ed25519.d.mts +10 -8
  116. package/dist/mcpi/multibase-ed25519.d.mts.map +1 -0
  117. package/dist/mcpi/multibase-ed25519.d.ts +10 -8
  118. package/dist/mcpi/multibase-ed25519.d.ts.map +1 -0
  119. package/dist/mcpi/multibase-ed25519.js +182 -106
  120. package/dist/mcpi/multibase-ed25519.mjs +181 -103
  121. package/dist/mcpi/multibase-ed25519.mjs.map +1 -0
  122. package/dist/patterns-CkRVOdtV.js +243 -0
  123. package/dist/patterns-DzkGy_qk.mjs +173 -0
  124. package/dist/patterns-DzkGy_qk.mjs.map +1 -0
  125. package/dist/project-verification-key-C3L5rd8a.js +41 -0
  126. package/dist/project-verification-key-CgSVX9_m.mjs +37 -0
  127. package/dist/project-verification-key-CgSVX9_m.mjs.map +1 -0
  128. package/dist/rolldown-runtime-iY2fYEqi.mjs +19 -0
  129. package/dist/schemas-BmjNLAE7.js +5677 -0
  130. package/dist/schemas-DxY-dk9y.mjs +5511 -0
  131. package/dist/schemas-DxY-dk9y.mjs.map +1 -0
  132. package/dist/signals/index.d.mts +125 -115
  133. package/dist/signals/index.d.mts.map +1 -0
  134. package/dist/signals/index.d.ts +125 -115
  135. package/dist/signals/index.d.ts.map +1 -0
  136. package/dist/signals/index.js +1693 -1536
  137. package/dist/signals/index.mjs +1692 -1533
  138. package/dist/signals/index.mjs.map +1 -0
  139. package/dist/test-fixtures/index.d.mts +124 -119
  140. package/dist/test-fixtures/index.d.mts.map +1 -0
  141. package/dist/test-fixtures/index.d.ts +124 -119
  142. package/dist/test-fixtures/index.d.ts.map +1 -0
  143. package/dist/test-fixtures/index.js +460 -228
  144. package/dist/test-fixtures/index.mjs +459 -225
  145. package/dist/test-fixtures/index.mjs.map +1 -0
  146. package/dist/tool-protection/index.d.mts +343 -343
  147. package/dist/tool-protection/index.d.mts.map +1 -0
  148. package/dist/tool-protection/index.d.ts +343 -343
  149. package/dist/tool-protection/index.d.ts.map +1 -0
  150. package/dist/tool-protection/index.js +366 -285
  151. package/dist/tool-protection/index.mjs +365 -282
  152. package/dist/tool-protection/index.mjs.map +1 -0
  153. package/fixtures/bot-signal-resolution.json +142 -0
  154. package/fixtures/browser-posture-claims.json +421 -0
  155. package/fixtures/browser-posture-headers.json +46 -0
  156. package/fixtures/detection/reason-codes.json +10 -1
  157. package/fixtures/kya-http/challenge.delegation.fetcher-200.json +9 -3
  158. package/fixtures/kya-http/challenge.delegation.full.json +9 -3
  159. package/fixtures/kya-http/challenge.delegation.minimal.json +9 -3
  160. package/fixtures/kya-http/error-codes.json +7 -2
  161. package/package.json +20 -6
@@ -1,2550 +1,2555 @@
1
- import { z } from 'zod';
2
-
1
+ import { z } from "zod";
2
+ //#region src/tool-protection/index.d.ts
3
3
  type AuthorizationRequirement = {
4
- type: 'oauth';
5
- provider: string;
6
- requiredScopes?: string[];
4
+ type: 'oauth';
5
+ provider: string;
6
+ requiredScopes?: string[];
7
7
  } | {
8
- type: 'oauth2';
9
- provider: string;
10
- requiredScopes?: string[];
8
+ type: 'oauth2';
9
+ provider: string;
10
+ requiredScopes?: string[];
11
11
  } | {
12
- type: 'password';
13
- provider: string;
12
+ type: 'password';
13
+ provider: string;
14
14
  } | {
15
- type: 'mdl';
16
- issuer: string;
17
- credentialType?: string;
15
+ type: 'mdl';
16
+ issuer: string;
17
+ credentialType?: string;
18
18
  } | {
19
- type: 'idv';
20
- provider: string;
21
- verificationLevel?: 'basic' | 'enhanced' | 'loa3';
19
+ type: 'idv';
20
+ provider: string;
21
+ verificationLevel?: 'basic' | 'enhanced' | 'loa3';
22
22
  } | {
23
- type: 'verifiable_credential';
24
- credentialType: string;
25
- issuer?: string;
23
+ type: 'verifiable_credential';
24
+ credentialType: string;
25
+ issuer?: string;
26
26
  } | {
27
- type: 'credential';
28
- credentialType: string;
29
- issuer?: string;
27
+ type: 'credential';
28
+ credentialType: string;
29
+ issuer?: string;
30
30
  } | {
31
- type: 'webauthn';
32
- rpId?: string;
33
- userVerification?: 'required' | 'preferred' | 'discouraged';
31
+ type: 'webauthn';
32
+ rpId?: string;
33
+ userVerification?: 'required' | 'preferred' | 'discouraged';
34
34
  } | {
35
- type: 'siwe';
36
- chainId?: number;
37
- domain?: string;
35
+ type: 'siwe';
36
+ chainId?: number;
37
+ domain?: string;
38
38
  } | {
39
- type: 'apikey';
40
- envVarNames: string[];
41
- headerMapping: Record<string, string>;
39
+ type: 'apikey';
40
+ envVarNames: string[];
41
+ headerMapping: Record<string, string>;
42
42
  } | {
43
- type: 'none';
43
+ type: 'none';
44
44
  };
45
45
  interface ToolProtection {
46
- requiresDelegation: boolean;
47
- requiredScopes: string[];
48
- riskLevel?: 'low' | 'medium' | 'high' | 'critical';
49
- oauthProvider?: string;
50
- authorization?: AuthorizationRequirement;
46
+ requiresDelegation: boolean;
47
+ requiredScopes: string[];
48
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
49
+ oauthProvider?: string;
50
+ authorization?: AuthorizationRequirement;
51
51
  }
52
52
  type ToolProtectionMap = Record<string, ToolProtection>;
53
-
53
+ //#endregion
54
+ //#region src/policy/schemas.d.ts
54
55
  declare const PolicyConfigSchema: z.ZodObject<{
55
- version: z.ZodDefault<z.ZodString>;
56
- enabled: z.ZodDefault<z.ZodBoolean>;
57
- defaultAction: z.ZodDefault<z.ZodEnum<{
58
- permit: "permit";
59
- allow: "allow";
60
- block: "block";
61
- redirect: "redirect";
62
- challenge: "challenge";
63
- log: "log";
64
- instruct: "instruct";
56
+ version: z.ZodDefault<z.ZodString>;
57
+ enabled: z.ZodDefault<z.ZodBoolean>;
58
+ defaultAction: z.ZodDefault<z.ZodEnum<{
59
+ permit: "permit";
60
+ allow: "allow";
61
+ block: "block";
62
+ redirect: "redirect";
63
+ challenge: "challenge";
64
+ log: "log";
65
+ instruct: "instruct";
66
+ }>>;
67
+ redirectUrl: z.ZodOptional<z.ZodString>;
68
+ thresholds: z.ZodPrefault<z.ZodObject<{
69
+ confidenceThreshold: z.ZodDefault<z.ZodNumber>;
70
+ confidenceAction: z.ZodDefault<z.ZodEnum<{
71
+ permit: "permit";
72
+ allow: "allow";
73
+ block: "block";
74
+ redirect: "redirect";
75
+ challenge: "challenge";
76
+ log: "log";
77
+ instruct: "instruct";
65
78
  }>>;
66
- redirectUrl: z.ZodOptional<z.ZodString>;
67
- thresholds: z.ZodPrefault<z.ZodObject<{
68
- confidenceThreshold: z.ZodDefault<z.ZodNumber>;
69
- confidenceAction: z.ZodDefault<z.ZodEnum<{
70
- permit: "permit";
71
- allow: "allow";
72
- block: "block";
73
- redirect: "redirect";
74
- challenge: "challenge";
75
- log: "log";
76
- instruct: "instruct";
77
- }>>;
78
- minReputationScore: z.ZodDefault<z.ZodNumber>;
79
- lowReputationAction: z.ZodDefault<z.ZodEnum<{
80
- permit: "permit";
81
- allow: "allow";
82
- block: "block";
83
- redirect: "redirect";
84
- challenge: "challenge";
85
- log: "log";
86
- instruct: "instruct";
87
- }>>;
88
- trustedReputationThreshold: z.ZodDefault<z.ZodNumber>;
89
- trustSignedRequests: z.ZodDefault<z.ZodBoolean>;
79
+ minReputationScore: z.ZodDefault<z.ZodNumber>;
80
+ lowReputationAction: z.ZodDefault<z.ZodEnum<{
81
+ permit: "permit";
82
+ allow: "allow";
83
+ block: "block";
84
+ redirect: "redirect";
85
+ challenge: "challenge";
86
+ log: "log";
87
+ instruct: "instruct";
88
+ }>>;
89
+ trustedReputationThreshold: z.ZodDefault<z.ZodNumber>;
90
+ trustSignedRequests: z.ZodDefault<z.ZodBoolean>;
91
+ }, z.core.$strip>>;
92
+ denyList: z.ZodDefault<z.ZodArray<z.ZodObject<{
93
+ clientDid: z.ZodOptional<z.ZodString>;
94
+ agentDid: z.ZodOptional<z.ZodString>;
95
+ clientName: z.ZodOptional<z.ZodString>;
96
+ agentType: z.ZodOptional<z.ZodString>;
97
+ reason: z.ZodOptional<z.ZodString>;
98
+ blockedAt: z.ZodOptional<z.ZodString>;
99
+ addedBy: z.ZodOptional<z.ZodString>;
100
+ active: z.ZodDefault<z.ZodBoolean>;
101
+ expiresAt: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strip>>>;
103
+ allowList: z.ZodDefault<z.ZodArray<z.ZodObject<{
104
+ clientDid: z.ZodOptional<z.ZodString>;
105
+ agentDid: z.ZodOptional<z.ZodString>;
106
+ clientName: z.ZodOptional<z.ZodString>;
107
+ agentType: z.ZodOptional<z.ZodString>;
108
+ reason: z.ZodOptional<z.ZodString>;
109
+ addedAt: z.ZodOptional<z.ZodString>;
110
+ addedBy: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>>>;
112
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ name: z.ZodString;
115
+ description: z.ZodOptional<z.ZodString>;
116
+ priority: z.ZodDefault<z.ZodNumber>;
117
+ conditions: z.ZodArray<z.ZodObject<{
118
+ field: z.ZodEnum<{
119
+ agentDid: "agentDid";
120
+ riskLevel: "riskLevel";
121
+ path: "path";
122
+ confidence: "confidence";
123
+ clientDid: "clientDid";
124
+ agentType: "agentType";
125
+ agentName: "agentName";
126
+ agentVendor: "agentVendor";
127
+ reputationScore: "reputationScore";
128
+ method: "method";
129
+ origin: "origin";
130
+ userAgent: "userAgent";
131
+ signatureVerified: "signatureVerified";
132
+ isAuthenticated: "isAuthenticated";
133
+ hasValidDelegation: "hasValidDelegation";
134
+ }>;
135
+ operator: z.ZodEnum<{
136
+ equals: "equals";
137
+ notEquals: "notEquals";
138
+ contains: "contains";
139
+ notContains: "notContains";
140
+ startsWith: "startsWith";
141
+ endsWith: "endsWith";
142
+ greaterThan: "greaterThan";
143
+ lessThan: "lessThan";
144
+ greaterThanOrEquals: "greaterThanOrEquals";
145
+ lessThanOrEquals: "lessThanOrEquals";
146
+ matches: "matches";
147
+ in: "in";
148
+ notIn: "notIn";
149
+ }>;
150
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
151
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
90
152
  }, z.core.$strip>>;
91
- denyList: z.ZodDefault<z.ZodArray<z.ZodObject<{
92
- clientDid: z.ZodOptional<z.ZodString>;
93
- agentDid: z.ZodOptional<z.ZodString>;
94
- clientName: z.ZodOptional<z.ZodString>;
95
- agentType: z.ZodOptional<z.ZodString>;
96
- reason: z.ZodOptional<z.ZodString>;
97
- blockedAt: z.ZodOptional<z.ZodString>;
98
- addedBy: z.ZodOptional<z.ZodString>;
99
- active: z.ZodDefault<z.ZodBoolean>;
100
- expiresAt: z.ZodOptional<z.ZodString>;
101
- }, z.core.$strip>>>;
102
- allowList: z.ZodDefault<z.ZodArray<z.ZodObject<{
103
- clientDid: z.ZodOptional<z.ZodString>;
104
- agentDid: z.ZodOptional<z.ZodString>;
105
- clientName: z.ZodOptional<z.ZodString>;
106
- agentType: z.ZodOptional<z.ZodString>;
107
- reason: z.ZodOptional<z.ZodString>;
108
- addedAt: z.ZodOptional<z.ZodString>;
109
- addedBy: z.ZodOptional<z.ZodString>;
110
- }, z.core.$strip>>>;
111
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
112
- id: z.ZodString;
113
- name: z.ZodString;
114
- description: z.ZodOptional<z.ZodString>;
115
- priority: z.ZodDefault<z.ZodNumber>;
116
- conditions: z.ZodArray<z.ZodObject<{
117
- field: z.ZodEnum<{
118
- riskLevel: "riskLevel";
119
- agentType: "agentType";
120
- agentName: "agentName";
121
- agentVendor: "agentVendor";
122
- clientDid: "clientDid";
123
- agentDid: "agentDid";
124
- confidence: "confidence";
125
- reputationScore: "reputationScore";
126
- path: "path";
127
- method: "method";
128
- origin: "origin";
129
- userAgent: "userAgent";
130
- signatureVerified: "signatureVerified";
131
- isAuthenticated: "isAuthenticated";
132
- hasValidDelegation: "hasValidDelegation";
133
- }>;
134
- operator: z.ZodEnum<{
135
- in: "in";
136
- equals: "equals";
137
- notEquals: "notEquals";
138
- contains: "contains";
139
- notContains: "notContains";
140
- startsWith: "startsWith";
141
- endsWith: "endsWith";
142
- greaterThan: "greaterThan";
143
- lessThan: "lessThan";
144
- greaterThanOrEquals: "greaterThanOrEquals";
145
- lessThanOrEquals: "lessThanOrEquals";
146
- matches: "matches";
147
- notIn: "notIn";
148
- }>;
149
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
150
- caseInsensitive: z.ZodOptional<z.ZodBoolean>;
151
- }, z.core.$strip>>;
152
- action: z.ZodEnum<{
153
- permit: "permit";
154
- allow: "allow";
155
- block: "block";
156
- redirect: "redirect";
157
- challenge: "challenge";
158
- log: "log";
159
- instruct: "instruct";
160
- }>;
161
- redirectUrl: z.ZodOptional<z.ZodString>;
162
- message: z.ZodOptional<z.ZodString>;
163
- enabled: z.ZodDefault<z.ZodBoolean>;
164
- metadata: z.ZodOptional<z.ZodObject<{
165
- createdAt: z.ZodOptional<z.ZodString>;
166
- updatedAt: z.ZodOptional<z.ZodString>;
167
- createdBy: z.ZodOptional<z.ZodString>;
168
- }, z.core.$strip>>;
169
- }, z.core.$strip>>>;
170
- excludedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
171
- includedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
+ action: z.ZodEnum<{
154
+ permit: "permit";
155
+ allow: "allow";
156
+ block: "block";
157
+ redirect: "redirect";
158
+ challenge: "challenge";
159
+ log: "log";
160
+ instruct: "instruct";
161
+ }>;
162
+ redirectUrl: z.ZodOptional<z.ZodString>;
163
+ message: z.ZodOptional<z.ZodString>;
164
+ enabled: z.ZodDefault<z.ZodBoolean>;
172
165
  metadata: z.ZodOptional<z.ZodObject<{
173
- lastUpdated: z.ZodOptional<z.ZodString>;
174
- updatedBy: z.ZodOptional<z.ZodString>;
175
- policyId: z.ZodOptional<z.ZodString>;
166
+ createdAt: z.ZodOptional<z.ZodString>;
167
+ updatedAt: z.ZodOptional<z.ZodString>;
168
+ createdBy: z.ZodOptional<z.ZodString>;
176
169
  }, z.core.$strip>>;
177
- policySourceText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
- policyLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
- policySourceHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
- engineEnforcementEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
181
- trustedDelegationRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
170
+ }, z.core.$strip>>>;
171
+ excludedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
172
+ includedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
+ metadata: z.ZodOptional<z.ZodObject<{
174
+ lastUpdated: z.ZodOptional<z.ZodString>;
175
+ updatedBy: z.ZodOptional<z.ZodString>;
176
+ policyId: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>>;
178
+ policySourceText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
+ policyLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ policySourceHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ engineEnforcementEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
182
+ trustedDelegationRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
183
  }, z.core.$strip>;
183
184
  type PolicyConfig = z.infer<typeof PolicyConfigSchema>;
184
-
185
+ //#endregion
186
+ //#region src/mcpi/dashboard-config/types.d.ts
185
187
  type DelegationVerifierType = 'agentshield' | 'kta' | 'memory' | 'cloudflare-kv' | 'redis' | 'dynamodb' | 'custom';
186
188
  interface MCPIServerConfig {
187
- identity: {
188
- agentDid?: string;
189
- serverDid: string;
190
- environment: 'development' | 'production';
191
- storageLocation: 'cloudflare-kv' | 'file-system' | 'env-vars';
192
- };
193
- proofing: {
194
- enabled: boolean;
195
- destinations: Array<{
196
- type: 'agentshield' | 'kta' | 'custom';
197
- apiUrl: string;
198
- apiKey?: string;
199
- }>;
200
- batchQueue: {
201
- maxBatchSize: number;
202
- flushIntervalMs: number;
203
- maxRetries: number;
204
- };
189
+ identity: {
190
+ agentDid?: string;
191
+ serverDid: string;
192
+ environment: 'development' | 'production';
193
+ storageLocation: 'cloudflare-kv' | 'file-system' | 'env-vars';
194
+ };
195
+ proofing: {
196
+ enabled: boolean;
197
+ destinations: Array<{
198
+ type: 'agentshield' | 'kta' | 'custom';
199
+ apiUrl: string;
200
+ apiKey?: string;
201
+ }>;
202
+ batchQueue: {
203
+ maxBatchSize: number;
204
+ flushIntervalMs: number;
205
+ maxRetries: number;
205
206
  };
206
- delegation: {
207
- enabled: boolean;
208
- enforceStrictly: boolean;
209
- verifier: {
210
- type: DelegationVerifierType;
211
- apiUrl?: string;
212
- cacheTtl?: number;
213
- };
214
- authorization: {
215
- authorizationUrl?: string;
216
- minReputationScore?: number;
217
- resumeTokenTtl?: number;
218
- requireAuthForUnknown?: boolean;
219
- };
207
+ };
208
+ delegation: {
209
+ enabled: boolean;
210
+ enforceStrictly: boolean;
211
+ verifier: {
212
+ type: DelegationVerifierType;
213
+ apiUrl?: string;
214
+ cacheTtl?: number;
220
215
  };
221
- toolProtection: {
222
- source: 'agentshield' | 'inline' | 'file';
223
- agentShield?: {
224
- apiUrl: string;
225
- cacheTtl: number;
226
- };
227
- fallback?: ToolProtectionMap;
216
+ authorization: {
217
+ authorizationUrl?: string;
218
+ minReputationScore?: number;
219
+ resumeTokenTtl?: number;
220
+ requireAuthForUnknown?: boolean;
228
221
  };
229
- audit: {
230
- enabled: boolean;
231
- includeProofHashes: boolean;
232
- includePayloads: boolean;
222
+ };
223
+ toolProtection: {
224
+ source: 'agentshield' | 'inline' | 'file';
225
+ agentShield?: {
226
+ apiUrl: string;
227
+ cacheTtl: number;
233
228
  };
234
- session: {
235
- timestampSkewSeconds: number;
236
- ttlMinutes: number;
237
- absoluteLifetime?: number;
229
+ fallback?: ToolProtectionMap;
230
+ };
231
+ audit: {
232
+ enabled: boolean;
233
+ includeProofHashes: boolean;
234
+ includePayloads: boolean;
235
+ };
236
+ session: {
237
+ timestampSkewSeconds: number;
238
+ ttlMinutes: number;
239
+ absoluteLifetime?: number;
240
+ };
241
+ platform: {
242
+ type: 'cloudflare' | 'node' | 'vercel';
243
+ cloudflare?: {
244
+ workers: {
245
+ cpuMs: number;
246
+ memoryMb: number;
247
+ };
248
+ kvNamespaces: Array<{
249
+ name: string;
250
+ purpose: 'sessions' | 'delegations' | 'cache' | 'general';
251
+ }>;
252
+ environmentVariables: Array<{
253
+ name: string;
254
+ value: string;
255
+ source: 'wrangler.toml' | 'secrets' | '.dev.vars';
256
+ }>;
238
257
  };
239
- platform: {
240
- type: 'cloudflare' | 'node' | 'vercel';
241
- cloudflare?: {
242
- workers: {
243
- cpuMs: number;
244
- memoryMb: number;
245
- };
246
- kvNamespaces: Array<{
247
- name: string;
248
- purpose: 'sessions' | 'delegations' | 'cache' | 'general';
249
- }>;
250
- environmentVariables: Array<{
251
- name: string;
252
- value: string;
253
- source: 'wrangler.toml' | 'secrets' | '.dev.vars';
254
- }>;
255
- };
256
- node?: {
257
- server: {
258
- port: number;
259
- host: string;
260
- cors: boolean;
261
- timeout: number;
262
- };
263
- storage: {
264
- type: 'memory' | 'redis' | 'postgres' | 'mongodb';
265
- connection?: {
266
- host?: string;
267
- port?: number;
268
- database?: string;
269
- };
270
- };
271
- };
272
- vercel?: {
273
- environmentVariables: Array<{
274
- name: string;
275
- value: string;
276
- source: 'vercel-dashboard' | '.env.local';
277
- }>;
278
- edgeRuntime?: {
279
- maxDuration?: number;
280
- regions?: string[];
281
- };
258
+ node?: {
259
+ server: {
260
+ port: number;
261
+ host: string;
262
+ cors: boolean;
263
+ timeout: number;
264
+ };
265
+ storage: {
266
+ type: 'memory' | 'redis' | 'postgres' | 'mongodb';
267
+ connection?: {
268
+ host?: string;
269
+ port?: number;
270
+ database?: string;
282
271
  };
272
+ };
283
273
  };
284
- policy?: PolicyConfig;
285
- metadata: {
286
- version: string;
287
- lastUpdated: string;
288
- source: 'dashboard' | 'code' | 'mixed';
289
- serverUrl?: string;
290
- deploymentStatus?: 'active' | 'inactive' | 'error';
274
+ vercel?: {
275
+ environmentVariables: Array<{
276
+ name: string;
277
+ value: string;
278
+ source: 'vercel-dashboard' | '.env.local';
279
+ }>;
280
+ edgeRuntime?: {
281
+ maxDuration?: number;
282
+ regions?: string[];
283
+ };
291
284
  };
285
+ };
286
+ policy?: PolicyConfig;
287
+ metadata: {
288
+ version: string;
289
+ lastUpdated: string;
290
+ source: 'dashboard' | 'code' | 'mixed';
291
+ serverUrl?: string;
292
+ deploymentStatus?: 'active' | 'inactive' | 'error';
293
+ };
292
294
  }
293
295
  interface MergedMCPIServerConfig extends MCPIServerConfig {
294
- toolProtection: MCPIServerConfig['toolProtection'] & {
295
- tools: Record<string, ToolProtection>;
296
- };
297
- policy: PolicyConfig;
296
+ toolProtection: MCPIServerConfig['toolProtection'] & {
297
+ tools: Record<string, ToolProtection>;
298
+ };
299
+ policy: PolicyConfig;
298
300
  }
299
301
  interface GetServerConfigRequest {
300
- projectId: string;
302
+ projectId: string;
301
303
  }
302
304
  interface GetServerConfigResponse {
303
- success: boolean;
304
- data: {
305
- config: MCPIServerConfig;
306
- };
307
- metadata?: {
308
- requestId?: string;
309
- timestamp?: string;
310
- };
305
+ success: boolean;
306
+ data: {
307
+ config: MCPIServerConfig;
308
+ };
309
+ metadata?: {
310
+ requestId?: string;
311
+ timestamp?: string;
312
+ };
311
313
  }
312
314
  interface GetMergedServerConfigResponse {
313
- success: boolean;
314
- data: {
315
- config: MergedMCPIServerConfig;
316
- toolProtections?: ToolProtectionMap;
317
- };
318
- metadata?: {
319
- requestId?: string;
320
- timestamp?: string;
321
- cachedUntil?: string;
322
- };
315
+ success: boolean;
316
+ data: {
317
+ config: MergedMCPIServerConfig;
318
+ toolProtections?: ToolProtectionMap;
319
+ };
320
+ metadata?: {
321
+ requestId?: string;
322
+ timestamp?: string;
323
+ cachedUntil?: string;
324
+ };
323
325
  }
324
326
  interface UpdateServerConfigRequest {
325
- projectId: string;
326
- config: Partial<MCPIServerConfig>;
327
+ projectId: string;
328
+ config: Partial<MCPIServerConfig>;
327
329
  }
328
330
  interface UpdateServerConfigResponse {
329
- success: boolean;
330
- data: {
331
- config: MCPIServerConfig;
332
- changes: Array<{
333
- path: string;
334
- oldValue: unknown;
335
- newValue: unknown;
336
- }>;
337
- };
338
- metadata?: {
339
- requestId?: string;
340
- timestamp?: string;
341
- };
331
+ success: boolean;
332
+ data: {
333
+ config: MCPIServerConfig;
334
+ changes: Array<{
335
+ path: string;
336
+ oldValue: unknown;
337
+ newValue: unknown;
338
+ }>;
339
+ };
340
+ metadata?: {
341
+ requestId?: string;
342
+ timestamp?: string;
343
+ };
342
344
  }
343
345
  interface ValidateServerConfigRequest {
344
- projectId: string;
345
- config: Partial<MCPIServerConfig>;
346
+ projectId: string;
347
+ config: Partial<MCPIServerConfig>;
346
348
  }
347
349
  interface ValidateServerConfigResponse {
348
- success: boolean;
349
- data: {
350
- valid: boolean;
351
- errors?: Array<{
352
- path: string;
353
- message: string;
354
- code: string;
355
- }>;
356
- warnings?: Array<{
357
- path: string;
358
- message: string;
359
- }>;
360
- };
361
- metadata?: {
362
- requestId?: string;
363
- timestamp?: string;
364
- };
350
+ success: boolean;
351
+ data: {
352
+ valid: boolean;
353
+ errors?: Array<{
354
+ path: string;
355
+ message: string;
356
+ code: string;
357
+ }>;
358
+ warnings?: Array<{
359
+ path: string;
360
+ message: string;
361
+ }>;
362
+ };
363
+ metadata?: {
364
+ requestId?: string;
365
+ timestamp?: string;
366
+ };
365
367
  }
366
-
367
- declare const identityConfigSchema: z.ZodObject<{
368
+ //#endregion
369
+ //#region src/mcpi/dashboard-config/schemas.d.ts
370
+ export declare const identityConfigSchema: z.ZodObject<{
371
+ agentDid: z.ZodOptional<z.ZodString>;
372
+ serverDid: z.ZodString;
373
+ environment: z.ZodEnum<{
374
+ development: "development";
375
+ production: "production";
376
+ }>;
377
+ storageLocation: z.ZodEnum<{
378
+ "cloudflare-kv": "cloudflare-kv";
379
+ "file-system": "file-system";
380
+ "env-vars": "env-vars";
381
+ }>;
382
+ }, z.core.$strip>;
383
+ export declare const proofingConfigSchema: z.ZodObject<{
384
+ enabled: z.ZodBoolean;
385
+ destinations: z.ZodArray<z.ZodObject<{
386
+ type: z.ZodEnum<{
387
+ custom: "custom";
388
+ agentshield: "agentshield";
389
+ kta: "kta";
390
+ }>;
391
+ apiUrl: z.ZodString;
392
+ apiKey: z.ZodOptional<z.ZodString>;
393
+ }, z.core.$strip>>;
394
+ batchQueue: z.ZodObject<{
395
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
396
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
397
+ maxRetries: z.ZodDefault<z.ZodNumber>;
398
+ }, z.core.$strip>;
399
+ }, z.core.$strip>;
400
+ export declare const delegationConfigSchema: z.ZodObject<{
401
+ enabled: z.ZodBoolean;
402
+ enforceStrictly: z.ZodBoolean;
403
+ verifier: z.ZodObject<{
404
+ type: z.ZodEnum<{
405
+ "cloudflare-kv": "cloudflare-kv";
406
+ custom: "custom";
407
+ agentshield: "agentshield";
408
+ kta: "kta";
409
+ memory: "memory";
410
+ redis: "redis";
411
+ dynamodb: "dynamodb";
412
+ }>;
413
+ apiUrl: z.ZodOptional<z.ZodString>;
414
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
415
+ }, z.core.$strip>;
416
+ authorization: z.ZodObject<{
417
+ authorizationUrl: z.ZodOptional<z.ZodString>;
418
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
419
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
420
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
421
+ }, z.core.$strip>;
422
+ }, z.core.$strip>;
423
+ export declare const toolProtectionConfigSchema: z.ZodObject<{
424
+ source: z.ZodEnum<{
425
+ file: "file";
426
+ agentshield: "agentshield";
427
+ inline: "inline";
428
+ }>;
429
+ agentShield: z.ZodOptional<z.ZodObject<{
430
+ apiUrl: z.ZodString;
431
+ cacheTtl: z.ZodNumber;
432
+ }, z.core.$strip>>;
433
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
434
+ requiresDelegation: z.ZodBoolean;
435
+ requiredScopes: z.ZodArray<z.ZodString>;
436
+ riskLevel: z.ZodOptional<z.ZodEnum<{
437
+ low: "low";
438
+ medium: "medium";
439
+ high: "high";
440
+ critical: "critical";
441
+ }>>;
442
+ oauthProvider: z.ZodOptional<z.ZodString>;
443
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
444
+ type: z.ZodLiteral<"oauth">;
445
+ provider: z.ZodString;
446
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
447
+ }, z.core.$strip>, z.ZodObject<{
448
+ type: z.ZodLiteral<"oauth2">;
449
+ provider: z.ZodString;
450
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ type: z.ZodLiteral<"password">;
453
+ provider: z.ZodString;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ type: z.ZodLiteral<"mdl">;
456
+ issuer: z.ZodString;
457
+ credentialType: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ type: z.ZodLiteral<"idv">;
460
+ provider: z.ZodString;
461
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
462
+ basic: "basic";
463
+ enhanced: "enhanced";
464
+ loa3: "loa3";
465
+ }>>;
466
+ }, z.core.$strip>, z.ZodObject<{
467
+ type: z.ZodLiteral<"verifiable_credential">;
468
+ credentialType: z.ZodString;
469
+ issuer: z.ZodOptional<z.ZodString>;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ type: z.ZodLiteral<"credential">;
472
+ credentialType: z.ZodString;
473
+ issuer: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ type: z.ZodLiteral<"webauthn">;
476
+ rpId: z.ZodOptional<z.ZodString>;
477
+ userVerification: z.ZodOptional<z.ZodEnum<{
478
+ required: "required";
479
+ preferred: "preferred";
480
+ discouraged: "discouraged";
481
+ }>>;
482
+ }, z.core.$strip>, z.ZodObject<{
483
+ type: z.ZodLiteral<"siwe">;
484
+ chainId: z.ZodOptional<z.ZodNumber>;
485
+ domain: z.ZodOptional<z.ZodString>;
486
+ }, z.core.$strip>, z.ZodObject<{
487
+ type: z.ZodLiteral<"apikey">;
488
+ envVarNames: z.ZodArray<z.ZodString>;
489
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
490
+ }, z.core.$strip>, z.ZodObject<{
491
+ type: z.ZodLiteral<"none">;
492
+ }, z.core.$strip>], "type">>;
493
+ }, z.core.$strip>>>;
494
+ }, z.core.$strip>;
495
+ export declare const mergedToolProtectionConfigSchema: z.ZodObject<{
496
+ source: z.ZodEnum<{
497
+ file: "file";
498
+ agentshield: "agentshield";
499
+ inline: "inline";
500
+ }>;
501
+ agentShield: z.ZodOptional<z.ZodObject<{
502
+ apiUrl: z.ZodString;
503
+ cacheTtl: z.ZodNumber;
504
+ }, z.core.$strip>>;
505
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
506
+ requiresDelegation: z.ZodBoolean;
507
+ requiredScopes: z.ZodArray<z.ZodString>;
508
+ riskLevel: z.ZodOptional<z.ZodEnum<{
509
+ low: "low";
510
+ medium: "medium";
511
+ high: "high";
512
+ critical: "critical";
513
+ }>>;
514
+ oauthProvider: z.ZodOptional<z.ZodString>;
515
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
516
+ type: z.ZodLiteral<"oauth">;
517
+ provider: z.ZodString;
518
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
519
+ }, z.core.$strip>, z.ZodObject<{
520
+ type: z.ZodLiteral<"oauth2">;
521
+ provider: z.ZodString;
522
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
523
+ }, z.core.$strip>, z.ZodObject<{
524
+ type: z.ZodLiteral<"password">;
525
+ provider: z.ZodString;
526
+ }, z.core.$strip>, z.ZodObject<{
527
+ type: z.ZodLiteral<"mdl">;
528
+ issuer: z.ZodString;
529
+ credentialType: z.ZodOptional<z.ZodString>;
530
+ }, z.core.$strip>, z.ZodObject<{
531
+ type: z.ZodLiteral<"idv">;
532
+ provider: z.ZodString;
533
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
534
+ basic: "basic";
535
+ enhanced: "enhanced";
536
+ loa3: "loa3";
537
+ }>>;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ type: z.ZodLiteral<"verifiable_credential">;
540
+ credentialType: z.ZodString;
541
+ issuer: z.ZodOptional<z.ZodString>;
542
+ }, z.core.$strip>, z.ZodObject<{
543
+ type: z.ZodLiteral<"credential">;
544
+ credentialType: z.ZodString;
545
+ issuer: z.ZodOptional<z.ZodString>;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ type: z.ZodLiteral<"webauthn">;
548
+ rpId: z.ZodOptional<z.ZodString>;
549
+ userVerification: z.ZodOptional<z.ZodEnum<{
550
+ required: "required";
551
+ preferred: "preferred";
552
+ discouraged: "discouraged";
553
+ }>>;
554
+ }, z.core.$strip>, z.ZodObject<{
555
+ type: z.ZodLiteral<"siwe">;
556
+ chainId: z.ZodOptional<z.ZodNumber>;
557
+ domain: z.ZodOptional<z.ZodString>;
558
+ }, z.core.$strip>, z.ZodObject<{
559
+ type: z.ZodLiteral<"apikey">;
560
+ envVarNames: z.ZodArray<z.ZodString>;
561
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
562
+ }, z.core.$strip>, z.ZodObject<{
563
+ type: z.ZodLiteral<"none">;
564
+ }, z.core.$strip>], "type">>;
565
+ }, z.core.$strip>>>;
566
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
567
+ requiresDelegation: z.ZodBoolean;
568
+ requiredScopes: z.ZodArray<z.ZodString>;
569
+ riskLevel: z.ZodOptional<z.ZodEnum<{
570
+ low: "low";
571
+ medium: "medium";
572
+ high: "high";
573
+ critical: "critical";
574
+ }>>;
575
+ oauthProvider: z.ZodOptional<z.ZodString>;
576
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
577
+ type: z.ZodLiteral<"oauth">;
578
+ provider: z.ZodString;
579
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
580
+ }, z.core.$strip>, z.ZodObject<{
581
+ type: z.ZodLiteral<"oauth2">;
582
+ provider: z.ZodString;
583
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ type: z.ZodLiteral<"password">;
586
+ provider: z.ZodString;
587
+ }, z.core.$strip>, z.ZodObject<{
588
+ type: z.ZodLiteral<"mdl">;
589
+ issuer: z.ZodString;
590
+ credentialType: z.ZodOptional<z.ZodString>;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ type: z.ZodLiteral<"idv">;
593
+ provider: z.ZodString;
594
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
595
+ basic: "basic";
596
+ enhanced: "enhanced";
597
+ loa3: "loa3";
598
+ }>>;
599
+ }, z.core.$strip>, z.ZodObject<{
600
+ type: z.ZodLiteral<"verifiable_credential">;
601
+ credentialType: z.ZodString;
602
+ issuer: z.ZodOptional<z.ZodString>;
603
+ }, z.core.$strip>, z.ZodObject<{
604
+ type: z.ZodLiteral<"credential">;
605
+ credentialType: z.ZodString;
606
+ issuer: z.ZodOptional<z.ZodString>;
607
+ }, z.core.$strip>, z.ZodObject<{
608
+ type: z.ZodLiteral<"webauthn">;
609
+ rpId: z.ZodOptional<z.ZodString>;
610
+ userVerification: z.ZodOptional<z.ZodEnum<{
611
+ required: "required";
612
+ preferred: "preferred";
613
+ discouraged: "discouraged";
614
+ }>>;
615
+ }, z.core.$strip>, z.ZodObject<{
616
+ type: z.ZodLiteral<"siwe">;
617
+ chainId: z.ZodOptional<z.ZodNumber>;
618
+ domain: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$strip>, z.ZodObject<{
620
+ type: z.ZodLiteral<"apikey">;
621
+ envVarNames: z.ZodArray<z.ZodString>;
622
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
623
+ }, z.core.$strip>, z.ZodObject<{
624
+ type: z.ZodLiteral<"none">;
625
+ }, z.core.$strip>], "type">>;
626
+ }, z.core.$strip>>;
627
+ }, z.core.$strip>;
628
+ export declare const auditConfigSchema: z.ZodObject<{
629
+ enabled: z.ZodBoolean;
630
+ includeProofHashes: z.ZodBoolean;
631
+ includePayloads: z.ZodBoolean;
632
+ }, z.core.$strip>;
633
+ export declare const sessionConfigSchema: z.ZodObject<{
634
+ timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
635
+ ttlMinutes: z.ZodDefault<z.ZodNumber>;
636
+ absoluteLifetime: z.ZodOptional<z.ZodNumber>;
637
+ }, z.core.$strip>;
638
+ export declare const cloudflarePlatformConfigSchema: z.ZodObject<{
639
+ workers: z.ZodObject<{
640
+ cpuMs: z.ZodDefault<z.ZodNumber>;
641
+ memoryMb: z.ZodDefault<z.ZodNumber>;
642
+ }, z.core.$strip>;
643
+ kvNamespaces: z.ZodArray<z.ZodObject<{
644
+ name: z.ZodString;
645
+ purpose: z.ZodEnum<{
646
+ sessions: "sessions";
647
+ delegations: "delegations";
648
+ cache: "cache";
649
+ general: "general";
650
+ }>;
651
+ }, z.core.$strip>>;
652
+ environmentVariables: z.ZodArray<z.ZodObject<{
653
+ name: z.ZodString;
654
+ value: z.ZodString;
655
+ source: z.ZodEnum<{
656
+ "wrangler.toml": "wrangler.toml";
657
+ secrets: "secrets";
658
+ ".dev.vars": ".dev.vars";
659
+ }>;
660
+ }, z.core.$strip>>;
661
+ }, z.core.$strip>;
662
+ export declare const nodePlatformConfigSchema: z.ZodObject<{
663
+ server: z.ZodObject<{
664
+ port: z.ZodDefault<z.ZodNumber>;
665
+ host: z.ZodDefault<z.ZodString>;
666
+ cors: z.ZodDefault<z.ZodBoolean>;
667
+ timeout: z.ZodDefault<z.ZodNumber>;
668
+ }, z.core.$strip>;
669
+ storage: z.ZodObject<{
670
+ type: z.ZodEnum<{
671
+ memory: "memory";
672
+ redis: "redis";
673
+ postgres: "postgres";
674
+ mongodb: "mongodb";
675
+ }>;
676
+ connection: z.ZodOptional<z.ZodObject<{
677
+ host: z.ZodOptional<z.ZodString>;
678
+ port: z.ZodOptional<z.ZodNumber>;
679
+ database: z.ZodOptional<z.ZodString>;
680
+ }, z.core.$strip>>;
681
+ }, z.core.$strip>;
682
+ }, z.core.$strip>;
683
+ export declare const vercelPlatformConfigSchema: z.ZodObject<{
684
+ environmentVariables: z.ZodArray<z.ZodObject<{
685
+ name: z.ZodString;
686
+ value: z.ZodString;
687
+ source: z.ZodEnum<{
688
+ "vercel-dashboard": "vercel-dashboard";
689
+ ".env.local": ".env.local";
690
+ }>;
691
+ }, z.core.$strip>>;
692
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
693
+ maxDuration: z.ZodOptional<z.ZodNumber>;
694
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
695
+ }, z.core.$strip>>;
696
+ }, z.core.$strip>;
697
+ export declare const platformConfigSchema: z.ZodObject<{
698
+ type: z.ZodEnum<{
699
+ cloudflare: "cloudflare";
700
+ node: "node";
701
+ vercel: "vercel";
702
+ }>;
703
+ cloudflare: z.ZodOptional<z.ZodObject<{
704
+ workers: z.ZodObject<{
705
+ cpuMs: z.ZodDefault<z.ZodNumber>;
706
+ memoryMb: z.ZodDefault<z.ZodNumber>;
707
+ }, z.core.$strip>;
708
+ kvNamespaces: z.ZodArray<z.ZodObject<{
709
+ name: z.ZodString;
710
+ purpose: z.ZodEnum<{
711
+ sessions: "sessions";
712
+ delegations: "delegations";
713
+ cache: "cache";
714
+ general: "general";
715
+ }>;
716
+ }, z.core.$strip>>;
717
+ environmentVariables: z.ZodArray<z.ZodObject<{
718
+ name: z.ZodString;
719
+ value: z.ZodString;
720
+ source: z.ZodEnum<{
721
+ "wrangler.toml": "wrangler.toml";
722
+ secrets: "secrets";
723
+ ".dev.vars": ".dev.vars";
724
+ }>;
725
+ }, z.core.$strip>>;
726
+ }, z.core.$strip>>;
727
+ node: z.ZodOptional<z.ZodObject<{
728
+ server: z.ZodObject<{
729
+ port: z.ZodDefault<z.ZodNumber>;
730
+ host: z.ZodDefault<z.ZodString>;
731
+ cors: z.ZodDefault<z.ZodBoolean>;
732
+ timeout: z.ZodDefault<z.ZodNumber>;
733
+ }, z.core.$strip>;
734
+ storage: z.ZodObject<{
735
+ type: z.ZodEnum<{
736
+ memory: "memory";
737
+ redis: "redis";
738
+ postgres: "postgres";
739
+ mongodb: "mongodb";
740
+ }>;
741
+ connection: z.ZodOptional<z.ZodObject<{
742
+ host: z.ZodOptional<z.ZodString>;
743
+ port: z.ZodOptional<z.ZodNumber>;
744
+ database: z.ZodOptional<z.ZodString>;
745
+ }, z.core.$strip>>;
746
+ }, z.core.$strip>;
747
+ }, z.core.$strip>>;
748
+ vercel: z.ZodOptional<z.ZodObject<{
749
+ environmentVariables: z.ZodArray<z.ZodObject<{
750
+ name: z.ZodString;
751
+ value: z.ZodString;
752
+ source: z.ZodEnum<{
753
+ "vercel-dashboard": "vercel-dashboard";
754
+ ".env.local": ".env.local";
755
+ }>;
756
+ }, z.core.$strip>>;
757
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
758
+ maxDuration: z.ZodOptional<z.ZodNumber>;
759
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
760
+ }, z.core.$strip>>;
761
+ }, z.core.$strip>>;
762
+ }, z.core.$strip>;
763
+ export declare const configMetadataSchema: z.ZodObject<{
764
+ version: z.ZodString;
765
+ lastUpdated: z.ZodString;
766
+ source: z.ZodEnum<{
767
+ dashboard: "dashboard";
768
+ code: "code";
769
+ mixed: "mixed";
770
+ }>;
771
+ serverUrl: z.ZodOptional<z.ZodString>;
772
+ deploymentStatus: z.ZodOptional<z.ZodEnum<{
773
+ error: "error";
774
+ active: "active";
775
+ inactive: "inactive";
776
+ }>>;
777
+ }, z.core.$strip>;
778
+ export declare const mcpIServerConfigSchema: z.ZodObject<{
779
+ identity: z.ZodObject<{
368
780
  agentDid: z.ZodOptional<z.ZodString>;
369
781
  serverDid: z.ZodString;
370
782
  environment: z.ZodEnum<{
371
- development: "development";
372
- production: "production";
783
+ development: "development";
784
+ production: "production";
373
785
  }>;
374
786
  storageLocation: z.ZodEnum<{
375
- "cloudflare-kv": "cloudflare-kv";
376
- "file-system": "file-system";
377
- "env-vars": "env-vars";
787
+ "cloudflare-kv": "cloudflare-kv";
788
+ "file-system": "file-system";
789
+ "env-vars": "env-vars";
378
790
  }>;
379
- }, z.core.$strip>;
380
- declare const proofingConfigSchema: z.ZodObject<{
791
+ }, z.core.$strip>;
792
+ proofing: z.ZodObject<{
381
793
  enabled: z.ZodBoolean;
382
794
  destinations: z.ZodArray<z.ZodObject<{
383
- type: z.ZodEnum<{
384
- custom: "custom";
385
- agentshield: "agentshield";
386
- kta: "kta";
387
- }>;
388
- apiUrl: z.ZodString;
389
- apiKey: z.ZodOptional<z.ZodString>;
795
+ type: z.ZodEnum<{
796
+ custom: "custom";
797
+ agentshield: "agentshield";
798
+ kta: "kta";
799
+ }>;
800
+ apiUrl: z.ZodString;
801
+ apiKey: z.ZodOptional<z.ZodString>;
390
802
  }, z.core.$strip>>;
391
803
  batchQueue: z.ZodObject<{
392
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
393
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
394
- maxRetries: z.ZodDefault<z.ZodNumber>;
804
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
805
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
806
+ maxRetries: z.ZodDefault<z.ZodNumber>;
395
807
  }, z.core.$strip>;
396
- }, z.core.$strip>;
397
- declare const delegationConfigSchema: z.ZodObject<{
808
+ }, z.core.$strip>;
809
+ delegation: z.ZodObject<{
398
810
  enabled: z.ZodBoolean;
399
811
  enforceStrictly: z.ZodBoolean;
400
812
  verifier: z.ZodObject<{
401
- type: z.ZodEnum<{
402
- custom: "custom";
403
- agentshield: "agentshield";
404
- kta: "kta";
405
- memory: "memory";
406
- "cloudflare-kv": "cloudflare-kv";
407
- redis: "redis";
408
- dynamodb: "dynamodb";
409
- }>;
410
- apiUrl: z.ZodOptional<z.ZodString>;
411
- cacheTtl: z.ZodOptional<z.ZodNumber>;
813
+ type: z.ZodEnum<{
814
+ "cloudflare-kv": "cloudflare-kv";
815
+ custom: "custom";
816
+ agentshield: "agentshield";
817
+ kta: "kta";
818
+ memory: "memory";
819
+ redis: "redis";
820
+ dynamodb: "dynamodb";
821
+ }>;
822
+ apiUrl: z.ZodOptional<z.ZodString>;
823
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
412
824
  }, z.core.$strip>;
413
825
  authorization: z.ZodObject<{
414
- authorizationUrl: z.ZodOptional<z.ZodString>;
415
- minReputationScore: z.ZodOptional<z.ZodNumber>;
416
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
417
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
826
+ authorizationUrl: z.ZodOptional<z.ZodString>;
827
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
828
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
829
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
418
830
  }, z.core.$strip>;
419
- }, z.core.$strip>;
420
- declare const toolProtectionConfigSchema: z.ZodObject<{
831
+ }, z.core.$strip>;
832
+ toolProtection: z.ZodObject<{
421
833
  source: z.ZodEnum<{
422
- file: "file";
423
- agentshield: "agentshield";
424
- inline: "inline";
834
+ file: "file";
835
+ agentshield: "agentshield";
836
+ inline: "inline";
425
837
  }>;
426
838
  agentShield: z.ZodOptional<z.ZodObject<{
427
- apiUrl: z.ZodString;
428
- cacheTtl: z.ZodNumber;
839
+ apiUrl: z.ZodString;
840
+ cacheTtl: z.ZodNumber;
429
841
  }, z.core.$strip>>;
430
842
  fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
431
- requiresDelegation: z.ZodBoolean;
432
- requiredScopes: z.ZodArray<z.ZodString>;
433
- riskLevel: z.ZodOptional<z.ZodEnum<{
434
- low: "low";
435
- medium: "medium";
436
- high: "high";
437
- critical: "critical";
843
+ requiresDelegation: z.ZodBoolean;
844
+ requiredScopes: z.ZodArray<z.ZodString>;
845
+ riskLevel: z.ZodOptional<z.ZodEnum<{
846
+ low: "low";
847
+ medium: "medium";
848
+ high: "high";
849
+ critical: "critical";
850
+ }>>;
851
+ oauthProvider: z.ZodOptional<z.ZodString>;
852
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
853
+ type: z.ZodLiteral<"oauth">;
854
+ provider: z.ZodString;
855
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
856
+ }, z.core.$strip>, z.ZodObject<{
857
+ type: z.ZodLiteral<"oauth2">;
858
+ provider: z.ZodString;
859
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
860
+ }, z.core.$strip>, z.ZodObject<{
861
+ type: z.ZodLiteral<"password">;
862
+ provider: z.ZodString;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ type: z.ZodLiteral<"mdl">;
865
+ issuer: z.ZodString;
866
+ credentialType: z.ZodOptional<z.ZodString>;
867
+ }, z.core.$strip>, z.ZodObject<{
868
+ type: z.ZodLiteral<"idv">;
869
+ provider: z.ZodString;
870
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
871
+ basic: "basic";
872
+ enhanced: "enhanced";
873
+ loa3: "loa3";
438
874
  }>>;
439
- oauthProvider: z.ZodOptional<z.ZodString>;
440
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
441
- type: z.ZodLiteral<"oauth">;
442
- provider: z.ZodString;
443
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
444
- }, z.core.$strip>, z.ZodObject<{
445
- type: z.ZodLiteral<"oauth2">;
446
- provider: z.ZodString;
447
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
448
- }, z.core.$strip>, z.ZodObject<{
449
- type: z.ZodLiteral<"password">;
450
- provider: z.ZodString;
451
- }, z.core.$strip>, z.ZodObject<{
452
- type: z.ZodLiteral<"mdl">;
453
- issuer: z.ZodString;
454
- credentialType: z.ZodOptional<z.ZodString>;
455
- }, z.core.$strip>, z.ZodObject<{
456
- type: z.ZodLiteral<"idv">;
457
- provider: z.ZodString;
458
- verificationLevel: z.ZodOptional<z.ZodEnum<{
459
- basic: "basic";
460
- enhanced: "enhanced";
461
- loa3: "loa3";
462
- }>>;
463
- }, z.core.$strip>, z.ZodObject<{
464
- type: z.ZodLiteral<"verifiable_credential">;
465
- credentialType: z.ZodString;
466
- issuer: z.ZodOptional<z.ZodString>;
467
- }, z.core.$strip>, z.ZodObject<{
468
- type: z.ZodLiteral<"credential">;
469
- credentialType: z.ZodString;
470
- issuer: z.ZodOptional<z.ZodString>;
471
- }, z.core.$strip>, z.ZodObject<{
472
- type: z.ZodLiteral<"webauthn">;
473
- rpId: z.ZodOptional<z.ZodString>;
474
- userVerification: z.ZodOptional<z.ZodEnum<{
475
- required: "required";
476
- preferred: "preferred";
477
- discouraged: "discouraged";
478
- }>>;
479
- }, z.core.$strip>, z.ZodObject<{
480
- type: z.ZodLiteral<"siwe">;
481
- chainId: z.ZodOptional<z.ZodNumber>;
482
- domain: z.ZodOptional<z.ZodString>;
483
- }, z.core.$strip>, z.ZodObject<{
484
- type: z.ZodLiteral<"apikey">;
485
- envVarNames: z.ZodArray<z.ZodString>;
486
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
487
- }, z.core.$strip>, z.ZodObject<{
488
- type: z.ZodLiteral<"none">;
489
- }, z.core.$strip>], "type">>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ type: z.ZodLiteral<"verifiable_credential">;
877
+ credentialType: z.ZodString;
878
+ issuer: z.ZodOptional<z.ZodString>;
879
+ }, z.core.$strip>, z.ZodObject<{
880
+ type: z.ZodLiteral<"credential">;
881
+ credentialType: z.ZodString;
882
+ issuer: z.ZodOptional<z.ZodString>;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ type: z.ZodLiteral<"webauthn">;
885
+ rpId: z.ZodOptional<z.ZodString>;
886
+ userVerification: z.ZodOptional<z.ZodEnum<{
887
+ required: "required";
888
+ preferred: "preferred";
889
+ discouraged: "discouraged";
890
+ }>>;
891
+ }, z.core.$strip>, z.ZodObject<{
892
+ type: z.ZodLiteral<"siwe">;
893
+ chainId: z.ZodOptional<z.ZodNumber>;
894
+ domain: z.ZodOptional<z.ZodString>;
895
+ }, z.core.$strip>, z.ZodObject<{
896
+ type: z.ZodLiteral<"apikey">;
897
+ envVarNames: z.ZodArray<z.ZodString>;
898
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
899
+ }, z.core.$strip>, z.ZodObject<{
900
+ type: z.ZodLiteral<"none">;
901
+ }, z.core.$strip>], "type">>;
490
902
  }, z.core.$strip>>>;
491
- }, z.core.$strip>;
492
- declare const mergedToolProtectionConfigSchema: z.ZodObject<{
903
+ }, z.core.$strip>;
904
+ audit: z.ZodObject<{
905
+ enabled: z.ZodBoolean;
906
+ includeProofHashes: z.ZodBoolean;
907
+ includePayloads: z.ZodBoolean;
908
+ }, z.core.$strip>;
909
+ session: z.ZodObject<{
910
+ timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
911
+ ttlMinutes: z.ZodDefault<z.ZodNumber>;
912
+ absoluteLifetime: z.ZodOptional<z.ZodNumber>;
913
+ }, z.core.$strip>;
914
+ platform: z.ZodObject<{
915
+ type: z.ZodEnum<{
916
+ cloudflare: "cloudflare";
917
+ node: "node";
918
+ vercel: "vercel";
919
+ }>;
920
+ cloudflare: z.ZodOptional<z.ZodObject<{
921
+ workers: z.ZodObject<{
922
+ cpuMs: z.ZodDefault<z.ZodNumber>;
923
+ memoryMb: z.ZodDefault<z.ZodNumber>;
924
+ }, z.core.$strip>;
925
+ kvNamespaces: z.ZodArray<z.ZodObject<{
926
+ name: z.ZodString;
927
+ purpose: z.ZodEnum<{
928
+ sessions: "sessions";
929
+ delegations: "delegations";
930
+ cache: "cache";
931
+ general: "general";
932
+ }>;
933
+ }, z.core.$strip>>;
934
+ environmentVariables: z.ZodArray<z.ZodObject<{
935
+ name: z.ZodString;
936
+ value: z.ZodString;
937
+ source: z.ZodEnum<{
938
+ "wrangler.toml": "wrangler.toml";
939
+ secrets: "secrets";
940
+ ".dev.vars": ".dev.vars";
941
+ }>;
942
+ }, z.core.$strip>>;
943
+ }, z.core.$strip>>;
944
+ node: z.ZodOptional<z.ZodObject<{
945
+ server: z.ZodObject<{
946
+ port: z.ZodDefault<z.ZodNumber>;
947
+ host: z.ZodDefault<z.ZodString>;
948
+ cors: z.ZodDefault<z.ZodBoolean>;
949
+ timeout: z.ZodDefault<z.ZodNumber>;
950
+ }, z.core.$strip>;
951
+ storage: z.ZodObject<{
952
+ type: z.ZodEnum<{
953
+ memory: "memory";
954
+ redis: "redis";
955
+ postgres: "postgres";
956
+ mongodb: "mongodb";
957
+ }>;
958
+ connection: z.ZodOptional<z.ZodObject<{
959
+ host: z.ZodOptional<z.ZodString>;
960
+ port: z.ZodOptional<z.ZodNumber>;
961
+ database: z.ZodOptional<z.ZodString>;
962
+ }, z.core.$strip>>;
963
+ }, z.core.$strip>;
964
+ }, z.core.$strip>>;
965
+ vercel: z.ZodOptional<z.ZodObject<{
966
+ environmentVariables: z.ZodArray<z.ZodObject<{
967
+ name: z.ZodString;
968
+ value: z.ZodString;
969
+ source: z.ZodEnum<{
970
+ "vercel-dashboard": "vercel-dashboard";
971
+ ".env.local": ".env.local";
972
+ }>;
973
+ }, z.core.$strip>>;
974
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
975
+ maxDuration: z.ZodOptional<z.ZodNumber>;
976
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
977
+ }, z.core.$strip>>;
978
+ }, z.core.$strip>>;
979
+ }, z.core.$strip>;
980
+ metadata: z.ZodObject<{
981
+ version: z.ZodString;
982
+ lastUpdated: z.ZodString;
493
983
  source: z.ZodEnum<{
494
- file: "file";
495
- agentshield: "agentshield";
496
- inline: "inline";
984
+ dashboard: "dashboard";
985
+ code: "code";
986
+ mixed: "mixed";
497
987
  }>;
498
- agentShield: z.ZodOptional<z.ZodObject<{
499
- apiUrl: z.ZodString;
500
- cacheTtl: z.ZodNumber;
988
+ serverUrl: z.ZodOptional<z.ZodString>;
989
+ deploymentStatus: z.ZodOptional<z.ZodEnum<{
990
+ error: "error";
991
+ active: "active";
992
+ inactive: "inactive";
993
+ }>>;
994
+ }, z.core.$strip>;
995
+ }, z.core.$strip>;
996
+ export declare const mergedMcpIServerConfigSchema: z.ZodObject<{
997
+ identity: z.ZodObject<{
998
+ agentDid: z.ZodOptional<z.ZodString>;
999
+ serverDid: z.ZodString;
1000
+ environment: z.ZodEnum<{
1001
+ development: "development";
1002
+ production: "production";
1003
+ }>;
1004
+ storageLocation: z.ZodEnum<{
1005
+ "cloudflare-kv": "cloudflare-kv";
1006
+ "file-system": "file-system";
1007
+ "env-vars": "env-vars";
1008
+ }>;
1009
+ }, z.core.$strip>;
1010
+ proofing: z.ZodObject<{
1011
+ enabled: z.ZodBoolean;
1012
+ destinations: z.ZodArray<z.ZodObject<{
1013
+ type: z.ZodEnum<{
1014
+ custom: "custom";
1015
+ agentshield: "agentshield";
1016
+ kta: "kta";
1017
+ }>;
1018
+ apiUrl: z.ZodString;
1019
+ apiKey: z.ZodOptional<z.ZodString>;
501
1020
  }, z.core.$strip>>;
502
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
503
- requiresDelegation: z.ZodBoolean;
504
- requiredScopes: z.ZodArray<z.ZodString>;
505
- riskLevel: z.ZodOptional<z.ZodEnum<{
506
- low: "low";
507
- medium: "medium";
508
- high: "high";
509
- critical: "critical";
510
- }>>;
511
- oauthProvider: z.ZodOptional<z.ZodString>;
512
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
513
- type: z.ZodLiteral<"oauth">;
514
- provider: z.ZodString;
515
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
516
- }, z.core.$strip>, z.ZodObject<{
517
- type: z.ZodLiteral<"oauth2">;
518
- provider: z.ZodString;
519
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
- }, z.core.$strip>, z.ZodObject<{
521
- type: z.ZodLiteral<"password">;
522
- provider: z.ZodString;
523
- }, z.core.$strip>, z.ZodObject<{
524
- type: z.ZodLiteral<"mdl">;
525
- issuer: z.ZodString;
526
- credentialType: z.ZodOptional<z.ZodString>;
527
- }, z.core.$strip>, z.ZodObject<{
528
- type: z.ZodLiteral<"idv">;
529
- provider: z.ZodString;
530
- verificationLevel: z.ZodOptional<z.ZodEnum<{
531
- basic: "basic";
532
- enhanced: "enhanced";
533
- loa3: "loa3";
534
- }>>;
535
- }, z.core.$strip>, z.ZodObject<{
536
- type: z.ZodLiteral<"verifiable_credential">;
537
- credentialType: z.ZodString;
538
- issuer: z.ZodOptional<z.ZodString>;
539
- }, z.core.$strip>, z.ZodObject<{
540
- type: z.ZodLiteral<"credential">;
541
- credentialType: z.ZodString;
542
- issuer: z.ZodOptional<z.ZodString>;
543
- }, z.core.$strip>, z.ZodObject<{
544
- type: z.ZodLiteral<"webauthn">;
545
- rpId: z.ZodOptional<z.ZodString>;
546
- userVerification: z.ZodOptional<z.ZodEnum<{
547
- required: "required";
548
- preferred: "preferred";
549
- discouraged: "discouraged";
550
- }>>;
551
- }, z.core.$strip>, z.ZodObject<{
552
- type: z.ZodLiteral<"siwe">;
553
- chainId: z.ZodOptional<z.ZodNumber>;
554
- domain: z.ZodOptional<z.ZodString>;
555
- }, z.core.$strip>, z.ZodObject<{
556
- type: z.ZodLiteral<"apikey">;
557
- envVarNames: z.ZodArray<z.ZodString>;
558
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
559
- }, z.core.$strip>, z.ZodObject<{
560
- type: z.ZodLiteral<"none">;
561
- }, z.core.$strip>], "type">>;
1021
+ batchQueue: z.ZodObject<{
1022
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
1023
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1024
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1025
+ }, z.core.$strip>;
1026
+ }, z.core.$strip>;
1027
+ delegation: z.ZodObject<{
1028
+ enabled: z.ZodBoolean;
1029
+ enforceStrictly: z.ZodBoolean;
1030
+ verifier: z.ZodObject<{
1031
+ type: z.ZodEnum<{
1032
+ "cloudflare-kv": "cloudflare-kv";
1033
+ custom: "custom";
1034
+ agentshield: "agentshield";
1035
+ kta: "kta";
1036
+ memory: "memory";
1037
+ redis: "redis";
1038
+ dynamodb: "dynamodb";
1039
+ }>;
1040
+ apiUrl: z.ZodOptional<z.ZodString>;
1041
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
1042
+ }, z.core.$strip>;
1043
+ authorization: z.ZodObject<{
1044
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1045
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
1046
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1047
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1048
+ }, z.core.$strip>;
1049
+ }, z.core.$strip>;
1050
+ audit: z.ZodObject<{
1051
+ enabled: z.ZodBoolean;
1052
+ includeProofHashes: z.ZodBoolean;
1053
+ includePayloads: z.ZodBoolean;
1054
+ }, z.core.$strip>;
1055
+ session: z.ZodObject<{
1056
+ timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
1057
+ ttlMinutes: z.ZodDefault<z.ZodNumber>;
1058
+ absoluteLifetime: z.ZodOptional<z.ZodNumber>;
1059
+ }, z.core.$strip>;
1060
+ platform: z.ZodObject<{
1061
+ type: z.ZodEnum<{
1062
+ cloudflare: "cloudflare";
1063
+ node: "node";
1064
+ vercel: "vercel";
1065
+ }>;
1066
+ cloudflare: z.ZodOptional<z.ZodObject<{
1067
+ workers: z.ZodObject<{
1068
+ cpuMs: z.ZodDefault<z.ZodNumber>;
1069
+ memoryMb: z.ZodDefault<z.ZodNumber>;
1070
+ }, z.core.$strip>;
1071
+ kvNamespaces: z.ZodArray<z.ZodObject<{
1072
+ name: z.ZodString;
1073
+ purpose: z.ZodEnum<{
1074
+ sessions: "sessions";
1075
+ delegations: "delegations";
1076
+ cache: "cache";
1077
+ general: "general";
1078
+ }>;
1079
+ }, z.core.$strip>>;
1080
+ environmentVariables: z.ZodArray<z.ZodObject<{
1081
+ name: z.ZodString;
1082
+ value: z.ZodString;
1083
+ source: z.ZodEnum<{
1084
+ "wrangler.toml": "wrangler.toml";
1085
+ secrets: "secrets";
1086
+ ".dev.vars": ".dev.vars";
1087
+ }>;
1088
+ }, z.core.$strip>>;
1089
+ }, z.core.$strip>>;
1090
+ node: z.ZodOptional<z.ZodObject<{
1091
+ server: z.ZodObject<{
1092
+ port: z.ZodDefault<z.ZodNumber>;
1093
+ host: z.ZodDefault<z.ZodString>;
1094
+ cors: z.ZodDefault<z.ZodBoolean>;
1095
+ timeout: z.ZodDefault<z.ZodNumber>;
1096
+ }, z.core.$strip>;
1097
+ storage: z.ZodObject<{
1098
+ type: z.ZodEnum<{
1099
+ memory: "memory";
1100
+ redis: "redis";
1101
+ postgres: "postgres";
1102
+ mongodb: "mongodb";
1103
+ }>;
1104
+ connection: z.ZodOptional<z.ZodObject<{
1105
+ host: z.ZodOptional<z.ZodString>;
1106
+ port: z.ZodOptional<z.ZodNumber>;
1107
+ database: z.ZodOptional<z.ZodString>;
1108
+ }, z.core.$strip>>;
1109
+ }, z.core.$strip>;
1110
+ }, z.core.$strip>>;
1111
+ vercel: z.ZodOptional<z.ZodObject<{
1112
+ environmentVariables: z.ZodArray<z.ZodObject<{
1113
+ name: z.ZodString;
1114
+ value: z.ZodString;
1115
+ source: z.ZodEnum<{
1116
+ "vercel-dashboard": "vercel-dashboard";
1117
+ ".env.local": ".env.local";
1118
+ }>;
1119
+ }, z.core.$strip>>;
1120
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
1121
+ maxDuration: z.ZodOptional<z.ZodNumber>;
1122
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1123
+ }, z.core.$strip>>;
1124
+ }, z.core.$strip>>;
1125
+ }, z.core.$strip>;
1126
+ metadata: z.ZodObject<{
1127
+ version: z.ZodString;
1128
+ lastUpdated: z.ZodString;
1129
+ source: z.ZodEnum<{
1130
+ dashboard: "dashboard";
1131
+ code: "code";
1132
+ mixed: "mixed";
1133
+ }>;
1134
+ serverUrl: z.ZodOptional<z.ZodString>;
1135
+ deploymentStatus: z.ZodOptional<z.ZodEnum<{
1136
+ error: "error";
1137
+ active: "active";
1138
+ inactive: "inactive";
1139
+ }>>;
1140
+ }, z.core.$strip>;
1141
+ toolProtection: z.ZodObject<{
1142
+ source: z.ZodEnum<{
1143
+ file: "file";
1144
+ agentshield: "agentshield";
1145
+ inline: "inline";
1146
+ }>;
1147
+ agentShield: z.ZodOptional<z.ZodObject<{
1148
+ apiUrl: z.ZodString;
1149
+ cacheTtl: z.ZodNumber;
1150
+ }, z.core.$strip>>;
1151
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1152
+ requiresDelegation: z.ZodBoolean;
1153
+ requiredScopes: z.ZodArray<z.ZodString>;
1154
+ riskLevel: z.ZodOptional<z.ZodEnum<{
1155
+ low: "low";
1156
+ medium: "medium";
1157
+ high: "high";
1158
+ critical: "critical";
1159
+ }>>;
1160
+ oauthProvider: z.ZodOptional<z.ZodString>;
1161
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1162
+ type: z.ZodLiteral<"oauth">;
1163
+ provider: z.ZodString;
1164
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1165
+ }, z.core.$strip>, z.ZodObject<{
1166
+ type: z.ZodLiteral<"oauth2">;
1167
+ provider: z.ZodString;
1168
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1169
+ }, z.core.$strip>, z.ZodObject<{
1170
+ type: z.ZodLiteral<"password">;
1171
+ provider: z.ZodString;
1172
+ }, z.core.$strip>, z.ZodObject<{
1173
+ type: z.ZodLiteral<"mdl">;
1174
+ issuer: z.ZodString;
1175
+ credentialType: z.ZodOptional<z.ZodString>;
1176
+ }, z.core.$strip>, z.ZodObject<{
1177
+ type: z.ZodLiteral<"idv">;
1178
+ provider: z.ZodString;
1179
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
1180
+ basic: "basic";
1181
+ enhanced: "enhanced";
1182
+ loa3: "loa3";
1183
+ }>>;
1184
+ }, z.core.$strip>, z.ZodObject<{
1185
+ type: z.ZodLiteral<"verifiable_credential">;
1186
+ credentialType: z.ZodString;
1187
+ issuer: z.ZodOptional<z.ZodString>;
1188
+ }, z.core.$strip>, z.ZodObject<{
1189
+ type: z.ZodLiteral<"credential">;
1190
+ credentialType: z.ZodString;
1191
+ issuer: z.ZodOptional<z.ZodString>;
1192
+ }, z.core.$strip>, z.ZodObject<{
1193
+ type: z.ZodLiteral<"webauthn">;
1194
+ rpId: z.ZodOptional<z.ZodString>;
1195
+ userVerification: z.ZodOptional<z.ZodEnum<{
1196
+ required: "required";
1197
+ preferred: "preferred";
1198
+ discouraged: "discouraged";
1199
+ }>>;
1200
+ }, z.core.$strip>, z.ZodObject<{
1201
+ type: z.ZodLiteral<"siwe">;
1202
+ chainId: z.ZodOptional<z.ZodNumber>;
1203
+ domain: z.ZodOptional<z.ZodString>;
1204
+ }, z.core.$strip>, z.ZodObject<{
1205
+ type: z.ZodLiteral<"apikey">;
1206
+ envVarNames: z.ZodArray<z.ZodString>;
1207
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1208
+ }, z.core.$strip>, z.ZodObject<{
1209
+ type: z.ZodLiteral<"none">;
1210
+ }, z.core.$strip>], "type">>;
562
1211
  }, z.core.$strip>>>;
563
1212
  tools: z.ZodRecord<z.ZodString, z.ZodObject<{
564
- requiresDelegation: z.ZodBoolean;
565
- requiredScopes: z.ZodArray<z.ZodString>;
566
- riskLevel: z.ZodOptional<z.ZodEnum<{
1213
+ requiresDelegation: z.ZodBoolean;
1214
+ requiredScopes: z.ZodArray<z.ZodString>;
1215
+ riskLevel: z.ZodOptional<z.ZodEnum<{
1216
+ low: "low";
1217
+ medium: "medium";
1218
+ high: "high";
1219
+ critical: "critical";
1220
+ }>>;
1221
+ oauthProvider: z.ZodOptional<z.ZodString>;
1222
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1223
+ type: z.ZodLiteral<"oauth">;
1224
+ provider: z.ZodString;
1225
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1226
+ }, z.core.$strip>, z.ZodObject<{
1227
+ type: z.ZodLiteral<"oauth2">;
1228
+ provider: z.ZodString;
1229
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1230
+ }, z.core.$strip>, z.ZodObject<{
1231
+ type: z.ZodLiteral<"password">;
1232
+ provider: z.ZodString;
1233
+ }, z.core.$strip>, z.ZodObject<{
1234
+ type: z.ZodLiteral<"mdl">;
1235
+ issuer: z.ZodString;
1236
+ credentialType: z.ZodOptional<z.ZodString>;
1237
+ }, z.core.$strip>, z.ZodObject<{
1238
+ type: z.ZodLiteral<"idv">;
1239
+ provider: z.ZodString;
1240
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
1241
+ basic: "basic";
1242
+ enhanced: "enhanced";
1243
+ loa3: "loa3";
1244
+ }>>;
1245
+ }, z.core.$strip>, z.ZodObject<{
1246
+ type: z.ZodLiteral<"verifiable_credential">;
1247
+ credentialType: z.ZodString;
1248
+ issuer: z.ZodOptional<z.ZodString>;
1249
+ }, z.core.$strip>, z.ZodObject<{
1250
+ type: z.ZodLiteral<"credential">;
1251
+ credentialType: z.ZodString;
1252
+ issuer: z.ZodOptional<z.ZodString>;
1253
+ }, z.core.$strip>, z.ZodObject<{
1254
+ type: z.ZodLiteral<"webauthn">;
1255
+ rpId: z.ZodOptional<z.ZodString>;
1256
+ userVerification: z.ZodOptional<z.ZodEnum<{
1257
+ required: "required";
1258
+ preferred: "preferred";
1259
+ discouraged: "discouraged";
1260
+ }>>;
1261
+ }, z.core.$strip>, z.ZodObject<{
1262
+ type: z.ZodLiteral<"siwe">;
1263
+ chainId: z.ZodOptional<z.ZodNumber>;
1264
+ domain: z.ZodOptional<z.ZodString>;
1265
+ }, z.core.$strip>, z.ZodObject<{
1266
+ type: z.ZodLiteral<"apikey">;
1267
+ envVarNames: z.ZodArray<z.ZodString>;
1268
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1269
+ }, z.core.$strip>, z.ZodObject<{
1270
+ type: z.ZodLiteral<"none">;
1271
+ }, z.core.$strip>], "type">>;
1272
+ }, z.core.$strip>>;
1273
+ }, z.core.$strip>;
1274
+ }, z.core.$strip>;
1275
+ export declare const getServerConfigRequestSchema: z.ZodObject<{
1276
+ projectId: z.ZodString;
1277
+ }, z.core.$strip>;
1278
+ export declare const getServerConfigResponseSchema: z.ZodObject<{
1279
+ success: z.ZodBoolean;
1280
+ data: z.ZodObject<{
1281
+ config: z.ZodObject<{
1282
+ identity: z.ZodObject<{
1283
+ agentDid: z.ZodOptional<z.ZodString>;
1284
+ serverDid: z.ZodString;
1285
+ environment: z.ZodEnum<{
1286
+ development: "development";
1287
+ production: "production";
1288
+ }>;
1289
+ storageLocation: z.ZodEnum<{
1290
+ "cloudflare-kv": "cloudflare-kv";
1291
+ "file-system": "file-system";
1292
+ "env-vars": "env-vars";
1293
+ }>;
1294
+ }, z.core.$strip>;
1295
+ proofing: z.ZodObject<{
1296
+ enabled: z.ZodBoolean;
1297
+ destinations: z.ZodArray<z.ZodObject<{
1298
+ type: z.ZodEnum<{
1299
+ custom: "custom";
1300
+ agentshield: "agentshield";
1301
+ kta: "kta";
1302
+ }>;
1303
+ apiUrl: z.ZodString;
1304
+ apiKey: z.ZodOptional<z.ZodString>;
1305
+ }, z.core.$strip>>;
1306
+ batchQueue: z.ZodObject<{
1307
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
1308
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1309
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1310
+ }, z.core.$strip>;
1311
+ }, z.core.$strip>;
1312
+ delegation: z.ZodObject<{
1313
+ enabled: z.ZodBoolean;
1314
+ enforceStrictly: z.ZodBoolean;
1315
+ verifier: z.ZodObject<{
1316
+ type: z.ZodEnum<{
1317
+ "cloudflare-kv": "cloudflare-kv";
1318
+ custom: "custom";
1319
+ agentshield: "agentshield";
1320
+ kta: "kta";
1321
+ memory: "memory";
1322
+ redis: "redis";
1323
+ dynamodb: "dynamodb";
1324
+ }>;
1325
+ apiUrl: z.ZodOptional<z.ZodString>;
1326
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
1327
+ }, z.core.$strip>;
1328
+ authorization: z.ZodObject<{
1329
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1330
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
1331
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1332
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1333
+ }, z.core.$strip>;
1334
+ }, z.core.$strip>;
1335
+ toolProtection: z.ZodObject<{
1336
+ source: z.ZodEnum<{
1337
+ file: "file";
1338
+ agentshield: "agentshield";
1339
+ inline: "inline";
1340
+ }>;
1341
+ agentShield: z.ZodOptional<z.ZodObject<{
1342
+ apiUrl: z.ZodString;
1343
+ cacheTtl: z.ZodNumber;
1344
+ }, z.core.$strip>>;
1345
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1346
+ requiresDelegation: z.ZodBoolean;
1347
+ requiredScopes: z.ZodArray<z.ZodString>;
1348
+ riskLevel: z.ZodOptional<z.ZodEnum<{
567
1349
  low: "low";
568
1350
  medium: "medium";
569
1351
  high: "high";
570
1352
  critical: "critical";
571
- }>>;
572
- oauthProvider: z.ZodOptional<z.ZodString>;
573
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1353
+ }>>;
1354
+ oauthProvider: z.ZodOptional<z.ZodString>;
1355
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
574
1356
  type: z.ZodLiteral<"oauth">;
575
1357
  provider: z.ZodString;
576
1358
  requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
577
- }, z.core.$strip>, z.ZodObject<{
1359
+ }, z.core.$strip>, z.ZodObject<{
578
1360
  type: z.ZodLiteral<"oauth2">;
579
1361
  provider: z.ZodString;
580
1362
  requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
581
- }, z.core.$strip>, z.ZodObject<{
1363
+ }, z.core.$strip>, z.ZodObject<{
582
1364
  type: z.ZodLiteral<"password">;
583
1365
  provider: z.ZodString;
584
- }, z.core.$strip>, z.ZodObject<{
1366
+ }, z.core.$strip>, z.ZodObject<{
585
1367
  type: z.ZodLiteral<"mdl">;
586
1368
  issuer: z.ZodString;
587
1369
  credentialType: z.ZodOptional<z.ZodString>;
588
- }, z.core.$strip>, z.ZodObject<{
1370
+ }, z.core.$strip>, z.ZodObject<{
589
1371
  type: z.ZodLiteral<"idv">;
590
1372
  provider: z.ZodString;
591
1373
  verificationLevel: z.ZodOptional<z.ZodEnum<{
592
- basic: "basic";
593
- enhanced: "enhanced";
594
- loa3: "loa3";
1374
+ basic: "basic";
1375
+ enhanced: "enhanced";
1376
+ loa3: "loa3";
595
1377
  }>>;
596
- }, z.core.$strip>, z.ZodObject<{
1378
+ }, z.core.$strip>, z.ZodObject<{
597
1379
  type: z.ZodLiteral<"verifiable_credential">;
598
1380
  credentialType: z.ZodString;
599
1381
  issuer: z.ZodOptional<z.ZodString>;
600
- }, z.core.$strip>, z.ZodObject<{
1382
+ }, z.core.$strip>, z.ZodObject<{
601
1383
  type: z.ZodLiteral<"credential">;
602
1384
  credentialType: z.ZodString;
603
1385
  issuer: z.ZodOptional<z.ZodString>;
604
- }, z.core.$strip>, z.ZodObject<{
1386
+ }, z.core.$strip>, z.ZodObject<{
605
1387
  type: z.ZodLiteral<"webauthn">;
606
1388
  rpId: z.ZodOptional<z.ZodString>;
607
1389
  userVerification: z.ZodOptional<z.ZodEnum<{
608
- required: "required";
609
- preferred: "preferred";
610
- discouraged: "discouraged";
1390
+ required: "required";
1391
+ preferred: "preferred";
1392
+ discouraged: "discouraged";
611
1393
  }>>;
612
- }, z.core.$strip>, z.ZodObject<{
1394
+ }, z.core.$strip>, z.ZodObject<{
613
1395
  type: z.ZodLiteral<"siwe">;
614
1396
  chainId: z.ZodOptional<z.ZodNumber>;
615
1397
  domain: z.ZodOptional<z.ZodString>;
616
- }, z.core.$strip>, z.ZodObject<{
1398
+ }, z.core.$strip>, z.ZodObject<{
617
1399
  type: z.ZodLiteral<"apikey">;
618
1400
  envVarNames: z.ZodArray<z.ZodString>;
619
1401
  headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
620
- }, z.core.$strip>, z.ZodObject<{
1402
+ }, z.core.$strip>, z.ZodObject<{
621
1403
  type: z.ZodLiteral<"none">;
622
- }, z.core.$strip>], "type">>;
623
- }, z.core.$strip>>;
624
- }, z.core.$strip>;
625
- declare const auditConfigSchema: z.ZodObject<{
626
- enabled: z.ZodBoolean;
627
- includeProofHashes: z.ZodBoolean;
628
- includePayloads: z.ZodBoolean;
629
- }, z.core.$strip>;
630
- declare const sessionConfigSchema: z.ZodObject<{
631
- timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
632
- ttlMinutes: z.ZodDefault<z.ZodNumber>;
633
- absoluteLifetime: z.ZodOptional<z.ZodNumber>;
634
- }, z.core.$strip>;
635
- declare const cloudflarePlatformConfigSchema: z.ZodObject<{
636
- workers: z.ZodObject<{
637
- cpuMs: z.ZodDefault<z.ZodNumber>;
638
- memoryMb: z.ZodDefault<z.ZodNumber>;
639
- }, z.core.$strip>;
640
- kvNamespaces: z.ZodArray<z.ZodObject<{
641
- name: z.ZodString;
642
- purpose: z.ZodEnum<{
643
- sessions: "sessions";
644
- delegations: "delegations";
645
- cache: "cache";
646
- general: "general";
647
- }>;
648
- }, z.core.$strip>>;
649
- environmentVariables: z.ZodArray<z.ZodObject<{
650
- name: z.ZodString;
651
- value: z.ZodString;
652
- source: z.ZodEnum<{
653
- "wrangler.toml": "wrangler.toml";
654
- secrets: "secrets";
655
- ".dev.vars": ".dev.vars";
656
- }>;
657
- }, z.core.$strip>>;
658
- }, z.core.$strip>;
659
- declare const nodePlatformConfigSchema: z.ZodObject<{
660
- server: z.ZodObject<{
661
- port: z.ZodDefault<z.ZodNumber>;
662
- host: z.ZodDefault<z.ZodString>;
663
- cors: z.ZodDefault<z.ZodBoolean>;
664
- timeout: z.ZodDefault<z.ZodNumber>;
665
- }, z.core.$strip>;
666
- storage: z.ZodObject<{
1404
+ }, z.core.$strip>], "type">>;
1405
+ }, z.core.$strip>>>;
1406
+ }, z.core.$strip>;
1407
+ audit: z.ZodObject<{
1408
+ enabled: z.ZodBoolean;
1409
+ includeProofHashes: z.ZodBoolean;
1410
+ includePayloads: z.ZodBoolean;
1411
+ }, z.core.$strip>;
1412
+ session: z.ZodObject<{
1413
+ timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
1414
+ ttlMinutes: z.ZodDefault<z.ZodNumber>;
1415
+ absoluteLifetime: z.ZodOptional<z.ZodNumber>;
1416
+ }, z.core.$strip>;
1417
+ platform: z.ZodObject<{
667
1418
  type: z.ZodEnum<{
668
- memory: "memory";
669
- redis: "redis";
670
- postgres: "postgres";
671
- mongodb: "mongodb";
672
- }>;
673
- connection: z.ZodOptional<z.ZodObject<{
674
- host: z.ZodOptional<z.ZodString>;
675
- port: z.ZodOptional<z.ZodNumber>;
676
- database: z.ZodOptional<z.ZodString>;
677
- }, z.core.$strip>>;
678
- }, z.core.$strip>;
679
- }, z.core.$strip>;
680
- declare const vercelPlatformConfigSchema: z.ZodObject<{
681
- environmentVariables: z.ZodArray<z.ZodObject<{
682
- name: z.ZodString;
683
- value: z.ZodString;
684
- source: z.ZodEnum<{
685
- "vercel-dashboard": "vercel-dashboard";
686
- ".env.local": ".env.local";
1419
+ cloudflare: "cloudflare";
1420
+ node: "node";
1421
+ vercel: "vercel";
687
1422
  }>;
688
- }, z.core.$strip>>;
689
- edgeRuntime: z.ZodOptional<z.ZodObject<{
690
- maxDuration: z.ZodOptional<z.ZodNumber>;
691
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
692
- }, z.core.$strip>>;
693
- }, z.core.$strip>;
694
- declare const platformConfigSchema: z.ZodObject<{
695
- type: z.ZodEnum<{
696
- cloudflare: "cloudflare";
697
- node: "node";
698
- vercel: "vercel";
699
- }>;
700
- cloudflare: z.ZodOptional<z.ZodObject<{
701
- workers: z.ZodObject<{
1423
+ cloudflare: z.ZodOptional<z.ZodObject<{
1424
+ workers: z.ZodObject<{
702
1425
  cpuMs: z.ZodDefault<z.ZodNumber>;
703
1426
  memoryMb: z.ZodDefault<z.ZodNumber>;
704
- }, z.core.$strip>;
705
- kvNamespaces: z.ZodArray<z.ZodObject<{
1427
+ }, z.core.$strip>;
1428
+ kvNamespaces: z.ZodArray<z.ZodObject<{
706
1429
  name: z.ZodString;
707
1430
  purpose: z.ZodEnum<{
708
- sessions: "sessions";
709
- delegations: "delegations";
710
- cache: "cache";
711
- general: "general";
1431
+ sessions: "sessions";
1432
+ delegations: "delegations";
1433
+ cache: "cache";
1434
+ general: "general";
712
1435
  }>;
713
- }, z.core.$strip>>;
714
- environmentVariables: z.ZodArray<z.ZodObject<{
1436
+ }, z.core.$strip>>;
1437
+ environmentVariables: z.ZodArray<z.ZodObject<{
715
1438
  name: z.ZodString;
716
1439
  value: z.ZodString;
717
1440
  source: z.ZodEnum<{
718
- "wrangler.toml": "wrangler.toml";
719
- secrets: "secrets";
720
- ".dev.vars": ".dev.vars";
1441
+ "wrangler.toml": "wrangler.toml";
1442
+ secrets: "secrets";
1443
+ ".dev.vars": ".dev.vars";
721
1444
  }>;
1445
+ }, z.core.$strip>>;
722
1446
  }, z.core.$strip>>;
723
- }, z.core.$strip>>;
724
- node: z.ZodOptional<z.ZodObject<{
725
- server: z.ZodObject<{
1447
+ node: z.ZodOptional<z.ZodObject<{
1448
+ server: z.ZodObject<{
726
1449
  port: z.ZodDefault<z.ZodNumber>;
727
1450
  host: z.ZodDefault<z.ZodString>;
728
1451
  cors: z.ZodDefault<z.ZodBoolean>;
729
1452
  timeout: z.ZodDefault<z.ZodNumber>;
730
- }, z.core.$strip>;
731
- storage: z.ZodObject<{
1453
+ }, z.core.$strip>;
1454
+ storage: z.ZodObject<{
732
1455
  type: z.ZodEnum<{
733
- memory: "memory";
734
- redis: "redis";
735
- postgres: "postgres";
736
- mongodb: "mongodb";
1456
+ memory: "memory";
1457
+ redis: "redis";
1458
+ postgres: "postgres";
1459
+ mongodb: "mongodb";
737
1460
  }>;
738
1461
  connection: z.ZodOptional<z.ZodObject<{
739
- host: z.ZodOptional<z.ZodString>;
740
- port: z.ZodOptional<z.ZodNumber>;
741
- database: z.ZodOptional<z.ZodString>;
1462
+ host: z.ZodOptional<z.ZodString>;
1463
+ port: z.ZodOptional<z.ZodNumber>;
1464
+ database: z.ZodOptional<z.ZodString>;
742
1465
  }, z.core.$strip>>;
743
- }, z.core.$strip>;
744
- }, z.core.$strip>>;
745
- vercel: z.ZodOptional<z.ZodObject<{
746
- environmentVariables: z.ZodArray<z.ZodObject<{
1466
+ }, z.core.$strip>;
1467
+ }, z.core.$strip>>;
1468
+ vercel: z.ZodOptional<z.ZodObject<{
1469
+ environmentVariables: z.ZodArray<z.ZodObject<{
747
1470
  name: z.ZodString;
748
1471
  value: z.ZodString;
749
1472
  source: z.ZodEnum<{
750
- "vercel-dashboard": "vercel-dashboard";
751
- ".env.local": ".env.local";
1473
+ "vercel-dashboard": "vercel-dashboard";
1474
+ ".env.local": ".env.local";
752
1475
  }>;
753
- }, z.core.$strip>>;
754
- edgeRuntime: z.ZodOptional<z.ZodObject<{
1476
+ }, z.core.$strip>>;
1477
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
755
1478
  maxDuration: z.ZodOptional<z.ZodNumber>;
756
1479
  regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1480
+ }, z.core.$strip>>;
757
1481
  }, z.core.$strip>>;
758
- }, z.core.$strip>>;
759
- }, z.core.$strip>;
760
- declare const configMetadataSchema: z.ZodObject<{
761
- version: z.ZodString;
762
- lastUpdated: z.ZodString;
763
- source: z.ZodEnum<{
764
- code: "code";
765
- dashboard: "dashboard";
766
- mixed: "mixed";
767
- }>;
768
- serverUrl: z.ZodOptional<z.ZodString>;
769
- deploymentStatus: z.ZodOptional<z.ZodEnum<{
770
- error: "error";
771
- active: "active";
772
- inactive: "inactive";
773
- }>>;
1482
+ }, z.core.$strip>;
1483
+ metadata: z.ZodObject<{
1484
+ version: z.ZodString;
1485
+ lastUpdated: z.ZodString;
1486
+ source: z.ZodEnum<{
1487
+ dashboard: "dashboard";
1488
+ code: "code";
1489
+ mixed: "mixed";
1490
+ }>;
1491
+ serverUrl: z.ZodOptional<z.ZodString>;
1492
+ deploymentStatus: z.ZodOptional<z.ZodEnum<{
1493
+ error: "error";
1494
+ active: "active";
1495
+ inactive: "inactive";
1496
+ }>>;
1497
+ }, z.core.$strip>;
1498
+ }, z.core.$strip>;
1499
+ }, z.core.$strip>;
1500
+ metadata: z.ZodOptional<z.ZodObject<{
1501
+ requestId: z.ZodOptional<z.ZodString>;
1502
+ timestamp: z.ZodOptional<z.ZodString>;
1503
+ }, z.core.$strip>>;
774
1504
  }, z.core.$strip>;
775
- declare const mcpIServerConfigSchema: z.ZodObject<{
776
- identity: z.ZodObject<{
1505
+ export declare const getMergedServerConfigResponseSchema: z.ZodObject<{
1506
+ success: z.ZodBoolean;
1507
+ data: z.ZodObject<{
1508
+ config: z.ZodObject<{
1509
+ identity: z.ZodObject<{
777
1510
  agentDid: z.ZodOptional<z.ZodString>;
778
1511
  serverDid: z.ZodString;
779
1512
  environment: z.ZodEnum<{
780
- development: "development";
781
- production: "production";
1513
+ development: "development";
1514
+ production: "production";
782
1515
  }>;
783
1516
  storageLocation: z.ZodEnum<{
784
- "cloudflare-kv": "cloudflare-kv";
785
- "file-system": "file-system";
786
- "env-vars": "env-vars";
1517
+ "cloudflare-kv": "cloudflare-kv";
1518
+ "file-system": "file-system";
1519
+ "env-vars": "env-vars";
787
1520
  }>;
788
- }, z.core.$strip>;
789
- proofing: z.ZodObject<{
1521
+ }, z.core.$strip>;
1522
+ proofing: z.ZodObject<{
790
1523
  enabled: z.ZodBoolean;
791
1524
  destinations: z.ZodArray<z.ZodObject<{
792
- type: z.ZodEnum<{
793
- custom: "custom";
794
- agentshield: "agentshield";
795
- kta: "kta";
796
- }>;
797
- apiUrl: z.ZodString;
798
- apiKey: z.ZodOptional<z.ZodString>;
1525
+ type: z.ZodEnum<{
1526
+ custom: "custom";
1527
+ agentshield: "agentshield";
1528
+ kta: "kta";
1529
+ }>;
1530
+ apiUrl: z.ZodString;
1531
+ apiKey: z.ZodOptional<z.ZodString>;
799
1532
  }, z.core.$strip>>;
800
1533
  batchQueue: z.ZodObject<{
801
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
802
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
803
- maxRetries: z.ZodDefault<z.ZodNumber>;
1534
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
1535
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1536
+ maxRetries: z.ZodDefault<z.ZodNumber>;
804
1537
  }, z.core.$strip>;
805
- }, z.core.$strip>;
806
- delegation: z.ZodObject<{
1538
+ }, z.core.$strip>;
1539
+ delegation: z.ZodObject<{
807
1540
  enabled: z.ZodBoolean;
808
1541
  enforceStrictly: z.ZodBoolean;
809
1542
  verifier: z.ZodObject<{
810
- type: z.ZodEnum<{
811
- custom: "custom";
812
- agentshield: "agentshield";
813
- kta: "kta";
814
- memory: "memory";
815
- "cloudflare-kv": "cloudflare-kv";
816
- redis: "redis";
817
- dynamodb: "dynamodb";
818
- }>;
819
- apiUrl: z.ZodOptional<z.ZodString>;
820
- cacheTtl: z.ZodOptional<z.ZodNumber>;
1543
+ type: z.ZodEnum<{
1544
+ "cloudflare-kv": "cloudflare-kv";
1545
+ custom: "custom";
1546
+ agentshield: "agentshield";
1547
+ kta: "kta";
1548
+ memory: "memory";
1549
+ redis: "redis";
1550
+ dynamodb: "dynamodb";
1551
+ }>;
1552
+ apiUrl: z.ZodOptional<z.ZodString>;
1553
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
821
1554
  }, z.core.$strip>;
822
1555
  authorization: z.ZodObject<{
823
- authorizationUrl: z.ZodOptional<z.ZodString>;
824
- minReputationScore: z.ZodOptional<z.ZodNumber>;
825
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
826
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1556
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1557
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
1558
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1559
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
827
1560
  }, z.core.$strip>;
828
- }, z.core.$strip>;
829
- toolProtection: z.ZodObject<{
830
- source: z.ZodEnum<{
831
- file: "file";
832
- agentshield: "agentshield";
833
- inline: "inline";
834
- }>;
835
- agentShield: z.ZodOptional<z.ZodObject<{
836
- apiUrl: z.ZodString;
837
- cacheTtl: z.ZodNumber;
838
- }, z.core.$strip>>;
839
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
840
- requiresDelegation: z.ZodBoolean;
841
- requiredScopes: z.ZodArray<z.ZodString>;
842
- riskLevel: z.ZodOptional<z.ZodEnum<{
843
- low: "low";
844
- medium: "medium";
845
- high: "high";
846
- critical: "critical";
847
- }>>;
848
- oauthProvider: z.ZodOptional<z.ZodString>;
849
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
850
- type: z.ZodLiteral<"oauth">;
851
- provider: z.ZodString;
852
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
853
- }, z.core.$strip>, z.ZodObject<{
854
- type: z.ZodLiteral<"oauth2">;
855
- provider: z.ZodString;
856
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
857
- }, z.core.$strip>, z.ZodObject<{
858
- type: z.ZodLiteral<"password">;
859
- provider: z.ZodString;
860
- }, z.core.$strip>, z.ZodObject<{
861
- type: z.ZodLiteral<"mdl">;
862
- issuer: z.ZodString;
863
- credentialType: z.ZodOptional<z.ZodString>;
864
- }, z.core.$strip>, z.ZodObject<{
865
- type: z.ZodLiteral<"idv">;
866
- provider: z.ZodString;
867
- verificationLevel: z.ZodOptional<z.ZodEnum<{
868
- basic: "basic";
869
- enhanced: "enhanced";
870
- loa3: "loa3";
871
- }>>;
872
- }, z.core.$strip>, z.ZodObject<{
873
- type: z.ZodLiteral<"verifiable_credential">;
874
- credentialType: z.ZodString;
875
- issuer: z.ZodOptional<z.ZodString>;
876
- }, z.core.$strip>, z.ZodObject<{
877
- type: z.ZodLiteral<"credential">;
878
- credentialType: z.ZodString;
879
- issuer: z.ZodOptional<z.ZodString>;
880
- }, z.core.$strip>, z.ZodObject<{
881
- type: z.ZodLiteral<"webauthn">;
882
- rpId: z.ZodOptional<z.ZodString>;
883
- userVerification: z.ZodOptional<z.ZodEnum<{
884
- required: "required";
885
- preferred: "preferred";
886
- discouraged: "discouraged";
887
- }>>;
888
- }, z.core.$strip>, z.ZodObject<{
889
- type: z.ZodLiteral<"siwe">;
890
- chainId: z.ZodOptional<z.ZodNumber>;
891
- domain: z.ZodOptional<z.ZodString>;
892
- }, z.core.$strip>, z.ZodObject<{
893
- type: z.ZodLiteral<"apikey">;
894
- envVarNames: z.ZodArray<z.ZodString>;
895
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
896
- }, z.core.$strip>, z.ZodObject<{
897
- type: z.ZodLiteral<"none">;
898
- }, z.core.$strip>], "type">>;
899
- }, z.core.$strip>>>;
900
- }, z.core.$strip>;
901
- audit: z.ZodObject<{
1561
+ }, z.core.$strip>;
1562
+ audit: z.ZodObject<{
902
1563
  enabled: z.ZodBoolean;
903
1564
  includeProofHashes: z.ZodBoolean;
904
1565
  includePayloads: z.ZodBoolean;
905
- }, z.core.$strip>;
906
- session: z.ZodObject<{
1566
+ }, z.core.$strip>;
1567
+ session: z.ZodObject<{
907
1568
  timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
908
1569
  ttlMinutes: z.ZodDefault<z.ZodNumber>;
909
1570
  absoluteLifetime: z.ZodOptional<z.ZodNumber>;
910
- }, z.core.$strip>;
911
- platform: z.ZodObject<{
1571
+ }, z.core.$strip>;
1572
+ platform: z.ZodObject<{
912
1573
  type: z.ZodEnum<{
913
- cloudflare: "cloudflare";
914
- node: "node";
915
- vercel: "vercel";
1574
+ cloudflare: "cloudflare";
1575
+ node: "node";
1576
+ vercel: "vercel";
916
1577
  }>;
917
1578
  cloudflare: z.ZodOptional<z.ZodObject<{
918
- workers: z.ZodObject<{
919
- cpuMs: z.ZodDefault<z.ZodNumber>;
920
- memoryMb: z.ZodDefault<z.ZodNumber>;
921
- }, z.core.$strip>;
922
- kvNamespaces: z.ZodArray<z.ZodObject<{
923
- name: z.ZodString;
924
- purpose: z.ZodEnum<{
925
- sessions: "sessions";
926
- delegations: "delegations";
927
- cache: "cache";
928
- general: "general";
929
- }>;
930
- }, z.core.$strip>>;
931
- environmentVariables: z.ZodArray<z.ZodObject<{
932
- name: z.ZodString;
933
- value: z.ZodString;
934
- source: z.ZodEnum<{
935
- "wrangler.toml": "wrangler.toml";
936
- secrets: "secrets";
937
- ".dev.vars": ".dev.vars";
938
- }>;
939
- }, z.core.$strip>>;
1579
+ workers: z.ZodObject<{
1580
+ cpuMs: z.ZodDefault<z.ZodNumber>;
1581
+ memoryMb: z.ZodDefault<z.ZodNumber>;
1582
+ }, z.core.$strip>;
1583
+ kvNamespaces: z.ZodArray<z.ZodObject<{
1584
+ name: z.ZodString;
1585
+ purpose: z.ZodEnum<{
1586
+ sessions: "sessions";
1587
+ delegations: "delegations";
1588
+ cache: "cache";
1589
+ general: "general";
1590
+ }>;
1591
+ }, z.core.$strip>>;
1592
+ environmentVariables: z.ZodArray<z.ZodObject<{
1593
+ name: z.ZodString;
1594
+ value: z.ZodString;
1595
+ source: z.ZodEnum<{
1596
+ "wrangler.toml": "wrangler.toml";
1597
+ secrets: "secrets";
1598
+ ".dev.vars": ".dev.vars";
1599
+ }>;
1600
+ }, z.core.$strip>>;
940
1601
  }, z.core.$strip>>;
941
1602
  node: z.ZodOptional<z.ZodObject<{
942
- server: z.ZodObject<{
943
- port: z.ZodDefault<z.ZodNumber>;
944
- host: z.ZodDefault<z.ZodString>;
945
- cors: z.ZodDefault<z.ZodBoolean>;
946
- timeout: z.ZodDefault<z.ZodNumber>;
947
- }, z.core.$strip>;
948
- storage: z.ZodObject<{
949
- type: z.ZodEnum<{
950
- memory: "memory";
951
- redis: "redis";
952
- postgres: "postgres";
953
- mongodb: "mongodb";
954
- }>;
955
- connection: z.ZodOptional<z.ZodObject<{
956
- host: z.ZodOptional<z.ZodString>;
957
- port: z.ZodOptional<z.ZodNumber>;
958
- database: z.ZodOptional<z.ZodString>;
959
- }, z.core.$strip>>;
960
- }, z.core.$strip>;
1603
+ server: z.ZodObject<{
1604
+ port: z.ZodDefault<z.ZodNumber>;
1605
+ host: z.ZodDefault<z.ZodString>;
1606
+ cors: z.ZodDefault<z.ZodBoolean>;
1607
+ timeout: z.ZodDefault<z.ZodNumber>;
1608
+ }, z.core.$strip>;
1609
+ storage: z.ZodObject<{
1610
+ type: z.ZodEnum<{
1611
+ memory: "memory";
1612
+ redis: "redis";
1613
+ postgres: "postgres";
1614
+ mongodb: "mongodb";
1615
+ }>;
1616
+ connection: z.ZodOptional<z.ZodObject<{
1617
+ host: z.ZodOptional<z.ZodString>;
1618
+ port: z.ZodOptional<z.ZodNumber>;
1619
+ database: z.ZodOptional<z.ZodString>;
1620
+ }, z.core.$strip>>;
1621
+ }, z.core.$strip>;
961
1622
  }, z.core.$strip>>;
962
1623
  vercel: z.ZodOptional<z.ZodObject<{
963
- environmentVariables: z.ZodArray<z.ZodObject<{
964
- name: z.ZodString;
965
- value: z.ZodString;
966
- source: z.ZodEnum<{
967
- "vercel-dashboard": "vercel-dashboard";
968
- ".env.local": ".env.local";
969
- }>;
970
- }, z.core.$strip>>;
971
- edgeRuntime: z.ZodOptional<z.ZodObject<{
972
- maxDuration: z.ZodOptional<z.ZodNumber>;
973
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
974
- }, z.core.$strip>>;
1624
+ environmentVariables: z.ZodArray<z.ZodObject<{
1625
+ name: z.ZodString;
1626
+ value: z.ZodString;
1627
+ source: z.ZodEnum<{
1628
+ "vercel-dashboard": "vercel-dashboard";
1629
+ ".env.local": ".env.local";
1630
+ }>;
1631
+ }, z.core.$strip>>;
1632
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
1633
+ maxDuration: z.ZodOptional<z.ZodNumber>;
1634
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1635
+ }, z.core.$strip>>;
975
1636
  }, z.core.$strip>>;
976
- }, z.core.$strip>;
977
- metadata: z.ZodObject<{
1637
+ }, z.core.$strip>;
1638
+ metadata: z.ZodObject<{
978
1639
  version: z.ZodString;
979
1640
  lastUpdated: z.ZodString;
980
1641
  source: z.ZodEnum<{
981
- code: "code";
982
- dashboard: "dashboard";
983
- mixed: "mixed";
1642
+ dashboard: "dashboard";
1643
+ code: "code";
1644
+ mixed: "mixed";
984
1645
  }>;
985
1646
  serverUrl: z.ZodOptional<z.ZodString>;
986
1647
  deploymentStatus: z.ZodOptional<z.ZodEnum<{
987
- error: "error";
988
- active: "active";
989
- inactive: "inactive";
1648
+ error: "error";
1649
+ active: "active";
1650
+ inactive: "inactive";
990
1651
  }>>;
1652
+ }, z.core.$strip>;
1653
+ toolProtection: z.ZodObject<{
1654
+ source: z.ZodEnum<{
1655
+ file: "file";
1656
+ agentshield: "agentshield";
1657
+ inline: "inline";
1658
+ }>;
1659
+ agentShield: z.ZodOptional<z.ZodObject<{
1660
+ apiUrl: z.ZodString;
1661
+ cacheTtl: z.ZodNumber;
1662
+ }, z.core.$strip>>;
1663
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1664
+ requiresDelegation: z.ZodBoolean;
1665
+ requiredScopes: z.ZodArray<z.ZodString>;
1666
+ riskLevel: z.ZodOptional<z.ZodEnum<{
1667
+ low: "low";
1668
+ medium: "medium";
1669
+ high: "high";
1670
+ critical: "critical";
1671
+ }>>;
1672
+ oauthProvider: z.ZodOptional<z.ZodString>;
1673
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1674
+ type: z.ZodLiteral<"oauth">;
1675
+ provider: z.ZodString;
1676
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1677
+ }, z.core.$strip>, z.ZodObject<{
1678
+ type: z.ZodLiteral<"oauth2">;
1679
+ provider: z.ZodString;
1680
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1681
+ }, z.core.$strip>, z.ZodObject<{
1682
+ type: z.ZodLiteral<"password">;
1683
+ provider: z.ZodString;
1684
+ }, z.core.$strip>, z.ZodObject<{
1685
+ type: z.ZodLiteral<"mdl">;
1686
+ issuer: z.ZodString;
1687
+ credentialType: z.ZodOptional<z.ZodString>;
1688
+ }, z.core.$strip>, z.ZodObject<{
1689
+ type: z.ZodLiteral<"idv">;
1690
+ provider: z.ZodString;
1691
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
1692
+ basic: "basic";
1693
+ enhanced: "enhanced";
1694
+ loa3: "loa3";
1695
+ }>>;
1696
+ }, z.core.$strip>, z.ZodObject<{
1697
+ type: z.ZodLiteral<"verifiable_credential">;
1698
+ credentialType: z.ZodString;
1699
+ issuer: z.ZodOptional<z.ZodString>;
1700
+ }, z.core.$strip>, z.ZodObject<{
1701
+ type: z.ZodLiteral<"credential">;
1702
+ credentialType: z.ZodString;
1703
+ issuer: z.ZodOptional<z.ZodString>;
1704
+ }, z.core.$strip>, z.ZodObject<{
1705
+ type: z.ZodLiteral<"webauthn">;
1706
+ rpId: z.ZodOptional<z.ZodString>;
1707
+ userVerification: z.ZodOptional<z.ZodEnum<{
1708
+ required: "required";
1709
+ preferred: "preferred";
1710
+ discouraged: "discouraged";
1711
+ }>>;
1712
+ }, z.core.$strip>, z.ZodObject<{
1713
+ type: z.ZodLiteral<"siwe">;
1714
+ chainId: z.ZodOptional<z.ZodNumber>;
1715
+ domain: z.ZodOptional<z.ZodString>;
1716
+ }, z.core.$strip>, z.ZodObject<{
1717
+ type: z.ZodLiteral<"apikey">;
1718
+ envVarNames: z.ZodArray<z.ZodString>;
1719
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1720
+ }, z.core.$strip>, z.ZodObject<{
1721
+ type: z.ZodLiteral<"none">;
1722
+ }, z.core.$strip>], "type">>;
1723
+ }, z.core.$strip>>>;
1724
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
1725
+ requiresDelegation: z.ZodBoolean;
1726
+ requiredScopes: z.ZodArray<z.ZodString>;
1727
+ riskLevel: z.ZodOptional<z.ZodEnum<{
1728
+ low: "low";
1729
+ medium: "medium";
1730
+ high: "high";
1731
+ critical: "critical";
1732
+ }>>;
1733
+ oauthProvider: z.ZodOptional<z.ZodString>;
1734
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1735
+ type: z.ZodLiteral<"oauth">;
1736
+ provider: z.ZodString;
1737
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1738
+ }, z.core.$strip>, z.ZodObject<{
1739
+ type: z.ZodLiteral<"oauth2">;
1740
+ provider: z.ZodString;
1741
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1742
+ }, z.core.$strip>, z.ZodObject<{
1743
+ type: z.ZodLiteral<"password">;
1744
+ provider: z.ZodString;
1745
+ }, z.core.$strip>, z.ZodObject<{
1746
+ type: z.ZodLiteral<"mdl">;
1747
+ issuer: z.ZodString;
1748
+ credentialType: z.ZodOptional<z.ZodString>;
1749
+ }, z.core.$strip>, z.ZodObject<{
1750
+ type: z.ZodLiteral<"idv">;
1751
+ provider: z.ZodString;
1752
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
1753
+ basic: "basic";
1754
+ enhanced: "enhanced";
1755
+ loa3: "loa3";
1756
+ }>>;
1757
+ }, z.core.$strip>, z.ZodObject<{
1758
+ type: z.ZodLiteral<"verifiable_credential">;
1759
+ credentialType: z.ZodString;
1760
+ issuer: z.ZodOptional<z.ZodString>;
1761
+ }, z.core.$strip>, z.ZodObject<{
1762
+ type: z.ZodLiteral<"credential">;
1763
+ credentialType: z.ZodString;
1764
+ issuer: z.ZodOptional<z.ZodString>;
1765
+ }, z.core.$strip>, z.ZodObject<{
1766
+ type: z.ZodLiteral<"webauthn">;
1767
+ rpId: z.ZodOptional<z.ZodString>;
1768
+ userVerification: z.ZodOptional<z.ZodEnum<{
1769
+ required: "required";
1770
+ preferred: "preferred";
1771
+ discouraged: "discouraged";
1772
+ }>>;
1773
+ }, z.core.$strip>, z.ZodObject<{
1774
+ type: z.ZodLiteral<"siwe">;
1775
+ chainId: z.ZodOptional<z.ZodNumber>;
1776
+ domain: z.ZodOptional<z.ZodString>;
1777
+ }, z.core.$strip>, z.ZodObject<{
1778
+ type: z.ZodLiteral<"apikey">;
1779
+ envVarNames: z.ZodArray<z.ZodString>;
1780
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1781
+ }, z.core.$strip>, z.ZodObject<{
1782
+ type: z.ZodLiteral<"none">;
1783
+ }, z.core.$strip>], "type">>;
1784
+ }, z.core.$strip>>;
1785
+ }, z.core.$strip>;
991
1786
  }, z.core.$strip>;
1787
+ toolProtections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1788
+ requiresDelegation: z.ZodBoolean;
1789
+ requiredScopes: z.ZodArray<z.ZodString>;
1790
+ riskLevel: z.ZodOptional<z.ZodEnum<{
1791
+ low: "low";
1792
+ medium: "medium";
1793
+ high: "high";
1794
+ critical: "critical";
1795
+ }>>;
1796
+ oauthProvider: z.ZodOptional<z.ZodString>;
1797
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1798
+ type: z.ZodLiteral<"oauth">;
1799
+ provider: z.ZodString;
1800
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1801
+ }, z.core.$strip>, z.ZodObject<{
1802
+ type: z.ZodLiteral<"oauth2">;
1803
+ provider: z.ZodString;
1804
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1805
+ }, z.core.$strip>, z.ZodObject<{
1806
+ type: z.ZodLiteral<"password">;
1807
+ provider: z.ZodString;
1808
+ }, z.core.$strip>, z.ZodObject<{
1809
+ type: z.ZodLiteral<"mdl">;
1810
+ issuer: z.ZodString;
1811
+ credentialType: z.ZodOptional<z.ZodString>;
1812
+ }, z.core.$strip>, z.ZodObject<{
1813
+ type: z.ZodLiteral<"idv">;
1814
+ provider: z.ZodString;
1815
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
1816
+ basic: "basic";
1817
+ enhanced: "enhanced";
1818
+ loa3: "loa3";
1819
+ }>>;
1820
+ }, z.core.$strip>, z.ZodObject<{
1821
+ type: z.ZodLiteral<"verifiable_credential">;
1822
+ credentialType: z.ZodString;
1823
+ issuer: z.ZodOptional<z.ZodString>;
1824
+ }, z.core.$strip>, z.ZodObject<{
1825
+ type: z.ZodLiteral<"credential">;
1826
+ credentialType: z.ZodString;
1827
+ issuer: z.ZodOptional<z.ZodString>;
1828
+ }, z.core.$strip>, z.ZodObject<{
1829
+ type: z.ZodLiteral<"webauthn">;
1830
+ rpId: z.ZodOptional<z.ZodString>;
1831
+ userVerification: z.ZodOptional<z.ZodEnum<{
1832
+ required: "required";
1833
+ preferred: "preferred";
1834
+ discouraged: "discouraged";
1835
+ }>>;
1836
+ }, z.core.$strip>, z.ZodObject<{
1837
+ type: z.ZodLiteral<"siwe">;
1838
+ chainId: z.ZodOptional<z.ZodNumber>;
1839
+ domain: z.ZodOptional<z.ZodString>;
1840
+ }, z.core.$strip>, z.ZodObject<{
1841
+ type: z.ZodLiteral<"apikey">;
1842
+ envVarNames: z.ZodArray<z.ZodString>;
1843
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1844
+ }, z.core.$strip>, z.ZodObject<{
1845
+ type: z.ZodLiteral<"none">;
1846
+ }, z.core.$strip>], "type">>;
1847
+ }, z.core.$strip>>>;
1848
+ }, z.core.$strip>;
1849
+ metadata: z.ZodOptional<z.ZodObject<{
1850
+ requestId: z.ZodOptional<z.ZodString>;
1851
+ timestamp: z.ZodOptional<z.ZodString>;
1852
+ cachedUntil: z.ZodOptional<z.ZodString>;
1853
+ }, z.core.$strip>>;
1854
+ }, z.core.$strip>;
1855
+ export declare const updateServerConfigRequestSchema: z.ZodObject<{
1856
+ projectId: z.ZodString;
1857
+ config: z.ZodObject<{
1858
+ identity: z.ZodOptional<z.ZodObject<{
1859
+ agentDid: z.ZodOptional<z.ZodString>;
1860
+ serverDid: z.ZodString;
1861
+ environment: z.ZodEnum<{
1862
+ development: "development";
1863
+ production: "production";
1864
+ }>;
1865
+ storageLocation: z.ZodEnum<{
1866
+ "cloudflare-kv": "cloudflare-kv";
1867
+ "file-system": "file-system";
1868
+ "env-vars": "env-vars";
1869
+ }>;
1870
+ }, z.core.$strip>>;
1871
+ proofing: z.ZodOptional<z.ZodObject<{
1872
+ enabled: z.ZodBoolean;
1873
+ destinations: z.ZodArray<z.ZodObject<{
1874
+ type: z.ZodEnum<{
1875
+ custom: "custom";
1876
+ agentshield: "agentshield";
1877
+ kta: "kta";
1878
+ }>;
1879
+ apiUrl: z.ZodString;
1880
+ apiKey: z.ZodOptional<z.ZodString>;
1881
+ }, z.core.$strip>>;
1882
+ batchQueue: z.ZodObject<{
1883
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
1884
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1885
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1886
+ }, z.core.$strip>;
1887
+ }, z.core.$strip>>;
1888
+ delegation: z.ZodOptional<z.ZodObject<{
1889
+ enabled: z.ZodBoolean;
1890
+ enforceStrictly: z.ZodBoolean;
1891
+ verifier: z.ZodObject<{
1892
+ type: z.ZodEnum<{
1893
+ "cloudflare-kv": "cloudflare-kv";
1894
+ custom: "custom";
1895
+ agentshield: "agentshield";
1896
+ kta: "kta";
1897
+ memory: "memory";
1898
+ redis: "redis";
1899
+ dynamodb: "dynamodb";
1900
+ }>;
1901
+ apiUrl: z.ZodOptional<z.ZodString>;
1902
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
1903
+ }, z.core.$strip>;
1904
+ authorization: z.ZodObject<{
1905
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1906
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
1907
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1908
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1909
+ }, z.core.$strip>;
1910
+ }, z.core.$strip>>;
1911
+ toolProtection: z.ZodOptional<z.ZodObject<{
1912
+ source: z.ZodEnum<{
1913
+ file: "file";
1914
+ agentshield: "agentshield";
1915
+ inline: "inline";
1916
+ }>;
1917
+ agentShield: z.ZodOptional<z.ZodObject<{
1918
+ apiUrl: z.ZodString;
1919
+ cacheTtl: z.ZodNumber;
1920
+ }, z.core.$strip>>;
1921
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1922
+ requiresDelegation: z.ZodBoolean;
1923
+ requiredScopes: z.ZodArray<z.ZodString>;
1924
+ riskLevel: z.ZodOptional<z.ZodEnum<{
1925
+ low: "low";
1926
+ medium: "medium";
1927
+ high: "high";
1928
+ critical: "critical";
1929
+ }>>;
1930
+ oauthProvider: z.ZodOptional<z.ZodString>;
1931
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1932
+ type: z.ZodLiteral<"oauth">;
1933
+ provider: z.ZodString;
1934
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1935
+ }, z.core.$strip>, z.ZodObject<{
1936
+ type: z.ZodLiteral<"oauth2">;
1937
+ provider: z.ZodString;
1938
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1939
+ }, z.core.$strip>, z.ZodObject<{
1940
+ type: z.ZodLiteral<"password">;
1941
+ provider: z.ZodString;
1942
+ }, z.core.$strip>, z.ZodObject<{
1943
+ type: z.ZodLiteral<"mdl">;
1944
+ issuer: z.ZodString;
1945
+ credentialType: z.ZodOptional<z.ZodString>;
1946
+ }, z.core.$strip>, z.ZodObject<{
1947
+ type: z.ZodLiteral<"idv">;
1948
+ provider: z.ZodString;
1949
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
1950
+ basic: "basic";
1951
+ enhanced: "enhanced";
1952
+ loa3: "loa3";
1953
+ }>>;
1954
+ }, z.core.$strip>, z.ZodObject<{
1955
+ type: z.ZodLiteral<"verifiable_credential">;
1956
+ credentialType: z.ZodString;
1957
+ issuer: z.ZodOptional<z.ZodString>;
1958
+ }, z.core.$strip>, z.ZodObject<{
1959
+ type: z.ZodLiteral<"credential">;
1960
+ credentialType: z.ZodString;
1961
+ issuer: z.ZodOptional<z.ZodString>;
1962
+ }, z.core.$strip>, z.ZodObject<{
1963
+ type: z.ZodLiteral<"webauthn">;
1964
+ rpId: z.ZodOptional<z.ZodString>;
1965
+ userVerification: z.ZodOptional<z.ZodEnum<{
1966
+ required: "required";
1967
+ preferred: "preferred";
1968
+ discouraged: "discouraged";
1969
+ }>>;
1970
+ }, z.core.$strip>, z.ZodObject<{
1971
+ type: z.ZodLiteral<"siwe">;
1972
+ chainId: z.ZodOptional<z.ZodNumber>;
1973
+ domain: z.ZodOptional<z.ZodString>;
1974
+ }, z.core.$strip>, z.ZodObject<{
1975
+ type: z.ZodLiteral<"apikey">;
1976
+ envVarNames: z.ZodArray<z.ZodString>;
1977
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1978
+ }, z.core.$strip>, z.ZodObject<{
1979
+ type: z.ZodLiteral<"none">;
1980
+ }, z.core.$strip>], "type">>;
1981
+ }, z.core.$strip>>>;
1982
+ }, z.core.$strip>>;
1983
+ audit: z.ZodOptional<z.ZodObject<{
1984
+ enabled: z.ZodBoolean;
1985
+ includeProofHashes: z.ZodBoolean;
1986
+ includePayloads: z.ZodBoolean;
1987
+ }, z.core.$strip>>;
1988
+ session: z.ZodOptional<z.ZodObject<{
1989
+ timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
1990
+ ttlMinutes: z.ZodDefault<z.ZodNumber>;
1991
+ absoluteLifetime: z.ZodOptional<z.ZodNumber>;
1992
+ }, z.core.$strip>>;
1993
+ platform: z.ZodOptional<z.ZodObject<{
1994
+ type: z.ZodEnum<{
1995
+ cloudflare: "cloudflare";
1996
+ node: "node";
1997
+ vercel: "vercel";
1998
+ }>;
1999
+ cloudflare: z.ZodOptional<z.ZodObject<{
2000
+ workers: z.ZodObject<{
2001
+ cpuMs: z.ZodDefault<z.ZodNumber>;
2002
+ memoryMb: z.ZodDefault<z.ZodNumber>;
2003
+ }, z.core.$strip>;
2004
+ kvNamespaces: z.ZodArray<z.ZodObject<{
2005
+ name: z.ZodString;
2006
+ purpose: z.ZodEnum<{
2007
+ sessions: "sessions";
2008
+ delegations: "delegations";
2009
+ cache: "cache";
2010
+ general: "general";
2011
+ }>;
2012
+ }, z.core.$strip>>;
2013
+ environmentVariables: z.ZodArray<z.ZodObject<{
2014
+ name: z.ZodString;
2015
+ value: z.ZodString;
2016
+ source: z.ZodEnum<{
2017
+ "wrangler.toml": "wrangler.toml";
2018
+ secrets: "secrets";
2019
+ ".dev.vars": ".dev.vars";
2020
+ }>;
2021
+ }, z.core.$strip>>;
2022
+ }, z.core.$strip>>;
2023
+ node: z.ZodOptional<z.ZodObject<{
2024
+ server: z.ZodObject<{
2025
+ port: z.ZodDefault<z.ZodNumber>;
2026
+ host: z.ZodDefault<z.ZodString>;
2027
+ cors: z.ZodDefault<z.ZodBoolean>;
2028
+ timeout: z.ZodDefault<z.ZodNumber>;
2029
+ }, z.core.$strip>;
2030
+ storage: z.ZodObject<{
2031
+ type: z.ZodEnum<{
2032
+ memory: "memory";
2033
+ redis: "redis";
2034
+ postgres: "postgres";
2035
+ mongodb: "mongodb";
2036
+ }>;
2037
+ connection: z.ZodOptional<z.ZodObject<{
2038
+ host: z.ZodOptional<z.ZodString>;
2039
+ port: z.ZodOptional<z.ZodNumber>;
2040
+ database: z.ZodOptional<z.ZodString>;
2041
+ }, z.core.$strip>>;
2042
+ }, z.core.$strip>;
2043
+ }, z.core.$strip>>;
2044
+ vercel: z.ZodOptional<z.ZodObject<{
2045
+ environmentVariables: z.ZodArray<z.ZodObject<{
2046
+ name: z.ZodString;
2047
+ value: z.ZodString;
2048
+ source: z.ZodEnum<{
2049
+ "vercel-dashboard": "vercel-dashboard";
2050
+ ".env.local": ".env.local";
2051
+ }>;
2052
+ }, z.core.$strip>>;
2053
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
2054
+ maxDuration: z.ZodOptional<z.ZodNumber>;
2055
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2056
+ }, z.core.$strip>>;
2057
+ }, z.core.$strip>>;
2058
+ }, z.core.$strip>>;
2059
+ metadata: z.ZodOptional<z.ZodObject<{
2060
+ version: z.ZodString;
2061
+ lastUpdated: z.ZodString;
2062
+ source: z.ZodEnum<{
2063
+ dashboard: "dashboard";
2064
+ code: "code";
2065
+ mixed: "mixed";
2066
+ }>;
2067
+ serverUrl: z.ZodOptional<z.ZodString>;
2068
+ deploymentStatus: z.ZodOptional<z.ZodEnum<{
2069
+ error: "error";
2070
+ active: "active";
2071
+ inactive: "inactive";
2072
+ }>>;
2073
+ }, z.core.$strip>>;
2074
+ }, z.core.$strip>;
992
2075
  }, z.core.$strip>;
993
- declare const mergedMcpIServerConfigSchema: z.ZodObject<{
994
- identity: z.ZodObject<{
2076
+ export declare const updateServerConfigResponseSchema: z.ZodObject<{
2077
+ success: z.ZodBoolean;
2078
+ data: z.ZodObject<{
2079
+ config: z.ZodObject<{
2080
+ identity: z.ZodObject<{
995
2081
  agentDid: z.ZodOptional<z.ZodString>;
996
2082
  serverDid: z.ZodString;
997
2083
  environment: z.ZodEnum<{
998
- development: "development";
999
- production: "production";
2084
+ development: "development";
2085
+ production: "production";
1000
2086
  }>;
1001
2087
  storageLocation: z.ZodEnum<{
1002
- "cloudflare-kv": "cloudflare-kv";
1003
- "file-system": "file-system";
1004
- "env-vars": "env-vars";
2088
+ "cloudflare-kv": "cloudflare-kv";
2089
+ "file-system": "file-system";
2090
+ "env-vars": "env-vars";
1005
2091
  }>;
1006
- }, z.core.$strip>;
1007
- proofing: z.ZodObject<{
2092
+ }, z.core.$strip>;
2093
+ proofing: z.ZodObject<{
1008
2094
  enabled: z.ZodBoolean;
1009
2095
  destinations: z.ZodArray<z.ZodObject<{
1010
- type: z.ZodEnum<{
1011
- custom: "custom";
1012
- agentshield: "agentshield";
1013
- kta: "kta";
1014
- }>;
1015
- apiUrl: z.ZodString;
1016
- apiKey: z.ZodOptional<z.ZodString>;
2096
+ type: z.ZodEnum<{
2097
+ custom: "custom";
2098
+ agentshield: "agentshield";
2099
+ kta: "kta";
2100
+ }>;
2101
+ apiUrl: z.ZodString;
2102
+ apiKey: z.ZodOptional<z.ZodString>;
1017
2103
  }, z.core.$strip>>;
1018
2104
  batchQueue: z.ZodObject<{
1019
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
1020
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1021
- maxRetries: z.ZodDefault<z.ZodNumber>;
2105
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
2106
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
2107
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1022
2108
  }, z.core.$strip>;
1023
- }, z.core.$strip>;
1024
- delegation: z.ZodObject<{
2109
+ }, z.core.$strip>;
2110
+ delegation: z.ZodObject<{
1025
2111
  enabled: z.ZodBoolean;
1026
2112
  enforceStrictly: z.ZodBoolean;
1027
2113
  verifier: z.ZodObject<{
1028
- type: z.ZodEnum<{
1029
- custom: "custom";
1030
- agentshield: "agentshield";
1031
- kta: "kta";
1032
- memory: "memory";
1033
- "cloudflare-kv": "cloudflare-kv";
1034
- redis: "redis";
1035
- dynamodb: "dynamodb";
1036
- }>;
1037
- apiUrl: z.ZodOptional<z.ZodString>;
1038
- cacheTtl: z.ZodOptional<z.ZodNumber>;
2114
+ type: z.ZodEnum<{
2115
+ "cloudflare-kv": "cloudflare-kv";
2116
+ custom: "custom";
2117
+ agentshield: "agentshield";
2118
+ kta: "kta";
2119
+ memory: "memory";
2120
+ redis: "redis";
2121
+ dynamodb: "dynamodb";
2122
+ }>;
2123
+ apiUrl: z.ZodOptional<z.ZodString>;
2124
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
1039
2125
  }, z.core.$strip>;
1040
2126
  authorization: z.ZodObject<{
1041
- authorizationUrl: z.ZodOptional<z.ZodString>;
1042
- minReputationScore: z.ZodOptional<z.ZodNumber>;
1043
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1044
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
2127
+ authorizationUrl: z.ZodOptional<z.ZodString>;
2128
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
2129
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
2130
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1045
2131
  }, z.core.$strip>;
1046
- }, z.core.$strip>;
1047
- audit: z.ZodObject<{
2132
+ }, z.core.$strip>;
2133
+ toolProtection: z.ZodObject<{
2134
+ source: z.ZodEnum<{
2135
+ file: "file";
2136
+ agentshield: "agentshield";
2137
+ inline: "inline";
2138
+ }>;
2139
+ agentShield: z.ZodOptional<z.ZodObject<{
2140
+ apiUrl: z.ZodString;
2141
+ cacheTtl: z.ZodNumber;
2142
+ }, z.core.$strip>>;
2143
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2144
+ requiresDelegation: z.ZodBoolean;
2145
+ requiredScopes: z.ZodArray<z.ZodString>;
2146
+ riskLevel: z.ZodOptional<z.ZodEnum<{
2147
+ low: "low";
2148
+ medium: "medium";
2149
+ high: "high";
2150
+ critical: "critical";
2151
+ }>>;
2152
+ oauthProvider: z.ZodOptional<z.ZodString>;
2153
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2154
+ type: z.ZodLiteral<"oauth">;
2155
+ provider: z.ZodString;
2156
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2157
+ }, z.core.$strip>, z.ZodObject<{
2158
+ type: z.ZodLiteral<"oauth2">;
2159
+ provider: z.ZodString;
2160
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2161
+ }, z.core.$strip>, z.ZodObject<{
2162
+ type: z.ZodLiteral<"password">;
2163
+ provider: z.ZodString;
2164
+ }, z.core.$strip>, z.ZodObject<{
2165
+ type: z.ZodLiteral<"mdl">;
2166
+ issuer: z.ZodString;
2167
+ credentialType: z.ZodOptional<z.ZodString>;
2168
+ }, z.core.$strip>, z.ZodObject<{
2169
+ type: z.ZodLiteral<"idv">;
2170
+ provider: z.ZodString;
2171
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
2172
+ basic: "basic";
2173
+ enhanced: "enhanced";
2174
+ loa3: "loa3";
2175
+ }>>;
2176
+ }, z.core.$strip>, z.ZodObject<{
2177
+ type: z.ZodLiteral<"verifiable_credential">;
2178
+ credentialType: z.ZodString;
2179
+ issuer: z.ZodOptional<z.ZodString>;
2180
+ }, z.core.$strip>, z.ZodObject<{
2181
+ type: z.ZodLiteral<"credential">;
2182
+ credentialType: z.ZodString;
2183
+ issuer: z.ZodOptional<z.ZodString>;
2184
+ }, z.core.$strip>, z.ZodObject<{
2185
+ type: z.ZodLiteral<"webauthn">;
2186
+ rpId: z.ZodOptional<z.ZodString>;
2187
+ userVerification: z.ZodOptional<z.ZodEnum<{
2188
+ required: "required";
2189
+ preferred: "preferred";
2190
+ discouraged: "discouraged";
2191
+ }>>;
2192
+ }, z.core.$strip>, z.ZodObject<{
2193
+ type: z.ZodLiteral<"siwe">;
2194
+ chainId: z.ZodOptional<z.ZodNumber>;
2195
+ domain: z.ZodOptional<z.ZodString>;
2196
+ }, z.core.$strip>, z.ZodObject<{
2197
+ type: z.ZodLiteral<"apikey">;
2198
+ envVarNames: z.ZodArray<z.ZodString>;
2199
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
2200
+ }, z.core.$strip>, z.ZodObject<{
2201
+ type: z.ZodLiteral<"none">;
2202
+ }, z.core.$strip>], "type">>;
2203
+ }, z.core.$strip>>>;
2204
+ }, z.core.$strip>;
2205
+ audit: z.ZodObject<{
1048
2206
  enabled: z.ZodBoolean;
1049
2207
  includeProofHashes: z.ZodBoolean;
1050
2208
  includePayloads: z.ZodBoolean;
1051
- }, z.core.$strip>;
1052
- session: z.ZodObject<{
2209
+ }, z.core.$strip>;
2210
+ session: z.ZodObject<{
1053
2211
  timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
1054
2212
  ttlMinutes: z.ZodDefault<z.ZodNumber>;
1055
2213
  absoluteLifetime: z.ZodOptional<z.ZodNumber>;
1056
- }, z.core.$strip>;
1057
- platform: z.ZodObject<{
2214
+ }, z.core.$strip>;
2215
+ platform: z.ZodObject<{
1058
2216
  type: z.ZodEnum<{
1059
- cloudflare: "cloudflare";
1060
- node: "node";
1061
- vercel: "vercel";
2217
+ cloudflare: "cloudflare";
2218
+ node: "node";
2219
+ vercel: "vercel";
1062
2220
  }>;
1063
2221
  cloudflare: z.ZodOptional<z.ZodObject<{
1064
- workers: z.ZodObject<{
1065
- cpuMs: z.ZodDefault<z.ZodNumber>;
1066
- memoryMb: z.ZodDefault<z.ZodNumber>;
1067
- }, z.core.$strip>;
1068
- kvNamespaces: z.ZodArray<z.ZodObject<{
1069
- name: z.ZodString;
1070
- purpose: z.ZodEnum<{
1071
- sessions: "sessions";
1072
- delegations: "delegations";
1073
- cache: "cache";
1074
- general: "general";
1075
- }>;
1076
- }, z.core.$strip>>;
1077
- environmentVariables: z.ZodArray<z.ZodObject<{
1078
- name: z.ZodString;
1079
- value: z.ZodString;
1080
- source: z.ZodEnum<{
1081
- "wrangler.toml": "wrangler.toml";
1082
- secrets: "secrets";
1083
- ".dev.vars": ".dev.vars";
1084
- }>;
1085
- }, z.core.$strip>>;
2222
+ workers: z.ZodObject<{
2223
+ cpuMs: z.ZodDefault<z.ZodNumber>;
2224
+ memoryMb: z.ZodDefault<z.ZodNumber>;
2225
+ }, z.core.$strip>;
2226
+ kvNamespaces: z.ZodArray<z.ZodObject<{
2227
+ name: z.ZodString;
2228
+ purpose: z.ZodEnum<{
2229
+ sessions: "sessions";
2230
+ delegations: "delegations";
2231
+ cache: "cache";
2232
+ general: "general";
2233
+ }>;
2234
+ }, z.core.$strip>>;
2235
+ environmentVariables: z.ZodArray<z.ZodObject<{
2236
+ name: z.ZodString;
2237
+ value: z.ZodString;
2238
+ source: z.ZodEnum<{
2239
+ "wrangler.toml": "wrangler.toml";
2240
+ secrets: "secrets";
2241
+ ".dev.vars": ".dev.vars";
2242
+ }>;
2243
+ }, z.core.$strip>>;
1086
2244
  }, z.core.$strip>>;
1087
2245
  node: z.ZodOptional<z.ZodObject<{
1088
- server: z.ZodObject<{
1089
- port: z.ZodDefault<z.ZodNumber>;
1090
- host: z.ZodDefault<z.ZodString>;
1091
- cors: z.ZodDefault<z.ZodBoolean>;
1092
- timeout: z.ZodDefault<z.ZodNumber>;
1093
- }, z.core.$strip>;
1094
- storage: z.ZodObject<{
1095
- type: z.ZodEnum<{
1096
- memory: "memory";
1097
- redis: "redis";
1098
- postgres: "postgres";
1099
- mongodb: "mongodb";
1100
- }>;
1101
- connection: z.ZodOptional<z.ZodObject<{
1102
- host: z.ZodOptional<z.ZodString>;
1103
- port: z.ZodOptional<z.ZodNumber>;
1104
- database: z.ZodOptional<z.ZodString>;
1105
- }, z.core.$strip>>;
1106
- }, z.core.$strip>;
2246
+ server: z.ZodObject<{
2247
+ port: z.ZodDefault<z.ZodNumber>;
2248
+ host: z.ZodDefault<z.ZodString>;
2249
+ cors: z.ZodDefault<z.ZodBoolean>;
2250
+ timeout: z.ZodDefault<z.ZodNumber>;
2251
+ }, z.core.$strip>;
2252
+ storage: z.ZodObject<{
2253
+ type: z.ZodEnum<{
2254
+ memory: "memory";
2255
+ redis: "redis";
2256
+ postgres: "postgres";
2257
+ mongodb: "mongodb";
2258
+ }>;
2259
+ connection: z.ZodOptional<z.ZodObject<{
2260
+ host: z.ZodOptional<z.ZodString>;
2261
+ port: z.ZodOptional<z.ZodNumber>;
2262
+ database: z.ZodOptional<z.ZodString>;
2263
+ }, z.core.$strip>>;
2264
+ }, z.core.$strip>;
1107
2265
  }, z.core.$strip>>;
1108
2266
  vercel: z.ZodOptional<z.ZodObject<{
1109
- environmentVariables: z.ZodArray<z.ZodObject<{
1110
- name: z.ZodString;
1111
- value: z.ZodString;
1112
- source: z.ZodEnum<{
1113
- "vercel-dashboard": "vercel-dashboard";
1114
- ".env.local": ".env.local";
1115
- }>;
1116
- }, z.core.$strip>>;
1117
- edgeRuntime: z.ZodOptional<z.ZodObject<{
1118
- maxDuration: z.ZodOptional<z.ZodNumber>;
1119
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1120
- }, z.core.$strip>>;
2267
+ environmentVariables: z.ZodArray<z.ZodObject<{
2268
+ name: z.ZodString;
2269
+ value: z.ZodString;
2270
+ source: z.ZodEnum<{
2271
+ "vercel-dashboard": "vercel-dashboard";
2272
+ ".env.local": ".env.local";
2273
+ }>;
2274
+ }, z.core.$strip>>;
2275
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
2276
+ maxDuration: z.ZodOptional<z.ZodNumber>;
2277
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2278
+ }, z.core.$strip>>;
1121
2279
  }, z.core.$strip>>;
1122
- }, z.core.$strip>;
1123
- metadata: z.ZodObject<{
2280
+ }, z.core.$strip>;
2281
+ metadata: z.ZodObject<{
1124
2282
  version: z.ZodString;
1125
2283
  lastUpdated: z.ZodString;
1126
2284
  source: z.ZodEnum<{
1127
- code: "code";
1128
- dashboard: "dashboard";
1129
- mixed: "mixed";
2285
+ dashboard: "dashboard";
2286
+ code: "code";
2287
+ mixed: "mixed";
1130
2288
  }>;
1131
2289
  serverUrl: z.ZodOptional<z.ZodString>;
1132
2290
  deploymentStatus: z.ZodOptional<z.ZodEnum<{
1133
- error: "error";
1134
- active: "active";
1135
- inactive: "inactive";
2291
+ error: "error";
2292
+ active: "active";
2293
+ inactive: "inactive";
1136
2294
  }>>;
2295
+ }, z.core.$strip>;
1137
2296
  }, z.core.$strip>;
1138
- toolProtection: z.ZodObject<{
1139
- source: z.ZodEnum<{
1140
- file: "file";
1141
- agentshield: "agentshield";
1142
- inline: "inline";
1143
- }>;
1144
- agentShield: z.ZodOptional<z.ZodObject<{
1145
- apiUrl: z.ZodString;
1146
- cacheTtl: z.ZodNumber;
1147
- }, z.core.$strip>>;
1148
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1149
- requiresDelegation: z.ZodBoolean;
1150
- requiredScopes: z.ZodArray<z.ZodString>;
1151
- riskLevel: z.ZodOptional<z.ZodEnum<{
1152
- low: "low";
1153
- medium: "medium";
1154
- high: "high";
1155
- critical: "critical";
1156
- }>>;
1157
- oauthProvider: z.ZodOptional<z.ZodString>;
1158
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1159
- type: z.ZodLiteral<"oauth">;
1160
- provider: z.ZodString;
1161
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1162
- }, z.core.$strip>, z.ZodObject<{
1163
- type: z.ZodLiteral<"oauth2">;
1164
- provider: z.ZodString;
1165
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1166
- }, z.core.$strip>, z.ZodObject<{
1167
- type: z.ZodLiteral<"password">;
1168
- provider: z.ZodString;
1169
- }, z.core.$strip>, z.ZodObject<{
1170
- type: z.ZodLiteral<"mdl">;
1171
- issuer: z.ZodString;
1172
- credentialType: z.ZodOptional<z.ZodString>;
1173
- }, z.core.$strip>, z.ZodObject<{
1174
- type: z.ZodLiteral<"idv">;
1175
- provider: z.ZodString;
1176
- verificationLevel: z.ZodOptional<z.ZodEnum<{
1177
- basic: "basic";
1178
- enhanced: "enhanced";
1179
- loa3: "loa3";
1180
- }>>;
1181
- }, z.core.$strip>, z.ZodObject<{
1182
- type: z.ZodLiteral<"verifiable_credential">;
1183
- credentialType: z.ZodString;
1184
- issuer: z.ZodOptional<z.ZodString>;
1185
- }, z.core.$strip>, z.ZodObject<{
1186
- type: z.ZodLiteral<"credential">;
1187
- credentialType: z.ZodString;
1188
- issuer: z.ZodOptional<z.ZodString>;
1189
- }, z.core.$strip>, z.ZodObject<{
1190
- type: z.ZodLiteral<"webauthn">;
1191
- rpId: z.ZodOptional<z.ZodString>;
1192
- userVerification: z.ZodOptional<z.ZodEnum<{
1193
- required: "required";
1194
- preferred: "preferred";
1195
- discouraged: "discouraged";
1196
- }>>;
1197
- }, z.core.$strip>, z.ZodObject<{
1198
- type: z.ZodLiteral<"siwe">;
1199
- chainId: z.ZodOptional<z.ZodNumber>;
1200
- domain: z.ZodOptional<z.ZodString>;
1201
- }, z.core.$strip>, z.ZodObject<{
1202
- type: z.ZodLiteral<"apikey">;
1203
- envVarNames: z.ZodArray<z.ZodString>;
1204
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1205
- }, z.core.$strip>, z.ZodObject<{
1206
- type: z.ZodLiteral<"none">;
1207
- }, z.core.$strip>], "type">>;
1208
- }, z.core.$strip>>>;
1209
- tools: z.ZodRecord<z.ZodString, z.ZodObject<{
1210
- requiresDelegation: z.ZodBoolean;
1211
- requiredScopes: z.ZodArray<z.ZodString>;
1212
- riskLevel: z.ZodOptional<z.ZodEnum<{
1213
- low: "low";
1214
- medium: "medium";
1215
- high: "high";
1216
- critical: "critical";
1217
- }>>;
1218
- oauthProvider: z.ZodOptional<z.ZodString>;
1219
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1220
- type: z.ZodLiteral<"oauth">;
1221
- provider: z.ZodString;
1222
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1223
- }, z.core.$strip>, z.ZodObject<{
1224
- type: z.ZodLiteral<"oauth2">;
1225
- provider: z.ZodString;
1226
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1227
- }, z.core.$strip>, z.ZodObject<{
1228
- type: z.ZodLiteral<"password">;
1229
- provider: z.ZodString;
1230
- }, z.core.$strip>, z.ZodObject<{
1231
- type: z.ZodLiteral<"mdl">;
1232
- issuer: z.ZodString;
1233
- credentialType: z.ZodOptional<z.ZodString>;
1234
- }, z.core.$strip>, z.ZodObject<{
1235
- type: z.ZodLiteral<"idv">;
1236
- provider: z.ZodString;
1237
- verificationLevel: z.ZodOptional<z.ZodEnum<{
1238
- basic: "basic";
1239
- enhanced: "enhanced";
1240
- loa3: "loa3";
1241
- }>>;
1242
- }, z.core.$strip>, z.ZodObject<{
1243
- type: z.ZodLiteral<"verifiable_credential">;
1244
- credentialType: z.ZodString;
1245
- issuer: z.ZodOptional<z.ZodString>;
1246
- }, z.core.$strip>, z.ZodObject<{
1247
- type: z.ZodLiteral<"credential">;
1248
- credentialType: z.ZodString;
1249
- issuer: z.ZodOptional<z.ZodString>;
1250
- }, z.core.$strip>, z.ZodObject<{
1251
- type: z.ZodLiteral<"webauthn">;
1252
- rpId: z.ZodOptional<z.ZodString>;
1253
- userVerification: z.ZodOptional<z.ZodEnum<{
1254
- required: "required";
1255
- preferred: "preferred";
1256
- discouraged: "discouraged";
1257
- }>>;
1258
- }, z.core.$strip>, z.ZodObject<{
1259
- type: z.ZodLiteral<"siwe">;
1260
- chainId: z.ZodOptional<z.ZodNumber>;
1261
- domain: z.ZodOptional<z.ZodString>;
1262
- }, z.core.$strip>, z.ZodObject<{
1263
- type: z.ZodLiteral<"apikey">;
1264
- envVarNames: z.ZodArray<z.ZodString>;
1265
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1266
- }, z.core.$strip>, z.ZodObject<{
1267
- type: z.ZodLiteral<"none">;
1268
- }, z.core.$strip>], "type">>;
1269
- }, z.core.$strip>>;
1270
- }, z.core.$strip>;
1271
- }, z.core.$strip>;
1272
- declare const getServerConfigRequestSchema: z.ZodObject<{
1273
- projectId: z.ZodString;
1274
- }, z.core.$strip>;
1275
- declare const getServerConfigResponseSchema: z.ZodObject<{
1276
- success: z.ZodBoolean;
1277
- data: z.ZodObject<{
1278
- config: z.ZodObject<{
1279
- identity: z.ZodObject<{
1280
- agentDid: z.ZodOptional<z.ZodString>;
1281
- serverDid: z.ZodString;
1282
- environment: z.ZodEnum<{
1283
- development: "development";
1284
- production: "production";
1285
- }>;
1286
- storageLocation: z.ZodEnum<{
1287
- "cloudflare-kv": "cloudflare-kv";
1288
- "file-system": "file-system";
1289
- "env-vars": "env-vars";
1290
- }>;
1291
- }, z.core.$strip>;
1292
- proofing: z.ZodObject<{
1293
- enabled: z.ZodBoolean;
1294
- destinations: z.ZodArray<z.ZodObject<{
1295
- type: z.ZodEnum<{
1296
- custom: "custom";
1297
- agentshield: "agentshield";
1298
- kta: "kta";
1299
- }>;
1300
- apiUrl: z.ZodString;
1301
- apiKey: z.ZodOptional<z.ZodString>;
1302
- }, z.core.$strip>>;
1303
- batchQueue: z.ZodObject<{
1304
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
1305
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1306
- maxRetries: z.ZodDefault<z.ZodNumber>;
1307
- }, z.core.$strip>;
1308
- }, z.core.$strip>;
1309
- delegation: z.ZodObject<{
1310
- enabled: z.ZodBoolean;
1311
- enforceStrictly: z.ZodBoolean;
1312
- verifier: z.ZodObject<{
1313
- type: z.ZodEnum<{
1314
- custom: "custom";
1315
- agentshield: "agentshield";
1316
- kta: "kta";
1317
- memory: "memory";
1318
- "cloudflare-kv": "cloudflare-kv";
1319
- redis: "redis";
1320
- dynamodb: "dynamodb";
1321
- }>;
1322
- apiUrl: z.ZodOptional<z.ZodString>;
1323
- cacheTtl: z.ZodOptional<z.ZodNumber>;
1324
- }, z.core.$strip>;
1325
- authorization: z.ZodObject<{
1326
- authorizationUrl: z.ZodOptional<z.ZodString>;
1327
- minReputationScore: z.ZodOptional<z.ZodNumber>;
1328
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1329
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1330
- }, z.core.$strip>;
1331
- }, z.core.$strip>;
1332
- toolProtection: z.ZodObject<{
1333
- source: z.ZodEnum<{
1334
- file: "file";
1335
- agentshield: "agentshield";
1336
- inline: "inline";
1337
- }>;
1338
- agentShield: z.ZodOptional<z.ZodObject<{
1339
- apiUrl: z.ZodString;
1340
- cacheTtl: z.ZodNumber;
1341
- }, z.core.$strip>>;
1342
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1343
- requiresDelegation: z.ZodBoolean;
1344
- requiredScopes: z.ZodArray<z.ZodString>;
1345
- riskLevel: z.ZodOptional<z.ZodEnum<{
1346
- low: "low";
1347
- medium: "medium";
1348
- high: "high";
1349
- critical: "critical";
1350
- }>>;
1351
- oauthProvider: z.ZodOptional<z.ZodString>;
1352
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1353
- type: z.ZodLiteral<"oauth">;
1354
- provider: z.ZodString;
1355
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1356
- }, z.core.$strip>, z.ZodObject<{
1357
- type: z.ZodLiteral<"oauth2">;
1358
- provider: z.ZodString;
1359
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1360
- }, z.core.$strip>, z.ZodObject<{
1361
- type: z.ZodLiteral<"password">;
1362
- provider: z.ZodString;
1363
- }, z.core.$strip>, z.ZodObject<{
1364
- type: z.ZodLiteral<"mdl">;
1365
- issuer: z.ZodString;
1366
- credentialType: z.ZodOptional<z.ZodString>;
1367
- }, z.core.$strip>, z.ZodObject<{
1368
- type: z.ZodLiteral<"idv">;
1369
- provider: z.ZodString;
1370
- verificationLevel: z.ZodOptional<z.ZodEnum<{
1371
- basic: "basic";
1372
- enhanced: "enhanced";
1373
- loa3: "loa3";
1374
- }>>;
1375
- }, z.core.$strip>, z.ZodObject<{
1376
- type: z.ZodLiteral<"verifiable_credential">;
1377
- credentialType: z.ZodString;
1378
- issuer: z.ZodOptional<z.ZodString>;
1379
- }, z.core.$strip>, z.ZodObject<{
1380
- type: z.ZodLiteral<"credential">;
1381
- credentialType: z.ZodString;
1382
- issuer: z.ZodOptional<z.ZodString>;
1383
- }, z.core.$strip>, z.ZodObject<{
1384
- type: z.ZodLiteral<"webauthn">;
1385
- rpId: z.ZodOptional<z.ZodString>;
1386
- userVerification: z.ZodOptional<z.ZodEnum<{
1387
- required: "required";
1388
- preferred: "preferred";
1389
- discouraged: "discouraged";
1390
- }>>;
1391
- }, z.core.$strip>, z.ZodObject<{
1392
- type: z.ZodLiteral<"siwe">;
1393
- chainId: z.ZodOptional<z.ZodNumber>;
1394
- domain: z.ZodOptional<z.ZodString>;
1395
- }, z.core.$strip>, z.ZodObject<{
1396
- type: z.ZodLiteral<"apikey">;
1397
- envVarNames: z.ZodArray<z.ZodString>;
1398
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1399
- }, z.core.$strip>, z.ZodObject<{
1400
- type: z.ZodLiteral<"none">;
1401
- }, z.core.$strip>], "type">>;
1402
- }, z.core.$strip>>>;
1403
- }, z.core.$strip>;
1404
- audit: z.ZodObject<{
1405
- enabled: z.ZodBoolean;
1406
- includeProofHashes: z.ZodBoolean;
1407
- includePayloads: z.ZodBoolean;
1408
- }, z.core.$strip>;
1409
- session: z.ZodObject<{
1410
- timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
1411
- ttlMinutes: z.ZodDefault<z.ZodNumber>;
1412
- absoluteLifetime: z.ZodOptional<z.ZodNumber>;
1413
- }, z.core.$strip>;
1414
- platform: z.ZodObject<{
1415
- type: z.ZodEnum<{
1416
- cloudflare: "cloudflare";
1417
- node: "node";
1418
- vercel: "vercel";
1419
- }>;
1420
- cloudflare: z.ZodOptional<z.ZodObject<{
1421
- workers: z.ZodObject<{
1422
- cpuMs: z.ZodDefault<z.ZodNumber>;
1423
- memoryMb: z.ZodDefault<z.ZodNumber>;
1424
- }, z.core.$strip>;
1425
- kvNamespaces: z.ZodArray<z.ZodObject<{
1426
- name: z.ZodString;
1427
- purpose: z.ZodEnum<{
1428
- sessions: "sessions";
1429
- delegations: "delegations";
1430
- cache: "cache";
1431
- general: "general";
1432
- }>;
1433
- }, z.core.$strip>>;
1434
- environmentVariables: z.ZodArray<z.ZodObject<{
1435
- name: z.ZodString;
1436
- value: z.ZodString;
1437
- source: z.ZodEnum<{
1438
- "wrangler.toml": "wrangler.toml";
1439
- secrets: "secrets";
1440
- ".dev.vars": ".dev.vars";
1441
- }>;
1442
- }, z.core.$strip>>;
1443
- }, z.core.$strip>>;
1444
- node: z.ZodOptional<z.ZodObject<{
1445
- server: z.ZodObject<{
1446
- port: z.ZodDefault<z.ZodNumber>;
1447
- host: z.ZodDefault<z.ZodString>;
1448
- cors: z.ZodDefault<z.ZodBoolean>;
1449
- timeout: z.ZodDefault<z.ZodNumber>;
1450
- }, z.core.$strip>;
1451
- storage: z.ZodObject<{
1452
- type: z.ZodEnum<{
1453
- memory: "memory";
1454
- redis: "redis";
1455
- postgres: "postgres";
1456
- mongodb: "mongodb";
1457
- }>;
1458
- connection: z.ZodOptional<z.ZodObject<{
1459
- host: z.ZodOptional<z.ZodString>;
1460
- port: z.ZodOptional<z.ZodNumber>;
1461
- database: z.ZodOptional<z.ZodString>;
1462
- }, z.core.$strip>>;
1463
- }, z.core.$strip>;
1464
- }, z.core.$strip>>;
1465
- vercel: z.ZodOptional<z.ZodObject<{
1466
- environmentVariables: z.ZodArray<z.ZodObject<{
1467
- name: z.ZodString;
1468
- value: z.ZodString;
1469
- source: z.ZodEnum<{
1470
- "vercel-dashboard": "vercel-dashboard";
1471
- ".env.local": ".env.local";
1472
- }>;
1473
- }, z.core.$strip>>;
1474
- edgeRuntime: z.ZodOptional<z.ZodObject<{
1475
- maxDuration: z.ZodOptional<z.ZodNumber>;
1476
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1477
- }, z.core.$strip>>;
1478
- }, z.core.$strip>>;
1479
- }, z.core.$strip>;
1480
- metadata: z.ZodObject<{
1481
- version: z.ZodString;
1482
- lastUpdated: z.ZodString;
1483
- source: z.ZodEnum<{
1484
- code: "code";
1485
- dashboard: "dashboard";
1486
- mixed: "mixed";
1487
- }>;
1488
- serverUrl: z.ZodOptional<z.ZodString>;
1489
- deploymentStatus: z.ZodOptional<z.ZodEnum<{
1490
- error: "error";
1491
- active: "active";
1492
- inactive: "inactive";
1493
- }>>;
1494
- }, z.core.$strip>;
1495
- }, z.core.$strip>;
1496
- }, z.core.$strip>;
1497
- metadata: z.ZodOptional<z.ZodObject<{
1498
- requestId: z.ZodOptional<z.ZodString>;
1499
- timestamp: z.ZodOptional<z.ZodString>;
2297
+ changes: z.ZodArray<z.ZodObject<{
2298
+ path: z.ZodString;
2299
+ oldValue: z.ZodUnknown;
2300
+ newValue: z.ZodUnknown;
1500
2301
  }, z.core.$strip>>;
2302
+ }, z.core.$strip>;
2303
+ metadata: z.ZodOptional<z.ZodObject<{
2304
+ requestId: z.ZodOptional<z.ZodString>;
2305
+ timestamp: z.ZodOptional<z.ZodString>;
2306
+ }, z.core.$strip>>;
1501
2307
  }, z.core.$strip>;
1502
- declare const getMergedServerConfigResponseSchema: z.ZodObject<{
1503
- success: z.ZodBoolean;
1504
- data: z.ZodObject<{
1505
- config: z.ZodObject<{
1506
- identity: z.ZodObject<{
1507
- agentDid: z.ZodOptional<z.ZodString>;
1508
- serverDid: z.ZodString;
1509
- environment: z.ZodEnum<{
1510
- development: "development";
1511
- production: "production";
1512
- }>;
1513
- storageLocation: z.ZodEnum<{
1514
- "cloudflare-kv": "cloudflare-kv";
1515
- "file-system": "file-system";
1516
- "env-vars": "env-vars";
1517
- }>;
1518
- }, z.core.$strip>;
1519
- proofing: z.ZodObject<{
1520
- enabled: z.ZodBoolean;
1521
- destinations: z.ZodArray<z.ZodObject<{
1522
- type: z.ZodEnum<{
1523
- custom: "custom";
1524
- agentshield: "agentshield";
1525
- kta: "kta";
1526
- }>;
1527
- apiUrl: z.ZodString;
1528
- apiKey: z.ZodOptional<z.ZodString>;
1529
- }, z.core.$strip>>;
1530
- batchQueue: z.ZodObject<{
1531
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
1532
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1533
- maxRetries: z.ZodDefault<z.ZodNumber>;
1534
- }, z.core.$strip>;
1535
- }, z.core.$strip>;
1536
- delegation: z.ZodObject<{
1537
- enabled: z.ZodBoolean;
1538
- enforceStrictly: z.ZodBoolean;
1539
- verifier: z.ZodObject<{
1540
- type: z.ZodEnum<{
1541
- custom: "custom";
1542
- agentshield: "agentshield";
1543
- kta: "kta";
1544
- memory: "memory";
1545
- "cloudflare-kv": "cloudflare-kv";
1546
- redis: "redis";
1547
- dynamodb: "dynamodb";
1548
- }>;
1549
- apiUrl: z.ZodOptional<z.ZodString>;
1550
- cacheTtl: z.ZodOptional<z.ZodNumber>;
1551
- }, z.core.$strip>;
1552
- authorization: z.ZodObject<{
1553
- authorizationUrl: z.ZodOptional<z.ZodString>;
1554
- minReputationScore: z.ZodOptional<z.ZodNumber>;
1555
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1556
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1557
- }, z.core.$strip>;
1558
- }, z.core.$strip>;
1559
- audit: z.ZodObject<{
1560
- enabled: z.ZodBoolean;
1561
- includeProofHashes: z.ZodBoolean;
1562
- includePayloads: z.ZodBoolean;
1563
- }, z.core.$strip>;
1564
- session: z.ZodObject<{
1565
- timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
1566
- ttlMinutes: z.ZodDefault<z.ZodNumber>;
1567
- absoluteLifetime: z.ZodOptional<z.ZodNumber>;
1568
- }, z.core.$strip>;
1569
- platform: z.ZodObject<{
1570
- type: z.ZodEnum<{
1571
- cloudflare: "cloudflare";
1572
- node: "node";
1573
- vercel: "vercel";
1574
- }>;
1575
- cloudflare: z.ZodOptional<z.ZodObject<{
1576
- workers: z.ZodObject<{
1577
- cpuMs: z.ZodDefault<z.ZodNumber>;
1578
- memoryMb: z.ZodDefault<z.ZodNumber>;
1579
- }, z.core.$strip>;
1580
- kvNamespaces: z.ZodArray<z.ZodObject<{
1581
- name: z.ZodString;
1582
- purpose: z.ZodEnum<{
1583
- sessions: "sessions";
1584
- delegations: "delegations";
1585
- cache: "cache";
1586
- general: "general";
1587
- }>;
1588
- }, z.core.$strip>>;
1589
- environmentVariables: z.ZodArray<z.ZodObject<{
1590
- name: z.ZodString;
1591
- value: z.ZodString;
1592
- source: z.ZodEnum<{
1593
- "wrangler.toml": "wrangler.toml";
1594
- secrets: "secrets";
1595
- ".dev.vars": ".dev.vars";
1596
- }>;
1597
- }, z.core.$strip>>;
1598
- }, z.core.$strip>>;
1599
- node: z.ZodOptional<z.ZodObject<{
1600
- server: z.ZodObject<{
1601
- port: z.ZodDefault<z.ZodNumber>;
1602
- host: z.ZodDefault<z.ZodString>;
1603
- cors: z.ZodDefault<z.ZodBoolean>;
1604
- timeout: z.ZodDefault<z.ZodNumber>;
1605
- }, z.core.$strip>;
1606
- storage: z.ZodObject<{
1607
- type: z.ZodEnum<{
1608
- memory: "memory";
1609
- redis: "redis";
1610
- postgres: "postgres";
1611
- mongodb: "mongodb";
1612
- }>;
1613
- connection: z.ZodOptional<z.ZodObject<{
1614
- host: z.ZodOptional<z.ZodString>;
1615
- port: z.ZodOptional<z.ZodNumber>;
1616
- database: z.ZodOptional<z.ZodString>;
1617
- }, z.core.$strip>>;
1618
- }, z.core.$strip>;
1619
- }, z.core.$strip>>;
1620
- vercel: z.ZodOptional<z.ZodObject<{
1621
- environmentVariables: z.ZodArray<z.ZodObject<{
1622
- name: z.ZodString;
1623
- value: z.ZodString;
1624
- source: z.ZodEnum<{
1625
- "vercel-dashboard": "vercel-dashboard";
1626
- ".env.local": ".env.local";
1627
- }>;
1628
- }, z.core.$strip>>;
1629
- edgeRuntime: z.ZodOptional<z.ZodObject<{
1630
- maxDuration: z.ZodOptional<z.ZodNumber>;
1631
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1632
- }, z.core.$strip>>;
1633
- }, z.core.$strip>>;
1634
- }, z.core.$strip>;
1635
- metadata: z.ZodObject<{
1636
- version: z.ZodString;
1637
- lastUpdated: z.ZodString;
1638
- source: z.ZodEnum<{
1639
- code: "code";
1640
- dashboard: "dashboard";
1641
- mixed: "mixed";
1642
- }>;
1643
- serverUrl: z.ZodOptional<z.ZodString>;
1644
- deploymentStatus: z.ZodOptional<z.ZodEnum<{
1645
- error: "error";
1646
- active: "active";
1647
- inactive: "inactive";
1648
- }>>;
1649
- }, z.core.$strip>;
1650
- toolProtection: z.ZodObject<{
1651
- source: z.ZodEnum<{
1652
- file: "file";
1653
- agentshield: "agentshield";
1654
- inline: "inline";
1655
- }>;
1656
- agentShield: z.ZodOptional<z.ZodObject<{
1657
- apiUrl: z.ZodString;
1658
- cacheTtl: z.ZodNumber;
1659
- }, z.core.$strip>>;
1660
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1661
- requiresDelegation: z.ZodBoolean;
1662
- requiredScopes: z.ZodArray<z.ZodString>;
1663
- riskLevel: z.ZodOptional<z.ZodEnum<{
1664
- low: "low";
1665
- medium: "medium";
1666
- high: "high";
1667
- critical: "critical";
1668
- }>>;
1669
- oauthProvider: z.ZodOptional<z.ZodString>;
1670
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1671
- type: z.ZodLiteral<"oauth">;
1672
- provider: z.ZodString;
1673
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1674
- }, z.core.$strip>, z.ZodObject<{
1675
- type: z.ZodLiteral<"oauth2">;
1676
- provider: z.ZodString;
1677
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1678
- }, z.core.$strip>, z.ZodObject<{
1679
- type: z.ZodLiteral<"password">;
1680
- provider: z.ZodString;
1681
- }, z.core.$strip>, z.ZodObject<{
1682
- type: z.ZodLiteral<"mdl">;
1683
- issuer: z.ZodString;
1684
- credentialType: z.ZodOptional<z.ZodString>;
1685
- }, z.core.$strip>, z.ZodObject<{
1686
- type: z.ZodLiteral<"idv">;
1687
- provider: z.ZodString;
1688
- verificationLevel: z.ZodOptional<z.ZodEnum<{
1689
- basic: "basic";
1690
- enhanced: "enhanced";
1691
- loa3: "loa3";
1692
- }>>;
1693
- }, z.core.$strip>, z.ZodObject<{
1694
- type: z.ZodLiteral<"verifiable_credential">;
1695
- credentialType: z.ZodString;
1696
- issuer: z.ZodOptional<z.ZodString>;
1697
- }, z.core.$strip>, z.ZodObject<{
1698
- type: z.ZodLiteral<"credential">;
1699
- credentialType: z.ZodString;
1700
- issuer: z.ZodOptional<z.ZodString>;
1701
- }, z.core.$strip>, z.ZodObject<{
1702
- type: z.ZodLiteral<"webauthn">;
1703
- rpId: z.ZodOptional<z.ZodString>;
1704
- userVerification: z.ZodOptional<z.ZodEnum<{
1705
- required: "required";
1706
- preferred: "preferred";
1707
- discouraged: "discouraged";
1708
- }>>;
1709
- }, z.core.$strip>, z.ZodObject<{
1710
- type: z.ZodLiteral<"siwe">;
1711
- chainId: z.ZodOptional<z.ZodNumber>;
1712
- domain: z.ZodOptional<z.ZodString>;
1713
- }, z.core.$strip>, z.ZodObject<{
1714
- type: z.ZodLiteral<"apikey">;
1715
- envVarNames: z.ZodArray<z.ZodString>;
1716
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1717
- }, z.core.$strip>, z.ZodObject<{
1718
- type: z.ZodLiteral<"none">;
1719
- }, z.core.$strip>], "type">>;
1720
- }, z.core.$strip>>>;
1721
- tools: z.ZodRecord<z.ZodString, z.ZodObject<{
1722
- requiresDelegation: z.ZodBoolean;
1723
- requiredScopes: z.ZodArray<z.ZodString>;
1724
- riskLevel: z.ZodOptional<z.ZodEnum<{
1725
- low: "low";
1726
- medium: "medium";
1727
- high: "high";
1728
- critical: "critical";
1729
- }>>;
1730
- oauthProvider: z.ZodOptional<z.ZodString>;
1731
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1732
- type: z.ZodLiteral<"oauth">;
1733
- provider: z.ZodString;
1734
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1735
- }, z.core.$strip>, z.ZodObject<{
1736
- type: z.ZodLiteral<"oauth2">;
1737
- provider: z.ZodString;
1738
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1739
- }, z.core.$strip>, z.ZodObject<{
1740
- type: z.ZodLiteral<"password">;
1741
- provider: z.ZodString;
1742
- }, z.core.$strip>, z.ZodObject<{
1743
- type: z.ZodLiteral<"mdl">;
1744
- issuer: z.ZodString;
1745
- credentialType: z.ZodOptional<z.ZodString>;
1746
- }, z.core.$strip>, z.ZodObject<{
1747
- type: z.ZodLiteral<"idv">;
1748
- provider: z.ZodString;
1749
- verificationLevel: z.ZodOptional<z.ZodEnum<{
1750
- basic: "basic";
1751
- enhanced: "enhanced";
1752
- loa3: "loa3";
1753
- }>>;
1754
- }, z.core.$strip>, z.ZodObject<{
1755
- type: z.ZodLiteral<"verifiable_credential">;
1756
- credentialType: z.ZodString;
1757
- issuer: z.ZodOptional<z.ZodString>;
1758
- }, z.core.$strip>, z.ZodObject<{
1759
- type: z.ZodLiteral<"credential">;
1760
- credentialType: z.ZodString;
1761
- issuer: z.ZodOptional<z.ZodString>;
1762
- }, z.core.$strip>, z.ZodObject<{
1763
- type: z.ZodLiteral<"webauthn">;
1764
- rpId: z.ZodOptional<z.ZodString>;
1765
- userVerification: z.ZodOptional<z.ZodEnum<{
1766
- required: "required";
1767
- preferred: "preferred";
1768
- discouraged: "discouraged";
1769
- }>>;
1770
- }, z.core.$strip>, z.ZodObject<{
1771
- type: z.ZodLiteral<"siwe">;
1772
- chainId: z.ZodOptional<z.ZodNumber>;
1773
- domain: z.ZodOptional<z.ZodString>;
1774
- }, z.core.$strip>, z.ZodObject<{
1775
- type: z.ZodLiteral<"apikey">;
1776
- envVarNames: z.ZodArray<z.ZodString>;
1777
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1778
- }, z.core.$strip>, z.ZodObject<{
1779
- type: z.ZodLiteral<"none">;
1780
- }, z.core.$strip>], "type">>;
1781
- }, z.core.$strip>>;
1782
- }, z.core.$strip>;
1783
- }, z.core.$strip>;
1784
- toolProtections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1785
- requiresDelegation: z.ZodBoolean;
1786
- requiredScopes: z.ZodArray<z.ZodString>;
1787
- riskLevel: z.ZodOptional<z.ZodEnum<{
1788
- low: "low";
1789
- medium: "medium";
1790
- high: "high";
1791
- critical: "critical";
1792
- }>>;
1793
- oauthProvider: z.ZodOptional<z.ZodString>;
1794
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1795
- type: z.ZodLiteral<"oauth">;
1796
- provider: z.ZodString;
1797
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1798
- }, z.core.$strip>, z.ZodObject<{
1799
- type: z.ZodLiteral<"oauth2">;
1800
- provider: z.ZodString;
1801
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1802
- }, z.core.$strip>, z.ZodObject<{
1803
- type: z.ZodLiteral<"password">;
1804
- provider: z.ZodString;
1805
- }, z.core.$strip>, z.ZodObject<{
1806
- type: z.ZodLiteral<"mdl">;
1807
- issuer: z.ZodString;
1808
- credentialType: z.ZodOptional<z.ZodString>;
1809
- }, z.core.$strip>, z.ZodObject<{
1810
- type: z.ZodLiteral<"idv">;
1811
- provider: z.ZodString;
1812
- verificationLevel: z.ZodOptional<z.ZodEnum<{
1813
- basic: "basic";
1814
- enhanced: "enhanced";
1815
- loa3: "loa3";
1816
- }>>;
1817
- }, z.core.$strip>, z.ZodObject<{
1818
- type: z.ZodLiteral<"verifiable_credential">;
1819
- credentialType: z.ZodString;
1820
- issuer: z.ZodOptional<z.ZodString>;
1821
- }, z.core.$strip>, z.ZodObject<{
1822
- type: z.ZodLiteral<"credential">;
1823
- credentialType: z.ZodString;
1824
- issuer: z.ZodOptional<z.ZodString>;
1825
- }, z.core.$strip>, z.ZodObject<{
1826
- type: z.ZodLiteral<"webauthn">;
1827
- rpId: z.ZodOptional<z.ZodString>;
1828
- userVerification: z.ZodOptional<z.ZodEnum<{
1829
- required: "required";
1830
- preferred: "preferred";
1831
- discouraged: "discouraged";
1832
- }>>;
1833
- }, z.core.$strip>, z.ZodObject<{
1834
- type: z.ZodLiteral<"siwe">;
1835
- chainId: z.ZodOptional<z.ZodNumber>;
1836
- domain: z.ZodOptional<z.ZodString>;
1837
- }, z.core.$strip>, z.ZodObject<{
1838
- type: z.ZodLiteral<"apikey">;
1839
- envVarNames: z.ZodArray<z.ZodString>;
1840
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1841
- }, z.core.$strip>, z.ZodObject<{
1842
- type: z.ZodLiteral<"none">;
1843
- }, z.core.$strip>], "type">>;
1844
- }, z.core.$strip>>>;
1845
- }, z.core.$strip>;
1846
- metadata: z.ZodOptional<z.ZodObject<{
1847
- requestId: z.ZodOptional<z.ZodString>;
1848
- timestamp: z.ZodOptional<z.ZodString>;
1849
- cachedUntil: z.ZodOptional<z.ZodString>;
2308
+ export declare const validateServerConfigRequestSchema: z.ZodObject<{
2309
+ projectId: z.ZodString;
2310
+ config: z.ZodObject<{
2311
+ identity: z.ZodOptional<z.ZodObject<{
2312
+ agentDid: z.ZodOptional<z.ZodString>;
2313
+ serverDid: z.ZodString;
2314
+ environment: z.ZodEnum<{
2315
+ development: "development";
2316
+ production: "production";
2317
+ }>;
2318
+ storageLocation: z.ZodEnum<{
2319
+ "cloudflare-kv": "cloudflare-kv";
2320
+ "file-system": "file-system";
2321
+ "env-vars": "env-vars";
2322
+ }>;
1850
2323
  }, z.core.$strip>>;
1851
- }, z.core.$strip>;
1852
- declare const updateServerConfigRequestSchema: z.ZodObject<{
1853
- projectId: z.ZodString;
1854
- config: z.ZodObject<{
1855
- identity: z.ZodOptional<z.ZodObject<{
1856
- agentDid: z.ZodOptional<z.ZodString>;
1857
- serverDid: z.ZodString;
1858
- environment: z.ZodEnum<{
1859
- development: "development";
1860
- production: "production";
1861
- }>;
1862
- storageLocation: z.ZodEnum<{
1863
- "cloudflare-kv": "cloudflare-kv";
1864
- "file-system": "file-system";
1865
- "env-vars": "env-vars";
1866
- }>;
1867
- }, z.core.$strip>>;
1868
- proofing: z.ZodOptional<z.ZodObject<{
1869
- enabled: z.ZodBoolean;
1870
- destinations: z.ZodArray<z.ZodObject<{
1871
- type: z.ZodEnum<{
1872
- custom: "custom";
1873
- agentshield: "agentshield";
1874
- kta: "kta";
1875
- }>;
1876
- apiUrl: z.ZodString;
1877
- apiKey: z.ZodOptional<z.ZodString>;
1878
- }, z.core.$strip>>;
1879
- batchQueue: z.ZodObject<{
1880
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
1881
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
1882
- maxRetries: z.ZodDefault<z.ZodNumber>;
1883
- }, z.core.$strip>;
1884
- }, z.core.$strip>>;
1885
- delegation: z.ZodOptional<z.ZodObject<{
1886
- enabled: z.ZodBoolean;
1887
- enforceStrictly: z.ZodBoolean;
1888
- verifier: z.ZodObject<{
1889
- type: z.ZodEnum<{
1890
- custom: "custom";
1891
- agentshield: "agentshield";
1892
- kta: "kta";
1893
- memory: "memory";
1894
- "cloudflare-kv": "cloudflare-kv";
1895
- redis: "redis";
1896
- dynamodb: "dynamodb";
1897
- }>;
1898
- apiUrl: z.ZodOptional<z.ZodString>;
1899
- cacheTtl: z.ZodOptional<z.ZodNumber>;
1900
- }, z.core.$strip>;
1901
- authorization: z.ZodObject<{
1902
- authorizationUrl: z.ZodOptional<z.ZodString>;
1903
- minReputationScore: z.ZodOptional<z.ZodNumber>;
1904
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
1905
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
1906
- }, z.core.$strip>;
1907
- }, z.core.$strip>>;
1908
- toolProtection: z.ZodOptional<z.ZodObject<{
1909
- source: z.ZodEnum<{
1910
- file: "file";
1911
- agentshield: "agentshield";
1912
- inline: "inline";
1913
- }>;
1914
- agentShield: z.ZodOptional<z.ZodObject<{
1915
- apiUrl: z.ZodString;
1916
- cacheTtl: z.ZodNumber;
1917
- }, z.core.$strip>>;
1918
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1919
- requiresDelegation: z.ZodBoolean;
1920
- requiredScopes: z.ZodArray<z.ZodString>;
1921
- riskLevel: z.ZodOptional<z.ZodEnum<{
1922
- low: "low";
1923
- medium: "medium";
1924
- high: "high";
1925
- critical: "critical";
1926
- }>>;
1927
- oauthProvider: z.ZodOptional<z.ZodString>;
1928
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1929
- type: z.ZodLiteral<"oauth">;
1930
- provider: z.ZodString;
1931
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1932
- }, z.core.$strip>, z.ZodObject<{
1933
- type: z.ZodLiteral<"oauth2">;
1934
- provider: z.ZodString;
1935
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1936
- }, z.core.$strip>, z.ZodObject<{
1937
- type: z.ZodLiteral<"password">;
1938
- provider: z.ZodString;
1939
- }, z.core.$strip>, z.ZodObject<{
1940
- type: z.ZodLiteral<"mdl">;
1941
- issuer: z.ZodString;
1942
- credentialType: z.ZodOptional<z.ZodString>;
1943
- }, z.core.$strip>, z.ZodObject<{
1944
- type: z.ZodLiteral<"idv">;
1945
- provider: z.ZodString;
1946
- verificationLevel: z.ZodOptional<z.ZodEnum<{
1947
- basic: "basic";
1948
- enhanced: "enhanced";
1949
- loa3: "loa3";
1950
- }>>;
1951
- }, z.core.$strip>, z.ZodObject<{
1952
- type: z.ZodLiteral<"verifiable_credential">;
1953
- credentialType: z.ZodString;
1954
- issuer: z.ZodOptional<z.ZodString>;
1955
- }, z.core.$strip>, z.ZodObject<{
1956
- type: z.ZodLiteral<"credential">;
1957
- credentialType: z.ZodString;
1958
- issuer: z.ZodOptional<z.ZodString>;
1959
- }, z.core.$strip>, z.ZodObject<{
1960
- type: z.ZodLiteral<"webauthn">;
1961
- rpId: z.ZodOptional<z.ZodString>;
1962
- userVerification: z.ZodOptional<z.ZodEnum<{
1963
- required: "required";
1964
- preferred: "preferred";
1965
- discouraged: "discouraged";
1966
- }>>;
1967
- }, z.core.$strip>, z.ZodObject<{
1968
- type: z.ZodLiteral<"siwe">;
1969
- chainId: z.ZodOptional<z.ZodNumber>;
1970
- domain: z.ZodOptional<z.ZodString>;
1971
- }, z.core.$strip>, z.ZodObject<{
1972
- type: z.ZodLiteral<"apikey">;
1973
- envVarNames: z.ZodArray<z.ZodString>;
1974
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
1975
- }, z.core.$strip>, z.ZodObject<{
1976
- type: z.ZodLiteral<"none">;
1977
- }, z.core.$strip>], "type">>;
1978
- }, z.core.$strip>>>;
1979
- }, z.core.$strip>>;
1980
- audit: z.ZodOptional<z.ZodObject<{
1981
- enabled: z.ZodBoolean;
1982
- includeProofHashes: z.ZodBoolean;
1983
- includePayloads: z.ZodBoolean;
1984
- }, z.core.$strip>>;
1985
- session: z.ZodOptional<z.ZodObject<{
1986
- timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
1987
- ttlMinutes: z.ZodDefault<z.ZodNumber>;
1988
- absoluteLifetime: z.ZodOptional<z.ZodNumber>;
1989
- }, z.core.$strip>>;
1990
- platform: z.ZodOptional<z.ZodObject<{
1991
- type: z.ZodEnum<{
1992
- cloudflare: "cloudflare";
1993
- node: "node";
1994
- vercel: "vercel";
1995
- }>;
1996
- cloudflare: z.ZodOptional<z.ZodObject<{
1997
- workers: z.ZodObject<{
1998
- cpuMs: z.ZodDefault<z.ZodNumber>;
1999
- memoryMb: z.ZodDefault<z.ZodNumber>;
2000
- }, z.core.$strip>;
2001
- kvNamespaces: z.ZodArray<z.ZodObject<{
2002
- name: z.ZodString;
2003
- purpose: z.ZodEnum<{
2004
- sessions: "sessions";
2005
- delegations: "delegations";
2006
- cache: "cache";
2007
- general: "general";
2008
- }>;
2009
- }, z.core.$strip>>;
2010
- environmentVariables: z.ZodArray<z.ZodObject<{
2011
- name: z.ZodString;
2012
- value: z.ZodString;
2013
- source: z.ZodEnum<{
2014
- "wrangler.toml": "wrangler.toml";
2015
- secrets: "secrets";
2016
- ".dev.vars": ".dev.vars";
2017
- }>;
2018
- }, z.core.$strip>>;
2019
- }, z.core.$strip>>;
2020
- node: z.ZodOptional<z.ZodObject<{
2021
- server: z.ZodObject<{
2022
- port: z.ZodDefault<z.ZodNumber>;
2023
- host: z.ZodDefault<z.ZodString>;
2024
- cors: z.ZodDefault<z.ZodBoolean>;
2025
- timeout: z.ZodDefault<z.ZodNumber>;
2026
- }, z.core.$strip>;
2027
- storage: z.ZodObject<{
2028
- type: z.ZodEnum<{
2029
- memory: "memory";
2030
- redis: "redis";
2031
- postgres: "postgres";
2032
- mongodb: "mongodb";
2033
- }>;
2034
- connection: z.ZodOptional<z.ZodObject<{
2035
- host: z.ZodOptional<z.ZodString>;
2036
- port: z.ZodOptional<z.ZodNumber>;
2037
- database: z.ZodOptional<z.ZodString>;
2038
- }, z.core.$strip>>;
2039
- }, z.core.$strip>;
2040
- }, z.core.$strip>>;
2041
- vercel: z.ZodOptional<z.ZodObject<{
2042
- environmentVariables: z.ZodArray<z.ZodObject<{
2043
- name: z.ZodString;
2044
- value: z.ZodString;
2045
- source: z.ZodEnum<{
2046
- "vercel-dashboard": "vercel-dashboard";
2047
- ".env.local": ".env.local";
2048
- }>;
2049
- }, z.core.$strip>>;
2050
- edgeRuntime: z.ZodOptional<z.ZodObject<{
2051
- maxDuration: z.ZodOptional<z.ZodNumber>;
2052
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2053
- }, z.core.$strip>>;
2054
- }, z.core.$strip>>;
2055
- }, z.core.$strip>>;
2056
- metadata: z.ZodOptional<z.ZodObject<{
2057
- version: z.ZodString;
2058
- lastUpdated: z.ZodString;
2059
- source: z.ZodEnum<{
2060
- code: "code";
2061
- dashboard: "dashboard";
2062
- mixed: "mixed";
2063
- }>;
2064
- serverUrl: z.ZodOptional<z.ZodString>;
2065
- deploymentStatus: z.ZodOptional<z.ZodEnum<{
2066
- error: "error";
2067
- active: "active";
2068
- inactive: "inactive";
2069
- }>>;
2070
- }, z.core.$strip>>;
2071
- }, z.core.$strip>;
2072
- }, z.core.$strip>;
2073
- declare const updateServerConfigResponseSchema: z.ZodObject<{
2074
- success: z.ZodBoolean;
2075
- data: z.ZodObject<{
2076
- config: z.ZodObject<{
2077
- identity: z.ZodObject<{
2078
- agentDid: z.ZodOptional<z.ZodString>;
2079
- serverDid: z.ZodString;
2080
- environment: z.ZodEnum<{
2081
- development: "development";
2082
- production: "production";
2083
- }>;
2084
- storageLocation: z.ZodEnum<{
2085
- "cloudflare-kv": "cloudflare-kv";
2086
- "file-system": "file-system";
2087
- "env-vars": "env-vars";
2088
- }>;
2089
- }, z.core.$strip>;
2090
- proofing: z.ZodObject<{
2091
- enabled: z.ZodBoolean;
2092
- destinations: z.ZodArray<z.ZodObject<{
2093
- type: z.ZodEnum<{
2094
- custom: "custom";
2095
- agentshield: "agentshield";
2096
- kta: "kta";
2097
- }>;
2098
- apiUrl: z.ZodString;
2099
- apiKey: z.ZodOptional<z.ZodString>;
2100
- }, z.core.$strip>>;
2101
- batchQueue: z.ZodObject<{
2102
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
2103
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
2104
- maxRetries: z.ZodDefault<z.ZodNumber>;
2105
- }, z.core.$strip>;
2106
- }, z.core.$strip>;
2107
- delegation: z.ZodObject<{
2108
- enabled: z.ZodBoolean;
2109
- enforceStrictly: z.ZodBoolean;
2110
- verifier: z.ZodObject<{
2111
- type: z.ZodEnum<{
2112
- custom: "custom";
2113
- agentshield: "agentshield";
2114
- kta: "kta";
2115
- memory: "memory";
2116
- "cloudflare-kv": "cloudflare-kv";
2117
- redis: "redis";
2118
- dynamodb: "dynamodb";
2119
- }>;
2120
- apiUrl: z.ZodOptional<z.ZodString>;
2121
- cacheTtl: z.ZodOptional<z.ZodNumber>;
2122
- }, z.core.$strip>;
2123
- authorization: z.ZodObject<{
2124
- authorizationUrl: z.ZodOptional<z.ZodString>;
2125
- minReputationScore: z.ZodOptional<z.ZodNumber>;
2126
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
2127
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
2128
- }, z.core.$strip>;
2129
- }, z.core.$strip>;
2130
- toolProtection: z.ZodObject<{
2131
- source: z.ZodEnum<{
2132
- file: "file";
2133
- agentshield: "agentshield";
2134
- inline: "inline";
2135
- }>;
2136
- agentShield: z.ZodOptional<z.ZodObject<{
2137
- apiUrl: z.ZodString;
2138
- cacheTtl: z.ZodNumber;
2139
- }, z.core.$strip>>;
2140
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2141
- requiresDelegation: z.ZodBoolean;
2142
- requiredScopes: z.ZodArray<z.ZodString>;
2143
- riskLevel: z.ZodOptional<z.ZodEnum<{
2144
- low: "low";
2145
- medium: "medium";
2146
- high: "high";
2147
- critical: "critical";
2148
- }>>;
2149
- oauthProvider: z.ZodOptional<z.ZodString>;
2150
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2151
- type: z.ZodLiteral<"oauth">;
2152
- provider: z.ZodString;
2153
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2154
- }, z.core.$strip>, z.ZodObject<{
2155
- type: z.ZodLiteral<"oauth2">;
2156
- provider: z.ZodString;
2157
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2158
- }, z.core.$strip>, z.ZodObject<{
2159
- type: z.ZodLiteral<"password">;
2160
- provider: z.ZodString;
2161
- }, z.core.$strip>, z.ZodObject<{
2162
- type: z.ZodLiteral<"mdl">;
2163
- issuer: z.ZodString;
2164
- credentialType: z.ZodOptional<z.ZodString>;
2165
- }, z.core.$strip>, z.ZodObject<{
2166
- type: z.ZodLiteral<"idv">;
2167
- provider: z.ZodString;
2168
- verificationLevel: z.ZodOptional<z.ZodEnum<{
2169
- basic: "basic";
2170
- enhanced: "enhanced";
2171
- loa3: "loa3";
2172
- }>>;
2173
- }, z.core.$strip>, z.ZodObject<{
2174
- type: z.ZodLiteral<"verifiable_credential">;
2175
- credentialType: z.ZodString;
2176
- issuer: z.ZodOptional<z.ZodString>;
2177
- }, z.core.$strip>, z.ZodObject<{
2178
- type: z.ZodLiteral<"credential">;
2179
- credentialType: z.ZodString;
2180
- issuer: z.ZodOptional<z.ZodString>;
2181
- }, z.core.$strip>, z.ZodObject<{
2182
- type: z.ZodLiteral<"webauthn">;
2183
- rpId: z.ZodOptional<z.ZodString>;
2184
- userVerification: z.ZodOptional<z.ZodEnum<{
2185
- required: "required";
2186
- preferred: "preferred";
2187
- discouraged: "discouraged";
2188
- }>>;
2189
- }, z.core.$strip>, z.ZodObject<{
2190
- type: z.ZodLiteral<"siwe">;
2191
- chainId: z.ZodOptional<z.ZodNumber>;
2192
- domain: z.ZodOptional<z.ZodString>;
2193
- }, z.core.$strip>, z.ZodObject<{
2194
- type: z.ZodLiteral<"apikey">;
2195
- envVarNames: z.ZodArray<z.ZodString>;
2196
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
2197
- }, z.core.$strip>, z.ZodObject<{
2198
- type: z.ZodLiteral<"none">;
2199
- }, z.core.$strip>], "type">>;
2200
- }, z.core.$strip>>>;
2201
- }, z.core.$strip>;
2202
- audit: z.ZodObject<{
2203
- enabled: z.ZodBoolean;
2204
- includeProofHashes: z.ZodBoolean;
2205
- includePayloads: z.ZodBoolean;
2206
- }, z.core.$strip>;
2207
- session: z.ZodObject<{
2208
- timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
2209
- ttlMinutes: z.ZodDefault<z.ZodNumber>;
2210
- absoluteLifetime: z.ZodOptional<z.ZodNumber>;
2211
- }, z.core.$strip>;
2212
- platform: z.ZodObject<{
2213
- type: z.ZodEnum<{
2214
- cloudflare: "cloudflare";
2215
- node: "node";
2216
- vercel: "vercel";
2217
- }>;
2218
- cloudflare: z.ZodOptional<z.ZodObject<{
2219
- workers: z.ZodObject<{
2220
- cpuMs: z.ZodDefault<z.ZodNumber>;
2221
- memoryMb: z.ZodDefault<z.ZodNumber>;
2222
- }, z.core.$strip>;
2223
- kvNamespaces: z.ZodArray<z.ZodObject<{
2224
- name: z.ZodString;
2225
- purpose: z.ZodEnum<{
2226
- sessions: "sessions";
2227
- delegations: "delegations";
2228
- cache: "cache";
2229
- general: "general";
2230
- }>;
2231
- }, z.core.$strip>>;
2232
- environmentVariables: z.ZodArray<z.ZodObject<{
2233
- name: z.ZodString;
2234
- value: z.ZodString;
2235
- source: z.ZodEnum<{
2236
- "wrangler.toml": "wrangler.toml";
2237
- secrets: "secrets";
2238
- ".dev.vars": ".dev.vars";
2239
- }>;
2240
- }, z.core.$strip>>;
2241
- }, z.core.$strip>>;
2242
- node: z.ZodOptional<z.ZodObject<{
2243
- server: z.ZodObject<{
2244
- port: z.ZodDefault<z.ZodNumber>;
2245
- host: z.ZodDefault<z.ZodString>;
2246
- cors: z.ZodDefault<z.ZodBoolean>;
2247
- timeout: z.ZodDefault<z.ZodNumber>;
2248
- }, z.core.$strip>;
2249
- storage: z.ZodObject<{
2250
- type: z.ZodEnum<{
2251
- memory: "memory";
2252
- redis: "redis";
2253
- postgres: "postgres";
2254
- mongodb: "mongodb";
2255
- }>;
2256
- connection: z.ZodOptional<z.ZodObject<{
2257
- host: z.ZodOptional<z.ZodString>;
2258
- port: z.ZodOptional<z.ZodNumber>;
2259
- database: z.ZodOptional<z.ZodString>;
2260
- }, z.core.$strip>>;
2261
- }, z.core.$strip>;
2262
- }, z.core.$strip>>;
2263
- vercel: z.ZodOptional<z.ZodObject<{
2264
- environmentVariables: z.ZodArray<z.ZodObject<{
2265
- name: z.ZodString;
2266
- value: z.ZodString;
2267
- source: z.ZodEnum<{
2268
- "vercel-dashboard": "vercel-dashboard";
2269
- ".env.local": ".env.local";
2270
- }>;
2271
- }, z.core.$strip>>;
2272
- edgeRuntime: z.ZodOptional<z.ZodObject<{
2273
- maxDuration: z.ZodOptional<z.ZodNumber>;
2274
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2275
- }, z.core.$strip>>;
2276
- }, z.core.$strip>>;
2277
- }, z.core.$strip>;
2278
- metadata: z.ZodObject<{
2279
- version: z.ZodString;
2280
- lastUpdated: z.ZodString;
2281
- source: z.ZodEnum<{
2282
- code: "code";
2283
- dashboard: "dashboard";
2284
- mixed: "mixed";
2285
- }>;
2286
- serverUrl: z.ZodOptional<z.ZodString>;
2287
- deploymentStatus: z.ZodOptional<z.ZodEnum<{
2288
- error: "error";
2289
- active: "active";
2290
- inactive: "inactive";
2291
- }>>;
2292
- }, z.core.$strip>;
2293
- }, z.core.$strip>;
2294
- changes: z.ZodArray<z.ZodObject<{
2295
- path: z.ZodString;
2296
- oldValue: z.ZodUnknown;
2297
- newValue: z.ZodUnknown;
2298
- }, z.core.$strip>>;
2299
- }, z.core.$strip>;
2300
- metadata: z.ZodOptional<z.ZodObject<{
2301
- requestId: z.ZodOptional<z.ZodString>;
2302
- timestamp: z.ZodOptional<z.ZodString>;
2324
+ proofing: z.ZodOptional<z.ZodObject<{
2325
+ enabled: z.ZodBoolean;
2326
+ destinations: z.ZodArray<z.ZodObject<{
2327
+ type: z.ZodEnum<{
2328
+ custom: "custom";
2329
+ agentshield: "agentshield";
2330
+ kta: "kta";
2331
+ }>;
2332
+ apiUrl: z.ZodString;
2333
+ apiKey: z.ZodOptional<z.ZodString>;
2334
+ }, z.core.$strip>>;
2335
+ batchQueue: z.ZodObject<{
2336
+ maxBatchSize: z.ZodDefault<z.ZodNumber>;
2337
+ flushIntervalMs: z.ZodDefault<z.ZodNumber>;
2338
+ maxRetries: z.ZodDefault<z.ZodNumber>;
2339
+ }, z.core.$strip>;
2303
2340
  }, z.core.$strip>>;
2304
- }, z.core.$strip>;
2305
- declare const validateServerConfigRequestSchema: z.ZodObject<{
2306
- projectId: z.ZodString;
2307
- config: z.ZodObject<{
2308
- identity: z.ZodOptional<z.ZodObject<{
2309
- agentDid: z.ZodOptional<z.ZodString>;
2310
- serverDid: z.ZodString;
2311
- environment: z.ZodEnum<{
2312
- development: "development";
2313
- production: "production";
2314
- }>;
2315
- storageLocation: z.ZodEnum<{
2316
- "cloudflare-kv": "cloudflare-kv";
2317
- "file-system": "file-system";
2318
- "env-vars": "env-vars";
2319
- }>;
2320
- }, z.core.$strip>>;
2321
- proofing: z.ZodOptional<z.ZodObject<{
2322
- enabled: z.ZodBoolean;
2323
- destinations: z.ZodArray<z.ZodObject<{
2324
- type: z.ZodEnum<{
2325
- custom: "custom";
2326
- agentshield: "agentshield";
2327
- kta: "kta";
2328
- }>;
2329
- apiUrl: z.ZodString;
2330
- apiKey: z.ZodOptional<z.ZodString>;
2331
- }, z.core.$strip>>;
2332
- batchQueue: z.ZodObject<{
2333
- maxBatchSize: z.ZodDefault<z.ZodNumber>;
2334
- flushIntervalMs: z.ZodDefault<z.ZodNumber>;
2335
- maxRetries: z.ZodDefault<z.ZodNumber>;
2336
- }, z.core.$strip>;
2337
- }, z.core.$strip>>;
2338
- delegation: z.ZodOptional<z.ZodObject<{
2339
- enabled: z.ZodBoolean;
2340
- enforceStrictly: z.ZodBoolean;
2341
- verifier: z.ZodObject<{
2342
- type: z.ZodEnum<{
2343
- custom: "custom";
2344
- agentshield: "agentshield";
2345
- kta: "kta";
2346
- memory: "memory";
2347
- "cloudflare-kv": "cloudflare-kv";
2348
- redis: "redis";
2349
- dynamodb: "dynamodb";
2350
- }>;
2351
- apiUrl: z.ZodOptional<z.ZodString>;
2352
- cacheTtl: z.ZodOptional<z.ZodNumber>;
2353
- }, z.core.$strip>;
2354
- authorization: z.ZodObject<{
2355
- authorizationUrl: z.ZodOptional<z.ZodString>;
2356
- minReputationScore: z.ZodOptional<z.ZodNumber>;
2357
- resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
2358
- requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
2359
- }, z.core.$strip>;
2360
- }, z.core.$strip>>;
2361
- toolProtection: z.ZodOptional<z.ZodObject<{
2362
- source: z.ZodEnum<{
2363
- file: "file";
2364
- agentshield: "agentshield";
2365
- inline: "inline";
2366
- }>;
2367
- agentShield: z.ZodOptional<z.ZodObject<{
2368
- apiUrl: z.ZodString;
2369
- cacheTtl: z.ZodNumber;
2370
- }, z.core.$strip>>;
2371
- fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2372
- requiresDelegation: z.ZodBoolean;
2373
- requiredScopes: z.ZodArray<z.ZodString>;
2374
- riskLevel: z.ZodOptional<z.ZodEnum<{
2375
- low: "low";
2376
- medium: "medium";
2377
- high: "high";
2378
- critical: "critical";
2379
- }>>;
2380
- oauthProvider: z.ZodOptional<z.ZodString>;
2381
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2382
- type: z.ZodLiteral<"oauth">;
2383
- provider: z.ZodString;
2384
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2385
- }, z.core.$strip>, z.ZodObject<{
2386
- type: z.ZodLiteral<"oauth2">;
2387
- provider: z.ZodString;
2388
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2389
- }, z.core.$strip>, z.ZodObject<{
2390
- type: z.ZodLiteral<"password">;
2391
- provider: z.ZodString;
2392
- }, z.core.$strip>, z.ZodObject<{
2393
- type: z.ZodLiteral<"mdl">;
2394
- issuer: z.ZodString;
2395
- credentialType: z.ZodOptional<z.ZodString>;
2396
- }, z.core.$strip>, z.ZodObject<{
2397
- type: z.ZodLiteral<"idv">;
2398
- provider: z.ZodString;
2399
- verificationLevel: z.ZodOptional<z.ZodEnum<{
2400
- basic: "basic";
2401
- enhanced: "enhanced";
2402
- loa3: "loa3";
2403
- }>>;
2404
- }, z.core.$strip>, z.ZodObject<{
2405
- type: z.ZodLiteral<"verifiable_credential">;
2406
- credentialType: z.ZodString;
2407
- issuer: z.ZodOptional<z.ZodString>;
2408
- }, z.core.$strip>, z.ZodObject<{
2409
- type: z.ZodLiteral<"credential">;
2410
- credentialType: z.ZodString;
2411
- issuer: z.ZodOptional<z.ZodString>;
2412
- }, z.core.$strip>, z.ZodObject<{
2413
- type: z.ZodLiteral<"webauthn">;
2414
- rpId: z.ZodOptional<z.ZodString>;
2415
- userVerification: z.ZodOptional<z.ZodEnum<{
2416
- required: "required";
2417
- preferred: "preferred";
2418
- discouraged: "discouraged";
2419
- }>>;
2420
- }, z.core.$strip>, z.ZodObject<{
2421
- type: z.ZodLiteral<"siwe">;
2422
- chainId: z.ZodOptional<z.ZodNumber>;
2423
- domain: z.ZodOptional<z.ZodString>;
2424
- }, z.core.$strip>, z.ZodObject<{
2425
- type: z.ZodLiteral<"apikey">;
2426
- envVarNames: z.ZodArray<z.ZodString>;
2427
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
2428
- }, z.core.$strip>, z.ZodObject<{
2429
- type: z.ZodLiteral<"none">;
2430
- }, z.core.$strip>], "type">>;
2431
- }, z.core.$strip>>>;
2432
- }, z.core.$strip>>;
2433
- audit: z.ZodOptional<z.ZodObject<{
2434
- enabled: z.ZodBoolean;
2435
- includeProofHashes: z.ZodBoolean;
2436
- includePayloads: z.ZodBoolean;
2341
+ delegation: z.ZodOptional<z.ZodObject<{
2342
+ enabled: z.ZodBoolean;
2343
+ enforceStrictly: z.ZodBoolean;
2344
+ verifier: z.ZodObject<{
2345
+ type: z.ZodEnum<{
2346
+ "cloudflare-kv": "cloudflare-kv";
2347
+ custom: "custom";
2348
+ agentshield: "agentshield";
2349
+ kta: "kta";
2350
+ memory: "memory";
2351
+ redis: "redis";
2352
+ dynamodb: "dynamodb";
2353
+ }>;
2354
+ apiUrl: z.ZodOptional<z.ZodString>;
2355
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
2356
+ }, z.core.$strip>;
2357
+ authorization: z.ZodObject<{
2358
+ authorizationUrl: z.ZodOptional<z.ZodString>;
2359
+ minReputationScore: z.ZodOptional<z.ZodNumber>;
2360
+ resumeTokenTtl: z.ZodOptional<z.ZodNumber>;
2361
+ requireAuthForUnknown: z.ZodOptional<z.ZodBoolean>;
2362
+ }, z.core.$strip>;
2363
+ }, z.core.$strip>>;
2364
+ toolProtection: z.ZodOptional<z.ZodObject<{
2365
+ source: z.ZodEnum<{
2366
+ file: "file";
2367
+ agentshield: "agentshield";
2368
+ inline: "inline";
2369
+ }>;
2370
+ agentShield: z.ZodOptional<z.ZodObject<{
2371
+ apiUrl: z.ZodString;
2372
+ cacheTtl: z.ZodNumber;
2373
+ }, z.core.$strip>>;
2374
+ fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2375
+ requiresDelegation: z.ZodBoolean;
2376
+ requiredScopes: z.ZodArray<z.ZodString>;
2377
+ riskLevel: z.ZodOptional<z.ZodEnum<{
2378
+ low: "low";
2379
+ medium: "medium";
2380
+ high: "high";
2381
+ critical: "critical";
2382
+ }>>;
2383
+ oauthProvider: z.ZodOptional<z.ZodString>;
2384
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2385
+ type: z.ZodLiteral<"oauth">;
2386
+ provider: z.ZodString;
2387
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2388
+ }, z.core.$strip>, z.ZodObject<{
2389
+ type: z.ZodLiteral<"oauth2">;
2390
+ provider: z.ZodString;
2391
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2392
+ }, z.core.$strip>, z.ZodObject<{
2393
+ type: z.ZodLiteral<"password">;
2394
+ provider: z.ZodString;
2395
+ }, z.core.$strip>, z.ZodObject<{
2396
+ type: z.ZodLiteral<"mdl">;
2397
+ issuer: z.ZodString;
2398
+ credentialType: z.ZodOptional<z.ZodString>;
2399
+ }, z.core.$strip>, z.ZodObject<{
2400
+ type: z.ZodLiteral<"idv">;
2401
+ provider: z.ZodString;
2402
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
2403
+ basic: "basic";
2404
+ enhanced: "enhanced";
2405
+ loa3: "loa3";
2406
+ }>>;
2407
+ }, z.core.$strip>, z.ZodObject<{
2408
+ type: z.ZodLiteral<"verifiable_credential">;
2409
+ credentialType: z.ZodString;
2410
+ issuer: z.ZodOptional<z.ZodString>;
2411
+ }, z.core.$strip>, z.ZodObject<{
2412
+ type: z.ZodLiteral<"credential">;
2413
+ credentialType: z.ZodString;
2414
+ issuer: z.ZodOptional<z.ZodString>;
2415
+ }, z.core.$strip>, z.ZodObject<{
2416
+ type: z.ZodLiteral<"webauthn">;
2417
+ rpId: z.ZodOptional<z.ZodString>;
2418
+ userVerification: z.ZodOptional<z.ZodEnum<{
2419
+ required: "required";
2420
+ preferred: "preferred";
2421
+ discouraged: "discouraged";
2422
+ }>>;
2423
+ }, z.core.$strip>, z.ZodObject<{
2424
+ type: z.ZodLiteral<"siwe">;
2425
+ chainId: z.ZodOptional<z.ZodNumber>;
2426
+ domain: z.ZodOptional<z.ZodString>;
2427
+ }, z.core.$strip>, z.ZodObject<{
2428
+ type: z.ZodLiteral<"apikey">;
2429
+ envVarNames: z.ZodArray<z.ZodString>;
2430
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
2431
+ }, z.core.$strip>, z.ZodObject<{
2432
+ type: z.ZodLiteral<"none">;
2433
+ }, z.core.$strip>], "type">>;
2434
+ }, z.core.$strip>>>;
2435
+ }, z.core.$strip>>;
2436
+ audit: z.ZodOptional<z.ZodObject<{
2437
+ enabled: z.ZodBoolean;
2438
+ includeProofHashes: z.ZodBoolean;
2439
+ includePayloads: z.ZodBoolean;
2440
+ }, z.core.$strip>>;
2441
+ session: z.ZodOptional<z.ZodObject<{
2442
+ timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
2443
+ ttlMinutes: z.ZodDefault<z.ZodNumber>;
2444
+ absoluteLifetime: z.ZodOptional<z.ZodNumber>;
2445
+ }, z.core.$strip>>;
2446
+ platform: z.ZodOptional<z.ZodObject<{
2447
+ type: z.ZodEnum<{
2448
+ cloudflare: "cloudflare";
2449
+ node: "node";
2450
+ vercel: "vercel";
2451
+ }>;
2452
+ cloudflare: z.ZodOptional<z.ZodObject<{
2453
+ workers: z.ZodObject<{
2454
+ cpuMs: z.ZodDefault<z.ZodNumber>;
2455
+ memoryMb: z.ZodDefault<z.ZodNumber>;
2456
+ }, z.core.$strip>;
2457
+ kvNamespaces: z.ZodArray<z.ZodObject<{
2458
+ name: z.ZodString;
2459
+ purpose: z.ZodEnum<{
2460
+ sessions: "sessions";
2461
+ delegations: "delegations";
2462
+ cache: "cache";
2463
+ general: "general";
2464
+ }>;
2437
2465
  }, z.core.$strip>>;
2438
- session: z.ZodOptional<z.ZodObject<{
2439
- timestampSkewSeconds: z.ZodDefault<z.ZodNumber>;
2440
- ttlMinutes: z.ZodDefault<z.ZodNumber>;
2441
- absoluteLifetime: z.ZodOptional<z.ZodNumber>;
2466
+ environmentVariables: z.ZodArray<z.ZodObject<{
2467
+ name: z.ZodString;
2468
+ value: z.ZodString;
2469
+ source: z.ZodEnum<{
2470
+ "wrangler.toml": "wrangler.toml";
2471
+ secrets: "secrets";
2472
+ ".dev.vars": ".dev.vars";
2473
+ }>;
2442
2474
  }, z.core.$strip>>;
2443
- platform: z.ZodOptional<z.ZodObject<{
2444
- type: z.ZodEnum<{
2445
- cloudflare: "cloudflare";
2446
- node: "node";
2447
- vercel: "vercel";
2448
- }>;
2449
- cloudflare: z.ZodOptional<z.ZodObject<{
2450
- workers: z.ZodObject<{
2451
- cpuMs: z.ZodDefault<z.ZodNumber>;
2452
- memoryMb: z.ZodDefault<z.ZodNumber>;
2453
- }, z.core.$strip>;
2454
- kvNamespaces: z.ZodArray<z.ZodObject<{
2455
- name: z.ZodString;
2456
- purpose: z.ZodEnum<{
2457
- sessions: "sessions";
2458
- delegations: "delegations";
2459
- cache: "cache";
2460
- general: "general";
2461
- }>;
2462
- }, z.core.$strip>>;
2463
- environmentVariables: z.ZodArray<z.ZodObject<{
2464
- name: z.ZodString;
2465
- value: z.ZodString;
2466
- source: z.ZodEnum<{
2467
- "wrangler.toml": "wrangler.toml";
2468
- secrets: "secrets";
2469
- ".dev.vars": ".dev.vars";
2470
- }>;
2471
- }, z.core.$strip>>;
2472
- }, z.core.$strip>>;
2473
- node: z.ZodOptional<z.ZodObject<{
2474
- server: z.ZodObject<{
2475
- port: z.ZodDefault<z.ZodNumber>;
2476
- host: z.ZodDefault<z.ZodString>;
2477
- cors: z.ZodDefault<z.ZodBoolean>;
2478
- timeout: z.ZodDefault<z.ZodNumber>;
2479
- }, z.core.$strip>;
2480
- storage: z.ZodObject<{
2481
- type: z.ZodEnum<{
2482
- memory: "memory";
2483
- redis: "redis";
2484
- postgres: "postgres";
2485
- mongodb: "mongodb";
2486
- }>;
2487
- connection: z.ZodOptional<z.ZodObject<{
2488
- host: z.ZodOptional<z.ZodString>;
2489
- port: z.ZodOptional<z.ZodNumber>;
2490
- database: z.ZodOptional<z.ZodString>;
2491
- }, z.core.$strip>>;
2492
- }, z.core.$strip>;
2493
- }, z.core.$strip>>;
2494
- vercel: z.ZodOptional<z.ZodObject<{
2495
- environmentVariables: z.ZodArray<z.ZodObject<{
2496
- name: z.ZodString;
2497
- value: z.ZodString;
2498
- source: z.ZodEnum<{
2499
- "vercel-dashboard": "vercel-dashboard";
2500
- ".env.local": ".env.local";
2501
- }>;
2502
- }, z.core.$strip>>;
2503
- edgeRuntime: z.ZodOptional<z.ZodObject<{
2504
- maxDuration: z.ZodOptional<z.ZodNumber>;
2505
- regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2506
- }, z.core.$strip>>;
2507
- }, z.core.$strip>>;
2475
+ }, z.core.$strip>>;
2476
+ node: z.ZodOptional<z.ZodObject<{
2477
+ server: z.ZodObject<{
2478
+ port: z.ZodDefault<z.ZodNumber>;
2479
+ host: z.ZodDefault<z.ZodString>;
2480
+ cors: z.ZodDefault<z.ZodBoolean>;
2481
+ timeout: z.ZodDefault<z.ZodNumber>;
2482
+ }, z.core.$strip>;
2483
+ storage: z.ZodObject<{
2484
+ type: z.ZodEnum<{
2485
+ memory: "memory";
2486
+ redis: "redis";
2487
+ postgres: "postgres";
2488
+ mongodb: "mongodb";
2489
+ }>;
2490
+ connection: z.ZodOptional<z.ZodObject<{
2491
+ host: z.ZodOptional<z.ZodString>;
2492
+ port: z.ZodOptional<z.ZodNumber>;
2493
+ database: z.ZodOptional<z.ZodString>;
2494
+ }, z.core.$strip>>;
2495
+ }, z.core.$strip>;
2496
+ }, z.core.$strip>>;
2497
+ vercel: z.ZodOptional<z.ZodObject<{
2498
+ environmentVariables: z.ZodArray<z.ZodObject<{
2499
+ name: z.ZodString;
2500
+ value: z.ZodString;
2501
+ source: z.ZodEnum<{
2502
+ "vercel-dashboard": "vercel-dashboard";
2503
+ ".env.local": ".env.local";
2504
+ }>;
2508
2505
  }, z.core.$strip>>;
2509
- metadata: z.ZodOptional<z.ZodObject<{
2510
- version: z.ZodString;
2511
- lastUpdated: z.ZodString;
2512
- source: z.ZodEnum<{
2513
- code: "code";
2514
- dashboard: "dashboard";
2515
- mixed: "mixed";
2516
- }>;
2517
- serverUrl: z.ZodOptional<z.ZodString>;
2518
- deploymentStatus: z.ZodOptional<z.ZodEnum<{
2519
- error: "error";
2520
- active: "active";
2521
- inactive: "inactive";
2522
- }>>;
2506
+ edgeRuntime: z.ZodOptional<z.ZodObject<{
2507
+ maxDuration: z.ZodOptional<z.ZodNumber>;
2508
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2523
2509
  }, z.core.$strip>>;
2524
- }, z.core.$strip>;
2525
- }, z.core.$strip>;
2526
- declare const validateServerConfigResponseSchema: z.ZodObject<{
2527
- success: z.ZodBoolean;
2528
- data: z.ZodObject<{
2529
- valid: z.ZodBoolean;
2530
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2531
- path: z.ZodString;
2532
- message: z.ZodString;
2533
- code: z.ZodString;
2534
- }, z.core.$strip>>>;
2535
- warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2536
- path: z.ZodString;
2537
- message: z.ZodString;
2538
- }, z.core.$strip>>>;
2539
- }, z.core.$strip>;
2510
+ }, z.core.$strip>>;
2511
+ }, z.core.$strip>>;
2540
2512
  metadata: z.ZodOptional<z.ZodObject<{
2541
- requestId: z.ZodOptional<z.ZodString>;
2542
- timestamp: z.ZodOptional<z.ZodString>;
2513
+ version: z.ZodString;
2514
+ lastUpdated: z.ZodString;
2515
+ source: z.ZodEnum<{
2516
+ dashboard: "dashboard";
2517
+ code: "code";
2518
+ mixed: "mixed";
2519
+ }>;
2520
+ serverUrl: z.ZodOptional<z.ZodString>;
2521
+ deploymentStatus: z.ZodOptional<z.ZodEnum<{
2522
+ error: "error";
2523
+ active: "active";
2524
+ inactive: "inactive";
2525
+ }>>;
2543
2526
  }, z.core.$strip>>;
2527
+ }, z.core.$strip>;
2528
+ }, z.core.$strip>;
2529
+ export declare const validateServerConfigResponseSchema: z.ZodObject<{
2530
+ success: z.ZodBoolean;
2531
+ data: z.ZodObject<{
2532
+ valid: z.ZodBoolean;
2533
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2534
+ path: z.ZodString;
2535
+ message: z.ZodString;
2536
+ code: z.ZodString;
2537
+ }, z.core.$strip>>>;
2538
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2539
+ path: z.ZodString;
2540
+ message: z.ZodString;
2541
+ }, z.core.$strip>>>;
2542
+ }, z.core.$strip>;
2543
+ metadata: z.ZodOptional<z.ZodObject<{
2544
+ requestId: z.ZodOptional<z.ZodString>;
2545
+ timestamp: z.ZodOptional<z.ZodString>;
2546
+ }, z.core.$strip>>;
2544
2547
  }, z.core.$strip>;
2545
-
2546
- declare const defaultConfig: MCPIServerConfig;
2547
- declare function getDefaultConfigForPlatform(platform: 'node' | 'cloudflare' | 'vercel'): MCPIServerConfig;
2548
- declare function mergeWithDefaults(partial: Partial<MCPIServerConfig>): MCPIServerConfig;
2549
-
2550
- export { type DelegationVerifierType, type GetMergedServerConfigResponse, type GetServerConfigRequest, type GetServerConfigResponse, type MCPIServerConfig, type MergedMCPIServerConfig, type UpdateServerConfigRequest, type UpdateServerConfigResponse, type ValidateServerConfigRequest, type ValidateServerConfigResponse, auditConfigSchema, cloudflarePlatformConfigSchema, configMetadataSchema, defaultConfig, delegationConfigSchema, getDefaultConfigForPlatform, getMergedServerConfigResponseSchema, getServerConfigRequestSchema, getServerConfigResponseSchema, identityConfigSchema, mcpIServerConfigSchema, mergeWithDefaults, mergedMcpIServerConfigSchema, mergedToolProtectionConfigSchema, nodePlatformConfigSchema, platformConfigSchema, proofingConfigSchema, sessionConfigSchema, toolProtectionConfigSchema, updateServerConfigRequestSchema, updateServerConfigResponseSchema, validateServerConfigRequestSchema, validateServerConfigResponseSchema, vercelPlatformConfigSchema };
2548
+ //#endregion
2549
+ //#region src/mcpi/dashboard-config/default-config.d.ts
2550
+ export declare const defaultConfig: MCPIServerConfig;
2551
+ export declare function getDefaultConfigForPlatform(platform: 'node' | 'cloudflare' | 'vercel'): MCPIServerConfig;
2552
+ export declare function mergeWithDefaults(partial: Partial<MCPIServerConfig>): MCPIServerConfig;
2553
+ //#endregion
2554
+ export type { DelegationVerifierType, GetMergedServerConfigResponse, GetServerConfigRequest, GetServerConfigResponse, MCPIServerConfig, MergedMCPIServerConfig, UpdateServerConfigRequest, UpdateServerConfigResponse, ValidateServerConfigRequest, ValidateServerConfigResponse };
2555
+ //# sourceMappingURL=index.d.ts.map