@kya-os/checkpoint-shared 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/CHANGELOG.md +127 -2
  2. package/dist/beacon-types/index.d.mts +441 -432
  3. package/dist/beacon-types/index.d.mts.map +1 -0
  4. package/dist/beacon-types/index.d.ts +441 -432
  5. package/dist/beacon-types/index.d.ts.map +1 -0
  6. package/dist/beacon-types/index.js +198 -182
  7. package/dist/beacon-types/index.mjs +197 -179
  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 +50 -82
  19. package/dist/browser-posture-report.d.mts.map +1 -0
  20. package/dist/browser-posture-report.d.ts +50 -82
  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 +80 -111
  26. package/dist/browser-posture.d.mts.map +1 -0
  27. package/dist/browser-posture.d.ts +80 -111
  28. package/dist/browser-posture.d.ts.map +1 -0
  29. package/dist/browser-posture.js +143 -4164
  30. package/dist/browser-posture.mjs +142 -4161
  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 +375 -810
  57. package/dist/deploy/index.d.mts.map +1 -0
  58. package/dist/deploy/index.d.ts +375 -810
  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 +154 -550
  75. package/dist/gateway/index.d.mts.map +1 -0
  76. package/dist/gateway/index.d.ts +154 -550
  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 +15523 -38968
  89. package/dist/index.d.mts.map +1 -0
  90. package/dist/index.d.ts +15523 -38968
  91. package/dist/index.d.ts.map +1 -0
  92. package/dist/index.js +14950 -16029
  93. package/dist/index.mjs +14846 -15955
  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 +2395 -13915
  109. package/dist/mcpi/dashboard-config/index.d.mts.map +1 -0
  110. package/dist/mcpi/dashboard-config/index.d.ts +2395 -13915
  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 +368 -1067
  147. package/dist/tool-protection/index.d.mts.map +1 -0
  148. package/dist/tool-protection/index.d.ts +368 -1067
  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 +21 -7
@@ -1,1120 +1,421 @@
1
- import { z } from 'zod';
2
-
3
- type AuthorizationRequirement = {
4
- type: 'oauth';
5
- provider: string;
6
- requiredScopes?: string[];
1
+ import { z } from "zod";
2
+ //#region src/tool-protection/index.d.ts
3
+ export type AuthorizationRequirement = {
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
- declare const AUTHORIZATION_TYPES: {
46
- readonly OAUTH: "oauth";
47
- readonly OAUTH2: "oauth2";
48
- readonly PASSWORD: "password";
49
- readonly MDL: "mdl";
50
- readonly IDV: "idv";
51
- readonly VERIFIABLE_CREDENTIAL: "verifiable_credential";
52
- readonly WEBAUTHN: "webauthn";
53
- readonly SIWE: "siwe";
54
- readonly APIKEY: "apikey";
55
- readonly NONE: "none";
45
+ export declare const AUTHORIZATION_TYPES: {
46
+ readonly OAUTH: "oauth";
47
+ readonly OAUTH2: "oauth2";
48
+ readonly PASSWORD: "password";
49
+ readonly MDL: "mdl";
50
+ readonly IDV: "idv";
51
+ readonly VERIFIABLE_CREDENTIAL: "verifiable_credential";
52
+ readonly WEBAUTHN: "webauthn";
53
+ readonly SIWE: "siwe";
54
+ readonly APIKEY: "apikey";
55
+ readonly NONE: "none";
56
56
  };
57
- type AuthorizationType = (typeof AUTHORIZATION_TYPES)[keyof typeof AUTHORIZATION_TYPES];
58
- interface ToolProtection {
59
- requiresDelegation: boolean;
60
- requiredScopes: string[];
61
- riskLevel?: 'low' | 'medium' | 'high' | 'critical';
62
- oauthProvider?: string;
63
- authorization?: AuthorizationRequirement;
57
+ export type AuthorizationType = (typeof AUTHORIZATION_TYPES)[keyof typeof AUTHORIZATION_TYPES];
58
+ export interface ToolProtection {
59
+ requiresDelegation: boolean;
60
+ requiredScopes: string[];
61
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
62
+ oauthProvider?: string;
63
+ authorization?: AuthorizationRequirement;
64
64
  }
65
- type ToolProtectionMap = Record<string, ToolProtection>;
66
- type PartialToolProtection = Partial<ToolProtection>;
67
- type ToolProtectionUpdate = {
68
- requiresDelegation?: boolean;
69
- requiredScopes?: string[];
70
- riskLevel?: 'low' | 'medium' | 'high' | 'critical';
71
- oauthProvider?: string | null;
72
- authorization?: AuthorizationRequirement | null;
65
+ export type ToolProtectionMap = Record<string, ToolProtection>;
66
+ export type PartialToolProtection = Partial<ToolProtection>;
67
+ export type ToolProtectionUpdate = {
68
+ requiresDelegation?: boolean;
69
+ requiredScopes?: string[];
70
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
71
+ oauthProvider?: string | null;
72
+ authorization?: AuthorizationRequirement | null;
73
73
  };
74
- interface ToolProtectionResponse {
75
- toolProtections: ToolProtectionMap;
76
- metadata?: {
77
- lastUpdated?: string;
78
- version?: string;
79
- source?: string;
80
- };
74
+ export interface ToolProtectionResponse {
75
+ toolProtections: ToolProtectionMap;
76
+ metadata?: {
77
+ lastUpdated?: string;
78
+ version?: string;
79
+ source?: string;
80
+ };
81
81
  }
82
- interface DelegationRequiredErrorData {
83
- toolName: string;
84
- requiredScopes: string[];
85
- consentUrl?: string;
86
- authorizationUrl?: string;
87
- reason?: string;
82
+ export interface DelegationRequiredErrorData {
83
+ toolName: string;
84
+ requiredScopes: string[];
85
+ consentUrl?: string;
86
+ authorizationUrl?: string;
87
+ reason?: string;
88
88
  }
89
- interface AuthRequiredErrorData {
90
- error: 'auth_required';
91
- type: 'apikey' | 'oauth' | 'credential';
92
- envVarNames?: string[];
93
- configUrl: string;
94
- message: string;
89
+ export interface AuthRequiredErrorData {
90
+ error: 'auth_required';
91
+ type: 'apikey' | 'oauth' | 'credential';
92
+ envVarNames?: string[];
93
+ configUrl: string;
94
+ message: string;
95
95
  }
96
- declare const AuthRequiredErrorDataSchema: z.ZodObject<{
97
- error: z.ZodLiteral<"auth_required">;
98
- type: z.ZodEnum<["apikey", "oauth", "credential"]>;
99
- envVarNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
- configUrl: z.ZodString;
101
- message: z.ZodString;
102
- }, "strip", z.ZodTypeAny, {
103
- error: "auth_required";
104
- message: string;
105
- type: "oauth" | "credential" | "apikey";
106
- configUrl: string;
107
- envVarNames?: string[] | undefined;
108
- }, {
109
- error: "auth_required";
110
- message: string;
111
- type: "oauth" | "credential" | "apikey";
96
+ export declare const AuthRequiredErrorDataSchema: z.ZodObject<{
97
+ error: z.ZodLiteral<"auth_required">;
98
+ type: z.ZodEnum<{
99
+ oauth: "oauth";
100
+ apikey: "apikey";
101
+ credential: "credential";
102
+ }>;
103
+ envVarNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ configUrl: z.ZodString;
105
+ message: z.ZodString;
106
+ }, z.core.$strip>;
107
+ export declare class AuthRequiredError extends Error {
108
+ readonly type: AuthRequiredErrorData['type'];
109
+ readonly envVarNames?: string[];
110
+ readonly configUrl: string;
111
+ constructor(opts: {
112
+ type: AuthRequiredErrorData['type'];
113
+ envVarNames?: string[];
112
114
  configUrl: string;
113
- envVarNames?: string[] | undefined;
114
- }>;
115
- declare class AuthRequiredError extends Error {
116
- readonly type: AuthRequiredErrorData['type'];
117
- readonly envVarNames?: string[];
118
- readonly configUrl: string;
119
- constructor(opts: {
120
- type: AuthRequiredErrorData['type'];
121
- envVarNames?: string[];
122
- configUrl: string;
123
- message?: string;
124
- });
125
- toJSON(): AuthRequiredErrorData;
115
+ message?: string;
116
+ });
117
+ toJSON(): AuthRequiredErrorData;
126
118
  }
127
- type LegacyToolProtection = Omit<ToolProtection, 'authorization'> & {
128
- oauthProvider?: string;
119
+ export type LegacyToolProtection = Omit<ToolProtection, 'authorization'> & {
120
+ oauthProvider?: string;
129
121
  };
130
- type ToolProtectionInput = ToolProtection | LegacyToolProtection;
131
- declare const AuthorizationRequirementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
122
+ export type ToolProtectionInput = ToolProtection | LegacyToolProtection;
123
+ export declare const AuthorizationRequirementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
124
+ type: z.ZodLiteral<"oauth">;
125
+ provider: z.ZodString;
126
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ type: z.ZodLiteral<"oauth2">;
129
+ provider: z.ZodString;
130
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ type: z.ZodLiteral<"password">;
133
+ provider: z.ZodString;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ type: z.ZodLiteral<"mdl">;
136
+ issuer: z.ZodString;
137
+ credentialType: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ type: z.ZodLiteral<"idv">;
140
+ provider: z.ZodString;
141
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
142
+ basic: "basic";
143
+ enhanced: "enhanced";
144
+ loa3: "loa3";
145
+ }>>;
146
+ }, z.core.$strip>, z.ZodObject<{
147
+ type: z.ZodLiteral<"verifiable_credential">;
148
+ credentialType: z.ZodString;
149
+ issuer: z.ZodOptional<z.ZodString>;
150
+ }, z.core.$strip>, z.ZodObject<{
151
+ type: z.ZodLiteral<"credential">;
152
+ credentialType: z.ZodString;
153
+ issuer: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ type: z.ZodLiteral<"webauthn">;
156
+ rpId: z.ZodOptional<z.ZodString>;
157
+ userVerification: z.ZodOptional<z.ZodEnum<{
158
+ required: "required";
159
+ preferred: "preferred";
160
+ discouraged: "discouraged";
161
+ }>>;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ type: z.ZodLiteral<"siwe">;
164
+ chainId: z.ZodOptional<z.ZodNumber>;
165
+ domain: z.ZodOptional<z.ZodString>;
166
+ }, z.core.$strip>, z.ZodObject<{
167
+ type: z.ZodLiteral<"apikey">;
168
+ envVarNames: z.ZodArray<z.ZodString>;
169
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ type: z.ZodLiteral<"none">;
172
+ }, z.core.$strip>], "type">;
173
+ export declare const ToolProtectionSchema: z.ZodObject<{
174
+ requiresDelegation: z.ZodBoolean;
175
+ requiredScopes: z.ZodArray<z.ZodString>;
176
+ riskLevel: z.ZodOptional<z.ZodEnum<{
177
+ low: "low";
178
+ medium: "medium";
179
+ high: "high";
180
+ critical: "critical";
181
+ }>>;
182
+ oauthProvider: z.ZodOptional<z.ZodString>;
183
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
132
184
  type: z.ZodLiteral<"oauth">;
133
185
  provider: z.ZodString;
134
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
- }, "strip", z.ZodTypeAny, {
136
- type: "oauth";
137
- provider: string;
138
- requiredScopes?: string[] | undefined;
139
- }, {
140
- type: "oauth";
141
- provider: string;
142
- requiredScopes?: string[] | undefined;
143
- }>, z.ZodObject<{
186
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
187
+ }, z.core.$strip>, z.ZodObject<{
144
188
  type: z.ZodLiteral<"oauth2">;
145
189
  provider: z.ZodString;
146
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
147
- }, "strip", z.ZodTypeAny, {
148
- type: "oauth2";
149
- provider: string;
150
- requiredScopes?: string[] | undefined;
151
- }, {
152
- type: "oauth2";
153
- provider: string;
154
- requiredScopes?: string[] | undefined;
155
- }>, z.ZodObject<{
190
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
+ }, z.core.$strip>, z.ZodObject<{
156
192
  type: z.ZodLiteral<"password">;
157
193
  provider: z.ZodString;
158
- }, "strip", z.ZodTypeAny, {
159
- type: "password";
160
- provider: string;
161
- }, {
162
- type: "password";
163
- provider: string;
164
- }>, z.ZodObject<{
194
+ }, z.core.$strip>, z.ZodObject<{
165
195
  type: z.ZodLiteral<"mdl">;
166
196
  issuer: z.ZodString;
167
197
  credentialType: z.ZodOptional<z.ZodString>;
168
- }, "strip", z.ZodTypeAny, {
169
- type: "mdl";
170
- issuer: string;
171
- credentialType?: string | undefined;
172
- }, {
173
- type: "mdl";
174
- issuer: string;
175
- credentialType?: string | undefined;
176
- }>, z.ZodObject<{
198
+ }, z.core.$strip>, z.ZodObject<{
177
199
  type: z.ZodLiteral<"idv">;
178
200
  provider: z.ZodString;
179
- verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
180
- }, "strip", z.ZodTypeAny, {
181
- type: "idv";
182
- provider: string;
183
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
184
- }, {
185
- type: "idv";
186
- provider: string;
187
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
188
- }>, z.ZodObject<{
201
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
202
+ basic: "basic";
203
+ enhanced: "enhanced";
204
+ loa3: "loa3";
205
+ }>>;
206
+ }, z.core.$strip>, z.ZodObject<{
189
207
  type: z.ZodLiteral<"verifiable_credential">;
190
208
  credentialType: z.ZodString;
191
209
  issuer: z.ZodOptional<z.ZodString>;
192
- }, "strip", z.ZodTypeAny, {
193
- type: "verifiable_credential";
194
- credentialType: string;
195
- issuer?: string | undefined;
196
- }, {
197
- type: "verifiable_credential";
198
- credentialType: string;
199
- issuer?: string | undefined;
200
- }>, z.ZodObject<{
210
+ }, z.core.$strip>, z.ZodObject<{
201
211
  type: z.ZodLiteral<"credential">;
202
212
  credentialType: z.ZodString;
203
213
  issuer: z.ZodOptional<z.ZodString>;
204
- }, "strip", z.ZodTypeAny, {
205
- type: "credential";
206
- credentialType: string;
207
- issuer?: string | undefined;
208
- }, {
209
- type: "credential";
210
- credentialType: string;
211
- issuer?: string | undefined;
212
- }>, z.ZodObject<{
214
+ }, z.core.$strip>, z.ZodObject<{
213
215
  type: z.ZodLiteral<"webauthn">;
214
216
  rpId: z.ZodOptional<z.ZodString>;
215
- userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
216
- }, "strip", z.ZodTypeAny, {
217
- type: "webauthn";
218
- rpId?: string | undefined;
219
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
220
- }, {
221
- type: "webauthn";
222
- rpId?: string | undefined;
223
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
224
- }>, z.ZodObject<{
217
+ userVerification: z.ZodOptional<z.ZodEnum<{
218
+ required: "required";
219
+ preferred: "preferred";
220
+ discouraged: "discouraged";
221
+ }>>;
222
+ }, z.core.$strip>, z.ZodObject<{
225
223
  type: z.ZodLiteral<"siwe">;
226
224
  chainId: z.ZodOptional<z.ZodNumber>;
227
225
  domain: z.ZodOptional<z.ZodString>;
228
- }, "strip", z.ZodTypeAny, {
229
- type: "siwe";
230
- chainId?: number | undefined;
231
- domain?: string | undefined;
232
- }, {
233
- type: "siwe";
234
- chainId?: number | undefined;
235
- domain?: string | undefined;
236
- }>, z.ZodObject<{
226
+ }, z.core.$strip>, z.ZodObject<{
237
227
  type: z.ZodLiteral<"apikey">;
238
- envVarNames: z.ZodArray<z.ZodString, "many">;
228
+ envVarNames: z.ZodArray<z.ZodString>;
239
229
  headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
240
- }, "strip", z.ZodTypeAny, {
241
- type: "apikey";
242
- envVarNames: string[];
243
- headerMapping: Record<string, string>;
244
- }, {
245
- type: "apikey";
246
- envVarNames: string[];
247
- headerMapping: Record<string, string>;
248
- }>, z.ZodObject<{
230
+ }, z.core.$strip>, z.ZodObject<{
249
231
  type: z.ZodLiteral<"none">;
250
- }, "strip", z.ZodTypeAny, {
251
- type: "none";
252
- }, {
253
- type: "none";
254
- }>]>;
255
- declare const ToolProtectionSchema: z.ZodObject<{
256
- requiresDelegation: z.ZodBoolean;
257
- requiredScopes: z.ZodArray<z.ZodString, "many">;
258
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
259
- oauthProvider: z.ZodOptional<z.ZodString>;
260
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
261
- type: z.ZodLiteral<"oauth">;
262
- provider: z.ZodString;
263
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
264
- }, "strip", z.ZodTypeAny, {
265
- type: "oauth";
266
- provider: string;
267
- requiredScopes?: string[] | undefined;
268
- }, {
269
- type: "oauth";
270
- provider: string;
271
- requiredScopes?: string[] | undefined;
272
- }>, z.ZodObject<{
273
- type: z.ZodLiteral<"oauth2">;
274
- provider: z.ZodString;
275
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
- }, "strip", z.ZodTypeAny, {
277
- type: "oauth2";
278
- provider: string;
279
- requiredScopes?: string[] | undefined;
280
- }, {
281
- type: "oauth2";
282
- provider: string;
283
- requiredScopes?: string[] | undefined;
284
- }>, z.ZodObject<{
285
- type: z.ZodLiteral<"password">;
286
- provider: z.ZodString;
287
- }, "strip", z.ZodTypeAny, {
288
- type: "password";
289
- provider: string;
290
- }, {
291
- type: "password";
292
- provider: string;
293
- }>, z.ZodObject<{
294
- type: z.ZodLiteral<"mdl">;
295
- issuer: z.ZodString;
296
- credentialType: z.ZodOptional<z.ZodString>;
297
- }, "strip", z.ZodTypeAny, {
298
- type: "mdl";
299
- issuer: string;
300
- credentialType?: string | undefined;
301
- }, {
302
- type: "mdl";
303
- issuer: string;
304
- credentialType?: string | undefined;
305
- }>, z.ZodObject<{
306
- type: z.ZodLiteral<"idv">;
307
- provider: z.ZodString;
308
- verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
309
- }, "strip", z.ZodTypeAny, {
310
- type: "idv";
311
- provider: string;
312
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
313
- }, {
314
- type: "idv";
315
- provider: string;
316
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
317
- }>, z.ZodObject<{
318
- type: z.ZodLiteral<"verifiable_credential">;
319
- credentialType: z.ZodString;
320
- issuer: z.ZodOptional<z.ZodString>;
321
- }, "strip", z.ZodTypeAny, {
322
- type: "verifiable_credential";
323
- credentialType: string;
324
- issuer?: string | undefined;
325
- }, {
326
- type: "verifiable_credential";
327
- credentialType: string;
328
- issuer?: string | undefined;
329
- }>, z.ZodObject<{
330
- type: z.ZodLiteral<"credential">;
331
- credentialType: z.ZodString;
332
- issuer: z.ZodOptional<z.ZodString>;
333
- }, "strip", z.ZodTypeAny, {
334
- type: "credential";
335
- credentialType: string;
336
- issuer?: string | undefined;
337
- }, {
338
- type: "credential";
339
- credentialType: string;
340
- issuer?: string | undefined;
341
- }>, z.ZodObject<{
342
- type: z.ZodLiteral<"webauthn">;
343
- rpId: z.ZodOptional<z.ZodString>;
344
- userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
345
- }, "strip", z.ZodTypeAny, {
346
- type: "webauthn";
347
- rpId?: string | undefined;
348
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
349
- }, {
350
- type: "webauthn";
351
- rpId?: string | undefined;
352
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
353
- }>, z.ZodObject<{
354
- type: z.ZodLiteral<"siwe">;
355
- chainId: z.ZodOptional<z.ZodNumber>;
356
- domain: z.ZodOptional<z.ZodString>;
357
- }, "strip", z.ZodTypeAny, {
358
- type: "siwe";
359
- chainId?: number | undefined;
360
- domain?: string | undefined;
361
- }, {
362
- type: "siwe";
363
- chainId?: number | undefined;
364
- domain?: string | undefined;
365
- }>, z.ZodObject<{
366
- type: z.ZodLiteral<"apikey">;
367
- envVarNames: z.ZodArray<z.ZodString, "many">;
368
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
369
- }, "strip", z.ZodTypeAny, {
370
- type: "apikey";
371
- envVarNames: string[];
372
- headerMapping: Record<string, string>;
373
- }, {
374
- type: "apikey";
375
- envVarNames: string[];
376
- headerMapping: Record<string, string>;
377
- }>, z.ZodObject<{
378
- type: z.ZodLiteral<"none">;
379
- }, "strip", z.ZodTypeAny, {
380
- type: "none";
381
- }, {
382
- type: "none";
383
- }>]>>;
384
- }, "strip", z.ZodTypeAny, {
385
- requiresDelegation: boolean;
386
- requiredScopes: string[];
387
- authorization?: {
388
- type: "oauth";
389
- provider: string;
390
- requiredScopes?: string[] | undefined;
391
- } | {
392
- type: "oauth2";
393
- provider: string;
394
- requiredScopes?: string[] | undefined;
395
- } | {
396
- type: "password";
397
- provider: string;
398
- } | {
399
- type: "mdl";
400
- issuer: string;
401
- credentialType?: string | undefined;
402
- } | {
403
- type: "idv";
404
- provider: string;
405
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
406
- } | {
407
- type: "verifiable_credential";
408
- credentialType: string;
409
- issuer?: string | undefined;
410
- } | {
411
- type: "credential";
412
- credentialType: string;
413
- issuer?: string | undefined;
414
- } | {
415
- type: "webauthn";
416
- rpId?: string | undefined;
417
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
418
- } | {
419
- type: "siwe";
420
- chainId?: number | undefined;
421
- domain?: string | undefined;
422
- } | {
423
- type: "apikey";
424
- envVarNames: string[];
425
- headerMapping: Record<string, string>;
426
- } | {
427
- type: "none";
428
- } | undefined;
429
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
430
- oauthProvider?: string | undefined;
431
- }, {
432
- requiresDelegation: boolean;
433
- requiredScopes: string[];
434
- authorization?: {
435
- type: "oauth";
436
- provider: string;
437
- requiredScopes?: string[] | undefined;
438
- } | {
439
- type: "oauth2";
440
- provider: string;
441
- requiredScopes?: string[] | undefined;
442
- } | {
443
- type: "password";
444
- provider: string;
445
- } | {
446
- type: "mdl";
447
- issuer: string;
448
- credentialType?: string | undefined;
449
- } | {
450
- type: "idv";
451
- provider: string;
452
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
453
- } | {
454
- type: "verifiable_credential";
455
- credentialType: string;
456
- issuer?: string | undefined;
457
- } | {
458
- type: "credential";
459
- credentialType: string;
460
- issuer?: string | undefined;
461
- } | {
462
- type: "webauthn";
463
- rpId?: string | undefined;
464
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
465
- } | {
466
- type: "siwe";
467
- chainId?: number | undefined;
468
- domain?: string | undefined;
469
- } | {
470
- type: "apikey";
471
- envVarNames: string[];
472
- headerMapping: Record<string, string>;
473
- } | {
474
- type: "none";
475
- } | undefined;
476
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
477
- oauthProvider?: string | undefined;
478
- }>;
479
- declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
480
- requiresDelegation: z.ZodBoolean;
481
- requiredScopes: z.ZodArray<z.ZodString, "many">;
482
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
483
- oauthProvider: z.ZodOptional<z.ZodString>;
484
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
485
- type: z.ZodLiteral<"oauth">;
486
- provider: z.ZodString;
487
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
488
- }, "strip", z.ZodTypeAny, {
489
- type: "oauth";
490
- provider: string;
491
- requiredScopes?: string[] | undefined;
492
- }, {
493
- type: "oauth";
494
- provider: string;
495
- requiredScopes?: string[] | undefined;
496
- }>, z.ZodObject<{
497
- type: z.ZodLiteral<"oauth2">;
498
- provider: z.ZodString;
499
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
500
- }, "strip", z.ZodTypeAny, {
501
- type: "oauth2";
502
- provider: string;
503
- requiredScopes?: string[] | undefined;
504
- }, {
505
- type: "oauth2";
506
- provider: string;
507
- requiredScopes?: string[] | undefined;
508
- }>, z.ZodObject<{
509
- type: z.ZodLiteral<"password">;
510
- provider: z.ZodString;
511
- }, "strip", z.ZodTypeAny, {
512
- type: "password";
513
- provider: string;
514
- }, {
515
- type: "password";
516
- provider: string;
517
- }>, z.ZodObject<{
518
- type: z.ZodLiteral<"mdl">;
519
- issuer: z.ZodString;
520
- credentialType: z.ZodOptional<z.ZodString>;
521
- }, "strip", z.ZodTypeAny, {
522
- type: "mdl";
523
- issuer: string;
524
- credentialType?: string | undefined;
525
- }, {
526
- type: "mdl";
527
- issuer: string;
528
- credentialType?: string | undefined;
529
- }>, z.ZodObject<{
530
- type: z.ZodLiteral<"idv">;
531
- provider: z.ZodString;
532
- verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
533
- }, "strip", z.ZodTypeAny, {
534
- type: "idv";
535
- provider: string;
536
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
537
- }, {
538
- type: "idv";
539
- provider: string;
540
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
541
- }>, z.ZodObject<{
542
- type: z.ZodLiteral<"verifiable_credential">;
543
- credentialType: z.ZodString;
544
- issuer: z.ZodOptional<z.ZodString>;
545
- }, "strip", z.ZodTypeAny, {
546
- type: "verifiable_credential";
547
- credentialType: string;
548
- issuer?: string | undefined;
549
- }, {
550
- type: "verifiable_credential";
551
- credentialType: string;
552
- issuer?: string | undefined;
553
- }>, z.ZodObject<{
554
- type: z.ZodLiteral<"credential">;
555
- credentialType: z.ZodString;
556
- issuer: z.ZodOptional<z.ZodString>;
557
- }, "strip", z.ZodTypeAny, {
558
- type: "credential";
559
- credentialType: string;
560
- issuer?: string | undefined;
561
- }, {
562
- type: "credential";
563
- credentialType: string;
564
- issuer?: string | undefined;
565
- }>, z.ZodObject<{
566
- type: z.ZodLiteral<"webauthn">;
567
- rpId: z.ZodOptional<z.ZodString>;
568
- userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
569
- }, "strip", z.ZodTypeAny, {
570
- type: "webauthn";
571
- rpId?: string | undefined;
572
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
573
- }, {
574
- type: "webauthn";
575
- rpId?: string | undefined;
576
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
577
- }>, z.ZodObject<{
578
- type: z.ZodLiteral<"siwe">;
579
- chainId: z.ZodOptional<z.ZodNumber>;
580
- domain: z.ZodOptional<z.ZodString>;
581
- }, "strip", z.ZodTypeAny, {
582
- type: "siwe";
583
- chainId?: number | undefined;
584
- domain?: string | undefined;
585
- }, {
586
- type: "siwe";
587
- chainId?: number | undefined;
588
- domain?: string | undefined;
589
- }>, z.ZodObject<{
590
- type: z.ZodLiteral<"apikey">;
591
- envVarNames: z.ZodArray<z.ZodString, "many">;
592
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
593
- }, "strip", z.ZodTypeAny, {
594
- type: "apikey";
595
- envVarNames: string[];
596
- headerMapping: Record<string, string>;
597
- }, {
598
- type: "apikey";
599
- envVarNames: string[];
600
- headerMapping: Record<string, string>;
601
- }>, z.ZodObject<{
602
- type: z.ZodLiteral<"none">;
603
- }, "strip", z.ZodTypeAny, {
604
- type: "none";
605
- }, {
606
- type: "none";
607
- }>]>>;
608
- }, "strip", z.ZodTypeAny, {
609
- requiresDelegation: boolean;
610
- requiredScopes: string[];
611
- authorization?: {
612
- type: "oauth";
613
- provider: string;
614
- requiredScopes?: string[] | undefined;
615
- } | {
616
- type: "oauth2";
617
- provider: string;
618
- requiredScopes?: string[] | undefined;
619
- } | {
620
- type: "password";
621
- provider: string;
622
- } | {
623
- type: "mdl";
624
- issuer: string;
625
- credentialType?: string | undefined;
626
- } | {
627
- type: "idv";
628
- provider: string;
629
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
630
- } | {
631
- type: "verifiable_credential";
632
- credentialType: string;
633
- issuer?: string | undefined;
634
- } | {
635
- type: "credential";
636
- credentialType: string;
637
- issuer?: string | undefined;
638
- } | {
639
- type: "webauthn";
640
- rpId?: string | undefined;
641
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
642
- } | {
643
- type: "siwe";
644
- chainId?: number | undefined;
645
- domain?: string | undefined;
646
- } | {
647
- type: "apikey";
648
- envVarNames: string[];
649
- headerMapping: Record<string, string>;
650
- } | {
651
- type: "none";
652
- } | undefined;
653
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
654
- oauthProvider?: string | undefined;
655
- }, {
656
- requiresDelegation: boolean;
657
- requiredScopes: string[];
658
- authorization?: {
659
- type: "oauth";
660
- provider: string;
661
- requiredScopes?: string[] | undefined;
662
- } | {
663
- type: "oauth2";
664
- provider: string;
665
- requiredScopes?: string[] | undefined;
666
- } | {
667
- type: "password";
668
- provider: string;
669
- } | {
670
- type: "mdl";
671
- issuer: string;
672
- credentialType?: string | undefined;
673
- } | {
674
- type: "idv";
675
- provider: string;
676
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
677
- } | {
678
- type: "verifiable_credential";
679
- credentialType: string;
680
- issuer?: string | undefined;
681
- } | {
682
- type: "credential";
683
- credentialType: string;
684
- issuer?: string | undefined;
685
- } | {
686
- type: "webauthn";
687
- rpId?: string | undefined;
688
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
689
- } | {
690
- type: "siwe";
691
- chainId?: number | undefined;
692
- domain?: string | undefined;
693
- } | {
694
- type: "apikey";
695
- envVarNames: string[];
696
- headerMapping: Record<string, string>;
697
- } | {
698
- type: "none";
699
- } | undefined;
700
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
701
- oauthProvider?: string | undefined;
702
- }>>;
703
- declare const ToolProtectionResponseSchema: z.ZodObject<{
704
- toolProtections: z.ZodRecord<z.ZodString, z.ZodObject<{
705
- requiresDelegation: z.ZodBoolean;
706
- requiredScopes: z.ZodArray<z.ZodString, "many">;
707
- riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
708
- oauthProvider: z.ZodOptional<z.ZodString>;
709
- authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
710
- type: z.ZodLiteral<"oauth">;
711
- provider: z.ZodString;
712
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
713
- }, "strip", z.ZodTypeAny, {
714
- type: "oauth";
715
- provider: string;
716
- requiredScopes?: string[] | undefined;
717
- }, {
718
- type: "oauth";
719
- provider: string;
720
- requiredScopes?: string[] | undefined;
721
- }>, z.ZodObject<{
722
- type: z.ZodLiteral<"oauth2">;
723
- provider: z.ZodString;
724
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
725
- }, "strip", z.ZodTypeAny, {
726
- type: "oauth2";
727
- provider: string;
728
- requiredScopes?: string[] | undefined;
729
- }, {
730
- type: "oauth2";
731
- provider: string;
732
- requiredScopes?: string[] | undefined;
733
- }>, z.ZodObject<{
734
- type: z.ZodLiteral<"password">;
735
- provider: z.ZodString;
736
- }, "strip", z.ZodTypeAny, {
737
- type: "password";
738
- provider: string;
739
- }, {
740
- type: "password";
741
- provider: string;
742
- }>, z.ZodObject<{
743
- type: z.ZodLiteral<"mdl">;
744
- issuer: z.ZodString;
745
- credentialType: z.ZodOptional<z.ZodString>;
746
- }, "strip", z.ZodTypeAny, {
747
- type: "mdl";
748
- issuer: string;
749
- credentialType?: string | undefined;
750
- }, {
751
- type: "mdl";
752
- issuer: string;
753
- credentialType?: string | undefined;
754
- }>, z.ZodObject<{
755
- type: z.ZodLiteral<"idv">;
756
- provider: z.ZodString;
757
- verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
758
- }, "strip", z.ZodTypeAny, {
759
- type: "idv";
760
- provider: string;
761
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
762
- }, {
763
- type: "idv";
764
- provider: string;
765
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
766
- }>, z.ZodObject<{
767
- type: z.ZodLiteral<"verifiable_credential">;
768
- credentialType: z.ZodString;
769
- issuer: z.ZodOptional<z.ZodString>;
770
- }, "strip", z.ZodTypeAny, {
771
- type: "verifiable_credential";
772
- credentialType: string;
773
- issuer?: string | undefined;
774
- }, {
775
- type: "verifiable_credential";
776
- credentialType: string;
777
- issuer?: string | undefined;
778
- }>, z.ZodObject<{
779
- type: z.ZodLiteral<"credential">;
780
- credentialType: z.ZodString;
781
- issuer: z.ZodOptional<z.ZodString>;
782
- }, "strip", z.ZodTypeAny, {
783
- type: "credential";
784
- credentialType: string;
785
- issuer?: string | undefined;
786
- }, {
787
- type: "credential";
788
- credentialType: string;
789
- issuer?: string | undefined;
790
- }>, z.ZodObject<{
791
- type: z.ZodLiteral<"webauthn">;
792
- rpId: z.ZodOptional<z.ZodString>;
793
- userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
794
- }, "strip", z.ZodTypeAny, {
795
- type: "webauthn";
796
- rpId?: string | undefined;
797
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
798
- }, {
799
- type: "webauthn";
800
- rpId?: string | undefined;
801
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
802
- }>, z.ZodObject<{
803
- type: z.ZodLiteral<"siwe">;
804
- chainId: z.ZodOptional<z.ZodNumber>;
805
- domain: z.ZodOptional<z.ZodString>;
806
- }, "strip", z.ZodTypeAny, {
807
- type: "siwe";
808
- chainId?: number | undefined;
809
- domain?: string | undefined;
810
- }, {
811
- type: "siwe";
812
- chainId?: number | undefined;
813
- domain?: string | undefined;
814
- }>, z.ZodObject<{
815
- type: z.ZodLiteral<"apikey">;
816
- envVarNames: z.ZodArray<z.ZodString, "many">;
817
- headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
818
- }, "strip", z.ZodTypeAny, {
819
- type: "apikey";
820
- envVarNames: string[];
821
- headerMapping: Record<string, string>;
822
- }, {
823
- type: "apikey";
824
- envVarNames: string[];
825
- headerMapping: Record<string, string>;
826
- }>, z.ZodObject<{
827
- type: z.ZodLiteral<"none">;
828
- }, "strip", z.ZodTypeAny, {
829
- type: "none";
830
- }, {
831
- type: "none";
832
- }>]>>;
833
- }, "strip", z.ZodTypeAny, {
834
- requiresDelegation: boolean;
835
- requiredScopes: string[];
836
- authorization?: {
837
- type: "oauth";
838
- provider: string;
839
- requiredScopes?: string[] | undefined;
840
- } | {
841
- type: "oauth2";
842
- provider: string;
843
- requiredScopes?: string[] | undefined;
844
- } | {
845
- type: "password";
846
- provider: string;
847
- } | {
848
- type: "mdl";
849
- issuer: string;
850
- credentialType?: string | undefined;
851
- } | {
852
- type: "idv";
853
- provider: string;
854
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
855
- } | {
856
- type: "verifiable_credential";
857
- credentialType: string;
858
- issuer?: string | undefined;
859
- } | {
860
- type: "credential";
861
- credentialType: string;
862
- issuer?: string | undefined;
863
- } | {
864
- type: "webauthn";
865
- rpId?: string | undefined;
866
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
867
- } | {
868
- type: "siwe";
869
- chainId?: number | undefined;
870
- domain?: string | undefined;
871
- } | {
872
- type: "apikey";
873
- envVarNames: string[];
874
- headerMapping: Record<string, string>;
875
- } | {
876
- type: "none";
877
- } | undefined;
878
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
879
- oauthProvider?: string | undefined;
880
- }, {
881
- requiresDelegation: boolean;
882
- requiredScopes: string[];
883
- authorization?: {
884
- type: "oauth";
885
- provider: string;
886
- requiredScopes?: string[] | undefined;
887
- } | {
888
- type: "oauth2";
889
- provider: string;
890
- requiredScopes?: string[] | undefined;
891
- } | {
892
- type: "password";
893
- provider: string;
894
- } | {
895
- type: "mdl";
896
- issuer: string;
897
- credentialType?: string | undefined;
898
- } | {
899
- type: "idv";
900
- provider: string;
901
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
902
- } | {
903
- type: "verifiable_credential";
904
- credentialType: string;
905
- issuer?: string | undefined;
906
- } | {
907
- type: "credential";
908
- credentialType: string;
909
- issuer?: string | undefined;
910
- } | {
911
- type: "webauthn";
912
- rpId?: string | undefined;
913
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
914
- } | {
915
- type: "siwe";
916
- chainId?: number | undefined;
917
- domain?: string | undefined;
918
- } | {
919
- type: "apikey";
920
- envVarNames: string[];
921
- headerMapping: Record<string, string>;
922
- } | {
923
- type: "none";
924
- } | undefined;
925
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
926
- oauthProvider?: string | undefined;
232
+ }, z.core.$strip>], "type">>;
233
+ }, z.core.$strip>;
234
+ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
235
+ requiresDelegation: z.ZodBoolean;
236
+ requiredScopes: z.ZodArray<z.ZodString>;
237
+ riskLevel: z.ZodOptional<z.ZodEnum<{
238
+ low: "low";
239
+ medium: "medium";
240
+ high: "high";
241
+ critical: "critical";
242
+ }>>;
243
+ oauthProvider: z.ZodOptional<z.ZodString>;
244
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
245
+ type: z.ZodLiteral<"oauth">;
246
+ provider: z.ZodString;
247
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ type: z.ZodLiteral<"oauth2">;
250
+ provider: z.ZodString;
251
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ type: z.ZodLiteral<"password">;
254
+ provider: z.ZodString;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ type: z.ZodLiteral<"mdl">;
257
+ issuer: z.ZodString;
258
+ credentialType: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ type: z.ZodLiteral<"idv">;
261
+ provider: z.ZodString;
262
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
263
+ basic: "basic";
264
+ enhanced: "enhanced";
265
+ loa3: "loa3";
927
266
  }>>;
928
- metadata: z.ZodOptional<z.ZodObject<{
929
- lastUpdated: z.ZodOptional<z.ZodString>;
930
- version: z.ZodOptional<z.ZodString>;
931
- source: z.ZodOptional<z.ZodString>;
932
- }, "strip", z.ZodTypeAny, {
933
- lastUpdated?: string | undefined;
934
- version?: string | undefined;
935
- source?: string | undefined;
936
- }, {
937
- lastUpdated?: string | undefined;
938
- version?: string | undefined;
939
- source?: string | undefined;
267
+ }, z.core.$strip>, z.ZodObject<{
268
+ type: z.ZodLiteral<"verifiable_credential">;
269
+ credentialType: z.ZodString;
270
+ issuer: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strip>, z.ZodObject<{
272
+ type: z.ZodLiteral<"credential">;
273
+ credentialType: z.ZodString;
274
+ issuer: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ type: z.ZodLiteral<"webauthn">;
277
+ rpId: z.ZodOptional<z.ZodString>;
278
+ userVerification: z.ZodOptional<z.ZodEnum<{
279
+ required: "required";
280
+ preferred: "preferred";
281
+ discouraged: "discouraged";
940
282
  }>>;
941
- }, "strip", z.ZodTypeAny, {
942
- toolProtections: Record<string, {
943
- requiresDelegation: boolean;
944
- requiredScopes: string[];
945
- authorization?: {
946
- type: "oauth";
947
- provider: string;
948
- requiredScopes?: string[] | undefined;
949
- } | {
950
- type: "oauth2";
951
- provider: string;
952
- requiredScopes?: string[] | undefined;
953
- } | {
954
- type: "password";
955
- provider: string;
956
- } | {
957
- type: "mdl";
958
- issuer: string;
959
- credentialType?: string | undefined;
960
- } | {
961
- type: "idv";
962
- provider: string;
963
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
964
- } | {
965
- type: "verifiable_credential";
966
- credentialType: string;
967
- issuer?: string | undefined;
968
- } | {
969
- type: "credential";
970
- credentialType: string;
971
- issuer?: string | undefined;
972
- } | {
973
- type: "webauthn";
974
- rpId?: string | undefined;
975
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
976
- } | {
977
- type: "siwe";
978
- chainId?: number | undefined;
979
- domain?: string | undefined;
980
- } | {
981
- type: "apikey";
982
- envVarNames: string[];
983
- headerMapping: Record<string, string>;
984
- } | {
985
- type: "none";
986
- } | undefined;
987
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
988
- oauthProvider?: string | undefined;
989
- }>;
990
- metadata?: {
991
- lastUpdated?: string | undefined;
992
- version?: string | undefined;
993
- source?: string | undefined;
994
- } | undefined;
995
- }, {
996
- toolProtections: Record<string, {
997
- requiresDelegation: boolean;
998
- requiredScopes: string[];
999
- authorization?: {
1000
- type: "oauth";
1001
- provider: string;
1002
- requiredScopes?: string[] | undefined;
1003
- } | {
1004
- type: "oauth2";
1005
- provider: string;
1006
- requiredScopes?: string[] | undefined;
1007
- } | {
1008
- type: "password";
1009
- provider: string;
1010
- } | {
1011
- type: "mdl";
1012
- issuer: string;
1013
- credentialType?: string | undefined;
1014
- } | {
1015
- type: "idv";
1016
- provider: string;
1017
- verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1018
- } | {
1019
- type: "verifiable_credential";
1020
- credentialType: string;
1021
- issuer?: string | undefined;
1022
- } | {
1023
- type: "credential";
1024
- credentialType: string;
1025
- issuer?: string | undefined;
1026
- } | {
1027
- type: "webauthn";
1028
- rpId?: string | undefined;
1029
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
1030
- } | {
1031
- type: "siwe";
1032
- chainId?: number | undefined;
1033
- domain?: string | undefined;
1034
- } | {
1035
- type: "apikey";
1036
- envVarNames: string[];
1037
- headerMapping: Record<string, string>;
1038
- } | {
1039
- type: "none";
1040
- } | undefined;
1041
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1042
- oauthProvider?: string | undefined;
1043
- }>;
1044
- metadata?: {
1045
- lastUpdated?: string | undefined;
1046
- version?: string | undefined;
1047
- source?: string | undefined;
1048
- } | undefined;
1049
- }>;
1050
- declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
1051
- toolName: z.ZodString;
1052
- requiredScopes: z.ZodArray<z.ZodString, "many">;
1053
- consentUrl: z.ZodOptional<z.ZodString>;
1054
- authorizationUrl: z.ZodOptional<z.ZodString>;
1055
- reason: z.ZodOptional<z.ZodString>;
1056
- }, "strip", z.ZodTypeAny, {
1057
- requiredScopes: string[];
1058
- toolName: string;
1059
- consentUrl?: string | undefined;
1060
- authorizationUrl?: string | undefined;
1061
- reason?: string | undefined;
1062
- }, {
1063
- requiredScopes: string[];
1064
- toolName: string;
1065
- consentUrl?: string | undefined;
1066
- authorizationUrl?: string | undefined;
1067
- reason?: string | undefined;
1068
- }>;
1069
- declare function isToolProtection(obj: unknown): obj is ToolProtection;
1070
- declare function isToolProtectionMap(obj: unknown): obj is ToolProtectionMap;
1071
- declare function isToolProtectionResponse(obj: unknown): obj is ToolProtectionResponse;
1072
- declare function isDelegationRequiredErrorData(obj: unknown): obj is DelegationRequiredErrorData;
1073
- declare function isAuthorizationRequirement(obj: unknown): obj is AuthorizationRequirement;
1074
- declare function hasOAuthAuthorization(protection: ToolProtection): protection is ToolProtection & {
1075
- authorization: {
1076
- type: 'oauth' | 'oauth2';
1077
- };
283
+ }, z.core.$strip>, z.ZodObject<{
284
+ type: z.ZodLiteral<"siwe">;
285
+ chainId: z.ZodOptional<z.ZodNumber>;
286
+ domain: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strip>, z.ZodObject<{
288
+ type: z.ZodLiteral<"apikey">;
289
+ envVarNames: z.ZodArray<z.ZodString>;
290
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
291
+ }, z.core.$strip>, z.ZodObject<{
292
+ type: z.ZodLiteral<"none">;
293
+ }, z.core.$strip>], "type">>;
294
+ }, z.core.$strip>>;
295
+ export declare const ToolProtectionResponseSchema: z.ZodObject<{
296
+ toolProtections: z.ZodRecord<z.ZodString, z.ZodObject<{
297
+ requiresDelegation: z.ZodBoolean;
298
+ requiredScopes: z.ZodArray<z.ZodString>;
299
+ riskLevel: z.ZodOptional<z.ZodEnum<{
300
+ low: "low";
301
+ medium: "medium";
302
+ high: "high";
303
+ critical: "critical";
304
+ }>>;
305
+ oauthProvider: z.ZodOptional<z.ZodString>;
306
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
307
+ type: z.ZodLiteral<"oauth">;
308
+ provider: z.ZodString;
309
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ type: z.ZodLiteral<"oauth2">;
312
+ provider: z.ZodString;
313
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ type: z.ZodLiteral<"password">;
316
+ provider: z.ZodString;
317
+ }, z.core.$strip>, z.ZodObject<{
318
+ type: z.ZodLiteral<"mdl">;
319
+ issuer: z.ZodString;
320
+ credentialType: z.ZodOptional<z.ZodString>;
321
+ }, z.core.$strip>, z.ZodObject<{
322
+ type: z.ZodLiteral<"idv">;
323
+ provider: z.ZodString;
324
+ verificationLevel: z.ZodOptional<z.ZodEnum<{
325
+ basic: "basic";
326
+ enhanced: "enhanced";
327
+ loa3: "loa3";
328
+ }>>;
329
+ }, z.core.$strip>, z.ZodObject<{
330
+ type: z.ZodLiteral<"verifiable_credential">;
331
+ credentialType: z.ZodString;
332
+ issuer: z.ZodOptional<z.ZodString>;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ type: z.ZodLiteral<"credential">;
335
+ credentialType: z.ZodString;
336
+ issuer: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ type: z.ZodLiteral<"webauthn">;
339
+ rpId: z.ZodOptional<z.ZodString>;
340
+ userVerification: z.ZodOptional<z.ZodEnum<{
341
+ required: "required";
342
+ preferred: "preferred";
343
+ discouraged: "discouraged";
344
+ }>>;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ type: z.ZodLiteral<"siwe">;
347
+ chainId: z.ZodOptional<z.ZodNumber>;
348
+ domain: z.ZodOptional<z.ZodString>;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ type: z.ZodLiteral<"apikey">;
351
+ envVarNames: z.ZodArray<z.ZodString>;
352
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ type: z.ZodLiteral<"none">;
355
+ }, z.core.$strip>], "type">>;
356
+ }, z.core.$strip>>;
357
+ metadata: z.ZodOptional<z.ZodObject<{
358
+ lastUpdated: z.ZodOptional<z.ZodString>;
359
+ version: z.ZodOptional<z.ZodString>;
360
+ source: z.ZodOptional<z.ZodString>;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strip>;
363
+ export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
364
+ toolName: z.ZodString;
365
+ requiredScopes: z.ZodArray<z.ZodString>;
366
+ consentUrl: z.ZodOptional<z.ZodString>;
367
+ authorizationUrl: z.ZodOptional<z.ZodString>;
368
+ reason: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strip>;
370
+ export declare function isToolProtection(obj: unknown): obj is ToolProtection;
371
+ export declare function isToolProtectionMap(obj: unknown): obj is ToolProtectionMap;
372
+ export declare function isToolProtectionResponse(obj: unknown): obj is ToolProtectionResponse;
373
+ export declare function isDelegationRequiredErrorData(obj: unknown): obj is DelegationRequiredErrorData;
374
+ export declare function isAuthorizationRequirement(obj: unknown): obj is AuthorizationRequirement;
375
+ export declare function hasOAuthAuthorization(protection: ToolProtection): protection is ToolProtection & {
376
+ authorization: {
377
+ type: 'oauth' | 'oauth2';
378
+ };
1078
379
  };
1079
- declare function hasPasswordAuthorization(protection: ToolProtection): protection is ToolProtection & {
1080
- authorization: {
1081
- type: 'password';
1082
- };
380
+ export declare function hasPasswordAuthorization(protection: ToolProtection): protection is ToolProtection & {
381
+ authorization: {
382
+ type: 'password';
383
+ };
1083
384
  };
1084
- declare function hasVerifiableCredentialAuthorization(protection: ToolProtection): protection is ToolProtection & {
1085
- authorization: {
1086
- type: 'verifiable_credential' | 'credential';
1087
- };
385
+ export declare function hasVerifiableCredentialAuthorization(protection: ToolProtection): protection is ToolProtection & {
386
+ authorization: {
387
+ type: 'verifiable_credential' | 'credential';
388
+ };
1088
389
  };
1089
- declare function hasApiKeyAuthorization(protection: ToolProtection): protection is ToolProtection & {
1090
- authorization: {
1091
- type: 'apikey';
1092
- };
390
+ export declare function hasApiKeyAuthorization(protection: ToolProtection): protection is ToolProtection & {
391
+ authorization: {
392
+ type: 'apikey';
393
+ };
1093
394
  };
1094
- declare function validateToolProtection(obj: unknown): ToolProtection;
1095
- declare function validateToolProtectionMap(obj: unknown): ToolProtectionMap;
1096
- declare function validateToolProtectionResponse(obj: unknown): ToolProtectionResponse;
1097
- declare function validateDelegationRequiredErrorData(obj: unknown): DelegationRequiredErrorData;
1098
- declare function toolRequiresDelegation(toolName: string, protections: ToolProtectionMap): boolean;
1099
- declare function getToolRequiredScopes(toolName: string, protections: ToolProtectionMap): string[];
1100
- declare function getToolRiskLevel(toolName: string, protections: ToolProtectionMap): ToolProtection['riskLevel'] | undefined;
1101
- declare function createDelegationRequiredError(toolName: string, requiredScopes: string[], consentUrl?: string): DelegationRequiredErrorData;
1102
- declare function normalizeToolProtection(raw: ToolProtection | PartialToolProtection): ToolProtection;
1103
- declare const CONSENT_PROVIDER_TYPES: {
1104
- readonly NONE: "none";
1105
- readonly OAUTH2: "oauth2";
1106
- readonly PASSWORD: "password";
1107
- readonly CREDENTIAL: "credential";
1108
- readonly MAGIC_LINK: "magic_link";
1109
- readonly OTP: "otp";
395
+ export declare function validateToolProtection(obj: unknown): ToolProtection;
396
+ export declare function validateToolProtectionMap(obj: unknown): ToolProtectionMap;
397
+ export declare function validateToolProtectionResponse(obj: unknown): ToolProtectionResponse;
398
+ export declare function validateDelegationRequiredErrorData(obj: unknown): DelegationRequiredErrorData;
399
+ export declare function toolRequiresDelegation(toolName: string, protections: ToolProtectionMap): boolean;
400
+ export declare function getToolRequiredScopes(toolName: string, protections: ToolProtectionMap): string[];
401
+ export declare function getToolRiskLevel(toolName: string, protections: ToolProtectionMap): ToolProtection['riskLevel'] | undefined;
402
+ export declare function createDelegationRequiredError(toolName: string, requiredScopes: string[], consentUrl?: string): DelegationRequiredErrorData;
403
+ export declare function normalizeToolProtection(raw: ToolProtection | PartialToolProtection): ToolProtection;
404
+ export declare const CONSENT_PROVIDER_TYPES: {
405
+ readonly NONE: "none";
406
+ readonly OAUTH2: "oauth2";
407
+ readonly PASSWORD: "password";
408
+ readonly CREDENTIAL: "credential";
409
+ readonly MAGIC_LINK: "magic_link";
410
+ readonly OTP: "otp";
1110
411
  };
1111
- type ConsentProviderType = (typeof CONSENT_PROVIDER_TYPES)[keyof typeof CONSENT_PROVIDER_TYPES];
1112
- declare function determineConsentProviderType(hasOAuthIdentity: boolean, isPasswordFlow?: boolean, isMagicLinkFlow?: boolean, isOtpFlow?: boolean): ConsentProviderType;
1113
- declare function getAuthorizationTypeLabel(auth: AuthorizationRequirement): string;
1114
- declare function getAuthorizationTypeKey(auth: AuthorizationRequirement): string;
1115
- declare function normalizeAuthorizationType(auth: AuthorizationRequirement, options?: {
1116
- warn?: boolean;
1117
- logger?: (message: string) => void;
412
+ export type ConsentProviderType = (typeof CONSENT_PROVIDER_TYPES)[keyof typeof CONSENT_PROVIDER_TYPES];
413
+ export declare function determineConsentProviderType(hasOAuthIdentity: boolean, isPasswordFlow?: boolean, isMagicLinkFlow?: boolean, isOtpFlow?: boolean): ConsentProviderType;
414
+ export declare function getAuthorizationTypeLabel(auth: AuthorizationRequirement): string;
415
+ export declare function getAuthorizationTypeKey(auth: AuthorizationRequirement): string;
416
+ export declare function normalizeAuthorizationType(auth: AuthorizationRequirement, options?: {
417
+ warn?: boolean;
418
+ logger?: (message: string) => void;
1118
419
  }): AuthorizationRequirement;
1119
-
1120
- export { AUTHORIZATION_TYPES, AuthRequiredError, type AuthRequiredErrorData, AuthRequiredErrorDataSchema, type AuthorizationRequirement, AuthorizationRequirementSchema, type AuthorizationType, CONSENT_PROVIDER_TYPES, type ConsentProviderType, type DelegationRequiredErrorData, DelegationRequiredErrorDataSchema, type LegacyToolProtection, type PartialToolProtection, type ToolProtection, type ToolProtectionInput, type ToolProtectionMap, ToolProtectionMapSchema, type ToolProtectionResponse, ToolProtectionResponseSchema, ToolProtectionSchema, type ToolProtectionUpdate, createDelegationRequiredError, determineConsentProviderType, getAuthorizationTypeKey, getAuthorizationTypeLabel, getToolRequiredScopes, getToolRiskLevel, hasApiKeyAuthorization, hasOAuthAuthorization, hasPasswordAuthorization, hasVerifiableCredentialAuthorization, isAuthorizationRequirement, isDelegationRequiredErrorData, isToolProtection, isToolProtectionMap, isToolProtectionResponse, normalizeAuthorizationType, normalizeToolProtection, toolRequiresDelegation, validateDelegationRequiredErrorData, validateToolProtection, validateToolProtectionMap, validateToolProtectionResponse };
420
+ //#endregion
421
+ //# sourceMappingURL=index.d.mts.map