@authhero/saml 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.d.ts CHANGED
@@ -1,588 +1,503 @@
1
- // Generated by dts-bundle-generator v9.5.1
2
-
3
1
  import { z } from '@hono/zod-openapi';
4
2
 
5
- export declare const samlIssuerSchema: z.ZodObject<{
6
- "#text": z.ZodString;
7
- "@_xmlns:saml": z.ZodOptional<z.ZodString>;
3
+ declare const samlIssuerSchema: z.ZodObject<{
4
+ "#text": z.ZodString;
5
+ "@_xmlns:saml": z.ZodOptional<z.ZodString>;
8
6
  }, z.core.$strip>;
9
- export declare const samlRequestSchema: z.ZodObject<{
10
- "samlp:AuthnRequest": z.ZodObject<{
11
- "saml:Issuer": z.ZodObject<{
12
- "#text": z.ZodString;
13
- "@_xmlns:saml": z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>;
15
- "@_xmlns:samlp": z.ZodString;
16
- "@_xmlns:saml": z.ZodOptional<z.ZodString>;
17
- "@_ForceAuthn": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>>;
18
- "@_ID": z.ZodString;
19
- "@_IssueInstant": z.ZodString;
20
- "@_Destination": z.ZodString;
21
- "@_AssertionConsumerServiceURL": z.ZodOptional<z.ZodString>;
22
- "@_ProtocolBinding": z.ZodOptional<z.ZodString>;
23
- "@_Version": z.ZodString;
24
- }, z.core.$strip>;
7
+ declare const samlRequestSchema: z.ZodObject<{
8
+ "samlp:AuthnRequest": z.ZodObject<{
9
+ "saml:Issuer": z.ZodObject<{
10
+ "#text": z.ZodString;
11
+ "@_xmlns:saml": z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ "@_xmlns:samlp": z.ZodString;
14
+ "@_xmlns:saml": z.ZodOptional<z.ZodString>;
15
+ "@_ForceAuthn": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>>;
16
+ "@_ID": z.ZodString;
17
+ "@_IssueInstant": z.ZodString;
18
+ "@_Destination": z.ZodString;
19
+ "@_AssertionConsumerServiceURL": z.ZodOptional<z.ZodString>;
20
+ "@_ProtocolBinding": z.ZodOptional<z.ZodString>;
21
+ "@_Version": z.ZodString;
22
+ }, z.core.$strip>;
25
23
  }, z.core.$strip>;
26
- export declare const samlMetadataResponseSchema: z.ZodArray<z.ZodObject<{
27
- ":@": z.ZodObject<{
28
- "@_xmlns": z.ZodString;
29
- "@_entityID": z.ZodString;
30
- }, z.core.$strip>;
31
- EntityDescriptor: z.ZodArray<z.ZodObject<{
32
- ":@": z.ZodObject<{
33
- "@_protocolSupportEnumeration": z.ZodString;
34
- }, z.core.$strip>;
35
- IDPSSODescriptor: z.ZodArray<z.ZodUnion<readonly [
36
- z.ZodObject<{
37
- KeyDescriptor: z.ZodArray<z.ZodObject<{
38
- KeyInfo: z.ZodArray<z.ZodObject<{
39
- X509Data: z.ZodArray<z.ZodObject<{
40
- X509Certificate: z.ZodArray<z.ZodObject<{
41
- "#text": z.ZodString;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>>;
44
- }, z.core.$strip>>;
45
- ":@": z.ZodObject<{
46
- "@_xmlns": z.ZodString;
47
- }, z.core.$strip>;
48
- }, z.core.$strip>>;
49
- ":@": z.ZodObject<{
50
- "@_use": z.ZodString;
51
- }, z.core.$strip>;
52
- }, z.core.$strip>,
53
- z.ZodObject<{
54
- SingleLogoutService: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
55
- ":@": z.ZodObject<{
56
- "@_Binding": z.ZodString;
57
- "@_Location": z.ZodString;
58
- }, z.core.$strip>;
59
- }, z.core.$strip>,
60
- z.ZodObject<{
61
- NameIDFormat: z.ZodArray<z.ZodObject<{
62
- "#text": z.ZodString;
63
- }, z.core.$strip>>;
64
- }, z.core.$strip>,
65
- z.ZodObject<{
66
- SingleSignOnService: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
67
- ":@": z.ZodObject<{
68
- "@_Binding": z.ZodString;
69
- "@_Location": z.ZodString;
70
- }, z.core.$strip>;
71
- }, z.core.$strip>,
72
- z.ZodObject<{
73
- Attribute: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
74
- ":@": z.ZodObject<{
75
- "@_Name": z.ZodString;
76
- "@_NameFormat": z.ZodString;
77
- "@_FriendlyName": z.ZodString;
78
- "@_xmlns": z.ZodString;
79
- }, z.core.$strip>;
80
- }, z.core.$strip>
81
- ]>>;
82
- }, z.core.$strip>>;
24
+ declare const samlMetadataResponseSchema: z.ZodArray<z.ZodObject<{
25
+ ":@": z.ZodObject<{
26
+ "@_xmlns": z.ZodString;
27
+ "@_entityID": z.ZodString;
28
+ }, z.core.$strip>;
29
+ EntityDescriptor: z.ZodArray<z.ZodObject<{
30
+ ":@": z.ZodObject<{
31
+ "@_protocolSupportEnumeration": z.ZodString;
32
+ }, z.core.$strip>;
33
+ IDPSSODescriptor: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
34
+ KeyDescriptor: z.ZodArray<z.ZodObject<{
35
+ KeyInfo: z.ZodArray<z.ZodObject<{
36
+ X509Data: z.ZodArray<z.ZodObject<{
37
+ X509Certificate: z.ZodArray<z.ZodObject<{
38
+ "#text": z.ZodString;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>>;
42
+ ":@": z.ZodObject<{
43
+ "@_xmlns": z.ZodString;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>>;
46
+ ":@": z.ZodObject<{
47
+ "@_use": z.ZodString;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ SingleLogoutService: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
51
+ ":@": z.ZodObject<{
52
+ "@_Binding": z.ZodString;
53
+ "@_Location": z.ZodString;
54
+ }, z.core.$strip>;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ NameIDFormat: z.ZodArray<z.ZodObject<{
57
+ "#text": z.ZodString;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ SingleSignOnService: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
61
+ ":@": z.ZodObject<{
62
+ "@_Binding": z.ZodString;
63
+ "@_Location": z.ZodString;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ Attribute: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
67
+ ":@": z.ZodObject<{
68
+ "@_Name": z.ZodString;
69
+ "@_NameFormat": z.ZodString;
70
+ "@_FriendlyName": z.ZodString;
71
+ "@_xmlns": z.ZodString;
72
+ }, z.core.$strip>;
73
+ }, z.core.$strip>]>>;
74
+ }, z.core.$strip>>;
83
75
  }, z.core.$strip>>;
84
- export type SAMLMetadataResponse = z.infer<typeof samlMetadataResponseSchema>;
85
- export declare const dsSignatureSchema: z.ZodObject<{
86
- "ds:Signature": z.ZodArray<z.ZodUnion<readonly [
87
- z.ZodObject<{
88
- "ds:SignedInfo": z.ZodArray<z.ZodUnion<readonly [
89
- z.ZodObject<{
90
- "ds:CanonicalizationMethod": z.ZodArray<z.ZodObject<{
91
- ":@": z.ZodObject<{
92
- "@_Algorithm": z.ZodString;
93
- }, z.core.$strip>;
94
- }, z.core.$strip>>;
95
- }, z.core.$strip>,
96
- z.ZodObject<{
97
- "ds:SignatureMethod": z.ZodArray<z.ZodObject<{
98
- ":@": z.ZodObject<{
99
- "@_Algorithm": z.ZodString;
100
- }, z.core.$strip>;
101
- }, z.core.$strip>>;
102
- }, z.core.$strip>,
103
- z.ZodObject<{
104
- "ds:Reference": z.ZodArray<z.ZodUnion<readonly [
105
- z.ZodObject<{
106
- "ds:Transforms": z.ZodArray<z.ZodObject<{
107
- "ds:Transform": z.ZodArray<z.ZodAny>;
108
- ":@": z.ZodObject<{
109
- "@_Algorithm": z.ZodString;
110
- }, z.core.$strip>;
111
- }, z.core.$strip>>;
112
- }, z.core.$strip>,
113
- z.ZodObject<{
114
- "ds:DigestMethod": z.ZodArray<z.ZodObject<{
115
- ":@": z.ZodObject<{
116
- "@_Algorithm": z.ZodString;
117
- }, z.core.$strip>;
118
- }, z.core.$strip>>;
119
- }, z.core.$strip>,
120
- z.ZodObject<{
121
- "ds:DigestValue": z.ZodArray<z.ZodObject<{
122
- "#text": z.ZodString;
123
- }, z.core.$strip>>;
124
- }, z.core.$strip>
125
- ]>>;
126
- ":@": z.ZodOptional<z.ZodObject<{
127
- "@_URI": z.ZodOptional<z.ZodString>;
128
- }, z.core.$strip>>;
129
- }, z.core.$strip>
130
- ]>>;
131
- }, z.core.$strip>,
132
- z.ZodObject<{
133
- "ds:SignatureValue": z.ZodArray<z.ZodObject<{
134
- "#text": z.ZodString;
135
- }, z.core.$strip>>;
136
- }, z.core.$strip>,
137
- z.ZodObject<{
138
- "ds:KeyInfo": z.ZodArray<z.ZodUnion<readonly [
139
- z.ZodObject<{
140
- "ds:KeyValue": z.ZodArray<z.ZodObject<{
141
- "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [
142
- z.ZodObject<{
143
- "ds:Modulus": z.ZodArray<z.ZodObject<{
144
- "#text": z.ZodString;
145
- }, z.core.$strip>>;
146
- }, z.core.$strip>,
147
- z.ZodObject<{
148
- "ds:Exponent": z.ZodArray<z.ZodObject<{
149
- "#text": z.ZodString;
150
- }, z.core.$strip>>;
151
- }, z.core.$strip>
152
- ]>>;
153
- }, z.core.$strip>>;
154
- }, z.core.$strip>,
155
- z.ZodObject<{
156
- "ds:X509Data": z.ZodArray<z.ZodObject<{
157
- "ds:X509Certificate": z.ZodArray<z.ZodObject<{
158
- "#text": z.ZodString;
159
- }, z.core.$strip>>;
160
- }, z.core.$strip>>;
161
- }, z.core.$strip>,
162
- z.ZodObject<{
163
- "ds:KeyValue": z.ZodArray<z.ZodObject<{
164
- "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [
165
- z.ZodObject<{
166
- "ds:Modulus": z.ZodArray<z.ZodObject<{
167
- "#text": z.ZodString;
168
- }, z.core.$strip>>;
169
- }, z.core.$strip>,
170
- z.ZodObject<{
171
- "ds:Exponent": z.ZodArray<z.ZodObject<{
172
- "#text": z.ZodString;
173
- }, z.core.$strip>>;
174
- }, z.core.$strip>
175
- ]>>;
176
- }, z.core.$strip>>;
177
- "ds:X509Data": z.ZodArray<z.ZodObject<{
178
- "ds:X509Certificate": z.ZodArray<z.ZodObject<{
179
- "#text": z.ZodString;
180
- }, z.core.$strip>>;
181
- }, z.core.$strip>>;
182
- }, z.core.$strip>
183
- ]>>;
184
- }, z.core.$strip>
185
- ]>>;
186
- ":@": z.ZodOptional<z.ZodObject<{
187
- "@_xmlns:ds": z.ZodOptional<z.ZodString>;
188
- }, z.core.$strip>>;
76
+ type SAMLMetadataResponse = z.infer<typeof samlMetadataResponseSchema>;
77
+ declare const dsSignatureSchema: z.ZodObject<{
78
+ "ds:Signature": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
79
+ "ds:SignedInfo": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
80
+ "ds:CanonicalizationMethod": z.ZodArray<z.ZodObject<{
81
+ ":@": z.ZodObject<{
82
+ "@_Algorithm": z.ZodString;
83
+ }, z.core.$strip>;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ "ds:SignatureMethod": z.ZodArray<z.ZodObject<{
87
+ ":@": z.ZodObject<{
88
+ "@_Algorithm": z.ZodString;
89
+ }, z.core.$strip>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ "ds:Reference": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
93
+ "ds:Transforms": z.ZodArray<z.ZodObject<{
94
+ "ds:Transform": z.ZodArray<z.ZodAny>;
95
+ ":@": z.ZodObject<{
96
+ "@_Algorithm": z.ZodString;
97
+ }, z.core.$strip>;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ "ds:DigestMethod": z.ZodArray<z.ZodObject<{
101
+ ":@": z.ZodObject<{
102
+ "@_Algorithm": z.ZodString;
103
+ }, z.core.$strip>;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ "ds:DigestValue": z.ZodArray<z.ZodObject<{
107
+ "#text": z.ZodString;
108
+ }, z.core.$strip>>;
109
+ }, z.core.$strip>]>>;
110
+ ":@": z.ZodOptional<z.ZodObject<{
111
+ "@_URI": z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>]>>;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ "ds:SignatureValue": z.ZodArray<z.ZodObject<{
116
+ "#text": z.ZodString;
117
+ }, z.core.$strip>>;
118
+ }, z.core.$strip>, z.ZodObject<{
119
+ "ds:KeyInfo": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
120
+ "ds:KeyValue": z.ZodArray<z.ZodObject<{
121
+ "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
122
+ "ds:Modulus": z.ZodArray<z.ZodObject<{
123
+ "#text": z.ZodString;
124
+ }, z.core.$strip>>;
125
+ }, z.core.$strip>, z.ZodObject<{
126
+ "ds:Exponent": z.ZodArray<z.ZodObject<{
127
+ "#text": z.ZodString;
128
+ }, z.core.$strip>>;
129
+ }, z.core.$strip>]>>;
130
+ }, z.core.$strip>>;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ "ds:X509Data": z.ZodArray<z.ZodObject<{
133
+ "ds:X509Certificate": z.ZodArray<z.ZodObject<{
134
+ "#text": z.ZodString;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strip>>;
137
+ }, z.core.$strip>, z.ZodObject<{
138
+ "ds:KeyValue": z.ZodArray<z.ZodObject<{
139
+ "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
140
+ "ds:Modulus": z.ZodArray<z.ZodObject<{
141
+ "#text": z.ZodString;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ "ds:Exponent": z.ZodArray<z.ZodObject<{
145
+ "#text": z.ZodString;
146
+ }, z.core.$strip>>;
147
+ }, z.core.$strip>]>>;
148
+ }, z.core.$strip>>;
149
+ "ds:X509Data": z.ZodArray<z.ZodObject<{
150
+ "ds:X509Certificate": z.ZodArray<z.ZodObject<{
151
+ "#text": z.ZodString;
152
+ }, z.core.$strip>>;
153
+ }, z.core.$strip>>;
154
+ }, z.core.$strip>]>>;
155
+ }, z.core.$strip>]>>;
156
+ ":@": z.ZodOptional<z.ZodObject<{
157
+ "@_xmlns:ds": z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strip>>;
189
159
  }, z.core.$strip>;
190
- export type DSIGSignature = z.infer<typeof dsSignatureSchema>;
191
- export declare const samlResponseJsonSchema: z.ZodArray<z.ZodObject<{
192
- "samlp:Response": z.ZodArray<z.ZodUnion<readonly [
193
- z.ZodObject<{
194
- "saml:Issuer": z.ZodArray<z.ZodObject<{
195
- "#text": z.ZodString;
196
- }, z.core.$strip>>;
197
- }, z.core.$strip>,
198
- z.ZodObject<{
199
- "ds:Signature": z.ZodArray<z.ZodUnion<readonly [
200
- z.ZodObject<{
201
- "ds:SignedInfo": z.ZodArray<z.ZodUnion<readonly [
202
- z.ZodObject<{
203
- "ds:CanonicalizationMethod": z.ZodArray<z.ZodObject<{
204
- ":@": z.ZodObject<{
205
- "@_Algorithm": z.ZodString;
206
- }, z.core.$strip>;
207
- }, z.core.$strip>>;
208
- }, z.core.$strip>,
209
- z.ZodObject<{
210
- "ds:SignatureMethod": z.ZodArray<z.ZodObject<{
211
- ":@": z.ZodObject<{
212
- "@_Algorithm": z.ZodString;
213
- }, z.core.$strip>;
214
- }, z.core.$strip>>;
215
- }, z.core.$strip>,
216
- z.ZodObject<{
217
- "ds:Reference": z.ZodArray<z.ZodUnion<readonly [
218
- z.ZodObject<{
219
- "ds:Transforms": z.ZodArray<z.ZodObject<{
220
- "ds:Transform": z.ZodArray<z.ZodAny>;
221
- ":@": z.ZodObject<{
222
- "@_Algorithm": z.ZodString;
223
- }, z.core.$strip>;
224
- }, z.core.$strip>>;
225
- }, z.core.$strip>,
226
- z.ZodObject<{
227
- "ds:DigestMethod": z.ZodArray<z.ZodObject<{
228
- ":@": z.ZodObject<{
229
- "@_Algorithm": z.ZodString;
230
- }, z.core.$strip>;
231
- }, z.core.$strip>>;
232
- }, z.core.$strip>,
233
- z.ZodObject<{
234
- "ds:DigestValue": z.ZodArray<z.ZodObject<{
235
- "#text": z.ZodString;
236
- }, z.core.$strip>>;
237
- }, z.core.$strip>
238
- ]>>;
239
- ":@": z.ZodOptional<z.ZodObject<{
240
- "@_URI": z.ZodOptional<z.ZodString>;
241
- }, z.core.$strip>>;
242
- }, z.core.$strip>
243
- ]>>;
244
- }, z.core.$strip>,
245
- z.ZodObject<{
246
- "ds:SignatureValue": z.ZodArray<z.ZodObject<{
247
- "#text": z.ZodString;
248
- }, z.core.$strip>>;
249
- }, z.core.$strip>,
250
- z.ZodObject<{
251
- "ds:KeyInfo": z.ZodArray<z.ZodUnion<readonly [
252
- z.ZodObject<{
253
- "ds:KeyValue": z.ZodArray<z.ZodObject<{
254
- "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [
255
- z.ZodObject<{
256
- "ds:Modulus": z.ZodArray<z.ZodObject<{
257
- "#text": z.ZodString;
258
- }, z.core.$strip>>;
259
- }, z.core.$strip>,
260
- z.ZodObject<{
261
- "ds:Exponent": z.ZodArray<z.ZodObject<{
262
- "#text": z.ZodString;
263
- }, z.core.$strip>>;
264
- }, z.core.$strip>
265
- ]>>;
266
- }, z.core.$strip>>;
267
- }, z.core.$strip>,
268
- z.ZodObject<{
269
- "ds:X509Data": z.ZodArray<z.ZodObject<{
270
- "ds:X509Certificate": z.ZodArray<z.ZodObject<{
271
- "#text": z.ZodString;
272
- }, z.core.$strip>>;
273
- }, z.core.$strip>>;
274
- }, z.core.$strip>,
275
- z.ZodObject<{
276
- "ds:KeyValue": z.ZodArray<z.ZodObject<{
277
- "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [
278
- z.ZodObject<{
279
- "ds:Modulus": z.ZodArray<z.ZodObject<{
280
- "#text": z.ZodString;
281
- }, z.core.$strip>>;
282
- }, z.core.$strip>,
283
- z.ZodObject<{
284
- "ds:Exponent": z.ZodArray<z.ZodObject<{
285
- "#text": z.ZodString;
286
- }, z.core.$strip>>;
287
- }, z.core.$strip>
288
- ]>>;
289
- }, z.core.$strip>>;
290
- "ds:X509Data": z.ZodArray<z.ZodObject<{
291
- "ds:X509Certificate": z.ZodArray<z.ZodObject<{
292
- "#text": z.ZodString;
293
- }, z.core.$strip>>;
294
- }, z.core.$strip>>;
295
- }, z.core.$strip>
296
- ]>>;
297
- }, z.core.$strip>
298
- ]>>;
299
- ":@": z.ZodOptional<z.ZodObject<{
300
- "@_xmlns:ds": z.ZodOptional<z.ZodString>;
301
- }, z.core.$strip>>;
302
- }, z.core.$strip>,
303
- z.ZodObject<{
304
- "samlp:Status": z.ZodArray<z.ZodObject<{
305
- "samlp:StatusCode": z.ZodArray<z.ZodObject<{
306
- "#text": z.ZodString;
307
- }, z.core.$strip>>;
308
- ":@": z.ZodObject<{
309
- "@_Value": z.ZodString;
310
- }, z.core.$strip>;
311
- }, z.core.$strip>>;
312
- }, z.core.$strip>,
313
- z.ZodObject<{
314
- "saml:Assertion": z.ZodArray<z.ZodUnion<readonly [
315
- z.ZodObject<{
316
- "saml:Issuer": z.ZodArray<z.ZodObject<{
317
- "#text": z.ZodString;
318
- }, z.core.$strip>>;
319
- }, z.core.$strip>,
320
- z.ZodObject<{
321
- "ds:Signature": z.ZodArray<z.ZodUnion<readonly [
322
- z.ZodObject<{
323
- "ds:SignedInfo": z.ZodArray<z.ZodUnion<readonly [
324
- z.ZodObject<{
325
- "ds:CanonicalizationMethod": z.ZodArray<z.ZodObject<{
326
- ":@": z.ZodObject<{
327
- "@_Algorithm": z.ZodString;
328
- }, z.core.$strip>;
329
- }, z.core.$strip>>;
330
- }, z.core.$strip>,
331
- z.ZodObject<{
332
- "ds:SignatureMethod": z.ZodArray<z.ZodObject<{
333
- ":@": z.ZodObject<{
334
- "@_Algorithm": z.ZodString;
335
- }, z.core.$strip>;
336
- }, z.core.$strip>>;
337
- }, z.core.$strip>,
338
- z.ZodObject<{
339
- "ds:Reference": z.ZodArray<z.ZodUnion<readonly [
340
- z.ZodObject<{
341
- "ds:Transforms": z.ZodArray<z.ZodObject<{
342
- "ds:Transform": z.ZodArray<z.ZodAny>;
343
- ":@": z.ZodObject<{
344
- "@_Algorithm": z.ZodString;
345
- }, z.core.$strip>;
346
- }, z.core.$strip>>;
347
- }, z.core.$strip>,
348
- z.ZodObject<{
349
- "ds:DigestMethod": z.ZodArray<z.ZodObject<{
350
- ":@": z.ZodObject<{
351
- "@_Algorithm": z.ZodString;
352
- }, z.core.$strip>;
353
- }, z.core.$strip>>;
354
- }, z.core.$strip>,
355
- z.ZodObject<{
356
- "ds:DigestValue": z.ZodArray<z.ZodObject<{
357
- "#text": z.ZodString;
358
- }, z.core.$strip>>;
359
- }, z.core.$strip>
360
- ]>>;
361
- ":@": z.ZodOptional<z.ZodObject<{
362
- "@_URI": z.ZodOptional<z.ZodString>;
363
- }, z.core.$strip>>;
364
- }, z.core.$strip>
365
- ]>>;
366
- }, z.core.$strip>,
367
- z.ZodObject<{
368
- "ds:SignatureValue": z.ZodArray<z.ZodObject<{
369
- "#text": z.ZodString;
370
- }, z.core.$strip>>;
371
- }, z.core.$strip>,
372
- z.ZodObject<{
373
- "ds:KeyInfo": z.ZodArray<z.ZodUnion<readonly [
374
- z.ZodObject<{
375
- "ds:KeyValue": z.ZodArray<z.ZodObject<{
376
- "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [
377
- z.ZodObject<{
378
- "ds:Modulus": z.ZodArray<z.ZodObject<{
379
- "#text": z.ZodString;
380
- }, z.core.$strip>>;
381
- }, z.core.$strip>,
382
- z.ZodObject<{
383
- "ds:Exponent": z.ZodArray<z.ZodObject<{
384
- "#text": z.ZodString;
385
- }, z.core.$strip>>;
386
- }, z.core.$strip>
387
- ]>>;
388
- }, z.core.$strip>>;
389
- }, z.core.$strip>,
390
- z.ZodObject<{
391
- "ds:X509Data": z.ZodArray<z.ZodObject<{
392
- "ds:X509Certificate": z.ZodArray<z.ZodObject<{
393
- "#text": z.ZodString;
394
- }, z.core.$strip>>;
395
- }, z.core.$strip>>;
396
- }, z.core.$strip>,
397
- z.ZodObject<{
398
- "ds:KeyValue": z.ZodArray<z.ZodObject<{
399
- "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [
400
- z.ZodObject<{
401
- "ds:Modulus": z.ZodArray<z.ZodObject<{
402
- "#text": z.ZodString;
403
- }, z.core.$strip>>;
404
- }, z.core.$strip>,
405
- z.ZodObject<{
406
- "ds:Exponent": z.ZodArray<z.ZodObject<{
407
- "#text": z.ZodString;
408
- }, z.core.$strip>>;
409
- }, z.core.$strip>
410
- ]>>;
411
- }, z.core.$strip>>;
412
- "ds:X509Data": z.ZodArray<z.ZodObject<{
413
- "ds:X509Certificate": z.ZodArray<z.ZodObject<{
414
- "#text": z.ZodString;
415
- }, z.core.$strip>>;
416
- }, z.core.$strip>>;
417
- }, z.core.$strip>
418
- ]>>;
419
- }, z.core.$strip>
420
- ]>>;
421
- ":@": z.ZodOptional<z.ZodObject<{
422
- "@_xmlns:ds": z.ZodOptional<z.ZodString>;
423
- }, z.core.$strip>>;
424
- }, z.core.$strip>,
425
- z.ZodObject<{
426
- "saml:Subject": z.ZodArray<z.ZodUnion<readonly [
427
- z.ZodObject<{
428
- "saml:NameID": z.ZodArray<z.ZodObject<{
429
- "#text": z.ZodString;
430
- }, z.core.$strip>>;
431
- ":@": z.ZodObject<{
432
- "@_Format": z.ZodString;
433
- }, z.core.$strip>;
434
- }, z.core.$strip>,
435
- z.ZodObject<{
436
- "saml:SubjectConfirmation": z.ZodArray<z.ZodObject<{
437
- "saml:SubjectConfirmationData": z.ZodArray<z.ZodAny>;
438
- ":@": z.ZodObject<{
439
- "@_InResponseTo": z.ZodString;
440
- "@_NotOnOrAfter": z.ZodString;
441
- "@_Recipient": z.ZodString;
442
- }, z.core.$strip>;
443
- }, z.core.$strip>>;
444
- ":@": z.ZodObject<{
445
- "@_Method": z.ZodString;
446
- }, z.core.$strip>;
447
- }, z.core.$strip>
448
- ]>>;
449
- }, z.core.$strip>,
450
- z.ZodObject<{
451
- "saml:Conditions": z.ZodArray<z.ZodObject<{
452
- "saml:AudienceRestriction": z.ZodArray<z.ZodObject<{
453
- "saml:Audience": z.ZodArray<z.ZodObject<{
454
- "#text": z.ZodString;
455
- }, z.core.$strip>>;
456
- }, z.core.$strip>>;
457
- }, z.core.$strip>>;
458
- ":@": z.ZodObject<{
459
- "@_NotBefore": z.ZodString;
460
- "@_NotOnOrAfter": z.ZodString;
461
- }, z.core.$strip>;
462
- }, z.core.$strip>,
463
- z.ZodObject<{
464
- "saml:AuthnStatement": z.ZodArray<z.ZodObject<{
465
- "saml:AuthnContext": z.ZodArray<z.ZodObject<{
466
- "saml:AuthnContextClassRef": z.ZodArray<z.ZodObject<{
467
- "#text": z.ZodString;
468
- }, z.core.$strip>>;
469
- }, z.core.$strip>>;
470
- }, z.core.$strip>>;
471
- ":@": z.ZodObject<{
472
- "@_AuthnInstant": z.ZodString;
473
- "@_SessionIndex": z.ZodString;
474
- "@_SessionNotOnOrAfter": z.ZodString;
475
- }, z.core.$strip>;
476
- }, z.core.$strip>,
477
- z.ZodObject<{
478
- "saml:AttributeStatement": z.ZodArray<z.ZodObject<{
479
- "saml:Attribute": z.ZodArray<z.ZodObject<{
480
- "saml:AttributeValue": z.ZodArray<z.ZodObject<{
481
- "#text": z.ZodString;
482
- }, z.core.$strip>>;
483
- ":@": z.ZodOptional<z.ZodObject<{
484
- "@_xmlns:xs": z.ZodOptional<z.ZodString>;
485
- "@_xmlns:xsi": z.ZodString;
486
- "@_xsi:type": z.ZodString;
487
- }, z.core.$strip>>;
488
- }, z.core.$strip>>;
489
- ":@": z.ZodObject<{
490
- "@_Name": z.ZodString;
491
- "@_NameFormat": z.ZodString;
492
- "@_FriendlyName": z.ZodOptional<z.ZodString>;
493
- }, z.core.$strip>;
494
- }, z.core.$strip>>;
495
- }, z.core.$strip>
496
- ]>>;
497
- ":@": z.ZodObject<{
498
- "@_xmlns": z.ZodString;
499
- "@_ID": z.ZodString;
500
- "@_IssueInstant": z.ZodString;
501
- "@_Version": z.ZodString;
502
- }, z.core.$strip>;
503
- }, z.core.$strip>
504
- ]>>;
505
- ":@": z.ZodObject<{
506
- "@_xmlns:samlp": z.ZodString;
507
- "@_xmlns:saml": z.ZodString;
508
- "@_Destination": z.ZodString;
509
- "@_ID": z.ZodString;
510
- "@_InResponseTo": z.ZodString;
511
- "@_IssueInstant": z.ZodString;
512
- "@_Version": z.ZodString;
513
- }, z.core.$strip>;
160
+ type DSIGSignature = z.infer<typeof dsSignatureSchema>;
161
+ declare const samlResponseJsonSchema: z.ZodArray<z.ZodObject<{
162
+ "samlp:Response": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
163
+ "saml:Issuer": z.ZodArray<z.ZodObject<{
164
+ "#text": z.ZodString;
165
+ }, z.core.$strip>>;
166
+ }, z.core.$strip>, z.ZodObject<{
167
+ "ds:Signature": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
168
+ "ds:SignedInfo": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
169
+ "ds:CanonicalizationMethod": z.ZodArray<z.ZodObject<{
170
+ ":@": z.ZodObject<{
171
+ "@_Algorithm": z.ZodString;
172
+ }, z.core.$strip>;
173
+ }, z.core.$strip>>;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ "ds:SignatureMethod": z.ZodArray<z.ZodObject<{
176
+ ":@": z.ZodObject<{
177
+ "@_Algorithm": z.ZodString;
178
+ }, z.core.$strip>;
179
+ }, z.core.$strip>>;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ "ds:Reference": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
182
+ "ds:Transforms": z.ZodArray<z.ZodObject<{
183
+ "ds:Transform": z.ZodArray<z.ZodAny>;
184
+ ":@": z.ZodObject<{
185
+ "@_Algorithm": z.ZodString;
186
+ }, z.core.$strip>;
187
+ }, z.core.$strip>>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ "ds:DigestMethod": z.ZodArray<z.ZodObject<{
190
+ ":@": z.ZodObject<{
191
+ "@_Algorithm": z.ZodString;
192
+ }, z.core.$strip>;
193
+ }, z.core.$strip>>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ "ds:DigestValue": z.ZodArray<z.ZodObject<{
196
+ "#text": z.ZodString;
197
+ }, z.core.$strip>>;
198
+ }, z.core.$strip>]>>;
199
+ ":@": z.ZodOptional<z.ZodObject<{
200
+ "@_URI": z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>]>>;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ "ds:SignatureValue": z.ZodArray<z.ZodObject<{
205
+ "#text": z.ZodString;
206
+ }, z.core.$strip>>;
207
+ }, z.core.$strip>, z.ZodObject<{
208
+ "ds:KeyInfo": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
209
+ "ds:KeyValue": z.ZodArray<z.ZodObject<{
210
+ "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
211
+ "ds:Modulus": z.ZodArray<z.ZodObject<{
212
+ "#text": z.ZodString;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ "ds:Exponent": z.ZodArray<z.ZodObject<{
216
+ "#text": z.ZodString;
217
+ }, z.core.$strip>>;
218
+ }, z.core.$strip>]>>;
219
+ }, z.core.$strip>>;
220
+ }, z.core.$strip>, z.ZodObject<{
221
+ "ds:X509Data": z.ZodArray<z.ZodObject<{
222
+ "ds:X509Certificate": z.ZodArray<z.ZodObject<{
223
+ "#text": z.ZodString;
224
+ }, z.core.$strip>>;
225
+ }, z.core.$strip>>;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ "ds:KeyValue": z.ZodArray<z.ZodObject<{
228
+ "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
229
+ "ds:Modulus": z.ZodArray<z.ZodObject<{
230
+ "#text": z.ZodString;
231
+ }, z.core.$strip>>;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ "ds:Exponent": z.ZodArray<z.ZodObject<{
234
+ "#text": z.ZodString;
235
+ }, z.core.$strip>>;
236
+ }, z.core.$strip>]>>;
237
+ }, z.core.$strip>>;
238
+ "ds:X509Data": z.ZodArray<z.ZodObject<{
239
+ "ds:X509Certificate": z.ZodArray<z.ZodObject<{
240
+ "#text": z.ZodString;
241
+ }, z.core.$strip>>;
242
+ }, z.core.$strip>>;
243
+ }, z.core.$strip>]>>;
244
+ }, z.core.$strip>]>>;
245
+ ":@": z.ZodOptional<z.ZodObject<{
246
+ "@_xmlns:ds": z.ZodOptional<z.ZodString>;
247
+ }, z.core.$strip>>;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ "samlp:Status": z.ZodArray<z.ZodObject<{
250
+ "samlp:StatusCode": z.ZodArray<z.ZodObject<{
251
+ "#text": z.ZodString;
252
+ }, z.core.$strip>>;
253
+ ":@": z.ZodObject<{
254
+ "@_Value": z.ZodString;
255
+ }, z.core.$strip>;
256
+ }, z.core.$strip>>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ "saml:Assertion": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
259
+ "saml:Issuer": z.ZodArray<z.ZodObject<{
260
+ "#text": z.ZodString;
261
+ }, z.core.$strip>>;
262
+ }, z.core.$strip>, z.ZodObject<{
263
+ "ds:Signature": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
264
+ "ds:SignedInfo": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
265
+ "ds:CanonicalizationMethod": z.ZodArray<z.ZodObject<{
266
+ ":@": z.ZodObject<{
267
+ "@_Algorithm": z.ZodString;
268
+ }, z.core.$strip>;
269
+ }, z.core.$strip>>;
270
+ }, z.core.$strip>, z.ZodObject<{
271
+ "ds:SignatureMethod": z.ZodArray<z.ZodObject<{
272
+ ":@": z.ZodObject<{
273
+ "@_Algorithm": z.ZodString;
274
+ }, z.core.$strip>;
275
+ }, z.core.$strip>>;
276
+ }, z.core.$strip>, z.ZodObject<{
277
+ "ds:Reference": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
278
+ "ds:Transforms": z.ZodArray<z.ZodObject<{
279
+ "ds:Transform": z.ZodArray<z.ZodAny>;
280
+ ":@": z.ZodObject<{
281
+ "@_Algorithm": z.ZodString;
282
+ }, z.core.$strip>;
283
+ }, z.core.$strip>>;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ "ds:DigestMethod": z.ZodArray<z.ZodObject<{
286
+ ":@": z.ZodObject<{
287
+ "@_Algorithm": z.ZodString;
288
+ }, z.core.$strip>;
289
+ }, z.core.$strip>>;
290
+ }, z.core.$strip>, z.ZodObject<{
291
+ "ds:DigestValue": z.ZodArray<z.ZodObject<{
292
+ "#text": z.ZodString;
293
+ }, z.core.$strip>>;
294
+ }, z.core.$strip>]>>;
295
+ ":@": z.ZodOptional<z.ZodObject<{
296
+ "@_URI": z.ZodOptional<z.ZodString>;
297
+ }, z.core.$strip>>;
298
+ }, z.core.$strip>]>>;
299
+ }, z.core.$strip>, z.ZodObject<{
300
+ "ds:SignatureValue": z.ZodArray<z.ZodObject<{
301
+ "#text": z.ZodString;
302
+ }, z.core.$strip>>;
303
+ }, z.core.$strip>, z.ZodObject<{
304
+ "ds:KeyInfo": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
305
+ "ds:KeyValue": z.ZodArray<z.ZodObject<{
306
+ "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
307
+ "ds:Modulus": z.ZodArray<z.ZodObject<{
308
+ "#text": z.ZodString;
309
+ }, z.core.$strip>>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ "ds:Exponent": z.ZodArray<z.ZodObject<{
312
+ "#text": z.ZodString;
313
+ }, z.core.$strip>>;
314
+ }, z.core.$strip>]>>;
315
+ }, z.core.$strip>>;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ "ds:X509Data": z.ZodArray<z.ZodObject<{
318
+ "ds:X509Certificate": z.ZodArray<z.ZodObject<{
319
+ "#text": z.ZodString;
320
+ }, z.core.$strip>>;
321
+ }, z.core.$strip>>;
322
+ }, z.core.$strip>, z.ZodObject<{
323
+ "ds:KeyValue": z.ZodArray<z.ZodObject<{
324
+ "ds:RSAKeyValue": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
325
+ "ds:Modulus": z.ZodArray<z.ZodObject<{
326
+ "#text": z.ZodString;
327
+ }, z.core.$strip>>;
328
+ }, z.core.$strip>, z.ZodObject<{
329
+ "ds:Exponent": z.ZodArray<z.ZodObject<{
330
+ "#text": z.ZodString;
331
+ }, z.core.$strip>>;
332
+ }, z.core.$strip>]>>;
333
+ }, z.core.$strip>>;
334
+ "ds:X509Data": z.ZodArray<z.ZodObject<{
335
+ "ds:X509Certificate": z.ZodArray<z.ZodObject<{
336
+ "#text": z.ZodString;
337
+ }, z.core.$strip>>;
338
+ }, z.core.$strip>>;
339
+ }, z.core.$strip>]>>;
340
+ }, z.core.$strip>]>>;
341
+ ":@": z.ZodOptional<z.ZodObject<{
342
+ "@_xmlns:ds": z.ZodOptional<z.ZodString>;
343
+ }, z.core.$strip>>;
344
+ }, z.core.$strip>, z.ZodObject<{
345
+ "saml:Subject": z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
346
+ "saml:NameID": z.ZodArray<z.ZodObject<{
347
+ "#text": z.ZodString;
348
+ }, z.core.$strip>>;
349
+ ":@": z.ZodObject<{
350
+ "@_Format": z.ZodString;
351
+ }, z.core.$strip>;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ "saml:SubjectConfirmation": z.ZodArray<z.ZodObject<{
354
+ "saml:SubjectConfirmationData": z.ZodArray<z.ZodAny>;
355
+ ":@": z.ZodObject<{
356
+ "@_InResponseTo": z.ZodString;
357
+ "@_NotOnOrAfter": z.ZodString;
358
+ "@_Recipient": z.ZodString;
359
+ }, z.core.$strip>;
360
+ }, z.core.$strip>>;
361
+ ":@": z.ZodObject<{
362
+ "@_Method": z.ZodString;
363
+ }, z.core.$strip>;
364
+ }, z.core.$strip>]>>;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ "saml:Conditions": z.ZodArray<z.ZodObject<{
367
+ "saml:AudienceRestriction": z.ZodArray<z.ZodObject<{
368
+ "saml:Audience": z.ZodArray<z.ZodObject<{
369
+ "#text": z.ZodString;
370
+ }, z.core.$strip>>;
371
+ }, z.core.$strip>>;
372
+ }, z.core.$strip>>;
373
+ ":@": z.ZodObject<{
374
+ "@_NotBefore": z.ZodString;
375
+ "@_NotOnOrAfter": z.ZodString;
376
+ }, z.core.$strip>;
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ "saml:AuthnStatement": z.ZodArray<z.ZodObject<{
379
+ "saml:AuthnContext": z.ZodArray<z.ZodObject<{
380
+ "saml:AuthnContextClassRef": z.ZodArray<z.ZodObject<{
381
+ "#text": z.ZodString;
382
+ }, z.core.$strip>>;
383
+ }, z.core.$strip>>;
384
+ }, z.core.$strip>>;
385
+ ":@": z.ZodObject<{
386
+ "@_AuthnInstant": z.ZodString;
387
+ "@_SessionIndex": z.ZodString;
388
+ "@_SessionNotOnOrAfter": z.ZodString;
389
+ }, z.core.$strip>;
390
+ }, z.core.$strip>, z.ZodObject<{
391
+ "saml:AttributeStatement": z.ZodArray<z.ZodObject<{
392
+ "saml:Attribute": z.ZodArray<z.ZodObject<{
393
+ "saml:AttributeValue": z.ZodArray<z.ZodObject<{
394
+ "#text": z.ZodString;
395
+ }, z.core.$strip>>;
396
+ ":@": z.ZodOptional<z.ZodObject<{
397
+ "@_xmlns:xs": z.ZodOptional<z.ZodString>;
398
+ "@_xmlns:xsi": z.ZodString;
399
+ "@_xsi:type": z.ZodString;
400
+ }, z.core.$strip>>;
401
+ }, z.core.$strip>>;
402
+ ":@": z.ZodObject<{
403
+ "@_Name": z.ZodString;
404
+ "@_NameFormat": z.ZodString;
405
+ "@_FriendlyName": z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strip>;
407
+ }, z.core.$strip>>;
408
+ }, z.core.$strip>]>>;
409
+ ":@": z.ZodObject<{
410
+ "@_xmlns": z.ZodString;
411
+ "@_ID": z.ZodString;
412
+ "@_IssueInstant": z.ZodString;
413
+ "@_Version": z.ZodString;
414
+ }, z.core.$strip>;
415
+ }, z.core.$strip>]>>;
416
+ ":@": z.ZodObject<{
417
+ "@_xmlns:samlp": z.ZodString;
418
+ "@_xmlns:saml": z.ZodString;
419
+ "@_Destination": z.ZodString;
420
+ "@_ID": z.ZodString;
421
+ "@_InResponseTo": z.ZodString;
422
+ "@_IssueInstant": z.ZodString;
423
+ "@_Version": z.ZodString;
424
+ }, z.core.$strip>;
514
425
  }, z.core.$strip>>;
515
- export type SAMLResponseJSON = z.infer<typeof samlResponseJsonSchema>;
426
+ type SAMLResponseJSON = z.infer<typeof samlResponseJsonSchema>;
427
+
516
428
  /**
517
429
  * Interface for SAML signing implementations.
518
430
  * This allows for different signing strategies (local, HTTP, etc.)
519
431
  */
520
- export interface SamlSigner {
521
- /**
522
- * Signs SAML XML content with the provided private key and certificate
523
- * @param xmlContent - The XML content to sign
524
- * @param privateKey - The private key in PEM format
525
- * @param publicCert - The public certificate
526
- * @returns The signed XML content
527
- */
528
- signSAML(xmlContent: string, privateKey: string, publicCert: string): Promise<string>;
432
+ interface SamlSigner {
433
+ /**
434
+ * Signs SAML XML content with the provided private key and certificate
435
+ * @param xmlContent - The XML content to sign
436
+ * @param privateKey - The private key in PEM format
437
+ * @param publicCert - The public certificate
438
+ * @returns The signed XML content
439
+ */
440
+ signSAML(xmlContent: string, privateKey: string, publicCert: string): Promise<string>;
529
441
  }
530
- export interface SAMLMetadataParams {
531
- entityId: string;
532
- assertionConsumerServiceUrl: string;
533
- singleLogoutServiceUrl: string;
534
- certificates: string[];
442
+
443
+ interface SAMLMetadataParams {
444
+ entityId: string;
445
+ assertionConsumerServiceUrl: string;
446
+ singleLogoutServiceUrl: string;
447
+ certificates: string[];
535
448
  }
536
- export interface SAMLResponseParams {
537
- destination: string;
538
- inResponseTo: string;
539
- audience: string;
540
- issuer: string;
541
- email: string;
542
- notBefore?: string;
543
- notAfter?: string;
544
- responseId?: string;
545
- assertionId?: string;
546
- sessionNotOnOrAfter?: string;
547
- issueInstant?: string;
548
- sessionIndex: string;
549
- userId: string;
550
- signature?: {
551
- privateKeyPem: string;
552
- cert: string;
553
- kid: string;
554
- };
555
- encode?: boolean;
449
+ interface SAMLResponseParams {
450
+ destination: string;
451
+ inResponseTo: string;
452
+ audience: string;
453
+ issuer: string;
454
+ email: string;
455
+ notBefore?: string;
456
+ notAfter?: string;
457
+ responseId?: string;
458
+ assertionId?: string;
459
+ sessionNotOnOrAfter?: string;
460
+ issueInstant?: string;
461
+ sessionIndex: string;
462
+ userId: string;
463
+ signature?: {
464
+ privateKeyPem: string;
465
+ cert: string;
466
+ kid: string;
467
+ };
468
+ encode?: boolean;
556
469
  }
557
- export declare function inflateRaw(compressedData: Uint8Array): Promise<Uint8Array>;
558
- export declare function inflateDecompress(input: string): Promise<string>;
559
- export declare function parseSamlRequestQuery(samlRequestQuery: string): Promise<{
560
- "samlp:AuthnRequest": {
561
- "saml:Issuer": {
562
- "#text": string;
563
- "@_xmlns:saml"?: string | undefined;
564
- };
565
- "@_xmlns:samlp": string;
566
- "@_ID": string;
567
- "@_IssueInstant": string;
568
- "@_Destination": string;
569
- "@_Version": string;
570
- "@_xmlns:saml"?: string | undefined;
571
- "@_ForceAuthn"?: boolean | undefined;
572
- "@_AssertionConsumerServiceURL"?: string | undefined;
573
- "@_ProtocolBinding"?: string | undefined;
574
- };
470
+ declare function inflateRaw(compressedData: Uint8Array): Promise<Uint8Array>;
471
+ declare function inflateDecompress(input: string): Promise<string>;
472
+ declare function parseSamlRequestQuery(samlRequestQuery: string): Promise<{
473
+ "samlp:AuthnRequest": {
474
+ "saml:Issuer": {
475
+ "#text": string;
476
+ "@_xmlns:saml"?: string | undefined;
477
+ };
478
+ "@_xmlns:samlp": string;
479
+ "@_ID": string;
480
+ "@_IssueInstant": string;
481
+ "@_Destination": string;
482
+ "@_Version": string;
483
+ "@_xmlns:saml"?: string | undefined;
484
+ "@_ForceAuthn"?: boolean | undefined;
485
+ "@_AssertionConsumerServiceURL"?: string | undefined;
486
+ "@_ProtocolBinding"?: string | undefined;
487
+ };
575
488
  }>;
576
- export declare function createSamlMetadata(samlMetadataParams: SAMLMetadataParams): string;
577
- export declare function createSamlResponse(samlResponseParams: SAMLResponseParams, signer?: SamlSigner): Promise<string>;
489
+ declare function createSamlMetadata(samlMetadataParams: SAMLMetadataParams): string;
490
+ declare function createSamlResponse(samlResponseParams: SAMLResponseParams, signer?: SamlSigner): Promise<string>;
491
+
578
492
  /**
579
493
  * HTTP-based SAML signer that delegates signing to a remote endpoint.
580
494
  * This implementation can be used in edge/browser environments where xml-crypto is not available.
581
495
  */
582
- export declare class HttpSamlSigner implements SamlSigner {
583
- private signUrl;
584
- constructor(signUrl: string);
585
- signSAML(xmlContent: string, privateKey: string, publicCert: string): Promise<string>;
496
+ declare class HttpSamlSigner implements SamlSigner {
497
+ private signUrl;
498
+ constructor(signUrl: string);
499
+ signSAML(xmlContent: string, privateKey: string, publicCert: string): Promise<string>;
586
500
  }
587
501
 
588
- export {};
502
+ export { HttpSamlSigner, createSamlMetadata, createSamlResponse, dsSignatureSchema, inflateDecompress, inflateRaw, parseSamlRequestQuery, samlIssuerSchema, samlMetadataResponseSchema, samlRequestSchema, samlResponseJsonSchema };
503
+ export type { DSIGSignature, SAMLMetadataParams, SAMLMetadataResponse, SAMLResponseJSON, SAMLResponseParams, SamlSigner };